@flowselections/floriday-klanten-module 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
  2. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/ImportKlanten.js +406 -0
  4. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/KlantenOverzicht.js +2 -2
  6. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  7. package/dist-lib/components/klanten/NieuweKlant.js +10 -1
  8. package/dist-lib/index.d.ts +1 -0
  9. package/dist-lib/index.d.ts.map +1 -1
  10. package/dist-lib/index.js +1 -0
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +372 -1
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +372 -1
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.d.ts +372 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/types.d.ts +376 -1
  18. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  19. package/dist-lib/lib/accounting.functions.d.ts +1116 -3
  20. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/customer-analytics.functions.d.ts +372 -1
  22. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/customer-schemas.d.ts +147 -0
  24. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  25. package/dist-lib/lib/customer-schemas.js +64 -7
  26. package/dist-lib/lib/customers.functions.d.ts +14160 -8
  27. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.js +76 -17
  29. package/dist-lib/lib/delivery-locations.functions.d.ts +1488 -4
  30. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/external-customers.functions.d.ts +1488 -4
  32. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-discounts.functions.d.ts +744 -2
  34. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/local-discounts.functions.d.ts +2604 -7
  36. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/overdue-invoices.functions.d.ts +372 -1
  38. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  39. package/package.json +9 -2
@@ -9,6 +9,8 @@ export type Database = {
9
9
  Tables: {
10
10
  afhandeling_settings: {
11
11
  Row: {
12
+ auto_print_delivery_note: boolean;
13
+ auto_process_paused: boolean;
12
14
  created_at: string;
13
15
  extra_pick_days_with_stickers: number;
14
16
  id: string;
@@ -24,6 +26,8 @@ export type Database = {
24
26
  user_id: string;
25
27
  };
26
28
  Insert: {
29
+ auto_print_delivery_note?: boolean;
30
+ auto_process_paused?: boolean;
27
31
  created_at?: string;
28
32
  extra_pick_days_with_stickers?: number;
29
33
  id?: string;
@@ -39,6 +43,8 @@ export type Database = {
39
43
  user_id: string;
40
44
  };
41
45
  Update: {
46
+ auto_print_delivery_note?: boolean;
47
+ auto_process_paused?: boolean;
42
48
  created_at?: string;
43
49
  extra_pick_days_with_stickers?: number;
44
50
  id?: string;
@@ -271,6 +277,9 @@ export type Database = {
271
277
  created_at: string;
272
278
  extra_id: string;
273
279
  id: string;
280
+ original_unit_price: number | null;
281
+ override_reason: string | null;
282
+ override_unit_price: number | null;
274
283
  quantity: number;
275
284
  total_price: number;
276
285
  unit_price: number;
@@ -280,6 +289,9 @@ export type Database = {
280
289
  created_at?: string;
281
290
  extra_id: string;
282
291
  id?: string;
292
+ original_unit_price?: number | null;
293
+ override_reason?: string | null;
294
+ override_unit_price?: number | null;
283
295
  quantity?: number;
284
296
  total_price?: number;
285
297
  unit_price?: number;
@@ -289,6 +301,9 @@ export type Database = {
289
301
  created_at?: string;
290
302
  extra_id?: string;
291
303
  id?: string;
304
+ original_unit_price?: number | null;
305
+ override_reason?: string | null;
306
+ override_unit_price?: number | null;
292
307
  quantity?: number;
293
308
  total_price?: number;
294
309
  unit_price?: number;
@@ -312,11 +327,15 @@ export type Database = {
312
327
  };
313
328
  bookings: {
314
329
  Row: {
330
+ archive_reason: string | null;
331
+ archived_at: string | null;
332
+ archived_by: string | null;
315
333
  company_name: string | null;
316
334
  conflict_checked_at: string | null;
317
335
  conflict_reason: string | null;
318
336
  created_at: string;
319
337
  created_by_role: string | null;
338
+ customer_address: string | null;
320
339
  customer_email: string | null;
321
340
  customer_name: string | null;
322
341
  end_time: string;
@@ -328,7 +347,12 @@ export type Database = {
328
347
  invoiced_at: string | null;
329
348
  notes: string | null;
330
349
  number_of_people: number;
350
+ overridden_at: string | null;
351
+ overridden_by: string | null;
352
+ override_reason: string | null;
353
+ price_override: boolean;
331
354
  room_id: string;
355
+ room_price_override: number | null;
332
356
  start_time: string;
333
357
  status: string;
334
358
  total_excl_vat: number | null;
@@ -337,11 +361,15 @@ export type Database = {
337
361
  vat_amount: number | null;
338
362
  };
339
363
  Insert: {
364
+ archive_reason?: string | null;
365
+ archived_at?: string | null;
366
+ archived_by?: string | null;
340
367
  company_name?: string | null;
341
368
  conflict_checked_at?: string | null;
342
369
  conflict_reason?: string | null;
343
370
  created_at?: string;
344
371
  created_by_role?: string | null;
372
+ customer_address?: string | null;
345
373
  customer_email?: string | null;
346
374
  customer_name?: string | null;
347
375
  end_time: string;
@@ -353,7 +381,12 @@ export type Database = {
353
381
  invoiced_at?: string | null;
354
382
  notes?: string | null;
355
383
  number_of_people?: number;
384
+ overridden_at?: string | null;
385
+ overridden_by?: string | null;
386
+ override_reason?: string | null;
387
+ price_override?: boolean;
356
388
  room_id: string;
389
+ room_price_override?: number | null;
357
390
  start_time: string;
358
391
  status?: string;
359
392
  total_excl_vat?: number | null;
@@ -362,11 +395,15 @@ export type Database = {
362
395
  vat_amount?: number | null;
363
396
  };
364
397
  Update: {
398
+ archive_reason?: string | null;
399
+ archived_at?: string | null;
400
+ archived_by?: string | null;
365
401
  company_name?: string | null;
366
402
  conflict_checked_at?: string | null;
367
403
  conflict_reason?: string | null;
368
404
  created_at?: string;
369
405
  created_by_role?: string | null;
406
+ customer_address?: string | null;
370
407
  customer_email?: string | null;
371
408
  customer_name?: string | null;
372
409
  end_time?: string;
@@ -378,7 +415,12 @@ export type Database = {
378
415
  invoiced_at?: string | null;
379
416
  notes?: string | null;
380
417
  number_of_people?: number;
418
+ overridden_at?: string | null;
419
+ overridden_by?: string | null;
420
+ override_reason?: string | null;
421
+ price_override?: boolean;
381
422
  room_id?: string;
423
+ room_price_override?: number | null;
382
424
  start_time?: string;
383
425
  status?: string;
384
426
  total_excl_vat?: number | null;
@@ -1230,8 +1272,27 @@ export type Database = {
1230
1272
  customers: {
1231
1273
  Row: {
1232
1274
  address: string | null;
1275
+ address_line1: string | null;
1276
+ address_line2: string | null;
1277
+ address_type: string | null;
1278
+ attention_to: string | null;
1279
+ bank_account_holder: string | null;
1280
+ bank_account_number: string | null;
1281
+ bank_address_line1: string | null;
1282
+ bank_address_line2: string | null;
1283
+ bank_bic: string | null;
1284
+ bank_city: string | null;
1285
+ bank_country: string | null;
1286
+ bank_house_number: string | null;
1287
+ bank_iban: string | null;
1288
+ bank_name: string | null;
1289
+ bank_national_code: string | null;
1290
+ bank_postal_code: string | null;
1291
+ bank_state: string | null;
1292
+ billing_email: string | null;
1233
1293
  bio: string | null;
1234
1294
  city: string | null;
1295
+ coc_number: string | null;
1235
1296
  commercial_name: string | null;
1236
1297
  company_name: string;
1237
1298
  connection_status: string;
@@ -1240,21 +1301,28 @@ export type Database = {
1240
1301
  created_at: string;
1241
1302
  custom_fields: Json;
1242
1303
  customer_class: string | null;
1304
+ customer_number: string | null;
1305
+ discount_days: number | null;
1306
+ discount_percentage: number | null;
1243
1307
  email: string | null;
1244
1308
  external_id: string | null;
1309
+ fax: string | null;
1245
1310
  floriday_connection_id: string | null;
1246
1311
  floriday_organization_id: string | null;
1247
1312
  floriday_raw: Json | null;
1248
1313
  gln: string | null;
1249
1314
  house_number: string | null;
1315
+ icp_country_code: string | null;
1250
1316
  id: string;
1251
1317
  is_active: boolean;
1318
+ language: string | null;
1252
1319
  last_synced_at: string | null;
1253
1320
  logo_url: string | null;
1254
1321
  markets: string[];
1255
1322
  notes: string | null;
1256
1323
  organization_type: string | null;
1257
1324
  payment_methods: string[];
1325
+ payment_term_days: number | null;
1258
1326
  phone: string | null;
1259
1327
  postal_code: string | null;
1260
1328
  product_groups: string[];
@@ -1265,13 +1333,33 @@ export type Database = {
1265
1333
  sync_status: string;
1266
1334
  trade_forms: string[];
1267
1335
  updated_at: string;
1336
+ vat_display: string | null;
1268
1337
  vat_number: string | null;
1269
1338
  website: string | null;
1270
1339
  };
1271
1340
  Insert: {
1272
1341
  address?: string | null;
1342
+ address_line1?: string | null;
1343
+ address_line2?: string | null;
1344
+ address_type?: string | null;
1345
+ attention_to?: string | null;
1346
+ bank_account_holder?: string | null;
1347
+ bank_account_number?: string | null;
1348
+ bank_address_line1?: string | null;
1349
+ bank_address_line2?: string | null;
1350
+ bank_bic?: string | null;
1351
+ bank_city?: string | null;
1352
+ bank_country?: string | null;
1353
+ bank_house_number?: string | null;
1354
+ bank_iban?: string | null;
1355
+ bank_name?: string | null;
1356
+ bank_national_code?: string | null;
1357
+ bank_postal_code?: string | null;
1358
+ bank_state?: string | null;
1359
+ billing_email?: string | null;
1273
1360
  bio?: string | null;
1274
1361
  city?: string | null;
1362
+ coc_number?: string | null;
1275
1363
  commercial_name?: string | null;
1276
1364
  company_name: string;
1277
1365
  connection_status?: string;
@@ -1280,21 +1368,28 @@ export type Database = {
1280
1368
  created_at?: string;
1281
1369
  custom_fields?: Json;
1282
1370
  customer_class?: string | null;
1371
+ customer_number?: string | null;
1372
+ discount_days?: number | null;
1373
+ discount_percentage?: number | null;
1283
1374
  email?: string | null;
1284
1375
  external_id?: string | null;
1376
+ fax?: string | null;
1285
1377
  floriday_connection_id?: string | null;
1286
1378
  floriday_organization_id?: string | null;
1287
1379
  floriday_raw?: Json | null;
1288
1380
  gln?: string | null;
1289
1381
  house_number?: string | null;
1382
+ icp_country_code?: string | null;
1290
1383
  id?: string;
1291
1384
  is_active?: boolean;
1385
+ language?: string | null;
1292
1386
  last_synced_at?: string | null;
1293
1387
  logo_url?: string | null;
1294
1388
  markets?: string[];
1295
1389
  notes?: string | null;
1296
1390
  organization_type?: string | null;
1297
1391
  payment_methods?: string[];
1392
+ payment_term_days?: number | null;
1298
1393
  phone?: string | null;
1299
1394
  postal_code?: string | null;
1300
1395
  product_groups?: string[];
@@ -1305,13 +1400,33 @@ export type Database = {
1305
1400
  sync_status?: string;
1306
1401
  trade_forms?: string[];
1307
1402
  updated_at?: string;
1403
+ vat_display?: string | null;
1308
1404
  vat_number?: string | null;
1309
1405
  website?: string | null;
1310
1406
  };
1311
1407
  Update: {
1312
1408
  address?: string | null;
1409
+ address_line1?: string | null;
1410
+ address_line2?: string | null;
1411
+ address_type?: string | null;
1412
+ attention_to?: string | null;
1413
+ bank_account_holder?: string | null;
1414
+ bank_account_number?: string | null;
1415
+ bank_address_line1?: string | null;
1416
+ bank_address_line2?: string | null;
1417
+ bank_bic?: string | null;
1418
+ bank_city?: string | null;
1419
+ bank_country?: string | null;
1420
+ bank_house_number?: string | null;
1421
+ bank_iban?: string | null;
1422
+ bank_name?: string | null;
1423
+ bank_national_code?: string | null;
1424
+ bank_postal_code?: string | null;
1425
+ bank_state?: string | null;
1426
+ billing_email?: string | null;
1313
1427
  bio?: string | null;
1314
1428
  city?: string | null;
1429
+ coc_number?: string | null;
1315
1430
  commercial_name?: string | null;
1316
1431
  company_name?: string;
1317
1432
  connection_status?: string;
@@ -1320,21 +1435,28 @@ export type Database = {
1320
1435
  created_at?: string;
1321
1436
  custom_fields?: Json;
1322
1437
  customer_class?: string | null;
1438
+ customer_number?: string | null;
1439
+ discount_days?: number | null;
1440
+ discount_percentage?: number | null;
1323
1441
  email?: string | null;
1324
1442
  external_id?: string | null;
1443
+ fax?: string | null;
1325
1444
  floriday_connection_id?: string | null;
1326
1445
  floriday_organization_id?: string | null;
1327
1446
  floriday_raw?: Json | null;
1328
1447
  gln?: string | null;
1329
1448
  house_number?: string | null;
1449
+ icp_country_code?: string | null;
1330
1450
  id?: string;
1331
1451
  is_active?: boolean;
1452
+ language?: string | null;
1332
1453
  last_synced_at?: string | null;
1333
1454
  logo_url?: string | null;
1334
1455
  markets?: string[];
1335
1456
  notes?: string | null;
1336
1457
  organization_type?: string | null;
1337
1458
  payment_methods?: string[];
1459
+ payment_term_days?: number | null;
1338
1460
  phone?: string | null;
1339
1461
  postal_code?: string | null;
1340
1462
  product_groups?: string[];
@@ -1345,6 +1467,7 @@ export type Database = {
1345
1467
  sync_status?: string;
1346
1468
  trade_forms?: string[];
1347
1469
  updated_at?: string;
1470
+ vat_display?: string | null;
1348
1471
  vat_number?: string | null;
1349
1472
  website?: string | null;
1350
1473
  };
@@ -3342,6 +3465,56 @@ export type Database = {
3342
3465
  }
3343
3466
  ];
3344
3467
  };
3468
+ floriday_auto_fulfillment_log: {
3469
+ Row: {
3470
+ attempts: number;
3471
+ connection_id: string;
3472
+ created_at: string;
3473
+ error: string | null;
3474
+ fulfillment_order_id: string | null;
3475
+ id: string;
3476
+ last_attempt_at: string | null;
3477
+ reason: string | null;
3478
+ sales_order_id: string;
3479
+ status: string;
3480
+ updated_at: string;
3481
+ };
3482
+ Insert: {
3483
+ attempts?: number;
3484
+ connection_id: string;
3485
+ created_at?: string;
3486
+ error?: string | null;
3487
+ fulfillment_order_id?: string | null;
3488
+ id?: string;
3489
+ last_attempt_at?: string | null;
3490
+ reason?: string | null;
3491
+ sales_order_id: string;
3492
+ status?: string;
3493
+ updated_at?: string;
3494
+ };
3495
+ Update: {
3496
+ attempts?: number;
3497
+ connection_id?: string;
3498
+ created_at?: string;
3499
+ error?: string | null;
3500
+ fulfillment_order_id?: string | null;
3501
+ id?: string;
3502
+ last_attempt_at?: string | null;
3503
+ reason?: string | null;
3504
+ sales_order_id?: string;
3505
+ status?: string;
3506
+ updated_at?: string;
3507
+ };
3508
+ Relationships: [
3509
+ {
3510
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3511
+ columns: ["connection_id"];
3512
+ isOneToOne: false;
3513
+ referencedRelation: "floriday_connections";
3514
+ referencedColumns: ["id"];
3515
+ }
3516
+ ];
3517
+ };
3345
3518
  floriday_base_items_cache: {
3346
3519
  Row: {
3347
3520
  connection_id: string;
@@ -4488,6 +4661,24 @@ export type Database = {
4488
4661
  }
4489
4662
  ];
4490
4663
  };
4664
+ floriday_rate_limit_state: {
4665
+ Row: {
4666
+ bucket: string;
4667
+ last_refill_at: string;
4668
+ tokens: number;
4669
+ };
4670
+ Insert: {
4671
+ bucket: string;
4672
+ last_refill_at?: string;
4673
+ tokens: number;
4674
+ };
4675
+ Update: {
4676
+ bucket?: string;
4677
+ last_refill_at?: string;
4678
+ tokens?: number;
4679
+ };
4680
+ Relationships: [];
4681
+ };
4491
4682
  floriday_resource_schemas: {
4492
4683
  Row: {
4493
4684
  enums: Json;
@@ -7017,6 +7208,8 @@ export type Database = {
7017
7208
  order_date: string;
7018
7209
  order_number: string;
7019
7210
  order_source: string;
7211
+ plan_locked_at: string | null;
7212
+ plan_locked_ref: string | null;
7020
7213
  status: string;
7021
7214
  total: string;
7022
7215
  updated_at: string;
@@ -7033,6 +7226,8 @@ export type Database = {
7033
7226
  order_date?: string;
7034
7227
  order_number: string;
7035
7228
  order_source?: string;
7229
+ plan_locked_at?: string | null;
7230
+ plan_locked_ref?: string | null;
7036
7231
  status?: string;
7037
7232
  total?: string;
7038
7233
  updated_at?: string;
@@ -7049,6 +7244,8 @@ export type Database = {
7049
7244
  order_date?: string;
7050
7245
  order_number?: string;
7051
7246
  order_source?: string;
7247
+ plan_locked_at?: string | null;
7248
+ plan_locked_ref?: string | null;
7052
7249
  status?: string;
7053
7250
  total?: string;
7054
7251
  updated_at?: string;
@@ -7423,6 +7620,7 @@ export type Database = {
7423
7620
  };
7424
7621
  profiles: {
7425
7622
  Row: {
7623
+ address: string | null;
7426
7624
  created_at: string;
7427
7625
  display_name: string | null;
7428
7626
  email: string | null;
@@ -7433,6 +7631,7 @@ export type Database = {
7433
7631
  updated_at: string;
7434
7632
  };
7435
7633
  Insert: {
7634
+ address?: string | null;
7436
7635
  created_at?: string;
7437
7636
  display_name?: string | null;
7438
7637
  email?: string | null;
@@ -7443,6 +7642,7 @@ export type Database = {
7443
7642
  updated_at?: string;
7444
7643
  };
7445
7644
  Update: {
7645
+ address?: string | null;
7446
7646
  created_at?: string;
7447
7647
  display_name?: string | null;
7448
7648
  email?: string | null;
@@ -8730,6 +8930,116 @@ export type Database = {
8730
8930
  };
8731
8931
  Relationships: [];
8732
8932
  };
8933
+ trade_item_supply_lines: {
8934
+ Row: {
8935
+ available_quantity: number | null;
8936
+ connection_id: string;
8937
+ created_at: string;
8938
+ currency: string | null;
8939
+ endpoint_family: string | null;
8940
+ environment: string | null;
8941
+ id: string;
8942
+ last_error: string | null;
8943
+ last_status: number | null;
8944
+ packing_configuration_id: string | null;
8945
+ period_end: string | null;
8946
+ period_start: string | null;
8947
+ price_per_piece: number | null;
8948
+ sales_unit: string | null;
8949
+ supply_line_id: string | null;
8950
+ supply_type: string;
8951
+ trade_item_id: string;
8952
+ updated_at: string;
8953
+ user_id: string;
8954
+ week: number | null;
8955
+ year: number | null;
8956
+ };
8957
+ Insert: {
8958
+ available_quantity?: number | null;
8959
+ connection_id: string;
8960
+ created_at?: string;
8961
+ currency?: string | null;
8962
+ endpoint_family?: string | null;
8963
+ environment?: string | null;
8964
+ id?: string;
8965
+ last_error?: string | null;
8966
+ last_status?: number | null;
8967
+ packing_configuration_id?: string | null;
8968
+ period_end?: string | null;
8969
+ period_start?: string | null;
8970
+ price_per_piece?: number | null;
8971
+ sales_unit?: string | null;
8972
+ supply_line_id?: string | null;
8973
+ supply_type?: string;
8974
+ trade_item_id: string;
8975
+ updated_at?: string;
8976
+ user_id: string;
8977
+ week?: number | null;
8978
+ year?: number | null;
8979
+ };
8980
+ Update: {
8981
+ available_quantity?: number | null;
8982
+ connection_id?: string;
8983
+ created_at?: string;
8984
+ currency?: string | null;
8985
+ endpoint_family?: string | null;
8986
+ environment?: string | null;
8987
+ id?: string;
8988
+ last_error?: string | null;
8989
+ last_status?: number | null;
8990
+ packing_configuration_id?: string | null;
8991
+ period_end?: string | null;
8992
+ period_start?: string | null;
8993
+ price_per_piece?: number | null;
8994
+ sales_unit?: string | null;
8995
+ supply_line_id?: string | null;
8996
+ supply_type?: string;
8997
+ trade_item_id?: string;
8998
+ updated_at?: string;
8999
+ user_id?: string;
9000
+ week?: number | null;
9001
+ year?: number | null;
9002
+ };
9003
+ Relationships: [];
9004
+ };
9005
+ trade_item_warehouse_preferences: {
9006
+ Row: {
9007
+ connection_id: string;
9008
+ created_at: string;
9009
+ id: string;
9010
+ trade_item_id: string;
9011
+ updated_at: string;
9012
+ warehouse_id: string;
9013
+ warehouse_name: string | null;
9014
+ };
9015
+ Insert: {
9016
+ connection_id: string;
9017
+ created_at?: string;
9018
+ id?: string;
9019
+ trade_item_id: string;
9020
+ updated_at?: string;
9021
+ warehouse_id: string;
9022
+ warehouse_name?: string | null;
9023
+ };
9024
+ Update: {
9025
+ connection_id?: string;
9026
+ created_at?: string;
9027
+ id?: string;
9028
+ trade_item_id?: string;
9029
+ updated_at?: string;
9030
+ warehouse_id?: string;
9031
+ warehouse_name?: string | null;
9032
+ };
9033
+ Relationships: [
9034
+ {
9035
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
9036
+ columns: ["connection_id"];
9037
+ isOneToOne: false;
9038
+ referencedRelation: "floriday_connections";
9039
+ referencedColumns: ["id"];
9040
+ }
9041
+ ];
9042
+ };
8733
9043
  twinfield_connections: {
8734
9044
  Row: {
8735
9045
  access_token: string | null;
@@ -10449,7 +10759,19 @@ export type Database = {
10449
10759
  };
10450
10760
  cleanup_old_bookings: {
10451
10761
  Args: never;
10452
- Returns: number;
10762
+ Returns: undefined;
10763
+ };
10764
+ consume_floriday_rate_limit: {
10765
+ Args: {
10766
+ p_bucket: string;
10767
+ p_capacity: number;
10768
+ p_cost?: number;
10769
+ p_refill_per_sec: number;
10770
+ };
10771
+ Returns: {
10772
+ granted: boolean;
10773
+ wait_ms: number;
10774
+ }[];
10453
10775
  };
10454
10776
  control_get_todays_carts: {
10455
10777
  Args: never;
@@ -10531,6 +10853,12 @@ export type Database = {
10531
10853
  status: string;
10532
10854
  }[];
10533
10855
  };
10856
+ enqueue_cart_replan_if_unlocked: {
10857
+ Args: {
10858
+ p_order_id: string;
10859
+ };
10860
+ Returns: undefined;
10861
+ };
10534
10862
  ensure_trade_item_stock_row: {
10535
10863
  Args: {
10536
10864
  p_key: string;
@@ -10924,6 +11252,24 @@ export type Database = {
10924
11252
  };
10925
11253
  Returns: undefined;
10926
11254
  };
11255
+ recompute_order_status: {
11256
+ Args: {
11257
+ p_order_id: string;
11258
+ };
11259
+ Returns: undefined;
11260
+ };
11261
+ recompute_reserved_for_order: {
11262
+ Args: {
11263
+ p_order_id: string;
11264
+ };
11265
+ Returns: undefined;
11266
+ };
11267
+ recompute_reserved_stock: {
11268
+ Args: {
11269
+ p_trade_item_key: string;
11270
+ };
11271
+ Returns: undefined;
11272
+ };
10927
11273
  refresh_external_customers_grouped: {
10928
11274
  Args: never;
10929
11275
  Returns: undefined;
@@ -11238,6 +11584,24 @@ export type Database = {
11238
11584
  };
11239
11585
  Returns: string[];
11240
11586
  };
11587
+ sync_cached_packing_from_product: {
11588
+ Args: {
11589
+ p_product_id: string;
11590
+ };
11591
+ Returns: undefined;
11592
+ };
11593
+ sync_order_cart_item_packing_from_product: {
11594
+ Args: {
11595
+ p_product_id: string;
11596
+ };
11597
+ Returns: undefined;
11598
+ };
11599
+ sync_product_packing_from_floriday_cache: {
11600
+ Args: {
11601
+ p_floriday_id: string;
11602
+ };
11603
+ Returns: undefined;
11604
+ };
11241
11605
  twinfield_decrypt: {
11242
11606
  Args: {
11243
11607
  cipher: string;
@@ -11250,6 +11614,17 @@ export type Database = {
11250
11614
  };
11251
11615
  Returns: string;
11252
11616
  };
11617
+ upsert_auto_fulfillment_log: {
11618
+ Args: {
11619
+ p_connection_id: string;
11620
+ p_error?: string;
11621
+ p_fulfillment_order_id?: string;
11622
+ p_reason?: string;
11623
+ p_sales_order_id: string;
11624
+ p_status: string;
11625
+ };
11626
+ Returns: undefined;
11627
+ };
11253
11628
  };
11254
11629
  Enums: {
11255
11630
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";