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