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