@flowselections/floriday-klanten-module 1.0.13 → 1.0.14

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 (39) hide show
  1. package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
  2. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/ImportKlanten.js +406 -0
  4. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/KlantenOverzicht.js +2 -2
  6. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  7. package/dist-lib/components/klanten/NieuweKlant.js +10 -1
  8. package/dist-lib/index.d.ts +1 -0
  9. package/dist-lib/index.d.ts.map +1 -1
  10. package/dist-lib/index.js +1 -0
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +372 -1
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +372 -1
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.d.ts +372 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/types.d.ts +376 -1
  18. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  19. package/dist-lib/lib/accounting.functions.d.ts +1116 -3
  20. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/customer-analytics.functions.d.ts +372 -1
  22. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/customer-schemas.d.ts +147 -0
  24. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  25. package/dist-lib/lib/customer-schemas.js +64 -7
  26. package/dist-lib/lib/customers.functions.d.ts +14160 -8
  27. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.js +76 -17
  29. package/dist-lib/lib/delivery-locations.functions.d.ts +1488 -4
  30. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/external-customers.functions.d.ts +1488 -4
  32. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-discounts.functions.d.ts +744 -2
  34. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/local-discounts.functions.d.ts +2604 -7
  36. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/overdue-invoices.functions.d.ts +372 -1
  38. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  39. package/package.json +9 -2
@@ -29,6 +29,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
29
29
  Tables: {
30
30
  afhandeling_settings: {
31
31
  Row: {
32
+ auto_print_delivery_note: boolean;
33
+ auto_process_paused: boolean;
32
34
  created_at: string;
33
35
  extra_pick_days_with_stickers: number;
34
36
  id: string;
@@ -44,6 +46,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
44
46
  user_id: string;
45
47
  };
46
48
  Insert: {
49
+ auto_print_delivery_note?: boolean;
50
+ auto_process_paused?: boolean;
47
51
  created_at?: string;
48
52
  extra_pick_days_with_stickers?: number;
49
53
  id?: string;
@@ -59,6 +63,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
59
63
  user_id: string;
60
64
  };
61
65
  Update: {
66
+ auto_print_delivery_note?: boolean;
67
+ auto_process_paused?: boolean;
62
68
  created_at?: string;
63
69
  extra_pick_days_with_stickers?: number;
64
70
  id?: string;
@@ -291,6 +297,9 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
291
297
  created_at: string;
292
298
  extra_id: string;
293
299
  id: string;
300
+ original_unit_price: number | null;
301
+ override_reason: string | null;
302
+ override_unit_price: number | null;
294
303
  quantity: number;
295
304
  total_price: number;
296
305
  unit_price: number;
@@ -300,6 +309,9 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
300
309
  created_at?: string;
301
310
  extra_id: string;
302
311
  id?: string;
312
+ original_unit_price?: number | null;
313
+ override_reason?: string | null;
314
+ override_unit_price?: number | null;
303
315
  quantity?: number;
304
316
  total_price?: number;
305
317
  unit_price?: number;
@@ -309,6 +321,9 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
309
321
  created_at?: string;
310
322
  extra_id?: string;
311
323
  id?: string;
324
+ original_unit_price?: number | null;
325
+ override_reason?: string | null;
326
+ override_unit_price?: number | null;
312
327
  quantity?: number;
313
328
  total_price?: number;
314
329
  unit_price?: number;
@@ -329,11 +344,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
329
344
  };
330
345
  bookings: {
331
346
  Row: {
347
+ archive_reason: string | null;
348
+ archived_at: string | null;
349
+ archived_by: string | null;
332
350
  company_name: string | null;
333
351
  conflict_checked_at: string | null;
334
352
  conflict_reason: string | null;
335
353
  created_at: string;
336
354
  created_by_role: string | null;
355
+ customer_address: string | null;
337
356
  customer_email: string | null;
338
357
  customer_name: string | null;
339
358
  end_time: string;
@@ -345,7 +364,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
345
364
  invoiced_at: string | null;
346
365
  notes: string | null;
347
366
  number_of_people: number;
367
+ overridden_at: string | null;
368
+ overridden_by: string | null;
369
+ override_reason: string | null;
370
+ price_override: boolean;
348
371
  room_id: string;
372
+ room_price_override: number | null;
349
373
  start_time: string;
350
374
  status: string;
351
375
  total_excl_vat: number | null;
@@ -354,11 +378,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
354
378
  vat_amount: number | null;
355
379
  };
356
380
  Insert: {
381
+ archive_reason?: string | null;
382
+ archived_at?: string | null;
383
+ archived_by?: string | null;
357
384
  company_name?: string | null;
358
385
  conflict_checked_at?: string | null;
359
386
  conflict_reason?: string | null;
360
387
  created_at?: string;
361
388
  created_by_role?: string | null;
389
+ customer_address?: string | null;
362
390
  customer_email?: string | null;
363
391
  customer_name?: string | null;
364
392
  end_time: string;
@@ -370,7 +398,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
370
398
  invoiced_at?: string | null;
371
399
  notes?: string | null;
372
400
  number_of_people?: number;
401
+ overridden_at?: string | null;
402
+ overridden_by?: string | null;
403
+ override_reason?: string | null;
404
+ price_override?: boolean;
373
405
  room_id: string;
406
+ room_price_override?: number | null;
374
407
  start_time: string;
375
408
  status?: string;
376
409
  total_excl_vat?: number | null;
@@ -379,11 +412,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
379
412
  vat_amount?: number | null;
380
413
  };
381
414
  Update: {
415
+ archive_reason?: string | null;
416
+ archived_at?: string | null;
417
+ archived_by?: string | null;
382
418
  company_name?: string | null;
383
419
  conflict_checked_at?: string | null;
384
420
  conflict_reason?: string | null;
385
421
  created_at?: string;
386
422
  created_by_role?: string | null;
423
+ customer_address?: string | null;
387
424
  customer_email?: string | null;
388
425
  customer_name?: string | null;
389
426
  end_time?: string;
@@ -395,7 +432,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
395
432
  invoiced_at?: string | null;
396
433
  notes?: string | null;
397
434
  number_of_people?: number;
435
+ overridden_at?: string | null;
436
+ overridden_by?: string | null;
437
+ override_reason?: string | null;
438
+ price_override?: boolean;
398
439
  room_id?: string;
440
+ room_price_override?: number | null;
399
441
  start_time?: string;
400
442
  status?: string;
401
443
  total_excl_vat?: number | null;
@@ -1224,8 +1266,27 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1224
1266
  customers: {
1225
1267
  Row: {
1226
1268
  address: string | null;
1269
+ address_line1: string | null;
1270
+ address_line2: string | null;
1271
+ address_type: string | null;
1272
+ attention_to: string | null;
1273
+ bank_account_holder: string | null;
1274
+ bank_account_number: string | null;
1275
+ bank_address_line1: string | null;
1276
+ bank_address_line2: string | null;
1277
+ bank_bic: string | null;
1278
+ bank_city: string | null;
1279
+ bank_country: string | null;
1280
+ bank_house_number: string | null;
1281
+ bank_iban: string | null;
1282
+ bank_name: string | null;
1283
+ bank_national_code: string | null;
1284
+ bank_postal_code: string | null;
1285
+ bank_state: string | null;
1286
+ billing_email: string | null;
1227
1287
  bio: string | null;
1228
1288
  city: string | null;
1289
+ coc_number: string | null;
1229
1290
  commercial_name: string | null;
1230
1291
  company_name: string;
1231
1292
  connection_status: string;
@@ -1234,21 +1295,28 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1234
1295
  created_at: string;
1235
1296
  custom_fields: import("../integrations/supabase/types").Json;
1236
1297
  customer_class: string | null;
1298
+ customer_number: string | null;
1299
+ discount_days: number | null;
1300
+ discount_percentage: number | null;
1237
1301
  email: string | null;
1238
1302
  external_id: string | null;
1303
+ fax: string | null;
1239
1304
  floriday_connection_id: string | null;
1240
1305
  floriday_organization_id: string | null;
1241
1306
  floriday_raw: import("../integrations/supabase/types").Json | null;
1242
1307
  gln: string | null;
1243
1308
  house_number: string | null;
1309
+ icp_country_code: string | null;
1244
1310
  id: string;
1245
1311
  is_active: boolean;
1312
+ language: string | null;
1246
1313
  last_synced_at: string | null;
1247
1314
  logo_url: string | null;
1248
1315
  markets: string[];
1249
1316
  notes: string | null;
1250
1317
  organization_type: string | null;
1251
1318
  payment_methods: string[];
1319
+ payment_term_days: number | null;
1252
1320
  phone: string | null;
1253
1321
  postal_code: string | null;
1254
1322
  product_groups: string[];
@@ -1259,13 +1327,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1259
1327
  sync_status: string;
1260
1328
  trade_forms: string[];
1261
1329
  updated_at: string;
1330
+ vat_display: string | null;
1262
1331
  vat_number: string | null;
1263
1332
  website: string | null;
1264
1333
  };
1265
1334
  Insert: {
1266
1335
  address?: string | null;
1336
+ address_line1?: string | null;
1337
+ address_line2?: string | null;
1338
+ address_type?: string | null;
1339
+ attention_to?: string | null;
1340
+ bank_account_holder?: string | null;
1341
+ bank_account_number?: string | null;
1342
+ bank_address_line1?: string | null;
1343
+ bank_address_line2?: string | null;
1344
+ bank_bic?: string | null;
1345
+ bank_city?: string | null;
1346
+ bank_country?: string | null;
1347
+ bank_house_number?: string | null;
1348
+ bank_iban?: string | null;
1349
+ bank_name?: string | null;
1350
+ bank_national_code?: string | null;
1351
+ bank_postal_code?: string | null;
1352
+ bank_state?: string | null;
1353
+ billing_email?: string | null;
1267
1354
  bio?: string | null;
1268
1355
  city?: string | null;
1356
+ coc_number?: string | null;
1269
1357
  commercial_name?: string | null;
1270
1358
  company_name: string;
1271
1359
  connection_status?: string;
@@ -1274,21 +1362,28 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1274
1362
  created_at?: string;
1275
1363
  custom_fields?: import("../integrations/supabase/types").Json;
1276
1364
  customer_class?: string | null;
1365
+ customer_number?: string | null;
1366
+ discount_days?: number | null;
1367
+ discount_percentage?: number | null;
1277
1368
  email?: string | null;
1278
1369
  external_id?: string | null;
1370
+ fax?: string | null;
1279
1371
  floriday_connection_id?: string | null;
1280
1372
  floriday_organization_id?: string | null;
1281
1373
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1282
1374
  gln?: string | null;
1283
1375
  house_number?: string | null;
1376
+ icp_country_code?: string | null;
1284
1377
  id?: string;
1285
1378
  is_active?: boolean;
1379
+ language?: string | null;
1286
1380
  last_synced_at?: string | null;
1287
1381
  logo_url?: string | null;
1288
1382
  markets?: string[];
1289
1383
  notes?: string | null;
1290
1384
  organization_type?: string | null;
1291
1385
  payment_methods?: string[];
1386
+ payment_term_days?: number | null;
1292
1387
  phone?: string | null;
1293
1388
  postal_code?: string | null;
1294
1389
  product_groups?: string[];
@@ -1299,13 +1394,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1299
1394
  sync_status?: string;
1300
1395
  trade_forms?: string[];
1301
1396
  updated_at?: string;
1397
+ vat_display?: string | null;
1302
1398
  vat_number?: string | null;
1303
1399
  website?: string | null;
1304
1400
  };
1305
1401
  Update: {
1306
1402
  address?: string | null;
1403
+ address_line1?: string | null;
1404
+ address_line2?: string | null;
1405
+ address_type?: string | null;
1406
+ attention_to?: string | null;
1407
+ bank_account_holder?: string | null;
1408
+ bank_account_number?: string | null;
1409
+ bank_address_line1?: string | null;
1410
+ bank_address_line2?: string | null;
1411
+ bank_bic?: string | null;
1412
+ bank_city?: string | null;
1413
+ bank_country?: string | null;
1414
+ bank_house_number?: string | null;
1415
+ bank_iban?: string | null;
1416
+ bank_name?: string | null;
1417
+ bank_national_code?: string | null;
1418
+ bank_postal_code?: string | null;
1419
+ bank_state?: string | null;
1420
+ billing_email?: string | null;
1307
1421
  bio?: string | null;
1308
1422
  city?: string | null;
1423
+ coc_number?: string | null;
1309
1424
  commercial_name?: string | null;
1310
1425
  company_name?: string;
1311
1426
  connection_status?: string;
@@ -1314,21 +1429,28 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1314
1429
  created_at?: string;
1315
1430
  custom_fields?: import("../integrations/supabase/types").Json;
1316
1431
  customer_class?: string | null;
1432
+ customer_number?: string | null;
1433
+ discount_days?: number | null;
1434
+ discount_percentage?: number | null;
1317
1435
  email?: string | null;
1318
1436
  external_id?: string | null;
1437
+ fax?: string | null;
1319
1438
  floriday_connection_id?: string | null;
1320
1439
  floriday_organization_id?: string | null;
1321
1440
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1322
1441
  gln?: string | null;
1323
1442
  house_number?: string | null;
1443
+ icp_country_code?: string | null;
1324
1444
  id?: string;
1325
1445
  is_active?: boolean;
1446
+ language?: string | null;
1326
1447
  last_synced_at?: string | null;
1327
1448
  logo_url?: string | null;
1328
1449
  markets?: string[];
1329
1450
  notes?: string | null;
1330
1451
  organization_type?: string | null;
1331
1452
  payment_methods?: string[];
1453
+ payment_term_days?: number | null;
1332
1454
  phone?: string | null;
1333
1455
  postal_code?: string | null;
1334
1456
  product_groups?: string[];
@@ -1339,6 +1461,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
1339
1461
  sync_status?: string;
1340
1462
  trade_forms?: string[];
1341
1463
  updated_at?: string;
1464
+ vat_display?: string | null;
1342
1465
  vat_number?: string | null;
1343
1466
  website?: string | null;
1344
1467
  };
@@ -3285,6 +3408,54 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
3285
3408
  referencedColumns: ["id"];
3286
3409
  }];
3287
3410
  };
3411
+ floriday_auto_fulfillment_log: {
3412
+ Row: {
3413
+ attempts: number;
3414
+ connection_id: string;
3415
+ created_at: string;
3416
+ error: string | null;
3417
+ fulfillment_order_id: string | null;
3418
+ id: string;
3419
+ last_attempt_at: string | null;
3420
+ reason: string | null;
3421
+ sales_order_id: string;
3422
+ status: string;
3423
+ updated_at: string;
3424
+ };
3425
+ Insert: {
3426
+ attempts?: number;
3427
+ connection_id: string;
3428
+ created_at?: string;
3429
+ error?: string | null;
3430
+ fulfillment_order_id?: string | null;
3431
+ id?: string;
3432
+ last_attempt_at?: string | null;
3433
+ reason?: string | null;
3434
+ sales_order_id: string;
3435
+ status?: string;
3436
+ updated_at?: string;
3437
+ };
3438
+ Update: {
3439
+ attempts?: number;
3440
+ connection_id?: string;
3441
+ created_at?: string;
3442
+ error?: string | null;
3443
+ fulfillment_order_id?: string | null;
3444
+ id?: string;
3445
+ last_attempt_at?: string | null;
3446
+ reason?: string | null;
3447
+ sales_order_id?: string;
3448
+ status?: string;
3449
+ updated_at?: string;
3450
+ };
3451
+ Relationships: [{
3452
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3453
+ columns: ["connection_id"];
3454
+ isOneToOne: false;
3455
+ referencedRelation: "floriday_connections";
3456
+ referencedColumns: ["id"];
3457
+ }];
3458
+ };
3288
3459
  floriday_base_items_cache: {
3289
3460
  Row: {
3290
3461
  connection_id: string;
@@ -4389,6 +4560,24 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
4389
4560
  referencedColumns: ["id"];
4390
4561
  }];
4391
4562
  };
4563
+ floriday_rate_limit_state: {
4564
+ Row: {
4565
+ bucket: string;
4566
+ last_refill_at: string;
4567
+ tokens: number;
4568
+ };
4569
+ Insert: {
4570
+ bucket: string;
4571
+ last_refill_at?: string;
4572
+ tokens: number;
4573
+ };
4574
+ Update: {
4575
+ bucket?: string;
4576
+ last_refill_at?: string;
4577
+ tokens?: number;
4578
+ };
4579
+ Relationships: [];
4580
+ };
4392
4581
  floriday_resource_schemas: {
4393
4582
  Row: {
4394
4583
  enums: import("../integrations/supabase/types").Json;
@@ -6823,6 +7012,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
6823
7012
  order_date: string;
6824
7013
  order_number: string;
6825
7014
  order_source: string;
7015
+ plan_locked_at: string | null;
7016
+ plan_locked_ref: string | null;
6826
7017
  status: string;
6827
7018
  total: string;
6828
7019
  updated_at: string;
@@ -6839,6 +7030,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
6839
7030
  order_date?: string;
6840
7031
  order_number: string;
6841
7032
  order_source?: string;
7033
+ plan_locked_at?: string | null;
7034
+ plan_locked_ref?: string | null;
6842
7035
  status?: string;
6843
7036
  total?: string;
6844
7037
  updated_at?: string;
@@ -6855,6 +7048,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
6855
7048
  order_date?: string;
6856
7049
  order_number?: string;
6857
7050
  order_source?: string;
7051
+ plan_locked_at?: string | null;
7052
+ plan_locked_ref?: string | null;
6858
7053
  status?: string;
6859
7054
  total?: string;
6860
7055
  updated_at?: string;
@@ -7223,6 +7418,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
7223
7418
  };
7224
7419
  profiles: {
7225
7420
  Row: {
7421
+ address: string | null;
7226
7422
  created_at: string;
7227
7423
  display_name: string | null;
7228
7424
  email: string | null;
@@ -7233,6 +7429,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
7233
7429
  updated_at: string;
7234
7430
  };
7235
7431
  Insert: {
7432
+ address?: string | null;
7236
7433
  created_at?: string;
7237
7434
  display_name?: string | null;
7238
7435
  email?: string | null;
@@ -7243,6 +7440,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
7243
7440
  updated_at?: string;
7244
7441
  };
7245
7442
  Update: {
7443
+ address?: string | null;
7246
7444
  created_at?: string;
7247
7445
  display_name?: string | null;
7248
7446
  email?: string | null;
@@ -8490,6 +8688,114 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8490
8688
  };
8491
8689
  Relationships: [];
8492
8690
  };
8691
+ trade_item_supply_lines: {
8692
+ Row: {
8693
+ available_quantity: number | null;
8694
+ connection_id: string;
8695
+ created_at: string;
8696
+ currency: string | null;
8697
+ endpoint_family: string | null;
8698
+ environment: string | null;
8699
+ id: string;
8700
+ last_error: string | null;
8701
+ last_status: number | null;
8702
+ packing_configuration_id: string | null;
8703
+ period_end: string | null;
8704
+ period_start: string | null;
8705
+ price_per_piece: number | null;
8706
+ sales_unit: string | null;
8707
+ supply_line_id: string | null;
8708
+ supply_type: string;
8709
+ trade_item_id: string;
8710
+ updated_at: string;
8711
+ user_id: string;
8712
+ week: number | null;
8713
+ year: number | null;
8714
+ };
8715
+ Insert: {
8716
+ available_quantity?: number | null;
8717
+ connection_id: string;
8718
+ created_at?: string;
8719
+ currency?: string | null;
8720
+ endpoint_family?: string | null;
8721
+ environment?: string | null;
8722
+ id?: string;
8723
+ last_error?: string | null;
8724
+ last_status?: number | null;
8725
+ packing_configuration_id?: string | null;
8726
+ period_end?: string | null;
8727
+ period_start?: string | null;
8728
+ price_per_piece?: number | null;
8729
+ sales_unit?: string | null;
8730
+ supply_line_id?: string | null;
8731
+ supply_type?: string;
8732
+ trade_item_id: string;
8733
+ updated_at?: string;
8734
+ user_id: string;
8735
+ week?: number | null;
8736
+ year?: number | null;
8737
+ };
8738
+ Update: {
8739
+ available_quantity?: number | null;
8740
+ connection_id?: string;
8741
+ created_at?: string;
8742
+ currency?: string | null;
8743
+ endpoint_family?: string | null;
8744
+ environment?: string | null;
8745
+ id?: string;
8746
+ last_error?: string | null;
8747
+ last_status?: number | null;
8748
+ packing_configuration_id?: string | null;
8749
+ period_end?: string | null;
8750
+ period_start?: string | null;
8751
+ price_per_piece?: number | null;
8752
+ sales_unit?: string | null;
8753
+ supply_line_id?: string | null;
8754
+ supply_type?: string;
8755
+ trade_item_id?: string;
8756
+ updated_at?: string;
8757
+ user_id?: string;
8758
+ week?: number | null;
8759
+ year?: number | null;
8760
+ };
8761
+ Relationships: [];
8762
+ };
8763
+ trade_item_warehouse_preferences: {
8764
+ Row: {
8765
+ connection_id: string;
8766
+ created_at: string;
8767
+ id: string;
8768
+ trade_item_id: string;
8769
+ updated_at: string;
8770
+ warehouse_id: string;
8771
+ warehouse_name: string | null;
8772
+ };
8773
+ Insert: {
8774
+ connection_id: string;
8775
+ created_at?: string;
8776
+ id?: string;
8777
+ trade_item_id: string;
8778
+ updated_at?: string;
8779
+ warehouse_id: string;
8780
+ warehouse_name?: string | null;
8781
+ };
8782
+ Update: {
8783
+ connection_id?: string;
8784
+ created_at?: string;
8785
+ id?: string;
8786
+ trade_item_id?: string;
8787
+ updated_at?: string;
8788
+ warehouse_id?: string;
8789
+ warehouse_name?: string | null;
8790
+ };
8791
+ Relationships: [{
8792
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8793
+ columns: ["connection_id"];
8794
+ isOneToOne: false;
8795
+ referencedRelation: "floriday_connections";
8796
+ referencedColumns: ["id"];
8797
+ }];
8798
+ };
8493
8799
  twinfield_connections: {
8494
8800
  Row: {
8495
8801
  access_token: string | null;
@@ -10175,7 +10481,19 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10175
10481
  };
10176
10482
  cleanup_old_bookings: {
10177
10483
  Args: never;
10178
- Returns: number;
10484
+ Returns: undefined;
10485
+ };
10486
+ consume_floriday_rate_limit: {
10487
+ Args: {
10488
+ p_bucket: string;
10489
+ p_capacity: number;
10490
+ p_cost?: number;
10491
+ p_refill_per_sec: number;
10492
+ };
10493
+ Returns: {
10494
+ granted: boolean;
10495
+ wait_ms: number;
10496
+ }[];
10179
10497
  };
10180
10498
  control_get_todays_carts: {
10181
10499
  Args: never;
@@ -10257,6 +10575,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10257
10575
  status: string;
10258
10576
  }[];
10259
10577
  };
10578
+ enqueue_cart_replan_if_unlocked: {
10579
+ Args: {
10580
+ p_order_id: string;
10581
+ };
10582
+ Returns: undefined;
10583
+ };
10260
10584
  ensure_trade_item_stock_row: {
10261
10585
  Args: {
10262
10586
  p_key: string;
@@ -10650,6 +10974,24 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10650
10974
  };
10651
10975
  Returns: undefined;
10652
10976
  };
10977
+ recompute_order_status: {
10978
+ Args: {
10979
+ p_order_id: string;
10980
+ };
10981
+ Returns: undefined;
10982
+ };
10983
+ recompute_reserved_for_order: {
10984
+ Args: {
10985
+ p_order_id: string;
10986
+ };
10987
+ Returns: undefined;
10988
+ };
10989
+ recompute_reserved_stock: {
10990
+ Args: {
10991
+ p_trade_item_key: string;
10992
+ };
10993
+ Returns: undefined;
10994
+ };
10653
10995
  refresh_external_customers_grouped: {
10654
10996
  Args: never;
10655
10997
  Returns: undefined;
@@ -10964,6 +11306,24 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10964
11306
  };
10965
11307
  Returns: string[];
10966
11308
  };
11309
+ sync_cached_packing_from_product: {
11310
+ Args: {
11311
+ p_product_id: string;
11312
+ };
11313
+ Returns: undefined;
11314
+ };
11315
+ sync_order_cart_item_packing_from_product: {
11316
+ Args: {
11317
+ p_product_id: string;
11318
+ };
11319
+ Returns: undefined;
11320
+ };
11321
+ sync_product_packing_from_floriday_cache: {
11322
+ Args: {
11323
+ p_floriday_id: string;
11324
+ };
11325
+ Returns: undefined;
11326
+ };
10967
11327
  twinfield_decrypt: {
10968
11328
  Args: {
10969
11329
  cipher: string;
@@ -10976,6 +11336,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10976
11336
  };
10977
11337
  Returns: string;
10978
11338
  };
11339
+ upsert_auto_fulfillment_log: {
11340
+ Args: {
11341
+ p_connection_id: string;
11342
+ p_error?: string;
11343
+ p_fulfillment_order_id?: string;
11344
+ p_reason?: string;
11345
+ p_sales_order_id: string;
11346
+ p_status: string;
11347
+ };
11348
+ Returns: undefined;
11349
+ };
10979
11350
  };
10980
11351
  Enums: {
10981
11352
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -10997,6 +11368,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
10997
11368
  Tables: {
10998
11369
  afhandeling_settings: {
10999
11370
  Row: {
11371
+ auto_print_delivery_note: boolean;
11372
+ auto_process_paused: boolean;
11000
11373
  created_at: string;
11001
11374
  extra_pick_days_with_stickers: number;
11002
11375
  id: string;
@@ -11012,6 +11385,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11012
11385
  user_id: string;
11013
11386
  };
11014
11387
  Insert: {
11388
+ auto_print_delivery_note?: boolean;
11389
+ auto_process_paused?: boolean;
11015
11390
  created_at?: string;
11016
11391
  extra_pick_days_with_stickers?: number;
11017
11392
  id?: string;
@@ -11027,6 +11402,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11027
11402
  user_id: string;
11028
11403
  };
11029
11404
  Update: {
11405
+ auto_print_delivery_note?: boolean;
11406
+ auto_process_paused?: boolean;
11030
11407
  created_at?: string;
11031
11408
  extra_pick_days_with_stickers?: number;
11032
11409
  id?: string;
@@ -11259,6 +11636,9 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11259
11636
  created_at: string;
11260
11637
  extra_id: string;
11261
11638
  id: string;
11639
+ original_unit_price: number | null;
11640
+ override_reason: string | null;
11641
+ override_unit_price: number | null;
11262
11642
  quantity: number;
11263
11643
  total_price: number;
11264
11644
  unit_price: number;
@@ -11268,6 +11648,9 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11268
11648
  created_at?: string;
11269
11649
  extra_id: string;
11270
11650
  id?: string;
11651
+ original_unit_price?: number | null;
11652
+ override_reason?: string | null;
11653
+ override_unit_price?: number | null;
11271
11654
  quantity?: number;
11272
11655
  total_price?: number;
11273
11656
  unit_price?: number;
@@ -11277,6 +11660,9 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11277
11660
  created_at?: string;
11278
11661
  extra_id?: string;
11279
11662
  id?: string;
11663
+ original_unit_price?: number | null;
11664
+ override_reason?: string | null;
11665
+ override_unit_price?: number | null;
11280
11666
  quantity?: number;
11281
11667
  total_price?: number;
11282
11668
  unit_price?: number;
@@ -11297,11 +11683,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11297
11683
  };
11298
11684
  bookings: {
11299
11685
  Row: {
11686
+ archive_reason: string | null;
11687
+ archived_at: string | null;
11688
+ archived_by: string | null;
11300
11689
  company_name: string | null;
11301
11690
  conflict_checked_at: string | null;
11302
11691
  conflict_reason: string | null;
11303
11692
  created_at: string;
11304
11693
  created_by_role: string | null;
11694
+ customer_address: string | null;
11305
11695
  customer_email: string | null;
11306
11696
  customer_name: string | null;
11307
11697
  end_time: string;
@@ -11313,7 +11703,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11313
11703
  invoiced_at: string | null;
11314
11704
  notes: string | null;
11315
11705
  number_of_people: number;
11706
+ overridden_at: string | null;
11707
+ overridden_by: string | null;
11708
+ override_reason: string | null;
11709
+ price_override: boolean;
11316
11710
  room_id: string;
11711
+ room_price_override: number | null;
11317
11712
  start_time: string;
11318
11713
  status: string;
11319
11714
  total_excl_vat: number | null;
@@ -11322,11 +11717,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11322
11717
  vat_amount: number | null;
11323
11718
  };
11324
11719
  Insert: {
11720
+ archive_reason?: string | null;
11721
+ archived_at?: string | null;
11722
+ archived_by?: string | null;
11325
11723
  company_name?: string | null;
11326
11724
  conflict_checked_at?: string | null;
11327
11725
  conflict_reason?: string | null;
11328
11726
  created_at?: string;
11329
11727
  created_by_role?: string | null;
11728
+ customer_address?: string | null;
11330
11729
  customer_email?: string | null;
11331
11730
  customer_name?: string | null;
11332
11731
  end_time: string;
@@ -11338,7 +11737,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11338
11737
  invoiced_at?: string | null;
11339
11738
  notes?: string | null;
11340
11739
  number_of_people?: number;
11740
+ overridden_at?: string | null;
11741
+ overridden_by?: string | null;
11742
+ override_reason?: string | null;
11743
+ price_override?: boolean;
11341
11744
  room_id: string;
11745
+ room_price_override?: number | null;
11342
11746
  start_time: string;
11343
11747
  status?: string;
11344
11748
  total_excl_vat?: number | null;
@@ -11347,11 +11751,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11347
11751
  vat_amount?: number | null;
11348
11752
  };
11349
11753
  Update: {
11754
+ archive_reason?: string | null;
11755
+ archived_at?: string | null;
11756
+ archived_by?: string | null;
11350
11757
  company_name?: string | null;
11351
11758
  conflict_checked_at?: string | null;
11352
11759
  conflict_reason?: string | null;
11353
11760
  created_at?: string;
11354
11761
  created_by_role?: string | null;
11762
+ customer_address?: string | null;
11355
11763
  customer_email?: string | null;
11356
11764
  customer_name?: string | null;
11357
11765
  end_time?: string;
@@ -11363,7 +11771,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
11363
11771
  invoiced_at?: string | null;
11364
11772
  notes?: string | null;
11365
11773
  number_of_people?: number;
11774
+ overridden_at?: string | null;
11775
+ overridden_by?: string | null;
11776
+ override_reason?: string | null;
11777
+ price_override?: boolean;
11366
11778
  room_id?: string;
11779
+ room_price_override?: number | null;
11367
11780
  start_time?: string;
11368
11781
  status?: string;
11369
11782
  total_excl_vat?: number | null;
@@ -12192,8 +12605,27 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12192
12605
  customers: {
12193
12606
  Row: {
12194
12607
  address: string | null;
12608
+ address_line1: string | null;
12609
+ address_line2: string | null;
12610
+ address_type: string | null;
12611
+ attention_to: string | null;
12612
+ bank_account_holder: string | null;
12613
+ bank_account_number: string | null;
12614
+ bank_address_line1: string | null;
12615
+ bank_address_line2: string | null;
12616
+ bank_bic: string | null;
12617
+ bank_city: string | null;
12618
+ bank_country: string | null;
12619
+ bank_house_number: string | null;
12620
+ bank_iban: string | null;
12621
+ bank_name: string | null;
12622
+ bank_national_code: string | null;
12623
+ bank_postal_code: string | null;
12624
+ bank_state: string | null;
12625
+ billing_email: string | null;
12195
12626
  bio: string | null;
12196
12627
  city: string | null;
12628
+ coc_number: string | null;
12197
12629
  commercial_name: string | null;
12198
12630
  company_name: string;
12199
12631
  connection_status: string;
@@ -12202,21 +12634,28 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12202
12634
  created_at: string;
12203
12635
  custom_fields: import("../integrations/supabase/types").Json;
12204
12636
  customer_class: string | null;
12637
+ customer_number: string | null;
12638
+ discount_days: number | null;
12639
+ discount_percentage: number | null;
12205
12640
  email: string | null;
12206
12641
  external_id: string | null;
12642
+ fax: string | null;
12207
12643
  floriday_connection_id: string | null;
12208
12644
  floriday_organization_id: string | null;
12209
12645
  floriday_raw: import("../integrations/supabase/types").Json | null;
12210
12646
  gln: string | null;
12211
12647
  house_number: string | null;
12648
+ icp_country_code: string | null;
12212
12649
  id: string;
12213
12650
  is_active: boolean;
12651
+ language: string | null;
12214
12652
  last_synced_at: string | null;
12215
12653
  logo_url: string | null;
12216
12654
  markets: string[];
12217
12655
  notes: string | null;
12218
12656
  organization_type: string | null;
12219
12657
  payment_methods: string[];
12658
+ payment_term_days: number | null;
12220
12659
  phone: string | null;
12221
12660
  postal_code: string | null;
12222
12661
  product_groups: string[];
@@ -12227,13 +12666,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12227
12666
  sync_status: string;
12228
12667
  trade_forms: string[];
12229
12668
  updated_at: string;
12669
+ vat_display: string | null;
12230
12670
  vat_number: string | null;
12231
12671
  website: string | null;
12232
12672
  };
12233
12673
  Insert: {
12234
12674
  address?: string | null;
12675
+ address_line1?: string | null;
12676
+ address_line2?: string | null;
12677
+ address_type?: string | null;
12678
+ attention_to?: string | null;
12679
+ bank_account_holder?: string | null;
12680
+ bank_account_number?: string | null;
12681
+ bank_address_line1?: string | null;
12682
+ bank_address_line2?: string | null;
12683
+ bank_bic?: string | null;
12684
+ bank_city?: string | null;
12685
+ bank_country?: string | null;
12686
+ bank_house_number?: string | null;
12687
+ bank_iban?: string | null;
12688
+ bank_name?: string | null;
12689
+ bank_national_code?: string | null;
12690
+ bank_postal_code?: string | null;
12691
+ bank_state?: string | null;
12692
+ billing_email?: string | null;
12235
12693
  bio?: string | null;
12236
12694
  city?: string | null;
12695
+ coc_number?: string | null;
12237
12696
  commercial_name?: string | null;
12238
12697
  company_name: string;
12239
12698
  connection_status?: string;
@@ -12242,21 +12701,28 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12242
12701
  created_at?: string;
12243
12702
  custom_fields?: import("../integrations/supabase/types").Json;
12244
12703
  customer_class?: string | null;
12704
+ customer_number?: string | null;
12705
+ discount_days?: number | null;
12706
+ discount_percentage?: number | null;
12245
12707
  email?: string | null;
12246
12708
  external_id?: string | null;
12709
+ fax?: string | null;
12247
12710
  floriday_connection_id?: string | null;
12248
12711
  floriday_organization_id?: string | null;
12249
12712
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12250
12713
  gln?: string | null;
12251
12714
  house_number?: string | null;
12715
+ icp_country_code?: string | null;
12252
12716
  id?: string;
12253
12717
  is_active?: boolean;
12718
+ language?: string | null;
12254
12719
  last_synced_at?: string | null;
12255
12720
  logo_url?: string | null;
12256
12721
  markets?: string[];
12257
12722
  notes?: string | null;
12258
12723
  organization_type?: string | null;
12259
12724
  payment_methods?: string[];
12725
+ payment_term_days?: number | null;
12260
12726
  phone?: string | null;
12261
12727
  postal_code?: string | null;
12262
12728
  product_groups?: string[];
@@ -12267,13 +12733,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12267
12733
  sync_status?: string;
12268
12734
  trade_forms?: string[];
12269
12735
  updated_at?: string;
12736
+ vat_display?: string | null;
12270
12737
  vat_number?: string | null;
12271
12738
  website?: string | null;
12272
12739
  };
12273
12740
  Update: {
12274
12741
  address?: string | null;
12742
+ address_line1?: string | null;
12743
+ address_line2?: string | null;
12744
+ address_type?: string | null;
12745
+ attention_to?: string | null;
12746
+ bank_account_holder?: string | null;
12747
+ bank_account_number?: string | null;
12748
+ bank_address_line1?: string | null;
12749
+ bank_address_line2?: string | null;
12750
+ bank_bic?: string | null;
12751
+ bank_city?: string | null;
12752
+ bank_country?: string | null;
12753
+ bank_house_number?: string | null;
12754
+ bank_iban?: string | null;
12755
+ bank_name?: string | null;
12756
+ bank_national_code?: string | null;
12757
+ bank_postal_code?: string | null;
12758
+ bank_state?: string | null;
12759
+ billing_email?: string | null;
12275
12760
  bio?: string | null;
12276
12761
  city?: string | null;
12762
+ coc_number?: string | null;
12277
12763
  commercial_name?: string | null;
12278
12764
  company_name?: string;
12279
12765
  connection_status?: string;
@@ -12282,21 +12768,28 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12282
12768
  created_at?: string;
12283
12769
  custom_fields?: import("../integrations/supabase/types").Json;
12284
12770
  customer_class?: string | null;
12771
+ customer_number?: string | null;
12772
+ discount_days?: number | null;
12773
+ discount_percentage?: number | null;
12285
12774
  email?: string | null;
12286
12775
  external_id?: string | null;
12776
+ fax?: string | null;
12287
12777
  floriday_connection_id?: string | null;
12288
12778
  floriday_organization_id?: string | null;
12289
12779
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12290
12780
  gln?: string | null;
12291
12781
  house_number?: string | null;
12782
+ icp_country_code?: string | null;
12292
12783
  id?: string;
12293
12784
  is_active?: boolean;
12785
+ language?: string | null;
12294
12786
  last_synced_at?: string | null;
12295
12787
  logo_url?: string | null;
12296
12788
  markets?: string[];
12297
12789
  notes?: string | null;
12298
12790
  organization_type?: string | null;
12299
12791
  payment_methods?: string[];
12792
+ payment_term_days?: number | null;
12300
12793
  phone?: string | null;
12301
12794
  postal_code?: string | null;
12302
12795
  product_groups?: string[];
@@ -12307,6 +12800,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
12307
12800
  sync_status?: string;
12308
12801
  trade_forms?: string[];
12309
12802
  updated_at?: string;
12803
+ vat_display?: string | null;
12310
12804
  vat_number?: string | null;
12311
12805
  website?: string | null;
12312
12806
  };
@@ -14253,6 +14747,54 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
14253
14747
  referencedColumns: ["id"];
14254
14748
  }];
14255
14749
  };
14750
+ floriday_auto_fulfillment_log: {
14751
+ Row: {
14752
+ attempts: number;
14753
+ connection_id: string;
14754
+ created_at: string;
14755
+ error: string | null;
14756
+ fulfillment_order_id: string | null;
14757
+ id: string;
14758
+ last_attempt_at: string | null;
14759
+ reason: string | null;
14760
+ sales_order_id: string;
14761
+ status: string;
14762
+ updated_at: string;
14763
+ };
14764
+ Insert: {
14765
+ attempts?: number;
14766
+ connection_id: string;
14767
+ created_at?: string;
14768
+ error?: string | null;
14769
+ fulfillment_order_id?: string | null;
14770
+ id?: string;
14771
+ last_attempt_at?: string | null;
14772
+ reason?: string | null;
14773
+ sales_order_id: string;
14774
+ status?: string;
14775
+ updated_at?: string;
14776
+ };
14777
+ Update: {
14778
+ attempts?: number;
14779
+ connection_id?: string;
14780
+ created_at?: string;
14781
+ error?: string | null;
14782
+ fulfillment_order_id?: string | null;
14783
+ id?: string;
14784
+ last_attempt_at?: string | null;
14785
+ reason?: string | null;
14786
+ sales_order_id?: string;
14787
+ status?: string;
14788
+ updated_at?: string;
14789
+ };
14790
+ Relationships: [{
14791
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
14792
+ columns: ["connection_id"];
14793
+ isOneToOne: false;
14794
+ referencedRelation: "floriday_connections";
14795
+ referencedColumns: ["id"];
14796
+ }];
14797
+ };
14256
14798
  floriday_base_items_cache: {
14257
14799
  Row: {
14258
14800
  connection_id: string;
@@ -15357,6 +15899,24 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
15357
15899
  referencedColumns: ["id"];
15358
15900
  }];
15359
15901
  };
15902
+ floriday_rate_limit_state: {
15903
+ Row: {
15904
+ bucket: string;
15905
+ last_refill_at: string;
15906
+ tokens: number;
15907
+ };
15908
+ Insert: {
15909
+ bucket: string;
15910
+ last_refill_at?: string;
15911
+ tokens: number;
15912
+ };
15913
+ Update: {
15914
+ bucket?: string;
15915
+ last_refill_at?: string;
15916
+ tokens?: number;
15917
+ };
15918
+ Relationships: [];
15919
+ };
15360
15920
  floriday_resource_schemas: {
15361
15921
  Row: {
15362
15922
  enums: import("../integrations/supabase/types").Json;
@@ -17791,6 +18351,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
17791
18351
  order_date: string;
17792
18352
  order_number: string;
17793
18353
  order_source: string;
18354
+ plan_locked_at: string | null;
18355
+ plan_locked_ref: string | null;
17794
18356
  status: string;
17795
18357
  total: string;
17796
18358
  updated_at: string;
@@ -17807,6 +18369,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
17807
18369
  order_date?: string;
17808
18370
  order_number: string;
17809
18371
  order_source?: string;
18372
+ plan_locked_at?: string | null;
18373
+ plan_locked_ref?: string | null;
17810
18374
  status?: string;
17811
18375
  total?: string;
17812
18376
  updated_at?: string;
@@ -17823,6 +18387,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
17823
18387
  order_date?: string;
17824
18388
  order_number?: string;
17825
18389
  order_source?: string;
18390
+ plan_locked_at?: string | null;
18391
+ plan_locked_ref?: string | null;
17826
18392
  status?: string;
17827
18393
  total?: string;
17828
18394
  updated_at?: string;
@@ -18191,6 +18757,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
18191
18757
  };
18192
18758
  profiles: {
18193
18759
  Row: {
18760
+ address: string | null;
18194
18761
  created_at: string;
18195
18762
  display_name: string | null;
18196
18763
  email: string | null;
@@ -18201,6 +18768,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
18201
18768
  updated_at: string;
18202
18769
  };
18203
18770
  Insert: {
18771
+ address?: string | null;
18204
18772
  created_at?: string;
18205
18773
  display_name?: string | null;
18206
18774
  email?: string | null;
@@ -18211,6 +18779,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
18211
18779
  updated_at?: string;
18212
18780
  };
18213
18781
  Update: {
18782
+ address?: string | null;
18214
18783
  created_at?: string;
18215
18784
  display_name?: string | null;
18216
18785
  email?: string | null;
@@ -19458,6 +20027,114 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
19458
20027
  };
19459
20028
  Relationships: [];
19460
20029
  };
20030
+ trade_item_supply_lines: {
20031
+ Row: {
20032
+ available_quantity: number | null;
20033
+ connection_id: string;
20034
+ created_at: string;
20035
+ currency: string | null;
20036
+ endpoint_family: string | null;
20037
+ environment: string | null;
20038
+ id: string;
20039
+ last_error: string | null;
20040
+ last_status: number | null;
20041
+ packing_configuration_id: string | null;
20042
+ period_end: string | null;
20043
+ period_start: string | null;
20044
+ price_per_piece: number | null;
20045
+ sales_unit: string | null;
20046
+ supply_line_id: string | null;
20047
+ supply_type: string;
20048
+ trade_item_id: string;
20049
+ updated_at: string;
20050
+ user_id: string;
20051
+ week: number | null;
20052
+ year: number | null;
20053
+ };
20054
+ Insert: {
20055
+ available_quantity?: number | null;
20056
+ connection_id: string;
20057
+ created_at?: string;
20058
+ currency?: string | null;
20059
+ endpoint_family?: string | null;
20060
+ environment?: string | null;
20061
+ id?: string;
20062
+ last_error?: string | null;
20063
+ last_status?: number | null;
20064
+ packing_configuration_id?: string | null;
20065
+ period_end?: string | null;
20066
+ period_start?: string | null;
20067
+ price_per_piece?: number | null;
20068
+ sales_unit?: string | null;
20069
+ supply_line_id?: string | null;
20070
+ supply_type?: string;
20071
+ trade_item_id: string;
20072
+ updated_at?: string;
20073
+ user_id: string;
20074
+ week?: number | null;
20075
+ year?: number | null;
20076
+ };
20077
+ Update: {
20078
+ available_quantity?: number | null;
20079
+ connection_id?: string;
20080
+ created_at?: string;
20081
+ currency?: string | null;
20082
+ endpoint_family?: string | null;
20083
+ environment?: string | null;
20084
+ id?: string;
20085
+ last_error?: string | null;
20086
+ last_status?: number | null;
20087
+ packing_configuration_id?: string | null;
20088
+ period_end?: string | null;
20089
+ period_start?: string | null;
20090
+ price_per_piece?: number | null;
20091
+ sales_unit?: string | null;
20092
+ supply_line_id?: string | null;
20093
+ supply_type?: string;
20094
+ trade_item_id?: string;
20095
+ updated_at?: string;
20096
+ user_id?: string;
20097
+ week?: number | null;
20098
+ year?: number | null;
20099
+ };
20100
+ Relationships: [];
20101
+ };
20102
+ trade_item_warehouse_preferences: {
20103
+ Row: {
20104
+ connection_id: string;
20105
+ created_at: string;
20106
+ id: string;
20107
+ trade_item_id: string;
20108
+ updated_at: string;
20109
+ warehouse_id: string;
20110
+ warehouse_name: string | null;
20111
+ };
20112
+ Insert: {
20113
+ connection_id: string;
20114
+ created_at?: string;
20115
+ id?: string;
20116
+ trade_item_id: string;
20117
+ updated_at?: string;
20118
+ warehouse_id: string;
20119
+ warehouse_name?: string | null;
20120
+ };
20121
+ Update: {
20122
+ connection_id?: string;
20123
+ created_at?: string;
20124
+ id?: string;
20125
+ trade_item_id?: string;
20126
+ updated_at?: string;
20127
+ warehouse_id?: string;
20128
+ warehouse_name?: string | null;
20129
+ };
20130
+ Relationships: [{
20131
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
20132
+ columns: ["connection_id"];
20133
+ isOneToOne: false;
20134
+ referencedRelation: "floriday_connections";
20135
+ referencedColumns: ["id"];
20136
+ }];
20137
+ };
19461
20138
  twinfield_connections: {
19462
20139
  Row: {
19463
20140
  access_token: string | null;
@@ -21143,7 +21820,19 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21143
21820
  };
21144
21821
  cleanup_old_bookings: {
21145
21822
  Args: never;
21146
- Returns: number;
21823
+ Returns: undefined;
21824
+ };
21825
+ consume_floriday_rate_limit: {
21826
+ Args: {
21827
+ p_bucket: string;
21828
+ p_capacity: number;
21829
+ p_cost?: number;
21830
+ p_refill_per_sec: number;
21831
+ };
21832
+ Returns: {
21833
+ granted: boolean;
21834
+ wait_ms: number;
21835
+ }[];
21147
21836
  };
21148
21837
  control_get_todays_carts: {
21149
21838
  Args: never;
@@ -21225,6 +21914,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21225
21914
  status: string;
21226
21915
  }[];
21227
21916
  };
21917
+ enqueue_cart_replan_if_unlocked: {
21918
+ Args: {
21919
+ p_order_id: string;
21920
+ };
21921
+ Returns: undefined;
21922
+ };
21228
21923
  ensure_trade_item_stock_row: {
21229
21924
  Args: {
21230
21925
  p_key: string;
@@ -21618,6 +22313,24 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21618
22313
  };
21619
22314
  Returns: undefined;
21620
22315
  };
22316
+ recompute_order_status: {
22317
+ Args: {
22318
+ p_order_id: string;
22319
+ };
22320
+ Returns: undefined;
22321
+ };
22322
+ recompute_reserved_for_order: {
22323
+ Args: {
22324
+ p_order_id: string;
22325
+ };
22326
+ Returns: undefined;
22327
+ };
22328
+ recompute_reserved_stock: {
22329
+ Args: {
22330
+ p_trade_item_key: string;
22331
+ };
22332
+ Returns: undefined;
22333
+ };
21621
22334
  refresh_external_customers_grouped: {
21622
22335
  Args: never;
21623
22336
  Returns: undefined;
@@ -21932,6 +22645,24 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21932
22645
  };
21933
22646
  Returns: string[];
21934
22647
  };
22648
+ sync_cached_packing_from_product: {
22649
+ Args: {
22650
+ p_product_id: string;
22651
+ };
22652
+ Returns: undefined;
22653
+ };
22654
+ sync_order_cart_item_packing_from_product: {
22655
+ Args: {
22656
+ p_product_id: string;
22657
+ };
22658
+ Returns: undefined;
22659
+ };
22660
+ sync_product_packing_from_floriday_cache: {
22661
+ Args: {
22662
+ p_floriday_id: string;
22663
+ };
22664
+ Returns: undefined;
22665
+ };
21935
22666
  twinfield_decrypt: {
21936
22667
  Args: {
21937
22668
  cipher: string;
@@ -21944,6 +22675,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21944
22675
  };
21945
22676
  Returns: string;
21946
22677
  };
22678
+ upsert_auto_fulfillment_log: {
22679
+ Args: {
22680
+ p_connection_id: string;
22681
+ p_error?: string;
22682
+ p_fulfillment_order_id?: string;
22683
+ p_reason?: string;
22684
+ p_sales_order_id: string;
22685
+ p_status: string;
22686
+ };
22687
+ Returns: undefined;
22688
+ };
21947
22689
  };
21948
22690
  Enums: {
21949
22691
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";