@flowselections/floriday-klanten-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 (42) hide show
  1. package/dist-lib/components/CustomerAvatar.js +1 -1
  2. package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
  3. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
  4. package/dist-lib/components/klanten/ImportKlanten.js +438 -0
  5. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  6. package/dist-lib/components/klanten/KlantenOverzicht.js +2 -2
  7. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
  8. package/dist-lib/components/klanten/NetwerkPagina.js +38 -9
  9. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/NieuweKlant.js +10 -1
  11. package/dist-lib/index.d.ts +1 -0
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +1 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +372 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +372 -1
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +372 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +376 -1
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/lib/accounting.functions.d.ts +1116 -3
  23. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/customer-analytics.functions.d.ts +372 -1
  25. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-schemas.d.ts +147 -0
  27. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  28. package/dist-lib/lib/customer-schemas.js +106 -7
  29. package/dist-lib/lib/customers.functions.d.ts +14184 -15
  30. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customers.functions.js +130 -23
  32. package/dist-lib/lib/delivery-locations.functions.d.ts +1488 -4
  33. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/external-customers.functions.d.ts +1488 -4
  35. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +744 -2
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/local-discounts.functions.d.ts +2604 -7
  39. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/overdue-invoices.functions.d.ts +372 -1
  41. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  42. package/package.json +10 -3
@@ -4,6 +4,8 @@ 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;
8
10
  extra_pick_days_with_stickers: number;
9
11
  id: string;
@@ -19,6 +21,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19
21
  user_id: string;
20
22
  };
21
23
  Insert: {
24
+ auto_print_delivery_note?: boolean;
25
+ auto_process_paused?: boolean;
22
26
  created_at?: string;
23
27
  extra_pick_days_with_stickers?: number;
24
28
  id?: string;
@@ -34,6 +38,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
34
38
  user_id: string;
35
39
  };
36
40
  Update: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
37
43
  created_at?: string;
38
44
  extra_pick_days_with_stickers?: number;
39
45
  id?: string;
@@ -266,6 +272,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
266
272
  created_at: string;
267
273
  extra_id: string;
268
274
  id: string;
275
+ original_unit_price: number | null;
276
+ override_reason: string | null;
277
+ override_unit_price: number | null;
269
278
  quantity: number;
270
279
  total_price: number;
271
280
  unit_price: number;
@@ -275,6 +284,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
275
284
  created_at?: string;
276
285
  extra_id: string;
277
286
  id?: string;
287
+ original_unit_price?: number | null;
288
+ override_reason?: string | null;
289
+ override_unit_price?: number | null;
278
290
  quantity?: number;
279
291
  total_price?: number;
280
292
  unit_price?: number;
@@ -284,6 +296,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
284
296
  created_at?: string;
285
297
  extra_id?: string;
286
298
  id?: string;
299
+ original_unit_price?: number | null;
300
+ override_reason?: string | null;
301
+ override_unit_price?: number | null;
287
302
  quantity?: number;
288
303
  total_price?: number;
289
304
  unit_price?: number;
@@ -304,11 +319,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
304
319
  };
305
320
  bookings: {
306
321
  Row: {
322
+ archive_reason: string | null;
323
+ archived_at: string | null;
324
+ archived_by: string | null;
307
325
  company_name: string | null;
308
326
  conflict_checked_at: string | null;
309
327
  conflict_reason: string | null;
310
328
  created_at: string;
311
329
  created_by_role: string | null;
330
+ customer_address: string | null;
312
331
  customer_email: string | null;
313
332
  customer_name: string | null;
314
333
  end_time: string;
@@ -320,7 +339,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
320
339
  invoiced_at: string | null;
321
340
  notes: string | null;
322
341
  number_of_people: number;
342
+ overridden_at: string | null;
343
+ overridden_by: string | null;
344
+ override_reason: string | null;
345
+ price_override: boolean;
323
346
  room_id: string;
347
+ room_price_override: number | null;
324
348
  start_time: string;
325
349
  status: string;
326
350
  total_excl_vat: number | null;
@@ -329,11 +353,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
329
353
  vat_amount: number | null;
330
354
  };
331
355
  Insert: {
356
+ archive_reason?: string | null;
357
+ archived_at?: string | null;
358
+ archived_by?: string | null;
332
359
  company_name?: string | null;
333
360
  conflict_checked_at?: string | null;
334
361
  conflict_reason?: string | null;
335
362
  created_at?: string;
336
363
  created_by_role?: string | null;
364
+ customer_address?: string | null;
337
365
  customer_email?: string | null;
338
366
  customer_name?: string | null;
339
367
  end_time: string;
@@ -345,7 +373,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
345
373
  invoiced_at?: string | null;
346
374
  notes?: string | null;
347
375
  number_of_people?: number;
376
+ overridden_at?: string | null;
377
+ overridden_by?: string | null;
378
+ override_reason?: string | null;
379
+ price_override?: boolean;
348
380
  room_id: string;
381
+ room_price_override?: number | null;
349
382
  start_time: string;
350
383
  status?: string;
351
384
  total_excl_vat?: number | null;
@@ -354,11 +387,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
354
387
  vat_amount?: number | null;
355
388
  };
356
389
  Update: {
390
+ archive_reason?: string | null;
391
+ archived_at?: string | null;
392
+ archived_by?: string | null;
357
393
  company_name?: string | null;
358
394
  conflict_checked_at?: string | null;
359
395
  conflict_reason?: string | null;
360
396
  created_at?: string;
361
397
  created_by_role?: string | null;
398
+ customer_address?: string | null;
362
399
  customer_email?: string | null;
363
400
  customer_name?: string | null;
364
401
  end_time?: string;
@@ -370,7 +407,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
370
407
  invoiced_at?: string | null;
371
408
  notes?: string | null;
372
409
  number_of_people?: number;
410
+ overridden_at?: string | null;
411
+ overridden_by?: string | null;
412
+ override_reason?: string | null;
413
+ price_override?: boolean;
373
414
  room_id?: string;
415
+ room_price_override?: number | null;
374
416
  start_time?: string;
375
417
  status?: string;
376
418
  total_excl_vat?: number | null;
@@ -1199,8 +1241,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1199
1241
  customers: {
1200
1242
  Row: {
1201
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;
1202
1262
  bio: string | null;
1203
1263
  city: string | null;
1264
+ coc_number: string | null;
1204
1265
  commercial_name: string | null;
1205
1266
  company_name: string;
1206
1267
  connection_status: string;
@@ -1209,21 +1270,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1209
1270
  created_at: string;
1210
1271
  custom_fields: import("./types").Json;
1211
1272
  customer_class: string | null;
1273
+ customer_number: string | null;
1274
+ discount_days: number | null;
1275
+ discount_percentage: number | null;
1212
1276
  email: string | null;
1213
1277
  external_id: string | null;
1278
+ fax: string | null;
1214
1279
  floriday_connection_id: string | null;
1215
1280
  floriday_organization_id: string | null;
1216
1281
  floriday_raw: import("./types").Json | null;
1217
1282
  gln: string | null;
1218
1283
  house_number: string | null;
1284
+ icp_country_code: string | null;
1219
1285
  id: string;
1220
1286
  is_active: boolean;
1287
+ language: string | null;
1221
1288
  last_synced_at: string | null;
1222
1289
  logo_url: string | null;
1223
1290
  markets: string[];
1224
1291
  notes: string | null;
1225
1292
  organization_type: string | null;
1226
1293
  payment_methods: string[];
1294
+ payment_term_days: number | null;
1227
1295
  phone: string | null;
1228
1296
  postal_code: string | null;
1229
1297
  product_groups: string[];
@@ -1234,13 +1302,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1234
1302
  sync_status: string;
1235
1303
  trade_forms: string[];
1236
1304
  updated_at: string;
1305
+ vat_display: string | null;
1237
1306
  vat_number: string | null;
1238
1307
  website: string | null;
1239
1308
  };
1240
1309
  Insert: {
1241
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;
1242
1329
  bio?: string | null;
1243
1330
  city?: string | null;
1331
+ coc_number?: string | null;
1244
1332
  commercial_name?: string | null;
1245
1333
  company_name: string;
1246
1334
  connection_status?: string;
@@ -1249,21 +1337,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1249
1337
  created_at?: string;
1250
1338
  custom_fields?: import("./types").Json;
1251
1339
  customer_class?: string | null;
1340
+ customer_number?: string | null;
1341
+ discount_days?: number | null;
1342
+ discount_percentage?: number | null;
1252
1343
  email?: string | null;
1253
1344
  external_id?: string | null;
1345
+ fax?: string | null;
1254
1346
  floriday_connection_id?: string | null;
1255
1347
  floriday_organization_id?: string | null;
1256
1348
  floriday_raw?: import("./types").Json | null;
1257
1349
  gln?: string | null;
1258
1350
  house_number?: string | null;
1351
+ icp_country_code?: string | null;
1259
1352
  id?: string;
1260
1353
  is_active?: boolean;
1354
+ language?: string | null;
1261
1355
  last_synced_at?: string | null;
1262
1356
  logo_url?: string | null;
1263
1357
  markets?: string[];
1264
1358
  notes?: string | null;
1265
1359
  organization_type?: string | null;
1266
1360
  payment_methods?: string[];
1361
+ payment_term_days?: number | null;
1267
1362
  phone?: string | null;
1268
1363
  postal_code?: string | null;
1269
1364
  product_groups?: string[];
@@ -1274,13 +1369,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1274
1369
  sync_status?: string;
1275
1370
  trade_forms?: string[];
1276
1371
  updated_at?: string;
1372
+ vat_display?: string | null;
1277
1373
  vat_number?: string | null;
1278
1374
  website?: string | null;
1279
1375
  };
1280
1376
  Update: {
1281
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;
1282
1396
  bio?: string | null;
1283
1397
  city?: string | null;
1398
+ coc_number?: string | null;
1284
1399
  commercial_name?: string | null;
1285
1400
  company_name?: string;
1286
1401
  connection_status?: string;
@@ -1289,21 +1404,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1289
1404
  created_at?: string;
1290
1405
  custom_fields?: import("./types").Json;
1291
1406
  customer_class?: string | null;
1407
+ customer_number?: string | null;
1408
+ discount_days?: number | null;
1409
+ discount_percentage?: number | null;
1292
1410
  email?: string | null;
1293
1411
  external_id?: string | null;
1412
+ fax?: string | null;
1294
1413
  floriday_connection_id?: string | null;
1295
1414
  floriday_organization_id?: string | null;
1296
1415
  floriday_raw?: import("./types").Json | null;
1297
1416
  gln?: string | null;
1298
1417
  house_number?: string | null;
1418
+ icp_country_code?: string | null;
1299
1419
  id?: string;
1300
1420
  is_active?: boolean;
1421
+ language?: string | null;
1301
1422
  last_synced_at?: string | null;
1302
1423
  logo_url?: string | null;
1303
1424
  markets?: string[];
1304
1425
  notes?: string | null;
1305
1426
  organization_type?: string | null;
1306
1427
  payment_methods?: string[];
1428
+ payment_term_days?: number | null;
1307
1429
  phone?: string | null;
1308
1430
  postal_code?: string | null;
1309
1431
  product_groups?: string[];
@@ -1314,6 +1436,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1314
1436
  sync_status?: string;
1315
1437
  trade_forms?: string[];
1316
1438
  updated_at?: string;
1439
+ vat_display?: string | null;
1317
1440
  vat_number?: string | null;
1318
1441
  website?: string | null;
1319
1442
  };
@@ -3260,6 +3383,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3260
3383
  referencedColumns: ["id"];
3261
3384
  }];
3262
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
+ };
3263
3434
  floriday_base_items_cache: {
3264
3435
  Row: {
3265
3436
  connection_id: string;
@@ -4364,6 +4535,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4364
4535
  referencedColumns: ["id"];
4365
4536
  }];
4366
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
+ };
4367
4556
  floriday_resource_schemas: {
4368
4557
  Row: {
4369
4558
  enums: import("./types").Json;
@@ -6798,6 +6987,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6798
6987
  order_date: string;
6799
6988
  order_number: string;
6800
6989
  order_source: string;
6990
+ plan_locked_at: string | null;
6991
+ plan_locked_ref: string | null;
6801
6992
  status: string;
6802
6993
  total: string;
6803
6994
  updated_at: string;
@@ -6814,6 +7005,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6814
7005
  order_date?: string;
6815
7006
  order_number: string;
6816
7007
  order_source?: string;
7008
+ plan_locked_at?: string | null;
7009
+ plan_locked_ref?: string | null;
6817
7010
  status?: string;
6818
7011
  total?: string;
6819
7012
  updated_at?: string;
@@ -6830,6 +7023,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6830
7023
  order_date?: string;
6831
7024
  order_number?: string;
6832
7025
  order_source?: string;
7026
+ plan_locked_at?: string | null;
7027
+ plan_locked_ref?: string | null;
6833
7028
  status?: string;
6834
7029
  total?: string;
6835
7030
  updated_at?: string;
@@ -7198,6 +7393,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7198
7393
  };
7199
7394
  profiles: {
7200
7395
  Row: {
7396
+ address: string | null;
7201
7397
  created_at: string;
7202
7398
  display_name: string | null;
7203
7399
  email: string | null;
@@ -7208,6 +7404,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7208
7404
  updated_at: string;
7209
7405
  };
7210
7406
  Insert: {
7407
+ address?: string | null;
7211
7408
  created_at?: string;
7212
7409
  display_name?: string | null;
7213
7410
  email?: string | null;
@@ -7218,6 +7415,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7218
7415
  updated_at?: string;
7219
7416
  };
7220
7417
  Update: {
7418
+ address?: string | null;
7221
7419
  created_at?: string;
7222
7420
  display_name?: string | null;
7223
7421
  email?: string | null;
@@ -8465,6 +8663,114 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8465
8663
  };
8466
8664
  Relationships: [];
8467
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
+ };
8468
8774
  twinfield_connections: {
8469
8775
  Row: {
8470
8776
  access_token: string | null;
@@ -10150,7 +10456,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10150
10456
  };
10151
10457
  cleanup_old_bookings: {
10152
10458
  Args: never;
10153
- 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
+ }[];
10154
10472
  };
10155
10473
  control_get_todays_carts: {
10156
10474
  Args: never;
@@ -10232,6 +10550,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10232
10550
  status: string;
10233
10551
  }[];
10234
10552
  };
10553
+ enqueue_cart_replan_if_unlocked: {
10554
+ Args: {
10555
+ p_order_id: string;
10556
+ };
10557
+ Returns: undefined;
10558
+ };
10235
10559
  ensure_trade_item_stock_row: {
10236
10560
  Args: {
10237
10561
  p_key: string;
@@ -10625,6 +10949,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10625
10949
  };
10626
10950
  Returns: undefined;
10627
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
+ };
10628
10970
  refresh_external_customers_grouped: {
10629
10971
  Args: never;
10630
10972
  Returns: undefined;
@@ -10939,6 +11281,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10939
11281
  };
10940
11282
  Returns: string[];
10941
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
+ };
10942
11302
  twinfield_decrypt: {
10943
11303
  Args: {
10944
11304
  cipher: string;
@@ -10951,6 +11311,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10951
11311
  };
10952
11312
  Returns: string;
10953
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
+ };
10954
11325
  };
10955
11326
  Enums: {
10956
11327
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";