@flowselections/floriday-klanten-module 1.0.13 → 1.0.15

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 (42) hide show
  1. package/dist-lib/components/CustomerAvatar.js +1 -1
  2. package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
  3. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
  4. package/dist-lib/components/klanten/ImportKlanten.js +438 -0
  5. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  6. package/dist-lib/components/klanten/KlantenOverzicht.js +2 -2
  7. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
  8. package/dist-lib/components/klanten/NetwerkPagina.js +38 -9
  9. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/NieuweKlant.js +10 -1
  11. package/dist-lib/index.d.ts +1 -0
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +1 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +372 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +372 -1
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +372 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +376 -1
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/lib/accounting.functions.d.ts +1116 -3
  23. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/customer-analytics.functions.d.ts +372 -1
  25. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-schemas.d.ts +147 -0
  27. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  28. package/dist-lib/lib/customer-schemas.js +106 -7
  29. package/dist-lib/lib/customers.functions.d.ts +14184 -15
  30. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customers.functions.js +130 -23
  32. package/dist-lib/lib/delivery-locations.functions.d.ts +1488 -4
  33. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/external-customers.functions.d.ts +1488 -4
  35. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +744 -2
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/local-discounts.functions.d.ts +2604 -7
  39. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/overdue-invoices.functions.d.ts +372 -1
  41. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  42. package/package.json +10 -3
@@ -56,6 +56,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
56
56
  Tables: {
57
57
  afhandeling_settings: {
58
58
  Row: {
59
+ auto_print_delivery_note: boolean;
60
+ auto_process_paused: boolean;
59
61
  created_at: string;
60
62
  extra_pick_days_with_stickers: number;
61
63
  id: string;
@@ -71,6 +73,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
71
73
  user_id: string;
72
74
  };
73
75
  Insert: {
76
+ auto_print_delivery_note?: boolean;
77
+ auto_process_paused?: boolean;
74
78
  created_at?: string;
75
79
  extra_pick_days_with_stickers?: number;
76
80
  id?: string;
@@ -86,6 +90,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
86
90
  user_id: string;
87
91
  };
88
92
  Update: {
93
+ auto_print_delivery_note?: boolean;
94
+ auto_process_paused?: boolean;
89
95
  created_at?: string;
90
96
  extra_pick_days_with_stickers?: number;
91
97
  id?: string;
@@ -318,6 +324,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
318
324
  created_at: string;
319
325
  extra_id: string;
320
326
  id: string;
327
+ original_unit_price: number | null;
328
+ override_reason: string | null;
329
+ override_unit_price: number | null;
321
330
  quantity: number;
322
331
  total_price: number;
323
332
  unit_price: number;
@@ -327,6 +336,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
327
336
  created_at?: string;
328
337
  extra_id: string;
329
338
  id?: string;
339
+ original_unit_price?: number | null;
340
+ override_reason?: string | null;
341
+ override_unit_price?: number | null;
330
342
  quantity?: number;
331
343
  total_price?: number;
332
344
  unit_price?: number;
@@ -336,6 +348,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
336
348
  created_at?: string;
337
349
  extra_id?: string;
338
350
  id?: string;
351
+ original_unit_price?: number | null;
352
+ override_reason?: string | null;
353
+ override_unit_price?: number | null;
339
354
  quantity?: number;
340
355
  total_price?: number;
341
356
  unit_price?: number;
@@ -356,11 +371,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
356
371
  };
357
372
  bookings: {
358
373
  Row: {
374
+ archive_reason: string | null;
375
+ archived_at: string | null;
376
+ archived_by: string | null;
359
377
  company_name: string | null;
360
378
  conflict_checked_at: string | null;
361
379
  conflict_reason: string | null;
362
380
  created_at: string;
363
381
  created_by_role: string | null;
382
+ customer_address: string | null;
364
383
  customer_email: string | null;
365
384
  customer_name: string | null;
366
385
  end_time: string;
@@ -372,7 +391,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
372
391
  invoiced_at: string | null;
373
392
  notes: string | null;
374
393
  number_of_people: number;
394
+ overridden_at: string | null;
395
+ overridden_by: string | null;
396
+ override_reason: string | null;
397
+ price_override: boolean;
375
398
  room_id: string;
399
+ room_price_override: number | null;
376
400
  start_time: string;
377
401
  status: string;
378
402
  total_excl_vat: number | null;
@@ -381,11 +405,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
381
405
  vat_amount: number | null;
382
406
  };
383
407
  Insert: {
408
+ archive_reason?: string | null;
409
+ archived_at?: string | null;
410
+ archived_by?: string | null;
384
411
  company_name?: string | null;
385
412
  conflict_checked_at?: string | null;
386
413
  conflict_reason?: string | null;
387
414
  created_at?: string;
388
415
  created_by_role?: string | null;
416
+ customer_address?: string | null;
389
417
  customer_email?: string | null;
390
418
  customer_name?: string | null;
391
419
  end_time: string;
@@ -397,7 +425,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
397
425
  invoiced_at?: string | null;
398
426
  notes?: string | null;
399
427
  number_of_people?: number;
428
+ overridden_at?: string | null;
429
+ overridden_by?: string | null;
430
+ override_reason?: string | null;
431
+ price_override?: boolean;
400
432
  room_id: string;
433
+ room_price_override?: number | null;
401
434
  start_time: string;
402
435
  status?: string;
403
436
  total_excl_vat?: number | null;
@@ -406,11 +439,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
406
439
  vat_amount?: number | null;
407
440
  };
408
441
  Update: {
442
+ archive_reason?: string | null;
443
+ archived_at?: string | null;
444
+ archived_by?: string | null;
409
445
  company_name?: string | null;
410
446
  conflict_checked_at?: string | null;
411
447
  conflict_reason?: string | null;
412
448
  created_at?: string;
413
449
  created_by_role?: string | null;
450
+ customer_address?: string | null;
414
451
  customer_email?: string | null;
415
452
  customer_name?: string | null;
416
453
  end_time?: string;
@@ -422,7 +459,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
422
459
  invoiced_at?: string | null;
423
460
  notes?: string | null;
424
461
  number_of_people?: number;
462
+ overridden_at?: string | null;
463
+ overridden_by?: string | null;
464
+ override_reason?: string | null;
465
+ price_override?: boolean;
425
466
  room_id?: string;
467
+ room_price_override?: number | null;
426
468
  start_time?: string;
427
469
  status?: string;
428
470
  total_excl_vat?: number | null;
@@ -1251,8 +1293,27 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1251
1293
  customers: {
1252
1294
  Row: {
1253
1295
  address: string | null;
1296
+ address_line1: string | null;
1297
+ address_line2: string | null;
1298
+ address_type: string | null;
1299
+ attention_to: string | null;
1300
+ bank_account_holder: string | null;
1301
+ bank_account_number: string | null;
1302
+ bank_address_line1: string | null;
1303
+ bank_address_line2: string | null;
1304
+ bank_bic: string | null;
1305
+ bank_city: string | null;
1306
+ bank_country: string | null;
1307
+ bank_house_number: string | null;
1308
+ bank_iban: string | null;
1309
+ bank_name: string | null;
1310
+ bank_national_code: string | null;
1311
+ bank_postal_code: string | null;
1312
+ bank_state: string | null;
1313
+ billing_email: string | null;
1254
1314
  bio: string | null;
1255
1315
  city: string | null;
1316
+ coc_number: string | null;
1256
1317
  commercial_name: string | null;
1257
1318
  company_name: string;
1258
1319
  connection_status: string;
@@ -1261,21 +1322,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1261
1322
  created_at: string;
1262
1323
  custom_fields: import("../integrations/supabase/types").Json;
1263
1324
  customer_class: string | null;
1325
+ customer_number: string | null;
1326
+ discount_days: number | null;
1327
+ discount_percentage: number | null;
1264
1328
  email: string | null;
1265
1329
  external_id: string | null;
1330
+ fax: string | null;
1266
1331
  floriday_connection_id: string | null;
1267
1332
  floriday_organization_id: string | null;
1268
1333
  floriday_raw: import("../integrations/supabase/types").Json | null;
1269
1334
  gln: string | null;
1270
1335
  house_number: string | null;
1336
+ icp_country_code: string | null;
1271
1337
  id: string;
1272
1338
  is_active: boolean;
1339
+ language: string | null;
1273
1340
  last_synced_at: string | null;
1274
1341
  logo_url: string | null;
1275
1342
  markets: string[];
1276
1343
  notes: string | null;
1277
1344
  organization_type: string | null;
1278
1345
  payment_methods: string[];
1346
+ payment_term_days: number | null;
1279
1347
  phone: string | null;
1280
1348
  postal_code: string | null;
1281
1349
  product_groups: string[];
@@ -1286,13 +1354,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1286
1354
  sync_status: string;
1287
1355
  trade_forms: string[];
1288
1356
  updated_at: string;
1357
+ vat_display: string | null;
1289
1358
  vat_number: string | null;
1290
1359
  website: string | null;
1291
1360
  };
1292
1361
  Insert: {
1293
1362
  address?: string | null;
1363
+ address_line1?: string | null;
1364
+ address_line2?: string | null;
1365
+ address_type?: string | null;
1366
+ attention_to?: string | null;
1367
+ bank_account_holder?: string | null;
1368
+ bank_account_number?: string | null;
1369
+ bank_address_line1?: string | null;
1370
+ bank_address_line2?: string | null;
1371
+ bank_bic?: string | null;
1372
+ bank_city?: string | null;
1373
+ bank_country?: string | null;
1374
+ bank_house_number?: string | null;
1375
+ bank_iban?: string | null;
1376
+ bank_name?: string | null;
1377
+ bank_national_code?: string | null;
1378
+ bank_postal_code?: string | null;
1379
+ bank_state?: string | null;
1380
+ billing_email?: string | null;
1294
1381
  bio?: string | null;
1295
1382
  city?: string | null;
1383
+ coc_number?: string | null;
1296
1384
  commercial_name?: string | null;
1297
1385
  company_name: string;
1298
1386
  connection_status?: string;
@@ -1301,21 +1389,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1301
1389
  created_at?: string;
1302
1390
  custom_fields?: import("../integrations/supabase/types").Json;
1303
1391
  customer_class?: string | null;
1392
+ customer_number?: string | null;
1393
+ discount_days?: number | null;
1394
+ discount_percentage?: number | null;
1304
1395
  email?: string | null;
1305
1396
  external_id?: string | null;
1397
+ fax?: string | null;
1306
1398
  floriday_connection_id?: string | null;
1307
1399
  floriday_organization_id?: string | null;
1308
1400
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1309
1401
  gln?: string | null;
1310
1402
  house_number?: string | null;
1403
+ icp_country_code?: string | null;
1311
1404
  id?: string;
1312
1405
  is_active?: boolean;
1406
+ language?: string | null;
1313
1407
  last_synced_at?: string | null;
1314
1408
  logo_url?: string | null;
1315
1409
  markets?: string[];
1316
1410
  notes?: string | null;
1317
1411
  organization_type?: string | null;
1318
1412
  payment_methods?: string[];
1413
+ payment_term_days?: number | null;
1319
1414
  phone?: string | null;
1320
1415
  postal_code?: string | null;
1321
1416
  product_groups?: string[];
@@ -1326,13 +1421,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1326
1421
  sync_status?: string;
1327
1422
  trade_forms?: string[];
1328
1423
  updated_at?: string;
1424
+ vat_display?: string | null;
1329
1425
  vat_number?: string | null;
1330
1426
  website?: string | null;
1331
1427
  };
1332
1428
  Update: {
1333
1429
  address?: string | null;
1430
+ address_line1?: string | null;
1431
+ address_line2?: string | null;
1432
+ address_type?: string | null;
1433
+ attention_to?: string | null;
1434
+ bank_account_holder?: string | null;
1435
+ bank_account_number?: string | null;
1436
+ bank_address_line1?: string | null;
1437
+ bank_address_line2?: string | null;
1438
+ bank_bic?: string | null;
1439
+ bank_city?: string | null;
1440
+ bank_country?: string | null;
1441
+ bank_house_number?: string | null;
1442
+ bank_iban?: string | null;
1443
+ bank_name?: string | null;
1444
+ bank_national_code?: string | null;
1445
+ bank_postal_code?: string | null;
1446
+ bank_state?: string | null;
1447
+ billing_email?: string | null;
1334
1448
  bio?: string | null;
1335
1449
  city?: string | null;
1450
+ coc_number?: string | null;
1336
1451
  commercial_name?: string | null;
1337
1452
  company_name?: string;
1338
1453
  connection_status?: string;
@@ -1341,21 +1456,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1341
1456
  created_at?: string;
1342
1457
  custom_fields?: import("../integrations/supabase/types").Json;
1343
1458
  customer_class?: string | null;
1459
+ customer_number?: string | null;
1460
+ discount_days?: number | null;
1461
+ discount_percentage?: number | null;
1344
1462
  email?: string | null;
1345
1463
  external_id?: string | null;
1464
+ fax?: string | null;
1346
1465
  floriday_connection_id?: string | null;
1347
1466
  floriday_organization_id?: string | null;
1348
1467
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1349
1468
  gln?: string | null;
1350
1469
  house_number?: string | null;
1470
+ icp_country_code?: string | null;
1351
1471
  id?: string;
1352
1472
  is_active?: boolean;
1473
+ language?: string | null;
1353
1474
  last_synced_at?: string | null;
1354
1475
  logo_url?: string | null;
1355
1476
  markets?: string[];
1356
1477
  notes?: string | null;
1357
1478
  organization_type?: string | null;
1358
1479
  payment_methods?: string[];
1480
+ payment_term_days?: number | null;
1359
1481
  phone?: string | null;
1360
1482
  postal_code?: string | null;
1361
1483
  product_groups?: string[];
@@ -1366,6 +1488,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1366
1488
  sync_status?: string;
1367
1489
  trade_forms?: string[];
1368
1490
  updated_at?: string;
1491
+ vat_display?: string | null;
1369
1492
  vat_number?: string | null;
1370
1493
  website?: string | null;
1371
1494
  };
@@ -3312,6 +3435,54 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
3312
3435
  referencedColumns: ["id"];
3313
3436
  }];
3314
3437
  };
3438
+ floriday_auto_fulfillment_log: {
3439
+ Row: {
3440
+ attempts: number;
3441
+ connection_id: string;
3442
+ created_at: string;
3443
+ error: string | null;
3444
+ fulfillment_order_id: string | null;
3445
+ id: string;
3446
+ last_attempt_at: string | null;
3447
+ reason: string | null;
3448
+ sales_order_id: string;
3449
+ status: string;
3450
+ updated_at: string;
3451
+ };
3452
+ Insert: {
3453
+ attempts?: number;
3454
+ connection_id: string;
3455
+ created_at?: string;
3456
+ error?: string | null;
3457
+ fulfillment_order_id?: string | null;
3458
+ id?: string;
3459
+ last_attempt_at?: string | null;
3460
+ reason?: string | null;
3461
+ sales_order_id: string;
3462
+ status?: string;
3463
+ updated_at?: string;
3464
+ };
3465
+ Update: {
3466
+ attempts?: number;
3467
+ connection_id?: string;
3468
+ created_at?: string;
3469
+ error?: string | null;
3470
+ fulfillment_order_id?: string | null;
3471
+ id?: string;
3472
+ last_attempt_at?: string | null;
3473
+ reason?: string | null;
3474
+ sales_order_id?: string;
3475
+ status?: string;
3476
+ updated_at?: string;
3477
+ };
3478
+ Relationships: [{
3479
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3480
+ columns: ["connection_id"];
3481
+ isOneToOne: false;
3482
+ referencedRelation: "floriday_connections";
3483
+ referencedColumns: ["id"];
3484
+ }];
3485
+ };
3315
3486
  floriday_base_items_cache: {
3316
3487
  Row: {
3317
3488
  connection_id: string;
@@ -4416,6 +4587,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
4416
4587
  referencedColumns: ["id"];
4417
4588
  }];
4418
4589
  };
4590
+ floriday_rate_limit_state: {
4591
+ Row: {
4592
+ bucket: string;
4593
+ last_refill_at: string;
4594
+ tokens: number;
4595
+ };
4596
+ Insert: {
4597
+ bucket: string;
4598
+ last_refill_at?: string;
4599
+ tokens: number;
4600
+ };
4601
+ Update: {
4602
+ bucket?: string;
4603
+ last_refill_at?: string;
4604
+ tokens?: number;
4605
+ };
4606
+ Relationships: [];
4607
+ };
4419
4608
  floriday_resource_schemas: {
4420
4609
  Row: {
4421
4610
  enums: import("../integrations/supabase/types").Json;
@@ -6850,6 +7039,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
6850
7039
  order_date: string;
6851
7040
  order_number: string;
6852
7041
  order_source: string;
7042
+ plan_locked_at: string | null;
7043
+ plan_locked_ref: string | null;
6853
7044
  status: string;
6854
7045
  total: string;
6855
7046
  updated_at: string;
@@ -6866,6 +7057,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
6866
7057
  order_date?: string;
6867
7058
  order_number: string;
6868
7059
  order_source?: string;
7060
+ plan_locked_at?: string | null;
7061
+ plan_locked_ref?: string | null;
6869
7062
  status?: string;
6870
7063
  total?: string;
6871
7064
  updated_at?: string;
@@ -6882,6 +7075,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
6882
7075
  order_date?: string;
6883
7076
  order_number?: string;
6884
7077
  order_source?: string;
7078
+ plan_locked_at?: string | null;
7079
+ plan_locked_ref?: string | null;
6885
7080
  status?: string;
6886
7081
  total?: string;
6887
7082
  updated_at?: string;
@@ -7250,6 +7445,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
7250
7445
  };
7251
7446
  profiles: {
7252
7447
  Row: {
7448
+ address: string | null;
7253
7449
  created_at: string;
7254
7450
  display_name: string | null;
7255
7451
  email: string | null;
@@ -7260,6 +7456,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
7260
7456
  updated_at: string;
7261
7457
  };
7262
7458
  Insert: {
7459
+ address?: string | null;
7263
7460
  created_at?: string;
7264
7461
  display_name?: string | null;
7265
7462
  email?: string | null;
@@ -7270,6 +7467,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
7270
7467
  updated_at?: string;
7271
7468
  };
7272
7469
  Update: {
7470
+ address?: string | null;
7273
7471
  created_at?: string;
7274
7472
  display_name?: string | null;
7275
7473
  email?: string | null;
@@ -8517,6 +8715,114 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8517
8715
  };
8518
8716
  Relationships: [];
8519
8717
  };
8718
+ trade_item_supply_lines: {
8719
+ Row: {
8720
+ available_quantity: number | null;
8721
+ connection_id: string;
8722
+ created_at: string;
8723
+ currency: string | null;
8724
+ endpoint_family: string | null;
8725
+ environment: string | null;
8726
+ id: string;
8727
+ last_error: string | null;
8728
+ last_status: number | null;
8729
+ packing_configuration_id: string | null;
8730
+ period_end: string | null;
8731
+ period_start: string | null;
8732
+ price_per_piece: number | null;
8733
+ sales_unit: string | null;
8734
+ supply_line_id: string | null;
8735
+ supply_type: string;
8736
+ trade_item_id: string;
8737
+ updated_at: string;
8738
+ user_id: string;
8739
+ week: number | null;
8740
+ year: number | null;
8741
+ };
8742
+ Insert: {
8743
+ available_quantity?: number | null;
8744
+ connection_id: string;
8745
+ created_at?: string;
8746
+ currency?: string | null;
8747
+ endpoint_family?: string | null;
8748
+ environment?: string | null;
8749
+ id?: string;
8750
+ last_error?: string | null;
8751
+ last_status?: number | null;
8752
+ packing_configuration_id?: string | null;
8753
+ period_end?: string | null;
8754
+ period_start?: string | null;
8755
+ price_per_piece?: number | null;
8756
+ sales_unit?: string | null;
8757
+ supply_line_id?: string | null;
8758
+ supply_type?: string;
8759
+ trade_item_id: string;
8760
+ updated_at?: string;
8761
+ user_id: string;
8762
+ week?: number | null;
8763
+ year?: number | null;
8764
+ };
8765
+ Update: {
8766
+ available_quantity?: number | null;
8767
+ connection_id?: string;
8768
+ created_at?: string;
8769
+ currency?: string | null;
8770
+ endpoint_family?: string | null;
8771
+ environment?: string | null;
8772
+ id?: string;
8773
+ last_error?: string | null;
8774
+ last_status?: number | null;
8775
+ packing_configuration_id?: string | null;
8776
+ period_end?: string | null;
8777
+ period_start?: string | null;
8778
+ price_per_piece?: number | null;
8779
+ sales_unit?: string | null;
8780
+ supply_line_id?: string | null;
8781
+ supply_type?: string;
8782
+ trade_item_id?: string;
8783
+ updated_at?: string;
8784
+ user_id?: string;
8785
+ week?: number | null;
8786
+ year?: number | null;
8787
+ };
8788
+ Relationships: [];
8789
+ };
8790
+ trade_item_warehouse_preferences: {
8791
+ Row: {
8792
+ connection_id: string;
8793
+ created_at: string;
8794
+ id: string;
8795
+ trade_item_id: string;
8796
+ updated_at: string;
8797
+ warehouse_id: string;
8798
+ warehouse_name: string | null;
8799
+ };
8800
+ Insert: {
8801
+ connection_id: string;
8802
+ created_at?: string;
8803
+ id?: string;
8804
+ trade_item_id: string;
8805
+ updated_at?: string;
8806
+ warehouse_id: string;
8807
+ warehouse_name?: string | null;
8808
+ };
8809
+ Update: {
8810
+ connection_id?: string;
8811
+ created_at?: string;
8812
+ id?: string;
8813
+ trade_item_id?: string;
8814
+ updated_at?: string;
8815
+ warehouse_id?: string;
8816
+ warehouse_name?: string | null;
8817
+ };
8818
+ Relationships: [{
8819
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8820
+ columns: ["connection_id"];
8821
+ isOneToOne: false;
8822
+ referencedRelation: "floriday_connections";
8823
+ referencedColumns: ["id"];
8824
+ }];
8825
+ };
8520
8826
  twinfield_connections: {
8521
8827
  Row: {
8522
8828
  access_token: string | null;
@@ -10202,7 +10508,19 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
10202
10508
  };
10203
10509
  cleanup_old_bookings: {
10204
10510
  Args: never;
10205
- Returns: number;
10511
+ Returns: undefined;
10512
+ };
10513
+ consume_floriday_rate_limit: {
10514
+ Args: {
10515
+ p_bucket: string;
10516
+ p_capacity: number;
10517
+ p_cost?: number;
10518
+ p_refill_per_sec: number;
10519
+ };
10520
+ Returns: {
10521
+ granted: boolean;
10522
+ wait_ms: number;
10523
+ }[];
10206
10524
  };
10207
10525
  control_get_todays_carts: {
10208
10526
  Args: never;
@@ -10284,6 +10602,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
10284
10602
  status: string;
10285
10603
  }[];
10286
10604
  };
10605
+ enqueue_cart_replan_if_unlocked: {
10606
+ Args: {
10607
+ p_order_id: string;
10608
+ };
10609
+ Returns: undefined;
10610
+ };
10287
10611
  ensure_trade_item_stock_row: {
10288
10612
  Args: {
10289
10613
  p_key: string;
@@ -10677,6 +11001,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
10677
11001
  };
10678
11002
  Returns: undefined;
10679
11003
  };
11004
+ recompute_order_status: {
11005
+ Args: {
11006
+ p_order_id: string;
11007
+ };
11008
+ Returns: undefined;
11009
+ };
11010
+ recompute_reserved_for_order: {
11011
+ Args: {
11012
+ p_order_id: string;
11013
+ };
11014
+ Returns: undefined;
11015
+ };
11016
+ recompute_reserved_stock: {
11017
+ Args: {
11018
+ p_trade_item_key: string;
11019
+ };
11020
+ Returns: undefined;
11021
+ };
10680
11022
  refresh_external_customers_grouped: {
10681
11023
  Args: never;
10682
11024
  Returns: undefined;
@@ -10991,6 +11333,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
10991
11333
  };
10992
11334
  Returns: string[];
10993
11335
  };
11336
+ sync_cached_packing_from_product: {
11337
+ Args: {
11338
+ p_product_id: string;
11339
+ };
11340
+ Returns: undefined;
11341
+ };
11342
+ sync_order_cart_item_packing_from_product: {
11343
+ Args: {
11344
+ p_product_id: string;
11345
+ };
11346
+ Returns: undefined;
11347
+ };
11348
+ sync_product_packing_from_floriday_cache: {
11349
+ Args: {
11350
+ p_floriday_id: string;
11351
+ };
11352
+ Returns: undefined;
11353
+ };
10994
11354
  twinfield_decrypt: {
10995
11355
  Args: {
10996
11356
  cipher: string;
@@ -11003,6 +11363,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11003
11363
  };
11004
11364
  Returns: string;
11005
11365
  };
11366
+ upsert_auto_fulfillment_log: {
11367
+ Args: {
11368
+ p_connection_id: string;
11369
+ p_error?: string;
11370
+ p_fulfillment_order_id?: string;
11371
+ p_reason?: string;
11372
+ p_sales_order_id: string;
11373
+ p_status: string;
11374
+ };
11375
+ Returns: undefined;
11376
+ };
11006
11377
  };
11007
11378
  Enums: {
11008
11379
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";