@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
@@ -4,7 +4,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4
4
  Tables: {
5
5
  afhandeling_settings: {
6
6
  Row: {
7
+ auto_print_delivery_note: boolean;
8
+ auto_process_paused: boolean;
7
9
  created_at: string;
10
+ extra_pick_days_with_stickers: number;
8
11
  id: string;
9
12
  max_workdays_earlier_pick: number;
10
13
  pick_days_before_transport: number;
@@ -18,7 +21,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18
21
  user_id: string;
19
22
  };
20
23
  Insert: {
24
+ auto_print_delivery_note?: boolean;
25
+ auto_process_paused?: boolean;
21
26
  created_at?: string;
27
+ extra_pick_days_with_stickers?: number;
22
28
  id?: string;
23
29
  max_workdays_earlier_pick?: number;
24
30
  pick_days_before_transport?: number;
@@ -32,7 +38,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
32
38
  user_id: string;
33
39
  };
34
40
  Update: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
35
43
  created_at?: string;
44
+ extra_pick_days_with_stickers?: number;
36
45
  id?: string;
37
46
  max_workdays_earlier_pick?: number;
38
47
  pick_days_before_transport?: number;
@@ -263,6 +272,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
263
272
  created_at: string;
264
273
  extra_id: string;
265
274
  id: string;
275
+ original_unit_price: number | null;
276
+ override_reason: string | null;
277
+ override_unit_price: number | null;
266
278
  quantity: number;
267
279
  total_price: number;
268
280
  unit_price: number;
@@ -272,6 +284,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
272
284
  created_at?: string;
273
285
  extra_id: string;
274
286
  id?: string;
287
+ original_unit_price?: number | null;
288
+ override_reason?: string | null;
289
+ override_unit_price?: number | null;
275
290
  quantity?: number;
276
291
  total_price?: number;
277
292
  unit_price?: number;
@@ -281,6 +296,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
281
296
  created_at?: string;
282
297
  extra_id?: string;
283
298
  id?: string;
299
+ original_unit_price?: number | null;
300
+ override_reason?: string | null;
301
+ override_unit_price?: number | null;
284
302
  quantity?: number;
285
303
  total_price?: number;
286
304
  unit_price?: number;
@@ -301,11 +319,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
301
319
  };
302
320
  bookings: {
303
321
  Row: {
322
+ archive_reason: string | null;
323
+ archived_at: string | null;
324
+ archived_by: string | null;
304
325
  company_name: string | null;
305
326
  conflict_checked_at: string | null;
306
327
  conflict_reason: string | null;
307
328
  created_at: string;
308
329
  created_by_role: string | null;
330
+ customer_address: string | null;
309
331
  customer_email: string | null;
310
332
  customer_name: string | null;
311
333
  end_time: string;
@@ -317,7 +339,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
317
339
  invoiced_at: string | null;
318
340
  notes: string | null;
319
341
  number_of_people: number;
342
+ overridden_at: string | null;
343
+ overridden_by: string | null;
344
+ override_reason: string | null;
345
+ price_override: boolean;
320
346
  room_id: string;
347
+ room_price_override: number | null;
321
348
  start_time: string;
322
349
  status: string;
323
350
  total_excl_vat: number | null;
@@ -326,11 +353,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
326
353
  vat_amount: number | null;
327
354
  };
328
355
  Insert: {
356
+ archive_reason?: string | null;
357
+ archived_at?: string | null;
358
+ archived_by?: string | null;
329
359
  company_name?: string | null;
330
360
  conflict_checked_at?: string | null;
331
361
  conflict_reason?: string | null;
332
362
  created_at?: string;
333
363
  created_by_role?: string | null;
364
+ customer_address?: string | null;
334
365
  customer_email?: string | null;
335
366
  customer_name?: string | null;
336
367
  end_time: string;
@@ -342,7 +373,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
342
373
  invoiced_at?: string | null;
343
374
  notes?: string | null;
344
375
  number_of_people?: number;
376
+ overridden_at?: string | null;
377
+ overridden_by?: string | null;
378
+ override_reason?: string | null;
379
+ price_override?: boolean;
345
380
  room_id: string;
381
+ room_price_override?: number | null;
346
382
  start_time: string;
347
383
  status?: string;
348
384
  total_excl_vat?: number | null;
@@ -351,11 +387,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
351
387
  vat_amount?: number | null;
352
388
  };
353
389
  Update: {
390
+ archive_reason?: string | null;
391
+ archived_at?: string | null;
392
+ archived_by?: string | null;
354
393
  company_name?: string | null;
355
394
  conflict_checked_at?: string | null;
356
395
  conflict_reason?: string | null;
357
396
  created_at?: string;
358
397
  created_by_role?: string | null;
398
+ customer_address?: string | null;
359
399
  customer_email?: string | null;
360
400
  customer_name?: string | null;
361
401
  end_time?: string;
@@ -367,7 +407,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
367
407
  invoiced_at?: string | null;
368
408
  notes?: string | null;
369
409
  number_of_people?: number;
410
+ overridden_at?: string | null;
411
+ overridden_by?: string | null;
412
+ override_reason?: string | null;
413
+ price_override?: boolean;
370
414
  room_id?: string;
415
+ room_price_override?: number | null;
371
416
  start_time?: string;
372
417
  status?: string;
373
418
  total_excl_vat?: number | null;
@@ -824,6 +869,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
824
869
  };
825
870
  Relationships: [];
826
871
  };
872
+ cart_replan_queue: {
873
+ Row: {
874
+ attempts: number;
875
+ last_error: string | null;
876
+ order_id: string;
877
+ processed_at: string | null;
878
+ requested_at: string;
879
+ };
880
+ Insert: {
881
+ attempts?: number;
882
+ last_error?: string | null;
883
+ order_id: string;
884
+ processed_at?: string | null;
885
+ requested_at?: string;
886
+ };
887
+ Update: {
888
+ attempts?: number;
889
+ last_error?: string | null;
890
+ order_id?: string;
891
+ processed_at?: string | null;
892
+ requested_at?: string;
893
+ };
894
+ Relationships: [{
895
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
896
+ columns: ["order_id"];
897
+ isOneToOne: true;
898
+ referencedRelation: "orders";
899
+ referencedColumns: ["id"];
900
+ }];
901
+ };
827
902
  collections: {
828
903
  Row: {
829
904
  created_at: string;
@@ -1166,8 +1241,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1166
1241
  customers: {
1167
1242
  Row: {
1168
1243
  address: string | null;
1244
+ address_line1: string | null;
1245
+ address_line2: string | null;
1246
+ address_type: string | null;
1247
+ attention_to: string | null;
1248
+ bank_account_holder: string | null;
1249
+ bank_account_number: string | null;
1250
+ bank_address_line1: string | null;
1251
+ bank_address_line2: string | null;
1252
+ bank_bic: string | null;
1253
+ bank_city: string | null;
1254
+ bank_country: string | null;
1255
+ bank_house_number: string | null;
1256
+ bank_iban: string | null;
1257
+ bank_name: string | null;
1258
+ bank_national_code: string | null;
1259
+ bank_postal_code: string | null;
1260
+ bank_state: string | null;
1261
+ billing_email: string | null;
1169
1262
  bio: string | null;
1170
1263
  city: string | null;
1264
+ coc_number: string | null;
1171
1265
  commercial_name: string | null;
1172
1266
  company_name: string;
1173
1267
  connection_status: string;
@@ -1176,21 +1270,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1176
1270
  created_at: string;
1177
1271
  custom_fields: import("./types").Json;
1178
1272
  customer_class: string | null;
1273
+ customer_number: string | null;
1274
+ discount_days: number | null;
1275
+ discount_percentage: number | null;
1179
1276
  email: string | null;
1180
1277
  external_id: string | null;
1278
+ fax: string | null;
1181
1279
  floriday_connection_id: string | null;
1182
1280
  floriday_organization_id: string | null;
1183
1281
  floriday_raw: import("./types").Json | null;
1184
1282
  gln: string | null;
1185
1283
  house_number: string | null;
1284
+ icp_country_code: string | null;
1186
1285
  id: string;
1187
1286
  is_active: boolean;
1287
+ language: string | null;
1188
1288
  last_synced_at: string | null;
1189
1289
  logo_url: string | null;
1190
1290
  markets: string[];
1191
1291
  notes: string | null;
1192
1292
  organization_type: string | null;
1193
1293
  payment_methods: string[];
1294
+ payment_term_days: number | null;
1194
1295
  phone: string | null;
1195
1296
  postal_code: string | null;
1196
1297
  product_groups: string[];
@@ -1201,13 +1302,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1201
1302
  sync_status: string;
1202
1303
  trade_forms: string[];
1203
1304
  updated_at: string;
1305
+ vat_display: string | null;
1204
1306
  vat_number: string | null;
1205
1307
  website: string | null;
1206
1308
  };
1207
1309
  Insert: {
1208
1310
  address?: string | null;
1311
+ address_line1?: string | null;
1312
+ address_line2?: string | null;
1313
+ address_type?: string | null;
1314
+ attention_to?: string | null;
1315
+ bank_account_holder?: string | null;
1316
+ bank_account_number?: string | null;
1317
+ bank_address_line1?: string | null;
1318
+ bank_address_line2?: string | null;
1319
+ bank_bic?: string | null;
1320
+ bank_city?: string | null;
1321
+ bank_country?: string | null;
1322
+ bank_house_number?: string | null;
1323
+ bank_iban?: string | null;
1324
+ bank_name?: string | null;
1325
+ bank_national_code?: string | null;
1326
+ bank_postal_code?: string | null;
1327
+ bank_state?: string | null;
1328
+ billing_email?: string | null;
1209
1329
  bio?: string | null;
1210
1330
  city?: string | null;
1331
+ coc_number?: string | null;
1211
1332
  commercial_name?: string | null;
1212
1333
  company_name: string;
1213
1334
  connection_status?: string;
@@ -1216,21 +1337,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1216
1337
  created_at?: string;
1217
1338
  custom_fields?: import("./types").Json;
1218
1339
  customer_class?: string | null;
1340
+ customer_number?: string | null;
1341
+ discount_days?: number | null;
1342
+ discount_percentage?: number | null;
1219
1343
  email?: string | null;
1220
1344
  external_id?: string | null;
1345
+ fax?: string | null;
1221
1346
  floriday_connection_id?: string | null;
1222
1347
  floriday_organization_id?: string | null;
1223
1348
  floriday_raw?: import("./types").Json | null;
1224
1349
  gln?: string | null;
1225
1350
  house_number?: string | null;
1351
+ icp_country_code?: string | null;
1226
1352
  id?: string;
1227
1353
  is_active?: boolean;
1354
+ language?: string | null;
1228
1355
  last_synced_at?: string | null;
1229
1356
  logo_url?: string | null;
1230
1357
  markets?: string[];
1231
1358
  notes?: string | null;
1232
1359
  organization_type?: string | null;
1233
1360
  payment_methods?: string[];
1361
+ payment_term_days?: number | null;
1234
1362
  phone?: string | null;
1235
1363
  postal_code?: string | null;
1236
1364
  product_groups?: string[];
@@ -1241,13 +1369,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1241
1369
  sync_status?: string;
1242
1370
  trade_forms?: string[];
1243
1371
  updated_at?: string;
1372
+ vat_display?: string | null;
1244
1373
  vat_number?: string | null;
1245
1374
  website?: string | null;
1246
1375
  };
1247
1376
  Update: {
1248
1377
  address?: string | null;
1378
+ address_line1?: string | null;
1379
+ address_line2?: string | null;
1380
+ address_type?: string | null;
1381
+ attention_to?: string | null;
1382
+ bank_account_holder?: string | null;
1383
+ bank_account_number?: string | null;
1384
+ bank_address_line1?: string | null;
1385
+ bank_address_line2?: string | null;
1386
+ bank_bic?: string | null;
1387
+ bank_city?: string | null;
1388
+ bank_country?: string | null;
1389
+ bank_house_number?: string | null;
1390
+ bank_iban?: string | null;
1391
+ bank_name?: string | null;
1392
+ bank_national_code?: string | null;
1393
+ bank_postal_code?: string | null;
1394
+ bank_state?: string | null;
1395
+ billing_email?: string | null;
1249
1396
  bio?: string | null;
1250
1397
  city?: string | null;
1398
+ coc_number?: string | null;
1251
1399
  commercial_name?: string | null;
1252
1400
  company_name?: string;
1253
1401
  connection_status?: string;
@@ -1256,21 +1404,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1256
1404
  created_at?: string;
1257
1405
  custom_fields?: import("./types").Json;
1258
1406
  customer_class?: string | null;
1407
+ customer_number?: string | null;
1408
+ discount_days?: number | null;
1409
+ discount_percentage?: number | null;
1259
1410
  email?: string | null;
1260
1411
  external_id?: string | null;
1412
+ fax?: string | null;
1261
1413
  floriday_connection_id?: string | null;
1262
1414
  floriday_organization_id?: string | null;
1263
1415
  floriday_raw?: import("./types").Json | null;
1264
1416
  gln?: string | null;
1265
1417
  house_number?: string | null;
1418
+ icp_country_code?: string | null;
1266
1419
  id?: string;
1267
1420
  is_active?: boolean;
1421
+ language?: string | null;
1268
1422
  last_synced_at?: string | null;
1269
1423
  logo_url?: string | null;
1270
1424
  markets?: string[];
1271
1425
  notes?: string | null;
1272
1426
  organization_type?: string | null;
1273
1427
  payment_methods?: string[];
1428
+ payment_term_days?: number | null;
1274
1429
  phone?: string | null;
1275
1430
  postal_code?: string | null;
1276
1431
  product_groups?: string[];
@@ -1281,6 +1436,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1281
1436
  sync_status?: string;
1282
1437
  trade_forms?: string[];
1283
1438
  updated_at?: string;
1439
+ vat_display?: string | null;
1284
1440
  vat_number?: string | null;
1285
1441
  website?: string | null;
1286
1442
  };
@@ -2949,34 +3105,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2949
3105
  Row: {
2950
3106
  catalog_key: string | null;
2951
3107
  catalog_url: string;
3108
+ client_id: string | null;
3109
+ client_secret_ciphertext: string | null;
3110
+ client_secret_last4: string | null;
2952
3111
  created_at: string;
2953
3112
  id: number;
2954
3113
  last_meta: import("./types").Json | null;
2955
3114
  last_test_at: string | null;
2956
3115
  last_test_error: string | null;
2957
3116
  last_test_ok: boolean | null;
3117
+ last_token_test_at: string | null;
3118
+ last_token_test_error: string | null;
3119
+ last_token_test_ok: boolean | null;
2958
3120
  updated_at: string;
2959
3121
  };
2960
3122
  Insert: {
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("./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
  Update: {
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("./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
  Relationships: [];
@@ -3209,6 +3383,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3209
3383
  referencedColumns: ["id"];
3210
3384
  }];
3211
3385
  };
3386
+ floriday_auto_fulfillment_log: {
3387
+ Row: {
3388
+ attempts: number;
3389
+ connection_id: string;
3390
+ created_at: string;
3391
+ error: string | null;
3392
+ fulfillment_order_id: string | null;
3393
+ id: string;
3394
+ last_attempt_at: string | null;
3395
+ reason: string | null;
3396
+ sales_order_id: string;
3397
+ status: string;
3398
+ updated_at: string;
3399
+ };
3400
+ Insert: {
3401
+ attempts?: number;
3402
+ connection_id: string;
3403
+ created_at?: string;
3404
+ error?: string | null;
3405
+ fulfillment_order_id?: string | null;
3406
+ id?: string;
3407
+ last_attempt_at?: string | null;
3408
+ reason?: string | null;
3409
+ sales_order_id: string;
3410
+ status?: string;
3411
+ updated_at?: string;
3412
+ };
3413
+ Update: {
3414
+ attempts?: number;
3415
+ connection_id?: string;
3416
+ created_at?: string;
3417
+ error?: string | null;
3418
+ fulfillment_order_id?: string | null;
3419
+ id?: string;
3420
+ last_attempt_at?: string | null;
3421
+ reason?: string | null;
3422
+ sales_order_id?: string;
3423
+ status?: string;
3424
+ updated_at?: string;
3425
+ };
3426
+ Relationships: [{
3427
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3428
+ columns: ["connection_id"];
3429
+ isOneToOne: false;
3430
+ referencedRelation: "floriday_connections";
3431
+ referencedColumns: ["id"];
3432
+ }];
3433
+ };
3212
3434
  floriday_base_items_cache: {
3213
3435
  Row: {
3214
3436
  connection_id: string;
@@ -4313,6 +4535,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4313
4535
  referencedColumns: ["id"];
4314
4536
  }];
4315
4537
  };
4538
+ floriday_rate_limit_state: {
4539
+ Row: {
4540
+ bucket: string;
4541
+ last_refill_at: string;
4542
+ tokens: number;
4543
+ };
4544
+ Insert: {
4545
+ bucket: string;
4546
+ last_refill_at?: string;
4547
+ tokens: number;
4548
+ };
4549
+ Update: {
4550
+ bucket?: string;
4551
+ last_refill_at?: string;
4552
+ tokens?: number;
4553
+ };
4554
+ Relationships: [];
4555
+ };
4316
4556
  floriday_resource_schemas: {
4317
4557
  Row: {
4318
4558
  enums: import("./types").Json;
@@ -4736,6 +4976,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4736
4976
  referencedColumns: ["id"];
4737
4977
  }];
4738
4978
  };
4979
+ flow_role_assignments: {
4980
+ Row: {
4981
+ created_at: string;
4982
+ id: string;
4983
+ role_id: string;
4984
+ user_id: string;
4985
+ };
4986
+ Insert: {
4987
+ created_at?: string;
4988
+ id?: string;
4989
+ role_id: string;
4990
+ user_id: string;
4991
+ };
4992
+ Update: {
4993
+ created_at?: string;
4994
+ id?: string;
4995
+ role_id?: string;
4996
+ user_id?: string;
4997
+ };
4998
+ Relationships: [{
4999
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
5000
+ columns: ["role_id"];
5001
+ isOneToOne: false;
5002
+ referencedRelation: "flow_roles";
5003
+ referencedColumns: ["id"];
5004
+ }];
5005
+ };
5006
+ flow_roles: {
5007
+ Row: {
5008
+ created_at: string;
5009
+ description: string | null;
5010
+ id: string;
5011
+ module_access: string[];
5012
+ name: string;
5013
+ updated_at: string;
5014
+ };
5015
+ Insert: {
5016
+ created_at?: string;
5017
+ description?: string | null;
5018
+ id?: string;
5019
+ module_access?: string[];
5020
+ name: string;
5021
+ updated_at?: string;
5022
+ };
5023
+ Update: {
5024
+ created_at?: string;
5025
+ description?: string | null;
5026
+ id?: string;
5027
+ module_access?: string[];
5028
+ name?: string;
5029
+ updated_at?: string;
5030
+ };
5031
+ Relationships: [];
5032
+ };
4739
5033
  imap_accounts: {
4740
5034
  Row: {
4741
5035
  created_at: string;
@@ -5367,6 +5661,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5367
5661
  matched_customer_id: string | null;
5368
5662
  message_id: string;
5369
5663
  notes: string | null;
5664
+ order_number: string | null;
5370
5665
  parsed_payload: import("./types").Json | null;
5371
5666
  reviewed_at: string | null;
5372
5667
  reviewed_by: string | null;
@@ -5382,6 +5677,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5382
5677
  matched_customer_id?: string | null;
5383
5678
  message_id: string;
5384
5679
  notes?: string | null;
5680
+ order_number?: string | null;
5385
5681
  parsed_payload?: import("./types").Json | null;
5386
5682
  reviewed_at?: string | null;
5387
5683
  reviewed_by?: string | null;
@@ -5397,6 +5693,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5397
5693
  matched_customer_id?: string | null;
5398
5694
  message_id?: string;
5399
5695
  notes?: string | null;
5696
+ order_number?: string | null;
5400
5697
  parsed_payload?: import("./types").Json | null;
5401
5698
  reviewed_at?: string | null;
5402
5699
  reviewed_by?: string | null;
@@ -6253,6 +6550,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6253
6550
  id: string;
6254
6551
  items: import("./types").Json;
6255
6552
  notes: string | null;
6553
+ order_number: string | null;
6256
6554
  recipient_id: string;
6257
6555
  total_amount: number;
6258
6556
  };
@@ -6266,6 +6564,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6266
6564
  id?: string;
6267
6565
  items?: import("./types").Json;
6268
6566
  notes?: string | null;
6567
+ order_number?: string | null;
6269
6568
  recipient_id: string;
6270
6569
  total_amount?: number;
6271
6570
  };
@@ -6279,6 +6578,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6279
6578
  id?: string;
6280
6579
  items?: import("./types").Json;
6281
6580
  notes?: string | null;
6581
+ order_number?: string | null;
6282
6582
  recipient_id?: string;
6283
6583
  total_amount?: number;
6284
6584
  };
@@ -6438,6 +6738,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6438
6738
  crates_per_layer: number;
6439
6739
  created_at: string;
6440
6740
  id: string;
6741
+ layer_fraction: number;
6742
+ layer_share_pct: number;
6743
+ layers_per_cart: number;
6441
6744
  order_item_id: string | null;
6442
6745
  plants_per_crate: number;
6443
6746
  product_id: string | null;
@@ -6449,6 +6752,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6449
6752
  crates_per_layer?: number;
6450
6753
  created_at?: string;
6451
6754
  id?: string;
6755
+ layer_fraction?: number;
6756
+ layer_share_pct?: number;
6757
+ layers_per_cart?: number;
6452
6758
  order_item_id?: string | null;
6453
6759
  plants_per_crate?: number;
6454
6760
  product_id?: string | null;
@@ -6460,6 +6766,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6460
6766
  crates_per_layer?: number;
6461
6767
  created_at?: string;
6462
6768
  id?: string;
6769
+ layer_fraction?: number;
6770
+ layer_share_pct?: number;
6771
+ layers_per_cart?: number;
6463
6772
  order_item_id?: string | null;
6464
6773
  plants_per_crate?: number;
6465
6774
  product_id?: string | null;
@@ -6487,33 +6796,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6487
6796
  };
6488
6797
  order_carts: {
6489
6798
  Row: {
6799
+ algorithm_version: number;
6490
6800
  cart_number: number;
6491
6801
  created_at: string;
6492
6802
  id: string;
6493
6803
  is_auto: boolean;
6494
6804
  is_complete: boolean;
6495
6805
  notes: string | null;
6806
+ occupancy_pct: number;
6496
6807
  order_id: string;
6808
+ source: string;
6809
+ total_layers_used: number;
6497
6810
  updated_at: string;
6498
6811
  };
6499
6812
  Insert: {
6813
+ algorithm_version?: number;
6500
6814
  cart_number: number;
6501
6815
  created_at?: string;
6502
6816
  id?: string;
6503
6817
  is_auto?: boolean;
6504
6818
  is_complete?: boolean;
6505
6819
  notes?: string | null;
6820
+ occupancy_pct?: number;
6506
6821
  order_id: string;
6822
+ source?: string;
6823
+ total_layers_used?: number;
6507
6824
  updated_at?: string;
6508
6825
  };
6509
6826
  Update: {
6827
+ algorithm_version?: number;
6510
6828
  cart_number?: number;
6511
6829
  created_at?: string;
6512
6830
  id?: string;
6513
6831
  is_auto?: boolean;
6514
6832
  is_complete?: boolean;
6515
6833
  notes?: string | null;
6834
+ occupancy_pct?: number;
6516
6835
  order_id?: string;
6836
+ source?: string;
6837
+ total_layers_used?: number;
6517
6838
  updated_at?: string;
6518
6839
  };
6519
6840
  Relationships: [{
@@ -6666,6 +6987,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6666
6987
  order_date: string;
6667
6988
  order_number: string;
6668
6989
  order_source: string;
6990
+ plan_locked_at: string | null;
6991
+ plan_locked_ref: string | null;
6669
6992
  status: string;
6670
6993
  total: string;
6671
6994
  updated_at: string;
@@ -6682,6 +7005,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6682
7005
  order_date?: string;
6683
7006
  order_number: string;
6684
7007
  order_source?: string;
7008
+ plan_locked_at?: string | null;
7009
+ plan_locked_ref?: string | null;
6685
7010
  status?: string;
6686
7011
  total?: string;
6687
7012
  updated_at?: string;
@@ -6698,6 +7023,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6698
7023
  order_date?: string;
6699
7024
  order_number?: string;
6700
7025
  order_source?: string;
7026
+ plan_locked_at?: string | null;
7027
+ plan_locked_ref?: string | null;
6701
7028
  status?: string;
6702
7029
  total?: string;
6703
7030
  updated_at?: string;
@@ -7066,28 +7393,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7066
7393
  };
7067
7394
  profiles: {
7068
7395
  Row: {
7396
+ address: string | null;
7069
7397
  created_at: string;
7070
7398
  display_name: string | null;
7071
7399
  email: string | null;
7072
7400
  id: string;
7401
+ is_superadmin: boolean;
7073
7402
  notification_preferences: import("./types").Json;
7074
7403
  tenant_id: string | null;
7075
7404
  updated_at: string;
7076
7405
  };
7077
7406
  Insert: {
7407
+ address?: string | null;
7078
7408
  created_at?: string;
7079
7409
  display_name?: string | null;
7080
7410
  email?: string | null;
7081
7411
  id: string;
7412
+ is_superadmin?: boolean;
7082
7413
  notification_preferences?: import("./types").Json;
7083
7414
  tenant_id?: string | null;
7084
7415
  updated_at?: string;
7085
7416
  };
7086
7417
  Update: {
7418
+ address?: string | null;
7087
7419
  created_at?: string;
7088
7420
  display_name?: string | null;
7089
7421
  email?: string | null;
7090
7422
  id?: string;
7423
+ is_superadmin?: boolean;
7091
7424
  notification_preferences?: import("./types").Json;
7092
7425
  tenant_id?: string | null;
7093
7426
  updated_at?: string;
@@ -7877,6 +8210,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7877
8210
  };
7878
8211
  Relationships: [];
7879
8212
  };
8213
+ sidebar_config: {
8214
+ Row: {
8215
+ id: string;
8216
+ module_order: string[];
8217
+ updated_at: string;
8218
+ };
8219
+ Insert: {
8220
+ id?: string;
8221
+ module_order?: string[];
8222
+ updated_at?: string;
8223
+ };
8224
+ Update: {
8225
+ id?: string;
8226
+ module_order?: string[];
8227
+ updated_at?: string;
8228
+ };
8229
+ Relationships: [];
8230
+ };
7880
8231
  stock_import_runs: {
7881
8232
  Row: {
7882
8233
  connection_id: string | null;
@@ -7935,7 +8286,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7935
8286
  reason: string | null;
7936
8287
  reserved_after: number | null;
7937
8288
  reserved_before: number | null;
7938
- trade_item_key: string;
8289
+ trade_item_key: string | null;
7939
8290
  };
7940
8291
  Insert: {
7941
8292
  connection_id?: string | null;
@@ -7952,7 +8303,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7952
8303
  reason?: string | null;
7953
8304
  reserved_after?: number | null;
7954
8305
  reserved_before?: number | null;
7955
- trade_item_key: string;
8306
+ trade_item_key?: string | null;
7956
8307
  };
7957
8308
  Update: {
7958
8309
  connection_id?: string | null;
@@ -7969,7 +8320,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7969
8320
  reason?: string | null;
7970
8321
  reserved_after?: number | null;
7971
8322
  reserved_before?: number | null;
7972
- trade_item_key?: string;
8323
+ trade_item_key?: string | null;
7973
8324
  };
7974
8325
  Relationships: [];
7975
8326
  };
@@ -8312,6 +8663,114 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8312
8663
  };
8313
8664
  Relationships: [];
8314
8665
  };
8666
+ trade_item_supply_lines: {
8667
+ Row: {
8668
+ available_quantity: number | null;
8669
+ connection_id: string;
8670
+ created_at: string;
8671
+ currency: string | null;
8672
+ endpoint_family: string | null;
8673
+ environment: string | null;
8674
+ id: string;
8675
+ last_error: string | null;
8676
+ last_status: number | null;
8677
+ packing_configuration_id: string | null;
8678
+ period_end: string | null;
8679
+ period_start: string | null;
8680
+ price_per_piece: number | null;
8681
+ sales_unit: string | null;
8682
+ supply_line_id: string | null;
8683
+ supply_type: string;
8684
+ trade_item_id: string;
8685
+ updated_at: string;
8686
+ user_id: string;
8687
+ week: number | null;
8688
+ year: number | null;
8689
+ };
8690
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
8737
+ };
8738
+ trade_item_warehouse_preferences: {
8739
+ Row: {
8740
+ connection_id: string;
8741
+ created_at: string;
8742
+ id: string;
8743
+ trade_item_id: string;
8744
+ updated_at: string;
8745
+ warehouse_id: string;
8746
+ warehouse_name: string | null;
8747
+ };
8748
+ Insert: {
8749
+ connection_id: string;
8750
+ created_at?: string;
8751
+ id?: string;
8752
+ trade_item_id: string;
8753
+ updated_at?: string;
8754
+ warehouse_id: string;
8755
+ warehouse_name?: string | null;
8756
+ };
8757
+ Update: {
8758
+ connection_id?: string;
8759
+ created_at?: string;
8760
+ id?: string;
8761
+ trade_item_id?: string;
8762
+ updated_at?: string;
8763
+ warehouse_id?: string;
8764
+ warehouse_name?: string | null;
8765
+ };
8766
+ Relationships: [{
8767
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8768
+ columns: ["connection_id"];
8769
+ isOneToOne: false;
8770
+ referencedRelation: "floriday_connections";
8771
+ referencedColumns: ["id"];
8772
+ }];
8773
+ };
8315
8774
  twinfield_connections: {
8316
8775
  Row: {
8317
8776
  access_token: string | null;
@@ -8631,6 +9090,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8631
9090
  default_invoice_type: string;
8632
9091
  default_payment_term_days: number;
8633
9092
  default_vat_code: string;
9093
+ invoice_enabled_ao: boolean;
9094
+ invoice_enabled_fo: boolean;
9095
+ invoice_enabled_ho: boolean;
9096
+ invoice_enabled_mo: boolean;
8634
9097
  updated_at: string;
8635
9098
  user_id: string;
8636
9099
  };
@@ -8640,6 +9103,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8640
9103
  default_invoice_type?: string;
8641
9104
  default_payment_term_days?: number;
8642
9105
  default_vat_code?: string;
9106
+ invoice_enabled_ao?: boolean;
9107
+ invoice_enabled_fo?: boolean;
9108
+ invoice_enabled_ho?: boolean;
9109
+ invoice_enabled_mo?: boolean;
8643
9110
  updated_at?: string;
8644
9111
  user_id: string;
8645
9112
  };
@@ -8649,6 +9116,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8649
9116
  default_invoice_type?: string;
8650
9117
  default_payment_term_days?: number;
8651
9118
  default_vat_code?: string;
9119
+ invoice_enabled_ao?: boolean;
9120
+ invoice_enabled_fo?: boolean;
9121
+ invoice_enabled_ho?: boolean;
9122
+ invoice_enabled_mo?: boolean;
8652
9123
  updated_at?: string;
8653
9124
  user_id?: string;
8654
9125
  };
@@ -9943,6 +10414,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9943
10414
  order_number: string;
9944
10415
  }[];
9945
10416
  };
10417
+ autolink_product_to_floriday: {
10418
+ Args: {
10419
+ p_product_id: string;
10420
+ };
10421
+ Returns: string;
10422
+ };
9946
10423
  backfill_open_order_reservations: {
9947
10424
  Args: never;
9948
10425
  Returns: {
@@ -9979,7 +10456,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9979
10456
  };
9980
10457
  cleanup_old_bookings: {
9981
10458
  Args: never;
9982
- Returns: number;
10459
+ Returns: undefined;
10460
+ };
10461
+ consume_floriday_rate_limit: {
10462
+ Args: {
10463
+ p_bucket: string;
10464
+ p_capacity: number;
10465
+ p_cost?: number;
10466
+ p_refill_per_sec: number;
10467
+ };
10468
+ Returns: {
10469
+ granted: boolean;
10470
+ wait_ms: number;
10471
+ }[];
9983
10472
  };
9984
10473
  control_get_todays_carts: {
9985
10474
  Args: never;
@@ -10061,6 +10550,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10061
10550
  status: string;
10062
10551
  }[];
10063
10552
  };
10553
+ enqueue_cart_replan_if_unlocked: {
10554
+ Args: {
10555
+ p_order_id: string;
10556
+ };
10557
+ Returns: undefined;
10558
+ };
10064
10559
  ensure_trade_item_stock_row: {
10065
10560
  Args: {
10066
10561
  p_key: string;
@@ -10167,6 +10662,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10167
10662
  office_code: string;
10168
10663
  }[];
10169
10664
  };
10665
+ get_floricode_record_counts: {
10666
+ Args: never;
10667
+ Returns: {
10668
+ count: number;
10669
+ resource: string;
10670
+ }[];
10671
+ };
10170
10672
  get_floriday_agreements_active: {
10171
10673
  Args: {
10172
10674
  p_on_date?: string;
@@ -10258,6 +10760,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10258
10760
  };
10259
10761
  Returns: import("./types").Json;
10260
10762
  };
10763
+ get_offer_delivery_options: {
10764
+ Args: {
10765
+ p_code: string;
10766
+ };
10767
+ Returns: import("./types").Json;
10768
+ };
10261
10769
  get_offer_recipient_by_code: {
10262
10770
  Args: {
10263
10771
  p_code: string;
@@ -10322,6 +10830,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10322
10830
  Args: never;
10323
10831
  Returns: boolean;
10324
10832
  };
10833
+ is_superadmin: {
10834
+ Args: {
10835
+ _user_id: string;
10836
+ };
10837
+ Returns: boolean;
10838
+ };
10325
10839
  local_effective_price: {
10326
10840
  Args: {
10327
10841
  _customer_id: string;
@@ -10356,6 +10870,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10356
10870
  };
10357
10871
  Returns: string;
10358
10872
  };
10873
+ next_order_number_for_date: {
10874
+ Args: {
10875
+ p_created_at?: string;
10876
+ p_prefix: string;
10877
+ };
10878
+ Returns: string;
10879
+ };
10359
10880
  next_work_order_number: {
10360
10881
  Args: {
10361
10882
  p_parent_work_order_id?: string;
@@ -10363,6 +10884,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10363
10884
  };
10364
10885
  Returns: string;
10365
10886
  };
10887
+ normalize_order_source: {
10888
+ Args: {
10889
+ p_src: string;
10890
+ };
10891
+ Returns: string;
10892
+ };
10366
10893
  normalize_vat: {
10367
10894
  Args: {
10368
10895
  v: string;
@@ -10377,10 +10904,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10377
10904
  };
10378
10905
  Returns: boolean;
10379
10906
  };
10907
+ order_number_prefix: {
10908
+ Args: {
10909
+ p_custom_fields?: import("./types").Json;
10910
+ p_order_source: string;
10911
+ };
10912
+ Returns: string;
10913
+ };
10380
10914
  pickstation_get_orders_raw: {
10381
10915
  Args: never;
10382
10916
  Returns: import("./types").Json;
10383
10917
  };
10918
+ pickstation_get_planning_context: {
10919
+ Args: never;
10920
+ Returns: import("./types").Json;
10921
+ };
10384
10922
  pickstation_get_settings: {
10385
10923
  Args: never;
10386
10924
  Returns: import("./types").Json;
@@ -10411,6 +10949,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10411
10949
  };
10412
10950
  Returns: undefined;
10413
10951
  };
10952
+ recompute_order_status: {
10953
+ Args: {
10954
+ p_order_id: string;
10955
+ };
10956
+ Returns: undefined;
10957
+ };
10958
+ recompute_reserved_for_order: {
10959
+ Args: {
10960
+ p_order_id: string;
10961
+ };
10962
+ Returns: undefined;
10963
+ };
10964
+ recompute_reserved_stock: {
10965
+ Args: {
10966
+ p_trade_item_key: string;
10967
+ };
10968
+ Returns: undefined;
10969
+ };
10970
+ refresh_external_customers_grouped: {
10971
+ Args: never;
10972
+ Returns: undefined;
10973
+ };
10414
10974
  refresh_floricode_derived_code_lists: {
10415
10975
  Args: never;
10416
10976
  Returns: {
@@ -10425,6 +10985,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10425
10985
  };
10426
10986
  Returns: number;
10427
10987
  };
10988
+ refresh_floricode_derived_for_products: {
10989
+ Args: {
10990
+ _product_ids: string[];
10991
+ };
10992
+ Returns: number;
10993
+ };
10428
10994
  reset_floriday_sync_cursor: {
10429
10995
  Args: {
10430
10996
  p_connection_id: string;
@@ -10432,6 +10998,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10432
10998
  };
10433
10999
  Returns: undefined;
10434
11000
  };
11001
+ resolve_product_id_for_item: {
11002
+ Args: {
11003
+ p_product_name: string;
11004
+ };
11005
+ Returns: string;
11006
+ };
10435
11007
  schedule_floriday_additional_services_sync: {
10436
11008
  Args: {
10437
11009
  p_apikey: string;
@@ -10709,6 +11281,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10709
11281
  };
10710
11282
  Returns: string[];
10711
11283
  };
11284
+ sync_cached_packing_from_product: {
11285
+ Args: {
11286
+ p_product_id: string;
11287
+ };
11288
+ Returns: undefined;
11289
+ };
11290
+ sync_order_cart_item_packing_from_product: {
11291
+ Args: {
11292
+ p_product_id: string;
11293
+ };
11294
+ Returns: undefined;
11295
+ };
11296
+ sync_product_packing_from_floriday_cache: {
11297
+ Args: {
11298
+ p_floriday_id: string;
11299
+ };
11300
+ Returns: undefined;
11301
+ };
10712
11302
  twinfield_decrypt: {
10713
11303
  Args: {
10714
11304
  cipher: string;
@@ -10721,6 +11311,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10721
11311
  };
10722
11312
  Returns: string;
10723
11313
  };
11314
+ upsert_auto_fulfillment_log: {
11315
+ Args: {
11316
+ p_connection_id: string;
11317
+ p_error?: string;
11318
+ p_fulfillment_order_id?: string;
11319
+ p_reason?: string;
11320
+ p_sales_order_id: string;
11321
+ p_status: string;
11322
+ };
11323
+ Returns: undefined;
11324
+ };
10724
11325
  };
10725
11326
  Enums: {
10726
11327
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";