@flowselections/floriday-klanten-module 1.0.12 → 1.0.14

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 (55) hide show
  1. package/dist-lib/components/klanten/DiscountsTab.d.ts +4 -0
  2. package/dist-lib/components/klanten/DiscountsTab.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/DiscountsTab.js +92 -0
  4. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -1
  6. package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
  7. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
  8. package/dist-lib/components/klanten/ImportKlanten.js +406 -0
  9. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/KlantDetail.js +2 -1
  11. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  12. package/dist-lib/components/klanten/KlantenOverzicht.js +83 -23
  13. package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts +10 -0
  14. package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts.map +1 -0
  15. package/dist-lib/components/klanten/LocalDiscountFormDialog.js +107 -0
  16. package/dist-lib/components/klanten/LocalDiscountsTab.d.ts +4 -0
  17. package/dist-lib/components/klanten/LocalDiscountsTab.d.ts.map +1 -0
  18. package/dist-lib/components/klanten/LocalDiscountsTab.js +101 -0
  19. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  20. package/dist-lib/components/klanten/NieuweKlant.js +10 -1
  21. package/dist-lib/index.d.ts +1 -0
  22. package/dist-lib/index.d.ts.map +1 -1
  23. package/dist-lib/index.js +1 -0
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1857 -32
  25. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/client.d.ts +1857 -32
  27. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.server.d.ts +1857 -32
  29. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/types.d.ts +1873 -18
  31. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  32. package/dist-lib/lib/accounting.functions.d.ts +5790 -315
  33. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/customer-analytics.functions.d.ts +1857 -32
  35. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/customer-schemas.d.ts +147 -0
  37. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  38. package/dist-lib/lib/customer-schemas.js +64 -7
  39. package/dist-lib/lib/customers.functions.d.ts +24512 -182
  40. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/customers.functions.js +76 -17
  42. package/dist-lib/lib/delivery-locations.functions.d.ts +7300 -0
  43. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/external-customers.functions.d.ts +7300 -0
  45. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-discounts.functions.d.ts +22716 -0
  47. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -0
  48. package/dist-lib/lib/floriday-discounts.functions.js +83 -0
  49. package/dist-lib/lib/local-discounts.functions.d.ts +79495 -0
  50. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -0
  51. package/dist-lib/lib/local-discounts.functions.js +185 -0
  52. package/dist-lib/lib/overdue-invoices.functions.d.ts +11355 -0
  53. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -0
  54. package/dist-lib/lib/overdue-invoices.functions.js +72 -0
  55. package/package.json +9 -2
@@ -4,11 +4,15 @@ 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;
11
14
  pick_distribution_enabled: boolean;
15
+ pick_weekdays: number[];
12
16
  signup_mail_enabled: boolean;
13
17
  signup_mail_lead_minutes: number;
14
18
  signup_mail_purpose: string;
@@ -17,11 +21,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17
21
  user_id: string;
18
22
  };
19
23
  Insert: {
24
+ auto_print_delivery_note?: boolean;
25
+ auto_process_paused?: boolean;
20
26
  created_at?: string;
27
+ extra_pick_days_with_stickers?: number;
21
28
  id?: string;
22
29
  max_workdays_earlier_pick?: number;
23
30
  pick_days_before_transport?: number;
24
31
  pick_distribution_enabled?: boolean;
32
+ pick_weekdays?: number[];
25
33
  signup_mail_enabled?: boolean;
26
34
  signup_mail_lead_minutes?: number;
27
35
  signup_mail_purpose?: string;
@@ -30,11 +38,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30
38
  user_id: string;
31
39
  };
32
40
  Update: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
33
43
  created_at?: string;
44
+ extra_pick_days_with_stickers?: number;
34
45
  id?: string;
35
46
  max_workdays_earlier_pick?: number;
36
47
  pick_days_before_transport?: number;
37
48
  pick_distribution_enabled?: boolean;
49
+ pick_weekdays?: number[];
38
50
  signup_mail_enabled?: boolean;
39
51
  signup_mail_lead_minutes?: number;
40
52
  signup_mail_purpose?: string;
@@ -260,6 +272,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
260
272
  created_at: string;
261
273
  extra_id: string;
262
274
  id: string;
275
+ original_unit_price: number | null;
276
+ override_reason: string | null;
277
+ override_unit_price: number | null;
263
278
  quantity: number;
264
279
  total_price: number;
265
280
  unit_price: number;
@@ -269,6 +284,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
269
284
  created_at?: string;
270
285
  extra_id: string;
271
286
  id?: string;
287
+ original_unit_price?: number | null;
288
+ override_reason?: string | null;
289
+ override_unit_price?: number | null;
272
290
  quantity?: number;
273
291
  total_price?: number;
274
292
  unit_price?: number;
@@ -278,6 +296,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
278
296
  created_at?: string;
279
297
  extra_id?: string;
280
298
  id?: string;
299
+ original_unit_price?: number | null;
300
+ override_reason?: string | null;
301
+ override_unit_price?: number | null;
281
302
  quantity?: number;
282
303
  total_price?: number;
283
304
  unit_price?: number;
@@ -298,11 +319,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
298
319
  };
299
320
  bookings: {
300
321
  Row: {
322
+ archive_reason: string | null;
323
+ archived_at: string | null;
324
+ archived_by: string | null;
301
325
  company_name: string | null;
302
326
  conflict_checked_at: string | null;
303
327
  conflict_reason: string | null;
304
328
  created_at: string;
305
329
  created_by_role: string | null;
330
+ customer_address: string | null;
306
331
  customer_email: string | null;
307
332
  customer_name: string | null;
308
333
  end_time: string;
@@ -314,7 +339,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
314
339
  invoiced_at: string | null;
315
340
  notes: string | null;
316
341
  number_of_people: number;
342
+ overridden_at: string | null;
343
+ overridden_by: string | null;
344
+ override_reason: string | null;
345
+ price_override: boolean;
317
346
  room_id: string;
347
+ room_price_override: number | null;
318
348
  start_time: string;
319
349
  status: string;
320
350
  total_excl_vat: number | null;
@@ -323,11 +353,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
323
353
  vat_amount: number | null;
324
354
  };
325
355
  Insert: {
356
+ archive_reason?: string | null;
357
+ archived_at?: string | null;
358
+ archived_by?: string | null;
326
359
  company_name?: string | null;
327
360
  conflict_checked_at?: string | null;
328
361
  conflict_reason?: string | null;
329
362
  created_at?: string;
330
363
  created_by_role?: string | null;
364
+ customer_address?: string | null;
331
365
  customer_email?: string | null;
332
366
  customer_name?: string | null;
333
367
  end_time: string;
@@ -339,7 +373,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
339
373
  invoiced_at?: string | null;
340
374
  notes?: string | null;
341
375
  number_of_people?: number;
376
+ overridden_at?: string | null;
377
+ overridden_by?: string | null;
378
+ override_reason?: string | null;
379
+ price_override?: boolean;
342
380
  room_id: string;
381
+ room_price_override?: number | null;
343
382
  start_time: string;
344
383
  status?: string;
345
384
  total_excl_vat?: number | null;
@@ -348,11 +387,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
348
387
  vat_amount?: number | null;
349
388
  };
350
389
  Update: {
390
+ archive_reason?: string | null;
391
+ archived_at?: string | null;
392
+ archived_by?: string | null;
351
393
  company_name?: string | null;
352
394
  conflict_checked_at?: string | null;
353
395
  conflict_reason?: string | null;
354
396
  created_at?: string;
355
397
  created_by_role?: string | null;
398
+ customer_address?: string | null;
356
399
  customer_email?: string | null;
357
400
  customer_name?: string | null;
358
401
  end_time?: string;
@@ -364,7 +407,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
364
407
  invoiced_at?: string | null;
365
408
  notes?: string | null;
366
409
  number_of_people?: number;
410
+ overridden_at?: string | null;
411
+ overridden_by?: string | null;
412
+ override_reason?: string | null;
413
+ price_override?: boolean;
367
414
  room_id?: string;
415
+ room_price_override?: number | null;
368
416
  start_time?: string;
369
417
  status?: string;
370
418
  total_excl_vat?: number | null;
@@ -446,6 +494,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
446
494
  referencedColumns: ["id"];
447
495
  }];
448
496
  };
497
+ carrier_signup_dispatch_runs: {
498
+ Row: {
499
+ detail: import("./types").Json | null;
500
+ error: string | null;
501
+ finished_at: string | null;
502
+ groups: number;
503
+ id: string;
504
+ ok: boolean;
505
+ reason: string | null;
506
+ sent: number;
507
+ skipped: import("./types").Json;
508
+ started_at: string;
509
+ unassigned: import("./types").Json;
510
+ };
511
+ Insert: {
512
+ detail?: import("./types").Json | null;
513
+ error?: string | null;
514
+ finished_at?: string | null;
515
+ groups?: number;
516
+ id?: string;
517
+ ok?: boolean;
518
+ reason?: string | null;
519
+ sent?: number;
520
+ skipped?: import("./types").Json;
521
+ started_at?: string;
522
+ unassigned?: import("./types").Json;
523
+ };
524
+ Update: {
525
+ detail?: import("./types").Json | null;
526
+ error?: string | null;
527
+ finished_at?: string | null;
528
+ groups?: number;
529
+ id?: string;
530
+ ok?: boolean;
531
+ reason?: string | null;
532
+ sent?: number;
533
+ skipped?: import("./types").Json;
534
+ started_at?: string;
535
+ unassigned?: import("./types").Json;
536
+ };
537
+ Relationships: [];
538
+ };
449
539
  carrier_signup_dispatches: {
450
540
  Row: {
451
541
  carrier_id: string;
@@ -497,6 +587,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
497
587
  contact_person: string | null;
498
588
  created_at: string;
499
589
  delivery_days: number | null;
590
+ delivery_weekdays: number[];
500
591
  email: string | null;
501
592
  id: string;
502
593
  is_default: boolean;
@@ -504,6 +595,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
504
595
  notes: string | null;
505
596
  phone: string | null;
506
597
  pickup_moments: import("./types").Json;
598
+ pickup_weekdays: number[];
507
599
  service_cities: string[];
508
600
  service_countries: string[];
509
601
  service_provinces: string[];
@@ -519,6 +611,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
519
611
  contact_person?: string | null;
520
612
  created_at?: string;
521
613
  delivery_days?: number | null;
614
+ delivery_weekdays?: number[];
522
615
  email?: string | null;
523
616
  id?: string;
524
617
  is_default?: boolean;
@@ -526,6 +619,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
526
619
  notes?: string | null;
527
620
  phone?: string | null;
528
621
  pickup_moments?: import("./types").Json;
622
+ pickup_weekdays?: number[];
529
623
  service_cities?: string[];
530
624
  service_countries?: string[];
531
625
  service_provinces?: string[];
@@ -541,6 +635,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
541
635
  contact_person?: string | null;
542
636
  created_at?: string;
543
637
  delivery_days?: number | null;
638
+ delivery_weekdays?: number[];
544
639
  email?: string | null;
545
640
  id?: string;
546
641
  is_default?: boolean;
@@ -548,6 +643,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
548
643
  notes?: string | null;
549
644
  phone?: string | null;
550
645
  pickup_moments?: import("./types").Json;
646
+ pickup_weekdays?: number[];
551
647
  service_cities?: string[];
552
648
  service_countries?: string[];
553
649
  service_provinces?: string[];
@@ -560,6 +656,180 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
560
656
  };
561
657
  Relationships: [];
562
658
  };
659
+ cart_control_draft: {
660
+ Row: {
661
+ cart_states: import("./types").Json;
662
+ checked_keys: import("./types").Json;
663
+ draft_date: string;
664
+ form_state: import("./types").Json;
665
+ notes: string;
666
+ updated_at: string;
667
+ user_id: string;
668
+ };
669
+ Insert: {
670
+ cart_states?: import("./types").Json;
671
+ checked_keys?: import("./types").Json;
672
+ draft_date: string;
673
+ form_state?: import("./types").Json;
674
+ notes?: string;
675
+ updated_at?: string;
676
+ user_id: string;
677
+ };
678
+ Update: {
679
+ cart_states?: import("./types").Json;
680
+ checked_keys?: import("./types").Json;
681
+ draft_date?: string;
682
+ form_state?: import("./types").Json;
683
+ notes?: string;
684
+ updated_at?: string;
685
+ user_id?: string;
686
+ };
687
+ Relationships: [];
688
+ };
689
+ cart_control_items: {
690
+ Row: {
691
+ action: string;
692
+ block_reason: string | null;
693
+ carrier_name: string | null;
694
+ cart_index: number;
695
+ cart_number_id: string | null;
696
+ cart_number_label: string | null;
697
+ created_at: string;
698
+ customer_name: string | null;
699
+ delivery_date: string | null;
700
+ id: string;
701
+ new_pick_date: string | null;
702
+ order_id: string;
703
+ order_number: string | null;
704
+ order_source: string;
705
+ pickup_date: string | null;
706
+ session_id: string;
707
+ };
708
+ Insert: {
709
+ action: string;
710
+ block_reason?: string | null;
711
+ carrier_name?: string | null;
712
+ cart_index: number;
713
+ cart_number_id?: string | null;
714
+ cart_number_label?: string | null;
715
+ created_at?: string;
716
+ customer_name?: string | null;
717
+ delivery_date?: string | null;
718
+ id?: string;
719
+ new_pick_date?: string | null;
720
+ order_id: string;
721
+ order_number?: string | null;
722
+ order_source: string;
723
+ pickup_date?: string | null;
724
+ session_id: string;
725
+ };
726
+ Update: {
727
+ action?: string;
728
+ block_reason?: string | null;
729
+ carrier_name?: string | null;
730
+ cart_index?: number;
731
+ cart_number_id?: string | null;
732
+ cart_number_label?: string | null;
733
+ created_at?: string;
734
+ customer_name?: string | null;
735
+ delivery_date?: string | null;
736
+ id?: string;
737
+ new_pick_date?: string | null;
738
+ order_id?: string;
739
+ order_number?: string | null;
740
+ order_source?: string;
741
+ pickup_date?: string | null;
742
+ session_id?: string;
743
+ };
744
+ Relationships: [{
745
+ foreignKeyName: "cart_control_items_session_id_fkey";
746
+ columns: ["session_id"];
747
+ isOneToOne: false;
748
+ referencedRelation: "cart_control_sessions";
749
+ referencedColumns: ["id"];
750
+ }];
751
+ };
752
+ cart_control_sessions: {
753
+ Row: {
754
+ blocked_count: number;
755
+ checked_count: number;
756
+ control_date: string;
757
+ created_at: string;
758
+ id: string;
759
+ notes: string | null;
760
+ performed_at: string;
761
+ rescheduled_count: number;
762
+ stock_consumed_at: string | null;
763
+ total_carts: number;
764
+ updated_at: string;
765
+ user_id: string;
766
+ };
767
+ Insert: {
768
+ blocked_count?: number;
769
+ checked_count?: number;
770
+ control_date?: string;
771
+ created_at?: string;
772
+ id?: string;
773
+ notes?: string | null;
774
+ performed_at?: string;
775
+ rescheduled_count?: number;
776
+ stock_consumed_at?: string | null;
777
+ total_carts?: number;
778
+ updated_at?: string;
779
+ user_id: string;
780
+ };
781
+ Update: {
782
+ blocked_count?: number;
783
+ checked_count?: number;
784
+ control_date?: string;
785
+ created_at?: string;
786
+ id?: string;
787
+ notes?: string | null;
788
+ performed_at?: string;
789
+ rescheduled_count?: number;
790
+ stock_consumed_at?: string | null;
791
+ total_carts?: number;
792
+ updated_at?: string;
793
+ user_id?: string;
794
+ };
795
+ Relationships: [];
796
+ };
797
+ cart_numbers: {
798
+ Row: {
799
+ assigned_at: string;
800
+ cart_index: number;
801
+ cart_number: string;
802
+ day_seq: number;
803
+ id: string;
804
+ order_id: string;
805
+ order_source: string;
806
+ pick_date: string;
807
+ status: string;
808
+ };
809
+ Insert: {
810
+ assigned_at?: string;
811
+ cart_index: number;
812
+ cart_number: string;
813
+ day_seq: number;
814
+ id?: string;
815
+ order_id: string;
816
+ order_source: string;
817
+ pick_date: string;
818
+ status?: string;
819
+ };
820
+ Update: {
821
+ assigned_at?: string;
822
+ cart_index?: number;
823
+ cart_number?: string;
824
+ day_seq?: number;
825
+ id?: string;
826
+ order_id?: string;
827
+ order_source?: string;
828
+ pick_date?: string;
829
+ status?: string;
830
+ };
831
+ Relationships: [];
832
+ };
563
833
  cart_pick_overrides: {
564
834
  Row: {
565
835
  cart_index: number;
@@ -599,6 +869,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
599
869
  };
600
870
  Relationships: [];
601
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
+ };
602
902
  collections: {
603
903
  Row: {
604
904
  created_at: string;
@@ -941,8 +1241,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
941
1241
  customers: {
942
1242
  Row: {
943
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;
944
1262
  bio: string | null;
945
1263
  city: string | null;
1264
+ coc_number: string | null;
946
1265
  commercial_name: string | null;
947
1266
  company_name: string;
948
1267
  connection_status: string;
@@ -951,21 +1270,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
951
1270
  created_at: string;
952
1271
  custom_fields: import("./types").Json;
953
1272
  customer_class: string | null;
1273
+ customer_number: string | null;
1274
+ discount_days: number | null;
1275
+ discount_percentage: number | null;
954
1276
  email: string | null;
955
1277
  external_id: string | null;
1278
+ fax: string | null;
956
1279
  floriday_connection_id: string | null;
957
1280
  floriday_organization_id: string | null;
958
1281
  floriday_raw: import("./types").Json | null;
959
1282
  gln: string | null;
960
1283
  house_number: string | null;
1284
+ icp_country_code: string | null;
961
1285
  id: string;
962
1286
  is_active: boolean;
1287
+ language: string | null;
963
1288
  last_synced_at: string | null;
964
1289
  logo_url: string | null;
965
1290
  markets: string[];
966
1291
  notes: string | null;
967
1292
  organization_type: string | null;
968
1293
  payment_methods: string[];
1294
+ payment_term_days: number | null;
969
1295
  phone: string | null;
970
1296
  postal_code: string | null;
971
1297
  product_groups: string[];
@@ -976,13 +1302,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
976
1302
  sync_status: string;
977
1303
  trade_forms: string[];
978
1304
  updated_at: string;
1305
+ vat_display: string | null;
979
1306
  vat_number: string | null;
980
1307
  website: string | null;
981
1308
  };
982
1309
  Insert: {
983
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;
984
1329
  bio?: string | null;
985
1330
  city?: string | null;
1331
+ coc_number?: string | null;
986
1332
  commercial_name?: string | null;
987
1333
  company_name: string;
988
1334
  connection_status?: string;
@@ -991,21 +1337,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
991
1337
  created_at?: string;
992
1338
  custom_fields?: import("./types").Json;
993
1339
  customer_class?: string | null;
1340
+ customer_number?: string | null;
1341
+ discount_days?: number | null;
1342
+ discount_percentage?: number | null;
994
1343
  email?: string | null;
995
1344
  external_id?: string | null;
1345
+ fax?: string | null;
996
1346
  floriday_connection_id?: string | null;
997
1347
  floriday_organization_id?: string | null;
998
1348
  floriday_raw?: import("./types").Json | null;
999
1349
  gln?: string | null;
1000
1350
  house_number?: string | null;
1351
+ icp_country_code?: string | null;
1001
1352
  id?: string;
1002
1353
  is_active?: boolean;
1354
+ language?: string | null;
1003
1355
  last_synced_at?: string | null;
1004
1356
  logo_url?: string | null;
1005
1357
  markets?: string[];
1006
1358
  notes?: string | null;
1007
1359
  organization_type?: string | null;
1008
1360
  payment_methods?: string[];
1361
+ payment_term_days?: number | null;
1009
1362
  phone?: string | null;
1010
1363
  postal_code?: string | null;
1011
1364
  product_groups?: string[];
@@ -1016,13 +1369,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1016
1369
  sync_status?: string;
1017
1370
  trade_forms?: string[];
1018
1371
  updated_at?: string;
1372
+ vat_display?: string | null;
1019
1373
  vat_number?: string | null;
1020
1374
  website?: string | null;
1021
1375
  };
1022
1376
  Update: {
1023
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;
1024
1396
  bio?: string | null;
1025
1397
  city?: string | null;
1398
+ coc_number?: string | null;
1026
1399
  commercial_name?: string | null;
1027
1400
  company_name?: string;
1028
1401
  connection_status?: string;
@@ -1031,21 +1404,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1031
1404
  created_at?: string;
1032
1405
  custom_fields?: import("./types").Json;
1033
1406
  customer_class?: string | null;
1407
+ customer_number?: string | null;
1408
+ discount_days?: number | null;
1409
+ discount_percentage?: number | null;
1034
1410
  email?: string | null;
1035
1411
  external_id?: string | null;
1412
+ fax?: string | null;
1036
1413
  floriday_connection_id?: string | null;
1037
1414
  floriday_organization_id?: string | null;
1038
1415
  floriday_raw?: import("./types").Json | null;
1039
1416
  gln?: string | null;
1040
1417
  house_number?: string | null;
1418
+ icp_country_code?: string | null;
1041
1419
  id?: string;
1042
1420
  is_active?: boolean;
1421
+ language?: string | null;
1043
1422
  last_synced_at?: string | null;
1044
1423
  logo_url?: string | null;
1045
1424
  markets?: string[];
1046
1425
  notes?: string | null;
1047
1426
  organization_type?: string | null;
1048
1427
  payment_methods?: string[];
1428
+ payment_term_days?: number | null;
1049
1429
  phone?: string | null;
1050
1430
  postal_code?: string | null;
1051
1431
  product_groups?: string[];
@@ -1056,6 +1436,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1056
1436
  sync_status?: string;
1057
1437
  trade_forms?: string[];
1058
1438
  updated_at?: string;
1439
+ vat_display?: string | null;
1059
1440
  vat_number?: string | null;
1060
1441
  website?: string | null;
1061
1442
  };
@@ -1232,6 +1613,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1232
1613
  referencedColumns: ["id"];
1233
1614
  }];
1234
1615
  };
1616
+ dashboard_critical_alerts: {
1617
+ Row: {
1618
+ alert_key: string;
1619
+ alert_type: string;
1620
+ created_at: string;
1621
+ description: string | null;
1622
+ id: string;
1623
+ metadata: import("./types").Json | null;
1624
+ priority: string;
1625
+ raised_at: string;
1626
+ related_cart_ids: string[] | null;
1627
+ resolved_at: string | null;
1628
+ title: string;
1629
+ updated_at: string;
1630
+ user_id: string;
1631
+ };
1632
+ Insert: {
1633
+ alert_key: string;
1634
+ alert_type: string;
1635
+ created_at?: string;
1636
+ description?: string | null;
1637
+ id?: string;
1638
+ metadata?: import("./types").Json | null;
1639
+ priority?: string;
1640
+ raised_at?: string;
1641
+ related_cart_ids?: string[] | null;
1642
+ resolved_at?: string | null;
1643
+ title: string;
1644
+ updated_at?: string;
1645
+ user_id: string;
1646
+ };
1647
+ Update: {
1648
+ alert_key?: string;
1649
+ alert_type?: string;
1650
+ created_at?: string;
1651
+ description?: string | null;
1652
+ id?: string;
1653
+ metadata?: import("./types").Json | null;
1654
+ priority?: string;
1655
+ raised_at?: string;
1656
+ related_cart_ids?: string[] | null;
1657
+ resolved_at?: string | null;
1658
+ title?: string;
1659
+ updated_at?: string;
1660
+ user_id?: string;
1661
+ };
1662
+ Relationships: [];
1663
+ };
1235
1664
  dashboard_daily_reports: {
1236
1665
  Row: {
1237
1666
  created_at: string;
@@ -2676,34 +3105,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2676
3105
  Row: {
2677
3106
  catalog_key: string | null;
2678
3107
  catalog_url: string;
3108
+ client_id: string | null;
3109
+ client_secret_ciphertext: string | null;
3110
+ client_secret_last4: string | null;
2679
3111
  created_at: string;
2680
3112
  id: number;
2681
3113
  last_meta: import("./types").Json | null;
2682
3114
  last_test_at: string | null;
2683
3115
  last_test_error: string | null;
2684
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;
2685
3120
  updated_at: string;
2686
3121
  };
2687
3122
  Insert: {
2688
3123
  catalog_key?: string | null;
2689
3124
  catalog_url?: string;
3125
+ client_id?: string | null;
3126
+ client_secret_ciphertext?: string | null;
3127
+ client_secret_last4?: string | null;
2690
3128
  created_at?: string;
2691
3129
  id?: number;
2692
3130
  last_meta?: import("./types").Json | null;
2693
3131
  last_test_at?: string | null;
2694
3132
  last_test_error?: string | null;
2695
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;
2696
3137
  updated_at?: string;
2697
3138
  };
2698
3139
  Update: {
2699
3140
  catalog_key?: string | null;
2700
3141
  catalog_url?: string;
3142
+ client_id?: string | null;
3143
+ client_secret_ciphertext?: string | null;
3144
+ client_secret_last4?: string | null;
2701
3145
  created_at?: string;
2702
3146
  id?: number;
2703
3147
  last_meta?: import("./types").Json | null;
2704
3148
  last_test_at?: string | null;
2705
3149
  last_test_error?: string | null;
2706
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;
2707
3154
  updated_at?: string;
2708
3155
  };
2709
3156
  Relationships: [];
@@ -2936,6 +3383,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2936
3383
  referencedColumns: ["id"];
2937
3384
  }];
2938
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
+ };
2939
3434
  floriday_base_items_cache: {
2940
3435
  Row: {
2941
3436
  connection_id: string;
@@ -3350,29 +3845,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3350
3845
  referencedColumns: ["id"];
3351
3846
  }];
3352
3847
  };
3353
- floriday_contract_trade_item_groups_cache: {
3848
+ floriday_continuous_stock_queue: {
3354
3849
  Row: {
3850
+ attempts: number;
3355
3851
  connection_id: string;
3356
- data: import("./types").Json;
3357
- fetched_at: string;
3358
- floriday_id: string;
3359
- is_deleted: boolean;
3360
- sequence_number: number;
3852
+ created_at: string;
3853
+ gateway_attempt_id: string | null;
3854
+ id: string;
3855
+ last_error: string | null;
3856
+ number_of_pieces: number;
3857
+ sent_at: string | null;
3858
+ status: string;
3859
+ trade_item_id: string;
3361
3860
  updated_at: string;
3861
+ user_id: string;
3362
3862
  };
3363
3863
  Insert: {
3864
+ attempts?: number;
3364
3865
  connection_id: string;
3365
- data: import("./types").Json;
3366
- fetched_at?: string;
3367
- floriday_id: string;
3368
- is_deleted?: boolean;
3369
- sequence_number?: number;
3370
- updated_at?: string;
3371
- };
3372
- Update: {
3373
- connection_id?: string;
3374
- data?: import("./types").Json;
3375
- fetched_at?: string;
3866
+ created_at?: string;
3867
+ gateway_attempt_id?: string | null;
3868
+ id?: string;
3869
+ last_error?: string | null;
3870
+ number_of_pieces?: number;
3871
+ sent_at?: string | null;
3872
+ status?: string;
3873
+ trade_item_id: string;
3874
+ updated_at?: string;
3875
+ user_id: string;
3876
+ };
3877
+ Update: {
3878
+ attempts?: number;
3879
+ connection_id?: string;
3880
+ created_at?: string;
3881
+ gateway_attempt_id?: string | null;
3882
+ id?: string;
3883
+ last_error?: string | null;
3884
+ number_of_pieces?: number;
3885
+ sent_at?: string | null;
3886
+ status?: string;
3887
+ trade_item_id?: string;
3888
+ updated_at?: string;
3889
+ user_id?: string;
3890
+ };
3891
+ Relationships: [];
3892
+ };
3893
+ floriday_contract_trade_item_groups_cache: {
3894
+ Row: {
3895
+ connection_id: string;
3896
+ data: import("./types").Json;
3897
+ fetched_at: string;
3898
+ floriday_id: string;
3899
+ is_deleted: boolean;
3900
+ sequence_number: number;
3901
+ updated_at: string;
3902
+ };
3903
+ Insert: {
3904
+ connection_id: string;
3905
+ data: import("./types").Json;
3906
+ fetched_at?: string;
3907
+ floriday_id: string;
3908
+ is_deleted?: boolean;
3909
+ sequence_number?: number;
3910
+ updated_at?: string;
3911
+ };
3912
+ Update: {
3913
+ connection_id?: string;
3914
+ data?: import("./types").Json;
3915
+ fetched_at?: string;
3376
3916
  floriday_id?: string;
3377
3917
  is_deleted?: boolean;
3378
3918
  sequence_number?: number;
@@ -3995,6 +4535,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3995
4535
  referencedColumns: ["id"];
3996
4536
  }];
3997
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
+ };
3998
4556
  floriday_resource_schemas: {
3999
4557
  Row: {
4000
4558
  enums: import("./types").Json;
@@ -4418,6 +4976,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4418
4976
  referencedColumns: ["id"];
4419
4977
  }];
4420
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
+ };
4421
5033
  imap_accounts: {
4422
5034
  Row: {
4423
5035
  created_at: string;
@@ -4739,6 +5351,204 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4739
5351
  };
4740
5352
  Relationships: [];
4741
5353
  };
5354
+ local_customer_agreements: {
5355
+ Row: {
5356
+ base_price: number | null;
5357
+ created_at: string;
5358
+ currency: string;
5359
+ customer_id: string;
5360
+ id: string;
5361
+ min_quantity: number;
5362
+ net_price: number;
5363
+ notes: string | null;
5364
+ product_category_id: string | null;
5365
+ product_id: string | null;
5366
+ updated_at: string;
5367
+ valid_from: string | null;
5368
+ valid_until: string | null;
5369
+ };
5370
+ Insert: {
5371
+ base_price?: number | null;
5372
+ created_at?: string;
5373
+ currency?: string;
5374
+ customer_id: string;
5375
+ id?: string;
5376
+ min_quantity?: number;
5377
+ net_price: number;
5378
+ notes?: string | null;
5379
+ product_category_id?: string | null;
5380
+ product_id?: string | null;
5381
+ updated_at?: string;
5382
+ valid_from?: string | null;
5383
+ valid_until?: string | null;
5384
+ };
5385
+ Update: {
5386
+ base_price?: number | null;
5387
+ created_at?: string;
5388
+ currency?: string;
5389
+ customer_id?: string;
5390
+ id?: string;
5391
+ min_quantity?: number;
5392
+ net_price?: number;
5393
+ notes?: string | null;
5394
+ product_category_id?: string | null;
5395
+ product_id?: string | null;
5396
+ updated_at?: string;
5397
+ valid_from?: string | null;
5398
+ valid_until?: string | null;
5399
+ };
5400
+ Relationships: [{
5401
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5402
+ columns: ["customer_id"];
5403
+ isOneToOne: false;
5404
+ referencedRelation: "customers";
5405
+ referencedColumns: ["id"];
5406
+ }, {
5407
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5408
+ columns: ["product_category_id"];
5409
+ isOneToOne: false;
5410
+ referencedRelation: "product_categories";
5411
+ referencedColumns: ["id"];
5412
+ }, {
5413
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5414
+ columns: ["product_id"];
5415
+ isOneToOne: false;
5416
+ referencedRelation: "products";
5417
+ referencedColumns: ["id"];
5418
+ }];
5419
+ };
5420
+ local_customer_price_groups: {
5421
+ Row: {
5422
+ created_at: string;
5423
+ currency: string;
5424
+ customer_id: string;
5425
+ discount_type: string;
5426
+ discount_value: number;
5427
+ id: string;
5428
+ min_quantity: number;
5429
+ notes: string | null;
5430
+ product_category_id: string | null;
5431
+ product_id: string | null;
5432
+ updated_at: string;
5433
+ valid_from: string | null;
5434
+ valid_until: string | null;
5435
+ };
5436
+ Insert: {
5437
+ created_at?: string;
5438
+ currency?: string;
5439
+ customer_id: string;
5440
+ discount_type: string;
5441
+ discount_value: number;
5442
+ id?: string;
5443
+ min_quantity?: number;
5444
+ notes?: string | null;
5445
+ product_category_id?: string | null;
5446
+ product_id?: string | null;
5447
+ updated_at?: string;
5448
+ valid_from?: string | null;
5449
+ valid_until?: string | null;
5450
+ };
5451
+ Update: {
5452
+ created_at?: string;
5453
+ currency?: string;
5454
+ customer_id?: string;
5455
+ discount_type?: string;
5456
+ discount_value?: number;
5457
+ id?: string;
5458
+ min_quantity?: number;
5459
+ notes?: string | null;
5460
+ product_category_id?: string | null;
5461
+ product_id?: string | null;
5462
+ updated_at?: string;
5463
+ valid_from?: string | null;
5464
+ valid_until?: string | null;
5465
+ };
5466
+ Relationships: [{
5467
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5468
+ columns: ["customer_id"];
5469
+ isOneToOne: false;
5470
+ referencedRelation: "customers";
5471
+ referencedColumns: ["id"];
5472
+ }, {
5473
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5474
+ columns: ["product_category_id"];
5475
+ isOneToOne: false;
5476
+ referencedRelation: "product_categories";
5477
+ referencedColumns: ["id"];
5478
+ }, {
5479
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5480
+ columns: ["product_id"];
5481
+ isOneToOne: false;
5482
+ referencedRelation: "products";
5483
+ referencedColumns: ["id"];
5484
+ }];
5485
+ };
5486
+ local_customer_sales_strategies: {
5487
+ Row: {
5488
+ created_at: string;
5489
+ currency: string;
5490
+ customer_id: string;
5491
+ discount_type: string;
5492
+ discount_value: number;
5493
+ id: string;
5494
+ min_quantity: number;
5495
+ notes: string | null;
5496
+ product_category_id: string | null;
5497
+ product_id: string | null;
5498
+ updated_at: string;
5499
+ valid_from: string | null;
5500
+ valid_until: string | null;
5501
+ };
5502
+ Insert: {
5503
+ created_at?: string;
5504
+ currency?: string;
5505
+ customer_id: string;
5506
+ discount_type: string;
5507
+ discount_value: number;
5508
+ id?: string;
5509
+ min_quantity?: number;
5510
+ notes?: string | null;
5511
+ product_category_id?: string | null;
5512
+ product_id?: string | null;
5513
+ updated_at?: string;
5514
+ valid_from?: string | null;
5515
+ valid_until?: string | null;
5516
+ };
5517
+ Update: {
5518
+ created_at?: string;
5519
+ currency?: string;
5520
+ customer_id?: string;
5521
+ discount_type?: string;
5522
+ discount_value?: number;
5523
+ id?: string;
5524
+ min_quantity?: number;
5525
+ notes?: string | null;
5526
+ product_category_id?: string | null;
5527
+ product_id?: string | null;
5528
+ updated_at?: string;
5529
+ valid_from?: string | null;
5530
+ valid_until?: string | null;
5531
+ };
5532
+ Relationships: [{
5533
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5534
+ columns: ["customer_id"];
5535
+ isOneToOne: false;
5536
+ referencedRelation: "customers";
5537
+ referencedColumns: ["id"];
5538
+ }, {
5539
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5540
+ columns: ["product_category_id"];
5541
+ isOneToOne: false;
5542
+ referencedRelation: "product_categories";
5543
+ referencedColumns: ["id"];
5544
+ }, {
5545
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5546
+ columns: ["product_id"];
5547
+ isOneToOne: false;
5548
+ referencedRelation: "products";
5549
+ referencedColumns: ["id"];
5550
+ }];
5551
+ };
4742
5552
  locations: {
4743
5553
  Row: {
4744
5554
  created_at: string;
@@ -4851,6 +5661,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4851
5661
  matched_customer_id: string | null;
4852
5662
  message_id: string;
4853
5663
  notes: string | null;
5664
+ order_number: string | null;
4854
5665
  parsed_payload: import("./types").Json | null;
4855
5666
  reviewed_at: string | null;
4856
5667
  reviewed_by: string | null;
@@ -4866,6 +5677,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4866
5677
  matched_customer_id?: string | null;
4867
5678
  message_id: string;
4868
5679
  notes?: string | null;
5680
+ order_number?: string | null;
4869
5681
  parsed_payload?: import("./types").Json | null;
4870
5682
  reviewed_at?: string | null;
4871
5683
  reviewed_by?: string | null;
@@ -4881,6 +5693,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4881
5693
  matched_customer_id?: string | null;
4882
5694
  message_id?: string;
4883
5695
  notes?: string | null;
5696
+ order_number?: string | null;
4884
5697
  parsed_payload?: import("./types").Json | null;
4885
5698
  reviewed_at?: string | null;
4886
5699
  reviewed_by?: string | null;
@@ -5246,29 +6059,296 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5246
6059
  referencedColumns: ["id"];
5247
6060
  }];
5248
6061
  };
5249
- notifications: {
6062
+ nmbrs_component_mapping: {
5250
6063
  Row: {
5251
6064
  created_at: string;
5252
6065
  id: string;
5253
- message: string | null;
5254
- read: boolean;
5255
- title: string;
6066
+ source_kind: string;
6067
+ source_value: string | null;
5256
6068
  updated_at: string;
5257
- user_id: string;
6069
+ wage_code: string;
5258
6070
  };
5259
6071
  Insert: {
5260
6072
  created_at?: string;
5261
6073
  id?: string;
5262
- message?: string | null;
5263
- read?: boolean;
5264
- title: string;
6074
+ source_kind: string;
6075
+ source_value?: string | null;
5265
6076
  updated_at?: string;
5266
- user_id: string;
6077
+ wage_code: string;
5267
6078
  };
5268
6079
  Update: {
5269
6080
  created_at?: string;
5270
6081
  id?: string;
5271
- message?: string | null;
6082
+ source_kind?: string;
6083
+ source_value?: string | null;
6084
+ updated_at?: string;
6085
+ wage_code?: string;
6086
+ };
6087
+ Relationships: [{
6088
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
6089
+ columns: ["wage_code"];
6090
+ isOneToOne: false;
6091
+ referencedRelation: "nmbrs_wage_components";
6092
+ referencedColumns: ["code"];
6093
+ }];
6094
+ };
6095
+ nmbrs_employee_mapping: {
6096
+ Row: {
6097
+ active_from: string | null;
6098
+ active_to: string | null;
6099
+ contract_hours_per_week: number | null;
6100
+ created_at: string;
6101
+ hourly_wage: number | null;
6102
+ id: string;
6103
+ monteur_id: string;
6104
+ nmbrs_company_code: string | null;
6105
+ nmbrs_employee_number: string;
6106
+ updated_at: string;
6107
+ };
6108
+ Insert: {
6109
+ active_from?: string | null;
6110
+ active_to?: string | null;
6111
+ contract_hours_per_week?: number | null;
6112
+ created_at?: string;
6113
+ hourly_wage?: number | null;
6114
+ id?: string;
6115
+ monteur_id: string;
6116
+ nmbrs_company_code?: string | null;
6117
+ nmbrs_employee_number: string;
6118
+ updated_at?: string;
6119
+ };
6120
+ Update: {
6121
+ active_from?: string | null;
6122
+ active_to?: string | null;
6123
+ contract_hours_per_week?: number | null;
6124
+ created_at?: string;
6125
+ hourly_wage?: number | null;
6126
+ id?: string;
6127
+ monteur_id?: string;
6128
+ nmbrs_company_code?: string | null;
6129
+ nmbrs_employee_number?: string;
6130
+ updated_at?: string;
6131
+ };
6132
+ Relationships: [{
6133
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
6134
+ columns: ["monteur_id"];
6135
+ isOneToOne: true;
6136
+ referencedRelation: "monteurs";
6137
+ referencedColumns: ["id"];
6138
+ }];
6139
+ };
6140
+ nmbrs_export_lines: {
6141
+ Row: {
6142
+ amount: number;
6143
+ created_at: string;
6144
+ entry_date: string;
6145
+ hours: number;
6146
+ id: string;
6147
+ monteur_id: string;
6148
+ nmbrs_employee_number: string | null;
6149
+ notes: string | null;
6150
+ run_id: string;
6151
+ source_kind: string | null;
6152
+ source_ref_id: string | null;
6153
+ updated_at: string;
6154
+ wage_code: string;
6155
+ };
6156
+ Insert: {
6157
+ amount?: number;
6158
+ created_at?: string;
6159
+ entry_date: string;
6160
+ hours?: number;
6161
+ id?: string;
6162
+ monteur_id: string;
6163
+ nmbrs_employee_number?: string | null;
6164
+ notes?: string | null;
6165
+ run_id: string;
6166
+ source_kind?: string | null;
6167
+ source_ref_id?: string | null;
6168
+ updated_at?: string;
6169
+ wage_code: string;
6170
+ };
6171
+ Update: {
6172
+ amount?: number;
6173
+ created_at?: string;
6174
+ entry_date?: string;
6175
+ hours?: number;
6176
+ id?: string;
6177
+ monteur_id?: string;
6178
+ nmbrs_employee_number?: string | null;
6179
+ notes?: string | null;
6180
+ run_id?: string;
6181
+ source_kind?: string | null;
6182
+ source_ref_id?: string | null;
6183
+ updated_at?: string;
6184
+ wage_code?: string;
6185
+ };
6186
+ Relationships: [{
6187
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
6188
+ columns: ["monteur_id"];
6189
+ isOneToOne: false;
6190
+ referencedRelation: "monteurs";
6191
+ referencedColumns: ["id"];
6192
+ }, {
6193
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
6194
+ columns: ["run_id"];
6195
+ isOneToOne: false;
6196
+ referencedRelation: "nmbrs_export_runs";
6197
+ referencedColumns: ["id"];
6198
+ }, {
6199
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
6200
+ columns: ["wage_code"];
6201
+ isOneToOne: false;
6202
+ referencedRelation: "nmbrs_wage_components";
6203
+ referencedColumns: ["code"];
6204
+ }];
6205
+ };
6206
+ nmbrs_export_runs: {
6207
+ Row: {
6208
+ created_at: string;
6209
+ file_name: string | null;
6210
+ generated_at: string;
6211
+ generated_by: string | null;
6212
+ id: string;
6213
+ notes: string | null;
6214
+ period_end: string;
6215
+ period_label: string;
6216
+ period_start: string;
6217
+ status: string;
6218
+ total_hours: number;
6219
+ total_lines: number;
6220
+ updated_at: string;
6221
+ };
6222
+ Insert: {
6223
+ created_at?: string;
6224
+ file_name?: string | null;
6225
+ generated_at?: string;
6226
+ generated_by?: string | null;
6227
+ id?: string;
6228
+ notes?: string | null;
6229
+ period_end: string;
6230
+ period_label: string;
6231
+ period_start: string;
6232
+ status?: string;
6233
+ total_hours?: number;
6234
+ total_lines?: number;
6235
+ updated_at?: string;
6236
+ };
6237
+ Update: {
6238
+ created_at?: string;
6239
+ file_name?: string | null;
6240
+ generated_at?: string;
6241
+ generated_by?: string | null;
6242
+ id?: string;
6243
+ notes?: string | null;
6244
+ period_end?: string;
6245
+ period_label?: string;
6246
+ period_start?: string;
6247
+ status?: string;
6248
+ total_hours?: number;
6249
+ total_lines?: number;
6250
+ updated_at?: string;
6251
+ };
6252
+ Relationships: [];
6253
+ };
6254
+ nmbrs_settings: {
6255
+ Row: {
6256
+ created_at: string;
6257
+ default_company_code: string | null;
6258
+ id: boolean;
6259
+ include_travel: boolean;
6260
+ overtime_threshold_daily: number;
6261
+ overtime_threshold_weekly: number;
6262
+ period_type: string;
6263
+ updated_at: string;
6264
+ updated_by: string | null;
6265
+ week_start_day: number;
6266
+ };
6267
+ Insert: {
6268
+ created_at?: string;
6269
+ default_company_code?: string | null;
6270
+ id?: boolean;
6271
+ include_travel?: boolean;
6272
+ overtime_threshold_daily?: number;
6273
+ overtime_threshold_weekly?: number;
6274
+ period_type?: string;
6275
+ updated_at?: string;
6276
+ updated_by?: string | null;
6277
+ week_start_day?: number;
6278
+ };
6279
+ Update: {
6280
+ created_at?: string;
6281
+ default_company_code?: string | null;
6282
+ id?: boolean;
6283
+ include_travel?: boolean;
6284
+ overtime_threshold_daily?: number;
6285
+ overtime_threshold_weekly?: number;
6286
+ period_type?: string;
6287
+ updated_at?: string;
6288
+ updated_by?: string | null;
6289
+ week_start_day?: number;
6290
+ };
6291
+ Relationships: [];
6292
+ };
6293
+ nmbrs_wage_components: {
6294
+ Row: {
6295
+ category: string;
6296
+ code: string;
6297
+ created_at: string;
6298
+ id: string;
6299
+ is_active: boolean;
6300
+ label: string;
6301
+ sort_order: number;
6302
+ unit: string;
6303
+ updated_at: string;
6304
+ };
6305
+ Insert: {
6306
+ category: string;
6307
+ code: string;
6308
+ created_at?: string;
6309
+ id?: string;
6310
+ is_active?: boolean;
6311
+ label: string;
6312
+ sort_order?: number;
6313
+ unit: string;
6314
+ updated_at?: string;
6315
+ };
6316
+ Update: {
6317
+ category?: string;
6318
+ code?: string;
6319
+ created_at?: string;
6320
+ id?: string;
6321
+ is_active?: boolean;
6322
+ label?: string;
6323
+ sort_order?: number;
6324
+ unit?: string;
6325
+ updated_at?: string;
6326
+ };
6327
+ Relationships: [];
6328
+ };
6329
+ notifications: {
6330
+ Row: {
6331
+ created_at: string;
6332
+ id: string;
6333
+ message: string | null;
6334
+ read: boolean;
6335
+ title: string;
6336
+ updated_at: string;
6337
+ user_id: string;
6338
+ };
6339
+ Insert: {
6340
+ created_at?: string;
6341
+ id?: string;
6342
+ message?: string | null;
6343
+ read?: boolean;
6344
+ title: string;
6345
+ updated_at?: string;
6346
+ user_id: string;
6347
+ };
6348
+ Update: {
6349
+ created_at?: string;
6350
+ id?: string;
6351
+ message?: string | null;
5272
6352
  read?: boolean;
5273
6353
  title?: string;
5274
6354
  updated_at?: string;
@@ -5470,6 +6550,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5470
6550
  id: string;
5471
6551
  items: import("./types").Json;
5472
6552
  notes: string | null;
6553
+ order_number: string | null;
5473
6554
  recipient_id: string;
5474
6555
  total_amount: number;
5475
6556
  };
@@ -5483,6 +6564,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5483
6564
  id?: string;
5484
6565
  items?: import("./types").Json;
5485
6566
  notes?: string | null;
6567
+ order_number?: string | null;
5486
6568
  recipient_id: string;
5487
6569
  total_amount?: number;
5488
6570
  };
@@ -5496,6 +6578,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5496
6578
  id?: string;
5497
6579
  items?: import("./types").Json;
5498
6580
  notes?: string | null;
6581
+ order_number?: string | null;
5499
6582
  recipient_id?: string;
5500
6583
  total_amount?: number;
5501
6584
  };
@@ -5655,6 +6738,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5655
6738
  crates_per_layer: number;
5656
6739
  created_at: string;
5657
6740
  id: string;
6741
+ layer_fraction: number;
6742
+ layer_share_pct: number;
6743
+ layers_per_cart: number;
5658
6744
  order_item_id: string | null;
5659
6745
  plants_per_crate: number;
5660
6746
  product_id: string | null;
@@ -5666,6 +6752,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5666
6752
  crates_per_layer?: number;
5667
6753
  created_at?: string;
5668
6754
  id?: string;
6755
+ layer_fraction?: number;
6756
+ layer_share_pct?: number;
6757
+ layers_per_cart?: number;
5669
6758
  order_item_id?: string | null;
5670
6759
  plants_per_crate?: number;
5671
6760
  product_id?: string | null;
@@ -5677,6 +6766,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5677
6766
  crates_per_layer?: number;
5678
6767
  created_at?: string;
5679
6768
  id?: string;
6769
+ layer_fraction?: number;
6770
+ layer_share_pct?: number;
6771
+ layers_per_cart?: number;
5680
6772
  order_item_id?: string | null;
5681
6773
  plants_per_crate?: number;
5682
6774
  product_id?: string | null;
@@ -5704,33 +6796,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5704
6796
  };
5705
6797
  order_carts: {
5706
6798
  Row: {
6799
+ algorithm_version: number;
5707
6800
  cart_number: number;
5708
6801
  created_at: string;
5709
6802
  id: string;
5710
6803
  is_auto: boolean;
5711
6804
  is_complete: boolean;
5712
6805
  notes: string | null;
6806
+ occupancy_pct: number;
5713
6807
  order_id: string;
6808
+ source: string;
6809
+ total_layers_used: number;
5714
6810
  updated_at: string;
5715
6811
  };
5716
6812
  Insert: {
6813
+ algorithm_version?: number;
5717
6814
  cart_number: number;
5718
6815
  created_at?: string;
5719
6816
  id?: string;
5720
6817
  is_auto?: boolean;
5721
6818
  is_complete?: boolean;
5722
6819
  notes?: string | null;
6820
+ occupancy_pct?: number;
5723
6821
  order_id: string;
6822
+ source?: string;
6823
+ total_layers_used?: number;
5724
6824
  updated_at?: string;
5725
6825
  };
5726
6826
  Update: {
6827
+ algorithm_version?: number;
5727
6828
  cart_number?: number;
5728
6829
  created_at?: string;
5729
6830
  id?: string;
5730
6831
  is_auto?: boolean;
5731
6832
  is_complete?: boolean;
5732
6833
  notes?: string | null;
6834
+ occupancy_pct?: number;
5733
6835
  order_id?: string;
6836
+ source?: string;
6837
+ total_layers_used?: number;
5734
6838
  updated_at?: string;
5735
6839
  };
5736
6840
  Relationships: [{
@@ -5883,6 +6987,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5883
6987
  order_date: string;
5884
6988
  order_number: string;
5885
6989
  order_source: string;
6990
+ plan_locked_at: string | null;
6991
+ plan_locked_ref: string | null;
5886
6992
  status: string;
5887
6993
  total: string;
5888
6994
  updated_at: string;
@@ -5899,6 +7005,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5899
7005
  order_date?: string;
5900
7006
  order_number: string;
5901
7007
  order_source?: string;
7008
+ plan_locked_at?: string | null;
7009
+ plan_locked_ref?: string | null;
5902
7010
  status?: string;
5903
7011
  total?: string;
5904
7012
  updated_at?: string;
@@ -5915,6 +7023,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5915
7023
  order_date?: string;
5916
7024
  order_number?: string;
5917
7025
  order_source?: string;
7026
+ plan_locked_at?: string | null;
7027
+ plan_locked_ref?: string | null;
5918
7028
  status?: string;
5919
7029
  total?: string;
5920
7030
  updated_at?: string;
@@ -6228,6 +7338,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6228
7338
  purchase_price: number | null;
6229
7339
  quantity: number;
6230
7340
  sale_price: number | null;
7341
+ trade_item_key: string | null;
6231
7342
  unit: string;
6232
7343
  updated_at: string;
6233
7344
  weight: string | null;
@@ -6250,6 +7361,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6250
7361
  purchase_price?: number | null;
6251
7362
  quantity?: number;
6252
7363
  sale_price?: number | null;
7364
+ trade_item_key?: string | null;
6253
7365
  unit?: string;
6254
7366
  updated_at?: string;
6255
7367
  weight?: string | null;
@@ -6272,6 +7384,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6272
7384
  purchase_price?: number | null;
6273
7385
  quantity?: number;
6274
7386
  sale_price?: number | null;
7387
+ trade_item_key?: string | null;
6275
7388
  unit?: string;
6276
7389
  updated_at?: string;
6277
7390
  weight?: string | null;
@@ -6280,28 +7393,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6280
7393
  };
6281
7394
  profiles: {
6282
7395
  Row: {
7396
+ address: string | null;
6283
7397
  created_at: string;
6284
7398
  display_name: string | null;
6285
7399
  email: string | null;
6286
7400
  id: string;
7401
+ is_superadmin: boolean;
6287
7402
  notification_preferences: import("./types").Json;
6288
7403
  tenant_id: string | null;
6289
7404
  updated_at: string;
6290
7405
  };
6291
7406
  Insert: {
7407
+ address?: string | null;
6292
7408
  created_at?: string;
6293
7409
  display_name?: string | null;
6294
7410
  email?: string | null;
6295
7411
  id: string;
7412
+ is_superadmin?: boolean;
6296
7413
  notification_preferences?: import("./types").Json;
6297
7414
  tenant_id?: string | null;
6298
7415
  updated_at?: string;
6299
7416
  };
6300
7417
  Update: {
7418
+ address?: string | null;
6301
7419
  created_at?: string;
6302
7420
  display_name?: string | null;
6303
7421
  email?: string | null;
6304
7422
  id?: string;
7423
+ is_superadmin?: boolean;
6305
7424
  notification_preferences?: import("./types").Json;
6306
7425
  tenant_id?: string | null;
6307
7426
  updated_at?: string;
@@ -7091,6 +8210,120 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7091
8210
  };
7092
8211
  Relationships: [];
7093
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
+ };
8231
+ stock_import_runs: {
8232
+ Row: {
8233
+ connection_id: string | null;
8234
+ created_at: string;
8235
+ created_rows: number;
8236
+ errors: import("./types").Json;
8237
+ filename: string | null;
8238
+ id: string;
8239
+ mutations: import("./types").Json;
8240
+ skipped_rows: number;
8241
+ total_rows: number;
8242
+ updated_rows: number;
8243
+ user_id: string;
8244
+ };
8245
+ Insert: {
8246
+ connection_id?: string | null;
8247
+ created_at?: string;
8248
+ created_rows?: number;
8249
+ errors?: import("./types").Json;
8250
+ filename?: string | null;
8251
+ id?: string;
8252
+ mutations?: import("./types").Json;
8253
+ skipped_rows?: number;
8254
+ total_rows?: number;
8255
+ updated_rows?: number;
8256
+ user_id: string;
8257
+ };
8258
+ Update: {
8259
+ connection_id?: string | null;
8260
+ created_at?: string;
8261
+ created_rows?: number;
8262
+ errors?: import("./types").Json;
8263
+ filename?: string | null;
8264
+ id?: string;
8265
+ mutations?: import("./types").Json;
8266
+ skipped_rows?: number;
8267
+ total_rows?: number;
8268
+ updated_rows?: number;
8269
+ user_id?: string;
8270
+ };
8271
+ Relationships: [];
8272
+ };
8273
+ stock_mutation_log: {
8274
+ Row: {
8275
+ connection_id: string | null;
8276
+ created_at: string;
8277
+ created_by: string | null;
8278
+ id: string;
8279
+ mutation_type: string;
8280
+ order_id: string | null;
8281
+ order_item_id: string | null;
8282
+ order_source: string | null;
8283
+ physical_after: number | null;
8284
+ physical_before: number | null;
8285
+ qty_delta: number;
8286
+ reason: string | null;
8287
+ reserved_after: number | null;
8288
+ reserved_before: number | null;
8289
+ trade_item_key: string | null;
8290
+ };
8291
+ Insert: {
8292
+ connection_id?: string | null;
8293
+ created_at?: string;
8294
+ created_by?: string | null;
8295
+ id?: string;
8296
+ mutation_type: string;
8297
+ order_id?: string | null;
8298
+ order_item_id?: string | null;
8299
+ order_source?: string | null;
8300
+ physical_after?: number | null;
8301
+ physical_before?: number | null;
8302
+ qty_delta: number;
8303
+ reason?: string | null;
8304
+ reserved_after?: number | null;
8305
+ reserved_before?: number | null;
8306
+ trade_item_key?: string | null;
8307
+ };
8308
+ Update: {
8309
+ connection_id?: string | null;
8310
+ created_at?: string;
8311
+ created_by?: string | null;
8312
+ id?: string;
8313
+ mutation_type?: string;
8314
+ order_id?: string | null;
8315
+ order_item_id?: string | null;
8316
+ order_source?: string | null;
8317
+ physical_after?: number | null;
8318
+ physical_before?: number | null;
8319
+ qty_delta?: number;
8320
+ reason?: string | null;
8321
+ reserved_after?: number | null;
8322
+ reserved_before?: number | null;
8323
+ trade_item_key?: string | null;
8324
+ };
8325
+ Relationships: [];
8326
+ };
7094
8327
  supplier_products: {
7095
8328
  Row: {
7096
8329
  article_number: string | null;
@@ -7348,7 +8581,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7348
8581
  connection_id: string | null;
7349
8582
  created_at: string;
7350
8583
  data: import("./types").Json;
8584
+ floriday_id: string | null;
8585
+ floriday_link_error: string | null;
8586
+ floriday_link_status: string;
7351
8587
  id: string;
8588
+ last_floriday_sync_at: string | null;
8589
+ missing_required_fields: string[];
8590
+ source: string;
7352
8591
  updated_at: string;
7353
8592
  user_id: string;
7354
8593
  };
@@ -7356,7 +8595,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7356
8595
  connection_id?: string | null;
7357
8596
  created_at?: string;
7358
8597
  data?: import("./types").Json;
8598
+ floriday_id?: string | null;
8599
+ floriday_link_error?: string | null;
8600
+ floriday_link_status?: string;
7359
8601
  id?: string;
8602
+ last_floriday_sync_at?: string | null;
8603
+ missing_required_fields?: string[];
8604
+ source?: string;
7360
8605
  updated_at?: string;
7361
8606
  user_id: string;
7362
8607
  };
@@ -7364,7 +8609,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7364
8609
  connection_id?: string | null;
7365
8610
  created_at?: string;
7366
8611
  data?: import("./types").Json;
8612
+ floriday_id?: string | null;
8613
+ floriday_link_error?: string | null;
8614
+ floriday_link_status?: string;
7367
8615
  id?: string;
8616
+ last_floriday_sync_at?: string | null;
8617
+ missing_required_fields?: string[];
8618
+ source?: string;
7368
8619
  updated_at?: string;
7369
8620
  user_id?: string;
7370
8621
  };
@@ -7412,12 +8663,120 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7412
8663
  };
7413
8664
  Relationships: [];
7414
8665
  };
7415
- twinfield_connections: {
8666
+ trade_item_supply_lines: {
7416
8667
  Row: {
7417
- access_token: string | null;
7418
- client_id: string;
7419
- client_secret: string | null;
7420
- cluster_uri: string | null;
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
+ };
8774
+ twinfield_connections: {
8775
+ Row: {
8776
+ access_token: string | null;
8777
+ client_id: string;
8778
+ client_secret: string | null;
8779
+ cluster_uri: string | null;
7421
8780
  company_code: string | null;
7422
8781
  company_name: string | null;
7423
8782
  connected_at: string | null;
@@ -7731,6 +9090,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7731
9090
  default_invoice_type: string;
7732
9091
  default_payment_term_days: number;
7733
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;
7734
9097
  updated_at: string;
7735
9098
  user_id: string;
7736
9099
  };
@@ -7740,6 +9103,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7740
9103
  default_invoice_type?: string;
7741
9104
  default_payment_term_days?: number;
7742
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;
7743
9110
  updated_at?: string;
7744
9111
  user_id: string;
7745
9112
  };
@@ -7749,6 +9116,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7749
9116
  default_invoice_type?: string;
7750
9117
  default_payment_term_days?: number;
7751
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;
7752
9123
  updated_at?: string;
7753
9124
  user_id?: string;
7754
9125
  };
@@ -7756,6 +9127,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7756
9127
  };
7757
9128
  twinfield_invoice_sync_logs: {
7758
9129
  Row: {
9130
+ action_type: string | null;
7759
9131
  created_at: string;
7760
9132
  details: import("./types").Json | null;
7761
9133
  duration_ms: number | null;
@@ -7768,6 +9140,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7768
9140
  user_id: string;
7769
9141
  };
7770
9142
  Insert: {
9143
+ action_type?: string | null;
7771
9144
  created_at?: string;
7772
9145
  details?: import("./types").Json | null;
7773
9146
  duration_ms?: number | null;
@@ -7780,6 +9153,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7780
9153
  user_id: string;
7781
9154
  };
7782
9155
  Update: {
9156
+ action_type?: string | null;
7783
9157
  created_at?: string;
7784
9158
  details?: import("./types").Json | null;
7785
9159
  duration_ms?: number | null;
@@ -8015,6 +9389,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8015
9389
  referencedColumns: ["id"];
8016
9390
  }];
8017
9391
  };
9392
+ twinfield_request_metrics: {
9393
+ Row: {
9394
+ bucket_hour: string;
9395
+ connection_id: string;
9396
+ error_count: number;
9397
+ rate_limited_count: number;
9398
+ request_count: number;
9399
+ updated_at: string;
9400
+ };
9401
+ Insert: {
9402
+ bucket_hour: string;
9403
+ connection_id: string;
9404
+ error_count?: number;
9405
+ rate_limited_count?: number;
9406
+ request_count?: number;
9407
+ updated_at?: string;
9408
+ };
9409
+ Update: {
9410
+ bucket_hour?: string;
9411
+ connection_id?: string;
9412
+ error_count?: number;
9413
+ rate_limited_count?: number;
9414
+ request_count?: number;
9415
+ updated_at?: string;
9416
+ };
9417
+ Relationships: [];
9418
+ };
9419
+ twinfield_session_cache: {
9420
+ Row: {
9421
+ cluster: string;
9422
+ created_at: string;
9423
+ expires_at: string;
9424
+ session_id: string;
9425
+ user_id: string;
9426
+ };
9427
+ Insert: {
9428
+ cluster: string;
9429
+ created_at?: string;
9430
+ expires_at: string;
9431
+ session_id: string;
9432
+ user_id: string;
9433
+ };
9434
+ Update: {
9435
+ cluster?: string;
9436
+ created_at?: string;
9437
+ expires_at?: string;
9438
+ session_id?: string;
9439
+ user_id?: string;
9440
+ };
9441
+ Relationships: [];
9442
+ };
8018
9443
  twinfield_settings: {
8019
9444
  Row: {
8020
9445
  active_environment: string;
@@ -8596,6 +10021,44 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8596
10021
  };
8597
10022
  Relationships: [];
8598
10023
  };
10024
+ floriday_customer_discounts: {
10025
+ Row: {
10026
+ base_price: number | null;
10027
+ buyer_organization_id: string | null;
10028
+ currency: string | null;
10029
+ discount_type: string | null;
10030
+ discount_value: number | null;
10031
+ min_quantity: number | null;
10032
+ net_price: number | null;
10033
+ product_group_id: string | null;
10034
+ raw: import("./types").Json | null;
10035
+ source: string | null;
10036
+ source_id: string | null;
10037
+ trade_item_id: string | null;
10038
+ valid_from: string | null;
10039
+ valid_until: string | null;
10040
+ };
10041
+ Relationships: [];
10042
+ };
10043
+ local_customer_discounts: {
10044
+ Row: {
10045
+ base_price: number | null;
10046
+ currency: string | null;
10047
+ customer_id: string | null;
10048
+ discount_type: string | null;
10049
+ discount_value: number | null;
10050
+ min_quantity: number | null;
10051
+ net_price: number | null;
10052
+ product_category_id: string | null;
10053
+ product_id: string | null;
10054
+ product_name: string | null;
10055
+ source: string | null;
10056
+ source_id: string | null;
10057
+ valid_from: string | null;
10058
+ valid_until: string | null;
10059
+ };
10060
+ Relationships: [];
10061
+ };
8599
10062
  manufacture_product_possible_stock_view: {
8600
10063
  Row: {
8601
10064
  component_count: number | null;
@@ -8880,6 +10343,68 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8880
10343
  };
8881
10344
  Returns: number;
8882
10345
  };
10346
+ afh_city_code: {
10347
+ Args: {
10348
+ _city: string;
10349
+ _country: string;
10350
+ };
10351
+ Returns: string;
10352
+ };
10353
+ afh_normalize_country: {
10354
+ Args: {
10355
+ _raw: string;
10356
+ };
10357
+ Returns: string;
10358
+ };
10359
+ afh_normalize_nl_province: {
10360
+ Args: {
10361
+ _raw: string;
10362
+ };
10363
+ Returns: string;
10364
+ };
10365
+ afh_subtract_workdays: {
10366
+ Args: {
10367
+ _date: string;
10368
+ _days: number;
10369
+ };
10370
+ Returns: string;
10371
+ };
10372
+ apply_stock_consumption: {
10373
+ Args: {
10374
+ p_order_id: string;
10375
+ p_order_item_id: string;
10376
+ p_qty: number;
10377
+ p_reason: string;
10378
+ p_source: string;
10379
+ p_trade_item_key: string;
10380
+ };
10381
+ Returns: undefined;
10382
+ };
10383
+ apply_stock_reservation: {
10384
+ Args: {
10385
+ p_order_id: string;
10386
+ p_order_item_id: string;
10387
+ p_qty: number;
10388
+ p_reason: string;
10389
+ p_source: string;
10390
+ p_trade_item_key: string;
10391
+ };
10392
+ Returns: undefined;
10393
+ };
10394
+ assign_cart_numbers: {
10395
+ Args: {
10396
+ p_carts: import("./types").Json;
10397
+ };
10398
+ Returns: {
10399
+ cart_index: number;
10400
+ cart_number: string;
10401
+ day_seq: number;
10402
+ order_id: string;
10403
+ order_source: string;
10404
+ pick_date: string;
10405
+ status: string;
10406
+ }[];
10407
+ };
8883
10408
  assign_floriday_order_numbers: {
8884
10409
  Args: {
8885
10410
  p_ids: string[];
@@ -8889,13 +10414,75 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8889
10414
  order_number: string;
8890
10415
  }[];
8891
10416
  };
10417
+ autolink_product_to_floriday: {
10418
+ Args: {
10419
+ p_product_id: string;
10420
+ };
10421
+ Returns: string;
10422
+ };
10423
+ backfill_open_order_reservations: {
10424
+ Args: never;
10425
+ Returns: {
10426
+ processed_items: number;
10427
+ }[];
10428
+ };
8892
10429
  call_exact_route: {
8893
10430
  Args: {
8894
10431
  path: string;
8895
10432
  };
8896
10433
  Returns: number;
8897
10434
  };
10435
+ check_offer_product_available_stock: {
10436
+ Args: {
10437
+ p_campaign_product_id: string;
10438
+ p_code: string;
10439
+ p_needed_qty?: number;
10440
+ p_product_name?: string;
10441
+ };
10442
+ Returns: import("./types").Json;
10443
+ };
10444
+ check_trade_item_available_stock: {
10445
+ Args: {
10446
+ p_connection_id?: string;
10447
+ p_context?: string;
10448
+ p_needed_qty?: number;
10449
+ p_order_id?: string;
10450
+ p_order_item_id?: string;
10451
+ p_owner_id?: string;
10452
+ p_product_name?: string;
10453
+ p_trade_item_key: string;
10454
+ };
10455
+ Returns: import("./types").Json;
10456
+ };
8898
10457
  cleanup_old_bookings: {
10458
+ Args: never;
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
+ }[];
10472
+ };
10473
+ control_get_todays_carts: {
10474
+ Args: never;
10475
+ Returns: {
10476
+ cart_index: number;
10477
+ cart_number: string;
10478
+ cart_number_id: string;
10479
+ order_id: string;
10480
+ order_source: string;
10481
+ pick_date: string;
10482
+ status: string;
10483
+ }[];
10484
+ };
10485
+ count_distinct_regulatory_products: {
8899
10486
  Args: never;
8900
10487
  Returns: number;
8901
10488
  };
@@ -8903,6 +10490,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8903
10490
  Args: never;
8904
10491
  Returns: string;
8905
10492
  };
10493
+ dashboard_alert_counts: {
10494
+ Args: never;
10495
+ Returns: import("./types").Json;
10496
+ };
10497
+ dashboard_alert_rows: {
10498
+ Args: {
10499
+ check_id: string;
10500
+ row_limit?: number;
10501
+ };
10502
+ Returns: import("./types").Json;
10503
+ };
8906
10504
  dashboard_list_public_schema: {
8907
10505
  Args: never;
8908
10506
  Returns: {
@@ -8911,6 +10509,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8911
10509
  table_name: string;
8912
10510
  }[];
8913
10511
  };
10512
+ dispatch_carrier_signups_sql: {
10513
+ Args: {
10514
+ _catchup?: string;
10515
+ };
10516
+ Returns: import("./types").Json;
10517
+ };
8914
10518
  email_auth_decrypt: {
8915
10519
  Args: {
8916
10520
  cipher: string;
@@ -8946,6 +10550,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8946
10550
  status: string;
8947
10551
  }[];
8948
10552
  };
10553
+ enqueue_cart_replan_if_unlocked: {
10554
+ Args: {
10555
+ p_order_id: string;
10556
+ };
10557
+ Returns: undefined;
10558
+ };
10559
+ ensure_trade_item_stock_row: {
10560
+ Args: {
10561
+ p_key: string;
10562
+ };
10563
+ Returns: undefined;
10564
+ };
8949
10565
  ensure_user_tenant: {
8950
10566
  Args: never;
8951
10567
  Returns: string;
@@ -8983,6 +10599,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8983
10599
  };
8984
10600
  Returns: boolean;
8985
10601
  };
10602
+ find_trade_item_key: {
10603
+ Args: {
10604
+ p_barcode: string;
10605
+ p_name: string;
10606
+ p_product_id: string;
10607
+ };
10608
+ Returns: string;
10609
+ };
10610
+ floriday_effective_price: {
10611
+ Args: {
10612
+ _buyer_id: string;
10613
+ _on_date?: string;
10614
+ _quantity?: number;
10615
+ _trade_item_id: string;
10616
+ };
10617
+ Returns: {
10618
+ base_price: number;
10619
+ currency: string;
10620
+ discount_type: string;
10621
+ discount_value: number;
10622
+ net_price: number;
10623
+ source: string;
10624
+ source_id: string;
10625
+ }[];
10626
+ };
10627
+ format_cart_number: {
10628
+ Args: {
10629
+ p_pick_date: string;
10630
+ p_seq: number;
10631
+ };
10632
+ Returns: string;
10633
+ };
8986
10634
  get_active_floriday_connection_public: {
8987
10635
  Args: never;
8988
10636
  Returns: {
@@ -8996,6 +10644,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8996
10644
  preferred_warehouse_name: string;
8997
10645
  }[];
8998
10646
  };
10647
+ get_active_floriday_context: {
10648
+ Args: never;
10649
+ Returns: {
10650
+ connection_id: string;
10651
+ user_id: string;
10652
+ }[];
10653
+ };
8999
10654
  get_active_twinfield_public: {
9000
10655
  Args: never;
9001
10656
  Returns: {
@@ -9007,6 +10662,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9007
10662
  office_code: string;
9008
10663
  }[];
9009
10664
  };
10665
+ get_floricode_record_counts: {
10666
+ Args: never;
10667
+ Returns: {
10668
+ count: number;
10669
+ resource: string;
10670
+ }[];
10671
+ };
9010
10672
  get_floriday_agreements_active: {
9011
10673
  Args: {
9012
10674
  p_on_date?: string;
@@ -9098,6 +10760,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9098
10760
  };
9099
10761
  Returns: import("./types").Json;
9100
10762
  };
10763
+ get_offer_delivery_options: {
10764
+ Args: {
10765
+ p_code: string;
10766
+ };
10767
+ Returns: import("./types").Json;
10768
+ };
10769
+ get_offer_recipient_by_code: {
10770
+ Args: {
10771
+ p_code: string;
10772
+ };
10773
+ Returns: {
10774
+ campaign_id: string;
10775
+ clicked_at: string;
10776
+ customer_id: string;
10777
+ id: string;
10778
+ ordered_at: string;
10779
+ }[];
10780
+ };
9101
10781
  get_or_assign_floriday_order_number: {
9102
10782
  Args: {
9103
10783
  p_floriday_id: string;
@@ -9150,12 +10830,53 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9150
10830
  Args: never;
9151
10831
  Returns: boolean;
9152
10832
  };
10833
+ is_superadmin: {
10834
+ Args: {
10835
+ _user_id: string;
10836
+ };
10837
+ Returns: boolean;
10838
+ };
10839
+ local_effective_price: {
10840
+ Args: {
10841
+ _customer_id: string;
10842
+ _on_date?: string;
10843
+ _product_id: string;
10844
+ _quantity?: number;
10845
+ };
10846
+ Returns: {
10847
+ currency: string;
10848
+ discount_type: string;
10849
+ discount_value: number;
10850
+ net_price: number;
10851
+ source: string;
10852
+ source_id: string;
10853
+ }[];
10854
+ };
10855
+ mark_offer_clicked: {
10856
+ Args: {
10857
+ p_code: string;
10858
+ };
10859
+ Returns: undefined;
10860
+ };
10861
+ mark_offer_ordered: {
10862
+ Args: {
10863
+ p_code: string;
10864
+ };
10865
+ Returns: undefined;
10866
+ };
9153
10867
  next_order_number: {
9154
10868
  Args: {
9155
10869
  p_prefix: string;
9156
10870
  };
9157
10871
  Returns: string;
9158
10872
  };
10873
+ next_order_number_for_date: {
10874
+ Args: {
10875
+ p_created_at?: string;
10876
+ p_prefix: string;
10877
+ };
10878
+ Returns: string;
10879
+ };
9159
10880
  next_work_order_number: {
9160
10881
  Args: {
9161
10882
  p_parent_work_order_id?: string;
@@ -9163,16 +10884,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9163
10884
  };
9164
10885
  Returns: string;
9165
10886
  };
10887
+ normalize_order_source: {
10888
+ Args: {
10889
+ p_src: string;
10890
+ };
10891
+ Returns: string;
10892
+ };
9166
10893
  normalize_vat: {
9167
10894
  Args: {
9168
10895
  v: string;
9169
10896
  };
9170
10897
  Returns: string;
9171
10898
  };
10899
+ offer_recipient_matches: {
10900
+ Args: {
10901
+ _campaign_id: string;
10902
+ _customer_id: string;
10903
+ _recipient_id: string;
10904
+ };
10905
+ Returns: boolean;
10906
+ };
10907
+ order_number_prefix: {
10908
+ Args: {
10909
+ p_custom_fields?: import("./types").Json;
10910
+ p_order_source: string;
10911
+ };
10912
+ Returns: string;
10913
+ };
9172
10914
  pickstation_get_orders_raw: {
9173
10915
  Args: never;
9174
10916
  Returns: import("./types").Json;
9175
10917
  };
10918
+ pickstation_get_planning_context: {
10919
+ Args: never;
10920
+ Returns: import("./types").Json;
10921
+ };
9176
10922
  pickstation_get_settings: {
9177
10923
  Args: never;
9178
10924
  Returns: import("./types").Json;
@@ -9187,6 +10933,44 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9187
10933
  };
9188
10934
  Returns: undefined;
9189
10935
  };
10936
+ pickstation_set_cart_status: {
10937
+ Args: {
10938
+ p_cart_index: number;
10939
+ p_order_id: string;
10940
+ p_order_source: string;
10941
+ p_status: string;
10942
+ };
10943
+ Returns: undefined;
10944
+ };
10945
+ promote_trade_item_key: {
10946
+ Args: {
10947
+ p_new: string;
10948
+ p_old: string;
10949
+ };
10950
+ Returns: undefined;
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
+ };
9190
10974
  refresh_floricode_derived_code_lists: {
9191
10975
  Args: never;
9192
10976
  Returns: {
@@ -9201,6 +10985,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9201
10985
  };
9202
10986
  Returns: number;
9203
10987
  };
10988
+ refresh_floricode_derived_for_products: {
10989
+ Args: {
10990
+ _product_ids: string[];
10991
+ };
10992
+ Returns: number;
10993
+ };
9204
10994
  reset_floriday_sync_cursor: {
9205
10995
  Args: {
9206
10996
  p_connection_id: string;
@@ -9208,6 +10998,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9208
10998
  };
9209
10999
  Returns: undefined;
9210
11000
  };
11001
+ resolve_product_id_for_item: {
11002
+ Args: {
11003
+ p_product_name: string;
11004
+ };
11005
+ Returns: string;
11006
+ };
9211
11007
  schedule_floriday_additional_services_sync: {
9212
11008
  Args: {
9213
11009
  p_apikey: string;
@@ -9485,6 +11281,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9485
11281
  };
9486
11282
  Returns: string[];
9487
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
+ };
9488
11302
  twinfield_decrypt: {
9489
11303
  Args: {
9490
11304
  cipher: string;
@@ -9497,6 +11311,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9497
11311
  };
9498
11312
  Returns: string;
9499
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
+ };
9500
11325
  };
9501
11326
  Enums: {
9502
11327
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";