@flowselections/floriday-afhandeling-module 1.0.9 → 1.0.10

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 (72) hide show
  1. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts +9 -0
  2. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/DagDetailDialog.js +145 -0
  4. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/LeveringenPage.js +11 -5
  6. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/PickAgendaView.js +13 -4
  8. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/PlanningAgendaPage.js +2 -2
  10. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts +12 -0
  11. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts.map +1 -0
  12. package/dist-lib/components/afhandeling/ServiceAreaSelect.js +79 -0
  13. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/VervoerderForm.js +53 -6
  15. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  16. package/dist-lib/components/afhandeling/VervoerdersPage.js +23 -5
  17. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +2 -1
  18. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  19. package/dist-lib/components/afhandeling/WeekAgendaView.js +53 -18
  20. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +5 -2
  21. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  22. package/dist-lib/components/pickstation/PakbonTemplate.js +12 -10
  23. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  24. package/dist-lib/components/settings/AfhandelingSettingsCard.js +18 -6
  25. package/dist-lib/hooks/useOrderPlanning.d.ts +3 -0
  26. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  27. package/dist-lib/hooks/useOrderPlanning.js +47 -6
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2261 -136
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +2261 -136
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +2261 -136
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +2329 -134
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/types.js +1 -0
  37. package/dist-lib/lib/afhandelingSettings.functions.d.ts +9431 -5172
  38. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/afhandelingSettings.functions.js +27 -2
  40. package/dist-lib/lib/carrierSignupMail.server.d.ts +56 -0
  41. package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -0
  42. package/dist-lib/lib/carrierSignupMail.server.js +229 -0
  43. package/dist-lib/lib/carriers.functions.d.ts +33377 -15579
  44. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/carriers.functions.js +28 -2
  46. package/dist-lib/lib/cartAssignments.functions.d.ts +46479 -0
  47. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -0
  48. package/dist-lib/lib/cartAssignments.functions.js +130 -0
  49. package/dist-lib/lib/cartMoveImpact.d.ts +8 -0
  50. package/dist-lib/lib/cartMoveImpact.d.ts.map +1 -0
  51. package/dist-lib/lib/cartMoveImpact.js +26 -0
  52. package/dist-lib/lib/floriday.functions.d.ts +2265 -136
  53. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/floriday.functions.js +178 -98
  55. package/dist-lib/lib/geo/euServiceAreas.d.ts +30 -0
  56. package/dist-lib/lib/geo/euServiceAreas.d.ts.map +1 -0
  57. package/dist-lib/lib/geo/euServiceAreas.js +277 -0
  58. package/dist-lib/lib/invalidatePlanning.d.ts +11 -0
  59. package/dist-lib/lib/invalidatePlanning.d.ts.map +1 -0
  60. package/dist-lib/lib/invalidatePlanning.js +25 -0
  61. package/dist-lib/lib/pickstationI18n.d.ts +4 -0
  62. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  63. package/dist-lib/lib/pickstationI18n.js +24 -0
  64. package/dist-lib/lib/pickstationOrders.server.d.ts +1 -1
  65. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  66. package/dist-lib/lib/pickstationOrders.server.js +305 -177
  67. package/dist-lib/lib/pickstationTypes.d.ts +11 -2
  68. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  69. package/dist-lib/lib/planning.d.ts +18 -2
  70. package/dist-lib/lib/planning.d.ts.map +1 -1
  71. package/dist-lib/lib/planning.js +96 -33
  72. package/package.json +2 -2
@@ -14,6 +14,9 @@ export type Database = {
14
14
  max_workdays_earlier_pick: number;
15
15
  pick_days_before_transport: number;
16
16
  pick_distribution_enabled: boolean;
17
+ signup_mail_enabled: boolean;
18
+ signup_mail_lead_minutes: number;
19
+ signup_mail_purpose: string;
17
20
  transport_register_days_before: number;
18
21
  updated_at: string;
19
22
  user_id: string;
@@ -24,6 +27,9 @@ export type Database = {
24
27
  max_workdays_earlier_pick?: number;
25
28
  pick_days_before_transport?: number;
26
29
  pick_distribution_enabled?: boolean;
30
+ signup_mail_enabled?: boolean;
31
+ signup_mail_lead_minutes?: number;
32
+ signup_mail_purpose?: string;
27
33
  transport_register_days_before?: number;
28
34
  updated_at?: string;
29
35
  user_id: string;
@@ -34,6 +40,9 @@ export type Database = {
34
40
  max_workdays_earlier_pick?: number;
35
41
  pick_days_before_transport?: number;
36
42
  pick_distribution_enabled?: boolean;
43
+ signup_mail_enabled?: boolean;
44
+ signup_mail_lead_minutes?: number;
45
+ signup_mail_purpose?: string;
37
46
  transport_register_days_before?: number;
38
47
  updated_at?: string;
39
48
  user_id?: string;
@@ -449,6 +458,53 @@ export type Database = {
449
458
  }
450
459
  ];
451
460
  };
461
+ carrier_signup_dispatches: {
462
+ Row: {
463
+ carrier_id: string;
464
+ cart_count: number;
465
+ created_at: string;
466
+ id: string;
467
+ order_count: number;
468
+ outbox_id: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at: string;
472
+ signup_deadline: string;
473
+ };
474
+ Insert: {
475
+ carrier_id: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date: string;
482
+ pickup_moment_key: string;
483
+ sent_at?: string;
484
+ signup_deadline: string;
485
+ };
486
+ Update: {
487
+ carrier_id?: string;
488
+ cart_count?: number;
489
+ created_at?: string;
490
+ id?: string;
491
+ order_count?: number;
492
+ outbox_id?: string | null;
493
+ pickup_date?: string;
494
+ pickup_moment_key?: string;
495
+ sent_at?: string;
496
+ signup_deadline?: string;
497
+ };
498
+ Relationships: [
499
+ {
500
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
501
+ columns: ["carrier_id"];
502
+ isOneToOne: false;
503
+ referencedRelation: "carriers";
504
+ referencedColumns: ["id"];
505
+ }
506
+ ];
507
+ };
452
508
  carriers: {
453
509
  Row: {
454
510
  address: string | null;
@@ -462,9 +518,13 @@ export type Database = {
462
518
  notes: string | null;
463
519
  phone: string | null;
464
520
  pickup_moments: Json;
521
+ service_cities: string[];
522
+ service_countries: string[];
523
+ service_provinces: string[];
465
524
  signup_days_before_delivery: number;
466
525
  signup_time_1: string | null;
467
526
  signup_time_2: string | null;
527
+ sort_order: number;
468
528
  updated_at: string;
469
529
  user_id: string;
470
530
  };
@@ -480,9 +540,13 @@ export type Database = {
480
540
  notes?: string | null;
481
541
  phone?: string | null;
482
542
  pickup_moments?: Json;
543
+ service_cities?: string[];
544
+ service_countries?: string[];
545
+ service_provinces?: string[];
483
546
  signup_days_before_delivery?: number;
484
547
  signup_time_1?: string | null;
485
548
  signup_time_2?: string | null;
549
+ sort_order?: number;
486
550
  updated_at?: string;
487
551
  user_id: string;
488
552
  };
@@ -498,14 +562,57 @@ export type Database = {
498
562
  notes?: string | null;
499
563
  phone?: string | null;
500
564
  pickup_moments?: Json;
565
+ service_cities?: string[];
566
+ service_countries?: string[];
567
+ service_provinces?: string[];
501
568
  signup_days_before_delivery?: number;
502
569
  signup_time_1?: string | null;
503
570
  signup_time_2?: string | null;
571
+ sort_order?: number;
504
572
  updated_at?: string;
505
573
  user_id?: string;
506
574
  };
507
575
  Relationships: [];
508
576
  };
577
+ cart_pick_overrides: {
578
+ Row: {
579
+ cart_index: number;
580
+ created_at: string;
581
+ id: string;
582
+ moved_from_date: string | null;
583
+ notes: string | null;
584
+ order_id: string;
585
+ order_source: string;
586
+ pick_date: string;
587
+ status: string;
588
+ updated_at: string;
589
+ };
590
+ Insert: {
591
+ cart_index: number;
592
+ created_at?: string;
593
+ id?: string;
594
+ moved_from_date?: string | null;
595
+ notes?: string | null;
596
+ order_id: string;
597
+ order_source: string;
598
+ pick_date: string;
599
+ status?: string;
600
+ updated_at?: string;
601
+ };
602
+ Update: {
603
+ cart_index?: number;
604
+ created_at?: string;
605
+ id?: string;
606
+ moved_from_date?: string | null;
607
+ notes?: string | null;
608
+ order_id?: string;
609
+ order_source?: string;
610
+ pick_date?: string;
611
+ status?: string;
612
+ updated_at?: string;
613
+ };
614
+ Relationships: [];
615
+ };
509
616
  collections: {
510
617
  Row: {
511
618
  created_at: string;
@@ -621,50 +728,75 @@ export type Database = {
621
728
  customer_delivery_locations: {
622
729
  Row: {
623
730
  address_line: string | null;
731
+ carrier_assignment_source: string;
732
+ carrier_id: string | null;
624
733
  city: string | null;
625
734
  country: string | null;
626
735
  created_at: string;
627
736
  customer_id: string;
628
737
  floriday_location_id: string | null;
629
738
  gln: string | null;
739
+ house_number: string | null;
630
740
  id: string;
631
741
  is_primary: boolean;
632
742
  name: string | null;
633
743
  postal_code: string | null;
744
+ province: string | null;
634
745
  raw: Json | null;
746
+ self_pickup: boolean;
747
+ street: string | null;
635
748
  updated_at: string;
636
749
  };
637
750
  Insert: {
638
751
  address_line?: string | null;
752
+ carrier_assignment_source?: string;
753
+ carrier_id?: string | null;
639
754
  city?: string | null;
640
755
  country?: string | null;
641
756
  created_at?: string;
642
757
  customer_id: string;
643
758
  floriday_location_id?: string | null;
644
759
  gln?: string | null;
760
+ house_number?: string | null;
645
761
  id?: string;
646
762
  is_primary?: boolean;
647
763
  name?: string | null;
648
764
  postal_code?: string | null;
765
+ province?: string | null;
649
766
  raw?: Json | null;
767
+ self_pickup?: boolean;
768
+ street?: string | null;
650
769
  updated_at?: string;
651
770
  };
652
771
  Update: {
653
772
  address_line?: string | null;
773
+ carrier_assignment_source?: string;
774
+ carrier_id?: string | null;
654
775
  city?: string | null;
655
776
  country?: string | null;
656
777
  created_at?: string;
657
778
  customer_id?: string;
658
779
  floriday_location_id?: string | null;
659
780
  gln?: string | null;
781
+ house_number?: string | null;
660
782
  id?: string;
661
783
  is_primary?: boolean;
662
784
  name?: string | null;
663
785
  postal_code?: string | null;
786
+ province?: string | null;
664
787
  raw?: Json | null;
788
+ self_pickup?: boolean;
789
+ street?: string | null;
665
790
  updated_at?: string;
666
791
  };
667
792
  Relationships: [
793
+ {
794
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
795
+ columns: ["carrier_id"];
796
+ isOneToOne: false;
797
+ referencedRelation: "carriers";
798
+ referencedColumns: ["id"];
799
+ },
668
800
  {
669
801
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
670
802
  columns: ["customer_id"];
@@ -1492,18 +1624,21 @@ export type Database = {
1492
1624
  };
1493
1625
  email_auth_purpose_settings: {
1494
1626
  Row: {
1627
+ default_cc: string[];
1495
1628
  purpose: string;
1496
1629
  reply_to: string | null;
1497
1630
  updated_at: string;
1498
1631
  updated_by: string | null;
1499
1632
  };
1500
1633
  Insert: {
1634
+ default_cc?: string[];
1501
1635
  purpose: string;
1502
1636
  reply_to?: string | null;
1503
1637
  updated_at?: string;
1504
1638
  updated_by?: string | null;
1505
1639
  };
1506
1640
  Update: {
1641
+ default_cc?: string[];
1507
1642
  purpose?: string;
1508
1643
  reply_to?: string | null;
1509
1644
  updated_at?: string;
@@ -2544,12 +2679,40 @@ export type Database = {
2544
2679
  };
2545
2680
  Relationships: [];
2546
2681
  };
2682
+ extra_pricing_types: {
2683
+ Row: {
2684
+ code: string;
2685
+ created_at: string;
2686
+ id: string;
2687
+ label: string;
2688
+ sort_order: number;
2689
+ updated_at: string;
2690
+ };
2691
+ Insert: {
2692
+ code: string;
2693
+ created_at?: string;
2694
+ id?: string;
2695
+ label: string;
2696
+ sort_order?: number;
2697
+ updated_at?: string;
2698
+ };
2699
+ Update: {
2700
+ code?: string;
2701
+ created_at?: string;
2702
+ id?: string;
2703
+ label?: string;
2704
+ sort_order?: number;
2705
+ updated_at?: string;
2706
+ };
2707
+ Relationships: [];
2708
+ };
2547
2709
  extras: {
2548
2710
  Row: {
2549
2711
  category: string;
2550
2712
  created_at: string;
2551
2713
  exact_article_id: string | null;
2552
2714
  id: string;
2715
+ image_url: string | null;
2553
2716
  is_active: boolean;
2554
2717
  name: string;
2555
2718
  price: number;
@@ -2560,6 +2723,7 @@ export type Database = {
2560
2723
  created_at?: string;
2561
2724
  exact_article_id?: string | null;
2562
2725
  id?: string;
2726
+ image_url?: string | null;
2563
2727
  is_active?: boolean;
2564
2728
  name: string;
2565
2729
  price?: number;
@@ -2570,6 +2734,7 @@ export type Database = {
2570
2734
  created_at?: string;
2571
2735
  exact_article_id?: string | null;
2572
2736
  id?: string;
2737
+ image_url?: string | null;
2573
2738
  is_active?: boolean;
2574
2739
  name?: string;
2575
2740
  price?: number;
@@ -2667,43 +2832,37 @@ export type Database = {
2667
2832
  };
2668
2833
  Relationships: [];
2669
2834
  };
2670
- floriday_carriers_cache: {
2835
+ floriday_additional_services_cache: {
2671
2836
  Row: {
2672
- connection_id: string | null;
2673
- created_at: string;
2837
+ connection_id: string;
2674
2838
  data: Json;
2675
2839
  fetched_at: string;
2676
- gln_code: string | null;
2677
- id: string;
2678
- name: string | null;
2679
- organization_id: string;
2840
+ floriday_id: string;
2841
+ is_deleted: boolean;
2842
+ sequence_number: number;
2680
2843
  updated_at: string;
2681
2844
  };
2682
2845
  Insert: {
2683
- connection_id?: string | null;
2684
- created_at?: string;
2846
+ connection_id: string;
2685
2847
  data: Json;
2686
2848
  fetched_at?: string;
2687
- gln_code?: string | null;
2688
- id?: string;
2689
- name?: string | null;
2690
- organization_id: string;
2849
+ floriday_id: string;
2850
+ is_deleted?: boolean;
2851
+ sequence_number?: number;
2691
2852
  updated_at?: string;
2692
2853
  };
2693
2854
  Update: {
2694
- connection_id?: string | null;
2695
- created_at?: string;
2855
+ connection_id?: string;
2696
2856
  data?: Json;
2697
2857
  fetched_at?: string;
2698
- gln_code?: string | null;
2699
- id?: string;
2700
- name?: string | null;
2701
- organization_id?: string;
2858
+ floriday_id?: string;
2859
+ is_deleted?: boolean;
2860
+ sequence_number?: number;
2702
2861
  updated_at?: string;
2703
2862
  };
2704
2863
  Relationships: [
2705
2864
  {
2706
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2865
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2707
2866
  columns: ["connection_id"];
2708
2867
  isOneToOne: false;
2709
2868
  referencedRelation: "floriday_connections";
@@ -2711,100 +2870,102 @@ export type Database = {
2711
2870
  }
2712
2871
  ];
2713
2872
  };
2714
- floriday_connections: {
2873
+ floriday_agreement_calloffs_cache: {
2715
2874
  Row: {
2716
- access_token: string | null;
2717
- api_key: string;
2718
- client_id: string;
2719
- client_secret: string;
2720
- created_at: string;
2721
- customers_endpoint: string | null;
2722
- environment: string;
2723
- gln_code: string | null;
2875
+ agreement_id: string | null;
2876
+ connection_id: string;
2877
+ data: Json;
2878
+ delivery_date: string | null;
2879
+ fetched_at: string;
2880
+ floriday_id: string;
2724
2881
  id: string;
2725
- is_active: boolean;
2726
- label: string;
2727
- organization_name: string | null;
2728
- preferred_warehouse_id: string | null;
2729
- preferred_warehouse_name: string | null;
2730
- token_expires_at: string | null;
2882
+ is_deleted: boolean;
2883
+ sequence_number: number;
2884
+ status: string | null;
2731
2885
  updated_at: string;
2732
2886
  };
2733
2887
  Insert: {
2734
- access_token?: string | null;
2735
- api_key: string;
2736
- client_id: string;
2737
- client_secret: string;
2738
- created_at?: string;
2739
- customers_endpoint?: string | null;
2740
- environment: string;
2741
- gln_code?: string | null;
2888
+ agreement_id?: string | null;
2889
+ connection_id: string;
2890
+ data?: Json;
2891
+ delivery_date?: string | null;
2892
+ fetched_at?: string;
2893
+ floriday_id: string;
2742
2894
  id?: string;
2743
- is_active?: boolean;
2744
- label?: string;
2745
- organization_name?: string | null;
2746
- preferred_warehouse_id?: string | null;
2747
- preferred_warehouse_name?: string | null;
2748
- token_expires_at?: string | null;
2895
+ is_deleted?: boolean;
2896
+ sequence_number?: number;
2897
+ status?: string | null;
2749
2898
  updated_at?: string;
2750
2899
  };
2751
2900
  Update: {
2752
- access_token?: string | null;
2753
- api_key?: string;
2754
- client_id?: string;
2755
- client_secret?: string;
2756
- created_at?: string;
2757
- customers_endpoint?: string | null;
2758
- environment?: string;
2759
- gln_code?: string | null;
2901
+ agreement_id?: string | null;
2902
+ connection_id?: string;
2903
+ data?: Json;
2904
+ delivery_date?: string | null;
2905
+ fetched_at?: string;
2906
+ floriday_id?: string;
2760
2907
  id?: string;
2761
- is_active?: boolean;
2762
- label?: string;
2763
- organization_name?: string | null;
2764
- preferred_warehouse_id?: string | null;
2765
- preferred_warehouse_name?: string | null;
2766
- token_expires_at?: string | null;
2908
+ is_deleted?: boolean;
2909
+ sequence_number?: number;
2910
+ status?: string | null;
2767
2911
  updated_at?: string;
2768
2912
  };
2769
- Relationships: [];
2913
+ Relationships: [
2914
+ {
2915
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2916
+ columns: ["connection_id"];
2917
+ isOneToOne: false;
2918
+ referencedRelation: "floriday_connections";
2919
+ referencedColumns: ["id"];
2920
+ }
2921
+ ];
2770
2922
  };
2771
- floriday_connections_cache: {
2923
+ floriday_agreements_cache: {
2772
2924
  Row: {
2773
2925
  buyer_organization_id: string | null;
2774
- buyer_organization_name: string | null;
2775
2926
  connection_id: string;
2776
2927
  data: Json;
2777
- floriday_connection_id: string;
2928
+ fetched_at: string;
2929
+ floriday_id: string;
2930
+ id: string;
2778
2931
  is_deleted: boolean;
2779
2932
  sequence_number: number;
2780
2933
  status: string | null;
2781
- synced_at: string;
2934
+ updated_at: string;
2935
+ valid_from: string | null;
2936
+ valid_until: string | null;
2782
2937
  };
2783
2938
  Insert: {
2784
2939
  buyer_organization_id?: string | null;
2785
- buyer_organization_name?: string | null;
2786
2940
  connection_id: string;
2787
- data: Json;
2788
- floriday_connection_id: string;
2941
+ data?: Json;
2942
+ fetched_at?: string;
2943
+ floriday_id: string;
2944
+ id?: string;
2789
2945
  is_deleted?: boolean;
2790
- sequence_number: number;
2946
+ sequence_number?: number;
2791
2947
  status?: string | null;
2792
- synced_at?: string;
2948
+ updated_at?: string;
2949
+ valid_from?: string | null;
2950
+ valid_until?: string | null;
2793
2951
  };
2794
2952
  Update: {
2795
2953
  buyer_organization_id?: string | null;
2796
- buyer_organization_name?: string | null;
2797
2954
  connection_id?: string;
2798
2955
  data?: Json;
2799
- floriday_connection_id?: string;
2956
+ fetched_at?: string;
2957
+ floriday_id?: string;
2958
+ id?: string;
2800
2959
  is_deleted?: boolean;
2801
2960
  sequence_number?: number;
2802
2961
  status?: string | null;
2803
- synced_at?: string;
2962
+ updated_at?: string;
2963
+ valid_from?: string | null;
2964
+ valid_until?: string | null;
2804
2965
  };
2805
2966
  Relationships: [
2806
2967
  {
2807
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2968
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2808
2969
  columns: ["connection_id"];
2809
2970
  isOneToOne: false;
2810
2971
  referencedRelation: "floriday_connections";
@@ -2812,28 +2973,37 @@ export type Database = {
2812
2973
  }
2813
2974
  ];
2814
2975
  };
2815
- floriday_customers_cache: {
2976
+ floriday_auction_letters_cache: {
2816
2977
  Row: {
2817
- connection_id: string | null;
2818
- data: Json;
2978
+ auction_letter_code: string;
2979
+ clock_supply_id: string;
2980
+ connection_id: string;
2981
+ content_type: string;
2819
2982
  fetched_at: string;
2820
- organization_id: string;
2983
+ id: string;
2984
+ storage_path: string;
2821
2985
  };
2822
2986
  Insert: {
2823
- connection_id?: string | null;
2824
- data?: Json;
2987
+ auction_letter_code: string;
2988
+ clock_supply_id: string;
2989
+ connection_id: string;
2990
+ content_type?: string;
2825
2991
  fetched_at?: string;
2826
- organization_id: string;
2992
+ id?: string;
2993
+ storage_path: string;
2827
2994
  };
2828
2995
  Update: {
2829
- connection_id?: string | null;
2830
- data?: Json;
2996
+ auction_letter_code?: string;
2997
+ clock_supply_id?: string;
2998
+ connection_id?: string;
2999
+ content_type?: string;
2831
3000
  fetched_at?: string;
2832
- organization_id?: string;
3001
+ id?: string;
3002
+ storage_path?: string;
2833
3003
  };
2834
3004
  Relationships: [
2835
3005
  {
2836
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3006
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2837
3007
  columns: ["connection_id"];
2838
3008
  isOneToOne: false;
2839
3009
  referencedRelation: "floriday_connections";
@@ -2841,62 +3011,1171 @@ export type Database = {
2841
3011
  }
2842
3012
  ];
2843
3013
  };
2844
- floriday_network_cache: {
3014
+ floriday_base_items_cache: {
2845
3015
  Row: {
2846
- city: string | null;
2847
3016
  connection_id: string;
2848
- country: string | null;
2849
3017
  data: Json;
2850
3018
  fetched_at: string;
2851
- gln: string | null;
2852
- organization_id: string;
2853
- organization_name: string | null;
3019
+ floriday_id: string;
3020
+ is_deleted: boolean;
3021
+ sequence_number: number;
3022
+ updated_at: string;
2854
3023
  };
2855
3024
  Insert: {
3025
+ connection_id: string;
3026
+ data: Json;
3027
+ fetched_at?: string;
3028
+ floriday_id: string;
3029
+ is_deleted?: boolean;
3030
+ sequence_number?: number;
3031
+ updated_at?: string;
3032
+ };
3033
+ Update: {
3034
+ connection_id?: string;
3035
+ data?: Json;
3036
+ fetched_at?: string;
3037
+ floriday_id?: string;
3038
+ is_deleted?: boolean;
3039
+ sequence_number?: number;
3040
+ updated_at?: string;
3041
+ };
3042
+ Relationships: [
3043
+ {
3044
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3045
+ columns: ["connection_id"];
3046
+ isOneToOne: false;
3047
+ referencedRelation: "floriday_connections";
3048
+ referencedColumns: ["id"];
3049
+ }
3050
+ ];
3051
+ };
3052
+ floriday_blanket_orders_cache: {
3053
+ Row: {
3054
+ connection_id: string;
3055
+ contract_id: string | null;
3056
+ created_at: string;
3057
+ data: Json;
3058
+ fetched_at: string;
3059
+ floriday_id: string;
3060
+ id: string;
3061
+ is_deleted: boolean;
3062
+ sequence_number: number;
3063
+ updated_at: string;
3064
+ };
3065
+ Insert: {
3066
+ connection_id: string;
3067
+ contract_id?: string | null;
3068
+ created_at?: string;
3069
+ data: Json;
3070
+ fetched_at?: string;
3071
+ floriday_id: string;
3072
+ id?: string;
3073
+ is_deleted?: boolean;
3074
+ sequence_number?: number;
3075
+ updated_at?: string;
3076
+ };
3077
+ Update: {
3078
+ connection_id?: string;
3079
+ contract_id?: string | null;
3080
+ created_at?: string;
3081
+ data?: Json;
3082
+ fetched_at?: string;
3083
+ floriday_id?: string;
3084
+ id?: string;
3085
+ is_deleted?: boolean;
3086
+ sequence_number?: number;
3087
+ updated_at?: string;
3088
+ };
3089
+ Relationships: [
3090
+ {
3091
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3092
+ columns: ["connection_id"];
3093
+ isOneToOne: false;
3094
+ referencedRelation: "floriday_connections";
3095
+ referencedColumns: ["id"];
3096
+ }
3097
+ ];
3098
+ };
3099
+ floriday_carriers_cache: {
3100
+ Row: {
3101
+ connection_id: string | null;
3102
+ created_at: string;
3103
+ data: Json;
3104
+ fetched_at: string;
3105
+ gln_code: string | null;
3106
+ id: string;
3107
+ name: string | null;
3108
+ organization_id: string;
3109
+ updated_at: string;
3110
+ };
3111
+ Insert: {
3112
+ connection_id?: string | null;
3113
+ created_at?: string;
3114
+ data: Json;
3115
+ fetched_at?: string;
3116
+ gln_code?: string | null;
3117
+ id?: string;
3118
+ name?: string | null;
3119
+ organization_id: string;
3120
+ updated_at?: string;
3121
+ };
3122
+ Update: {
3123
+ connection_id?: string | null;
3124
+ created_at?: string;
3125
+ data?: Json;
3126
+ fetched_at?: string;
3127
+ gln_code?: string | null;
3128
+ id?: string;
3129
+ name?: string | null;
3130
+ organization_id?: string;
3131
+ updated_at?: string;
3132
+ };
3133
+ Relationships: [
3134
+ {
3135
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3136
+ columns: ["connection_id"];
3137
+ isOneToOne: false;
3138
+ referencedRelation: "floriday_connections";
3139
+ referencedColumns: ["id"];
3140
+ }
3141
+ ];
3142
+ };
3143
+ floriday_clock_presales_cache: {
3144
+ Row: {
3145
+ buyer_organization_id: string | null;
3146
+ clock_supply_id: string | null;
3147
+ connection_id: string;
3148
+ data: Json;
3149
+ fetched_at: string;
3150
+ floriday_id: string;
3151
+ id: string;
3152
+ is_deleted: boolean;
3153
+ sequence_number: number;
3154
+ updated_at: string;
3155
+ };
3156
+ Insert: {
3157
+ buyer_organization_id?: string | null;
3158
+ clock_supply_id?: string | null;
3159
+ connection_id: string;
3160
+ data?: Json;
3161
+ fetched_at?: string;
3162
+ floriday_id: string;
3163
+ id?: string;
3164
+ is_deleted?: boolean;
3165
+ sequence_number?: number;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ buyer_organization_id?: string | null;
3170
+ clock_supply_id?: string | null;
3171
+ connection_id?: string;
3172
+ data?: Json;
3173
+ fetched_at?: string;
3174
+ floriday_id?: string;
3175
+ id?: string;
3176
+ is_deleted?: boolean;
3177
+ sequence_number?: number;
3178
+ updated_at?: string;
3179
+ };
3180
+ Relationships: [
3181
+ {
3182
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3183
+ columns: ["connection_id"];
3184
+ isOneToOne: false;
3185
+ referencedRelation: "floriday_connections";
3186
+ referencedColumns: ["id"];
3187
+ }
3188
+ ];
3189
+ };
3190
+ floriday_clock_supplies_cache: {
3191
+ Row: {
3192
+ auction_date: string | null;
3193
+ connection_id: string;
3194
+ data: Json;
3195
+ fetched_at: string;
3196
+ floriday_id: string;
3197
+ id: string;
3198
+ is_deleted: boolean;
3199
+ sequence_number: number;
3200
+ status: string | null;
3201
+ trade_item_id: string | null;
3202
+ updated_at: string;
3203
+ };
3204
+ Insert: {
3205
+ auction_date?: string | null;
3206
+ connection_id: string;
3207
+ data?: Json;
3208
+ fetched_at?: string;
3209
+ floriday_id: string;
3210
+ id?: string;
3211
+ is_deleted?: boolean;
3212
+ sequence_number?: number;
3213
+ status?: string | null;
3214
+ trade_item_id?: string | null;
3215
+ updated_at?: string;
3216
+ };
3217
+ Update: {
3218
+ auction_date?: string | null;
3219
+ connection_id?: string;
3220
+ data?: Json;
3221
+ fetched_at?: string;
3222
+ floriday_id?: string;
3223
+ id?: string;
3224
+ is_deleted?: boolean;
3225
+ sequence_number?: number;
3226
+ status?: string | null;
3227
+ trade_item_id?: string | null;
3228
+ updated_at?: string;
3229
+ };
3230
+ Relationships: [
3231
+ {
3232
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3233
+ columns: ["connection_id"];
3234
+ isOneToOne: false;
3235
+ referencedRelation: "floriday_connections";
3236
+ referencedColumns: ["id"];
3237
+ }
3238
+ ];
3239
+ };
3240
+ floriday_code_lists_cache: {
3241
+ Row: {
3242
+ code: string;
3243
+ environment: string;
3244
+ label: string | null;
3245
+ list_name: string;
3246
+ payload: Json | null;
3247
+ updated_at: string;
3248
+ };
3249
+ Insert: {
3250
+ code: string;
3251
+ environment: string;
3252
+ label?: string | null;
3253
+ list_name: string;
3254
+ payload?: Json | null;
3255
+ updated_at?: string;
3256
+ };
3257
+ Update: {
3258
+ code?: string;
3259
+ environment?: string;
3260
+ label?: string | null;
3261
+ list_name?: string;
3262
+ payload?: Json | null;
3263
+ updated_at?: string;
3264
+ };
3265
+ Relationships: [];
3266
+ };
3267
+ floriday_collections_cache: {
3268
+ Row: {
3269
+ connection_id: string;
3270
+ data: Json;
3271
+ fetched_at: string;
3272
+ floriday_id: string;
3273
+ is_deleted: boolean;
3274
+ sequence_number: number;
3275
+ updated_at: string;
3276
+ };
3277
+ Insert: {
3278
+ connection_id: string;
3279
+ data: Json;
3280
+ fetched_at?: string;
3281
+ floriday_id: string;
3282
+ is_deleted?: boolean;
3283
+ sequence_number?: number;
3284
+ updated_at?: string;
3285
+ };
3286
+ Update: {
3287
+ connection_id?: string;
3288
+ data?: Json;
3289
+ fetched_at?: string;
3290
+ floriday_id?: string;
3291
+ is_deleted?: boolean;
3292
+ sequence_number?: number;
3293
+ updated_at?: string;
3294
+ };
3295
+ Relationships: [
3296
+ {
3297
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3298
+ columns: ["connection_id"];
3299
+ isOneToOne: false;
3300
+ referencedRelation: "floriday_connections";
3301
+ referencedColumns: ["id"];
3302
+ }
3303
+ ];
3304
+ };
3305
+ floriday_commercial_service_types_cache: {
3306
+ Row: {
3307
+ connection_id: string;
3308
+ data: Json;
3309
+ fetched_at: string;
3310
+ floriday_id: string;
3311
+ is_deleted: boolean;
3312
+ sequence_number: number;
3313
+ updated_at: string;
3314
+ };
3315
+ Insert: {
3316
+ connection_id: string;
3317
+ data: Json;
3318
+ fetched_at?: string;
3319
+ floriday_id: string;
3320
+ is_deleted?: boolean;
3321
+ sequence_number?: number;
3322
+ updated_at?: string;
3323
+ };
3324
+ Update: {
3325
+ connection_id?: string;
3326
+ data?: Json;
3327
+ fetched_at?: string;
3328
+ floriday_id?: string;
3329
+ is_deleted?: boolean;
3330
+ sequence_number?: number;
3331
+ updated_at?: string;
3332
+ };
3333
+ Relationships: [
3334
+ {
3335
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3336
+ columns: ["connection_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "floriday_connections";
3339
+ referencedColumns: ["id"];
3340
+ }
3341
+ ];
3342
+ };
3343
+ floriday_connections: {
3344
+ Row: {
3345
+ access_token: string | null;
3346
+ api_key: string;
3347
+ client_id: string;
3348
+ client_secret: string;
3349
+ created_at: string;
3350
+ customers_endpoint: string | null;
3351
+ environment: string;
3352
+ gln_code: string | null;
3353
+ id: string;
3354
+ is_active: boolean;
3355
+ label: string;
3356
+ organization_name: string | null;
3357
+ preferred_warehouse_id: string | null;
3358
+ preferred_warehouse_name: string | null;
3359
+ token_expires_at: string | null;
3360
+ updated_at: string;
3361
+ };
3362
+ Insert: {
3363
+ access_token?: string | null;
3364
+ api_key: string;
3365
+ client_id: string;
3366
+ client_secret: string;
3367
+ created_at?: string;
3368
+ customers_endpoint?: string | null;
3369
+ environment: string;
3370
+ gln_code?: string | null;
3371
+ id?: string;
3372
+ is_active?: boolean;
3373
+ label?: string;
3374
+ organization_name?: string | null;
3375
+ preferred_warehouse_id?: string | null;
3376
+ preferred_warehouse_name?: string | null;
3377
+ token_expires_at?: string | null;
3378
+ updated_at?: string;
3379
+ };
3380
+ Update: {
3381
+ access_token?: string | null;
3382
+ api_key?: string;
3383
+ client_id?: string;
3384
+ client_secret?: string;
3385
+ created_at?: string;
3386
+ customers_endpoint?: string | null;
3387
+ environment?: string;
3388
+ gln_code?: string | null;
3389
+ id?: string;
3390
+ is_active?: boolean;
3391
+ label?: string;
3392
+ organization_name?: string | null;
3393
+ preferred_warehouse_id?: string | null;
3394
+ preferred_warehouse_name?: string | null;
3395
+ token_expires_at?: string | null;
3396
+ updated_at?: string;
3397
+ };
3398
+ Relationships: [];
3399
+ };
3400
+ floriday_connections_cache: {
3401
+ Row: {
3402
+ buyer_organization_id: string | null;
3403
+ buyer_organization_name: string | null;
3404
+ connection_id: string;
3405
+ data: Json;
3406
+ floriday_connection_id: string;
3407
+ is_deleted: boolean;
3408
+ sequence_number: number;
3409
+ status: string | null;
3410
+ synced_at: string;
3411
+ };
3412
+ Insert: {
3413
+ buyer_organization_id?: string | null;
3414
+ buyer_organization_name?: string | null;
3415
+ connection_id: string;
3416
+ data: Json;
3417
+ floriday_connection_id: string;
3418
+ is_deleted?: boolean;
3419
+ sequence_number: number;
3420
+ status?: string | null;
3421
+ synced_at?: string;
3422
+ };
3423
+ Update: {
3424
+ buyer_organization_id?: string | null;
3425
+ buyer_organization_name?: string | null;
3426
+ connection_id?: string;
3427
+ data?: Json;
3428
+ floriday_connection_id?: string;
3429
+ is_deleted?: boolean;
3430
+ sequence_number?: number;
3431
+ status?: string | null;
3432
+ synced_at?: string;
3433
+ };
3434
+ Relationships: [
3435
+ {
3436
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3437
+ columns: ["connection_id"];
3438
+ isOneToOne: false;
3439
+ referencedRelation: "floriday_connections";
3440
+ referencedColumns: ["id"];
3441
+ }
3442
+ ];
3443
+ };
3444
+ floriday_contract_trade_item_groups_cache: {
3445
+ Row: {
3446
+ connection_id: string;
3447
+ data: Json;
3448
+ fetched_at: string;
3449
+ floriday_id: string;
3450
+ is_deleted: boolean;
3451
+ sequence_number: number;
3452
+ updated_at: string;
3453
+ };
3454
+ Insert: {
3455
+ connection_id: string;
3456
+ data: Json;
3457
+ fetched_at?: string;
3458
+ floriday_id: string;
3459
+ is_deleted?: boolean;
3460
+ sequence_number?: number;
3461
+ updated_at?: string;
3462
+ };
3463
+ Update: {
3464
+ connection_id?: string;
3465
+ data?: Json;
3466
+ fetched_at?: string;
3467
+ floriday_id?: string;
3468
+ is_deleted?: boolean;
3469
+ sequence_number?: number;
3470
+ updated_at?: string;
3471
+ };
3472
+ Relationships: [
3473
+ {
3474
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3475
+ columns: ["connection_id"];
3476
+ isOneToOne: false;
3477
+ referencedRelation: "floriday_connections";
3478
+ referencedColumns: ["id"];
3479
+ }
3480
+ ];
3481
+ };
3482
+ floriday_contracts_cache: {
3483
+ Row: {
3484
+ connection_id: string;
3485
+ created_at: string;
3486
+ data: Json;
3487
+ fetched_at: string;
3488
+ floriday_id: string;
3489
+ id: string;
3490
+ is_deleted: boolean;
3491
+ sequence_number: number;
3492
+ updated_at: string;
3493
+ };
3494
+ Insert: {
3495
+ connection_id: string;
3496
+ created_at?: string;
3497
+ data: Json;
3498
+ fetched_at?: string;
3499
+ floriday_id: string;
3500
+ id?: string;
3501
+ is_deleted?: boolean;
3502
+ sequence_number?: number;
3503
+ updated_at?: string;
3504
+ };
3505
+ Update: {
3506
+ connection_id?: string;
3507
+ created_at?: string;
3508
+ data?: Json;
3509
+ fetched_at?: string;
3510
+ floriday_id?: string;
3511
+ id?: string;
3512
+ is_deleted?: boolean;
3513
+ sequence_number?: number;
3514
+ updated_at?: string;
3515
+ };
3516
+ Relationships: [
3517
+ {
3518
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3519
+ columns: ["connection_id"];
3520
+ isOneToOne: false;
3521
+ referencedRelation: "floriday_connections";
3522
+ referencedColumns: ["id"];
3523
+ }
3524
+ ];
3525
+ };
3526
+ floriday_customer_sticker_pdfs_cache: {
3527
+ Row: {
3528
+ byte_size: number | null;
3529
+ connection_id: string;
3530
+ content_type: string;
3531
+ created_at: string;
3532
+ fetched_at: string;
3533
+ id: string;
3534
+ sticker_id: string;
3535
+ storage_path: string;
3536
+ };
3537
+ Insert: {
3538
+ byte_size?: number | null;
3539
+ connection_id: string;
3540
+ content_type?: string;
3541
+ created_at?: string;
3542
+ fetched_at?: string;
3543
+ id?: string;
3544
+ sticker_id: string;
3545
+ storage_path: string;
3546
+ };
3547
+ Update: {
3548
+ byte_size?: number | null;
3549
+ connection_id?: string;
3550
+ content_type?: string;
3551
+ created_at?: string;
3552
+ fetched_at?: string;
3553
+ id?: string;
3554
+ sticker_id?: string;
3555
+ storage_path?: string;
3556
+ };
3557
+ Relationships: [
3558
+ {
3559
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3560
+ columns: ["connection_id"];
3561
+ isOneToOne: false;
3562
+ referencedRelation: "floriday_connections";
3563
+ referencedColumns: ["id"];
3564
+ }
3565
+ ];
3566
+ };
3567
+ floriday_customer_stickers_cache: {
3568
+ Row: {
3569
+ connection_id: string;
3570
+ created_at: string;
3571
+ data: Json;
3572
+ fetched_at: string;
3573
+ floriday_id: string;
3574
+ id: string;
3575
+ is_deleted: boolean;
3576
+ quantity: number | null;
3577
+ sales_order_id: string | null;
3578
+ sequence_number: number;
3579
+ status: string | null;
3580
+ trade_item_id: string | null;
3581
+ updated_at: string;
3582
+ };
3583
+ Insert: {
3584
+ connection_id: string;
3585
+ created_at?: string;
3586
+ data?: Json;
3587
+ fetched_at?: string;
3588
+ floriday_id: string;
3589
+ id?: string;
3590
+ is_deleted?: boolean;
3591
+ quantity?: number | null;
3592
+ sales_order_id?: string | null;
3593
+ sequence_number?: number;
3594
+ status?: string | null;
3595
+ trade_item_id?: string | null;
3596
+ updated_at?: string;
3597
+ };
3598
+ Update: {
3599
+ connection_id?: string;
3600
+ created_at?: string;
3601
+ data?: Json;
3602
+ fetched_at?: string;
3603
+ floriday_id?: string;
3604
+ id?: string;
3605
+ is_deleted?: boolean;
3606
+ quantity?: number | null;
3607
+ sales_order_id?: string | null;
3608
+ sequence_number?: number;
3609
+ status?: string | null;
3610
+ trade_item_id?: string | null;
3611
+ updated_at?: string;
3612
+ };
3613
+ Relationships: [
3614
+ {
3615
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3616
+ columns: ["connection_id"];
3617
+ isOneToOne: false;
3618
+ referencedRelation: "floriday_connections";
3619
+ referencedColumns: ["id"];
3620
+ }
3621
+ ];
3622
+ };
3623
+ floriday_customers_cache: {
3624
+ Row: {
3625
+ connection_id: string | null;
3626
+ data: Json;
3627
+ fetched_at: string;
3628
+ gln_code: string | null;
3629
+ is_deleted: boolean;
3630
+ name: string | null;
3631
+ organization_id: string;
3632
+ sequence_number: number | null;
3633
+ };
3634
+ Insert: {
3635
+ connection_id?: string | null;
3636
+ data?: Json;
3637
+ fetched_at?: string;
3638
+ gln_code?: string | null;
3639
+ is_deleted?: boolean;
3640
+ name?: string | null;
3641
+ organization_id: string;
3642
+ sequence_number?: number | null;
3643
+ };
3644
+ Update: {
3645
+ connection_id?: string | null;
3646
+ data?: Json;
3647
+ fetched_at?: string;
3648
+ gln_code?: string | null;
3649
+ is_deleted?: boolean;
3650
+ name?: string | null;
3651
+ organization_id?: string;
3652
+ sequence_number?: number | null;
3653
+ };
3654
+ Relationships: [
3655
+ {
3656
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3657
+ columns: ["connection_id"];
3658
+ isOneToOne: false;
3659
+ referencedRelation: "floriday_connections";
3660
+ referencedColumns: ["id"];
3661
+ }
3662
+ ];
3663
+ };
3664
+ floriday_delivery_condition_sets_cache: {
3665
+ Row: {
3666
+ connection_id: string;
3667
+ data: Json;
3668
+ fetched_at: string;
3669
+ floriday_id: string;
3670
+ is_deleted: boolean;
3671
+ sequence_number: number;
3672
+ updated_at: string;
3673
+ };
3674
+ Insert: {
3675
+ connection_id: string;
3676
+ data: Json;
3677
+ fetched_at?: string;
3678
+ floriday_id: string;
3679
+ is_deleted?: boolean;
3680
+ sequence_number?: number;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ connection_id?: string;
3685
+ data?: Json;
3686
+ fetched_at?: string;
3687
+ floriday_id?: string;
3688
+ is_deleted?: boolean;
3689
+ sequence_number?: number;
3690
+ updated_at?: string;
3691
+ };
3692
+ Relationships: [
3693
+ {
3694
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3695
+ columns: ["connection_id"];
3696
+ isOneToOne: false;
3697
+ referencedRelation: "floriday_connections";
3698
+ referencedColumns: ["id"];
3699
+ }
3700
+ ];
3701
+ };
3702
+ floriday_delivery_locations_cache: {
3703
+ Row: {
3704
+ connection_id: string;
3705
+ data: Json;
3706
+ fetched_at: string;
3707
+ floriday_id: string;
3708
+ gln_code: string | null;
3709
+ id: string;
3710
+ is_deleted: boolean;
3711
+ name: string | null;
3712
+ organization_id: string | null;
3713
+ updated_at: string;
3714
+ };
3715
+ Insert: {
3716
+ connection_id: string;
3717
+ data?: Json;
3718
+ fetched_at?: string;
3719
+ floriday_id: string;
3720
+ gln_code?: string | null;
3721
+ id?: string;
3722
+ is_deleted?: boolean;
3723
+ name?: string | null;
3724
+ organization_id?: string | null;
3725
+ updated_at?: string;
3726
+ };
3727
+ Update: {
3728
+ connection_id?: string;
3729
+ data?: Json;
3730
+ fetched_at?: string;
3731
+ floriday_id?: string;
3732
+ gln_code?: string | null;
3733
+ id?: string;
3734
+ is_deleted?: boolean;
3735
+ name?: string | null;
3736
+ organization_id?: string | null;
3737
+ updated_at?: string;
3738
+ };
3739
+ Relationships: [
3740
+ {
3741
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3742
+ columns: ["connection_id"];
3743
+ isOneToOne: false;
3744
+ referencedRelation: "floriday_connections";
3745
+ referencedColumns: ["id"];
3746
+ }
3747
+ ];
3748
+ };
3749
+ floriday_delivery_orders_cache: {
3750
+ Row: {
3751
+ auction_date: string | null;
3752
+ connection_id: string;
3753
+ data: Json;
3754
+ destination_warehouse_id: string | null;
3755
+ fetched_at: string;
3756
+ floriday_id: string;
3757
+ id: string;
3758
+ is_deleted: boolean;
3759
+ sequence_number: number;
3760
+ status: string | null;
3761
+ trade_item_id: string | null;
3762
+ updated_at: string;
3763
+ };
3764
+ Insert: {
3765
+ auction_date?: string | null;
3766
+ connection_id: string;
3767
+ data?: Json;
3768
+ destination_warehouse_id?: string | null;
3769
+ fetched_at?: string;
3770
+ floriday_id: string;
3771
+ id?: string;
3772
+ is_deleted?: boolean;
3773
+ sequence_number?: number;
3774
+ status?: string | null;
3775
+ trade_item_id?: string | null;
3776
+ updated_at?: string;
3777
+ };
3778
+ Update: {
3779
+ auction_date?: string | null;
3780
+ connection_id?: string;
3781
+ data?: Json;
3782
+ destination_warehouse_id?: string | null;
3783
+ fetched_at?: string;
3784
+ floriday_id?: string;
3785
+ id?: string;
3786
+ is_deleted?: boolean;
3787
+ sequence_number?: number;
3788
+ status?: string | null;
3789
+ trade_item_id?: string | null;
3790
+ updated_at?: string;
3791
+ };
3792
+ Relationships: [
3793
+ {
3794
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3795
+ columns: ["connection_id"];
3796
+ isOneToOne: false;
3797
+ referencedRelation: "floriday_connections";
3798
+ referencedColumns: ["id"];
3799
+ }
3800
+ ];
3801
+ };
3802
+ floriday_fulfillment_orders_cache: {
3803
+ Row: {
3804
+ auction_date: string | null;
3805
+ connection_id: string;
3806
+ data: Json;
3807
+ delivery_order_id: string | null;
3808
+ despatch_warehouse_id: string | null;
3809
+ destination_warehouse_id: string | null;
3810
+ fetched_at: string;
3811
+ floriday_id: string;
3812
+ id: string;
3813
+ is_deleted: boolean | null;
3814
+ latest_delivery_at: string | null;
3815
+ load_carrier_type: string | null;
3816
+ one_label_only: boolean | null;
3817
+ sequence_number: number;
3818
+ status: string | null;
3819
+ };
3820
+ Insert: {
3821
+ auction_date?: string | null;
3822
+ connection_id: string;
3823
+ data: Json;
3824
+ delivery_order_id?: string | null;
3825
+ despatch_warehouse_id?: string | null;
3826
+ destination_warehouse_id?: string | null;
3827
+ fetched_at?: string;
3828
+ floriday_id: string;
3829
+ id?: string;
3830
+ is_deleted?: boolean | null;
3831
+ latest_delivery_at?: string | null;
3832
+ load_carrier_type?: string | null;
3833
+ one_label_only?: boolean | null;
3834
+ sequence_number?: number;
3835
+ status?: string | null;
3836
+ };
3837
+ Update: {
3838
+ auction_date?: string | null;
3839
+ connection_id?: string;
3840
+ data?: Json;
3841
+ delivery_order_id?: string | null;
3842
+ despatch_warehouse_id?: string | null;
3843
+ destination_warehouse_id?: string | null;
3844
+ fetched_at?: string;
3845
+ floriday_id?: string;
3846
+ id?: string;
3847
+ is_deleted?: boolean | null;
3848
+ latest_delivery_at?: string | null;
3849
+ load_carrier_type?: string | null;
3850
+ one_label_only?: boolean | null;
3851
+ sequence_number?: number;
3852
+ status?: string | null;
3853
+ };
3854
+ Relationships: [
3855
+ {
3856
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3857
+ columns: ["connection_id"];
3858
+ isOneToOne: false;
3859
+ referencedRelation: "floriday_connections";
3860
+ referencedColumns: ["id"];
3861
+ }
3862
+ ];
3863
+ };
3864
+ floriday_invoices_cache: {
3865
+ Row: {
3866
+ buyer_organization_id: string | null;
3867
+ connection_id: string;
3868
+ currency: string | null;
3869
+ data: Json;
3870
+ fetched_at: string;
3871
+ floriday_id: string;
3872
+ id: string;
3873
+ invoice_date: string | null;
3874
+ invoice_number: string | null;
3875
+ is_deleted: boolean;
3876
+ sequence_number: number;
3877
+ total_amount: number | null;
3878
+ updated_at: string;
3879
+ };
3880
+ Insert: {
3881
+ buyer_organization_id?: string | null;
3882
+ connection_id: string;
3883
+ currency?: string | null;
3884
+ data?: Json;
3885
+ fetched_at?: string;
3886
+ floriday_id: string;
3887
+ id?: string;
3888
+ invoice_date?: string | null;
3889
+ invoice_number?: string | null;
3890
+ is_deleted?: boolean;
3891
+ sequence_number?: number;
3892
+ total_amount?: number | null;
3893
+ updated_at?: string;
3894
+ };
3895
+ Update: {
3896
+ buyer_organization_id?: string | null;
3897
+ connection_id?: string;
3898
+ currency?: string | null;
3899
+ data?: Json;
3900
+ fetched_at?: string;
3901
+ floriday_id?: string;
3902
+ id?: string;
3903
+ invoice_date?: string | null;
3904
+ invoice_number?: string | null;
3905
+ is_deleted?: boolean;
3906
+ sequence_number?: number;
3907
+ total_amount?: number | null;
3908
+ updated_at?: string;
3909
+ };
3910
+ Relationships: [
3911
+ {
3912
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3913
+ columns: ["connection_id"];
3914
+ isOneToOne: false;
3915
+ referencedRelation: "floriday_connections";
3916
+ referencedColumns: ["id"];
3917
+ }
3918
+ ];
3919
+ };
3920
+ floriday_logistic_labels_cache: {
3921
+ Row: {
3922
+ byte_size: number | null;
3923
+ connection_id: string;
3924
+ content_type: string;
3925
+ fetched_at: string;
3926
+ fulfillment_order_id: string;
3927
+ id: string;
3928
+ logistic_label_code: string;
3929
+ storage_path: string;
3930
+ };
3931
+ Insert: {
3932
+ byte_size?: number | null;
3933
+ connection_id: string;
3934
+ content_type?: string;
3935
+ fetched_at?: string;
3936
+ fulfillment_order_id: string;
3937
+ id?: string;
3938
+ logistic_label_code: string;
3939
+ storage_path: string;
3940
+ };
3941
+ Update: {
3942
+ byte_size?: number | null;
3943
+ connection_id?: string;
3944
+ content_type?: string;
3945
+ fetched_at?: string;
3946
+ fulfillment_order_id?: string;
3947
+ id?: string;
3948
+ logistic_label_code?: string;
3949
+ storage_path?: string;
3950
+ };
3951
+ Relationships: [
3952
+ {
3953
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3954
+ columns: ["connection_id"];
3955
+ isOneToOne: false;
3956
+ referencedRelation: "floriday_connections";
3957
+ referencedColumns: ["id"];
3958
+ }
3959
+ ];
3960
+ };
3961
+ floriday_network_cache: {
3962
+ Row: {
3963
+ city: string | null;
3964
+ connection_id: string;
3965
+ country: string | null;
3966
+ data: Json;
3967
+ fetched_at: string;
3968
+ gln: string | null;
3969
+ organization_id: string;
3970
+ organization_name: string | null;
3971
+ };
3972
+ Insert: {
3973
+ city?: string | null;
3974
+ connection_id: string;
3975
+ country?: string | null;
3976
+ data?: Json;
3977
+ fetched_at?: string;
3978
+ gln?: string | null;
3979
+ organization_id: string;
3980
+ organization_name?: string | null;
3981
+ };
3982
+ Update: {
2856
3983
  city?: string | null;
3984
+ connection_id?: string;
3985
+ country?: string | null;
3986
+ data?: Json;
3987
+ fetched_at?: string;
3988
+ gln?: string | null;
3989
+ organization_id?: string;
3990
+ organization_name?: string | null;
3991
+ };
3992
+ Relationships: [];
3993
+ };
3994
+ floriday_network_sync_state: {
3995
+ Row: {
3996
+ connection_id: string;
3997
+ last_error: string | null;
3998
+ last_sequence_number: number;
3999
+ last_synced_at: string | null;
4000
+ updated_at: string;
4001
+ };
4002
+ Insert: {
4003
+ connection_id: string;
4004
+ last_error?: string | null;
4005
+ last_sequence_number?: number;
4006
+ last_synced_at?: string | null;
4007
+ updated_at?: string;
4008
+ };
4009
+ Update: {
4010
+ connection_id?: string;
4011
+ last_error?: string | null;
4012
+ last_sequence_number?: number;
4013
+ last_synced_at?: string | null;
4014
+ updated_at?: string;
4015
+ };
4016
+ Relationships: [];
4017
+ };
4018
+ floriday_order_number_map: {
4019
+ Row: {
4020
+ created_at: string;
4021
+ floriday_id: string;
4022
+ order_number: string;
4023
+ };
4024
+ Insert: {
4025
+ created_at?: string;
4026
+ floriday_id: string;
4027
+ order_number: string;
4028
+ };
4029
+ Update: {
4030
+ created_at?: string;
4031
+ floriday_id?: string;
4032
+ order_number?: string;
4033
+ };
4034
+ Relationships: [];
4035
+ };
4036
+ floriday_packings_cache: {
4037
+ Row: {
4038
+ connection_id: string;
4039
+ data: Json;
4040
+ fetched_at: string;
4041
+ floriday_id: string;
4042
+ id: string;
4043
+ is_deleted: boolean;
4044
+ sequence_number: number;
4045
+ updated_at: string;
4046
+ };
4047
+ Insert: {
4048
+ connection_id: string;
4049
+ data?: Json;
4050
+ fetched_at?: string;
4051
+ floriday_id: string;
4052
+ id?: string;
4053
+ is_deleted?: boolean;
4054
+ sequence_number?: number;
4055
+ updated_at?: string;
4056
+ };
4057
+ Update: {
4058
+ connection_id?: string;
4059
+ data?: Json;
4060
+ fetched_at?: string;
4061
+ floriday_id?: string;
4062
+ id?: string;
4063
+ is_deleted?: boolean;
4064
+ sequence_number?: number;
4065
+ updated_at?: string;
4066
+ };
4067
+ Relationships: [
4068
+ {
4069
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
4070
+ columns: ["connection_id"];
4071
+ isOneToOne: false;
4072
+ referencedRelation: "floriday_connections";
4073
+ referencedColumns: ["id"];
4074
+ }
4075
+ ];
4076
+ };
4077
+ floriday_price_groups_cache: {
4078
+ Row: {
2857
4079
  connection_id: string;
2858
- country?: string | null;
2859
- data?: Json;
4080
+ data: Json;
4081
+ fetched_at: string;
4082
+ floriday_id: string;
4083
+ is_deleted: boolean;
4084
+ sequence_number: number;
4085
+ updated_at: string;
4086
+ };
4087
+ Insert: {
4088
+ connection_id: string;
4089
+ data: Json;
2860
4090
  fetched_at?: string;
2861
- gln?: string | null;
2862
- organization_id: string;
2863
- organization_name?: string | null;
4091
+ floriday_id: string;
4092
+ is_deleted?: boolean;
4093
+ sequence_number?: number;
4094
+ updated_at?: string;
2864
4095
  };
2865
4096
  Update: {
2866
- city?: string | null;
2867
4097
  connection_id?: string;
2868
- country?: string | null;
2869
4098
  data?: Json;
2870
4099
  fetched_at?: string;
2871
- gln?: string | null;
2872
- organization_id?: string;
2873
- organization_name?: string | null;
4100
+ floriday_id?: string;
4101
+ is_deleted?: boolean;
4102
+ sequence_number?: number;
4103
+ updated_at?: string;
4104
+ };
4105
+ Relationships: [
4106
+ {
4107
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
4108
+ columns: ["connection_id"];
4109
+ isOneToOne: false;
4110
+ referencedRelation: "floriday_connections";
4111
+ referencedColumns: ["id"];
4112
+ }
4113
+ ];
4114
+ };
4115
+ floriday_resource_schemas: {
4116
+ Row: {
4117
+ enums: Json;
4118
+ fetched_at: string;
4119
+ resource: string;
4120
+ schema: Json;
4121
+ source_url: string | null;
4122
+ version: string;
4123
+ };
4124
+ Insert: {
4125
+ enums?: Json;
4126
+ fetched_at?: string;
4127
+ resource: string;
4128
+ schema: Json;
4129
+ source_url?: string | null;
4130
+ version: string;
4131
+ };
4132
+ Update: {
4133
+ enums?: Json;
4134
+ fetched_at?: string;
4135
+ resource?: string;
4136
+ schema?: Json;
4137
+ source_url?: string | null;
4138
+ version?: string;
2874
4139
  };
2875
4140
  Relationships: [];
2876
4141
  };
2877
- floriday_network_sync_state: {
4142
+ floriday_sales_strategies_cache: {
2878
4143
  Row: {
2879
4144
  connection_id: string;
2880
- last_error: string | null;
2881
- last_sequence_number: number;
2882
- last_synced_at: string | null;
4145
+ data: Json;
4146
+ fetched_at: string;
4147
+ floriday_id: string;
4148
+ is_deleted: boolean;
4149
+ sequence_number: number;
2883
4150
  updated_at: string;
2884
4151
  };
2885
4152
  Insert: {
2886
4153
  connection_id: string;
2887
- last_error?: string | null;
2888
- last_sequence_number?: number;
2889
- last_synced_at?: string | null;
4154
+ data: Json;
4155
+ fetched_at?: string;
4156
+ floriday_id: string;
4157
+ is_deleted?: boolean;
4158
+ sequence_number?: number;
2890
4159
  updated_at?: string;
2891
4160
  };
2892
4161
  Update: {
2893
4162
  connection_id?: string;
2894
- last_error?: string | null;
2895
- last_sequence_number?: number;
2896
- last_synced_at?: string | null;
4163
+ data?: Json;
4164
+ fetched_at?: string;
4165
+ floriday_id?: string;
4166
+ is_deleted?: boolean;
4167
+ sequence_number?: number;
2897
4168
  updated_at?: string;
2898
4169
  };
2899
- Relationships: [];
4170
+ Relationships: [
4171
+ {
4172
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4173
+ columns: ["connection_id"];
4174
+ isOneToOne: false;
4175
+ referencedRelation: "floriday_connections";
4176
+ referencedColumns: ["id"];
4177
+ }
4178
+ ];
2900
4179
  };
2901
4180
  floriday_salesorders_cache: {
2902
4181
  Row: {
@@ -2965,7 +4244,9 @@ export type Database = {
2965
4244
  connection_id: string;
2966
4245
  entity_type: string;
2967
4246
  last_error: string | null;
4247
+ last_items_processed: number | null;
2968
4248
  last_sequence_number: number;
4249
+ last_success_at: string | null;
2969
4250
  last_synced_at: string | null;
2970
4251
  updated_at: string;
2971
4252
  };
@@ -2973,7 +4254,9 @@ export type Database = {
2973
4254
  connection_id: string;
2974
4255
  entity_type: string;
2975
4256
  last_error?: string | null;
4257
+ last_items_processed?: number | null;
2976
4258
  last_sequence_number?: number;
4259
+ last_success_at?: string | null;
2977
4260
  last_synced_at?: string | null;
2978
4261
  updated_at?: string;
2979
4262
  };
@@ -2981,7 +4264,9 @@ export type Database = {
2981
4264
  connection_id?: string;
2982
4265
  entity_type?: string;
2983
4266
  last_error?: string | null;
4267
+ last_items_processed?: number | null;
2984
4268
  last_sequence_number?: number;
4269
+ last_success_at?: string | null;
2985
4270
  last_synced_at?: string | null;
2986
4271
  updated_at?: string;
2987
4272
  };
@@ -3033,6 +4318,47 @@ export type Database = {
3033
4318
  }
3034
4319
  ];
3035
4320
  };
4321
+ floriday_trade_item_classifications_cache: {
4322
+ Row: {
4323
+ connection_id: string;
4324
+ data: Json;
4325
+ fetched_at: string;
4326
+ floriday_id: string;
4327
+ id: string;
4328
+ is_deleted: boolean;
4329
+ sequence_number: number;
4330
+ updated_at: string;
4331
+ };
4332
+ Insert: {
4333
+ connection_id: string;
4334
+ data: Json;
4335
+ fetched_at?: string;
4336
+ floriday_id: string;
4337
+ id?: string;
4338
+ is_deleted?: boolean;
4339
+ sequence_number?: number;
4340
+ updated_at?: string;
4341
+ };
4342
+ Update: {
4343
+ connection_id?: string;
4344
+ data?: Json;
4345
+ fetched_at?: string;
4346
+ floriday_id?: string;
4347
+ id?: string;
4348
+ is_deleted?: boolean;
4349
+ sequence_number?: number;
4350
+ updated_at?: string;
4351
+ };
4352
+ Relationships: [
4353
+ {
4354
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4355
+ columns: ["connection_id"];
4356
+ isOneToOne: false;
4357
+ referencedRelation: "floriday_connections";
4358
+ referencedColumns: ["id"];
4359
+ }
4360
+ ];
4361
+ };
3036
4362
  floriday_trade_items_cache: {
3037
4363
  Row: {
3038
4364
  connection_id: string;
@@ -3060,7 +4386,166 @@ export type Database = {
3060
4386
  };
3061
4387
  Relationships: [
3062
4388
  {
3063
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4389
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4390
+ columns: ["connection_id"];
4391
+ isOneToOne: false;
4392
+ referencedRelation: "floriday_connections";
4393
+ referencedColumns: ["id"];
4394
+ }
4395
+ ];
4396
+ };
4397
+ floriday_trips_cache: {
4398
+ Row: {
4399
+ carrier_organization_id: string | null;
4400
+ connection_id: string;
4401
+ data: Json;
4402
+ fetched_at: string;
4403
+ floriday_id: string;
4404
+ id: string;
4405
+ is_deleted: boolean;
4406
+ sequence_number: number;
4407
+ status: string | null;
4408
+ trip_date: string | null;
4409
+ updated_at: string;
4410
+ };
4411
+ Insert: {
4412
+ carrier_organization_id?: string | null;
4413
+ connection_id: string;
4414
+ data?: Json;
4415
+ fetched_at?: string;
4416
+ floriday_id: string;
4417
+ id?: string;
4418
+ is_deleted?: boolean;
4419
+ sequence_number?: number;
4420
+ status?: string | null;
4421
+ trip_date?: string | null;
4422
+ updated_at?: string;
4423
+ };
4424
+ Update: {
4425
+ carrier_organization_id?: string | null;
4426
+ connection_id?: string;
4427
+ data?: Json;
4428
+ fetched_at?: string;
4429
+ floriday_id?: string;
4430
+ id?: string;
4431
+ is_deleted?: boolean;
4432
+ sequence_number?: number;
4433
+ status?: string | null;
4434
+ trip_date?: string | null;
4435
+ updated_at?: string;
4436
+ };
4437
+ Relationships: [
4438
+ {
4439
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4440
+ columns: ["connection_id"];
4441
+ isOneToOne: false;
4442
+ referencedRelation: "floriday_connections";
4443
+ referencedColumns: ["id"];
4444
+ }
4445
+ ];
4446
+ };
4447
+ floriday_warehouses_cache: {
4448
+ Row: {
4449
+ connection_id: string;
4450
+ data: Json;
4451
+ fetched_at: string;
4452
+ floriday_id: string;
4453
+ gln_code: string | null;
4454
+ id: string;
4455
+ is_default: boolean;
4456
+ is_deleted: boolean;
4457
+ name: string | null;
4458
+ updated_at: string;
4459
+ };
4460
+ Insert: {
4461
+ connection_id: string;
4462
+ data?: Json;
4463
+ fetched_at?: string;
4464
+ floriday_id: string;
4465
+ gln_code?: string | null;
4466
+ id?: string;
4467
+ is_default?: boolean;
4468
+ is_deleted?: boolean;
4469
+ name?: string | null;
4470
+ updated_at?: string;
4471
+ };
4472
+ Update: {
4473
+ connection_id?: string;
4474
+ data?: Json;
4475
+ fetched_at?: string;
4476
+ floriday_id?: string;
4477
+ gln_code?: string | null;
4478
+ id?: string;
4479
+ is_default?: boolean;
4480
+ is_deleted?: boolean;
4481
+ name?: string | null;
4482
+ updated_at?: string;
4483
+ };
4484
+ Relationships: [
4485
+ {
4486
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4487
+ columns: ["connection_id"];
4488
+ isOneToOne: false;
4489
+ referencedRelation: "floriday_connections";
4490
+ referencedColumns: ["id"];
4491
+ }
4492
+ ];
4493
+ };
4494
+ floriday_write_log: {
4495
+ Row: {
4496
+ action: string;
4497
+ caller: string;
4498
+ connection_id: string | null;
4499
+ created_at: string;
4500
+ error: string | null;
4501
+ floriday_id: string | null;
4502
+ http_status: number | null;
4503
+ id: string;
4504
+ idempotency_key: string | null;
4505
+ module: string | null;
4506
+ ok: boolean;
4507
+ request: Json | null;
4508
+ resource: string;
4509
+ response: Json | null;
4510
+ user_id: string | null;
4511
+ };
4512
+ Insert: {
4513
+ action: string;
4514
+ caller?: string;
4515
+ connection_id?: string | null;
4516
+ created_at?: string;
4517
+ error?: string | null;
4518
+ floriday_id?: string | null;
4519
+ http_status?: number | null;
4520
+ id?: string;
4521
+ idempotency_key?: string | null;
4522
+ module?: string | null;
4523
+ ok: boolean;
4524
+ request?: Json | null;
4525
+ resource: string;
4526
+ response?: Json | null;
4527
+ user_id?: string | null;
4528
+ };
4529
+ Update: {
4530
+ action?: string;
4531
+ caller?: string;
4532
+ connection_id?: string | null;
4533
+ created_at?: string;
4534
+ error?: string | null;
4535
+ floriday_id?: string | null;
4536
+ http_status?: number | null;
4537
+ id?: string;
4538
+ idempotency_key?: string | null;
4539
+ module?: string | null;
4540
+ ok?: boolean;
4541
+ request?: Json | null;
4542
+ resource?: string;
4543
+ response?: Json | null;
4544
+ user_id?: string | null;
4545
+ };
4546
+ Relationships: [
4547
+ {
4548
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
3064
4549
  columns: ["connection_id"];
3065
4550
  isOneToOne: false;
3066
4551
  referencedRelation: "floriday_connections";
@@ -3427,6 +4912,7 @@ export type Database = {
3427
4912
  Row: {
3428
4913
  body_html: string | null;
3429
4914
  body_text: string | null;
4915
+ connection_id: string | null;
3430
4916
  created_at: string;
3431
4917
  error_message: string | null;
3432
4918
  external_id: string | null;
@@ -3445,6 +4931,7 @@ export type Database = {
3445
4931
  Insert: {
3446
4932
  body_html?: string | null;
3447
4933
  body_text?: string | null;
4934
+ connection_id?: string | null;
3448
4935
  created_at?: string;
3449
4936
  error_message?: string | null;
3450
4937
  external_id?: string | null;
@@ -3463,6 +4950,7 @@ export type Database = {
3463
4950
  Update: {
3464
4951
  body_html?: string | null;
3465
4952
  body_text?: string | null;
4953
+ connection_id?: string | null;
3466
4954
  created_at?: string;
3467
4955
  error_message?: string | null;
3468
4956
  external_id?: string | null;
@@ -3479,6 +4967,20 @@ export type Database = {
3479
4967
  updated_at?: string;
3480
4968
  };
3481
4969
  Relationships: [
4970
+ {
4971
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4972
+ columns: ["connection_id"];
4973
+ isOneToOne: false;
4974
+ referencedRelation: "email_auth_connections";
4975
+ referencedColumns: ["id"];
4976
+ },
4977
+ {
4978
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4979
+ columns: ["connection_id"];
4980
+ isOneToOne: false;
4981
+ referencedRelation: "email_auth_connections_safe";
4982
+ referencedColumns: ["id"];
4983
+ },
3482
4984
  {
3483
4985
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3484
4986
  columns: ["profile_id"];
@@ -3773,6 +5275,7 @@ export type Database = {
3773
5275
  role: string;
3774
5276
  tenant_id: string;
3775
5277
  updated_at: string;
5278
+ user_id: string | null;
3776
5279
  };
3777
5280
  Insert: {
3778
5281
  avatar_url?: string | null;
@@ -3788,6 +5291,7 @@ export type Database = {
3788
5291
  role?: string;
3789
5292
  tenant_id: string;
3790
5293
  updated_at?: string;
5294
+ user_id?: string | null;
3791
5295
  };
3792
5296
  Update: {
3793
5297
  avatar_url?: string | null;
@@ -3803,6 +5307,7 @@ export type Database = {
3803
5307
  role?: string;
3804
5308
  tenant_id?: string;
3805
5309
  updated_at?: string;
5310
+ user_id?: string | null;
3806
5311
  };
3807
5312
  Relationships: [
3808
5313
  {
@@ -3944,13 +5449,6 @@ export type Database = {
3944
5449
  isOneToOne: false;
3945
5450
  referencedRelation: "offer_campaigns";
3946
5451
  referencedColumns: ["id"];
3947
- },
3948
- {
3949
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3950
- columns: ["product_id"];
3951
- isOneToOne: false;
3952
- referencedRelation: "products";
3953
- referencedColumns: ["id"];
3954
5452
  }
3955
5453
  ];
3956
5454
  };
@@ -4238,6 +5736,105 @@ export type Database = {
4238
5736
  };
4239
5737
  Relationships: [];
4240
5738
  };
5739
+ order_cart_items: {
5740
+ Row: {
5741
+ cart_id: string;
5742
+ crates: number;
5743
+ crates_per_layer: number;
5744
+ created_at: string;
5745
+ id: string;
5746
+ order_item_id: string | null;
5747
+ plants_per_crate: number;
5748
+ product_id: string | null;
5749
+ product_name: string;
5750
+ };
5751
+ Insert: {
5752
+ cart_id: string;
5753
+ crates: number;
5754
+ crates_per_layer?: number;
5755
+ created_at?: string;
5756
+ id?: string;
5757
+ order_item_id?: string | null;
5758
+ plants_per_crate?: number;
5759
+ product_id?: string | null;
5760
+ product_name: string;
5761
+ };
5762
+ Update: {
5763
+ cart_id?: string;
5764
+ crates?: number;
5765
+ crates_per_layer?: number;
5766
+ created_at?: string;
5767
+ id?: string;
5768
+ order_item_id?: string | null;
5769
+ plants_per_crate?: number;
5770
+ product_id?: string | null;
5771
+ product_name?: string;
5772
+ };
5773
+ Relationships: [
5774
+ {
5775
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5776
+ columns: ["cart_id"];
5777
+ isOneToOne: false;
5778
+ referencedRelation: "order_carts";
5779
+ referencedColumns: ["id"];
5780
+ },
5781
+ {
5782
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5783
+ columns: ["order_item_id"];
5784
+ isOneToOne: false;
5785
+ referencedRelation: "order_items";
5786
+ referencedColumns: ["id"];
5787
+ },
5788
+ {
5789
+ foreignKeyName: "order_cart_items_product_id_fkey";
5790
+ columns: ["product_id"];
5791
+ isOneToOne: false;
5792
+ referencedRelation: "products";
5793
+ referencedColumns: ["id"];
5794
+ }
5795
+ ];
5796
+ };
5797
+ order_carts: {
5798
+ Row: {
5799
+ cart_number: number;
5800
+ created_at: string;
5801
+ id: string;
5802
+ is_auto: boolean;
5803
+ is_complete: boolean;
5804
+ notes: string | null;
5805
+ order_id: string;
5806
+ updated_at: string;
5807
+ };
5808
+ Insert: {
5809
+ cart_number: number;
5810
+ created_at?: string;
5811
+ id?: string;
5812
+ is_auto?: boolean;
5813
+ is_complete?: boolean;
5814
+ notes?: string | null;
5815
+ order_id: string;
5816
+ updated_at?: string;
5817
+ };
5818
+ Update: {
5819
+ cart_number?: number;
5820
+ created_at?: string;
5821
+ id?: string;
5822
+ is_auto?: boolean;
5823
+ is_complete?: boolean;
5824
+ notes?: string | null;
5825
+ order_id?: string;
5826
+ updated_at?: string;
5827
+ };
5828
+ Relationships: [
5829
+ {
5830
+ foreignKeyName: "order_carts_order_id_fkey";
5831
+ columns: ["order_id"];
5832
+ isOneToOne: false;
5833
+ referencedRelation: "orders";
5834
+ referencedColumns: ["id"];
5835
+ }
5836
+ ];
5837
+ };
4241
5838
  order_field_options: {
4242
5839
  Row: {
4243
5840
  created_at: string;
@@ -4354,6 +5951,24 @@ export type Database = {
4354
5951
  }
4355
5952
  ];
4356
5953
  };
5954
+ order_number_counters: {
5955
+ Row: {
5956
+ last_value: number;
5957
+ updated_at: string;
5958
+ year: number;
5959
+ };
5960
+ Insert: {
5961
+ last_value?: number;
5962
+ updated_at?: string;
5963
+ year: number;
5964
+ };
5965
+ Update: {
5966
+ last_value?: number;
5967
+ updated_at?: string;
5968
+ year?: number;
5969
+ };
5970
+ Relationships: [];
5971
+ };
4357
5972
  orders: {
4358
5973
  Row: {
4359
5974
  created_at: string;
@@ -4366,6 +5981,7 @@ export type Database = {
4366
5981
  notes: string | null;
4367
5982
  order_date: string;
4368
5983
  order_number: string;
5984
+ order_source: string;
4369
5985
  status: string;
4370
5986
  total: string;
4371
5987
  updated_at: string;
@@ -4381,6 +5997,7 @@ export type Database = {
4381
5997
  notes?: string | null;
4382
5998
  order_date?: string;
4383
5999
  order_number: string;
6000
+ order_source?: string;
4384
6001
  status?: string;
4385
6002
  total?: string;
4386
6003
  updated_at?: string;
@@ -4396,6 +6013,7 @@ export type Database = {
4396
6013
  notes?: string | null;
4397
6014
  order_date?: string;
4398
6015
  order_number?: string;
6016
+ order_source?: string;
4399
6017
  status?: string;
4400
6018
  total?: string;
4401
6019
  updated_at?: string;
@@ -4638,13 +6256,16 @@ export type Database = {
4638
6256
  Row: {
4639
6257
  barcode: string | null;
4640
6258
  batch: string;
6259
+ crates_per_layer: number;
4641
6260
  created_at: string;
4642
6261
  custom_fields: Json;
4643
6262
  id: string;
4644
6263
  image_url: string | null;
4645
6264
  incoming_quantity: number;
6265
+ layers_per_cart: number;
4646
6266
  location: string;
4647
6267
  min_quantity: number;
6268
+ plants_per_crate: number;
4648
6269
  product: string;
4649
6270
  product_type: string;
4650
6271
  purchase_price: number | null;
@@ -4657,13 +6278,16 @@ export type Database = {
4657
6278
  Insert: {
4658
6279
  barcode?: string | null;
4659
6280
  batch: string;
6281
+ crates_per_layer?: number;
4660
6282
  created_at?: string;
4661
6283
  custom_fields?: Json;
4662
6284
  id?: string;
4663
6285
  image_url?: string | null;
4664
6286
  incoming_quantity?: number;
6287
+ layers_per_cart?: number;
4665
6288
  location: string;
4666
6289
  min_quantity?: number;
6290
+ plants_per_crate?: number;
4667
6291
  product: string;
4668
6292
  product_type?: string;
4669
6293
  purchase_price?: number | null;
@@ -4676,13 +6300,16 @@ export type Database = {
4676
6300
  Update: {
4677
6301
  barcode?: string | null;
4678
6302
  batch?: string;
6303
+ crates_per_layer?: number;
4679
6304
  created_at?: string;
4680
6305
  custom_fields?: Json;
4681
6306
  id?: string;
4682
6307
  image_url?: string | null;
4683
6308
  incoming_quantity?: number;
6309
+ layers_per_cart?: number;
4684
6310
  location?: string;
4685
6311
  min_quantity?: number;
6312
+ plants_per_crate?: number;
4686
6313
  product?: string;
4687
6314
  product_type?: string;
4688
6315
  purchase_price?: number | null;
@@ -5658,6 +7285,147 @@ export type Database = {
5658
7285
  };
5659
7286
  Relationships: [];
5660
7287
  };
7288
+ time_entries: {
7289
+ Row: {
7290
+ created_at: string;
7291
+ employee_id: string;
7292
+ entry_date: string;
7293
+ hours: number;
7294
+ id: string;
7295
+ notes: string | null;
7296
+ overtime: number;
7297
+ undertime: number;
7298
+ updated_at: string;
7299
+ };
7300
+ Insert: {
7301
+ created_at?: string;
7302
+ employee_id: string;
7303
+ entry_date: string;
7304
+ hours?: number;
7305
+ id?: string;
7306
+ notes?: string | null;
7307
+ overtime?: number;
7308
+ undertime?: number;
7309
+ updated_at?: string;
7310
+ };
7311
+ Update: {
7312
+ created_at?: string;
7313
+ employee_id?: string;
7314
+ entry_date?: string;
7315
+ hours?: number;
7316
+ id?: string;
7317
+ notes?: string | null;
7318
+ overtime?: number;
7319
+ undertime?: number;
7320
+ updated_at?: string;
7321
+ };
7322
+ Relationships: [
7323
+ {
7324
+ foreignKeyName: "time_entries_employee_id_fkey";
7325
+ columns: ["employee_id"];
7326
+ isOneToOne: false;
7327
+ referencedRelation: "monteurs";
7328
+ referencedColumns: ["id"];
7329
+ }
7330
+ ];
7331
+ };
7332
+ time_logs: {
7333
+ Row: {
7334
+ created_at: string;
7335
+ employee_id: string;
7336
+ end_time: string | null;
7337
+ id: string;
7338
+ notes: string | null;
7339
+ overtime_hours: number;
7340
+ overtime_type: string | null;
7341
+ regular_hours: number;
7342
+ start_time: string;
7343
+ travel_cost: number | null;
7344
+ travel_distance_km: number | null;
7345
+ type: string;
7346
+ updated_at: string;
7347
+ };
7348
+ Insert: {
7349
+ created_at?: string;
7350
+ employee_id: string;
7351
+ end_time?: string | null;
7352
+ id?: string;
7353
+ notes?: string | null;
7354
+ overtime_hours?: number;
7355
+ overtime_type?: string | null;
7356
+ regular_hours?: number;
7357
+ start_time?: string;
7358
+ travel_cost?: number | null;
7359
+ travel_distance_km?: number | null;
7360
+ type: string;
7361
+ updated_at?: string;
7362
+ };
7363
+ Update: {
7364
+ created_at?: string;
7365
+ employee_id?: string;
7366
+ end_time?: string | null;
7367
+ id?: string;
7368
+ notes?: string | null;
7369
+ overtime_hours?: number;
7370
+ overtime_type?: string | null;
7371
+ regular_hours?: number;
7372
+ start_time?: string;
7373
+ travel_cost?: number | null;
7374
+ travel_distance_km?: number | null;
7375
+ type?: string;
7376
+ updated_at?: string;
7377
+ };
7378
+ Relationships: [
7379
+ {
7380
+ foreignKeyName: "time_logs_employee_id_fkey";
7381
+ columns: ["employee_id"];
7382
+ isOneToOne: false;
7383
+ referencedRelation: "monteurs";
7384
+ referencedColumns: ["id"];
7385
+ }
7386
+ ];
7387
+ };
7388
+ time_off_entries: {
7389
+ Row: {
7390
+ created_at: string;
7391
+ employee_id: string;
7392
+ entry_date: string;
7393
+ hours: number;
7394
+ id: string;
7395
+ notes: string | null;
7396
+ type: string;
7397
+ updated_at: string;
7398
+ };
7399
+ Insert: {
7400
+ created_at?: string;
7401
+ employee_id: string;
7402
+ entry_date: string;
7403
+ hours?: number;
7404
+ id?: string;
7405
+ notes?: string | null;
7406
+ type: string;
7407
+ updated_at?: string;
7408
+ };
7409
+ Update: {
7410
+ created_at?: string;
7411
+ employee_id?: string;
7412
+ entry_date?: string;
7413
+ hours?: number;
7414
+ id?: string;
7415
+ notes?: string | null;
7416
+ type?: string;
7417
+ updated_at?: string;
7418
+ };
7419
+ Relationships: [
7420
+ {
7421
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7422
+ columns: ["employee_id"];
7423
+ isOneToOne: false;
7424
+ referencedRelation: "monteurs";
7425
+ referencedColumns: ["id"];
7426
+ }
7427
+ ];
7428
+ };
5661
7429
  trade_item_drafts: {
5662
7430
  Row: {
5663
7431
  connection_id: string | null;
@@ -6405,15 +8173,126 @@ export type Database = {
6405
8173
  role?: Database["public"]["Enums"]["app_role"];
6406
8174
  user_id?: string;
6407
8175
  };
6408
- Relationships: [
6409
- {
6410
- foreignKeyName: "user_roles_user_id_fkey";
6411
- columns: ["user_id"];
6412
- isOneToOne: false;
6413
- referencedRelation: "profiles";
6414
- referencedColumns: ["id"];
6415
- }
6416
- ];
8176
+ Relationships: [
8177
+ {
8178
+ foreignKeyName: "user_roles_user_id_fkey";
8179
+ columns: ["user_id"];
8180
+ isOneToOne: false;
8181
+ referencedRelation: "profiles";
8182
+ referencedColumns: ["id"];
8183
+ }
8184
+ ];
8185
+ };
8186
+ voorraad_media_upload_failures: {
8187
+ Row: {
8188
+ action: string;
8189
+ attempt_number: number;
8190
+ caller: string;
8191
+ client_user_id: string | null;
8192
+ content_type: string | null;
8193
+ created_at: string;
8194
+ environment: string;
8195
+ error_message: string | null;
8196
+ filename: string | null;
8197
+ id: string;
8198
+ idempotency_key: string | null;
8199
+ module: string;
8200
+ path: string;
8201
+ reference_id: string | null;
8202
+ request_body_hash: string | null;
8203
+ request_timestamp: number | null;
8204
+ response_content_type: string | null;
8205
+ response_status: number | null;
8206
+ size_bytes: number | null;
8207
+ };
8208
+ Insert: {
8209
+ action?: string;
8210
+ attempt_number?: number;
8211
+ caller?: string;
8212
+ client_user_id?: string | null;
8213
+ content_type?: string | null;
8214
+ created_at?: string;
8215
+ environment: string;
8216
+ error_message?: string | null;
8217
+ filename?: string | null;
8218
+ id?: string;
8219
+ idempotency_key?: string | null;
8220
+ module?: string;
8221
+ path: string;
8222
+ reference_id?: string | null;
8223
+ request_body_hash?: string | null;
8224
+ request_timestamp?: number | null;
8225
+ response_content_type?: string | null;
8226
+ response_status?: number | null;
8227
+ size_bytes?: number | null;
8228
+ };
8229
+ Update: {
8230
+ action?: string;
8231
+ attempt_number?: number;
8232
+ caller?: string;
8233
+ client_user_id?: string | null;
8234
+ content_type?: string | null;
8235
+ created_at?: string;
8236
+ environment?: string;
8237
+ error_message?: string | null;
8238
+ filename?: string | null;
8239
+ id?: string;
8240
+ idempotency_key?: string | null;
8241
+ module?: string;
8242
+ path?: string;
8243
+ reference_id?: string | null;
8244
+ request_body_hash?: string | null;
8245
+ request_timestamp?: number | null;
8246
+ response_content_type?: string | null;
8247
+ response_status?: number | null;
8248
+ size_bytes?: number | null;
8249
+ };
8250
+ Relationships: [];
8251
+ };
8252
+ voorraad_publish_attempts: {
8253
+ Row: {
8254
+ action: string;
8255
+ connection_id: string | null;
8256
+ created_at: string;
8257
+ error: string | null;
8258
+ gateway_attempt_id: string | null;
8259
+ gateway_status: number | null;
8260
+ id: string;
8261
+ intent: string;
8262
+ ok: boolean;
8263
+ request_summary: Json | null;
8264
+ trade_item_id: string | null;
8265
+ user_id: string;
8266
+ };
8267
+ Insert: {
8268
+ action: string;
8269
+ connection_id?: string | null;
8270
+ created_at?: string;
8271
+ error?: string | null;
8272
+ gateway_attempt_id?: string | null;
8273
+ gateway_status?: number | null;
8274
+ id?: string;
8275
+ intent: string;
8276
+ ok: boolean;
8277
+ request_summary?: Json | null;
8278
+ trade_item_id?: string | null;
8279
+ user_id: string;
8280
+ };
8281
+ Update: {
8282
+ action?: string;
8283
+ connection_id?: string | null;
8284
+ created_at?: string;
8285
+ error?: string | null;
8286
+ gateway_attempt_id?: string | null;
8287
+ gateway_status?: number | null;
8288
+ id?: string;
8289
+ intent?: string;
8290
+ ok?: boolean;
8291
+ request_summary?: Json | null;
8292
+ trade_item_id?: string | null;
8293
+ user_id?: string;
8294
+ };
8295
+ Relationships: [];
6417
8296
  };
6418
8297
  work_order_monteurs: {
6419
8298
  Row: {
@@ -7035,12 +8914,39 @@ export type Database = {
7035
8914
  };
7036
8915
  };
7037
8916
  Functions: {
8917
+ _floriday_schedule_job: {
8918
+ Args: {
8919
+ p_apikey: string;
8920
+ p_jobname: string;
8921
+ p_schedule: string;
8922
+ p_timeout_ms: number;
8923
+ p_url: string;
8924
+ };
8925
+ Returns: number;
8926
+ };
8927
+ assign_floriday_order_numbers: {
8928
+ Args: {
8929
+ p_ids: string[];
8930
+ };
8931
+ Returns: {
8932
+ floriday_id: string;
8933
+ order_number: string;
8934
+ }[];
8935
+ };
7038
8936
  call_exact_route: {
7039
8937
  Args: {
7040
8938
  path: string;
7041
8939
  };
7042
8940
  Returns: number;
7043
8941
  };
8942
+ cleanup_old_bookings: {
8943
+ Args: never;
8944
+ Returns: number;
8945
+ };
8946
+ current_monteur_id: {
8947
+ Args: never;
8948
+ Returns: string;
8949
+ };
7044
8950
  dashboard_list_public_schema: {
7045
8951
  Args: never;
7046
8952
  Returns: {
@@ -7145,6 +9051,32 @@ export type Database = {
7145
9051
  office_code: string;
7146
9052
  }[];
7147
9053
  };
9054
+ get_floriday_agreements_active: {
9055
+ Args: {
9056
+ p_on_date?: string;
9057
+ };
9058
+ Returns: {
9059
+ buyer_organization_id: string;
9060
+ data: Json;
9061
+ floriday_id: string;
9062
+ status: string;
9063
+ valid_from: string;
9064
+ valid_until: string;
9065
+ }[];
9066
+ };
9067
+ get_floriday_clock_supplies_window: {
9068
+ Args: {
9069
+ p_from: string;
9070
+ p_to: string;
9071
+ };
9072
+ Returns: {
9073
+ auction_date: string;
9074
+ data: Json;
9075
+ floriday_id: string;
9076
+ status: string;
9077
+ trade_item_id: string;
9078
+ }[];
9079
+ };
7148
9080
  get_floriday_cron_jobs: {
7149
9081
  Args: never;
7150
9082
  Returns: {
@@ -7154,12 +9086,68 @@ export type Database = {
7154
9086
  url: string;
7155
9087
  }[];
7156
9088
  };
9089
+ get_floriday_delivery_locations: {
9090
+ Args: {
9091
+ p_organization_id: string;
9092
+ };
9093
+ Returns: {
9094
+ data: Json;
9095
+ floriday_id: string;
9096
+ gln_code: string;
9097
+ name: string;
9098
+ }[];
9099
+ };
9100
+ get_floriday_fulfillment_orders_window: {
9101
+ Args: {
9102
+ p_from: string;
9103
+ p_to: string;
9104
+ };
9105
+ Returns: {
9106
+ auction_date: string;
9107
+ data: Json;
9108
+ delivery_order_id: string;
9109
+ destination_warehouse_id: string;
9110
+ floriday_id: string;
9111
+ status: string;
9112
+ }[];
9113
+ };
9114
+ get_floriday_sales_orders_window: {
9115
+ Args: {
9116
+ p_from: string;
9117
+ p_to: string;
9118
+ };
9119
+ Returns: {
9120
+ buyer_organization_id: string;
9121
+ data: Json;
9122
+ floriday_id: string;
9123
+ status: string;
9124
+ updated_at: string;
9125
+ }[];
9126
+ };
9127
+ get_floriday_sync_health: {
9128
+ Args: never;
9129
+ Returns: {
9130
+ entity_type: string;
9131
+ last_error: string;
9132
+ last_items_processed: number;
9133
+ last_sequence_number: number;
9134
+ last_success_at: string;
9135
+ last_synced_at: string;
9136
+ minutes_since_success: number;
9137
+ }[];
9138
+ };
7157
9139
  get_offer_by_link_code: {
7158
9140
  Args: {
7159
9141
  p_code: string;
7160
9142
  };
7161
9143
  Returns: Json;
7162
9144
  };
9145
+ get_or_assign_floriday_order_number: {
9146
+ Args: {
9147
+ p_floriday_id: string;
9148
+ };
9149
+ Returns: string;
9150
+ };
7163
9151
  get_room_busy_windows: {
7164
9152
  Args: {
7165
9153
  p_from: string;
@@ -7206,6 +9194,12 @@ export type Database = {
7206
9194
  Args: never;
7207
9195
  Returns: boolean;
7208
9196
  };
9197
+ next_order_number: {
9198
+ Args: {
9199
+ p_prefix: string;
9200
+ };
9201
+ Returns: string;
9202
+ };
7209
9203
  next_work_order_number: {
7210
9204
  Args: {
7211
9205
  p_parent_work_order_id?: string;
@@ -7219,6 +9213,74 @@ export type Database = {
7219
9213
  };
7220
9214
  Returns: string;
7221
9215
  };
9216
+ pickstation_get_orders_raw: {
9217
+ Args: never;
9218
+ Returns: Json;
9219
+ };
9220
+ pickstation_get_settings: {
9221
+ Args: never;
9222
+ Returns: Json;
9223
+ };
9224
+ pickstation_log_print: {
9225
+ Args: {
9226
+ p_customer_name: string;
9227
+ p_documents: string[];
9228
+ p_ip_address: string;
9229
+ p_order_id: string;
9230
+ p_order_number: string;
9231
+ };
9232
+ Returns: undefined;
9233
+ };
9234
+ refresh_floricode_derived_code_lists: {
9235
+ Args: never;
9236
+ Returns: {
9237
+ out_environment: string;
9238
+ out_list_name: string;
9239
+ out_row_count: number;
9240
+ }[];
9241
+ };
9242
+ reset_floriday_sync_cursor: {
9243
+ Args: {
9244
+ p_connection_id: string;
9245
+ p_entity_type: string;
9246
+ };
9247
+ Returns: undefined;
9248
+ };
9249
+ schedule_floriday_additional_services_sync: {
9250
+ Args: {
9251
+ p_apikey: string;
9252
+ p_url: string;
9253
+ };
9254
+ Returns: number;
9255
+ };
9256
+ schedule_floriday_agreement_calloffs_sync: {
9257
+ Args: {
9258
+ p_apikey: string;
9259
+ p_url: string;
9260
+ };
9261
+ Returns: number;
9262
+ };
9263
+ schedule_floriday_agreements_sync: {
9264
+ Args: {
9265
+ p_apikey: string;
9266
+ p_url: string;
9267
+ };
9268
+ Returns: number;
9269
+ };
9270
+ schedule_floriday_base_items_sync: {
9271
+ Args: {
9272
+ p_apikey: string;
9273
+ p_url: string;
9274
+ };
9275
+ Returns: number;
9276
+ };
9277
+ schedule_floriday_blanket_orders_sync: {
9278
+ Args: {
9279
+ p_apikey: string;
9280
+ p_url: string;
9281
+ };
9282
+ Returns: number;
9283
+ };
7222
9284
  schedule_floriday_carriers_sync: {
7223
9285
  Args: {
7224
9286
  p_apikey: string;
@@ -7226,6 +9288,34 @@ export type Database = {
7226
9288
  };
7227
9289
  Returns: number;
7228
9290
  };
9291
+ schedule_floriday_clock_presales_sync: {
9292
+ Args: {
9293
+ p_apikey: string;
9294
+ p_url: string;
9295
+ };
9296
+ Returns: number;
9297
+ };
9298
+ schedule_floriday_clock_supplies_sync: {
9299
+ Args: {
9300
+ p_apikey: string;
9301
+ p_url: string;
9302
+ };
9303
+ Returns: number;
9304
+ };
9305
+ schedule_floriday_collections_sync: {
9306
+ Args: {
9307
+ p_apikey: string;
9308
+ p_url: string;
9309
+ };
9310
+ Returns: number;
9311
+ };
9312
+ schedule_floriday_commercial_service_types_sync: {
9313
+ Args: {
9314
+ p_apikey: string;
9315
+ p_url: string;
9316
+ };
9317
+ Returns: number;
9318
+ };
7229
9319
  schedule_floriday_connections_sync: {
7230
9320
  Args: {
7231
9321
  p_apikey: string;
@@ -7233,6 +9323,20 @@ export type Database = {
7233
9323
  };
7234
9324
  Returns: number;
7235
9325
  };
9326
+ schedule_floriday_contract_trade_item_groups_sync: {
9327
+ Args: {
9328
+ p_apikey: string;
9329
+ p_url: string;
9330
+ };
9331
+ Returns: number;
9332
+ };
9333
+ schedule_floriday_contracts_sync: {
9334
+ Args: {
9335
+ p_apikey: string;
9336
+ p_url: string;
9337
+ };
9338
+ Returns: number;
9339
+ };
7236
9340
  schedule_floriday_customer_organizations_sync: {
7237
9341
  Args: {
7238
9342
  p_apikey: string;
@@ -7240,6 +9344,48 @@ export type Database = {
7240
9344
  };
7241
9345
  Returns: number;
7242
9346
  };
9347
+ schedule_floriday_customer_stickers_sync: {
9348
+ Args: {
9349
+ p_apikey: string;
9350
+ p_url: string;
9351
+ };
9352
+ Returns: number;
9353
+ };
9354
+ schedule_floriday_delivery_condition_sets_sync: {
9355
+ Args: {
9356
+ p_apikey: string;
9357
+ p_url: string;
9358
+ };
9359
+ Returns: number;
9360
+ };
9361
+ schedule_floriday_delivery_locations_sync: {
9362
+ Args: {
9363
+ p_apikey: string;
9364
+ p_url: string;
9365
+ };
9366
+ Returns: number;
9367
+ };
9368
+ schedule_floriday_delivery_orders_sync: {
9369
+ Args: {
9370
+ p_apikey: string;
9371
+ p_url: string;
9372
+ };
9373
+ Returns: number;
9374
+ };
9375
+ schedule_floriday_fulfillment_orders_sync: {
9376
+ Args: {
9377
+ p_apikey: string;
9378
+ p_url: string;
9379
+ };
9380
+ Returns: number;
9381
+ };
9382
+ schedule_floriday_invoices_sync: {
9383
+ Args: {
9384
+ p_apikey: string;
9385
+ p_url: string;
9386
+ };
9387
+ Returns: number;
9388
+ };
7243
9389
  schedule_floriday_network_sync: {
7244
9390
  Args: {
7245
9391
  p_apikey: string;
@@ -7247,6 +9393,34 @@ export type Database = {
7247
9393
  };
7248
9394
  Returns: number;
7249
9395
  };
9396
+ schedule_floriday_packings_sync: {
9397
+ Args: {
9398
+ p_apikey: string;
9399
+ p_url: string;
9400
+ };
9401
+ Returns: number;
9402
+ };
9403
+ schedule_floriday_price_groups_sync: {
9404
+ Args: {
9405
+ p_apikey: string;
9406
+ p_url: string;
9407
+ };
9408
+ Returns: number;
9409
+ };
9410
+ schedule_floriday_reference_data_refresh: {
9411
+ Args: {
9412
+ p_apikey: string;
9413
+ p_url: string;
9414
+ };
9415
+ Returns: number;
9416
+ };
9417
+ schedule_floriday_sales_strategies_sync: {
9418
+ Args: {
9419
+ p_apikey: string;
9420
+ p_url: string;
9421
+ };
9422
+ Returns: number;
9423
+ };
7250
9424
  schedule_floriday_salesorders_sync: {
7251
9425
  Args: {
7252
9426
  p_apikey: string;
@@ -7261,6 +9435,13 @@ export type Database = {
7261
9435
  };
7262
9436
  Returns: number;
7263
9437
  };
9438
+ schedule_floriday_trade_item_classifications_sync: {
9439
+ Args: {
9440
+ p_apikey: string;
9441
+ p_url: string;
9442
+ };
9443
+ Returns: number;
9444
+ };
7264
9445
  schedule_floriday_trade_items_sync: {
7265
9446
  Args: {
7266
9447
  p_apikey: string;
@@ -7268,6 +9449,20 @@ export type Database = {
7268
9449
  };
7269
9450
  Returns: number;
7270
9451
  };
9452
+ schedule_floriday_trips_sync: {
9453
+ Args: {
9454
+ p_apikey: string;
9455
+ p_url: string;
9456
+ };
9457
+ Returns: number;
9458
+ };
9459
+ schedule_floriday_warehouses_sync: {
9460
+ Args: {
9461
+ p_apikey: string;
9462
+ p_url: string;
9463
+ };
9464
+ Returns: number;
9465
+ };
7271
9466
  schedule_twinfield_customers_sync: {
7272
9467
  Args: {
7273
9468
  p_apikey: string;
@@ -7342,7 +9537,7 @@ export type Database = {
7342
9537
  };
7343
9538
  };
7344
9539
  Enums: {
7345
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9540
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
7346
9541
  exact_env: "staging" | "live";
7347
9542
  exact_push_status: "pending" | "sent" | "error";
7348
9543
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
@@ -7404,7 +9599,7 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
7404
9599
  export declare const Constants: {
7405
9600
  readonly public: {
7406
9601
  readonly Enums: {
7407
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
9602
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie", "monteur"];
7408
9603
  readonly exact_env: readonly ["staging", "live"];
7409
9604
  readonly exact_push_status: readonly ["pending", "sent", "error"];
7410
9605
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];