@flowselections/floriday-voorraad 1.0.22 → 1.0.26

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 (65) hide show
  1. package/dist-lib/assets/floriday-logo.png.asset.json +4 -4
  2. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/ArtikelWizard.js +655 -93
  4. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +12 -0
  5. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -0
  6. package/dist-lib/components/voorraad/FloridayInfoCard.js +85 -0
  7. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +10 -0
  8. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -0
  9. package/dist-lib/components/voorraad/StepSamenstelling.js +333 -0
  10. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  11. package/dist-lib/components/voorraad/VoorraadPage.js +14 -3
  12. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/VoorraadTable.js +8 -1
  14. package/dist-lib/hooks/useFloridayPriceGroups.d.ts +20 -0
  15. package/dist-lib/hooks/useFloridayPriceGroups.d.ts.map +1 -0
  16. package/dist-lib/hooks/useFloridayPriceGroups.js +55 -0
  17. package/dist-lib/hooks/useFloridayVbnRequired.d.ts +5 -0
  18. package/dist-lib/hooks/useFloridayVbnRequired.d.ts.map +1 -0
  19. package/dist-lib/hooks/useFloridayVbnRequired.js +16 -0
  20. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  21. package/dist-lib/hooks/useLocalTradeItems.js +14 -0
  22. package/dist-lib/hooks/useTradeItemSpec.d.ts.map +1 -1
  23. package/dist-lib/hooks/useTradeItemSpec.js +48 -1
  24. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  25. package/dist-lib/hooks/useVoorraadData.js +36 -5
  26. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2388 -345
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.d.ts +2388 -345
  29. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.server.d.ts +2388 -345
  31. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/types.d.ts +2437 -343
  33. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.js +11 -9
  35. package/dist-lib/lib/centralSecrets.server.d.ts +21 -0
  36. package/dist-lib/lib/centralSecrets.server.d.ts.map +1 -0
  37. package/dist-lib/lib/centralSecrets.server.js +111 -0
  38. package/dist-lib/lib/floricode-required-features.functions.d.ts +2388 -345
  39. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-client.d.ts +4 -0
  41. package/dist-lib/lib/floriday-client.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2388 -345
  43. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-gateway.functions.d.ts +10860 -645
  45. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  47. package/dist-lib/lib/floriday-gateway.server.js +34 -9
  48. package/dist-lib/lib/floriday-info.d.ts +54 -0
  49. package/dist-lib/lib/floriday-info.d.ts.map +1 -0
  50. package/dist-lib/lib/floriday-info.js +114 -0
  51. package/dist-lib/lib/floriday-payload.d.ts +21 -3
  52. package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
  53. package/dist-lib/lib/floriday-payload.js +167 -34
  54. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +27769 -0
  55. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -0
  56. package/dist-lib/lib/floriday-vbn-required.functions.js +85 -0
  57. package/dist-lib/lib/floriday-warehouse.functions.d.ts +6602 -473
  58. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/floriday-writes.functions.d.ts +4681 -594
  60. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/floriday-writes.functions.js +36 -1
  62. package/dist-lib/lib/trade-item-prices.d.ts +43 -0
  63. package/dist-lib/lib/trade-item-prices.d.ts.map +1 -0
  64. package/dist-lib/lib/trade-item-prices.js +229 -0
  65. package/package.json +3 -3
@@ -275,12 +275,98 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
275
275
  };
276
276
  Relationships: [];
277
277
  };
278
+ ai_admin_credentials: {
279
+ Row: {
280
+ active: boolean;
281
+ admin_key: string;
282
+ created_at: string;
283
+ id: string;
284
+ label: string;
285
+ provider_id: string;
286
+ updated_at: string;
287
+ };
288
+ Insert: {
289
+ active?: boolean;
290
+ admin_key: string;
291
+ created_at?: string;
292
+ id?: string;
293
+ label: string;
294
+ provider_id: string;
295
+ updated_at?: string;
296
+ };
297
+ Update: {
298
+ active?: boolean;
299
+ admin_key?: string;
300
+ created_at?: string;
301
+ id?: string;
302
+ label?: string;
303
+ provider_id?: string;
304
+ updated_at?: string;
305
+ };
306
+ Relationships: [{
307
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
308
+ columns: ["provider_id"];
309
+ isOneToOne: true;
310
+ referencedRelation: "ai_providers";
311
+ referencedColumns: ["id"];
312
+ }];
313
+ };
314
+ ai_call_log: {
315
+ Row: {
316
+ consumer_module_id: string;
317
+ cost_usd: number | null;
318
+ created_at: string;
319
+ created_by: string | null;
320
+ duration_ms: number | null;
321
+ error_code: string | null;
322
+ error_message: string | null;
323
+ id: string;
324
+ input_tokens: number;
325
+ model_slug: string | null;
326
+ output_tokens: number;
327
+ provider_slug: string | null;
328
+ status: string;
329
+ total_tokens: number;
330
+ };
331
+ Insert: {
332
+ consumer_module_id: string;
333
+ cost_usd?: number | null;
334
+ created_at?: string;
335
+ created_by?: string | null;
336
+ duration_ms?: number | null;
337
+ error_code?: string | null;
338
+ error_message?: string | null;
339
+ id?: string;
340
+ input_tokens?: number;
341
+ model_slug?: string | null;
342
+ output_tokens?: number;
343
+ provider_slug?: string | null;
344
+ status: string;
345
+ total_tokens?: number;
346
+ };
347
+ Update: {
348
+ consumer_module_id?: string;
349
+ cost_usd?: number | null;
350
+ created_at?: string;
351
+ created_by?: string | null;
352
+ duration_ms?: number | null;
353
+ error_code?: string | null;
354
+ error_message?: string | null;
355
+ id?: string;
356
+ input_tokens?: number;
357
+ model_slug?: string | null;
358
+ output_tokens?: number;
359
+ provider_slug?: string | null;
360
+ status?: string;
361
+ total_tokens?: number;
362
+ };
363
+ Relationships: [];
364
+ };
278
365
  ai_credentials: {
279
366
  Row: {
280
367
  active: boolean;
281
368
  api_key: string;
282
369
  created_at: string;
283
- created_by: string | null;
284
370
  id: string;
285
371
  label: string;
286
372
  provider_id: string;
@@ -290,7 +376,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
290
376
  active?: boolean;
291
377
  api_key: string;
292
378
  created_at?: string;
293
- created_by?: string | null;
294
379
  id?: string;
295
380
  label: string;
296
381
  provider_id: string;
@@ -300,7 +385,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
300
385
  active?: boolean;
301
386
  api_key?: string;
302
387
  created_at?: string;
303
- created_by?: string | null;
304
388
  id?: string;
305
389
  label?: string;
306
390
  provider_id?: string;
@@ -314,6 +398,75 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
314
398
  referencedColumns: ["id"];
315
399
  }];
316
400
  };
401
+ ai_goals: {
402
+ Row: {
403
+ active: boolean;
404
+ created_at: string;
405
+ description: string | null;
406
+ key: string;
407
+ label: string;
408
+ sort_order: number;
409
+ updated_at: string;
410
+ };
411
+ Insert: {
412
+ active?: boolean;
413
+ created_at?: string;
414
+ description?: string | null;
415
+ key: string;
416
+ label: string;
417
+ sort_order?: number;
418
+ updated_at?: string;
419
+ };
420
+ Update: {
421
+ active?: boolean;
422
+ created_at?: string;
423
+ description?: string | null;
424
+ key?: string;
425
+ label?: string;
426
+ sort_order?: number;
427
+ updated_at?: string;
428
+ };
429
+ Relationships: [];
430
+ };
431
+ ai_model_pricing: {
432
+ Row: {
433
+ created_at: string;
434
+ currency: string;
435
+ fetched_at: string;
436
+ id: string;
437
+ input_per_mtok: number | null;
438
+ model_slug: string;
439
+ output_per_mtok: number | null;
440
+ provider_slug: string;
441
+ source: string;
442
+ updated_at: string;
443
+ };
444
+ Insert: {
445
+ created_at?: string;
446
+ currency?: string;
447
+ fetched_at?: string;
448
+ id?: string;
449
+ input_per_mtok?: number | null;
450
+ model_slug: string;
451
+ output_per_mtok?: number | null;
452
+ provider_slug: string;
453
+ source?: string;
454
+ updated_at?: string;
455
+ };
456
+ Update: {
457
+ created_at?: string;
458
+ currency?: string;
459
+ fetched_at?: string;
460
+ id?: string;
461
+ input_per_mtok?: number | null;
462
+ model_slug?: string;
463
+ output_per_mtok?: number | null;
464
+ provider_slug?: string;
465
+ source?: string;
466
+ updated_at?: string;
467
+ };
468
+ Relationships: [];
469
+ };
317
470
  ai_models: {
318
471
  Row: {
319
472
  active: boolean;
@@ -1061,6 +1214,141 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1061
1214
  };
1062
1215
  Relationships: [];
1063
1216
  };
1217
+ cart_planning_pick_times: {
1218
+ Row: {
1219
+ created_at: string;
1220
+ id: string;
1221
+ pot_size: string;
1222
+ seconds_per_cart: number;
1223
+ updated_at: string;
1224
+ };
1225
+ Insert: {
1226
+ created_at?: string;
1227
+ id?: string;
1228
+ pot_size: string;
1229
+ seconds_per_cart: number;
1230
+ updated_at?: string;
1231
+ };
1232
+ Update: {
1233
+ created_at?: string;
1234
+ id?: string;
1235
+ pot_size?: string;
1236
+ seconds_per_cart?: number;
1237
+ updated_at?: string;
1238
+ };
1239
+ Relationships: [];
1240
+ };
1241
+ cart_planning_product_overrides: {
1242
+ Row: {
1243
+ created_at: string;
1244
+ id: string;
1245
+ max_party_share_per_layer_pct_override: number | null;
1246
+ never_mix: boolean;
1247
+ notes: string | null;
1248
+ product_id: string;
1249
+ updated_at: string;
1250
+ };
1251
+ Insert: {
1252
+ created_at?: string;
1253
+ id?: string;
1254
+ max_party_share_per_layer_pct_override?: number | null;
1255
+ never_mix?: boolean;
1256
+ notes?: string | null;
1257
+ product_id: string;
1258
+ updated_at?: string;
1259
+ };
1260
+ Update: {
1261
+ created_at?: string;
1262
+ id?: string;
1263
+ max_party_share_per_layer_pct_override?: number | null;
1264
+ never_mix?: boolean;
1265
+ notes?: string | null;
1266
+ product_id?: string;
1267
+ updated_at?: string;
1268
+ };
1269
+ Relationships: [{
1270
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1271
+ columns: ["product_id"];
1272
+ isOneToOne: true;
1273
+ referencedRelation: "products";
1274
+ referencedColumns: ["id"];
1275
+ }];
1276
+ };
1277
+ cart_planning_settings: {
1278
+ Row: {
1279
+ allow_editing_after_pickstation_send: boolean;
1280
+ buffer_grouping_mode: string;
1281
+ combine_floriday_orders: boolean;
1282
+ combine_floriday_orders_window: string;
1283
+ combine_orders_scope: string;
1284
+ default_workers: number;
1285
+ id: number;
1286
+ max_beladingen_per_layer: number;
1287
+ max_customers_per_cart: number;
1288
+ max_one_customer_per_layer: boolean;
1289
+ max_party_share_per_layer_pct: number;
1290
+ optimization_strategy: string;
1291
+ own_cart_from_layers: number;
1292
+ pick_time_mode: string;
1293
+ plants_per_day: number;
1294
+ plants_per_hour: number;
1295
+ require_same_carrier: boolean;
1296
+ require_same_crate_type: boolean;
1297
+ require_same_delivery_date: boolean;
1298
+ require_same_delivery_location: boolean;
1299
+ updated_at: string;
1300
+ updated_by: string | null;
1301
+ };
1302
+ Insert: {
1303
+ allow_editing_after_pickstation_send?: boolean;
1304
+ buffer_grouping_mode?: string;
1305
+ combine_floriday_orders?: boolean;
1306
+ combine_floriday_orders_window?: string;
1307
+ combine_orders_scope?: string;
1308
+ default_workers?: number;
1309
+ id?: number;
1310
+ max_beladingen_per_layer?: number;
1311
+ max_customers_per_cart?: number;
1312
+ max_one_customer_per_layer?: boolean;
1313
+ max_party_share_per_layer_pct?: number;
1314
+ optimization_strategy?: string;
1315
+ own_cart_from_layers?: number;
1316
+ pick_time_mode?: string;
1317
+ plants_per_day?: number;
1318
+ plants_per_hour?: number;
1319
+ require_same_carrier?: boolean;
1320
+ require_same_crate_type?: boolean;
1321
+ require_same_delivery_date?: boolean;
1322
+ require_same_delivery_location?: boolean;
1323
+ updated_at?: string;
1324
+ updated_by?: string | null;
1325
+ };
1326
+ Update: {
1327
+ allow_editing_after_pickstation_send?: boolean;
1328
+ buffer_grouping_mode?: string;
1329
+ combine_floriday_orders?: boolean;
1330
+ combine_floriday_orders_window?: string;
1331
+ combine_orders_scope?: string;
1332
+ default_workers?: number;
1333
+ id?: number;
1334
+ max_beladingen_per_layer?: number;
1335
+ max_customers_per_cart?: number;
1336
+ max_one_customer_per_layer?: boolean;
1337
+ max_party_share_per_layer_pct?: number;
1338
+ optimization_strategy?: string;
1339
+ own_cart_from_layers?: number;
1340
+ pick_time_mode?: string;
1341
+ plants_per_day?: number;
1342
+ plants_per_hour?: number;
1343
+ require_same_carrier?: boolean;
1344
+ require_same_crate_type?: boolean;
1345
+ require_same_delivery_date?: boolean;
1346
+ require_same_delivery_location?: boolean;
1347
+ updated_at?: string;
1348
+ updated_by?: string | null;
1349
+ };
1350
+ Relationships: [];
1351
+ };
1064
1352
  cart_replan_queue: {
1065
1353
  Row: {
1066
1354
  attempts: number;
@@ -1091,111 +1379,237 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1091
1379
  referencedColumns: ["id"];
1092
1380
  }];
1093
1381
  };
1094
- collections: {
1382
+ cart_types: {
1095
1383
  Row: {
1096
1384
  created_at: string;
1097
- created_by: string | null;
1098
1385
  id: string;
1386
+ is_default: boolean;
1387
+ layer_length_cm: number;
1388
+ layer_width_cm: number;
1389
+ layers_per_cart: number;
1099
1390
  name: string;
1100
1391
  updated_at: string;
1101
1392
  };
1102
1393
  Insert: {
1103
1394
  created_at?: string;
1104
- created_by?: string | null;
1105
1395
  id?: string;
1396
+ is_default?: boolean;
1397
+ layer_length_cm: number;
1398
+ layer_width_cm: number;
1399
+ layers_per_cart?: number;
1106
1400
  name: string;
1107
1401
  updated_at?: string;
1108
1402
  };
1109
1403
  Update: {
1110
1404
  created_at?: string;
1111
- created_by?: string | null;
1112
1405
  id?: string;
1406
+ is_default?: boolean;
1407
+ layer_length_cm?: number;
1408
+ layer_width_cm?: number;
1409
+ layers_per_cart?: number;
1113
1410
  name?: string;
1114
1411
  updated_at?: string;
1115
1412
  };
1116
1413
  Relationships: [];
1117
1414
  };
1118
- customer_audit_log: {
1415
+ catalog_articles_cache: {
1119
1416
  Row: {
1120
- action: string;
1121
- changes: import("../integrations/supabase/types").Json;
1122
1417
  created_at: string;
1123
- customer_id: string;
1418
+ default_price: number;
1419
+ default_vat_rate_ref: string | null;
1420
+ external_ref: string;
1124
1421
  id: string;
1125
- user_id: string | null;
1422
+ name: string;
1423
+ updated_at: string;
1424
+ user_id: string;
1126
1425
  };
1127
1426
  Insert: {
1128
- action: string;
1129
- changes?: import("../integrations/supabase/types").Json;
1130
1427
  created_at?: string;
1131
- customer_id: string;
1428
+ default_price?: number;
1429
+ default_vat_rate_ref?: string | null;
1430
+ external_ref: string;
1132
1431
  id?: string;
1133
- user_id?: string | null;
1432
+ name: string;
1433
+ updated_at?: string;
1434
+ user_id: string;
1134
1435
  };
1135
1436
  Update: {
1136
- action?: string;
1137
- changes?: import("../integrations/supabase/types").Json;
1138
1437
  created_at?: string;
1139
- customer_id?: string;
1438
+ default_price?: number;
1439
+ default_vat_rate_ref?: string | null;
1440
+ external_ref?: string;
1140
1441
  id?: string;
1141
- user_id?: string | null;
1442
+ name?: string;
1443
+ updated_at?: string;
1444
+ user_id?: string;
1142
1445
  };
1143
- Relationships: [{
1144
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1145
- columns: ["customer_id"];
1146
- isOneToOne: false;
1147
- referencedRelation: "customers";
1148
- referencedColumns: ["id"];
1149
- }];
1446
+ Relationships: [];
1150
1447
  };
1151
- customer_contacts: {
1448
+ catalog_vat_rates_cache: {
1152
1449
  Row: {
1153
1450
  created_at: string;
1154
- customer_id: string;
1155
- email: string | null;
1156
- floriday_contact_id: string | null;
1157
- full_name: string;
1451
+ external_ref: string;
1158
1452
  id: string;
1159
- is_active: boolean;
1160
- job_title: string | null;
1161
- phone: string | null;
1162
- photo_url: string | null;
1163
- raw: import("../integrations/supabase/types").Json | null;
1453
+ label: string;
1454
+ percentage: number;
1164
1455
  updated_at: string;
1456
+ user_id: string;
1165
1457
  };
1166
1458
  Insert: {
1167
1459
  created_at?: string;
1168
- customer_id: string;
1169
- email?: string | null;
1170
- floriday_contact_id?: string | null;
1171
- full_name: string;
1460
+ external_ref: string;
1172
1461
  id?: string;
1173
- is_active?: boolean;
1174
- job_title?: string | null;
1175
- phone?: string | null;
1176
- photo_url?: string | null;
1177
- raw?: import("../integrations/supabase/types").Json | null;
1462
+ label: string;
1463
+ percentage?: number;
1178
1464
  updated_at?: string;
1465
+ user_id: string;
1179
1466
  };
1180
1467
  Update: {
1181
1468
  created_at?: string;
1182
- customer_id?: string;
1183
- email?: string | null;
1184
- floriday_contact_id?: string | null;
1185
- full_name?: string;
1469
+ external_ref?: string;
1186
1470
  id?: string;
1187
- is_active?: boolean;
1188
- job_title?: string | null;
1189
- phone?: string | null;
1190
- photo_url?: string | null;
1191
- raw?: import("../integrations/supabase/types").Json | null;
1471
+ label?: string;
1472
+ percentage?: number;
1192
1473
  updated_at?: string;
1474
+ user_id?: string;
1193
1475
  };
1194
- Relationships: [{
1195
- foreignKeyName: "customer_contacts_customer_id_fkey";
1196
- columns: ["customer_id"];
1197
- isOneToOne: false;
1198
- referencedRelation: "customers";
1476
+ Relationships: [];
1477
+ };
1478
+ collections: {
1479
+ Row: {
1480
+ created_at: string;
1481
+ created_by: string | null;
1482
+ id: string;
1483
+ name: string;
1484
+ updated_at: string;
1485
+ };
1486
+ Insert: {
1487
+ created_at?: string;
1488
+ created_by?: string | null;
1489
+ id?: string;
1490
+ name: string;
1491
+ updated_at?: string;
1492
+ };
1493
+ Update: {
1494
+ created_at?: string;
1495
+ created_by?: string | null;
1496
+ id?: string;
1497
+ name?: string;
1498
+ updated_at?: string;
1499
+ };
1500
+ Relationships: [];
1501
+ };
1502
+ crate_types: {
1503
+ Row: {
1504
+ created_at: string;
1505
+ id: string;
1506
+ length_cm: number;
1507
+ name: string;
1508
+ plants_per_crate: number;
1509
+ updated_at: string;
1510
+ width_cm: number;
1511
+ };
1512
+ Insert: {
1513
+ created_at?: string;
1514
+ id?: string;
1515
+ length_cm: number;
1516
+ name: string;
1517
+ plants_per_crate?: number;
1518
+ updated_at?: string;
1519
+ width_cm: number;
1520
+ };
1521
+ Update: {
1522
+ created_at?: string;
1523
+ id?: string;
1524
+ length_cm?: number;
1525
+ name?: string;
1526
+ plants_per_crate?: number;
1527
+ updated_at?: string;
1528
+ width_cm?: number;
1529
+ };
1530
+ Relationships: [];
1531
+ };
1532
+ customer_audit_log: {
1533
+ Row: {
1534
+ action: string;
1535
+ changes: import("../integrations/supabase/types").Json;
1536
+ created_at: string;
1537
+ customer_id: string;
1538
+ id: string;
1539
+ user_id: string | null;
1540
+ };
1541
+ Insert: {
1542
+ action: string;
1543
+ changes?: import("../integrations/supabase/types").Json;
1544
+ created_at?: string;
1545
+ customer_id: string;
1546
+ id?: string;
1547
+ user_id?: string | null;
1548
+ };
1549
+ Update: {
1550
+ action?: string;
1551
+ changes?: import("../integrations/supabase/types").Json;
1552
+ created_at?: string;
1553
+ customer_id?: string;
1554
+ id?: string;
1555
+ user_id?: string | null;
1556
+ };
1557
+ Relationships: [{
1558
+ foreignKeyName: "customer_audit_log_customer_id_fkey";
1559
+ columns: ["customer_id"];
1560
+ isOneToOne: false;
1561
+ referencedRelation: "customers";
1562
+ referencedColumns: ["id"];
1563
+ }];
1564
+ };
1565
+ customer_contacts: {
1566
+ Row: {
1567
+ created_at: string;
1568
+ customer_id: string;
1569
+ email: string | null;
1570
+ floriday_contact_id: string | null;
1571
+ full_name: string;
1572
+ id: string;
1573
+ is_active: boolean;
1574
+ job_title: string | null;
1575
+ phone: string | null;
1576
+ photo_url: string | null;
1577
+ raw: import("../integrations/supabase/types").Json | null;
1578
+ updated_at: string;
1579
+ };
1580
+ Insert: {
1581
+ created_at?: string;
1582
+ customer_id: string;
1583
+ email?: string | null;
1584
+ floriday_contact_id?: string | null;
1585
+ full_name: string;
1586
+ id?: string;
1587
+ is_active?: boolean;
1588
+ job_title?: string | null;
1589
+ phone?: string | null;
1590
+ photo_url?: string | null;
1591
+ raw?: import("../integrations/supabase/types").Json | null;
1592
+ updated_at?: string;
1593
+ };
1594
+ Update: {
1595
+ created_at?: string;
1596
+ customer_id?: string;
1597
+ email?: string | null;
1598
+ floriday_contact_id?: string | null;
1599
+ full_name?: string;
1600
+ id?: string;
1601
+ is_active?: boolean;
1602
+ job_title?: string | null;
1603
+ phone?: string | null;
1604
+ photo_url?: string | null;
1605
+ raw?: import("../integrations/supabase/types").Json | null;
1606
+ updated_at?: string;
1607
+ };
1608
+ Relationships: [{
1609
+ foreignKeyName: "customer_contacts_customer_id_fkey";
1610
+ columns: ["customer_id"];
1611
+ isOneToOne: false;
1612
+ referencedRelation: "customers";
1199
1613
  referencedColumns: ["id"];
1200
1614
  }];
1201
1615
  };
@@ -1340,6 +1754,105 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1340
1754
  };
1341
1755
  Relationships: [];
1342
1756
  };
1757
+ customer_price_group_members: {
1758
+ Row: {
1759
+ created_at: string;
1760
+ customer_key: string;
1761
+ id: string;
1762
+ owner_id: string;
1763
+ price_group_id: string;
1764
+ };
1765
+ Insert: {
1766
+ created_at?: string;
1767
+ customer_key: string;
1768
+ id?: string;
1769
+ owner_id?: string;
1770
+ price_group_id: string;
1771
+ };
1772
+ Update: {
1773
+ created_at?: string;
1774
+ customer_key?: string;
1775
+ id?: string;
1776
+ owner_id?: string;
1777
+ price_group_id?: string;
1778
+ };
1779
+ Relationships: [{
1780
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1781
+ columns: ["price_group_id"];
1782
+ isOneToOne: false;
1783
+ referencedRelation: "customer_price_groups";
1784
+ referencedColumns: ["id"];
1785
+ }];
1786
+ };
1787
+ customer_price_groups: {
1788
+ Row: {
1789
+ calc_type: string | null;
1790
+ calc_value: number | null;
1791
+ calc_value_type: string | null;
1792
+ created_at: string;
1793
+ currency: string;
1794
+ distribute_over: string | null;
1795
+ group_type: string;
1796
+ handling_fee: number | null;
1797
+ id: string;
1798
+ include_stickers: boolean;
1799
+ is_active: boolean;
1800
+ name: string;
1801
+ owner_id: string;
1802
+ price_scope: string;
1803
+ pricing_mode: string;
1804
+ rounding: string;
1805
+ rounding_step: number;
1806
+ sort_order: number;
1807
+ unit: string;
1808
+ updated_at: string;
1809
+ };
1810
+ Insert: {
1811
+ calc_type?: string | null;
1812
+ calc_value?: number | null;
1813
+ calc_value_type?: string | null;
1814
+ created_at?: string;
1815
+ currency?: string;
1816
+ distribute_over?: string | null;
1817
+ group_type?: string;
1818
+ handling_fee?: number | null;
1819
+ id?: string;
1820
+ include_stickers?: boolean;
1821
+ is_active?: boolean;
1822
+ name: string;
1823
+ owner_id?: string;
1824
+ price_scope?: string;
1825
+ pricing_mode?: string;
1826
+ rounding?: string;
1827
+ rounding_step?: number;
1828
+ sort_order?: number;
1829
+ unit?: string;
1830
+ updated_at?: string;
1831
+ };
1832
+ Update: {
1833
+ calc_type?: string | null;
1834
+ calc_value?: number | null;
1835
+ calc_value_type?: string | null;
1836
+ created_at?: string;
1837
+ currency?: string;
1838
+ distribute_over?: string | null;
1839
+ group_type?: string;
1840
+ handling_fee?: number | null;
1841
+ id?: string;
1842
+ include_stickers?: boolean;
1843
+ is_active?: boolean;
1844
+ name?: string;
1845
+ owner_id?: string;
1846
+ price_scope?: string;
1847
+ pricing_mode?: string;
1848
+ rounding?: string;
1849
+ rounding_step?: number;
1850
+ sort_order?: number;
1851
+ unit?: string;
1852
+ updated_at?: string;
1853
+ };
1854
+ Relationships: [];
1855
+ };
1343
1856
  customer_selected_assortment: {
1344
1857
  Row: {
1345
1858
  article_number: string | null;
@@ -1493,6 +2006,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1493
2006
  sync_error: string | null;
1494
2007
  sync_status: string;
1495
2008
  trade_forms: string[];
2009
+ twinfield_code: string | null;
2010
+ twinfield_last_hash: string | null;
2011
+ twinfield_sync_error: string | null;
2012
+ twinfield_synced_at: string | null;
1496
2013
  updated_at: string;
1497
2014
  vat_display: string | null;
1498
2015
  vat_number: string | null;
@@ -1560,6 +2077,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1560
2077
  sync_error?: string | null;
1561
2078
  sync_status?: string;
1562
2079
  trade_forms?: string[];
2080
+ twinfield_code?: string | null;
2081
+ twinfield_last_hash?: string | null;
2082
+ twinfield_sync_error?: string | null;
2083
+ twinfield_synced_at?: string | null;
1563
2084
  updated_at?: string;
1564
2085
  vat_display?: string | null;
1565
2086
  vat_number?: string | null;
@@ -1627,6 +2148,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1627
2148
  sync_error?: string | null;
1628
2149
  sync_status?: string;
1629
2150
  trade_forms?: string[];
2151
+ twinfield_code?: string | null;
2152
+ twinfield_last_hash?: string | null;
2153
+ twinfield_sync_error?: string | null;
2154
+ twinfield_synced_at?: string | null;
1630
2155
  updated_at?: string;
1631
2156
  vat_display?: string | null;
1632
2157
  vat_number?: string | null;
@@ -3440,74 +3965,173 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3440
3965
  referencedColumns: ["id"];
3441
3966
  }];
3442
3967
  };
3443
- floriday_auction_letters_cache: {
3968
+ floriday_agreement_calloffs_cache: {
3444
3969
  Row: {
3445
- auction_letter_code: string;
3446
- clock_supply_id: string;
3970
+ agreement_id: string | null;
3447
3971
  connection_id: string;
3448
- content_type: string;
3972
+ data: import("../integrations/supabase/types").Json;
3973
+ delivery_date: string | null;
3449
3974
  fetched_at: string;
3975
+ floriday_id: string;
3450
3976
  id: string;
3451
- storage_path: string;
3977
+ is_deleted: boolean;
3978
+ sequence_number: number;
3979
+ status: string | null;
3980
+ updated_at: string;
3452
3981
  };
3453
3982
  Insert: {
3454
- auction_letter_code: string;
3455
- clock_supply_id: string;
3983
+ agreement_id?: string | null;
3456
3984
  connection_id: string;
3457
- content_type?: string;
3985
+ data?: import("../integrations/supabase/types").Json;
3986
+ delivery_date?: string | null;
3458
3987
  fetched_at?: string;
3988
+ floriday_id: string;
3459
3989
  id?: string;
3460
- storage_path: string;
3990
+ is_deleted?: boolean;
3991
+ sequence_number?: number;
3992
+ status?: string | null;
3993
+ updated_at?: string;
3461
3994
  };
3462
3995
  Update: {
3463
- auction_letter_code?: string;
3464
- clock_supply_id?: string;
3996
+ agreement_id?: string | null;
3465
3997
  connection_id?: string;
3466
- content_type?: string;
3998
+ data?: import("../integrations/supabase/types").Json;
3999
+ delivery_date?: string | null;
3467
4000
  fetched_at?: string;
4001
+ floriday_id?: string;
3468
4002
  id?: string;
3469
- storage_path?: string;
4003
+ is_deleted?: boolean;
4004
+ sequence_number?: number;
4005
+ status?: string | null;
4006
+ updated_at?: string;
3470
4007
  };
3471
4008
  Relationships: [{
3472
- foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
4009
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3473
4010
  columns: ["connection_id"];
3474
4011
  isOneToOne: false;
3475
4012
  referencedRelation: "floriday_connections";
3476
4013
  referencedColumns: ["id"];
3477
4014
  }];
3478
4015
  };
3479
- floriday_auto_fulfillment_log: {
4016
+ floriday_agreements_cache: {
3480
4017
  Row: {
3481
- attempts: number;
4018
+ buyer_organization_id: string | null;
3482
4019
  connection_id: string;
3483
- created_at: string;
3484
- error: string | null;
3485
- fulfillment_order_id: string | null;
4020
+ data: import("../integrations/supabase/types").Json;
4021
+ fetched_at: string;
4022
+ floriday_id: string;
3486
4023
  id: string;
3487
- last_attempt_at: string | null;
3488
- reason: string | null;
3489
- sales_order_id: string;
3490
- status: string;
4024
+ is_deleted: boolean;
4025
+ sequence_number: number;
4026
+ status: string | null;
3491
4027
  updated_at: string;
4028
+ valid_from: string | null;
4029
+ valid_until: string | null;
3492
4030
  };
3493
4031
  Insert: {
3494
- attempts?: number;
4032
+ buyer_organization_id?: string | null;
3495
4033
  connection_id: string;
3496
- created_at?: string;
3497
- error?: string | null;
3498
- fulfillment_order_id?: string | null;
4034
+ data?: import("../integrations/supabase/types").Json;
4035
+ fetched_at?: string;
4036
+ floriday_id: string;
3499
4037
  id?: string;
3500
- last_attempt_at?: string | null;
3501
- reason?: string | null;
3502
- sales_order_id: string;
3503
- status?: string;
4038
+ is_deleted?: boolean;
4039
+ sequence_number?: number;
4040
+ status?: string | null;
3504
4041
  updated_at?: string;
4042
+ valid_from?: string | null;
4043
+ valid_until?: string | null;
3505
4044
  };
3506
4045
  Update: {
3507
- attempts?: number;
4046
+ buyer_organization_id?: string | null;
3508
4047
  connection_id?: string;
3509
- created_at?: string;
3510
- error?: string | null;
4048
+ data?: import("../integrations/supabase/types").Json;
4049
+ fetched_at?: string;
4050
+ floriday_id?: string;
4051
+ id?: string;
4052
+ is_deleted?: boolean;
4053
+ sequence_number?: number;
4054
+ status?: string | null;
4055
+ updated_at?: string;
4056
+ valid_from?: string | null;
4057
+ valid_until?: string | null;
4058
+ };
4059
+ Relationships: [{
4060
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
4061
+ columns: ["connection_id"];
4062
+ isOneToOne: false;
4063
+ referencedRelation: "floriday_connections";
4064
+ referencedColumns: ["id"];
4065
+ }];
4066
+ };
4067
+ floriday_auction_letters_cache: {
4068
+ Row: {
4069
+ auction_letter_code: string;
4070
+ clock_supply_id: string;
4071
+ connection_id: string;
4072
+ content_type: string;
4073
+ fetched_at: string;
4074
+ id: string;
4075
+ storage_path: string;
4076
+ };
4077
+ Insert: {
4078
+ auction_letter_code: string;
4079
+ clock_supply_id: string;
4080
+ connection_id: string;
4081
+ content_type?: string;
4082
+ fetched_at?: string;
4083
+ id?: string;
4084
+ storage_path: string;
4085
+ };
4086
+ Update: {
4087
+ auction_letter_code?: string;
4088
+ clock_supply_id?: string;
4089
+ connection_id?: string;
4090
+ content_type?: string;
4091
+ fetched_at?: string;
4092
+ id?: string;
4093
+ storage_path?: string;
4094
+ };
4095
+ Relationships: [{
4096
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
4097
+ columns: ["connection_id"];
4098
+ isOneToOne: false;
4099
+ referencedRelation: "floriday_connections";
4100
+ referencedColumns: ["id"];
4101
+ }];
4102
+ };
4103
+ floriday_auto_fulfillment_log: {
4104
+ Row: {
4105
+ attempts: number;
4106
+ connection_id: string;
4107
+ created_at: string;
4108
+ error: string | null;
4109
+ fulfillment_order_id: string | null;
4110
+ id: string;
4111
+ last_attempt_at: string | null;
4112
+ reason: string | null;
4113
+ sales_order_id: string;
4114
+ status: string;
4115
+ updated_at: string;
4116
+ };
4117
+ Insert: {
4118
+ attempts?: number;
4119
+ connection_id: string;
4120
+ created_at?: string;
4121
+ error?: string | null;
4122
+ fulfillment_order_id?: string | null;
4123
+ id?: string;
4124
+ last_attempt_at?: string | null;
4125
+ reason?: string | null;
4126
+ sales_order_id: string;
4127
+ status?: string;
4128
+ updated_at?: string;
4129
+ };
4130
+ Update: {
4131
+ attempts?: number;
4132
+ connection_id?: string;
4133
+ created_at?: string;
4134
+ error?: string | null;
3511
4135
  fulfillment_order_id?: string | null;
3512
4136
  id?: string;
3513
4137
  last_attempt_at?: string | null;
@@ -4937,45 +5561,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
4937
5561
  referencedColumns: ["id"];
4938
5562
  }];
4939
5563
  };
4940
- floriday_trade_settings_customers_cache: {
4941
- Row: {
4942
- connection_id: string;
4943
- data: import("../integrations/supabase/types").Json;
4944
- fetched_at: string;
4945
- floriday_id: string;
4946
- id: string;
4947
- is_deleted: boolean;
4948
- sequence_number: number;
4949
- updated_at: string;
4950
- };
4951
- Insert: {
4952
- connection_id: string;
4953
- data: import("../integrations/supabase/types").Json;
4954
- fetched_at?: string;
4955
- floriday_id: string;
4956
- id?: string;
4957
- is_deleted?: boolean;
4958
- sequence_number?: number;
4959
- updated_at?: string;
4960
- };
4961
- Update: {
4962
- connection_id?: string;
4963
- data?: import("../integrations/supabase/types").Json;
4964
- fetched_at?: string;
4965
- floriday_id?: string;
4966
- id?: string;
4967
- is_deleted?: boolean;
4968
- sequence_number?: number;
4969
- updated_at?: string;
4970
- };
4971
- Relationships: [{
4972
- foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4973
- columns: ["connection_id"];
4974
- isOneToOne: false;
4975
- referencedRelation: "floriday_connections";
4976
- referencedColumns: ["id"];
4977
- }];
4978
- };
4979
5564
  floriday_trips_cache: {
4980
5565
  Row: {
4981
5566
  carrier_organization_id: string | null;
@@ -5024,6 +5609,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5024
5609
  referencedColumns: ["id"];
5025
5610
  }];
5026
5611
  };
5612
+ floriday_vbn_required_characteristics: {
5613
+ Row: {
5614
+ required_codes: string[];
5615
+ updated_at: string;
5616
+ updated_by: string | null;
5617
+ vbn_code: string;
5618
+ };
5619
+ Insert: {
5620
+ required_codes?: string[];
5621
+ updated_at?: string;
5622
+ updated_by?: string | null;
5623
+ vbn_code: string;
5624
+ };
5625
+ Update: {
5626
+ required_codes?: string[];
5627
+ updated_at?: string;
5628
+ updated_by?: string | null;
5629
+ vbn_code?: string;
5630
+ };
5631
+ Relationships: [];
5632
+ };
5027
5633
  floriday_warehouses_cache: {
5028
5634
  Row: {
5029
5635
  connection_id: string;
@@ -5504,225 +6110,786 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5504
6110
  };
5505
6111
  Relationships: [];
5506
6112
  };
5507
- local_customer_agreements: {
6113
+ itk_contact_persons: {
5508
6114
  Row: {
5509
- base_price: number | null;
5510
6115
  created_at: string;
5511
- currency: string;
5512
6116
  customer_id: string;
6117
+ email: string | null;
5513
6118
  id: string;
5514
- min_quantity: number;
5515
- net_price: number;
5516
- notes: string | null;
5517
- product_category_id: string | null;
5518
- product_id: string | null;
6119
+ name: string;
6120
+ phone: string | null;
6121
+ role: string | null;
5519
6122
  updated_at: string;
5520
- valid_from: string | null;
5521
- valid_until: string | null;
5522
6123
  };
5523
6124
  Insert: {
5524
- base_price?: number | null;
5525
6125
  created_at?: string;
5526
- currency?: string;
5527
6126
  customer_id: string;
6127
+ email?: string | null;
5528
6128
  id?: string;
5529
- min_quantity?: number;
5530
- net_price: number;
5531
- notes?: string | null;
5532
- product_category_id?: string | null;
5533
- product_id?: string | null;
6129
+ name: string;
6130
+ phone?: string | null;
6131
+ role?: string | null;
5534
6132
  updated_at?: string;
5535
- valid_from?: string | null;
5536
- valid_until?: string | null;
5537
6133
  };
5538
6134
  Update: {
5539
- base_price?: number | null;
5540
6135
  created_at?: string;
5541
- currency?: string;
5542
6136
  customer_id?: string;
6137
+ email?: string | null;
5543
6138
  id?: string;
5544
- min_quantity?: number;
5545
- net_price?: number;
5546
- notes?: string | null;
5547
- product_category_id?: string | null;
5548
- product_id?: string | null;
6139
+ name?: string;
6140
+ phone?: string | null;
6141
+ role?: string | null;
5549
6142
  updated_at?: string;
5550
- valid_from?: string | null;
5551
- valid_until?: string | null;
5552
6143
  };
5553
6144
  Relationships: [{
5554
- foreignKeyName: "local_customer_agreements_customer_id_fkey";
6145
+ foreignKeyName: "itk_contact_persons_customer_id_fkey";
5555
6146
  columns: ["customer_id"];
5556
6147
  isOneToOne: false;
5557
- referencedRelation: "customers";
6148
+ referencedRelation: "itk_customers";
5558
6149
  referencedColumns: ["id"];
5559
- }, {
5560
- foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5561
- columns: ["product_category_id"];
6150
+ }];
6151
+ };
6152
+ itk_customer_dynamic_values: {
6153
+ Row: {
6154
+ created_at: string;
6155
+ customer_id: string;
6156
+ field_id: string;
6157
+ id: string;
6158
+ updated_at: string;
6159
+ value: string | null;
6160
+ };
6161
+ Insert: {
6162
+ created_at?: string;
6163
+ customer_id: string;
6164
+ field_id: string;
6165
+ id?: string;
6166
+ updated_at?: string;
6167
+ value?: string | null;
6168
+ };
6169
+ Update: {
6170
+ created_at?: string;
6171
+ customer_id?: string;
6172
+ field_id?: string;
6173
+ id?: string;
6174
+ updated_at?: string;
6175
+ value?: string | null;
6176
+ };
6177
+ Relationships: [{
6178
+ foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
6179
+ columns: ["customer_id"];
5562
6180
  isOneToOne: false;
5563
- referencedRelation: "product_categories";
6181
+ referencedRelation: "itk_customers";
5564
6182
  referencedColumns: ["id"];
5565
6183
  }, {
5566
- foreignKeyName: "local_customer_agreements_product_id_fkey";
5567
- columns: ["product_id"];
6184
+ foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
6185
+ columns: ["field_id"];
5568
6186
  isOneToOne: false;
5569
- referencedRelation: "products";
6187
+ referencedRelation: "itk_dynamic_fields";
5570
6188
  referencedColumns: ["id"];
5571
6189
  }];
5572
6190
  };
5573
- local_customer_price_groups: {
6191
+ itk_customer_notes: {
5574
6192
  Row: {
6193
+ body: string;
5575
6194
  created_at: string;
5576
- currency: string;
6195
+ created_by: string | null;
5577
6196
  customer_id: string;
5578
- discount_type: string;
5579
- discount_value: number;
5580
6197
  id: string;
5581
- min_quantity: number;
5582
- notes: string | null;
5583
- product_category_id: string | null;
5584
- product_id: string | null;
6198
+ note_type: string;
5585
6199
  updated_at: string;
5586
- valid_from: string | null;
5587
- valid_until: string | null;
5588
6200
  };
5589
6201
  Insert: {
6202
+ body: string;
5590
6203
  created_at?: string;
5591
- currency?: string;
6204
+ created_by?: string | null;
5592
6205
  customer_id: string;
5593
- discount_type: string;
5594
- discount_value: number;
5595
6206
  id?: string;
5596
- min_quantity?: number;
5597
- notes?: string | null;
5598
- product_category_id?: string | null;
5599
- product_id?: string | null;
6207
+ note_type?: string;
5600
6208
  updated_at?: string;
5601
- valid_from?: string | null;
5602
- valid_until?: string | null;
5603
6209
  };
5604
6210
  Update: {
6211
+ body?: string;
5605
6212
  created_at?: string;
5606
- currency?: string;
6213
+ created_by?: string | null;
5607
6214
  customer_id?: string;
5608
- discount_type?: string;
5609
- discount_value?: number;
5610
6215
  id?: string;
5611
- min_quantity?: number;
5612
- notes?: string | null;
5613
- product_category_id?: string | null;
5614
- product_id?: string | null;
6216
+ note_type?: string;
5615
6217
  updated_at?: string;
5616
- valid_from?: string | null;
5617
- valid_until?: string | null;
5618
6218
  };
5619
6219
  Relationships: [{
5620
- foreignKeyName: "local_customer_price_groups_customer_id_fkey";
6220
+ foreignKeyName: "itk_customer_notes_customer_id_fkey";
5621
6221
  columns: ["customer_id"];
5622
6222
  isOneToOne: false;
5623
- referencedRelation: "customers";
5624
- referencedColumns: ["id"];
5625
- }, {
5626
- foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5627
- columns: ["product_category_id"];
5628
- isOneToOne: false;
5629
- referencedRelation: "product_categories";
6223
+ referencedRelation: "itk_customers";
5630
6224
  referencedColumns: ["id"];
5631
- }, {
5632
- foreignKeyName: "local_customer_price_groups_product_id_fkey";
5633
- columns: ["product_id"];
5634
- isOneToOne: false;
5635
- referencedRelation: "products";
6225
+ }];
6226
+ };
6227
+ itk_customers: {
6228
+ Row: {
6229
+ billing_city: string | null;
6230
+ billing_postcode: string | null;
6231
+ billing_street: string | null;
6232
+ created_at: string;
6233
+ general_email: string | null;
6234
+ general_phone: string | null;
6235
+ id: string;
6236
+ legacy_customer_id: string | null;
6237
+ name: string;
6238
+ segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
6239
+ updated_at: string;
6240
+ };
6241
+ Insert: {
6242
+ billing_city?: string | null;
6243
+ billing_postcode?: string | null;
6244
+ billing_street?: string | null;
6245
+ created_at?: string;
6246
+ general_email?: string | null;
6247
+ general_phone?: string | null;
6248
+ id?: string;
6249
+ legacy_customer_id?: string | null;
6250
+ name: string;
6251
+ segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
6252
+ updated_at?: string;
6253
+ };
6254
+ Update: {
6255
+ billing_city?: string | null;
6256
+ billing_postcode?: string | null;
6257
+ billing_street?: string | null;
6258
+ created_at?: string;
6259
+ general_email?: string | null;
6260
+ general_phone?: string | null;
6261
+ id?: string;
6262
+ legacy_customer_id?: string | null;
6263
+ name?: string;
6264
+ segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
6265
+ updated_at?: string;
6266
+ };
6267
+ Relationships: [{
6268
+ foreignKeyName: "itk_customers_legacy_customer_id_fkey";
6269
+ columns: ["legacy_customer_id"];
6270
+ isOneToOne: false;
6271
+ referencedRelation: "customers";
6272
+ referencedColumns: ["id"];
6273
+ }];
6274
+ };
6275
+ itk_dynamic_fields: {
6276
+ Row: {
6277
+ created_at: string;
6278
+ field_name: string;
6279
+ field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
6280
+ id: string;
6281
+ options: import("../integrations/supabase/types").Json;
6282
+ sort_order: number;
6283
+ updated_at: string;
6284
+ };
6285
+ Insert: {
6286
+ created_at?: string;
6287
+ field_name: string;
6288
+ field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
6289
+ id?: string;
6290
+ options?: import("../integrations/supabase/types").Json;
6291
+ sort_order?: number;
6292
+ updated_at?: string;
6293
+ };
6294
+ Update: {
6295
+ created_at?: string;
6296
+ field_name?: string;
6297
+ field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
6298
+ id?: string;
6299
+ options?: import("../integrations/supabase/types").Json;
6300
+ sort_order?: number;
6301
+ updated_at?: string;
6302
+ };
6303
+ Relationships: [];
6304
+ };
6305
+ itk_work_locations: {
6306
+ Row: {
6307
+ city: string | null;
6308
+ created_at: string;
6309
+ customer_id: string;
6310
+ id: string;
6311
+ instructions: string | null;
6312
+ label: string;
6313
+ latitude: number | null;
6314
+ longitude: number | null;
6315
+ postcode: string | null;
6316
+ street: string | null;
6317
+ updated_at: string;
6318
+ };
6319
+ Insert: {
6320
+ city?: string | null;
6321
+ created_at?: string;
6322
+ customer_id: string;
6323
+ id?: string;
6324
+ instructions?: string | null;
6325
+ label: string;
6326
+ latitude?: number | null;
6327
+ longitude?: number | null;
6328
+ postcode?: string | null;
6329
+ street?: string | null;
6330
+ updated_at?: string;
6331
+ };
6332
+ Update: {
6333
+ city?: string | null;
6334
+ created_at?: string;
6335
+ customer_id?: string;
6336
+ id?: string;
6337
+ instructions?: string | null;
6338
+ label?: string;
6339
+ latitude?: number | null;
6340
+ longitude?: number | null;
6341
+ postcode?: string | null;
6342
+ street?: string | null;
6343
+ updated_at?: string;
6344
+ };
6345
+ Relationships: [{
6346
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
6347
+ columns: ["customer_id"];
6348
+ isOneToOne: false;
6349
+ referencedRelation: "itk_customers";
6350
+ referencedColumns: ["id"];
6351
+ }];
6352
+ };
6353
+ leave_requests: {
6354
+ Row: {
6355
+ created_at: string;
6356
+ end_date: string;
6357
+ id: string;
6358
+ reason: string | null;
6359
+ start_date: string;
6360
+ status: string;
6361
+ tenant_id: string;
6362
+ updated_at: string;
6363
+ user_id: string;
6364
+ };
6365
+ Insert: {
6366
+ created_at?: string;
6367
+ end_date: string;
6368
+ id?: string;
6369
+ reason?: string | null;
6370
+ start_date: string;
6371
+ status?: string;
6372
+ tenant_id?: string;
6373
+ updated_at?: string;
6374
+ user_id: string;
6375
+ };
6376
+ Update: {
6377
+ created_at?: string;
6378
+ end_date?: string;
6379
+ id?: string;
6380
+ reason?: string | null;
6381
+ start_date?: string;
6382
+ status?: string;
6383
+ tenant_id?: string;
6384
+ updated_at?: string;
6385
+ user_id?: string;
6386
+ };
6387
+ Relationships: [{
6388
+ foreignKeyName: "leave_requests_user_id_fkey";
6389
+ columns: ["user_id"];
6390
+ isOneToOne: false;
6391
+ referencedRelation: "monteurs";
6392
+ referencedColumns: ["id"];
6393
+ }];
6394
+ };
6395
+ local_customer_agreements: {
6396
+ Row: {
6397
+ base_price: number | null;
6398
+ created_at: string;
6399
+ currency: string;
6400
+ customer_id: string;
6401
+ id: string;
6402
+ min_quantity: number;
6403
+ net_price: number;
6404
+ notes: string | null;
6405
+ product_category_id: string | null;
6406
+ product_id: string | null;
6407
+ updated_at: string;
6408
+ valid_from: string | null;
6409
+ valid_until: string | null;
6410
+ };
6411
+ Insert: {
6412
+ base_price?: number | null;
6413
+ created_at?: string;
6414
+ currency?: string;
6415
+ customer_id: string;
6416
+ id?: string;
6417
+ min_quantity?: number;
6418
+ net_price: number;
6419
+ notes?: string | null;
6420
+ product_category_id?: string | null;
6421
+ product_id?: string | null;
6422
+ updated_at?: string;
6423
+ valid_from?: string | null;
6424
+ valid_until?: string | null;
6425
+ };
6426
+ Update: {
6427
+ base_price?: number | null;
6428
+ created_at?: string;
6429
+ currency?: string;
6430
+ customer_id?: string;
6431
+ id?: string;
6432
+ min_quantity?: number;
6433
+ net_price?: number;
6434
+ notes?: string | null;
6435
+ product_category_id?: string | null;
6436
+ product_id?: string | null;
6437
+ updated_at?: string;
6438
+ valid_from?: string | null;
6439
+ valid_until?: string | null;
6440
+ };
6441
+ Relationships: [{
6442
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
6443
+ columns: ["customer_id"];
6444
+ isOneToOne: false;
6445
+ referencedRelation: "customers";
6446
+ referencedColumns: ["id"];
6447
+ }, {
6448
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
6449
+ columns: ["product_category_id"];
6450
+ isOneToOne: false;
6451
+ referencedRelation: "product_categories";
6452
+ referencedColumns: ["id"];
6453
+ }, {
6454
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
6455
+ columns: ["product_id"];
6456
+ isOneToOne: false;
6457
+ referencedRelation: "products";
5636
6458
  referencedColumns: ["id"];
5637
6459
  }];
5638
6460
  };
5639
- local_customer_sales_strategies: {
6461
+ local_customer_price_groups: {
6462
+ Row: {
6463
+ created_at: string;
6464
+ currency: string;
6465
+ customer_id: string;
6466
+ discount_type: string;
6467
+ discount_value: number;
6468
+ id: string;
6469
+ min_quantity: number;
6470
+ notes: string | null;
6471
+ product_category_id: string | null;
6472
+ product_id: string | null;
6473
+ updated_at: string;
6474
+ valid_from: string | null;
6475
+ valid_until: string | null;
6476
+ };
6477
+ Insert: {
6478
+ created_at?: string;
6479
+ currency?: string;
6480
+ customer_id: string;
6481
+ discount_type: string;
6482
+ discount_value: number;
6483
+ id?: string;
6484
+ min_quantity?: number;
6485
+ notes?: string | null;
6486
+ product_category_id?: string | null;
6487
+ product_id?: string | null;
6488
+ updated_at?: string;
6489
+ valid_from?: string | null;
6490
+ valid_until?: string | null;
6491
+ };
6492
+ Update: {
6493
+ created_at?: string;
6494
+ currency?: string;
6495
+ customer_id?: string;
6496
+ discount_type?: string;
6497
+ discount_value?: number;
6498
+ id?: string;
6499
+ min_quantity?: number;
6500
+ notes?: string | null;
6501
+ product_category_id?: string | null;
6502
+ product_id?: string | null;
6503
+ updated_at?: string;
6504
+ valid_from?: string | null;
6505
+ valid_until?: string | null;
6506
+ };
6507
+ Relationships: [{
6508
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
6509
+ columns: ["customer_id"];
6510
+ isOneToOne: false;
6511
+ referencedRelation: "customers";
6512
+ referencedColumns: ["id"];
6513
+ }, {
6514
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
6515
+ columns: ["product_category_id"];
6516
+ isOneToOne: false;
6517
+ referencedRelation: "product_categories";
6518
+ referencedColumns: ["id"];
6519
+ }, {
6520
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
6521
+ columns: ["product_id"];
6522
+ isOneToOne: false;
6523
+ referencedRelation: "products";
6524
+ referencedColumns: ["id"];
6525
+ }];
6526
+ };
6527
+ local_customer_sales_strategies: {
6528
+ Row: {
6529
+ created_at: string;
6530
+ currency: string;
6531
+ customer_id: string;
6532
+ discount_type: string;
6533
+ discount_value: number;
6534
+ id: string;
6535
+ min_quantity: number;
6536
+ notes: string | null;
6537
+ product_category_id: string | null;
6538
+ product_id: string | null;
6539
+ updated_at: string;
6540
+ valid_from: string | null;
6541
+ valid_until: string | null;
6542
+ };
6543
+ Insert: {
6544
+ created_at?: string;
6545
+ currency?: string;
6546
+ customer_id: string;
6547
+ discount_type: string;
6548
+ discount_value: number;
6549
+ id?: string;
6550
+ min_quantity?: number;
6551
+ notes?: string | null;
6552
+ product_category_id?: string | null;
6553
+ product_id?: string | null;
6554
+ updated_at?: string;
6555
+ valid_from?: string | null;
6556
+ valid_until?: string | null;
6557
+ };
6558
+ Update: {
6559
+ created_at?: string;
6560
+ currency?: string;
6561
+ customer_id?: string;
6562
+ discount_type?: string;
6563
+ discount_value?: number;
6564
+ id?: string;
6565
+ min_quantity?: number;
6566
+ notes?: string | null;
6567
+ product_category_id?: string | null;
6568
+ product_id?: string | null;
6569
+ updated_at?: string;
6570
+ valid_from?: string | null;
6571
+ valid_until?: string | null;
6572
+ };
6573
+ Relationships: [{
6574
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
6575
+ columns: ["customer_id"];
6576
+ isOneToOne: false;
6577
+ referencedRelation: "customers";
6578
+ referencedColumns: ["id"];
6579
+ }, {
6580
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
6581
+ columns: ["product_category_id"];
6582
+ isOneToOne: false;
6583
+ referencedRelation: "product_categories";
6584
+ referencedColumns: ["id"];
6585
+ }, {
6586
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
6587
+ columns: ["product_id"];
6588
+ isOneToOne: false;
6589
+ referencedRelation: "products";
6590
+ referencedColumns: ["id"];
6591
+ }];
6592
+ };
6593
+ locations: {
6594
+ Row: {
6595
+ created_at: string;
6596
+ id: string;
6597
+ name: string;
6598
+ sort_order: number;
6599
+ updated_at: string;
6600
+ };
6601
+ Insert: {
6602
+ created_at?: string;
6603
+ id?: string;
6604
+ name: string;
6605
+ sort_order?: number;
6606
+ updated_at?: string;
6607
+ };
6608
+ Update: {
6609
+ created_at?: string;
6610
+ id?: string;
6611
+ name?: string;
6612
+ sort_order?: number;
6613
+ updated_at?: string;
6614
+ };
6615
+ Relationships: [];
6616
+ };
6617
+ logistics_capacity_events: {
6618
+ Row: {
6619
+ available_carts: number;
6620
+ created_at: string;
6621
+ id: string;
6622
+ measures: import("../integrations/supabase/types").Json;
6623
+ note: string | null;
6624
+ outcome: string;
6625
+ required_carts: number;
6626
+ reserve_minutes: number;
6627
+ shortage_carts: number;
6628
+ status: string;
6629
+ user_id: string;
6630
+ };
6631
+ Insert: {
6632
+ available_carts?: number;
6633
+ created_at?: string;
6634
+ id?: string;
6635
+ measures?: import("../integrations/supabase/types").Json;
6636
+ note?: string | null;
6637
+ outcome?: string;
6638
+ required_carts?: number;
6639
+ reserve_minutes?: number;
6640
+ shortage_carts?: number;
6641
+ status: string;
6642
+ user_id: string;
6643
+ };
6644
+ Update: {
6645
+ available_carts?: number;
6646
+ created_at?: string;
6647
+ id?: string;
6648
+ measures?: import("../integrations/supabase/types").Json;
6649
+ note?: string | null;
6650
+ outcome?: string;
6651
+ required_carts?: number;
6652
+ reserve_minutes?: number;
6653
+ shortage_carts?: number;
6654
+ status?: string;
6655
+ user_id?: string;
6656
+ };
6657
+ Relationships: [];
6658
+ };
6659
+ logistics_capacity_settings: {
6660
+ Row: {
6661
+ created_at: string;
6662
+ settings: import("../integrations/supabase/types").Json;
6663
+ updated_at: string;
6664
+ user_id: string;
6665
+ };
6666
+ Insert: {
6667
+ created_at?: string;
6668
+ settings?: import("../integrations/supabase/types").Json;
6669
+ updated_at?: string;
6670
+ user_id: string;
6671
+ };
6672
+ Update: {
6673
+ created_at?: string;
6674
+ settings?: import("../integrations/supabase/types").Json;
6675
+ updated_at?: string;
6676
+ user_id?: string;
6677
+ };
6678
+ Relationships: [];
6679
+ };
6680
+ logistics_decisions: {
6681
+ Row: {
6682
+ created_at: string;
6683
+ explanation: string | null;
6684
+ id: string;
6685
+ input_snapshot: import("../integrations/supabase/types").Json;
6686
+ result: import("../integrations/supabase/types").Json;
6687
+ slot: string;
6688
+ strategy_id: string | null;
6689
+ subject_id: string;
6690
+ subject_type: string;
6691
+ user_id: string;
6692
+ };
6693
+ Insert: {
6694
+ created_at?: string;
6695
+ explanation?: string | null;
6696
+ id?: string;
6697
+ input_snapshot?: import("../integrations/supabase/types").Json;
6698
+ result?: import("../integrations/supabase/types").Json;
6699
+ slot: string;
6700
+ strategy_id?: string | null;
6701
+ subject_id: string;
6702
+ subject_type: string;
6703
+ user_id: string;
6704
+ };
6705
+ Update: {
6706
+ created_at?: string;
6707
+ explanation?: string | null;
6708
+ id?: string;
6709
+ input_snapshot?: import("../integrations/supabase/types").Json;
6710
+ result?: import("../integrations/supabase/types").Json;
6711
+ slot?: string;
6712
+ strategy_id?: string | null;
6713
+ subject_id?: string;
6714
+ subject_type?: string;
6715
+ user_id?: string;
6716
+ };
6717
+ Relationships: [{
6718
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
6719
+ columns: ["strategy_id"];
6720
+ isOneToOne: false;
6721
+ referencedRelation: "logistics_strategies";
6722
+ referencedColumns: ["id"];
6723
+ }];
6724
+ };
6725
+ logistics_formulas: {
6726
+ Row: {
6727
+ created_at: string;
6728
+ expression: string;
6729
+ id: string;
6730
+ notes: string | null;
6731
+ slot: string;
6732
+ strategy_id: string;
6733
+ updated_at: string;
6734
+ user_id: string;
6735
+ version: number;
6736
+ };
6737
+ Insert: {
6738
+ created_at?: string;
6739
+ expression?: string;
6740
+ id?: string;
6741
+ notes?: string | null;
6742
+ slot: string;
6743
+ strategy_id: string;
6744
+ updated_at?: string;
6745
+ user_id: string;
6746
+ version?: number;
6747
+ };
6748
+ Update: {
6749
+ created_at?: string;
6750
+ expression?: string;
6751
+ id?: string;
6752
+ notes?: string | null;
6753
+ slot?: string;
6754
+ strategy_id?: string;
6755
+ updated_at?: string;
6756
+ user_id?: string;
6757
+ version?: number;
6758
+ };
6759
+ Relationships: [{
6760
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
6761
+ columns: ["strategy_id"];
6762
+ isOneToOne: false;
6763
+ referencedRelation: "logistics_strategies";
6764
+ referencedColumns: ["id"];
6765
+ }];
6766
+ };
6767
+ logistics_strategies: {
6768
+ Row: {
6769
+ color: string;
6770
+ created_at: string;
6771
+ description: string | null;
6772
+ id: string;
6773
+ is_active: boolean;
6774
+ name: string;
6775
+ priority: number;
6776
+ updated_at: string;
6777
+ updated_by: string | null;
6778
+ user_id: string;
6779
+ version: number;
6780
+ };
6781
+ Insert: {
6782
+ color?: string;
6783
+ created_at?: string;
6784
+ description?: string | null;
6785
+ id?: string;
6786
+ is_active?: boolean;
6787
+ name: string;
6788
+ priority?: number;
6789
+ updated_at?: string;
6790
+ updated_by?: string | null;
6791
+ user_id: string;
6792
+ version?: number;
6793
+ };
6794
+ Update: {
6795
+ color?: string;
6796
+ created_at?: string;
6797
+ description?: string | null;
6798
+ id?: string;
6799
+ is_active?: boolean;
6800
+ name?: string;
6801
+ priority?: number;
6802
+ updated_at?: string;
6803
+ updated_by?: string | null;
6804
+ user_id?: string;
6805
+ version?: number;
6806
+ };
6807
+ Relationships: [];
6808
+ };
6809
+ logistics_strategy_schedules: {
5640
6810
  Row: {
6811
+ condition_expression: string | null;
5641
6812
  created_at: string;
5642
- currency: string;
5643
- customer_id: string;
5644
- discount_type: string;
5645
- discount_value: number;
6813
+ end_date: string | null;
5646
6814
  id: string;
5647
- min_quantity: number;
5648
- notes: string | null;
5649
- product_category_id: string | null;
5650
- product_id: string | null;
6815
+ is_enabled: boolean;
6816
+ priority: number;
6817
+ rule_type: string;
6818
+ start_date: string | null;
6819
+ strategy_id: string;
5651
6820
  updated_at: string;
5652
- valid_from: string | null;
5653
- valid_until: string | null;
6821
+ user_id: string;
5654
6822
  };
5655
6823
  Insert: {
6824
+ condition_expression?: string | null;
5656
6825
  created_at?: string;
5657
- currency?: string;
5658
- customer_id: string;
5659
- discount_type: string;
5660
- discount_value: number;
6826
+ end_date?: string | null;
5661
6827
  id?: string;
5662
- min_quantity?: number;
5663
- notes?: string | null;
5664
- product_category_id?: string | null;
5665
- product_id?: string | null;
6828
+ is_enabled?: boolean;
6829
+ priority?: number;
6830
+ rule_type: string;
6831
+ start_date?: string | null;
6832
+ strategy_id: string;
5666
6833
  updated_at?: string;
5667
- valid_from?: string | null;
5668
- valid_until?: string | null;
6834
+ user_id: string;
5669
6835
  };
5670
6836
  Update: {
6837
+ condition_expression?: string | null;
5671
6838
  created_at?: string;
5672
- currency?: string;
5673
- customer_id?: string;
5674
- discount_type?: string;
5675
- discount_value?: number;
6839
+ end_date?: string | null;
5676
6840
  id?: string;
5677
- min_quantity?: number;
5678
- notes?: string | null;
5679
- product_category_id?: string | null;
5680
- product_id?: string | null;
6841
+ is_enabled?: boolean;
6842
+ priority?: number;
6843
+ rule_type?: string;
6844
+ start_date?: string | null;
6845
+ strategy_id?: string;
5681
6846
  updated_at?: string;
5682
- valid_from?: string | null;
5683
- valid_until?: string | null;
6847
+ user_id?: string;
5684
6848
  };
5685
6849
  Relationships: [{
5686
- foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5687
- columns: ["customer_id"];
5688
- isOneToOne: false;
5689
- referencedRelation: "customers";
5690
- referencedColumns: ["id"];
5691
- }, {
5692
- foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5693
- columns: ["product_category_id"];
5694
- isOneToOne: false;
5695
- referencedRelation: "product_categories";
5696
- referencedColumns: ["id"];
5697
- }, {
5698
- foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5699
- columns: ["product_id"];
6850
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6851
+ columns: ["strategy_id"];
5700
6852
  isOneToOne: false;
5701
- referencedRelation: "products";
6853
+ referencedRelation: "logistics_strategies";
5702
6854
  referencedColumns: ["id"];
5703
6855
  }];
5704
6856
  };
5705
- locations: {
6857
+ logistics_variables: {
5706
6858
  Row: {
5707
6859
  created_at: string;
6860
+ default_value: string | null;
6861
+ description: string | null;
5708
6862
  id: string;
5709
- name: string;
5710
- sort_order: number;
6863
+ is_builtin: boolean;
6864
+ key: string;
6865
+ label: string;
5711
6866
  updated_at: string;
6867
+ user_id: string;
6868
+ value_type: string;
5712
6869
  };
5713
6870
  Insert: {
5714
6871
  created_at?: string;
6872
+ default_value?: string | null;
6873
+ description?: string | null;
5715
6874
  id?: string;
5716
- name: string;
5717
- sort_order?: number;
6875
+ is_builtin?: boolean;
6876
+ key: string;
6877
+ label: string;
5718
6878
  updated_at?: string;
6879
+ user_id: string;
6880
+ value_type: string;
5719
6881
  };
5720
6882
  Update: {
5721
6883
  created_at?: string;
6884
+ default_value?: string | null;
6885
+ description?: string | null;
5722
6886
  id?: string;
5723
- name?: string;
5724
- sort_order?: number;
6887
+ is_builtin?: boolean;
6888
+ key?: string;
6889
+ label?: string;
5725
6890
  updated_at?: string;
6891
+ user_id?: string;
6892
+ value_type?: string;
5726
6893
  };
5727
6894
  Relationships: [];
5728
6895
  };
@@ -6121,60 +7288,66 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6121
7288
  };
6122
7289
  manufacture_products: {
6123
7290
  Row: {
6124
- aantal_te_produceren: number;
6125
7291
  created_at: string;
6126
7292
  description: string | null;
6127
7293
  id: string;
6128
7294
  is_active: boolean;
6129
- location_id: string | null;
6130
7295
  name: string;
6131
- partij_nummer: string | null;
6132
- photos: import("../integrations/supabase/types").Json;
6133
7296
  produced_stock: number;
6134
7297
  product_code: string;
6135
7298
  tenant_id: string;
6136
- unit: string;
6137
7299
  updated_at: string;
6138
7300
  };
6139
7301
  Insert: {
6140
- aantal_te_produceren?: number;
6141
7302
  created_at?: string;
6142
7303
  description?: string | null;
6143
7304
  id?: string;
6144
7305
  is_active?: boolean;
6145
- location_id?: string | null;
6146
7306
  name: string;
6147
- partij_nummer?: string | null;
6148
- photos?: import("../integrations/supabase/types").Json;
6149
7307
  produced_stock?: number;
6150
7308
  product_code: string;
6151
7309
  tenant_id: string;
6152
- unit?: string;
6153
7310
  updated_at?: string;
6154
7311
  };
6155
7312
  Update: {
6156
- aantal_te_produceren?: number;
6157
7313
  created_at?: string;
6158
7314
  description?: string | null;
6159
7315
  id?: string;
6160
7316
  is_active?: boolean;
6161
- location_id?: string | null;
6162
7317
  name?: string;
6163
- partij_nummer?: string | null;
6164
- photos?: import("../integrations/supabase/types").Json;
6165
7318
  produced_stock?: number;
6166
7319
  product_code?: string;
6167
7320
  tenant_id?: string;
6168
- unit?: string;
6169
7321
  updated_at?: string;
6170
7322
  };
6171
- Relationships: [{
6172
- foreignKeyName: "manufacture_products_location_id_fkey";
6173
- columns: ["location_id"];
6174
- isOneToOne: false;
6175
- referencedRelation: "locations";
6176
- referencedColumns: ["id"];
6177
- }];
7323
+ Relationships: [];
7324
+ };
7325
+ module_permissions: {
7326
+ Row: {
7327
+ created_at: string;
7328
+ id: string;
7329
+ module_id: string;
7330
+ permission: string;
7331
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
7332
+ updated_at: string;
7333
+ };
7334
+ Insert: {
7335
+ created_at?: string;
7336
+ id?: string;
7337
+ module_id: string;
7338
+ permission: string;
7339
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
7340
+ updated_at?: string;
7341
+ };
7342
+ Update: {
7343
+ created_at?: string;
7344
+ id?: string;
7345
+ module_id?: string;
7346
+ permission?: string;
7347
+ role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
7348
+ updated_at?: string;
7349
+ };
7350
+ Relationships: [];
6178
7351
  };
6179
7352
  monteurs: {
6180
7353
  Row: {
@@ -6905,6 +8078,42 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6905
8078
  };
6906
8079
  Relationships: [];
6907
8080
  };
8081
+ order_buffers: {
8082
+ Row: {
8083
+ buffer_key: string;
8084
+ created_at: string;
8085
+ customer_id: string | null;
8086
+ grouping_mode: string;
8087
+ id: string;
8088
+ pickup_date: string | null;
8089
+ pickup_location: string | null;
8090
+ plan_locked_at: string | null;
8091
+ updated_at: string;
8092
+ };
8093
+ Insert: {
8094
+ buffer_key: string;
8095
+ created_at?: string;
8096
+ customer_id?: string | null;
8097
+ grouping_mode: string;
8098
+ id?: string;
8099
+ pickup_date?: string | null;
8100
+ pickup_location?: string | null;
8101
+ plan_locked_at?: string | null;
8102
+ updated_at?: string;
8103
+ };
8104
+ Update: {
8105
+ buffer_key?: string;
8106
+ created_at?: string;
8107
+ customer_id?: string | null;
8108
+ grouping_mode?: string;
8109
+ id?: string;
8110
+ pickup_date?: string | null;
8111
+ pickup_location?: string | null;
8112
+ plan_locked_at?: string | null;
8113
+ updated_at?: string;
8114
+ };
8115
+ Relationships: [];
8116
+ };
6908
8117
  order_cart_items: {
6909
8118
  Row: {
6910
8119
  cart_id: string;
@@ -6971,6 +8180,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6971
8180
  order_carts: {
6972
8181
  Row: {
6973
8182
  algorithm_version: number;
8183
+ buffer_id: string | null;
6974
8184
  cart_number: number;
6975
8185
  created_at: string;
6976
8186
  id: string;
@@ -6978,13 +8188,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6978
8188
  is_complete: boolean;
6979
8189
  notes: string | null;
6980
8190
  occupancy_pct: number;
6981
- order_id: string;
8191
+ order_id: string | null;
6982
8192
  source: string;
6983
8193
  total_layers_used: number;
6984
8194
  updated_at: string;
6985
8195
  };
6986
8196
  Insert: {
6987
8197
  algorithm_version?: number;
8198
+ buffer_id?: string | null;
6988
8199
  cart_number: number;
6989
8200
  created_at?: string;
6990
8201
  id?: string;
@@ -6992,13 +8203,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6992
8203
  is_complete?: boolean;
6993
8204
  notes?: string | null;
6994
8205
  occupancy_pct?: number;
6995
- order_id: string;
8206
+ order_id?: string | null;
6996
8207
  source?: string;
6997
8208
  total_layers_used?: number;
6998
8209
  updated_at?: string;
6999
8210
  };
7000
8211
  Update: {
7001
8212
  algorithm_version?: number;
8213
+ buffer_id?: string | null;
7002
8214
  cart_number?: number;
7003
8215
  created_at?: string;
7004
8216
  id?: string;
@@ -7006,12 +8218,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7006
8218
  is_complete?: boolean;
7007
8219
  notes?: string | null;
7008
8220
  occupancy_pct?: number;
7009
- order_id?: string;
8221
+ order_id?: string | null;
7010
8222
  source?: string;
7011
8223
  total_layers_used?: number;
7012
8224
  updated_at?: string;
7013
8225
  };
7014
8226
  Relationships: [{
8227
+ foreignKeyName: "order_carts_buffer_id_fkey";
8228
+ columns: ["buffer_id"];
8229
+ isOneToOne: false;
8230
+ referencedRelation: "order_buffers";
8231
+ referencedColumns: ["id"];
8232
+ }, {
7015
8233
  foreignKeyName: "order_carts_order_id_fkey";
7016
8234
  columns: ["order_id"];
7017
8235
  isOneToOne: false;
@@ -7249,12 +8467,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7249
8467
  };
7250
8468
  orders: {
7251
8469
  Row: {
8470
+ buffer_id: string | null;
7252
8471
  created_at: string;
7253
8472
  custom_fields: import("../integrations/supabase/types").Json;
7254
8473
  customer_id: string | null;
7255
8474
  customer_name: string;
7256
8475
  deleted_at: string | null;
7257
8476
  delivery_date: string | null;
8477
+ floriday_sales_order_id: string | null;
7258
8478
  id: string;
7259
8479
  is_reservation: boolean;
7260
8480
  notes: string | null;
@@ -7268,12 +8488,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7268
8488
  updated_at: string;
7269
8489
  };
7270
8490
  Insert: {
8491
+ buffer_id?: string | null;
7271
8492
  created_at?: string;
7272
8493
  custom_fields?: import("../integrations/supabase/types").Json;
7273
8494
  customer_id?: string | null;
7274
8495
  customer_name?: string;
7275
8496
  deleted_at?: string | null;
7276
8497
  delivery_date?: string | null;
8498
+ floriday_sales_order_id?: string | null;
7277
8499
  id?: string;
7278
8500
  is_reservation?: boolean;
7279
8501
  notes?: string | null;
@@ -7287,12 +8509,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7287
8509
  updated_at?: string;
7288
8510
  };
7289
8511
  Update: {
8512
+ buffer_id?: string | null;
7290
8513
  created_at?: string;
7291
8514
  custom_fields?: import("../integrations/supabase/types").Json;
7292
8515
  customer_id?: string | null;
7293
8516
  customer_name?: string;
7294
8517
  deleted_at?: string | null;
7295
8518
  delivery_date?: string | null;
8519
+ floriday_sales_order_id?: string | null;
7296
8520
  id?: string;
7297
8521
  is_reservation?: boolean;
7298
8522
  notes?: string | null;
@@ -7306,6 +8530,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7306
8530
  updated_at?: string;
7307
8531
  };
7308
8532
  Relationships: [{
8533
+ foreignKeyName: "orders_buffer_id_fkey";
8534
+ columns: ["buffer_id"];
8535
+ isOneToOne: false;
8536
+ referencedRelation: "order_buffers";
8537
+ referencedColumns: ["id"];
8538
+ }, {
7309
8539
  foreignKeyName: "orders_customer_id_fkey";
7310
8540
  columns: ["customer_id"];
7311
8541
  isOneToOne: false;
@@ -7436,6 +8666,78 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7436
8666
  };
7437
8667
  Relationships: [];
7438
8668
  };
8669
+ planning_item_assistants: {
8670
+ Row: {
8671
+ created_at: string;
8672
+ created_by: string | null;
8673
+ monteur_id: string;
8674
+ planning_item_id: string;
8675
+ };
8676
+ Insert: {
8677
+ created_at?: string;
8678
+ created_by?: string | null;
8679
+ monteur_id: string;
8680
+ planning_item_id: string;
8681
+ };
8682
+ Update: {
8683
+ created_at?: string;
8684
+ created_by?: string | null;
8685
+ monteur_id?: string;
8686
+ planning_item_id?: string;
8687
+ };
8688
+ Relationships: [{
8689
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8690
+ columns: ["planning_item_id"];
8691
+ isOneToOne: false;
8692
+ referencedRelation: "planning_items";
8693
+ referencedColumns: ["id"];
8694
+ }];
8695
+ };
8696
+ planning_items: {
8697
+ Row: {
8698
+ assigned_monteur_id: string;
8699
+ created_at: string;
8700
+ created_by: string | null;
8701
+ end_at: string;
8702
+ id: string;
8703
+ notes: string | null;
8704
+ start_at: string;
8705
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
8706
+ updated_at: string;
8707
+ werkbon_id: string;
8708
+ };
8709
+ Insert: {
8710
+ assigned_monteur_id: string;
8711
+ created_at?: string;
8712
+ created_by?: string | null;
8713
+ end_at: string;
8714
+ id?: string;
8715
+ notes?: string | null;
8716
+ start_at: string;
8717
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
8718
+ updated_at?: string;
8719
+ werkbon_id: string;
8720
+ };
8721
+ Update: {
8722
+ assigned_monteur_id?: string;
8723
+ created_at?: string;
8724
+ created_by?: string | null;
8725
+ end_at?: string;
8726
+ id?: string;
8727
+ notes?: string | null;
8728
+ start_at?: string;
8729
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
8730
+ updated_at?: string;
8731
+ werkbon_id?: string;
8732
+ };
8733
+ Relationships: [{
8734
+ foreignKeyName: "planning_items_werkbon_id_fkey";
8735
+ columns: ["werkbon_id"];
8736
+ isOneToOne: false;
8737
+ referencedRelation: "werkbonnen";
8738
+ referencedColumns: ["id"];
8739
+ }];
8740
+ };
7439
8741
  product_bom_items: {
7440
8742
  Row: {
7441
8743
  component_product_id: string | null;
@@ -7443,6 +8745,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7443
8745
  created_at: string;
7444
8746
  id: string;
7445
8747
  notes: string | null;
8748
+ packing_configuration_id: string | null;
7446
8749
  parent_product_id: string | null;
7447
8750
  parent_trade_item_floriday_id: string | null;
7448
8751
  quantity: number;
@@ -7457,6 +8760,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7457
8760
  created_at?: string;
7458
8761
  id?: string;
7459
8762
  notes?: string | null;
8763
+ packing_configuration_id?: string | null;
7460
8764
  parent_product_id?: string | null;
7461
8765
  parent_trade_item_floriday_id?: string | null;
7462
8766
  quantity?: number;
@@ -7471,6 +8775,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7471
8775
  created_at?: string;
7472
8776
  id?: string;
7473
8777
  notes?: string | null;
8778
+ packing_configuration_id?: string | null;
7474
8779
  parent_product_id?: string | null;
7475
8780
  parent_trade_item_floriday_id?: string | null;
7476
8781
  quantity?: number;
@@ -7672,11 +8977,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7672
8977
  created_at: string;
7673
8978
  id: string;
7674
8979
  is_package: boolean;
8980
+ label: string | null;
7675
8981
  layers_per_load_carrier: number | null;
7676
8982
  load_carrier: string | null;
7677
8983
  package_id: string | null;
7678
8984
  package_label: string | null;
7679
8985
  packages_per_layer: number | null;
8986
+ packing_configuration_id: string;
7680
8987
  product_id: string | null;
7681
8988
  tenant_id: string;
7682
8989
  trade_item_floriday_id: string | null;
@@ -7687,11 +8994,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7687
8994
  created_at?: string;
7688
8995
  id?: string;
7689
8996
  is_package?: boolean;
8997
+ label?: string | null;
7690
8998
  layers_per_load_carrier?: number | null;
7691
8999
  load_carrier?: string | null;
7692
9000
  package_id?: string | null;
7693
9001
  package_label?: string | null;
7694
9002
  packages_per_layer?: number | null;
9003
+ packing_configuration_id?: string;
7695
9004
  product_id?: string | null;
7696
9005
  tenant_id: string;
7697
9006
  trade_item_floriday_id?: string | null;
@@ -7702,11 +9011,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7702
9011
  created_at?: string;
7703
9012
  id?: string;
7704
9013
  is_package?: boolean;
9014
+ label?: string | null;
7705
9015
  layers_per_load_carrier?: number | null;
7706
9016
  load_carrier?: string | null;
7707
9017
  package_id?: string | null;
7708
9018
  package_label?: string | null;
7709
9019
  packages_per_layer?: number | null;
9020
+ packing_configuration_id?: string;
7710
9021
  product_id?: string | null;
7711
9022
  tenant_id?: string;
7712
9023
  trade_item_floriday_id?: string | null;
@@ -7768,12 +9079,11 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7768
9079
  crates_per_layer: number;
7769
9080
  created_at: string;
7770
9081
  custom_fields: import("../integrations/supabase/types").Json;
7771
- floriday_active: boolean;
7772
- floriday_payload: import("../integrations/supabase/types").Json;
7773
9082
  floriday_trade_item_id: string | null;
7774
9083
  id: string;
7775
9084
  image_url: string | null;
7776
9085
  incoming_quantity: number;
9086
+ is_layer: boolean;
7777
9087
  layers_per_cart: number;
7778
9088
  location: string;
7779
9089
  min_quantity: number;
@@ -7795,12 +9105,11 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7795
9105
  crates_per_layer?: number;
7796
9106
  created_at?: string;
7797
9107
  custom_fields?: import("../integrations/supabase/types").Json;
7798
- floriday_active?: boolean;
7799
- floriday_payload?: import("../integrations/supabase/types").Json;
7800
9108
  floriday_trade_item_id?: string | null;
7801
9109
  id?: string;
7802
9110
  image_url?: string | null;
7803
9111
  incoming_quantity?: number;
9112
+ is_layer?: boolean;
7804
9113
  layers_per_cart?: number;
7805
9114
  location: string;
7806
9115
  min_quantity?: number;
@@ -7822,12 +9131,11 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7822
9131
  crates_per_layer?: number;
7823
9132
  created_at?: string;
7824
9133
  custom_fields?: import("../integrations/supabase/types").Json;
7825
- floriday_active?: boolean;
7826
- floriday_payload?: import("../integrations/supabase/types").Json;
7827
9134
  floriday_trade_item_id?: string | null;
7828
9135
  id?: string;
7829
9136
  image_url?: string | null;
7830
9137
  incoming_quantity?: number;
9138
+ is_layer?: boolean;
7831
9139
  layers_per_cart?: number;
7832
9140
  location?: string;
7833
9141
  min_quantity?: number;
@@ -7847,6 +9155,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7847
9155
  profiles: {
7848
9156
  Row: {
7849
9157
  address: string | null;
9158
+ avatar_url: string | null;
7850
9159
  created_at: string;
7851
9160
  display_name: string | null;
7852
9161
  email: string | null;
@@ -7858,6 +9167,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7858
9167
  };
7859
9168
  Insert: {
7860
9169
  address?: string | null;
9170
+ avatar_url?: string | null;
7861
9171
  created_at?: string;
7862
9172
  display_name?: string | null;
7863
9173
  email?: string | null;
@@ -7869,6 +9179,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7869
9179
  };
7870
9180
  Update: {
7871
9181
  address?: string | null;
9182
+ avatar_url?: string | null;
7872
9183
  created_at?: string;
7873
9184
  display_name?: string | null;
7874
9185
  email?: string | null;
@@ -8733,7 +10044,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8733
10044
  order_id: string | null;
8734
10045
  order_item_id: string | null;
8735
10046
  order_source: string | null;
8736
- parent_trade_item_key: string | null;
8737
10047
  physical_after: number | null;
8738
10048
  physical_before: number | null;
8739
10049
  production_batch_id: string | null;
@@ -8752,7 +10062,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8752
10062
  order_id?: string | null;
8753
10063
  order_item_id?: string | null;
8754
10064
  order_source?: string | null;
8755
- parent_trade_item_key?: string | null;
8756
10065
  physical_after?: number | null;
8757
10066
  physical_before?: number | null;
8758
10067
  production_batch_id?: string | null;
@@ -8771,7 +10080,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8771
10080
  order_id?: string | null;
8772
10081
  order_item_id?: string | null;
8773
10082
  order_source?: string | null;
8774
- parent_trade_item_key?: string | null;
8775
10083
  physical_after?: number | null;
8776
10084
  physical_before?: number | null;
8777
10085
  production_batch_id?: string | null;
@@ -8876,6 +10184,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8876
10184
  };
8877
10185
  Relationships: [];
8878
10186
  };
10187
+ technician_rates: {
10188
+ Row: {
10189
+ created_at: string;
10190
+ hourly_rate_cents: number;
10191
+ updated_at: string;
10192
+ user_id: string;
10193
+ };
10194
+ Insert: {
10195
+ created_at?: string;
10196
+ hourly_rate_cents?: number;
10197
+ updated_at?: string;
10198
+ user_id: string;
10199
+ };
10200
+ Update: {
10201
+ created_at?: string;
10202
+ hourly_rate_cents?: number;
10203
+ updated_at?: string;
10204
+ user_id?: string;
10205
+ };
10206
+ Relationships: [];
10207
+ };
8879
10208
  tenants: {
8880
10209
  Row: {
8881
10210
  created_at: string;
@@ -9065,16 +10394,58 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9065
10394
  user_id: string;
9066
10395
  };
9067
10396
  Update: {
9068
- connection_id?: string | null;
10397
+ connection_id?: string | null;
10398
+ created_at?: string;
10399
+ data?: import("../integrations/supabase/types").Json;
10400
+ floriday_id?: string | null;
10401
+ floriday_link_error?: string | null;
10402
+ floriday_link_status?: string;
10403
+ id?: string;
10404
+ last_floriday_sync_at?: string | null;
10405
+ missing_required_fields?: string[];
10406
+ source?: string;
10407
+ updated_at?: string;
10408
+ user_id?: string;
10409
+ };
10410
+ Relationships: [];
10411
+ };
10412
+ trade_item_prices: {
10413
+ Row: {
10414
+ created_at: string;
10415
+ currency: string;
10416
+ id: string;
10417
+ last_push_error: string | null;
10418
+ last_pushed_at: string | null;
10419
+ price_group_id: string | null;
10420
+ price_per_piece: number;
10421
+ supply_line_id: string | null;
10422
+ trade_item_key: string;
10423
+ updated_at: string;
10424
+ user_id: string;
10425
+ };
10426
+ Insert: {
10427
+ created_at?: string;
10428
+ currency?: string;
10429
+ id?: string;
10430
+ last_push_error?: string | null;
10431
+ last_pushed_at?: string | null;
10432
+ price_group_id?: string | null;
10433
+ price_per_piece: number;
10434
+ supply_line_id?: string | null;
10435
+ trade_item_key: string;
10436
+ updated_at?: string;
10437
+ user_id: string;
10438
+ };
10439
+ Update: {
9069
10440
  created_at?: string;
9070
- data?: import("../integrations/supabase/types").Json;
9071
- floriday_id?: string | null;
9072
- floriday_link_error?: string | null;
9073
- floriday_link_status?: string;
10441
+ currency?: string;
9074
10442
  id?: string;
9075
- last_floriday_sync_at?: string | null;
9076
- missing_required_fields?: string[];
9077
- source?: string;
10443
+ last_push_error?: string | null;
10444
+ last_pushed_at?: string | null;
10445
+ price_group_id?: string | null;
10446
+ price_per_piece?: number;
10447
+ supply_line_id?: string | null;
10448
+ trade_item_key?: string;
9078
10449
  updated_at?: string;
9079
10450
  user_id?: string;
9080
10451
  };
@@ -9233,7 +10604,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9233
10604
  twinfield_connections: {
9234
10605
  Row: {
9235
10606
  access_token: string | null;
9236
- client_id: string | null;
10607
+ client_id: string;
9237
10608
  client_secret: string | null;
9238
10609
  cluster_uri: string | null;
9239
10610
  company_code: string | null;
@@ -9245,7 +10616,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9245
10616
  is_active: boolean;
9246
10617
  label: string | null;
9247
10618
  office_code: string | null;
9248
- redirect_uri: string | null;
10619
+ redirect_uri: string;
9249
10620
  refresh_token: string | null;
9250
10621
  token_expires_at: string | null;
9251
10622
  updated_at: string;
@@ -9253,7 +10624,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9253
10624
  };
9254
10625
  Insert: {
9255
10626
  access_token?: string | null;
9256
- client_id?: string | null;
10627
+ client_id: string;
9257
10628
  client_secret?: string | null;
9258
10629
  cluster_uri?: string | null;
9259
10630
  company_code?: string | null;
@@ -9265,7 +10636,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9265
10636
  is_active?: boolean;
9266
10637
  label?: string | null;
9267
10638
  office_code?: string | null;
9268
- redirect_uri?: string | null;
10639
+ redirect_uri: string;
9269
10640
  refresh_token?: string | null;
9270
10641
  token_expires_at?: string | null;
9271
10642
  updated_at?: string;
@@ -9273,7 +10644,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9273
10644
  };
9274
10645
  Update: {
9275
10646
  access_token?: string | null;
9276
- client_id?: string | null;
10647
+ client_id?: string;
9277
10648
  client_secret?: string | null;
9278
10649
  cluster_uri?: string | null;
9279
10650
  company_code?: string | null;
@@ -9285,7 +10656,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9285
10656
  is_active?: boolean;
9286
10657
  label?: string | null;
9287
10658
  office_code?: string | null;
9288
- redirect_uri?: string | null;
10659
+ redirect_uri?: string;
9289
10660
  refresh_token?: string | null;
9290
10661
  token_expires_at?: string | null;
9291
10662
  updated_at?: string;
@@ -9345,6 +10716,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9345
10716
  country: string | null;
9346
10717
  created_at: string;
9347
10718
  email: string | null;
10719
+ external_group_key: string | null;
9348
10720
  id: string;
9349
10721
  last_synced_at: string | null;
9350
10722
  name: string;
@@ -9363,6 +10735,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9363
10735
  country?: string | null;
9364
10736
  created_at?: string;
9365
10737
  email?: string | null;
10738
+ external_group_key?: string | null;
9366
10739
  id?: string;
9367
10740
  last_synced_at?: string | null;
9368
10741
  name: string;
@@ -9381,6 +10754,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9381
10754
  country?: string | null;
9382
10755
  created_at?: string;
9383
10756
  email?: string | null;
10757
+ external_group_key?: string | null;
9384
10758
  id?: string;
9385
10759
  last_synced_at?: string | null;
9386
10760
  name?: string;
@@ -9542,9 +10916,56 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9542
10916
  referencedColumns: ["id"];
9543
10917
  }];
9544
10918
  };
10919
+ twinfield_invoice_pdf_cache: {
10920
+ Row: {
10921
+ connection_id: string;
10922
+ created_at: string;
10923
+ fetched_at: string;
10924
+ id: string;
10925
+ invoice_number: string;
10926
+ last_accessed_at: string;
10927
+ object_path: string;
10928
+ office_code: string;
10929
+ size_bytes: number;
10930
+ updated_at: string;
10931
+ };
10932
+ Insert: {
10933
+ connection_id: string;
10934
+ created_at?: string;
10935
+ fetched_at?: string;
10936
+ id?: string;
10937
+ invoice_number: string;
10938
+ last_accessed_at?: string;
10939
+ object_path: string;
10940
+ office_code: string;
10941
+ size_bytes?: number;
10942
+ updated_at?: string;
10943
+ };
10944
+ Update: {
10945
+ connection_id?: string;
10946
+ created_at?: string;
10947
+ fetched_at?: string;
10948
+ id?: string;
10949
+ invoice_number?: string;
10950
+ last_accessed_at?: string;
10951
+ object_path?: string;
10952
+ office_code?: string;
10953
+ size_bytes?: number;
10954
+ updated_at?: string;
10955
+ };
10956
+ Relationships: [{
10957
+ foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
10958
+ columns: ["connection_id"];
10959
+ isOneToOne: false;
10960
+ referencedRelation: "twinfield_connections";
10961
+ referencedColumns: ["id"];
10962
+ }];
10963
+ };
9545
10964
  twinfield_invoice_settings: {
9546
10965
  Row: {
9547
10966
  created_at: string;
10967
+ debtor_gl_account: string;
10968
+ default_credit_invoice_type: string | null;
9548
10969
  default_gl_account: string;
9549
10970
  default_invoice_type: string;
9550
10971
  default_payment_term_days: number;
@@ -9553,11 +10974,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9553
10974
  invoice_enabled_fo: boolean;
9554
10975
  invoice_enabled_ho: boolean;
9555
10976
  invoice_enabled_mo: boolean;
10977
+ payment_gl_account: string;
10978
+ payment_journal_code: string;
9556
10979
  updated_at: string;
9557
10980
  user_id: string;
9558
10981
  };
9559
10982
  Insert: {
9560
10983
  created_at?: string;
10984
+ debtor_gl_account?: string;
10985
+ default_credit_invoice_type?: string | null;
9561
10986
  default_gl_account?: string;
9562
10987
  default_invoice_type?: string;
9563
10988
  default_payment_term_days?: number;
@@ -9566,11 +10991,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9566
10991
  invoice_enabled_fo?: boolean;
9567
10992
  invoice_enabled_ho?: boolean;
9568
10993
  invoice_enabled_mo?: boolean;
10994
+ payment_gl_account?: string;
10995
+ payment_journal_code?: string;
9569
10996
  updated_at?: string;
9570
10997
  user_id: string;
9571
10998
  };
9572
10999
  Update: {
9573
11000
  created_at?: string;
11001
+ debtor_gl_account?: string;
11002
+ default_credit_invoice_type?: string | null;
9574
11003
  default_gl_account?: string;
9575
11004
  default_invoice_type?: string;
9576
11005
  default_payment_term_days?: number;
@@ -9579,6 +11008,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9579
11008
  invoice_enabled_fo?: boolean;
9580
11009
  invoice_enabled_ho?: boolean;
9581
11010
  invoice_enabled_mo?: boolean;
11011
+ payment_gl_account?: string;
11012
+ payment_journal_code?: string;
9582
11013
  updated_at?: string;
9583
11014
  user_id?: string;
9584
11015
  };
@@ -9799,43 +11230,49 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9799
11230
  };
9800
11231
  twinfield_push_queue: {
9801
11232
  Row: {
11233
+ action: string;
9802
11234
  attempts: number;
9803
11235
  connection_id: string;
9804
11236
  created_at: string;
11237
+ customer_id: string | null;
9805
11238
  external_id: string | null;
9806
11239
  id: string;
9807
11240
  idempotency_key: string;
9808
11241
  last_error: string | null;
9809
11242
  next_attempt_at: string;
9810
- office_code: string;
11243
+ office_code: string | null;
9811
11244
  payload: import("../integrations/supabase/types").Json;
9812
11245
  status: string;
9813
11246
  updated_at: string;
9814
11247
  };
9815
11248
  Insert: {
11249
+ action?: string;
9816
11250
  attempts?: number;
9817
11251
  connection_id: string;
9818
11252
  created_at?: string;
11253
+ customer_id?: string | null;
9819
11254
  external_id?: string | null;
9820
11255
  id?: string;
9821
11256
  idempotency_key: string;
9822
11257
  last_error?: string | null;
9823
11258
  next_attempt_at?: string;
9824
- office_code: string;
11259
+ office_code?: string | null;
9825
11260
  payload: import("../integrations/supabase/types").Json;
9826
11261
  status?: string;
9827
11262
  updated_at?: string;
9828
11263
  };
9829
11264
  Update: {
11265
+ action?: string;
9830
11266
  attempts?: number;
9831
11267
  connection_id?: string;
9832
11268
  created_at?: string;
11269
+ customer_id?: string | null;
9833
11270
  external_id?: string | null;
9834
11271
  id?: string;
9835
11272
  idempotency_key?: string;
9836
11273
  last_error?: string | null;
9837
11274
  next_attempt_at?: string;
9838
- office_code?: string;
11275
+ office_code?: string | null;
9839
11276
  payload?: import("../integrations/supabase/types").Json;
9840
11277
  status?: string;
9841
11278
  updated_at?: string;
@@ -9846,6 +11283,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9846
11283
  isOneToOne: false;
9847
11284
  referencedRelation: "twinfield_connections";
9848
11285
  referencedColumns: ["id"];
11286
+ }, {
11287
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
11288
+ columns: ["customer_id"];
11289
+ isOneToOne: false;
11290
+ referencedRelation: "customers";
11291
+ referencedColumns: ["id"];
9849
11292
  }];
9850
11293
  };
9851
11294
  twinfield_request_metrics: {
@@ -10076,50 +11519,398 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10076
11519
  };
10077
11520
  Relationships: [];
10078
11521
  };
10079
- voorraad_publish_attempts: {
11522
+ voorraad_publish_attempts: {
11523
+ Row: {
11524
+ action: string;
11525
+ connection_id: string | null;
11526
+ created_at: string;
11527
+ error: string | null;
11528
+ gateway_attempt_id: string | null;
11529
+ gateway_status: number | null;
11530
+ id: string;
11531
+ intent: string;
11532
+ ok: boolean;
11533
+ request_summary: import("../integrations/supabase/types").Json | null;
11534
+ trade_item_id: string | null;
11535
+ user_id: string;
11536
+ };
11537
+ Insert: {
11538
+ action: string;
11539
+ connection_id?: string | null;
11540
+ created_at?: string;
11541
+ error?: string | null;
11542
+ gateway_attempt_id?: string | null;
11543
+ gateway_status?: number | null;
11544
+ id?: string;
11545
+ intent: string;
11546
+ ok: boolean;
11547
+ request_summary?: import("../integrations/supabase/types").Json | null;
11548
+ trade_item_id?: string | null;
11549
+ user_id: string;
11550
+ };
11551
+ Update: {
11552
+ action?: string;
11553
+ connection_id?: string | null;
11554
+ created_at?: string;
11555
+ error?: string | null;
11556
+ gateway_attempt_id?: string | null;
11557
+ gateway_status?: number | null;
11558
+ id?: string;
11559
+ intent?: string;
11560
+ ok?: boolean;
11561
+ request_summary?: import("../integrations/supabase/types").Json | null;
11562
+ trade_item_id?: string | null;
11563
+ user_id?: string;
11564
+ };
11565
+ Relationships: [];
11566
+ };
11567
+ werkbon_package_ai_rules: {
11568
+ Row: {
11569
+ active: boolean;
11570
+ case_sensitive: boolean;
11571
+ created_at: string;
11572
+ id: string;
11573
+ package_id: string;
11574
+ priority: number;
11575
+ rule_type: string;
11576
+ updated_at: string;
11577
+ value: string;
11578
+ };
11579
+ Insert: {
11580
+ active?: boolean;
11581
+ case_sensitive?: boolean;
11582
+ created_at?: string;
11583
+ id?: string;
11584
+ package_id: string;
11585
+ priority?: number;
11586
+ rule_type: string;
11587
+ updated_at?: string;
11588
+ value: string;
11589
+ };
11590
+ Update: {
11591
+ active?: boolean;
11592
+ case_sensitive?: boolean;
11593
+ created_at?: string;
11594
+ id?: string;
11595
+ package_id?: string;
11596
+ priority?: number;
11597
+ rule_type?: string;
11598
+ updated_at?: string;
11599
+ value?: string;
11600
+ };
11601
+ Relationships: [{
11602
+ foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
11603
+ columns: ["package_id"];
11604
+ isOneToOne: false;
11605
+ referencedRelation: "werkbon_packages";
11606
+ referencedColumns: ["id"];
11607
+ }];
11608
+ };
11609
+ werkbon_package_categories: {
11610
+ Row: {
11611
+ active: boolean;
11612
+ created_at: string;
11613
+ id: string;
11614
+ kleur: string | null;
11615
+ naam: string;
11616
+ sort_order: number;
11617
+ updated_at: string;
11618
+ };
11619
+ Insert: {
11620
+ active?: boolean;
11621
+ created_at?: string;
11622
+ id?: string;
11623
+ kleur?: string | null;
11624
+ naam: string;
11625
+ sort_order?: number;
11626
+ updated_at?: string;
11627
+ };
11628
+ Update: {
11629
+ active?: boolean;
11630
+ created_at?: string;
11631
+ id?: string;
11632
+ kleur?: string | null;
11633
+ naam?: string;
11634
+ sort_order?: number;
11635
+ updated_at?: string;
11636
+ };
11637
+ Relationships: [];
11638
+ };
11639
+ werkbon_package_lines: {
11640
+ Row: {
11641
+ created_at: string;
11642
+ created_by: string | null;
11643
+ id: string;
11644
+ package_id: string;
11645
+ quantity: number;
11646
+ unit_price_cents_snapshot: number;
11647
+ werkbon_id: string;
11648
+ };
11649
+ Insert: {
11650
+ created_at?: string;
11651
+ created_by?: string | null;
11652
+ id?: string;
11653
+ package_id: string;
11654
+ quantity?: number;
11655
+ unit_price_cents_snapshot?: number;
11656
+ werkbon_id: string;
11657
+ };
11658
+ Update: {
11659
+ created_at?: string;
11660
+ created_by?: string | null;
11661
+ id?: string;
11662
+ package_id?: string;
11663
+ quantity?: number;
11664
+ unit_price_cents_snapshot?: number;
11665
+ werkbon_id?: string;
11666
+ };
11667
+ Relationships: [{
11668
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
11669
+ columns: ["package_id"];
11670
+ isOneToOne: false;
11671
+ referencedRelation: "werkbon_packages";
11672
+ referencedColumns: ["id"];
11673
+ }, {
11674
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
11675
+ columns: ["werkbon_id"];
11676
+ isOneToOne: false;
11677
+ referencedRelation: "werkbonnen";
11678
+ referencedColumns: ["id"];
11679
+ }];
11680
+ };
11681
+ werkbon_packages: {
11682
+ Row: {
11683
+ active: boolean;
11684
+ ai_tags: string[];
11685
+ category_id: string | null;
11686
+ code: string;
11687
+ created_at: string;
11688
+ default_quantity: number;
11689
+ description: string | null;
11690
+ duration_minutes: number | null;
11691
+ id: string;
11692
+ mandaat_type: string | null;
11693
+ name: string;
11694
+ sort_order: number;
11695
+ unit_price_cents: number;
11696
+ updated_at: string;
11697
+ };
11698
+ Insert: {
11699
+ active?: boolean;
11700
+ ai_tags?: string[];
11701
+ category_id?: string | null;
11702
+ code: string;
11703
+ created_at?: string;
11704
+ default_quantity?: number;
11705
+ description?: string | null;
11706
+ duration_minutes?: number | null;
11707
+ id?: string;
11708
+ mandaat_type?: string | null;
11709
+ name: string;
11710
+ sort_order?: number;
11711
+ unit_price_cents?: number;
11712
+ updated_at?: string;
11713
+ };
11714
+ Update: {
11715
+ active?: boolean;
11716
+ ai_tags?: string[];
11717
+ category_id?: string | null;
11718
+ code?: string;
11719
+ created_at?: string;
11720
+ default_quantity?: number;
11721
+ description?: string | null;
11722
+ duration_minutes?: number | null;
11723
+ id?: string;
11724
+ mandaat_type?: string | null;
11725
+ name?: string;
11726
+ sort_order?: number;
11727
+ unit_price_cents?: number;
11728
+ updated_at?: string;
11729
+ };
11730
+ Relationships: [{
11731
+ foreignKeyName: "werkbon_packages_category_id_fkey";
11732
+ columns: ["category_id"];
11733
+ isOneToOne: false;
11734
+ referencedRelation: "werkbon_package_categories";
11735
+ referencedColumns: ["id"];
11736
+ }];
11737
+ };
11738
+ werkbon_photos: {
11739
+ Row: {
11740
+ created_at: string;
11741
+ id: string;
11742
+ storage_path: string;
11743
+ user_id: string;
11744
+ werkbon_id: string;
11745
+ };
11746
+ Insert: {
11747
+ created_at?: string;
11748
+ id?: string;
11749
+ storage_path: string;
11750
+ user_id: string;
11751
+ werkbon_id: string;
11752
+ };
11753
+ Update: {
11754
+ created_at?: string;
11755
+ id?: string;
11756
+ storage_path?: string;
11757
+ user_id?: string;
11758
+ werkbon_id?: string;
11759
+ };
11760
+ Relationships: [{
11761
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
11762
+ columns: ["werkbon_id"];
11763
+ isOneToOne: false;
11764
+ referencedRelation: "werkbonnen";
11765
+ referencedColumns: ["id"];
11766
+ }];
11767
+ };
11768
+ werkbon_time_logs: {
10080
11769
  Row: {
10081
- action: string;
10082
- connection_id: string | null;
11770
+ activity: string;
10083
11771
  created_at: string;
10084
- error: string | null;
10085
- gateway_attempt_id: string | null;
10086
- gateway_status: number | null;
11772
+ ended_at: string | null;
10087
11773
  id: string;
10088
- intent: string;
10089
- ok: boolean;
10090
- request_summary: import("../integrations/supabase/types").Json | null;
10091
- trade_item_id: string | null;
11774
+ started_at: string;
10092
11775
  user_id: string;
11776
+ werkbon_id: string;
10093
11777
  };
10094
11778
  Insert: {
10095
- action: string;
10096
- connection_id?: string | null;
11779
+ activity: string;
10097
11780
  created_at?: string;
10098
- error?: string | null;
10099
- gateway_attempt_id?: string | null;
10100
- gateway_status?: number | null;
11781
+ ended_at?: string | null;
10101
11782
  id?: string;
10102
- intent: string;
10103
- ok: boolean;
10104
- request_summary?: import("../integrations/supabase/types").Json | null;
10105
- trade_item_id?: string | null;
11783
+ started_at?: string;
10106
11784
  user_id: string;
11785
+ werkbon_id: string;
10107
11786
  };
10108
11787
  Update: {
10109
- action?: string;
10110
- connection_id?: string | null;
11788
+ activity?: string;
10111
11789
  created_at?: string;
10112
- error?: string | null;
10113
- gateway_attempt_id?: string | null;
10114
- gateway_status?: number | null;
11790
+ ended_at?: string | null;
10115
11791
  id?: string;
10116
- intent?: string;
10117
- ok?: boolean;
10118
- request_summary?: import("../integrations/supabase/types").Json | null;
10119
- trade_item_id?: string | null;
11792
+ started_at?: string;
10120
11793
  user_id?: string;
11794
+ werkbon_id?: string;
10121
11795
  };
10122
- Relationships: [];
11796
+ Relationships: [{
11797
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
11798
+ columns: ["werkbon_id"];
11799
+ isOneToOne: false;
11800
+ referencedRelation: "werkbonnen";
11801
+ referencedColumns: ["id"];
11802
+ }];
11803
+ };
11804
+ werkbonnen: {
11805
+ Row: {
11806
+ assigned_user_id: string | null;
11807
+ budget_mandate_cents: number;
11808
+ complaint_description: string | null;
11809
+ created_at: string;
11810
+ created_by: string | null;
11811
+ customer_id: string | null;
11812
+ externe_referentie: string | null;
11813
+ first_time_fix: boolean | null;
11814
+ id: string;
11815
+ internal_notes: string | null;
11816
+ parent_werkbon_id: string | null;
11817
+ parsed_payload: import("../integrations/supabase/types").Json | null;
11818
+ planning_status: string;
11819
+ project_number: string | null;
11820
+ room_number: string | null;
11821
+ scheduled_end_time: string | null;
11822
+ scheduled_start_time: string | null;
11823
+ sequence_number: number;
11824
+ source_email_meta: import("../integrations/supabase/types").Json | null;
11825
+ source_mailbox_message_id: string | null;
11826
+ source_pdf_path: string | null;
11827
+ source_type: string;
11828
+ status: string;
11829
+ technician_id: string | null;
11830
+ technician_notes: string | null;
11831
+ technician_notes_raw: string | null;
11832
+ technician_task_description: string | null;
11833
+ updated_at: string;
11834
+ version: number;
11835
+ work_address: string | null;
11836
+ };
11837
+ Insert: {
11838
+ assigned_user_id?: string | null;
11839
+ budget_mandate_cents?: number;
11840
+ complaint_description?: string | null;
11841
+ created_at?: string;
11842
+ created_by?: string | null;
11843
+ customer_id?: string | null;
11844
+ externe_referentie?: string | null;
11845
+ first_time_fix?: boolean | null;
11846
+ id?: string;
11847
+ internal_notes?: string | null;
11848
+ parent_werkbon_id?: string | null;
11849
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
11850
+ planning_status?: string;
11851
+ project_number?: string | null;
11852
+ room_number?: string | null;
11853
+ scheduled_end_time?: string | null;
11854
+ scheduled_start_time?: string | null;
11855
+ sequence_number: number;
11856
+ source_email_meta?: import("../integrations/supabase/types").Json | null;
11857
+ source_mailbox_message_id?: string | null;
11858
+ source_pdf_path?: string | null;
11859
+ source_type?: string;
11860
+ status?: string;
11861
+ technician_id?: string | null;
11862
+ technician_notes?: string | null;
11863
+ technician_notes_raw?: string | null;
11864
+ technician_task_description?: string | null;
11865
+ updated_at?: string;
11866
+ version?: number;
11867
+ work_address?: string | null;
11868
+ };
11869
+ Update: {
11870
+ assigned_user_id?: string | null;
11871
+ budget_mandate_cents?: number;
11872
+ complaint_description?: string | null;
11873
+ created_at?: string;
11874
+ created_by?: string | null;
11875
+ customer_id?: string | null;
11876
+ externe_referentie?: string | null;
11877
+ first_time_fix?: boolean | null;
11878
+ id?: string;
11879
+ internal_notes?: string | null;
11880
+ parent_werkbon_id?: string | null;
11881
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
11882
+ planning_status?: string;
11883
+ project_number?: string | null;
11884
+ room_number?: string | null;
11885
+ scheduled_end_time?: string | null;
11886
+ scheduled_start_time?: string | null;
11887
+ sequence_number?: number;
11888
+ source_email_meta?: import("../integrations/supabase/types").Json | null;
11889
+ source_mailbox_message_id?: string | null;
11890
+ source_pdf_path?: string | null;
11891
+ source_type?: string;
11892
+ status?: string;
11893
+ technician_id?: string | null;
11894
+ technician_notes?: string | null;
11895
+ technician_notes_raw?: string | null;
11896
+ technician_task_description?: string | null;
11897
+ updated_at?: string;
11898
+ version?: number;
11899
+ work_address?: string | null;
11900
+ };
11901
+ Relationships: [{
11902
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
11903
+ columns: ["parent_werkbon_id"];
11904
+ isOneToOne: false;
11905
+ referencedRelation: "werkbonnen";
11906
+ referencedColumns: ["id"];
11907
+ }, {
11908
+ foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
11909
+ columns: ["source_mailbox_message_id"];
11910
+ isOneToOne: false;
11911
+ referencedRelation: "mailbox_messages";
11912
+ referencedColumns: ["id"];
11913
+ }];
10123
11914
  };
10124
11915
  work_order_monteurs: {
10125
11916
  Row: {
@@ -10291,6 +12082,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10291
12082
  created_at: string | null;
10292
12083
  created_by: string | null;
10293
12084
  display_name: string | null;
12085
+ graph_subscription_expires_at: string | null;
12086
+ graph_subscription_id: string | null;
10294
12087
  has_access_token: boolean | null;
10295
12088
  has_client_id: boolean | null;
10296
12089
  has_client_secret: boolean | null;
@@ -10308,6 +12101,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10308
12101
  oauth_mode: string | null;
10309
12102
  provider: string | null;
10310
12103
  purpose_assignments: import("../integrations/supabase/types").Json | null;
12104
+ realtime_mode: string | null;
10311
12105
  scopes: string[] | null;
10312
12106
  smtp_host: string | null;
10313
12107
  smtp_port: number | null;
@@ -10322,6 +12116,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10322
12116
  created_at?: string | null;
10323
12117
  created_by?: string | null;
10324
12118
  display_name?: string | null;
12119
+ graph_subscription_expires_at?: string | null;
12120
+ graph_subscription_id?: string | null;
10325
12121
  has_access_token?: never;
10326
12122
  has_client_id?: never;
10327
12123
  has_client_secret?: never;
@@ -10339,6 +12135,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10339
12135
  oauth_mode?: string | null;
10340
12136
  provider?: string | null;
10341
12137
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
12138
+ realtime_mode?: string | null;
10342
12139
  scopes?: string[] | null;
10343
12140
  smtp_host?: string | null;
10344
12141
  smtp_port?: number | null;
@@ -10353,6 +12150,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10353
12150
  created_at?: string | null;
10354
12151
  created_by?: string | null;
10355
12152
  display_name?: string | null;
12153
+ graph_subscription_expires_at?: string | null;
12154
+ graph_subscription_id?: string | null;
10356
12155
  has_access_token?: never;
10357
12156
  has_client_id?: never;
10358
12157
  has_client_secret?: never;
@@ -10370,6 +12169,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10370
12169
  oauth_mode?: string | null;
10371
12170
  provider?: string | null;
10372
12171
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
12172
+ realtime_mode?: string | null;
10373
12173
  scopes?: string[] | null;
10374
12174
  smtp_host?: string | null;
10375
12175
  smtp_port?: number | null;
@@ -10480,6 +12280,25 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10480
12280
  };
10481
12281
  Relationships: [];
10482
12282
  };
12283
+ floriday_customer_discounts: {
12284
+ Row: {
12285
+ base_price: number | null;
12286
+ buyer_organization_id: string | null;
12287
+ currency: string | null;
12288
+ discount_type: string | null;
12289
+ discount_value: number | null;
12290
+ min_quantity: number | null;
12291
+ net_price: number | null;
12292
+ product_group_id: string | null;
12293
+ raw: import("../integrations/supabase/types").Json | null;
12294
+ source: string | null;
12295
+ source_id: string | null;
12296
+ trade_item_id: string | null;
12297
+ valid_from: string | null;
12298
+ valid_until: string | null;
12299
+ };
12300
+ Relationships: [];
12301
+ };
10483
12302
  local_customer_discounts: {
10484
12303
  Row: {
10485
12304
  base_price: number | null;
@@ -10816,6 +12635,21 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10816
12635
  };
10817
12636
  Returns: string;
10818
12637
  };
12638
+ ai_usage_by_module: {
12639
+ Args: {
12640
+ _from: string;
12641
+ _to: string;
12642
+ };
12643
+ Returns: {
12644
+ calls: number;
12645
+ consumer_module_id: string;
12646
+ cost_usd: number;
12647
+ errors: number;
12648
+ input_tokens: number;
12649
+ output_tokens: number;
12650
+ total_tokens: number;
12651
+ }[];
12652
+ };
10819
12653
  apply_stock_consumption: {
10820
12654
  Args: {
10821
12655
  p_order_id: string;
@@ -10873,6 +12707,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10873
12707
  processed_items: number;
10874
12708
  }[];
10875
12709
  };
12710
+ calculate_layer_stock: {
12711
+ Args: {
12712
+ p_product_id: string;
12713
+ };
12714
+ Returns: number;
12715
+ };
10876
12716
  call_exact_route: {
10877
12717
  Args: {
10878
12718
  path: string;
@@ -10901,6 +12741,33 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10901
12741
  };
10902
12742
  Returns: import("../integrations/supabase/types").Json;
10903
12743
  };
12744
+ claim_twinfield_push_batch: {
12745
+ Args: {
12746
+ _limit?: number;
12747
+ };
12748
+ Returns: {
12749
+ action: string;
12750
+ attempts: number;
12751
+ connection_id: string;
12752
+ created_at: string;
12753
+ customer_id: string | null;
12754
+ external_id: string | null;
12755
+ id: string;
12756
+ idempotency_key: string;
12757
+ last_error: string | null;
12758
+ next_attempt_at: string;
12759
+ office_code: string | null;
12760
+ payload: import("../integrations/supabase/types").Json;
12761
+ status: string;
12762
+ updated_at: string;
12763
+ }[];
12764
+ SetofOptions: {
12765
+ from: "*";
12766
+ to: "twinfield_push_queue";
12767
+ isOneToOne: false;
12768
+ isSetofReturn: true;
12769
+ };
12770
+ };
10904
12771
  cleanup_old_bookings: {
10905
12772
  Args: never;
10906
12773
  Returns: undefined;
@@ -10959,6 +12826,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10959
12826
  Args: never;
10960
12827
  Returns: string;
10961
12828
  };
12829
+ custom_access_token_hook: {
12830
+ Args: {
12831
+ event: import("../integrations/supabase/types").Json;
12832
+ };
12833
+ Returns: import("../integrations/supabase/types").Json;
12834
+ };
10962
12835
  dashboard_alert_counts: {
10963
12836
  Args: never;
10964
12837
  Returns: import("../integrations/supabase/types").Json;
@@ -11026,6 +12899,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11026
12899
  status: string;
11027
12900
  }[];
11028
12901
  };
12902
+ email_auth_upsert_connection: {
12903
+ Args: {
12904
+ _account_email: string;
12905
+ _created_by: string;
12906
+ _is_active: boolean;
12907
+ _provider: string;
12908
+ _status: string;
12909
+ };
12910
+ Returns: string;
12911
+ };
11029
12912
  enqueue_cart_replan_if_unlocked: {
11030
12913
  Args: {
11031
12914
  p_order_id: string;
@@ -11145,6 +13028,19 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11145
13028
  resource: string;
11146
13029
  }[];
11147
13030
  };
13031
+ get_floriday_agreements_active: {
13032
+ Args: {
13033
+ p_on_date?: string;
13034
+ };
13035
+ Returns: {
13036
+ buyer_organization_id: string;
13037
+ data: import("../integrations/supabase/types").Json;
13038
+ floriday_id: string;
13039
+ status: string;
13040
+ valid_from: string;
13041
+ valid_until: string;
13042
+ }[];
13043
+ };
11148
13044
  get_floriday_clock_supplies_window: {
11149
13045
  Args: {
11150
13046
  p_from: string;
@@ -11232,6 +13128,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11232
13128
  };
11233
13129
  Returns: string;
11234
13130
  };
13131
+ get_inventory_stock_for_key: {
13132
+ Args: {
13133
+ p_key: string;
13134
+ };
13135
+ Returns: number;
13136
+ };
11235
13137
  get_offer_by_link_code: {
11236
13138
  Args: {
11237
13139
  p_code: string;
@@ -11262,6 +13164,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11262
13164
  };
11263
13165
  Returns: string;
11264
13166
  };
13167
+ get_product_group_available_stock: {
13168
+ Args: {
13169
+ p_group_id: string;
13170
+ };
13171
+ Returns: number;
13172
+ };
11265
13173
  get_room_busy_windows: {
11266
13174
  Args: {
11267
13175
  p_from: string;
@@ -11293,6 +13201,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11293
13201
  };
11294
13202
  Returns: string;
11295
13203
  };
13204
+ has_module_permission: {
13205
+ Args: {
13206
+ _min: string;
13207
+ _module_id: string;
13208
+ _user_id: string;
13209
+ };
13210
+ Returns: boolean;
13211
+ };
11296
13212
  has_role: {
11297
13213
  Args: {
11298
13214
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -11300,6 +13216,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11300
13216
  };
11301
13217
  Returns: boolean;
11302
13218
  };
13219
+ has_twinfield_link: {
13220
+ Args: never;
13221
+ Returns: boolean;
13222
+ };
11303
13223
  is_authenticated: {
11304
13224
  Args: never;
11305
13225
  Returns: boolean;
@@ -11314,6 +13234,37 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11314
13234
  };
11315
13235
  Returns: boolean;
11316
13236
  };
13237
+ jwt_has_role: {
13238
+ Args: {
13239
+ _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
13240
+ };
13241
+ Returns: boolean;
13242
+ };
13243
+ list_monteurs: {
13244
+ Args: never;
13245
+ Returns: {
13246
+ avatar_url: string;
13247
+ display_name: string;
13248
+ email: string;
13249
+ id: string;
13250
+ }[];
13251
+ };
13252
+ list_my_planning_items: {
13253
+ Args: {
13254
+ _from: string;
13255
+ _to: string;
13256
+ };
13257
+ Returns: {
13258
+ assigned_monteur_id: string;
13259
+ end_at: string;
13260
+ id: string;
13261
+ notes: string;
13262
+ role: string;
13263
+ start_at: string;
13264
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
13265
+ werkbon_id: string;
13266
+ }[];
13267
+ };
11317
13268
  local_effective_price: {
11318
13269
  Args: {
11319
13270
  _customer_id: string;
@@ -11330,6 +13281,22 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11330
13281
  source_id: string;
11331
13282
  }[];
11332
13283
  };
13284
+ log_ai_call: {
13285
+ Args: {
13286
+ _consumer_module_id: string;
13287
+ _cost_usd: number;
13288
+ _duration_ms: number;
13289
+ _error_code: string;
13290
+ _error_message: string;
13291
+ _input_tokens: number;
13292
+ _model_slug: string;
13293
+ _output_tokens: number;
13294
+ _provider_slug: string;
13295
+ _status: string;
13296
+ _total_tokens: number;
13297
+ };
13298
+ Returns: string;
13299
+ };
11333
13300
  mark_offer_clicked: {
11334
13301
  Args: {
11335
13302
  p_code: string;
@@ -11342,6 +13309,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11342
13309
  };
11343
13310
  Returns: undefined;
11344
13311
  };
13312
+ mark_salesorder_controlled: {
13313
+ Args: {
13314
+ p_controlled: boolean;
13315
+ p_floriday_id: string;
13316
+ };
13317
+ Returns: undefined;
13318
+ };
11345
13319
  mark_shipment_shipped: {
11346
13320
  Args: {
11347
13321
  p_shipment_id: string;
@@ -11374,6 +13348,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11374
13348
  };
11375
13349
  Returns: string;
11376
13350
  };
13351
+ next_twinfield_code: {
13352
+ Args: never;
13353
+ Returns: string;
13354
+ };
11377
13355
  next_work_order_number: {
11378
13356
  Args: {
11379
13357
  p_parent_work_order_id?: string;
@@ -11430,6 +13408,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11430
13408
  };
11431
13409
  Returns: undefined;
11432
13410
  };
13411
+ pickstation_resolve_delivery_orders: {
13412
+ Args: {
13413
+ p_sales_order_ids: string[];
13414
+ };
13415
+ Returns: {
13416
+ delivery_order_id: string;
13417
+ sales_order_id: string;
13418
+ }[];
13419
+ };
11433
13420
  pickstation_set_cart_status: {
11434
13421
  Args: {
11435
13422
  p_cart_index: number;
@@ -11500,6 +13487,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11500
13487
  };
11501
13488
  Returns: number;
11502
13489
  };
13490
+ reorder_customer_price_groups: {
13491
+ Args: {
13492
+ _ids: string[];
13493
+ };
13494
+ Returns: undefined;
13495
+ };
11503
13496
  reset_floriday_sync_cursor: {
11504
13497
  Args: {
11505
13498
  p_connection_id: string;
@@ -11535,6 +13528,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11535
13528
  };
11536
13529
  Returns: string;
11537
13530
  };
13531
+ retry_twinfield_push: {
13532
+ Args: {
13533
+ _customer_id: string;
13534
+ };
13535
+ Returns: number;
13536
+ };
11538
13537
  reverse_production: {
11539
13538
  Args: {
11540
13539
  p_connection_id?: string;
@@ -11552,6 +13551,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11552
13551
  };
11553
13552
  Returns: number;
11554
13553
  };
13554
+ schedule_floriday_agreement_calloffs_sync: {
13555
+ Args: {
13556
+ p_apikey: string;
13557
+ p_url: string;
13558
+ };
13559
+ Returns: number;
13560
+ };
13561
+ schedule_floriday_agreements_sync: {
13562
+ Args: {
13563
+ p_apikey: string;
13564
+ p_url: string;
13565
+ };
13566
+ Returns: number;
13567
+ };
11555
13568
  schedule_floriday_base_items_sync: {
11556
13569
  Args: {
11557
13570
  p_apikey: string;
@@ -11798,6 +13811,17 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11798
13811
  };
11799
13812
  Returns: number;
11800
13813
  };
13814
+ self_heal_floriday_links: {
13815
+ Args: never;
13816
+ Returns: number;
13817
+ };
13818
+ set_planning_status: {
13819
+ Args: {
13820
+ _id: string;
13821
+ _status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
13822
+ };
13823
+ Returns: undefined;
13824
+ };
11801
13825
  show_limit: {
11802
13826
  Args: never;
11803
13827
  Returns: number;
@@ -11808,18 +13832,34 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11808
13832
  };
11809
13833
  Returns: string[];
11810
13834
  };
13835
+ sync_all_layer_stocks: {
13836
+ Args: never;
13837
+ Returns: undefined;
13838
+ };
11811
13839
  sync_cached_packing_from_product: {
11812
13840
  Args: {
11813
13841
  p_product_id: string;
11814
13842
  };
11815
13843
  Returns: undefined;
11816
13844
  };
13845
+ sync_layer_stock: {
13846
+ Args: {
13847
+ p_product_id: string;
13848
+ };
13849
+ Returns: undefined;
13850
+ };
11817
13851
  sync_order_cart_item_packing_from_product: {
11818
13852
  Args: {
11819
13853
  p_product_id: string;
11820
13854
  };
11821
13855
  Returns: undefined;
11822
13856
  };
13857
+ sync_product_group_belading: {
13858
+ Args: {
13859
+ _group_id: string;
13860
+ };
13861
+ Returns: undefined;
13862
+ };
11823
13863
  sync_product_packing_from_floriday_cache: {
11824
13864
  Args: {
11825
13865
  p_floriday_id: string;
@@ -11851,9 +13891,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11851
13891
  };
11852
13892
  };
11853
13893
  Enums: {
11854
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
13894
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
11855
13895
  exact_env: "staging" | "live";
11856
13896
  exact_push_status: "pending" | "sent" | "error";
13897
+ itk_customer_segment: "Business" | "Private";
13898
+ itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13899
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
11857
13900
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
11858
13901
  };
11859
13902
  CompositeTypes: { [_ in never]: never; };