@flowselections/floriday-afhandeling-module 1.0.15 → 1.0.17

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 +252 -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 +1496 -272
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +1496 -272
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +1496 -272
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +1523 -266
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2944 -496
  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 +200 -0
  44. package/dist-lib/lib/carriers.functions.d.ts +7100 -980
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/cartAssignments.functions.d.ts +7100 -980
  47. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/cartControl.functions.d.ts +14630 -2390
  49. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +1496 -272
  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 +50282 -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 +12604 -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 +25164 -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 +100569 -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 +50288 -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 +24 -4
@@ -259,6 +259,165 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
259
259
  };
260
260
  Relationships: [];
261
261
  };
262
+ ai_credentials: {
263
+ Row: {
264
+ active: boolean;
265
+ api_key: string;
266
+ created_at: string;
267
+ created_by: string | null;
268
+ id: string;
269
+ label: string;
270
+ provider_id: string;
271
+ updated_at: string;
272
+ };
273
+ Insert: {
274
+ active?: boolean;
275
+ api_key: string;
276
+ created_at?: string;
277
+ created_by?: string | null;
278
+ id?: string;
279
+ label: string;
280
+ provider_id: string;
281
+ updated_at?: string;
282
+ };
283
+ Update: {
284
+ active?: boolean;
285
+ api_key?: string;
286
+ created_at?: string;
287
+ created_by?: string | null;
288
+ id?: string;
289
+ label?: string;
290
+ provider_id?: string;
291
+ updated_at?: string;
292
+ };
293
+ Relationships: [{
294
+ foreignKeyName: "ai_credentials_provider_id_fkey";
295
+ columns: ["provider_id"];
296
+ isOneToOne: false;
297
+ referencedRelation: "ai_providers";
298
+ referencedColumns: ["id"];
299
+ }];
300
+ };
301
+ ai_models: {
302
+ Row: {
303
+ active: boolean;
304
+ context_window: number | null;
305
+ created_at: string;
306
+ display_name: string;
307
+ id: string;
308
+ is_default: boolean;
309
+ modality: string;
310
+ provider_id: string;
311
+ slug: string;
312
+ updated_at: string;
313
+ };
314
+ Insert: {
315
+ active?: boolean;
316
+ context_window?: number | null;
317
+ created_at?: string;
318
+ display_name: string;
319
+ id?: string;
320
+ is_default?: boolean;
321
+ modality?: string;
322
+ provider_id: string;
323
+ slug: string;
324
+ updated_at?: string;
325
+ };
326
+ Update: {
327
+ active?: boolean;
328
+ context_window?: number | null;
329
+ created_at?: string;
330
+ display_name?: string;
331
+ id?: string;
332
+ is_default?: boolean;
333
+ modality?: string;
334
+ provider_id?: string;
335
+ slug?: string;
336
+ updated_at?: string;
337
+ };
338
+ Relationships: [{
339
+ foreignKeyName: "ai_models_provider_id_fkey";
340
+ columns: ["provider_id"];
341
+ isOneToOne: false;
342
+ referencedRelation: "ai_providers";
343
+ referencedColumns: ["id"];
344
+ }];
345
+ };
346
+ ai_module_bindings: {
347
+ Row: {
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
+ Insert: {
357
+ consumer_module_id: string;
358
+ created_at?: string;
359
+ credential_id: string;
360
+ id?: string;
361
+ model_id: string;
362
+ notes?: string | null;
363
+ updated_at?: string;
364
+ };
365
+ Update: {
366
+ consumer_module_id?: string;
367
+ created_at?: string;
368
+ credential_id?: string;
369
+ id?: string;
370
+ model_id?: string;
371
+ notes?: string | null;
372
+ updated_at?: string;
373
+ };
374
+ Relationships: [{
375
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
376
+ columns: ["credential_id"];
377
+ isOneToOne: false;
378
+ referencedRelation: "ai_credentials";
379
+ referencedColumns: ["id"];
380
+ }, {
381
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
382
+ columns: ["model_id"];
383
+ isOneToOne: false;
384
+ referencedRelation: "ai_models";
385
+ referencedColumns: ["id"];
386
+ }];
387
+ };
388
+ ai_providers: {
389
+ Row: {
390
+ active: boolean;
391
+ auth_type: string;
392
+ base_url: string | null;
393
+ created_at: string;
394
+ id: string;
395
+ name: string;
396
+ slug: string;
397
+ updated_at: string;
398
+ };
399
+ Insert: {
400
+ active?: boolean;
401
+ auth_type?: string;
402
+ base_url?: string | null;
403
+ created_at?: string;
404
+ id?: string;
405
+ name: string;
406
+ slug: string;
407
+ updated_at?: string;
408
+ };
409
+ Update: {
410
+ active?: boolean;
411
+ auth_type?: string;
412
+ base_url?: string | null;
413
+ created_at?: string;
414
+ id?: string;
415
+ name?: string;
416
+ slug?: string;
417
+ updated_at?: string;
418
+ };
419
+ Relationships: [];
420
+ };
262
421
  app_settings: {
263
422
  Row: {
264
423
  created_at: string;
@@ -886,6 +1045,141 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
886
1045
  };
887
1046
  Relationships: [];
888
1047
  };
1048
+ cart_planning_pick_times: {
1049
+ Row: {
1050
+ created_at: string;
1051
+ id: string;
1052
+ pot_size: string;
1053
+ seconds_per_cart: number;
1054
+ updated_at: string;
1055
+ };
1056
+ Insert: {
1057
+ created_at?: string;
1058
+ id?: string;
1059
+ pot_size: string;
1060
+ seconds_per_cart: number;
1061
+ updated_at?: string;
1062
+ };
1063
+ Update: {
1064
+ created_at?: string;
1065
+ id?: string;
1066
+ pot_size?: string;
1067
+ seconds_per_cart?: number;
1068
+ updated_at?: string;
1069
+ };
1070
+ Relationships: [];
1071
+ };
1072
+ cart_planning_product_overrides: {
1073
+ Row: {
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
+ Insert: {
1083
+ created_at?: string;
1084
+ id?: string;
1085
+ max_party_share_per_layer_pct_override?: number | null;
1086
+ never_mix?: boolean;
1087
+ notes?: string | null;
1088
+ product_id: string;
1089
+ updated_at?: string;
1090
+ };
1091
+ Update: {
1092
+ created_at?: string;
1093
+ id?: string;
1094
+ max_party_share_per_layer_pct_override?: number | null;
1095
+ never_mix?: boolean;
1096
+ notes?: string | null;
1097
+ product_id?: string;
1098
+ updated_at?: string;
1099
+ };
1100
+ Relationships: [{
1101
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1102
+ columns: ["product_id"];
1103
+ isOneToOne: true;
1104
+ referencedRelation: "products";
1105
+ referencedColumns: ["id"];
1106
+ }];
1107
+ };
1108
+ cart_planning_settings: {
1109
+ Row: {
1110
+ allow_editing_after_pickstation_send: boolean;
1111
+ buffer_grouping_mode: string;
1112
+ combine_floriday_orders: boolean;
1113
+ combine_floriday_orders_window: string;
1114
+ combine_orders_scope: string;
1115
+ default_workers: number;
1116
+ id: number;
1117
+ max_beladingen_per_layer: number;
1118
+ max_customers_per_cart: number;
1119
+ max_one_customer_per_layer: boolean;
1120
+ max_party_share_per_layer_pct: number;
1121
+ optimization_strategy: string;
1122
+ own_cart_from_layers: number;
1123
+ pick_time_mode: string;
1124
+ plants_per_day: number;
1125
+ plants_per_hour: number;
1126
+ require_same_carrier: boolean;
1127
+ require_same_crate_type: boolean;
1128
+ require_same_delivery_date: boolean;
1129
+ require_same_delivery_location: boolean;
1130
+ updated_at: string;
1131
+ updated_by: string | null;
1132
+ };
1133
+ Insert: {
1134
+ allow_editing_after_pickstation_send?: boolean;
1135
+ buffer_grouping_mode?: string;
1136
+ combine_floriday_orders?: boolean;
1137
+ combine_floriday_orders_window?: string;
1138
+ combine_orders_scope?: string;
1139
+ default_workers?: number;
1140
+ id?: number;
1141
+ max_beladingen_per_layer?: number;
1142
+ max_customers_per_cart?: number;
1143
+ max_one_customer_per_layer?: boolean;
1144
+ max_party_share_per_layer_pct?: number;
1145
+ optimization_strategy?: string;
1146
+ own_cart_from_layers?: number;
1147
+ pick_time_mode?: string;
1148
+ plants_per_day?: number;
1149
+ plants_per_hour?: number;
1150
+ require_same_carrier?: boolean;
1151
+ require_same_crate_type?: boolean;
1152
+ require_same_delivery_date?: boolean;
1153
+ require_same_delivery_location?: boolean;
1154
+ updated_at?: string;
1155
+ updated_by?: string | null;
1156
+ };
1157
+ Update: {
1158
+ allow_editing_after_pickstation_send?: boolean;
1159
+ buffer_grouping_mode?: string;
1160
+ combine_floriday_orders?: boolean;
1161
+ combine_floriday_orders_window?: string;
1162
+ combine_orders_scope?: string;
1163
+ default_workers?: number;
1164
+ id?: number;
1165
+ max_beladingen_per_layer?: number;
1166
+ max_customers_per_cart?: number;
1167
+ max_one_customer_per_layer?: boolean;
1168
+ max_party_share_per_layer_pct?: number;
1169
+ optimization_strategy?: string;
1170
+ own_cart_from_layers?: number;
1171
+ pick_time_mode?: string;
1172
+ plants_per_day?: number;
1173
+ plants_per_hour?: number;
1174
+ require_same_carrier?: boolean;
1175
+ require_same_crate_type?: boolean;
1176
+ require_same_delivery_date?: boolean;
1177
+ require_same_delivery_location?: boolean;
1178
+ updated_at?: string;
1179
+ updated_by?: string | null;
1180
+ };
1181
+ Relationships: [];
1182
+ };
889
1183
  cart_replan_queue: {
890
1184
  Row: {
891
1185
  attempts: number;
@@ -916,6 +1210,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
916
1210
  referencedColumns: ["id"];
917
1211
  }];
918
1212
  };
1213
+ cart_types: {
1214
+ Row: {
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
+ Insert: {
1225
+ created_at?: string;
1226
+ id?: string;
1227
+ is_default?: boolean;
1228
+ layer_length_cm: number;
1229
+ layer_width_cm: number;
1230
+ layers_per_cart?: number;
1231
+ name: string;
1232
+ updated_at?: string;
1233
+ };
1234
+ Update: {
1235
+ created_at?: string;
1236
+ id?: string;
1237
+ is_default?: boolean;
1238
+ layer_length_cm?: number;
1239
+ layer_width_cm?: number;
1240
+ layers_per_cart?: number;
1241
+ name?: string;
1242
+ updated_at?: string;
1243
+ };
1244
+ Relationships: [];
1245
+ };
919
1246
  collections: {
920
1247
  Row: {
921
1248
  created_at: string;
@@ -940,6 +1267,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
940
1267
  };
941
1268
  Relationships: [];
942
1269
  };
1270
+ crate_types: {
1271
+ Row: {
1272
+ created_at: string;
1273
+ id: string;
1274
+ length_cm: number;
1275
+ name: string;
1276
+ plants_per_crate: number;
1277
+ updated_at: string;
1278
+ width_cm: number;
1279
+ };
1280
+ Insert: {
1281
+ created_at?: string;
1282
+ id?: string;
1283
+ length_cm: number;
1284
+ name: string;
1285
+ plants_per_crate?: number;
1286
+ updated_at?: string;
1287
+ width_cm: number;
1288
+ };
1289
+ Update: {
1290
+ created_at?: string;
1291
+ id?: string;
1292
+ length_cm?: number;
1293
+ name?: string;
1294
+ plants_per_crate?: number;
1295
+ updated_at?: string;
1296
+ width_cm?: number;
1297
+ };
1298
+ Relationships: [];
1299
+ };
943
1300
  customer_audit_log: {
944
1301
  Row: {
945
1302
  action: string;
@@ -3265,127 +3622,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3265
3622
  referencedColumns: ["id"];
3266
3623
  }];
3267
3624
  };
3268
- floriday_agreement_calloffs_cache: {
3625
+ floriday_auction_letters_cache: {
3269
3626
  Row: {
3270
- agreement_id: string | null;
3627
+ auction_letter_code: string;
3628
+ clock_supply_id: string;
3271
3629
  connection_id: string;
3272
- data: import("../integrations/supabase/types").Json;
3273
- delivery_date: string | null;
3630
+ content_type: string;
3274
3631
  fetched_at: string;
3275
- floriday_id: string;
3276
3632
  id: string;
3277
- is_deleted: boolean;
3278
- sequence_number: number;
3279
- status: string | null;
3280
- updated_at: string;
3633
+ storage_path: string;
3281
3634
  };
3282
3635
  Insert: {
3283
- agreement_id?: string | null;
3636
+ auction_letter_code: string;
3637
+ clock_supply_id: string;
3284
3638
  connection_id: string;
3285
- data?: import("../integrations/supabase/types").Json;
3286
- delivery_date?: string | null;
3639
+ content_type?: string;
3287
3640
  fetched_at?: string;
3288
- floriday_id: string;
3289
3641
  id?: string;
3290
- is_deleted?: boolean;
3291
- sequence_number?: number;
3292
- status?: string | null;
3293
- updated_at?: string;
3642
+ storage_path: string;
3294
3643
  };
3295
3644
  Update: {
3296
- agreement_id?: string | null;
3297
- connection_id?: string;
3298
- data?: import("../integrations/supabase/types").Json;
3299
- delivery_date?: string | null;
3300
- fetched_at?: string;
3301
- floriday_id?: string;
3302
- id?: string;
3303
- is_deleted?: boolean;
3304
- sequence_number?: number;
3305
- status?: string | null;
3306
- updated_at?: string;
3307
- };
3308
- Relationships: [{
3309
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3310
- columns: ["connection_id"];
3311
- isOneToOne: false;
3312
- referencedRelation: "floriday_connections";
3313
- referencedColumns: ["id"];
3314
- }];
3315
- };
3316
- floriday_agreements_cache: {
3317
- Row: {
3318
- buyer_organization_id: string | null;
3319
- connection_id: string;
3320
- data: import("../integrations/supabase/types").Json;
3321
- fetched_at: string;
3322
- floriday_id: string;
3323
- id: string;
3324
- is_deleted: boolean;
3325
- sequence_number: number;
3326
- status: string | null;
3327
- updated_at: string;
3328
- valid_from: string | null;
3329
- valid_until: string | null;
3330
- };
3331
- Insert: {
3332
- buyer_organization_id?: string | null;
3333
- connection_id: string;
3334
- data?: import("../integrations/supabase/types").Json;
3335
- fetched_at?: string;
3336
- floriday_id: string;
3337
- id?: string;
3338
- is_deleted?: boolean;
3339
- sequence_number?: number;
3340
- status?: string | null;
3341
- updated_at?: string;
3342
- valid_from?: string | null;
3343
- valid_until?: string | null;
3344
- };
3345
- Update: {
3346
- buyer_organization_id?: string | null;
3347
- connection_id?: string;
3348
- data?: import("../integrations/supabase/types").Json;
3349
- fetched_at?: string;
3350
- floriday_id?: string;
3351
- id?: string;
3352
- is_deleted?: boolean;
3353
- sequence_number?: number;
3354
- status?: string | null;
3355
- updated_at?: string;
3356
- valid_from?: string | null;
3357
- valid_until?: string | null;
3358
- };
3359
- Relationships: [{
3360
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3361
- columns: ["connection_id"];
3362
- isOneToOne: false;
3363
- referencedRelation: "floriday_connections";
3364
- referencedColumns: ["id"];
3365
- }];
3366
- };
3367
- floriday_auction_letters_cache: {
3368
- Row: {
3369
- auction_letter_code: string;
3370
- clock_supply_id: string;
3371
- connection_id: string;
3372
- content_type: string;
3373
- fetched_at: string;
3374
- id: string;
3375
- storage_path: string;
3376
- };
3377
- Insert: {
3378
- auction_letter_code: string;
3379
- clock_supply_id: string;
3380
- connection_id: string;
3381
- content_type?: string;
3382
- fetched_at?: string;
3383
- id?: string;
3384
- storage_path: string;
3385
- };
3386
- Update: {
3387
- auction_letter_code?: string;
3388
- clock_supply_id?: string;
3645
+ auction_letter_code?: string;
3646
+ clock_supply_id?: string;
3389
3647
  connection_id?: string;
3390
3648
  content_type?: string;
3391
3649
  fetched_at?: string;
@@ -3862,6 +4120,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3862
4120
  referencedColumns: ["id"];
3863
4121
  }];
3864
4122
  };
4123
+ floriday_continuous_stock_cache: {
4124
+ Row: {
4125
+ connection_id: string;
4126
+ fetched_at: string;
4127
+ number_of_pieces: number;
4128
+ trade_item_id: string;
4129
+ };
4130
+ Insert: {
4131
+ connection_id: string;
4132
+ fetched_at?: string;
4133
+ number_of_pieces?: number;
4134
+ trade_item_id: string;
4135
+ };
4136
+ Update: {
4137
+ connection_id?: string;
4138
+ fetched_at?: string;
4139
+ number_of_pieces?: number;
4140
+ trade_item_id?: string;
4141
+ };
4142
+ Relationships: [];
4143
+ };
3865
4144
  floriday_continuous_stock_queue: {
3866
4145
  Row: {
3867
4146
  attempts: number;
@@ -4637,6 +4916,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4637
4916
  Row: {
4638
4917
  buyer_organization_id: string | null;
4639
4918
  connection_id: string;
4919
+ controlled_at: string | null;
4920
+ controlled_by: string | null;
4640
4921
  created_at: string;
4641
4922
  data: import("../integrations/supabase/types").Json;
4642
4923
  floriday_id: string;
@@ -4648,6 +4929,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4648
4929
  Insert: {
4649
4930
  buyer_organization_id?: string | null;
4650
4931
  connection_id: string;
4932
+ controlled_at?: string | null;
4933
+ controlled_by?: string | null;
4651
4934
  created_at?: string;
4652
4935
  data: import("../integrations/supabase/types").Json;
4653
4936
  floriday_id: string;
@@ -4659,6 +4942,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4659
4942
  Update: {
4660
4943
  buyer_organization_id?: string | null;
4661
4944
  connection_id?: string;
4945
+ controlled_at?: string | null;
4946
+ controlled_by?: string | null;
4662
4947
  created_at?: string;
4663
4948
  data?: import("../integrations/supabase/types").Json;
4664
4949
  floriday_id?: string;
@@ -4840,6 +5125,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4840
5125
  referencedColumns: ["id"];
4841
5126
  }];
4842
5127
  };
5128
+ floriday_trade_settings_customers_cache: {
5129
+ Row: {
5130
+ connection_id: string;
5131
+ data: import("../integrations/supabase/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
+ Insert: {
5140
+ connection_id: string;
5141
+ data: import("../integrations/supabase/types").Json;
5142
+ fetched_at?: string;
5143
+ floriday_id: string;
5144
+ id?: string;
5145
+ is_deleted?: boolean;
5146
+ sequence_number?: number;
5147
+ updated_at?: string;
5148
+ };
5149
+ Update: {
5150
+ connection_id?: string;
5151
+ data?: import("../integrations/supabase/types").Json;
5152
+ fetched_at?: string;
5153
+ floriday_id?: string;
5154
+ id?: string;
5155
+ is_deleted?: boolean;
5156
+ sequence_number?: number;
5157
+ updated_at?: string;
5158
+ };
5159
+ Relationships: [{
5160
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5161
+ columns: ["connection_id"];
5162
+ isOneToOne: false;
5163
+ referencedRelation: "floriday_connections";
5164
+ referencedColumns: ["id"];
5165
+ }];
5166
+ };
4843
5167
  floriday_trips_cache: {
4844
5168
  Row: {
4845
5169
  carrier_organization_id: string | null;
@@ -4888,6 +5212,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4888
5212
  referencedColumns: ["id"];
4889
5213
  }];
4890
5214
  };
5215
+ floriday_vbn_required_characteristics: {
5216
+ Row: {
5217
+ required_codes: string[];
5218
+ updated_at: string;
5219
+ updated_by: string | null;
5220
+ vbn_code: string;
5221
+ };
5222
+ Insert: {
5223
+ required_codes?: string[];
5224
+ updated_at?: string;
5225
+ updated_by?: string | null;
5226
+ vbn_code: string;
5227
+ };
5228
+ Update: {
5229
+ required_codes?: string[];
5230
+ updated_at?: string;
5231
+ updated_by?: string | null;
5232
+ vbn_code?: string;
5233
+ };
5234
+ Relationships: [];
5235
+ };
4891
5236
  floriday_warehouses_cache: {
4892
5237
  Row: {
4893
5238
  connection_id: string;
@@ -5590,115 +5935,394 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5590
5935
  };
5591
5936
  Relationships: [];
5592
5937
  };
5593
- mailbox_messages: {
5938
+ logistics_capacity_events: {
5594
5939
  Row: {
5595
- body_html: string | null;
5596
- body_text: string | null;
5597
- connection_id: string | null;
5940
+ available_carts: number;
5598
5941
  created_at: string;
5599
- error_message: string | null;
5600
- external_id: string | null;
5601
- from_email: string | null;
5602
- from_name: string | null;
5603
5942
  id: string;
5604
- message_id: string | null;
5605
- profile_id: string | null;
5606
- raw_size: number | null;
5607
- received_at: string | null;
5943
+ measures: import("../integrations/supabase/types").Json;
5944
+ note: string | null;
5945
+ outcome: string;
5946
+ required_carts: number;
5947
+ reserve_minutes: number;
5948
+ shortage_carts: number;
5608
5949
  status: string;
5609
- subject: string | null;
5610
- uid: number | null;
5611
- updated_at: string;
5950
+ user_id: string;
5612
5951
  };
5613
5952
  Insert: {
5614
- body_html?: string | null;
5615
- body_text?: string | null;
5616
- connection_id?: string | null;
5953
+ available_carts?: number;
5617
5954
  created_at?: string;
5618
- error_message?: string | null;
5619
- external_id?: string | null;
5620
- from_email?: string | null;
5621
- from_name?: string | null;
5622
5955
  id?: string;
5623
- message_id?: string | null;
5624
- profile_id?: string | null;
5625
- raw_size?: number | null;
5626
- received_at?: string | null;
5627
- status?: string;
5628
- subject?: string | null;
5629
- uid?: number | null;
5630
- updated_at?: string;
5956
+ measures?: import("../integrations/supabase/types").Json;
5957
+ note?: string | null;
5958
+ outcome?: string;
5959
+ required_carts?: number;
5960
+ reserve_minutes?: number;
5961
+ shortage_carts?: number;
5962
+ status: string;
5963
+ user_id: string;
5631
5964
  };
5632
5965
  Update: {
5633
- body_html?: string | null;
5634
- body_text?: string | null;
5635
- connection_id?: string | null;
5966
+ available_carts?: number;
5636
5967
  created_at?: string;
5637
- error_message?: string | null;
5638
- external_id?: string | null;
5639
- from_email?: string | null;
5640
- from_name?: string | null;
5641
5968
  id?: string;
5642
- message_id?: string | null;
5643
- profile_id?: string | null;
5644
- raw_size?: number | null;
5645
- received_at?: string | null;
5969
+ measures?: import("../integrations/supabase/types").Json;
5970
+ note?: string | null;
5971
+ outcome?: string;
5972
+ required_carts?: number;
5973
+ reserve_minutes?: number;
5974
+ shortage_carts?: number;
5646
5975
  status?: string;
5647
- subject?: string | null;
5648
- uid?: number | null;
5649
- updated_at?: string;
5976
+ user_id?: string;
5650
5977
  };
5651
- Relationships: [{
5652
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5653
- columns: ["connection_id"];
5654
- isOneToOne: false;
5655
- referencedRelation: "email_auth_connections";
5656
- referencedColumns: ["id"];
5657
- }, {
5658
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5659
- columns: ["connection_id"];
5660
- isOneToOne: false;
5661
- referencedRelation: "email_auth_connections_safe";
5662
- referencedColumns: ["id"];
5663
- }, {
5664
- foreignKeyName: "mailbox_messages_profile_id_fkey";
5665
- columns: ["profile_id"];
5666
- isOneToOne: false;
5667
- referencedRelation: "imap_profiles";
5668
- referencedColumns: ["id"];
5669
- }];
5978
+ Relationships: [];
5670
5979
  };
5671
- mailbox_order_proposals: {
5980
+ logistics_capacity_settings: {
5672
5981
  Row: {
5673
- confidence: number | null;
5674
5982
  created_at: string;
5675
- created_order_id: string | null;
5676
- delivery_date: string | null;
5677
- id: string;
5678
- matched_customer_id: string | null;
5679
- message_id: string;
5680
- notes: string | null;
5681
- order_number: string | null;
5682
- parsed_payload: import("../integrations/supabase/types").Json | null;
5683
- reviewed_at: string | null;
5684
- reviewed_by: string | null;
5685
- status: string;
5983
+ settings: import("../integrations/supabase/types").Json;
5686
5984
  updated_at: string;
5985
+ user_id: string;
5687
5986
  };
5688
5987
  Insert: {
5689
- confidence?: number | null;
5690
5988
  created_at?: string;
5691
- created_order_id?: string | null;
5692
- delivery_date?: string | null;
5693
- id?: string;
5694
- matched_customer_id?: string | null;
5695
- message_id: string;
5696
- notes?: string | null;
5697
- order_number?: string | null;
5698
- parsed_payload?: import("../integrations/supabase/types").Json | null;
5699
- reviewed_at?: string | null;
5700
- reviewed_by?: string | null;
5701
- status?: string;
5989
+ settings?: import("../integrations/supabase/types").Json;
5990
+ updated_at?: string;
5991
+ user_id: string;
5992
+ };
5993
+ Update: {
5994
+ created_at?: string;
5995
+ settings?: import("../integrations/supabase/types").Json;
5996
+ updated_at?: string;
5997
+ user_id?: string;
5998
+ };
5999
+ Relationships: [];
6000
+ };
6001
+ logistics_decisions: {
6002
+ Row: {
6003
+ created_at: string;
6004
+ explanation: string | null;
6005
+ id: string;
6006
+ input_snapshot: import("../integrations/supabase/types").Json;
6007
+ result: import("../integrations/supabase/types").Json;
6008
+ slot: string;
6009
+ strategy_id: string | null;
6010
+ subject_id: string;
6011
+ subject_type: string;
6012
+ user_id: string;
6013
+ };
6014
+ Insert: {
6015
+ created_at?: string;
6016
+ explanation?: string | null;
6017
+ id?: string;
6018
+ input_snapshot?: import("../integrations/supabase/types").Json;
6019
+ result?: import("../integrations/supabase/types").Json;
6020
+ slot: string;
6021
+ strategy_id?: string | null;
6022
+ subject_id: string;
6023
+ subject_type: string;
6024
+ user_id: string;
6025
+ };
6026
+ Update: {
6027
+ created_at?: string;
6028
+ explanation?: string | null;
6029
+ id?: string;
6030
+ input_snapshot?: import("../integrations/supabase/types").Json;
6031
+ result?: import("../integrations/supabase/types").Json;
6032
+ slot?: string;
6033
+ strategy_id?: string | null;
6034
+ subject_id?: string;
6035
+ subject_type?: string;
6036
+ user_id?: string;
6037
+ };
6038
+ Relationships: [{
6039
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
6040
+ columns: ["strategy_id"];
6041
+ isOneToOne: false;
6042
+ referencedRelation: "logistics_strategies";
6043
+ referencedColumns: ["id"];
6044
+ }];
6045
+ };
6046
+ logistics_formulas: {
6047
+ Row: {
6048
+ created_at: string;
6049
+ expression: string;
6050
+ id: string;
6051
+ notes: string | null;
6052
+ slot: string;
6053
+ strategy_id: string;
6054
+ updated_at: string;
6055
+ user_id: string;
6056
+ version: number;
6057
+ };
6058
+ Insert: {
6059
+ created_at?: string;
6060
+ expression?: string;
6061
+ id?: string;
6062
+ notes?: string | null;
6063
+ slot: string;
6064
+ strategy_id: string;
6065
+ updated_at?: string;
6066
+ user_id: string;
6067
+ version?: number;
6068
+ };
6069
+ Update: {
6070
+ created_at?: string;
6071
+ expression?: string;
6072
+ id?: string;
6073
+ notes?: string | null;
6074
+ slot?: string;
6075
+ strategy_id?: string;
6076
+ updated_at?: string;
6077
+ user_id?: string;
6078
+ version?: number;
6079
+ };
6080
+ Relationships: [{
6081
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
6082
+ columns: ["strategy_id"];
6083
+ isOneToOne: false;
6084
+ referencedRelation: "logistics_strategies";
6085
+ referencedColumns: ["id"];
6086
+ }];
6087
+ };
6088
+ logistics_strategies: {
6089
+ Row: {
6090
+ color: string;
6091
+ created_at: string;
6092
+ description: string | null;
6093
+ id: string;
6094
+ is_active: boolean;
6095
+ name: string;
6096
+ priority: number;
6097
+ updated_at: string;
6098
+ updated_by: string | null;
6099
+ user_id: string;
6100
+ version: number;
6101
+ };
6102
+ Insert: {
6103
+ color?: string;
6104
+ created_at?: string;
6105
+ description?: string | null;
6106
+ id?: string;
6107
+ is_active?: boolean;
6108
+ name: string;
6109
+ priority?: number;
6110
+ updated_at?: string;
6111
+ updated_by?: string | null;
6112
+ user_id: string;
6113
+ version?: number;
6114
+ };
6115
+ Update: {
6116
+ color?: string;
6117
+ created_at?: string;
6118
+ description?: string | null;
6119
+ id?: string;
6120
+ is_active?: boolean;
6121
+ name?: string;
6122
+ priority?: number;
6123
+ updated_at?: string;
6124
+ updated_by?: string | null;
6125
+ user_id?: string;
6126
+ version?: number;
6127
+ };
6128
+ Relationships: [];
6129
+ };
6130
+ logistics_strategy_schedules: {
6131
+ Row: {
6132
+ condition_expression: string | null;
6133
+ created_at: string;
6134
+ end_date: string | null;
6135
+ id: string;
6136
+ is_enabled: boolean;
6137
+ priority: number;
6138
+ rule_type: string;
6139
+ start_date: string | null;
6140
+ strategy_id: string;
6141
+ updated_at: string;
6142
+ user_id: string;
6143
+ };
6144
+ Insert: {
6145
+ condition_expression?: string | null;
6146
+ created_at?: string;
6147
+ end_date?: string | null;
6148
+ id?: string;
6149
+ is_enabled?: boolean;
6150
+ priority?: number;
6151
+ rule_type: string;
6152
+ start_date?: string | null;
6153
+ strategy_id: string;
6154
+ updated_at?: string;
6155
+ user_id: string;
6156
+ };
6157
+ Update: {
6158
+ condition_expression?: string | null;
6159
+ created_at?: string;
6160
+ end_date?: string | null;
6161
+ id?: string;
6162
+ is_enabled?: boolean;
6163
+ priority?: number;
6164
+ rule_type?: string;
6165
+ start_date?: string | null;
6166
+ strategy_id?: string;
6167
+ updated_at?: string;
6168
+ user_id?: string;
6169
+ };
6170
+ Relationships: [{
6171
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6172
+ columns: ["strategy_id"];
6173
+ isOneToOne: false;
6174
+ referencedRelation: "logistics_strategies";
6175
+ referencedColumns: ["id"];
6176
+ }];
6177
+ };
6178
+ logistics_variables: {
6179
+ Row: {
6180
+ created_at: string;
6181
+ default_value: string | null;
6182
+ description: string | null;
6183
+ id: string;
6184
+ is_builtin: boolean;
6185
+ key: string;
6186
+ label: string;
6187
+ updated_at: string;
6188
+ user_id: string;
6189
+ value_type: string;
6190
+ };
6191
+ Insert: {
6192
+ created_at?: string;
6193
+ default_value?: string | null;
6194
+ description?: string | null;
6195
+ id?: string;
6196
+ is_builtin?: boolean;
6197
+ key: string;
6198
+ label: string;
6199
+ updated_at?: string;
6200
+ user_id: string;
6201
+ value_type: string;
6202
+ };
6203
+ Update: {
6204
+ created_at?: string;
6205
+ default_value?: string | null;
6206
+ description?: string | null;
6207
+ id?: string;
6208
+ is_builtin?: boolean;
6209
+ key?: string;
6210
+ label?: string;
6211
+ updated_at?: string;
6212
+ user_id?: string;
6213
+ value_type?: string;
6214
+ };
6215
+ Relationships: [];
6216
+ };
6217
+ mailbox_messages: {
6218
+ Row: {
6219
+ body_html: string | null;
6220
+ body_text: string | null;
6221
+ connection_id: string | null;
6222
+ created_at: string;
6223
+ error_message: string | null;
6224
+ external_id: string | null;
6225
+ from_email: string | null;
6226
+ from_name: string | null;
6227
+ id: string;
6228
+ message_id: string | null;
6229
+ profile_id: string | null;
6230
+ raw_size: number | null;
6231
+ received_at: string | null;
6232
+ status: string;
6233
+ subject: string | null;
6234
+ uid: number | null;
6235
+ updated_at: string;
6236
+ };
6237
+ Insert: {
6238
+ body_html?: string | null;
6239
+ body_text?: string | null;
6240
+ connection_id?: string | null;
6241
+ created_at?: string;
6242
+ error_message?: string | null;
6243
+ external_id?: string | null;
6244
+ from_email?: string | null;
6245
+ from_name?: string | null;
6246
+ id?: string;
6247
+ message_id?: string | null;
6248
+ profile_id?: string | null;
6249
+ raw_size?: number | null;
6250
+ received_at?: string | null;
6251
+ status?: string;
6252
+ subject?: string | null;
6253
+ uid?: number | null;
6254
+ updated_at?: string;
6255
+ };
6256
+ Update: {
6257
+ body_html?: string | null;
6258
+ body_text?: string | null;
6259
+ connection_id?: string | null;
6260
+ created_at?: string;
6261
+ error_message?: string | null;
6262
+ external_id?: string | null;
6263
+ from_email?: string | null;
6264
+ from_name?: string | null;
6265
+ id?: string;
6266
+ message_id?: string | null;
6267
+ profile_id?: string | null;
6268
+ raw_size?: number | null;
6269
+ received_at?: string | null;
6270
+ status?: string;
6271
+ subject?: string | null;
6272
+ uid?: number | null;
6273
+ updated_at?: string;
6274
+ };
6275
+ Relationships: [{
6276
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6277
+ columns: ["connection_id"];
6278
+ isOneToOne: false;
6279
+ referencedRelation: "email_auth_connections";
6280
+ referencedColumns: ["id"];
6281
+ }, {
6282
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6283
+ columns: ["connection_id"];
6284
+ isOneToOne: false;
6285
+ referencedRelation: "email_auth_connections_safe";
6286
+ referencedColumns: ["id"];
6287
+ }, {
6288
+ foreignKeyName: "mailbox_messages_profile_id_fkey";
6289
+ columns: ["profile_id"];
6290
+ isOneToOne: false;
6291
+ referencedRelation: "imap_profiles";
6292
+ referencedColumns: ["id"];
6293
+ }];
6294
+ };
6295
+ mailbox_order_proposals: {
6296
+ Row: {
6297
+ confidence: number | null;
6298
+ created_at: string;
6299
+ created_order_id: string | null;
6300
+ delivery_date: string | null;
6301
+ id: string;
6302
+ matched_customer_id: string | null;
6303
+ message_id: string;
6304
+ notes: string | null;
6305
+ order_number: string | null;
6306
+ parsed_payload: import("../integrations/supabase/types").Json | null;
6307
+ reviewed_at: string | null;
6308
+ reviewed_by: string | null;
6309
+ status: string;
6310
+ updated_at: string;
6311
+ };
6312
+ Insert: {
6313
+ confidence?: number | null;
6314
+ created_at?: string;
6315
+ created_order_id?: string | null;
6316
+ delivery_date?: string | null;
6317
+ id?: string;
6318
+ matched_customer_id?: string | null;
6319
+ message_id: string;
6320
+ notes?: string | null;
6321
+ order_number?: string | null;
6322
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
6323
+ reviewed_at?: string | null;
6324
+ reviewed_by?: string | null;
6325
+ status?: string;
5702
6326
  updated_at?: string;
5703
6327
  };
5704
6328
  Update: {
@@ -5985,39 +6609,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5985
6609
  };
5986
6610
  manufacture_products: {
5987
6611
  Row: {
6612
+ aantal_te_produceren: number;
5988
6613
  created_at: string;
5989
6614
  description: string | null;
5990
6615
  id: string;
5991
6616
  is_active: boolean;
6617
+ location_id: string | null;
5992
6618
  name: string;
6619
+ partij_nummer: string | null;
6620
+ photos: import("../integrations/supabase/types").Json;
5993
6621
  produced_stock: number;
5994
6622
  product_code: string;
5995
6623
  tenant_id: string;
6624
+ unit: string;
5996
6625
  updated_at: string;
5997
6626
  };
5998
6627
  Insert: {
6628
+ aantal_te_produceren?: number;
5999
6629
  created_at?: string;
6000
6630
  description?: string | null;
6001
6631
  id?: string;
6002
6632
  is_active?: boolean;
6633
+ location_id?: string | null;
6003
6634
  name: string;
6635
+ partij_nummer?: string | null;
6636
+ photos?: import("../integrations/supabase/types").Json;
6004
6637
  produced_stock?: number;
6005
6638
  product_code: string;
6006
6639
  tenant_id: string;
6640
+ unit?: string;
6007
6641
  updated_at?: string;
6008
6642
  };
6009
6643
  Update: {
6644
+ aantal_te_produceren?: number;
6010
6645
  created_at?: string;
6011
6646
  description?: string | null;
6012
6647
  id?: string;
6013
6648
  is_active?: boolean;
6649
+ location_id?: string | null;
6014
6650
  name?: string;
6651
+ partij_nummer?: string | null;
6652
+ photos?: import("../integrations/supabase/types").Json;
6015
6653
  produced_stock?: number;
6016
6654
  product_code?: string;
6017
6655
  tenant_id?: string;
6656
+ unit?: string;
6018
6657
  updated_at?: string;
6019
6658
  };
6020
- Relationships: [];
6659
+ Relationships: [{
6660
+ foreignKeyName: "manufacture_products_location_id_fkey";
6661
+ columns: ["location_id"];
6662
+ isOneToOne: false;
6663
+ referencedRelation: "locations";
6664
+ referencedColumns: ["id"];
6665
+ }];
6021
6666
  };
6022
6667
  monteurs: {
6023
6668
  Row: {
@@ -6748,6 +7393,42 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6748
7393
  };
6749
7394
  Relationships: [];
6750
7395
  };
7396
+ order_buffers: {
7397
+ Row: {
7398
+ buffer_key: string;
7399
+ created_at: string;
7400
+ customer_id: string | null;
7401
+ grouping_mode: string;
7402
+ id: string;
7403
+ pickup_date: string | null;
7404
+ pickup_location: string | null;
7405
+ plan_locked_at: string | null;
7406
+ updated_at: string;
7407
+ };
7408
+ Insert: {
7409
+ buffer_key: string;
7410
+ created_at?: string;
7411
+ customer_id?: string | null;
7412
+ grouping_mode: string;
7413
+ id?: string;
7414
+ pickup_date?: string | null;
7415
+ pickup_location?: string | null;
7416
+ plan_locked_at?: string | null;
7417
+ updated_at?: string;
7418
+ };
7419
+ Update: {
7420
+ buffer_key?: string;
7421
+ created_at?: string;
7422
+ customer_id?: string | null;
7423
+ grouping_mode?: string;
7424
+ id?: string;
7425
+ pickup_date?: string | null;
7426
+ pickup_location?: string | null;
7427
+ plan_locked_at?: string | null;
7428
+ updated_at?: string;
7429
+ };
7430
+ Relationships: [];
7431
+ };
6751
7432
  order_cart_items: {
6752
7433
  Row: {
6753
7434
  cart_id: string;
@@ -6814,6 +7495,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6814
7495
  order_carts: {
6815
7496
  Row: {
6816
7497
  algorithm_version: number;
7498
+ buffer_id: string | null;
6817
7499
  cart_number: number;
6818
7500
  created_at: string;
6819
7501
  id: string;
@@ -6821,13 +7503,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6821
7503
  is_complete: boolean;
6822
7504
  notes: string | null;
6823
7505
  occupancy_pct: number;
6824
- order_id: string;
7506
+ order_id: string | null;
6825
7507
  source: string;
6826
7508
  total_layers_used: number;
6827
7509
  updated_at: string;
6828
7510
  };
6829
7511
  Insert: {
6830
7512
  algorithm_version?: number;
7513
+ buffer_id?: string | null;
6831
7514
  cart_number: number;
6832
7515
  created_at?: string;
6833
7516
  id?: string;
@@ -6835,13 +7518,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6835
7518
  is_complete?: boolean;
6836
7519
  notes?: string | null;
6837
7520
  occupancy_pct?: number;
6838
- order_id: string;
7521
+ order_id?: string | null;
6839
7522
  source?: string;
6840
7523
  total_layers_used?: number;
6841
7524
  updated_at?: string;
6842
7525
  };
6843
7526
  Update: {
6844
7527
  algorithm_version?: number;
7528
+ buffer_id?: string | null;
6845
7529
  cart_number?: number;
6846
7530
  created_at?: string;
6847
7531
  id?: string;
@@ -6849,12 +7533,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6849
7533
  is_complete?: boolean;
6850
7534
  notes?: string | null;
6851
7535
  occupancy_pct?: number;
6852
- order_id?: string;
7536
+ order_id?: string | null;
6853
7537
  source?: string;
6854
7538
  total_layers_used?: number;
6855
7539
  updated_at?: string;
6856
7540
  };
6857
7541
  Relationships: [{
7542
+ foreignKeyName: "order_carts_buffer_id_fkey";
7543
+ columns: ["buffer_id"];
7544
+ isOneToOne: false;
7545
+ referencedRelation: "order_buffers";
7546
+ referencedColumns: ["id"];
7547
+ }, {
6858
7548
  foreignKeyName: "order_carts_order_id_fkey";
6859
7549
  columns: ["order_id"];
6860
7550
  isOneToOne: false;
@@ -6953,53 +7643,155 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6953
7643
  created_at?: string;
6954
7644
  id?: string;
6955
7645
  order_id?: string;
6956
- product_id?: string | null;
6957
- product_name?: string;
6958
- quantity?: number;
6959
- unit?: string;
6960
- unit_price?: number | null;
7646
+ product_id?: string | null;
7647
+ product_name?: string;
7648
+ quantity?: number;
7649
+ unit?: string;
7650
+ unit_price?: number | null;
7651
+ };
7652
+ Relationships: [{
7653
+ foreignKeyName: "order_items_order_id_fkey";
7654
+ columns: ["order_id"];
7655
+ isOneToOne: false;
7656
+ referencedRelation: "orders";
7657
+ referencedColumns: ["id"];
7658
+ }, {
7659
+ foreignKeyName: "order_items_product_id_fkey";
7660
+ columns: ["product_id"];
7661
+ isOneToOne: false;
7662
+ referencedRelation: "products";
7663
+ referencedColumns: ["id"];
7664
+ }];
7665
+ };
7666
+ order_number_counters: {
7667
+ Row: {
7668
+ last_value: number;
7669
+ updated_at: string;
7670
+ year: number;
7671
+ };
7672
+ Insert: {
7673
+ last_value?: number;
7674
+ updated_at?: string;
7675
+ year: number;
7676
+ };
7677
+ Update: {
7678
+ last_value?: number;
7679
+ updated_at?: string;
7680
+ year?: number;
7681
+ };
7682
+ Relationships: [];
7683
+ };
7684
+ order_shipment_items: {
7685
+ Row: {
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
+ Insert: {
7696
+ created_at?: string;
7697
+ id?: string;
7698
+ order_item_id: string;
7699
+ product_id?: string | null;
7700
+ product_name: string;
7701
+ quantity: number;
7702
+ shipment_id: string;
7703
+ updated_at?: string;
7704
+ };
7705
+ Update: {
7706
+ created_at?: string;
7707
+ id?: string;
7708
+ order_item_id?: string;
7709
+ product_id?: string | null;
7710
+ product_name?: string;
7711
+ quantity?: number;
7712
+ shipment_id?: string;
7713
+ updated_at?: string;
7714
+ };
7715
+ Relationships: [{
7716
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7717
+ columns: ["order_item_id"];
7718
+ isOneToOne: false;
7719
+ referencedRelation: "order_items";
7720
+ referencedColumns: ["id"];
7721
+ }, {
7722
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7723
+ columns: ["shipment_id"];
7724
+ isOneToOne: false;
7725
+ referencedRelation: "order_shipments";
7726
+ referencedColumns: ["id"];
7727
+ }];
7728
+ };
7729
+ order_shipments: {
7730
+ Row: {
7731
+ carrier_id: string | null;
7732
+ created_at: string;
7733
+ delivery_date: string | null;
7734
+ delivery_location_id: string | null;
7735
+ id: string;
7736
+ notes: string | null;
7737
+ order_id: string;
7738
+ shipment_number: number;
7739
+ shipped_at: string | null;
7740
+ status: string;
7741
+ updated_at: string;
7742
+ };
7743
+ Insert: {
7744
+ carrier_id?: string | null;
7745
+ created_at?: string;
7746
+ delivery_date?: string | null;
7747
+ delivery_location_id?: string | null;
7748
+ id?: string;
7749
+ notes?: string | null;
7750
+ order_id: string;
7751
+ shipment_number: number;
7752
+ shipped_at?: string | null;
7753
+ status?: string;
7754
+ updated_at?: string;
7755
+ };
7756
+ Update: {
7757
+ carrier_id?: string | null;
7758
+ created_at?: string;
7759
+ delivery_date?: string | null;
7760
+ delivery_location_id?: string | null;
7761
+ id?: string;
7762
+ notes?: string | null;
7763
+ order_id?: string;
7764
+ shipment_number?: number;
7765
+ shipped_at?: string | null;
7766
+ status?: string;
7767
+ updated_at?: string;
6961
7768
  };
6962
7769
  Relationships: [{
6963
- foreignKeyName: "order_items_order_id_fkey";
6964
- columns: ["order_id"];
7770
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7771
+ columns: ["carrier_id"];
6965
7772
  isOneToOne: false;
6966
- referencedRelation: "orders";
7773
+ referencedRelation: "carriers";
6967
7774
  referencedColumns: ["id"];
6968
7775
  }, {
6969
- foreignKeyName: "order_items_product_id_fkey";
6970
- columns: ["product_id"];
7776
+ foreignKeyName: "order_shipments_order_id_fkey";
7777
+ columns: ["order_id"];
6971
7778
  isOneToOne: false;
6972
- referencedRelation: "products";
7779
+ referencedRelation: "orders";
6973
7780
  referencedColumns: ["id"];
6974
7781
  }];
6975
7782
  };
6976
- order_number_counters: {
6977
- Row: {
6978
- last_value: number;
6979
- updated_at: string;
6980
- year: number;
6981
- };
6982
- Insert: {
6983
- last_value?: number;
6984
- updated_at?: string;
6985
- year: number;
6986
- };
6987
- Update: {
6988
- last_value?: number;
6989
- updated_at?: string;
6990
- year?: number;
6991
- };
6992
- Relationships: [];
6993
- };
6994
7783
  orders: {
6995
7784
  Row: {
7785
+ buffer_id: string | null;
6996
7786
  created_at: string;
6997
7787
  custom_fields: import("../integrations/supabase/types").Json;
6998
7788
  customer_id: string | null;
6999
7789
  customer_name: string;
7000
7790
  deleted_at: string | null;
7001
- delivery_date: string;
7791
+ delivery_date: string | null;
7792
+ floriday_sales_order_id: string | null;
7002
7793
  id: string;
7794
+ is_reservation: boolean;
7003
7795
  notes: string | null;
7004
7796
  order_date: string;
7005
7797
  order_number: string;
@@ -7011,13 +7803,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7011
7803
  updated_at: string;
7012
7804
  };
7013
7805
  Insert: {
7806
+ buffer_id?: string | null;
7014
7807
  created_at?: string;
7015
7808
  custom_fields?: import("../integrations/supabase/types").Json;
7016
7809
  customer_id?: string | null;
7017
7810
  customer_name?: string;
7018
7811
  deleted_at?: string | null;
7019
- delivery_date: string;
7812
+ delivery_date?: string | null;
7813
+ floriday_sales_order_id?: string | null;
7020
7814
  id?: string;
7815
+ is_reservation?: boolean;
7021
7816
  notes?: string | null;
7022
7817
  order_date?: string;
7023
7818
  order_number: string;
@@ -7029,13 +7824,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7029
7824
  updated_at?: string;
7030
7825
  };
7031
7826
  Update: {
7827
+ buffer_id?: string | null;
7032
7828
  created_at?: string;
7033
7829
  custom_fields?: import("../integrations/supabase/types").Json;
7034
7830
  customer_id?: string | null;
7035
7831
  customer_name?: string;
7036
7832
  deleted_at?: string | null;
7037
- delivery_date?: string;
7833
+ delivery_date?: string | null;
7834
+ floriday_sales_order_id?: string | null;
7038
7835
  id?: string;
7836
+ is_reservation?: boolean;
7039
7837
  notes?: string | null;
7040
7838
  order_date?: string;
7041
7839
  order_number?: string;
@@ -7047,6 +7845,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7047
7845
  updated_at?: string;
7048
7846
  };
7049
7847
  Relationships: [{
7848
+ foreignKeyName: "orders_buffer_id_fkey";
7849
+ columns: ["buffer_id"];
7850
+ isOneToOne: false;
7851
+ referencedRelation: "order_buffers";
7852
+ referencedColumns: ["id"];
7853
+ }, {
7050
7854
  foreignKeyName: "orders_customer_id_fkey";
7051
7855
  columns: ["customer_id"];
7052
7856
  isOneToOne: false;
@@ -7177,6 +7981,66 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7177
7981
  };
7178
7982
  Relationships: [];
7179
7983
  };
7984
+ product_bom_items: {
7985
+ Row: {
7986
+ component_product_id: string | null;
7987
+ component_trade_item_floriday_id: string | null;
7988
+ created_at: string;
7989
+ id: string;
7990
+ notes: string | null;
7991
+ packing_configuration_id: string | null;
7992
+ parent_product_id: string | null;
7993
+ parent_trade_item_floriday_id: string | null;
7994
+ quantity: number;
7995
+ sort_order: number;
7996
+ tenant_id: string;
7997
+ unit: string;
7998
+ updated_at: string;
7999
+ };
8000
+ Insert: {
8001
+ component_product_id?: string | null;
8002
+ component_trade_item_floriday_id?: string | null;
8003
+ created_at?: string;
8004
+ id?: string;
8005
+ notes?: string | null;
8006
+ packing_configuration_id?: string | null;
8007
+ parent_product_id?: string | null;
8008
+ parent_trade_item_floriday_id?: string | null;
8009
+ quantity?: number;
8010
+ sort_order?: number;
8011
+ tenant_id: string;
8012
+ unit?: string;
8013
+ updated_at?: string;
8014
+ };
8015
+ Update: {
8016
+ component_product_id?: string | null;
8017
+ component_trade_item_floriday_id?: string | null;
8018
+ created_at?: string;
8019
+ id?: string;
8020
+ notes?: string | null;
8021
+ packing_configuration_id?: string | null;
8022
+ parent_product_id?: string | null;
8023
+ parent_trade_item_floriday_id?: string | null;
8024
+ quantity?: number;
8025
+ sort_order?: number;
8026
+ tenant_id?: string;
8027
+ unit?: string;
8028
+ updated_at?: string;
8029
+ };
8030
+ Relationships: [{
8031
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8032
+ columns: ["component_product_id"];
8033
+ isOneToOne: false;
8034
+ referencedRelation: "products";
8035
+ referencedColumns: ["id"];
8036
+ }, {
8037
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8038
+ columns: ["parent_product_id"];
8039
+ isOneToOne: false;
8040
+ referencedRelation: "products";
8041
+ referencedColumns: ["id"];
8042
+ }];
8043
+ };
7180
8044
  product_categories: {
7181
8045
  Row: {
7182
8046
  color: string;
@@ -7282,6 +8146,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7282
8146
  id: string;
7283
8147
  product_group_id: string;
7284
8148
  quantity: number;
8149
+ sort_order: number;
7285
8150
  trade_item_id: string;
7286
8151
  };
7287
8152
  Insert: {
@@ -7289,6 +8154,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7289
8154
  id?: string;
7290
8155
  product_group_id: string;
7291
8156
  quantity?: number;
8157
+ sort_order?: number;
7292
8158
  trade_item_id: string;
7293
8159
  };
7294
8160
  Update: {
@@ -7296,6 +8162,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7296
8162
  id?: string;
7297
8163
  product_group_id?: string;
7298
8164
  quantity?: number;
8165
+ sort_order?: number;
7299
8166
  trade_item_id?: string;
7300
8167
  };
7301
8168
  Relationships: [{
@@ -7310,6 +8177,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7310
8177
  Row: {
7311
8178
  created_at: string;
7312
8179
  description: string | null;
8180
+ head_product_id: string | null;
8181
+ head_trade_item_floriday_id: string | null;
7313
8182
  id: string;
7314
8183
  is_active: boolean;
7315
8184
  name: string;
@@ -7319,6 +8188,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7319
8188
  Insert: {
7320
8189
  created_at?: string;
7321
8190
  description?: string | null;
8191
+ head_product_id?: string | null;
8192
+ head_trade_item_floriday_id?: string | null;
7322
8193
  id?: string;
7323
8194
  is_active?: boolean;
7324
8195
  name: string;
@@ -7328,24 +8199,136 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7328
8199
  Update: {
7329
8200
  created_at?: string;
7330
8201
  description?: string | null;
8202
+ head_product_id?: string | null;
8203
+ head_trade_item_floriday_id?: string | null;
7331
8204
  id?: string;
7332
8205
  is_active?: boolean;
7333
8206
  name?: string;
7334
8207
  tenant_id?: string;
7335
8208
  updated_at?: string;
7336
8209
  };
8210
+ Relationships: [{
8211
+ foreignKeyName: "product_groups_head_product_id_fkey";
8212
+ columns: ["head_product_id"];
8213
+ isOneToOne: false;
8214
+ referencedRelation: "products";
8215
+ referencedColumns: ["id"];
8216
+ }];
8217
+ };
8218
+ product_load_settings: {
8219
+ Row: {
8220
+ created_at: string;
8221
+ id: string;
8222
+ is_package: boolean;
8223
+ label: string | null;
8224
+ layers_per_load_carrier: number | null;
8225
+ load_carrier: string | null;
8226
+ package_id: string | null;
8227
+ package_label: string | null;
8228
+ packages_per_layer: number | null;
8229
+ packing_configuration_id: string;
8230
+ product_id: string | null;
8231
+ tenant_id: string;
8232
+ trade_item_floriday_id: string | null;
8233
+ units_per_package: number | null;
8234
+ updated_at: string;
8235
+ };
8236
+ Insert: {
8237
+ created_at?: string;
8238
+ id?: string;
8239
+ is_package?: boolean;
8240
+ label?: string | null;
8241
+ layers_per_load_carrier?: number | null;
8242
+ load_carrier?: string | null;
8243
+ package_id?: string | null;
8244
+ package_label?: string | null;
8245
+ packages_per_layer?: number | null;
8246
+ packing_configuration_id?: string;
8247
+ product_id?: string | null;
8248
+ tenant_id: string;
8249
+ trade_item_floriday_id?: string | null;
8250
+ units_per_package?: number | null;
8251
+ updated_at?: string;
8252
+ };
8253
+ Update: {
8254
+ created_at?: string;
8255
+ id?: string;
8256
+ is_package?: boolean;
8257
+ label?: string | null;
8258
+ layers_per_load_carrier?: number | null;
8259
+ load_carrier?: string | null;
8260
+ package_id?: string | null;
8261
+ package_label?: string | null;
8262
+ packages_per_layer?: number | null;
8263
+ packing_configuration_id?: string;
8264
+ product_id?: string | null;
8265
+ tenant_id?: string;
8266
+ trade_item_floriday_id?: string | null;
8267
+ units_per_package?: number | null;
8268
+ updated_at?: string;
8269
+ };
8270
+ Relationships: [{
8271
+ foreignKeyName: "product_load_settings_package_id_fkey";
8272
+ columns: ["package_id"];
8273
+ isOneToOne: false;
8274
+ referencedRelation: "packages";
8275
+ referencedColumns: ["id"];
8276
+ }, {
8277
+ foreignKeyName: "product_load_settings_product_id_fkey";
8278
+ columns: ["product_id"];
8279
+ isOneToOne: false;
8280
+ referencedRelation: "products";
8281
+ referencedColumns: ["id"];
8282
+ }];
8283
+ };
8284
+ product_merge_log: {
8285
+ Row: {
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("../integrations/supabase/types").Json;
8292
+ source_table: string;
8293
+ status: string;
8294
+ };
8295
+ Insert: {
8296
+ canonical_product_id?: string | null;
8297
+ id?: string;
8298
+ merged_at?: string;
8299
+ merged_from_id: string;
8300
+ notes?: string | null;
8301
+ snapshot?: import("../integrations/supabase/types").Json;
8302
+ source_table: string;
8303
+ status?: string;
8304
+ };
8305
+ Update: {
8306
+ canonical_product_id?: string | null;
8307
+ id?: string;
8308
+ merged_at?: string;
8309
+ merged_from_id?: string;
8310
+ notes?: string | null;
8311
+ snapshot?: import("../integrations/supabase/types").Json;
8312
+ source_table?: string;
8313
+ status?: string;
8314
+ };
7337
8315
  Relationships: [];
7338
8316
  };
7339
8317
  products: {
7340
8318
  Row: {
8319
+ article_number: string | null;
7341
8320
  barcode: string | null;
7342
8321
  batch: string;
7343
8322
  crates_per_layer: number;
7344
8323
  created_at: string;
7345
8324
  custom_fields: import("../integrations/supabase/types").Json;
8325
+ floriday_active: boolean;
8326
+ floriday_payload: import("../integrations/supabase/types").Json;
8327
+ floriday_trade_item_id: string | null;
7346
8328
  id: string;
7347
8329
  image_url: string | null;
7348
8330
  incoming_quantity: number;
8331
+ is_layer: boolean;
7349
8332
  layers_per_cart: number;
7350
8333
  location: string;
7351
8334
  min_quantity: number;
@@ -7358,17 +8341,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7358
8341
  trade_item_key: string | null;
7359
8342
  unit: string;
7360
8343
  updated_at: string;
8344
+ vat_code: string | null;
8345
+ vat_rate: number | null;
7361
8346
  weight: string | null;
7362
8347
  };
7363
8348
  Insert: {
8349
+ article_number?: string | null;
7364
8350
  barcode?: string | null;
7365
8351
  batch: string;
7366
8352
  crates_per_layer?: number;
7367
8353
  created_at?: string;
7368
8354
  custom_fields?: import("../integrations/supabase/types").Json;
8355
+ floriday_active?: boolean;
8356
+ floriday_payload?: import("../integrations/supabase/types").Json;
8357
+ floriday_trade_item_id?: string | null;
7369
8358
  id?: string;
7370
8359
  image_url?: string | null;
7371
8360
  incoming_quantity?: number;
8361
+ is_layer?: boolean;
7372
8362
  layers_per_cart?: number;
7373
8363
  location: string;
7374
8364
  min_quantity?: number;
@@ -7381,17 +8371,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7381
8371
  trade_item_key?: string | null;
7382
8372
  unit?: string;
7383
8373
  updated_at?: string;
8374
+ vat_code?: string | null;
8375
+ vat_rate?: number | null;
7384
8376
  weight?: string | null;
7385
8377
  };
7386
8378
  Update: {
8379
+ article_number?: string | null;
7387
8380
  barcode?: string | null;
7388
8381
  batch?: string;
7389
8382
  crates_per_layer?: number;
7390
8383
  created_at?: string;
7391
8384
  custom_fields?: import("../integrations/supabase/types").Json;
8385
+ floriday_active?: boolean;
8386
+ floriday_payload?: import("../integrations/supabase/types").Json;
8387
+ floriday_trade_item_id?: string | null;
7392
8388
  id?: string;
7393
8389
  image_url?: string | null;
7394
8390
  incoming_quantity?: number;
8391
+ is_layer?: boolean;
7395
8392
  layers_per_cart?: number;
7396
8393
  location?: string;
7397
8394
  min_quantity?: number;
@@ -7404,6 +8401,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7404
8401
  trade_item_key?: string | null;
7405
8402
  unit?: string;
7406
8403
  updated_at?: string;
8404
+ vat_code?: string | null;
8405
+ vat_rate?: number | null;
7407
8406
  weight?: string | null;
7408
8407
  };
7409
8408
  Relationships: [];
@@ -8297,8 +9296,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8297
9296
  order_id: string | null;
8298
9297
  order_item_id: string | null;
8299
9298
  order_source: string | null;
9299
+ parent_trade_item_key: string | null;
8300
9300
  physical_after: number | null;
8301
9301
  physical_before: number | null;
9302
+ production_batch_id: string | null;
8302
9303
  qty_delta: number;
8303
9304
  reason: string | null;
8304
9305
  reserved_after: number | null;
@@ -8314,8 +9315,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8314
9315
  order_id?: string | null;
8315
9316
  order_item_id?: string | null;
8316
9317
  order_source?: string | null;
9318
+ parent_trade_item_key?: string | null;
8317
9319
  physical_after?: number | null;
8318
9320
  physical_before?: number | null;
9321
+ production_batch_id?: string | null;
8319
9322
  qty_delta: number;
8320
9323
  reason?: string | null;
8321
9324
  reserved_after?: number | null;
@@ -8331,8 +9334,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8331
9334
  order_id?: string | null;
8332
9335
  order_item_id?: string | null;
8333
9336
  order_source?: string | null;
9337
+ parent_trade_item_key?: string | null;
8334
9338
  physical_after?: number | null;
8335
9339
  physical_before?: number | null;
9340
+ production_batch_id?: string | null;
8336
9341
  qty_delta?: number;
8337
9342
  reason?: string | null;
8338
9343
  reserved_after?: number | null;
@@ -8638,6 +9643,48 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8638
9643
  };
8639
9644
  Relationships: [];
8640
9645
  };
9646
+ trade_item_prices: {
9647
+ Row: {
9648
+ created_at: string;
9649
+ currency: string;
9650
+ id: string;
9651
+ last_push_error: string | null;
9652
+ last_pushed_at: string | null;
9653
+ price_group_id: string | null;
9654
+ price_per_piece: number;
9655
+ supply_line_id: string | null;
9656
+ trade_item_key: string;
9657
+ updated_at: string;
9658
+ user_id: string;
9659
+ };
9660
+ Insert: {
9661
+ created_at?: string;
9662
+ currency?: string;
9663
+ id?: string;
9664
+ last_push_error?: string | null;
9665
+ last_pushed_at?: string | null;
9666
+ price_group_id?: string | null;
9667
+ price_per_piece: number;
9668
+ supply_line_id?: string | null;
9669
+ trade_item_key: string;
9670
+ updated_at?: string;
9671
+ user_id: string;
9672
+ };
9673
+ Update: {
9674
+ created_at?: string;
9675
+ currency?: string;
9676
+ id?: string;
9677
+ last_push_error?: string | null;
9678
+ last_pushed_at?: string | null;
9679
+ price_group_id?: string | null;
9680
+ price_per_piece?: number;
9681
+ supply_line_id?: string | null;
9682
+ trade_item_key?: string;
9683
+ updated_at?: string;
9684
+ user_id?: string;
9685
+ };
9686
+ Relationships: [];
9687
+ };
8641
9688
  trade_item_stock: {
8642
9689
  Row: {
8643
9690
  connection_id: string;
@@ -8791,7 +9838,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8791
9838
  twinfield_connections: {
8792
9839
  Row: {
8793
9840
  access_token: string | null;
8794
- client_id: string;
9841
+ client_id: string | null;
8795
9842
  client_secret: string | null;
8796
9843
  cluster_uri: string | null;
8797
9844
  company_code: string | null;
@@ -8803,7 +9850,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8803
9850
  is_active: boolean;
8804
9851
  label: string | null;
8805
9852
  office_code: string | null;
8806
- redirect_uri: string;
9853
+ redirect_uri: string | null;
8807
9854
  refresh_token: string | null;
8808
9855
  token_expires_at: string | null;
8809
9856
  updated_at: string;
@@ -8811,7 +9858,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8811
9858
  };
8812
9859
  Insert: {
8813
9860
  access_token?: string | null;
8814
- client_id: string;
9861
+ client_id?: string | null;
8815
9862
  client_secret?: string | null;
8816
9863
  cluster_uri?: string | null;
8817
9864
  company_code?: string | null;
@@ -8823,7 +9870,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8823
9870
  is_active?: boolean;
8824
9871
  label?: string | null;
8825
9872
  office_code?: string | null;
8826
- redirect_uri: string;
9873
+ redirect_uri?: string | null;
8827
9874
  refresh_token?: string | null;
8828
9875
  token_expires_at?: string | null;
8829
9876
  updated_at?: string;
@@ -8831,7 +9878,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8831
9878
  };
8832
9879
  Update: {
8833
9880
  access_token?: string | null;
8834
- client_id?: string;
9881
+ client_id?: string | null;
8835
9882
  client_secret?: string | null;
8836
9883
  cluster_uri?: string | null;
8837
9884
  company_code?: string | null;
@@ -8843,7 +9890,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8843
9890
  is_active?: boolean;
8844
9891
  label?: string | null;
8845
9892
  office_code?: string | null;
8846
- redirect_uri?: string;
9893
+ redirect_uri?: string | null;
8847
9894
  refresh_token?: string | null;
8848
9895
  token_expires_at?: string | null;
8849
9896
  updated_at?: string;
@@ -9100,6 +10147,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9100
10147
  referencedColumns: ["id"];
9101
10148
  }];
9102
10149
  };
10150
+ twinfield_invoice_pdf_cache: {
10151
+ Row: {
10152
+ connection_id: string;
10153
+ created_at: string;
10154
+ fetched_at: string;
10155
+ id: string;
10156
+ invoice_number: string;
10157
+ last_accessed_at: string;
10158
+ object_path: string;
10159
+ office_code: string;
10160
+ size_bytes: number;
10161
+ updated_at: string;
10162
+ };
10163
+ Insert: {
10164
+ connection_id: string;
10165
+ created_at?: string;
10166
+ fetched_at?: string;
10167
+ id?: string;
10168
+ invoice_number: string;
10169
+ last_accessed_at?: string;
10170
+ object_path: string;
10171
+ office_code: string;
10172
+ size_bytes?: number;
10173
+ updated_at?: string;
10174
+ };
10175
+ Update: {
10176
+ connection_id?: string;
10177
+ created_at?: string;
10178
+ fetched_at?: string;
10179
+ id?: string;
10180
+ invoice_number?: string;
10181
+ last_accessed_at?: string;
10182
+ object_path?: string;
10183
+ office_code?: string;
10184
+ size_bytes?: number;
10185
+ updated_at?: string;
10186
+ };
10187
+ Relationships: [{
10188
+ foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
10189
+ columns: ["connection_id"];
10190
+ isOneToOne: false;
10191
+ referencedRelation: "twinfield_connections";
10192
+ referencedColumns: ["id"];
10193
+ }];
10194
+ };
9103
10195
  twinfield_invoice_settings: {
9104
10196
  Row: {
9105
10197
  created_at: string;
@@ -10038,25 +11130,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10038
11130
  };
10039
11131
  Relationships: [];
10040
11132
  };
10041
- floriday_customer_discounts: {
10042
- Row: {
10043
- base_price: number | null;
10044
- buyer_organization_id: string | null;
10045
- currency: string | null;
10046
- discount_type: string | null;
10047
- discount_value: number | null;
10048
- min_quantity: number | null;
10049
- net_price: number | null;
10050
- product_group_id: string | null;
10051
- raw: import("../integrations/supabase/types").Json | null;
10052
- source: string | null;
10053
- source_id: string | null;
10054
- trade_item_id: string | null;
10055
- valid_from: string | null;
10056
- valid_until: string | null;
10057
- };
10058
- Relationships: [];
10059
- };
10060
11133
  local_customer_discounts: {
10061
11134
  Row: {
10062
11135
  base_price: number | null;
@@ -10358,7 +11431,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10358
11431
  p_timeout_ms: number;
10359
11432
  p_url: string;
10360
11433
  };
10361
- Returns: number;
11434
+ Returns: number;
11435
+ };
11436
+ _migrate_rewrite_stock_key: {
11437
+ Args: {
11438
+ _from_key: string;
11439
+ _to_key: string;
11440
+ };
11441
+ Returns: undefined;
10362
11442
  };
10363
11443
  afh_city_code: {
10364
11444
  Args: {
@@ -10443,6 +11523,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10443
11523
  processed_items: number;
10444
11524
  }[];
10445
11525
  };
11526
+ calculate_layer_stock: {
11527
+ Args: {
11528
+ p_product_id: string;
11529
+ };
11530
+ Returns: number;
11531
+ };
10446
11532
  call_exact_route: {
10447
11533
  Args: {
10448
11534
  path: string;
@@ -10475,6 +11561,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10475
11561
  Args: never;
10476
11562
  Returns: undefined;
10477
11563
  };
11564
+ consume_bom_for_production: {
11565
+ Args: {
11566
+ p_connection_id: string;
11567
+ p_parent_id: string;
11568
+ p_parent_key: string;
11569
+ p_parent_kind: string;
11570
+ p_quantity: number;
11571
+ p_user_id: string;
11572
+ };
11573
+ Returns: import("../integrations/supabase/types").Json;
11574
+ } | {
11575
+ Args: {
11576
+ p_batch_id?: string;
11577
+ p_connection_id: string;
11578
+ p_parent_id: string;
11579
+ p_parent_key: string;
11580
+ p_parent_kind: string;
11581
+ p_quantity: number;
11582
+ p_user_id: string;
11583
+ };
11584
+ Returns: import("../integrations/supabase/types").Json;
11585
+ };
10478
11586
  consume_floriday_rate_limit: {
10479
11587
  Args: {
10480
11588
  p_bucket: string;
@@ -10526,6 +11634,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10526
11634
  table_name: string;
10527
11635
  }[];
10528
11636
  };
11637
+ delete_samenstelling: {
11638
+ Args: {
11639
+ p_parent_id: string;
11640
+ p_parent_kind: string;
11641
+ };
11642
+ Returns: import("../integrations/supabase/types").Json;
11643
+ };
10529
11644
  dispatch_carrier_signups_sql: {
10530
11645
  Args: {
10531
11646
  _catchup?: string;
@@ -10567,6 +11682,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10567
11682
  status: string;
10568
11683
  }[];
10569
11684
  };
11685
+ email_auth_upsert_connection: {
11686
+ Args: {
11687
+ _account_email: string;
11688
+ _created_by: string;
11689
+ _is_active: boolean;
11690
+ _provider: string;
11691
+ _status: string;
11692
+ };
11693
+ Returns: string;
11694
+ };
10570
11695
  enqueue_cart_replan_if_unlocked: {
10571
11696
  Args: {
10572
11697
  p_order_id: string;
@@ -10686,19 +11811,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10686
11811
  resource: string;
10687
11812
  }[];
10688
11813
  };
10689
- get_floriday_agreements_active: {
10690
- Args: {
10691
- p_on_date?: string;
10692
- };
10693
- Returns: {
10694
- buyer_organization_id: string;
10695
- data: import("../integrations/supabase/types").Json;
10696
- floriday_id: string;
10697
- status: string;
10698
- valid_from: string;
10699
- valid_until: string;
10700
- }[];
10701
- };
10702
11814
  get_floriday_clock_supplies_window: {
10703
11815
  Args: {
10704
11816
  p_from: string;
@@ -10771,6 +11883,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10771
11883
  minutes_since_success: number;
10772
11884
  }[];
10773
11885
  };
11886
+ get_group_allocation_keys: {
11887
+ Args: {
11888
+ p_product_id: string;
11889
+ };
11890
+ Returns: {
11891
+ k: string;
11892
+ ord: number;
11893
+ }[];
11894
+ };
11895
+ get_group_head_key: {
11896
+ Args: {
11897
+ p_group_id: string;
11898
+ };
11899
+ Returns: string;
11900
+ };
11901
+ get_inventory_stock_for_key: {
11902
+ Args: {
11903
+ p_key: string;
11904
+ };
11905
+ Returns: number;
11906
+ };
10774
11907
  get_offer_by_link_code: {
10775
11908
  Args: {
10776
11909
  p_code: string;
@@ -10801,6 +11934,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10801
11934
  };
10802
11935
  Returns: string;
10803
11936
  };
11937
+ get_product_group_available_stock: {
11938
+ Args: {
11939
+ p_group_id: string;
11940
+ };
11941
+ Returns: number;
11942
+ };
10804
11943
  get_room_busy_windows: {
10805
11944
  Args: {
10806
11945
  p_from: string;
@@ -10881,6 +12020,32 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10881
12020
  };
10882
12021
  Returns: undefined;
10883
12022
  };
12023
+ mark_salesorder_controlled: {
12024
+ Args: {
12025
+ p_controlled: boolean;
12026
+ p_floriday_id: string;
12027
+ };
12028
+ Returns: undefined;
12029
+ };
12030
+ mark_shipment_shipped: {
12031
+ Args: {
12032
+ p_shipment_id: string;
12033
+ };
12034
+ Returns: undefined;
12035
+ };
12036
+ merge_products: {
12037
+ Args: {
12038
+ _canonical: string;
12039
+ _loser: string;
12040
+ };
12041
+ Returns: undefined;
12042
+ };
12043
+ next_manufacture_partij: {
12044
+ Args: {
12045
+ _tenant_id: string;
12046
+ };
12047
+ Returns: string;
12048
+ };
10884
12049
  next_order_number: {
10885
12050
  Args: {
10886
12051
  p_prefix: string;
@@ -10950,6 +12115,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10950
12115
  };
10951
12116
  Returns: undefined;
10952
12117
  };
12118
+ pickstation_resolve_delivery_orders: {
12119
+ Args: {
12120
+ p_sales_order_ids: string[];
12121
+ };
12122
+ Returns: {
12123
+ delivery_order_id: string;
12124
+ sales_order_id: string;
12125
+ }[];
12126
+ };
10953
12127
  pickstation_set_cart_status: {
10954
12128
  Args: {
10955
12129
  p_cart_index: number;
@@ -10959,6 +12133,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10959
12133
  };
10960
12134
  Returns: undefined;
10961
12135
  };
12136
+ produce_designed_product: {
12137
+ Args: {
12138
+ p_parent_id: string;
12139
+ p_parent_kind: string;
12140
+ p_quantity: number;
12141
+ };
12142
+ Returns: import("../integrations/supabase/types").Json;
12143
+ };
10962
12144
  promote_trade_item_key: {
10963
12145
  Args: {
10964
12146
  p_new: string;
@@ -10966,6 +12148,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10966
12148
  };
10967
12149
  Returns: undefined;
10968
12150
  };
12151
+ recompute_all_reserved_stock: {
12152
+ Args: never;
12153
+ Returns: undefined;
12154
+ };
10969
12155
  recompute_order_status: {
10970
12156
  Args: {
10971
12157
  p_order_id: string;
@@ -11015,27 +12201,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11015
12201
  };
11016
12202
  Returns: undefined;
11017
12203
  };
12204
+ resolve_group_allocation: {
12205
+ Args: {
12206
+ _needed: number;
12207
+ _product_group_id: string;
12208
+ };
12209
+ Returns: {
12210
+ allocated: number;
12211
+ trade_item_id: string;
12212
+ }[];
12213
+ };
12214
+ resolve_group_member_stock_key: {
12215
+ Args: {
12216
+ p_trade_item_id: string;
12217
+ };
12218
+ Returns: string;
12219
+ };
11018
12220
  resolve_product_id_for_item: {
11019
12221
  Args: {
11020
12222
  p_product_name: string;
11021
12223
  };
11022
12224
  Returns: string;
11023
12225
  };
11024
- schedule_floriday_additional_services_sync: {
12226
+ resolve_stock_trade_item_key: {
11025
12227
  Args: {
11026
- p_apikey: string;
11027
- p_url: string;
12228
+ p_product_id: string;
11028
12229
  };
11029
- Returns: number;
12230
+ Returns: string;
11030
12231
  };
11031
- schedule_floriday_agreement_calloffs_sync: {
12232
+ reverse_production: {
11032
12233
  Args: {
11033
- p_apikey: string;
11034
- p_url: string;
12234
+ p_connection_id?: string;
12235
+ p_parent_key: string;
12236
+ p_quantity: number;
12237
+ p_reason?: string;
12238
+ p_user_id?: string;
11035
12239
  };
11036
- Returns: number;
12240
+ Returns: import("../integrations/supabase/types").Json;
11037
12241
  };
11038
- schedule_floriday_agreements_sync: {
12242
+ schedule_floriday_additional_services_sync: {
11039
12243
  Args: {
11040
12244
  p_apikey: string;
11041
12245
  p_url: string;
@@ -11288,6 +12492,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11288
12492
  };
11289
12493
  Returns: number;
11290
12494
  };
12495
+ self_heal_floriday_links: {
12496
+ Args: never;
12497
+ Returns: number;
12498
+ };
11291
12499
  show_limit: {
11292
12500
  Args: never;
11293
12501
  Returns: number;
@@ -11298,18 +12506,34 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11298
12506
  };
11299
12507
  Returns: string[];
11300
12508
  };
12509
+ sync_all_layer_stocks: {
12510
+ Args: never;
12511
+ Returns: undefined;
12512
+ };
11301
12513
  sync_cached_packing_from_product: {
11302
12514
  Args: {
11303
12515
  p_product_id: string;
11304
12516
  };
11305
12517
  Returns: undefined;
11306
12518
  };
12519
+ sync_layer_stock: {
12520
+ Args: {
12521
+ p_product_id: string;
12522
+ };
12523
+ Returns: undefined;
12524
+ };
11307
12525
  sync_order_cart_item_packing_from_product: {
11308
12526
  Args: {
11309
12527
  p_product_id: string;
11310
12528
  };
11311
12529
  Returns: undefined;
11312
12530
  };
12531
+ sync_product_group_belading: {
12532
+ Args: {
12533
+ _group_id: string;
12534
+ };
12535
+ Returns: undefined;
12536
+ };
11313
12537
  sync_product_packing_from_floriday_cache: {
11314
12538
  Args: {
11315
12539
  p_floriday_id: string;
@@ -11528,71 +12752,230 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11528
12752
  updated_at?: string;
11529
12753
  user_id?: string;
11530
12754
  };
11531
- Relationships: [];
12755
+ Relationships: [];
12756
+ };
12757
+ agenda_oauth_tokens: {
12758
+ Row: {
12759
+ access_token: string | null;
12760
+ created_at: string;
12761
+ id: string;
12762
+ provider: string;
12763
+ refresh_token: string | null;
12764
+ scope: string | null;
12765
+ token_expires_at: string | null;
12766
+ updated_at: string;
12767
+ user_id: string;
12768
+ };
12769
+ Insert: {
12770
+ access_token?: string | null;
12771
+ created_at?: string;
12772
+ id?: string;
12773
+ provider: string;
12774
+ refresh_token?: string | null;
12775
+ scope?: string | null;
12776
+ token_expires_at?: string | null;
12777
+ updated_at?: string;
12778
+ user_id: string;
12779
+ };
12780
+ Update: {
12781
+ access_token?: string | null;
12782
+ created_at?: string;
12783
+ id?: string;
12784
+ provider?: string;
12785
+ refresh_token?: string | null;
12786
+ scope?: string | null;
12787
+ token_expires_at?: string | null;
12788
+ updated_at?: string;
12789
+ user_id?: string;
12790
+ };
12791
+ Relationships: [];
12792
+ };
12793
+ agenda_settings: {
12794
+ Row: {
12795
+ color_map: import("../integrations/supabase/types").Json;
12796
+ created_at: string;
12797
+ default_calendar_id: string;
12798
+ default_view: string;
12799
+ settings: import("../integrations/supabase/types").Json;
12800
+ updated_at: string;
12801
+ user_id: string;
12802
+ };
12803
+ Insert: {
12804
+ color_map?: import("../integrations/supabase/types").Json;
12805
+ created_at?: string;
12806
+ default_calendar_id?: string;
12807
+ default_view?: string;
12808
+ settings?: import("../integrations/supabase/types").Json;
12809
+ updated_at?: string;
12810
+ user_id: string;
12811
+ };
12812
+ Update: {
12813
+ color_map?: import("../integrations/supabase/types").Json;
12814
+ created_at?: string;
12815
+ default_calendar_id?: string;
12816
+ default_view?: string;
12817
+ settings?: import("../integrations/supabase/types").Json;
12818
+ updated_at?: string;
12819
+ user_id?: string;
12820
+ };
12821
+ Relationships: [];
12822
+ };
12823
+ ai_credentials: {
12824
+ Row: {
12825
+ active: boolean;
12826
+ api_key: string;
12827
+ created_at: string;
12828
+ created_by: string | null;
12829
+ id: string;
12830
+ label: string;
12831
+ provider_id: string;
12832
+ updated_at: string;
12833
+ };
12834
+ Insert: {
12835
+ active?: boolean;
12836
+ api_key: string;
12837
+ created_at?: string;
12838
+ created_by?: string | null;
12839
+ id?: string;
12840
+ label: string;
12841
+ provider_id: string;
12842
+ updated_at?: string;
12843
+ };
12844
+ Update: {
12845
+ active?: boolean;
12846
+ api_key?: string;
12847
+ created_at?: string;
12848
+ created_by?: string | null;
12849
+ id?: string;
12850
+ label?: string;
12851
+ provider_id?: string;
12852
+ updated_at?: string;
12853
+ };
12854
+ Relationships: [{
12855
+ foreignKeyName: "ai_credentials_provider_id_fkey";
12856
+ columns: ["provider_id"];
12857
+ isOneToOne: false;
12858
+ referencedRelation: "ai_providers";
12859
+ referencedColumns: ["id"];
12860
+ }];
12861
+ };
12862
+ ai_models: {
12863
+ Row: {
12864
+ active: boolean;
12865
+ context_window: number | null;
12866
+ created_at: string;
12867
+ display_name: string;
12868
+ id: string;
12869
+ is_default: boolean;
12870
+ modality: string;
12871
+ provider_id: string;
12872
+ slug: string;
12873
+ updated_at: string;
12874
+ };
12875
+ Insert: {
12876
+ active?: boolean;
12877
+ context_window?: number | null;
12878
+ created_at?: string;
12879
+ display_name: string;
12880
+ id?: string;
12881
+ is_default?: boolean;
12882
+ modality?: string;
12883
+ provider_id: string;
12884
+ slug: string;
12885
+ updated_at?: string;
12886
+ };
12887
+ Update: {
12888
+ active?: boolean;
12889
+ context_window?: number | null;
12890
+ created_at?: string;
12891
+ display_name?: string;
12892
+ id?: string;
12893
+ is_default?: boolean;
12894
+ modality?: string;
12895
+ provider_id?: string;
12896
+ slug?: string;
12897
+ updated_at?: string;
12898
+ };
12899
+ Relationships: [{
12900
+ foreignKeyName: "ai_models_provider_id_fkey";
12901
+ columns: ["provider_id"];
12902
+ isOneToOne: false;
12903
+ referencedRelation: "ai_providers";
12904
+ referencedColumns: ["id"];
12905
+ }];
11532
12906
  };
11533
- agenda_oauth_tokens: {
12907
+ ai_module_bindings: {
11534
12908
  Row: {
11535
- access_token: string | null;
12909
+ consumer_module_id: string;
11536
12910
  created_at: string;
12911
+ credential_id: string;
11537
12912
  id: string;
11538
- provider: string;
11539
- refresh_token: string | null;
11540
- scope: string | null;
11541
- token_expires_at: string | null;
12913
+ model_id: string;
12914
+ notes: string | null;
11542
12915
  updated_at: string;
11543
- user_id: string;
11544
12916
  };
11545
12917
  Insert: {
11546
- access_token?: string | null;
12918
+ consumer_module_id: string;
11547
12919
  created_at?: string;
12920
+ credential_id: string;
11548
12921
  id?: string;
11549
- provider: string;
11550
- refresh_token?: string | null;
11551
- scope?: string | null;
11552
- token_expires_at?: string | null;
12922
+ model_id: string;
12923
+ notes?: string | null;
11553
12924
  updated_at?: string;
11554
- user_id: string;
11555
12925
  };
11556
12926
  Update: {
11557
- access_token?: string | null;
12927
+ consumer_module_id?: string;
11558
12928
  created_at?: string;
12929
+ credential_id?: string;
11559
12930
  id?: string;
11560
- provider?: string;
11561
- refresh_token?: string | null;
11562
- scope?: string | null;
11563
- token_expires_at?: string | null;
12931
+ model_id?: string;
12932
+ notes?: string | null;
11564
12933
  updated_at?: string;
11565
- user_id?: string;
11566
12934
  };
11567
- Relationships: [];
12935
+ Relationships: [{
12936
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
12937
+ columns: ["credential_id"];
12938
+ isOneToOne: false;
12939
+ referencedRelation: "ai_credentials";
12940
+ referencedColumns: ["id"];
12941
+ }, {
12942
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
12943
+ columns: ["model_id"];
12944
+ isOneToOne: false;
12945
+ referencedRelation: "ai_models";
12946
+ referencedColumns: ["id"];
12947
+ }];
11568
12948
  };
11569
- agenda_settings: {
12949
+ ai_providers: {
11570
12950
  Row: {
11571
- color_map: import("../integrations/supabase/types").Json;
12951
+ active: boolean;
12952
+ auth_type: string;
12953
+ base_url: string | null;
11572
12954
  created_at: string;
11573
- default_calendar_id: string;
11574
- default_view: string;
11575
- settings: import("../integrations/supabase/types").Json;
12955
+ id: string;
12956
+ name: string;
12957
+ slug: string;
11576
12958
  updated_at: string;
11577
- user_id: string;
11578
12959
  };
11579
12960
  Insert: {
11580
- color_map?: import("../integrations/supabase/types").Json;
12961
+ active?: boolean;
12962
+ auth_type?: string;
12963
+ base_url?: string | null;
11581
12964
  created_at?: string;
11582
- default_calendar_id?: string;
11583
- default_view?: string;
11584
- settings?: import("../integrations/supabase/types").Json;
12965
+ id?: string;
12966
+ name: string;
12967
+ slug: string;
11585
12968
  updated_at?: string;
11586
- user_id: string;
11587
12969
  };
11588
12970
  Update: {
11589
- color_map?: import("../integrations/supabase/types").Json;
12971
+ active?: boolean;
12972
+ auth_type?: string;
12973
+ base_url?: string | null;
11590
12974
  created_at?: string;
11591
- default_calendar_id?: string;
11592
- default_view?: string;
11593
- settings?: import("../integrations/supabase/types").Json;
12975
+ id?: string;
12976
+ name?: string;
12977
+ slug?: string;
11594
12978
  updated_at?: string;
11595
- user_id?: string;
11596
12979
  };
11597
12980
  Relationships: [];
11598
12981
  };
@@ -12223,6 +13606,141 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12223
13606
  };
12224
13607
  Relationships: [];
12225
13608
  };
13609
+ cart_planning_pick_times: {
13610
+ Row: {
13611
+ created_at: string;
13612
+ id: string;
13613
+ pot_size: string;
13614
+ seconds_per_cart: number;
13615
+ updated_at: string;
13616
+ };
13617
+ Insert: {
13618
+ created_at?: string;
13619
+ id?: string;
13620
+ pot_size: string;
13621
+ seconds_per_cart: number;
13622
+ updated_at?: string;
13623
+ };
13624
+ Update: {
13625
+ created_at?: string;
13626
+ id?: string;
13627
+ pot_size?: string;
13628
+ seconds_per_cart?: number;
13629
+ updated_at?: string;
13630
+ };
13631
+ Relationships: [];
13632
+ };
13633
+ cart_planning_product_overrides: {
13634
+ Row: {
13635
+ created_at: string;
13636
+ id: string;
13637
+ max_party_share_per_layer_pct_override: number | null;
13638
+ never_mix: boolean;
13639
+ notes: string | null;
13640
+ product_id: string;
13641
+ updated_at: string;
13642
+ };
13643
+ Insert: {
13644
+ created_at?: string;
13645
+ id?: string;
13646
+ max_party_share_per_layer_pct_override?: number | null;
13647
+ never_mix?: boolean;
13648
+ notes?: string | null;
13649
+ product_id: string;
13650
+ updated_at?: string;
13651
+ };
13652
+ Update: {
13653
+ created_at?: string;
13654
+ id?: string;
13655
+ max_party_share_per_layer_pct_override?: number | null;
13656
+ never_mix?: boolean;
13657
+ notes?: string | null;
13658
+ product_id?: string;
13659
+ updated_at?: string;
13660
+ };
13661
+ Relationships: [{
13662
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
13663
+ columns: ["product_id"];
13664
+ isOneToOne: true;
13665
+ referencedRelation: "products";
13666
+ referencedColumns: ["id"];
13667
+ }];
13668
+ };
13669
+ cart_planning_settings: {
13670
+ Row: {
13671
+ allow_editing_after_pickstation_send: boolean;
13672
+ buffer_grouping_mode: string;
13673
+ combine_floriday_orders: boolean;
13674
+ combine_floriday_orders_window: string;
13675
+ combine_orders_scope: string;
13676
+ default_workers: number;
13677
+ id: number;
13678
+ max_beladingen_per_layer: number;
13679
+ max_customers_per_cart: number;
13680
+ max_one_customer_per_layer: boolean;
13681
+ max_party_share_per_layer_pct: number;
13682
+ optimization_strategy: string;
13683
+ own_cart_from_layers: number;
13684
+ pick_time_mode: string;
13685
+ plants_per_day: number;
13686
+ plants_per_hour: number;
13687
+ require_same_carrier: boolean;
13688
+ require_same_crate_type: boolean;
13689
+ require_same_delivery_date: boolean;
13690
+ require_same_delivery_location: boolean;
13691
+ updated_at: string;
13692
+ updated_by: string | null;
13693
+ };
13694
+ Insert: {
13695
+ allow_editing_after_pickstation_send?: boolean;
13696
+ buffer_grouping_mode?: string;
13697
+ combine_floriday_orders?: boolean;
13698
+ combine_floriday_orders_window?: string;
13699
+ combine_orders_scope?: string;
13700
+ default_workers?: number;
13701
+ id?: number;
13702
+ max_beladingen_per_layer?: number;
13703
+ max_customers_per_cart?: number;
13704
+ max_one_customer_per_layer?: boolean;
13705
+ max_party_share_per_layer_pct?: number;
13706
+ optimization_strategy?: string;
13707
+ own_cart_from_layers?: number;
13708
+ pick_time_mode?: string;
13709
+ plants_per_day?: number;
13710
+ plants_per_hour?: number;
13711
+ require_same_carrier?: boolean;
13712
+ require_same_crate_type?: boolean;
13713
+ require_same_delivery_date?: boolean;
13714
+ require_same_delivery_location?: boolean;
13715
+ updated_at?: string;
13716
+ updated_by?: string | null;
13717
+ };
13718
+ Update: {
13719
+ allow_editing_after_pickstation_send?: boolean;
13720
+ buffer_grouping_mode?: string;
13721
+ combine_floriday_orders?: boolean;
13722
+ combine_floriday_orders_window?: string;
13723
+ combine_orders_scope?: string;
13724
+ default_workers?: number;
13725
+ id?: number;
13726
+ max_beladingen_per_layer?: number;
13727
+ max_customers_per_cart?: number;
13728
+ max_one_customer_per_layer?: boolean;
13729
+ max_party_share_per_layer_pct?: number;
13730
+ optimization_strategy?: string;
13731
+ own_cart_from_layers?: number;
13732
+ pick_time_mode?: string;
13733
+ plants_per_day?: number;
13734
+ plants_per_hour?: number;
13735
+ require_same_carrier?: boolean;
13736
+ require_same_crate_type?: boolean;
13737
+ require_same_delivery_date?: boolean;
13738
+ require_same_delivery_location?: boolean;
13739
+ updated_at?: string;
13740
+ updated_by?: string | null;
13741
+ };
13742
+ Relationships: [];
13743
+ };
12226
13744
  cart_replan_queue: {
12227
13745
  Row: {
12228
13746
  attempts: number;
@@ -12253,6 +13771,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12253
13771
  referencedColumns: ["id"];
12254
13772
  }];
12255
13773
  };
13774
+ cart_types: {
13775
+ Row: {
13776
+ created_at: string;
13777
+ id: string;
13778
+ is_default: boolean;
13779
+ layer_length_cm: number;
13780
+ layer_width_cm: number;
13781
+ layers_per_cart: number;
13782
+ name: string;
13783
+ updated_at: string;
13784
+ };
13785
+ Insert: {
13786
+ created_at?: string;
13787
+ id?: string;
13788
+ is_default?: boolean;
13789
+ layer_length_cm: number;
13790
+ layer_width_cm: number;
13791
+ layers_per_cart?: number;
13792
+ name: string;
13793
+ updated_at?: string;
13794
+ };
13795
+ Update: {
13796
+ created_at?: string;
13797
+ id?: string;
13798
+ is_default?: boolean;
13799
+ layer_length_cm?: number;
13800
+ layer_width_cm?: number;
13801
+ layers_per_cart?: number;
13802
+ name?: string;
13803
+ updated_at?: string;
13804
+ };
13805
+ Relationships: [];
13806
+ };
12256
13807
  collections: {
12257
13808
  Row: {
12258
13809
  created_at: string;
@@ -12277,6 +13828,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12277
13828
  };
12278
13829
  Relationships: [];
12279
13830
  };
13831
+ crate_types: {
13832
+ Row: {
13833
+ created_at: string;
13834
+ id: string;
13835
+ length_cm: number;
13836
+ name: string;
13837
+ plants_per_crate: number;
13838
+ updated_at: string;
13839
+ width_cm: number;
13840
+ };
13841
+ Insert: {
13842
+ created_at?: string;
13843
+ id?: string;
13844
+ length_cm: number;
13845
+ name: string;
13846
+ plants_per_crate?: number;
13847
+ updated_at?: string;
13848
+ width_cm: number;
13849
+ };
13850
+ Update: {
13851
+ created_at?: string;
13852
+ id?: string;
13853
+ length_cm?: number;
13854
+ name?: string;
13855
+ plants_per_crate?: number;
13856
+ updated_at?: string;
13857
+ width_cm?: number;
13858
+ };
13859
+ Relationships: [];
13860
+ };
12280
13861
  customer_audit_log: {
12281
13862
  Row: {
12282
13863
  action: string;
@@ -14578,123 +16159,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
14578
16159
  };
14579
16160
  Insert: {
14580
16161
  connection_id: string;
14581
- data: import("../integrations/supabase/types").Json;
14582
- fetched_at?: string;
14583
- floriday_id: string;
14584
- is_deleted?: boolean;
14585
- sequence_number?: number;
14586
- updated_at?: string;
14587
- };
14588
- Update: {
14589
- connection_id?: string;
14590
- data?: import("../integrations/supabase/types").Json;
14591
- fetched_at?: string;
14592
- floriday_id?: string;
14593
- is_deleted?: boolean;
14594
- sequence_number?: number;
14595
- updated_at?: string;
14596
- };
14597
- Relationships: [{
14598
- foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
14599
- columns: ["connection_id"];
14600
- isOneToOne: false;
14601
- referencedRelation: "floriday_connections";
14602
- referencedColumns: ["id"];
14603
- }];
14604
- };
14605
- floriday_agreement_calloffs_cache: {
14606
- Row: {
14607
- agreement_id: string | null;
14608
- connection_id: string;
14609
- data: import("../integrations/supabase/types").Json;
14610
- delivery_date: string | null;
14611
- fetched_at: string;
14612
- floriday_id: string;
14613
- id: string;
14614
- is_deleted: boolean;
14615
- sequence_number: number;
14616
- status: string | null;
14617
- updated_at: string;
14618
- };
14619
- Insert: {
14620
- agreement_id?: string | null;
14621
- connection_id: string;
14622
- data?: import("../integrations/supabase/types").Json;
14623
- delivery_date?: string | null;
14624
- fetched_at?: string;
14625
- floriday_id: string;
14626
- id?: string;
14627
- is_deleted?: boolean;
14628
- sequence_number?: number;
14629
- status?: string | null;
14630
- updated_at?: string;
14631
- };
14632
- Update: {
14633
- agreement_id?: string | null;
14634
- connection_id?: string;
14635
- data?: import("../integrations/supabase/types").Json;
14636
- delivery_date?: string | null;
14637
- fetched_at?: string;
14638
- floriday_id?: string;
14639
- id?: string;
14640
- is_deleted?: boolean;
14641
- sequence_number?: number;
14642
- status?: string | null;
14643
- updated_at?: string;
14644
- };
14645
- Relationships: [{
14646
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
14647
- columns: ["connection_id"];
14648
- isOneToOne: false;
14649
- referencedRelation: "floriday_connections";
14650
- referencedColumns: ["id"];
14651
- }];
14652
- };
14653
- floriday_agreements_cache: {
14654
- Row: {
14655
- buyer_organization_id: string | null;
14656
- connection_id: string;
14657
- data: import("../integrations/supabase/types").Json;
14658
- fetched_at: string;
14659
- floriday_id: string;
14660
- id: string;
14661
- is_deleted: boolean;
14662
- sequence_number: number;
14663
- status: string | null;
14664
- updated_at: string;
14665
- valid_from: string | null;
14666
- valid_until: string | null;
14667
- };
14668
- Insert: {
14669
- buyer_organization_id?: string | null;
14670
- connection_id: string;
14671
- data?: import("../integrations/supabase/types").Json;
16162
+ data: import("../integrations/supabase/types").Json;
14672
16163
  fetched_at?: string;
14673
16164
  floriday_id: string;
14674
- id?: string;
14675
16165
  is_deleted?: boolean;
14676
16166
  sequence_number?: number;
14677
- status?: string | null;
14678
16167
  updated_at?: string;
14679
- valid_from?: string | null;
14680
- valid_until?: string | null;
14681
16168
  };
14682
16169
  Update: {
14683
- buyer_organization_id?: string | null;
14684
16170
  connection_id?: string;
14685
16171
  data?: import("../integrations/supabase/types").Json;
14686
16172
  fetched_at?: string;
14687
16173
  floriday_id?: string;
14688
- id?: string;
14689
16174
  is_deleted?: boolean;
14690
16175
  sequence_number?: number;
14691
- status?: string | null;
14692
16176
  updated_at?: string;
14693
- valid_from?: string | null;
14694
- valid_until?: string | null;
14695
16177
  };
14696
16178
  Relationships: [{
14697
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
16179
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
14698
16180
  columns: ["connection_id"];
14699
16181
  isOneToOne: false;
14700
16182
  referencedRelation: "floriday_connections";
@@ -15199,6 +16681,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15199
16681
  referencedColumns: ["id"];
15200
16682
  }];
15201
16683
  };
16684
+ floriday_continuous_stock_cache: {
16685
+ Row: {
16686
+ connection_id: string;
16687
+ fetched_at: string;
16688
+ number_of_pieces: number;
16689
+ trade_item_id: string;
16690
+ };
16691
+ Insert: {
16692
+ connection_id: string;
16693
+ fetched_at?: string;
16694
+ number_of_pieces?: number;
16695
+ trade_item_id: string;
16696
+ };
16697
+ Update: {
16698
+ connection_id?: string;
16699
+ fetched_at?: string;
16700
+ number_of_pieces?: number;
16701
+ trade_item_id?: string;
16702
+ };
16703
+ Relationships: [];
16704
+ };
15202
16705
  floriday_continuous_stock_queue: {
15203
16706
  Row: {
15204
16707
  attempts: number;
@@ -15974,6 +17477,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15974
17477
  Row: {
15975
17478
  buyer_organization_id: string | null;
15976
17479
  connection_id: string;
17480
+ controlled_at: string | null;
17481
+ controlled_by: string | null;
15977
17482
  created_at: string;
15978
17483
  data: import("../integrations/supabase/types").Json;
15979
17484
  floriday_id: string;
@@ -15985,6 +17490,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15985
17490
  Insert: {
15986
17491
  buyer_organization_id?: string | null;
15987
17492
  connection_id: string;
17493
+ controlled_at?: string | null;
17494
+ controlled_by?: string | null;
15988
17495
  created_at?: string;
15989
17496
  data: import("../integrations/supabase/types").Json;
15990
17497
  floriday_id: string;
@@ -15996,6 +17503,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15996
17503
  Update: {
15997
17504
  buyer_organization_id?: string | null;
15998
17505
  connection_id?: string;
17506
+ controlled_at?: string | null;
17507
+ controlled_by?: string | null;
15999
17508
  created_at?: string;
16000
17509
  data?: import("../integrations/supabase/types").Json;
16001
17510
  floriday_id?: string;
@@ -16177,6 +17686,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16177
17686
  referencedColumns: ["id"];
16178
17687
  }];
16179
17688
  };
17689
+ floriday_trade_settings_customers_cache: {
17690
+ Row: {
17691
+ connection_id: string;
17692
+ data: import("../integrations/supabase/types").Json;
17693
+ fetched_at: string;
17694
+ floriday_id: string;
17695
+ id: string;
17696
+ is_deleted: boolean;
17697
+ sequence_number: number;
17698
+ updated_at: string;
17699
+ };
17700
+ Insert: {
17701
+ connection_id: string;
17702
+ data: import("../integrations/supabase/types").Json;
17703
+ fetched_at?: string;
17704
+ floriday_id: string;
17705
+ id?: string;
17706
+ is_deleted?: boolean;
17707
+ sequence_number?: number;
17708
+ updated_at?: string;
17709
+ };
17710
+ Update: {
17711
+ connection_id?: string;
17712
+ data?: import("../integrations/supabase/types").Json;
17713
+ fetched_at?: string;
17714
+ floriday_id?: string;
17715
+ id?: string;
17716
+ is_deleted?: boolean;
17717
+ sequence_number?: number;
17718
+ updated_at?: string;
17719
+ };
17720
+ Relationships: [{
17721
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
17722
+ columns: ["connection_id"];
17723
+ isOneToOne: false;
17724
+ referencedRelation: "floriday_connections";
17725
+ referencedColumns: ["id"];
17726
+ }];
17727
+ };
16180
17728
  floriday_trips_cache: {
16181
17729
  Row: {
16182
17730
  carrier_organization_id: string | null;
@@ -16225,6 +17773,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16225
17773
  referencedColumns: ["id"];
16226
17774
  }];
16227
17775
  };
17776
+ floriday_vbn_required_characteristics: {
17777
+ Row: {
17778
+ required_codes: string[];
17779
+ updated_at: string;
17780
+ updated_by: string | null;
17781
+ vbn_code: string;
17782
+ };
17783
+ Insert: {
17784
+ required_codes?: string[];
17785
+ updated_at?: string;
17786
+ updated_by?: string | null;
17787
+ vbn_code: string;
17788
+ };
17789
+ Update: {
17790
+ required_codes?: string[];
17791
+ updated_at?: string;
17792
+ updated_by?: string | null;
17793
+ vbn_code?: string;
17794
+ };
17795
+ Relationships: [];
17796
+ };
16228
17797
  floriday_warehouses_cache: {
16229
17798
  Row: {
16230
17799
  connection_id: string;
@@ -16921,9 +18490,288 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16921
18490
  Update: {
16922
18491
  created_at?: string;
16923
18492
  id?: string;
16924
- name?: string;
16925
- sort_order?: number;
18493
+ name?: string;
18494
+ sort_order?: number;
18495
+ updated_at?: string;
18496
+ };
18497
+ Relationships: [];
18498
+ };
18499
+ logistics_capacity_events: {
18500
+ Row: {
18501
+ available_carts: number;
18502
+ created_at: string;
18503
+ id: string;
18504
+ measures: import("../integrations/supabase/types").Json;
18505
+ note: string | null;
18506
+ outcome: string;
18507
+ required_carts: number;
18508
+ reserve_minutes: number;
18509
+ shortage_carts: number;
18510
+ status: string;
18511
+ user_id: string;
18512
+ };
18513
+ Insert: {
18514
+ available_carts?: number;
18515
+ created_at?: string;
18516
+ id?: string;
18517
+ measures?: import("../integrations/supabase/types").Json;
18518
+ note?: string | null;
18519
+ outcome?: string;
18520
+ required_carts?: number;
18521
+ reserve_minutes?: number;
18522
+ shortage_carts?: number;
18523
+ status: string;
18524
+ user_id: string;
18525
+ };
18526
+ Update: {
18527
+ available_carts?: number;
18528
+ created_at?: string;
18529
+ id?: string;
18530
+ measures?: import("../integrations/supabase/types").Json;
18531
+ note?: string | null;
18532
+ outcome?: string;
18533
+ required_carts?: number;
18534
+ reserve_minutes?: number;
18535
+ shortage_carts?: number;
18536
+ status?: string;
18537
+ user_id?: string;
18538
+ };
18539
+ Relationships: [];
18540
+ };
18541
+ logistics_capacity_settings: {
18542
+ Row: {
18543
+ created_at: string;
18544
+ settings: import("../integrations/supabase/types").Json;
18545
+ updated_at: string;
18546
+ user_id: string;
18547
+ };
18548
+ Insert: {
18549
+ created_at?: string;
18550
+ settings?: import("../integrations/supabase/types").Json;
18551
+ updated_at?: string;
18552
+ user_id: string;
18553
+ };
18554
+ Update: {
18555
+ created_at?: string;
18556
+ settings?: import("../integrations/supabase/types").Json;
18557
+ updated_at?: string;
18558
+ user_id?: string;
18559
+ };
18560
+ Relationships: [];
18561
+ };
18562
+ logistics_decisions: {
18563
+ Row: {
18564
+ created_at: string;
18565
+ explanation: string | null;
18566
+ id: string;
18567
+ input_snapshot: import("../integrations/supabase/types").Json;
18568
+ result: import("../integrations/supabase/types").Json;
18569
+ slot: string;
18570
+ strategy_id: string | null;
18571
+ subject_id: string;
18572
+ subject_type: string;
18573
+ user_id: string;
18574
+ };
18575
+ Insert: {
18576
+ created_at?: string;
18577
+ explanation?: string | null;
18578
+ id?: string;
18579
+ input_snapshot?: import("../integrations/supabase/types").Json;
18580
+ result?: import("../integrations/supabase/types").Json;
18581
+ slot: string;
18582
+ strategy_id?: string | null;
18583
+ subject_id: string;
18584
+ subject_type: string;
18585
+ user_id: string;
18586
+ };
18587
+ Update: {
18588
+ created_at?: string;
18589
+ explanation?: string | null;
18590
+ id?: string;
18591
+ input_snapshot?: import("../integrations/supabase/types").Json;
18592
+ result?: import("../integrations/supabase/types").Json;
18593
+ slot?: string;
18594
+ strategy_id?: string | null;
18595
+ subject_id?: string;
18596
+ subject_type?: string;
18597
+ user_id?: string;
18598
+ };
18599
+ Relationships: [{
18600
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
18601
+ columns: ["strategy_id"];
18602
+ isOneToOne: false;
18603
+ referencedRelation: "logistics_strategies";
18604
+ referencedColumns: ["id"];
18605
+ }];
18606
+ };
18607
+ logistics_formulas: {
18608
+ Row: {
18609
+ created_at: string;
18610
+ expression: string;
18611
+ id: string;
18612
+ notes: string | null;
18613
+ slot: string;
18614
+ strategy_id: string;
18615
+ updated_at: string;
18616
+ user_id: string;
18617
+ version: number;
18618
+ };
18619
+ Insert: {
18620
+ created_at?: string;
18621
+ expression?: string;
18622
+ id?: string;
18623
+ notes?: string | null;
18624
+ slot: string;
18625
+ strategy_id: string;
18626
+ updated_at?: string;
18627
+ user_id: string;
18628
+ version?: number;
18629
+ };
18630
+ Update: {
18631
+ created_at?: string;
18632
+ expression?: string;
18633
+ id?: string;
18634
+ notes?: string | null;
18635
+ slot?: string;
18636
+ strategy_id?: string;
18637
+ updated_at?: string;
18638
+ user_id?: string;
18639
+ version?: number;
18640
+ };
18641
+ Relationships: [{
18642
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
18643
+ columns: ["strategy_id"];
18644
+ isOneToOne: false;
18645
+ referencedRelation: "logistics_strategies";
18646
+ referencedColumns: ["id"];
18647
+ }];
18648
+ };
18649
+ logistics_strategies: {
18650
+ Row: {
18651
+ color: string;
18652
+ created_at: string;
18653
+ description: string | null;
18654
+ id: string;
18655
+ is_active: boolean;
18656
+ name: string;
18657
+ priority: number;
18658
+ updated_at: string;
18659
+ updated_by: string | null;
18660
+ user_id: string;
18661
+ version: number;
18662
+ };
18663
+ Insert: {
18664
+ color?: string;
18665
+ created_at?: string;
18666
+ description?: string | null;
18667
+ id?: string;
18668
+ is_active?: boolean;
18669
+ name: string;
18670
+ priority?: number;
18671
+ updated_at?: string;
18672
+ updated_by?: string | null;
18673
+ user_id: string;
18674
+ version?: number;
18675
+ };
18676
+ Update: {
18677
+ color?: string;
18678
+ created_at?: string;
18679
+ description?: string | null;
18680
+ id?: string;
18681
+ is_active?: boolean;
18682
+ name?: string;
18683
+ priority?: number;
18684
+ updated_at?: string;
18685
+ updated_by?: string | null;
18686
+ user_id?: string;
18687
+ version?: number;
18688
+ };
18689
+ Relationships: [];
18690
+ };
18691
+ logistics_strategy_schedules: {
18692
+ Row: {
18693
+ condition_expression: string | null;
18694
+ created_at: string;
18695
+ end_date: string | null;
18696
+ id: string;
18697
+ is_enabled: boolean;
18698
+ priority: number;
18699
+ rule_type: string;
18700
+ start_date: string | null;
18701
+ strategy_id: string;
18702
+ updated_at: string;
18703
+ user_id: string;
18704
+ };
18705
+ Insert: {
18706
+ condition_expression?: string | null;
18707
+ created_at?: string;
18708
+ end_date?: string | null;
18709
+ id?: string;
18710
+ is_enabled?: boolean;
18711
+ priority?: number;
18712
+ rule_type: string;
18713
+ start_date?: string | null;
18714
+ strategy_id: string;
18715
+ updated_at?: string;
18716
+ user_id: string;
18717
+ };
18718
+ Update: {
18719
+ condition_expression?: string | null;
18720
+ created_at?: string;
18721
+ end_date?: string | null;
18722
+ id?: string;
18723
+ is_enabled?: boolean;
18724
+ priority?: number;
18725
+ rule_type?: string;
18726
+ start_date?: string | null;
18727
+ strategy_id?: string;
18728
+ updated_at?: string;
18729
+ user_id?: string;
18730
+ };
18731
+ Relationships: [{
18732
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
18733
+ columns: ["strategy_id"];
18734
+ isOneToOne: false;
18735
+ referencedRelation: "logistics_strategies";
18736
+ referencedColumns: ["id"];
18737
+ }];
18738
+ };
18739
+ logistics_variables: {
18740
+ Row: {
18741
+ created_at: string;
18742
+ default_value: string | null;
18743
+ description: string | null;
18744
+ id: string;
18745
+ is_builtin: boolean;
18746
+ key: string;
18747
+ label: string;
18748
+ updated_at: string;
18749
+ user_id: string;
18750
+ value_type: string;
18751
+ };
18752
+ Insert: {
18753
+ created_at?: string;
18754
+ default_value?: string | null;
18755
+ description?: string | null;
18756
+ id?: string;
18757
+ is_builtin?: boolean;
18758
+ key: string;
18759
+ label: string;
18760
+ updated_at?: string;
18761
+ user_id: string;
18762
+ value_type: string;
18763
+ };
18764
+ Update: {
18765
+ created_at?: string;
18766
+ default_value?: string | null;
18767
+ description?: string | null;
18768
+ id?: string;
18769
+ is_builtin?: boolean;
18770
+ key?: string;
18771
+ label?: string;
16926
18772
  updated_at?: string;
18773
+ user_id?: string;
18774
+ value_type?: string;
16927
18775
  };
16928
18776
  Relationships: [];
16929
18777
  };
@@ -17322,39 +19170,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17322
19170
  };
17323
19171
  manufacture_products: {
17324
19172
  Row: {
19173
+ aantal_te_produceren: number;
17325
19174
  created_at: string;
17326
19175
  description: string | null;
17327
19176
  id: string;
17328
19177
  is_active: boolean;
19178
+ location_id: string | null;
17329
19179
  name: string;
19180
+ partij_nummer: string | null;
19181
+ photos: import("../integrations/supabase/types").Json;
17330
19182
  produced_stock: number;
17331
19183
  product_code: string;
17332
19184
  tenant_id: string;
19185
+ unit: string;
17333
19186
  updated_at: string;
17334
19187
  };
17335
19188
  Insert: {
19189
+ aantal_te_produceren?: number;
17336
19190
  created_at?: string;
17337
19191
  description?: string | null;
17338
19192
  id?: string;
17339
19193
  is_active?: boolean;
19194
+ location_id?: string | null;
17340
19195
  name: string;
19196
+ partij_nummer?: string | null;
19197
+ photos?: import("../integrations/supabase/types").Json;
17341
19198
  produced_stock?: number;
17342
19199
  product_code: string;
17343
19200
  tenant_id: string;
19201
+ unit?: string;
17344
19202
  updated_at?: string;
17345
19203
  };
17346
19204
  Update: {
19205
+ aantal_te_produceren?: number;
17347
19206
  created_at?: string;
17348
19207
  description?: string | null;
17349
19208
  id?: string;
17350
19209
  is_active?: boolean;
19210
+ location_id?: string | null;
17351
19211
  name?: string;
19212
+ partij_nummer?: string | null;
19213
+ photos?: import("../integrations/supabase/types").Json;
17352
19214
  produced_stock?: number;
17353
19215
  product_code?: string;
17354
19216
  tenant_id?: string;
19217
+ unit?: string;
17355
19218
  updated_at?: string;
17356
19219
  };
17357
- Relationships: [];
19220
+ Relationships: [{
19221
+ foreignKeyName: "manufacture_products_location_id_fkey";
19222
+ columns: ["location_id"];
19223
+ isOneToOne: false;
19224
+ referencedRelation: "locations";
19225
+ referencedColumns: ["id"];
19226
+ }];
17358
19227
  };
17359
19228
  monteurs: {
17360
19229
  Row: {
@@ -18085,6 +19954,42 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18085
19954
  };
18086
19955
  Relationships: [];
18087
19956
  };
19957
+ order_buffers: {
19958
+ Row: {
19959
+ buffer_key: string;
19960
+ created_at: string;
19961
+ customer_id: string | null;
19962
+ grouping_mode: string;
19963
+ id: string;
19964
+ pickup_date: string | null;
19965
+ pickup_location: string | null;
19966
+ plan_locked_at: string | null;
19967
+ updated_at: string;
19968
+ };
19969
+ Insert: {
19970
+ buffer_key: string;
19971
+ created_at?: string;
19972
+ customer_id?: string | null;
19973
+ grouping_mode: string;
19974
+ id?: string;
19975
+ pickup_date?: string | null;
19976
+ pickup_location?: string | null;
19977
+ plan_locked_at?: string | null;
19978
+ updated_at?: string;
19979
+ };
19980
+ Update: {
19981
+ buffer_key?: string;
19982
+ created_at?: string;
19983
+ customer_id?: string | null;
19984
+ grouping_mode?: string;
19985
+ id?: string;
19986
+ pickup_date?: string | null;
19987
+ pickup_location?: string | null;
19988
+ plan_locked_at?: string | null;
19989
+ updated_at?: string;
19990
+ };
19991
+ Relationships: [];
19992
+ };
18088
19993
  order_cart_items: {
18089
19994
  Row: {
18090
19995
  cart_id: string;
@@ -18151,6 +20056,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18151
20056
  order_carts: {
18152
20057
  Row: {
18153
20058
  algorithm_version: number;
20059
+ buffer_id: string | null;
18154
20060
  cart_number: number;
18155
20061
  created_at: string;
18156
20062
  id: string;
@@ -18158,13 +20064,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18158
20064
  is_complete: boolean;
18159
20065
  notes: string | null;
18160
20066
  occupancy_pct: number;
18161
- order_id: string;
20067
+ order_id: string | null;
18162
20068
  source: string;
18163
20069
  total_layers_used: number;
18164
20070
  updated_at: string;
18165
20071
  };
18166
20072
  Insert: {
18167
20073
  algorithm_version?: number;
20074
+ buffer_id?: string | null;
18168
20075
  cart_number: number;
18169
20076
  created_at?: string;
18170
20077
  id?: string;
@@ -18172,13 +20079,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18172
20079
  is_complete?: boolean;
18173
20080
  notes?: string | null;
18174
20081
  occupancy_pct?: number;
18175
- order_id: string;
20082
+ order_id?: string | null;
18176
20083
  source?: string;
18177
20084
  total_layers_used?: number;
18178
20085
  updated_at?: string;
18179
20086
  };
18180
20087
  Update: {
18181
20088
  algorithm_version?: number;
20089
+ buffer_id?: string | null;
18182
20090
  cart_number?: number;
18183
20091
  created_at?: string;
18184
20092
  id?: string;
@@ -18186,12 +20094,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18186
20094
  is_complete?: boolean;
18187
20095
  notes?: string | null;
18188
20096
  occupancy_pct?: number;
18189
- order_id?: string;
20097
+ order_id?: string | null;
18190
20098
  source?: string;
18191
20099
  total_layers_used?: number;
18192
20100
  updated_at?: string;
18193
20101
  };
18194
20102
  Relationships: [{
20103
+ foreignKeyName: "order_carts_buffer_id_fkey";
20104
+ columns: ["buffer_id"];
20105
+ isOneToOne: false;
20106
+ referencedRelation: "order_buffers";
20107
+ referencedColumns: ["id"];
20108
+ }, {
18195
20109
  foreignKeyName: "order_carts_order_id_fkey";
18196
20110
  columns: ["order_id"];
18197
20111
  isOneToOne: false;
@@ -18328,15 +20242,117 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18328
20242
  };
18329
20243
  Relationships: [];
18330
20244
  };
20245
+ order_shipment_items: {
20246
+ Row: {
20247
+ created_at: string;
20248
+ id: string;
20249
+ order_item_id: string;
20250
+ product_id: string | null;
20251
+ product_name: string;
20252
+ quantity: number;
20253
+ shipment_id: string;
20254
+ updated_at: string;
20255
+ };
20256
+ Insert: {
20257
+ created_at?: string;
20258
+ id?: string;
20259
+ order_item_id: string;
20260
+ product_id?: string | null;
20261
+ product_name: string;
20262
+ quantity: number;
20263
+ shipment_id: string;
20264
+ updated_at?: string;
20265
+ };
20266
+ Update: {
20267
+ created_at?: string;
20268
+ id?: string;
20269
+ order_item_id?: string;
20270
+ product_id?: string | null;
20271
+ product_name?: string;
20272
+ quantity?: number;
20273
+ shipment_id?: string;
20274
+ updated_at?: string;
20275
+ };
20276
+ Relationships: [{
20277
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
20278
+ columns: ["order_item_id"];
20279
+ isOneToOne: false;
20280
+ referencedRelation: "order_items";
20281
+ referencedColumns: ["id"];
20282
+ }, {
20283
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
20284
+ columns: ["shipment_id"];
20285
+ isOneToOne: false;
20286
+ referencedRelation: "order_shipments";
20287
+ referencedColumns: ["id"];
20288
+ }];
20289
+ };
20290
+ order_shipments: {
20291
+ Row: {
20292
+ carrier_id: string | null;
20293
+ created_at: string;
20294
+ delivery_date: string | null;
20295
+ delivery_location_id: string | null;
20296
+ id: string;
20297
+ notes: string | null;
20298
+ order_id: string;
20299
+ shipment_number: number;
20300
+ shipped_at: string | null;
20301
+ status: string;
20302
+ updated_at: string;
20303
+ };
20304
+ Insert: {
20305
+ carrier_id?: string | null;
20306
+ created_at?: string;
20307
+ delivery_date?: string | null;
20308
+ delivery_location_id?: string | null;
20309
+ id?: string;
20310
+ notes?: string | null;
20311
+ order_id: string;
20312
+ shipment_number: number;
20313
+ shipped_at?: string | null;
20314
+ status?: string;
20315
+ updated_at?: string;
20316
+ };
20317
+ Update: {
20318
+ carrier_id?: string | null;
20319
+ created_at?: string;
20320
+ delivery_date?: string | null;
20321
+ delivery_location_id?: string | null;
20322
+ id?: string;
20323
+ notes?: string | null;
20324
+ order_id?: string;
20325
+ shipment_number?: number;
20326
+ shipped_at?: string | null;
20327
+ status?: string;
20328
+ updated_at?: string;
20329
+ };
20330
+ Relationships: [{
20331
+ foreignKeyName: "order_shipments_carrier_id_fkey";
20332
+ columns: ["carrier_id"];
20333
+ isOneToOne: false;
20334
+ referencedRelation: "carriers";
20335
+ referencedColumns: ["id"];
20336
+ }, {
20337
+ foreignKeyName: "order_shipments_order_id_fkey";
20338
+ columns: ["order_id"];
20339
+ isOneToOne: false;
20340
+ referencedRelation: "orders";
20341
+ referencedColumns: ["id"];
20342
+ }];
20343
+ };
18331
20344
  orders: {
18332
20345
  Row: {
20346
+ buffer_id: string | null;
18333
20347
  created_at: string;
18334
20348
  custom_fields: import("../integrations/supabase/types").Json;
18335
20349
  customer_id: string | null;
18336
20350
  customer_name: string;
18337
20351
  deleted_at: string | null;
18338
- delivery_date: string;
20352
+ delivery_date: string | null;
20353
+ floriday_sales_order_id: string | null;
18339
20354
  id: string;
20355
+ is_reservation: boolean;
18340
20356
  notes: string | null;
18341
20357
  order_date: string;
18342
20358
  order_number: string;
@@ -18348,13 +20364,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18348
20364
  updated_at: string;
18349
20365
  };
18350
20366
  Insert: {
20367
+ buffer_id?: string | null;
18351
20368
  created_at?: string;
18352
20369
  custom_fields?: import("../integrations/supabase/types").Json;
18353
20370
  customer_id?: string | null;
18354
20371
  customer_name?: string;
18355
20372
  deleted_at?: string | null;
18356
- delivery_date: string;
20373
+ delivery_date?: string | null;
20374
+ floriday_sales_order_id?: string | null;
18357
20375
  id?: string;
20376
+ is_reservation?: boolean;
18358
20377
  notes?: string | null;
18359
20378
  order_date?: string;
18360
20379
  order_number: string;
@@ -18366,13 +20385,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18366
20385
  updated_at?: string;
18367
20386
  };
18368
20387
  Update: {
20388
+ buffer_id?: string | null;
18369
20389
  created_at?: string;
18370
20390
  custom_fields?: import("../integrations/supabase/types").Json;
18371
20391
  customer_id?: string | null;
18372
20392
  customer_name?: string;
18373
20393
  deleted_at?: string | null;
18374
- delivery_date?: string;
20394
+ delivery_date?: string | null;
20395
+ floriday_sales_order_id?: string | null;
18375
20396
  id?: string;
20397
+ is_reservation?: boolean;
18376
20398
  notes?: string | null;
18377
20399
  order_date?: string;
18378
20400
  order_number?: string;
@@ -18384,6 +20406,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18384
20406
  updated_at?: string;
18385
20407
  };
18386
20408
  Relationships: [{
20409
+ foreignKeyName: "orders_buffer_id_fkey";
20410
+ columns: ["buffer_id"];
20411
+ isOneToOne: false;
20412
+ referencedRelation: "order_buffers";
20413
+ referencedColumns: ["id"];
20414
+ }, {
18387
20415
  foreignKeyName: "orders_customer_id_fkey";
18388
20416
  columns: ["customer_id"];
18389
20417
  isOneToOne: false;
@@ -18514,6 +20542,66 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18514
20542
  };
18515
20543
  Relationships: [];
18516
20544
  };
20545
+ product_bom_items: {
20546
+ Row: {
20547
+ component_product_id: string | null;
20548
+ component_trade_item_floriday_id: string | null;
20549
+ created_at: string;
20550
+ id: string;
20551
+ notes: string | null;
20552
+ packing_configuration_id: string | null;
20553
+ parent_product_id: string | null;
20554
+ parent_trade_item_floriday_id: string | null;
20555
+ quantity: number;
20556
+ sort_order: number;
20557
+ tenant_id: string;
20558
+ unit: string;
20559
+ updated_at: string;
20560
+ };
20561
+ Insert: {
20562
+ component_product_id?: string | null;
20563
+ component_trade_item_floriday_id?: string | null;
20564
+ created_at?: string;
20565
+ id?: string;
20566
+ notes?: string | null;
20567
+ packing_configuration_id?: string | null;
20568
+ parent_product_id?: string | null;
20569
+ parent_trade_item_floriday_id?: string | null;
20570
+ quantity?: number;
20571
+ sort_order?: number;
20572
+ tenant_id: string;
20573
+ unit?: string;
20574
+ updated_at?: string;
20575
+ };
20576
+ Update: {
20577
+ component_product_id?: string | null;
20578
+ component_trade_item_floriday_id?: string | null;
20579
+ created_at?: string;
20580
+ id?: string;
20581
+ notes?: string | null;
20582
+ packing_configuration_id?: string | null;
20583
+ parent_product_id?: string | null;
20584
+ parent_trade_item_floriday_id?: string | null;
20585
+ quantity?: number;
20586
+ sort_order?: number;
20587
+ tenant_id?: string;
20588
+ unit?: string;
20589
+ updated_at?: string;
20590
+ };
20591
+ Relationships: [{
20592
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
20593
+ columns: ["component_product_id"];
20594
+ isOneToOne: false;
20595
+ referencedRelation: "products";
20596
+ referencedColumns: ["id"];
20597
+ }, {
20598
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
20599
+ columns: ["parent_product_id"];
20600
+ isOneToOne: false;
20601
+ referencedRelation: "products";
20602
+ referencedColumns: ["id"];
20603
+ }];
20604
+ };
18517
20605
  product_categories: {
18518
20606
  Row: {
18519
20607
  color: string;
@@ -18619,6 +20707,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18619
20707
  id: string;
18620
20708
  product_group_id: string;
18621
20709
  quantity: number;
20710
+ sort_order: number;
18622
20711
  trade_item_id: string;
18623
20712
  };
18624
20713
  Insert: {
@@ -18626,6 +20715,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18626
20715
  id?: string;
18627
20716
  product_group_id: string;
18628
20717
  quantity?: number;
20718
+ sort_order?: number;
18629
20719
  trade_item_id: string;
18630
20720
  };
18631
20721
  Update: {
@@ -18633,56 +20723,173 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18633
20723
  id?: string;
18634
20724
  product_group_id?: string;
18635
20725
  quantity?: number;
20726
+ sort_order?: number;
18636
20727
  trade_item_id?: string;
18637
20728
  };
18638
20729
  Relationships: [{
18639
20730
  foreignKeyName: "product_group_items_product_group_id_fkey";
18640
20731
  columns: ["product_group_id"];
18641
20732
  isOneToOne: false;
18642
- referencedRelation: "product_groups";
20733
+ referencedRelation: "product_groups";
20734
+ referencedColumns: ["id"];
20735
+ }];
20736
+ };
20737
+ product_groups: {
20738
+ Row: {
20739
+ created_at: string;
20740
+ description: string | null;
20741
+ head_product_id: string | null;
20742
+ head_trade_item_floriday_id: string | null;
20743
+ id: string;
20744
+ is_active: boolean;
20745
+ name: string;
20746
+ tenant_id: string;
20747
+ updated_at: string;
20748
+ };
20749
+ Insert: {
20750
+ created_at?: string;
20751
+ description?: string | null;
20752
+ head_product_id?: string | null;
20753
+ head_trade_item_floriday_id?: string | null;
20754
+ id?: string;
20755
+ is_active?: boolean;
20756
+ name: string;
20757
+ tenant_id: string;
20758
+ updated_at?: string;
20759
+ };
20760
+ Update: {
20761
+ created_at?: string;
20762
+ description?: string | null;
20763
+ head_product_id?: string | null;
20764
+ head_trade_item_floriday_id?: string | null;
20765
+ id?: string;
20766
+ is_active?: boolean;
20767
+ name?: string;
20768
+ tenant_id?: string;
20769
+ updated_at?: string;
20770
+ };
20771
+ Relationships: [{
20772
+ foreignKeyName: "product_groups_head_product_id_fkey";
20773
+ columns: ["head_product_id"];
20774
+ isOneToOne: false;
20775
+ referencedRelation: "products";
20776
+ referencedColumns: ["id"];
20777
+ }];
20778
+ };
20779
+ product_load_settings: {
20780
+ Row: {
20781
+ created_at: string;
20782
+ id: string;
20783
+ is_package: boolean;
20784
+ label: string | null;
20785
+ layers_per_load_carrier: number | null;
20786
+ load_carrier: string | null;
20787
+ package_id: string | null;
20788
+ package_label: string | null;
20789
+ packages_per_layer: number | null;
20790
+ packing_configuration_id: string;
20791
+ product_id: string | null;
20792
+ tenant_id: string;
20793
+ trade_item_floriday_id: string | null;
20794
+ units_per_package: number | null;
20795
+ updated_at: string;
20796
+ };
20797
+ Insert: {
20798
+ created_at?: string;
20799
+ id?: string;
20800
+ is_package?: boolean;
20801
+ label?: string | null;
20802
+ layers_per_load_carrier?: number | null;
20803
+ load_carrier?: string | null;
20804
+ package_id?: string | null;
20805
+ package_label?: string | null;
20806
+ packages_per_layer?: number | null;
20807
+ packing_configuration_id?: string;
20808
+ product_id?: string | null;
20809
+ tenant_id: string;
20810
+ trade_item_floriday_id?: string | null;
20811
+ units_per_package?: number | null;
20812
+ updated_at?: string;
20813
+ };
20814
+ Update: {
20815
+ created_at?: string;
20816
+ id?: string;
20817
+ is_package?: boolean;
20818
+ label?: string | null;
20819
+ layers_per_load_carrier?: number | null;
20820
+ load_carrier?: string | null;
20821
+ package_id?: string | null;
20822
+ package_label?: string | null;
20823
+ packages_per_layer?: number | null;
20824
+ packing_configuration_id?: string;
20825
+ product_id?: string | null;
20826
+ tenant_id?: string;
20827
+ trade_item_floriday_id?: string | null;
20828
+ units_per_package?: number | null;
20829
+ updated_at?: string;
20830
+ };
20831
+ Relationships: [{
20832
+ foreignKeyName: "product_load_settings_package_id_fkey";
20833
+ columns: ["package_id"];
20834
+ isOneToOne: false;
20835
+ referencedRelation: "packages";
20836
+ referencedColumns: ["id"];
20837
+ }, {
20838
+ foreignKeyName: "product_load_settings_product_id_fkey";
20839
+ columns: ["product_id"];
20840
+ isOneToOne: false;
20841
+ referencedRelation: "products";
18643
20842
  referencedColumns: ["id"];
18644
20843
  }];
18645
20844
  };
18646
- product_groups: {
20845
+ product_merge_log: {
18647
20846
  Row: {
18648
- created_at: string;
18649
- description: string | null;
20847
+ canonical_product_id: string | null;
18650
20848
  id: string;
18651
- is_active: boolean;
18652
- name: string;
18653
- tenant_id: string;
18654
- updated_at: string;
20849
+ merged_at: string;
20850
+ merged_from_id: string;
20851
+ notes: string | null;
20852
+ snapshot: import("../integrations/supabase/types").Json;
20853
+ source_table: string;
20854
+ status: string;
18655
20855
  };
18656
20856
  Insert: {
18657
- created_at?: string;
18658
- description?: string | null;
20857
+ canonical_product_id?: string | null;
18659
20858
  id?: string;
18660
- is_active?: boolean;
18661
- name: string;
18662
- tenant_id: string;
18663
- updated_at?: string;
20859
+ merged_at?: string;
20860
+ merged_from_id: string;
20861
+ notes?: string | null;
20862
+ snapshot?: import("../integrations/supabase/types").Json;
20863
+ source_table: string;
20864
+ status?: string;
18664
20865
  };
18665
20866
  Update: {
18666
- created_at?: string;
18667
- description?: string | null;
20867
+ canonical_product_id?: string | null;
18668
20868
  id?: string;
18669
- is_active?: boolean;
18670
- name?: string;
18671
- tenant_id?: string;
18672
- updated_at?: string;
20869
+ merged_at?: string;
20870
+ merged_from_id?: string;
20871
+ notes?: string | null;
20872
+ snapshot?: import("../integrations/supabase/types").Json;
20873
+ source_table?: string;
20874
+ status?: string;
18673
20875
  };
18674
20876
  Relationships: [];
18675
20877
  };
18676
20878
  products: {
18677
20879
  Row: {
20880
+ article_number: string | null;
18678
20881
  barcode: string | null;
18679
20882
  batch: string;
18680
20883
  crates_per_layer: number;
18681
20884
  created_at: string;
18682
20885
  custom_fields: import("../integrations/supabase/types").Json;
20886
+ floriday_active: boolean;
20887
+ floriday_payload: import("../integrations/supabase/types").Json;
20888
+ floriday_trade_item_id: string | null;
18683
20889
  id: string;
18684
20890
  image_url: string | null;
18685
20891
  incoming_quantity: number;
20892
+ is_layer: boolean;
18686
20893
  layers_per_cart: number;
18687
20894
  location: string;
18688
20895
  min_quantity: number;
@@ -18695,17 +20902,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18695
20902
  trade_item_key: string | null;
18696
20903
  unit: string;
18697
20904
  updated_at: string;
20905
+ vat_code: string | null;
20906
+ vat_rate: number | null;
18698
20907
  weight: string | null;
18699
20908
  };
18700
20909
  Insert: {
20910
+ article_number?: string | null;
18701
20911
  barcode?: string | null;
18702
20912
  batch: string;
18703
20913
  crates_per_layer?: number;
18704
20914
  created_at?: string;
18705
20915
  custom_fields?: import("../integrations/supabase/types").Json;
20916
+ floriday_active?: boolean;
20917
+ floriday_payload?: import("../integrations/supabase/types").Json;
20918
+ floriday_trade_item_id?: string | null;
18706
20919
  id?: string;
18707
20920
  image_url?: string | null;
18708
20921
  incoming_quantity?: number;
20922
+ is_layer?: boolean;
18709
20923
  layers_per_cart?: number;
18710
20924
  location: string;
18711
20925
  min_quantity?: number;
@@ -18718,17 +20932,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18718
20932
  trade_item_key?: string | null;
18719
20933
  unit?: string;
18720
20934
  updated_at?: string;
20935
+ vat_code?: string | null;
20936
+ vat_rate?: number | null;
18721
20937
  weight?: string | null;
18722
20938
  };
18723
20939
  Update: {
20940
+ article_number?: string | null;
18724
20941
  barcode?: string | null;
18725
20942
  batch?: string;
18726
20943
  crates_per_layer?: number;
18727
20944
  created_at?: string;
18728
20945
  custom_fields?: import("../integrations/supabase/types").Json;
20946
+ floriday_active?: boolean;
20947
+ floriday_payload?: import("../integrations/supabase/types").Json;
20948
+ floriday_trade_item_id?: string | null;
18729
20949
  id?: string;
18730
20950
  image_url?: string | null;
18731
20951
  incoming_quantity?: number;
20952
+ is_layer?: boolean;
18732
20953
  layers_per_cart?: number;
18733
20954
  location?: string;
18734
20955
  min_quantity?: number;
@@ -18741,6 +20962,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18741
20962
  trade_item_key?: string | null;
18742
20963
  unit?: string;
18743
20964
  updated_at?: string;
20965
+ vat_code?: string | null;
20966
+ vat_rate?: number | null;
18744
20967
  weight?: string | null;
18745
20968
  };
18746
20969
  Relationships: [];
@@ -19634,8 +21857,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19634
21857
  order_id: string | null;
19635
21858
  order_item_id: string | null;
19636
21859
  order_source: string | null;
21860
+ parent_trade_item_key: string | null;
19637
21861
  physical_after: number | null;
19638
21862
  physical_before: number | null;
21863
+ production_batch_id: string | null;
19639
21864
  qty_delta: number;
19640
21865
  reason: string | null;
19641
21866
  reserved_after: number | null;
@@ -19651,8 +21876,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19651
21876
  order_id?: string | null;
19652
21877
  order_item_id?: string | null;
19653
21878
  order_source?: string | null;
21879
+ parent_trade_item_key?: string | null;
19654
21880
  physical_after?: number | null;
19655
21881
  physical_before?: number | null;
21882
+ production_batch_id?: string | null;
19656
21883
  qty_delta: number;
19657
21884
  reason?: string | null;
19658
21885
  reserved_after?: number | null;
@@ -19668,8 +21895,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19668
21895
  order_id?: string | null;
19669
21896
  order_item_id?: string | null;
19670
21897
  order_source?: string | null;
21898
+ parent_trade_item_key?: string | null;
19671
21899
  physical_after?: number | null;
19672
21900
  physical_before?: number | null;
21901
+ production_batch_id?: string | null;
19673
21902
  qty_delta?: number;
19674
21903
  reason?: string | null;
19675
21904
  reserved_after?: number | null;
@@ -19975,6 +22204,48 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19975
22204
  };
19976
22205
  Relationships: [];
19977
22206
  };
22207
+ trade_item_prices: {
22208
+ Row: {
22209
+ created_at: string;
22210
+ currency: string;
22211
+ id: string;
22212
+ last_push_error: string | null;
22213
+ last_pushed_at: string | null;
22214
+ price_group_id: string | null;
22215
+ price_per_piece: number;
22216
+ supply_line_id: string | null;
22217
+ trade_item_key: string;
22218
+ updated_at: string;
22219
+ user_id: string;
22220
+ };
22221
+ Insert: {
22222
+ created_at?: string;
22223
+ currency?: string;
22224
+ id?: string;
22225
+ last_push_error?: string | null;
22226
+ last_pushed_at?: string | null;
22227
+ price_group_id?: string | null;
22228
+ price_per_piece: number;
22229
+ supply_line_id?: string | null;
22230
+ trade_item_key: string;
22231
+ updated_at?: string;
22232
+ user_id: string;
22233
+ };
22234
+ Update: {
22235
+ created_at?: string;
22236
+ currency?: string;
22237
+ id?: string;
22238
+ last_push_error?: string | null;
22239
+ last_pushed_at?: string | null;
22240
+ price_group_id?: string | null;
22241
+ price_per_piece?: number;
22242
+ supply_line_id?: string | null;
22243
+ trade_item_key?: string;
22244
+ updated_at?: string;
22245
+ user_id?: string;
22246
+ };
22247
+ Relationships: [];
22248
+ };
19978
22249
  trade_item_stock: {
19979
22250
  Row: {
19980
22251
  connection_id: string;
@@ -20128,7 +22399,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20128
22399
  twinfield_connections: {
20129
22400
  Row: {
20130
22401
  access_token: string | null;
20131
- client_id: string;
22402
+ client_id: string | null;
20132
22403
  client_secret: string | null;
20133
22404
  cluster_uri: string | null;
20134
22405
  company_code: string | null;
@@ -20140,7 +22411,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20140
22411
  is_active: boolean;
20141
22412
  label: string | null;
20142
22413
  office_code: string | null;
20143
- redirect_uri: string;
22414
+ redirect_uri: string | null;
20144
22415
  refresh_token: string | null;
20145
22416
  token_expires_at: string | null;
20146
22417
  updated_at: string;
@@ -20148,7 +22419,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20148
22419
  };
20149
22420
  Insert: {
20150
22421
  access_token?: string | null;
20151
- client_id: string;
22422
+ client_id?: string | null;
20152
22423
  client_secret?: string | null;
20153
22424
  cluster_uri?: string | null;
20154
22425
  company_code?: string | null;
@@ -20160,7 +22431,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20160
22431
  is_active?: boolean;
20161
22432
  label?: string | null;
20162
22433
  office_code?: string | null;
20163
- redirect_uri: string;
22434
+ redirect_uri?: string | null;
20164
22435
  refresh_token?: string | null;
20165
22436
  token_expires_at?: string | null;
20166
22437
  updated_at?: string;
@@ -20168,7 +22439,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20168
22439
  };
20169
22440
  Update: {
20170
22441
  access_token?: string | null;
20171
- client_id?: string;
22442
+ client_id?: string | null;
20172
22443
  client_secret?: string | null;
20173
22444
  cluster_uri?: string | null;
20174
22445
  company_code?: string | null;
@@ -20180,7 +22451,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20180
22451
  is_active?: boolean;
20181
22452
  label?: string | null;
20182
22453
  office_code?: string | null;
20183
- redirect_uri?: string;
22454
+ redirect_uri?: string | null;
20184
22455
  refresh_token?: string | null;
20185
22456
  token_expires_at?: string | null;
20186
22457
  updated_at?: string;
@@ -20437,6 +22708,51 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20437
22708
  referencedColumns: ["id"];
20438
22709
  }];
20439
22710
  };
22711
+ twinfield_invoice_pdf_cache: {
22712
+ Row: {
22713
+ connection_id: string;
22714
+ created_at: string;
22715
+ fetched_at: string;
22716
+ id: string;
22717
+ invoice_number: string;
22718
+ last_accessed_at: string;
22719
+ object_path: string;
22720
+ office_code: string;
22721
+ size_bytes: number;
22722
+ updated_at: string;
22723
+ };
22724
+ Insert: {
22725
+ connection_id: string;
22726
+ created_at?: string;
22727
+ fetched_at?: string;
22728
+ id?: string;
22729
+ invoice_number: string;
22730
+ last_accessed_at?: string;
22731
+ object_path: string;
22732
+ office_code: string;
22733
+ size_bytes?: number;
22734
+ updated_at?: string;
22735
+ };
22736
+ Update: {
22737
+ connection_id?: string;
22738
+ created_at?: string;
22739
+ fetched_at?: string;
22740
+ id?: string;
22741
+ invoice_number?: string;
22742
+ last_accessed_at?: string;
22743
+ object_path?: string;
22744
+ office_code?: string;
22745
+ size_bytes?: number;
22746
+ updated_at?: string;
22747
+ };
22748
+ Relationships: [{
22749
+ foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
22750
+ columns: ["connection_id"];
22751
+ isOneToOne: false;
22752
+ referencedRelation: "twinfield_connections";
22753
+ referencedColumns: ["id"];
22754
+ }];
22755
+ };
20440
22756
  twinfield_invoice_settings: {
20441
22757
  Row: {
20442
22758
  created_at: string;
@@ -21375,25 +23691,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21375
23691
  };
21376
23692
  Relationships: [];
21377
23693
  };
21378
- floriday_customer_discounts: {
21379
- Row: {
21380
- base_price: number | null;
21381
- buyer_organization_id: string | null;
21382
- currency: string | null;
21383
- discount_type: string | null;
21384
- discount_value: number | null;
21385
- min_quantity: number | null;
21386
- net_price: number | null;
21387
- product_group_id: string | null;
21388
- raw: import("../integrations/supabase/types").Json | null;
21389
- source: string | null;
21390
- source_id: string | null;
21391
- trade_item_id: string | null;
21392
- valid_from: string | null;
21393
- valid_until: string | null;
21394
- };
21395
- Relationships: [];
21396
- };
21397
23694
  local_customer_discounts: {
21398
23695
  Row: {
21399
23696
  base_price: number | null;
@@ -21697,6 +23994,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21697
23994
  };
21698
23995
  Returns: number;
21699
23996
  };
23997
+ _migrate_rewrite_stock_key: {
23998
+ Args: {
23999
+ _from_key: string;
24000
+ _to_key: string;
24001
+ };
24002
+ Returns: undefined;
24003
+ };
21700
24004
  afh_city_code: {
21701
24005
  Args: {
21702
24006
  _city: string;
@@ -21780,6 +24084,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21780
24084
  processed_items: number;
21781
24085
  }[];
21782
24086
  };
24087
+ calculate_layer_stock: {
24088
+ Args: {
24089
+ p_product_id: string;
24090
+ };
24091
+ Returns: number;
24092
+ };
21783
24093
  call_exact_route: {
21784
24094
  Args: {
21785
24095
  path: string;
@@ -21812,6 +24122,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21812
24122
  Args: never;
21813
24123
  Returns: undefined;
21814
24124
  };
24125
+ consume_bom_for_production: {
24126
+ Args: {
24127
+ p_connection_id: string;
24128
+ p_parent_id: string;
24129
+ p_parent_key: string;
24130
+ p_parent_kind: string;
24131
+ p_quantity: number;
24132
+ p_user_id: string;
24133
+ };
24134
+ Returns: import("../integrations/supabase/types").Json;
24135
+ } | {
24136
+ Args: {
24137
+ p_batch_id?: string;
24138
+ p_connection_id: string;
24139
+ p_parent_id: string;
24140
+ p_parent_key: string;
24141
+ p_parent_kind: string;
24142
+ p_quantity: number;
24143
+ p_user_id: string;
24144
+ };
24145
+ Returns: import("../integrations/supabase/types").Json;
24146
+ };
21815
24147
  consume_floriday_rate_limit: {
21816
24148
  Args: {
21817
24149
  p_bucket: string;
@@ -21863,6 +24195,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21863
24195
  table_name: string;
21864
24196
  }[];
21865
24197
  };
24198
+ delete_samenstelling: {
24199
+ Args: {
24200
+ p_parent_id: string;
24201
+ p_parent_kind: string;
24202
+ };
24203
+ Returns: import("../integrations/supabase/types").Json;
24204
+ };
21866
24205
  dispatch_carrier_signups_sql: {
21867
24206
  Args: {
21868
24207
  _catchup?: string;
@@ -21904,6 +24243,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21904
24243
  status: string;
21905
24244
  }[];
21906
24245
  };
24246
+ email_auth_upsert_connection: {
24247
+ Args: {
24248
+ _account_email: string;
24249
+ _created_by: string;
24250
+ _is_active: boolean;
24251
+ _provider: string;
24252
+ _status: string;
24253
+ };
24254
+ Returns: string;
24255
+ };
21907
24256
  enqueue_cart_replan_if_unlocked: {
21908
24257
  Args: {
21909
24258
  p_order_id: string;
@@ -22023,19 +24372,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22023
24372
  resource: string;
22024
24373
  }[];
22025
24374
  };
22026
- get_floriday_agreements_active: {
22027
- Args: {
22028
- p_on_date?: string;
22029
- };
22030
- Returns: {
22031
- buyer_organization_id: string;
22032
- data: import("../integrations/supabase/types").Json;
22033
- floriday_id: string;
22034
- status: string;
22035
- valid_from: string;
22036
- valid_until: string;
22037
- }[];
22038
- };
22039
24375
  get_floriday_clock_supplies_window: {
22040
24376
  Args: {
22041
24377
  p_from: string;
@@ -22108,6 +24444,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22108
24444
  minutes_since_success: number;
22109
24445
  }[];
22110
24446
  };
24447
+ get_group_allocation_keys: {
24448
+ Args: {
24449
+ p_product_id: string;
24450
+ };
24451
+ Returns: {
24452
+ k: string;
24453
+ ord: number;
24454
+ }[];
24455
+ };
24456
+ get_group_head_key: {
24457
+ Args: {
24458
+ p_group_id: string;
24459
+ };
24460
+ Returns: string;
24461
+ };
24462
+ get_inventory_stock_for_key: {
24463
+ Args: {
24464
+ p_key: string;
24465
+ };
24466
+ Returns: number;
24467
+ };
22111
24468
  get_offer_by_link_code: {
22112
24469
  Args: {
22113
24470
  p_code: string;
@@ -22138,6 +24495,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22138
24495
  };
22139
24496
  Returns: string;
22140
24497
  };
24498
+ get_product_group_available_stock: {
24499
+ Args: {
24500
+ p_group_id: string;
24501
+ };
24502
+ Returns: number;
24503
+ };
22141
24504
  get_room_busy_windows: {
22142
24505
  Args: {
22143
24506
  p_from: string;
@@ -22218,6 +24581,32 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22218
24581
  };
22219
24582
  Returns: undefined;
22220
24583
  };
24584
+ mark_salesorder_controlled: {
24585
+ Args: {
24586
+ p_controlled: boolean;
24587
+ p_floriday_id: string;
24588
+ };
24589
+ Returns: undefined;
24590
+ };
24591
+ mark_shipment_shipped: {
24592
+ Args: {
24593
+ p_shipment_id: string;
24594
+ };
24595
+ Returns: undefined;
24596
+ };
24597
+ merge_products: {
24598
+ Args: {
24599
+ _canonical: string;
24600
+ _loser: string;
24601
+ };
24602
+ Returns: undefined;
24603
+ };
24604
+ next_manufacture_partij: {
24605
+ Args: {
24606
+ _tenant_id: string;
24607
+ };
24608
+ Returns: string;
24609
+ };
22221
24610
  next_order_number: {
22222
24611
  Args: {
22223
24612
  p_prefix: string;
@@ -22287,6 +24676,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22287
24676
  };
22288
24677
  Returns: undefined;
22289
24678
  };
24679
+ pickstation_resolve_delivery_orders: {
24680
+ Args: {
24681
+ p_sales_order_ids: string[];
24682
+ };
24683
+ Returns: {
24684
+ delivery_order_id: string;
24685
+ sales_order_id: string;
24686
+ }[];
24687
+ };
22290
24688
  pickstation_set_cart_status: {
22291
24689
  Args: {
22292
24690
  p_cart_index: number;
@@ -22296,6 +24694,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22296
24694
  };
22297
24695
  Returns: undefined;
22298
24696
  };
24697
+ produce_designed_product: {
24698
+ Args: {
24699
+ p_parent_id: string;
24700
+ p_parent_kind: string;
24701
+ p_quantity: number;
24702
+ };
24703
+ Returns: import("../integrations/supabase/types").Json;
24704
+ };
22299
24705
  promote_trade_item_key: {
22300
24706
  Args: {
22301
24707
  p_new: string;
@@ -22303,6 +24709,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22303
24709
  };
22304
24710
  Returns: undefined;
22305
24711
  };
24712
+ recompute_all_reserved_stock: {
24713
+ Args: never;
24714
+ Returns: undefined;
24715
+ };
22306
24716
  recompute_order_status: {
22307
24717
  Args: {
22308
24718
  p_order_id: string;
@@ -22352,27 +24762,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22352
24762
  };
22353
24763
  Returns: undefined;
22354
24764
  };
24765
+ resolve_group_allocation: {
24766
+ Args: {
24767
+ _needed: number;
24768
+ _product_group_id: string;
24769
+ };
24770
+ Returns: {
24771
+ allocated: number;
24772
+ trade_item_id: string;
24773
+ }[];
24774
+ };
24775
+ resolve_group_member_stock_key: {
24776
+ Args: {
24777
+ p_trade_item_id: string;
24778
+ };
24779
+ Returns: string;
24780
+ };
22355
24781
  resolve_product_id_for_item: {
22356
24782
  Args: {
22357
24783
  p_product_name: string;
22358
24784
  };
22359
24785
  Returns: string;
22360
24786
  };
22361
- schedule_floriday_additional_services_sync: {
24787
+ resolve_stock_trade_item_key: {
22362
24788
  Args: {
22363
- p_apikey: string;
22364
- p_url: string;
24789
+ p_product_id: string;
22365
24790
  };
22366
- Returns: number;
24791
+ Returns: string;
22367
24792
  };
22368
- schedule_floriday_agreement_calloffs_sync: {
24793
+ reverse_production: {
22369
24794
  Args: {
22370
- p_apikey: string;
22371
- p_url: string;
24795
+ p_connection_id?: string;
24796
+ p_parent_key: string;
24797
+ p_quantity: number;
24798
+ p_reason?: string;
24799
+ p_user_id?: string;
22372
24800
  };
22373
- Returns: number;
24801
+ Returns: import("../integrations/supabase/types").Json;
22374
24802
  };
22375
- schedule_floriday_agreements_sync: {
24803
+ schedule_floriday_additional_services_sync: {
22376
24804
  Args: {
22377
24805
  p_apikey: string;
22378
24806
  p_url: string;
@@ -22625,6 +25053,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22625
25053
  };
22626
25054
  Returns: number;
22627
25055
  };
25056
+ self_heal_floriday_links: {
25057
+ Args: never;
25058
+ Returns: number;
25059
+ };
22628
25060
  show_limit: {
22629
25061
  Args: never;
22630
25062
  Returns: number;
@@ -22635,18 +25067,34 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22635
25067
  };
22636
25068
  Returns: string[];
22637
25069
  };
25070
+ sync_all_layer_stocks: {
25071
+ Args: never;
25072
+ Returns: undefined;
25073
+ };
22638
25074
  sync_cached_packing_from_product: {
22639
25075
  Args: {
22640
25076
  p_product_id: string;
22641
25077
  };
22642
25078
  Returns: undefined;
22643
25079
  };
25080
+ sync_layer_stock: {
25081
+ Args: {
25082
+ p_product_id: string;
25083
+ };
25084
+ Returns: undefined;
25085
+ };
22644
25086
  sync_order_cart_item_packing_from_product: {
22645
25087
  Args: {
22646
25088
  p_product_id: string;
22647
25089
  };
22648
25090
  Returns: undefined;
22649
25091
  };
25092
+ sync_product_group_belading: {
25093
+ Args: {
25094
+ _group_id: string;
25095
+ };
25096
+ Returns: undefined;
25097
+ };
22650
25098
  sync_product_packing_from_floriday_cache: {
22651
25099
  Args: {
22652
25100
  p_floriday_id: string;