@flowselections/floriday-verkoop-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 (28) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +132 -1
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +132 -1
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +132 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.js +4 -4
  8. package/dist-lib/integrations/supabase/types.d.ts +132 -1
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/cart-lock.functions.d.ts +132 -1
  11. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  12. package/dist-lib/lib/cart-replan.functions.d.ts +264 -2
  13. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/create-order.functions.d.ts +1188 -9
  15. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +396 -3
  17. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +132 -1
  19. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-public.functions.d.ts +924 -7
  21. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-writes.functions.d.ts +660 -5
  23. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/salesorders.functions.d.ts +396 -3
  25. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/tradeitems.functions.d.ts +132 -1
  27. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  28. package/package.json +1 -1
@@ -276,6 +276,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
276
276
  created_at: string;
277
277
  extra_id: string;
278
278
  id: string;
279
+ original_unit_price: number | null;
280
+ override_reason: string | null;
281
+ override_unit_price: number | null;
279
282
  quantity: number;
280
283
  total_price: number;
281
284
  unit_price: number;
@@ -285,6 +288,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
285
288
  created_at?: string;
286
289
  extra_id: string;
287
290
  id?: string;
291
+ original_unit_price?: number | null;
292
+ override_reason?: string | null;
293
+ override_unit_price?: number | null;
288
294
  quantity?: number;
289
295
  total_price?: number;
290
296
  unit_price?: number;
@@ -294,6 +300,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
294
300
  created_at?: string;
295
301
  extra_id?: string;
296
302
  id?: string;
303
+ original_unit_price?: number | null;
304
+ override_reason?: string | null;
305
+ override_unit_price?: number | null;
297
306
  quantity?: number;
298
307
  total_price?: number;
299
308
  unit_price?: number;
@@ -314,11 +323,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
314
323
  };
315
324
  bookings: {
316
325
  Row: {
326
+ archive_reason: string | null;
327
+ archived_at: string | null;
328
+ archived_by: string | null;
317
329
  company_name: string | null;
318
330
  conflict_checked_at: string | null;
319
331
  conflict_reason: string | null;
320
332
  created_at: string;
321
333
  created_by_role: string | null;
334
+ customer_address: string | null;
322
335
  customer_email: string | null;
323
336
  customer_name: string | null;
324
337
  end_time: string;
@@ -330,7 +343,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
330
343
  invoiced_at: string | null;
331
344
  notes: string | null;
332
345
  number_of_people: number;
346
+ overridden_at: string | null;
347
+ overridden_by: string | null;
348
+ override_reason: string | null;
349
+ price_override: boolean;
333
350
  room_id: string;
351
+ room_price_override: number | null;
334
352
  start_time: string;
335
353
  status: string;
336
354
  total_excl_vat: number | null;
@@ -339,11 +357,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
339
357
  vat_amount: number | null;
340
358
  };
341
359
  Insert: {
360
+ archive_reason?: string | null;
361
+ archived_at?: string | null;
362
+ archived_by?: string | null;
342
363
  company_name?: string | null;
343
364
  conflict_checked_at?: string | null;
344
365
  conflict_reason?: string | null;
345
366
  created_at?: string;
346
367
  created_by_role?: string | null;
368
+ customer_address?: string | null;
347
369
  customer_email?: string | null;
348
370
  customer_name?: string | null;
349
371
  end_time: string;
@@ -355,7 +377,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
355
377
  invoiced_at?: string | null;
356
378
  notes?: string | null;
357
379
  number_of_people?: number;
380
+ overridden_at?: string | null;
381
+ overridden_by?: string | null;
382
+ override_reason?: string | null;
383
+ price_override?: boolean;
358
384
  room_id: string;
385
+ room_price_override?: number | null;
359
386
  start_time: string;
360
387
  status?: string;
361
388
  total_excl_vat?: number | null;
@@ -364,11 +391,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
364
391
  vat_amount?: number | null;
365
392
  };
366
393
  Update: {
394
+ archive_reason?: string | null;
395
+ archived_at?: string | null;
396
+ archived_by?: string | null;
367
397
  company_name?: string | null;
368
398
  conflict_checked_at?: string | null;
369
399
  conflict_reason?: string | null;
370
400
  created_at?: string;
371
401
  created_by_role?: string | null;
402
+ customer_address?: string | null;
372
403
  customer_email?: string | null;
373
404
  customer_name?: string | null;
374
405
  end_time?: string;
@@ -380,7 +411,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
380
411
  invoiced_at?: string | null;
381
412
  notes?: string | null;
382
413
  number_of_people?: number;
414
+ overridden_at?: string | null;
415
+ overridden_by?: string | null;
416
+ override_reason?: string | null;
417
+ price_override?: boolean;
383
418
  room_id?: string;
419
+ room_price_override?: number | null;
384
420
  start_time?: string;
385
421
  status?: string;
386
422
  total_excl_vat?: number | null;
@@ -1209,8 +1245,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1209
1245
  customers: {
1210
1246
  Row: {
1211
1247
  address: string | null;
1248
+ address_line1: string | null;
1249
+ address_line2: string | null;
1250
+ address_type: string | null;
1251
+ attention_to: string | null;
1252
+ bank_account_holder: string | null;
1253
+ bank_account_number: string | null;
1254
+ bank_address_line1: string | null;
1255
+ bank_address_line2: string | null;
1256
+ bank_bic: string | null;
1257
+ bank_city: string | null;
1258
+ bank_country: string | null;
1259
+ bank_house_number: string | null;
1260
+ bank_iban: string | null;
1261
+ bank_name: string | null;
1262
+ bank_national_code: string | null;
1263
+ bank_postal_code: string | null;
1264
+ bank_state: string | null;
1265
+ billing_email: string | null;
1212
1266
  bio: string | null;
1213
1267
  city: string | null;
1268
+ coc_number: string | null;
1214
1269
  commercial_name: string | null;
1215
1270
  company_name: string;
1216
1271
  connection_status: string;
@@ -1219,21 +1274,28 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1219
1274
  created_at: string;
1220
1275
  custom_fields: import("../integrations/supabase/types").Json;
1221
1276
  customer_class: string | null;
1277
+ customer_number: string | null;
1278
+ discount_days: number | null;
1279
+ discount_percentage: number | null;
1222
1280
  email: string | null;
1223
1281
  external_id: string | null;
1282
+ fax: string | null;
1224
1283
  floriday_connection_id: string | null;
1225
1284
  floriday_organization_id: string | null;
1226
1285
  floriday_raw: import("../integrations/supabase/types").Json | null;
1227
1286
  gln: string | null;
1228
1287
  house_number: string | null;
1288
+ icp_country_code: string | null;
1229
1289
  id: string;
1230
1290
  is_active: boolean;
1291
+ language: string | null;
1231
1292
  last_synced_at: string | null;
1232
1293
  logo_url: string | null;
1233
1294
  markets: string[];
1234
1295
  notes: string | null;
1235
1296
  organization_type: string | null;
1236
1297
  payment_methods: string[];
1298
+ payment_term_days: number | null;
1237
1299
  phone: string | null;
1238
1300
  postal_code: string | null;
1239
1301
  product_groups: string[];
@@ -1244,13 +1306,33 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1244
1306
  sync_status: string;
1245
1307
  trade_forms: string[];
1246
1308
  updated_at: string;
1309
+ vat_display: string | null;
1247
1310
  vat_number: string | null;
1248
1311
  website: string | null;
1249
1312
  };
1250
1313
  Insert: {
1251
1314
  address?: string | null;
1315
+ address_line1?: string | null;
1316
+ address_line2?: string | null;
1317
+ address_type?: string | null;
1318
+ attention_to?: string | null;
1319
+ bank_account_holder?: string | null;
1320
+ bank_account_number?: string | null;
1321
+ bank_address_line1?: string | null;
1322
+ bank_address_line2?: string | null;
1323
+ bank_bic?: string | null;
1324
+ bank_city?: string | null;
1325
+ bank_country?: string | null;
1326
+ bank_house_number?: string | null;
1327
+ bank_iban?: string | null;
1328
+ bank_name?: string | null;
1329
+ bank_national_code?: string | null;
1330
+ bank_postal_code?: string | null;
1331
+ bank_state?: string | null;
1332
+ billing_email?: string | null;
1252
1333
  bio?: string | null;
1253
1334
  city?: string | null;
1335
+ coc_number?: string | null;
1254
1336
  commercial_name?: string | null;
1255
1337
  company_name: string;
1256
1338
  connection_status?: string;
@@ -1259,21 +1341,28 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1259
1341
  created_at?: string;
1260
1342
  custom_fields?: import("../integrations/supabase/types").Json;
1261
1343
  customer_class?: string | null;
1344
+ customer_number?: string | null;
1345
+ discount_days?: number | null;
1346
+ discount_percentage?: number | null;
1262
1347
  email?: string | null;
1263
1348
  external_id?: string | null;
1349
+ fax?: string | null;
1264
1350
  floriday_connection_id?: string | null;
1265
1351
  floriday_organization_id?: string | null;
1266
1352
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1267
1353
  gln?: string | null;
1268
1354
  house_number?: string | null;
1355
+ icp_country_code?: string | null;
1269
1356
  id?: string;
1270
1357
  is_active?: boolean;
1358
+ language?: string | null;
1271
1359
  last_synced_at?: string | null;
1272
1360
  logo_url?: string | null;
1273
1361
  markets?: string[];
1274
1362
  notes?: string | null;
1275
1363
  organization_type?: string | null;
1276
1364
  payment_methods?: string[];
1365
+ payment_term_days?: number | null;
1277
1366
  phone?: string | null;
1278
1367
  postal_code?: string | null;
1279
1368
  product_groups?: string[];
@@ -1284,13 +1373,33 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1284
1373
  sync_status?: string;
1285
1374
  trade_forms?: string[];
1286
1375
  updated_at?: string;
1376
+ vat_display?: string | null;
1287
1377
  vat_number?: string | null;
1288
1378
  website?: string | null;
1289
1379
  };
1290
1380
  Update: {
1291
1381
  address?: string | null;
1382
+ address_line1?: string | null;
1383
+ address_line2?: string | null;
1384
+ address_type?: string | null;
1385
+ attention_to?: string | null;
1386
+ bank_account_holder?: string | null;
1387
+ bank_account_number?: string | null;
1388
+ bank_address_line1?: string | null;
1389
+ bank_address_line2?: string | null;
1390
+ bank_bic?: string | null;
1391
+ bank_city?: string | null;
1392
+ bank_country?: string | null;
1393
+ bank_house_number?: string | null;
1394
+ bank_iban?: string | null;
1395
+ bank_name?: string | null;
1396
+ bank_national_code?: string | null;
1397
+ bank_postal_code?: string | null;
1398
+ bank_state?: string | null;
1399
+ billing_email?: string | null;
1292
1400
  bio?: string | null;
1293
1401
  city?: string | null;
1402
+ coc_number?: string | null;
1294
1403
  commercial_name?: string | null;
1295
1404
  company_name?: string;
1296
1405
  connection_status?: string;
@@ -1299,21 +1408,28 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1299
1408
  created_at?: string;
1300
1409
  custom_fields?: import("../integrations/supabase/types").Json;
1301
1410
  customer_class?: string | null;
1411
+ customer_number?: string | null;
1412
+ discount_days?: number | null;
1413
+ discount_percentage?: number | null;
1302
1414
  email?: string | null;
1303
1415
  external_id?: string | null;
1416
+ fax?: string | null;
1304
1417
  floriday_connection_id?: string | null;
1305
1418
  floriday_organization_id?: string | null;
1306
1419
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1307
1420
  gln?: string | null;
1308
1421
  house_number?: string | null;
1422
+ icp_country_code?: string | null;
1309
1423
  id?: string;
1310
1424
  is_active?: boolean;
1425
+ language?: string | null;
1311
1426
  last_synced_at?: string | null;
1312
1427
  logo_url?: string | null;
1313
1428
  markets?: string[];
1314
1429
  notes?: string | null;
1315
1430
  organization_type?: string | null;
1316
1431
  payment_methods?: string[];
1432
+ payment_term_days?: number | null;
1317
1433
  phone?: string | null;
1318
1434
  postal_code?: string | null;
1319
1435
  product_groups?: string[];
@@ -1324,6 +1440,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
1324
1440
  sync_status?: string;
1325
1441
  trade_forms?: string[];
1326
1442
  updated_at?: string;
1443
+ vat_display?: string | null;
1327
1444
  vat_number?: string | null;
1328
1445
  website?: string | null;
1329
1446
  };
@@ -7280,6 +7397,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
7280
7397
  };
7281
7398
  profiles: {
7282
7399
  Row: {
7400
+ address: string | null;
7283
7401
  created_at: string;
7284
7402
  display_name: string | null;
7285
7403
  email: string | null;
@@ -7290,6 +7408,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
7290
7408
  updated_at: string;
7291
7409
  };
7292
7410
  Insert: {
7411
+ address?: string | null;
7293
7412
  created_at?: string;
7294
7413
  display_name?: string | null;
7295
7414
  email?: string | null;
@@ -7300,6 +7419,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
7300
7419
  updated_at?: string;
7301
7420
  };
7302
7421
  Update: {
7422
+ address?: string | null;
7303
7423
  created_at?: string;
7304
7424
  display_name?: string | null;
7305
7425
  email?: string | null;
@@ -10340,7 +10460,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10340
10460
  };
10341
10461
  cleanup_old_bookings: {
10342
10462
  Args: never;
10343
- Returns: number;
10463
+ Returns: undefined;
10344
10464
  };
10345
10465
  consume_floriday_rate_limit: {
10346
10466
  Args: {
@@ -11195,6 +11315,17 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11195
11315
  };
11196
11316
  Returns: string;
11197
11317
  };
11318
+ upsert_auto_fulfillment_log: {
11319
+ Args: {
11320
+ p_connection_id: string;
11321
+ p_error?: string;
11322
+ p_fulfillment_order_id?: string;
11323
+ p_reason?: string;
11324
+ p_sales_order_id: string;
11325
+ p_status: string;
11326
+ };
11327
+ Returns: undefined;
11328
+ };
11198
11329
  };
11199
11330
  Enums: {
11200
11331
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -11485,6 +11616,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11485
11616
  created_at: string;
11486
11617
  extra_id: string;
11487
11618
  id: string;
11619
+ original_unit_price: number | null;
11620
+ override_reason: string | null;
11621
+ override_unit_price: number | null;
11488
11622
  quantity: number;
11489
11623
  total_price: number;
11490
11624
  unit_price: number;
@@ -11494,6 +11628,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11494
11628
  created_at?: string;
11495
11629
  extra_id: string;
11496
11630
  id?: string;
11631
+ original_unit_price?: number | null;
11632
+ override_reason?: string | null;
11633
+ override_unit_price?: number | null;
11497
11634
  quantity?: number;
11498
11635
  total_price?: number;
11499
11636
  unit_price?: number;
@@ -11503,6 +11640,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11503
11640
  created_at?: string;
11504
11641
  extra_id?: string;
11505
11642
  id?: string;
11643
+ original_unit_price?: number | null;
11644
+ override_reason?: string | null;
11645
+ override_unit_price?: number | null;
11506
11646
  quantity?: number;
11507
11647
  total_price?: number;
11508
11648
  unit_price?: number;
@@ -11523,11 +11663,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11523
11663
  };
11524
11664
  bookings: {
11525
11665
  Row: {
11666
+ archive_reason: string | null;
11667
+ archived_at: string | null;
11668
+ archived_by: string | null;
11526
11669
  company_name: string | null;
11527
11670
  conflict_checked_at: string | null;
11528
11671
  conflict_reason: string | null;
11529
11672
  created_at: string;
11530
11673
  created_by_role: string | null;
11674
+ customer_address: string | null;
11531
11675
  customer_email: string | null;
11532
11676
  customer_name: string | null;
11533
11677
  end_time: string;
@@ -11539,7 +11683,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11539
11683
  invoiced_at: string | null;
11540
11684
  notes: string | null;
11541
11685
  number_of_people: number;
11686
+ overridden_at: string | null;
11687
+ overridden_by: string | null;
11688
+ override_reason: string | null;
11689
+ price_override: boolean;
11542
11690
  room_id: string;
11691
+ room_price_override: number | null;
11543
11692
  start_time: string;
11544
11693
  status: string;
11545
11694
  total_excl_vat: number | null;
@@ -11548,11 +11697,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11548
11697
  vat_amount: number | null;
11549
11698
  };
11550
11699
  Insert: {
11700
+ archive_reason?: string | null;
11701
+ archived_at?: string | null;
11702
+ archived_by?: string | null;
11551
11703
  company_name?: string | null;
11552
11704
  conflict_checked_at?: string | null;
11553
11705
  conflict_reason?: string | null;
11554
11706
  created_at?: string;
11555
11707
  created_by_role?: string | null;
11708
+ customer_address?: string | null;
11556
11709
  customer_email?: string | null;
11557
11710
  customer_name?: string | null;
11558
11711
  end_time: string;
@@ -11564,7 +11717,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11564
11717
  invoiced_at?: string | null;
11565
11718
  notes?: string | null;
11566
11719
  number_of_people?: number;
11720
+ overridden_at?: string | null;
11721
+ overridden_by?: string | null;
11722
+ override_reason?: string | null;
11723
+ price_override?: boolean;
11567
11724
  room_id: string;
11725
+ room_price_override?: number | null;
11568
11726
  start_time: string;
11569
11727
  status?: string;
11570
11728
  total_excl_vat?: number | null;
@@ -11573,11 +11731,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11573
11731
  vat_amount?: number | null;
11574
11732
  };
11575
11733
  Update: {
11734
+ archive_reason?: string | null;
11735
+ archived_at?: string | null;
11736
+ archived_by?: string | null;
11576
11737
  company_name?: string | null;
11577
11738
  conflict_checked_at?: string | null;
11578
11739
  conflict_reason?: string | null;
11579
11740
  created_at?: string;
11580
11741
  created_by_role?: string | null;
11742
+ customer_address?: string | null;
11581
11743
  customer_email?: string | null;
11582
11744
  customer_name?: string | null;
11583
11745
  end_time?: string;
@@ -11589,7 +11751,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11589
11751
  invoiced_at?: string | null;
11590
11752
  notes?: string | null;
11591
11753
  number_of_people?: number;
11754
+ overridden_at?: string | null;
11755
+ overridden_by?: string | null;
11756
+ override_reason?: string | null;
11757
+ price_override?: boolean;
11592
11758
  room_id?: string;
11759
+ room_price_override?: number | null;
11593
11760
  start_time?: string;
11594
11761
  status?: string;
11595
11762
  total_excl_vat?: number | null;
@@ -12418,8 +12585,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12418
12585
  customers: {
12419
12586
  Row: {
12420
12587
  address: string | null;
12588
+ address_line1: string | null;
12589
+ address_line2: string | null;
12590
+ address_type: string | null;
12591
+ attention_to: string | null;
12592
+ bank_account_holder: string | null;
12593
+ bank_account_number: string | null;
12594
+ bank_address_line1: string | null;
12595
+ bank_address_line2: string | null;
12596
+ bank_bic: string | null;
12597
+ bank_city: string | null;
12598
+ bank_country: string | null;
12599
+ bank_house_number: string | null;
12600
+ bank_iban: string | null;
12601
+ bank_name: string | null;
12602
+ bank_national_code: string | null;
12603
+ bank_postal_code: string | null;
12604
+ bank_state: string | null;
12605
+ billing_email: string | null;
12421
12606
  bio: string | null;
12422
12607
  city: string | null;
12608
+ coc_number: string | null;
12423
12609
  commercial_name: string | null;
12424
12610
  company_name: string;
12425
12611
  connection_status: string;
@@ -12428,21 +12614,28 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12428
12614
  created_at: string;
12429
12615
  custom_fields: import("../integrations/supabase/types").Json;
12430
12616
  customer_class: string | null;
12617
+ customer_number: string | null;
12618
+ discount_days: number | null;
12619
+ discount_percentage: number | null;
12431
12620
  email: string | null;
12432
12621
  external_id: string | null;
12622
+ fax: string | null;
12433
12623
  floriday_connection_id: string | null;
12434
12624
  floriday_organization_id: string | null;
12435
12625
  floriday_raw: import("../integrations/supabase/types").Json | null;
12436
12626
  gln: string | null;
12437
12627
  house_number: string | null;
12628
+ icp_country_code: string | null;
12438
12629
  id: string;
12439
12630
  is_active: boolean;
12631
+ language: string | null;
12440
12632
  last_synced_at: string | null;
12441
12633
  logo_url: string | null;
12442
12634
  markets: string[];
12443
12635
  notes: string | null;
12444
12636
  organization_type: string | null;
12445
12637
  payment_methods: string[];
12638
+ payment_term_days: number | null;
12446
12639
  phone: string | null;
12447
12640
  postal_code: string | null;
12448
12641
  product_groups: string[];
@@ -12453,13 +12646,33 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12453
12646
  sync_status: string;
12454
12647
  trade_forms: string[];
12455
12648
  updated_at: string;
12649
+ vat_display: string | null;
12456
12650
  vat_number: string | null;
12457
12651
  website: string | null;
12458
12652
  };
12459
12653
  Insert: {
12460
12654
  address?: string | null;
12655
+ address_line1?: string | null;
12656
+ address_line2?: string | null;
12657
+ address_type?: string | null;
12658
+ attention_to?: string | null;
12659
+ bank_account_holder?: string | null;
12660
+ bank_account_number?: string | null;
12661
+ bank_address_line1?: string | null;
12662
+ bank_address_line2?: string | null;
12663
+ bank_bic?: string | null;
12664
+ bank_city?: string | null;
12665
+ bank_country?: string | null;
12666
+ bank_house_number?: string | null;
12667
+ bank_iban?: string | null;
12668
+ bank_name?: string | null;
12669
+ bank_national_code?: string | null;
12670
+ bank_postal_code?: string | null;
12671
+ bank_state?: string | null;
12672
+ billing_email?: string | null;
12461
12673
  bio?: string | null;
12462
12674
  city?: string | null;
12675
+ coc_number?: string | null;
12463
12676
  commercial_name?: string | null;
12464
12677
  company_name: string;
12465
12678
  connection_status?: string;
@@ -12468,21 +12681,28 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12468
12681
  created_at?: string;
12469
12682
  custom_fields?: import("../integrations/supabase/types").Json;
12470
12683
  customer_class?: string | null;
12684
+ customer_number?: string | null;
12685
+ discount_days?: number | null;
12686
+ discount_percentage?: number | null;
12471
12687
  email?: string | null;
12472
12688
  external_id?: string | null;
12689
+ fax?: string | null;
12473
12690
  floriday_connection_id?: string | null;
12474
12691
  floriday_organization_id?: string | null;
12475
12692
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12476
12693
  gln?: string | null;
12477
12694
  house_number?: string | null;
12695
+ icp_country_code?: string | null;
12478
12696
  id?: string;
12479
12697
  is_active?: boolean;
12698
+ language?: string | null;
12480
12699
  last_synced_at?: string | null;
12481
12700
  logo_url?: string | null;
12482
12701
  markets?: string[];
12483
12702
  notes?: string | null;
12484
12703
  organization_type?: string | null;
12485
12704
  payment_methods?: string[];
12705
+ payment_term_days?: number | null;
12486
12706
  phone?: string | null;
12487
12707
  postal_code?: string | null;
12488
12708
  product_groups?: string[];
@@ -12493,13 +12713,33 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12493
12713
  sync_status?: string;
12494
12714
  trade_forms?: string[];
12495
12715
  updated_at?: string;
12716
+ vat_display?: string | null;
12496
12717
  vat_number?: string | null;
12497
12718
  website?: string | null;
12498
12719
  };
12499
12720
  Update: {
12500
12721
  address?: string | null;
12722
+ address_line1?: string | null;
12723
+ address_line2?: string | null;
12724
+ address_type?: string | null;
12725
+ attention_to?: string | null;
12726
+ bank_account_holder?: string | null;
12727
+ bank_account_number?: string | null;
12728
+ bank_address_line1?: string | null;
12729
+ bank_address_line2?: string | null;
12730
+ bank_bic?: string | null;
12731
+ bank_city?: string | null;
12732
+ bank_country?: string | null;
12733
+ bank_house_number?: string | null;
12734
+ bank_iban?: string | null;
12735
+ bank_name?: string | null;
12736
+ bank_national_code?: string | null;
12737
+ bank_postal_code?: string | null;
12738
+ bank_state?: string | null;
12739
+ billing_email?: string | null;
12501
12740
  bio?: string | null;
12502
12741
  city?: string | null;
12742
+ coc_number?: string | null;
12503
12743
  commercial_name?: string | null;
12504
12744
  company_name?: string;
12505
12745
  connection_status?: string;
@@ -12508,21 +12748,28 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12508
12748
  created_at?: string;
12509
12749
  custom_fields?: import("../integrations/supabase/types").Json;
12510
12750
  customer_class?: string | null;
12751
+ customer_number?: string | null;
12752
+ discount_days?: number | null;
12753
+ discount_percentage?: number | null;
12511
12754
  email?: string | null;
12512
12755
  external_id?: string | null;
12756
+ fax?: string | null;
12513
12757
  floriday_connection_id?: string | null;
12514
12758
  floriday_organization_id?: string | null;
12515
12759
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12516
12760
  gln?: string | null;
12517
12761
  house_number?: string | null;
12762
+ icp_country_code?: string | null;
12518
12763
  id?: string;
12519
12764
  is_active?: boolean;
12765
+ language?: string | null;
12520
12766
  last_synced_at?: string | null;
12521
12767
  logo_url?: string | null;
12522
12768
  markets?: string[];
12523
12769
  notes?: string | null;
12524
12770
  organization_type?: string | null;
12525
12771
  payment_methods?: string[];
12772
+ payment_term_days?: number | null;
12526
12773
  phone?: string | null;
12527
12774
  postal_code?: string | null;
12528
12775
  product_groups?: string[];
@@ -12533,6 +12780,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
12533
12780
  sync_status?: string;
12534
12781
  trade_forms?: string[];
12535
12782
  updated_at?: string;
12783
+ vat_display?: string | null;
12536
12784
  vat_number?: string | null;
12537
12785
  website?: string | null;
12538
12786
  };
@@ -18489,6 +18737,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
18489
18737
  };
18490
18738
  profiles: {
18491
18739
  Row: {
18740
+ address: string | null;
18492
18741
  created_at: string;
18493
18742
  display_name: string | null;
18494
18743
  email: string | null;
@@ -18499,6 +18748,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
18499
18748
  updated_at: string;
18500
18749
  };
18501
18750
  Insert: {
18751
+ address?: string | null;
18502
18752
  created_at?: string;
18503
18753
  display_name?: string | null;
18504
18754
  email?: string | null;
@@ -18509,6 +18759,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
18509
18759
  updated_at?: string;
18510
18760
  };
18511
18761
  Update: {
18762
+ address?: string | null;
18512
18763
  created_at?: string;
18513
18764
  display_name?: string | null;
18514
18765
  email?: string | null;
@@ -21549,7 +21800,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
21549
21800
  };
21550
21801
  cleanup_old_bookings: {
21551
21802
  Args: never;
21552
- Returns: number;
21803
+ Returns: undefined;
21553
21804
  };
21554
21805
  consume_floriday_rate_limit: {
21555
21806
  Args: {
@@ -22404,6 +22655,17 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
22404
22655
  };
22405
22656
  Returns: string;
22406
22657
  };
22658
+ upsert_auto_fulfillment_log: {
22659
+ Args: {
22660
+ p_connection_id: string;
22661
+ p_error?: string;
22662
+ p_fulfillment_order_id?: string;
22663
+ p_reason?: string;
22664
+ p_sales_order_id: string;
22665
+ p_status: string;
22666
+ };
22667
+ Returns: undefined;
22668
+ };
22407
22669
  };
22408
22670
  Enums: {
22409
22671
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -22704,6 +22966,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22704
22966
  created_at: string;
22705
22967
  extra_id: string;
22706
22968
  id: string;
22969
+ original_unit_price: number | null;
22970
+ override_reason: string | null;
22971
+ override_unit_price: number | null;
22707
22972
  quantity: number;
22708
22973
  total_price: number;
22709
22974
  unit_price: number;
@@ -22713,6 +22978,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22713
22978
  created_at?: string;
22714
22979
  extra_id: string;
22715
22980
  id?: string;
22981
+ original_unit_price?: number | null;
22982
+ override_reason?: string | null;
22983
+ override_unit_price?: number | null;
22716
22984
  quantity?: number;
22717
22985
  total_price?: number;
22718
22986
  unit_price?: number;
@@ -22722,6 +22990,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22722
22990
  created_at?: string;
22723
22991
  extra_id?: string;
22724
22992
  id?: string;
22993
+ original_unit_price?: number | null;
22994
+ override_reason?: string | null;
22995
+ override_unit_price?: number | null;
22725
22996
  quantity?: number;
22726
22997
  total_price?: number;
22727
22998
  unit_price?: number;
@@ -22742,11 +23013,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22742
23013
  };
22743
23014
  bookings: {
22744
23015
  Row: {
23016
+ archive_reason: string | null;
23017
+ archived_at: string | null;
23018
+ archived_by: string | null;
22745
23019
  company_name: string | null;
22746
23020
  conflict_checked_at: string | null;
22747
23021
  conflict_reason: string | null;
22748
23022
  created_at: string;
22749
23023
  created_by_role: string | null;
23024
+ customer_address: string | null;
22750
23025
  customer_email: string | null;
22751
23026
  customer_name: string | null;
22752
23027
  end_time: string;
@@ -22758,7 +23033,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22758
23033
  invoiced_at: string | null;
22759
23034
  notes: string | null;
22760
23035
  number_of_people: number;
23036
+ overridden_at: string | null;
23037
+ overridden_by: string | null;
23038
+ override_reason: string | null;
23039
+ price_override: boolean;
22761
23040
  room_id: string;
23041
+ room_price_override: number | null;
22762
23042
  start_time: string;
22763
23043
  status: string;
22764
23044
  total_excl_vat: number | null;
@@ -22767,11 +23047,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22767
23047
  vat_amount: number | null;
22768
23048
  };
22769
23049
  Insert: {
23050
+ archive_reason?: string | null;
23051
+ archived_at?: string | null;
23052
+ archived_by?: string | null;
22770
23053
  company_name?: string | null;
22771
23054
  conflict_checked_at?: string | null;
22772
23055
  conflict_reason?: string | null;
22773
23056
  created_at?: string;
22774
23057
  created_by_role?: string | null;
23058
+ customer_address?: string | null;
22775
23059
  customer_email?: string | null;
22776
23060
  customer_name?: string | null;
22777
23061
  end_time: string;
@@ -22783,7 +23067,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22783
23067
  invoiced_at?: string | null;
22784
23068
  notes?: string | null;
22785
23069
  number_of_people?: number;
23070
+ overridden_at?: string | null;
23071
+ overridden_by?: string | null;
23072
+ override_reason?: string | null;
23073
+ price_override?: boolean;
22786
23074
  room_id: string;
23075
+ room_price_override?: number | null;
22787
23076
  start_time: string;
22788
23077
  status?: string;
22789
23078
  total_excl_vat?: number | null;
@@ -22792,11 +23081,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22792
23081
  vat_amount?: number | null;
22793
23082
  };
22794
23083
  Update: {
23084
+ archive_reason?: string | null;
23085
+ archived_at?: string | null;
23086
+ archived_by?: string | null;
22795
23087
  company_name?: string | null;
22796
23088
  conflict_checked_at?: string | null;
22797
23089
  conflict_reason?: string | null;
22798
23090
  created_at?: string;
22799
23091
  created_by_role?: string | null;
23092
+ customer_address?: string | null;
22800
23093
  customer_email?: string | null;
22801
23094
  customer_name?: string | null;
22802
23095
  end_time?: string;
@@ -22808,7 +23101,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22808
23101
  invoiced_at?: string | null;
22809
23102
  notes?: string | null;
22810
23103
  number_of_people?: number;
23104
+ overridden_at?: string | null;
23105
+ overridden_by?: string | null;
23106
+ override_reason?: string | null;
23107
+ price_override?: boolean;
22811
23108
  room_id?: string;
23109
+ room_price_override?: number | null;
22812
23110
  start_time?: string;
22813
23111
  status?: string;
22814
23112
  total_excl_vat?: number | null;
@@ -23637,8 +23935,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23637
23935
  customers: {
23638
23936
  Row: {
23639
23937
  address: string | null;
23938
+ address_line1: string | null;
23939
+ address_line2: string | null;
23940
+ address_type: string | null;
23941
+ attention_to: string | null;
23942
+ bank_account_holder: string | null;
23943
+ bank_account_number: string | null;
23944
+ bank_address_line1: string | null;
23945
+ bank_address_line2: string | null;
23946
+ bank_bic: string | null;
23947
+ bank_city: string | null;
23948
+ bank_country: string | null;
23949
+ bank_house_number: string | null;
23950
+ bank_iban: string | null;
23951
+ bank_name: string | null;
23952
+ bank_national_code: string | null;
23953
+ bank_postal_code: string | null;
23954
+ bank_state: string | null;
23955
+ billing_email: string | null;
23640
23956
  bio: string | null;
23641
23957
  city: string | null;
23958
+ coc_number: string | null;
23642
23959
  commercial_name: string | null;
23643
23960
  company_name: string;
23644
23961
  connection_status: string;
@@ -23647,21 +23964,28 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23647
23964
  created_at: string;
23648
23965
  custom_fields: import("../integrations/supabase/types").Json;
23649
23966
  customer_class: string | null;
23967
+ customer_number: string | null;
23968
+ discount_days: number | null;
23969
+ discount_percentage: number | null;
23650
23970
  email: string | null;
23651
23971
  external_id: string | null;
23972
+ fax: string | null;
23652
23973
  floriday_connection_id: string | null;
23653
23974
  floriday_organization_id: string | null;
23654
23975
  floriday_raw: import("../integrations/supabase/types").Json | null;
23655
23976
  gln: string | null;
23656
23977
  house_number: string | null;
23978
+ icp_country_code: string | null;
23657
23979
  id: string;
23658
23980
  is_active: boolean;
23981
+ language: string | null;
23659
23982
  last_synced_at: string | null;
23660
23983
  logo_url: string | null;
23661
23984
  markets: string[];
23662
23985
  notes: string | null;
23663
23986
  organization_type: string | null;
23664
23987
  payment_methods: string[];
23988
+ payment_term_days: number | null;
23665
23989
  phone: string | null;
23666
23990
  postal_code: string | null;
23667
23991
  product_groups: string[];
@@ -23672,13 +23996,33 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23672
23996
  sync_status: string;
23673
23997
  trade_forms: string[];
23674
23998
  updated_at: string;
23999
+ vat_display: string | null;
23675
24000
  vat_number: string | null;
23676
24001
  website: string | null;
23677
24002
  };
23678
24003
  Insert: {
23679
24004
  address?: string | null;
24005
+ address_line1?: string | null;
24006
+ address_line2?: string | null;
24007
+ address_type?: string | null;
24008
+ attention_to?: string | null;
24009
+ bank_account_holder?: string | null;
24010
+ bank_account_number?: string | null;
24011
+ bank_address_line1?: string | null;
24012
+ bank_address_line2?: string | null;
24013
+ bank_bic?: string | null;
24014
+ bank_city?: string | null;
24015
+ bank_country?: string | null;
24016
+ bank_house_number?: string | null;
24017
+ bank_iban?: string | null;
24018
+ bank_name?: string | null;
24019
+ bank_national_code?: string | null;
24020
+ bank_postal_code?: string | null;
24021
+ bank_state?: string | null;
24022
+ billing_email?: string | null;
23680
24023
  bio?: string | null;
23681
24024
  city?: string | null;
24025
+ coc_number?: string | null;
23682
24026
  commercial_name?: string | null;
23683
24027
  company_name: string;
23684
24028
  connection_status?: string;
@@ -23687,21 +24031,28 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23687
24031
  created_at?: string;
23688
24032
  custom_fields?: import("../integrations/supabase/types").Json;
23689
24033
  customer_class?: string | null;
24034
+ customer_number?: string | null;
24035
+ discount_days?: number | null;
24036
+ discount_percentage?: number | null;
23690
24037
  email?: string | null;
23691
24038
  external_id?: string | null;
24039
+ fax?: string | null;
23692
24040
  floriday_connection_id?: string | null;
23693
24041
  floriday_organization_id?: string | null;
23694
24042
  floriday_raw?: import("../integrations/supabase/types").Json | null;
23695
24043
  gln?: string | null;
23696
24044
  house_number?: string | null;
24045
+ icp_country_code?: string | null;
23697
24046
  id?: string;
23698
24047
  is_active?: boolean;
24048
+ language?: string | null;
23699
24049
  last_synced_at?: string | null;
23700
24050
  logo_url?: string | null;
23701
24051
  markets?: string[];
23702
24052
  notes?: string | null;
23703
24053
  organization_type?: string | null;
23704
24054
  payment_methods?: string[];
24055
+ payment_term_days?: number | null;
23705
24056
  phone?: string | null;
23706
24057
  postal_code?: string | null;
23707
24058
  product_groups?: string[];
@@ -23712,13 +24063,33 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23712
24063
  sync_status?: string;
23713
24064
  trade_forms?: string[];
23714
24065
  updated_at?: string;
24066
+ vat_display?: string | null;
23715
24067
  vat_number?: string | null;
23716
24068
  website?: string | null;
23717
24069
  };
23718
24070
  Update: {
23719
24071
  address?: string | null;
24072
+ address_line1?: string | null;
24073
+ address_line2?: string | null;
24074
+ address_type?: string | null;
24075
+ attention_to?: string | null;
24076
+ bank_account_holder?: string | null;
24077
+ bank_account_number?: string | null;
24078
+ bank_address_line1?: string | null;
24079
+ bank_address_line2?: string | null;
24080
+ bank_bic?: string | null;
24081
+ bank_city?: string | null;
24082
+ bank_country?: string | null;
24083
+ bank_house_number?: string | null;
24084
+ bank_iban?: string | null;
24085
+ bank_name?: string | null;
24086
+ bank_national_code?: string | null;
24087
+ bank_postal_code?: string | null;
24088
+ bank_state?: string | null;
24089
+ billing_email?: string | null;
23720
24090
  bio?: string | null;
23721
24091
  city?: string | null;
24092
+ coc_number?: string | null;
23722
24093
  commercial_name?: string | null;
23723
24094
  company_name?: string;
23724
24095
  connection_status?: string;
@@ -23727,21 +24098,28 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23727
24098
  created_at?: string;
23728
24099
  custom_fields?: import("../integrations/supabase/types").Json;
23729
24100
  customer_class?: string | null;
24101
+ customer_number?: string | null;
24102
+ discount_days?: number | null;
24103
+ discount_percentage?: number | null;
23730
24104
  email?: string | null;
23731
24105
  external_id?: string | null;
24106
+ fax?: string | null;
23732
24107
  floriday_connection_id?: string | null;
23733
24108
  floriday_organization_id?: string | null;
23734
24109
  floriday_raw?: import("../integrations/supabase/types").Json | null;
23735
24110
  gln?: string | null;
23736
24111
  house_number?: string | null;
24112
+ icp_country_code?: string | null;
23737
24113
  id?: string;
23738
24114
  is_active?: boolean;
24115
+ language?: string | null;
23739
24116
  last_synced_at?: string | null;
23740
24117
  logo_url?: string | null;
23741
24118
  markets?: string[];
23742
24119
  notes?: string | null;
23743
24120
  organization_type?: string | null;
23744
24121
  payment_methods?: string[];
24122
+ payment_term_days?: number | null;
23745
24123
  phone?: string | null;
23746
24124
  postal_code?: string | null;
23747
24125
  product_groups?: string[];
@@ -23752,6 +24130,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
23752
24130
  sync_status?: string;
23753
24131
  trade_forms?: string[];
23754
24132
  updated_at?: string;
24133
+ vat_display?: string | null;
23755
24134
  vat_number?: string | null;
23756
24135
  website?: string | null;
23757
24136
  };
@@ -29708,6 +30087,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
29708
30087
  };
29709
30088
  profiles: {
29710
30089
  Row: {
30090
+ address: string | null;
29711
30091
  created_at: string;
29712
30092
  display_name: string | null;
29713
30093
  email: string | null;
@@ -29718,6 +30098,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
29718
30098
  updated_at: string;
29719
30099
  };
29720
30100
  Insert: {
30101
+ address?: string | null;
29721
30102
  created_at?: string;
29722
30103
  display_name?: string | null;
29723
30104
  email?: string | null;
@@ -29728,6 +30109,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
29728
30109
  updated_at?: string;
29729
30110
  };
29730
30111
  Update: {
30112
+ address?: string | null;
29731
30113
  created_at?: string;
29732
30114
  display_name?: string | null;
29733
30115
  email?: string | null;
@@ -32768,7 +33150,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
32768
33150
  };
32769
33151
  cleanup_old_bookings: {
32770
33152
  Args: never;
32771
- Returns: number;
33153
+ Returns: undefined;
32772
33154
  };
32773
33155
  consume_floriday_rate_limit: {
32774
33156
  Args: {
@@ -33623,6 +34005,17 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
33623
34005
  };
33624
34006
  Returns: string;
33625
34007
  };
34008
+ upsert_auto_fulfillment_log: {
34009
+ Args: {
34010
+ p_connection_id: string;
34011
+ p_error?: string;
34012
+ p_fulfillment_order_id?: string;
34013
+ p_reason?: string;
34014
+ p_sales_order_id: string;
34015
+ p_status: string;
34016
+ };
34017
+ Returns: undefined;
34018
+ };
33626
34019
  };
33627
34020
  Enums: {
33628
34021
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";