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