@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
@@ -13,13 +13,24 @@ export interface FloridayOrder {
13
13
  totalAmount: number | null;
14
14
  currency: string | null;
15
15
  createdAt: string | null;
16
+ carrierId?: string | null;
17
+ country?: string | null;
18
+ province?: string | null;
19
+ city?: string | null;
20
+ /** Order bevat één of meer klant-stickers; verlengt de picktijd. */
21
+ hasStickers?: boolean;
22
+ /** Floriday salesOrderId — nodig voor afleverbrief PDF via gateway. */
23
+ salesOrderId?: string | null;
16
24
  }
17
25
  export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
18
26
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
19
27
  Tables: {
20
28
  afhandeling_settings: {
21
29
  Row: {
30
+ auto_print_delivery_note: boolean;
31
+ auto_process_paused: boolean;
22
32
  created_at: string;
33
+ extra_pick_days_with_stickers: number;
23
34
  id: string;
24
35
  max_workdays_earlier_pick: number;
25
36
  pick_days_before_transport: number;
@@ -33,7 +44,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
33
44
  user_id: string;
34
45
  };
35
46
  Insert: {
47
+ auto_print_delivery_note?: boolean;
48
+ auto_process_paused?: boolean;
36
49
  created_at?: string;
50
+ extra_pick_days_with_stickers?: number;
37
51
  id?: string;
38
52
  max_workdays_earlier_pick?: number;
39
53
  pick_days_before_transport?: number;
@@ -47,7 +61,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
47
61
  user_id: string;
48
62
  };
49
63
  Update: {
64
+ auto_print_delivery_note?: boolean;
65
+ auto_process_paused?: boolean;
50
66
  created_at?: string;
67
+ extra_pick_days_with_stickers?: number;
51
68
  id?: string;
52
69
  max_workdays_earlier_pick?: number;
53
70
  pick_days_before_transport?: number;
@@ -278,6 +295,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
278
295
  created_at: string;
279
296
  extra_id: string;
280
297
  id: string;
298
+ original_unit_price: number | null;
299
+ override_reason: string | null;
300
+ override_unit_price: number | null;
281
301
  quantity: number;
282
302
  total_price: number;
283
303
  unit_price: number;
@@ -287,6 +307,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
287
307
  created_at?: string;
288
308
  extra_id: string;
289
309
  id?: string;
310
+ original_unit_price?: number | null;
311
+ override_reason?: string | null;
312
+ override_unit_price?: number | null;
290
313
  quantity?: number;
291
314
  total_price?: number;
292
315
  unit_price?: number;
@@ -296,6 +319,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
296
319
  created_at?: string;
297
320
  extra_id?: string;
298
321
  id?: string;
322
+ original_unit_price?: number | null;
323
+ override_reason?: string | null;
324
+ override_unit_price?: number | null;
299
325
  quantity?: number;
300
326
  total_price?: number;
301
327
  unit_price?: number;
@@ -316,11 +342,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
316
342
  };
317
343
  bookings: {
318
344
  Row: {
345
+ archive_reason: string | null;
346
+ archived_at: string | null;
347
+ archived_by: string | null;
319
348
  company_name: string | null;
320
349
  conflict_checked_at: string | null;
321
350
  conflict_reason: string | null;
322
351
  created_at: string;
323
352
  created_by_role: string | null;
353
+ customer_address: string | null;
324
354
  customer_email: string | null;
325
355
  customer_name: string | null;
326
356
  end_time: string;
@@ -332,7 +362,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
332
362
  invoiced_at: string | null;
333
363
  notes: string | null;
334
364
  number_of_people: number;
365
+ overridden_at: string | null;
366
+ overridden_by: string | null;
367
+ override_reason: string | null;
368
+ price_override: boolean;
335
369
  room_id: string;
370
+ room_price_override: number | null;
336
371
  start_time: string;
337
372
  status: string;
338
373
  total_excl_vat: number | null;
@@ -341,11 +376,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
341
376
  vat_amount: number | null;
342
377
  };
343
378
  Insert: {
379
+ archive_reason?: string | null;
380
+ archived_at?: string | null;
381
+ archived_by?: string | null;
344
382
  company_name?: string | null;
345
383
  conflict_checked_at?: string | null;
346
384
  conflict_reason?: string | null;
347
385
  created_at?: string;
348
386
  created_by_role?: string | null;
387
+ customer_address?: string | null;
349
388
  customer_email?: string | null;
350
389
  customer_name?: string | null;
351
390
  end_time: string;
@@ -357,7 +396,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
357
396
  invoiced_at?: string | null;
358
397
  notes?: string | null;
359
398
  number_of_people?: number;
399
+ overridden_at?: string | null;
400
+ overridden_by?: string | null;
401
+ override_reason?: string | null;
402
+ price_override?: boolean;
360
403
  room_id: string;
404
+ room_price_override?: number | null;
361
405
  start_time: string;
362
406
  status?: string;
363
407
  total_excl_vat?: number | null;
@@ -366,11 +410,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
366
410
  vat_amount?: number | null;
367
411
  };
368
412
  Update: {
413
+ archive_reason?: string | null;
414
+ archived_at?: string | null;
415
+ archived_by?: string | null;
369
416
  company_name?: string | null;
370
417
  conflict_checked_at?: string | null;
371
418
  conflict_reason?: string | null;
372
419
  created_at?: string;
373
420
  created_by_role?: string | null;
421
+ customer_address?: string | null;
374
422
  customer_email?: string | null;
375
423
  customer_name?: string | null;
376
424
  end_time?: string;
@@ -382,7 +430,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
382
430
  invoiced_at?: string | null;
383
431
  notes?: string | null;
384
432
  number_of_people?: number;
433
+ overridden_at?: string | null;
434
+ overridden_by?: string | null;
435
+ override_reason?: string | null;
436
+ price_override?: boolean;
385
437
  room_id?: string;
438
+ room_price_override?: number | null;
386
439
  start_time?: string;
387
440
  status?: string;
388
441
  total_excl_vat?: number | null;
@@ -839,6 +892,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
839
892
  };
840
893
  Relationships: [];
841
894
  };
895
+ cart_replan_queue: {
896
+ Row: {
897
+ attempts: number;
898
+ last_error: string | null;
899
+ order_id: string;
900
+ processed_at: string | null;
901
+ requested_at: string;
902
+ };
903
+ Insert: {
904
+ attempts?: number;
905
+ last_error?: string | null;
906
+ order_id: string;
907
+ processed_at?: string | null;
908
+ requested_at?: string;
909
+ };
910
+ Update: {
911
+ attempts?: number;
912
+ last_error?: string | null;
913
+ order_id?: string;
914
+ processed_at?: string | null;
915
+ requested_at?: string;
916
+ };
917
+ Relationships: [{
918
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
919
+ columns: ["order_id"];
920
+ isOneToOne: true;
921
+ referencedRelation: "orders";
922
+ referencedColumns: ["id"];
923
+ }];
924
+ };
842
925
  collections: {
843
926
  Row: {
844
927
  created_at: string;
@@ -1181,8 +1264,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1181
1264
  customers: {
1182
1265
  Row: {
1183
1266
  address: string | null;
1267
+ address_line1: string | null;
1268
+ address_line2: string | null;
1269
+ address_type: string | null;
1270
+ attention_to: string | null;
1271
+ bank_account_holder: string | null;
1272
+ bank_account_number: string | null;
1273
+ bank_address_line1: string | null;
1274
+ bank_address_line2: string | null;
1275
+ bank_bic: string | null;
1276
+ bank_city: string | null;
1277
+ bank_country: string | null;
1278
+ bank_house_number: string | null;
1279
+ bank_iban: string | null;
1280
+ bank_name: string | null;
1281
+ bank_national_code: string | null;
1282
+ bank_postal_code: string | null;
1283
+ bank_state: string | null;
1284
+ billing_email: string | null;
1184
1285
  bio: string | null;
1185
1286
  city: string | null;
1287
+ coc_number: string | null;
1186
1288
  commercial_name: string | null;
1187
1289
  company_name: string;
1188
1290
  connection_status: string;
@@ -1191,21 +1293,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1191
1293
  created_at: string;
1192
1294
  custom_fields: import("../integrations/supabase/types").Json;
1193
1295
  customer_class: string | null;
1296
+ customer_number: string | null;
1297
+ discount_days: number | null;
1298
+ discount_percentage: number | null;
1194
1299
  email: string | null;
1195
1300
  external_id: string | null;
1301
+ fax: string | null;
1196
1302
  floriday_connection_id: string | null;
1197
1303
  floriday_organization_id: string | null;
1198
1304
  floriday_raw: import("../integrations/supabase/types").Json | null;
1199
1305
  gln: string | null;
1200
1306
  house_number: string | null;
1307
+ icp_country_code: string | null;
1201
1308
  id: string;
1202
1309
  is_active: boolean;
1310
+ language: string | null;
1203
1311
  last_synced_at: string | null;
1204
1312
  logo_url: string | null;
1205
1313
  markets: string[];
1206
1314
  notes: string | null;
1207
1315
  organization_type: string | null;
1208
1316
  payment_methods: string[];
1317
+ payment_term_days: number | null;
1209
1318
  phone: string | null;
1210
1319
  postal_code: string | null;
1211
1320
  product_groups: string[];
@@ -1216,13 +1325,33 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1216
1325
  sync_status: string;
1217
1326
  trade_forms: string[];
1218
1327
  updated_at: string;
1328
+ vat_display: string | null;
1219
1329
  vat_number: string | null;
1220
1330
  website: string | null;
1221
1331
  };
1222
1332
  Insert: {
1223
1333
  address?: string | null;
1334
+ address_line1?: string | null;
1335
+ address_line2?: string | null;
1336
+ address_type?: string | null;
1337
+ attention_to?: string | null;
1338
+ bank_account_holder?: string | null;
1339
+ bank_account_number?: string | null;
1340
+ bank_address_line1?: string | null;
1341
+ bank_address_line2?: string | null;
1342
+ bank_bic?: string | null;
1343
+ bank_city?: string | null;
1344
+ bank_country?: string | null;
1345
+ bank_house_number?: string | null;
1346
+ bank_iban?: string | null;
1347
+ bank_name?: string | null;
1348
+ bank_national_code?: string | null;
1349
+ bank_postal_code?: string | null;
1350
+ bank_state?: string | null;
1351
+ billing_email?: string | null;
1224
1352
  bio?: string | null;
1225
1353
  city?: string | null;
1354
+ coc_number?: string | null;
1226
1355
  commercial_name?: string | null;
1227
1356
  company_name: string;
1228
1357
  connection_status?: string;
@@ -1231,21 +1360,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1231
1360
  created_at?: string;
1232
1361
  custom_fields?: import("../integrations/supabase/types").Json;
1233
1362
  customer_class?: string | null;
1363
+ customer_number?: string | null;
1364
+ discount_days?: number | null;
1365
+ discount_percentage?: number | null;
1234
1366
  email?: string | null;
1235
1367
  external_id?: string | null;
1368
+ fax?: string | null;
1236
1369
  floriday_connection_id?: string | null;
1237
1370
  floriday_organization_id?: string | null;
1238
1371
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1239
1372
  gln?: string | null;
1240
1373
  house_number?: string | null;
1374
+ icp_country_code?: string | null;
1241
1375
  id?: string;
1242
1376
  is_active?: boolean;
1377
+ language?: string | null;
1243
1378
  last_synced_at?: string | null;
1244
1379
  logo_url?: string | null;
1245
1380
  markets?: string[];
1246
1381
  notes?: string | null;
1247
1382
  organization_type?: string | null;
1248
1383
  payment_methods?: string[];
1384
+ payment_term_days?: number | null;
1249
1385
  phone?: string | null;
1250
1386
  postal_code?: string | null;
1251
1387
  product_groups?: string[];
@@ -1256,13 +1392,33 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1256
1392
  sync_status?: string;
1257
1393
  trade_forms?: string[];
1258
1394
  updated_at?: string;
1395
+ vat_display?: string | null;
1259
1396
  vat_number?: string | null;
1260
1397
  website?: string | null;
1261
1398
  };
1262
1399
  Update: {
1263
1400
  address?: string | null;
1401
+ address_line1?: string | null;
1402
+ address_line2?: string | null;
1403
+ address_type?: string | null;
1404
+ attention_to?: string | null;
1405
+ bank_account_holder?: string | null;
1406
+ bank_account_number?: string | null;
1407
+ bank_address_line1?: string | null;
1408
+ bank_address_line2?: string | null;
1409
+ bank_bic?: string | null;
1410
+ bank_city?: string | null;
1411
+ bank_country?: string | null;
1412
+ bank_house_number?: string | null;
1413
+ bank_iban?: string | null;
1414
+ bank_name?: string | null;
1415
+ bank_national_code?: string | null;
1416
+ bank_postal_code?: string | null;
1417
+ bank_state?: string | null;
1418
+ billing_email?: string | null;
1264
1419
  bio?: string | null;
1265
1420
  city?: string | null;
1421
+ coc_number?: string | null;
1266
1422
  commercial_name?: string | null;
1267
1423
  company_name?: string;
1268
1424
  connection_status?: string;
@@ -1271,21 +1427,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1271
1427
  created_at?: string;
1272
1428
  custom_fields?: import("../integrations/supabase/types").Json;
1273
1429
  customer_class?: string | null;
1430
+ customer_number?: string | null;
1431
+ discount_days?: number | null;
1432
+ discount_percentage?: number | null;
1274
1433
  email?: string | null;
1275
1434
  external_id?: string | null;
1435
+ fax?: string | null;
1276
1436
  floriday_connection_id?: string | null;
1277
1437
  floriday_organization_id?: string | null;
1278
1438
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1279
1439
  gln?: string | null;
1280
1440
  house_number?: string | null;
1441
+ icp_country_code?: string | null;
1281
1442
  id?: string;
1282
1443
  is_active?: boolean;
1444
+ language?: string | null;
1283
1445
  last_synced_at?: string | null;
1284
1446
  logo_url?: string | null;
1285
1447
  markets?: string[];
1286
1448
  notes?: string | null;
1287
1449
  organization_type?: string | null;
1288
1450
  payment_methods?: string[];
1451
+ payment_term_days?: number | null;
1289
1452
  phone?: string | null;
1290
1453
  postal_code?: string | null;
1291
1454
  product_groups?: string[];
@@ -1296,6 +1459,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1296
1459
  sync_status?: string;
1297
1460
  trade_forms?: string[];
1298
1461
  updated_at?: string;
1462
+ vat_display?: string | null;
1299
1463
  vat_number?: string | null;
1300
1464
  website?: string | null;
1301
1465
  };
@@ -2964,34 +3128,52 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2964
3128
  Row: {
2965
3129
  catalog_key: string | null;
2966
3130
  catalog_url: string;
3131
+ client_id: string | null;
3132
+ client_secret_ciphertext: string | null;
3133
+ client_secret_last4: string | null;
2967
3134
  created_at: string;
2968
3135
  id: number;
2969
3136
  last_meta: import("../integrations/supabase/types").Json | null;
2970
3137
  last_test_at: string | null;
2971
3138
  last_test_error: string | null;
2972
3139
  last_test_ok: boolean | null;
3140
+ last_token_test_at: string | null;
3141
+ last_token_test_error: string | null;
3142
+ last_token_test_ok: boolean | null;
2973
3143
  updated_at: string;
2974
3144
  };
2975
3145
  Insert: {
2976
3146
  catalog_key?: string | null;
2977
3147
  catalog_url?: string;
3148
+ client_id?: string | null;
3149
+ client_secret_ciphertext?: string | null;
3150
+ client_secret_last4?: string | null;
2978
3151
  created_at?: string;
2979
3152
  id?: number;
2980
3153
  last_meta?: import("../integrations/supabase/types").Json | null;
2981
3154
  last_test_at?: string | null;
2982
3155
  last_test_error?: string | null;
2983
3156
  last_test_ok?: boolean | null;
3157
+ last_token_test_at?: string | null;
3158
+ last_token_test_error?: string | null;
3159
+ last_token_test_ok?: boolean | null;
2984
3160
  updated_at?: string;
2985
3161
  };
2986
3162
  Update: {
2987
3163
  catalog_key?: string | null;
2988
3164
  catalog_url?: string;
3165
+ client_id?: string | null;
3166
+ client_secret_ciphertext?: string | null;
3167
+ client_secret_last4?: string | null;
2989
3168
  created_at?: string;
2990
3169
  id?: number;
2991
3170
  last_meta?: import("../integrations/supabase/types").Json | null;
2992
3171
  last_test_at?: string | null;
2993
3172
  last_test_error?: string | null;
2994
3173
  last_test_ok?: boolean | null;
3174
+ last_token_test_at?: string | null;
3175
+ last_token_test_error?: string | null;
3176
+ last_token_test_ok?: boolean | null;
2995
3177
  updated_at?: string;
2996
3178
  };
2997
3179
  Relationships: [];
@@ -3224,6 +3406,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3224
3406
  referencedColumns: ["id"];
3225
3407
  }];
3226
3408
  };
3409
+ floriday_auto_fulfillment_log: {
3410
+ Row: {
3411
+ attempts: number;
3412
+ connection_id: string;
3413
+ created_at: string;
3414
+ error: string | null;
3415
+ fulfillment_order_id: string | null;
3416
+ id: string;
3417
+ last_attempt_at: string | null;
3418
+ reason: string | null;
3419
+ sales_order_id: string;
3420
+ status: string;
3421
+ updated_at: string;
3422
+ };
3423
+ Insert: {
3424
+ attempts?: number;
3425
+ connection_id: string;
3426
+ created_at?: string;
3427
+ error?: string | null;
3428
+ fulfillment_order_id?: string | null;
3429
+ id?: string;
3430
+ last_attempt_at?: string | null;
3431
+ reason?: string | null;
3432
+ sales_order_id: string;
3433
+ status?: string;
3434
+ updated_at?: string;
3435
+ };
3436
+ Update: {
3437
+ attempts?: number;
3438
+ connection_id?: string;
3439
+ created_at?: string;
3440
+ error?: string | null;
3441
+ fulfillment_order_id?: string | null;
3442
+ id?: string;
3443
+ last_attempt_at?: string | null;
3444
+ reason?: string | null;
3445
+ sales_order_id?: string;
3446
+ status?: string;
3447
+ updated_at?: string;
3448
+ };
3449
+ Relationships: [{
3450
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3451
+ columns: ["connection_id"];
3452
+ isOneToOne: false;
3453
+ referencedRelation: "floriday_connections";
3454
+ referencedColumns: ["id"];
3455
+ }];
3456
+ };
3227
3457
  floriday_base_items_cache: {
3228
3458
  Row: {
3229
3459
  connection_id: string;
@@ -4328,6 +4558,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4328
4558
  referencedColumns: ["id"];
4329
4559
  }];
4330
4560
  };
4561
+ floriday_rate_limit_state: {
4562
+ Row: {
4563
+ bucket: string;
4564
+ last_refill_at: string;
4565
+ tokens: number;
4566
+ };
4567
+ Insert: {
4568
+ bucket: string;
4569
+ last_refill_at?: string;
4570
+ tokens: number;
4571
+ };
4572
+ Update: {
4573
+ bucket?: string;
4574
+ last_refill_at?: string;
4575
+ tokens?: number;
4576
+ };
4577
+ Relationships: [];
4578
+ };
4331
4579
  floriday_resource_schemas: {
4332
4580
  Row: {
4333
4581
  enums: import("../integrations/supabase/types").Json;
@@ -4751,6 +4999,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4751
4999
  referencedColumns: ["id"];
4752
5000
  }];
4753
5001
  };
5002
+ flow_role_assignments: {
5003
+ Row: {
5004
+ created_at: string;
5005
+ id: string;
5006
+ role_id: string;
5007
+ user_id: string;
5008
+ };
5009
+ Insert: {
5010
+ created_at?: string;
5011
+ id?: string;
5012
+ role_id: string;
5013
+ user_id: string;
5014
+ };
5015
+ Update: {
5016
+ created_at?: string;
5017
+ id?: string;
5018
+ role_id?: string;
5019
+ user_id?: string;
5020
+ };
5021
+ Relationships: [{
5022
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
5023
+ columns: ["role_id"];
5024
+ isOneToOne: false;
5025
+ referencedRelation: "flow_roles";
5026
+ referencedColumns: ["id"];
5027
+ }];
5028
+ };
5029
+ flow_roles: {
5030
+ Row: {
5031
+ created_at: string;
5032
+ description: string | null;
5033
+ id: string;
5034
+ module_access: string[];
5035
+ name: string;
5036
+ updated_at: string;
5037
+ };
5038
+ Insert: {
5039
+ created_at?: string;
5040
+ description?: string | null;
5041
+ id?: string;
5042
+ module_access?: string[];
5043
+ name: string;
5044
+ updated_at?: string;
5045
+ };
5046
+ Update: {
5047
+ created_at?: string;
5048
+ description?: string | null;
5049
+ id?: string;
5050
+ module_access?: string[];
5051
+ name?: string;
5052
+ updated_at?: string;
5053
+ };
5054
+ Relationships: [];
5055
+ };
4754
5056
  imap_accounts: {
4755
5057
  Row: {
4756
5058
  created_at: string;
@@ -5382,6 +5684,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5382
5684
  matched_customer_id: string | null;
5383
5685
  message_id: string;
5384
5686
  notes: string | null;
5687
+ order_number: string | null;
5385
5688
  parsed_payload: import("../integrations/supabase/types").Json | null;
5386
5689
  reviewed_at: string | null;
5387
5690
  reviewed_by: string | null;
@@ -5397,6 +5700,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5397
5700
  matched_customer_id?: string | null;
5398
5701
  message_id: string;
5399
5702
  notes?: string | null;
5703
+ order_number?: string | null;
5400
5704
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5401
5705
  reviewed_at?: string | null;
5402
5706
  reviewed_by?: string | null;
@@ -5412,6 +5716,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5412
5716
  matched_customer_id?: string | null;
5413
5717
  message_id?: string;
5414
5718
  notes?: string | null;
5719
+ order_number?: string | null;
5415
5720
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5416
5721
  reviewed_at?: string | null;
5417
5722
  reviewed_by?: string | null;
@@ -6268,6 +6573,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6268
6573
  id: string;
6269
6574
  items: import("../integrations/supabase/types").Json;
6270
6575
  notes: string | null;
6576
+ order_number: string | null;
6271
6577
  recipient_id: string;
6272
6578
  total_amount: number;
6273
6579
  };
@@ -6281,6 +6587,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6281
6587
  id?: string;
6282
6588
  items?: import("../integrations/supabase/types").Json;
6283
6589
  notes?: string | null;
6590
+ order_number?: string | null;
6284
6591
  recipient_id: string;
6285
6592
  total_amount?: number;
6286
6593
  };
@@ -6294,6 +6601,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6294
6601
  id?: string;
6295
6602
  items?: import("../integrations/supabase/types").Json;
6296
6603
  notes?: string | null;
6604
+ order_number?: string | null;
6297
6605
  recipient_id?: string;
6298
6606
  total_amount?: number;
6299
6607
  };
@@ -6453,6 +6761,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6453
6761
  crates_per_layer: number;
6454
6762
  created_at: string;
6455
6763
  id: string;
6764
+ layer_fraction: number;
6765
+ layer_share_pct: number;
6766
+ layers_per_cart: number;
6456
6767
  order_item_id: string | null;
6457
6768
  plants_per_crate: number;
6458
6769
  product_id: string | null;
@@ -6464,6 +6775,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6464
6775
  crates_per_layer?: number;
6465
6776
  created_at?: string;
6466
6777
  id?: string;
6778
+ layer_fraction?: number;
6779
+ layer_share_pct?: number;
6780
+ layers_per_cart?: number;
6467
6781
  order_item_id?: string | null;
6468
6782
  plants_per_crate?: number;
6469
6783
  product_id?: string | null;
@@ -6475,6 +6789,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6475
6789
  crates_per_layer?: number;
6476
6790
  created_at?: string;
6477
6791
  id?: string;
6792
+ layer_fraction?: number;
6793
+ layer_share_pct?: number;
6794
+ layers_per_cart?: number;
6478
6795
  order_item_id?: string | null;
6479
6796
  plants_per_crate?: number;
6480
6797
  product_id?: string | null;
@@ -6502,33 +6819,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6502
6819
  };
6503
6820
  order_carts: {
6504
6821
  Row: {
6822
+ algorithm_version: number;
6505
6823
  cart_number: number;
6506
6824
  created_at: string;
6507
6825
  id: string;
6508
6826
  is_auto: boolean;
6509
6827
  is_complete: boolean;
6510
6828
  notes: string | null;
6829
+ occupancy_pct: number;
6511
6830
  order_id: string;
6831
+ source: string;
6832
+ total_layers_used: number;
6512
6833
  updated_at: string;
6513
6834
  };
6514
6835
  Insert: {
6836
+ algorithm_version?: number;
6515
6837
  cart_number: number;
6516
6838
  created_at?: string;
6517
6839
  id?: string;
6518
6840
  is_auto?: boolean;
6519
6841
  is_complete?: boolean;
6520
6842
  notes?: string | null;
6843
+ occupancy_pct?: number;
6521
6844
  order_id: string;
6845
+ source?: string;
6846
+ total_layers_used?: number;
6522
6847
  updated_at?: string;
6523
6848
  };
6524
6849
  Update: {
6850
+ algorithm_version?: number;
6525
6851
  cart_number?: number;
6526
6852
  created_at?: string;
6527
6853
  id?: string;
6528
6854
  is_auto?: boolean;
6529
6855
  is_complete?: boolean;
6530
6856
  notes?: string | null;
6857
+ occupancy_pct?: number;
6531
6858
  order_id?: string;
6859
+ source?: string;
6860
+ total_layers_used?: number;
6532
6861
  updated_at?: string;
6533
6862
  };
6534
6863
  Relationships: [{
@@ -6681,6 +7010,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6681
7010
  order_date: string;
6682
7011
  order_number: string;
6683
7012
  order_source: string;
7013
+ plan_locked_at: string | null;
7014
+ plan_locked_ref: string | null;
6684
7015
  status: string;
6685
7016
  total: string;
6686
7017
  updated_at: string;
@@ -6697,6 +7028,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6697
7028
  order_date?: string;
6698
7029
  order_number: string;
6699
7030
  order_source?: string;
7031
+ plan_locked_at?: string | null;
7032
+ plan_locked_ref?: string | null;
6700
7033
  status?: string;
6701
7034
  total?: string;
6702
7035
  updated_at?: string;
@@ -6713,6 +7046,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6713
7046
  order_date?: string;
6714
7047
  order_number?: string;
6715
7048
  order_source?: string;
7049
+ plan_locked_at?: string | null;
7050
+ plan_locked_ref?: string | null;
6716
7051
  status?: string;
6717
7052
  total?: string;
6718
7053
  updated_at?: string;
@@ -7081,28 +7416,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7081
7416
  };
7082
7417
  profiles: {
7083
7418
  Row: {
7419
+ address: string | null;
7084
7420
  created_at: string;
7085
7421
  display_name: string | null;
7086
7422
  email: string | null;
7087
7423
  id: string;
7424
+ is_superadmin: boolean;
7088
7425
  notification_preferences: import("../integrations/supabase/types").Json;
7089
7426
  tenant_id: string | null;
7090
7427
  updated_at: string;
7091
7428
  };
7092
7429
  Insert: {
7430
+ address?: string | null;
7093
7431
  created_at?: string;
7094
7432
  display_name?: string | null;
7095
7433
  email?: string | null;
7096
7434
  id: string;
7435
+ is_superadmin?: boolean;
7097
7436
  notification_preferences?: import("../integrations/supabase/types").Json;
7098
7437
  tenant_id?: string | null;
7099
7438
  updated_at?: string;
7100
7439
  };
7101
7440
  Update: {
7441
+ address?: string | null;
7102
7442
  created_at?: string;
7103
7443
  display_name?: string | null;
7104
7444
  email?: string | null;
7105
7445
  id?: string;
7446
+ is_superadmin?: boolean;
7106
7447
  notification_preferences?: import("../integrations/supabase/types").Json;
7107
7448
  tenant_id?: string | null;
7108
7449
  updated_at?: string;
@@ -7892,6 +8233,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7892
8233
  };
7893
8234
  Relationships: [];
7894
8235
  };
8236
+ sidebar_config: {
8237
+ Row: {
8238
+ id: string;
8239
+ module_order: string[];
8240
+ updated_at: string;
8241
+ };
8242
+ Insert: {
8243
+ id?: string;
8244
+ module_order?: string[];
8245
+ updated_at?: string;
8246
+ };
8247
+ Update: {
8248
+ id?: string;
8249
+ module_order?: string[];
8250
+ updated_at?: string;
8251
+ };
8252
+ Relationships: [];
8253
+ };
7895
8254
  stock_import_runs: {
7896
8255
  Row: {
7897
8256
  connection_id: string | null;
@@ -7950,7 +8309,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7950
8309
  reason: string | null;
7951
8310
  reserved_after: number | null;
7952
8311
  reserved_before: number | null;
7953
- trade_item_key: string;
8312
+ trade_item_key: string | null;
7954
8313
  };
7955
8314
  Insert: {
7956
8315
  connection_id?: string | null;
@@ -7967,7 +8326,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7967
8326
  reason?: string | null;
7968
8327
  reserved_after?: number | null;
7969
8328
  reserved_before?: number | null;
7970
- trade_item_key: string;
8329
+ trade_item_key?: string | null;
7971
8330
  };
7972
8331
  Update: {
7973
8332
  connection_id?: string | null;
@@ -7984,7 +8343,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7984
8343
  reason?: string | null;
7985
8344
  reserved_after?: number | null;
7986
8345
  reserved_before?: number | null;
7987
- trade_item_key?: string;
8346
+ trade_item_key?: string | null;
7988
8347
  };
7989
8348
  Relationships: [];
7990
8349
  };
@@ -8327,6 +8686,114 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8327
8686
  };
8328
8687
  Relationships: [];
8329
8688
  };
8689
+ trade_item_supply_lines: {
8690
+ Row: {
8691
+ available_quantity: number | null;
8692
+ connection_id: string;
8693
+ created_at: string;
8694
+ currency: string | null;
8695
+ endpoint_family: string | null;
8696
+ environment: string | null;
8697
+ id: string;
8698
+ last_error: string | null;
8699
+ last_status: number | null;
8700
+ packing_configuration_id: string | null;
8701
+ period_end: string | null;
8702
+ period_start: string | null;
8703
+ price_per_piece: number | null;
8704
+ sales_unit: string | null;
8705
+ supply_line_id: string | null;
8706
+ supply_type: string;
8707
+ trade_item_id: string;
8708
+ updated_at: string;
8709
+ user_id: string;
8710
+ week: number | null;
8711
+ year: number | null;
8712
+ };
8713
+ Insert: {
8714
+ available_quantity?: number | null;
8715
+ connection_id: string;
8716
+ created_at?: string;
8717
+ currency?: string | null;
8718
+ endpoint_family?: string | null;
8719
+ environment?: string | null;
8720
+ id?: string;
8721
+ last_error?: string | null;
8722
+ last_status?: number | null;
8723
+ packing_configuration_id?: string | null;
8724
+ period_end?: string | null;
8725
+ period_start?: string | null;
8726
+ price_per_piece?: number | null;
8727
+ sales_unit?: string | null;
8728
+ supply_line_id?: string | null;
8729
+ supply_type?: string;
8730
+ trade_item_id: string;
8731
+ updated_at?: string;
8732
+ user_id: string;
8733
+ week?: number | null;
8734
+ year?: number | null;
8735
+ };
8736
+ Update: {
8737
+ available_quantity?: number | null;
8738
+ connection_id?: string;
8739
+ created_at?: string;
8740
+ currency?: string | null;
8741
+ endpoint_family?: string | null;
8742
+ environment?: string | null;
8743
+ id?: string;
8744
+ last_error?: string | null;
8745
+ last_status?: number | null;
8746
+ packing_configuration_id?: string | null;
8747
+ period_end?: string | null;
8748
+ period_start?: string | null;
8749
+ price_per_piece?: number | null;
8750
+ sales_unit?: string | null;
8751
+ supply_line_id?: string | null;
8752
+ supply_type?: string;
8753
+ trade_item_id?: string;
8754
+ updated_at?: string;
8755
+ user_id?: string;
8756
+ week?: number | null;
8757
+ year?: number | null;
8758
+ };
8759
+ Relationships: [];
8760
+ };
8761
+ trade_item_warehouse_preferences: {
8762
+ Row: {
8763
+ connection_id: string;
8764
+ created_at: string;
8765
+ id: string;
8766
+ trade_item_id: string;
8767
+ updated_at: string;
8768
+ warehouse_id: string;
8769
+ warehouse_name: string | null;
8770
+ };
8771
+ Insert: {
8772
+ connection_id: string;
8773
+ created_at?: string;
8774
+ id?: string;
8775
+ trade_item_id: string;
8776
+ updated_at?: string;
8777
+ warehouse_id: string;
8778
+ warehouse_name?: string | null;
8779
+ };
8780
+ Update: {
8781
+ connection_id?: string;
8782
+ created_at?: string;
8783
+ id?: string;
8784
+ trade_item_id?: string;
8785
+ updated_at?: string;
8786
+ warehouse_id?: string;
8787
+ warehouse_name?: string | null;
8788
+ };
8789
+ Relationships: [{
8790
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8791
+ columns: ["connection_id"];
8792
+ isOneToOne: false;
8793
+ referencedRelation: "floriday_connections";
8794
+ referencedColumns: ["id"];
8795
+ }];
8796
+ };
8330
8797
  twinfield_connections: {
8331
8798
  Row: {
8332
8799
  access_token: string | null;
@@ -8646,6 +9113,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8646
9113
  default_invoice_type: string;
8647
9114
  default_payment_term_days: number;
8648
9115
  default_vat_code: string;
9116
+ invoice_enabled_ao: boolean;
9117
+ invoice_enabled_fo: boolean;
9118
+ invoice_enabled_ho: boolean;
9119
+ invoice_enabled_mo: boolean;
8649
9120
  updated_at: string;
8650
9121
  user_id: string;
8651
9122
  };
@@ -8655,6 +9126,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8655
9126
  default_invoice_type?: string;
8656
9127
  default_payment_term_days?: number;
8657
9128
  default_vat_code?: string;
9129
+ invoice_enabled_ao?: boolean;
9130
+ invoice_enabled_fo?: boolean;
9131
+ invoice_enabled_ho?: boolean;
9132
+ invoice_enabled_mo?: boolean;
8658
9133
  updated_at?: string;
8659
9134
  user_id: string;
8660
9135
  };
@@ -8664,6 +9139,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8664
9139
  default_invoice_type?: string;
8665
9140
  default_payment_term_days?: number;
8666
9141
  default_vat_code?: string;
9142
+ invoice_enabled_ao?: boolean;
9143
+ invoice_enabled_fo?: boolean;
9144
+ invoice_enabled_ho?: boolean;
9145
+ invoice_enabled_mo?: boolean;
8667
9146
  updated_at?: string;
8668
9147
  user_id?: string;
8669
9148
  };
@@ -9958,6 +10437,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9958
10437
  order_number: string;
9959
10438
  }[];
9960
10439
  };
10440
+ autolink_product_to_floriday: {
10441
+ Args: {
10442
+ p_product_id: string;
10443
+ };
10444
+ Returns: string;
10445
+ };
9961
10446
  backfill_open_order_reservations: {
9962
10447
  Args: never;
9963
10448
  Returns: {
@@ -9994,7 +10479,19 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9994
10479
  };
9995
10480
  cleanup_old_bookings: {
9996
10481
  Args: never;
9997
- Returns: number;
10482
+ Returns: undefined;
10483
+ };
10484
+ consume_floriday_rate_limit: {
10485
+ Args: {
10486
+ p_bucket: string;
10487
+ p_capacity: number;
10488
+ p_cost?: number;
10489
+ p_refill_per_sec: number;
10490
+ };
10491
+ Returns: {
10492
+ granted: boolean;
10493
+ wait_ms: number;
10494
+ }[];
9998
10495
  };
9999
10496
  control_get_todays_carts: {
10000
10497
  Args: never;
@@ -10076,6 +10573,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10076
10573
  status: string;
10077
10574
  }[];
10078
10575
  };
10576
+ enqueue_cart_replan_if_unlocked: {
10577
+ Args: {
10578
+ p_order_id: string;
10579
+ };
10580
+ Returns: undefined;
10581
+ };
10079
10582
  ensure_trade_item_stock_row: {
10080
10583
  Args: {
10081
10584
  p_key: string;
@@ -10182,6 +10685,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10182
10685
  office_code: string;
10183
10686
  }[];
10184
10687
  };
10688
+ get_floricode_record_counts: {
10689
+ Args: never;
10690
+ Returns: {
10691
+ count: number;
10692
+ resource: string;
10693
+ }[];
10694
+ };
10185
10695
  get_floriday_agreements_active: {
10186
10696
  Args: {
10187
10697
  p_on_date?: string;
@@ -10273,6 +10783,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10273
10783
  };
10274
10784
  Returns: import("../integrations/supabase/types").Json;
10275
10785
  };
10786
+ get_offer_delivery_options: {
10787
+ Args: {
10788
+ p_code: string;
10789
+ };
10790
+ Returns: import("../integrations/supabase/types").Json;
10791
+ };
10276
10792
  get_offer_recipient_by_code: {
10277
10793
  Args: {
10278
10794
  p_code: string;
@@ -10337,6 +10853,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10337
10853
  Args: never;
10338
10854
  Returns: boolean;
10339
10855
  };
10856
+ is_superadmin: {
10857
+ Args: {
10858
+ _user_id: string;
10859
+ };
10860
+ Returns: boolean;
10861
+ };
10340
10862
  local_effective_price: {
10341
10863
  Args: {
10342
10864
  _customer_id: string;
@@ -10371,6 +10893,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10371
10893
  };
10372
10894
  Returns: string;
10373
10895
  };
10896
+ next_order_number_for_date: {
10897
+ Args: {
10898
+ p_created_at?: string;
10899
+ p_prefix: string;
10900
+ };
10901
+ Returns: string;
10902
+ };
10374
10903
  next_work_order_number: {
10375
10904
  Args: {
10376
10905
  p_parent_work_order_id?: string;
@@ -10378,6 +10907,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10378
10907
  };
10379
10908
  Returns: string;
10380
10909
  };
10910
+ normalize_order_source: {
10911
+ Args: {
10912
+ p_src: string;
10913
+ };
10914
+ Returns: string;
10915
+ };
10381
10916
  normalize_vat: {
10382
10917
  Args: {
10383
10918
  v: string;
@@ -10392,10 +10927,21 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10392
10927
  };
10393
10928
  Returns: boolean;
10394
10929
  };
10930
+ order_number_prefix: {
10931
+ Args: {
10932
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10933
+ p_order_source: string;
10934
+ };
10935
+ Returns: string;
10936
+ };
10395
10937
  pickstation_get_orders_raw: {
10396
10938
  Args: never;
10397
10939
  Returns: import("../integrations/supabase/types").Json;
10398
10940
  };
10941
+ pickstation_get_planning_context: {
10942
+ Args: never;
10943
+ Returns: import("../integrations/supabase/types").Json;
10944
+ };
10399
10945
  pickstation_get_settings: {
10400
10946
  Args: never;
10401
10947
  Returns: import("../integrations/supabase/types").Json;
@@ -10426,6 +10972,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10426
10972
  };
10427
10973
  Returns: undefined;
10428
10974
  };
10975
+ recompute_order_status: {
10976
+ Args: {
10977
+ p_order_id: string;
10978
+ };
10979
+ Returns: undefined;
10980
+ };
10981
+ recompute_reserved_for_order: {
10982
+ Args: {
10983
+ p_order_id: string;
10984
+ };
10985
+ Returns: undefined;
10986
+ };
10987
+ recompute_reserved_stock: {
10988
+ Args: {
10989
+ p_trade_item_key: string;
10990
+ };
10991
+ Returns: undefined;
10992
+ };
10993
+ refresh_external_customers_grouped: {
10994
+ Args: never;
10995
+ Returns: undefined;
10996
+ };
10429
10997
  refresh_floricode_derived_code_lists: {
10430
10998
  Args: never;
10431
10999
  Returns: {
@@ -10440,6 +11008,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10440
11008
  };
10441
11009
  Returns: number;
10442
11010
  };
11011
+ refresh_floricode_derived_for_products: {
11012
+ Args: {
11013
+ _product_ids: string[];
11014
+ };
11015
+ Returns: number;
11016
+ };
10443
11017
  reset_floriday_sync_cursor: {
10444
11018
  Args: {
10445
11019
  p_connection_id: string;
@@ -10447,6 +11021,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10447
11021
  };
10448
11022
  Returns: undefined;
10449
11023
  };
11024
+ resolve_product_id_for_item: {
11025
+ Args: {
11026
+ p_product_name: string;
11027
+ };
11028
+ Returns: string;
11029
+ };
10450
11030
  schedule_floriday_additional_services_sync: {
10451
11031
  Args: {
10452
11032
  p_apikey: string;
@@ -10724,6 +11304,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10724
11304
  };
10725
11305
  Returns: string[];
10726
11306
  };
11307
+ sync_cached_packing_from_product: {
11308
+ Args: {
11309
+ p_product_id: string;
11310
+ };
11311
+ Returns: undefined;
11312
+ };
11313
+ sync_order_cart_item_packing_from_product: {
11314
+ Args: {
11315
+ p_product_id: string;
11316
+ };
11317
+ Returns: undefined;
11318
+ };
11319
+ sync_product_packing_from_floriday_cache: {
11320
+ Args: {
11321
+ p_floriday_id: string;
11322
+ };
11323
+ Returns: undefined;
11324
+ };
10727
11325
  twinfield_decrypt: {
10728
11326
  Args: {
10729
11327
  cipher: string;
@@ -10736,6 +11334,17 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10736
11334
  };
10737
11335
  Returns: string;
10738
11336
  };
11337
+ upsert_auto_fulfillment_log: {
11338
+ Args: {
11339
+ p_connection_id: string;
11340
+ p_error?: string;
11341
+ p_fulfillment_order_id?: string;
11342
+ p_reason?: string;
11343
+ p_sales_order_id: string;
11344
+ p_status: string;
11345
+ };
11346
+ Returns: undefined;
11347
+ };
10739
11348
  };
10740
11349
  Enums: {
10741
11350
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";