@flowselections/mailbox-orders 1.0.3 → 1.0.5

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 (30) hide show
  1. package/dist-lib/components/CartAssignmentWizard.d.ts +6 -0
  2. package/dist-lib/components/CartAssignmentWizard.d.ts.map +1 -0
  3. package/dist-lib/components/CartAssignmentWizard.js +199 -0
  4. package/dist-lib/components/MailboxProcessedPage.d.ts.map +1 -1
  5. package/dist-lib/components/MailboxProcessedPage.js +25 -4
  6. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -1
  7. package/dist-lib/components/MailboxProposalsPage.js +325 -60
  8. package/dist-lib/components/SearchableSelect.d.ts +2 -1
  9. package/dist-lib/components/SearchableSelect.d.ts.map +1 -1
  10. package/dist-lib/components/SearchableSelect.js +4 -3
  11. package/dist-lib/index.d.ts +0 -1
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +2 -4
  14. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-attacher.js +37 -3
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3460 -157
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +3460 -157
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +3460 -157
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +3553 -157
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/types.js +2 -0
  25. package/dist-lib/lib/mailbox-template.functions.d.ts +43350 -23532
  26. package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/mailbox.functions.d.ts +142263 -33138
  28. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/mailbox.functions.js +392 -18
  30. package/package.json +2 -7
@@ -2,6 +2,51 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ pick_weekdays: number[];
13
+ signup_mail_enabled: boolean;
14
+ signup_mail_lead_minutes: number;
15
+ signup_mail_purpose: string;
16
+ transport_register_days_before: number;
17
+ updated_at: string;
18
+ user_id: string;
19
+ };
20
+ Insert: {
21
+ created_at?: string;
22
+ id?: string;
23
+ max_workdays_earlier_pick?: number;
24
+ pick_days_before_transport?: number;
25
+ pick_distribution_enabled?: boolean;
26
+ pick_weekdays?: number[];
27
+ signup_mail_enabled?: boolean;
28
+ signup_mail_lead_minutes?: number;
29
+ signup_mail_purpose?: string;
30
+ transport_register_days_before?: number;
31
+ updated_at?: string;
32
+ user_id: string;
33
+ };
34
+ Update: {
35
+ created_at?: string;
36
+ id?: string;
37
+ max_workdays_earlier_pick?: number;
38
+ pick_days_before_transport?: number;
39
+ pick_distribution_enabled?: boolean;
40
+ pick_weekdays?: number[];
41
+ signup_mail_enabled?: boolean;
42
+ signup_mail_lead_minutes?: number;
43
+ signup_mail_purpose?: string;
44
+ transport_register_days_before?: number;
45
+ updated_at?: string;
46
+ user_id?: string;
47
+ };
48
+ Relationships: [];
49
+ };
5
50
  agenda_connections: {
6
51
  Row: {
7
52
  account_email: string | null;
@@ -270,6 +315,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
270
315
  invoice_run_id: string | null;
271
316
  invoice_status: string | null;
272
317
  invoiced_at: string | null;
318
+ notes: string | null;
273
319
  number_of_people: number;
274
320
  room_id: string;
275
321
  start_time: string;
@@ -294,6 +340,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
294
340
  invoice_run_id?: string | null;
295
341
  invoice_status?: string | null;
296
342
  invoiced_at?: string | null;
343
+ notes?: string | null;
297
344
  number_of_people?: number;
298
345
  room_id: string;
299
346
  start_time: string;
@@ -318,6 +365,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
318
365
  invoice_run_id?: string | null;
319
366
  invoice_status?: string | null;
320
367
  invoiced_at?: string | null;
368
+ notes?: string | null;
321
369
  number_of_people?: number;
322
370
  room_id?: string;
323
371
  start_time?: string;
@@ -401,19 +449,115 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
401
449
  referencedColumns: ["id"];
402
450
  }];
403
451
  };
452
+ carrier_signup_dispatch_runs: {
453
+ Row: {
454
+ detail: import("./types").Json | null;
455
+ error: string | null;
456
+ finished_at: string | null;
457
+ groups: number;
458
+ id: string;
459
+ ok: boolean;
460
+ reason: string | null;
461
+ sent: number;
462
+ skipped: import("./types").Json;
463
+ started_at: string;
464
+ unassigned: import("./types").Json;
465
+ };
466
+ Insert: {
467
+ detail?: import("./types").Json | null;
468
+ error?: string | null;
469
+ finished_at?: string | null;
470
+ groups?: number;
471
+ id?: string;
472
+ ok?: boolean;
473
+ reason?: string | null;
474
+ sent?: number;
475
+ skipped?: import("./types").Json;
476
+ started_at?: string;
477
+ unassigned?: import("./types").Json;
478
+ };
479
+ Update: {
480
+ detail?: import("./types").Json | null;
481
+ error?: string | null;
482
+ finished_at?: string | null;
483
+ groups?: number;
484
+ id?: string;
485
+ ok?: boolean;
486
+ reason?: string | null;
487
+ sent?: number;
488
+ skipped?: import("./types").Json;
489
+ started_at?: string;
490
+ unassigned?: import("./types").Json;
491
+ };
492
+ Relationships: [];
493
+ };
494
+ carrier_signup_dispatches: {
495
+ Row: {
496
+ carrier_id: string;
497
+ cart_count: number;
498
+ created_at: string;
499
+ id: string;
500
+ order_count: number;
501
+ outbox_id: string | null;
502
+ pickup_date: string;
503
+ pickup_moment_key: string;
504
+ sent_at: string;
505
+ signup_deadline: string;
506
+ };
507
+ Insert: {
508
+ carrier_id: string;
509
+ cart_count?: number;
510
+ created_at?: string;
511
+ id?: string;
512
+ order_count?: number;
513
+ outbox_id?: string | null;
514
+ pickup_date: string;
515
+ pickup_moment_key: string;
516
+ sent_at?: string;
517
+ signup_deadline: string;
518
+ };
519
+ Update: {
520
+ carrier_id?: string;
521
+ cart_count?: number;
522
+ created_at?: string;
523
+ id?: string;
524
+ order_count?: number;
525
+ outbox_id?: string | null;
526
+ pickup_date?: string;
527
+ pickup_moment_key?: string;
528
+ sent_at?: string;
529
+ signup_deadline?: string;
530
+ };
531
+ Relationships: [{
532
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
533
+ columns: ["carrier_id"];
534
+ isOneToOne: false;
535
+ referencedRelation: "carriers";
536
+ referencedColumns: ["id"];
537
+ }];
538
+ };
404
539
  carriers: {
405
540
  Row: {
406
541
  address: string | null;
407
542
  contact_person: string | null;
408
543
  created_at: string;
409
544
  delivery_days: number | null;
545
+ delivery_weekdays: number[];
410
546
  email: string | null;
411
547
  id: string;
548
+ is_default: boolean;
412
549
  name: string;
413
550
  notes: string | null;
414
551
  phone: string | null;
552
+ pickup_moments: import("./types").Json;
553
+ pickup_weekdays: number[];
554
+ service_cities: string[];
555
+ service_countries: string[];
556
+ service_provinces: string[];
557
+ signup_days_before_delivery: number;
415
558
  signup_time_1: string | null;
416
559
  signup_time_2: string | null;
560
+ sort_order: number;
417
561
  updated_at: string;
418
562
  user_id: string;
419
563
  };
@@ -422,13 +566,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
422
566
  contact_person?: string | null;
423
567
  created_at?: string;
424
568
  delivery_days?: number | null;
569
+ delivery_weekdays?: number[];
425
570
  email?: string | null;
426
571
  id?: string;
572
+ is_default?: boolean;
427
573
  name: string;
428
574
  notes?: string | null;
429
575
  phone?: string | null;
576
+ pickup_moments?: import("./types").Json;
577
+ pickup_weekdays?: number[];
578
+ service_cities?: string[];
579
+ service_countries?: string[];
580
+ service_provinces?: string[];
581
+ signup_days_before_delivery?: number;
430
582
  signup_time_1?: string | null;
431
583
  signup_time_2?: string | null;
584
+ sort_order?: number;
432
585
  updated_at?: string;
433
586
  user_id: string;
434
587
  };
@@ -437,18 +590,237 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
437
590
  contact_person?: string | null;
438
591
  created_at?: string;
439
592
  delivery_days?: number | null;
593
+ delivery_weekdays?: number[];
440
594
  email?: string | null;
441
595
  id?: string;
596
+ is_default?: boolean;
442
597
  name?: string;
443
598
  notes?: string | null;
444
599
  phone?: string | null;
600
+ pickup_moments?: import("./types").Json;
601
+ pickup_weekdays?: number[];
602
+ service_cities?: string[];
603
+ service_countries?: string[];
604
+ service_provinces?: string[];
605
+ signup_days_before_delivery?: number;
445
606
  signup_time_1?: string | null;
446
607
  signup_time_2?: string | null;
608
+ sort_order?: number;
609
+ updated_at?: string;
610
+ user_id?: string;
611
+ };
612
+ Relationships: [];
613
+ };
614
+ cart_control_draft: {
615
+ Row: {
616
+ cart_states: import("./types").Json;
617
+ checked_keys: import("./types").Json;
618
+ draft_date: string;
619
+ form_state: import("./types").Json;
620
+ notes: string;
621
+ updated_at: string;
622
+ user_id: string;
623
+ };
624
+ Insert: {
625
+ cart_states?: import("./types").Json;
626
+ checked_keys?: import("./types").Json;
627
+ draft_date: string;
628
+ form_state?: import("./types").Json;
629
+ notes?: string;
630
+ updated_at?: string;
631
+ user_id: string;
632
+ };
633
+ Update: {
634
+ cart_states?: import("./types").Json;
635
+ checked_keys?: import("./types").Json;
636
+ draft_date?: string;
637
+ form_state?: import("./types").Json;
638
+ notes?: string;
639
+ updated_at?: string;
640
+ user_id?: string;
641
+ };
642
+ Relationships: [];
643
+ };
644
+ cart_control_items: {
645
+ Row: {
646
+ action: string;
647
+ block_reason: string | null;
648
+ carrier_name: string | null;
649
+ cart_index: number;
650
+ cart_number_id: string | null;
651
+ cart_number_label: string | null;
652
+ created_at: string;
653
+ customer_name: string | null;
654
+ delivery_date: string | null;
655
+ id: string;
656
+ new_pick_date: string | null;
657
+ order_id: string;
658
+ order_number: string | null;
659
+ order_source: string;
660
+ pickup_date: string | null;
661
+ session_id: string;
662
+ };
663
+ Insert: {
664
+ action: string;
665
+ block_reason?: string | null;
666
+ carrier_name?: string | null;
667
+ cart_index: number;
668
+ cart_number_id?: string | null;
669
+ cart_number_label?: string | null;
670
+ created_at?: string;
671
+ customer_name?: string | null;
672
+ delivery_date?: string | null;
673
+ id?: string;
674
+ new_pick_date?: string | null;
675
+ order_id: string;
676
+ order_number?: string | null;
677
+ order_source: string;
678
+ pickup_date?: string | null;
679
+ session_id: string;
680
+ };
681
+ Update: {
682
+ action?: string;
683
+ block_reason?: string | null;
684
+ carrier_name?: string | null;
685
+ cart_index?: number;
686
+ cart_number_id?: string | null;
687
+ cart_number_label?: string | null;
688
+ created_at?: string;
689
+ customer_name?: string | null;
690
+ delivery_date?: string | null;
691
+ id?: string;
692
+ new_pick_date?: string | null;
693
+ order_id?: string;
694
+ order_number?: string | null;
695
+ order_source?: string;
696
+ pickup_date?: string | null;
697
+ session_id?: string;
698
+ };
699
+ Relationships: [{
700
+ foreignKeyName: "cart_control_items_session_id_fkey";
701
+ columns: ["session_id"];
702
+ isOneToOne: false;
703
+ referencedRelation: "cart_control_sessions";
704
+ referencedColumns: ["id"];
705
+ }];
706
+ };
707
+ cart_control_sessions: {
708
+ Row: {
709
+ blocked_count: number;
710
+ checked_count: number;
711
+ control_date: string;
712
+ created_at: string;
713
+ id: string;
714
+ notes: string | null;
715
+ performed_at: string;
716
+ rescheduled_count: number;
717
+ total_carts: number;
718
+ updated_at: string;
719
+ user_id: string;
720
+ };
721
+ Insert: {
722
+ blocked_count?: number;
723
+ checked_count?: number;
724
+ control_date?: string;
725
+ created_at?: string;
726
+ id?: string;
727
+ notes?: string | null;
728
+ performed_at?: string;
729
+ rescheduled_count?: number;
730
+ total_carts?: number;
731
+ updated_at?: string;
732
+ user_id: string;
733
+ };
734
+ Update: {
735
+ blocked_count?: number;
736
+ checked_count?: number;
737
+ control_date?: string;
738
+ created_at?: string;
739
+ id?: string;
740
+ notes?: string | null;
741
+ performed_at?: string;
742
+ rescheduled_count?: number;
743
+ total_carts?: number;
447
744
  updated_at?: string;
448
745
  user_id?: string;
449
746
  };
450
747
  Relationships: [];
451
748
  };
749
+ cart_numbers: {
750
+ Row: {
751
+ assigned_at: string;
752
+ cart_index: number;
753
+ cart_number: string;
754
+ day_seq: number;
755
+ id: string;
756
+ order_id: string;
757
+ order_source: string;
758
+ pick_date: string;
759
+ status: string;
760
+ };
761
+ Insert: {
762
+ assigned_at?: string;
763
+ cart_index: number;
764
+ cart_number: string;
765
+ day_seq: number;
766
+ id?: string;
767
+ order_id: string;
768
+ order_source: string;
769
+ pick_date: string;
770
+ status?: string;
771
+ };
772
+ Update: {
773
+ assigned_at?: string;
774
+ cart_index?: number;
775
+ cart_number?: string;
776
+ day_seq?: number;
777
+ id?: string;
778
+ order_id?: string;
779
+ order_source?: string;
780
+ pick_date?: string;
781
+ status?: string;
782
+ };
783
+ Relationships: [];
784
+ };
785
+ cart_pick_overrides: {
786
+ Row: {
787
+ cart_index: number;
788
+ created_at: string;
789
+ id: string;
790
+ moved_from_date: string | null;
791
+ notes: string | null;
792
+ order_id: string;
793
+ order_source: string;
794
+ pick_date: string;
795
+ status: string;
796
+ updated_at: string;
797
+ };
798
+ Insert: {
799
+ cart_index: number;
800
+ created_at?: string;
801
+ id?: string;
802
+ moved_from_date?: string | null;
803
+ notes?: string | null;
804
+ order_id: string;
805
+ order_source: string;
806
+ pick_date: string;
807
+ status?: string;
808
+ updated_at?: string;
809
+ };
810
+ Update: {
811
+ cart_index?: number;
812
+ created_at?: string;
813
+ id?: string;
814
+ moved_from_date?: string | null;
815
+ notes?: string | null;
816
+ order_id?: string;
817
+ order_source?: string;
818
+ pick_date?: string;
819
+ status?: string;
820
+ updated_at?: string;
821
+ };
822
+ Relationships: [];
823
+ };
452
824
  collections: {
453
825
  Row: {
454
826
  created_at: string;
@@ -560,50 +932,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
560
932
  customer_delivery_locations: {
561
933
  Row: {
562
934
  address_line: string | null;
935
+ carrier_assignment_source: string;
936
+ carrier_id: string | null;
563
937
  city: string | null;
564
938
  country: string | null;
565
939
  created_at: string;
566
940
  customer_id: string;
567
941
  floriday_location_id: string | null;
568
942
  gln: string | null;
943
+ house_number: string | null;
569
944
  id: string;
570
945
  is_primary: boolean;
571
946
  name: string | null;
572
947
  postal_code: string | null;
948
+ province: string | null;
573
949
  raw: import("./types").Json | null;
950
+ self_pickup: boolean;
951
+ street: string | null;
574
952
  updated_at: string;
575
953
  };
576
954
  Insert: {
577
955
  address_line?: string | null;
956
+ carrier_assignment_source?: string;
957
+ carrier_id?: string | null;
578
958
  city?: string | null;
579
959
  country?: string | null;
580
960
  created_at?: string;
581
961
  customer_id: string;
582
962
  floriday_location_id?: string | null;
583
963
  gln?: string | null;
964
+ house_number?: string | null;
584
965
  id?: string;
585
966
  is_primary?: boolean;
586
967
  name?: string | null;
587
968
  postal_code?: string | null;
969
+ province?: string | null;
588
970
  raw?: import("./types").Json | null;
971
+ self_pickup?: boolean;
972
+ street?: string | null;
589
973
  updated_at?: string;
590
974
  };
591
975
  Update: {
592
976
  address_line?: string | null;
977
+ carrier_assignment_source?: string;
978
+ carrier_id?: string | null;
593
979
  city?: string | null;
594
980
  country?: string | null;
595
981
  created_at?: string;
596
982
  customer_id?: string;
597
983
  floriday_location_id?: string | null;
598
984
  gln?: string | null;
985
+ house_number?: string | null;
599
986
  id?: string;
600
987
  is_primary?: boolean;
601
988
  name?: string | null;
602
989
  postal_code?: string | null;
990
+ province?: string | null;
603
991
  raw?: import("./types").Json | null;
992
+ self_pickup?: boolean;
993
+ street?: string | null;
604
994
  updated_at?: string;
605
995
  };
606
996
  Relationships: [{
997
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
998
+ columns: ["carrier_id"];
999
+ isOneToOne: false;
1000
+ referencedRelation: "carriers";
1001
+ referencedColumns: ["id"];
1002
+ }, {
607
1003
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
608
1004
  columns: ["customer_id"];
609
1005
  isOneToOne: false;
@@ -1058,6 +1454,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1058
1454
  referencedColumns: ["id"];
1059
1455
  }];
1060
1456
  };
1457
+ dashboard_critical_alerts: {
1458
+ Row: {
1459
+ alert_key: string;
1460
+ alert_type: string;
1461
+ created_at: string;
1462
+ description: string | null;
1463
+ id: string;
1464
+ metadata: import("./types").Json | null;
1465
+ priority: string;
1466
+ raised_at: string;
1467
+ related_cart_ids: string[] | null;
1468
+ resolved_at: string | null;
1469
+ title: string;
1470
+ updated_at: string;
1471
+ user_id: string;
1472
+ };
1473
+ Insert: {
1474
+ alert_key: string;
1475
+ alert_type: string;
1476
+ created_at?: string;
1477
+ description?: string | null;
1478
+ id?: string;
1479
+ metadata?: import("./types").Json | null;
1480
+ priority?: string;
1481
+ raised_at?: string;
1482
+ related_cart_ids?: string[] | null;
1483
+ resolved_at?: string | null;
1484
+ title: string;
1485
+ updated_at?: string;
1486
+ user_id: string;
1487
+ };
1488
+ Update: {
1489
+ alert_key?: string;
1490
+ alert_type?: string;
1491
+ created_at?: string;
1492
+ description?: string | null;
1493
+ id?: string;
1494
+ metadata?: import("./types").Json | null;
1495
+ priority?: string;
1496
+ raised_at?: string;
1497
+ related_cart_ids?: string[] | null;
1498
+ resolved_at?: string | null;
1499
+ title?: string;
1500
+ updated_at?: string;
1501
+ user_id?: string;
1502
+ };
1503
+ Relationships: [];
1504
+ };
1061
1505
  dashboard_daily_reports: {
1062
1506
  Row: {
1063
1507
  created_at: string;
@@ -1406,6 +1850,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1406
1850
  referencedColumns: ["id"];
1407
1851
  }];
1408
1852
  };
1853
+ email_auth_purpose_settings: {
1854
+ Row: {
1855
+ default_cc: string[];
1856
+ purpose: string;
1857
+ reply_to: string | null;
1858
+ updated_at: string;
1859
+ updated_by: string | null;
1860
+ };
1861
+ Insert: {
1862
+ default_cc?: string[];
1863
+ purpose: string;
1864
+ reply_to?: string | null;
1865
+ updated_at?: string;
1866
+ updated_by?: string | null;
1867
+ };
1868
+ Update: {
1869
+ default_cc?: string[];
1870
+ purpose?: string;
1871
+ reply_to?: string | null;
1872
+ updated_at?: string;
1873
+ updated_by?: string | null;
1874
+ };
1875
+ Relationships: [];
1876
+ };
1409
1877
  email_auth_token_refresh_log: {
1410
1878
  Row: {
1411
1879
  connection_id: string;
@@ -2168,19 +2636,64 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2168
2636
  referencedColumns: ["id"];
2169
2637
  }];
2170
2638
  };
2171
- exact_refresh_locks: {
2639
+ exact_push_queue: {
2172
2640
  Row: {
2173
- environment: Database["public"]["Enums"]["exact_env"];
2174
- locked_by: string;
2175
- locked_until: string;
2641
+ attempts: number;
2642
+ connection_id: string;
2643
+ created_at: string;
2644
+ external_id: string | null;
2645
+ id: string;
2646
+ idempotency_hash: string;
2647
+ last_error: string | null;
2648
+ payload: import("./types").Json;
2649
+ status: Database["public"]["Enums"]["exact_push_status"];
2176
2650
  updated_at: string;
2177
2651
  };
2178
2652
  Insert: {
2179
- environment: Database["public"]["Enums"]["exact_env"];
2180
- locked_by: string;
2181
- locked_until: string;
2182
- updated_at?: string;
2183
- };
2653
+ attempts?: number;
2654
+ connection_id: string;
2655
+ created_at?: string;
2656
+ external_id?: string | null;
2657
+ id?: string;
2658
+ idempotency_hash: string;
2659
+ last_error?: string | null;
2660
+ payload: import("./types").Json;
2661
+ status?: Database["public"]["Enums"]["exact_push_status"];
2662
+ updated_at?: string;
2663
+ };
2664
+ Update: {
2665
+ attempts?: number;
2666
+ connection_id?: string;
2667
+ created_at?: string;
2668
+ external_id?: string | null;
2669
+ id?: string;
2670
+ idempotency_hash?: string;
2671
+ last_error?: string | null;
2672
+ payload?: import("./types").Json;
2673
+ status?: Database["public"]["Enums"]["exact_push_status"];
2674
+ updated_at?: string;
2675
+ };
2676
+ Relationships: [{
2677
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2678
+ columns: ["connection_id"];
2679
+ isOneToOne: false;
2680
+ referencedRelation: "exact_connections";
2681
+ referencedColumns: ["id"];
2682
+ }];
2683
+ };
2684
+ exact_refresh_locks: {
2685
+ Row: {
2686
+ environment: Database["public"]["Enums"]["exact_env"];
2687
+ locked_by: string;
2688
+ locked_until: string;
2689
+ updated_at: string;
2690
+ };
2691
+ Insert: {
2692
+ environment: Database["public"]["Enums"]["exact_env"];
2693
+ locked_by: string;
2694
+ locked_until: string;
2695
+ updated_at?: string;
2696
+ };
2184
2697
  Update: {
2185
2698
  environment?: Database["public"]["Enums"]["exact_env"];
2186
2699
  locked_by?: string;
@@ -2230,6 +2743,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2230
2743
  connection_id: string;
2231
2744
  last_error: string | null;
2232
2745
  last_modified_cursor: string | null;
2746
+ last_modified_cursor_customers: string | null;
2747
+ last_modified_cursor_invoices: string | null;
2233
2748
  last_synced_at: string | null;
2234
2749
  status: string;
2235
2750
  updated_at: string;
@@ -2238,6 +2753,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2238
2753
  connection_id: string;
2239
2754
  last_error?: string | null;
2240
2755
  last_modified_cursor?: string | null;
2756
+ last_modified_cursor_customers?: string | null;
2757
+ last_modified_cursor_invoices?: string | null;
2241
2758
  last_synced_at?: string | null;
2242
2759
  status?: string;
2243
2760
  updated_at?: string;
@@ -2246,6 +2763,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2246
2763
  connection_id?: string;
2247
2764
  last_error?: string | null;
2248
2765
  last_modified_cursor?: string | null;
2766
+ last_modified_cursor_customers?: string | null;
2767
+ last_modified_cursor_invoices?: string | null;
2249
2768
  last_synced_at?: string | null;
2250
2769
  status?: string;
2251
2770
  updated_at?: string;
@@ -2288,6 +2807,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2288
2807
  };
2289
2808
  Relationships: [];
2290
2809
  };
2810
+ external_invoice_providers: {
2811
+ Row: {
2812
+ color: string | null;
2813
+ created_at: string;
2814
+ hmac_secret_name: string | null;
2815
+ icon: string | null;
2816
+ is_enabled: boolean;
2817
+ label: string;
2818
+ last_synced_at: string | null;
2819
+ provider: string;
2820
+ push_endpoint: string | null;
2821
+ sort_order: number;
2822
+ status_endpoint: string | null;
2823
+ sync_endpoint: string | null;
2824
+ updated_at: string;
2825
+ };
2826
+ Insert: {
2827
+ color?: string | null;
2828
+ created_at?: string;
2829
+ hmac_secret_name?: string | null;
2830
+ icon?: string | null;
2831
+ is_enabled?: boolean;
2832
+ label: string;
2833
+ last_synced_at?: string | null;
2834
+ provider: string;
2835
+ push_endpoint?: string | null;
2836
+ sort_order?: number;
2837
+ status_endpoint?: string | null;
2838
+ sync_endpoint?: string | null;
2839
+ updated_at?: string;
2840
+ };
2841
+ Update: {
2842
+ color?: string | null;
2843
+ created_at?: string;
2844
+ hmac_secret_name?: string | null;
2845
+ icon?: string | null;
2846
+ is_enabled?: boolean;
2847
+ label?: string;
2848
+ last_synced_at?: string | null;
2849
+ provider?: string;
2850
+ push_endpoint?: string | null;
2851
+ sort_order?: number;
2852
+ status_endpoint?: string | null;
2853
+ sync_endpoint?: string | null;
2854
+ updated_at?: string;
2855
+ };
2856
+ Relationships: [];
2857
+ };
2291
2858
  extra_categories: {
2292
2859
  Row: {
2293
2860
  created_at: string;
@@ -2312,12 +2879,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2312
2879
  };
2313
2880
  Relationships: [];
2314
2881
  };
2882
+ extra_pricing_types: {
2883
+ Row: {
2884
+ code: string;
2885
+ created_at: string;
2886
+ id: string;
2887
+ label: string;
2888
+ sort_order: number;
2889
+ updated_at: string;
2890
+ };
2891
+ Insert: {
2892
+ code: string;
2893
+ created_at?: string;
2894
+ id?: string;
2895
+ label: string;
2896
+ sort_order?: number;
2897
+ updated_at?: string;
2898
+ };
2899
+ Update: {
2900
+ code?: string;
2901
+ created_at?: string;
2902
+ id?: string;
2903
+ label?: string;
2904
+ sort_order?: number;
2905
+ updated_at?: string;
2906
+ };
2907
+ Relationships: [];
2908
+ };
2315
2909
  extras: {
2316
2910
  Row: {
2317
2911
  category: string;
2318
2912
  created_at: string;
2319
2913
  exact_article_id: string | null;
2320
2914
  id: string;
2915
+ image_url: string | null;
2321
2916
  is_active: boolean;
2322
2917
  name: string;
2323
2918
  price: number;
@@ -2328,6 +2923,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2328
2923
  created_at?: string;
2329
2924
  exact_article_id?: string | null;
2330
2925
  id?: string;
2926
+ image_url?: string | null;
2331
2927
  is_active?: boolean;
2332
2928
  name: string;
2333
2929
  price?: number;
@@ -2338,6 +2934,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2338
2934
  created_at?: string;
2339
2935
  exact_article_id?: string | null;
2340
2936
  id?: string;
2937
+ image_url?: string | null;
2341
2938
  is_active?: boolean;
2342
2939
  name?: string;
2343
2940
  price?: number;
@@ -2407,6 +3004,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2407
3004
  };
2408
3005
  floricode_sync_state: {
2409
3006
  Row: {
3007
+ cursor_skip: number;
2410
3008
  error_message: string | null;
2411
3009
  last_change_date_time: string | null;
2412
3010
  last_sequence_number: number;
@@ -2416,6 +3014,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2416
3014
  updated_at: string;
2417
3015
  };
2418
3016
  Insert: {
3017
+ cursor_skip?: number;
2419
3018
  error_message?: string | null;
2420
3019
  last_change_date_time?: string | null;
2421
3020
  last_sequence_number?: number;
@@ -2425,6 +3024,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2425
3024
  updated_at?: string;
2426
3025
  };
2427
3026
  Update: {
3027
+ cursor_skip?: number;
2428
3028
  error_message?: string | null;
2429
3029
  last_change_date_time?: string | null;
2430
3030
  last_sequence_number?: number;
@@ -2435,179 +3035,1091 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2435
3035
  };
2436
3036
  Relationships: [];
2437
3037
  };
2438
- floriday_carriers_cache: {
3038
+ floriday_additional_services_cache: {
2439
3039
  Row: {
2440
- connection_id: string | null;
2441
- created_at: string;
3040
+ connection_id: string;
2442
3041
  data: import("./types").Json;
2443
3042
  fetched_at: string;
2444
- gln_code: string | null;
2445
- id: string;
2446
- name: string | null;
2447
- organization_id: string;
3043
+ floriday_id: string;
3044
+ is_deleted: boolean;
3045
+ sequence_number: number;
2448
3046
  updated_at: string;
2449
3047
  };
2450
3048
  Insert: {
2451
- connection_id?: string | null;
2452
- created_at?: string;
3049
+ connection_id: string;
2453
3050
  data: import("./types").Json;
2454
3051
  fetched_at?: string;
2455
- gln_code?: string | null;
2456
- id?: string;
2457
- name?: string | null;
2458
- organization_id: string;
3052
+ floriday_id: string;
3053
+ is_deleted?: boolean;
3054
+ sequence_number?: number;
2459
3055
  updated_at?: string;
2460
3056
  };
2461
3057
  Update: {
2462
- connection_id?: string | null;
2463
- created_at?: string;
3058
+ connection_id?: string;
2464
3059
  data?: import("./types").Json;
2465
3060
  fetched_at?: string;
2466
- gln_code?: string | null;
2467
- id?: string;
2468
- name?: string | null;
2469
- organization_id?: string;
3061
+ floriday_id?: string;
3062
+ is_deleted?: boolean;
3063
+ sequence_number?: number;
2470
3064
  updated_at?: string;
2471
3065
  };
2472
3066
  Relationships: [{
2473
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3067
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2474
3068
  columns: ["connection_id"];
2475
3069
  isOneToOne: false;
2476
3070
  referencedRelation: "floriday_connections";
2477
3071
  referencedColumns: ["id"];
2478
3072
  }];
2479
3073
  };
2480
- floriday_connections: {
3074
+ floriday_agreement_calloffs_cache: {
2481
3075
  Row: {
2482
- access_token: string | null;
2483
- api_key: string;
2484
- client_id: string;
2485
- client_secret: string;
2486
- created_at: string;
2487
- customers_endpoint: string | null;
2488
- environment: string;
2489
- gln_code: string | null;
3076
+ agreement_id: string | null;
3077
+ connection_id: string;
3078
+ data: import("./types").Json;
3079
+ delivery_date: string | null;
3080
+ fetched_at: string;
3081
+ floriday_id: string;
2490
3082
  id: string;
2491
- is_active: boolean;
2492
- label: string;
2493
- organization_name: string | null;
2494
- preferred_warehouse_id: string | null;
2495
- preferred_warehouse_name: string | null;
2496
- token_expires_at: string | null;
3083
+ is_deleted: boolean;
3084
+ sequence_number: number;
3085
+ status: string | null;
2497
3086
  updated_at: string;
2498
3087
  };
2499
3088
  Insert: {
2500
- access_token?: string | null;
2501
- api_key: string;
2502
- client_id: string;
2503
- client_secret: string;
2504
- created_at?: string;
2505
- customers_endpoint?: string | null;
2506
- environment: string;
2507
- gln_code?: string | null;
3089
+ agreement_id?: string | null;
3090
+ connection_id: string;
3091
+ data?: import("./types").Json;
3092
+ delivery_date?: string | null;
3093
+ fetched_at?: string;
3094
+ floriday_id: string;
2508
3095
  id?: string;
2509
- is_active?: boolean;
2510
- label?: string;
2511
- organization_name?: string | null;
2512
- preferred_warehouse_id?: string | null;
2513
- preferred_warehouse_name?: string | null;
2514
- token_expires_at?: string | null;
3096
+ is_deleted?: boolean;
3097
+ sequence_number?: number;
3098
+ status?: string | null;
2515
3099
  updated_at?: string;
2516
3100
  };
2517
3101
  Update: {
2518
- access_token?: string | null;
2519
- api_key?: string;
2520
- client_id?: string;
2521
- client_secret?: string;
2522
- created_at?: string;
2523
- customers_endpoint?: string | null;
2524
- environment?: string;
2525
- gln_code?: string | null;
3102
+ agreement_id?: string | null;
3103
+ connection_id?: string;
3104
+ data?: import("./types").Json;
3105
+ delivery_date?: string | null;
3106
+ fetched_at?: string;
3107
+ floriday_id?: string;
2526
3108
  id?: string;
2527
- is_active?: boolean;
2528
- label?: string;
2529
- organization_name?: string | null;
2530
- preferred_warehouse_id?: string | null;
2531
- preferred_warehouse_name?: string | null;
2532
- token_expires_at?: string | null;
3109
+ is_deleted?: boolean;
3110
+ sequence_number?: number;
3111
+ status?: string | null;
2533
3112
  updated_at?: string;
2534
3113
  };
2535
- Relationships: [];
3114
+ Relationships: [{
3115
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3116
+ columns: ["connection_id"];
3117
+ isOneToOne: false;
3118
+ referencedRelation: "floriday_connections";
3119
+ referencedColumns: ["id"];
3120
+ }];
2536
3121
  };
2537
- floriday_connections_cache: {
3122
+ floriday_agreements_cache: {
2538
3123
  Row: {
2539
3124
  buyer_organization_id: string | null;
2540
- buyer_organization_name: string | null;
2541
3125
  connection_id: string;
2542
3126
  data: import("./types").Json;
2543
- floriday_connection_id: string;
3127
+ fetched_at: string;
3128
+ floriday_id: string;
3129
+ id: string;
2544
3130
  is_deleted: boolean;
2545
3131
  sequence_number: number;
2546
3132
  status: string | null;
2547
- synced_at: string;
3133
+ updated_at: string;
3134
+ valid_from: string | null;
3135
+ valid_until: string | null;
2548
3136
  };
2549
3137
  Insert: {
2550
3138
  buyer_organization_id?: string | null;
2551
- buyer_organization_name?: string | null;
2552
3139
  connection_id: string;
2553
- data: import("./types").Json;
2554
- floriday_connection_id: string;
3140
+ data?: import("./types").Json;
3141
+ fetched_at?: string;
3142
+ floriday_id: string;
3143
+ id?: string;
2555
3144
  is_deleted?: boolean;
2556
- sequence_number: number;
3145
+ sequence_number?: number;
2557
3146
  status?: string | null;
2558
- synced_at?: string;
3147
+ updated_at?: string;
3148
+ valid_from?: string | null;
3149
+ valid_until?: string | null;
2559
3150
  };
2560
3151
  Update: {
2561
3152
  buyer_organization_id?: string | null;
2562
- buyer_organization_name?: string | null;
2563
3153
  connection_id?: string;
2564
3154
  data?: import("./types").Json;
2565
- floriday_connection_id?: string;
3155
+ fetched_at?: string;
3156
+ floriday_id?: string;
3157
+ id?: string;
2566
3158
  is_deleted?: boolean;
2567
3159
  sequence_number?: number;
2568
3160
  status?: string | null;
2569
- synced_at?: string;
3161
+ updated_at?: string;
3162
+ valid_from?: string | null;
3163
+ valid_until?: string | null;
2570
3164
  };
2571
3165
  Relationships: [{
2572
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3166
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2573
3167
  columns: ["connection_id"];
2574
3168
  isOneToOne: false;
2575
3169
  referencedRelation: "floriday_connections";
2576
3170
  referencedColumns: ["id"];
2577
3171
  }];
2578
3172
  };
2579
- floriday_customers_cache: {
3173
+ floriday_auction_letters_cache: {
2580
3174
  Row: {
2581
- connection_id: string | null;
2582
- data: import("./types").Json;
3175
+ auction_letter_code: string;
3176
+ clock_supply_id: string;
3177
+ connection_id: string;
3178
+ content_type: string;
2583
3179
  fetched_at: string;
2584
- organization_id: string;
3180
+ id: string;
3181
+ storage_path: string;
2585
3182
  };
2586
3183
  Insert: {
2587
- connection_id?: string | null;
2588
- data?: import("./types").Json;
3184
+ auction_letter_code: string;
3185
+ clock_supply_id: string;
3186
+ connection_id: string;
3187
+ content_type?: string;
2589
3188
  fetched_at?: string;
2590
- organization_id: string;
3189
+ id?: string;
3190
+ storage_path: string;
2591
3191
  };
2592
3192
  Update: {
2593
- connection_id?: string | null;
2594
- data?: import("./types").Json;
3193
+ auction_letter_code?: string;
3194
+ clock_supply_id?: string;
3195
+ connection_id?: string;
3196
+ content_type?: string;
2595
3197
  fetched_at?: string;
2596
- organization_id?: string;
3198
+ id?: string;
3199
+ storage_path?: string;
2597
3200
  };
2598
3201
  Relationships: [{
2599
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3202
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2600
3203
  columns: ["connection_id"];
2601
3204
  isOneToOne: false;
2602
3205
  referencedRelation: "floriday_connections";
2603
3206
  referencedColumns: ["id"];
2604
3207
  }];
2605
3208
  };
2606
- floriday_network_cache: {
3209
+ floriday_base_items_cache: {
2607
3210
  Row: {
2608
- city: string | null;
2609
3211
  connection_id: string;
2610
- country: string | null;
3212
+ data: import("./types").Json;
3213
+ fetched_at: string;
3214
+ floriday_id: string;
3215
+ is_deleted: boolean;
3216
+ sequence_number: number;
3217
+ updated_at: string;
3218
+ };
3219
+ Insert: {
3220
+ connection_id: string;
3221
+ data: import("./types").Json;
3222
+ fetched_at?: string;
3223
+ floriday_id: string;
3224
+ is_deleted?: boolean;
3225
+ sequence_number?: number;
3226
+ updated_at?: string;
3227
+ };
3228
+ Update: {
3229
+ connection_id?: string;
3230
+ data?: import("./types").Json;
3231
+ fetched_at?: string;
3232
+ floriday_id?: string;
3233
+ is_deleted?: boolean;
3234
+ sequence_number?: number;
3235
+ updated_at?: string;
3236
+ };
3237
+ Relationships: [{
3238
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3239
+ columns: ["connection_id"];
3240
+ isOneToOne: false;
3241
+ referencedRelation: "floriday_connections";
3242
+ referencedColumns: ["id"];
3243
+ }];
3244
+ };
3245
+ floriday_blanket_orders_cache: {
3246
+ Row: {
3247
+ connection_id: string;
3248
+ contract_id: string | null;
3249
+ created_at: string;
3250
+ data: import("./types").Json;
3251
+ fetched_at: string;
3252
+ floriday_id: string;
3253
+ id: string;
3254
+ is_deleted: boolean;
3255
+ sequence_number: number;
3256
+ updated_at: string;
3257
+ };
3258
+ Insert: {
3259
+ connection_id: string;
3260
+ contract_id?: string | null;
3261
+ created_at?: string;
3262
+ data: import("./types").Json;
3263
+ fetched_at?: string;
3264
+ floriday_id: string;
3265
+ id?: string;
3266
+ is_deleted?: boolean;
3267
+ sequence_number?: number;
3268
+ updated_at?: string;
3269
+ };
3270
+ Update: {
3271
+ connection_id?: string;
3272
+ contract_id?: string | null;
3273
+ created_at?: string;
3274
+ data?: import("./types").Json;
3275
+ fetched_at?: string;
3276
+ floriday_id?: string;
3277
+ id?: string;
3278
+ is_deleted?: boolean;
3279
+ sequence_number?: number;
3280
+ updated_at?: string;
3281
+ };
3282
+ Relationships: [{
3283
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3284
+ columns: ["connection_id"];
3285
+ isOneToOne: false;
3286
+ referencedRelation: "floriday_connections";
3287
+ referencedColumns: ["id"];
3288
+ }];
3289
+ };
3290
+ floriday_carriers_cache: {
3291
+ Row: {
3292
+ connection_id: string | null;
3293
+ created_at: string;
3294
+ data: import("./types").Json;
3295
+ fetched_at: string;
3296
+ gln_code: string | null;
3297
+ id: string;
3298
+ name: string | null;
3299
+ organization_id: string;
3300
+ updated_at: string;
3301
+ };
3302
+ Insert: {
3303
+ connection_id?: string | null;
3304
+ created_at?: string;
3305
+ data: import("./types").Json;
3306
+ fetched_at?: string;
3307
+ gln_code?: string | null;
3308
+ id?: string;
3309
+ name?: string | null;
3310
+ organization_id: string;
3311
+ updated_at?: string;
3312
+ };
3313
+ Update: {
3314
+ connection_id?: string | null;
3315
+ created_at?: string;
3316
+ data?: import("./types").Json;
3317
+ fetched_at?: string;
3318
+ gln_code?: string | null;
3319
+ id?: string;
3320
+ name?: string | null;
3321
+ organization_id?: string;
3322
+ updated_at?: string;
3323
+ };
3324
+ Relationships: [{
3325
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3326
+ columns: ["connection_id"];
3327
+ isOneToOne: false;
3328
+ referencedRelation: "floriday_connections";
3329
+ referencedColumns: ["id"];
3330
+ }];
3331
+ };
3332
+ floriday_clock_presales_cache: {
3333
+ Row: {
3334
+ buyer_organization_id: string | null;
3335
+ clock_supply_id: string | null;
3336
+ connection_id: string;
3337
+ data: import("./types").Json;
3338
+ fetched_at: string;
3339
+ floriday_id: string;
3340
+ id: string;
3341
+ is_deleted: boolean;
3342
+ sequence_number: number;
3343
+ updated_at: string;
3344
+ };
3345
+ Insert: {
3346
+ buyer_organization_id?: string | null;
3347
+ clock_supply_id?: string | null;
3348
+ connection_id: string;
3349
+ data?: import("./types").Json;
3350
+ fetched_at?: string;
3351
+ floriday_id: string;
3352
+ id?: string;
3353
+ is_deleted?: boolean;
3354
+ sequence_number?: number;
3355
+ updated_at?: string;
3356
+ };
3357
+ Update: {
3358
+ buyer_organization_id?: string | null;
3359
+ clock_supply_id?: string | null;
3360
+ connection_id?: string;
3361
+ data?: import("./types").Json;
3362
+ fetched_at?: string;
3363
+ floriday_id?: string;
3364
+ id?: string;
3365
+ is_deleted?: boolean;
3366
+ sequence_number?: number;
3367
+ updated_at?: string;
3368
+ };
3369
+ Relationships: [{
3370
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3371
+ columns: ["connection_id"];
3372
+ isOneToOne: false;
3373
+ referencedRelation: "floriday_connections";
3374
+ referencedColumns: ["id"];
3375
+ }];
3376
+ };
3377
+ floriday_clock_supplies_cache: {
3378
+ Row: {
3379
+ auction_date: string | null;
3380
+ connection_id: string;
3381
+ data: import("./types").Json;
3382
+ fetched_at: string;
3383
+ floriday_id: string;
3384
+ id: string;
3385
+ is_deleted: boolean;
3386
+ sequence_number: number;
3387
+ status: string | null;
3388
+ trade_item_id: string | null;
3389
+ updated_at: string;
3390
+ };
3391
+ Insert: {
3392
+ auction_date?: string | null;
3393
+ connection_id: string;
3394
+ data?: import("./types").Json;
3395
+ fetched_at?: string;
3396
+ floriday_id: string;
3397
+ id?: string;
3398
+ is_deleted?: boolean;
3399
+ sequence_number?: number;
3400
+ status?: string | null;
3401
+ trade_item_id?: string | null;
3402
+ updated_at?: string;
3403
+ };
3404
+ Update: {
3405
+ auction_date?: string | null;
3406
+ connection_id?: string;
3407
+ data?: import("./types").Json;
3408
+ fetched_at?: string;
3409
+ floriday_id?: string;
3410
+ id?: string;
3411
+ is_deleted?: boolean;
3412
+ sequence_number?: number;
3413
+ status?: string | null;
3414
+ trade_item_id?: string | null;
3415
+ updated_at?: string;
3416
+ };
3417
+ Relationships: [{
3418
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3419
+ columns: ["connection_id"];
3420
+ isOneToOne: false;
3421
+ referencedRelation: "floriday_connections";
3422
+ referencedColumns: ["id"];
3423
+ }];
3424
+ };
3425
+ floriday_code_lists_cache: {
3426
+ Row: {
3427
+ code: string;
3428
+ environment: string;
3429
+ label: string | null;
3430
+ list_name: string;
3431
+ payload: import("./types").Json | null;
3432
+ updated_at: string;
3433
+ };
3434
+ Insert: {
3435
+ code: string;
3436
+ environment: string;
3437
+ label?: string | null;
3438
+ list_name: string;
3439
+ payload?: import("./types").Json | null;
3440
+ updated_at?: string;
3441
+ };
3442
+ Update: {
3443
+ code?: string;
3444
+ environment?: string;
3445
+ label?: string | null;
3446
+ list_name?: string;
3447
+ payload?: import("./types").Json | null;
3448
+ updated_at?: string;
3449
+ };
3450
+ Relationships: [];
3451
+ };
3452
+ floriday_collections_cache: {
3453
+ Row: {
3454
+ connection_id: string;
3455
+ data: import("./types").Json;
3456
+ fetched_at: string;
3457
+ floriday_id: string;
3458
+ is_deleted: boolean;
3459
+ sequence_number: number;
3460
+ updated_at: string;
3461
+ };
3462
+ Insert: {
3463
+ connection_id: string;
3464
+ data: import("./types").Json;
3465
+ fetched_at?: string;
3466
+ floriday_id: string;
3467
+ is_deleted?: boolean;
3468
+ sequence_number?: number;
3469
+ updated_at?: string;
3470
+ };
3471
+ Update: {
3472
+ connection_id?: string;
3473
+ data?: import("./types").Json;
3474
+ fetched_at?: string;
3475
+ floriday_id?: string;
3476
+ is_deleted?: boolean;
3477
+ sequence_number?: number;
3478
+ updated_at?: string;
3479
+ };
3480
+ Relationships: [{
3481
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3482
+ columns: ["connection_id"];
3483
+ isOneToOne: false;
3484
+ referencedRelation: "floriday_connections";
3485
+ referencedColumns: ["id"];
3486
+ }];
3487
+ };
3488
+ floriday_commercial_service_types_cache: {
3489
+ Row: {
3490
+ connection_id: string;
3491
+ data: import("./types").Json;
3492
+ fetched_at: string;
3493
+ floriday_id: string;
3494
+ is_deleted: boolean;
3495
+ sequence_number: number;
3496
+ updated_at: string;
3497
+ };
3498
+ Insert: {
3499
+ connection_id: string;
3500
+ data: import("./types").Json;
3501
+ fetched_at?: string;
3502
+ floriday_id: string;
3503
+ is_deleted?: boolean;
3504
+ sequence_number?: number;
3505
+ updated_at?: string;
3506
+ };
3507
+ Update: {
3508
+ connection_id?: string;
3509
+ data?: import("./types").Json;
3510
+ fetched_at?: string;
3511
+ floriday_id?: string;
3512
+ is_deleted?: boolean;
3513
+ sequence_number?: number;
3514
+ updated_at?: string;
3515
+ };
3516
+ Relationships: [{
3517
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3518
+ columns: ["connection_id"];
3519
+ isOneToOne: false;
3520
+ referencedRelation: "floriday_connections";
3521
+ referencedColumns: ["id"];
3522
+ }];
3523
+ };
3524
+ floriday_connections: {
3525
+ Row: {
3526
+ access_token: string | null;
3527
+ api_key: string;
3528
+ client_id: string;
3529
+ client_secret: string;
3530
+ created_at: string;
3531
+ customers_endpoint: string | null;
3532
+ environment: string;
3533
+ gln_code: string | null;
3534
+ id: string;
3535
+ is_active: boolean;
3536
+ label: string;
3537
+ organization_name: string | null;
3538
+ preferred_warehouse_id: string | null;
3539
+ preferred_warehouse_name: string | null;
3540
+ token_expires_at: string | null;
3541
+ updated_at: string;
3542
+ };
3543
+ Insert: {
3544
+ access_token?: string | null;
3545
+ api_key: string;
3546
+ client_id: string;
3547
+ client_secret: string;
3548
+ created_at?: string;
3549
+ customers_endpoint?: string | null;
3550
+ environment: string;
3551
+ gln_code?: string | null;
3552
+ id?: string;
3553
+ is_active?: boolean;
3554
+ label?: string;
3555
+ organization_name?: string | null;
3556
+ preferred_warehouse_id?: string | null;
3557
+ preferred_warehouse_name?: string | null;
3558
+ token_expires_at?: string | null;
3559
+ updated_at?: string;
3560
+ };
3561
+ Update: {
3562
+ access_token?: string | null;
3563
+ api_key?: string;
3564
+ client_id?: string;
3565
+ client_secret?: string;
3566
+ created_at?: string;
3567
+ customers_endpoint?: string | null;
3568
+ environment?: string;
3569
+ gln_code?: string | null;
3570
+ id?: string;
3571
+ is_active?: boolean;
3572
+ label?: string;
3573
+ organization_name?: string | null;
3574
+ preferred_warehouse_id?: string | null;
3575
+ preferred_warehouse_name?: string | null;
3576
+ token_expires_at?: string | null;
3577
+ updated_at?: string;
3578
+ };
3579
+ Relationships: [];
3580
+ };
3581
+ floriday_connections_cache: {
3582
+ Row: {
3583
+ buyer_organization_id: string | null;
3584
+ buyer_organization_name: string | null;
3585
+ connection_id: string;
3586
+ data: import("./types").Json;
3587
+ floriday_connection_id: string;
3588
+ is_deleted: boolean;
3589
+ sequence_number: number;
3590
+ status: string | null;
3591
+ synced_at: string;
3592
+ };
3593
+ Insert: {
3594
+ buyer_organization_id?: string | null;
3595
+ buyer_organization_name?: string | null;
3596
+ connection_id: string;
3597
+ data: import("./types").Json;
3598
+ floriday_connection_id: string;
3599
+ is_deleted?: boolean;
3600
+ sequence_number: number;
3601
+ status?: string | null;
3602
+ synced_at?: string;
3603
+ };
3604
+ Update: {
3605
+ buyer_organization_id?: string | null;
3606
+ buyer_organization_name?: string | null;
3607
+ connection_id?: string;
3608
+ data?: import("./types").Json;
3609
+ floriday_connection_id?: string;
3610
+ is_deleted?: boolean;
3611
+ sequence_number?: number;
3612
+ status?: string | null;
3613
+ synced_at?: string;
3614
+ };
3615
+ Relationships: [{
3616
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3617
+ columns: ["connection_id"];
3618
+ isOneToOne: false;
3619
+ referencedRelation: "floriday_connections";
3620
+ referencedColumns: ["id"];
3621
+ }];
3622
+ };
3623
+ floriday_contract_trade_item_groups_cache: {
3624
+ Row: {
3625
+ connection_id: string;
3626
+ data: import("./types").Json;
3627
+ fetched_at: string;
3628
+ floriday_id: string;
3629
+ is_deleted: boolean;
3630
+ sequence_number: number;
3631
+ updated_at: string;
3632
+ };
3633
+ Insert: {
3634
+ connection_id: string;
3635
+ data: import("./types").Json;
3636
+ fetched_at?: string;
3637
+ floriday_id: string;
3638
+ is_deleted?: boolean;
3639
+ sequence_number?: number;
3640
+ updated_at?: string;
3641
+ };
3642
+ Update: {
3643
+ connection_id?: string;
3644
+ data?: import("./types").Json;
3645
+ fetched_at?: string;
3646
+ floriday_id?: string;
3647
+ is_deleted?: boolean;
3648
+ sequence_number?: number;
3649
+ updated_at?: string;
3650
+ };
3651
+ Relationships: [{
3652
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3653
+ columns: ["connection_id"];
3654
+ isOneToOne: false;
3655
+ referencedRelation: "floriday_connections";
3656
+ referencedColumns: ["id"];
3657
+ }];
3658
+ };
3659
+ floriday_contracts_cache: {
3660
+ Row: {
3661
+ connection_id: string;
3662
+ created_at: string;
3663
+ data: import("./types").Json;
3664
+ fetched_at: string;
3665
+ floriday_id: string;
3666
+ id: string;
3667
+ is_deleted: boolean;
3668
+ sequence_number: number;
3669
+ updated_at: string;
3670
+ };
3671
+ Insert: {
3672
+ connection_id: string;
3673
+ created_at?: string;
3674
+ data: import("./types").Json;
3675
+ fetched_at?: string;
3676
+ floriday_id: string;
3677
+ id?: string;
3678
+ is_deleted?: boolean;
3679
+ sequence_number?: number;
3680
+ updated_at?: string;
3681
+ };
3682
+ Update: {
3683
+ connection_id?: string;
3684
+ created_at?: string;
3685
+ data?: import("./types").Json;
3686
+ fetched_at?: string;
3687
+ floriday_id?: string;
3688
+ id?: string;
3689
+ is_deleted?: boolean;
3690
+ sequence_number?: number;
3691
+ updated_at?: string;
3692
+ };
3693
+ Relationships: [{
3694
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3695
+ columns: ["connection_id"];
3696
+ isOneToOne: false;
3697
+ referencedRelation: "floriday_connections";
3698
+ referencedColumns: ["id"];
3699
+ }];
3700
+ };
3701
+ floriday_customer_sticker_pdfs_cache: {
3702
+ Row: {
3703
+ byte_size: number | null;
3704
+ connection_id: string;
3705
+ content_type: string;
3706
+ created_at: string;
3707
+ fetched_at: string;
3708
+ id: string;
3709
+ sticker_id: string;
3710
+ storage_path: string;
3711
+ };
3712
+ Insert: {
3713
+ byte_size?: number | null;
3714
+ connection_id: string;
3715
+ content_type?: string;
3716
+ created_at?: string;
3717
+ fetched_at?: string;
3718
+ id?: string;
3719
+ sticker_id: string;
3720
+ storage_path: string;
3721
+ };
3722
+ Update: {
3723
+ byte_size?: number | null;
3724
+ connection_id?: string;
3725
+ content_type?: string;
3726
+ created_at?: string;
3727
+ fetched_at?: string;
3728
+ id?: string;
3729
+ sticker_id?: string;
3730
+ storage_path?: string;
3731
+ };
3732
+ Relationships: [{
3733
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3734
+ columns: ["connection_id"];
3735
+ isOneToOne: false;
3736
+ referencedRelation: "floriday_connections";
3737
+ referencedColumns: ["id"];
3738
+ }];
3739
+ };
3740
+ floriday_customer_stickers_cache: {
3741
+ Row: {
3742
+ connection_id: string;
3743
+ created_at: string;
3744
+ data: import("./types").Json;
3745
+ fetched_at: string;
3746
+ floriday_id: string;
3747
+ id: string;
3748
+ is_deleted: boolean;
3749
+ quantity: number | null;
3750
+ sales_order_id: string | null;
3751
+ sequence_number: number;
3752
+ status: string | null;
3753
+ trade_item_id: string | null;
3754
+ updated_at: string;
3755
+ };
3756
+ Insert: {
3757
+ connection_id: string;
3758
+ created_at?: string;
3759
+ data?: import("./types").Json;
3760
+ fetched_at?: string;
3761
+ floriday_id: string;
3762
+ id?: string;
3763
+ is_deleted?: boolean;
3764
+ quantity?: number | null;
3765
+ sales_order_id?: string | null;
3766
+ sequence_number?: number;
3767
+ status?: string | null;
3768
+ trade_item_id?: string | null;
3769
+ updated_at?: string;
3770
+ };
3771
+ Update: {
3772
+ connection_id?: string;
3773
+ created_at?: string;
3774
+ data?: import("./types").Json;
3775
+ fetched_at?: string;
3776
+ floriday_id?: string;
3777
+ id?: string;
3778
+ is_deleted?: boolean;
3779
+ quantity?: number | null;
3780
+ sales_order_id?: string | null;
3781
+ sequence_number?: number;
3782
+ status?: string | null;
3783
+ trade_item_id?: string | null;
3784
+ updated_at?: string;
3785
+ };
3786
+ Relationships: [{
3787
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3788
+ columns: ["connection_id"];
3789
+ isOneToOne: false;
3790
+ referencedRelation: "floriday_connections";
3791
+ referencedColumns: ["id"];
3792
+ }];
3793
+ };
3794
+ floriday_customers_cache: {
3795
+ Row: {
3796
+ connection_id: string | null;
3797
+ data: import("./types").Json;
3798
+ fetched_at: string;
3799
+ gln_code: string | null;
3800
+ is_deleted: boolean;
3801
+ name: string | null;
3802
+ organization_id: string;
3803
+ sequence_number: number | null;
3804
+ };
3805
+ Insert: {
3806
+ connection_id?: string | null;
3807
+ data?: import("./types").Json;
3808
+ fetched_at?: string;
3809
+ gln_code?: string | null;
3810
+ is_deleted?: boolean;
3811
+ name?: string | null;
3812
+ organization_id: string;
3813
+ sequence_number?: number | null;
3814
+ };
3815
+ Update: {
3816
+ connection_id?: string | null;
3817
+ data?: import("./types").Json;
3818
+ fetched_at?: string;
3819
+ gln_code?: string | null;
3820
+ is_deleted?: boolean;
3821
+ name?: string | null;
3822
+ organization_id?: string;
3823
+ sequence_number?: number | null;
3824
+ };
3825
+ Relationships: [{
3826
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3827
+ columns: ["connection_id"];
3828
+ isOneToOne: false;
3829
+ referencedRelation: "floriday_connections";
3830
+ referencedColumns: ["id"];
3831
+ }];
3832
+ };
3833
+ floriday_delivery_condition_sets_cache: {
3834
+ Row: {
3835
+ connection_id: string;
3836
+ data: import("./types").Json;
3837
+ fetched_at: string;
3838
+ floriday_id: string;
3839
+ is_deleted: boolean;
3840
+ sequence_number: number;
3841
+ updated_at: string;
3842
+ };
3843
+ Insert: {
3844
+ connection_id: string;
3845
+ data: import("./types").Json;
3846
+ fetched_at?: string;
3847
+ floriday_id: string;
3848
+ is_deleted?: boolean;
3849
+ sequence_number?: number;
3850
+ updated_at?: string;
3851
+ };
3852
+ Update: {
3853
+ connection_id?: string;
3854
+ data?: import("./types").Json;
3855
+ fetched_at?: string;
3856
+ floriday_id?: string;
3857
+ is_deleted?: boolean;
3858
+ sequence_number?: number;
3859
+ updated_at?: string;
3860
+ };
3861
+ Relationships: [{
3862
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3863
+ columns: ["connection_id"];
3864
+ isOneToOne: false;
3865
+ referencedRelation: "floriday_connections";
3866
+ referencedColumns: ["id"];
3867
+ }];
3868
+ };
3869
+ floriday_delivery_locations_cache: {
3870
+ Row: {
3871
+ connection_id: string;
3872
+ data: import("./types").Json;
3873
+ fetched_at: string;
3874
+ floriday_id: string;
3875
+ gln_code: string | null;
3876
+ id: string;
3877
+ is_deleted: boolean;
3878
+ name: string | null;
3879
+ organization_id: string | null;
3880
+ updated_at: string;
3881
+ };
3882
+ Insert: {
3883
+ connection_id: string;
3884
+ data?: import("./types").Json;
3885
+ fetched_at?: string;
3886
+ floriday_id: string;
3887
+ gln_code?: string | null;
3888
+ id?: string;
3889
+ is_deleted?: boolean;
3890
+ name?: string | null;
3891
+ organization_id?: string | null;
3892
+ updated_at?: string;
3893
+ };
3894
+ Update: {
3895
+ connection_id?: string;
3896
+ data?: import("./types").Json;
3897
+ fetched_at?: string;
3898
+ floriday_id?: string;
3899
+ gln_code?: string | null;
3900
+ id?: string;
3901
+ is_deleted?: boolean;
3902
+ name?: string | null;
3903
+ organization_id?: string | null;
3904
+ updated_at?: string;
3905
+ };
3906
+ Relationships: [{
3907
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3908
+ columns: ["connection_id"];
3909
+ isOneToOne: false;
3910
+ referencedRelation: "floriday_connections";
3911
+ referencedColumns: ["id"];
3912
+ }];
3913
+ };
3914
+ floriday_delivery_orders_cache: {
3915
+ Row: {
3916
+ auction_date: string | null;
3917
+ connection_id: string;
3918
+ data: import("./types").Json;
3919
+ destination_warehouse_id: string | null;
3920
+ fetched_at: string;
3921
+ floriday_id: string;
3922
+ id: string;
3923
+ is_deleted: boolean;
3924
+ sequence_number: number;
3925
+ status: string | null;
3926
+ trade_item_id: string | null;
3927
+ updated_at: string;
3928
+ };
3929
+ Insert: {
3930
+ auction_date?: string | null;
3931
+ connection_id: string;
3932
+ data?: import("./types").Json;
3933
+ destination_warehouse_id?: string | null;
3934
+ fetched_at?: string;
3935
+ floriday_id: string;
3936
+ id?: string;
3937
+ is_deleted?: boolean;
3938
+ sequence_number?: number;
3939
+ status?: string | null;
3940
+ trade_item_id?: string | null;
3941
+ updated_at?: string;
3942
+ };
3943
+ Update: {
3944
+ auction_date?: string | null;
3945
+ connection_id?: string;
3946
+ data?: import("./types").Json;
3947
+ destination_warehouse_id?: string | null;
3948
+ fetched_at?: string;
3949
+ floriday_id?: string;
3950
+ id?: string;
3951
+ is_deleted?: boolean;
3952
+ sequence_number?: number;
3953
+ status?: string | null;
3954
+ trade_item_id?: string | null;
3955
+ updated_at?: string;
3956
+ };
3957
+ Relationships: [{
3958
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3959
+ columns: ["connection_id"];
3960
+ isOneToOne: false;
3961
+ referencedRelation: "floriday_connections";
3962
+ referencedColumns: ["id"];
3963
+ }];
3964
+ };
3965
+ floriday_fulfillment_orders_cache: {
3966
+ Row: {
3967
+ auction_date: string | null;
3968
+ connection_id: string;
3969
+ data: import("./types").Json;
3970
+ delivery_order_id: string | null;
3971
+ despatch_warehouse_id: string | null;
3972
+ destination_warehouse_id: string | null;
3973
+ fetched_at: string;
3974
+ floriday_id: string;
3975
+ id: string;
3976
+ is_deleted: boolean | null;
3977
+ latest_delivery_at: string | null;
3978
+ load_carrier_type: string | null;
3979
+ one_label_only: boolean | null;
3980
+ sequence_number: number;
3981
+ status: string | null;
3982
+ };
3983
+ Insert: {
3984
+ auction_date?: string | null;
3985
+ connection_id: string;
3986
+ data: import("./types").Json;
3987
+ delivery_order_id?: string | null;
3988
+ despatch_warehouse_id?: string | null;
3989
+ destination_warehouse_id?: string | null;
3990
+ fetched_at?: string;
3991
+ floriday_id: string;
3992
+ id?: string;
3993
+ is_deleted?: boolean | null;
3994
+ latest_delivery_at?: string | null;
3995
+ load_carrier_type?: string | null;
3996
+ one_label_only?: boolean | null;
3997
+ sequence_number?: number;
3998
+ status?: string | null;
3999
+ };
4000
+ Update: {
4001
+ auction_date?: string | null;
4002
+ connection_id?: string;
4003
+ data?: import("./types").Json;
4004
+ delivery_order_id?: string | null;
4005
+ despatch_warehouse_id?: string | null;
4006
+ destination_warehouse_id?: string | null;
4007
+ fetched_at?: string;
4008
+ floriday_id?: string;
4009
+ id?: string;
4010
+ is_deleted?: boolean | null;
4011
+ latest_delivery_at?: string | null;
4012
+ load_carrier_type?: string | null;
4013
+ one_label_only?: boolean | null;
4014
+ sequence_number?: number;
4015
+ status?: string | null;
4016
+ };
4017
+ Relationships: [{
4018
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
4019
+ columns: ["connection_id"];
4020
+ isOneToOne: false;
4021
+ referencedRelation: "floriday_connections";
4022
+ referencedColumns: ["id"];
4023
+ }];
4024
+ };
4025
+ floriday_invoices_cache: {
4026
+ Row: {
4027
+ buyer_organization_id: string | null;
4028
+ connection_id: string;
4029
+ currency: string | null;
4030
+ data: import("./types").Json;
4031
+ fetched_at: string;
4032
+ floriday_id: string;
4033
+ id: string;
4034
+ invoice_date: string | null;
4035
+ invoice_number: string | null;
4036
+ is_deleted: boolean;
4037
+ sequence_number: number;
4038
+ total_amount: number | null;
4039
+ updated_at: string;
4040
+ };
4041
+ Insert: {
4042
+ buyer_organization_id?: string | null;
4043
+ connection_id: string;
4044
+ currency?: string | null;
4045
+ data?: import("./types").Json;
4046
+ fetched_at?: string;
4047
+ floriday_id: string;
4048
+ id?: string;
4049
+ invoice_date?: string | null;
4050
+ invoice_number?: string | null;
4051
+ is_deleted?: boolean;
4052
+ sequence_number?: number;
4053
+ total_amount?: number | null;
4054
+ updated_at?: string;
4055
+ };
4056
+ Update: {
4057
+ buyer_organization_id?: string | null;
4058
+ connection_id?: string;
4059
+ currency?: string | null;
4060
+ data?: import("./types").Json;
4061
+ fetched_at?: string;
4062
+ floriday_id?: string;
4063
+ id?: string;
4064
+ invoice_date?: string | null;
4065
+ invoice_number?: string | null;
4066
+ is_deleted?: boolean;
4067
+ sequence_number?: number;
4068
+ total_amount?: number | null;
4069
+ updated_at?: string;
4070
+ };
4071
+ Relationships: [{
4072
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
4073
+ columns: ["connection_id"];
4074
+ isOneToOne: false;
4075
+ referencedRelation: "floriday_connections";
4076
+ referencedColumns: ["id"];
4077
+ }];
4078
+ };
4079
+ floriday_logistic_labels_cache: {
4080
+ Row: {
4081
+ byte_size: number | null;
4082
+ connection_id: string;
4083
+ content_type: string;
4084
+ fetched_at: string;
4085
+ fulfillment_order_id: string;
4086
+ id: string;
4087
+ logistic_label_code: string;
4088
+ storage_path: string;
4089
+ };
4090
+ Insert: {
4091
+ byte_size?: number | null;
4092
+ connection_id: string;
4093
+ content_type?: string;
4094
+ fetched_at?: string;
4095
+ fulfillment_order_id: string;
4096
+ id?: string;
4097
+ logistic_label_code: string;
4098
+ storage_path: string;
4099
+ };
4100
+ Update: {
4101
+ byte_size?: number | null;
4102
+ connection_id?: string;
4103
+ content_type?: string;
4104
+ fetched_at?: string;
4105
+ fulfillment_order_id?: string;
4106
+ id?: string;
4107
+ logistic_label_code?: string;
4108
+ storage_path?: string;
4109
+ };
4110
+ Relationships: [{
4111
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
4112
+ columns: ["connection_id"];
4113
+ isOneToOne: false;
4114
+ referencedRelation: "floriday_connections";
4115
+ referencedColumns: ["id"];
4116
+ }];
4117
+ };
4118
+ floriday_network_cache: {
4119
+ Row: {
4120
+ city: string | null;
4121
+ connection_id: string;
4122
+ country: string | null;
2611
4123
  data: import("./types").Json;
2612
4124
  fetched_at: string;
2613
4125
  gln: string | null;
@@ -2615,50 +4127,206 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2615
4127
  organization_name: string | null;
2616
4128
  };
2617
4129
  Insert: {
2618
- city?: string | null;
4130
+ city?: string | null;
4131
+ connection_id: string;
4132
+ country?: string | null;
4133
+ data?: import("./types").Json;
4134
+ fetched_at?: string;
4135
+ gln?: string | null;
4136
+ organization_id: string;
4137
+ organization_name?: string | null;
4138
+ };
4139
+ Update: {
4140
+ city?: string | null;
4141
+ connection_id?: string;
4142
+ country?: string | null;
4143
+ data?: import("./types").Json;
4144
+ fetched_at?: string;
4145
+ gln?: string | null;
4146
+ organization_id?: string;
4147
+ organization_name?: string | null;
4148
+ };
4149
+ Relationships: [];
4150
+ };
4151
+ floriday_network_sync_state: {
4152
+ Row: {
4153
+ connection_id: string;
4154
+ last_error: string | null;
4155
+ last_sequence_number: number;
4156
+ last_synced_at: string | null;
4157
+ updated_at: string;
4158
+ };
4159
+ Insert: {
4160
+ connection_id: string;
4161
+ last_error?: string | null;
4162
+ last_sequence_number?: number;
4163
+ last_synced_at?: string | null;
4164
+ updated_at?: string;
4165
+ };
4166
+ Update: {
4167
+ connection_id?: string;
4168
+ last_error?: string | null;
4169
+ last_sequence_number?: number;
4170
+ last_synced_at?: string | null;
4171
+ updated_at?: string;
4172
+ };
4173
+ Relationships: [];
4174
+ };
4175
+ floriday_order_number_map: {
4176
+ Row: {
4177
+ created_at: string;
4178
+ floriday_id: string;
4179
+ order_number: string;
4180
+ };
4181
+ Insert: {
4182
+ created_at?: string;
4183
+ floriday_id: string;
4184
+ order_number: string;
4185
+ };
4186
+ Update: {
4187
+ created_at?: string;
4188
+ floriday_id?: string;
4189
+ order_number?: string;
4190
+ };
4191
+ Relationships: [];
4192
+ };
4193
+ floriday_packings_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_packings_cache_connection_id_fkey";
4226
+ columns: ["connection_id"];
4227
+ isOneToOne: false;
4228
+ referencedRelation: "floriday_connections";
4229
+ referencedColumns: ["id"];
4230
+ }];
4231
+ };
4232
+ floriday_price_groups_cache: {
4233
+ Row: {
4234
+ connection_id: string;
4235
+ data: import("./types").Json;
4236
+ fetched_at: string;
4237
+ floriday_id: string;
4238
+ is_deleted: boolean;
4239
+ sequence_number: number;
4240
+ updated_at: string;
4241
+ };
4242
+ Insert: {
2619
4243
  connection_id: string;
2620
- country?: string | null;
2621
- data?: import("./types").Json;
4244
+ data: import("./types").Json;
2622
4245
  fetched_at?: string;
2623
- gln?: string | null;
2624
- organization_id: string;
2625
- organization_name?: string | null;
4246
+ floriday_id: string;
4247
+ is_deleted?: boolean;
4248
+ sequence_number?: number;
4249
+ updated_at?: string;
2626
4250
  };
2627
4251
  Update: {
2628
- city?: string | null;
2629
4252
  connection_id?: string;
2630
- country?: string | null;
2631
4253
  data?: import("./types").Json;
2632
4254
  fetched_at?: string;
2633
- gln?: string | null;
2634
- organization_id?: string;
2635
- organization_name?: string | null;
4255
+ floriday_id?: string;
4256
+ is_deleted?: boolean;
4257
+ sequence_number?: number;
4258
+ updated_at?: string;
4259
+ };
4260
+ Relationships: [{
4261
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
4262
+ columns: ["connection_id"];
4263
+ isOneToOne: false;
4264
+ referencedRelation: "floriday_connections";
4265
+ referencedColumns: ["id"];
4266
+ }];
4267
+ };
4268
+ floriday_resource_schemas: {
4269
+ Row: {
4270
+ enums: import("./types").Json;
4271
+ fetched_at: string;
4272
+ resource: string;
4273
+ schema: import("./types").Json;
4274
+ source_url: string | null;
4275
+ version: string;
4276
+ };
4277
+ Insert: {
4278
+ enums?: import("./types").Json;
4279
+ fetched_at?: string;
4280
+ resource: string;
4281
+ schema: import("./types").Json;
4282
+ source_url?: string | null;
4283
+ version: string;
4284
+ };
4285
+ Update: {
4286
+ enums?: import("./types").Json;
4287
+ fetched_at?: string;
4288
+ resource?: string;
4289
+ schema?: import("./types").Json;
4290
+ source_url?: string | null;
4291
+ version?: string;
2636
4292
  };
2637
4293
  Relationships: [];
2638
4294
  };
2639
- floriday_network_sync_state: {
4295
+ floriday_sales_strategies_cache: {
2640
4296
  Row: {
2641
4297
  connection_id: string;
2642
- last_error: string | null;
2643
- last_sequence_number: number;
2644
- last_synced_at: string | null;
4298
+ data: import("./types").Json;
4299
+ fetched_at: string;
4300
+ floriday_id: string;
4301
+ is_deleted: boolean;
4302
+ sequence_number: number;
2645
4303
  updated_at: string;
2646
4304
  };
2647
4305
  Insert: {
2648
4306
  connection_id: string;
2649
- last_error?: string | null;
2650
- last_sequence_number?: number;
2651
- last_synced_at?: string | null;
4307
+ data: import("./types").Json;
4308
+ fetched_at?: string;
4309
+ floriday_id: string;
4310
+ is_deleted?: boolean;
4311
+ sequence_number?: number;
2652
4312
  updated_at?: string;
2653
4313
  };
2654
4314
  Update: {
2655
4315
  connection_id?: string;
2656
- last_error?: string | null;
2657
- last_sequence_number?: number;
2658
- last_synced_at?: string | null;
4316
+ data?: import("./types").Json;
4317
+ fetched_at?: string;
4318
+ floriday_id?: string;
4319
+ is_deleted?: boolean;
4320
+ sequence_number?: number;
2659
4321
  updated_at?: string;
2660
4322
  };
2661
- Relationships: [];
4323
+ Relationships: [{
4324
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4325
+ columns: ["connection_id"];
4326
+ isOneToOne: false;
4327
+ referencedRelation: "floriday_connections";
4328
+ referencedColumns: ["id"];
4329
+ }];
2662
4330
  };
2663
4331
  floriday_salesorders_cache: {
2664
4332
  Row: {
@@ -2725,7 +4393,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2725
4393
  connection_id: string;
2726
4394
  entity_type: string;
2727
4395
  last_error: string | null;
4396
+ last_items_processed: number | null;
2728
4397
  last_sequence_number: number;
4398
+ last_success_at: string | null;
2729
4399
  last_synced_at: string | null;
2730
4400
  updated_at: string;
2731
4401
  };
@@ -2733,7 +4403,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2733
4403
  connection_id: string;
2734
4404
  entity_type: string;
2735
4405
  last_error?: string | null;
4406
+ last_items_processed?: number | null;
2736
4407
  last_sequence_number?: number;
4408
+ last_success_at?: string | null;
2737
4409
  last_synced_at?: string | null;
2738
4410
  updated_at?: string;
2739
4411
  };
@@ -2741,7 +4413,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2741
4413
  connection_id?: string;
2742
4414
  entity_type?: string;
2743
4415
  last_error?: string | null;
4416
+ last_items_processed?: number | null;
2744
4417
  last_sequence_number?: number;
4418
+ last_success_at?: string | null;
2745
4419
  last_synced_at?: string | null;
2746
4420
  updated_at?: string;
2747
4421
  };
@@ -2789,6 +4463,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2789
4463
  referencedColumns: ["id"];
2790
4464
  }];
2791
4465
  };
4466
+ floriday_trade_item_classifications_cache: {
4467
+ Row: {
4468
+ connection_id: string;
4469
+ data: import("./types").Json;
4470
+ fetched_at: string;
4471
+ floriday_id: string;
4472
+ id: string;
4473
+ is_deleted: boolean;
4474
+ sequence_number: number;
4475
+ updated_at: string;
4476
+ };
4477
+ Insert: {
4478
+ connection_id: string;
4479
+ data: import("./types").Json;
4480
+ fetched_at?: string;
4481
+ floriday_id: string;
4482
+ id?: string;
4483
+ is_deleted?: boolean;
4484
+ sequence_number?: number;
4485
+ updated_at?: string;
4486
+ };
4487
+ Update: {
4488
+ connection_id?: string;
4489
+ data?: import("./types").Json;
4490
+ fetched_at?: string;
4491
+ floriday_id?: string;
4492
+ id?: string;
4493
+ is_deleted?: boolean;
4494
+ sequence_number?: number;
4495
+ updated_at?: string;
4496
+ };
4497
+ Relationships: [{
4498
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4499
+ columns: ["connection_id"];
4500
+ isOneToOne: false;
4501
+ referencedRelation: "floriday_connections";
4502
+ referencedColumns: ["id"];
4503
+ }];
4504
+ };
2792
4505
  floriday_trade_items_cache: {
2793
4506
  Row: {
2794
4507
  connection_id: string;
@@ -2815,7 +4528,160 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2815
4528
  sequence_number?: number;
2816
4529
  };
2817
4530
  Relationships: [{
2818
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4531
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4532
+ columns: ["connection_id"];
4533
+ isOneToOne: false;
4534
+ referencedRelation: "floriday_connections";
4535
+ referencedColumns: ["id"];
4536
+ }];
4537
+ };
4538
+ floriday_trips_cache: {
4539
+ Row: {
4540
+ carrier_organization_id: string | null;
4541
+ connection_id: string;
4542
+ data: import("./types").Json;
4543
+ fetched_at: string;
4544
+ floriday_id: string;
4545
+ id: string;
4546
+ is_deleted: boolean;
4547
+ sequence_number: number;
4548
+ status: string | null;
4549
+ trip_date: string | null;
4550
+ updated_at: string;
4551
+ };
4552
+ Insert: {
4553
+ carrier_organization_id?: string | null;
4554
+ connection_id: string;
4555
+ data?: import("./types").Json;
4556
+ fetched_at?: string;
4557
+ floriday_id: string;
4558
+ id?: string;
4559
+ is_deleted?: boolean;
4560
+ sequence_number?: number;
4561
+ status?: string | null;
4562
+ trip_date?: string | null;
4563
+ updated_at?: string;
4564
+ };
4565
+ Update: {
4566
+ carrier_organization_id?: string | null;
4567
+ connection_id?: string;
4568
+ data?: import("./types").Json;
4569
+ fetched_at?: string;
4570
+ floriday_id?: string;
4571
+ id?: string;
4572
+ is_deleted?: boolean;
4573
+ sequence_number?: number;
4574
+ status?: string | null;
4575
+ trip_date?: string | null;
4576
+ updated_at?: string;
4577
+ };
4578
+ Relationships: [{
4579
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4580
+ columns: ["connection_id"];
4581
+ isOneToOne: false;
4582
+ referencedRelation: "floriday_connections";
4583
+ referencedColumns: ["id"];
4584
+ }];
4585
+ };
4586
+ floriday_warehouses_cache: {
4587
+ Row: {
4588
+ connection_id: string;
4589
+ data: import("./types").Json;
4590
+ fetched_at: string;
4591
+ floriday_id: string;
4592
+ gln_code: string | null;
4593
+ id: string;
4594
+ is_default: boolean;
4595
+ is_deleted: boolean;
4596
+ name: string | null;
4597
+ updated_at: string;
4598
+ };
4599
+ Insert: {
4600
+ connection_id: string;
4601
+ data?: import("./types").Json;
4602
+ fetched_at?: string;
4603
+ floriday_id: string;
4604
+ gln_code?: string | null;
4605
+ id?: string;
4606
+ is_default?: boolean;
4607
+ is_deleted?: boolean;
4608
+ name?: string | null;
4609
+ updated_at?: string;
4610
+ };
4611
+ Update: {
4612
+ connection_id?: string;
4613
+ data?: import("./types").Json;
4614
+ fetched_at?: string;
4615
+ floriday_id?: string;
4616
+ gln_code?: string | null;
4617
+ id?: string;
4618
+ is_default?: boolean;
4619
+ is_deleted?: boolean;
4620
+ name?: string | null;
4621
+ updated_at?: string;
4622
+ };
4623
+ Relationships: [{
4624
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4625
+ columns: ["connection_id"];
4626
+ isOneToOne: false;
4627
+ referencedRelation: "floriday_connections";
4628
+ referencedColumns: ["id"];
4629
+ }];
4630
+ };
4631
+ floriday_write_log: {
4632
+ Row: {
4633
+ action: string;
4634
+ caller: string;
4635
+ connection_id: string | null;
4636
+ created_at: string;
4637
+ error: string | null;
4638
+ floriday_id: string | null;
4639
+ http_status: number | null;
4640
+ id: string;
4641
+ idempotency_key: string | null;
4642
+ module: string | null;
4643
+ ok: boolean;
4644
+ request: import("./types").Json | null;
4645
+ resource: string;
4646
+ response: import("./types").Json | null;
4647
+ user_id: string | null;
4648
+ };
4649
+ Insert: {
4650
+ action: string;
4651
+ caller?: string;
4652
+ connection_id?: string | null;
4653
+ created_at?: string;
4654
+ error?: string | null;
4655
+ floriday_id?: string | null;
4656
+ http_status?: number | null;
4657
+ id?: string;
4658
+ idempotency_key?: string | null;
4659
+ module?: string | null;
4660
+ ok: boolean;
4661
+ request?: import("./types").Json | null;
4662
+ resource: string;
4663
+ response?: import("./types").Json | null;
4664
+ user_id?: string | null;
4665
+ };
4666
+ Update: {
4667
+ action?: string;
4668
+ caller?: string;
4669
+ connection_id?: string | null;
4670
+ created_at?: string;
4671
+ error?: string | null;
4672
+ floriday_id?: string | null;
4673
+ http_status?: number | null;
4674
+ id?: string;
4675
+ idempotency_key?: string | null;
4676
+ module?: string | null;
4677
+ ok?: boolean;
4678
+ request?: import("./types").Json | null;
4679
+ resource?: string;
4680
+ response?: import("./types").Json | null;
4681
+ user_id?: string | null;
4682
+ };
4683
+ Relationships: [{
4684
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2819
4685
  columns: ["connection_id"];
2820
4686
  isOneToOne: false;
2821
4687
  referencedRelation: "floriday_connections";
@@ -2996,6 +4862,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2996
4862
  };
2997
4863
  Relationships: [];
2998
4864
  };
4865
+ invoice_push_log: {
4866
+ Row: {
4867
+ connection_id: string | null;
4868
+ created_at: string;
4869
+ created_by: string;
4870
+ customer_id: string | null;
4871
+ id: string;
4872
+ last_error: string | null;
4873
+ last_polled_at: string | null;
4874
+ payload: import("./types").Json;
4875
+ provider_id: string;
4876
+ queue_id: string | null;
4877
+ status: string;
4878
+ updated_at: string;
4879
+ };
4880
+ Insert: {
4881
+ connection_id?: string | null;
4882
+ created_at?: string;
4883
+ created_by?: string;
4884
+ customer_id?: string | null;
4885
+ id?: string;
4886
+ last_error?: string | null;
4887
+ last_polled_at?: string | null;
4888
+ payload?: import("./types").Json;
4889
+ provider_id: string;
4890
+ queue_id?: string | null;
4891
+ status?: string;
4892
+ updated_at?: string;
4893
+ };
4894
+ Update: {
4895
+ connection_id?: string | null;
4896
+ created_at?: string;
4897
+ created_by?: string;
4898
+ customer_id?: string | null;
4899
+ id?: string;
4900
+ last_error?: string | null;
4901
+ last_polled_at?: string | null;
4902
+ payload?: import("./types").Json;
4903
+ provider_id?: string;
4904
+ queue_id?: string | null;
4905
+ status?: string;
4906
+ updated_at?: string;
4907
+ };
4908
+ Relationships: [{
4909
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4910
+ columns: ["provider_id"];
4911
+ isOneToOne: false;
4912
+ referencedRelation: "external_invoice_providers";
4913
+ referencedColumns: ["provider"];
4914
+ }];
4915
+ };
2999
4916
  invoice_run_items: {
3000
4917
  Row: {
3001
4918
  booking_id: string | null;
@@ -3120,6 +5037,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3120
5037
  Row: {
3121
5038
  body_html: string | null;
3122
5039
  body_text: string | null;
5040
+ connection_id: string | null;
3123
5041
  created_at: string;
3124
5042
  error_message: string | null;
3125
5043
  external_id: string | null;
@@ -3138,6 +5056,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3138
5056
  Insert: {
3139
5057
  body_html?: string | null;
3140
5058
  body_text?: string | null;
5059
+ connection_id?: string | null;
3141
5060
  created_at?: string;
3142
5061
  error_message?: string | null;
3143
5062
  external_id?: string | null;
@@ -3156,6 +5075,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3156
5075
  Update: {
3157
5076
  body_html?: string | null;
3158
5077
  body_text?: string | null;
5078
+ connection_id?: string | null;
3159
5079
  created_at?: string;
3160
5080
  error_message?: string | null;
3161
5081
  external_id?: string | null;
@@ -3172,6 +5092,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3172
5092
  updated_at?: string;
3173
5093
  };
3174
5094
  Relationships: [{
5095
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
5096
+ columns: ["connection_id"];
5097
+ isOneToOne: false;
5098
+ referencedRelation: "email_auth_connections";
5099
+ referencedColumns: ["id"];
5100
+ }, {
5101
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
5102
+ columns: ["connection_id"];
5103
+ isOneToOne: false;
5104
+ referencedRelation: "email_auth_connections_safe";
5105
+ referencedColumns: ["id"];
5106
+ }, {
3175
5107
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3176
5108
  columns: ["profile_id"];
3177
5109
  isOneToOne: false;
@@ -3440,6 +5372,93 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3440
5372
  };
3441
5373
  Relationships: [];
3442
5374
  };
5375
+ manufacture_product_components: {
5376
+ Row: {
5377
+ component_type: string;
5378
+ created_at: string;
5379
+ id: string;
5380
+ manufacture_product_id: string;
5381
+ product_group_id: string | null;
5382
+ quantity: number;
5383
+ trade_item_id: string | null;
5384
+ unit: string;
5385
+ };
5386
+ Insert: {
5387
+ component_type: string;
5388
+ created_at?: string;
5389
+ id?: string;
5390
+ manufacture_product_id: string;
5391
+ product_group_id?: string | null;
5392
+ quantity?: number;
5393
+ trade_item_id?: string | null;
5394
+ unit?: string;
5395
+ };
5396
+ Update: {
5397
+ component_type?: string;
5398
+ created_at?: string;
5399
+ id?: string;
5400
+ manufacture_product_id?: string;
5401
+ product_group_id?: string | null;
5402
+ quantity?: number;
5403
+ trade_item_id?: string | null;
5404
+ unit?: string;
5405
+ };
5406
+ Relationships: [{
5407
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5408
+ columns: ["manufacture_product_id"];
5409
+ isOneToOne: false;
5410
+ referencedRelation: "manufacture_product_possible_stock_view";
5411
+ referencedColumns: ["manufacture_product_id"];
5412
+ }, {
5413
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5414
+ columns: ["manufacture_product_id"];
5415
+ isOneToOne: false;
5416
+ referencedRelation: "manufacture_products";
5417
+ referencedColumns: ["id"];
5418
+ }, {
5419
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5420
+ columns: ["product_group_id"];
5421
+ isOneToOne: false;
5422
+ referencedRelation: "product_groups";
5423
+ referencedColumns: ["id"];
5424
+ }];
5425
+ };
5426
+ manufacture_products: {
5427
+ Row: {
5428
+ created_at: string;
5429
+ description: string | null;
5430
+ id: string;
5431
+ is_active: boolean;
5432
+ name: string;
5433
+ produced_stock: number;
5434
+ product_code: string;
5435
+ tenant_id: string;
5436
+ updated_at: string;
5437
+ };
5438
+ Insert: {
5439
+ created_at?: string;
5440
+ description?: string | null;
5441
+ id?: string;
5442
+ is_active?: boolean;
5443
+ name: string;
5444
+ produced_stock?: number;
5445
+ product_code: string;
5446
+ tenant_id: string;
5447
+ updated_at?: string;
5448
+ };
5449
+ Update: {
5450
+ created_at?: string;
5451
+ description?: string | null;
5452
+ id?: string;
5453
+ is_active?: boolean;
5454
+ name?: string;
5455
+ produced_stock?: number;
5456
+ product_code?: string;
5457
+ tenant_id?: string;
5458
+ updated_at?: string;
5459
+ };
5460
+ Relationships: [];
5461
+ };
3443
5462
  monteurs: {
3444
5463
  Row: {
3445
5464
  avatar_url: string | null;
@@ -3455,6 +5474,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3455
5474
  role: string;
3456
5475
  tenant_id: string;
3457
5476
  updated_at: string;
5477
+ user_id: string | null;
3458
5478
  };
3459
5479
  Insert: {
3460
5480
  avatar_url?: string | null;
@@ -3470,6 +5490,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3470
5490
  role?: string;
3471
5491
  tenant_id: string;
3472
5492
  updated_at?: string;
5493
+ user_id?: string | null;
3473
5494
  };
3474
5495
  Update: {
3475
5496
  avatar_url?: string | null;
@@ -3485,6 +5506,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3485
5506
  role?: string;
3486
5507
  tenant_id?: string;
3487
5508
  updated_at?: string;
5509
+ user_id?: string | null;
3488
5510
  };
3489
5511
  Relationships: [{
3490
5512
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3621,12 +5643,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3621
5643
  isOneToOne: false;
3622
5644
  referencedRelation: "offer_campaigns";
3623
5645
  referencedColumns: ["id"];
3624
- }, {
3625
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3626
- columns: ["product_id"];
3627
- isOneToOne: false;
3628
- referencedRelation: "products";
3629
- referencedColumns: ["id"];
3630
5646
  }];
3631
5647
  };
3632
5648
  offer_campaigns: {
@@ -3902,6 +5918,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3902
5918
  };
3903
5919
  Relationships: [];
3904
5920
  };
5921
+ order_cart_items: {
5922
+ Row: {
5923
+ cart_id: string;
5924
+ crates: number;
5925
+ crates_per_layer: number;
5926
+ created_at: string;
5927
+ id: string;
5928
+ order_item_id: string | null;
5929
+ plants_per_crate: number;
5930
+ product_id: string | null;
5931
+ product_name: string;
5932
+ };
5933
+ Insert: {
5934
+ cart_id: string;
5935
+ crates: number;
5936
+ crates_per_layer?: number;
5937
+ created_at?: string;
5938
+ id?: string;
5939
+ order_item_id?: string | null;
5940
+ plants_per_crate?: number;
5941
+ product_id?: string | null;
5942
+ product_name: string;
5943
+ };
5944
+ Update: {
5945
+ cart_id?: string;
5946
+ crates?: number;
5947
+ crates_per_layer?: number;
5948
+ created_at?: string;
5949
+ id?: string;
5950
+ order_item_id?: string | null;
5951
+ plants_per_crate?: number;
5952
+ product_id?: string | null;
5953
+ product_name?: string;
5954
+ };
5955
+ Relationships: [{
5956
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5957
+ columns: ["cart_id"];
5958
+ isOneToOne: false;
5959
+ referencedRelation: "order_carts";
5960
+ referencedColumns: ["id"];
5961
+ }, {
5962
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5963
+ columns: ["order_item_id"];
5964
+ isOneToOne: false;
5965
+ referencedRelation: "order_items";
5966
+ referencedColumns: ["id"];
5967
+ }, {
5968
+ foreignKeyName: "order_cart_items_product_id_fkey";
5969
+ columns: ["product_id"];
5970
+ isOneToOne: false;
5971
+ referencedRelation: "products";
5972
+ referencedColumns: ["id"];
5973
+ }];
5974
+ };
5975
+ order_carts: {
5976
+ Row: {
5977
+ cart_number: number;
5978
+ created_at: string;
5979
+ id: string;
5980
+ is_auto: boolean;
5981
+ is_complete: boolean;
5982
+ notes: string | null;
5983
+ order_id: string;
5984
+ updated_at: string;
5985
+ };
5986
+ Insert: {
5987
+ cart_number: number;
5988
+ created_at?: string;
5989
+ id?: string;
5990
+ is_auto?: boolean;
5991
+ is_complete?: boolean;
5992
+ notes?: string | null;
5993
+ order_id: string;
5994
+ updated_at?: string;
5995
+ };
5996
+ Update: {
5997
+ cart_number?: number;
5998
+ created_at?: string;
5999
+ id?: string;
6000
+ is_auto?: boolean;
6001
+ is_complete?: boolean;
6002
+ notes?: string | null;
6003
+ order_id?: string;
6004
+ updated_at?: string;
6005
+ };
6006
+ Relationships: [{
6007
+ foreignKeyName: "order_carts_order_id_fkey";
6008
+ columns: ["order_id"];
6009
+ isOneToOne: false;
6010
+ referencedRelation: "orders";
6011
+ referencedColumns: ["id"];
6012
+ }];
6013
+ };
3905
6014
  order_field_options: {
3906
6015
  Row: {
3907
6016
  created_at: string;
@@ -4013,6 +6122,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4013
6122
  referencedColumns: ["id"];
4014
6123
  }];
4015
6124
  };
6125
+ order_number_counters: {
6126
+ Row: {
6127
+ last_value: number;
6128
+ updated_at: string;
6129
+ year: number;
6130
+ };
6131
+ Insert: {
6132
+ last_value?: number;
6133
+ updated_at?: string;
6134
+ year: number;
6135
+ };
6136
+ Update: {
6137
+ last_value?: number;
6138
+ updated_at?: string;
6139
+ year?: number;
6140
+ };
6141
+ Relationships: [];
6142
+ };
4016
6143
  orders: {
4017
6144
  Row: {
4018
6145
  created_at: string;
@@ -4025,6 +6152,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4025
6152
  notes: string | null;
4026
6153
  order_date: string;
4027
6154
  order_number: string;
6155
+ order_source: string;
4028
6156
  status: string;
4029
6157
  total: string;
4030
6158
  updated_at: string;
@@ -4040,6 +6168,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4040
6168
  notes?: string | null;
4041
6169
  order_date?: string;
4042
6170
  order_number: string;
6171
+ order_source?: string;
4043
6172
  status?: string;
4044
6173
  total?: string;
4045
6174
  updated_at?: string;
@@ -4055,6 +6184,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4055
6184
  notes?: string | null;
4056
6185
  order_date?: string;
4057
6186
  order_number?: string;
6187
+ order_source?: string;
4058
6188
  status?: string;
4059
6189
  total?: string;
4060
6190
  updated_at?: string;
@@ -4103,6 +6233,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4103
6233
  };
4104
6234
  Relationships: [];
4105
6235
  };
6236
+ pickstation_print_log: {
6237
+ Row: {
6238
+ customer_name: string | null;
6239
+ documents: string[];
6240
+ id: string;
6241
+ ip_address: string | null;
6242
+ order_id: string;
6243
+ order_number: string | null;
6244
+ printed_at: string;
6245
+ };
6246
+ Insert: {
6247
+ customer_name?: string | null;
6248
+ documents?: string[];
6249
+ id?: string;
6250
+ ip_address?: string | null;
6251
+ order_id: string;
6252
+ order_number?: string | null;
6253
+ printed_at?: string;
6254
+ };
6255
+ Update: {
6256
+ customer_name?: string | null;
6257
+ documents?: string[];
6258
+ id?: string;
6259
+ ip_address?: string | null;
6260
+ order_id?: string;
6261
+ order_number?: string | null;
6262
+ printed_at?: string;
6263
+ };
6264
+ Relationships: [];
6265
+ };
4106
6266
  pipeline_settings: {
4107
6267
  Row: {
4108
6268
  created_at: string;
@@ -4242,19 +6402,79 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4242
6402
  field_label: string;
4243
6403
  field_type?: string;
4244
6404
  id?: string;
4245
- is_custom?: boolean;
4246
- sort_order?: number;
6405
+ is_custom?: boolean;
6406
+ sort_order?: number;
6407
+ updated_at?: string;
6408
+ };
6409
+ Update: {
6410
+ active_per_category?: import("./types").Json;
6411
+ created_at?: string;
6412
+ field_key?: string;
6413
+ field_label?: string;
6414
+ field_type?: string;
6415
+ id?: string;
6416
+ is_custom?: boolean;
6417
+ sort_order?: number;
6418
+ updated_at?: string;
6419
+ };
6420
+ Relationships: [];
6421
+ };
6422
+ product_group_items: {
6423
+ Row: {
6424
+ created_at: string;
6425
+ id: string;
6426
+ product_group_id: string;
6427
+ quantity: number;
6428
+ trade_item_id: string;
6429
+ };
6430
+ Insert: {
6431
+ created_at?: string;
6432
+ id?: string;
6433
+ product_group_id: string;
6434
+ quantity?: number;
6435
+ trade_item_id: string;
6436
+ };
6437
+ Update: {
6438
+ created_at?: string;
6439
+ id?: string;
6440
+ product_group_id?: string;
6441
+ quantity?: number;
6442
+ trade_item_id?: string;
6443
+ };
6444
+ Relationships: [{
6445
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6446
+ columns: ["product_group_id"];
6447
+ isOneToOne: false;
6448
+ referencedRelation: "product_groups";
6449
+ referencedColumns: ["id"];
6450
+ }];
6451
+ };
6452
+ product_groups: {
6453
+ Row: {
6454
+ created_at: string;
6455
+ description: string | null;
6456
+ id: string;
6457
+ is_active: boolean;
6458
+ name: string;
6459
+ tenant_id: string;
6460
+ updated_at: string;
6461
+ };
6462
+ Insert: {
6463
+ created_at?: string;
6464
+ description?: string | null;
6465
+ id?: string;
6466
+ is_active?: boolean;
6467
+ name: string;
6468
+ tenant_id: string;
4247
6469
  updated_at?: string;
4248
6470
  };
4249
6471
  Update: {
4250
- active_per_category?: import("./types").Json;
4251
6472
  created_at?: string;
4252
- field_key?: string;
4253
- field_label?: string;
4254
- field_type?: string;
6473
+ description?: string | null;
4255
6474
  id?: string;
4256
- is_custom?: boolean;
4257
- sort_order?: number;
6475
+ is_active?: boolean;
6476
+ name?: string;
6477
+ tenant_id?: string;
4258
6478
  updated_at?: string;
4259
6479
  };
4260
6480
  Relationships: [];
@@ -4263,13 +6483,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4263
6483
  Row: {
4264
6484
  barcode: string | null;
4265
6485
  batch: string;
6486
+ crates_per_layer: number;
4266
6487
  created_at: string;
4267
6488
  custom_fields: import("./types").Json;
4268
6489
  id: string;
4269
6490
  image_url: string | null;
4270
6491
  incoming_quantity: number;
6492
+ layers_per_cart: number;
4271
6493
  location: string;
4272
6494
  min_quantity: number;
6495
+ plants_per_crate: number;
4273
6496
  product: string;
4274
6497
  product_type: string;
4275
6498
  purchase_price: number | null;
@@ -4282,13 +6505,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4282
6505
  Insert: {
4283
6506
  barcode?: string | null;
4284
6507
  batch: string;
6508
+ crates_per_layer?: number;
4285
6509
  created_at?: string;
4286
6510
  custom_fields?: import("./types").Json;
4287
6511
  id?: string;
4288
6512
  image_url?: string | null;
4289
6513
  incoming_quantity?: number;
6514
+ layers_per_cart?: number;
4290
6515
  location: string;
4291
6516
  min_quantity?: number;
6517
+ plants_per_crate?: number;
4292
6518
  product: string;
4293
6519
  product_type?: string;
4294
6520
  purchase_price?: number | null;
@@ -4301,13 +6527,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4301
6527
  Update: {
4302
6528
  barcode?: string | null;
4303
6529
  batch?: string;
6530
+ crates_per_layer?: number;
4304
6531
  created_at?: string;
4305
6532
  custom_fields?: import("./types").Json;
4306
6533
  id?: string;
4307
6534
  image_url?: string | null;
4308
6535
  incoming_quantity?: number;
6536
+ layers_per_cart?: number;
4309
6537
  location?: string;
4310
6538
  min_quantity?: number;
6539
+ plants_per_crate?: number;
4311
6540
  product?: string;
4312
6541
  product_type?: string;
4313
6542
  purchase_price?: number | null;
@@ -5249,12 +7478,153 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5249
7478
  };
5250
7479
  Relationships: [];
5251
7480
  };
7481
+ time_entries: {
7482
+ Row: {
7483
+ created_at: string;
7484
+ employee_id: string;
7485
+ entry_date: string;
7486
+ hours: number;
7487
+ id: string;
7488
+ notes: string | null;
7489
+ overtime: number;
7490
+ undertime: number;
7491
+ updated_at: string;
7492
+ };
7493
+ Insert: {
7494
+ created_at?: string;
7495
+ employee_id: string;
7496
+ entry_date: string;
7497
+ hours?: number;
7498
+ id?: string;
7499
+ notes?: string | null;
7500
+ overtime?: number;
7501
+ undertime?: number;
7502
+ updated_at?: string;
7503
+ };
7504
+ Update: {
7505
+ created_at?: string;
7506
+ employee_id?: string;
7507
+ entry_date?: string;
7508
+ hours?: number;
7509
+ id?: string;
7510
+ notes?: string | null;
7511
+ overtime?: number;
7512
+ undertime?: number;
7513
+ updated_at?: string;
7514
+ };
7515
+ Relationships: [{
7516
+ foreignKeyName: "time_entries_employee_id_fkey";
7517
+ columns: ["employee_id"];
7518
+ isOneToOne: false;
7519
+ referencedRelation: "monteurs";
7520
+ referencedColumns: ["id"];
7521
+ }];
7522
+ };
7523
+ time_logs: {
7524
+ Row: {
7525
+ created_at: string;
7526
+ employee_id: string;
7527
+ end_time: string | null;
7528
+ id: string;
7529
+ notes: string | null;
7530
+ overtime_hours: number;
7531
+ overtime_type: string | null;
7532
+ regular_hours: number;
7533
+ start_time: string;
7534
+ travel_cost: number | null;
7535
+ travel_distance_km: number | null;
7536
+ type: string;
7537
+ updated_at: string;
7538
+ };
7539
+ Insert: {
7540
+ created_at?: string;
7541
+ employee_id: string;
7542
+ end_time?: string | null;
7543
+ id?: string;
7544
+ notes?: string | null;
7545
+ overtime_hours?: number;
7546
+ overtime_type?: string | null;
7547
+ regular_hours?: number;
7548
+ start_time?: string;
7549
+ travel_cost?: number | null;
7550
+ travel_distance_km?: number | null;
7551
+ type: string;
7552
+ updated_at?: string;
7553
+ };
7554
+ Update: {
7555
+ created_at?: string;
7556
+ employee_id?: string;
7557
+ end_time?: string | null;
7558
+ id?: string;
7559
+ notes?: string | null;
7560
+ overtime_hours?: number;
7561
+ overtime_type?: string | null;
7562
+ regular_hours?: number;
7563
+ start_time?: string;
7564
+ travel_cost?: number | null;
7565
+ travel_distance_km?: number | null;
7566
+ type?: string;
7567
+ updated_at?: string;
7568
+ };
7569
+ Relationships: [{
7570
+ foreignKeyName: "time_logs_employee_id_fkey";
7571
+ columns: ["employee_id"];
7572
+ isOneToOne: false;
7573
+ referencedRelation: "monteurs";
7574
+ referencedColumns: ["id"];
7575
+ }];
7576
+ };
7577
+ time_off_entries: {
7578
+ Row: {
7579
+ created_at: string;
7580
+ employee_id: string;
7581
+ entry_date: string;
7582
+ hours: number;
7583
+ id: string;
7584
+ notes: string | null;
7585
+ type: string;
7586
+ updated_at: string;
7587
+ };
7588
+ Insert: {
7589
+ created_at?: string;
7590
+ employee_id: string;
7591
+ entry_date: string;
7592
+ hours?: number;
7593
+ id?: string;
7594
+ notes?: string | null;
7595
+ type: string;
7596
+ updated_at?: string;
7597
+ };
7598
+ Update: {
7599
+ created_at?: string;
7600
+ employee_id?: string;
7601
+ entry_date?: string;
7602
+ hours?: number;
7603
+ id?: string;
7604
+ notes?: string | null;
7605
+ type?: string;
7606
+ updated_at?: string;
7607
+ };
7608
+ Relationships: [{
7609
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7610
+ columns: ["employee_id"];
7611
+ isOneToOne: false;
7612
+ referencedRelation: "monteurs";
7613
+ referencedColumns: ["id"];
7614
+ }];
7615
+ };
5252
7616
  trade_item_drafts: {
5253
7617
  Row: {
5254
7618
  connection_id: string | null;
5255
7619
  created_at: string;
5256
7620
  data: import("./types").Json;
7621
+ floriday_id: string | null;
7622
+ floriday_link_error: string | null;
7623
+ floriday_link_status: string;
5257
7624
  id: string;
7625
+ last_floriday_sync_at: string | null;
7626
+ missing_required_fields: string[];
7627
+ source: string;
5258
7628
  updated_at: string;
5259
7629
  user_id: string;
5260
7630
  };
@@ -5262,7 +7632,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5262
7632
  connection_id?: string | null;
5263
7633
  created_at?: string;
5264
7634
  data?: import("./types").Json;
7635
+ floriday_id?: string | null;
7636
+ floriday_link_error?: string | null;
7637
+ floriday_link_status?: string;
5265
7638
  id?: string;
7639
+ last_floriday_sync_at?: string | null;
7640
+ missing_required_fields?: string[];
7641
+ source?: string;
5266
7642
  updated_at?: string;
5267
7643
  user_id: string;
5268
7644
  };
@@ -5270,7 +7646,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5270
7646
  connection_id?: string | null;
5271
7647
  created_at?: string;
5272
7648
  data?: import("./types").Json;
7649
+ floriday_id?: string | null;
7650
+ floriday_link_error?: string | null;
7651
+ floriday_link_status?: string;
7652
+ id?: string;
7653
+ last_floriday_sync_at?: string | null;
7654
+ missing_required_fields?: string[];
7655
+ source?: string;
7656
+ updated_at?: string;
7657
+ user_id?: string;
7658
+ };
7659
+ Relationships: [];
7660
+ };
7661
+ trade_item_stock: {
7662
+ Row: {
7663
+ connection_id: string;
7664
+ created_at: string;
7665
+ id: string;
7666
+ incoming_stock: number;
7667
+ minimum_stock: number;
7668
+ notes: string | null;
7669
+ physical_stock: number;
7670
+ reserved_stock: number;
7671
+ trade_item_key: string;
7672
+ updated_at: string;
7673
+ user_id: string;
7674
+ };
7675
+ Insert: {
7676
+ connection_id: string;
7677
+ created_at?: string;
7678
+ id?: string;
7679
+ incoming_stock?: number;
7680
+ minimum_stock?: number;
7681
+ notes?: string | null;
7682
+ physical_stock?: number;
7683
+ reserved_stock?: number;
7684
+ trade_item_key: string;
7685
+ updated_at?: string;
7686
+ user_id: string;
7687
+ };
7688
+ Update: {
7689
+ connection_id?: string;
7690
+ created_at?: string;
5273
7691
  id?: string;
7692
+ incoming_stock?: number;
7693
+ minimum_stock?: number;
7694
+ notes?: string | null;
7695
+ physical_stock?: number;
7696
+ reserved_stock?: number;
7697
+ trade_item_key?: string;
5274
7698
  updated_at?: string;
5275
7699
  user_id?: string;
5276
7700
  };
@@ -5546,9 +7970,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5546
7970
  fetched_at: string;
5547
7971
  invoice_number: string;
5548
7972
  line_number: number;
7973
+ line_total: number | null;
5549
7974
  quantity: number | null;
5550
7975
  unit_price: number | null;
5551
7976
  vat_code: string | null;
7977
+ vat_rate: number | null;
5552
7978
  };
5553
7979
  Insert: {
5554
7980
  article_code?: string | null;
@@ -5558,9 +7984,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5558
7984
  fetched_at?: string;
5559
7985
  invoice_number: string;
5560
7986
  line_number: number;
7987
+ line_total?: number | null;
5561
7988
  quantity?: number | null;
5562
7989
  unit_price?: number | null;
5563
7990
  vat_code?: string | null;
7991
+ vat_rate?: number | null;
5564
7992
  };
5565
7993
  Update: {
5566
7994
  article_code?: string | null;
@@ -5570,9 +7998,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5570
7998
  fetched_at?: string;
5571
7999
  invoice_number?: string;
5572
8000
  line_number?: number;
8001
+ line_total?: number | null;
5573
8002
  quantity?: number | null;
5574
8003
  unit_price?: number | null;
5575
8004
  vat_code?: string | null;
8005
+ vat_rate?: number | null;
5576
8006
  };
5577
8007
  Relationships: [{
5578
8008
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5614,6 +8044,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5614
8044
  };
5615
8045
  twinfield_invoice_sync_logs: {
5616
8046
  Row: {
8047
+ action_type: string | null;
5617
8048
  created_at: string;
5618
8049
  details: import("./types").Json | null;
5619
8050
  duration_ms: number | null;
@@ -5626,6 +8057,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5626
8057
  user_id: string;
5627
8058
  };
5628
8059
  Insert: {
8060
+ action_type?: string | null;
5629
8061
  created_at?: string;
5630
8062
  details?: import("./types").Json | null;
5631
8063
  duration_ms?: number | null;
@@ -5638,6 +8070,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5638
8070
  user_id: string;
5639
8071
  };
5640
8072
  Update: {
8073
+ action_type?: string | null;
5641
8074
  created_at?: string;
5642
8075
  details?: import("./types").Json | null;
5643
8076
  duration_ms?: number | null;
@@ -5749,9 +8182,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5749
8182
  invoice_date: string | null;
5750
8183
  invoice_number: string;
5751
8184
  modified_at: string | null;
8185
+ outstanding_amount: number | null;
5752
8186
  status: string | null;
8187
+ status_label: string | null;
5753
8188
  total_excl: number | null;
5754
8189
  total_incl: number | null;
8190
+ vat_amount: number | null;
5755
8191
  };
5756
8192
  Insert: {
5757
8193
  connection_id: string;
@@ -5763,9 +8199,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5763
8199
  invoice_date?: string | null;
5764
8200
  invoice_number: string;
5765
8201
  modified_at?: string | null;
8202
+ outstanding_amount?: number | null;
5766
8203
  status?: string | null;
8204
+ status_label?: string | null;
5767
8205
  total_excl?: number | null;
5768
8206
  total_incl?: number | null;
8207
+ vat_amount?: number | null;
5769
8208
  };
5770
8209
  Update: {
5771
8210
  connection_id?: string;
@@ -5777,9 +8216,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5777
8216
  invoice_date?: string | null;
5778
8217
  invoice_number?: string;
5779
8218
  modified_at?: string | null;
8219
+ outstanding_amount?: number | null;
5780
8220
  status?: string | null;
8221
+ status_label?: string | null;
5781
8222
  total_excl?: number | null;
5782
8223
  total_incl?: number | null;
8224
+ vat_amount?: number | null;
5783
8225
  };
5784
8226
  Relationships: [{
5785
8227
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5813,6 +8255,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5813
8255
  };
5814
8256
  Relationships: [];
5815
8257
  };
8258
+ twinfield_push_queue: {
8259
+ Row: {
8260
+ attempts: number;
8261
+ connection_id: string;
8262
+ created_at: string;
8263
+ external_id: string | null;
8264
+ id: string;
8265
+ idempotency_key: string;
8266
+ last_error: string | null;
8267
+ next_attempt_at: string;
8268
+ office_code: string;
8269
+ payload: import("./types").Json;
8270
+ status: string;
8271
+ updated_at: string;
8272
+ };
8273
+ Insert: {
8274
+ attempts?: number;
8275
+ connection_id: string;
8276
+ created_at?: string;
8277
+ external_id?: string | null;
8278
+ id?: string;
8279
+ idempotency_key: string;
8280
+ last_error?: string | null;
8281
+ next_attempt_at?: string;
8282
+ office_code: string;
8283
+ payload: import("./types").Json;
8284
+ status?: string;
8285
+ updated_at?: string;
8286
+ };
8287
+ Update: {
8288
+ attempts?: number;
8289
+ connection_id?: string;
8290
+ created_at?: string;
8291
+ external_id?: string | null;
8292
+ id?: string;
8293
+ idempotency_key?: string;
8294
+ last_error?: string | null;
8295
+ next_attempt_at?: string;
8296
+ office_code?: string;
8297
+ payload?: import("./types").Json;
8298
+ status?: string;
8299
+ updated_at?: string;
8300
+ };
8301
+ Relationships: [{
8302
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
8303
+ columns: ["connection_id"];
8304
+ isOneToOne: false;
8305
+ referencedRelation: "twinfield_connections";
8306
+ referencedColumns: ["id"];
8307
+ }];
8308
+ };
8309
+ twinfield_request_metrics: {
8310
+ Row: {
8311
+ bucket_hour: string;
8312
+ connection_id: string;
8313
+ error_count: number;
8314
+ rate_limited_count: number;
8315
+ request_count: number;
8316
+ updated_at: string;
8317
+ };
8318
+ Insert: {
8319
+ bucket_hour: string;
8320
+ connection_id: string;
8321
+ error_count?: number;
8322
+ rate_limited_count?: number;
8323
+ request_count?: number;
8324
+ updated_at?: string;
8325
+ };
8326
+ Update: {
8327
+ bucket_hour?: string;
8328
+ connection_id?: string;
8329
+ error_count?: number;
8330
+ rate_limited_count?: number;
8331
+ request_count?: number;
8332
+ updated_at?: string;
8333
+ };
8334
+ Relationships: [];
8335
+ };
8336
+ twinfield_session_cache: {
8337
+ Row: {
8338
+ cluster: string;
8339
+ created_at: string;
8340
+ expires_at: string;
8341
+ session_id: string;
8342
+ user_id: string;
8343
+ };
8344
+ Insert: {
8345
+ cluster: string;
8346
+ created_at?: string;
8347
+ expires_at: string;
8348
+ session_id: string;
8349
+ user_id: string;
8350
+ };
8351
+ Update: {
8352
+ cluster?: string;
8353
+ created_at?: string;
8354
+ expires_at?: string;
8355
+ session_id?: string;
8356
+ user_id?: string;
8357
+ };
8358
+ Relationships: [];
8359
+ };
5816
8360
  twinfield_settings: {
5817
8361
  Row: {
5818
8362
  active_environment: string;
@@ -5901,28 +8445,139 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5901
8445
  Row: {
5902
8446
  created_at: string;
5903
8447
  id: string;
5904
- role: Database["public"]["Enums"]["app_role"];
8448
+ role: Database["public"]["Enums"]["app_role"];
8449
+ user_id: string;
8450
+ };
8451
+ Insert: {
8452
+ created_at?: string;
8453
+ id?: string;
8454
+ role: Database["public"]["Enums"]["app_role"];
8455
+ user_id: string;
8456
+ };
8457
+ Update: {
8458
+ created_at?: string;
8459
+ id?: string;
8460
+ role?: Database["public"]["Enums"]["app_role"];
8461
+ user_id?: string;
8462
+ };
8463
+ Relationships: [{
8464
+ foreignKeyName: "user_roles_user_id_fkey";
8465
+ columns: ["user_id"];
8466
+ isOneToOne: false;
8467
+ referencedRelation: "profiles";
8468
+ referencedColumns: ["id"];
8469
+ }];
8470
+ };
8471
+ voorraad_media_upload_failures: {
8472
+ Row: {
8473
+ action: string;
8474
+ attempt_number: number;
8475
+ caller: string;
8476
+ client_user_id: string | null;
8477
+ content_type: string | null;
8478
+ created_at: string;
8479
+ environment: string;
8480
+ error_message: string | null;
8481
+ filename: string | null;
8482
+ id: string;
8483
+ idempotency_key: string | null;
8484
+ module: string;
8485
+ path: string;
8486
+ reference_id: string | null;
8487
+ request_body_hash: string | null;
8488
+ request_timestamp: number | null;
8489
+ response_content_type: string | null;
8490
+ response_status: number | null;
8491
+ size_bytes: number | null;
8492
+ };
8493
+ Insert: {
8494
+ action?: string;
8495
+ attempt_number?: number;
8496
+ caller?: string;
8497
+ client_user_id?: string | null;
8498
+ content_type?: string | null;
8499
+ created_at?: string;
8500
+ environment: string;
8501
+ error_message?: string | null;
8502
+ filename?: string | null;
8503
+ id?: string;
8504
+ idempotency_key?: string | null;
8505
+ module?: string;
8506
+ path: string;
8507
+ reference_id?: string | null;
8508
+ request_body_hash?: string | null;
8509
+ request_timestamp?: number | null;
8510
+ response_content_type?: string | null;
8511
+ response_status?: number | null;
8512
+ size_bytes?: number | null;
8513
+ };
8514
+ Update: {
8515
+ action?: string;
8516
+ attempt_number?: number;
8517
+ caller?: string;
8518
+ client_user_id?: string | null;
8519
+ content_type?: string | null;
8520
+ created_at?: string;
8521
+ environment?: string;
8522
+ error_message?: string | null;
8523
+ filename?: string | null;
8524
+ id?: string;
8525
+ idempotency_key?: string | null;
8526
+ module?: string;
8527
+ path?: string;
8528
+ reference_id?: string | null;
8529
+ request_body_hash?: string | null;
8530
+ request_timestamp?: number | null;
8531
+ response_content_type?: string | null;
8532
+ response_status?: number | null;
8533
+ size_bytes?: number | null;
8534
+ };
8535
+ Relationships: [];
8536
+ };
8537
+ voorraad_publish_attempts: {
8538
+ Row: {
8539
+ action: string;
8540
+ connection_id: string | null;
8541
+ created_at: string;
8542
+ error: string | null;
8543
+ gateway_attempt_id: string | null;
8544
+ gateway_status: number | null;
8545
+ id: string;
8546
+ intent: string;
8547
+ ok: boolean;
8548
+ request_summary: import("./types").Json | null;
8549
+ trade_item_id: string | null;
5905
8550
  user_id: string;
5906
8551
  };
5907
8552
  Insert: {
8553
+ action: string;
8554
+ connection_id?: string | null;
5908
8555
  created_at?: string;
8556
+ error?: string | null;
8557
+ gateway_attempt_id?: string | null;
8558
+ gateway_status?: number | null;
5909
8559
  id?: string;
5910
- role: Database["public"]["Enums"]["app_role"];
8560
+ intent: string;
8561
+ ok: boolean;
8562
+ request_summary?: import("./types").Json | null;
8563
+ trade_item_id?: string | null;
5911
8564
  user_id: string;
5912
8565
  };
5913
8566
  Update: {
8567
+ action?: string;
8568
+ connection_id?: string | null;
5914
8569
  created_at?: string;
8570
+ error?: string | null;
8571
+ gateway_attempt_id?: string | null;
8572
+ gateway_status?: number | null;
5915
8573
  id?: string;
5916
- role?: Database["public"]["Enums"]["app_role"];
8574
+ intent?: string;
8575
+ ok?: boolean;
8576
+ request_summary?: import("./types").Json | null;
8577
+ trade_item_id?: string | null;
5917
8578
  user_id?: string;
5918
8579
  };
5919
- Relationships: [{
5920
- foreignKeyName: "user_roles_user_id_fkey";
5921
- columns: ["user_id"];
5922
- isOneToOne: false;
5923
- referencedRelation: "profiles";
5924
- referencedColumns: ["id"];
5925
- }];
8580
+ Relationships: [];
5926
8581
  };
5927
8582
  work_order_monteurs: {
5928
8583
  Row: {
@@ -6235,6 +8890,161 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6235
8890
  };
6236
8891
  Relationships: [];
6237
8892
  };
8893
+ external_invoices_grouped: {
8894
+ Row: {
8895
+ currency: string | null;
8896
+ customer_external_id: string | null;
8897
+ customer_name: string | null;
8898
+ customer_vat: string | null;
8899
+ due_at: string | null;
8900
+ group_key: string | null;
8901
+ invoice_number: string | null;
8902
+ is_merged: boolean | null;
8903
+ issued_at: string | null;
8904
+ modified_at: string | null;
8905
+ open_amount: number | null;
8906
+ paid_at: string | null;
8907
+ providers: string[] | null;
8908
+ source_count: number | null;
8909
+ sources: import("./types").Json | null;
8910
+ status: string | null;
8911
+ total_excl: number | null;
8912
+ total_incl: number | null;
8913
+ total_vat: number | null;
8914
+ };
8915
+ Relationships: [];
8916
+ };
8917
+ external_invoices_unified: {
8918
+ Row: {
8919
+ connection_id: string | null;
8920
+ currency: string | null;
8921
+ customer_external_id: string | null;
8922
+ customer_name: string | null;
8923
+ customer_vat: string | null;
8924
+ due_at: string | null;
8925
+ external_id: string | null;
8926
+ invoice_number: string | null;
8927
+ issued_at: string | null;
8928
+ open_amount: number | null;
8929
+ owner_user_id: string | null;
8930
+ paid_at: string | null;
8931
+ raw: import("./types").Json | null;
8932
+ source: string | null;
8933
+ status: string | null;
8934
+ synced_at: string | null;
8935
+ total_excl: number | null;
8936
+ total_incl: number | null;
8937
+ total_vat: number | null;
8938
+ };
8939
+ Relationships: [];
8940
+ };
8941
+ manufacture_product_possible_stock_view: {
8942
+ Row: {
8943
+ component_count: number | null;
8944
+ manufacture_product_id: string | null;
8945
+ possible_stock: number | null;
8946
+ };
8947
+ Relationships: [];
8948
+ };
8949
+ product_group_stock_view: {
8950
+ Row: {
8951
+ item_count: number | null;
8952
+ product_group_id: string | null;
8953
+ total_stock: number | null;
8954
+ };
8955
+ Relationships: [{
8956
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8957
+ columns: ["product_group_id"];
8958
+ isOneToOne: false;
8959
+ referencedRelation: "product_groups";
8960
+ referencedColumns: ["id"];
8961
+ }];
8962
+ };
8963
+ trade_item_stock_view: {
8964
+ Row: {
8965
+ stock: number | null;
8966
+ trade_item_id: string | null;
8967
+ };
8968
+ Relationships: [];
8969
+ };
8970
+ v_external_customers_exact: {
8971
+ Row: {
8972
+ account_number: string | null;
8973
+ city: string | null;
8974
+ coc_number: string | null;
8975
+ company_name: string | null;
8976
+ connection_id: string | null;
8977
+ country: string | null;
8978
+ currency: string | null;
8979
+ email: string | null;
8980
+ external_id: string | null;
8981
+ is_sales: boolean | null;
8982
+ is_supplier: boolean | null;
8983
+ language: string | null;
8984
+ modified_at: string | null;
8985
+ phone: string | null;
8986
+ postal_code: string | null;
8987
+ raw: import("./types").Json | null;
8988
+ source: string | null;
8989
+ street: string | null;
8990
+ synced_at: string | null;
8991
+ vat_number: string | null;
8992
+ website: string | null;
8993
+ };
8994
+ Insert: {
8995
+ account_number?: string | null;
8996
+ city?: string | null;
8997
+ coc_number?: string | null;
8998
+ company_name?: string | null;
8999
+ connection_id?: string | null;
9000
+ country?: string | null;
9001
+ currency?: string | null;
9002
+ email?: string | null;
9003
+ external_id?: string | null;
9004
+ is_sales?: boolean | null;
9005
+ is_supplier?: boolean | null;
9006
+ language?: string | null;
9007
+ modified_at?: string | null;
9008
+ phone?: string | null;
9009
+ postal_code?: string | null;
9010
+ raw?: import("./types").Json | null;
9011
+ source?: never;
9012
+ street?: string | null;
9013
+ synced_at?: string | null;
9014
+ vat_number?: string | null;
9015
+ website?: string | null;
9016
+ };
9017
+ Update: {
9018
+ account_number?: string | null;
9019
+ city?: string | null;
9020
+ coc_number?: string | null;
9021
+ company_name?: string | null;
9022
+ connection_id?: string | null;
9023
+ country?: string | null;
9024
+ currency?: string | null;
9025
+ email?: string | null;
9026
+ external_id?: string | null;
9027
+ is_sales?: boolean | null;
9028
+ is_supplier?: boolean | null;
9029
+ language?: string | null;
9030
+ modified_at?: string | null;
9031
+ phone?: string | null;
9032
+ postal_code?: string | null;
9033
+ raw?: import("./types").Json | null;
9034
+ source?: never;
9035
+ street?: string | null;
9036
+ synced_at?: string | null;
9037
+ vat_number?: string | null;
9038
+ website?: string | null;
9039
+ };
9040
+ Relationships: [{
9041
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
9042
+ columns: ["connection_id"];
9043
+ isOneToOne: false;
9044
+ referencedRelation: "exact_connections";
9045
+ referencedColumns: ["id"];
9046
+ }];
9047
+ };
6238
9048
  v_external_customers_floriday: {
6239
9049
  Row: {
6240
9050
  city: string | null;
@@ -6293,16 +9103,189 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6293
9103
  vat_number: string | null;
6294
9104
  website: string | null;
6295
9105
  };
6296
- Relationships: [{
6297
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6298
- columns: ["connection_id"];
6299
- isOneToOne: false;
6300
- referencedRelation: "twinfield_connections";
6301
- referencedColumns: ["id"];
6302
- }];
9106
+ Relationships: [{
9107
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
9108
+ columns: ["connection_id"];
9109
+ isOneToOne: false;
9110
+ referencedRelation: "twinfield_connections";
9111
+ referencedColumns: ["id"];
9112
+ }];
9113
+ };
9114
+ v_external_invoices_exact: {
9115
+ Row: {
9116
+ connection_id: string | null;
9117
+ currency: string | null;
9118
+ customer_external_id: string | null;
9119
+ customer_name: string | null;
9120
+ customer_vat: string | null;
9121
+ due_at: string | null;
9122
+ external_id: string | null;
9123
+ invoice_number: string | null;
9124
+ issued_at: string | null;
9125
+ open_amount: number | null;
9126
+ paid_at: string | null;
9127
+ raw: import("./types").Json | null;
9128
+ source: string | null;
9129
+ status: string | null;
9130
+ synced_at: string | null;
9131
+ total_excl: number | null;
9132
+ total_incl: number | null;
9133
+ total_vat: number | null;
9134
+ };
9135
+ Insert: {
9136
+ connection_id?: string | null;
9137
+ currency?: never;
9138
+ customer_external_id?: string | null;
9139
+ customer_name?: string | null;
9140
+ customer_vat?: never;
9141
+ due_at?: string | null;
9142
+ external_id?: string | null;
9143
+ invoice_number?: string | null;
9144
+ issued_at?: string | null;
9145
+ open_amount?: number | null;
9146
+ paid_at?: string | null;
9147
+ raw?: import("./types").Json | null;
9148
+ source?: never;
9149
+ status?: string | null;
9150
+ synced_at?: string | null;
9151
+ total_excl?: number | null;
9152
+ total_incl?: number | null;
9153
+ total_vat?: number | null;
9154
+ };
9155
+ Update: {
9156
+ connection_id?: string | null;
9157
+ currency?: never;
9158
+ customer_external_id?: string | null;
9159
+ customer_name?: string | null;
9160
+ customer_vat?: never;
9161
+ due_at?: string | null;
9162
+ external_id?: string | null;
9163
+ invoice_number?: string | null;
9164
+ issued_at?: string | null;
9165
+ open_amount?: number | null;
9166
+ paid_at?: string | null;
9167
+ raw?: import("./types").Json | null;
9168
+ source?: never;
9169
+ status?: string | null;
9170
+ synced_at?: string | null;
9171
+ total_excl?: number | null;
9172
+ total_incl?: number | null;
9173
+ total_vat?: number | null;
9174
+ };
9175
+ Relationships: [{
9176
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
9177
+ columns: ["connection_id"];
9178
+ isOneToOne: false;
9179
+ referencedRelation: "exact_connections";
9180
+ referencedColumns: ["id"];
9181
+ }];
9182
+ };
9183
+ v_external_invoices_twinfield: {
9184
+ Row: {
9185
+ connection_id: string | null;
9186
+ currency: string | null;
9187
+ customer_external_id: string | null;
9188
+ customer_name: string | null;
9189
+ customer_vat: string | null;
9190
+ due_at: string | null;
9191
+ external_id: string | null;
9192
+ invoice_number: string | null;
9193
+ issued_at: string | null;
9194
+ open_amount: number | null;
9195
+ owner_user_id: string | null;
9196
+ paid_at: string | null;
9197
+ raw: import("./types").Json | null;
9198
+ source: string | null;
9199
+ status: string | null;
9200
+ synced_at: string | null;
9201
+ total_excl: number | null;
9202
+ total_incl: number | null;
9203
+ total_vat: number | null;
9204
+ };
9205
+ Relationships: [{
9206
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
9207
+ columns: ["connection_id"];
9208
+ isOneToOne: false;
9209
+ referencedRelation: "twinfield_connections";
9210
+ referencedColumns: ["id"];
9211
+ }];
9212
+ };
9213
+ };
9214
+ Functions: {
9215
+ _floriday_schedule_job: {
9216
+ Args: {
9217
+ p_apikey: string;
9218
+ p_jobname: string;
9219
+ p_schedule: string;
9220
+ p_timeout_ms: number;
9221
+ p_url: string;
9222
+ };
9223
+ Returns: number;
9224
+ };
9225
+ assign_cart_numbers: {
9226
+ Args: {
9227
+ p_carts: import("./types").Json;
9228
+ };
9229
+ Returns: {
9230
+ cart_index: number;
9231
+ cart_number: string;
9232
+ day_seq: number;
9233
+ order_id: string;
9234
+ order_source: string;
9235
+ pick_date: string;
9236
+ status: string;
9237
+ }[];
9238
+ };
9239
+ assign_floriday_order_numbers: {
9240
+ Args: {
9241
+ p_ids: string[];
9242
+ };
9243
+ Returns: {
9244
+ floriday_id: string;
9245
+ order_number: string;
9246
+ }[];
9247
+ };
9248
+ call_exact_route: {
9249
+ Args: {
9250
+ path: string;
9251
+ };
9252
+ Returns: number;
9253
+ };
9254
+ cleanup_old_bookings: {
9255
+ Args: never;
9256
+ Returns: number;
9257
+ };
9258
+ control_get_todays_carts: {
9259
+ Args: never;
9260
+ Returns: {
9261
+ cart_index: number;
9262
+ cart_number: string;
9263
+ cart_number_id: string;
9264
+ order_id: string;
9265
+ order_source: string;
9266
+ pick_date: string;
9267
+ status: string;
9268
+ }[];
9269
+ };
9270
+ count_distinct_regulatory_products: {
9271
+ Args: never;
9272
+ Returns: number;
9273
+ };
9274
+ current_monteur_id: {
9275
+ Args: never;
9276
+ Returns: string;
9277
+ };
9278
+ dashboard_alert_counts: {
9279
+ Args: never;
9280
+ Returns: import("./types").Json;
9281
+ };
9282
+ dashboard_alert_rows: {
9283
+ Args: {
9284
+ check_id: string;
9285
+ row_limit?: number;
9286
+ };
9287
+ Returns: import("./types").Json;
6303
9288
  };
6304
- };
6305
- Functions: {
6306
9289
  dashboard_list_public_schema: {
6307
9290
  Args: never;
6308
9291
  Returns: {
@@ -6383,6 +9366,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6383
9366
  };
6384
9367
  Returns: boolean;
6385
9368
  };
9369
+ format_cart_number: {
9370
+ Args: {
9371
+ p_pick_date: string;
9372
+ p_seq: number;
9373
+ };
9374
+ Returns: string;
9375
+ };
6386
9376
  get_active_floriday_connection_public: {
6387
9377
  Args: never;
6388
9378
  Returns: {
@@ -6407,6 +9397,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6407
9397
  office_code: string;
6408
9398
  }[];
6409
9399
  };
9400
+ get_floriday_agreements_active: {
9401
+ Args: {
9402
+ p_on_date?: string;
9403
+ };
9404
+ Returns: {
9405
+ buyer_organization_id: string;
9406
+ data: import("./types").Json;
9407
+ floriday_id: string;
9408
+ status: string;
9409
+ valid_from: string;
9410
+ valid_until: string;
9411
+ }[];
9412
+ };
9413
+ get_floriday_clock_supplies_window: {
9414
+ Args: {
9415
+ p_from: string;
9416
+ p_to: string;
9417
+ };
9418
+ Returns: {
9419
+ auction_date: string;
9420
+ data: import("./types").Json;
9421
+ floriday_id: string;
9422
+ status: string;
9423
+ trade_item_id: string;
9424
+ }[];
9425
+ };
6410
9426
  get_floriday_cron_jobs: {
6411
9427
  Args: never;
6412
9428
  Returns: {
@@ -6416,12 +9432,68 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6416
9432
  url: string;
6417
9433
  }[];
6418
9434
  };
9435
+ get_floriday_delivery_locations: {
9436
+ Args: {
9437
+ p_organization_id: string;
9438
+ };
9439
+ Returns: {
9440
+ data: import("./types").Json;
9441
+ floriday_id: string;
9442
+ gln_code: string;
9443
+ name: string;
9444
+ }[];
9445
+ };
9446
+ get_floriday_fulfillment_orders_window: {
9447
+ Args: {
9448
+ p_from: string;
9449
+ p_to: string;
9450
+ };
9451
+ Returns: {
9452
+ auction_date: string;
9453
+ data: import("./types").Json;
9454
+ delivery_order_id: string;
9455
+ destination_warehouse_id: string;
9456
+ floriday_id: string;
9457
+ status: string;
9458
+ }[];
9459
+ };
9460
+ get_floriday_sales_orders_window: {
9461
+ Args: {
9462
+ p_from: string;
9463
+ p_to: string;
9464
+ };
9465
+ Returns: {
9466
+ buyer_organization_id: string;
9467
+ data: import("./types").Json;
9468
+ floriday_id: string;
9469
+ status: string;
9470
+ updated_at: string;
9471
+ }[];
9472
+ };
9473
+ get_floriday_sync_health: {
9474
+ Args: never;
9475
+ Returns: {
9476
+ entity_type: string;
9477
+ last_error: string;
9478
+ last_items_processed: number;
9479
+ last_sequence_number: number;
9480
+ last_success_at: string;
9481
+ last_synced_at: string;
9482
+ minutes_since_success: number;
9483
+ }[];
9484
+ };
6419
9485
  get_offer_by_link_code: {
6420
9486
  Args: {
6421
9487
  p_code: string;
6422
9488
  };
6423
9489
  Returns: import("./types").Json;
6424
9490
  };
9491
+ get_or_assign_floriday_order_number: {
9492
+ Args: {
9493
+ p_floriday_id: string;
9494
+ };
9495
+ Returns: string;
9496
+ };
6425
9497
  get_room_busy_windows: {
6426
9498
  Args: {
6427
9499
  p_from: string;
@@ -6468,6 +9540,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6468
9540
  Args: never;
6469
9541
  Returns: boolean;
6470
9542
  };
9543
+ next_order_number: {
9544
+ Args: {
9545
+ p_prefix: string;
9546
+ };
9547
+ Returns: string;
9548
+ };
6471
9549
  next_work_order_number: {
6472
9550
  Args: {
6473
9551
  p_parent_work_order_id?: string;
@@ -6481,6 +9559,89 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6481
9559
  };
6482
9560
  Returns: string;
6483
9561
  };
9562
+ pickstation_get_orders_raw: {
9563
+ Args: never;
9564
+ Returns: import("./types").Json;
9565
+ };
9566
+ pickstation_get_settings: {
9567
+ Args: never;
9568
+ Returns: import("./types").Json;
9569
+ };
9570
+ pickstation_log_print: {
9571
+ Args: {
9572
+ p_customer_name: string;
9573
+ p_documents: string[];
9574
+ p_ip_address: string;
9575
+ p_order_id: string;
9576
+ p_order_number: string;
9577
+ };
9578
+ Returns: undefined;
9579
+ };
9580
+ pickstation_set_cart_status: {
9581
+ Args: {
9582
+ p_cart_index: number;
9583
+ p_order_id: string;
9584
+ p_order_source: string;
9585
+ p_status: string;
9586
+ };
9587
+ Returns: undefined;
9588
+ };
9589
+ refresh_floricode_derived_code_lists: {
9590
+ Args: never;
9591
+ Returns: {
9592
+ environment: string;
9593
+ list_name: string;
9594
+ row_count: number;
9595
+ }[];
9596
+ };
9597
+ refresh_floricode_derived_for_product: {
9598
+ Args: {
9599
+ p_product_code: string;
9600
+ };
9601
+ Returns: number;
9602
+ };
9603
+ reset_floriday_sync_cursor: {
9604
+ Args: {
9605
+ p_connection_id: string;
9606
+ p_entity_type: string;
9607
+ };
9608
+ Returns: undefined;
9609
+ };
9610
+ schedule_floriday_additional_services_sync: {
9611
+ Args: {
9612
+ p_apikey: string;
9613
+ p_url: string;
9614
+ };
9615
+ Returns: number;
9616
+ };
9617
+ schedule_floriday_agreement_calloffs_sync: {
9618
+ Args: {
9619
+ p_apikey: string;
9620
+ p_url: string;
9621
+ };
9622
+ Returns: number;
9623
+ };
9624
+ schedule_floriday_agreements_sync: {
9625
+ Args: {
9626
+ p_apikey: string;
9627
+ p_url: string;
9628
+ };
9629
+ Returns: number;
9630
+ };
9631
+ schedule_floriday_base_items_sync: {
9632
+ Args: {
9633
+ p_apikey: string;
9634
+ p_url: string;
9635
+ };
9636
+ Returns: number;
9637
+ };
9638
+ schedule_floriday_blanket_orders_sync: {
9639
+ Args: {
9640
+ p_apikey: string;
9641
+ p_url: string;
9642
+ };
9643
+ Returns: number;
9644
+ };
6484
9645
  schedule_floriday_carriers_sync: {
6485
9646
  Args: {
6486
9647
  p_apikey: string;
@@ -6488,6 +9649,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6488
9649
  };
6489
9650
  Returns: number;
6490
9651
  };
9652
+ schedule_floriday_clock_presales_sync: {
9653
+ Args: {
9654
+ p_apikey: string;
9655
+ p_url: string;
9656
+ };
9657
+ Returns: number;
9658
+ };
9659
+ schedule_floriday_clock_supplies_sync: {
9660
+ Args: {
9661
+ p_apikey: string;
9662
+ p_url: string;
9663
+ };
9664
+ Returns: number;
9665
+ };
9666
+ schedule_floriday_collections_sync: {
9667
+ Args: {
9668
+ p_apikey: string;
9669
+ p_url: string;
9670
+ };
9671
+ Returns: number;
9672
+ };
9673
+ schedule_floriday_commercial_service_types_sync: {
9674
+ Args: {
9675
+ p_apikey: string;
9676
+ p_url: string;
9677
+ };
9678
+ Returns: number;
9679
+ };
6491
9680
  schedule_floriday_connections_sync: {
6492
9681
  Args: {
6493
9682
  p_apikey: string;
@@ -6495,6 +9684,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6495
9684
  };
6496
9685
  Returns: number;
6497
9686
  };
9687
+ schedule_floriday_contract_trade_item_groups_sync: {
9688
+ Args: {
9689
+ p_apikey: string;
9690
+ p_url: string;
9691
+ };
9692
+ Returns: number;
9693
+ };
9694
+ schedule_floriday_contracts_sync: {
9695
+ Args: {
9696
+ p_apikey: string;
9697
+ p_url: string;
9698
+ };
9699
+ Returns: number;
9700
+ };
6498
9701
  schedule_floriday_customer_organizations_sync: {
6499
9702
  Args: {
6500
9703
  p_apikey: string;
@@ -6502,6 +9705,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
9705
  };
6503
9706
  Returns: number;
6504
9707
  };
9708
+ schedule_floriday_customer_stickers_sync: {
9709
+ Args: {
9710
+ p_apikey: string;
9711
+ p_url: string;
9712
+ };
9713
+ Returns: number;
9714
+ };
9715
+ schedule_floriday_delivery_condition_sets_sync: {
9716
+ Args: {
9717
+ p_apikey: string;
9718
+ p_url: string;
9719
+ };
9720
+ Returns: number;
9721
+ };
9722
+ schedule_floriday_delivery_locations_sync: {
9723
+ Args: {
9724
+ p_apikey: string;
9725
+ p_url: string;
9726
+ };
9727
+ Returns: number;
9728
+ };
9729
+ schedule_floriday_delivery_orders_sync: {
9730
+ Args: {
9731
+ p_apikey: string;
9732
+ p_url: string;
9733
+ };
9734
+ Returns: number;
9735
+ };
9736
+ schedule_floriday_fulfillment_orders_sync: {
9737
+ Args: {
9738
+ p_apikey: string;
9739
+ p_url: string;
9740
+ };
9741
+ Returns: number;
9742
+ };
9743
+ schedule_floriday_invoices_sync: {
9744
+ Args: {
9745
+ p_apikey: string;
9746
+ p_url: string;
9747
+ };
9748
+ Returns: number;
9749
+ };
6505
9750
  schedule_floriday_network_sync: {
6506
9751
  Args: {
6507
9752
  p_apikey: string;
@@ -6509,6 +9754,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6509
9754
  };
6510
9755
  Returns: number;
6511
9756
  };
9757
+ schedule_floriday_packings_sync: {
9758
+ Args: {
9759
+ p_apikey: string;
9760
+ p_url: string;
9761
+ };
9762
+ Returns: number;
9763
+ };
9764
+ schedule_floriday_price_groups_sync: {
9765
+ Args: {
9766
+ p_apikey: string;
9767
+ p_url: string;
9768
+ };
9769
+ Returns: number;
9770
+ };
9771
+ schedule_floriday_reference_data_refresh: {
9772
+ Args: {
9773
+ p_apikey: string;
9774
+ p_url: string;
9775
+ };
9776
+ Returns: number;
9777
+ };
9778
+ schedule_floriday_sales_strategies_sync: {
9779
+ Args: {
9780
+ p_apikey: string;
9781
+ p_url: string;
9782
+ };
9783
+ Returns: number;
9784
+ };
6512
9785
  schedule_floriday_salesorders_sync: {
6513
9786
  Args: {
6514
9787
  p_apikey: string;
@@ -6523,6 +9796,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6523
9796
  };
6524
9797
  Returns: number;
6525
9798
  };
9799
+ schedule_floriday_trade_item_classifications_sync: {
9800
+ Args: {
9801
+ p_apikey: string;
9802
+ p_url: string;
9803
+ };
9804
+ Returns: number;
9805
+ };
6526
9806
  schedule_floriday_trade_items_sync: {
6527
9807
  Args: {
6528
9808
  p_apikey: string;
@@ -6530,6 +9810,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6530
9810
  };
6531
9811
  Returns: number;
6532
9812
  };
9813
+ schedule_floriday_trips_sync: {
9814
+ Args: {
9815
+ p_apikey: string;
9816
+ p_url: string;
9817
+ };
9818
+ Returns: number;
9819
+ };
9820
+ schedule_floriday_warehouses_sync: {
9821
+ Args: {
9822
+ p_apikey: string;
9823
+ p_url: string;
9824
+ };
9825
+ Returns: number;
9826
+ };
6533
9827
  schedule_twinfield_customers_sync: {
6534
9828
  Args: {
6535
9829
  p_apikey: string;
@@ -6558,6 +9852,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6558
9852
  };
6559
9853
  Returns: number;
6560
9854
  };
9855
+ schedule_twinfield_push_queue_flush: {
9856
+ Args: {
9857
+ p_apikey: string;
9858
+ p_cron_secret?: string;
9859
+ p_url: string;
9860
+ };
9861
+ Returns: number;
9862
+ };
6561
9863
  schedule_twinfield_token_refresh: {
6562
9864
  Args: {
6563
9865
  p_apikey: string;
@@ -6596,8 +9898,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6596
9898
  };
6597
9899
  };
6598
9900
  Enums: {
6599
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9901
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6600
9902
  exact_env: "staging" | "live";
9903
+ exact_push_status: "pending" | "sent" | "error";
6601
9904
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6602
9905
  };
6603
9906
  CompositeTypes: { [_ in never]: never; };