@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
@@ -8,6 +8,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8
8
  max_workdays_earlier_pick: number;
9
9
  pick_days_before_transport: number;
10
10
  pick_distribution_enabled: boolean;
11
+ signup_mail_enabled: boolean;
12
+ signup_mail_lead_minutes: number;
13
+ signup_mail_purpose: string;
11
14
  transport_register_days_before: number;
12
15
  updated_at: string;
13
16
  user_id: string;
@@ -18,6 +21,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18
21
  max_workdays_earlier_pick?: number;
19
22
  pick_days_before_transport?: number;
20
23
  pick_distribution_enabled?: boolean;
24
+ signup_mail_enabled?: boolean;
25
+ signup_mail_lead_minutes?: number;
26
+ signup_mail_purpose?: string;
21
27
  transport_register_days_before?: number;
22
28
  updated_at?: string;
23
29
  user_id: string;
@@ -28,6 +34,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28
34
  max_workdays_earlier_pick?: number;
29
35
  pick_days_before_transport?: number;
30
36
  pick_distribution_enabled?: boolean;
37
+ signup_mail_enabled?: boolean;
38
+ signup_mail_lead_minutes?: number;
39
+ signup_mail_purpose?: string;
31
40
  transport_register_days_before?: number;
32
41
  updated_at?: string;
33
42
  user_id?: string;
@@ -436,6 +445,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
436
445
  referencedColumns: ["id"];
437
446
  }];
438
447
  };
448
+ carrier_signup_dispatches: {
449
+ Row: {
450
+ carrier_id: string;
451
+ cart_count: number;
452
+ created_at: string;
453
+ id: string;
454
+ order_count: number;
455
+ outbox_id: string | null;
456
+ pickup_date: string;
457
+ pickup_moment_key: string;
458
+ sent_at: string;
459
+ signup_deadline: string;
460
+ };
461
+ Insert: {
462
+ carrier_id: string;
463
+ cart_count?: number;
464
+ created_at?: string;
465
+ id?: string;
466
+ order_count?: number;
467
+ outbox_id?: string | null;
468
+ pickup_date: string;
469
+ pickup_moment_key: string;
470
+ sent_at?: string;
471
+ signup_deadline: string;
472
+ };
473
+ Update: {
474
+ carrier_id?: string;
475
+ cart_count?: number;
476
+ created_at?: string;
477
+ id?: string;
478
+ order_count?: number;
479
+ outbox_id?: string | null;
480
+ pickup_date?: string;
481
+ pickup_moment_key?: string;
482
+ sent_at?: string;
483
+ signup_deadline?: string;
484
+ };
485
+ Relationships: [{
486
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
487
+ columns: ["carrier_id"];
488
+ isOneToOne: false;
489
+ referencedRelation: "carriers";
490
+ referencedColumns: ["id"];
491
+ }];
492
+ };
439
493
  carriers: {
440
494
  Row: {
441
495
  address: string | null;
@@ -449,9 +503,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
449
503
  notes: string | null;
450
504
  phone: string | null;
451
505
  pickup_moments: import("./types").Json;
506
+ service_cities: string[];
507
+ service_countries: string[];
508
+ service_provinces: string[];
452
509
  signup_days_before_delivery: number;
453
510
  signup_time_1: string | null;
454
511
  signup_time_2: string | null;
512
+ sort_order: number;
455
513
  updated_at: string;
456
514
  user_id: string;
457
515
  };
@@ -467,9 +525,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
467
525
  notes?: string | null;
468
526
  phone?: string | null;
469
527
  pickup_moments?: import("./types").Json;
528
+ service_cities?: string[];
529
+ service_countries?: string[];
530
+ service_provinces?: string[];
470
531
  signup_days_before_delivery?: number;
471
532
  signup_time_1?: string | null;
472
533
  signup_time_2?: string | null;
534
+ sort_order?: number;
473
535
  updated_at?: string;
474
536
  user_id: string;
475
537
  };
@@ -485,14 +547,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
485
547
  notes?: string | null;
486
548
  phone?: string | null;
487
549
  pickup_moments?: import("./types").Json;
550
+ service_cities?: string[];
551
+ service_countries?: string[];
552
+ service_provinces?: string[];
488
553
  signup_days_before_delivery?: number;
489
554
  signup_time_1?: string | null;
490
555
  signup_time_2?: string | null;
556
+ sort_order?: number;
491
557
  updated_at?: string;
492
558
  user_id?: string;
493
559
  };
494
560
  Relationships: [];
495
561
  };
562
+ cart_pick_overrides: {
563
+ Row: {
564
+ cart_index: number;
565
+ created_at: string;
566
+ id: string;
567
+ moved_from_date: string | null;
568
+ notes: string | null;
569
+ order_id: string;
570
+ order_source: string;
571
+ pick_date: string;
572
+ status: string;
573
+ updated_at: string;
574
+ };
575
+ Insert: {
576
+ cart_index: number;
577
+ created_at?: string;
578
+ id?: string;
579
+ moved_from_date?: string | null;
580
+ notes?: string | null;
581
+ order_id: string;
582
+ order_source: string;
583
+ pick_date: string;
584
+ status?: string;
585
+ updated_at?: string;
586
+ };
587
+ Update: {
588
+ cart_index?: number;
589
+ created_at?: string;
590
+ id?: string;
591
+ moved_from_date?: string | null;
592
+ notes?: string | null;
593
+ order_id?: string;
594
+ order_source?: string;
595
+ pick_date?: string;
596
+ status?: string;
597
+ updated_at?: string;
598
+ };
599
+ Relationships: [];
600
+ };
496
601
  collections: {
497
602
  Row: {
498
603
  created_at: string;
@@ -604,50 +709,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
604
709
  customer_delivery_locations: {
605
710
  Row: {
606
711
  address_line: string | null;
712
+ carrier_assignment_source: string;
713
+ carrier_id: string | null;
607
714
  city: string | null;
608
715
  country: string | null;
609
716
  created_at: string;
610
717
  customer_id: string;
611
718
  floriday_location_id: string | null;
612
719
  gln: string | null;
720
+ house_number: string | null;
613
721
  id: string;
614
722
  is_primary: boolean;
615
723
  name: string | null;
616
724
  postal_code: string | null;
725
+ province: string | null;
617
726
  raw: import("./types").Json | null;
727
+ self_pickup: boolean;
728
+ street: string | null;
618
729
  updated_at: string;
619
730
  };
620
731
  Insert: {
621
732
  address_line?: string | null;
733
+ carrier_assignment_source?: string;
734
+ carrier_id?: string | null;
622
735
  city?: string | null;
623
736
  country?: string | null;
624
737
  created_at?: string;
625
738
  customer_id: string;
626
739
  floriday_location_id?: string | null;
627
740
  gln?: string | null;
741
+ house_number?: string | null;
628
742
  id?: string;
629
743
  is_primary?: boolean;
630
744
  name?: string | null;
631
745
  postal_code?: string | null;
746
+ province?: string | null;
632
747
  raw?: import("./types").Json | null;
748
+ self_pickup?: boolean;
749
+ street?: string | null;
633
750
  updated_at?: string;
634
751
  };
635
752
  Update: {
636
753
  address_line?: string | null;
754
+ carrier_assignment_source?: string;
755
+ carrier_id?: string | null;
637
756
  city?: string | null;
638
757
  country?: string | null;
639
758
  created_at?: string;
640
759
  customer_id?: string;
641
760
  floriday_location_id?: string | null;
642
761
  gln?: string | null;
762
+ house_number?: string | null;
643
763
  id?: string;
644
764
  is_primary?: boolean;
645
765
  name?: string | null;
646
766
  postal_code?: string | null;
767
+ province?: string | null;
647
768
  raw?: import("./types").Json | null;
769
+ self_pickup?: boolean;
770
+ street?: string | null;
648
771
  updated_at?: string;
649
772
  };
650
773
  Relationships: [{
774
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
775
+ columns: ["carrier_id"];
776
+ isOneToOne: false;
777
+ referencedRelation: "carriers";
778
+ referencedColumns: ["id"];
779
+ }, {
651
780
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
652
781
  columns: ["customer_id"];
653
782
  isOneToOne: false;
@@ -1452,18 +1581,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1452
1581
  };
1453
1582
  email_auth_purpose_settings: {
1454
1583
  Row: {
1584
+ default_cc: string[];
1455
1585
  purpose: string;
1456
1586
  reply_to: string | null;
1457
1587
  updated_at: string;
1458
1588
  updated_by: string | null;
1459
1589
  };
1460
1590
  Insert: {
1591
+ default_cc?: string[];
1461
1592
  purpose: string;
1462
1593
  reply_to?: string | null;
1463
1594
  updated_at?: string;
1464
1595
  updated_by?: string | null;
1465
1596
  };
1466
1597
  Update: {
1598
+ default_cc?: string[];
1467
1599
  purpose?: string;
1468
1600
  reply_to?: string | null;
1469
1601
  updated_at?: string;
@@ -2476,12 +2608,40 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2476
2608
  };
2477
2609
  Relationships: [];
2478
2610
  };
2611
+ extra_pricing_types: {
2612
+ Row: {
2613
+ code: string;
2614
+ created_at: string;
2615
+ id: string;
2616
+ label: string;
2617
+ sort_order: number;
2618
+ updated_at: string;
2619
+ };
2620
+ Insert: {
2621
+ code: string;
2622
+ created_at?: string;
2623
+ id?: string;
2624
+ label: string;
2625
+ sort_order?: number;
2626
+ updated_at?: string;
2627
+ };
2628
+ Update: {
2629
+ code?: string;
2630
+ created_at?: string;
2631
+ id?: string;
2632
+ label?: string;
2633
+ sort_order?: number;
2634
+ updated_at?: string;
2635
+ };
2636
+ Relationships: [];
2637
+ };
2479
2638
  extras: {
2480
2639
  Row: {
2481
2640
  category: string;
2482
2641
  created_at: string;
2483
2642
  exact_article_id: string | null;
2484
2643
  id: string;
2644
+ image_url: string | null;
2485
2645
  is_active: boolean;
2486
2646
  name: string;
2487
2647
  price: number;
@@ -2492,6 +2652,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2492
2652
  created_at?: string;
2493
2653
  exact_article_id?: string | null;
2494
2654
  id?: string;
2655
+ image_url?: string | null;
2495
2656
  is_active?: boolean;
2496
2657
  name: string;
2497
2658
  price?: number;
@@ -2502,6 +2663,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2502
2663
  created_at?: string;
2503
2664
  exact_article_id?: string | null;
2504
2665
  id?: string;
2666
+ image_url?: string | null;
2505
2667
  is_active?: boolean;
2506
2668
  name?: string;
2507
2669
  price?: number;
@@ -2599,231 +2761,1299 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2599
2761
  };
2600
2762
  Relationships: [];
2601
2763
  };
2602
- floriday_carriers_cache: {
2764
+ floriday_additional_services_cache: {
2603
2765
  Row: {
2604
- connection_id: string | null;
2605
- created_at: string;
2766
+ connection_id: string;
2606
2767
  data: import("./types").Json;
2607
2768
  fetched_at: string;
2608
- gln_code: string | null;
2609
- id: string;
2610
- name: string | null;
2611
- organization_id: string;
2769
+ floriday_id: string;
2770
+ is_deleted: boolean;
2771
+ sequence_number: number;
2612
2772
  updated_at: string;
2613
2773
  };
2614
2774
  Insert: {
2615
- connection_id?: string | null;
2616
- created_at?: string;
2775
+ connection_id: string;
2617
2776
  data: import("./types").Json;
2618
2777
  fetched_at?: string;
2619
- gln_code?: string | null;
2620
- id?: string;
2621
- name?: string | null;
2622
- organization_id: string;
2778
+ floriday_id: string;
2779
+ is_deleted?: boolean;
2780
+ sequence_number?: number;
2623
2781
  updated_at?: string;
2624
2782
  };
2625
2783
  Update: {
2626
- connection_id?: string | null;
2627
- created_at?: string;
2784
+ connection_id?: string;
2628
2785
  data?: import("./types").Json;
2629
2786
  fetched_at?: string;
2630
- gln_code?: string | null;
2631
- id?: string;
2632
- name?: string | null;
2633
- organization_id?: string;
2787
+ floriday_id?: string;
2788
+ is_deleted?: boolean;
2789
+ sequence_number?: number;
2634
2790
  updated_at?: string;
2635
2791
  };
2636
2792
  Relationships: [{
2637
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2793
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2638
2794
  columns: ["connection_id"];
2639
2795
  isOneToOne: false;
2640
2796
  referencedRelation: "floriday_connections";
2641
2797
  referencedColumns: ["id"];
2642
2798
  }];
2643
2799
  };
2644
- floriday_connections: {
2800
+ floriday_agreement_calloffs_cache: {
2645
2801
  Row: {
2646
- access_token: string | null;
2647
- api_key: string;
2648
- client_id: string;
2649
- client_secret: string;
2650
- created_at: string;
2651
- customers_endpoint: string | null;
2652
- environment: string;
2653
- gln_code: string | null;
2802
+ agreement_id: string | null;
2803
+ connection_id: string;
2804
+ data: import("./types").Json;
2805
+ delivery_date: string | null;
2806
+ fetched_at: string;
2807
+ floriday_id: string;
2654
2808
  id: string;
2655
- is_active: boolean;
2656
- label: string;
2657
- organization_name: string | null;
2658
- preferred_warehouse_id: string | null;
2659
- preferred_warehouse_name: string | null;
2660
- token_expires_at: string | null;
2809
+ is_deleted: boolean;
2810
+ sequence_number: number;
2811
+ status: string | null;
2661
2812
  updated_at: string;
2662
2813
  };
2663
2814
  Insert: {
2664
- access_token?: string | null;
2665
- api_key: string;
2666
- client_id: string;
2667
- client_secret: string;
2668
- created_at?: string;
2669
- customers_endpoint?: string | null;
2670
- environment: string;
2671
- gln_code?: string | null;
2815
+ agreement_id?: string | null;
2816
+ connection_id: string;
2817
+ data?: import("./types").Json;
2818
+ delivery_date?: string | null;
2819
+ fetched_at?: string;
2820
+ floriday_id: string;
2672
2821
  id?: string;
2673
- is_active?: boolean;
2674
- label?: string;
2675
- organization_name?: string | null;
2676
- preferred_warehouse_id?: string | null;
2677
- preferred_warehouse_name?: string | null;
2678
- token_expires_at?: string | null;
2822
+ is_deleted?: boolean;
2823
+ sequence_number?: number;
2824
+ status?: string | null;
2679
2825
  updated_at?: string;
2680
2826
  };
2681
2827
  Update: {
2682
- access_token?: string | null;
2683
- api_key?: string;
2684
- client_id?: string;
2685
- client_secret?: string;
2686
- created_at?: string;
2687
- customers_endpoint?: string | null;
2688
- environment?: string;
2689
- gln_code?: string | null;
2828
+ agreement_id?: string | null;
2829
+ connection_id?: string;
2830
+ data?: import("./types").Json;
2831
+ delivery_date?: string | null;
2832
+ fetched_at?: string;
2833
+ floriday_id?: string;
2690
2834
  id?: string;
2691
- is_active?: boolean;
2692
- label?: string;
2693
- organization_name?: string | null;
2694
- preferred_warehouse_id?: string | null;
2695
- preferred_warehouse_name?: string | null;
2696
- token_expires_at?: string | null;
2835
+ is_deleted?: boolean;
2836
+ sequence_number?: number;
2837
+ status?: string | null;
2697
2838
  updated_at?: string;
2698
2839
  };
2699
- Relationships: [];
2840
+ Relationships: [{
2841
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2842
+ columns: ["connection_id"];
2843
+ isOneToOne: false;
2844
+ referencedRelation: "floriday_connections";
2845
+ referencedColumns: ["id"];
2846
+ }];
2700
2847
  };
2701
- floriday_connections_cache: {
2848
+ floriday_agreements_cache: {
2702
2849
  Row: {
2703
2850
  buyer_organization_id: string | null;
2704
- buyer_organization_name: string | null;
2705
2851
  connection_id: string;
2706
2852
  data: import("./types").Json;
2707
- floriday_connection_id: string;
2853
+ fetched_at: string;
2854
+ floriday_id: string;
2855
+ id: string;
2708
2856
  is_deleted: boolean;
2709
2857
  sequence_number: number;
2710
2858
  status: string | null;
2711
- synced_at: string;
2859
+ updated_at: string;
2860
+ valid_from: string | null;
2861
+ valid_until: string | null;
2712
2862
  };
2713
2863
  Insert: {
2714
2864
  buyer_organization_id?: string | null;
2715
- buyer_organization_name?: string | null;
2716
2865
  connection_id: string;
2717
- data: import("./types").Json;
2718
- floriday_connection_id: string;
2866
+ data?: import("./types").Json;
2867
+ fetched_at?: string;
2868
+ floriday_id: string;
2869
+ id?: string;
2719
2870
  is_deleted?: boolean;
2720
- sequence_number: number;
2871
+ sequence_number?: number;
2721
2872
  status?: string | null;
2722
- synced_at?: string;
2873
+ updated_at?: string;
2874
+ valid_from?: string | null;
2875
+ valid_until?: string | null;
2723
2876
  };
2724
2877
  Update: {
2725
2878
  buyer_organization_id?: string | null;
2726
- buyer_organization_name?: string | null;
2727
2879
  connection_id?: string;
2728
2880
  data?: import("./types").Json;
2729
- floriday_connection_id?: string;
2881
+ fetched_at?: string;
2882
+ floriday_id?: string;
2883
+ id?: string;
2730
2884
  is_deleted?: boolean;
2731
2885
  sequence_number?: number;
2732
2886
  status?: string | null;
2733
- synced_at?: string;
2887
+ updated_at?: string;
2888
+ valid_from?: string | null;
2889
+ valid_until?: string | null;
2734
2890
  };
2735
2891
  Relationships: [{
2736
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2892
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2737
2893
  columns: ["connection_id"];
2738
2894
  isOneToOne: false;
2739
2895
  referencedRelation: "floriday_connections";
2740
2896
  referencedColumns: ["id"];
2741
2897
  }];
2742
2898
  };
2743
- floriday_customers_cache: {
2899
+ floriday_auction_letters_cache: {
2744
2900
  Row: {
2745
- connection_id: string | null;
2746
- data: import("./types").Json;
2901
+ auction_letter_code: string;
2902
+ clock_supply_id: string;
2903
+ connection_id: string;
2904
+ content_type: string;
2747
2905
  fetched_at: string;
2748
- organization_id: string;
2906
+ id: string;
2907
+ storage_path: string;
2749
2908
  };
2750
2909
  Insert: {
2751
- connection_id?: string | null;
2752
- data?: import("./types").Json;
2910
+ auction_letter_code: string;
2911
+ clock_supply_id: string;
2912
+ connection_id: string;
2913
+ content_type?: string;
2753
2914
  fetched_at?: string;
2754
- organization_id: string;
2915
+ id?: string;
2916
+ storage_path: string;
2755
2917
  };
2756
2918
  Update: {
2757
- connection_id?: string | null;
2758
- data?: import("./types").Json;
2919
+ auction_letter_code?: string;
2920
+ clock_supply_id?: string;
2921
+ connection_id?: string;
2922
+ content_type?: string;
2759
2923
  fetched_at?: string;
2760
- organization_id?: string;
2924
+ id?: string;
2925
+ storage_path?: string;
2761
2926
  };
2762
2927
  Relationships: [{
2763
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
2928
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2764
2929
  columns: ["connection_id"];
2765
2930
  isOneToOne: false;
2766
2931
  referencedRelation: "floriday_connections";
2767
2932
  referencedColumns: ["id"];
2768
2933
  }];
2769
2934
  };
2770
- floriday_network_cache: {
2935
+ floriday_base_items_cache: {
2771
2936
  Row: {
2772
- city: string | null;
2773
2937
  connection_id: string;
2774
- country: string | null;
2775
2938
  data: import("./types").Json;
2776
2939
  fetched_at: string;
2777
- gln: string | null;
2778
- organization_id: string;
2779
- organization_name: string | null;
2940
+ floriday_id: string;
2941
+ is_deleted: boolean;
2942
+ sequence_number: number;
2943
+ updated_at: string;
2780
2944
  };
2781
2945
  Insert: {
2782
- city?: string | null;
2783
2946
  connection_id: string;
2784
- country?: string | null;
2785
- data?: import("./types").Json;
2947
+ data: import("./types").Json;
2786
2948
  fetched_at?: string;
2787
- gln?: string | null;
2949
+ floriday_id: string;
2950
+ is_deleted?: boolean;
2951
+ sequence_number?: number;
2952
+ updated_at?: string;
2953
+ };
2954
+ Update: {
2955
+ connection_id?: string;
2956
+ data?: import("./types").Json;
2957
+ fetched_at?: string;
2958
+ floriday_id?: string;
2959
+ is_deleted?: boolean;
2960
+ sequence_number?: number;
2961
+ updated_at?: string;
2962
+ };
2963
+ Relationships: [{
2964
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2965
+ columns: ["connection_id"];
2966
+ isOneToOne: false;
2967
+ referencedRelation: "floriday_connections";
2968
+ referencedColumns: ["id"];
2969
+ }];
2970
+ };
2971
+ floriday_blanket_orders_cache: {
2972
+ Row: {
2973
+ connection_id: string;
2974
+ contract_id: string | null;
2975
+ created_at: string;
2976
+ data: import("./types").Json;
2977
+ fetched_at: string;
2978
+ floriday_id: string;
2979
+ id: string;
2980
+ is_deleted: boolean;
2981
+ sequence_number: number;
2982
+ updated_at: string;
2983
+ };
2984
+ Insert: {
2985
+ connection_id: string;
2986
+ contract_id?: string | null;
2987
+ created_at?: string;
2988
+ data: import("./types").Json;
2989
+ fetched_at?: string;
2990
+ floriday_id: string;
2991
+ id?: string;
2992
+ is_deleted?: boolean;
2993
+ sequence_number?: number;
2994
+ updated_at?: string;
2995
+ };
2996
+ Update: {
2997
+ connection_id?: string;
2998
+ contract_id?: string | null;
2999
+ created_at?: string;
3000
+ data?: import("./types").Json;
3001
+ fetched_at?: string;
3002
+ floriday_id?: string;
3003
+ id?: string;
3004
+ is_deleted?: boolean;
3005
+ sequence_number?: number;
3006
+ updated_at?: string;
3007
+ };
3008
+ Relationships: [{
3009
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3010
+ columns: ["connection_id"];
3011
+ isOneToOne: false;
3012
+ referencedRelation: "floriday_connections";
3013
+ referencedColumns: ["id"];
3014
+ }];
3015
+ };
3016
+ floriday_carriers_cache: {
3017
+ Row: {
3018
+ connection_id: string | null;
3019
+ created_at: string;
3020
+ data: import("./types").Json;
3021
+ fetched_at: string;
3022
+ gln_code: string | null;
3023
+ id: string;
3024
+ name: string | null;
3025
+ organization_id: string;
3026
+ updated_at: string;
3027
+ };
3028
+ Insert: {
3029
+ connection_id?: string | null;
3030
+ created_at?: string;
3031
+ data: import("./types").Json;
3032
+ fetched_at?: string;
3033
+ gln_code?: string | null;
3034
+ id?: string;
3035
+ name?: string | null;
3036
+ organization_id: string;
3037
+ updated_at?: string;
3038
+ };
3039
+ Update: {
3040
+ connection_id?: string | null;
3041
+ created_at?: string;
3042
+ data?: import("./types").Json;
3043
+ fetched_at?: string;
3044
+ gln_code?: string | null;
3045
+ id?: string;
3046
+ name?: string | null;
3047
+ organization_id?: string;
3048
+ updated_at?: string;
3049
+ };
3050
+ Relationships: [{
3051
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3052
+ columns: ["connection_id"];
3053
+ isOneToOne: false;
3054
+ referencedRelation: "floriday_connections";
3055
+ referencedColumns: ["id"];
3056
+ }];
3057
+ };
3058
+ floriday_clock_presales_cache: {
3059
+ Row: {
3060
+ buyer_organization_id: string | null;
3061
+ clock_supply_id: string | null;
3062
+ connection_id: string;
3063
+ data: import("./types").Json;
3064
+ fetched_at: string;
3065
+ floriday_id: string;
3066
+ id: string;
3067
+ is_deleted: boolean;
3068
+ sequence_number: number;
3069
+ updated_at: string;
3070
+ };
3071
+ Insert: {
3072
+ buyer_organization_id?: string | null;
3073
+ clock_supply_id?: string | null;
3074
+ connection_id: string;
3075
+ data?: import("./types").Json;
3076
+ fetched_at?: string;
3077
+ floriday_id: string;
3078
+ id?: string;
3079
+ is_deleted?: boolean;
3080
+ sequence_number?: number;
3081
+ updated_at?: string;
3082
+ };
3083
+ Update: {
3084
+ buyer_organization_id?: string | null;
3085
+ clock_supply_id?: string | null;
3086
+ connection_id?: string;
3087
+ data?: import("./types").Json;
3088
+ fetched_at?: string;
3089
+ floriday_id?: string;
3090
+ id?: string;
3091
+ is_deleted?: boolean;
3092
+ sequence_number?: number;
3093
+ updated_at?: string;
3094
+ };
3095
+ Relationships: [{
3096
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3097
+ columns: ["connection_id"];
3098
+ isOneToOne: false;
3099
+ referencedRelation: "floriday_connections";
3100
+ referencedColumns: ["id"];
3101
+ }];
3102
+ };
3103
+ floriday_clock_supplies_cache: {
3104
+ Row: {
3105
+ auction_date: string | null;
3106
+ connection_id: string;
3107
+ data: import("./types").Json;
3108
+ fetched_at: string;
3109
+ floriday_id: string;
3110
+ id: string;
3111
+ is_deleted: boolean;
3112
+ sequence_number: number;
3113
+ status: string | null;
3114
+ trade_item_id: string | null;
3115
+ updated_at: string;
3116
+ };
3117
+ Insert: {
3118
+ auction_date?: string | null;
3119
+ connection_id: string;
3120
+ data?: import("./types").Json;
3121
+ fetched_at?: string;
3122
+ floriday_id: string;
3123
+ id?: string;
3124
+ is_deleted?: boolean;
3125
+ sequence_number?: number;
3126
+ status?: string | null;
3127
+ trade_item_id?: string | null;
3128
+ updated_at?: string;
3129
+ };
3130
+ Update: {
3131
+ auction_date?: string | null;
3132
+ connection_id?: string;
3133
+ data?: import("./types").Json;
3134
+ fetched_at?: string;
3135
+ floriday_id?: string;
3136
+ id?: string;
3137
+ is_deleted?: boolean;
3138
+ sequence_number?: number;
3139
+ status?: string | null;
3140
+ trade_item_id?: string | null;
3141
+ updated_at?: string;
3142
+ };
3143
+ Relationships: [{
3144
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3145
+ columns: ["connection_id"];
3146
+ isOneToOne: false;
3147
+ referencedRelation: "floriday_connections";
3148
+ referencedColumns: ["id"];
3149
+ }];
3150
+ };
3151
+ floriday_code_lists_cache: {
3152
+ Row: {
3153
+ code: string;
3154
+ environment: string;
3155
+ label: string | null;
3156
+ list_name: string;
3157
+ payload: import("./types").Json | null;
3158
+ updated_at: string;
3159
+ };
3160
+ Insert: {
3161
+ code: string;
3162
+ environment: string;
3163
+ label?: string | null;
3164
+ list_name: string;
3165
+ payload?: import("./types").Json | null;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ code?: string;
3170
+ environment?: string;
3171
+ label?: string | null;
3172
+ list_name?: string;
3173
+ payload?: import("./types").Json | null;
3174
+ updated_at?: string;
3175
+ };
3176
+ Relationships: [];
3177
+ };
3178
+ floriday_collections_cache: {
3179
+ Row: {
3180
+ connection_id: string;
3181
+ data: import("./types").Json;
3182
+ fetched_at: string;
3183
+ floriday_id: string;
3184
+ is_deleted: boolean;
3185
+ sequence_number: number;
3186
+ updated_at: string;
3187
+ };
3188
+ Insert: {
3189
+ connection_id: string;
3190
+ data: import("./types").Json;
3191
+ fetched_at?: string;
3192
+ floriday_id: string;
3193
+ is_deleted?: boolean;
3194
+ sequence_number?: number;
3195
+ updated_at?: string;
3196
+ };
3197
+ Update: {
3198
+ connection_id?: string;
3199
+ data?: import("./types").Json;
3200
+ fetched_at?: string;
3201
+ floriday_id?: string;
3202
+ is_deleted?: boolean;
3203
+ sequence_number?: number;
3204
+ updated_at?: string;
3205
+ };
3206
+ Relationships: [{
3207
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3208
+ columns: ["connection_id"];
3209
+ isOneToOne: false;
3210
+ referencedRelation: "floriday_connections";
3211
+ referencedColumns: ["id"];
3212
+ }];
3213
+ };
3214
+ floriday_commercial_service_types_cache: {
3215
+ Row: {
3216
+ connection_id: string;
3217
+ data: import("./types").Json;
3218
+ fetched_at: string;
3219
+ floriday_id: string;
3220
+ is_deleted: boolean;
3221
+ sequence_number: number;
3222
+ updated_at: string;
3223
+ };
3224
+ Insert: {
3225
+ connection_id: string;
3226
+ data: import("./types").Json;
3227
+ fetched_at?: string;
3228
+ floriday_id: string;
3229
+ is_deleted?: boolean;
3230
+ sequence_number?: number;
3231
+ updated_at?: string;
3232
+ };
3233
+ Update: {
3234
+ connection_id?: string;
3235
+ data?: import("./types").Json;
3236
+ fetched_at?: string;
3237
+ floriday_id?: string;
3238
+ is_deleted?: boolean;
3239
+ sequence_number?: number;
3240
+ updated_at?: string;
3241
+ };
3242
+ Relationships: [{
3243
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3244
+ columns: ["connection_id"];
3245
+ isOneToOne: false;
3246
+ referencedRelation: "floriday_connections";
3247
+ referencedColumns: ["id"];
3248
+ }];
3249
+ };
3250
+ floriday_connections: {
3251
+ Row: {
3252
+ access_token: string | null;
3253
+ api_key: string;
3254
+ client_id: string;
3255
+ client_secret: string;
3256
+ created_at: string;
3257
+ customers_endpoint: string | null;
3258
+ environment: string;
3259
+ gln_code: string | null;
3260
+ id: string;
3261
+ is_active: boolean;
3262
+ label: string;
3263
+ organization_name: string | null;
3264
+ preferred_warehouse_id: string | null;
3265
+ preferred_warehouse_name: string | null;
3266
+ token_expires_at: string | null;
3267
+ updated_at: string;
3268
+ };
3269
+ Insert: {
3270
+ access_token?: string | null;
3271
+ api_key: string;
3272
+ client_id: string;
3273
+ client_secret: string;
3274
+ created_at?: string;
3275
+ customers_endpoint?: string | null;
3276
+ environment: string;
3277
+ gln_code?: string | null;
3278
+ id?: string;
3279
+ is_active?: boolean;
3280
+ label?: string;
3281
+ organization_name?: string | null;
3282
+ preferred_warehouse_id?: string | null;
3283
+ preferred_warehouse_name?: string | null;
3284
+ token_expires_at?: string | null;
3285
+ updated_at?: string;
3286
+ };
3287
+ Update: {
3288
+ access_token?: string | null;
3289
+ api_key?: string;
3290
+ client_id?: string;
3291
+ client_secret?: string;
3292
+ created_at?: string;
3293
+ customers_endpoint?: string | null;
3294
+ environment?: string;
3295
+ gln_code?: string | null;
3296
+ id?: string;
3297
+ is_active?: boolean;
3298
+ label?: string;
3299
+ organization_name?: string | null;
3300
+ preferred_warehouse_id?: string | null;
3301
+ preferred_warehouse_name?: string | null;
3302
+ token_expires_at?: string | null;
3303
+ updated_at?: string;
3304
+ };
3305
+ Relationships: [];
3306
+ };
3307
+ floriday_connections_cache: {
3308
+ Row: {
3309
+ buyer_organization_id: string | null;
3310
+ buyer_organization_name: string | null;
3311
+ connection_id: string;
3312
+ data: import("./types").Json;
3313
+ floriday_connection_id: string;
3314
+ is_deleted: boolean;
3315
+ sequence_number: number;
3316
+ status: string | null;
3317
+ synced_at: string;
3318
+ };
3319
+ Insert: {
3320
+ buyer_organization_id?: string | null;
3321
+ buyer_organization_name?: string | null;
3322
+ connection_id: string;
3323
+ data: import("./types").Json;
3324
+ floriday_connection_id: string;
3325
+ is_deleted?: boolean;
3326
+ sequence_number: number;
3327
+ status?: string | null;
3328
+ synced_at?: string;
3329
+ };
3330
+ Update: {
3331
+ buyer_organization_id?: string | null;
3332
+ buyer_organization_name?: string | null;
3333
+ connection_id?: string;
3334
+ data?: import("./types").Json;
3335
+ floriday_connection_id?: string;
3336
+ is_deleted?: boolean;
3337
+ sequence_number?: number;
3338
+ status?: string | null;
3339
+ synced_at?: string;
3340
+ };
3341
+ Relationships: [{
3342
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3343
+ columns: ["connection_id"];
3344
+ isOneToOne: false;
3345
+ referencedRelation: "floriday_connections";
3346
+ referencedColumns: ["id"];
3347
+ }];
3348
+ };
3349
+ floriday_contract_trade_item_groups_cache: {
3350
+ Row: {
3351
+ connection_id: string;
3352
+ data: import("./types").Json;
3353
+ fetched_at: string;
3354
+ floriday_id: string;
3355
+ is_deleted: boolean;
3356
+ sequence_number: number;
3357
+ updated_at: string;
3358
+ };
3359
+ Insert: {
3360
+ connection_id: string;
3361
+ data: import("./types").Json;
3362
+ fetched_at?: string;
3363
+ floriday_id: string;
3364
+ is_deleted?: boolean;
3365
+ sequence_number?: number;
3366
+ updated_at?: string;
3367
+ };
3368
+ Update: {
3369
+ connection_id?: string;
3370
+ data?: import("./types").Json;
3371
+ fetched_at?: string;
3372
+ floriday_id?: string;
3373
+ is_deleted?: boolean;
3374
+ sequence_number?: number;
3375
+ updated_at?: string;
3376
+ };
3377
+ Relationships: [{
3378
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3379
+ columns: ["connection_id"];
3380
+ isOneToOne: false;
3381
+ referencedRelation: "floriday_connections";
3382
+ referencedColumns: ["id"];
3383
+ }];
3384
+ };
3385
+ floriday_contracts_cache: {
3386
+ Row: {
3387
+ connection_id: string;
3388
+ created_at: string;
3389
+ data: import("./types").Json;
3390
+ fetched_at: string;
3391
+ floriday_id: string;
3392
+ id: string;
3393
+ is_deleted: boolean;
3394
+ sequence_number: number;
3395
+ updated_at: string;
3396
+ };
3397
+ Insert: {
3398
+ connection_id: string;
3399
+ created_at?: string;
3400
+ data: import("./types").Json;
3401
+ fetched_at?: string;
3402
+ floriday_id: string;
3403
+ id?: string;
3404
+ is_deleted?: boolean;
3405
+ sequence_number?: number;
3406
+ updated_at?: string;
3407
+ };
3408
+ Update: {
3409
+ connection_id?: string;
3410
+ created_at?: string;
3411
+ data?: import("./types").Json;
3412
+ fetched_at?: string;
3413
+ floriday_id?: string;
3414
+ id?: string;
3415
+ is_deleted?: boolean;
3416
+ sequence_number?: number;
3417
+ updated_at?: string;
3418
+ };
3419
+ Relationships: [{
3420
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3421
+ columns: ["connection_id"];
3422
+ isOneToOne: false;
3423
+ referencedRelation: "floriday_connections";
3424
+ referencedColumns: ["id"];
3425
+ }];
3426
+ };
3427
+ floriday_customer_sticker_pdfs_cache: {
3428
+ Row: {
3429
+ byte_size: number | null;
3430
+ connection_id: string;
3431
+ content_type: string;
3432
+ created_at: string;
3433
+ fetched_at: string;
3434
+ id: string;
3435
+ sticker_id: string;
3436
+ storage_path: string;
3437
+ };
3438
+ Insert: {
3439
+ byte_size?: number | null;
3440
+ connection_id: string;
3441
+ content_type?: string;
3442
+ created_at?: string;
3443
+ fetched_at?: string;
3444
+ id?: string;
3445
+ sticker_id: string;
3446
+ storage_path: string;
3447
+ };
3448
+ Update: {
3449
+ byte_size?: number | null;
3450
+ connection_id?: string;
3451
+ content_type?: string;
3452
+ created_at?: string;
3453
+ fetched_at?: string;
3454
+ id?: string;
3455
+ sticker_id?: string;
3456
+ storage_path?: string;
3457
+ };
3458
+ Relationships: [{
3459
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3460
+ columns: ["connection_id"];
3461
+ isOneToOne: false;
3462
+ referencedRelation: "floriday_connections";
3463
+ referencedColumns: ["id"];
3464
+ }];
3465
+ };
3466
+ floriday_customer_stickers_cache: {
3467
+ Row: {
3468
+ connection_id: string;
3469
+ created_at: string;
3470
+ data: import("./types").Json;
3471
+ fetched_at: string;
3472
+ floriday_id: string;
3473
+ id: string;
3474
+ is_deleted: boolean;
3475
+ quantity: number | null;
3476
+ sales_order_id: string | null;
3477
+ sequence_number: number;
3478
+ status: string | null;
3479
+ trade_item_id: string | null;
3480
+ updated_at: string;
3481
+ };
3482
+ Insert: {
3483
+ connection_id: string;
3484
+ created_at?: string;
3485
+ data?: import("./types").Json;
3486
+ fetched_at?: string;
3487
+ floriday_id: string;
3488
+ id?: string;
3489
+ is_deleted?: boolean;
3490
+ quantity?: number | null;
3491
+ sales_order_id?: string | null;
3492
+ sequence_number?: number;
3493
+ status?: string | null;
3494
+ trade_item_id?: string | null;
3495
+ updated_at?: string;
3496
+ };
3497
+ Update: {
3498
+ connection_id?: string;
3499
+ created_at?: string;
3500
+ data?: import("./types").Json;
3501
+ fetched_at?: string;
3502
+ floriday_id?: string;
3503
+ id?: string;
3504
+ is_deleted?: boolean;
3505
+ quantity?: number | null;
3506
+ sales_order_id?: string | null;
3507
+ sequence_number?: number;
3508
+ status?: string | null;
3509
+ trade_item_id?: string | null;
3510
+ updated_at?: string;
3511
+ };
3512
+ Relationships: [{
3513
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3514
+ columns: ["connection_id"];
3515
+ isOneToOne: false;
3516
+ referencedRelation: "floriday_connections";
3517
+ referencedColumns: ["id"];
3518
+ }];
3519
+ };
3520
+ floriday_customers_cache: {
3521
+ Row: {
3522
+ connection_id: string | null;
3523
+ data: import("./types").Json;
3524
+ fetched_at: string;
3525
+ gln_code: string | null;
3526
+ is_deleted: boolean;
3527
+ name: string | null;
3528
+ organization_id: string;
3529
+ sequence_number: number | null;
3530
+ };
3531
+ Insert: {
3532
+ connection_id?: string | null;
3533
+ data?: import("./types").Json;
3534
+ fetched_at?: string;
3535
+ gln_code?: string | null;
3536
+ is_deleted?: boolean;
3537
+ name?: string | null;
3538
+ organization_id: string;
3539
+ sequence_number?: number | null;
3540
+ };
3541
+ Update: {
3542
+ connection_id?: string | null;
3543
+ data?: import("./types").Json;
3544
+ fetched_at?: string;
3545
+ gln_code?: string | null;
3546
+ is_deleted?: boolean;
3547
+ name?: string | null;
3548
+ organization_id?: string;
3549
+ sequence_number?: number | null;
3550
+ };
3551
+ Relationships: [{
3552
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3553
+ columns: ["connection_id"];
3554
+ isOneToOne: false;
3555
+ referencedRelation: "floriday_connections";
3556
+ referencedColumns: ["id"];
3557
+ }];
3558
+ };
3559
+ floriday_delivery_condition_sets_cache: {
3560
+ Row: {
3561
+ connection_id: string;
3562
+ data: import("./types").Json;
3563
+ fetched_at: string;
3564
+ floriday_id: string;
3565
+ is_deleted: boolean;
3566
+ sequence_number: number;
3567
+ updated_at: string;
3568
+ };
3569
+ Insert: {
3570
+ connection_id: string;
3571
+ data: import("./types").Json;
3572
+ fetched_at?: string;
3573
+ floriday_id: string;
3574
+ is_deleted?: boolean;
3575
+ sequence_number?: number;
3576
+ updated_at?: string;
3577
+ };
3578
+ Update: {
3579
+ connection_id?: string;
3580
+ data?: import("./types").Json;
3581
+ fetched_at?: string;
3582
+ floriday_id?: string;
3583
+ is_deleted?: boolean;
3584
+ sequence_number?: number;
3585
+ updated_at?: string;
3586
+ };
3587
+ Relationships: [{
3588
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3589
+ columns: ["connection_id"];
3590
+ isOneToOne: false;
3591
+ referencedRelation: "floriday_connections";
3592
+ referencedColumns: ["id"];
3593
+ }];
3594
+ };
3595
+ floriday_delivery_locations_cache: {
3596
+ Row: {
3597
+ connection_id: string;
3598
+ data: import("./types").Json;
3599
+ fetched_at: string;
3600
+ floriday_id: string;
3601
+ gln_code: string | null;
3602
+ id: string;
3603
+ is_deleted: boolean;
3604
+ name: string | null;
3605
+ organization_id: string | null;
3606
+ updated_at: string;
3607
+ };
3608
+ Insert: {
3609
+ connection_id: string;
3610
+ data?: import("./types").Json;
3611
+ fetched_at?: string;
3612
+ floriday_id: string;
3613
+ gln_code?: string | null;
3614
+ id?: string;
3615
+ is_deleted?: boolean;
3616
+ name?: string | null;
3617
+ organization_id?: string | null;
3618
+ updated_at?: string;
3619
+ };
3620
+ Update: {
3621
+ connection_id?: string;
3622
+ data?: import("./types").Json;
3623
+ fetched_at?: string;
3624
+ floriday_id?: string;
3625
+ gln_code?: string | null;
3626
+ id?: string;
3627
+ is_deleted?: boolean;
3628
+ name?: string | null;
3629
+ organization_id?: string | null;
3630
+ updated_at?: string;
3631
+ };
3632
+ Relationships: [{
3633
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3634
+ columns: ["connection_id"];
3635
+ isOneToOne: false;
3636
+ referencedRelation: "floriday_connections";
3637
+ referencedColumns: ["id"];
3638
+ }];
3639
+ };
3640
+ floriday_delivery_orders_cache: {
3641
+ Row: {
3642
+ auction_date: string | null;
3643
+ connection_id: string;
3644
+ data: import("./types").Json;
3645
+ destination_warehouse_id: string | null;
3646
+ fetched_at: string;
3647
+ floriday_id: string;
3648
+ id: string;
3649
+ is_deleted: boolean;
3650
+ sequence_number: number;
3651
+ status: string | null;
3652
+ trade_item_id: string | null;
3653
+ updated_at: string;
3654
+ };
3655
+ Insert: {
3656
+ auction_date?: string | null;
3657
+ connection_id: string;
3658
+ data?: import("./types").Json;
3659
+ destination_warehouse_id?: string | null;
3660
+ fetched_at?: string;
3661
+ floriday_id: string;
3662
+ id?: string;
3663
+ is_deleted?: boolean;
3664
+ sequence_number?: number;
3665
+ status?: string | null;
3666
+ trade_item_id?: string | null;
3667
+ updated_at?: string;
3668
+ };
3669
+ Update: {
3670
+ auction_date?: string | null;
3671
+ connection_id?: string;
3672
+ data?: import("./types").Json;
3673
+ destination_warehouse_id?: string | null;
3674
+ fetched_at?: string;
3675
+ floriday_id?: string;
3676
+ id?: string;
3677
+ is_deleted?: boolean;
3678
+ sequence_number?: number;
3679
+ status?: string | null;
3680
+ trade_item_id?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Relationships: [{
3684
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3685
+ columns: ["connection_id"];
3686
+ isOneToOne: false;
3687
+ referencedRelation: "floriday_connections";
3688
+ referencedColumns: ["id"];
3689
+ }];
3690
+ };
3691
+ floriday_fulfillment_orders_cache: {
3692
+ Row: {
3693
+ auction_date: string | null;
3694
+ connection_id: string;
3695
+ data: import("./types").Json;
3696
+ delivery_order_id: string | null;
3697
+ despatch_warehouse_id: string | null;
3698
+ destination_warehouse_id: string | null;
3699
+ fetched_at: string;
3700
+ floriday_id: string;
3701
+ id: string;
3702
+ is_deleted: boolean | null;
3703
+ latest_delivery_at: string | null;
3704
+ load_carrier_type: string | null;
3705
+ one_label_only: boolean | null;
3706
+ sequence_number: number;
3707
+ status: string | null;
3708
+ };
3709
+ Insert: {
3710
+ auction_date?: string | null;
3711
+ connection_id: string;
3712
+ data: import("./types").Json;
3713
+ delivery_order_id?: string | null;
3714
+ despatch_warehouse_id?: string | null;
3715
+ destination_warehouse_id?: string | null;
3716
+ fetched_at?: string;
3717
+ floriday_id: string;
3718
+ id?: string;
3719
+ is_deleted?: boolean | null;
3720
+ latest_delivery_at?: string | null;
3721
+ load_carrier_type?: string | null;
3722
+ one_label_only?: boolean | null;
3723
+ sequence_number?: number;
3724
+ status?: string | null;
3725
+ };
3726
+ Update: {
3727
+ auction_date?: string | null;
3728
+ connection_id?: string;
3729
+ data?: import("./types").Json;
3730
+ delivery_order_id?: string | null;
3731
+ despatch_warehouse_id?: string | null;
3732
+ destination_warehouse_id?: string | null;
3733
+ fetched_at?: string;
3734
+ floriday_id?: string;
3735
+ id?: string;
3736
+ is_deleted?: boolean | null;
3737
+ latest_delivery_at?: string | null;
3738
+ load_carrier_type?: string | null;
3739
+ one_label_only?: boolean | null;
3740
+ sequence_number?: number;
3741
+ status?: string | null;
3742
+ };
3743
+ Relationships: [{
3744
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3745
+ columns: ["connection_id"];
3746
+ isOneToOne: false;
3747
+ referencedRelation: "floriday_connections";
3748
+ referencedColumns: ["id"];
3749
+ }];
3750
+ };
3751
+ floriday_invoices_cache: {
3752
+ Row: {
3753
+ buyer_organization_id: string | null;
3754
+ connection_id: string;
3755
+ currency: string | null;
3756
+ data: import("./types").Json;
3757
+ fetched_at: string;
3758
+ floriday_id: string;
3759
+ id: string;
3760
+ invoice_date: string | null;
3761
+ invoice_number: string | null;
3762
+ is_deleted: boolean;
3763
+ sequence_number: number;
3764
+ total_amount: number | null;
3765
+ updated_at: string;
3766
+ };
3767
+ Insert: {
3768
+ buyer_organization_id?: string | null;
3769
+ connection_id: string;
3770
+ currency?: string | null;
3771
+ data?: import("./types").Json;
3772
+ fetched_at?: string;
3773
+ floriday_id: string;
3774
+ id?: string;
3775
+ invoice_date?: string | null;
3776
+ invoice_number?: string | null;
3777
+ is_deleted?: boolean;
3778
+ sequence_number?: number;
3779
+ total_amount?: number | null;
3780
+ updated_at?: string;
3781
+ };
3782
+ Update: {
3783
+ buyer_organization_id?: string | null;
3784
+ connection_id?: string;
3785
+ currency?: string | null;
3786
+ data?: import("./types").Json;
3787
+ fetched_at?: string;
3788
+ floriday_id?: string;
3789
+ id?: string;
3790
+ invoice_date?: string | null;
3791
+ invoice_number?: string | null;
3792
+ is_deleted?: boolean;
3793
+ sequence_number?: number;
3794
+ total_amount?: number | null;
3795
+ updated_at?: string;
3796
+ };
3797
+ Relationships: [{
3798
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3799
+ columns: ["connection_id"];
3800
+ isOneToOne: false;
3801
+ referencedRelation: "floriday_connections";
3802
+ referencedColumns: ["id"];
3803
+ }];
3804
+ };
3805
+ floriday_logistic_labels_cache: {
3806
+ Row: {
3807
+ byte_size: number | null;
3808
+ connection_id: string;
3809
+ content_type: string;
3810
+ fetched_at: string;
3811
+ fulfillment_order_id: string;
3812
+ id: string;
3813
+ logistic_label_code: string;
3814
+ storage_path: string;
3815
+ };
3816
+ Insert: {
3817
+ byte_size?: number | null;
3818
+ connection_id: string;
3819
+ content_type?: string;
3820
+ fetched_at?: string;
3821
+ fulfillment_order_id: string;
3822
+ id?: string;
3823
+ logistic_label_code: string;
3824
+ storage_path: string;
3825
+ };
3826
+ Update: {
3827
+ byte_size?: number | null;
3828
+ connection_id?: string;
3829
+ content_type?: string;
3830
+ fetched_at?: string;
3831
+ fulfillment_order_id?: string;
3832
+ id?: string;
3833
+ logistic_label_code?: string;
3834
+ storage_path?: string;
3835
+ };
3836
+ Relationships: [{
3837
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3838
+ columns: ["connection_id"];
3839
+ isOneToOne: false;
3840
+ referencedRelation: "floriday_connections";
3841
+ referencedColumns: ["id"];
3842
+ }];
3843
+ };
3844
+ floriday_network_cache: {
3845
+ Row: {
3846
+ city: string | null;
3847
+ connection_id: string;
3848
+ country: string | null;
3849
+ data: import("./types").Json;
3850
+ fetched_at: string;
3851
+ gln: string | null;
3852
+ organization_id: string;
3853
+ organization_name: string | null;
3854
+ };
3855
+ Insert: {
3856
+ city?: string | null;
3857
+ connection_id: string;
3858
+ country?: string | null;
3859
+ data?: import("./types").Json;
3860
+ fetched_at?: string;
3861
+ gln?: string | null;
2788
3862
  organization_id: string;
2789
3863
  organization_name?: string | null;
2790
3864
  };
2791
3865
  Update: {
2792
- city?: string | null;
3866
+ city?: string | null;
3867
+ connection_id?: string;
3868
+ country?: string | null;
3869
+ data?: import("./types").Json;
3870
+ fetched_at?: string;
3871
+ gln?: string | null;
3872
+ organization_id?: string;
3873
+ organization_name?: string | null;
3874
+ };
3875
+ Relationships: [];
3876
+ };
3877
+ floriday_network_sync_state: {
3878
+ Row: {
3879
+ connection_id: string;
3880
+ last_error: string | null;
3881
+ last_sequence_number: number;
3882
+ last_synced_at: string | null;
3883
+ updated_at: string;
3884
+ };
3885
+ Insert: {
3886
+ connection_id: string;
3887
+ last_error?: string | null;
3888
+ last_sequence_number?: number;
3889
+ last_synced_at?: string | null;
3890
+ updated_at?: string;
3891
+ };
3892
+ Update: {
3893
+ connection_id?: string;
3894
+ last_error?: string | null;
3895
+ last_sequence_number?: number;
3896
+ last_synced_at?: string | null;
3897
+ updated_at?: string;
3898
+ };
3899
+ Relationships: [];
3900
+ };
3901
+ floriday_order_number_map: {
3902
+ Row: {
3903
+ created_at: string;
3904
+ floriday_id: string;
3905
+ order_number: string;
3906
+ };
3907
+ Insert: {
3908
+ created_at?: string;
3909
+ floriday_id: string;
3910
+ order_number: string;
3911
+ };
3912
+ Update: {
3913
+ created_at?: string;
3914
+ floriday_id?: string;
3915
+ order_number?: string;
3916
+ };
3917
+ Relationships: [];
3918
+ };
3919
+ floriday_packings_cache: {
3920
+ Row: {
3921
+ connection_id: string;
3922
+ data: import("./types").Json;
3923
+ fetched_at: string;
3924
+ floriday_id: string;
3925
+ id: string;
3926
+ is_deleted: boolean;
3927
+ sequence_number: number;
3928
+ updated_at: string;
3929
+ };
3930
+ Insert: {
3931
+ connection_id: string;
3932
+ data?: import("./types").Json;
3933
+ fetched_at?: string;
3934
+ floriday_id: string;
3935
+ id?: string;
3936
+ is_deleted?: boolean;
3937
+ sequence_number?: number;
3938
+ updated_at?: string;
3939
+ };
3940
+ Update: {
2793
3941
  connection_id?: string;
2794
- country?: string | null;
2795
3942
  data?: import("./types").Json;
2796
3943
  fetched_at?: string;
2797
- gln?: string | null;
2798
- organization_id?: string;
2799
- organization_name?: string | null;
3944
+ floriday_id?: string;
3945
+ id?: string;
3946
+ is_deleted?: boolean;
3947
+ sequence_number?: number;
3948
+ updated_at?: string;
2800
3949
  };
2801
- Relationships: [];
3950
+ Relationships: [{
3951
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
3952
+ columns: ["connection_id"];
3953
+ isOneToOne: false;
3954
+ referencedRelation: "floriday_connections";
3955
+ referencedColumns: ["id"];
3956
+ }];
2802
3957
  };
2803
- floriday_network_sync_state: {
3958
+ floriday_price_groups_cache: {
2804
3959
  Row: {
2805
3960
  connection_id: string;
2806
- last_error: string | null;
2807
- last_sequence_number: number;
2808
- last_synced_at: string | null;
3961
+ data: import("./types").Json;
3962
+ fetched_at: string;
3963
+ floriday_id: string;
3964
+ is_deleted: boolean;
3965
+ sequence_number: number;
2809
3966
  updated_at: string;
2810
3967
  };
2811
3968
  Insert: {
2812
3969
  connection_id: string;
2813
- last_error?: string | null;
2814
- last_sequence_number?: number;
2815
- last_synced_at?: string | null;
3970
+ data: import("./types").Json;
3971
+ fetched_at?: string;
3972
+ floriday_id: string;
3973
+ is_deleted?: boolean;
3974
+ sequence_number?: number;
2816
3975
  updated_at?: string;
2817
3976
  };
2818
3977
  Update: {
2819
3978
  connection_id?: string;
2820
- last_error?: string | null;
2821
- last_sequence_number?: number;
2822
- last_synced_at?: string | null;
3979
+ data?: import("./types").Json;
3980
+ fetched_at?: string;
3981
+ floriday_id?: string;
3982
+ is_deleted?: boolean;
3983
+ sequence_number?: number;
2823
3984
  updated_at?: string;
2824
3985
  };
3986
+ Relationships: [{
3987
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
3988
+ columns: ["connection_id"];
3989
+ isOneToOne: false;
3990
+ referencedRelation: "floriday_connections";
3991
+ referencedColumns: ["id"];
3992
+ }];
3993
+ };
3994
+ floriday_resource_schemas: {
3995
+ Row: {
3996
+ enums: import("./types").Json;
3997
+ fetched_at: string;
3998
+ resource: string;
3999
+ schema: import("./types").Json;
4000
+ source_url: string | null;
4001
+ version: string;
4002
+ };
4003
+ Insert: {
4004
+ enums?: import("./types").Json;
4005
+ fetched_at?: string;
4006
+ resource: string;
4007
+ schema: import("./types").Json;
4008
+ source_url?: string | null;
4009
+ version: string;
4010
+ };
4011
+ Update: {
4012
+ enums?: import("./types").Json;
4013
+ fetched_at?: string;
4014
+ resource?: string;
4015
+ schema?: import("./types").Json;
4016
+ source_url?: string | null;
4017
+ version?: string;
4018
+ };
2825
4019
  Relationships: [];
2826
4020
  };
4021
+ floriday_sales_strategies_cache: {
4022
+ Row: {
4023
+ connection_id: string;
4024
+ data: import("./types").Json;
4025
+ fetched_at: string;
4026
+ floriday_id: string;
4027
+ is_deleted: boolean;
4028
+ sequence_number: number;
4029
+ updated_at: string;
4030
+ };
4031
+ Insert: {
4032
+ connection_id: string;
4033
+ data: import("./types").Json;
4034
+ fetched_at?: string;
4035
+ floriday_id: string;
4036
+ is_deleted?: boolean;
4037
+ sequence_number?: number;
4038
+ updated_at?: string;
4039
+ };
4040
+ Update: {
4041
+ connection_id?: string;
4042
+ data?: import("./types").Json;
4043
+ fetched_at?: string;
4044
+ floriday_id?: string;
4045
+ is_deleted?: boolean;
4046
+ sequence_number?: number;
4047
+ updated_at?: string;
4048
+ };
4049
+ Relationships: [{
4050
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4051
+ columns: ["connection_id"];
4052
+ isOneToOne: false;
4053
+ referencedRelation: "floriday_connections";
4054
+ referencedColumns: ["id"];
4055
+ }];
4056
+ };
2827
4057
  floriday_salesorders_cache: {
2828
4058
  Row: {
2829
4059
  buyer_organization_id: string | null;
@@ -2889,7 +4119,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2889
4119
  connection_id: string;
2890
4120
  entity_type: string;
2891
4121
  last_error: string | null;
4122
+ last_items_processed: number | null;
2892
4123
  last_sequence_number: number;
4124
+ last_success_at: string | null;
2893
4125
  last_synced_at: string | null;
2894
4126
  updated_at: string;
2895
4127
  };
@@ -2897,7 +4129,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2897
4129
  connection_id: string;
2898
4130
  entity_type: string;
2899
4131
  last_error?: string | null;
4132
+ last_items_processed?: number | null;
2900
4133
  last_sequence_number?: number;
4134
+ last_success_at?: string | null;
2901
4135
  last_synced_at?: string | null;
2902
4136
  updated_at?: string;
2903
4137
  };
@@ -2905,7 +4139,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2905
4139
  connection_id?: string;
2906
4140
  entity_type?: string;
2907
4141
  last_error?: string | null;
4142
+ last_items_processed?: number | null;
2908
4143
  last_sequence_number?: number;
4144
+ last_success_at?: string | null;
2909
4145
  last_synced_at?: string | null;
2910
4146
  updated_at?: string;
2911
4147
  };
@@ -2953,6 +4189,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2953
4189
  referencedColumns: ["id"];
2954
4190
  }];
2955
4191
  };
4192
+ floriday_trade_item_classifications_cache: {
4193
+ Row: {
4194
+ connection_id: string;
4195
+ data: import("./types").Json;
4196
+ fetched_at: string;
4197
+ floriday_id: string;
4198
+ id: string;
4199
+ is_deleted: boolean;
4200
+ sequence_number: number;
4201
+ updated_at: string;
4202
+ };
4203
+ Insert: {
4204
+ connection_id: string;
4205
+ data: import("./types").Json;
4206
+ fetched_at?: string;
4207
+ floriday_id: string;
4208
+ id?: string;
4209
+ is_deleted?: boolean;
4210
+ sequence_number?: number;
4211
+ updated_at?: string;
4212
+ };
4213
+ Update: {
4214
+ connection_id?: string;
4215
+ data?: import("./types").Json;
4216
+ fetched_at?: string;
4217
+ floriday_id?: string;
4218
+ id?: string;
4219
+ is_deleted?: boolean;
4220
+ sequence_number?: number;
4221
+ updated_at?: string;
4222
+ };
4223
+ Relationships: [{
4224
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4225
+ columns: ["connection_id"];
4226
+ isOneToOne: false;
4227
+ referencedRelation: "floriday_connections";
4228
+ referencedColumns: ["id"];
4229
+ }];
4230
+ };
2956
4231
  floriday_trade_items_cache: {
2957
4232
  Row: {
2958
4233
  connection_id: string;
@@ -2971,15 +4246,168 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2971
4246
  sequence_number?: number;
2972
4247
  };
2973
4248
  Update: {
2974
- connection_id?: string;
2975
- data?: import("./types").Json;
2976
- fetched_at?: string;
2977
- floriday_id?: string;
2978
- is_deleted?: boolean;
2979
- sequence_number?: number;
4249
+ connection_id?: string;
4250
+ data?: import("./types").Json;
4251
+ fetched_at?: string;
4252
+ floriday_id?: string;
4253
+ is_deleted?: boolean;
4254
+ sequence_number?: number;
4255
+ };
4256
+ Relationships: [{
4257
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4258
+ columns: ["connection_id"];
4259
+ isOneToOne: false;
4260
+ referencedRelation: "floriday_connections";
4261
+ referencedColumns: ["id"];
4262
+ }];
4263
+ };
4264
+ floriday_trips_cache: {
4265
+ Row: {
4266
+ carrier_organization_id: string | null;
4267
+ connection_id: string;
4268
+ data: import("./types").Json;
4269
+ fetched_at: string;
4270
+ floriday_id: string;
4271
+ id: string;
4272
+ is_deleted: boolean;
4273
+ sequence_number: number;
4274
+ status: string | null;
4275
+ trip_date: string | null;
4276
+ updated_at: string;
4277
+ };
4278
+ Insert: {
4279
+ carrier_organization_id?: string | null;
4280
+ connection_id: string;
4281
+ data?: import("./types").Json;
4282
+ fetched_at?: string;
4283
+ floriday_id: string;
4284
+ id?: string;
4285
+ is_deleted?: boolean;
4286
+ sequence_number?: number;
4287
+ status?: string | null;
4288
+ trip_date?: string | null;
4289
+ updated_at?: string;
4290
+ };
4291
+ Update: {
4292
+ carrier_organization_id?: string | null;
4293
+ connection_id?: string;
4294
+ data?: import("./types").Json;
4295
+ fetched_at?: string;
4296
+ floriday_id?: string;
4297
+ id?: string;
4298
+ is_deleted?: boolean;
4299
+ sequence_number?: number;
4300
+ status?: string | null;
4301
+ trip_date?: string | null;
4302
+ updated_at?: string;
4303
+ };
4304
+ Relationships: [{
4305
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4306
+ columns: ["connection_id"];
4307
+ isOneToOne: false;
4308
+ referencedRelation: "floriday_connections";
4309
+ referencedColumns: ["id"];
4310
+ }];
4311
+ };
4312
+ floriday_warehouses_cache: {
4313
+ Row: {
4314
+ connection_id: string;
4315
+ data: import("./types").Json;
4316
+ fetched_at: string;
4317
+ floriday_id: string;
4318
+ gln_code: string | null;
4319
+ id: string;
4320
+ is_default: boolean;
4321
+ is_deleted: boolean;
4322
+ name: string | null;
4323
+ updated_at: string;
4324
+ };
4325
+ Insert: {
4326
+ connection_id: string;
4327
+ data?: import("./types").Json;
4328
+ fetched_at?: string;
4329
+ floriday_id: string;
4330
+ gln_code?: string | null;
4331
+ id?: string;
4332
+ is_default?: boolean;
4333
+ is_deleted?: boolean;
4334
+ name?: string | null;
4335
+ updated_at?: string;
4336
+ };
4337
+ Update: {
4338
+ connection_id?: string;
4339
+ data?: import("./types").Json;
4340
+ fetched_at?: string;
4341
+ floriday_id?: string;
4342
+ gln_code?: string | null;
4343
+ id?: string;
4344
+ is_default?: boolean;
4345
+ is_deleted?: boolean;
4346
+ name?: string | null;
4347
+ updated_at?: string;
4348
+ };
4349
+ Relationships: [{
4350
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4351
+ columns: ["connection_id"];
4352
+ isOneToOne: false;
4353
+ referencedRelation: "floriday_connections";
4354
+ referencedColumns: ["id"];
4355
+ }];
4356
+ };
4357
+ floriday_write_log: {
4358
+ Row: {
4359
+ action: string;
4360
+ caller: string;
4361
+ connection_id: string | null;
4362
+ created_at: string;
4363
+ error: string | null;
4364
+ floriday_id: string | null;
4365
+ http_status: number | null;
4366
+ id: string;
4367
+ idempotency_key: string | null;
4368
+ module: string | null;
4369
+ ok: boolean;
4370
+ request: import("./types").Json | null;
4371
+ resource: string;
4372
+ response: import("./types").Json | null;
4373
+ user_id: string | null;
4374
+ };
4375
+ Insert: {
4376
+ action: string;
4377
+ caller?: string;
4378
+ connection_id?: string | null;
4379
+ created_at?: string;
4380
+ error?: string | null;
4381
+ floriday_id?: string | null;
4382
+ http_status?: number | null;
4383
+ id?: string;
4384
+ idempotency_key?: string | null;
4385
+ module?: string | null;
4386
+ ok: boolean;
4387
+ request?: import("./types").Json | null;
4388
+ resource: string;
4389
+ response?: import("./types").Json | null;
4390
+ user_id?: string | null;
4391
+ };
4392
+ Update: {
4393
+ action?: string;
4394
+ caller?: string;
4395
+ connection_id?: string | null;
4396
+ created_at?: string;
4397
+ error?: string | null;
4398
+ floriday_id?: string | null;
4399
+ http_status?: number | null;
4400
+ id?: string;
4401
+ idempotency_key?: string | null;
4402
+ module?: string | null;
4403
+ ok?: boolean;
4404
+ request?: import("./types").Json | null;
4405
+ resource?: string;
4406
+ response?: import("./types").Json | null;
4407
+ user_id?: string | null;
2980
4408
  };
2981
4409
  Relationships: [{
2982
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4410
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2983
4411
  columns: ["connection_id"];
2984
4412
  isOneToOne: false;
2985
4413
  referencedRelation: "floriday_connections";
@@ -3335,6 +4763,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3335
4763
  Row: {
3336
4764
  body_html: string | null;
3337
4765
  body_text: string | null;
4766
+ connection_id: string | null;
3338
4767
  created_at: string;
3339
4768
  error_message: string | null;
3340
4769
  external_id: string | null;
@@ -3353,6 +4782,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3353
4782
  Insert: {
3354
4783
  body_html?: string | null;
3355
4784
  body_text?: string | null;
4785
+ connection_id?: string | null;
3356
4786
  created_at?: string;
3357
4787
  error_message?: string | null;
3358
4788
  external_id?: string | null;
@@ -3371,6 +4801,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3371
4801
  Update: {
3372
4802
  body_html?: string | null;
3373
4803
  body_text?: string | null;
4804
+ connection_id?: string | null;
3374
4805
  created_at?: string;
3375
4806
  error_message?: string | null;
3376
4807
  external_id?: string | null;
@@ -3387,6 +4818,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3387
4818
  updated_at?: string;
3388
4819
  };
3389
4820
  Relationships: [{
4821
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4822
+ columns: ["connection_id"];
4823
+ isOneToOne: false;
4824
+ referencedRelation: "email_auth_connections";
4825
+ referencedColumns: ["id"];
4826
+ }, {
4827
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4828
+ columns: ["connection_id"];
4829
+ isOneToOne: false;
4830
+ referencedRelation: "email_auth_connections_safe";
4831
+ referencedColumns: ["id"];
4832
+ }, {
3390
4833
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3391
4834
  columns: ["profile_id"];
3392
4835
  isOneToOne: false;
@@ -3670,6 +5113,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3670
5113
  role: string;
3671
5114
  tenant_id: string;
3672
5115
  updated_at: string;
5116
+ user_id: string | null;
3673
5117
  };
3674
5118
  Insert: {
3675
5119
  avatar_url?: string | null;
@@ -3685,6 +5129,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3685
5129
  role?: string;
3686
5130
  tenant_id: string;
3687
5131
  updated_at?: string;
5132
+ user_id?: string | null;
3688
5133
  };
3689
5134
  Update: {
3690
5135
  avatar_url?: string | null;
@@ -3700,6 +5145,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3700
5145
  role?: string;
3701
5146
  tenant_id?: string;
3702
5147
  updated_at?: string;
5148
+ user_id?: string | null;
3703
5149
  };
3704
5150
  Relationships: [{
3705
5151
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3836,12 +5282,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3836
5282
  isOneToOne: false;
3837
5283
  referencedRelation: "offer_campaigns";
3838
5284
  referencedColumns: ["id"];
3839
- }, {
3840
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3841
- columns: ["product_id"];
3842
- isOneToOne: false;
3843
- referencedRelation: "products";
3844
- referencedColumns: ["id"];
3845
5285
  }];
3846
5286
  };
3847
5287
  offer_campaigns: {
@@ -4117,6 +5557,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4117
5557
  };
4118
5558
  Relationships: [];
4119
5559
  };
5560
+ order_cart_items: {
5561
+ Row: {
5562
+ cart_id: string;
5563
+ crates: number;
5564
+ crates_per_layer: number;
5565
+ created_at: string;
5566
+ id: string;
5567
+ order_item_id: string | null;
5568
+ plants_per_crate: number;
5569
+ product_id: string | null;
5570
+ product_name: string;
5571
+ };
5572
+ Insert: {
5573
+ cart_id: string;
5574
+ crates: number;
5575
+ crates_per_layer?: number;
5576
+ created_at?: string;
5577
+ id?: string;
5578
+ order_item_id?: string | null;
5579
+ plants_per_crate?: number;
5580
+ product_id?: string | null;
5581
+ product_name: string;
5582
+ };
5583
+ Update: {
5584
+ cart_id?: string;
5585
+ crates?: number;
5586
+ crates_per_layer?: number;
5587
+ created_at?: string;
5588
+ id?: string;
5589
+ order_item_id?: string | null;
5590
+ plants_per_crate?: number;
5591
+ product_id?: string | null;
5592
+ product_name?: string;
5593
+ };
5594
+ Relationships: [{
5595
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5596
+ columns: ["cart_id"];
5597
+ isOneToOne: false;
5598
+ referencedRelation: "order_carts";
5599
+ referencedColumns: ["id"];
5600
+ }, {
5601
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5602
+ columns: ["order_item_id"];
5603
+ isOneToOne: false;
5604
+ referencedRelation: "order_items";
5605
+ referencedColumns: ["id"];
5606
+ }, {
5607
+ foreignKeyName: "order_cart_items_product_id_fkey";
5608
+ columns: ["product_id"];
5609
+ isOneToOne: false;
5610
+ referencedRelation: "products";
5611
+ referencedColumns: ["id"];
5612
+ }];
5613
+ };
5614
+ order_carts: {
5615
+ Row: {
5616
+ cart_number: number;
5617
+ created_at: string;
5618
+ id: string;
5619
+ is_auto: boolean;
5620
+ is_complete: boolean;
5621
+ notes: string | null;
5622
+ order_id: string;
5623
+ updated_at: string;
5624
+ };
5625
+ Insert: {
5626
+ cart_number: number;
5627
+ created_at?: string;
5628
+ id?: string;
5629
+ is_auto?: boolean;
5630
+ is_complete?: boolean;
5631
+ notes?: string | null;
5632
+ order_id: string;
5633
+ updated_at?: string;
5634
+ };
5635
+ Update: {
5636
+ cart_number?: number;
5637
+ created_at?: string;
5638
+ id?: string;
5639
+ is_auto?: boolean;
5640
+ is_complete?: boolean;
5641
+ notes?: string | null;
5642
+ order_id?: string;
5643
+ updated_at?: string;
5644
+ };
5645
+ Relationships: [{
5646
+ foreignKeyName: "order_carts_order_id_fkey";
5647
+ columns: ["order_id"];
5648
+ isOneToOne: false;
5649
+ referencedRelation: "orders";
5650
+ referencedColumns: ["id"];
5651
+ }];
5652
+ };
4120
5653
  order_field_options: {
4121
5654
  Row: {
4122
5655
  created_at: string;
@@ -4228,6 +5761,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4228
5761
  referencedColumns: ["id"];
4229
5762
  }];
4230
5763
  };
5764
+ order_number_counters: {
5765
+ Row: {
5766
+ last_value: number;
5767
+ updated_at: string;
5768
+ year: number;
5769
+ };
5770
+ Insert: {
5771
+ last_value?: number;
5772
+ updated_at?: string;
5773
+ year: number;
5774
+ };
5775
+ Update: {
5776
+ last_value?: number;
5777
+ updated_at?: string;
5778
+ year?: number;
5779
+ };
5780
+ Relationships: [];
5781
+ };
4231
5782
  orders: {
4232
5783
  Row: {
4233
5784
  created_at: string;
@@ -4240,6 +5791,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4240
5791
  notes: string | null;
4241
5792
  order_date: string;
4242
5793
  order_number: string;
5794
+ order_source: string;
4243
5795
  status: string;
4244
5796
  total: string;
4245
5797
  updated_at: string;
@@ -4255,6 +5807,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4255
5807
  notes?: string | null;
4256
5808
  order_date?: string;
4257
5809
  order_number: string;
5810
+ order_source?: string;
4258
5811
  status?: string;
4259
5812
  total?: string;
4260
5813
  updated_at?: string;
@@ -4270,6 +5823,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4270
5823
  notes?: string | null;
4271
5824
  order_date?: string;
4272
5825
  order_number?: string;
5826
+ order_source?: string;
4273
5827
  status?: string;
4274
5828
  total?: string;
4275
5829
  updated_at?: string;
@@ -4508,13 +6062,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4508
6062
  Row: {
4509
6063
  barcode: string | null;
4510
6064
  batch: string;
6065
+ crates_per_layer: number;
4511
6066
  created_at: string;
4512
6067
  custom_fields: import("./types").Json;
4513
6068
  id: string;
4514
6069
  image_url: string | null;
4515
6070
  incoming_quantity: number;
6071
+ layers_per_cart: number;
4516
6072
  location: string;
4517
6073
  min_quantity: number;
6074
+ plants_per_crate: number;
4518
6075
  product: string;
4519
6076
  product_type: string;
4520
6077
  purchase_price: number | null;
@@ -4527,13 +6084,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4527
6084
  Insert: {
4528
6085
  barcode?: string | null;
4529
6086
  batch: string;
6087
+ crates_per_layer?: number;
4530
6088
  created_at?: string;
4531
6089
  custom_fields?: import("./types").Json;
4532
6090
  id?: string;
4533
6091
  image_url?: string | null;
4534
6092
  incoming_quantity?: number;
6093
+ layers_per_cart?: number;
4535
6094
  location: string;
4536
6095
  min_quantity?: number;
6096
+ plants_per_crate?: number;
4537
6097
  product: string;
4538
6098
  product_type?: string;
4539
6099
  purchase_price?: number | null;
@@ -4546,13 +6106,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4546
6106
  Update: {
4547
6107
  barcode?: string | null;
4548
6108
  batch?: string;
6109
+ crates_per_layer?: number;
4549
6110
  created_at?: string;
4550
6111
  custom_fields?: import("./types").Json;
4551
6112
  id?: string;
4552
6113
  image_url?: string | null;
4553
6114
  incoming_quantity?: number;
6115
+ layers_per_cart?: number;
4554
6116
  location?: string;
4555
6117
  min_quantity?: number;
6118
+ plants_per_crate?: number;
4556
6119
  product?: string;
4557
6120
  product_type?: string;
4558
6121
  purchase_price?: number | null;
@@ -5494,6 +7057,141 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5494
7057
  };
5495
7058
  Relationships: [];
5496
7059
  };
7060
+ time_entries: {
7061
+ Row: {
7062
+ created_at: string;
7063
+ employee_id: string;
7064
+ entry_date: string;
7065
+ hours: number;
7066
+ id: string;
7067
+ notes: string | null;
7068
+ overtime: number;
7069
+ undertime: number;
7070
+ updated_at: string;
7071
+ };
7072
+ Insert: {
7073
+ created_at?: string;
7074
+ employee_id: string;
7075
+ entry_date: string;
7076
+ hours?: number;
7077
+ id?: string;
7078
+ notes?: string | null;
7079
+ overtime?: number;
7080
+ undertime?: number;
7081
+ updated_at?: string;
7082
+ };
7083
+ Update: {
7084
+ created_at?: string;
7085
+ employee_id?: string;
7086
+ entry_date?: string;
7087
+ hours?: number;
7088
+ id?: string;
7089
+ notes?: string | null;
7090
+ overtime?: number;
7091
+ undertime?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Relationships: [{
7095
+ foreignKeyName: "time_entries_employee_id_fkey";
7096
+ columns: ["employee_id"];
7097
+ isOneToOne: false;
7098
+ referencedRelation: "monteurs";
7099
+ referencedColumns: ["id"];
7100
+ }];
7101
+ };
7102
+ time_logs: {
7103
+ Row: {
7104
+ created_at: string;
7105
+ employee_id: string;
7106
+ end_time: string | null;
7107
+ id: string;
7108
+ notes: string | null;
7109
+ overtime_hours: number;
7110
+ overtime_type: string | null;
7111
+ regular_hours: number;
7112
+ start_time: string;
7113
+ travel_cost: number | null;
7114
+ travel_distance_km: number | null;
7115
+ type: string;
7116
+ updated_at: string;
7117
+ };
7118
+ Insert: {
7119
+ created_at?: string;
7120
+ employee_id: string;
7121
+ end_time?: string | null;
7122
+ id?: string;
7123
+ notes?: string | null;
7124
+ overtime_hours?: number;
7125
+ overtime_type?: string | null;
7126
+ regular_hours?: number;
7127
+ start_time?: string;
7128
+ travel_cost?: number | null;
7129
+ travel_distance_km?: number | null;
7130
+ type: string;
7131
+ updated_at?: string;
7132
+ };
7133
+ Update: {
7134
+ created_at?: string;
7135
+ employee_id?: string;
7136
+ end_time?: string | null;
7137
+ id?: string;
7138
+ notes?: string | null;
7139
+ overtime_hours?: number;
7140
+ overtime_type?: string | null;
7141
+ regular_hours?: number;
7142
+ start_time?: string;
7143
+ travel_cost?: number | null;
7144
+ travel_distance_km?: number | null;
7145
+ type?: string;
7146
+ updated_at?: string;
7147
+ };
7148
+ Relationships: [{
7149
+ foreignKeyName: "time_logs_employee_id_fkey";
7150
+ columns: ["employee_id"];
7151
+ isOneToOne: false;
7152
+ referencedRelation: "monteurs";
7153
+ referencedColumns: ["id"];
7154
+ }];
7155
+ };
7156
+ time_off_entries: {
7157
+ Row: {
7158
+ created_at: string;
7159
+ employee_id: string;
7160
+ entry_date: string;
7161
+ hours: number;
7162
+ id: string;
7163
+ notes: string | null;
7164
+ type: string;
7165
+ updated_at: string;
7166
+ };
7167
+ Insert: {
7168
+ created_at?: string;
7169
+ employee_id: string;
7170
+ entry_date: string;
7171
+ hours?: number;
7172
+ id?: string;
7173
+ notes?: string | null;
7174
+ type: string;
7175
+ updated_at?: string;
7176
+ };
7177
+ Update: {
7178
+ created_at?: string;
7179
+ employee_id?: string;
7180
+ entry_date?: string;
7181
+ hours?: number;
7182
+ id?: string;
7183
+ notes?: string | null;
7184
+ type?: string;
7185
+ updated_at?: string;
7186
+ };
7187
+ Relationships: [{
7188
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7189
+ columns: ["employee_id"];
7190
+ isOneToOne: false;
7191
+ referencedRelation: "monteurs";
7192
+ referencedColumns: ["id"];
7193
+ }];
7194
+ };
5497
7195
  trade_item_drafts: {
5498
7196
  Row: {
5499
7197
  connection_id: string | null;
@@ -6224,16 +7922,127 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6224
7922
  Update: {
6225
7923
  created_at?: string;
6226
7924
  id?: string;
6227
- role?: Database["public"]["Enums"]["app_role"];
7925
+ role?: Database["public"]["Enums"]["app_role"];
7926
+ user_id?: string;
7927
+ };
7928
+ Relationships: [{
7929
+ foreignKeyName: "user_roles_user_id_fkey";
7930
+ columns: ["user_id"];
7931
+ isOneToOne: false;
7932
+ referencedRelation: "profiles";
7933
+ referencedColumns: ["id"];
7934
+ }];
7935
+ };
7936
+ voorraad_media_upload_failures: {
7937
+ Row: {
7938
+ action: string;
7939
+ attempt_number: number;
7940
+ caller: string;
7941
+ client_user_id: string | null;
7942
+ content_type: string | null;
7943
+ created_at: string;
7944
+ environment: string;
7945
+ error_message: string | null;
7946
+ filename: string | null;
7947
+ id: string;
7948
+ idempotency_key: string | null;
7949
+ module: string;
7950
+ path: string;
7951
+ reference_id: string | null;
7952
+ request_body_hash: string | null;
7953
+ request_timestamp: number | null;
7954
+ response_content_type: string | null;
7955
+ response_status: number | null;
7956
+ size_bytes: number | null;
7957
+ };
7958
+ Insert: {
7959
+ action?: string;
7960
+ attempt_number?: number;
7961
+ caller?: string;
7962
+ client_user_id?: string | null;
7963
+ content_type?: string | null;
7964
+ created_at?: string;
7965
+ environment: string;
7966
+ error_message?: string | null;
7967
+ filename?: string | null;
7968
+ id?: string;
7969
+ idempotency_key?: string | null;
7970
+ module?: string;
7971
+ path: string;
7972
+ reference_id?: string | null;
7973
+ request_body_hash?: string | null;
7974
+ request_timestamp?: number | null;
7975
+ response_content_type?: string | null;
7976
+ response_status?: number | null;
7977
+ size_bytes?: number | null;
7978
+ };
7979
+ Update: {
7980
+ action?: string;
7981
+ attempt_number?: number;
7982
+ caller?: string;
7983
+ client_user_id?: string | null;
7984
+ content_type?: string | null;
7985
+ created_at?: string;
7986
+ environment?: string;
7987
+ error_message?: string | null;
7988
+ filename?: string | null;
7989
+ id?: string;
7990
+ idempotency_key?: string | null;
7991
+ module?: string;
7992
+ path?: string;
7993
+ reference_id?: string | null;
7994
+ request_body_hash?: string | null;
7995
+ request_timestamp?: number | null;
7996
+ response_content_type?: string | null;
7997
+ response_status?: number | null;
7998
+ size_bytes?: number | null;
7999
+ };
8000
+ Relationships: [];
8001
+ };
8002
+ voorraad_publish_attempts: {
8003
+ Row: {
8004
+ action: string;
8005
+ connection_id: string | null;
8006
+ created_at: string;
8007
+ error: string | null;
8008
+ gateway_attempt_id: string | null;
8009
+ gateway_status: number | null;
8010
+ id: string;
8011
+ intent: string;
8012
+ ok: boolean;
8013
+ request_summary: import("./types").Json | null;
8014
+ trade_item_id: string | null;
8015
+ user_id: string;
8016
+ };
8017
+ Insert: {
8018
+ action: string;
8019
+ connection_id?: string | null;
8020
+ created_at?: string;
8021
+ error?: string | null;
8022
+ gateway_attempt_id?: string | null;
8023
+ gateway_status?: number | null;
8024
+ id?: string;
8025
+ intent: string;
8026
+ ok: boolean;
8027
+ request_summary?: import("./types").Json | null;
8028
+ trade_item_id?: string | null;
8029
+ user_id: string;
8030
+ };
8031
+ Update: {
8032
+ action?: string;
8033
+ connection_id?: string | null;
8034
+ created_at?: string;
8035
+ error?: string | null;
8036
+ gateway_attempt_id?: string | null;
8037
+ gateway_status?: number | null;
8038
+ id?: string;
8039
+ intent?: string;
8040
+ ok?: boolean;
8041
+ request_summary?: import("./types").Json | null;
8042
+ trade_item_id?: string | null;
6228
8043
  user_id?: string;
6229
8044
  };
6230
- Relationships: [{
6231
- foreignKeyName: "user_roles_user_id_fkey";
6232
- columns: ["user_id"];
6233
- isOneToOne: false;
6234
- referencedRelation: "profiles";
6235
- referencedColumns: ["id"];
6236
- }];
8045
+ Relationships: [];
6237
8046
  };
6238
8047
  work_order_monteurs: {
6239
8048
  Row: {
@@ -6839,12 +8648,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6839
8648
  };
6840
8649
  };
6841
8650
  Functions: {
8651
+ _floriday_schedule_job: {
8652
+ Args: {
8653
+ p_apikey: string;
8654
+ p_jobname: string;
8655
+ p_schedule: string;
8656
+ p_timeout_ms: number;
8657
+ p_url: string;
8658
+ };
8659
+ Returns: number;
8660
+ };
8661
+ assign_floriday_order_numbers: {
8662
+ Args: {
8663
+ p_ids: string[];
8664
+ };
8665
+ Returns: {
8666
+ floriday_id: string;
8667
+ order_number: string;
8668
+ }[];
8669
+ };
6842
8670
  call_exact_route: {
6843
8671
  Args: {
6844
8672
  path: string;
6845
8673
  };
6846
8674
  Returns: number;
6847
8675
  };
8676
+ cleanup_old_bookings: {
8677
+ Args: never;
8678
+ Returns: number;
8679
+ };
8680
+ current_monteur_id: {
8681
+ Args: never;
8682
+ Returns: string;
8683
+ };
6848
8684
  dashboard_list_public_schema: {
6849
8685
  Args: never;
6850
8686
  Returns: {
@@ -6949,6 +8785,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6949
8785
  office_code: string;
6950
8786
  }[];
6951
8787
  };
8788
+ get_floriday_agreements_active: {
8789
+ Args: {
8790
+ p_on_date?: string;
8791
+ };
8792
+ Returns: {
8793
+ buyer_organization_id: string;
8794
+ data: import("./types").Json;
8795
+ floriday_id: string;
8796
+ status: string;
8797
+ valid_from: string;
8798
+ valid_until: string;
8799
+ }[];
8800
+ };
8801
+ get_floriday_clock_supplies_window: {
8802
+ Args: {
8803
+ p_from: string;
8804
+ p_to: string;
8805
+ };
8806
+ Returns: {
8807
+ auction_date: string;
8808
+ data: import("./types").Json;
8809
+ floriday_id: string;
8810
+ status: string;
8811
+ trade_item_id: string;
8812
+ }[];
8813
+ };
6952
8814
  get_floriday_cron_jobs: {
6953
8815
  Args: never;
6954
8816
  Returns: {
@@ -6958,12 +8820,68 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6958
8820
  url: string;
6959
8821
  }[];
6960
8822
  };
8823
+ get_floriday_delivery_locations: {
8824
+ Args: {
8825
+ p_organization_id: string;
8826
+ };
8827
+ Returns: {
8828
+ data: import("./types").Json;
8829
+ floriday_id: string;
8830
+ gln_code: string;
8831
+ name: string;
8832
+ }[];
8833
+ };
8834
+ get_floriday_fulfillment_orders_window: {
8835
+ Args: {
8836
+ p_from: string;
8837
+ p_to: string;
8838
+ };
8839
+ Returns: {
8840
+ auction_date: string;
8841
+ data: import("./types").Json;
8842
+ delivery_order_id: string;
8843
+ destination_warehouse_id: string;
8844
+ floriday_id: string;
8845
+ status: string;
8846
+ }[];
8847
+ };
8848
+ get_floriday_sales_orders_window: {
8849
+ Args: {
8850
+ p_from: string;
8851
+ p_to: string;
8852
+ };
8853
+ Returns: {
8854
+ buyer_organization_id: string;
8855
+ data: import("./types").Json;
8856
+ floriday_id: string;
8857
+ status: string;
8858
+ updated_at: string;
8859
+ }[];
8860
+ };
8861
+ get_floriday_sync_health: {
8862
+ Args: never;
8863
+ Returns: {
8864
+ entity_type: string;
8865
+ last_error: string;
8866
+ last_items_processed: number;
8867
+ last_sequence_number: number;
8868
+ last_success_at: string;
8869
+ last_synced_at: string;
8870
+ minutes_since_success: number;
8871
+ }[];
8872
+ };
6961
8873
  get_offer_by_link_code: {
6962
8874
  Args: {
6963
8875
  p_code: string;
6964
8876
  };
6965
8877
  Returns: import("./types").Json;
6966
8878
  };
8879
+ get_or_assign_floriday_order_number: {
8880
+ Args: {
8881
+ p_floriday_id: string;
8882
+ };
8883
+ Returns: string;
8884
+ };
6967
8885
  get_room_busy_windows: {
6968
8886
  Args: {
6969
8887
  p_from: string;
@@ -7010,6 +8928,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7010
8928
  Args: never;
7011
8929
  Returns: boolean;
7012
8930
  };
8931
+ next_order_number: {
8932
+ Args: {
8933
+ p_prefix: string;
8934
+ };
8935
+ Returns: string;
8936
+ };
7013
8937
  next_work_order_number: {
7014
8938
  Args: {
7015
8939
  p_parent_work_order_id?: string;
@@ -7023,6 +8947,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7023
8947
  };
7024
8948
  Returns: string;
7025
8949
  };
8950
+ pickstation_get_orders_raw: {
8951
+ Args: never;
8952
+ Returns: import("./types").Json;
8953
+ };
8954
+ pickstation_get_settings: {
8955
+ Args: never;
8956
+ Returns: import("./types").Json;
8957
+ };
8958
+ pickstation_log_print: {
8959
+ Args: {
8960
+ p_customer_name: string;
8961
+ p_documents: string[];
8962
+ p_ip_address: string;
8963
+ p_order_id: string;
8964
+ p_order_number: string;
8965
+ };
8966
+ Returns: undefined;
8967
+ };
8968
+ refresh_floricode_derived_code_lists: {
8969
+ Args: never;
8970
+ Returns: {
8971
+ out_environment: string;
8972
+ out_list_name: string;
8973
+ out_row_count: number;
8974
+ }[];
8975
+ };
8976
+ reset_floriday_sync_cursor: {
8977
+ Args: {
8978
+ p_connection_id: string;
8979
+ p_entity_type: string;
8980
+ };
8981
+ Returns: undefined;
8982
+ };
8983
+ schedule_floriday_additional_services_sync: {
8984
+ Args: {
8985
+ p_apikey: string;
8986
+ p_url: string;
8987
+ };
8988
+ Returns: number;
8989
+ };
8990
+ schedule_floriday_agreement_calloffs_sync: {
8991
+ Args: {
8992
+ p_apikey: string;
8993
+ p_url: string;
8994
+ };
8995
+ Returns: number;
8996
+ };
8997
+ schedule_floriday_agreements_sync: {
8998
+ Args: {
8999
+ p_apikey: string;
9000
+ p_url: string;
9001
+ };
9002
+ Returns: number;
9003
+ };
9004
+ schedule_floriday_base_items_sync: {
9005
+ Args: {
9006
+ p_apikey: string;
9007
+ p_url: string;
9008
+ };
9009
+ Returns: number;
9010
+ };
9011
+ schedule_floriday_blanket_orders_sync: {
9012
+ Args: {
9013
+ p_apikey: string;
9014
+ p_url: string;
9015
+ };
9016
+ Returns: number;
9017
+ };
7026
9018
  schedule_floriday_carriers_sync: {
7027
9019
  Args: {
7028
9020
  p_apikey: string;
@@ -7030,6 +9022,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7030
9022
  };
7031
9023
  Returns: number;
7032
9024
  };
9025
+ schedule_floriday_clock_presales_sync: {
9026
+ Args: {
9027
+ p_apikey: string;
9028
+ p_url: string;
9029
+ };
9030
+ Returns: number;
9031
+ };
9032
+ schedule_floriday_clock_supplies_sync: {
9033
+ Args: {
9034
+ p_apikey: string;
9035
+ p_url: string;
9036
+ };
9037
+ Returns: number;
9038
+ };
9039
+ schedule_floriday_collections_sync: {
9040
+ Args: {
9041
+ p_apikey: string;
9042
+ p_url: string;
9043
+ };
9044
+ Returns: number;
9045
+ };
9046
+ schedule_floriday_commercial_service_types_sync: {
9047
+ Args: {
9048
+ p_apikey: string;
9049
+ p_url: string;
9050
+ };
9051
+ Returns: number;
9052
+ };
7033
9053
  schedule_floriday_connections_sync: {
7034
9054
  Args: {
7035
9055
  p_apikey: string;
@@ -7037,6 +9057,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7037
9057
  };
7038
9058
  Returns: number;
7039
9059
  };
9060
+ schedule_floriday_contract_trade_item_groups_sync: {
9061
+ Args: {
9062
+ p_apikey: string;
9063
+ p_url: string;
9064
+ };
9065
+ Returns: number;
9066
+ };
9067
+ schedule_floriday_contracts_sync: {
9068
+ Args: {
9069
+ p_apikey: string;
9070
+ p_url: string;
9071
+ };
9072
+ Returns: number;
9073
+ };
7040
9074
  schedule_floriday_customer_organizations_sync: {
7041
9075
  Args: {
7042
9076
  p_apikey: string;
@@ -7044,6 +9078,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7044
9078
  };
7045
9079
  Returns: number;
7046
9080
  };
9081
+ schedule_floriday_customer_stickers_sync: {
9082
+ Args: {
9083
+ p_apikey: string;
9084
+ p_url: string;
9085
+ };
9086
+ Returns: number;
9087
+ };
9088
+ schedule_floriday_delivery_condition_sets_sync: {
9089
+ Args: {
9090
+ p_apikey: string;
9091
+ p_url: string;
9092
+ };
9093
+ Returns: number;
9094
+ };
9095
+ schedule_floriday_delivery_locations_sync: {
9096
+ Args: {
9097
+ p_apikey: string;
9098
+ p_url: string;
9099
+ };
9100
+ Returns: number;
9101
+ };
9102
+ schedule_floriday_delivery_orders_sync: {
9103
+ Args: {
9104
+ p_apikey: string;
9105
+ p_url: string;
9106
+ };
9107
+ Returns: number;
9108
+ };
9109
+ schedule_floriday_fulfillment_orders_sync: {
9110
+ Args: {
9111
+ p_apikey: string;
9112
+ p_url: string;
9113
+ };
9114
+ Returns: number;
9115
+ };
9116
+ schedule_floriday_invoices_sync: {
9117
+ Args: {
9118
+ p_apikey: string;
9119
+ p_url: string;
9120
+ };
9121
+ Returns: number;
9122
+ };
7047
9123
  schedule_floriday_network_sync: {
7048
9124
  Args: {
7049
9125
  p_apikey: string;
@@ -7051,6 +9127,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7051
9127
  };
7052
9128
  Returns: number;
7053
9129
  };
9130
+ schedule_floriday_packings_sync: {
9131
+ Args: {
9132
+ p_apikey: string;
9133
+ p_url: string;
9134
+ };
9135
+ Returns: number;
9136
+ };
9137
+ schedule_floriday_price_groups_sync: {
9138
+ Args: {
9139
+ p_apikey: string;
9140
+ p_url: string;
9141
+ };
9142
+ Returns: number;
9143
+ };
9144
+ schedule_floriday_reference_data_refresh: {
9145
+ Args: {
9146
+ p_apikey: string;
9147
+ p_url: string;
9148
+ };
9149
+ Returns: number;
9150
+ };
9151
+ schedule_floriday_sales_strategies_sync: {
9152
+ Args: {
9153
+ p_apikey: string;
9154
+ p_url: string;
9155
+ };
9156
+ Returns: number;
9157
+ };
7054
9158
  schedule_floriday_salesorders_sync: {
7055
9159
  Args: {
7056
9160
  p_apikey: string;
@@ -7065,6 +9169,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7065
9169
  };
7066
9170
  Returns: number;
7067
9171
  };
9172
+ schedule_floriday_trade_item_classifications_sync: {
9173
+ Args: {
9174
+ p_apikey: string;
9175
+ p_url: string;
9176
+ };
9177
+ Returns: number;
9178
+ };
7068
9179
  schedule_floriday_trade_items_sync: {
7069
9180
  Args: {
7070
9181
  p_apikey: string;
@@ -7072,6 +9183,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7072
9183
  };
7073
9184
  Returns: number;
7074
9185
  };
9186
+ schedule_floriday_trips_sync: {
9187
+ Args: {
9188
+ p_apikey: string;
9189
+ p_url: string;
9190
+ };
9191
+ Returns: number;
9192
+ };
9193
+ schedule_floriday_warehouses_sync: {
9194
+ Args: {
9195
+ p_apikey: string;
9196
+ p_url: string;
9197
+ };
9198
+ Returns: number;
9199
+ };
7075
9200
  schedule_twinfield_customers_sync: {
7076
9201
  Args: {
7077
9202
  p_apikey: string;
@@ -7146,7 +9271,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7146
9271
  };
7147
9272
  };
7148
9273
  Enums: {
7149
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9274
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
7150
9275
  exact_env: "staging" | "live";
7151
9276
  exact_push_status: "pending" | "sent" | "error";
7152
9277
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";