@flowselections/floriday-afhandeling-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 (74) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts +12 -0
  2. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/AutoProcessStatus.js +103 -0
  4. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +3 -1
  5. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/ControleLijstPrint.js +41 -63
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.js +96 -4
  9. package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
  10. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/VervoerdersPage.js +2 -1
  12. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +3 -1
  13. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/WeekAgendaView.js +58 -17
  15. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +2 -1
  16. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  17. package/dist-lib/components/pickstation/PakbonTemplate.js +20 -17
  18. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
  19. package/dist-lib/components/pickstation/PickstationPage.js +57 -8
  20. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  21. package/dist-lib/components/settings/AfhandelingSettingsCard.js +14 -2
  22. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  23. package/dist-lib/hooks/useOrderPlanning.js +28 -11
  24. package/dist-lib/index.d.ts +3 -0
  25. package/dist-lib/index.d.ts.map +1 -1
  26. package/dist-lib/index.js +3 -0
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts +605 -4
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.d.ts +605 -4
  30. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.server.d.ts +605 -4
  32. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/types.d.ts +613 -4
  34. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  35. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1222 -8
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/afhandelingSettings.functions.js +28 -1
  38. package/dist-lib/lib/carrierPlanning.d.ts +25 -0
  39. package/dist-lib/lib/carrierPlanning.d.ts.map +1 -0
  40. package/dist-lib/lib/carrierPlanning.js +65 -0
  41. package/dist-lib/lib/carrierSignupMail.server.d.ts +0 -2
  42. package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -1
  43. package/dist-lib/lib/carrierSignupMail.server.js +53 -216
  44. package/dist-lib/lib/carriers.functions.d.ts +3025 -20
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/carriers.functions.js +5 -0
  47. package/dist-lib/lib/cartAssignments.functions.d.ts +3025 -20
  48. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/cartControl.functions.d.ts +6050 -40
  50. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/cartControl.functions.js +1 -1
  52. package/dist-lib/lib/cartRescheduling.d.ts.map +1 -1
  53. package/dist-lib/lib/cartRescheduling.js +8 -6
  54. package/dist-lib/lib/countries.d.ts +2 -0
  55. package/dist-lib/lib/countries.d.ts.map +1 -1
  56. package/dist-lib/lib/countries.js +51 -0
  57. package/dist-lib/lib/deliveryNotePrint.d.ts +26 -0
  58. package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -0
  59. package/dist-lib/lib/deliveryNotePrint.js +172 -0
  60. package/dist-lib/lib/floriday.functions.d.ts +613 -4
  61. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday.functions.js +126 -8
  63. package/dist-lib/lib/floridayAutoProcess.d.ts +30 -0
  64. package/dist-lib/lib/floridayAutoProcess.d.ts.map +1 -0
  65. package/dist-lib/lib/floridayAutoProcess.js +70 -0
  66. package/dist-lib/lib/pickstationI18n.d.ts +46 -0
  67. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  68. package/dist-lib/lib/pickstationI18n.js +251 -0
  69. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  70. package/dist-lib/lib/pickstationOrders.server.js +55 -19
  71. package/dist-lib/lib/planning.d.ts +34 -0
  72. package/dist-lib/lib/planning.d.ts.map +1 -1
  73. package/dist-lib/lib/planning.js +84 -0
  74. package/package.json +2 -2
@@ -9,13 +9,22 @@ export interface AfhandelingSettings {
9
9
  signupMailPurpose: string;
10
10
  /** ISO-dagnummers (1=ma … 7=zo) waarop gepickt mag worden. */
11
11
  pickWeekdays: number[];
12
+ /** Extra werkdagen pickduur wanneer een order stickers bevat. */
13
+ extraPickDaysWithStickers: number;
14
+ /** Pauzeert de automatische Floriday-verwerking (acknowledge → delivery order → fulfillment). */
15
+ autoProcessPaused: boolean;
16
+ /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */
17
+ autoPrintDeliveryNote: boolean;
12
18
  }
13
19
  export declare const getAfhandelingSettings: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
14
20
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
15
21
  Tables: {
16
22
  afhandeling_settings: {
17
23
  Row: {
24
+ auto_print_delivery_note: boolean;
25
+ auto_process_paused: boolean;
18
26
  created_at: string;
27
+ extra_pick_days_with_stickers: number;
19
28
  id: string;
20
29
  max_workdays_earlier_pick: number;
21
30
  pick_days_before_transport: number;
@@ -29,7 +38,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29
38
  user_id: string;
30
39
  };
31
40
  Insert: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
32
43
  created_at?: string;
44
+ extra_pick_days_with_stickers?: number;
33
45
  id?: string;
34
46
  max_workdays_earlier_pick?: number;
35
47
  pick_days_before_transport?: number;
@@ -43,7 +55,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
43
55
  user_id: string;
44
56
  };
45
57
  Update: {
58
+ auto_print_delivery_note?: boolean;
59
+ auto_process_paused?: boolean;
46
60
  created_at?: string;
61
+ extra_pick_days_with_stickers?: number;
47
62
  id?: string;
48
63
  max_workdays_earlier_pick?: number;
49
64
  pick_days_before_transport?: number;
@@ -274,6 +289,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
274
289
  created_at: string;
275
290
  extra_id: string;
276
291
  id: string;
292
+ original_unit_price: number | null;
293
+ override_reason: string | null;
294
+ override_unit_price: number | null;
277
295
  quantity: number;
278
296
  total_price: number;
279
297
  unit_price: number;
@@ -283,6 +301,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
283
301
  created_at?: string;
284
302
  extra_id: string;
285
303
  id?: string;
304
+ original_unit_price?: number | null;
305
+ override_reason?: string | null;
306
+ override_unit_price?: number | null;
286
307
  quantity?: number;
287
308
  total_price?: number;
288
309
  unit_price?: number;
@@ -292,6 +313,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
292
313
  created_at?: string;
293
314
  extra_id?: string;
294
315
  id?: string;
316
+ original_unit_price?: number | null;
317
+ override_reason?: string | null;
318
+ override_unit_price?: number | null;
295
319
  quantity?: number;
296
320
  total_price?: number;
297
321
  unit_price?: number;
@@ -312,11 +336,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
312
336
  };
313
337
  bookings: {
314
338
  Row: {
339
+ archive_reason: string | null;
340
+ archived_at: string | null;
341
+ archived_by: string | null;
315
342
  company_name: string | null;
316
343
  conflict_checked_at: string | null;
317
344
  conflict_reason: string | null;
318
345
  created_at: string;
319
346
  created_by_role: string | null;
347
+ customer_address: string | null;
320
348
  customer_email: string | null;
321
349
  customer_name: string | null;
322
350
  end_time: string;
@@ -328,7 +356,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
328
356
  invoiced_at: string | null;
329
357
  notes: string | null;
330
358
  number_of_people: number;
359
+ overridden_at: string | null;
360
+ overridden_by: string | null;
361
+ override_reason: string | null;
362
+ price_override: boolean;
331
363
  room_id: string;
364
+ room_price_override: number | null;
332
365
  start_time: string;
333
366
  status: string;
334
367
  total_excl_vat: number | null;
@@ -337,11 +370,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
337
370
  vat_amount: number | null;
338
371
  };
339
372
  Insert: {
373
+ archive_reason?: string | null;
374
+ archived_at?: string | null;
375
+ archived_by?: string | null;
340
376
  company_name?: string | null;
341
377
  conflict_checked_at?: string | null;
342
378
  conflict_reason?: string | null;
343
379
  created_at?: string;
344
380
  created_by_role?: string | null;
381
+ customer_address?: string | null;
345
382
  customer_email?: string | null;
346
383
  customer_name?: string | null;
347
384
  end_time: string;
@@ -353,7 +390,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
353
390
  invoiced_at?: string | null;
354
391
  notes?: string | null;
355
392
  number_of_people?: number;
393
+ overridden_at?: string | null;
394
+ overridden_by?: string | null;
395
+ override_reason?: string | null;
396
+ price_override?: boolean;
356
397
  room_id: string;
398
+ room_price_override?: number | null;
357
399
  start_time: string;
358
400
  status?: string;
359
401
  total_excl_vat?: number | null;
@@ -362,11 +404,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
362
404
  vat_amount?: number | null;
363
405
  };
364
406
  Update: {
407
+ archive_reason?: string | null;
408
+ archived_at?: string | null;
409
+ archived_by?: string | null;
365
410
  company_name?: string | null;
366
411
  conflict_checked_at?: string | null;
367
412
  conflict_reason?: string | null;
368
413
  created_at?: string;
369
414
  created_by_role?: string | null;
415
+ customer_address?: string | null;
370
416
  customer_email?: string | null;
371
417
  customer_name?: string | null;
372
418
  end_time?: string;
@@ -378,7 +424,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
378
424
  invoiced_at?: string | null;
379
425
  notes?: string | null;
380
426
  number_of_people?: number;
427
+ overridden_at?: string | null;
428
+ overridden_by?: string | null;
429
+ override_reason?: string | null;
430
+ price_override?: boolean;
381
431
  room_id?: string;
432
+ room_price_override?: number | null;
382
433
  start_time?: string;
383
434
  status?: string;
384
435
  total_excl_vat?: number | null;
@@ -835,6 +886,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
835
886
  };
836
887
  Relationships: [];
837
888
  };
889
+ cart_replan_queue: {
890
+ Row: {
891
+ attempts: number;
892
+ last_error: string | null;
893
+ order_id: string;
894
+ processed_at: string | null;
895
+ requested_at: string;
896
+ };
897
+ Insert: {
898
+ attempts?: number;
899
+ last_error?: string | null;
900
+ order_id: string;
901
+ processed_at?: string | null;
902
+ requested_at?: string;
903
+ };
904
+ Update: {
905
+ attempts?: number;
906
+ last_error?: string | null;
907
+ order_id?: string;
908
+ processed_at?: string | null;
909
+ requested_at?: string;
910
+ };
911
+ Relationships: [{
912
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
913
+ columns: ["order_id"];
914
+ isOneToOne: true;
915
+ referencedRelation: "orders";
916
+ referencedColumns: ["id"];
917
+ }];
918
+ };
838
919
  collections: {
839
920
  Row: {
840
921
  created_at: string;
@@ -1177,8 +1258,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1177
1258
  customers: {
1178
1259
  Row: {
1179
1260
  address: string | null;
1261
+ address_line1: string | null;
1262
+ address_line2: string | null;
1263
+ address_type: string | null;
1264
+ attention_to: string | null;
1265
+ bank_account_holder: string | null;
1266
+ bank_account_number: string | null;
1267
+ bank_address_line1: string | null;
1268
+ bank_address_line2: string | null;
1269
+ bank_bic: string | null;
1270
+ bank_city: string | null;
1271
+ bank_country: string | null;
1272
+ bank_house_number: string | null;
1273
+ bank_iban: string | null;
1274
+ bank_name: string | null;
1275
+ bank_national_code: string | null;
1276
+ bank_postal_code: string | null;
1277
+ bank_state: string | null;
1278
+ billing_email: string | null;
1180
1279
  bio: string | null;
1181
1280
  city: string | null;
1281
+ coc_number: string | null;
1182
1282
  commercial_name: string | null;
1183
1283
  company_name: string;
1184
1284
  connection_status: string;
@@ -1187,21 +1287,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1187
1287
  created_at: string;
1188
1288
  custom_fields: import("../integrations/supabase/types").Json;
1189
1289
  customer_class: string | null;
1290
+ customer_number: string | null;
1291
+ discount_days: number | null;
1292
+ discount_percentage: number | null;
1190
1293
  email: string | null;
1191
1294
  external_id: string | null;
1295
+ fax: string | null;
1192
1296
  floriday_connection_id: string | null;
1193
1297
  floriday_organization_id: string | null;
1194
1298
  floriday_raw: import("../integrations/supabase/types").Json | null;
1195
1299
  gln: string | null;
1196
1300
  house_number: string | null;
1301
+ icp_country_code: string | null;
1197
1302
  id: string;
1198
1303
  is_active: boolean;
1304
+ language: string | null;
1199
1305
  last_synced_at: string | null;
1200
1306
  logo_url: string | null;
1201
1307
  markets: string[];
1202
1308
  notes: string | null;
1203
1309
  organization_type: string | null;
1204
1310
  payment_methods: string[];
1311
+ payment_term_days: number | null;
1205
1312
  phone: string | null;
1206
1313
  postal_code: string | null;
1207
1314
  product_groups: string[];
@@ -1212,13 +1319,33 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1212
1319
  sync_status: string;
1213
1320
  trade_forms: string[];
1214
1321
  updated_at: string;
1322
+ vat_display: string | null;
1215
1323
  vat_number: string | null;
1216
1324
  website: string | null;
1217
1325
  };
1218
1326
  Insert: {
1219
1327
  address?: string | null;
1328
+ address_line1?: string | null;
1329
+ address_line2?: string | null;
1330
+ address_type?: string | null;
1331
+ attention_to?: string | null;
1332
+ bank_account_holder?: string | null;
1333
+ bank_account_number?: string | null;
1334
+ bank_address_line1?: string | null;
1335
+ bank_address_line2?: string | null;
1336
+ bank_bic?: string | null;
1337
+ bank_city?: string | null;
1338
+ bank_country?: string | null;
1339
+ bank_house_number?: string | null;
1340
+ bank_iban?: string | null;
1341
+ bank_name?: string | null;
1342
+ bank_national_code?: string | null;
1343
+ bank_postal_code?: string | null;
1344
+ bank_state?: string | null;
1345
+ billing_email?: string | null;
1220
1346
  bio?: string | null;
1221
1347
  city?: string | null;
1348
+ coc_number?: string | null;
1222
1349
  commercial_name?: string | null;
1223
1350
  company_name: string;
1224
1351
  connection_status?: string;
@@ -1227,21 +1354,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1227
1354
  created_at?: string;
1228
1355
  custom_fields?: import("../integrations/supabase/types").Json;
1229
1356
  customer_class?: string | null;
1357
+ customer_number?: string | null;
1358
+ discount_days?: number | null;
1359
+ discount_percentage?: number | null;
1230
1360
  email?: string | null;
1231
1361
  external_id?: string | null;
1362
+ fax?: string | null;
1232
1363
  floriday_connection_id?: string | null;
1233
1364
  floriday_organization_id?: string | null;
1234
1365
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1235
1366
  gln?: string | null;
1236
1367
  house_number?: string | null;
1368
+ icp_country_code?: string | null;
1237
1369
  id?: string;
1238
1370
  is_active?: boolean;
1371
+ language?: string | null;
1239
1372
  last_synced_at?: string | null;
1240
1373
  logo_url?: string | null;
1241
1374
  markets?: string[];
1242
1375
  notes?: string | null;
1243
1376
  organization_type?: string | null;
1244
1377
  payment_methods?: string[];
1378
+ payment_term_days?: number | null;
1245
1379
  phone?: string | null;
1246
1380
  postal_code?: string | null;
1247
1381
  product_groups?: string[];
@@ -1252,13 +1386,33 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1252
1386
  sync_status?: string;
1253
1387
  trade_forms?: string[];
1254
1388
  updated_at?: string;
1389
+ vat_display?: string | null;
1255
1390
  vat_number?: string | null;
1256
1391
  website?: string | null;
1257
1392
  };
1258
1393
  Update: {
1259
1394
  address?: string | null;
1395
+ address_line1?: string | null;
1396
+ address_line2?: string | null;
1397
+ address_type?: string | null;
1398
+ attention_to?: string | null;
1399
+ bank_account_holder?: string | null;
1400
+ bank_account_number?: string | null;
1401
+ bank_address_line1?: string | null;
1402
+ bank_address_line2?: string | null;
1403
+ bank_bic?: string | null;
1404
+ bank_city?: string | null;
1405
+ bank_country?: string | null;
1406
+ bank_house_number?: string | null;
1407
+ bank_iban?: string | null;
1408
+ bank_name?: string | null;
1409
+ bank_national_code?: string | null;
1410
+ bank_postal_code?: string | null;
1411
+ bank_state?: string | null;
1412
+ billing_email?: string | null;
1260
1413
  bio?: string | null;
1261
1414
  city?: string | null;
1415
+ coc_number?: string | null;
1262
1416
  commercial_name?: string | null;
1263
1417
  company_name?: string;
1264
1418
  connection_status?: string;
@@ -1267,21 +1421,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1267
1421
  created_at?: string;
1268
1422
  custom_fields?: import("../integrations/supabase/types").Json;
1269
1423
  customer_class?: string | null;
1424
+ customer_number?: string | null;
1425
+ discount_days?: number | null;
1426
+ discount_percentage?: number | null;
1270
1427
  email?: string | null;
1271
1428
  external_id?: string | null;
1429
+ fax?: string | null;
1272
1430
  floriday_connection_id?: string | null;
1273
1431
  floriday_organization_id?: string | null;
1274
1432
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1275
1433
  gln?: string | null;
1276
1434
  house_number?: string | null;
1435
+ icp_country_code?: string | null;
1277
1436
  id?: string;
1278
1437
  is_active?: boolean;
1438
+ language?: string | null;
1279
1439
  last_synced_at?: string | null;
1280
1440
  logo_url?: string | null;
1281
1441
  markets?: string[];
1282
1442
  notes?: string | null;
1283
1443
  organization_type?: string | null;
1284
1444
  payment_methods?: string[];
1445
+ payment_term_days?: number | null;
1285
1446
  phone?: string | null;
1286
1447
  postal_code?: string | null;
1287
1448
  product_groups?: string[];
@@ -1292,6 +1453,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1292
1453
  sync_status?: string;
1293
1454
  trade_forms?: string[];
1294
1455
  updated_at?: string;
1456
+ vat_display?: string | null;
1295
1457
  vat_number?: string | null;
1296
1458
  website?: string | null;
1297
1459
  };
@@ -2960,34 +3122,52 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2960
3122
  Row: {
2961
3123
  catalog_key: string | null;
2962
3124
  catalog_url: string;
3125
+ client_id: string | null;
3126
+ client_secret_ciphertext: string | null;
3127
+ client_secret_last4: string | null;
2963
3128
  created_at: string;
2964
3129
  id: number;
2965
3130
  last_meta: import("../integrations/supabase/types").Json | null;
2966
3131
  last_test_at: string | null;
2967
3132
  last_test_error: string | null;
2968
3133
  last_test_ok: boolean | null;
3134
+ last_token_test_at: string | null;
3135
+ last_token_test_error: string | null;
3136
+ last_token_test_ok: boolean | null;
2969
3137
  updated_at: string;
2970
3138
  };
2971
3139
  Insert: {
2972
3140
  catalog_key?: string | null;
2973
3141
  catalog_url?: string;
3142
+ client_id?: string | null;
3143
+ client_secret_ciphertext?: string | null;
3144
+ client_secret_last4?: string | null;
2974
3145
  created_at?: string;
2975
3146
  id?: number;
2976
3147
  last_meta?: import("../integrations/supabase/types").Json | null;
2977
3148
  last_test_at?: string | null;
2978
3149
  last_test_error?: string | null;
2979
3150
  last_test_ok?: boolean | null;
3151
+ last_token_test_at?: string | null;
3152
+ last_token_test_error?: string | null;
3153
+ last_token_test_ok?: boolean | null;
2980
3154
  updated_at?: string;
2981
3155
  };
2982
3156
  Update: {
2983
3157
  catalog_key?: string | null;
2984
3158
  catalog_url?: string;
3159
+ client_id?: string | null;
3160
+ client_secret_ciphertext?: string | null;
3161
+ client_secret_last4?: string | null;
2985
3162
  created_at?: string;
2986
3163
  id?: number;
2987
3164
  last_meta?: import("../integrations/supabase/types").Json | null;
2988
3165
  last_test_at?: string | null;
2989
3166
  last_test_error?: string | null;
2990
3167
  last_test_ok?: boolean | null;
3168
+ last_token_test_at?: string | null;
3169
+ last_token_test_error?: string | null;
3170
+ last_token_test_ok?: boolean | null;
2991
3171
  updated_at?: string;
2992
3172
  };
2993
3173
  Relationships: [];
@@ -3220,6 +3400,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3220
3400
  referencedColumns: ["id"];
3221
3401
  }];
3222
3402
  };
3403
+ floriday_auto_fulfillment_log: {
3404
+ Row: {
3405
+ attempts: number;
3406
+ connection_id: string;
3407
+ created_at: string;
3408
+ error: string | null;
3409
+ fulfillment_order_id: string | null;
3410
+ id: string;
3411
+ last_attempt_at: string | null;
3412
+ reason: string | null;
3413
+ sales_order_id: string;
3414
+ status: string;
3415
+ updated_at: string;
3416
+ };
3417
+ Insert: {
3418
+ attempts?: number;
3419
+ connection_id: string;
3420
+ created_at?: string;
3421
+ error?: string | null;
3422
+ fulfillment_order_id?: string | null;
3423
+ id?: string;
3424
+ last_attempt_at?: string | null;
3425
+ reason?: string | null;
3426
+ sales_order_id: string;
3427
+ status?: string;
3428
+ updated_at?: string;
3429
+ };
3430
+ Update: {
3431
+ attempts?: number;
3432
+ connection_id?: string;
3433
+ created_at?: string;
3434
+ error?: string | null;
3435
+ fulfillment_order_id?: string | null;
3436
+ id?: string;
3437
+ last_attempt_at?: string | null;
3438
+ reason?: string | null;
3439
+ sales_order_id?: string;
3440
+ status?: string;
3441
+ updated_at?: string;
3442
+ };
3443
+ Relationships: [{
3444
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3445
+ columns: ["connection_id"];
3446
+ isOneToOne: false;
3447
+ referencedRelation: "floriday_connections";
3448
+ referencedColumns: ["id"];
3449
+ }];
3450
+ };
3223
3451
  floriday_base_items_cache: {
3224
3452
  Row: {
3225
3453
  connection_id: string;
@@ -4324,6 +4552,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4324
4552
  referencedColumns: ["id"];
4325
4553
  }];
4326
4554
  };
4555
+ floriday_rate_limit_state: {
4556
+ Row: {
4557
+ bucket: string;
4558
+ last_refill_at: string;
4559
+ tokens: number;
4560
+ };
4561
+ Insert: {
4562
+ bucket: string;
4563
+ last_refill_at?: string;
4564
+ tokens: number;
4565
+ };
4566
+ Update: {
4567
+ bucket?: string;
4568
+ last_refill_at?: string;
4569
+ tokens?: number;
4570
+ };
4571
+ Relationships: [];
4572
+ };
4327
4573
  floriday_resource_schemas: {
4328
4574
  Row: {
4329
4575
  enums: import("../integrations/supabase/types").Json;
@@ -4747,6 +4993,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4747
4993
  referencedColumns: ["id"];
4748
4994
  }];
4749
4995
  };
4996
+ flow_role_assignments: {
4997
+ Row: {
4998
+ created_at: string;
4999
+ id: string;
5000
+ role_id: string;
5001
+ user_id: string;
5002
+ };
5003
+ Insert: {
5004
+ created_at?: string;
5005
+ id?: string;
5006
+ role_id: string;
5007
+ user_id: string;
5008
+ };
5009
+ Update: {
5010
+ created_at?: string;
5011
+ id?: string;
5012
+ role_id?: string;
5013
+ user_id?: string;
5014
+ };
5015
+ Relationships: [{
5016
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
5017
+ columns: ["role_id"];
5018
+ isOneToOne: false;
5019
+ referencedRelation: "flow_roles";
5020
+ referencedColumns: ["id"];
5021
+ }];
5022
+ };
5023
+ flow_roles: {
5024
+ Row: {
5025
+ created_at: string;
5026
+ description: string | null;
5027
+ id: string;
5028
+ module_access: string[];
5029
+ name: string;
5030
+ updated_at: string;
5031
+ };
5032
+ Insert: {
5033
+ created_at?: string;
5034
+ description?: string | null;
5035
+ id?: string;
5036
+ module_access?: string[];
5037
+ name: string;
5038
+ updated_at?: string;
5039
+ };
5040
+ Update: {
5041
+ created_at?: string;
5042
+ description?: string | null;
5043
+ id?: string;
5044
+ module_access?: string[];
5045
+ name?: string;
5046
+ updated_at?: string;
5047
+ };
5048
+ Relationships: [];
5049
+ };
4750
5050
  imap_accounts: {
4751
5051
  Row: {
4752
5052
  created_at: string;
@@ -5378,6 +5678,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5378
5678
  matched_customer_id: string | null;
5379
5679
  message_id: string;
5380
5680
  notes: string | null;
5681
+ order_number: string | null;
5381
5682
  parsed_payload: import("../integrations/supabase/types").Json | null;
5382
5683
  reviewed_at: string | null;
5383
5684
  reviewed_by: string | null;
@@ -5393,6 +5694,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5393
5694
  matched_customer_id?: string | null;
5394
5695
  message_id: string;
5395
5696
  notes?: string | null;
5697
+ order_number?: string | null;
5396
5698
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5397
5699
  reviewed_at?: string | null;
5398
5700
  reviewed_by?: string | null;
@@ -5408,6 +5710,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5408
5710
  matched_customer_id?: string | null;
5409
5711
  message_id?: string;
5410
5712
  notes?: string | null;
5713
+ order_number?: string | null;
5411
5714
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5412
5715
  reviewed_at?: string | null;
5413
5716
  reviewed_by?: string | null;
@@ -6264,6 +6567,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6264
6567
  id: string;
6265
6568
  items: import("../integrations/supabase/types").Json;
6266
6569
  notes: string | null;
6570
+ order_number: string | null;
6267
6571
  recipient_id: string;
6268
6572
  total_amount: number;
6269
6573
  };
@@ -6277,6 +6581,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6277
6581
  id?: string;
6278
6582
  items?: import("../integrations/supabase/types").Json;
6279
6583
  notes?: string | null;
6584
+ order_number?: string | null;
6280
6585
  recipient_id: string;
6281
6586
  total_amount?: number;
6282
6587
  };
@@ -6290,6 +6595,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6290
6595
  id?: string;
6291
6596
  items?: import("../integrations/supabase/types").Json;
6292
6597
  notes?: string | null;
6598
+ order_number?: string | null;
6293
6599
  recipient_id?: string;
6294
6600
  total_amount?: number;
6295
6601
  };
@@ -6449,6 +6755,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6449
6755
  crates_per_layer: number;
6450
6756
  created_at: string;
6451
6757
  id: string;
6758
+ layer_fraction: number;
6759
+ layer_share_pct: number;
6760
+ layers_per_cart: number;
6452
6761
  order_item_id: string | null;
6453
6762
  plants_per_crate: number;
6454
6763
  product_id: string | null;
@@ -6460,6 +6769,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6460
6769
  crates_per_layer?: number;
6461
6770
  created_at?: string;
6462
6771
  id?: string;
6772
+ layer_fraction?: number;
6773
+ layer_share_pct?: number;
6774
+ layers_per_cart?: number;
6463
6775
  order_item_id?: string | null;
6464
6776
  plants_per_crate?: number;
6465
6777
  product_id?: string | null;
@@ -6471,6 +6783,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6471
6783
  crates_per_layer?: number;
6472
6784
  created_at?: string;
6473
6785
  id?: string;
6786
+ layer_fraction?: number;
6787
+ layer_share_pct?: number;
6788
+ layers_per_cart?: number;
6474
6789
  order_item_id?: string | null;
6475
6790
  plants_per_crate?: number;
6476
6791
  product_id?: string | null;
@@ -6498,33 +6813,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6498
6813
  };
6499
6814
  order_carts: {
6500
6815
  Row: {
6816
+ algorithm_version: number;
6501
6817
  cart_number: number;
6502
6818
  created_at: string;
6503
6819
  id: string;
6504
6820
  is_auto: boolean;
6505
6821
  is_complete: boolean;
6506
6822
  notes: string | null;
6823
+ occupancy_pct: number;
6507
6824
  order_id: string;
6825
+ source: string;
6826
+ total_layers_used: number;
6508
6827
  updated_at: string;
6509
6828
  };
6510
6829
  Insert: {
6830
+ algorithm_version?: number;
6511
6831
  cart_number: number;
6512
6832
  created_at?: string;
6513
6833
  id?: string;
6514
6834
  is_auto?: boolean;
6515
6835
  is_complete?: boolean;
6516
6836
  notes?: string | null;
6837
+ occupancy_pct?: number;
6517
6838
  order_id: string;
6839
+ source?: string;
6840
+ total_layers_used?: number;
6518
6841
  updated_at?: string;
6519
6842
  };
6520
6843
  Update: {
6844
+ algorithm_version?: number;
6521
6845
  cart_number?: number;
6522
6846
  created_at?: string;
6523
6847
  id?: string;
6524
6848
  is_auto?: boolean;
6525
6849
  is_complete?: boolean;
6526
6850
  notes?: string | null;
6851
+ occupancy_pct?: number;
6527
6852
  order_id?: string;
6853
+ source?: string;
6854
+ total_layers_used?: number;
6528
6855
  updated_at?: string;
6529
6856
  };
6530
6857
  Relationships: [{
@@ -6677,6 +7004,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6677
7004
  order_date: string;
6678
7005
  order_number: string;
6679
7006
  order_source: string;
7007
+ plan_locked_at: string | null;
7008
+ plan_locked_ref: string | null;
6680
7009
  status: string;
6681
7010
  total: string;
6682
7011
  updated_at: string;
@@ -6693,6 +7022,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6693
7022
  order_date?: string;
6694
7023
  order_number: string;
6695
7024
  order_source?: string;
7025
+ plan_locked_at?: string | null;
7026
+ plan_locked_ref?: string | null;
6696
7027
  status?: string;
6697
7028
  total?: string;
6698
7029
  updated_at?: string;
@@ -6709,6 +7040,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6709
7040
  order_date?: string;
6710
7041
  order_number?: string;
6711
7042
  order_source?: string;
7043
+ plan_locked_at?: string | null;
7044
+ plan_locked_ref?: string | null;
6712
7045
  status?: string;
6713
7046
  total?: string;
6714
7047
  updated_at?: string;
@@ -7077,28 +7410,34 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7077
7410
  };
7078
7411
  profiles: {
7079
7412
  Row: {
7413
+ address: string | null;
7080
7414
  created_at: string;
7081
7415
  display_name: string | null;
7082
7416
  email: string | null;
7083
7417
  id: string;
7418
+ is_superadmin: boolean;
7084
7419
  notification_preferences: import("../integrations/supabase/types").Json;
7085
7420
  tenant_id: string | null;
7086
7421
  updated_at: string;
7087
7422
  };
7088
7423
  Insert: {
7424
+ address?: string | null;
7089
7425
  created_at?: string;
7090
7426
  display_name?: string | null;
7091
7427
  email?: string | null;
7092
7428
  id: string;
7429
+ is_superadmin?: boolean;
7093
7430
  notification_preferences?: import("../integrations/supabase/types").Json;
7094
7431
  tenant_id?: string | null;
7095
7432
  updated_at?: string;
7096
7433
  };
7097
7434
  Update: {
7435
+ address?: string | null;
7098
7436
  created_at?: string;
7099
7437
  display_name?: string | null;
7100
7438
  email?: string | null;
7101
7439
  id?: string;
7440
+ is_superadmin?: boolean;
7102
7441
  notification_preferences?: import("../integrations/supabase/types").Json;
7103
7442
  tenant_id?: string | null;
7104
7443
  updated_at?: string;
@@ -7888,6 +8227,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7888
8227
  };
7889
8228
  Relationships: [];
7890
8229
  };
8230
+ sidebar_config: {
8231
+ Row: {
8232
+ id: string;
8233
+ module_order: string[];
8234
+ updated_at: string;
8235
+ };
8236
+ Insert: {
8237
+ id?: string;
8238
+ module_order?: string[];
8239
+ updated_at?: string;
8240
+ };
8241
+ Update: {
8242
+ id?: string;
8243
+ module_order?: string[];
8244
+ updated_at?: string;
8245
+ };
8246
+ Relationships: [];
8247
+ };
7891
8248
  stock_import_runs: {
7892
8249
  Row: {
7893
8250
  connection_id: string | null;
@@ -7946,7 +8303,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7946
8303
  reason: string | null;
7947
8304
  reserved_after: number | null;
7948
8305
  reserved_before: number | null;
7949
- trade_item_key: string;
8306
+ trade_item_key: string | null;
7950
8307
  };
7951
8308
  Insert: {
7952
8309
  connection_id?: string | null;
@@ -7963,7 +8320,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7963
8320
  reason?: string | null;
7964
8321
  reserved_after?: number | null;
7965
8322
  reserved_before?: number | null;
7966
- trade_item_key: string;
8323
+ trade_item_key?: string | null;
7967
8324
  };
7968
8325
  Update: {
7969
8326
  connection_id?: string | null;
@@ -7980,7 +8337,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7980
8337
  reason?: string | null;
7981
8338
  reserved_after?: number | null;
7982
8339
  reserved_before?: number | null;
7983
- trade_item_key?: string;
8340
+ trade_item_key?: string | null;
7984
8341
  };
7985
8342
  Relationships: [];
7986
8343
  };
@@ -8323,6 +8680,114 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8323
8680
  };
8324
8681
  Relationships: [];
8325
8682
  };
8683
+ trade_item_supply_lines: {
8684
+ Row: {
8685
+ available_quantity: number | null;
8686
+ connection_id: string;
8687
+ created_at: string;
8688
+ currency: string | null;
8689
+ endpoint_family: string | null;
8690
+ environment: string | null;
8691
+ id: string;
8692
+ last_error: string | null;
8693
+ last_status: number | null;
8694
+ packing_configuration_id: string | null;
8695
+ period_end: string | null;
8696
+ period_start: string | null;
8697
+ price_per_piece: number | null;
8698
+ sales_unit: string | null;
8699
+ supply_line_id: string | null;
8700
+ supply_type: string;
8701
+ trade_item_id: string;
8702
+ updated_at: string;
8703
+ user_id: string;
8704
+ week: number | null;
8705
+ year: number | null;
8706
+ };
8707
+ Insert: {
8708
+ available_quantity?: number | null;
8709
+ connection_id: string;
8710
+ created_at?: string;
8711
+ currency?: string | null;
8712
+ endpoint_family?: string | null;
8713
+ environment?: string | null;
8714
+ id?: string;
8715
+ last_error?: string | null;
8716
+ last_status?: number | null;
8717
+ packing_configuration_id?: string | null;
8718
+ period_end?: string | null;
8719
+ period_start?: string | null;
8720
+ price_per_piece?: number | null;
8721
+ sales_unit?: string | null;
8722
+ supply_line_id?: string | null;
8723
+ supply_type?: string;
8724
+ trade_item_id: string;
8725
+ updated_at?: string;
8726
+ user_id: string;
8727
+ week?: number | null;
8728
+ year?: number | null;
8729
+ };
8730
+ Update: {
8731
+ available_quantity?: number | null;
8732
+ connection_id?: string;
8733
+ created_at?: string;
8734
+ currency?: string | null;
8735
+ endpoint_family?: string | null;
8736
+ environment?: string | null;
8737
+ id?: string;
8738
+ last_error?: string | null;
8739
+ last_status?: number | null;
8740
+ packing_configuration_id?: string | null;
8741
+ period_end?: string | null;
8742
+ period_start?: string | null;
8743
+ price_per_piece?: number | null;
8744
+ sales_unit?: string | null;
8745
+ supply_line_id?: string | null;
8746
+ supply_type?: string;
8747
+ trade_item_id?: string;
8748
+ updated_at?: string;
8749
+ user_id?: string;
8750
+ week?: number | null;
8751
+ year?: number | null;
8752
+ };
8753
+ Relationships: [];
8754
+ };
8755
+ trade_item_warehouse_preferences: {
8756
+ Row: {
8757
+ connection_id: string;
8758
+ created_at: string;
8759
+ id: string;
8760
+ trade_item_id: string;
8761
+ updated_at: string;
8762
+ warehouse_id: string;
8763
+ warehouse_name: string | null;
8764
+ };
8765
+ Insert: {
8766
+ connection_id: string;
8767
+ created_at?: string;
8768
+ id?: string;
8769
+ trade_item_id: string;
8770
+ updated_at?: string;
8771
+ warehouse_id: string;
8772
+ warehouse_name?: string | null;
8773
+ };
8774
+ Update: {
8775
+ connection_id?: string;
8776
+ created_at?: string;
8777
+ id?: string;
8778
+ trade_item_id?: string;
8779
+ updated_at?: string;
8780
+ warehouse_id?: string;
8781
+ warehouse_name?: string | null;
8782
+ };
8783
+ Relationships: [{
8784
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8785
+ columns: ["connection_id"];
8786
+ isOneToOne: false;
8787
+ referencedRelation: "floriday_connections";
8788
+ referencedColumns: ["id"];
8789
+ }];
8790
+ };
8326
8791
  twinfield_connections: {
8327
8792
  Row: {
8328
8793
  access_token: string | null;
@@ -8642,6 +9107,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8642
9107
  default_invoice_type: string;
8643
9108
  default_payment_term_days: number;
8644
9109
  default_vat_code: string;
9110
+ invoice_enabled_ao: boolean;
9111
+ invoice_enabled_fo: boolean;
9112
+ invoice_enabled_ho: boolean;
9113
+ invoice_enabled_mo: boolean;
8645
9114
  updated_at: string;
8646
9115
  user_id: string;
8647
9116
  };
@@ -8651,6 +9120,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8651
9120
  default_invoice_type?: string;
8652
9121
  default_payment_term_days?: number;
8653
9122
  default_vat_code?: string;
9123
+ invoice_enabled_ao?: boolean;
9124
+ invoice_enabled_fo?: boolean;
9125
+ invoice_enabled_ho?: boolean;
9126
+ invoice_enabled_mo?: boolean;
8654
9127
  updated_at?: string;
8655
9128
  user_id: string;
8656
9129
  };
@@ -8660,6 +9133,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8660
9133
  default_invoice_type?: string;
8661
9134
  default_payment_term_days?: number;
8662
9135
  default_vat_code?: string;
9136
+ invoice_enabled_ao?: boolean;
9137
+ invoice_enabled_fo?: boolean;
9138
+ invoice_enabled_ho?: boolean;
9139
+ invoice_enabled_mo?: boolean;
8663
9140
  updated_at?: string;
8664
9141
  user_id?: string;
8665
9142
  };
@@ -9954,6 +10431,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9954
10431
  order_number: string;
9955
10432
  }[];
9956
10433
  };
10434
+ autolink_product_to_floriday: {
10435
+ Args: {
10436
+ p_product_id: string;
10437
+ };
10438
+ Returns: string;
10439
+ };
9957
10440
  backfill_open_order_reservations: {
9958
10441
  Args: never;
9959
10442
  Returns: {
@@ -9990,7 +10473,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9990
10473
  };
9991
10474
  cleanup_old_bookings: {
9992
10475
  Args: never;
9993
- Returns: number;
10476
+ Returns: undefined;
10477
+ };
10478
+ consume_floriday_rate_limit: {
10479
+ Args: {
10480
+ p_bucket: string;
10481
+ p_capacity: number;
10482
+ p_cost?: number;
10483
+ p_refill_per_sec: number;
10484
+ };
10485
+ Returns: {
10486
+ granted: boolean;
10487
+ wait_ms: number;
10488
+ }[];
9994
10489
  };
9995
10490
  control_get_todays_carts: {
9996
10491
  Args: never;
@@ -10072,6 +10567,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10072
10567
  status: string;
10073
10568
  }[];
10074
10569
  };
10570
+ enqueue_cart_replan_if_unlocked: {
10571
+ Args: {
10572
+ p_order_id: string;
10573
+ };
10574
+ Returns: undefined;
10575
+ };
10075
10576
  ensure_trade_item_stock_row: {
10076
10577
  Args: {
10077
10578
  p_key: string;
@@ -10178,6 +10679,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10178
10679
  office_code: string;
10179
10680
  }[];
10180
10681
  };
10682
+ get_floricode_record_counts: {
10683
+ Args: never;
10684
+ Returns: {
10685
+ count: number;
10686
+ resource: string;
10687
+ }[];
10688
+ };
10181
10689
  get_floriday_agreements_active: {
10182
10690
  Args: {
10183
10691
  p_on_date?: string;
@@ -10269,6 +10777,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10269
10777
  };
10270
10778
  Returns: import("../integrations/supabase/types").Json;
10271
10779
  };
10780
+ get_offer_delivery_options: {
10781
+ Args: {
10782
+ p_code: string;
10783
+ };
10784
+ Returns: import("../integrations/supabase/types").Json;
10785
+ };
10272
10786
  get_offer_recipient_by_code: {
10273
10787
  Args: {
10274
10788
  p_code: string;
@@ -10333,6 +10847,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10333
10847
  Args: never;
10334
10848
  Returns: boolean;
10335
10849
  };
10850
+ is_superadmin: {
10851
+ Args: {
10852
+ _user_id: string;
10853
+ };
10854
+ Returns: boolean;
10855
+ };
10336
10856
  local_effective_price: {
10337
10857
  Args: {
10338
10858
  _customer_id: string;
@@ -10367,6 +10887,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10367
10887
  };
10368
10888
  Returns: string;
10369
10889
  };
10890
+ next_order_number_for_date: {
10891
+ Args: {
10892
+ p_created_at?: string;
10893
+ p_prefix: string;
10894
+ };
10895
+ Returns: string;
10896
+ };
10370
10897
  next_work_order_number: {
10371
10898
  Args: {
10372
10899
  p_parent_work_order_id?: string;
@@ -10374,6 +10901,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10374
10901
  };
10375
10902
  Returns: string;
10376
10903
  };
10904
+ normalize_order_source: {
10905
+ Args: {
10906
+ p_src: string;
10907
+ };
10908
+ Returns: string;
10909
+ };
10377
10910
  normalize_vat: {
10378
10911
  Args: {
10379
10912
  v: string;
@@ -10388,10 +10921,21 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10388
10921
  };
10389
10922
  Returns: boolean;
10390
10923
  };
10924
+ order_number_prefix: {
10925
+ Args: {
10926
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10927
+ p_order_source: string;
10928
+ };
10929
+ Returns: string;
10930
+ };
10391
10931
  pickstation_get_orders_raw: {
10392
10932
  Args: never;
10393
10933
  Returns: import("../integrations/supabase/types").Json;
10394
10934
  };
10935
+ pickstation_get_planning_context: {
10936
+ Args: never;
10937
+ Returns: import("../integrations/supabase/types").Json;
10938
+ };
10395
10939
  pickstation_get_settings: {
10396
10940
  Args: never;
10397
10941
  Returns: import("../integrations/supabase/types").Json;
@@ -10422,6 +10966,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10422
10966
  };
10423
10967
  Returns: undefined;
10424
10968
  };
10969
+ recompute_order_status: {
10970
+ Args: {
10971
+ p_order_id: string;
10972
+ };
10973
+ Returns: undefined;
10974
+ };
10975
+ recompute_reserved_for_order: {
10976
+ Args: {
10977
+ p_order_id: string;
10978
+ };
10979
+ Returns: undefined;
10980
+ };
10981
+ recompute_reserved_stock: {
10982
+ Args: {
10983
+ p_trade_item_key: string;
10984
+ };
10985
+ Returns: undefined;
10986
+ };
10987
+ refresh_external_customers_grouped: {
10988
+ Args: never;
10989
+ Returns: undefined;
10990
+ };
10425
10991
  refresh_floricode_derived_code_lists: {
10426
10992
  Args: never;
10427
10993
  Returns: {
@@ -10436,6 +11002,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10436
11002
  };
10437
11003
  Returns: number;
10438
11004
  };
11005
+ refresh_floricode_derived_for_products: {
11006
+ Args: {
11007
+ _product_ids: string[];
11008
+ };
11009
+ Returns: number;
11010
+ };
10439
11011
  reset_floriday_sync_cursor: {
10440
11012
  Args: {
10441
11013
  p_connection_id: string;
@@ -10443,6 +11015,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10443
11015
  };
10444
11016
  Returns: undefined;
10445
11017
  };
11018
+ resolve_product_id_for_item: {
11019
+ Args: {
11020
+ p_product_name: string;
11021
+ };
11022
+ Returns: string;
11023
+ };
10446
11024
  schedule_floriday_additional_services_sync: {
10447
11025
  Args: {
10448
11026
  p_apikey: string;
@@ -10720,6 +11298,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10720
11298
  };
10721
11299
  Returns: string[];
10722
11300
  };
11301
+ sync_cached_packing_from_product: {
11302
+ Args: {
11303
+ p_product_id: string;
11304
+ };
11305
+ Returns: undefined;
11306
+ };
11307
+ sync_order_cart_item_packing_from_product: {
11308
+ Args: {
11309
+ p_product_id: string;
11310
+ };
11311
+ Returns: undefined;
11312
+ };
11313
+ sync_product_packing_from_floriday_cache: {
11314
+ Args: {
11315
+ p_floriday_id: string;
11316
+ };
11317
+ Returns: undefined;
11318
+ };
10723
11319
  twinfield_decrypt: {
10724
11320
  Args: {
10725
11321
  cipher: string;
@@ -10732,6 +11328,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10732
11328
  };
10733
11329
  Returns: string;
10734
11330
  };
11331
+ upsert_auto_fulfillment_log: {
11332
+ Args: {
11333
+ p_connection_id: string;
11334
+ p_error?: string;
11335
+ p_fulfillment_order_id?: string;
11336
+ p_reason?: string;
11337
+ p_sales_order_id: string;
11338
+ p_status: string;
11339
+ };
11340
+ Returns: undefined;
11341
+ };
10735
11342
  };
10736
11343
  Enums: {
10737
11344
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -10751,7 +11358,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10751
11358
  Tables: {
10752
11359
  afhandeling_settings: {
10753
11360
  Row: {
11361
+ auto_print_delivery_note: boolean;
11362
+ auto_process_paused: boolean;
10754
11363
  created_at: string;
11364
+ extra_pick_days_with_stickers: number;
10755
11365
  id: string;
10756
11366
  max_workdays_earlier_pick: number;
10757
11367
  pick_days_before_transport: number;
@@ -10765,7 +11375,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10765
11375
  user_id: string;
10766
11376
  };
10767
11377
  Insert: {
11378
+ auto_print_delivery_note?: boolean;
11379
+ auto_process_paused?: boolean;
10768
11380
  created_at?: string;
11381
+ extra_pick_days_with_stickers?: number;
10769
11382
  id?: string;
10770
11383
  max_workdays_earlier_pick?: number;
10771
11384
  pick_days_before_transport?: number;
@@ -10779,7 +11392,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10779
11392
  user_id: string;
10780
11393
  };
10781
11394
  Update: {
11395
+ auto_print_delivery_note?: boolean;
11396
+ auto_process_paused?: boolean;
10782
11397
  created_at?: string;
11398
+ extra_pick_days_with_stickers?: number;
10783
11399
  id?: string;
10784
11400
  max_workdays_earlier_pick?: number;
10785
11401
  pick_days_before_transport?: number;
@@ -11010,6 +11626,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11010
11626
  created_at: string;
11011
11627
  extra_id: string;
11012
11628
  id: string;
11629
+ original_unit_price: number | null;
11630
+ override_reason: string | null;
11631
+ override_unit_price: number | null;
11013
11632
  quantity: number;
11014
11633
  total_price: number;
11015
11634
  unit_price: number;
@@ -11019,6 +11638,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11019
11638
  created_at?: string;
11020
11639
  extra_id: string;
11021
11640
  id?: string;
11641
+ original_unit_price?: number | null;
11642
+ override_reason?: string | null;
11643
+ override_unit_price?: number | null;
11022
11644
  quantity?: number;
11023
11645
  total_price?: number;
11024
11646
  unit_price?: number;
@@ -11028,6 +11650,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11028
11650
  created_at?: string;
11029
11651
  extra_id?: string;
11030
11652
  id?: string;
11653
+ original_unit_price?: number | null;
11654
+ override_reason?: string | null;
11655
+ override_unit_price?: number | null;
11031
11656
  quantity?: number;
11032
11657
  total_price?: number;
11033
11658
  unit_price?: number;
@@ -11048,11 +11673,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11048
11673
  };
11049
11674
  bookings: {
11050
11675
  Row: {
11676
+ archive_reason: string | null;
11677
+ archived_at: string | null;
11678
+ archived_by: string | null;
11051
11679
  company_name: string | null;
11052
11680
  conflict_checked_at: string | null;
11053
11681
  conflict_reason: string | null;
11054
11682
  created_at: string;
11055
11683
  created_by_role: string | null;
11684
+ customer_address: string | null;
11056
11685
  customer_email: string | null;
11057
11686
  customer_name: string | null;
11058
11687
  end_time: string;
@@ -11064,7 +11693,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11064
11693
  invoiced_at: string | null;
11065
11694
  notes: string | null;
11066
11695
  number_of_people: number;
11696
+ overridden_at: string | null;
11697
+ overridden_by: string | null;
11698
+ override_reason: string | null;
11699
+ price_override: boolean;
11067
11700
  room_id: string;
11701
+ room_price_override: number | null;
11068
11702
  start_time: string;
11069
11703
  status: string;
11070
11704
  total_excl_vat: number | null;
@@ -11073,11 +11707,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11073
11707
  vat_amount: number | null;
11074
11708
  };
11075
11709
  Insert: {
11710
+ archive_reason?: string | null;
11711
+ archived_at?: string | null;
11712
+ archived_by?: string | null;
11076
11713
  company_name?: string | null;
11077
11714
  conflict_checked_at?: string | null;
11078
11715
  conflict_reason?: string | null;
11079
11716
  created_at?: string;
11080
11717
  created_by_role?: string | null;
11718
+ customer_address?: string | null;
11081
11719
  customer_email?: string | null;
11082
11720
  customer_name?: string | null;
11083
11721
  end_time: string;
@@ -11089,7 +11727,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11089
11727
  invoiced_at?: string | null;
11090
11728
  notes?: string | null;
11091
11729
  number_of_people?: number;
11730
+ overridden_at?: string | null;
11731
+ overridden_by?: string | null;
11732
+ override_reason?: string | null;
11733
+ price_override?: boolean;
11092
11734
  room_id: string;
11735
+ room_price_override?: number | null;
11093
11736
  start_time: string;
11094
11737
  status?: string;
11095
11738
  total_excl_vat?: number | null;
@@ -11098,11 +11741,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11098
11741
  vat_amount?: number | null;
11099
11742
  };
11100
11743
  Update: {
11744
+ archive_reason?: string | null;
11745
+ archived_at?: string | null;
11746
+ archived_by?: string | null;
11101
11747
  company_name?: string | null;
11102
11748
  conflict_checked_at?: string | null;
11103
11749
  conflict_reason?: string | null;
11104
11750
  created_at?: string;
11105
11751
  created_by_role?: string | null;
11752
+ customer_address?: string | null;
11106
11753
  customer_email?: string | null;
11107
11754
  customer_name?: string | null;
11108
11755
  end_time?: string;
@@ -11114,7 +11761,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11114
11761
  invoiced_at?: string | null;
11115
11762
  notes?: string | null;
11116
11763
  number_of_people?: number;
11764
+ overridden_at?: string | null;
11765
+ overridden_by?: string | null;
11766
+ override_reason?: string | null;
11767
+ price_override?: boolean;
11117
11768
  room_id?: string;
11769
+ room_price_override?: number | null;
11118
11770
  start_time?: string;
11119
11771
  status?: string;
11120
11772
  total_excl_vat?: number | null;
@@ -11571,6 +12223,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11571
12223
  };
11572
12224
  Relationships: [];
11573
12225
  };
12226
+ cart_replan_queue: {
12227
+ Row: {
12228
+ attempts: number;
12229
+ last_error: string | null;
12230
+ order_id: string;
12231
+ processed_at: string | null;
12232
+ requested_at: string;
12233
+ };
12234
+ Insert: {
12235
+ attempts?: number;
12236
+ last_error?: string | null;
12237
+ order_id: string;
12238
+ processed_at?: string | null;
12239
+ requested_at?: string;
12240
+ };
12241
+ Update: {
12242
+ attempts?: number;
12243
+ last_error?: string | null;
12244
+ order_id?: string;
12245
+ processed_at?: string | null;
12246
+ requested_at?: string;
12247
+ };
12248
+ Relationships: [{
12249
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
12250
+ columns: ["order_id"];
12251
+ isOneToOne: true;
12252
+ referencedRelation: "orders";
12253
+ referencedColumns: ["id"];
12254
+ }];
12255
+ };
11574
12256
  collections: {
11575
12257
  Row: {
11576
12258
  created_at: string;
@@ -11913,8 +12595,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11913
12595
  customers: {
11914
12596
  Row: {
11915
12597
  address: string | null;
12598
+ address_line1: string | null;
12599
+ address_line2: string | null;
12600
+ address_type: string | null;
12601
+ attention_to: string | null;
12602
+ bank_account_holder: string | null;
12603
+ bank_account_number: string | null;
12604
+ bank_address_line1: string | null;
12605
+ bank_address_line2: string | null;
12606
+ bank_bic: string | null;
12607
+ bank_city: string | null;
12608
+ bank_country: string | null;
12609
+ bank_house_number: string | null;
12610
+ bank_iban: string | null;
12611
+ bank_name: string | null;
12612
+ bank_national_code: string | null;
12613
+ bank_postal_code: string | null;
12614
+ bank_state: string | null;
12615
+ billing_email: string | null;
11916
12616
  bio: string | null;
11917
12617
  city: string | null;
12618
+ coc_number: string | null;
11918
12619
  commercial_name: string | null;
11919
12620
  company_name: string;
11920
12621
  connection_status: string;
@@ -11923,21 +12624,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11923
12624
  created_at: string;
11924
12625
  custom_fields: import("../integrations/supabase/types").Json;
11925
12626
  customer_class: string | null;
12627
+ customer_number: string | null;
12628
+ discount_days: number | null;
12629
+ discount_percentage: number | null;
11926
12630
  email: string | null;
11927
12631
  external_id: string | null;
12632
+ fax: string | null;
11928
12633
  floriday_connection_id: string | null;
11929
12634
  floriday_organization_id: string | null;
11930
12635
  floriday_raw: import("../integrations/supabase/types").Json | null;
11931
12636
  gln: string | null;
11932
12637
  house_number: string | null;
12638
+ icp_country_code: string | null;
11933
12639
  id: string;
11934
12640
  is_active: boolean;
12641
+ language: string | null;
11935
12642
  last_synced_at: string | null;
11936
12643
  logo_url: string | null;
11937
12644
  markets: string[];
11938
12645
  notes: string | null;
11939
12646
  organization_type: string | null;
11940
12647
  payment_methods: string[];
12648
+ payment_term_days: number | null;
11941
12649
  phone: string | null;
11942
12650
  postal_code: string | null;
11943
12651
  product_groups: string[];
@@ -11948,13 +12656,33 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11948
12656
  sync_status: string;
11949
12657
  trade_forms: string[];
11950
12658
  updated_at: string;
12659
+ vat_display: string | null;
11951
12660
  vat_number: string | null;
11952
12661
  website: string | null;
11953
12662
  };
11954
12663
  Insert: {
11955
12664
  address?: string | null;
12665
+ address_line1?: string | null;
12666
+ address_line2?: string | null;
12667
+ address_type?: string | null;
12668
+ attention_to?: string | null;
12669
+ bank_account_holder?: string | null;
12670
+ bank_account_number?: string | null;
12671
+ bank_address_line1?: string | null;
12672
+ bank_address_line2?: string | null;
12673
+ bank_bic?: string | null;
12674
+ bank_city?: string | null;
12675
+ bank_country?: string | null;
12676
+ bank_house_number?: string | null;
12677
+ bank_iban?: string | null;
12678
+ bank_name?: string | null;
12679
+ bank_national_code?: string | null;
12680
+ bank_postal_code?: string | null;
12681
+ bank_state?: string | null;
12682
+ billing_email?: string | null;
11956
12683
  bio?: string | null;
11957
12684
  city?: string | null;
12685
+ coc_number?: string | null;
11958
12686
  commercial_name?: string | null;
11959
12687
  company_name: string;
11960
12688
  connection_status?: string;
@@ -11963,21 +12691,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11963
12691
  created_at?: string;
11964
12692
  custom_fields?: import("../integrations/supabase/types").Json;
11965
12693
  customer_class?: string | null;
12694
+ customer_number?: string | null;
12695
+ discount_days?: number | null;
12696
+ discount_percentage?: number | null;
11966
12697
  email?: string | null;
11967
12698
  external_id?: string | null;
12699
+ fax?: string | null;
11968
12700
  floriday_connection_id?: string | null;
11969
12701
  floriday_organization_id?: string | null;
11970
12702
  floriday_raw?: import("../integrations/supabase/types").Json | null;
11971
12703
  gln?: string | null;
11972
12704
  house_number?: string | null;
12705
+ icp_country_code?: string | null;
11973
12706
  id?: string;
11974
12707
  is_active?: boolean;
12708
+ language?: string | null;
11975
12709
  last_synced_at?: string | null;
11976
12710
  logo_url?: string | null;
11977
12711
  markets?: string[];
11978
12712
  notes?: string | null;
11979
12713
  organization_type?: string | null;
11980
12714
  payment_methods?: string[];
12715
+ payment_term_days?: number | null;
11981
12716
  phone?: string | null;
11982
12717
  postal_code?: string | null;
11983
12718
  product_groups?: string[];
@@ -11988,13 +12723,33 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11988
12723
  sync_status?: string;
11989
12724
  trade_forms?: string[];
11990
12725
  updated_at?: string;
12726
+ vat_display?: string | null;
11991
12727
  vat_number?: string | null;
11992
12728
  website?: string | null;
11993
12729
  };
11994
12730
  Update: {
11995
12731
  address?: string | null;
12732
+ address_line1?: string | null;
12733
+ address_line2?: string | null;
12734
+ address_type?: string | null;
12735
+ attention_to?: string | null;
12736
+ bank_account_holder?: string | null;
12737
+ bank_account_number?: string | null;
12738
+ bank_address_line1?: string | null;
12739
+ bank_address_line2?: string | null;
12740
+ bank_bic?: string | null;
12741
+ bank_city?: string | null;
12742
+ bank_country?: string | null;
12743
+ bank_house_number?: string | null;
12744
+ bank_iban?: string | null;
12745
+ bank_name?: string | null;
12746
+ bank_national_code?: string | null;
12747
+ bank_postal_code?: string | null;
12748
+ bank_state?: string | null;
12749
+ billing_email?: string | null;
11996
12750
  bio?: string | null;
11997
12751
  city?: string | null;
12752
+ coc_number?: string | null;
11998
12753
  commercial_name?: string | null;
11999
12754
  company_name?: string;
12000
12755
  connection_status?: string;
@@ -12003,21 +12758,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12003
12758
  created_at?: string;
12004
12759
  custom_fields?: import("../integrations/supabase/types").Json;
12005
12760
  customer_class?: string | null;
12761
+ customer_number?: string | null;
12762
+ discount_days?: number | null;
12763
+ discount_percentage?: number | null;
12006
12764
  email?: string | null;
12007
12765
  external_id?: string | null;
12766
+ fax?: string | null;
12008
12767
  floriday_connection_id?: string | null;
12009
12768
  floriday_organization_id?: string | null;
12010
12769
  floriday_raw?: import("../integrations/supabase/types").Json | null;
12011
12770
  gln?: string | null;
12012
12771
  house_number?: string | null;
12772
+ icp_country_code?: string | null;
12013
12773
  id?: string;
12014
12774
  is_active?: boolean;
12775
+ language?: string | null;
12015
12776
  last_synced_at?: string | null;
12016
12777
  logo_url?: string | null;
12017
12778
  markets?: string[];
12018
12779
  notes?: string | null;
12019
12780
  organization_type?: string | null;
12020
12781
  payment_methods?: string[];
12782
+ payment_term_days?: number | null;
12021
12783
  phone?: string | null;
12022
12784
  postal_code?: string | null;
12023
12785
  product_groups?: string[];
@@ -12028,6 +12790,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12028
12790
  sync_status?: string;
12029
12791
  trade_forms?: string[];
12030
12792
  updated_at?: string;
12793
+ vat_display?: string | null;
12031
12794
  vat_number?: string | null;
12032
12795
  website?: string | null;
12033
12796
  };
@@ -13696,34 +14459,52 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
13696
14459
  Row: {
13697
14460
  catalog_key: string | null;
13698
14461
  catalog_url: string;
14462
+ client_id: string | null;
14463
+ client_secret_ciphertext: string | null;
14464
+ client_secret_last4: string | null;
13699
14465
  created_at: string;
13700
14466
  id: number;
13701
14467
  last_meta: import("../integrations/supabase/types").Json | null;
13702
14468
  last_test_at: string | null;
13703
14469
  last_test_error: string | null;
13704
14470
  last_test_ok: boolean | null;
14471
+ last_token_test_at: string | null;
14472
+ last_token_test_error: string | null;
14473
+ last_token_test_ok: boolean | null;
13705
14474
  updated_at: string;
13706
14475
  };
13707
14476
  Insert: {
13708
14477
  catalog_key?: string | null;
13709
14478
  catalog_url?: string;
14479
+ client_id?: string | null;
14480
+ client_secret_ciphertext?: string | null;
14481
+ client_secret_last4?: string | null;
13710
14482
  created_at?: string;
13711
14483
  id?: number;
13712
14484
  last_meta?: import("../integrations/supabase/types").Json | null;
13713
14485
  last_test_at?: string | null;
13714
14486
  last_test_error?: string | null;
13715
14487
  last_test_ok?: boolean | null;
14488
+ last_token_test_at?: string | null;
14489
+ last_token_test_error?: string | null;
14490
+ last_token_test_ok?: boolean | null;
13716
14491
  updated_at?: string;
13717
14492
  };
13718
14493
  Update: {
13719
14494
  catalog_key?: string | null;
13720
14495
  catalog_url?: string;
14496
+ client_id?: string | null;
14497
+ client_secret_ciphertext?: string | null;
14498
+ client_secret_last4?: string | null;
13721
14499
  created_at?: string;
13722
14500
  id?: number;
13723
14501
  last_meta?: import("../integrations/supabase/types").Json | null;
13724
14502
  last_test_at?: string | null;
13725
14503
  last_test_error?: string | null;
13726
14504
  last_test_ok?: boolean | null;
14505
+ last_token_test_at?: string | null;
14506
+ last_token_test_error?: string | null;
14507
+ last_token_test_ok?: boolean | null;
13727
14508
  updated_at?: string;
13728
14509
  };
13729
14510
  Relationships: [];
@@ -13956,6 +14737,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
13956
14737
  referencedColumns: ["id"];
13957
14738
  }];
13958
14739
  };
14740
+ floriday_auto_fulfillment_log: {
14741
+ Row: {
14742
+ attempts: number;
14743
+ connection_id: string;
14744
+ created_at: string;
14745
+ error: string | null;
14746
+ fulfillment_order_id: string | null;
14747
+ id: string;
14748
+ last_attempt_at: string | null;
14749
+ reason: string | null;
14750
+ sales_order_id: string;
14751
+ status: string;
14752
+ updated_at: string;
14753
+ };
14754
+ Insert: {
14755
+ attempts?: number;
14756
+ connection_id: string;
14757
+ created_at?: string;
14758
+ error?: string | null;
14759
+ fulfillment_order_id?: string | null;
14760
+ id?: string;
14761
+ last_attempt_at?: string | null;
14762
+ reason?: string | null;
14763
+ sales_order_id: string;
14764
+ status?: string;
14765
+ updated_at?: string;
14766
+ };
14767
+ Update: {
14768
+ attempts?: number;
14769
+ connection_id?: string;
14770
+ created_at?: string;
14771
+ error?: string | null;
14772
+ fulfillment_order_id?: string | null;
14773
+ id?: string;
14774
+ last_attempt_at?: string | null;
14775
+ reason?: string | null;
14776
+ sales_order_id?: string;
14777
+ status?: string;
14778
+ updated_at?: string;
14779
+ };
14780
+ Relationships: [{
14781
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
14782
+ columns: ["connection_id"];
14783
+ isOneToOne: false;
14784
+ referencedRelation: "floriday_connections";
14785
+ referencedColumns: ["id"];
14786
+ }];
14787
+ };
13959
14788
  floriday_base_items_cache: {
13960
14789
  Row: {
13961
14790
  connection_id: string;
@@ -15060,6 +15889,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15060
15889
  referencedColumns: ["id"];
15061
15890
  }];
15062
15891
  };
15892
+ floriday_rate_limit_state: {
15893
+ Row: {
15894
+ bucket: string;
15895
+ last_refill_at: string;
15896
+ tokens: number;
15897
+ };
15898
+ Insert: {
15899
+ bucket: string;
15900
+ last_refill_at?: string;
15901
+ tokens: number;
15902
+ };
15903
+ Update: {
15904
+ bucket?: string;
15905
+ last_refill_at?: string;
15906
+ tokens?: number;
15907
+ };
15908
+ Relationships: [];
15909
+ };
15063
15910
  floriday_resource_schemas: {
15064
15911
  Row: {
15065
15912
  enums: import("../integrations/supabase/types").Json;
@@ -15483,6 +16330,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15483
16330
  referencedColumns: ["id"];
15484
16331
  }];
15485
16332
  };
16333
+ flow_role_assignments: {
16334
+ Row: {
16335
+ created_at: string;
16336
+ id: string;
16337
+ role_id: string;
16338
+ user_id: string;
16339
+ };
16340
+ Insert: {
16341
+ created_at?: string;
16342
+ id?: string;
16343
+ role_id: string;
16344
+ user_id: string;
16345
+ };
16346
+ Update: {
16347
+ created_at?: string;
16348
+ id?: string;
16349
+ role_id?: string;
16350
+ user_id?: string;
16351
+ };
16352
+ Relationships: [{
16353
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
16354
+ columns: ["role_id"];
16355
+ isOneToOne: false;
16356
+ referencedRelation: "flow_roles";
16357
+ referencedColumns: ["id"];
16358
+ }];
16359
+ };
16360
+ flow_roles: {
16361
+ Row: {
16362
+ created_at: string;
16363
+ description: string | null;
16364
+ id: string;
16365
+ module_access: string[];
16366
+ name: string;
16367
+ updated_at: string;
16368
+ };
16369
+ Insert: {
16370
+ created_at?: string;
16371
+ description?: string | null;
16372
+ id?: string;
16373
+ module_access?: string[];
16374
+ name: string;
16375
+ updated_at?: string;
16376
+ };
16377
+ Update: {
16378
+ created_at?: string;
16379
+ description?: string | null;
16380
+ id?: string;
16381
+ module_access?: string[];
16382
+ name?: string;
16383
+ updated_at?: string;
16384
+ };
16385
+ Relationships: [];
16386
+ };
15486
16387
  imap_accounts: {
15487
16388
  Row: {
15488
16389
  created_at: string;
@@ -16114,6 +17015,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16114
17015
  matched_customer_id: string | null;
16115
17016
  message_id: string;
16116
17017
  notes: string | null;
17018
+ order_number: string | null;
16117
17019
  parsed_payload: import("../integrations/supabase/types").Json | null;
16118
17020
  reviewed_at: string | null;
16119
17021
  reviewed_by: string | null;
@@ -16129,6 +17031,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16129
17031
  matched_customer_id?: string | null;
16130
17032
  message_id: string;
16131
17033
  notes?: string | null;
17034
+ order_number?: string | null;
16132
17035
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16133
17036
  reviewed_at?: string | null;
16134
17037
  reviewed_by?: string | null;
@@ -16144,6 +17047,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16144
17047
  matched_customer_id?: string | null;
16145
17048
  message_id?: string;
16146
17049
  notes?: string | null;
17050
+ order_number?: string | null;
16147
17051
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16148
17052
  reviewed_at?: string | null;
16149
17053
  reviewed_by?: string | null;
@@ -17000,6 +17904,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17000
17904
  id: string;
17001
17905
  items: import("../integrations/supabase/types").Json;
17002
17906
  notes: string | null;
17907
+ order_number: string | null;
17003
17908
  recipient_id: string;
17004
17909
  total_amount: number;
17005
17910
  };
@@ -17013,6 +17918,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17013
17918
  id?: string;
17014
17919
  items?: import("../integrations/supabase/types").Json;
17015
17920
  notes?: string | null;
17921
+ order_number?: string | null;
17016
17922
  recipient_id: string;
17017
17923
  total_amount?: number;
17018
17924
  };
@@ -17026,6 +17932,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17026
17932
  id?: string;
17027
17933
  items?: import("../integrations/supabase/types").Json;
17028
17934
  notes?: string | null;
17935
+ order_number?: string | null;
17029
17936
  recipient_id?: string;
17030
17937
  total_amount?: number;
17031
17938
  };
@@ -17185,6 +18092,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17185
18092
  crates_per_layer: number;
17186
18093
  created_at: string;
17187
18094
  id: string;
18095
+ layer_fraction: number;
18096
+ layer_share_pct: number;
18097
+ layers_per_cart: number;
17188
18098
  order_item_id: string | null;
17189
18099
  plants_per_crate: number;
17190
18100
  product_id: string | null;
@@ -17196,6 +18106,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17196
18106
  crates_per_layer?: number;
17197
18107
  created_at?: string;
17198
18108
  id?: string;
18109
+ layer_fraction?: number;
18110
+ layer_share_pct?: number;
18111
+ layers_per_cart?: number;
17199
18112
  order_item_id?: string | null;
17200
18113
  plants_per_crate?: number;
17201
18114
  product_id?: string | null;
@@ -17207,6 +18120,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17207
18120
  crates_per_layer?: number;
17208
18121
  created_at?: string;
17209
18122
  id?: string;
18123
+ layer_fraction?: number;
18124
+ layer_share_pct?: number;
18125
+ layers_per_cart?: number;
17210
18126
  order_item_id?: string | null;
17211
18127
  plants_per_crate?: number;
17212
18128
  product_id?: string | null;
@@ -17234,33 +18150,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17234
18150
  };
17235
18151
  order_carts: {
17236
18152
  Row: {
18153
+ algorithm_version: number;
17237
18154
  cart_number: number;
17238
18155
  created_at: string;
17239
18156
  id: string;
17240
18157
  is_auto: boolean;
17241
18158
  is_complete: boolean;
17242
18159
  notes: string | null;
18160
+ occupancy_pct: number;
17243
18161
  order_id: string;
18162
+ source: string;
18163
+ total_layers_used: number;
17244
18164
  updated_at: string;
17245
18165
  };
17246
18166
  Insert: {
18167
+ algorithm_version?: number;
17247
18168
  cart_number: number;
17248
18169
  created_at?: string;
17249
18170
  id?: string;
17250
18171
  is_auto?: boolean;
17251
18172
  is_complete?: boolean;
17252
18173
  notes?: string | null;
18174
+ occupancy_pct?: number;
17253
18175
  order_id: string;
18176
+ source?: string;
18177
+ total_layers_used?: number;
17254
18178
  updated_at?: string;
17255
18179
  };
17256
18180
  Update: {
18181
+ algorithm_version?: number;
17257
18182
  cart_number?: number;
17258
18183
  created_at?: string;
17259
18184
  id?: string;
17260
18185
  is_auto?: boolean;
17261
18186
  is_complete?: boolean;
17262
18187
  notes?: string | null;
18188
+ occupancy_pct?: number;
17263
18189
  order_id?: string;
18190
+ source?: string;
18191
+ total_layers_used?: number;
17264
18192
  updated_at?: string;
17265
18193
  };
17266
18194
  Relationships: [{
@@ -17413,6 +18341,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17413
18341
  order_date: string;
17414
18342
  order_number: string;
17415
18343
  order_source: string;
18344
+ plan_locked_at: string | null;
18345
+ plan_locked_ref: string | null;
17416
18346
  status: string;
17417
18347
  total: string;
17418
18348
  updated_at: string;
@@ -17429,6 +18359,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17429
18359
  order_date?: string;
17430
18360
  order_number: string;
17431
18361
  order_source?: string;
18362
+ plan_locked_at?: string | null;
18363
+ plan_locked_ref?: string | null;
17432
18364
  status?: string;
17433
18365
  total?: string;
17434
18366
  updated_at?: string;
@@ -17445,6 +18377,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17445
18377
  order_date?: string;
17446
18378
  order_number?: string;
17447
18379
  order_source?: string;
18380
+ plan_locked_at?: string | null;
18381
+ plan_locked_ref?: string | null;
17448
18382
  status?: string;
17449
18383
  total?: string;
17450
18384
  updated_at?: string;
@@ -17813,28 +18747,34 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17813
18747
  };
17814
18748
  profiles: {
17815
18749
  Row: {
18750
+ address: string | null;
17816
18751
  created_at: string;
17817
18752
  display_name: string | null;
17818
18753
  email: string | null;
17819
18754
  id: string;
18755
+ is_superadmin: boolean;
17820
18756
  notification_preferences: import("../integrations/supabase/types").Json;
17821
18757
  tenant_id: string | null;
17822
18758
  updated_at: string;
17823
18759
  };
17824
18760
  Insert: {
18761
+ address?: string | null;
17825
18762
  created_at?: string;
17826
18763
  display_name?: string | null;
17827
18764
  email?: string | null;
17828
18765
  id: string;
18766
+ is_superadmin?: boolean;
17829
18767
  notification_preferences?: import("../integrations/supabase/types").Json;
17830
18768
  tenant_id?: string | null;
17831
18769
  updated_at?: string;
17832
18770
  };
17833
18771
  Update: {
18772
+ address?: string | null;
17834
18773
  created_at?: string;
17835
18774
  display_name?: string | null;
17836
18775
  email?: string | null;
17837
18776
  id?: string;
18777
+ is_superadmin?: boolean;
17838
18778
  notification_preferences?: import("../integrations/supabase/types").Json;
17839
18779
  tenant_id?: string | null;
17840
18780
  updated_at?: string;
@@ -18624,6 +19564,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18624
19564
  };
18625
19565
  Relationships: [];
18626
19566
  };
19567
+ sidebar_config: {
19568
+ Row: {
19569
+ id: string;
19570
+ module_order: string[];
19571
+ updated_at: string;
19572
+ };
19573
+ Insert: {
19574
+ id?: string;
19575
+ module_order?: string[];
19576
+ updated_at?: string;
19577
+ };
19578
+ Update: {
19579
+ id?: string;
19580
+ module_order?: string[];
19581
+ updated_at?: string;
19582
+ };
19583
+ Relationships: [];
19584
+ };
18627
19585
  stock_import_runs: {
18628
19586
  Row: {
18629
19587
  connection_id: string | null;
@@ -18682,7 +19640,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18682
19640
  reason: string | null;
18683
19641
  reserved_after: number | null;
18684
19642
  reserved_before: number | null;
18685
- trade_item_key: string;
19643
+ trade_item_key: string | null;
18686
19644
  };
18687
19645
  Insert: {
18688
19646
  connection_id?: string | null;
@@ -18699,7 +19657,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18699
19657
  reason?: string | null;
18700
19658
  reserved_after?: number | null;
18701
19659
  reserved_before?: number | null;
18702
- trade_item_key: string;
19660
+ trade_item_key?: string | null;
18703
19661
  };
18704
19662
  Update: {
18705
19663
  connection_id?: string | null;
@@ -18716,7 +19674,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18716
19674
  reason?: string | null;
18717
19675
  reserved_after?: number | null;
18718
19676
  reserved_before?: number | null;
18719
- trade_item_key?: string;
19677
+ trade_item_key?: string | null;
18720
19678
  };
18721
19679
  Relationships: [];
18722
19680
  };
@@ -19059,6 +20017,114 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19059
20017
  };
19060
20018
  Relationships: [];
19061
20019
  };
20020
+ trade_item_supply_lines: {
20021
+ Row: {
20022
+ available_quantity: number | null;
20023
+ connection_id: string;
20024
+ created_at: string;
20025
+ currency: string | null;
20026
+ endpoint_family: string | null;
20027
+ environment: string | null;
20028
+ id: string;
20029
+ last_error: string | null;
20030
+ last_status: number | null;
20031
+ packing_configuration_id: string | null;
20032
+ period_end: string | null;
20033
+ period_start: string | null;
20034
+ price_per_piece: number | null;
20035
+ sales_unit: string | null;
20036
+ supply_line_id: string | null;
20037
+ supply_type: string;
20038
+ trade_item_id: string;
20039
+ updated_at: string;
20040
+ user_id: string;
20041
+ week: number | null;
20042
+ year: number | null;
20043
+ };
20044
+ Insert: {
20045
+ available_quantity?: number | null;
20046
+ connection_id: string;
20047
+ created_at?: string;
20048
+ currency?: string | null;
20049
+ endpoint_family?: string | null;
20050
+ environment?: string | null;
20051
+ id?: string;
20052
+ last_error?: string | null;
20053
+ last_status?: number | null;
20054
+ packing_configuration_id?: string | null;
20055
+ period_end?: string | null;
20056
+ period_start?: string | null;
20057
+ price_per_piece?: number | null;
20058
+ sales_unit?: string | null;
20059
+ supply_line_id?: string | null;
20060
+ supply_type?: string;
20061
+ trade_item_id: string;
20062
+ updated_at?: string;
20063
+ user_id: string;
20064
+ week?: number | null;
20065
+ year?: number | null;
20066
+ };
20067
+ Update: {
20068
+ available_quantity?: number | null;
20069
+ connection_id?: string;
20070
+ created_at?: string;
20071
+ currency?: string | null;
20072
+ endpoint_family?: string | null;
20073
+ environment?: string | null;
20074
+ id?: string;
20075
+ last_error?: string | null;
20076
+ last_status?: number | null;
20077
+ packing_configuration_id?: string | null;
20078
+ period_end?: string | null;
20079
+ period_start?: string | null;
20080
+ price_per_piece?: number | null;
20081
+ sales_unit?: string | null;
20082
+ supply_line_id?: string | null;
20083
+ supply_type?: string;
20084
+ trade_item_id?: string;
20085
+ updated_at?: string;
20086
+ user_id?: string;
20087
+ week?: number | null;
20088
+ year?: number | null;
20089
+ };
20090
+ Relationships: [];
20091
+ };
20092
+ trade_item_warehouse_preferences: {
20093
+ Row: {
20094
+ connection_id: string;
20095
+ created_at: string;
20096
+ id: string;
20097
+ trade_item_id: string;
20098
+ updated_at: string;
20099
+ warehouse_id: string;
20100
+ warehouse_name: string | null;
20101
+ };
20102
+ Insert: {
20103
+ connection_id: string;
20104
+ created_at?: string;
20105
+ id?: string;
20106
+ trade_item_id: string;
20107
+ updated_at?: string;
20108
+ warehouse_id: string;
20109
+ warehouse_name?: string | null;
20110
+ };
20111
+ Update: {
20112
+ connection_id?: string;
20113
+ created_at?: string;
20114
+ id?: string;
20115
+ trade_item_id?: string;
20116
+ updated_at?: string;
20117
+ warehouse_id?: string;
20118
+ warehouse_name?: string | null;
20119
+ };
20120
+ Relationships: [{
20121
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
20122
+ columns: ["connection_id"];
20123
+ isOneToOne: false;
20124
+ referencedRelation: "floriday_connections";
20125
+ referencedColumns: ["id"];
20126
+ }];
20127
+ };
19062
20128
  twinfield_connections: {
19063
20129
  Row: {
19064
20130
  access_token: string | null;
@@ -19378,6 +20444,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19378
20444
  default_invoice_type: string;
19379
20445
  default_payment_term_days: number;
19380
20446
  default_vat_code: string;
20447
+ invoice_enabled_ao: boolean;
20448
+ invoice_enabled_fo: boolean;
20449
+ invoice_enabled_ho: boolean;
20450
+ invoice_enabled_mo: boolean;
19381
20451
  updated_at: string;
19382
20452
  user_id: string;
19383
20453
  };
@@ -19387,6 +20457,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19387
20457
  default_invoice_type?: string;
19388
20458
  default_payment_term_days?: number;
19389
20459
  default_vat_code?: string;
20460
+ invoice_enabled_ao?: boolean;
20461
+ invoice_enabled_fo?: boolean;
20462
+ invoice_enabled_ho?: boolean;
20463
+ invoice_enabled_mo?: boolean;
19390
20464
  updated_at?: string;
19391
20465
  user_id: string;
19392
20466
  };
@@ -19396,6 +20470,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19396
20470
  default_invoice_type?: string;
19397
20471
  default_payment_term_days?: number;
19398
20472
  default_vat_code?: string;
20473
+ invoice_enabled_ao?: boolean;
20474
+ invoice_enabled_fo?: boolean;
20475
+ invoice_enabled_ho?: boolean;
20476
+ invoice_enabled_mo?: boolean;
19399
20477
  updated_at?: string;
19400
20478
  user_id?: string;
19401
20479
  };
@@ -20690,6 +21768,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20690
21768
  order_number: string;
20691
21769
  }[];
20692
21770
  };
21771
+ autolink_product_to_floriday: {
21772
+ Args: {
21773
+ p_product_id: string;
21774
+ };
21775
+ Returns: string;
21776
+ };
20693
21777
  backfill_open_order_reservations: {
20694
21778
  Args: never;
20695
21779
  Returns: {
@@ -20726,7 +21810,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20726
21810
  };
20727
21811
  cleanup_old_bookings: {
20728
21812
  Args: never;
20729
- Returns: number;
21813
+ Returns: undefined;
21814
+ };
21815
+ consume_floriday_rate_limit: {
21816
+ Args: {
21817
+ p_bucket: string;
21818
+ p_capacity: number;
21819
+ p_cost?: number;
21820
+ p_refill_per_sec: number;
21821
+ };
21822
+ Returns: {
21823
+ granted: boolean;
21824
+ wait_ms: number;
21825
+ }[];
20730
21826
  };
20731
21827
  control_get_todays_carts: {
20732
21828
  Args: never;
@@ -20808,6 +21904,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20808
21904
  status: string;
20809
21905
  }[];
20810
21906
  };
21907
+ enqueue_cart_replan_if_unlocked: {
21908
+ Args: {
21909
+ p_order_id: string;
21910
+ };
21911
+ Returns: undefined;
21912
+ };
20811
21913
  ensure_trade_item_stock_row: {
20812
21914
  Args: {
20813
21915
  p_key: string;
@@ -20914,6 +22016,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20914
22016
  office_code: string;
20915
22017
  }[];
20916
22018
  };
22019
+ get_floricode_record_counts: {
22020
+ Args: never;
22021
+ Returns: {
22022
+ count: number;
22023
+ resource: string;
22024
+ }[];
22025
+ };
20917
22026
  get_floriday_agreements_active: {
20918
22027
  Args: {
20919
22028
  p_on_date?: string;
@@ -21005,6 +22114,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21005
22114
  };
21006
22115
  Returns: import("../integrations/supabase/types").Json;
21007
22116
  };
22117
+ get_offer_delivery_options: {
22118
+ Args: {
22119
+ p_code: string;
22120
+ };
22121
+ Returns: import("../integrations/supabase/types").Json;
22122
+ };
21008
22123
  get_offer_recipient_by_code: {
21009
22124
  Args: {
21010
22125
  p_code: string;
@@ -21069,6 +22184,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21069
22184
  Args: never;
21070
22185
  Returns: boolean;
21071
22186
  };
22187
+ is_superadmin: {
22188
+ Args: {
22189
+ _user_id: string;
22190
+ };
22191
+ Returns: boolean;
22192
+ };
21072
22193
  local_effective_price: {
21073
22194
  Args: {
21074
22195
  _customer_id: string;
@@ -21103,6 +22224,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21103
22224
  };
21104
22225
  Returns: string;
21105
22226
  };
22227
+ next_order_number_for_date: {
22228
+ Args: {
22229
+ p_created_at?: string;
22230
+ p_prefix: string;
22231
+ };
22232
+ Returns: string;
22233
+ };
21106
22234
  next_work_order_number: {
21107
22235
  Args: {
21108
22236
  p_parent_work_order_id?: string;
@@ -21110,6 +22238,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21110
22238
  };
21111
22239
  Returns: string;
21112
22240
  };
22241
+ normalize_order_source: {
22242
+ Args: {
22243
+ p_src: string;
22244
+ };
22245
+ Returns: string;
22246
+ };
21113
22247
  normalize_vat: {
21114
22248
  Args: {
21115
22249
  v: string;
@@ -21124,10 +22258,21 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21124
22258
  };
21125
22259
  Returns: boolean;
21126
22260
  };
22261
+ order_number_prefix: {
22262
+ Args: {
22263
+ p_custom_fields?: import("../integrations/supabase/types").Json;
22264
+ p_order_source: string;
22265
+ };
22266
+ Returns: string;
22267
+ };
21127
22268
  pickstation_get_orders_raw: {
21128
22269
  Args: never;
21129
22270
  Returns: import("../integrations/supabase/types").Json;
21130
22271
  };
22272
+ pickstation_get_planning_context: {
22273
+ Args: never;
22274
+ Returns: import("../integrations/supabase/types").Json;
22275
+ };
21131
22276
  pickstation_get_settings: {
21132
22277
  Args: never;
21133
22278
  Returns: import("../integrations/supabase/types").Json;
@@ -21158,6 +22303,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21158
22303
  };
21159
22304
  Returns: undefined;
21160
22305
  };
22306
+ recompute_order_status: {
22307
+ Args: {
22308
+ p_order_id: string;
22309
+ };
22310
+ Returns: undefined;
22311
+ };
22312
+ recompute_reserved_for_order: {
22313
+ Args: {
22314
+ p_order_id: string;
22315
+ };
22316
+ Returns: undefined;
22317
+ };
22318
+ recompute_reserved_stock: {
22319
+ Args: {
22320
+ p_trade_item_key: string;
22321
+ };
22322
+ Returns: undefined;
22323
+ };
22324
+ refresh_external_customers_grouped: {
22325
+ Args: never;
22326
+ Returns: undefined;
22327
+ };
21161
22328
  refresh_floricode_derived_code_lists: {
21162
22329
  Args: never;
21163
22330
  Returns: {
@@ -21172,6 +22339,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21172
22339
  };
21173
22340
  Returns: number;
21174
22341
  };
22342
+ refresh_floricode_derived_for_products: {
22343
+ Args: {
22344
+ _product_ids: string[];
22345
+ };
22346
+ Returns: number;
22347
+ };
21175
22348
  reset_floriday_sync_cursor: {
21176
22349
  Args: {
21177
22350
  p_connection_id: string;
@@ -21179,6 +22352,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21179
22352
  };
21180
22353
  Returns: undefined;
21181
22354
  };
22355
+ resolve_product_id_for_item: {
22356
+ Args: {
22357
+ p_product_name: string;
22358
+ };
22359
+ Returns: string;
22360
+ };
21182
22361
  schedule_floriday_additional_services_sync: {
21183
22362
  Args: {
21184
22363
  p_apikey: string;
@@ -21456,6 +22635,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21456
22635
  };
21457
22636
  Returns: string[];
21458
22637
  };
22638
+ sync_cached_packing_from_product: {
22639
+ Args: {
22640
+ p_product_id: string;
22641
+ };
22642
+ Returns: undefined;
22643
+ };
22644
+ sync_order_cart_item_packing_from_product: {
22645
+ Args: {
22646
+ p_product_id: string;
22647
+ };
22648
+ Returns: undefined;
22649
+ };
22650
+ sync_product_packing_from_floriday_cache: {
22651
+ Args: {
22652
+ p_floriday_id: string;
22653
+ };
22654
+ Returns: undefined;
22655
+ };
21459
22656
  twinfield_decrypt: {
21460
22657
  Args: {
21461
22658
  cipher: string;
@@ -21468,6 +22665,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21468
22665
  };
21469
22666
  Returns: string;
21470
22667
  };
22668
+ upsert_auto_fulfillment_log: {
22669
+ Args: {
22670
+ p_connection_id: string;
22671
+ p_error?: string;
22672
+ p_fulfillment_order_id?: string;
22673
+ p_reason?: string;
22674
+ p_sales_order_id: string;
22675
+ p_status: string;
22676
+ };
22677
+ Returns: undefined;
22678
+ };
21471
22679
  };
21472
22680
  Enums: {
21473
22681
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -21490,6 +22698,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21490
22698
  signupMailLeadMinutes?: number;
21491
22699
  signupMailPurpose?: string;
21492
22700
  pickWeekdays?: number[];
22701
+ extraPickDaysWithStickers?: number;
22702
+ autoProcessPaused?: boolean;
22703
+ autoPrintDeliveryNote?: boolean;
21493
22704
  }) => {
21494
22705
  pickDaysBeforeTransport: number | undefined;
21495
22706
  transportRegisterDaysBefore: number | undefined;
@@ -21499,5 +22710,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21499
22710
  signupMailLeadMinutes: number | undefined;
21500
22711
  signupMailPurpose: string | undefined;
21501
22712
  pickWeekdays: number[] | undefined;
22713
+ extraPickDaysWithStickers: number | undefined;
22714
+ autoProcessPaused: boolean | undefined;
22715
+ autoPrintDeliveryNote: boolean | undefined;
21502
22716
  }, Promise<AfhandelingSettings>>;
21503
22717
  //# sourceMappingURL=afhandelingSettings.functions.d.ts.map