@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
@@ -3,11 +3,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3
3
  Tables: {
4
4
  afhandeling_settings: {
5
5
  Row: {
6
+ auto_print_delivery_note: boolean;
7
+ auto_process_paused: boolean;
6
8
  created_at: string;
9
+ extra_pick_days_with_stickers: number;
7
10
  id: string;
8
11
  max_workdays_earlier_pick: number;
9
12
  pick_days_before_transport: number;
10
13
  pick_distribution_enabled: boolean;
14
+ pick_weekdays: number[];
11
15
  signup_mail_enabled: boolean;
12
16
  signup_mail_lead_minutes: number;
13
17
  signup_mail_purpose: string;
@@ -16,11 +20,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16
20
  user_id: string;
17
21
  };
18
22
  Insert: {
23
+ auto_print_delivery_note?: boolean;
24
+ auto_process_paused?: boolean;
19
25
  created_at?: string;
26
+ extra_pick_days_with_stickers?: number;
20
27
  id?: string;
21
28
  max_workdays_earlier_pick?: number;
22
29
  pick_days_before_transport?: number;
23
30
  pick_distribution_enabled?: boolean;
31
+ pick_weekdays?: number[];
24
32
  signup_mail_enabled?: boolean;
25
33
  signup_mail_lead_minutes?: number;
26
34
  signup_mail_purpose?: string;
@@ -29,11 +37,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
29
37
  user_id: string;
30
38
  };
31
39
  Update: {
40
+ auto_print_delivery_note?: boolean;
41
+ auto_process_paused?: boolean;
32
42
  created_at?: string;
43
+ extra_pick_days_with_stickers?: number;
33
44
  id?: string;
34
45
  max_workdays_earlier_pick?: number;
35
46
  pick_days_before_transport?: number;
36
47
  pick_distribution_enabled?: boolean;
48
+ pick_weekdays?: number[];
37
49
  signup_mail_enabled?: boolean;
38
50
  signup_mail_lead_minutes?: number;
39
51
  signup_mail_purpose?: string;
@@ -259,6 +271,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
259
271
  created_at: string;
260
272
  extra_id: string;
261
273
  id: string;
274
+ original_unit_price: number | null;
275
+ override_reason: string | null;
276
+ override_unit_price: number | null;
262
277
  quantity: number;
263
278
  total_price: number;
264
279
  unit_price: number;
@@ -268,6 +283,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
268
283
  created_at?: string;
269
284
  extra_id: string;
270
285
  id?: string;
286
+ original_unit_price?: number | null;
287
+ override_reason?: string | null;
288
+ override_unit_price?: number | null;
271
289
  quantity?: number;
272
290
  total_price?: number;
273
291
  unit_price?: number;
@@ -277,6 +295,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
277
295
  created_at?: string;
278
296
  extra_id?: string;
279
297
  id?: string;
298
+ original_unit_price?: number | null;
299
+ override_reason?: string | null;
300
+ override_unit_price?: number | null;
280
301
  quantity?: number;
281
302
  total_price?: number;
282
303
  unit_price?: number;
@@ -297,11 +318,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
297
318
  };
298
319
  bookings: {
299
320
  Row: {
321
+ archive_reason: string | null;
322
+ archived_at: string | null;
323
+ archived_by: string | null;
300
324
  company_name: string | null;
301
325
  conflict_checked_at: string | null;
302
326
  conflict_reason: string | null;
303
327
  created_at: string;
304
328
  created_by_role: string | null;
329
+ customer_address: string | null;
305
330
  customer_email: string | null;
306
331
  customer_name: string | null;
307
332
  end_time: string;
@@ -313,7 +338,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
313
338
  invoiced_at: string | null;
314
339
  notes: string | null;
315
340
  number_of_people: number;
341
+ overridden_at: string | null;
342
+ overridden_by: string | null;
343
+ override_reason: string | null;
344
+ price_override: boolean;
316
345
  room_id: string;
346
+ room_price_override: number | null;
317
347
  start_time: string;
318
348
  status: string;
319
349
  total_excl_vat: number | null;
@@ -322,11 +352,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
322
352
  vat_amount: number | null;
323
353
  };
324
354
  Insert: {
355
+ archive_reason?: string | null;
356
+ archived_at?: string | null;
357
+ archived_by?: string | null;
325
358
  company_name?: string | null;
326
359
  conflict_checked_at?: string | null;
327
360
  conflict_reason?: string | null;
328
361
  created_at?: string;
329
362
  created_by_role?: string | null;
363
+ customer_address?: string | null;
330
364
  customer_email?: string | null;
331
365
  customer_name?: string | null;
332
366
  end_time: string;
@@ -338,7 +372,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
338
372
  invoiced_at?: string | null;
339
373
  notes?: string | null;
340
374
  number_of_people?: number;
375
+ overridden_at?: string | null;
376
+ overridden_by?: string | null;
377
+ override_reason?: string | null;
378
+ price_override?: boolean;
341
379
  room_id: string;
380
+ room_price_override?: number | null;
342
381
  start_time: string;
343
382
  status?: string;
344
383
  total_excl_vat?: number | null;
@@ -347,11 +386,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
347
386
  vat_amount?: number | null;
348
387
  };
349
388
  Update: {
389
+ archive_reason?: string | null;
390
+ archived_at?: string | null;
391
+ archived_by?: string | null;
350
392
  company_name?: string | null;
351
393
  conflict_checked_at?: string | null;
352
394
  conflict_reason?: string | null;
353
395
  created_at?: string;
354
396
  created_by_role?: string | null;
397
+ customer_address?: string | null;
355
398
  customer_email?: string | null;
356
399
  customer_name?: string | null;
357
400
  end_time?: string;
@@ -363,7 +406,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
363
406
  invoiced_at?: string | null;
364
407
  notes?: string | null;
365
408
  number_of_people?: number;
409
+ overridden_at?: string | null;
410
+ overridden_by?: string | null;
411
+ override_reason?: string | null;
412
+ price_override?: boolean;
366
413
  room_id?: string;
414
+ room_price_override?: number | null;
367
415
  start_time?: string;
368
416
  status?: string;
369
417
  total_excl_vat?: number | null;
@@ -445,6 +493,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
445
493
  referencedColumns: ["id"];
446
494
  }];
447
495
  };
496
+ carrier_signup_dispatch_runs: {
497
+ Row: {
498
+ detail: import("./types").Json | null;
499
+ error: string | null;
500
+ finished_at: string | null;
501
+ groups: number;
502
+ id: string;
503
+ ok: boolean;
504
+ reason: string | null;
505
+ sent: number;
506
+ skipped: import("./types").Json;
507
+ started_at: string;
508
+ unassigned: import("./types").Json;
509
+ };
510
+ Insert: {
511
+ detail?: import("./types").Json | null;
512
+ error?: string | null;
513
+ finished_at?: string | null;
514
+ groups?: number;
515
+ id?: string;
516
+ ok?: boolean;
517
+ reason?: string | null;
518
+ sent?: number;
519
+ skipped?: import("./types").Json;
520
+ started_at?: string;
521
+ unassigned?: import("./types").Json;
522
+ };
523
+ Update: {
524
+ detail?: import("./types").Json | null;
525
+ error?: string | null;
526
+ finished_at?: string | null;
527
+ groups?: number;
528
+ id?: string;
529
+ ok?: boolean;
530
+ reason?: string | null;
531
+ sent?: number;
532
+ skipped?: import("./types").Json;
533
+ started_at?: string;
534
+ unassigned?: import("./types").Json;
535
+ };
536
+ Relationships: [];
537
+ };
448
538
  carrier_signup_dispatches: {
449
539
  Row: {
450
540
  carrier_id: string;
@@ -496,6 +586,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
496
586
  contact_person: string | null;
497
587
  created_at: string;
498
588
  delivery_days: number | null;
589
+ delivery_weekdays: number[];
499
590
  email: string | null;
500
591
  id: string;
501
592
  is_default: boolean;
@@ -503,6 +594,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
503
594
  notes: string | null;
504
595
  phone: string | null;
505
596
  pickup_moments: import("./types").Json;
597
+ pickup_weekdays: number[];
506
598
  service_cities: string[];
507
599
  service_countries: string[];
508
600
  service_provinces: string[];
@@ -518,6 +610,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
518
610
  contact_person?: string | null;
519
611
  created_at?: string;
520
612
  delivery_days?: number | null;
613
+ delivery_weekdays?: number[];
521
614
  email?: string | null;
522
615
  id?: string;
523
616
  is_default?: boolean;
@@ -525,6 +618,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
525
618
  notes?: string | null;
526
619
  phone?: string | null;
527
620
  pickup_moments?: import("./types").Json;
621
+ pickup_weekdays?: number[];
528
622
  service_cities?: string[];
529
623
  service_countries?: string[];
530
624
  service_provinces?: string[];
@@ -540,6 +634,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
540
634
  contact_person?: string | null;
541
635
  created_at?: string;
542
636
  delivery_days?: number | null;
637
+ delivery_weekdays?: number[];
543
638
  email?: string | null;
544
639
  id?: string;
545
640
  is_default?: boolean;
@@ -547,6 +642,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
547
642
  notes?: string | null;
548
643
  phone?: string | null;
549
644
  pickup_moments?: import("./types").Json;
645
+ pickup_weekdays?: number[];
550
646
  service_cities?: string[];
551
647
  service_countries?: string[];
552
648
  service_provinces?: string[];
@@ -559,6 +655,180 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
559
655
  };
560
656
  Relationships: [];
561
657
  };
658
+ cart_control_draft: {
659
+ Row: {
660
+ cart_states: import("./types").Json;
661
+ checked_keys: import("./types").Json;
662
+ draft_date: string;
663
+ form_state: import("./types").Json;
664
+ notes: string;
665
+ updated_at: string;
666
+ user_id: string;
667
+ };
668
+ Insert: {
669
+ cart_states?: import("./types").Json;
670
+ checked_keys?: import("./types").Json;
671
+ draft_date: string;
672
+ form_state?: import("./types").Json;
673
+ notes?: string;
674
+ updated_at?: string;
675
+ user_id: string;
676
+ };
677
+ Update: {
678
+ cart_states?: import("./types").Json;
679
+ checked_keys?: import("./types").Json;
680
+ draft_date?: string;
681
+ form_state?: import("./types").Json;
682
+ notes?: string;
683
+ updated_at?: string;
684
+ user_id?: string;
685
+ };
686
+ Relationships: [];
687
+ };
688
+ cart_control_items: {
689
+ Row: {
690
+ action: string;
691
+ block_reason: string | null;
692
+ carrier_name: string | null;
693
+ cart_index: number;
694
+ cart_number_id: string | null;
695
+ cart_number_label: string | null;
696
+ created_at: string;
697
+ customer_name: string | null;
698
+ delivery_date: string | null;
699
+ id: string;
700
+ new_pick_date: string | null;
701
+ order_id: string;
702
+ order_number: string | null;
703
+ order_source: string;
704
+ pickup_date: string | null;
705
+ session_id: string;
706
+ };
707
+ Insert: {
708
+ action: string;
709
+ block_reason?: string | null;
710
+ carrier_name?: string | null;
711
+ cart_index: number;
712
+ cart_number_id?: string | null;
713
+ cart_number_label?: string | null;
714
+ created_at?: string;
715
+ customer_name?: string | null;
716
+ delivery_date?: string | null;
717
+ id?: string;
718
+ new_pick_date?: string | null;
719
+ order_id: string;
720
+ order_number?: string | null;
721
+ order_source: string;
722
+ pickup_date?: string | null;
723
+ session_id: string;
724
+ };
725
+ Update: {
726
+ action?: string;
727
+ block_reason?: string | null;
728
+ carrier_name?: string | null;
729
+ cart_index?: number;
730
+ cart_number_id?: string | null;
731
+ cart_number_label?: string | null;
732
+ created_at?: string;
733
+ customer_name?: string | null;
734
+ delivery_date?: string | null;
735
+ id?: string;
736
+ new_pick_date?: string | null;
737
+ order_id?: string;
738
+ order_number?: string | null;
739
+ order_source?: string;
740
+ pickup_date?: string | null;
741
+ session_id?: string;
742
+ };
743
+ Relationships: [{
744
+ foreignKeyName: "cart_control_items_session_id_fkey";
745
+ columns: ["session_id"];
746
+ isOneToOne: false;
747
+ referencedRelation: "cart_control_sessions";
748
+ referencedColumns: ["id"];
749
+ }];
750
+ };
751
+ cart_control_sessions: {
752
+ Row: {
753
+ blocked_count: number;
754
+ checked_count: number;
755
+ control_date: string;
756
+ created_at: string;
757
+ id: string;
758
+ notes: string | null;
759
+ performed_at: string;
760
+ rescheduled_count: number;
761
+ stock_consumed_at: string | null;
762
+ total_carts: number;
763
+ updated_at: string;
764
+ user_id: string;
765
+ };
766
+ Insert: {
767
+ blocked_count?: number;
768
+ checked_count?: number;
769
+ control_date?: string;
770
+ created_at?: string;
771
+ id?: string;
772
+ notes?: string | null;
773
+ performed_at?: string;
774
+ rescheduled_count?: number;
775
+ stock_consumed_at?: string | null;
776
+ total_carts?: number;
777
+ updated_at?: string;
778
+ user_id: string;
779
+ };
780
+ Update: {
781
+ blocked_count?: number;
782
+ checked_count?: number;
783
+ control_date?: string;
784
+ created_at?: string;
785
+ id?: string;
786
+ notes?: string | null;
787
+ performed_at?: string;
788
+ rescheduled_count?: number;
789
+ stock_consumed_at?: string | null;
790
+ total_carts?: number;
791
+ updated_at?: string;
792
+ user_id?: string;
793
+ };
794
+ Relationships: [];
795
+ };
796
+ cart_numbers: {
797
+ Row: {
798
+ assigned_at: string;
799
+ cart_index: number;
800
+ cart_number: string;
801
+ day_seq: number;
802
+ id: string;
803
+ order_id: string;
804
+ order_source: string;
805
+ pick_date: string;
806
+ status: string;
807
+ };
808
+ Insert: {
809
+ assigned_at?: string;
810
+ cart_index: number;
811
+ cart_number: string;
812
+ day_seq: number;
813
+ id?: string;
814
+ order_id: string;
815
+ order_source: string;
816
+ pick_date: string;
817
+ status?: string;
818
+ };
819
+ Update: {
820
+ assigned_at?: string;
821
+ cart_index?: number;
822
+ cart_number?: string;
823
+ day_seq?: number;
824
+ id?: string;
825
+ order_id?: string;
826
+ order_source?: string;
827
+ pick_date?: string;
828
+ status?: string;
829
+ };
830
+ Relationships: [];
831
+ };
562
832
  cart_pick_overrides: {
563
833
  Row: {
564
834
  cart_index: number;
@@ -598,6 +868,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
598
868
  };
599
869
  Relationships: [];
600
870
  };
871
+ cart_replan_queue: {
872
+ Row: {
873
+ attempts: number;
874
+ last_error: string | null;
875
+ order_id: string;
876
+ processed_at: string | null;
877
+ requested_at: string;
878
+ };
879
+ Insert: {
880
+ attempts?: number;
881
+ last_error?: string | null;
882
+ order_id: string;
883
+ processed_at?: string | null;
884
+ requested_at?: string;
885
+ };
886
+ Update: {
887
+ attempts?: number;
888
+ last_error?: string | null;
889
+ order_id?: string;
890
+ processed_at?: string | null;
891
+ requested_at?: string;
892
+ };
893
+ Relationships: [{
894
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
895
+ columns: ["order_id"];
896
+ isOneToOne: true;
897
+ referencedRelation: "orders";
898
+ referencedColumns: ["id"];
899
+ }];
900
+ };
601
901
  collections: {
602
902
  Row: {
603
903
  created_at: string;
@@ -940,8 +1240,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
940
1240
  customers: {
941
1241
  Row: {
942
1242
  address: string | null;
1243
+ address_line1: string | null;
1244
+ address_line2: string | null;
1245
+ address_type: string | null;
1246
+ attention_to: string | null;
1247
+ bank_account_holder: string | null;
1248
+ bank_account_number: string | null;
1249
+ bank_address_line1: string | null;
1250
+ bank_address_line2: string | null;
1251
+ bank_bic: string | null;
1252
+ bank_city: string | null;
1253
+ bank_country: string | null;
1254
+ bank_house_number: string | null;
1255
+ bank_iban: string | null;
1256
+ bank_name: string | null;
1257
+ bank_national_code: string | null;
1258
+ bank_postal_code: string | null;
1259
+ bank_state: string | null;
1260
+ billing_email: string | null;
943
1261
  bio: string | null;
944
1262
  city: string | null;
1263
+ coc_number: string | null;
945
1264
  commercial_name: string | null;
946
1265
  company_name: string;
947
1266
  connection_status: string;
@@ -950,21 +1269,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
950
1269
  created_at: string;
951
1270
  custom_fields: import("./types").Json;
952
1271
  customer_class: string | null;
1272
+ customer_number: string | null;
1273
+ discount_days: number | null;
1274
+ discount_percentage: number | null;
953
1275
  email: string | null;
954
1276
  external_id: string | null;
1277
+ fax: string | null;
955
1278
  floriday_connection_id: string | null;
956
1279
  floriday_organization_id: string | null;
957
1280
  floriday_raw: import("./types").Json | null;
958
1281
  gln: string | null;
959
1282
  house_number: string | null;
1283
+ icp_country_code: string | null;
960
1284
  id: string;
961
1285
  is_active: boolean;
1286
+ language: string | null;
962
1287
  last_synced_at: string | null;
963
1288
  logo_url: string | null;
964
1289
  markets: string[];
965
1290
  notes: string | null;
966
1291
  organization_type: string | null;
967
1292
  payment_methods: string[];
1293
+ payment_term_days: number | null;
968
1294
  phone: string | null;
969
1295
  postal_code: string | null;
970
1296
  product_groups: string[];
@@ -975,13 +1301,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
975
1301
  sync_status: string;
976
1302
  trade_forms: string[];
977
1303
  updated_at: string;
1304
+ vat_display: string | null;
978
1305
  vat_number: string | null;
979
1306
  website: string | null;
980
1307
  };
981
1308
  Insert: {
982
1309
  address?: string | null;
1310
+ address_line1?: string | null;
1311
+ address_line2?: string | null;
1312
+ address_type?: string | null;
1313
+ attention_to?: string | null;
1314
+ bank_account_holder?: string | null;
1315
+ bank_account_number?: string | null;
1316
+ bank_address_line1?: string | null;
1317
+ bank_address_line2?: string | null;
1318
+ bank_bic?: string | null;
1319
+ bank_city?: string | null;
1320
+ bank_country?: string | null;
1321
+ bank_house_number?: string | null;
1322
+ bank_iban?: string | null;
1323
+ bank_name?: string | null;
1324
+ bank_national_code?: string | null;
1325
+ bank_postal_code?: string | null;
1326
+ bank_state?: string | null;
1327
+ billing_email?: string | null;
983
1328
  bio?: string | null;
984
1329
  city?: string | null;
1330
+ coc_number?: string | null;
985
1331
  commercial_name?: string | null;
986
1332
  company_name: string;
987
1333
  connection_status?: string;
@@ -990,21 +1336,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
990
1336
  created_at?: string;
991
1337
  custom_fields?: import("./types").Json;
992
1338
  customer_class?: string | null;
1339
+ customer_number?: string | null;
1340
+ discount_days?: number | null;
1341
+ discount_percentage?: number | null;
993
1342
  email?: string | null;
994
1343
  external_id?: string | null;
1344
+ fax?: string | null;
995
1345
  floriday_connection_id?: string | null;
996
1346
  floriday_organization_id?: string | null;
997
1347
  floriday_raw?: import("./types").Json | null;
998
1348
  gln?: string | null;
999
1349
  house_number?: string | null;
1350
+ icp_country_code?: string | null;
1000
1351
  id?: string;
1001
1352
  is_active?: boolean;
1353
+ language?: string | null;
1002
1354
  last_synced_at?: string | null;
1003
1355
  logo_url?: string | null;
1004
1356
  markets?: string[];
1005
1357
  notes?: string | null;
1006
1358
  organization_type?: string | null;
1007
1359
  payment_methods?: string[];
1360
+ payment_term_days?: number | null;
1008
1361
  phone?: string | null;
1009
1362
  postal_code?: string | null;
1010
1363
  product_groups?: string[];
@@ -1015,13 +1368,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1015
1368
  sync_status?: string;
1016
1369
  trade_forms?: string[];
1017
1370
  updated_at?: string;
1371
+ vat_display?: string | null;
1018
1372
  vat_number?: string | null;
1019
1373
  website?: string | null;
1020
1374
  };
1021
1375
  Update: {
1022
1376
  address?: string | null;
1377
+ address_line1?: string | null;
1378
+ address_line2?: string | null;
1379
+ address_type?: string | null;
1380
+ attention_to?: string | null;
1381
+ bank_account_holder?: string | null;
1382
+ bank_account_number?: string | null;
1383
+ bank_address_line1?: string | null;
1384
+ bank_address_line2?: string | null;
1385
+ bank_bic?: string | null;
1386
+ bank_city?: string | null;
1387
+ bank_country?: string | null;
1388
+ bank_house_number?: string | null;
1389
+ bank_iban?: string | null;
1390
+ bank_name?: string | null;
1391
+ bank_national_code?: string | null;
1392
+ bank_postal_code?: string | null;
1393
+ bank_state?: string | null;
1394
+ billing_email?: string | null;
1023
1395
  bio?: string | null;
1024
1396
  city?: string | null;
1397
+ coc_number?: string | null;
1025
1398
  commercial_name?: string | null;
1026
1399
  company_name?: string;
1027
1400
  connection_status?: string;
@@ -1030,21 +1403,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1030
1403
  created_at?: string;
1031
1404
  custom_fields?: import("./types").Json;
1032
1405
  customer_class?: string | null;
1406
+ customer_number?: string | null;
1407
+ discount_days?: number | null;
1408
+ discount_percentage?: number | null;
1033
1409
  email?: string | null;
1034
1410
  external_id?: string | null;
1411
+ fax?: string | null;
1035
1412
  floriday_connection_id?: string | null;
1036
1413
  floriday_organization_id?: string | null;
1037
1414
  floriday_raw?: import("./types").Json | null;
1038
1415
  gln?: string | null;
1039
1416
  house_number?: string | null;
1417
+ icp_country_code?: string | null;
1040
1418
  id?: string;
1041
1419
  is_active?: boolean;
1420
+ language?: string | null;
1042
1421
  last_synced_at?: string | null;
1043
1422
  logo_url?: string | null;
1044
1423
  markets?: string[];
1045
1424
  notes?: string | null;
1046
1425
  organization_type?: string | null;
1047
1426
  payment_methods?: string[];
1427
+ payment_term_days?: number | null;
1048
1428
  phone?: string | null;
1049
1429
  postal_code?: string | null;
1050
1430
  product_groups?: string[];
@@ -1055,6 +1435,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1055
1435
  sync_status?: string;
1056
1436
  trade_forms?: string[];
1057
1437
  updated_at?: string;
1438
+ vat_display?: string | null;
1058
1439
  vat_number?: string | null;
1059
1440
  website?: string | null;
1060
1441
  };
@@ -1231,6 +1612,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1231
1612
  referencedColumns: ["id"];
1232
1613
  }];
1233
1614
  };
1615
+ dashboard_critical_alerts: {
1616
+ Row: {
1617
+ alert_key: string;
1618
+ alert_type: string;
1619
+ created_at: string;
1620
+ description: string | null;
1621
+ id: string;
1622
+ metadata: import("./types").Json | null;
1623
+ priority: string;
1624
+ raised_at: string;
1625
+ related_cart_ids: string[] | null;
1626
+ resolved_at: string | null;
1627
+ title: string;
1628
+ updated_at: string;
1629
+ user_id: string;
1630
+ };
1631
+ Insert: {
1632
+ alert_key: string;
1633
+ alert_type: string;
1634
+ created_at?: string;
1635
+ description?: string | null;
1636
+ id?: string;
1637
+ metadata?: import("./types").Json | null;
1638
+ priority?: string;
1639
+ raised_at?: string;
1640
+ related_cart_ids?: string[] | null;
1641
+ resolved_at?: string | null;
1642
+ title: string;
1643
+ updated_at?: string;
1644
+ user_id: string;
1645
+ };
1646
+ Update: {
1647
+ alert_key?: string;
1648
+ alert_type?: string;
1649
+ created_at?: string;
1650
+ description?: string | null;
1651
+ id?: string;
1652
+ metadata?: import("./types").Json | null;
1653
+ priority?: string;
1654
+ raised_at?: string;
1655
+ related_cart_ids?: string[] | null;
1656
+ resolved_at?: string | null;
1657
+ title?: string;
1658
+ updated_at?: string;
1659
+ user_id?: string;
1660
+ };
1661
+ Relationships: [];
1662
+ };
1234
1663
  dashboard_daily_reports: {
1235
1664
  Row: {
1236
1665
  created_at: string;
@@ -2675,34 +3104,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2675
3104
  Row: {
2676
3105
  catalog_key: string | null;
2677
3106
  catalog_url: string;
3107
+ client_id: string | null;
3108
+ client_secret_ciphertext: string | null;
3109
+ client_secret_last4: string | null;
2678
3110
  created_at: string;
2679
3111
  id: number;
2680
3112
  last_meta: import("./types").Json | null;
2681
3113
  last_test_at: string | null;
2682
3114
  last_test_error: string | null;
2683
3115
  last_test_ok: boolean | null;
3116
+ last_token_test_at: string | null;
3117
+ last_token_test_error: string | null;
3118
+ last_token_test_ok: boolean | null;
2684
3119
  updated_at: string;
2685
3120
  };
2686
3121
  Insert: {
2687
3122
  catalog_key?: string | null;
2688
3123
  catalog_url?: string;
3124
+ client_id?: string | null;
3125
+ client_secret_ciphertext?: string | null;
3126
+ client_secret_last4?: string | null;
2689
3127
  created_at?: string;
2690
3128
  id?: number;
2691
3129
  last_meta?: import("./types").Json | null;
2692
3130
  last_test_at?: string | null;
2693
3131
  last_test_error?: string | null;
2694
3132
  last_test_ok?: boolean | null;
3133
+ last_token_test_at?: string | null;
3134
+ last_token_test_error?: string | null;
3135
+ last_token_test_ok?: boolean | null;
2695
3136
  updated_at?: string;
2696
3137
  };
2697
3138
  Update: {
2698
3139
  catalog_key?: string | null;
2699
3140
  catalog_url?: string;
3141
+ client_id?: string | null;
3142
+ client_secret_ciphertext?: string | null;
3143
+ client_secret_last4?: string | null;
2700
3144
  created_at?: string;
2701
3145
  id?: number;
2702
3146
  last_meta?: import("./types").Json | null;
2703
3147
  last_test_at?: string | null;
2704
3148
  last_test_error?: string | null;
2705
3149
  last_test_ok?: boolean | null;
3150
+ last_token_test_at?: string | null;
3151
+ last_token_test_error?: string | null;
3152
+ last_token_test_ok?: boolean | null;
2706
3153
  updated_at?: string;
2707
3154
  };
2708
3155
  Relationships: [];
@@ -2935,6 +3382,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2935
3382
  referencedColumns: ["id"];
2936
3383
  }];
2937
3384
  };
3385
+ floriday_auto_fulfillment_log: {
3386
+ Row: {
3387
+ attempts: number;
3388
+ connection_id: string;
3389
+ created_at: string;
3390
+ error: string | null;
3391
+ fulfillment_order_id: string | null;
3392
+ id: string;
3393
+ last_attempt_at: string | null;
3394
+ reason: string | null;
3395
+ sales_order_id: string;
3396
+ status: string;
3397
+ updated_at: string;
3398
+ };
3399
+ Insert: {
3400
+ attempts?: number;
3401
+ connection_id: string;
3402
+ created_at?: string;
3403
+ error?: string | null;
3404
+ fulfillment_order_id?: string | null;
3405
+ id?: string;
3406
+ last_attempt_at?: string | null;
3407
+ reason?: string | null;
3408
+ sales_order_id: string;
3409
+ status?: string;
3410
+ updated_at?: string;
3411
+ };
3412
+ Update: {
3413
+ attempts?: number;
3414
+ connection_id?: string;
3415
+ created_at?: string;
3416
+ error?: string | null;
3417
+ fulfillment_order_id?: string | null;
3418
+ id?: string;
3419
+ last_attempt_at?: string | null;
3420
+ reason?: string | null;
3421
+ sales_order_id?: string;
3422
+ status?: string;
3423
+ updated_at?: string;
3424
+ };
3425
+ Relationships: [{
3426
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3427
+ columns: ["connection_id"];
3428
+ isOneToOne: false;
3429
+ referencedRelation: "floriday_connections";
3430
+ referencedColumns: ["id"];
3431
+ }];
3432
+ };
2938
3433
  floriday_base_items_cache: {
2939
3434
  Row: {
2940
3435
  connection_id: string;
@@ -3349,29 +3844,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3349
3844
  referencedColumns: ["id"];
3350
3845
  }];
3351
3846
  };
3352
- floriday_contract_trade_item_groups_cache: {
3847
+ floriday_continuous_stock_queue: {
3353
3848
  Row: {
3849
+ attempts: number;
3354
3850
  connection_id: string;
3355
- data: import("./types").Json;
3356
- fetched_at: string;
3357
- floriday_id: string;
3358
- is_deleted: boolean;
3359
- sequence_number: number;
3851
+ created_at: string;
3852
+ gateway_attempt_id: string | null;
3853
+ id: string;
3854
+ last_error: string | null;
3855
+ number_of_pieces: number;
3856
+ sent_at: string | null;
3857
+ status: string;
3858
+ trade_item_id: string;
3360
3859
  updated_at: string;
3860
+ user_id: string;
3361
3861
  };
3362
3862
  Insert: {
3863
+ attempts?: number;
3363
3864
  connection_id: string;
3364
- data: import("./types").Json;
3365
- fetched_at?: string;
3366
- floriday_id: string;
3367
- is_deleted?: boolean;
3368
- sequence_number?: number;
3369
- updated_at?: string;
3370
- };
3371
- Update: {
3372
- connection_id?: string;
3373
- data?: import("./types").Json;
3374
- fetched_at?: string;
3865
+ created_at?: string;
3866
+ gateway_attempt_id?: string | null;
3867
+ id?: string;
3868
+ last_error?: string | null;
3869
+ number_of_pieces?: number;
3870
+ sent_at?: string | null;
3871
+ status?: string;
3872
+ trade_item_id: string;
3873
+ updated_at?: string;
3874
+ user_id: string;
3875
+ };
3876
+ Update: {
3877
+ attempts?: number;
3878
+ connection_id?: string;
3879
+ created_at?: string;
3880
+ gateway_attempt_id?: string | null;
3881
+ id?: string;
3882
+ last_error?: string | null;
3883
+ number_of_pieces?: number;
3884
+ sent_at?: string | null;
3885
+ status?: string;
3886
+ trade_item_id?: string;
3887
+ updated_at?: string;
3888
+ user_id?: string;
3889
+ };
3890
+ Relationships: [];
3891
+ };
3892
+ floriday_contract_trade_item_groups_cache: {
3893
+ Row: {
3894
+ connection_id: string;
3895
+ data: import("./types").Json;
3896
+ fetched_at: string;
3897
+ floriday_id: string;
3898
+ is_deleted: boolean;
3899
+ sequence_number: number;
3900
+ updated_at: string;
3901
+ };
3902
+ Insert: {
3903
+ connection_id: string;
3904
+ data: import("./types").Json;
3905
+ fetched_at?: string;
3906
+ floriday_id: string;
3907
+ is_deleted?: boolean;
3908
+ sequence_number?: number;
3909
+ updated_at?: string;
3910
+ };
3911
+ Update: {
3912
+ connection_id?: string;
3913
+ data?: import("./types").Json;
3914
+ fetched_at?: string;
3375
3915
  floriday_id?: string;
3376
3916
  is_deleted?: boolean;
3377
3917
  sequence_number?: number;
@@ -3994,6 +4534,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3994
4534
  referencedColumns: ["id"];
3995
4535
  }];
3996
4536
  };
4537
+ floriday_rate_limit_state: {
4538
+ Row: {
4539
+ bucket: string;
4540
+ last_refill_at: string;
4541
+ tokens: number;
4542
+ };
4543
+ Insert: {
4544
+ bucket: string;
4545
+ last_refill_at?: string;
4546
+ tokens: number;
4547
+ };
4548
+ Update: {
4549
+ bucket?: string;
4550
+ last_refill_at?: string;
4551
+ tokens?: number;
4552
+ };
4553
+ Relationships: [];
4554
+ };
3997
4555
  floriday_resource_schemas: {
3998
4556
  Row: {
3999
4557
  enums: import("./types").Json;
@@ -4417,6 +4975,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4417
4975
  referencedColumns: ["id"];
4418
4976
  }];
4419
4977
  };
4978
+ flow_role_assignments: {
4979
+ Row: {
4980
+ created_at: string;
4981
+ id: string;
4982
+ role_id: string;
4983
+ user_id: string;
4984
+ };
4985
+ Insert: {
4986
+ created_at?: string;
4987
+ id?: string;
4988
+ role_id: string;
4989
+ user_id: string;
4990
+ };
4991
+ Update: {
4992
+ created_at?: string;
4993
+ id?: string;
4994
+ role_id?: string;
4995
+ user_id?: string;
4996
+ };
4997
+ Relationships: [{
4998
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4999
+ columns: ["role_id"];
5000
+ isOneToOne: false;
5001
+ referencedRelation: "flow_roles";
5002
+ referencedColumns: ["id"];
5003
+ }];
5004
+ };
5005
+ flow_roles: {
5006
+ Row: {
5007
+ created_at: string;
5008
+ description: string | null;
5009
+ id: string;
5010
+ module_access: string[];
5011
+ name: string;
5012
+ updated_at: string;
5013
+ };
5014
+ Insert: {
5015
+ created_at?: string;
5016
+ description?: string | null;
5017
+ id?: string;
5018
+ module_access?: string[];
5019
+ name: string;
5020
+ updated_at?: string;
5021
+ };
5022
+ Update: {
5023
+ created_at?: string;
5024
+ description?: string | null;
5025
+ id?: string;
5026
+ module_access?: string[];
5027
+ name?: string;
5028
+ updated_at?: string;
5029
+ };
5030
+ Relationships: [];
5031
+ };
4420
5032
  imap_accounts: {
4421
5033
  Row: {
4422
5034
  created_at: string;
@@ -4738,6 +5350,204 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4738
5350
  };
4739
5351
  Relationships: [];
4740
5352
  };
5353
+ local_customer_agreements: {
5354
+ Row: {
5355
+ base_price: number | null;
5356
+ created_at: string;
5357
+ currency: string;
5358
+ customer_id: string;
5359
+ id: string;
5360
+ min_quantity: number;
5361
+ net_price: number;
5362
+ notes: string | null;
5363
+ product_category_id: string | null;
5364
+ product_id: string | null;
5365
+ updated_at: string;
5366
+ valid_from: string | null;
5367
+ valid_until: string | null;
5368
+ };
5369
+ Insert: {
5370
+ base_price?: number | null;
5371
+ created_at?: string;
5372
+ currency?: string;
5373
+ customer_id: string;
5374
+ id?: string;
5375
+ min_quantity?: number;
5376
+ net_price: number;
5377
+ notes?: string | null;
5378
+ product_category_id?: string | null;
5379
+ product_id?: string | null;
5380
+ updated_at?: string;
5381
+ valid_from?: string | null;
5382
+ valid_until?: string | null;
5383
+ };
5384
+ Update: {
5385
+ base_price?: number | null;
5386
+ created_at?: string;
5387
+ currency?: string;
5388
+ customer_id?: string;
5389
+ id?: string;
5390
+ min_quantity?: number;
5391
+ net_price?: number;
5392
+ notes?: string | null;
5393
+ product_category_id?: string | null;
5394
+ product_id?: string | null;
5395
+ updated_at?: string;
5396
+ valid_from?: string | null;
5397
+ valid_until?: string | null;
5398
+ };
5399
+ Relationships: [{
5400
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5401
+ columns: ["customer_id"];
5402
+ isOneToOne: false;
5403
+ referencedRelation: "customers";
5404
+ referencedColumns: ["id"];
5405
+ }, {
5406
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5407
+ columns: ["product_category_id"];
5408
+ isOneToOne: false;
5409
+ referencedRelation: "product_categories";
5410
+ referencedColumns: ["id"];
5411
+ }, {
5412
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5413
+ columns: ["product_id"];
5414
+ isOneToOne: false;
5415
+ referencedRelation: "products";
5416
+ referencedColumns: ["id"];
5417
+ }];
5418
+ };
5419
+ local_customer_price_groups: {
5420
+ Row: {
5421
+ created_at: string;
5422
+ currency: string;
5423
+ customer_id: string;
5424
+ discount_type: string;
5425
+ discount_value: number;
5426
+ id: string;
5427
+ min_quantity: number;
5428
+ notes: string | null;
5429
+ product_category_id: string | null;
5430
+ product_id: string | null;
5431
+ updated_at: string;
5432
+ valid_from: string | null;
5433
+ valid_until: string | null;
5434
+ };
5435
+ Insert: {
5436
+ created_at?: string;
5437
+ currency?: string;
5438
+ customer_id: string;
5439
+ discount_type: string;
5440
+ discount_value: number;
5441
+ id?: string;
5442
+ min_quantity?: number;
5443
+ notes?: string | null;
5444
+ product_category_id?: string | null;
5445
+ product_id?: string | null;
5446
+ updated_at?: string;
5447
+ valid_from?: string | null;
5448
+ valid_until?: string | null;
5449
+ };
5450
+ Update: {
5451
+ created_at?: string;
5452
+ currency?: string;
5453
+ customer_id?: string;
5454
+ discount_type?: string;
5455
+ discount_value?: number;
5456
+ id?: string;
5457
+ min_quantity?: number;
5458
+ notes?: string | null;
5459
+ product_category_id?: string | null;
5460
+ product_id?: string | null;
5461
+ updated_at?: string;
5462
+ valid_from?: string | null;
5463
+ valid_until?: string | null;
5464
+ };
5465
+ Relationships: [{
5466
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5467
+ columns: ["customer_id"];
5468
+ isOneToOne: false;
5469
+ referencedRelation: "customers";
5470
+ referencedColumns: ["id"];
5471
+ }, {
5472
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5473
+ columns: ["product_category_id"];
5474
+ isOneToOne: false;
5475
+ referencedRelation: "product_categories";
5476
+ referencedColumns: ["id"];
5477
+ }, {
5478
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5479
+ columns: ["product_id"];
5480
+ isOneToOne: false;
5481
+ referencedRelation: "products";
5482
+ referencedColumns: ["id"];
5483
+ }];
5484
+ };
5485
+ local_customer_sales_strategies: {
5486
+ Row: {
5487
+ created_at: string;
5488
+ currency: string;
5489
+ customer_id: string;
5490
+ discount_type: string;
5491
+ discount_value: number;
5492
+ id: string;
5493
+ min_quantity: number;
5494
+ notes: string | null;
5495
+ product_category_id: string | null;
5496
+ product_id: string | null;
5497
+ updated_at: string;
5498
+ valid_from: string | null;
5499
+ valid_until: string | null;
5500
+ };
5501
+ Insert: {
5502
+ created_at?: string;
5503
+ currency?: string;
5504
+ customer_id: string;
5505
+ discount_type: string;
5506
+ discount_value: number;
5507
+ id?: string;
5508
+ min_quantity?: number;
5509
+ notes?: string | null;
5510
+ product_category_id?: string | null;
5511
+ product_id?: string | null;
5512
+ updated_at?: string;
5513
+ valid_from?: string | null;
5514
+ valid_until?: string | null;
5515
+ };
5516
+ Update: {
5517
+ created_at?: string;
5518
+ currency?: string;
5519
+ customer_id?: string;
5520
+ discount_type?: string;
5521
+ discount_value?: number;
5522
+ id?: string;
5523
+ min_quantity?: number;
5524
+ notes?: string | null;
5525
+ product_category_id?: string | null;
5526
+ product_id?: string | null;
5527
+ updated_at?: string;
5528
+ valid_from?: string | null;
5529
+ valid_until?: string | null;
5530
+ };
5531
+ Relationships: [{
5532
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5533
+ columns: ["customer_id"];
5534
+ isOneToOne: false;
5535
+ referencedRelation: "customers";
5536
+ referencedColumns: ["id"];
5537
+ }, {
5538
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5539
+ columns: ["product_category_id"];
5540
+ isOneToOne: false;
5541
+ referencedRelation: "product_categories";
5542
+ referencedColumns: ["id"];
5543
+ }, {
5544
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5545
+ columns: ["product_id"];
5546
+ isOneToOne: false;
5547
+ referencedRelation: "products";
5548
+ referencedColumns: ["id"];
5549
+ }];
5550
+ };
4741
5551
  locations: {
4742
5552
  Row: {
4743
5553
  created_at: string;
@@ -4850,6 +5660,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4850
5660
  matched_customer_id: string | null;
4851
5661
  message_id: string;
4852
5662
  notes: string | null;
5663
+ order_number: string | null;
4853
5664
  parsed_payload: import("./types").Json | null;
4854
5665
  reviewed_at: string | null;
4855
5666
  reviewed_by: string | null;
@@ -4865,6 +5676,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4865
5676
  matched_customer_id?: string | null;
4866
5677
  message_id: string;
4867
5678
  notes?: string | null;
5679
+ order_number?: string | null;
4868
5680
  parsed_payload?: import("./types").Json | null;
4869
5681
  reviewed_at?: string | null;
4870
5682
  reviewed_by?: string | null;
@@ -4880,6 +5692,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4880
5692
  matched_customer_id?: string | null;
4881
5693
  message_id?: string;
4882
5694
  notes?: string | null;
5695
+ order_number?: string | null;
4883
5696
  parsed_payload?: import("./types").Json | null;
4884
5697
  reviewed_at?: string | null;
4885
5698
  reviewed_by?: string | null;
@@ -5245,29 +6058,296 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5245
6058
  referencedColumns: ["id"];
5246
6059
  }];
5247
6060
  };
5248
- notifications: {
6061
+ nmbrs_component_mapping: {
5249
6062
  Row: {
5250
6063
  created_at: string;
5251
6064
  id: string;
5252
- message: string | null;
5253
- read: boolean;
5254
- title: string;
6065
+ source_kind: string;
6066
+ source_value: string | null;
5255
6067
  updated_at: string;
5256
- user_id: string;
6068
+ wage_code: string;
5257
6069
  };
5258
6070
  Insert: {
5259
6071
  created_at?: string;
5260
6072
  id?: string;
5261
- message?: string | null;
5262
- read?: boolean;
5263
- title: string;
6073
+ source_kind: string;
6074
+ source_value?: string | null;
5264
6075
  updated_at?: string;
5265
- user_id: string;
6076
+ wage_code: string;
5266
6077
  };
5267
6078
  Update: {
5268
6079
  created_at?: string;
5269
6080
  id?: string;
5270
- message?: string | null;
6081
+ source_kind?: string;
6082
+ source_value?: string | null;
6083
+ updated_at?: string;
6084
+ wage_code?: string;
6085
+ };
6086
+ Relationships: [{
6087
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
6088
+ columns: ["wage_code"];
6089
+ isOneToOne: false;
6090
+ referencedRelation: "nmbrs_wage_components";
6091
+ referencedColumns: ["code"];
6092
+ }];
6093
+ };
6094
+ nmbrs_employee_mapping: {
6095
+ Row: {
6096
+ active_from: string | null;
6097
+ active_to: string | null;
6098
+ contract_hours_per_week: number | null;
6099
+ created_at: string;
6100
+ hourly_wage: number | null;
6101
+ id: string;
6102
+ monteur_id: string;
6103
+ nmbrs_company_code: string | null;
6104
+ nmbrs_employee_number: string;
6105
+ updated_at: string;
6106
+ };
6107
+ Insert: {
6108
+ active_from?: string | null;
6109
+ active_to?: string | null;
6110
+ contract_hours_per_week?: number | null;
6111
+ created_at?: string;
6112
+ hourly_wage?: number | null;
6113
+ id?: string;
6114
+ monteur_id: string;
6115
+ nmbrs_company_code?: string | null;
6116
+ nmbrs_employee_number: string;
6117
+ updated_at?: string;
6118
+ };
6119
+ Update: {
6120
+ active_from?: string | null;
6121
+ active_to?: string | null;
6122
+ contract_hours_per_week?: number | null;
6123
+ created_at?: string;
6124
+ hourly_wage?: number | null;
6125
+ id?: string;
6126
+ monteur_id?: string;
6127
+ nmbrs_company_code?: string | null;
6128
+ nmbrs_employee_number?: string;
6129
+ updated_at?: string;
6130
+ };
6131
+ Relationships: [{
6132
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
6133
+ columns: ["monteur_id"];
6134
+ isOneToOne: true;
6135
+ referencedRelation: "monteurs";
6136
+ referencedColumns: ["id"];
6137
+ }];
6138
+ };
6139
+ nmbrs_export_lines: {
6140
+ Row: {
6141
+ amount: number;
6142
+ created_at: string;
6143
+ entry_date: string;
6144
+ hours: number;
6145
+ id: string;
6146
+ monteur_id: string;
6147
+ nmbrs_employee_number: string | null;
6148
+ notes: string | null;
6149
+ run_id: string;
6150
+ source_kind: string | null;
6151
+ source_ref_id: string | null;
6152
+ updated_at: string;
6153
+ wage_code: string;
6154
+ };
6155
+ Insert: {
6156
+ amount?: number;
6157
+ created_at?: string;
6158
+ entry_date: string;
6159
+ hours?: number;
6160
+ id?: string;
6161
+ monteur_id: string;
6162
+ nmbrs_employee_number?: string | null;
6163
+ notes?: string | null;
6164
+ run_id: string;
6165
+ source_kind?: string | null;
6166
+ source_ref_id?: string | null;
6167
+ updated_at?: string;
6168
+ wage_code: string;
6169
+ };
6170
+ Update: {
6171
+ amount?: number;
6172
+ created_at?: string;
6173
+ entry_date?: string;
6174
+ hours?: number;
6175
+ id?: string;
6176
+ monteur_id?: string;
6177
+ nmbrs_employee_number?: string | null;
6178
+ notes?: string | null;
6179
+ run_id?: string;
6180
+ source_kind?: string | null;
6181
+ source_ref_id?: string | null;
6182
+ updated_at?: string;
6183
+ wage_code?: string;
6184
+ };
6185
+ Relationships: [{
6186
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
6187
+ columns: ["monteur_id"];
6188
+ isOneToOne: false;
6189
+ referencedRelation: "monteurs";
6190
+ referencedColumns: ["id"];
6191
+ }, {
6192
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
6193
+ columns: ["run_id"];
6194
+ isOneToOne: false;
6195
+ referencedRelation: "nmbrs_export_runs";
6196
+ referencedColumns: ["id"];
6197
+ }, {
6198
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
6199
+ columns: ["wage_code"];
6200
+ isOneToOne: false;
6201
+ referencedRelation: "nmbrs_wage_components";
6202
+ referencedColumns: ["code"];
6203
+ }];
6204
+ };
6205
+ nmbrs_export_runs: {
6206
+ Row: {
6207
+ created_at: string;
6208
+ file_name: string | null;
6209
+ generated_at: string;
6210
+ generated_by: string | null;
6211
+ id: string;
6212
+ notes: string | null;
6213
+ period_end: string;
6214
+ period_label: string;
6215
+ period_start: string;
6216
+ status: string;
6217
+ total_hours: number;
6218
+ total_lines: number;
6219
+ updated_at: string;
6220
+ };
6221
+ Insert: {
6222
+ created_at?: string;
6223
+ file_name?: string | null;
6224
+ generated_at?: string;
6225
+ generated_by?: string | null;
6226
+ id?: string;
6227
+ notes?: string | null;
6228
+ period_end: string;
6229
+ period_label: string;
6230
+ period_start: string;
6231
+ status?: string;
6232
+ total_hours?: number;
6233
+ total_lines?: number;
6234
+ updated_at?: string;
6235
+ };
6236
+ Update: {
6237
+ created_at?: string;
6238
+ file_name?: string | null;
6239
+ generated_at?: string;
6240
+ generated_by?: string | null;
6241
+ id?: string;
6242
+ notes?: string | null;
6243
+ period_end?: string;
6244
+ period_label?: string;
6245
+ period_start?: string;
6246
+ status?: string;
6247
+ total_hours?: number;
6248
+ total_lines?: number;
6249
+ updated_at?: string;
6250
+ };
6251
+ Relationships: [];
6252
+ };
6253
+ nmbrs_settings: {
6254
+ Row: {
6255
+ created_at: string;
6256
+ default_company_code: string | null;
6257
+ id: boolean;
6258
+ include_travel: boolean;
6259
+ overtime_threshold_daily: number;
6260
+ overtime_threshold_weekly: number;
6261
+ period_type: string;
6262
+ updated_at: string;
6263
+ updated_by: string | null;
6264
+ week_start_day: number;
6265
+ };
6266
+ Insert: {
6267
+ created_at?: string;
6268
+ default_company_code?: string | null;
6269
+ id?: boolean;
6270
+ include_travel?: boolean;
6271
+ overtime_threshold_daily?: number;
6272
+ overtime_threshold_weekly?: number;
6273
+ period_type?: string;
6274
+ updated_at?: string;
6275
+ updated_by?: string | null;
6276
+ week_start_day?: number;
6277
+ };
6278
+ Update: {
6279
+ created_at?: string;
6280
+ default_company_code?: string | null;
6281
+ id?: boolean;
6282
+ include_travel?: boolean;
6283
+ overtime_threshold_daily?: number;
6284
+ overtime_threshold_weekly?: number;
6285
+ period_type?: string;
6286
+ updated_at?: string;
6287
+ updated_by?: string | null;
6288
+ week_start_day?: number;
6289
+ };
6290
+ Relationships: [];
6291
+ };
6292
+ nmbrs_wage_components: {
6293
+ Row: {
6294
+ category: string;
6295
+ code: string;
6296
+ created_at: string;
6297
+ id: string;
6298
+ is_active: boolean;
6299
+ label: string;
6300
+ sort_order: number;
6301
+ unit: string;
6302
+ updated_at: string;
6303
+ };
6304
+ Insert: {
6305
+ category: string;
6306
+ code: string;
6307
+ created_at?: string;
6308
+ id?: string;
6309
+ is_active?: boolean;
6310
+ label: string;
6311
+ sort_order?: number;
6312
+ unit: string;
6313
+ updated_at?: string;
6314
+ };
6315
+ Update: {
6316
+ category?: string;
6317
+ code?: string;
6318
+ created_at?: string;
6319
+ id?: string;
6320
+ is_active?: boolean;
6321
+ label?: string;
6322
+ sort_order?: number;
6323
+ unit?: string;
6324
+ updated_at?: string;
6325
+ };
6326
+ Relationships: [];
6327
+ };
6328
+ notifications: {
6329
+ Row: {
6330
+ created_at: string;
6331
+ id: string;
6332
+ message: string | null;
6333
+ read: boolean;
6334
+ title: string;
6335
+ updated_at: string;
6336
+ user_id: string;
6337
+ };
6338
+ Insert: {
6339
+ created_at?: string;
6340
+ id?: string;
6341
+ message?: string | null;
6342
+ read?: boolean;
6343
+ title: string;
6344
+ updated_at?: string;
6345
+ user_id: string;
6346
+ };
6347
+ Update: {
6348
+ created_at?: string;
6349
+ id?: string;
6350
+ message?: string | null;
5271
6351
  read?: boolean;
5272
6352
  title?: string;
5273
6353
  updated_at?: string;
@@ -5469,6 +6549,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5469
6549
  id: string;
5470
6550
  items: import("./types").Json;
5471
6551
  notes: string | null;
6552
+ order_number: string | null;
5472
6553
  recipient_id: string;
5473
6554
  total_amount: number;
5474
6555
  };
@@ -5482,6 +6563,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5482
6563
  id?: string;
5483
6564
  items?: import("./types").Json;
5484
6565
  notes?: string | null;
6566
+ order_number?: string | null;
5485
6567
  recipient_id: string;
5486
6568
  total_amount?: number;
5487
6569
  };
@@ -5495,6 +6577,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5495
6577
  id?: string;
5496
6578
  items?: import("./types").Json;
5497
6579
  notes?: string | null;
6580
+ order_number?: string | null;
5498
6581
  recipient_id?: string;
5499
6582
  total_amount?: number;
5500
6583
  };
@@ -5654,6 +6737,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5654
6737
  crates_per_layer: number;
5655
6738
  created_at: string;
5656
6739
  id: string;
6740
+ layer_fraction: number;
6741
+ layer_share_pct: number;
6742
+ layers_per_cart: number;
5657
6743
  order_item_id: string | null;
5658
6744
  plants_per_crate: number;
5659
6745
  product_id: string | null;
@@ -5665,6 +6751,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5665
6751
  crates_per_layer?: number;
5666
6752
  created_at?: string;
5667
6753
  id?: string;
6754
+ layer_fraction?: number;
6755
+ layer_share_pct?: number;
6756
+ layers_per_cart?: number;
5668
6757
  order_item_id?: string | null;
5669
6758
  plants_per_crate?: number;
5670
6759
  product_id?: string | null;
@@ -5676,6 +6765,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5676
6765
  crates_per_layer?: number;
5677
6766
  created_at?: string;
5678
6767
  id?: string;
6768
+ layer_fraction?: number;
6769
+ layer_share_pct?: number;
6770
+ layers_per_cart?: number;
5679
6771
  order_item_id?: string | null;
5680
6772
  plants_per_crate?: number;
5681
6773
  product_id?: string | null;
@@ -5703,33 +6795,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5703
6795
  };
5704
6796
  order_carts: {
5705
6797
  Row: {
6798
+ algorithm_version: number;
5706
6799
  cart_number: number;
5707
6800
  created_at: string;
5708
6801
  id: string;
5709
6802
  is_auto: boolean;
5710
6803
  is_complete: boolean;
5711
6804
  notes: string | null;
6805
+ occupancy_pct: number;
5712
6806
  order_id: string;
6807
+ source: string;
6808
+ total_layers_used: number;
5713
6809
  updated_at: string;
5714
6810
  };
5715
6811
  Insert: {
6812
+ algorithm_version?: number;
5716
6813
  cart_number: number;
5717
6814
  created_at?: string;
5718
6815
  id?: string;
5719
6816
  is_auto?: boolean;
5720
6817
  is_complete?: boolean;
5721
6818
  notes?: string | null;
6819
+ occupancy_pct?: number;
5722
6820
  order_id: string;
6821
+ source?: string;
6822
+ total_layers_used?: number;
5723
6823
  updated_at?: string;
5724
6824
  };
5725
6825
  Update: {
6826
+ algorithm_version?: number;
5726
6827
  cart_number?: number;
5727
6828
  created_at?: string;
5728
6829
  id?: string;
5729
6830
  is_auto?: boolean;
5730
6831
  is_complete?: boolean;
5731
6832
  notes?: string | null;
6833
+ occupancy_pct?: number;
5732
6834
  order_id?: string;
6835
+ source?: string;
6836
+ total_layers_used?: number;
5733
6837
  updated_at?: string;
5734
6838
  };
5735
6839
  Relationships: [{
@@ -5882,6 +6986,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5882
6986
  order_date: string;
5883
6987
  order_number: string;
5884
6988
  order_source: string;
6989
+ plan_locked_at: string | null;
6990
+ plan_locked_ref: string | null;
5885
6991
  status: string;
5886
6992
  total: string;
5887
6993
  updated_at: string;
@@ -5898,6 +7004,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5898
7004
  order_date?: string;
5899
7005
  order_number: string;
5900
7006
  order_source?: string;
7007
+ plan_locked_at?: string | null;
7008
+ plan_locked_ref?: string | null;
5901
7009
  status?: string;
5902
7010
  total?: string;
5903
7011
  updated_at?: string;
@@ -5914,6 +7022,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5914
7022
  order_date?: string;
5915
7023
  order_number?: string;
5916
7024
  order_source?: string;
7025
+ plan_locked_at?: string | null;
7026
+ plan_locked_ref?: string | null;
5917
7027
  status?: string;
5918
7028
  total?: string;
5919
7029
  updated_at?: string;
@@ -6227,6 +7337,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6227
7337
  purchase_price: number | null;
6228
7338
  quantity: number;
6229
7339
  sale_price: number | null;
7340
+ trade_item_key: string | null;
6230
7341
  unit: string;
6231
7342
  updated_at: string;
6232
7343
  weight: string | null;
@@ -6249,6 +7360,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6249
7360
  purchase_price?: number | null;
6250
7361
  quantity?: number;
6251
7362
  sale_price?: number | null;
7363
+ trade_item_key?: string | null;
6252
7364
  unit?: string;
6253
7365
  updated_at?: string;
6254
7366
  weight?: string | null;
@@ -6271,6 +7383,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6271
7383
  purchase_price?: number | null;
6272
7384
  quantity?: number;
6273
7385
  sale_price?: number | null;
7386
+ trade_item_key?: string | null;
6274
7387
  unit?: string;
6275
7388
  updated_at?: string;
6276
7389
  weight?: string | null;
@@ -6279,28 +7392,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6279
7392
  };
6280
7393
  profiles: {
6281
7394
  Row: {
7395
+ address: string | null;
6282
7396
  created_at: string;
6283
7397
  display_name: string | null;
6284
7398
  email: string | null;
6285
7399
  id: string;
7400
+ is_superadmin: boolean;
6286
7401
  notification_preferences: import("./types").Json;
6287
7402
  tenant_id: string | null;
6288
7403
  updated_at: string;
6289
7404
  };
6290
7405
  Insert: {
7406
+ address?: string | null;
6291
7407
  created_at?: string;
6292
7408
  display_name?: string | null;
6293
7409
  email?: string | null;
6294
7410
  id: string;
7411
+ is_superadmin?: boolean;
6295
7412
  notification_preferences?: import("./types").Json;
6296
7413
  tenant_id?: string | null;
6297
7414
  updated_at?: string;
6298
7415
  };
6299
7416
  Update: {
7417
+ address?: string | null;
6300
7418
  created_at?: string;
6301
7419
  display_name?: string | null;
6302
7420
  email?: string | null;
6303
7421
  id?: string;
7422
+ is_superadmin?: boolean;
6304
7423
  notification_preferences?: import("./types").Json;
6305
7424
  tenant_id?: string | null;
6306
7425
  updated_at?: string;
@@ -7090,6 +8209,120 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7090
8209
  };
7091
8210
  Relationships: [];
7092
8211
  };
8212
+ sidebar_config: {
8213
+ Row: {
8214
+ id: string;
8215
+ module_order: string[];
8216
+ updated_at: string;
8217
+ };
8218
+ Insert: {
8219
+ id?: string;
8220
+ module_order?: string[];
8221
+ updated_at?: string;
8222
+ };
8223
+ Update: {
8224
+ id?: string;
8225
+ module_order?: string[];
8226
+ updated_at?: string;
8227
+ };
8228
+ Relationships: [];
8229
+ };
8230
+ stock_import_runs: {
8231
+ Row: {
8232
+ connection_id: string | null;
8233
+ created_at: string;
8234
+ created_rows: number;
8235
+ errors: import("./types").Json;
8236
+ filename: string | null;
8237
+ id: string;
8238
+ mutations: import("./types").Json;
8239
+ skipped_rows: number;
8240
+ total_rows: number;
8241
+ updated_rows: number;
8242
+ user_id: string;
8243
+ };
8244
+ Insert: {
8245
+ connection_id?: string | null;
8246
+ created_at?: string;
8247
+ created_rows?: number;
8248
+ errors?: import("./types").Json;
8249
+ filename?: string | null;
8250
+ id?: string;
8251
+ mutations?: import("./types").Json;
8252
+ skipped_rows?: number;
8253
+ total_rows?: number;
8254
+ updated_rows?: number;
8255
+ user_id: string;
8256
+ };
8257
+ Update: {
8258
+ connection_id?: string | null;
8259
+ created_at?: string;
8260
+ created_rows?: number;
8261
+ errors?: import("./types").Json;
8262
+ filename?: string | null;
8263
+ id?: string;
8264
+ mutations?: import("./types").Json;
8265
+ skipped_rows?: number;
8266
+ total_rows?: number;
8267
+ updated_rows?: number;
8268
+ user_id?: string;
8269
+ };
8270
+ Relationships: [];
8271
+ };
8272
+ stock_mutation_log: {
8273
+ Row: {
8274
+ connection_id: string | null;
8275
+ created_at: string;
8276
+ created_by: string | null;
8277
+ id: string;
8278
+ mutation_type: string;
8279
+ order_id: string | null;
8280
+ order_item_id: string | null;
8281
+ order_source: string | null;
8282
+ physical_after: number | null;
8283
+ physical_before: number | null;
8284
+ qty_delta: number;
8285
+ reason: string | null;
8286
+ reserved_after: number | null;
8287
+ reserved_before: number | null;
8288
+ trade_item_key: string | null;
8289
+ };
8290
+ Insert: {
8291
+ connection_id?: string | null;
8292
+ created_at?: string;
8293
+ created_by?: string | null;
8294
+ id?: string;
8295
+ mutation_type: string;
8296
+ order_id?: string | null;
8297
+ order_item_id?: string | null;
8298
+ order_source?: string | null;
8299
+ physical_after?: number | null;
8300
+ physical_before?: number | null;
8301
+ qty_delta: number;
8302
+ reason?: string | null;
8303
+ reserved_after?: number | null;
8304
+ reserved_before?: number | null;
8305
+ trade_item_key?: string | null;
8306
+ };
8307
+ Update: {
8308
+ connection_id?: string | null;
8309
+ created_at?: string;
8310
+ created_by?: string | null;
8311
+ id?: string;
8312
+ mutation_type?: string;
8313
+ order_id?: string | null;
8314
+ order_item_id?: string | null;
8315
+ order_source?: string | null;
8316
+ physical_after?: number | null;
8317
+ physical_before?: number | null;
8318
+ qty_delta?: number;
8319
+ reason?: string | null;
8320
+ reserved_after?: number | null;
8321
+ reserved_before?: number | null;
8322
+ trade_item_key?: string | null;
8323
+ };
8324
+ Relationships: [];
8325
+ };
7093
8326
  supplier_products: {
7094
8327
  Row: {
7095
8328
  article_number: string | null;
@@ -7347,7 +8580,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7347
8580
  connection_id: string | null;
7348
8581
  created_at: string;
7349
8582
  data: import("./types").Json;
8583
+ floriday_id: string | null;
8584
+ floriday_link_error: string | null;
8585
+ floriday_link_status: string;
7350
8586
  id: string;
8587
+ last_floriday_sync_at: string | null;
8588
+ missing_required_fields: string[];
8589
+ source: string;
7351
8590
  updated_at: string;
7352
8591
  user_id: string;
7353
8592
  };
@@ -7355,7 +8594,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7355
8594
  connection_id?: string | null;
7356
8595
  created_at?: string;
7357
8596
  data?: import("./types").Json;
8597
+ floriday_id?: string | null;
8598
+ floriday_link_error?: string | null;
8599
+ floriday_link_status?: string;
7358
8600
  id?: string;
8601
+ last_floriday_sync_at?: string | null;
8602
+ missing_required_fields?: string[];
8603
+ source?: string;
7359
8604
  updated_at?: string;
7360
8605
  user_id: string;
7361
8606
  };
@@ -7363,7 +8608,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7363
8608
  connection_id?: string | null;
7364
8609
  created_at?: string;
7365
8610
  data?: import("./types").Json;
8611
+ floriday_id?: string | null;
8612
+ floriday_link_error?: string | null;
8613
+ floriday_link_status?: string;
7366
8614
  id?: string;
8615
+ last_floriday_sync_at?: string | null;
8616
+ missing_required_fields?: string[];
8617
+ source?: string;
7367
8618
  updated_at?: string;
7368
8619
  user_id?: string;
7369
8620
  };
@@ -7411,12 +8662,120 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7411
8662
  };
7412
8663
  Relationships: [];
7413
8664
  };
7414
- twinfield_connections: {
8665
+ trade_item_supply_lines: {
7415
8666
  Row: {
7416
- access_token: string | null;
7417
- client_id: string;
7418
- client_secret: string | null;
7419
- cluster_uri: string | null;
8667
+ available_quantity: number | null;
8668
+ connection_id: string;
8669
+ created_at: string;
8670
+ currency: string | null;
8671
+ endpoint_family: string | null;
8672
+ environment: string | null;
8673
+ id: string;
8674
+ last_error: string | null;
8675
+ last_status: number | null;
8676
+ packing_configuration_id: string | null;
8677
+ period_end: string | null;
8678
+ period_start: string | null;
8679
+ price_per_piece: number | null;
8680
+ sales_unit: string | null;
8681
+ supply_line_id: string | null;
8682
+ supply_type: string;
8683
+ trade_item_id: string;
8684
+ updated_at: string;
8685
+ user_id: string;
8686
+ week: number | null;
8687
+ year: number | null;
8688
+ };
8689
+ Insert: {
8690
+ available_quantity?: number | null;
8691
+ connection_id: string;
8692
+ created_at?: string;
8693
+ currency?: string | null;
8694
+ endpoint_family?: string | null;
8695
+ environment?: string | null;
8696
+ id?: string;
8697
+ last_error?: string | null;
8698
+ last_status?: number | null;
8699
+ packing_configuration_id?: string | null;
8700
+ period_end?: string | null;
8701
+ period_start?: string | null;
8702
+ price_per_piece?: number | null;
8703
+ sales_unit?: string | null;
8704
+ supply_line_id?: string | null;
8705
+ supply_type?: string;
8706
+ trade_item_id: string;
8707
+ updated_at?: string;
8708
+ user_id: string;
8709
+ week?: number | null;
8710
+ year?: number | null;
8711
+ };
8712
+ Update: {
8713
+ available_quantity?: number | null;
8714
+ connection_id?: string;
8715
+ created_at?: string;
8716
+ currency?: string | null;
8717
+ endpoint_family?: string | null;
8718
+ environment?: string | null;
8719
+ id?: string;
8720
+ last_error?: string | null;
8721
+ last_status?: number | null;
8722
+ packing_configuration_id?: string | null;
8723
+ period_end?: string | null;
8724
+ period_start?: string | null;
8725
+ price_per_piece?: number | null;
8726
+ sales_unit?: string | null;
8727
+ supply_line_id?: string | null;
8728
+ supply_type?: string;
8729
+ trade_item_id?: string;
8730
+ updated_at?: string;
8731
+ user_id?: string;
8732
+ week?: number | null;
8733
+ year?: number | null;
8734
+ };
8735
+ Relationships: [];
8736
+ };
8737
+ trade_item_warehouse_preferences: {
8738
+ Row: {
8739
+ connection_id: string;
8740
+ created_at: string;
8741
+ id: string;
8742
+ trade_item_id: string;
8743
+ updated_at: string;
8744
+ warehouse_id: string;
8745
+ warehouse_name: string | null;
8746
+ };
8747
+ Insert: {
8748
+ connection_id: string;
8749
+ created_at?: string;
8750
+ id?: string;
8751
+ trade_item_id: string;
8752
+ updated_at?: string;
8753
+ warehouse_id: string;
8754
+ warehouse_name?: string | null;
8755
+ };
8756
+ Update: {
8757
+ connection_id?: string;
8758
+ created_at?: string;
8759
+ id?: string;
8760
+ trade_item_id?: string;
8761
+ updated_at?: string;
8762
+ warehouse_id?: string;
8763
+ warehouse_name?: string | null;
8764
+ };
8765
+ Relationships: [{
8766
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8767
+ columns: ["connection_id"];
8768
+ isOneToOne: false;
8769
+ referencedRelation: "floriday_connections";
8770
+ referencedColumns: ["id"];
8771
+ }];
8772
+ };
8773
+ twinfield_connections: {
8774
+ Row: {
8775
+ access_token: string | null;
8776
+ client_id: string;
8777
+ client_secret: string | null;
8778
+ cluster_uri: string | null;
7420
8779
  company_code: string | null;
7421
8780
  company_name: string | null;
7422
8781
  connected_at: string | null;
@@ -7730,6 +9089,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7730
9089
  default_invoice_type: string;
7731
9090
  default_payment_term_days: number;
7732
9091
  default_vat_code: string;
9092
+ invoice_enabled_ao: boolean;
9093
+ invoice_enabled_fo: boolean;
9094
+ invoice_enabled_ho: boolean;
9095
+ invoice_enabled_mo: boolean;
7733
9096
  updated_at: string;
7734
9097
  user_id: string;
7735
9098
  };
@@ -7739,6 +9102,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7739
9102
  default_invoice_type?: string;
7740
9103
  default_payment_term_days?: number;
7741
9104
  default_vat_code?: string;
9105
+ invoice_enabled_ao?: boolean;
9106
+ invoice_enabled_fo?: boolean;
9107
+ invoice_enabled_ho?: boolean;
9108
+ invoice_enabled_mo?: boolean;
7742
9109
  updated_at?: string;
7743
9110
  user_id: string;
7744
9111
  };
@@ -7748,6 +9115,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7748
9115
  default_invoice_type?: string;
7749
9116
  default_payment_term_days?: number;
7750
9117
  default_vat_code?: string;
9118
+ invoice_enabled_ao?: boolean;
9119
+ invoice_enabled_fo?: boolean;
9120
+ invoice_enabled_ho?: boolean;
9121
+ invoice_enabled_mo?: boolean;
7751
9122
  updated_at?: string;
7752
9123
  user_id?: string;
7753
9124
  };
@@ -7755,6 +9126,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7755
9126
  };
7756
9127
  twinfield_invoice_sync_logs: {
7757
9128
  Row: {
9129
+ action_type: string | null;
7758
9130
  created_at: string;
7759
9131
  details: import("./types").Json | null;
7760
9132
  duration_ms: number | null;
@@ -7767,6 +9139,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7767
9139
  user_id: string;
7768
9140
  };
7769
9141
  Insert: {
9142
+ action_type?: string | null;
7770
9143
  created_at?: string;
7771
9144
  details?: import("./types").Json | null;
7772
9145
  duration_ms?: number | null;
@@ -7779,6 +9152,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7779
9152
  user_id: string;
7780
9153
  };
7781
9154
  Update: {
9155
+ action_type?: string | null;
7782
9156
  created_at?: string;
7783
9157
  details?: import("./types").Json | null;
7784
9158
  duration_ms?: number | null;
@@ -8014,6 +9388,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8014
9388
  referencedColumns: ["id"];
8015
9389
  }];
8016
9390
  };
9391
+ twinfield_request_metrics: {
9392
+ Row: {
9393
+ bucket_hour: string;
9394
+ connection_id: string;
9395
+ error_count: number;
9396
+ rate_limited_count: number;
9397
+ request_count: number;
9398
+ updated_at: string;
9399
+ };
9400
+ Insert: {
9401
+ bucket_hour: string;
9402
+ connection_id: string;
9403
+ error_count?: number;
9404
+ rate_limited_count?: number;
9405
+ request_count?: number;
9406
+ updated_at?: string;
9407
+ };
9408
+ Update: {
9409
+ bucket_hour?: string;
9410
+ connection_id?: string;
9411
+ error_count?: number;
9412
+ rate_limited_count?: number;
9413
+ request_count?: number;
9414
+ updated_at?: string;
9415
+ };
9416
+ Relationships: [];
9417
+ };
9418
+ twinfield_session_cache: {
9419
+ Row: {
9420
+ cluster: string;
9421
+ created_at: string;
9422
+ expires_at: string;
9423
+ session_id: string;
9424
+ user_id: string;
9425
+ };
9426
+ Insert: {
9427
+ cluster: string;
9428
+ created_at?: string;
9429
+ expires_at: string;
9430
+ session_id: string;
9431
+ user_id: string;
9432
+ };
9433
+ Update: {
9434
+ cluster?: string;
9435
+ created_at?: string;
9436
+ expires_at?: string;
9437
+ session_id?: string;
9438
+ user_id?: string;
9439
+ };
9440
+ Relationships: [];
9441
+ };
8017
9442
  twinfield_settings: {
8018
9443
  Row: {
8019
9444
  active_environment: string;
@@ -8595,6 +10020,44 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8595
10020
  };
8596
10021
  Relationships: [];
8597
10022
  };
10023
+ floriday_customer_discounts: {
10024
+ Row: {
10025
+ base_price: number | null;
10026
+ buyer_organization_id: string | null;
10027
+ currency: string | null;
10028
+ discount_type: string | null;
10029
+ discount_value: number | null;
10030
+ min_quantity: number | null;
10031
+ net_price: number | null;
10032
+ product_group_id: string | null;
10033
+ raw: import("./types").Json | null;
10034
+ source: string | null;
10035
+ source_id: string | null;
10036
+ trade_item_id: string | null;
10037
+ valid_from: string | null;
10038
+ valid_until: string | null;
10039
+ };
10040
+ Relationships: [];
10041
+ };
10042
+ local_customer_discounts: {
10043
+ Row: {
10044
+ base_price: number | null;
10045
+ currency: string | null;
10046
+ customer_id: string | null;
10047
+ discount_type: string | null;
10048
+ discount_value: number | null;
10049
+ min_quantity: number | null;
10050
+ net_price: number | null;
10051
+ product_category_id: string | null;
10052
+ product_id: string | null;
10053
+ product_name: string | null;
10054
+ source: string | null;
10055
+ source_id: string | null;
10056
+ valid_from: string | null;
10057
+ valid_until: string | null;
10058
+ };
10059
+ Relationships: [];
10060
+ };
8598
10061
  manufacture_product_possible_stock_view: {
8599
10062
  Row: {
8600
10063
  component_count: number | null;
@@ -8879,6 +10342,68 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8879
10342
  };
8880
10343
  Returns: number;
8881
10344
  };
10345
+ afh_city_code: {
10346
+ Args: {
10347
+ _city: string;
10348
+ _country: string;
10349
+ };
10350
+ Returns: string;
10351
+ };
10352
+ afh_normalize_country: {
10353
+ Args: {
10354
+ _raw: string;
10355
+ };
10356
+ Returns: string;
10357
+ };
10358
+ afh_normalize_nl_province: {
10359
+ Args: {
10360
+ _raw: string;
10361
+ };
10362
+ Returns: string;
10363
+ };
10364
+ afh_subtract_workdays: {
10365
+ Args: {
10366
+ _date: string;
10367
+ _days: number;
10368
+ };
10369
+ Returns: string;
10370
+ };
10371
+ apply_stock_consumption: {
10372
+ Args: {
10373
+ p_order_id: string;
10374
+ p_order_item_id: string;
10375
+ p_qty: number;
10376
+ p_reason: string;
10377
+ p_source: string;
10378
+ p_trade_item_key: string;
10379
+ };
10380
+ Returns: undefined;
10381
+ };
10382
+ apply_stock_reservation: {
10383
+ Args: {
10384
+ p_order_id: string;
10385
+ p_order_item_id: string;
10386
+ p_qty: number;
10387
+ p_reason: string;
10388
+ p_source: string;
10389
+ p_trade_item_key: string;
10390
+ };
10391
+ Returns: undefined;
10392
+ };
10393
+ assign_cart_numbers: {
10394
+ Args: {
10395
+ p_carts: import("./types").Json;
10396
+ };
10397
+ Returns: {
10398
+ cart_index: number;
10399
+ cart_number: string;
10400
+ day_seq: number;
10401
+ order_id: string;
10402
+ order_source: string;
10403
+ pick_date: string;
10404
+ status: string;
10405
+ }[];
10406
+ };
8882
10407
  assign_floriday_order_numbers: {
8883
10408
  Args: {
8884
10409
  p_ids: string[];
@@ -8888,13 +10413,75 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8888
10413
  order_number: string;
8889
10414
  }[];
8890
10415
  };
10416
+ autolink_product_to_floriday: {
10417
+ Args: {
10418
+ p_product_id: string;
10419
+ };
10420
+ Returns: string;
10421
+ };
10422
+ backfill_open_order_reservations: {
10423
+ Args: never;
10424
+ Returns: {
10425
+ processed_items: number;
10426
+ }[];
10427
+ };
8891
10428
  call_exact_route: {
8892
10429
  Args: {
8893
10430
  path: string;
8894
10431
  };
8895
10432
  Returns: number;
8896
10433
  };
10434
+ check_offer_product_available_stock: {
10435
+ Args: {
10436
+ p_campaign_product_id: string;
10437
+ p_code: string;
10438
+ p_needed_qty?: number;
10439
+ p_product_name?: string;
10440
+ };
10441
+ Returns: import("./types").Json;
10442
+ };
10443
+ check_trade_item_available_stock: {
10444
+ Args: {
10445
+ p_connection_id?: string;
10446
+ p_context?: string;
10447
+ p_needed_qty?: number;
10448
+ p_order_id?: string;
10449
+ p_order_item_id?: string;
10450
+ p_owner_id?: string;
10451
+ p_product_name?: string;
10452
+ p_trade_item_key: string;
10453
+ };
10454
+ Returns: import("./types").Json;
10455
+ };
8897
10456
  cleanup_old_bookings: {
10457
+ Args: never;
10458
+ Returns: undefined;
10459
+ };
10460
+ consume_floriday_rate_limit: {
10461
+ Args: {
10462
+ p_bucket: string;
10463
+ p_capacity: number;
10464
+ p_cost?: number;
10465
+ p_refill_per_sec: number;
10466
+ };
10467
+ Returns: {
10468
+ granted: boolean;
10469
+ wait_ms: number;
10470
+ }[];
10471
+ };
10472
+ control_get_todays_carts: {
10473
+ Args: never;
10474
+ Returns: {
10475
+ cart_index: number;
10476
+ cart_number: string;
10477
+ cart_number_id: string;
10478
+ order_id: string;
10479
+ order_source: string;
10480
+ pick_date: string;
10481
+ status: string;
10482
+ }[];
10483
+ };
10484
+ count_distinct_regulatory_products: {
8898
10485
  Args: never;
8899
10486
  Returns: number;
8900
10487
  };
@@ -8902,6 +10489,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8902
10489
  Args: never;
8903
10490
  Returns: string;
8904
10491
  };
10492
+ dashboard_alert_counts: {
10493
+ Args: never;
10494
+ Returns: import("./types").Json;
10495
+ };
10496
+ dashboard_alert_rows: {
10497
+ Args: {
10498
+ check_id: string;
10499
+ row_limit?: number;
10500
+ };
10501
+ Returns: import("./types").Json;
10502
+ };
8905
10503
  dashboard_list_public_schema: {
8906
10504
  Args: never;
8907
10505
  Returns: {
@@ -8910,6 +10508,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8910
10508
  table_name: string;
8911
10509
  }[];
8912
10510
  };
10511
+ dispatch_carrier_signups_sql: {
10512
+ Args: {
10513
+ _catchup?: string;
10514
+ };
10515
+ Returns: import("./types").Json;
10516
+ };
8913
10517
  email_auth_decrypt: {
8914
10518
  Args: {
8915
10519
  cipher: string;
@@ -8945,6 +10549,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8945
10549
  status: string;
8946
10550
  }[];
8947
10551
  };
10552
+ enqueue_cart_replan_if_unlocked: {
10553
+ Args: {
10554
+ p_order_id: string;
10555
+ };
10556
+ Returns: undefined;
10557
+ };
10558
+ ensure_trade_item_stock_row: {
10559
+ Args: {
10560
+ p_key: string;
10561
+ };
10562
+ Returns: undefined;
10563
+ };
8948
10564
  ensure_user_tenant: {
8949
10565
  Args: never;
8950
10566
  Returns: string;
@@ -8982,6 +10598,38 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8982
10598
  };
8983
10599
  Returns: boolean;
8984
10600
  };
10601
+ find_trade_item_key: {
10602
+ Args: {
10603
+ p_barcode: string;
10604
+ p_name: string;
10605
+ p_product_id: string;
10606
+ };
10607
+ Returns: string;
10608
+ };
10609
+ floriday_effective_price: {
10610
+ Args: {
10611
+ _buyer_id: string;
10612
+ _on_date?: string;
10613
+ _quantity?: number;
10614
+ _trade_item_id: string;
10615
+ };
10616
+ Returns: {
10617
+ base_price: number;
10618
+ currency: string;
10619
+ discount_type: string;
10620
+ discount_value: number;
10621
+ net_price: number;
10622
+ source: string;
10623
+ source_id: string;
10624
+ }[];
10625
+ };
10626
+ format_cart_number: {
10627
+ Args: {
10628
+ p_pick_date: string;
10629
+ p_seq: number;
10630
+ };
10631
+ Returns: string;
10632
+ };
8985
10633
  get_active_floriday_connection_public: {
8986
10634
  Args: never;
8987
10635
  Returns: {
@@ -8995,6 +10643,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8995
10643
  preferred_warehouse_name: string;
8996
10644
  }[];
8997
10645
  };
10646
+ get_active_floriday_context: {
10647
+ Args: never;
10648
+ Returns: {
10649
+ connection_id: string;
10650
+ user_id: string;
10651
+ }[];
10652
+ };
8998
10653
  get_active_twinfield_public: {
8999
10654
  Args: never;
9000
10655
  Returns: {
@@ -9006,6 +10661,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9006
10661
  office_code: string;
9007
10662
  }[];
9008
10663
  };
10664
+ get_floricode_record_counts: {
10665
+ Args: never;
10666
+ Returns: {
10667
+ count: number;
10668
+ resource: string;
10669
+ }[];
10670
+ };
9009
10671
  get_floriday_agreements_active: {
9010
10672
  Args: {
9011
10673
  p_on_date?: string;
@@ -9097,6 +10759,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9097
10759
  };
9098
10760
  Returns: import("./types").Json;
9099
10761
  };
10762
+ get_offer_delivery_options: {
10763
+ Args: {
10764
+ p_code: string;
10765
+ };
10766
+ Returns: import("./types").Json;
10767
+ };
10768
+ get_offer_recipient_by_code: {
10769
+ Args: {
10770
+ p_code: string;
10771
+ };
10772
+ Returns: {
10773
+ campaign_id: string;
10774
+ clicked_at: string;
10775
+ customer_id: string;
10776
+ id: string;
10777
+ ordered_at: string;
10778
+ }[];
10779
+ };
9100
10780
  get_or_assign_floriday_order_number: {
9101
10781
  Args: {
9102
10782
  p_floriday_id: string;
@@ -9149,12 +10829,53 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9149
10829
  Args: never;
9150
10830
  Returns: boolean;
9151
10831
  };
10832
+ is_superadmin: {
10833
+ Args: {
10834
+ _user_id: string;
10835
+ };
10836
+ Returns: boolean;
10837
+ };
10838
+ local_effective_price: {
10839
+ Args: {
10840
+ _customer_id: string;
10841
+ _on_date?: string;
10842
+ _product_id: string;
10843
+ _quantity?: number;
10844
+ };
10845
+ Returns: {
10846
+ currency: string;
10847
+ discount_type: string;
10848
+ discount_value: number;
10849
+ net_price: number;
10850
+ source: string;
10851
+ source_id: string;
10852
+ }[];
10853
+ };
10854
+ mark_offer_clicked: {
10855
+ Args: {
10856
+ p_code: string;
10857
+ };
10858
+ Returns: undefined;
10859
+ };
10860
+ mark_offer_ordered: {
10861
+ Args: {
10862
+ p_code: string;
10863
+ };
10864
+ Returns: undefined;
10865
+ };
9152
10866
  next_order_number: {
9153
10867
  Args: {
9154
10868
  p_prefix: string;
9155
10869
  };
9156
10870
  Returns: string;
9157
10871
  };
10872
+ next_order_number_for_date: {
10873
+ Args: {
10874
+ p_created_at?: string;
10875
+ p_prefix: string;
10876
+ };
10877
+ Returns: string;
10878
+ };
9158
10879
  next_work_order_number: {
9159
10880
  Args: {
9160
10881
  p_parent_work_order_id?: string;
@@ -9162,16 +10883,41 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9162
10883
  };
9163
10884
  Returns: string;
9164
10885
  };
10886
+ normalize_order_source: {
10887
+ Args: {
10888
+ p_src: string;
10889
+ };
10890
+ Returns: string;
10891
+ };
9165
10892
  normalize_vat: {
9166
10893
  Args: {
9167
10894
  v: string;
9168
10895
  };
9169
10896
  Returns: string;
9170
10897
  };
10898
+ offer_recipient_matches: {
10899
+ Args: {
10900
+ _campaign_id: string;
10901
+ _customer_id: string;
10902
+ _recipient_id: string;
10903
+ };
10904
+ Returns: boolean;
10905
+ };
10906
+ order_number_prefix: {
10907
+ Args: {
10908
+ p_custom_fields?: import("./types").Json;
10909
+ p_order_source: string;
10910
+ };
10911
+ Returns: string;
10912
+ };
9171
10913
  pickstation_get_orders_raw: {
9172
10914
  Args: never;
9173
10915
  Returns: import("./types").Json;
9174
10916
  };
10917
+ pickstation_get_planning_context: {
10918
+ Args: never;
10919
+ Returns: import("./types").Json;
10920
+ };
9175
10921
  pickstation_get_settings: {
9176
10922
  Args: never;
9177
10923
  Returns: import("./types").Json;
@@ -9186,6 +10932,44 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9186
10932
  };
9187
10933
  Returns: undefined;
9188
10934
  };
10935
+ pickstation_set_cart_status: {
10936
+ Args: {
10937
+ p_cart_index: number;
10938
+ p_order_id: string;
10939
+ p_order_source: string;
10940
+ p_status: string;
10941
+ };
10942
+ Returns: undefined;
10943
+ };
10944
+ promote_trade_item_key: {
10945
+ Args: {
10946
+ p_new: string;
10947
+ p_old: string;
10948
+ };
10949
+ Returns: undefined;
10950
+ };
10951
+ recompute_order_status: {
10952
+ Args: {
10953
+ p_order_id: string;
10954
+ };
10955
+ Returns: undefined;
10956
+ };
10957
+ recompute_reserved_for_order: {
10958
+ Args: {
10959
+ p_order_id: string;
10960
+ };
10961
+ Returns: undefined;
10962
+ };
10963
+ recompute_reserved_stock: {
10964
+ Args: {
10965
+ p_trade_item_key: string;
10966
+ };
10967
+ Returns: undefined;
10968
+ };
10969
+ refresh_external_customers_grouped: {
10970
+ Args: never;
10971
+ Returns: undefined;
10972
+ };
9189
10973
  refresh_floricode_derived_code_lists: {
9190
10974
  Args: never;
9191
10975
  Returns: {
@@ -9200,6 +10984,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9200
10984
  };
9201
10985
  Returns: number;
9202
10986
  };
10987
+ refresh_floricode_derived_for_products: {
10988
+ Args: {
10989
+ _product_ids: string[];
10990
+ };
10991
+ Returns: number;
10992
+ };
9203
10993
  reset_floriday_sync_cursor: {
9204
10994
  Args: {
9205
10995
  p_connection_id: string;
@@ -9207,6 +10997,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9207
10997
  };
9208
10998
  Returns: undefined;
9209
10999
  };
11000
+ resolve_product_id_for_item: {
11001
+ Args: {
11002
+ p_product_name: string;
11003
+ };
11004
+ Returns: string;
11005
+ };
9210
11006
  schedule_floriday_additional_services_sync: {
9211
11007
  Args: {
9212
11008
  p_apikey: string;
@@ -9484,6 +11280,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9484
11280
  };
9485
11281
  Returns: string[];
9486
11282
  };
11283
+ sync_cached_packing_from_product: {
11284
+ Args: {
11285
+ p_product_id: string;
11286
+ };
11287
+ Returns: undefined;
11288
+ };
11289
+ sync_order_cart_item_packing_from_product: {
11290
+ Args: {
11291
+ p_product_id: string;
11292
+ };
11293
+ Returns: undefined;
11294
+ };
11295
+ sync_product_packing_from_floriday_cache: {
11296
+ Args: {
11297
+ p_floriday_id: string;
11298
+ };
11299
+ Returns: undefined;
11300
+ };
9487
11301
  twinfield_decrypt: {
9488
11302
  Args: {
9489
11303
  cipher: string;
@@ -9496,6 +11310,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9496
11310
  };
9497
11311
  Returns: string;
9498
11312
  };
11313
+ upsert_auto_fulfillment_log: {
11314
+ Args: {
11315
+ p_connection_id: string;
11316
+ p_error?: string;
11317
+ p_fulfillment_order_id?: string;
11318
+ p_reason?: string;
11319
+ p_sales_order_id: string;
11320
+ p_status: string;
11321
+ };
11322
+ Returns: undefined;
11323
+ };
9499
11324
  };
9500
11325
  Enums: {
9501
11326
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";