@flowselections/floriday-verkoop-module 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +3 -3
@@ -271,6 +271,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
271
271
  created_at: string;
272
272
  extra_id: string;
273
273
  id: string;
274
+ original_unit_price: number | null;
275
+ override_reason: string | null;
276
+ override_unit_price: number | null;
274
277
  quantity: number;
275
278
  total_price: number;
276
279
  unit_price: number;
@@ -280,6 +283,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
280
283
  created_at?: string;
281
284
  extra_id: string;
282
285
  id?: string;
286
+ original_unit_price?: number | null;
287
+ override_reason?: string | null;
288
+ override_unit_price?: number | null;
283
289
  quantity?: number;
284
290
  total_price?: number;
285
291
  unit_price?: number;
@@ -289,6 +295,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
289
295
  created_at?: string;
290
296
  extra_id?: string;
291
297
  id?: string;
298
+ original_unit_price?: number | null;
299
+ override_reason?: string | null;
300
+ override_unit_price?: number | null;
292
301
  quantity?: number;
293
302
  total_price?: number;
294
303
  unit_price?: number;
@@ -309,11 +318,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
309
318
  };
310
319
  bookings: {
311
320
  Row: {
321
+ archive_reason: string | null;
322
+ archived_at: string | null;
323
+ archived_by: string | null;
312
324
  company_name: string | null;
313
325
  conflict_checked_at: string | null;
314
326
  conflict_reason: string | null;
315
327
  created_at: string;
316
328
  created_by_role: string | null;
329
+ customer_address: string | null;
317
330
  customer_email: string | null;
318
331
  customer_name: string | null;
319
332
  end_time: string;
@@ -325,7 +338,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
325
338
  invoiced_at: string | null;
326
339
  notes: string | null;
327
340
  number_of_people: number;
341
+ overridden_at: string | null;
342
+ overridden_by: string | null;
343
+ override_reason: string | null;
344
+ price_override: boolean;
328
345
  room_id: string;
346
+ room_price_override: number | null;
329
347
  start_time: string;
330
348
  status: string;
331
349
  total_excl_vat: number | null;
@@ -334,11 +352,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
334
352
  vat_amount: number | null;
335
353
  };
336
354
  Insert: {
355
+ archive_reason?: string | null;
356
+ archived_at?: string | null;
357
+ archived_by?: string | null;
337
358
  company_name?: string | null;
338
359
  conflict_checked_at?: string | null;
339
360
  conflict_reason?: string | null;
340
361
  created_at?: string;
341
362
  created_by_role?: string | null;
363
+ customer_address?: string | null;
342
364
  customer_email?: string | null;
343
365
  customer_name?: string | null;
344
366
  end_time: string;
@@ -350,7 +372,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
350
372
  invoiced_at?: string | null;
351
373
  notes?: string | null;
352
374
  number_of_people?: number;
375
+ overridden_at?: string | null;
376
+ overridden_by?: string | null;
377
+ override_reason?: string | null;
378
+ price_override?: boolean;
353
379
  room_id: string;
380
+ room_price_override?: number | null;
354
381
  start_time: string;
355
382
  status?: string;
356
383
  total_excl_vat?: number | null;
@@ -359,11 +386,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
359
386
  vat_amount?: number | null;
360
387
  };
361
388
  Update: {
389
+ archive_reason?: string | null;
390
+ archived_at?: string | null;
391
+ archived_by?: string | null;
362
392
  company_name?: string | null;
363
393
  conflict_checked_at?: string | null;
364
394
  conflict_reason?: string | null;
365
395
  created_at?: string;
366
396
  created_by_role?: string | null;
397
+ customer_address?: string | null;
367
398
  customer_email?: string | null;
368
399
  customer_name?: string | null;
369
400
  end_time?: string;
@@ -375,7 +406,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
375
406
  invoiced_at?: string | null;
376
407
  notes?: string | null;
377
408
  number_of_people?: number;
409
+ overridden_at?: string | null;
410
+ overridden_by?: string | null;
411
+ override_reason?: string | null;
412
+ price_override?: boolean;
378
413
  room_id?: string;
414
+ room_price_override?: number | null;
379
415
  start_time?: string;
380
416
  status?: string;
381
417
  total_excl_vat?: number | null;
@@ -1204,8 +1240,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1204
1240
  customers: {
1205
1241
  Row: {
1206
1242
  address: string | null;
1243
+ address_line1: string | null;
1244
+ address_line2: string | null;
1245
+ address_type: string | null;
1246
+ attention_to: string | null;
1247
+ bank_account_holder: string | null;
1248
+ bank_account_number: string | null;
1249
+ bank_address_line1: string | null;
1250
+ bank_address_line2: string | null;
1251
+ bank_bic: string | null;
1252
+ bank_city: string | null;
1253
+ bank_country: string | null;
1254
+ bank_house_number: string | null;
1255
+ bank_iban: string | null;
1256
+ bank_name: string | null;
1257
+ bank_national_code: string | null;
1258
+ bank_postal_code: string | null;
1259
+ bank_state: string | null;
1260
+ billing_email: string | null;
1207
1261
  bio: string | null;
1208
1262
  city: string | null;
1263
+ coc_number: string | null;
1209
1264
  commercial_name: string | null;
1210
1265
  company_name: string;
1211
1266
  connection_status: string;
@@ -1214,21 +1269,28 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1214
1269
  created_at: string;
1215
1270
  custom_fields: import("../integrations/supabase/types").Json;
1216
1271
  customer_class: string | null;
1272
+ customer_number: string | null;
1273
+ discount_days: number | null;
1274
+ discount_percentage: number | null;
1217
1275
  email: string | null;
1218
1276
  external_id: string | null;
1277
+ fax: string | null;
1219
1278
  floriday_connection_id: string | null;
1220
1279
  floriday_organization_id: string | null;
1221
1280
  floriday_raw: import("../integrations/supabase/types").Json | null;
1222
1281
  gln: string | null;
1223
1282
  house_number: string | null;
1283
+ icp_country_code: string | null;
1224
1284
  id: string;
1225
1285
  is_active: boolean;
1286
+ language: string | null;
1226
1287
  last_synced_at: string | null;
1227
1288
  logo_url: string | null;
1228
1289
  markets: string[];
1229
1290
  notes: string | null;
1230
1291
  organization_type: string | null;
1231
1292
  payment_methods: string[];
1293
+ payment_term_days: number | null;
1232
1294
  phone: string | null;
1233
1295
  postal_code: string | null;
1234
1296
  product_groups: string[];
@@ -1239,13 +1301,33 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1239
1301
  sync_status: string;
1240
1302
  trade_forms: string[];
1241
1303
  updated_at: string;
1304
+ vat_display: string | null;
1242
1305
  vat_number: string | null;
1243
1306
  website: string | null;
1244
1307
  };
1245
1308
  Insert: {
1246
1309
  address?: string | null;
1310
+ address_line1?: string | null;
1311
+ address_line2?: string | null;
1312
+ address_type?: string | null;
1313
+ attention_to?: string | null;
1314
+ bank_account_holder?: string | null;
1315
+ bank_account_number?: string | null;
1316
+ bank_address_line1?: string | null;
1317
+ bank_address_line2?: string | null;
1318
+ bank_bic?: string | null;
1319
+ bank_city?: string | null;
1320
+ bank_country?: string | null;
1321
+ bank_house_number?: string | null;
1322
+ bank_iban?: string | null;
1323
+ bank_name?: string | null;
1324
+ bank_national_code?: string | null;
1325
+ bank_postal_code?: string | null;
1326
+ bank_state?: string | null;
1327
+ billing_email?: string | null;
1247
1328
  bio?: string | null;
1248
1329
  city?: string | null;
1330
+ coc_number?: string | null;
1249
1331
  commercial_name?: string | null;
1250
1332
  company_name: string;
1251
1333
  connection_status?: string;
@@ -1254,21 +1336,28 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1254
1336
  created_at?: string;
1255
1337
  custom_fields?: import("../integrations/supabase/types").Json;
1256
1338
  customer_class?: string | null;
1339
+ customer_number?: string | null;
1340
+ discount_days?: number | null;
1341
+ discount_percentage?: number | null;
1257
1342
  email?: string | null;
1258
1343
  external_id?: string | null;
1344
+ fax?: string | null;
1259
1345
  floriday_connection_id?: string | null;
1260
1346
  floriday_organization_id?: string | null;
1261
1347
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1262
1348
  gln?: string | null;
1263
1349
  house_number?: string | null;
1350
+ icp_country_code?: string | null;
1264
1351
  id?: string;
1265
1352
  is_active?: boolean;
1353
+ language?: string | null;
1266
1354
  last_synced_at?: string | null;
1267
1355
  logo_url?: string | null;
1268
1356
  markets?: string[];
1269
1357
  notes?: string | null;
1270
1358
  organization_type?: string | null;
1271
1359
  payment_methods?: string[];
1360
+ payment_term_days?: number | null;
1272
1361
  phone?: string | null;
1273
1362
  postal_code?: string | null;
1274
1363
  product_groups?: string[];
@@ -1279,13 +1368,33 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1279
1368
  sync_status?: string;
1280
1369
  trade_forms?: string[];
1281
1370
  updated_at?: string;
1371
+ vat_display?: string | null;
1282
1372
  vat_number?: string | null;
1283
1373
  website?: string | null;
1284
1374
  };
1285
1375
  Update: {
1286
1376
  address?: string | null;
1377
+ address_line1?: string | null;
1378
+ address_line2?: string | null;
1379
+ address_type?: string | null;
1380
+ attention_to?: string | null;
1381
+ bank_account_holder?: string | null;
1382
+ bank_account_number?: string | null;
1383
+ bank_address_line1?: string | null;
1384
+ bank_address_line2?: string | null;
1385
+ bank_bic?: string | null;
1386
+ bank_city?: string | null;
1387
+ bank_country?: string | null;
1388
+ bank_house_number?: string | null;
1389
+ bank_iban?: string | null;
1390
+ bank_name?: string | null;
1391
+ bank_national_code?: string | null;
1392
+ bank_postal_code?: string | null;
1393
+ bank_state?: string | null;
1394
+ billing_email?: string | null;
1287
1395
  bio?: string | null;
1288
1396
  city?: string | null;
1397
+ coc_number?: string | null;
1289
1398
  commercial_name?: string | null;
1290
1399
  company_name?: string;
1291
1400
  connection_status?: string;
@@ -1294,21 +1403,28 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1294
1403
  created_at?: string;
1295
1404
  custom_fields?: import("../integrations/supabase/types").Json;
1296
1405
  customer_class?: string | null;
1406
+ customer_number?: string | null;
1407
+ discount_days?: number | null;
1408
+ discount_percentage?: number | null;
1297
1409
  email?: string | null;
1298
1410
  external_id?: string | null;
1411
+ fax?: string | null;
1299
1412
  floriday_connection_id?: string | null;
1300
1413
  floriday_organization_id?: string | null;
1301
1414
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1302
1415
  gln?: string | null;
1303
1416
  house_number?: string | null;
1417
+ icp_country_code?: string | null;
1304
1418
  id?: string;
1305
1419
  is_active?: boolean;
1420
+ language?: string | null;
1306
1421
  last_synced_at?: string | null;
1307
1422
  logo_url?: string | null;
1308
1423
  markets?: string[];
1309
1424
  notes?: string | null;
1310
1425
  organization_type?: string | null;
1311
1426
  payment_methods?: string[];
1427
+ payment_term_days?: number | null;
1312
1428
  phone?: string | null;
1313
1429
  postal_code?: string | null;
1314
1430
  product_groups?: string[];
@@ -1319,6 +1435,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
1319
1435
  sync_status?: string;
1320
1436
  trade_forms?: string[];
1321
1437
  updated_at?: string;
1438
+ vat_display?: string | null;
1322
1439
  vat_number?: string | null;
1323
1440
  website?: string | null;
1324
1441
  };
@@ -7275,6 +7392,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7275
7392
  };
7276
7393
  profiles: {
7277
7394
  Row: {
7395
+ address: string | null;
7278
7396
  created_at: string;
7279
7397
  display_name: string | null;
7280
7398
  email: string | null;
@@ -7285,6 +7403,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7285
7403
  updated_at: string;
7286
7404
  };
7287
7405
  Insert: {
7406
+ address?: string | null;
7288
7407
  created_at?: string;
7289
7408
  display_name?: string | null;
7290
7409
  email?: string | null;
@@ -7295,6 +7414,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7295
7414
  updated_at?: string;
7296
7415
  };
7297
7416
  Update: {
7417
+ address?: string | null;
7298
7418
  created_at?: string;
7299
7419
  display_name?: string | null;
7300
7420
  email?: string | null;
@@ -10335,7 +10455,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10335
10455
  };
10336
10456
  cleanup_old_bookings: {
10337
10457
  Args: never;
10338
- Returns: number;
10458
+ Returns: undefined;
10339
10459
  };
10340
10460
  consume_floriday_rate_limit: {
10341
10461
  Args: {
@@ -11190,6 +11310,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11190
11310
  };
11191
11311
  Returns: string;
11192
11312
  };
11313
+ upsert_auto_fulfillment_log: {
11314
+ Args: {
11315
+ p_connection_id: string;
11316
+ p_error?: string;
11317
+ p_fulfillment_order_id?: string;
11318
+ p_reason?: string;
11319
+ p_sales_order_id: string;
11320
+ p_status: string;
11321
+ };
11322
+ Returns: undefined;
11323
+ };
11193
11324
  };
11194
11325
  Enums: {
11195
11326
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -11480,6 +11611,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11480
11611
  created_at: string;
11481
11612
  extra_id: string;
11482
11613
  id: string;
11614
+ original_unit_price: number | null;
11615
+ override_reason: string | null;
11616
+ override_unit_price: number | null;
11483
11617
  quantity: number;
11484
11618
  total_price: number;
11485
11619
  unit_price: number;
@@ -11489,6 +11623,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11489
11623
  created_at?: string;
11490
11624
  extra_id: string;
11491
11625
  id?: string;
11626
+ original_unit_price?: number | null;
11627
+ override_reason?: string | null;
11628
+ override_unit_price?: number | null;
11492
11629
  quantity?: number;
11493
11630
  total_price?: number;
11494
11631
  unit_price?: number;
@@ -11498,6 +11635,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11498
11635
  created_at?: string;
11499
11636
  extra_id?: string;
11500
11637
  id?: string;
11638
+ original_unit_price?: number | null;
11639
+ override_reason?: string | null;
11640
+ override_unit_price?: number | null;
11501
11641
  quantity?: number;
11502
11642
  total_price?: number;
11503
11643
  unit_price?: number;
@@ -11518,11 +11658,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11518
11658
  };
11519
11659
  bookings: {
11520
11660
  Row: {
11661
+ archive_reason: string | null;
11662
+ archived_at: string | null;
11663
+ archived_by: string | null;
11521
11664
  company_name: string | null;
11522
11665
  conflict_checked_at: string | null;
11523
11666
  conflict_reason: string | null;
11524
11667
  created_at: string;
11525
11668
  created_by_role: string | null;
11669
+ customer_address: string | null;
11526
11670
  customer_email: string | null;
11527
11671
  customer_name: string | null;
11528
11672
  end_time: string;
@@ -11534,7 +11678,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11534
11678
  invoiced_at: string | null;
11535
11679
  notes: string | null;
11536
11680
  number_of_people: number;
11681
+ overridden_at: string | null;
11682
+ overridden_by: string | null;
11683
+ override_reason: string | null;
11684
+ price_override: boolean;
11537
11685
  room_id: string;
11686
+ room_price_override: number | null;
11538
11687
  start_time: string;
11539
11688
  status: string;
11540
11689
  total_excl_vat: number | null;
@@ -11543,11 +11692,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11543
11692
  vat_amount: number | null;
11544
11693
  };
11545
11694
  Insert: {
11695
+ archive_reason?: string | null;
11696
+ archived_at?: string | null;
11697
+ archived_by?: string | null;
11546
11698
  company_name?: string | null;
11547
11699
  conflict_checked_at?: string | null;
11548
11700
  conflict_reason?: string | null;
11549
11701
  created_at?: string;
11550
11702
  created_by_role?: string | null;
11703
+ customer_address?: string | null;
11551
11704
  customer_email?: string | null;
11552
11705
  customer_name?: string | null;
11553
11706
  end_time: string;
@@ -11559,7 +11712,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11559
11712
  invoiced_at?: string | null;
11560
11713
  notes?: string | null;
11561
11714
  number_of_people?: number;
11715
+ overridden_at?: string | null;
11716
+ overridden_by?: string | null;
11717
+ override_reason?: string | null;
11718
+ price_override?: boolean;
11562
11719
  room_id: string;
11720
+ room_price_override?: number | null;
11563
11721
  start_time: string;
11564
11722
  status?: string;
11565
11723
  total_excl_vat?: number | null;
@@ -11568,11 +11726,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11568
11726
  vat_amount?: number | null;
11569
11727
  };
11570
11728
  Update: {
11729
+ archive_reason?: string | null;
11730
+ archived_at?: string | null;
11731
+ archived_by?: string | null;
11571
11732
  company_name?: string | null;
11572
11733
  conflict_checked_at?: string | null;
11573
11734
  conflict_reason?: string | null;
11574
11735
  created_at?: string;
11575
11736
  created_by_role?: string | null;
11737
+ customer_address?: string | null;
11576
11738
  customer_email?: string | null;
11577
11739
  customer_name?: string | null;
11578
11740
  end_time?: string;
@@ -11584,7 +11746,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
11584
11746
  invoiced_at?: string | null;
11585
11747
  notes?: string | null;
11586
11748
  number_of_people?: number;
11749
+ overridden_at?: string | null;
11750
+ overridden_by?: string | null;
11751
+ override_reason?: string | null;
11752
+ price_override?: boolean;
11587
11753
  room_id?: string;
11754
+ room_price_override?: number | null;
11588
11755
  start_time?: string;
11589
11756
  status?: string;
11590
11757
  total_excl_vat?: number | null;
@@ -12413,8 +12580,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12413
12580
  customers: {
12414
12581
  Row: {
12415
12582
  address: string | null;
12583
+ address_line1: string | null;
12584
+ address_line2: string | null;
12585
+ address_type: string | null;
12586
+ attention_to: string | null;
12587
+ bank_account_holder: string | null;
12588
+ bank_account_number: string | null;
12589
+ bank_address_line1: string | null;
12590
+ bank_address_line2: string | null;
12591
+ bank_bic: string | null;
12592
+ bank_city: string | null;
12593
+ bank_country: string | null;
12594
+ bank_house_number: string | null;
12595
+ bank_iban: string | null;
12596
+ bank_name: string | null;
12597
+ bank_national_code: string | null;
12598
+ bank_postal_code: string | null;
12599
+ bank_state: string | null;
12600
+ billing_email: string | null;
12416
12601
  bio: string | null;
12417
12602
  city: string | null;
12603
+ coc_number: string | null;
12418
12604
  commercial_name: string | null;
12419
12605
  company_name: string;
12420
12606
  connection_status: string;
@@ -12423,21 +12609,28 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12423
12609
  created_at: string;
12424
12610
  custom_fields: import("../integrations/supabase/types").Json;
12425
12611
  customer_class: string | null;
12612
+ customer_number: string | null;
12613
+ discount_days: number | null;
12614
+ discount_percentage: number | null;
12426
12615
  email: string | null;
12427
12616
  external_id: string | null;
12617
+ fax: string | null;
12428
12618
  floriday_connection_id: string | null;
12429
12619
  floriday_organization_id: string | null;
12430
12620
  floriday_raw: import("../integrations/supabase/types").Json | null;
12431
12621
  gln: string | null;
12432
12622
  house_number: string | null;
12623
+ icp_country_code: string | null;
12433
12624
  id: string;
12434
12625
  is_active: boolean;
12626
+ language: string | null;
12435
12627
  last_synced_at: string | null;
12436
12628
  logo_url: string | null;
12437
12629
  markets: string[];
12438
12630
  notes: string | null;
12439
12631
  organization_type: string | null;
12440
12632
  payment_methods: string[];
12633
+ payment_term_days: number | null;
12441
12634
  phone: string | null;
12442
12635
  postal_code: string | null;
12443
12636
  product_groups: string[];
@@ -12448,13 +12641,33 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12448
12641
  sync_status: string;
12449
12642
  trade_forms: string[];
12450
12643
  updated_at: string;
12644
+ vat_display: string | null;
12451
12645
  vat_number: string | null;
12452
12646
  website: string | null;
12453
12647
  };
12454
12648
  Insert: {
12455
12649
  address?: string | null;
12650
+ address_line1?: string | null;
12651
+ address_line2?: string | null;
12652
+ address_type?: string | null;
12653
+ attention_to?: string | null;
12654
+ bank_account_holder?: string | null;
12655
+ bank_account_number?: string | null;
12656
+ bank_address_line1?: string | null;
12657
+ bank_address_line2?: string | null;
12658
+ bank_bic?: string | null;
12659
+ bank_city?: string | null;
12660
+ bank_country?: string | null;
12661
+ bank_house_number?: string | null;
12662
+ bank_iban?: string | null;
12663
+ bank_name?: string | null;
12664
+ bank_national_code?: string | null;
12665
+ bank_postal_code?: string | null;
12666
+ bank_state?: string | null;
12667
+ billing_email?: string | null;
12456
12668
  bio?: string | null;
12457
12669
  city?: string | null;
12670
+ coc_number?: string | null;
12458
12671
  commercial_name?: string | null;
12459
12672
  company_name: string;
12460
12673
  connection_status?: string;
@@ -12463,21 +12676,28 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12463
12676
  created_at?: string;
12464
12677
  custom_fields?: import("../integrations/supabase/types").Json;
12465
12678
  customer_class?: string | null;
12679
+ customer_number?: string | null;
12680
+ discount_days?: number | null;
12681
+ discount_percentage?: number | null;
12466
12682
  email?: string | null;
12467
12683
  external_id?: string | null;
12684
+ fax?: string | null;
12468
12685
  floriday_connection_id?: string | null;
12469
12686
  floriday_organization_id?: string | null;
12470
12687
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12471
12688
  gln?: string | null;
12472
12689
  house_number?: string | null;
12690
+ icp_country_code?: string | null;
12473
12691
  id?: string;
12474
12692
  is_active?: boolean;
12693
+ language?: string | null;
12475
12694
  last_synced_at?: string | null;
12476
12695
  logo_url?: string | null;
12477
12696
  markets?: string[];
12478
12697
  notes?: string | null;
12479
12698
  organization_type?: string | null;
12480
12699
  payment_methods?: string[];
12700
+ payment_term_days?: number | null;
12481
12701
  phone?: string | null;
12482
12702
  postal_code?: string | null;
12483
12703
  product_groups?: string[];
@@ -12488,13 +12708,33 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12488
12708
  sync_status?: string;
12489
12709
  trade_forms?: string[];
12490
12710
  updated_at?: string;
12711
+ vat_display?: string | null;
12491
12712
  vat_number?: string | null;
12492
12713
  website?: string | null;
12493
12714
  };
12494
12715
  Update: {
12495
12716
  address?: string | null;
12717
+ address_line1?: string | null;
12718
+ address_line2?: string | null;
12719
+ address_type?: string | null;
12720
+ attention_to?: string | null;
12721
+ bank_account_holder?: string | null;
12722
+ bank_account_number?: string | null;
12723
+ bank_address_line1?: string | null;
12724
+ bank_address_line2?: string | null;
12725
+ bank_bic?: string | null;
12726
+ bank_city?: string | null;
12727
+ bank_country?: string | null;
12728
+ bank_house_number?: string | null;
12729
+ bank_iban?: string | null;
12730
+ bank_name?: string | null;
12731
+ bank_national_code?: string | null;
12732
+ bank_postal_code?: string | null;
12733
+ bank_state?: string | null;
12734
+ billing_email?: string | null;
12496
12735
  bio?: string | null;
12497
12736
  city?: string | null;
12737
+ coc_number?: string | null;
12498
12738
  commercial_name?: string | null;
12499
12739
  company_name?: string;
12500
12740
  connection_status?: string;
@@ -12503,21 +12743,28 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12503
12743
  created_at?: string;
12504
12744
  custom_fields?: import("../integrations/supabase/types").Json;
12505
12745
  customer_class?: string | null;
12746
+ customer_number?: string | null;
12747
+ discount_days?: number | null;
12748
+ discount_percentage?: number | null;
12506
12749
  email?: string | null;
12507
12750
  external_id?: string | null;
12751
+ fax?: string | null;
12508
12752
  floriday_connection_id?: string | null;
12509
12753
  floriday_organization_id?: string | null;
12510
12754
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12511
12755
  gln?: string | null;
12512
12756
  house_number?: string | null;
12757
+ icp_country_code?: string | null;
12513
12758
  id?: string;
12514
12759
  is_active?: boolean;
12760
+ language?: string | null;
12515
12761
  last_synced_at?: string | null;
12516
12762
  logo_url?: string | null;
12517
12763
  markets?: string[];
12518
12764
  notes?: string | null;
12519
12765
  organization_type?: string | null;
12520
12766
  payment_methods?: string[];
12767
+ payment_term_days?: number | null;
12521
12768
  phone?: string | null;
12522
12769
  postal_code?: string | null;
12523
12770
  product_groups?: string[];
@@ -12528,6 +12775,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
12528
12775
  sync_status?: string;
12529
12776
  trade_forms?: string[];
12530
12777
  updated_at?: string;
12778
+ vat_display?: string | null;
12531
12779
  vat_number?: string | null;
12532
12780
  website?: string | null;
12533
12781
  };
@@ -18484,6 +18732,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
18484
18732
  };
18485
18733
  profiles: {
18486
18734
  Row: {
18735
+ address: string | null;
18487
18736
  created_at: string;
18488
18737
  display_name: string | null;
18489
18738
  email: string | null;
@@ -18494,6 +18743,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
18494
18743
  updated_at: string;
18495
18744
  };
18496
18745
  Insert: {
18746
+ address?: string | null;
18497
18747
  created_at?: string;
18498
18748
  display_name?: string | null;
18499
18749
  email?: string | null;
@@ -18504,6 +18754,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
18504
18754
  updated_at?: string;
18505
18755
  };
18506
18756
  Update: {
18757
+ address?: string | null;
18507
18758
  created_at?: string;
18508
18759
  display_name?: string | null;
18509
18760
  email?: string | null;
@@ -21544,7 +21795,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
21544
21795
  };
21545
21796
  cleanup_old_bookings: {
21546
21797
  Args: never;
21547
- Returns: number;
21798
+ Returns: undefined;
21548
21799
  };
21549
21800
  consume_floriday_rate_limit: {
21550
21801
  Args: {
@@ -22399,6 +22650,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
22399
22650
  };
22400
22651
  Returns: string;
22401
22652
  };
22653
+ upsert_auto_fulfillment_log: {
22654
+ Args: {
22655
+ p_connection_id: string;
22656
+ p_error?: string;
22657
+ p_fulfillment_order_id?: string;
22658
+ p_reason?: string;
22659
+ p_sales_order_id: string;
22660
+ p_status: string;
22661
+ };
22662
+ Returns: undefined;
22663
+ };
22402
22664
  };
22403
22665
  Enums: {
22404
22666
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -22698,6 +22960,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22698
22960
  created_at: string;
22699
22961
  extra_id: string;
22700
22962
  id: string;
22963
+ original_unit_price: number | null;
22964
+ override_reason: string | null;
22965
+ override_unit_price: number | null;
22701
22966
  quantity: number;
22702
22967
  total_price: number;
22703
22968
  unit_price: number;
@@ -22707,6 +22972,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22707
22972
  created_at?: string;
22708
22973
  extra_id: string;
22709
22974
  id?: string;
22975
+ original_unit_price?: number | null;
22976
+ override_reason?: string | null;
22977
+ override_unit_price?: number | null;
22710
22978
  quantity?: number;
22711
22979
  total_price?: number;
22712
22980
  unit_price?: number;
@@ -22716,6 +22984,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22716
22984
  created_at?: string;
22717
22985
  extra_id?: string;
22718
22986
  id?: string;
22987
+ original_unit_price?: number | null;
22988
+ override_reason?: string | null;
22989
+ override_unit_price?: number | null;
22719
22990
  quantity?: number;
22720
22991
  total_price?: number;
22721
22992
  unit_price?: number;
@@ -22736,11 +23007,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22736
23007
  };
22737
23008
  bookings: {
22738
23009
  Row: {
23010
+ archive_reason: string | null;
23011
+ archived_at: string | null;
23012
+ archived_by: string | null;
22739
23013
  company_name: string | null;
22740
23014
  conflict_checked_at: string | null;
22741
23015
  conflict_reason: string | null;
22742
23016
  created_at: string;
22743
23017
  created_by_role: string | null;
23018
+ customer_address: string | null;
22744
23019
  customer_email: string | null;
22745
23020
  customer_name: string | null;
22746
23021
  end_time: string;
@@ -22752,7 +23027,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22752
23027
  invoiced_at: string | null;
22753
23028
  notes: string | null;
22754
23029
  number_of_people: number;
23030
+ overridden_at: string | null;
23031
+ overridden_by: string | null;
23032
+ override_reason: string | null;
23033
+ price_override: boolean;
22755
23034
  room_id: string;
23035
+ room_price_override: number | null;
22756
23036
  start_time: string;
22757
23037
  status: string;
22758
23038
  total_excl_vat: number | null;
@@ -22761,11 +23041,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22761
23041
  vat_amount: number | null;
22762
23042
  };
22763
23043
  Insert: {
23044
+ archive_reason?: string | null;
23045
+ archived_at?: string | null;
23046
+ archived_by?: string | null;
22764
23047
  company_name?: string | null;
22765
23048
  conflict_checked_at?: string | null;
22766
23049
  conflict_reason?: string | null;
22767
23050
  created_at?: string;
22768
23051
  created_by_role?: string | null;
23052
+ customer_address?: string | null;
22769
23053
  customer_email?: string | null;
22770
23054
  customer_name?: string | null;
22771
23055
  end_time: string;
@@ -22777,7 +23061,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22777
23061
  invoiced_at?: string | null;
22778
23062
  notes?: string | null;
22779
23063
  number_of_people?: number;
23064
+ overridden_at?: string | null;
23065
+ overridden_by?: string | null;
23066
+ override_reason?: string | null;
23067
+ price_override?: boolean;
22780
23068
  room_id: string;
23069
+ room_price_override?: number | null;
22781
23070
  start_time: string;
22782
23071
  status?: string;
22783
23072
  total_excl_vat?: number | null;
@@ -22786,11 +23075,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22786
23075
  vat_amount?: number | null;
22787
23076
  };
22788
23077
  Update: {
23078
+ archive_reason?: string | null;
23079
+ archived_at?: string | null;
23080
+ archived_by?: string | null;
22789
23081
  company_name?: string | null;
22790
23082
  conflict_checked_at?: string | null;
22791
23083
  conflict_reason?: string | null;
22792
23084
  created_at?: string;
22793
23085
  created_by_role?: string | null;
23086
+ customer_address?: string | null;
22794
23087
  customer_email?: string | null;
22795
23088
  customer_name?: string | null;
22796
23089
  end_time?: string;
@@ -22802,7 +23095,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
22802
23095
  invoiced_at?: string | null;
22803
23096
  notes?: string | null;
22804
23097
  number_of_people?: number;
23098
+ overridden_at?: string | null;
23099
+ overridden_by?: string | null;
23100
+ override_reason?: string | null;
23101
+ price_override?: boolean;
22805
23102
  room_id?: string;
23103
+ room_price_override?: number | null;
22806
23104
  start_time?: string;
22807
23105
  status?: string;
22808
23106
  total_excl_vat?: number | null;
@@ -23631,8 +23929,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23631
23929
  customers: {
23632
23930
  Row: {
23633
23931
  address: string | null;
23932
+ address_line1: string | null;
23933
+ address_line2: string | null;
23934
+ address_type: string | null;
23935
+ attention_to: string | null;
23936
+ bank_account_holder: string | null;
23937
+ bank_account_number: string | null;
23938
+ bank_address_line1: string | null;
23939
+ bank_address_line2: string | null;
23940
+ bank_bic: string | null;
23941
+ bank_city: string | null;
23942
+ bank_country: string | null;
23943
+ bank_house_number: string | null;
23944
+ bank_iban: string | null;
23945
+ bank_name: string | null;
23946
+ bank_national_code: string | null;
23947
+ bank_postal_code: string | null;
23948
+ bank_state: string | null;
23949
+ billing_email: string | null;
23634
23950
  bio: string | null;
23635
23951
  city: string | null;
23952
+ coc_number: string | null;
23636
23953
  commercial_name: string | null;
23637
23954
  company_name: string;
23638
23955
  connection_status: string;
@@ -23641,21 +23958,28 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23641
23958
  created_at: string;
23642
23959
  custom_fields: import("../integrations/supabase/types").Json;
23643
23960
  customer_class: string | null;
23961
+ customer_number: string | null;
23962
+ discount_days: number | null;
23963
+ discount_percentage: number | null;
23644
23964
  email: string | null;
23645
23965
  external_id: string | null;
23966
+ fax: string | null;
23646
23967
  floriday_connection_id: string | null;
23647
23968
  floriday_organization_id: string | null;
23648
23969
  floriday_raw: import("../integrations/supabase/types").Json | null;
23649
23970
  gln: string | null;
23650
23971
  house_number: string | null;
23972
+ icp_country_code: string | null;
23651
23973
  id: string;
23652
23974
  is_active: boolean;
23975
+ language: string | null;
23653
23976
  last_synced_at: string | null;
23654
23977
  logo_url: string | null;
23655
23978
  markets: string[];
23656
23979
  notes: string | null;
23657
23980
  organization_type: string | null;
23658
23981
  payment_methods: string[];
23982
+ payment_term_days: number | null;
23659
23983
  phone: string | null;
23660
23984
  postal_code: string | null;
23661
23985
  product_groups: string[];
@@ -23666,13 +23990,33 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23666
23990
  sync_status: string;
23667
23991
  trade_forms: string[];
23668
23992
  updated_at: string;
23993
+ vat_display: string | null;
23669
23994
  vat_number: string | null;
23670
23995
  website: string | null;
23671
23996
  };
23672
23997
  Insert: {
23673
23998
  address?: string | null;
23999
+ address_line1?: string | null;
24000
+ address_line2?: string | null;
24001
+ address_type?: string | null;
24002
+ attention_to?: string | null;
24003
+ bank_account_holder?: string | null;
24004
+ bank_account_number?: string | null;
24005
+ bank_address_line1?: string | null;
24006
+ bank_address_line2?: string | null;
24007
+ bank_bic?: string | null;
24008
+ bank_city?: string | null;
24009
+ bank_country?: string | null;
24010
+ bank_house_number?: string | null;
24011
+ bank_iban?: string | null;
24012
+ bank_name?: string | null;
24013
+ bank_national_code?: string | null;
24014
+ bank_postal_code?: string | null;
24015
+ bank_state?: string | null;
24016
+ billing_email?: string | null;
23674
24017
  bio?: string | null;
23675
24018
  city?: string | null;
24019
+ coc_number?: string | null;
23676
24020
  commercial_name?: string | null;
23677
24021
  company_name: string;
23678
24022
  connection_status?: string;
@@ -23681,21 +24025,28 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23681
24025
  created_at?: string;
23682
24026
  custom_fields?: import("../integrations/supabase/types").Json;
23683
24027
  customer_class?: string | null;
24028
+ customer_number?: string | null;
24029
+ discount_days?: number | null;
24030
+ discount_percentage?: number | null;
23684
24031
  email?: string | null;
23685
24032
  external_id?: string | null;
24033
+ fax?: string | null;
23686
24034
  floriday_connection_id?: string | null;
23687
24035
  floriday_organization_id?: string | null;
23688
24036
  floriday_raw?: import("../integrations/supabase/types").Json | null;
23689
24037
  gln?: string | null;
23690
24038
  house_number?: string | null;
24039
+ icp_country_code?: string | null;
23691
24040
  id?: string;
23692
24041
  is_active?: boolean;
24042
+ language?: string | null;
23693
24043
  last_synced_at?: string | null;
23694
24044
  logo_url?: string | null;
23695
24045
  markets?: string[];
23696
24046
  notes?: string | null;
23697
24047
  organization_type?: string | null;
23698
24048
  payment_methods?: string[];
24049
+ payment_term_days?: number | null;
23699
24050
  phone?: string | null;
23700
24051
  postal_code?: string | null;
23701
24052
  product_groups?: string[];
@@ -23706,13 +24057,33 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23706
24057
  sync_status?: string;
23707
24058
  trade_forms?: string[];
23708
24059
  updated_at?: string;
24060
+ vat_display?: string | null;
23709
24061
  vat_number?: string | null;
23710
24062
  website?: string | null;
23711
24063
  };
23712
24064
  Update: {
23713
24065
  address?: string | null;
24066
+ address_line1?: string | null;
24067
+ address_line2?: string | null;
24068
+ address_type?: string | null;
24069
+ attention_to?: string | null;
24070
+ bank_account_holder?: string | null;
24071
+ bank_account_number?: string | null;
24072
+ bank_address_line1?: string | null;
24073
+ bank_address_line2?: string | null;
24074
+ bank_bic?: string | null;
24075
+ bank_city?: string | null;
24076
+ bank_country?: string | null;
24077
+ bank_house_number?: string | null;
24078
+ bank_iban?: string | null;
24079
+ bank_name?: string | null;
24080
+ bank_national_code?: string | null;
24081
+ bank_postal_code?: string | null;
24082
+ bank_state?: string | null;
24083
+ billing_email?: string | null;
23714
24084
  bio?: string | null;
23715
24085
  city?: string | null;
24086
+ coc_number?: string | null;
23716
24087
  commercial_name?: string | null;
23717
24088
  company_name?: string;
23718
24089
  connection_status?: string;
@@ -23721,21 +24092,28 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23721
24092
  created_at?: string;
23722
24093
  custom_fields?: import("../integrations/supabase/types").Json;
23723
24094
  customer_class?: string | null;
24095
+ customer_number?: string | null;
24096
+ discount_days?: number | null;
24097
+ discount_percentage?: number | null;
23724
24098
  email?: string | null;
23725
24099
  external_id?: string | null;
24100
+ fax?: string | null;
23726
24101
  floriday_connection_id?: string | null;
23727
24102
  floriday_organization_id?: string | null;
23728
24103
  floriday_raw?: import("../integrations/supabase/types").Json | null;
23729
24104
  gln?: string | null;
23730
24105
  house_number?: string | null;
24106
+ icp_country_code?: string | null;
23731
24107
  id?: string;
23732
24108
  is_active?: boolean;
24109
+ language?: string | null;
23733
24110
  last_synced_at?: string | null;
23734
24111
  logo_url?: string | null;
23735
24112
  markets?: string[];
23736
24113
  notes?: string | null;
23737
24114
  organization_type?: string | null;
23738
24115
  payment_methods?: string[];
24116
+ payment_term_days?: number | null;
23739
24117
  phone?: string | null;
23740
24118
  postal_code?: string | null;
23741
24119
  product_groups?: string[];
@@ -23746,6 +24124,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
23746
24124
  sync_status?: string;
23747
24125
  trade_forms?: string[];
23748
24126
  updated_at?: string;
24127
+ vat_display?: string | null;
23749
24128
  vat_number?: string | null;
23750
24129
  website?: string | null;
23751
24130
  };
@@ -29702,6 +30081,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
29702
30081
  };
29703
30082
  profiles: {
29704
30083
  Row: {
30084
+ address: string | null;
29705
30085
  created_at: string;
29706
30086
  display_name: string | null;
29707
30087
  email: string | null;
@@ -29712,6 +30092,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
29712
30092
  updated_at: string;
29713
30093
  };
29714
30094
  Insert: {
30095
+ address?: string | null;
29715
30096
  created_at?: string;
29716
30097
  display_name?: string | null;
29717
30098
  email?: string | null;
@@ -29722,6 +30103,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
29722
30103
  updated_at?: string;
29723
30104
  };
29724
30105
  Update: {
30106
+ address?: string | null;
29725
30107
  created_at?: string;
29726
30108
  display_name?: string | null;
29727
30109
  email?: string | null;
@@ -32762,7 +33144,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
32762
33144
  };
32763
33145
  cleanup_old_bookings: {
32764
33146
  Args: never;
32765
- Returns: number;
33147
+ Returns: undefined;
32766
33148
  };
32767
33149
  consume_floriday_rate_limit: {
32768
33150
  Args: {
@@ -33617,6 +33999,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
33617
33999
  };
33618
34000
  Returns: string;
33619
34001
  };
34002
+ upsert_auto_fulfillment_log: {
34003
+ Args: {
34004
+ p_connection_id: string;
34005
+ p_error?: string;
34006
+ p_fulfillment_order_id?: string;
34007
+ p_reason?: string;
34008
+ p_sales_order_id: string;
34009
+ p_status: string;
34010
+ };
34011
+ Returns: undefined;
34012
+ };
33620
34013
  };
33621
34014
  Enums: {
33622
34015
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";