@flowselections/floriday-klanten-module 1.0.29 → 1.0.31

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 (66) hide show
  1. package/dist-lib/components/klanten/BewerkKlant.d.ts +6 -1
  2. package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/BewerkKlant.js +7 -4
  4. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -2
  6. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts +12 -0
  7. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts.map +1 -0
  8. package/dist-lib/components/klanten/KlantBewerkenDialog.js +27 -0
  9. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/KlantDetail.js +5 -3
  11. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  12. package/dist-lib/components/klanten/KlantenOverzicht.js +65 -11
  13. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts +7 -1
  14. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
  15. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +14 -7
  16. package/dist-lib/index.d.ts +1 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +1 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +745 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +745 -0
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +745 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +745 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +2411 -176
  28. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/accounting.functions.d.ts +2411 -176
  30. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customer-analytics.functions.d.ts +745 -0
  32. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/customer-notes.functions.d.ts +1490 -0
  34. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/customer-revenue.functions.d.ts +20582 -0
  36. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -0
  37. package/dist-lib/lib/customer-revenue.functions.js +124 -0
  38. package/dist-lib/lib/customers.functions.d.ts +6705 -0
  39. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/delivery-locations.functions.d.ts +3332 -352
  41. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/external-customers.functions.d.ts +3332 -352
  43. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-assortment.functions.d.ts +745 -0
  45. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-discounts.functions.d.ts +1490 -0
  47. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-trade-items.functions.d.ts +745 -0
  49. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/local-discounts.functions.d.ts +5215 -0
  51. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/logistics-events.functions.d.ts +745 -0
  53. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/logistics-strategy.functions.d.ts +3332 -352
  55. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/overdue-invoices.functions.d.ts +745 -0
  57. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/price-groups-local.functions.d.ts +5215 -0
  59. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/price-groups.functions.d.ts +745 -0
  61. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/twinfield-adopt.functions.d.ts +1490 -0
  63. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/twinfield-ledger.functions.d.ts +745 -0
  65. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  66. package/package.json +2 -2
@@ -3589,6 +3589,474 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
3589
3589
  referencedColumns: ["id"];
3590
3590
  }];
3591
3591
  };
3592
+ exact_auth_call_budget: {
3593
+ Row: {
3594
+ account_key: string;
3595
+ day_count: number;
3596
+ day_date: string;
3597
+ division_code: number;
3598
+ environment: string;
3599
+ minute_count: number;
3600
+ minute_window: string;
3601
+ updated_at: string;
3602
+ };
3603
+ Insert: {
3604
+ account_key?: string;
3605
+ day_count?: number;
3606
+ day_date?: string;
3607
+ division_code?: number;
3608
+ environment: string;
3609
+ minute_count?: number;
3610
+ minute_window?: string;
3611
+ updated_at?: string;
3612
+ };
3613
+ Update: {
3614
+ account_key?: string;
3615
+ day_count?: number;
3616
+ day_date?: string;
3617
+ division_code?: number;
3618
+ environment?: string;
3619
+ minute_count?: number;
3620
+ minute_window?: string;
3621
+ updated_at?: string;
3622
+ };
3623
+ Relationships: [];
3624
+ };
3625
+ exact_auth_customers: {
3626
+ Row: {
3627
+ account_key: string;
3628
+ address_line1: string | null;
3629
+ chamber_of_commerce: string | null;
3630
+ city: string | null;
3631
+ code: string | null;
3632
+ country: string | null;
3633
+ created_at: string;
3634
+ currency: string | null;
3635
+ division_code: number | null;
3636
+ email: string | null;
3637
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3638
+ exact_id: string;
3639
+ exact_modified: string | null;
3640
+ exact_timestamp: number | null;
3641
+ id: string;
3642
+ is_active: boolean;
3643
+ name: string | null;
3644
+ phone: string | null;
3645
+ postcode: string | null;
3646
+ raw: import("../integrations/supabase/types").Json | null;
3647
+ status: string | null;
3648
+ updated_at: string;
3649
+ vat_number: string | null;
3650
+ website: string | null;
3651
+ };
3652
+ Insert: {
3653
+ account_key?: string;
3654
+ address_line1?: string | null;
3655
+ chamber_of_commerce?: string | null;
3656
+ city?: string | null;
3657
+ code?: string | null;
3658
+ country?: string | null;
3659
+ created_at?: string;
3660
+ currency?: string | null;
3661
+ division_code?: number | null;
3662
+ email?: string | null;
3663
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3664
+ exact_id: string;
3665
+ exact_modified?: string | null;
3666
+ exact_timestamp?: number | null;
3667
+ id?: string;
3668
+ is_active?: boolean;
3669
+ name?: string | null;
3670
+ phone?: string | null;
3671
+ postcode?: string | null;
3672
+ raw?: import("../integrations/supabase/types").Json | null;
3673
+ status?: string | null;
3674
+ updated_at?: string;
3675
+ vat_number?: string | null;
3676
+ website?: string | null;
3677
+ };
3678
+ Update: {
3679
+ account_key?: string;
3680
+ address_line1?: string | null;
3681
+ chamber_of_commerce?: string | null;
3682
+ city?: string | null;
3683
+ code?: string | null;
3684
+ country?: string | null;
3685
+ created_at?: string;
3686
+ currency?: string | null;
3687
+ division_code?: number | null;
3688
+ email?: string | null;
3689
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3690
+ exact_id?: string;
3691
+ exact_modified?: string | null;
3692
+ exact_timestamp?: number | null;
3693
+ id?: string;
3694
+ is_active?: boolean;
3695
+ name?: string | null;
3696
+ phone?: string | null;
3697
+ postcode?: string | null;
3698
+ raw?: import("../integrations/supabase/types").Json | null;
3699
+ status?: string | null;
3700
+ updated_at?: string;
3701
+ vat_number?: string | null;
3702
+ website?: string | null;
3703
+ };
3704
+ Relationships: [];
3705
+ };
3706
+ exact_auth_divisions: {
3707
+ Row: {
3708
+ account_key: string;
3709
+ company_name: string | null;
3710
+ created_at: string;
3711
+ division_code: number | null;
3712
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3713
+ id: string;
3714
+ last_synced_at: string | null;
3715
+ updated_at: string;
3716
+ };
3717
+ Insert: {
3718
+ account_key?: string;
3719
+ company_name?: string | null;
3720
+ created_at?: string;
3721
+ division_code?: number | null;
3722
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3723
+ id?: string;
3724
+ last_synced_at?: string | null;
3725
+ updated_at?: string;
3726
+ };
3727
+ Update: {
3728
+ account_key?: string;
3729
+ company_name?: string | null;
3730
+ created_at?: string;
3731
+ division_code?: number | null;
3732
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3733
+ id?: string;
3734
+ last_synced_at?: string | null;
3735
+ updated_at?: string;
3736
+ };
3737
+ Relationships: [];
3738
+ };
3739
+ exact_auth_invoice_lines: {
3740
+ Row: {
3741
+ account_key: string;
3742
+ amount_excl: number | null;
3743
+ created_at: string;
3744
+ description: string | null;
3745
+ discount: number | null;
3746
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3747
+ exact_id: string;
3748
+ exact_timestamp: number | null;
3749
+ id: string;
3750
+ invoice_exact_id: string;
3751
+ item_code: string | null;
3752
+ item_exact_id: string | null;
3753
+ line_number: number | null;
3754
+ quantity: number | null;
3755
+ raw: import("../integrations/supabase/types").Json | null;
3756
+ unit_price: number | null;
3757
+ updated_at: string;
3758
+ vat_amount: number | null;
3759
+ vat_code: string | null;
3760
+ };
3761
+ Insert: {
3762
+ account_key?: string;
3763
+ amount_excl?: number | null;
3764
+ created_at?: string;
3765
+ description?: string | null;
3766
+ discount?: number | null;
3767
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3768
+ exact_id: string;
3769
+ exact_timestamp?: number | null;
3770
+ id?: string;
3771
+ invoice_exact_id: string;
3772
+ item_code?: string | null;
3773
+ item_exact_id?: string | null;
3774
+ line_number?: number | null;
3775
+ quantity?: number | null;
3776
+ raw?: import("../integrations/supabase/types").Json | null;
3777
+ unit_price?: number | null;
3778
+ updated_at?: string;
3779
+ vat_amount?: number | null;
3780
+ vat_code?: string | null;
3781
+ };
3782
+ Update: {
3783
+ account_key?: string;
3784
+ amount_excl?: number | null;
3785
+ created_at?: string;
3786
+ description?: string | null;
3787
+ discount?: number | null;
3788
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3789
+ exact_id?: string;
3790
+ exact_timestamp?: number | null;
3791
+ id?: string;
3792
+ invoice_exact_id?: string;
3793
+ item_code?: string | null;
3794
+ item_exact_id?: string | null;
3795
+ line_number?: number | null;
3796
+ quantity?: number | null;
3797
+ raw?: import("../integrations/supabase/types").Json | null;
3798
+ unit_price?: number | null;
3799
+ updated_at?: string;
3800
+ vat_amount?: number | null;
3801
+ vat_code?: string | null;
3802
+ };
3803
+ Relationships: [];
3804
+ };
3805
+ exact_auth_invoices: {
3806
+ Row: {
3807
+ account_key: string;
3808
+ amount_excl: number | null;
3809
+ amount_incl: number | null;
3810
+ amount_open: number | null;
3811
+ created_at: string;
3812
+ currency: string | null;
3813
+ customer_code: string | null;
3814
+ customer_exact_id: string | null;
3815
+ customer_name: string | null;
3816
+ description: string | null;
3817
+ division_code: number | null;
3818
+ due_date: string | null;
3819
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3820
+ exact_id: string;
3821
+ exact_modified: string | null;
3822
+ exact_timestamp: number | null;
3823
+ id: string;
3824
+ invoice_date: string | null;
3825
+ invoice_number: string | null;
3826
+ order_number: string | null;
3827
+ paid_at: string | null;
3828
+ payment_status: string;
3829
+ raw: import("../integrations/supabase/types").Json | null;
3830
+ receivable_synced_at: string | null;
3831
+ status_code: number | null;
3832
+ updated_at: string;
3833
+ };
3834
+ Insert: {
3835
+ account_key?: string;
3836
+ amount_excl?: number | null;
3837
+ amount_incl?: number | null;
3838
+ amount_open?: number | null;
3839
+ created_at?: string;
3840
+ currency?: string | null;
3841
+ customer_code?: string | null;
3842
+ customer_exact_id?: string | null;
3843
+ customer_name?: string | null;
3844
+ description?: string | null;
3845
+ division_code?: number | null;
3846
+ due_date?: string | null;
3847
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3848
+ exact_id: string;
3849
+ exact_modified?: string | null;
3850
+ exact_timestamp?: number | null;
3851
+ id?: string;
3852
+ invoice_date?: string | null;
3853
+ invoice_number?: string | null;
3854
+ order_number?: string | null;
3855
+ paid_at?: string | null;
3856
+ payment_status?: string;
3857
+ raw?: import("../integrations/supabase/types").Json | null;
3858
+ receivable_synced_at?: string | null;
3859
+ status_code?: number | null;
3860
+ updated_at?: string;
3861
+ };
3862
+ Update: {
3863
+ account_key?: string;
3864
+ amount_excl?: number | null;
3865
+ amount_incl?: number | null;
3866
+ amount_open?: number | null;
3867
+ created_at?: string;
3868
+ currency?: string | null;
3869
+ customer_code?: string | null;
3870
+ customer_exact_id?: string | null;
3871
+ customer_name?: string | null;
3872
+ description?: string | null;
3873
+ division_code?: number | null;
3874
+ due_date?: string | null;
3875
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3876
+ exact_id?: string;
3877
+ exact_modified?: string | null;
3878
+ exact_timestamp?: number | null;
3879
+ id?: string;
3880
+ invoice_date?: string | null;
3881
+ invoice_number?: string | null;
3882
+ order_number?: string | null;
3883
+ paid_at?: string | null;
3884
+ payment_status?: string;
3885
+ raw?: import("../integrations/supabase/types").Json | null;
3886
+ receivable_synced_at?: string | null;
3887
+ status_code?: number | null;
3888
+ updated_at?: string;
3889
+ };
3890
+ Relationships: [];
3891
+ };
3892
+ exact_auth_items: {
3893
+ Row: {
3894
+ account_key: string;
3895
+ barcode: string | null;
3896
+ code: string | null;
3897
+ cost_price: number | null;
3898
+ created_at: string;
3899
+ description: string | null;
3900
+ division_code: number | null;
3901
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3902
+ exact_id: string;
3903
+ exact_modified: string | null;
3904
+ exact_timestamp: number | null;
3905
+ gl_account_code: string | null;
3906
+ id: string;
3907
+ is_active: boolean;
3908
+ is_sales_item: boolean | null;
3909
+ item_type: string | null;
3910
+ raw: import("../integrations/supabase/types").Json | null;
3911
+ sales_price: number | null;
3912
+ unit: string | null;
3913
+ updated_at: string;
3914
+ vat_code: string | null;
3915
+ };
3916
+ Insert: {
3917
+ account_key?: string;
3918
+ barcode?: string | null;
3919
+ code?: string | null;
3920
+ cost_price?: number | null;
3921
+ created_at?: string;
3922
+ description?: string | null;
3923
+ division_code?: number | null;
3924
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3925
+ exact_id: string;
3926
+ exact_modified?: string | null;
3927
+ exact_timestamp?: number | null;
3928
+ gl_account_code?: string | null;
3929
+ id?: string;
3930
+ is_active?: boolean;
3931
+ is_sales_item?: boolean | null;
3932
+ item_type?: string | null;
3933
+ raw?: import("../integrations/supabase/types").Json | null;
3934
+ sales_price?: number | null;
3935
+ unit?: string | null;
3936
+ updated_at?: string;
3937
+ vat_code?: string | null;
3938
+ };
3939
+ Update: {
3940
+ account_key?: string;
3941
+ barcode?: string | null;
3942
+ code?: string | null;
3943
+ cost_price?: number | null;
3944
+ created_at?: string;
3945
+ description?: string | null;
3946
+ division_code?: number | null;
3947
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3948
+ exact_id?: string;
3949
+ exact_modified?: string | null;
3950
+ exact_timestamp?: number | null;
3951
+ gl_account_code?: string | null;
3952
+ id?: string;
3953
+ is_active?: boolean;
3954
+ is_sales_item?: boolean | null;
3955
+ item_type?: string | null;
3956
+ raw?: import("../integrations/supabase/types").Json | null;
3957
+ sales_price?: number | null;
3958
+ unit?: string | null;
3959
+ updated_at?: string;
3960
+ vat_code?: string | null;
3961
+ };
3962
+ Relationships: [];
3963
+ };
3964
+ exact_auth_sync_log: {
3965
+ Row: {
3966
+ account_key: string;
3967
+ calls_used: number;
3968
+ created_at: string;
3969
+ domain: string;
3970
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3971
+ error: string | null;
3972
+ finished_at: string | null;
3973
+ id: string;
3974
+ ok: boolean;
3975
+ records: number;
3976
+ started_at: string;
3977
+ };
3978
+ Insert: {
3979
+ account_key?: string;
3980
+ calls_used?: number;
3981
+ created_at?: string;
3982
+ domain: string;
3983
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3984
+ error?: string | null;
3985
+ finished_at?: string | null;
3986
+ id?: string;
3987
+ ok?: boolean;
3988
+ records?: number;
3989
+ started_at?: string;
3990
+ };
3991
+ Update: {
3992
+ account_key?: string;
3993
+ calls_used?: number;
3994
+ created_at?: string;
3995
+ domain?: string;
3996
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3997
+ error?: string | null;
3998
+ finished_at?: string | null;
3999
+ id?: string;
4000
+ ok?: boolean;
4001
+ records?: number;
4002
+ started_at?: string;
4003
+ };
4004
+ Relationships: [];
4005
+ };
4006
+ exact_auth_sync_state: {
4007
+ Row: {
4008
+ account_key: string;
4009
+ created_at: string;
4010
+ cursor_timestamp: number;
4011
+ division_code: number | null;
4012
+ domain: string;
4013
+ duration_ms: number | null;
4014
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4015
+ initial_sync_done: boolean;
4016
+ last_error: string | null;
4017
+ last_run_at: string | null;
4018
+ last_success_at: string | null;
4019
+ locked_at: string | null;
4020
+ needs_initial_sync: boolean;
4021
+ record_count: number;
4022
+ updated_at: string;
4023
+ };
4024
+ Insert: {
4025
+ account_key?: string;
4026
+ created_at?: string;
4027
+ cursor_timestamp?: number;
4028
+ division_code?: number | null;
4029
+ domain: string;
4030
+ duration_ms?: number | null;
4031
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4032
+ initial_sync_done?: boolean;
4033
+ last_error?: string | null;
4034
+ last_run_at?: string | null;
4035
+ last_success_at?: string | null;
4036
+ locked_at?: string | null;
4037
+ needs_initial_sync?: boolean;
4038
+ record_count?: number;
4039
+ updated_at?: string;
4040
+ };
4041
+ Update: {
4042
+ account_key?: string;
4043
+ created_at?: string;
4044
+ cursor_timestamp?: number;
4045
+ division_code?: number | null;
4046
+ domain?: string;
4047
+ duration_ms?: number | null;
4048
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4049
+ initial_sync_done?: boolean;
4050
+ last_error?: string | null;
4051
+ last_run_at?: string | null;
4052
+ last_success_at?: string | null;
4053
+ locked_at?: string | null;
4054
+ needs_initial_sync?: boolean;
4055
+ record_count?: number;
4056
+ updated_at?: string;
4057
+ };
4058
+ Relationships: [];
4059
+ };
3592
4060
  exact_bulk_operation_items: {
3593
4061
  Row: {
3594
4062
  attempts: number;
@@ -5280,12 +5748,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5280
5748
  attempts: number;
5281
5749
  connection_id: string;
5282
5750
  created_at: string;
5751
+ desired_available: boolean | null;
5283
5752
  gateway_attempt_id: string | null;
5284
5753
  id: string;
5285
5754
  last_error: string | null;
5755
+ locked_at: string | null;
5756
+ locked_by: string | null;
5757
+ next_attempt_at: string;
5286
5758
  number_of_pieces: number;
5287
5759
  sent_at: string | null;
5288
5760
  status: string;
5761
+ superseded_by: string | null;
5289
5762
  trade_item_id: string;
5290
5763
  updated_at: string;
5291
5764
  user_id: string;
@@ -5294,12 +5767,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5294
5767
  attempts?: number;
5295
5768
  connection_id: string;
5296
5769
  created_at?: string;
5770
+ desired_available?: boolean | null;
5297
5771
  gateway_attempt_id?: string | null;
5298
5772
  id?: string;
5299
5773
  last_error?: string | null;
5774
+ locked_at?: string | null;
5775
+ locked_by?: string | null;
5776
+ next_attempt_at?: string;
5300
5777
  number_of_pieces?: number;
5301
5778
  sent_at?: string | null;
5302
5779
  status?: string;
5780
+ superseded_by?: string | null;
5303
5781
  trade_item_id: string;
5304
5782
  updated_at?: string;
5305
5783
  user_id: string;
@@ -5308,12 +5786,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5308
5786
  attempts?: number;
5309
5787
  connection_id?: string;
5310
5788
  created_at?: string;
5789
+ desired_available?: boolean | null;
5311
5790
  gateway_attempt_id?: string | null;
5312
5791
  id?: string;
5313
5792
  last_error?: string | null;
5793
+ locked_at?: string | null;
5794
+ locked_by?: string | null;
5795
+ next_attempt_at?: string;
5314
5796
  number_of_pieces?: number;
5315
5797
  sent_at?: string | null;
5316
5798
  status?: string;
5799
+ superseded_by?: string | null;
5317
5800
  trade_item_id?: string;
5318
5801
  updated_at?: string;
5319
5802
  user_id?: string;
@@ -8062,6 +8545,69 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8062
8545
  };
8063
8546
  Relationships: [];
8064
8547
  };
8548
+ logistics_floriday_pushes: {
8549
+ Row: {
8550
+ attempts: number;
8551
+ created_at: string;
8552
+ first_queued_at: string;
8553
+ fulfillment_order_id: string | null;
8554
+ id: string;
8555
+ last_error: string | null;
8556
+ last_error_at: string | null;
8557
+ last_sent_hash: string | null;
8558
+ locked_by: string | null;
8559
+ locked_until: string | null;
8560
+ next_attempt_at: string;
8561
+ order_ref: string;
8562
+ payload: import("../integrations/supabase/types").Json;
8563
+ payload_hash: string | null;
8564
+ revision: number;
8565
+ sent_at: string | null;
8566
+ status: string;
8567
+ updated_at: string;
8568
+ };
8569
+ Insert: {
8570
+ attempts?: number;
8571
+ created_at?: string;
8572
+ first_queued_at?: string;
8573
+ fulfillment_order_id?: string | null;
8574
+ id?: string;
8575
+ last_error?: string | null;
8576
+ last_error_at?: string | null;
8577
+ last_sent_hash?: string | null;
8578
+ locked_by?: string | null;
8579
+ locked_until?: string | null;
8580
+ next_attempt_at?: string;
8581
+ order_ref: string;
8582
+ payload?: import("../integrations/supabase/types").Json;
8583
+ payload_hash?: string | null;
8584
+ revision?: number;
8585
+ sent_at?: string | null;
8586
+ status?: string;
8587
+ updated_at?: string;
8588
+ };
8589
+ Update: {
8590
+ attempts?: number;
8591
+ created_at?: string;
8592
+ first_queued_at?: string;
8593
+ fulfillment_order_id?: string | null;
8594
+ id?: string;
8595
+ last_error?: string | null;
8596
+ last_error_at?: string | null;
8597
+ last_sent_hash?: string | null;
8598
+ locked_by?: string | null;
8599
+ locked_until?: string | null;
8600
+ next_attempt_at?: string;
8601
+ order_ref?: string;
8602
+ payload?: import("../integrations/supabase/types").Json;
8603
+ payload_hash?: string | null;
8604
+ revision?: number;
8605
+ sent_at?: string | null;
8606
+ status?: string;
8607
+ updated_at?: string;
8608
+ };
8609
+ Relationships: [];
8610
+ };
8065
8611
  logistics_formulas: {
8066
8612
  Row: {
8067
8613
  created_at: string;
@@ -8673,6 +9219,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8673
9219
  };
8674
9220
  logistics_tasks: {
8675
9221
  Row: {
9222
+ attempt_log: import("../integrations/supabase/types").Json;
9223
+ attempts: number;
8676
9224
  buffer_ref: string | null;
8677
9225
  claimed_at: string | null;
8678
9226
  claimed_by: string | null;
@@ -8682,6 +9230,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8682
9230
  due_at: string | null;
8683
9231
  error: string | null;
8684
9232
  id: string;
9233
+ last_error: string | null;
9234
+ next_attempt_at: string | null;
8685
9235
  order_ref: string;
8686
9236
  owner_module: string;
8687
9237
  payload: import("../integrations/supabase/types").Json;
@@ -8702,6 +9252,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8702
9252
  user_id: string;
8703
9253
  };
8704
9254
  Insert: {
9255
+ attempt_log?: import("../integrations/supabase/types").Json;
9256
+ attempts?: number;
8705
9257
  buffer_ref?: string | null;
8706
9258
  claimed_at?: string | null;
8707
9259
  claimed_by?: string | null;
@@ -8711,6 +9263,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8711
9263
  due_at?: string | null;
8712
9264
  error?: string | null;
8713
9265
  id?: string;
9266
+ last_error?: string | null;
9267
+ next_attempt_at?: string | null;
8714
9268
  order_ref: string;
8715
9269
  owner_module: string;
8716
9270
  payload?: import("../integrations/supabase/types").Json;
@@ -8731,6 +9285,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8731
9285
  user_id?: string;
8732
9286
  };
8733
9287
  Update: {
9288
+ attempt_log?: import("../integrations/supabase/types").Json;
9289
+ attempts?: number;
8734
9290
  buffer_ref?: string | null;
8735
9291
  claimed_at?: string | null;
8736
9292
  claimed_by?: string | null;
@@ -8740,6 +9296,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8740
9296
  due_at?: string | null;
8741
9297
  error?: string | null;
8742
9298
  id?: string;
9299
+ last_error?: string | null;
9300
+ next_attempt_at?: string | null;
8743
9301
  order_ref?: string;
8744
9302
  owner_module?: string;
8745
9303
  payload?: import("../integrations/supabase/types").Json;
@@ -10089,6 +10647,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10089
10647
  };
10090
10648
  offer_settings: {
10091
10649
  Row: {
10650
+ brand_name: string | null;
10092
10651
  button_color: string;
10093
10652
  created_at: string;
10094
10653
  default_countries: string[];
@@ -10110,6 +10669,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10110
10669
  updated_at: string;
10111
10670
  };
10112
10671
  Insert: {
10672
+ brand_name?: string | null;
10113
10673
  button_color?: string;
10114
10674
  created_at?: string;
10115
10675
  default_countries?: string[];
@@ -10131,6 +10691,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10131
10691
  updated_at?: string;
10132
10692
  };
10133
10693
  Update: {
10694
+ brand_name?: string | null;
10134
10695
  button_color?: string;
10135
10696
  created_at?: string;
10136
10697
  default_countries?: string[];
@@ -17741,6 +18302,85 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
17741
18302
  };
17742
18303
  Returns: import("../integrations/supabase/types").Json;
17743
18304
  };
18305
+ claim_floriday_stock_queue: {
18306
+ Args: {
18307
+ p_limit?: number;
18308
+ p_worker?: string;
18309
+ };
18310
+ Returns: {
18311
+ attempts: number;
18312
+ connection_id: string;
18313
+ created_at: string;
18314
+ desired_available: boolean | null;
18315
+ gateway_attempt_id: string | null;
18316
+ id: string;
18317
+ last_error: string | null;
18318
+ locked_at: string | null;
18319
+ locked_by: string | null;
18320
+ next_attempt_at: string;
18321
+ number_of_pieces: number;
18322
+ sent_at: string | null;
18323
+ status: string;
18324
+ superseded_by: string | null;
18325
+ trade_item_id: string;
18326
+ updated_at: string;
18327
+ user_id: string;
18328
+ }[];
18329
+ SetofOptions: {
18330
+ from: "*";
18331
+ to: "floriday_continuous_stock_queue";
18332
+ isOneToOne: false;
18333
+ isSetofReturn: true;
18334
+ };
18335
+ };
18336
+ claim_logistics_tasks: {
18337
+ Args: {
18338
+ _limit?: number;
18339
+ _owner_module: string;
18340
+ _stale_minutes?: number;
18341
+ _task_type: string;
18342
+ _worker: string;
18343
+ };
18344
+ Returns: {
18345
+ attempt_log: import("../integrations/supabase/types").Json;
18346
+ attempts: number;
18347
+ buffer_ref: string | null;
18348
+ claimed_at: string | null;
18349
+ claimed_by: string | null;
18350
+ completed_at: string | null;
18351
+ created_at: string;
18352
+ depends_on: string[];
18353
+ due_at: string | null;
18354
+ error: string | null;
18355
+ id: string;
18356
+ last_error: string | null;
18357
+ next_attempt_at: string | null;
18358
+ order_ref: string;
18359
+ owner_module: string;
18360
+ payload: import("../integrations/supabase/types").Json;
18361
+ plan_run_id: string | null;
18362
+ planned_end: string | null;
18363
+ planned_start: string | null;
18364
+ priority: number;
18365
+ result: import("../integrations/supabase/types").Json | null;
18366
+ rule_config_id: string | null;
18367
+ rule_version: number | null;
18368
+ sequence: number;
18369
+ shadow: boolean;
18370
+ started_at: string | null;
18371
+ status: string;
18372
+ strategy_id: string | null;
18373
+ task_type: string;
18374
+ updated_at: string;
18375
+ user_id: string;
18376
+ }[];
18377
+ SetofOptions: {
18378
+ from: "*";
18379
+ to: "logistics_tasks";
18380
+ isOneToOne: false;
18381
+ isSetofReturn: true;
18382
+ };
18383
+ };
17744
18384
  claim_print_jobs: {
17745
18385
  Args: {
17746
18386
  _agent_id: string;
@@ -17805,10 +18445,24 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
17805
18445
  isSetofReturn: true;
17806
18446
  };
17807
18447
  };
18448
+ cleanup_floriday_stock_queue: {
18449
+ Args: never;
18450
+ Returns: undefined;
18451
+ };
17808
18452
  cleanup_old_bookings: {
17809
18453
  Args: never;
17810
18454
  Returns: undefined;
17811
18455
  };
18456
+ complete_floriday_stock_queue: {
18457
+ Args: {
18458
+ p_attempt_id?: string;
18459
+ p_error?: string;
18460
+ p_id: string;
18461
+ p_ok: boolean;
18462
+ p_permanent?: boolean;
18463
+ };
18464
+ Returns: undefined;
18465
+ };
17812
18466
  consume_bom_for_production: {
17813
18467
  Args: {
17814
18468
  p_connection_id: string;
@@ -17981,6 +18635,21 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
17981
18635
  Args: never;
17982
18636
  Returns: string;
17983
18637
  };
18638
+ exact_auth_consume_calls: {
18639
+ Args: {
18640
+ _account_key: string;
18641
+ _calls?: number;
18642
+ _day_limit?: number;
18643
+ _division_code: number;
18644
+ _environment: string;
18645
+ _minute_limit?: number;
18646
+ };
18647
+ Returns: import("../integrations/supabase/types").Json;
18648
+ };
18649
+ exact_auth_prune_sync_log: {
18650
+ Args: never;
18651
+ Returns: undefined;
18652
+ };
17984
18653
  exact_decrypt: {
17985
18654
  Args: {
17986
18655
  cipher: string;
@@ -18190,6 +18859,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18190
18859
  };
18191
18860
  Returns: number;
18192
18861
  };
18862
+ get_offer_branding: {
18863
+ Args: never;
18864
+ Returns: import("../integrations/supabase/types").Json;
18865
+ };
18193
18866
  get_offer_by_link_code: {
18194
18867
  Args: {
18195
18868
  p_code: string;
@@ -18481,6 +19154,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18481
19154
  p_worker?: string;
18482
19155
  };
18483
19156
  Returns: {
19157
+ attempt_log: import("../integrations/supabase/types").Json;
19158
+ attempts: number;
18484
19159
  buffer_ref: string | null;
18485
19160
  claimed_at: string | null;
18486
19161
  claimed_by: string | null;
@@ -18490,6 +19165,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18490
19165
  due_at: string | null;
18491
19166
  error: string | null;
18492
19167
  id: string;
19168
+ last_error: string | null;
19169
+ next_attempt_at: string | null;
18493
19170
  order_ref: string;
18494
19171
  owner_module: string;
18495
19172
  payload: import("../integrations/supabase/types").Json;
@@ -18522,6 +19199,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18522
19199
  p_worker?: string;
18523
19200
  };
18524
19201
  Returns: {
19202
+ attempt_log: import("../integrations/supabase/types").Json;
19203
+ attempts: number;
18525
19204
  buffer_ref: string | null;
18526
19205
  claimed_at: string | null;
18527
19206
  claimed_by: string | null;
@@ -18531,6 +19210,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18531
19210
  due_at: string | null;
18532
19211
  error: string | null;
18533
19212
  id: string;
19213
+ last_error: string | null;
19214
+ next_attempt_at: string | null;
18534
19215
  order_ref: string;
18535
19216
  owner_module: string;
18536
19217
  payload: import("../integrations/supabase/types").Json;
@@ -18563,6 +19244,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18563
19244
  p_task_id: string;
18564
19245
  };
18565
19246
  Returns: {
19247
+ attempt_log: import("../integrations/supabase/types").Json;
19248
+ attempts: number;
18566
19249
  buffer_ref: string | null;
18567
19250
  claimed_at: string | null;
18568
19251
  claimed_by: string | null;
@@ -18572,6 +19255,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18572
19255
  due_at: string | null;
18573
19256
  error: string | null;
18574
19257
  id: string;
19258
+ last_error: string | null;
19259
+ next_attempt_at: string | null;
18575
19260
  order_ref: string;
18576
19261
  owner_module: string;
18577
19262
  payload: import("../integrations/supabase/types").Json;
@@ -18653,6 +19338,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18653
19338
  p_task_id: string;
18654
19339
  };
18655
19340
  Returns: {
19341
+ attempt_log: import("../integrations/supabase/types").Json;
19342
+ attempts: number;
18656
19343
  buffer_ref: string | null;
18657
19344
  claimed_at: string | null;
18658
19345
  claimed_by: string | null;
@@ -18662,6 +19349,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18662
19349
  due_at: string | null;
18663
19350
  error: string | null;
18664
19351
  id: string;
19352
+ last_error: string | null;
19353
+ next_attempt_at: string | null;
18665
19354
  order_ref: string;
18666
19355
  owner_module: string;
18667
19356
  payload: import("../integrations/supabase/types").Json;
@@ -18688,6 +19377,51 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18688
19377
  isSetofReturn: false;
18689
19378
  };
18690
19379
  };
19380
+ logistics_floriday_claim_pushes: {
19381
+ Args: {
19382
+ _lease_seconds?: number;
19383
+ _limit?: number;
19384
+ _worker?: string;
19385
+ };
19386
+ Returns: {
19387
+ attempts: number;
19388
+ fulfillment_order_id: string;
19389
+ id: string;
19390
+ last_sent_hash: string;
19391
+ order_ref: string;
19392
+ payload: import("../integrations/supabase/types").Json;
19393
+ payload_hash: string;
19394
+ revision: number;
19395
+ }[];
19396
+ };
19397
+ logistics_floriday_finish_push: {
19398
+ Args: {
19399
+ _error?: string;
19400
+ _fulfillment_order_id?: string;
19401
+ _id: string;
19402
+ _max_age_hours?: number;
19403
+ _max_attempts?: number;
19404
+ _ok: boolean;
19405
+ _permanent?: boolean;
19406
+ _revision: number;
19407
+ _sent_hash?: string;
19408
+ };
19409
+ Returns: string;
19410
+ };
19411
+ logistics_floriday_prune_pushes: {
19412
+ Args: {
19413
+ _days?: number;
19414
+ };
19415
+ Returns: number;
19416
+ };
19417
+ logistics_floriday_queue_push: {
19418
+ Args: {
19419
+ _order_ref: string;
19420
+ _payload?: import("../integrations/supabase/types").Json;
19421
+ _payload_hash?: string;
19422
+ };
19423
+ Returns: string;
19424
+ };
18691
19425
  logistics_live_carriers: {
18692
19426
  Args: {
18693
19427
  p_order_ref: string;
@@ -19415,6 +20149,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19415
20149
  Args: never;
19416
20150
  Returns: undefined;
19417
20151
  };
20152
+ run_logistics_tasks_dispatch: {
20153
+ Args: never;
20154
+ Returns: undefined;
20155
+ };
19418
20156
  run_twinfield_queue_tick: {
19419
20157
  Args: never;
19420
20158
  Returns: undefined;
@@ -19655,6 +20393,13 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19655
20393
  };
19656
20394
  Returns: number;
19657
20395
  };
20396
+ schedule_floriday_stock_queue_process: {
20397
+ Args: {
20398
+ p_apikey: string;
20399
+ p_url: string;
20400
+ };
20401
+ Returns: number;
20402
+ };
19658
20403
  schedule_floriday_token_refresh: {
19659
20404
  Args: {
19660
20405
  p_apikey: string;
@@ -23403,268 +24148,736 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
23403
24148
  referencedColumns: ["id"];
23404
24149
  }];
23405
24150
  };
23406
- exact_bulk_operation_items: {
24151
+ exact_auth_call_budget: {
23407
24152
  Row: {
23408
- attempts: number;
23409
- bulk_operation_id: string;
23410
- created_at: string;
23411
- error_message: string | null;
23412
- id: string;
23413
- invoice_cache_id: string | null;
23414
- invoice_exact_id: string | null;
23415
- processed_at: string | null;
23416
- result_data: import("../integrations/supabase/types").Json | null;
23417
- status: string;
24153
+ account_key: string;
24154
+ day_count: number;
24155
+ day_date: string;
24156
+ division_code: number;
24157
+ environment: string;
24158
+ minute_count: number;
24159
+ minute_window: string;
24160
+ updated_at: string;
23418
24161
  };
23419
24162
  Insert: {
23420
- attempts?: number;
23421
- bulk_operation_id: string;
23422
- created_at?: string;
23423
- error_message?: string | null;
23424
- id?: string;
23425
- invoice_cache_id?: string | null;
23426
- invoice_exact_id?: string | null;
23427
- processed_at?: string | null;
23428
- result_data?: import("../integrations/supabase/types").Json | null;
23429
- status?: string;
24163
+ account_key?: string;
24164
+ day_count?: number;
24165
+ day_date?: string;
24166
+ division_code?: number;
24167
+ environment: string;
24168
+ minute_count?: number;
24169
+ minute_window?: string;
24170
+ updated_at?: string;
23430
24171
  };
23431
24172
  Update: {
23432
- attempts?: number;
23433
- bulk_operation_id?: string;
23434
- created_at?: string;
23435
- error_message?: string | null;
23436
- id?: string;
23437
- invoice_cache_id?: string | null;
23438
- invoice_exact_id?: string | null;
23439
- processed_at?: string | null;
23440
- result_data?: import("../integrations/supabase/types").Json | null;
23441
- status?: string;
24173
+ account_key?: string;
24174
+ day_count?: number;
24175
+ day_date?: string;
24176
+ division_code?: number;
24177
+ environment?: string;
24178
+ minute_count?: number;
24179
+ minute_window?: string;
24180
+ updated_at?: string;
23442
24181
  };
23443
- Relationships: [{
23444
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
23445
- columns: ["bulk_operation_id"];
23446
- isOneToOne: false;
23447
- referencedRelation: "exact_bulk_operations";
23448
- referencedColumns: ["id"];
23449
- }, {
23450
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
23451
- columns: ["invoice_cache_id"];
23452
- isOneToOne: false;
23453
- referencedRelation: "exact_invoices_cache";
23454
- referencedColumns: ["id"];
23455
- }];
24182
+ Relationships: [];
23456
24183
  };
23457
- exact_bulk_operations: {
24184
+ exact_auth_customers: {
23458
24185
  Row: {
23459
- completed_at: string | null;
23460
- connection_id: string;
24186
+ account_key: string;
24187
+ address_line1: string | null;
24188
+ chamber_of_commerce: string | null;
24189
+ city: string | null;
24190
+ code: string | null;
24191
+ country: string | null;
23461
24192
  created_at: string;
23462
- created_by: string | null;
23463
- error_message: string | null;
23464
- failed_count: number | null;
24193
+ currency: string | null;
24194
+ division_code: number | null;
24195
+ email: string | null;
24196
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24197
+ exact_id: string;
24198
+ exact_modified: string | null;
24199
+ exact_timestamp: number | null;
23465
24200
  id: string;
23466
- operation_type: string;
23467
- processed_count: number | null;
23468
- result_data: import("../integrations/supabase/types").Json | null;
23469
- started_at: string | null;
23470
- status: string;
23471
- total_count: number | null;
24201
+ is_active: boolean;
24202
+ name: string | null;
24203
+ phone: string | null;
24204
+ postcode: string | null;
24205
+ raw: import("../integrations/supabase/types").Json | null;
24206
+ status: string | null;
23472
24207
  updated_at: string;
24208
+ vat_number: string | null;
24209
+ website: string | null;
23473
24210
  };
23474
24211
  Insert: {
23475
- completed_at?: string | null;
23476
- connection_id: string;
24212
+ account_key?: string;
24213
+ address_line1?: string | null;
24214
+ chamber_of_commerce?: string | null;
24215
+ city?: string | null;
24216
+ code?: string | null;
24217
+ country?: string | null;
23477
24218
  created_at?: string;
23478
- created_by?: string | null;
23479
- error_message?: string | null;
23480
- failed_count?: number | null;
24219
+ currency?: string | null;
24220
+ division_code?: number | null;
24221
+ email?: string | null;
24222
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24223
+ exact_id: string;
24224
+ exact_modified?: string | null;
24225
+ exact_timestamp?: number | null;
23481
24226
  id?: string;
23482
- operation_type: string;
23483
- processed_count?: number | null;
23484
- result_data?: import("../integrations/supabase/types").Json | null;
23485
- started_at?: string | null;
23486
- status?: string;
23487
- total_count?: number | null;
24227
+ is_active?: boolean;
24228
+ name?: string | null;
24229
+ phone?: string | null;
24230
+ postcode?: string | null;
24231
+ raw?: import("../integrations/supabase/types").Json | null;
24232
+ status?: string | null;
23488
24233
  updated_at?: string;
24234
+ vat_number?: string | null;
24235
+ website?: string | null;
23489
24236
  };
23490
24237
  Update: {
23491
- completed_at?: string | null;
23492
- connection_id?: string;
24238
+ account_key?: string;
24239
+ address_line1?: string | null;
24240
+ chamber_of_commerce?: string | null;
24241
+ city?: string | null;
24242
+ code?: string | null;
24243
+ country?: string | null;
23493
24244
  created_at?: string;
23494
- created_by?: string | null;
23495
- error_message?: string | null;
23496
- failed_count?: number | null;
24245
+ currency?: string | null;
24246
+ division_code?: number | null;
24247
+ email?: string | null;
24248
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24249
+ exact_id?: string;
24250
+ exact_modified?: string | null;
24251
+ exact_timestamp?: number | null;
23497
24252
  id?: string;
23498
- operation_type?: string;
23499
- processed_count?: number | null;
23500
- result_data?: import("../integrations/supabase/types").Json | null;
23501
- started_at?: string | null;
23502
- status?: string;
23503
- total_count?: number | null;
24253
+ is_active?: boolean;
24254
+ name?: string | null;
24255
+ phone?: string | null;
24256
+ postcode?: string | null;
24257
+ raw?: import("../integrations/supabase/types").Json | null;
24258
+ status?: string | null;
23504
24259
  updated_at?: string;
24260
+ vat_number?: string | null;
24261
+ website?: string | null;
23505
24262
  };
23506
- Relationships: [{
23507
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
23508
- columns: ["connection_id"];
23509
- isOneToOne: false;
23510
- referencedRelation: "exact_connections";
23511
- referencedColumns: ["id"];
23512
- }];
24263
+ Relationships: [];
23513
24264
  };
23514
- exact_connections: {
24265
+ exact_auth_divisions: {
23515
24266
  Row: {
23516
- access_token_encrypted: string;
24267
+ account_key: string;
23517
24268
  company_name: string | null;
23518
- connected_at: string;
23519
- connected_by: string | null;
24269
+ created_at: string;
23520
24270
  division_code: number | null;
23521
24271
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23522
- expires_at: string;
23523
24272
  id: string;
23524
- last_error: string | null;
23525
- last_refreshed_at: string | null;
23526
- last_tested_at: string | null;
23527
- refresh_token_encrypted: string;
23528
- status: string;
24273
+ last_synced_at: string | null;
23529
24274
  updated_at: string;
23530
24275
  };
23531
24276
  Insert: {
23532
- access_token_encrypted: string;
24277
+ account_key?: string;
23533
24278
  company_name?: string | null;
23534
- connected_at?: string;
23535
- connected_by?: string | null;
24279
+ created_at?: string;
23536
24280
  division_code?: number | null;
23537
24281
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23538
- expires_at: string;
23539
24282
  id?: string;
23540
- last_error?: string | null;
23541
- last_refreshed_at?: string | null;
23542
- last_tested_at?: string | null;
23543
- refresh_token_encrypted: string;
23544
- status?: string;
24283
+ last_synced_at?: string | null;
23545
24284
  updated_at?: string;
23546
24285
  };
23547
24286
  Update: {
23548
- access_token_encrypted?: string;
24287
+ account_key?: string;
23549
24288
  company_name?: string | null;
23550
- connected_at?: string;
23551
- connected_by?: string | null;
24289
+ created_at?: string;
23552
24290
  division_code?: number | null;
23553
24291
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23554
- expires_at?: string;
23555
24292
  id?: string;
23556
- last_error?: string | null;
23557
- last_refreshed_at?: string | null;
23558
- last_tested_at?: string | null;
23559
- refresh_token_encrypted?: string;
23560
- status?: string;
24293
+ last_synced_at?: string | null;
23561
24294
  updated_at?: string;
23562
24295
  };
23563
24296
  Relationships: [];
23564
24297
  };
23565
- exact_credentials: {
24298
+ exact_auth_invoice_lines: {
23566
24299
  Row: {
23567
- client_id: string;
23568
- client_secret_encrypted: string;
24300
+ account_key: string;
24301
+ amount_excl: number | null;
23569
24302
  created_at: string;
24303
+ description: string | null;
24304
+ discount: number | null;
23570
24305
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24306
+ exact_id: string;
24307
+ exact_timestamp: number | null;
23571
24308
  id: string;
23572
- redirect_uri: string;
24309
+ invoice_exact_id: string;
24310
+ item_code: string | null;
24311
+ item_exact_id: string | null;
24312
+ line_number: number | null;
24313
+ quantity: number | null;
24314
+ raw: import("../integrations/supabase/types").Json | null;
24315
+ unit_price: number | null;
23573
24316
  updated_at: string;
24317
+ vat_amount: number | null;
24318
+ vat_code: string | null;
23574
24319
  };
23575
24320
  Insert: {
23576
- client_id: string;
23577
- client_secret_encrypted: string;
24321
+ account_key?: string;
24322
+ amount_excl?: number | null;
23578
24323
  created_at?: string;
24324
+ description?: string | null;
24325
+ discount?: number | null;
23579
24326
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24327
+ exact_id: string;
24328
+ exact_timestamp?: number | null;
23580
24329
  id?: string;
23581
- redirect_uri?: string;
24330
+ invoice_exact_id: string;
24331
+ item_code?: string | null;
24332
+ item_exact_id?: string | null;
24333
+ line_number?: number | null;
24334
+ quantity?: number | null;
24335
+ raw?: import("../integrations/supabase/types").Json | null;
24336
+ unit_price?: number | null;
23582
24337
  updated_at?: string;
24338
+ vat_amount?: number | null;
24339
+ vat_code?: string | null;
23583
24340
  };
23584
24341
  Update: {
23585
- client_id?: string;
23586
- client_secret_encrypted?: string;
24342
+ account_key?: string;
24343
+ amount_excl?: number | null;
23587
24344
  created_at?: string;
24345
+ description?: string | null;
24346
+ discount?: number | null;
23588
24347
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24348
+ exact_id?: string;
24349
+ exact_timestamp?: number | null;
23589
24350
  id?: string;
23590
- redirect_uri?: string;
24351
+ invoice_exact_id?: string;
24352
+ item_code?: string | null;
24353
+ item_exact_id?: string | null;
24354
+ line_number?: number | null;
24355
+ quantity?: number | null;
24356
+ raw?: import("../integrations/supabase/types").Json | null;
24357
+ unit_price?: number | null;
23591
24358
  updated_at?: string;
24359
+ vat_amount?: number | null;
24360
+ vat_code?: string | null;
23592
24361
  };
23593
24362
  Relationships: [];
23594
24363
  };
23595
- exact_customer_sync_queue: {
24364
+ exact_auth_invoices: {
23596
24365
  Row: {
23597
- attempts: number;
23598
- connection_id: string;
24366
+ account_key: string;
24367
+ amount_excl: number | null;
24368
+ amount_incl: number | null;
24369
+ amount_open: number | null;
23599
24370
  created_at: string;
24371
+ currency: string | null;
24372
+ customer_code: string | null;
23600
24373
  customer_exact_id: string | null;
23601
- error_message: string | null;
24374
+ customer_name: string | null;
24375
+ description: string | null;
24376
+ division_code: number | null;
24377
+ due_date: string | null;
24378
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24379
+ exact_id: string;
24380
+ exact_modified: string | null;
24381
+ exact_timestamp: number | null;
23602
24382
  id: string;
23603
- max_attempts: number;
23604
- operation: string;
23605
- payload: import("../integrations/supabase/types").Json;
23606
- process_at: string;
23607
- processed_at: string | null;
23608
- status: string;
24383
+ invoice_date: string | null;
24384
+ invoice_number: string | null;
24385
+ order_number: string | null;
24386
+ paid_at: string | null;
24387
+ payment_status: string;
24388
+ raw: import("../integrations/supabase/types").Json | null;
24389
+ receivable_synced_at: string | null;
24390
+ status_code: number | null;
23609
24391
  updated_at: string;
23610
24392
  };
23611
24393
  Insert: {
23612
- attempts?: number;
23613
- connection_id: string;
24394
+ account_key?: string;
24395
+ amount_excl?: number | null;
24396
+ amount_incl?: number | null;
24397
+ amount_open?: number | null;
23614
24398
  created_at?: string;
24399
+ currency?: string | null;
24400
+ customer_code?: string | null;
23615
24401
  customer_exact_id?: string | null;
23616
- error_message?: string | null;
24402
+ customer_name?: string | null;
24403
+ description?: string | null;
24404
+ division_code?: number | null;
24405
+ due_date?: string | null;
24406
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24407
+ exact_id: string;
24408
+ exact_modified?: string | null;
24409
+ exact_timestamp?: number | null;
23617
24410
  id?: string;
23618
- max_attempts?: number;
23619
- operation: string;
23620
- payload?: import("../integrations/supabase/types").Json;
23621
- process_at?: string;
23622
- processed_at?: string | null;
23623
- status?: string;
24411
+ invoice_date?: string | null;
24412
+ invoice_number?: string | null;
24413
+ order_number?: string | null;
24414
+ paid_at?: string | null;
24415
+ payment_status?: string;
24416
+ raw?: import("../integrations/supabase/types").Json | null;
24417
+ receivable_synced_at?: string | null;
24418
+ status_code?: number | null;
23624
24419
  updated_at?: string;
23625
24420
  };
23626
24421
  Update: {
23627
- attempts?: number;
23628
- connection_id?: string;
24422
+ account_key?: string;
24423
+ amount_excl?: number | null;
24424
+ amount_incl?: number | null;
24425
+ amount_open?: number | null;
23629
24426
  created_at?: string;
24427
+ currency?: string | null;
24428
+ customer_code?: string | null;
23630
24429
  customer_exact_id?: string | null;
23631
- error_message?: string | null;
24430
+ customer_name?: string | null;
24431
+ description?: string | null;
24432
+ division_code?: number | null;
24433
+ due_date?: string | null;
24434
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24435
+ exact_id?: string;
24436
+ exact_modified?: string | null;
24437
+ exact_timestamp?: number | null;
23632
24438
  id?: string;
23633
- max_attempts?: number;
23634
- operation?: string;
23635
- payload?: import("../integrations/supabase/types").Json;
23636
- process_at?: string;
23637
- processed_at?: string | null;
23638
- status?: string;
24439
+ invoice_date?: string | null;
24440
+ invoice_number?: string | null;
24441
+ order_number?: string | null;
24442
+ paid_at?: string | null;
24443
+ payment_status?: string;
24444
+ raw?: import("../integrations/supabase/types").Json | null;
24445
+ receivable_synced_at?: string | null;
24446
+ status_code?: number | null;
23639
24447
  updated_at?: string;
23640
24448
  };
23641
- Relationships: [{
23642
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
23643
- columns: ["connection_id"];
23644
- isOneToOne: false;
23645
- referencedRelation: "exact_connections";
23646
- referencedColumns: ["id"];
23647
- }];
24449
+ Relationships: [];
23648
24450
  };
23649
- exact_customers_cache: {
24451
+ exact_auth_items: {
23650
24452
  Row: {
23651
- account_name: string | null;
23652
- account_number: string | null;
23653
- address_line1: string | null;
23654
- address_line2: string | null;
23655
- balance: number | null;
23656
- chamber_of_commerce: string | null;
23657
- city: string | null;
23658
- classification_description: string | null;
23659
- connection_id: string;
23660
- contact_name: string | null;
23661
- country: string | null;
23662
- created_at_exact: string | null;
23663
- credit_line: number | null;
23664
- currency: string | null;
23665
- data_raw: import("../integrations/supabase/types").Json | null;
23666
- email: string | null;
23667
- exact_id: string;
24453
+ account_key: string;
24454
+ barcode: string | null;
24455
+ code: string | null;
24456
+ cost_price: number | null;
24457
+ created_at: string;
24458
+ description: string | null;
24459
+ division_code: number | null;
24460
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24461
+ exact_id: string;
24462
+ exact_modified: string | null;
24463
+ exact_timestamp: number | null;
24464
+ gl_account_code: string | null;
24465
+ id: string;
24466
+ is_active: boolean;
24467
+ is_sales_item: boolean | null;
24468
+ item_type: string | null;
24469
+ raw: import("../integrations/supabase/types").Json | null;
24470
+ sales_price: number | null;
24471
+ unit: string | null;
24472
+ updated_at: string;
24473
+ vat_code: string | null;
24474
+ };
24475
+ Insert: {
24476
+ account_key?: string;
24477
+ barcode?: string | null;
24478
+ code?: string | null;
24479
+ cost_price?: number | null;
24480
+ created_at?: string;
24481
+ description?: string | null;
24482
+ division_code?: number | null;
24483
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24484
+ exact_id: string;
24485
+ exact_modified?: string | null;
24486
+ exact_timestamp?: number | null;
24487
+ gl_account_code?: string | null;
24488
+ id?: string;
24489
+ is_active?: boolean;
24490
+ is_sales_item?: boolean | null;
24491
+ item_type?: string | null;
24492
+ raw?: import("../integrations/supabase/types").Json | null;
24493
+ sales_price?: number | null;
24494
+ unit?: string | null;
24495
+ updated_at?: string;
24496
+ vat_code?: string | null;
24497
+ };
24498
+ Update: {
24499
+ account_key?: string;
24500
+ barcode?: string | null;
24501
+ code?: string | null;
24502
+ cost_price?: number | null;
24503
+ created_at?: string;
24504
+ description?: string | null;
24505
+ division_code?: number | null;
24506
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24507
+ exact_id?: string;
24508
+ exact_modified?: string | null;
24509
+ exact_timestamp?: number | null;
24510
+ gl_account_code?: string | null;
24511
+ id?: string;
24512
+ is_active?: boolean;
24513
+ is_sales_item?: boolean | null;
24514
+ item_type?: string | null;
24515
+ raw?: import("../integrations/supabase/types").Json | null;
24516
+ sales_price?: number | null;
24517
+ unit?: string | null;
24518
+ updated_at?: string;
24519
+ vat_code?: string | null;
24520
+ };
24521
+ Relationships: [];
24522
+ };
24523
+ exact_auth_sync_log: {
24524
+ Row: {
24525
+ account_key: string;
24526
+ calls_used: number;
24527
+ created_at: string;
24528
+ domain: string;
24529
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24530
+ error: string | null;
24531
+ finished_at: string | null;
24532
+ id: string;
24533
+ ok: boolean;
24534
+ records: number;
24535
+ started_at: string;
24536
+ };
24537
+ Insert: {
24538
+ account_key?: string;
24539
+ calls_used?: number;
24540
+ created_at?: string;
24541
+ domain: string;
24542
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24543
+ error?: string | null;
24544
+ finished_at?: string | null;
24545
+ id?: string;
24546
+ ok?: boolean;
24547
+ records?: number;
24548
+ started_at?: string;
24549
+ };
24550
+ Update: {
24551
+ account_key?: string;
24552
+ calls_used?: number;
24553
+ created_at?: string;
24554
+ domain?: string;
24555
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24556
+ error?: string | null;
24557
+ finished_at?: string | null;
24558
+ id?: string;
24559
+ ok?: boolean;
24560
+ records?: number;
24561
+ started_at?: string;
24562
+ };
24563
+ Relationships: [];
24564
+ };
24565
+ exact_auth_sync_state: {
24566
+ Row: {
24567
+ account_key: string;
24568
+ created_at: string;
24569
+ cursor_timestamp: number;
24570
+ division_code: number | null;
24571
+ domain: string;
24572
+ duration_ms: number | null;
24573
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24574
+ initial_sync_done: boolean;
24575
+ last_error: string | null;
24576
+ last_run_at: string | null;
24577
+ last_success_at: string | null;
24578
+ locked_at: string | null;
24579
+ needs_initial_sync: boolean;
24580
+ record_count: number;
24581
+ updated_at: string;
24582
+ };
24583
+ Insert: {
24584
+ account_key?: string;
24585
+ created_at?: string;
24586
+ cursor_timestamp?: number;
24587
+ division_code?: number | null;
24588
+ domain: string;
24589
+ duration_ms?: number | null;
24590
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24591
+ initial_sync_done?: boolean;
24592
+ last_error?: string | null;
24593
+ last_run_at?: string | null;
24594
+ last_success_at?: string | null;
24595
+ locked_at?: string | null;
24596
+ needs_initial_sync?: boolean;
24597
+ record_count?: number;
24598
+ updated_at?: string;
24599
+ };
24600
+ Update: {
24601
+ account_key?: string;
24602
+ created_at?: string;
24603
+ cursor_timestamp?: number;
24604
+ division_code?: number | null;
24605
+ domain?: string;
24606
+ duration_ms?: number | null;
24607
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24608
+ initial_sync_done?: boolean;
24609
+ last_error?: string | null;
24610
+ last_run_at?: string | null;
24611
+ last_success_at?: string | null;
24612
+ locked_at?: string | null;
24613
+ needs_initial_sync?: boolean;
24614
+ record_count?: number;
24615
+ updated_at?: string;
24616
+ };
24617
+ Relationships: [];
24618
+ };
24619
+ exact_bulk_operation_items: {
24620
+ Row: {
24621
+ attempts: number;
24622
+ bulk_operation_id: string;
24623
+ created_at: string;
24624
+ error_message: string | null;
24625
+ id: string;
24626
+ invoice_cache_id: string | null;
24627
+ invoice_exact_id: string | null;
24628
+ processed_at: string | null;
24629
+ result_data: import("../integrations/supabase/types").Json | null;
24630
+ status: string;
24631
+ };
24632
+ Insert: {
24633
+ attempts?: number;
24634
+ bulk_operation_id: string;
24635
+ created_at?: string;
24636
+ error_message?: string | null;
24637
+ id?: string;
24638
+ invoice_cache_id?: string | null;
24639
+ invoice_exact_id?: string | null;
24640
+ processed_at?: string | null;
24641
+ result_data?: import("../integrations/supabase/types").Json | null;
24642
+ status?: string;
24643
+ };
24644
+ Update: {
24645
+ attempts?: number;
24646
+ bulk_operation_id?: string;
24647
+ created_at?: string;
24648
+ error_message?: string | null;
24649
+ id?: string;
24650
+ invoice_cache_id?: string | null;
24651
+ invoice_exact_id?: string | null;
24652
+ processed_at?: string | null;
24653
+ result_data?: import("../integrations/supabase/types").Json | null;
24654
+ status?: string;
24655
+ };
24656
+ Relationships: [{
24657
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
24658
+ columns: ["bulk_operation_id"];
24659
+ isOneToOne: false;
24660
+ referencedRelation: "exact_bulk_operations";
24661
+ referencedColumns: ["id"];
24662
+ }, {
24663
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
24664
+ columns: ["invoice_cache_id"];
24665
+ isOneToOne: false;
24666
+ referencedRelation: "exact_invoices_cache";
24667
+ referencedColumns: ["id"];
24668
+ }];
24669
+ };
24670
+ exact_bulk_operations: {
24671
+ Row: {
24672
+ completed_at: string | null;
24673
+ connection_id: string;
24674
+ created_at: string;
24675
+ created_by: string | null;
24676
+ error_message: string | null;
24677
+ failed_count: number | null;
24678
+ id: string;
24679
+ operation_type: string;
24680
+ processed_count: number | null;
24681
+ result_data: import("../integrations/supabase/types").Json | null;
24682
+ started_at: string | null;
24683
+ status: string;
24684
+ total_count: number | null;
24685
+ updated_at: string;
24686
+ };
24687
+ Insert: {
24688
+ completed_at?: string | null;
24689
+ connection_id: string;
24690
+ created_at?: string;
24691
+ created_by?: string | null;
24692
+ error_message?: string | null;
24693
+ failed_count?: number | null;
24694
+ id?: string;
24695
+ operation_type: string;
24696
+ processed_count?: number | null;
24697
+ result_data?: import("../integrations/supabase/types").Json | null;
24698
+ started_at?: string | null;
24699
+ status?: string;
24700
+ total_count?: number | null;
24701
+ updated_at?: string;
24702
+ };
24703
+ Update: {
24704
+ completed_at?: string | null;
24705
+ connection_id?: string;
24706
+ created_at?: string;
24707
+ created_by?: string | null;
24708
+ error_message?: string | null;
24709
+ failed_count?: number | null;
24710
+ id?: string;
24711
+ operation_type?: string;
24712
+ processed_count?: number | null;
24713
+ result_data?: import("../integrations/supabase/types").Json | null;
24714
+ started_at?: string | null;
24715
+ status?: string;
24716
+ total_count?: number | null;
24717
+ updated_at?: string;
24718
+ };
24719
+ Relationships: [{
24720
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
24721
+ columns: ["connection_id"];
24722
+ isOneToOne: false;
24723
+ referencedRelation: "exact_connections";
24724
+ referencedColumns: ["id"];
24725
+ }];
24726
+ };
24727
+ exact_connections: {
24728
+ Row: {
24729
+ access_token_encrypted: string;
24730
+ company_name: string | null;
24731
+ connected_at: string;
24732
+ connected_by: string | null;
24733
+ division_code: number | null;
24734
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24735
+ expires_at: string;
24736
+ id: string;
24737
+ last_error: string | null;
24738
+ last_refreshed_at: string | null;
24739
+ last_tested_at: string | null;
24740
+ refresh_token_encrypted: string;
24741
+ status: string;
24742
+ updated_at: string;
24743
+ };
24744
+ Insert: {
24745
+ access_token_encrypted: string;
24746
+ company_name?: string | null;
24747
+ connected_at?: string;
24748
+ connected_by?: string | null;
24749
+ division_code?: number | null;
24750
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24751
+ expires_at: string;
24752
+ id?: string;
24753
+ last_error?: string | null;
24754
+ last_refreshed_at?: string | null;
24755
+ last_tested_at?: string | null;
24756
+ refresh_token_encrypted: string;
24757
+ status?: string;
24758
+ updated_at?: string;
24759
+ };
24760
+ Update: {
24761
+ access_token_encrypted?: string;
24762
+ company_name?: string | null;
24763
+ connected_at?: string;
24764
+ connected_by?: string | null;
24765
+ division_code?: number | null;
24766
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24767
+ expires_at?: string;
24768
+ id?: string;
24769
+ last_error?: string | null;
24770
+ last_refreshed_at?: string | null;
24771
+ last_tested_at?: string | null;
24772
+ refresh_token_encrypted?: string;
24773
+ status?: string;
24774
+ updated_at?: string;
24775
+ };
24776
+ Relationships: [];
24777
+ };
24778
+ exact_credentials: {
24779
+ Row: {
24780
+ client_id: string;
24781
+ client_secret_encrypted: string;
24782
+ created_at: string;
24783
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24784
+ id: string;
24785
+ redirect_uri: string;
24786
+ updated_at: string;
24787
+ };
24788
+ Insert: {
24789
+ client_id: string;
24790
+ client_secret_encrypted: string;
24791
+ created_at?: string;
24792
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24793
+ id?: string;
24794
+ redirect_uri?: string;
24795
+ updated_at?: string;
24796
+ };
24797
+ Update: {
24798
+ client_id?: string;
24799
+ client_secret_encrypted?: string;
24800
+ created_at?: string;
24801
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24802
+ id?: string;
24803
+ redirect_uri?: string;
24804
+ updated_at?: string;
24805
+ };
24806
+ Relationships: [];
24807
+ };
24808
+ exact_customer_sync_queue: {
24809
+ Row: {
24810
+ attempts: number;
24811
+ connection_id: string;
24812
+ created_at: string;
24813
+ customer_exact_id: string | null;
24814
+ error_message: string | null;
24815
+ id: string;
24816
+ max_attempts: number;
24817
+ operation: string;
24818
+ payload: import("../integrations/supabase/types").Json;
24819
+ process_at: string;
24820
+ processed_at: string | null;
24821
+ status: string;
24822
+ updated_at: string;
24823
+ };
24824
+ Insert: {
24825
+ attempts?: number;
24826
+ connection_id: string;
24827
+ created_at?: string;
24828
+ customer_exact_id?: string | null;
24829
+ error_message?: string | null;
24830
+ id?: string;
24831
+ max_attempts?: number;
24832
+ operation: string;
24833
+ payload?: import("../integrations/supabase/types").Json;
24834
+ process_at?: string;
24835
+ processed_at?: string | null;
24836
+ status?: string;
24837
+ updated_at?: string;
24838
+ };
24839
+ Update: {
24840
+ attempts?: number;
24841
+ connection_id?: string;
24842
+ created_at?: string;
24843
+ customer_exact_id?: string | null;
24844
+ error_message?: string | null;
24845
+ id?: string;
24846
+ max_attempts?: number;
24847
+ operation?: string;
24848
+ payload?: import("../integrations/supabase/types").Json;
24849
+ process_at?: string;
24850
+ processed_at?: string | null;
24851
+ status?: string;
24852
+ updated_at?: string;
24853
+ };
24854
+ Relationships: [{
24855
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
24856
+ columns: ["connection_id"];
24857
+ isOneToOne: false;
24858
+ referencedRelation: "exact_connections";
24859
+ referencedColumns: ["id"];
24860
+ }];
24861
+ };
24862
+ exact_customers_cache: {
24863
+ Row: {
24864
+ account_name: string | null;
24865
+ account_number: string | null;
24866
+ address_line1: string | null;
24867
+ address_line2: string | null;
24868
+ balance: number | null;
24869
+ chamber_of_commerce: string | null;
24870
+ city: string | null;
24871
+ classification_description: string | null;
24872
+ connection_id: string;
24873
+ contact_name: string | null;
24874
+ country: string | null;
24875
+ created_at_exact: string | null;
24876
+ credit_line: number | null;
24877
+ currency: string | null;
24878
+ data_raw: import("../integrations/supabase/types").Json | null;
24879
+ email: string | null;
24880
+ exact_id: string;
23668
24881
  expires_at: string | null;
23669
24882
  fetched_at: string;
23670
24883
  id: string;
@@ -25094,12 +26307,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25094
26307
  attempts: number;
25095
26308
  connection_id: string;
25096
26309
  created_at: string;
26310
+ desired_available: boolean | null;
25097
26311
  gateway_attempt_id: string | null;
25098
26312
  id: string;
25099
26313
  last_error: string | null;
26314
+ locked_at: string | null;
26315
+ locked_by: string | null;
26316
+ next_attempt_at: string;
25100
26317
  number_of_pieces: number;
25101
26318
  sent_at: string | null;
25102
26319
  status: string;
26320
+ superseded_by: string | null;
25103
26321
  trade_item_id: string;
25104
26322
  updated_at: string;
25105
26323
  user_id: string;
@@ -25108,12 +26326,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25108
26326
  attempts?: number;
25109
26327
  connection_id: string;
25110
26328
  created_at?: string;
26329
+ desired_available?: boolean | null;
25111
26330
  gateway_attempt_id?: string | null;
25112
26331
  id?: string;
25113
26332
  last_error?: string | null;
26333
+ locked_at?: string | null;
26334
+ locked_by?: string | null;
26335
+ next_attempt_at?: string;
25114
26336
  number_of_pieces?: number;
25115
26337
  sent_at?: string | null;
25116
26338
  status?: string;
26339
+ superseded_by?: string | null;
25117
26340
  trade_item_id: string;
25118
26341
  updated_at?: string;
25119
26342
  user_id: string;
@@ -25122,12 +26345,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25122
26345
  attempts?: number;
25123
26346
  connection_id?: string;
25124
26347
  created_at?: string;
26348
+ desired_available?: boolean | null;
25125
26349
  gateway_attempt_id?: string | null;
25126
26350
  id?: string;
25127
26351
  last_error?: string | null;
26352
+ locked_at?: string | null;
26353
+ locked_by?: string | null;
26354
+ next_attempt_at?: string;
25128
26355
  number_of_pieces?: number;
25129
26356
  sent_at?: string | null;
25130
26357
  status?: string;
26358
+ superseded_by?: string | null;
25131
26359
  trade_item_id?: string;
25132
26360
  updated_at?: string;
25133
26361
  user_id?: string;
@@ -27876,6 +29104,69 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
27876
29104
  };
27877
29105
  Relationships: [];
27878
29106
  };
29107
+ logistics_floriday_pushes: {
29108
+ Row: {
29109
+ attempts: number;
29110
+ created_at: string;
29111
+ first_queued_at: string;
29112
+ fulfillment_order_id: string | null;
29113
+ id: string;
29114
+ last_error: string | null;
29115
+ last_error_at: string | null;
29116
+ last_sent_hash: string | null;
29117
+ locked_by: string | null;
29118
+ locked_until: string | null;
29119
+ next_attempt_at: string;
29120
+ order_ref: string;
29121
+ payload: import("../integrations/supabase/types").Json;
29122
+ payload_hash: string | null;
29123
+ revision: number;
29124
+ sent_at: string | null;
29125
+ status: string;
29126
+ updated_at: string;
29127
+ };
29128
+ Insert: {
29129
+ attempts?: number;
29130
+ created_at?: string;
29131
+ first_queued_at?: string;
29132
+ fulfillment_order_id?: string | null;
29133
+ id?: string;
29134
+ last_error?: string | null;
29135
+ last_error_at?: string | null;
29136
+ last_sent_hash?: string | null;
29137
+ locked_by?: string | null;
29138
+ locked_until?: string | null;
29139
+ next_attempt_at?: string;
29140
+ order_ref: string;
29141
+ payload?: import("../integrations/supabase/types").Json;
29142
+ payload_hash?: string | null;
29143
+ revision?: number;
29144
+ sent_at?: string | null;
29145
+ status?: string;
29146
+ updated_at?: string;
29147
+ };
29148
+ Update: {
29149
+ attempts?: number;
29150
+ created_at?: string;
29151
+ first_queued_at?: string;
29152
+ fulfillment_order_id?: string | null;
29153
+ id?: string;
29154
+ last_error?: string | null;
29155
+ last_error_at?: string | null;
29156
+ last_sent_hash?: string | null;
29157
+ locked_by?: string | null;
29158
+ locked_until?: string | null;
29159
+ next_attempt_at?: string;
29160
+ order_ref?: string;
29161
+ payload?: import("../integrations/supabase/types").Json;
29162
+ payload_hash?: string | null;
29163
+ revision?: number;
29164
+ sent_at?: string | null;
29165
+ status?: string;
29166
+ updated_at?: string;
29167
+ };
29168
+ Relationships: [];
29169
+ };
27879
29170
  logistics_formulas: {
27880
29171
  Row: {
27881
29172
  created_at: string;
@@ -28487,6 +29778,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28487
29778
  };
28488
29779
  logistics_tasks: {
28489
29780
  Row: {
29781
+ attempt_log: import("../integrations/supabase/types").Json;
29782
+ attempts: number;
28490
29783
  buffer_ref: string | null;
28491
29784
  claimed_at: string | null;
28492
29785
  claimed_by: string | null;
@@ -28496,6 +29789,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28496
29789
  due_at: string | null;
28497
29790
  error: string | null;
28498
29791
  id: string;
29792
+ last_error: string | null;
29793
+ next_attempt_at: string | null;
28499
29794
  order_ref: string;
28500
29795
  owner_module: string;
28501
29796
  payload: import("../integrations/supabase/types").Json;
@@ -28516,6 +29811,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28516
29811
  user_id: string;
28517
29812
  };
28518
29813
  Insert: {
29814
+ attempt_log?: import("../integrations/supabase/types").Json;
29815
+ attempts?: number;
28519
29816
  buffer_ref?: string | null;
28520
29817
  claimed_at?: string | null;
28521
29818
  claimed_by?: string | null;
@@ -28525,6 +29822,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28525
29822
  due_at?: string | null;
28526
29823
  error?: string | null;
28527
29824
  id?: string;
29825
+ last_error?: string | null;
29826
+ next_attempt_at?: string | null;
28528
29827
  order_ref: string;
28529
29828
  owner_module: string;
28530
29829
  payload?: import("../integrations/supabase/types").Json;
@@ -28545,6 +29844,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28545
29844
  user_id?: string;
28546
29845
  };
28547
29846
  Update: {
29847
+ attempt_log?: import("../integrations/supabase/types").Json;
29848
+ attempts?: number;
28548
29849
  buffer_ref?: string | null;
28549
29850
  claimed_at?: string | null;
28550
29851
  claimed_by?: string | null;
@@ -28554,6 +29855,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28554
29855
  due_at?: string | null;
28555
29856
  error?: string | null;
28556
29857
  id?: string;
29858
+ last_error?: string | null;
29859
+ next_attempt_at?: string | null;
28557
29860
  order_ref?: string;
28558
29861
  owner_module?: string;
28559
29862
  payload?: import("../integrations/supabase/types").Json;
@@ -29903,6 +31206,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29903
31206
  };
29904
31207
  offer_settings: {
29905
31208
  Row: {
31209
+ brand_name: string | null;
29906
31210
  button_color: string;
29907
31211
  created_at: string;
29908
31212
  default_countries: string[];
@@ -29924,6 +31228,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29924
31228
  updated_at: string;
29925
31229
  };
29926
31230
  Insert: {
31231
+ brand_name?: string | null;
29927
31232
  button_color?: string;
29928
31233
  created_at?: string;
29929
31234
  default_countries?: string[];
@@ -29945,6 +31250,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29945
31250
  updated_at?: string;
29946
31251
  };
29947
31252
  Update: {
31253
+ brand_name?: string | null;
29948
31254
  button_color?: string;
29949
31255
  created_at?: string;
29950
31256
  default_countries?: string[];
@@ -37555,6 +38861,85 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37555
38861
  };
37556
38862
  Returns: import("../integrations/supabase/types").Json;
37557
38863
  };
38864
+ claim_floriday_stock_queue: {
38865
+ Args: {
38866
+ p_limit?: number;
38867
+ p_worker?: string;
38868
+ };
38869
+ Returns: {
38870
+ attempts: number;
38871
+ connection_id: string;
38872
+ created_at: string;
38873
+ desired_available: boolean | null;
38874
+ gateway_attempt_id: string | null;
38875
+ id: string;
38876
+ last_error: string | null;
38877
+ locked_at: string | null;
38878
+ locked_by: string | null;
38879
+ next_attempt_at: string;
38880
+ number_of_pieces: number;
38881
+ sent_at: string | null;
38882
+ status: string;
38883
+ superseded_by: string | null;
38884
+ trade_item_id: string;
38885
+ updated_at: string;
38886
+ user_id: string;
38887
+ }[];
38888
+ SetofOptions: {
38889
+ from: "*";
38890
+ to: "floriday_continuous_stock_queue";
38891
+ isOneToOne: false;
38892
+ isSetofReturn: true;
38893
+ };
38894
+ };
38895
+ claim_logistics_tasks: {
38896
+ Args: {
38897
+ _limit?: number;
38898
+ _owner_module: string;
38899
+ _stale_minutes?: number;
38900
+ _task_type: string;
38901
+ _worker: string;
38902
+ };
38903
+ Returns: {
38904
+ attempt_log: import("../integrations/supabase/types").Json;
38905
+ attempts: number;
38906
+ buffer_ref: string | null;
38907
+ claimed_at: string | null;
38908
+ claimed_by: string | null;
38909
+ completed_at: string | null;
38910
+ created_at: string;
38911
+ depends_on: string[];
38912
+ due_at: string | null;
38913
+ error: string | null;
38914
+ id: string;
38915
+ last_error: string | null;
38916
+ next_attempt_at: string | null;
38917
+ order_ref: string;
38918
+ owner_module: string;
38919
+ payload: import("../integrations/supabase/types").Json;
38920
+ plan_run_id: string | null;
38921
+ planned_end: string | null;
38922
+ planned_start: string | null;
38923
+ priority: number;
38924
+ result: import("../integrations/supabase/types").Json | null;
38925
+ rule_config_id: string | null;
38926
+ rule_version: number | null;
38927
+ sequence: number;
38928
+ shadow: boolean;
38929
+ started_at: string | null;
38930
+ status: string;
38931
+ strategy_id: string | null;
38932
+ task_type: string;
38933
+ updated_at: string;
38934
+ user_id: string;
38935
+ }[];
38936
+ SetofOptions: {
38937
+ from: "*";
38938
+ to: "logistics_tasks";
38939
+ isOneToOne: false;
38940
+ isSetofReturn: true;
38941
+ };
38942
+ };
37558
38943
  claim_print_jobs: {
37559
38944
  Args: {
37560
38945
  _agent_id: string;
@@ -37619,10 +39004,24 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37619
39004
  isSetofReturn: true;
37620
39005
  };
37621
39006
  };
39007
+ cleanup_floriday_stock_queue: {
39008
+ Args: never;
39009
+ Returns: undefined;
39010
+ };
37622
39011
  cleanup_old_bookings: {
37623
39012
  Args: never;
37624
39013
  Returns: undefined;
37625
39014
  };
39015
+ complete_floriday_stock_queue: {
39016
+ Args: {
39017
+ p_attempt_id?: string;
39018
+ p_error?: string;
39019
+ p_id: string;
39020
+ p_ok: boolean;
39021
+ p_permanent?: boolean;
39022
+ };
39023
+ Returns: undefined;
39024
+ };
37626
39025
  consume_bom_for_production: {
37627
39026
  Args: {
37628
39027
  p_connection_id: string;
@@ -37795,6 +39194,21 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37795
39194
  Args: never;
37796
39195
  Returns: string;
37797
39196
  };
39197
+ exact_auth_consume_calls: {
39198
+ Args: {
39199
+ _account_key: string;
39200
+ _calls?: number;
39201
+ _day_limit?: number;
39202
+ _division_code: number;
39203
+ _environment: string;
39204
+ _minute_limit?: number;
39205
+ };
39206
+ Returns: import("../integrations/supabase/types").Json;
39207
+ };
39208
+ exact_auth_prune_sync_log: {
39209
+ Args: never;
39210
+ Returns: undefined;
39211
+ };
37798
39212
  exact_decrypt: {
37799
39213
  Args: {
37800
39214
  cipher: string;
@@ -38004,6 +39418,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38004
39418
  };
38005
39419
  Returns: number;
38006
39420
  };
39421
+ get_offer_branding: {
39422
+ Args: never;
39423
+ Returns: import("../integrations/supabase/types").Json;
39424
+ };
38007
39425
  get_offer_by_link_code: {
38008
39426
  Args: {
38009
39427
  p_code: string;
@@ -38295,6 +39713,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38295
39713
  p_worker?: string;
38296
39714
  };
38297
39715
  Returns: {
39716
+ attempt_log: import("../integrations/supabase/types").Json;
39717
+ attempts: number;
38298
39718
  buffer_ref: string | null;
38299
39719
  claimed_at: string | null;
38300
39720
  claimed_by: string | null;
@@ -38304,6 +39724,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38304
39724
  due_at: string | null;
38305
39725
  error: string | null;
38306
39726
  id: string;
39727
+ last_error: string | null;
39728
+ next_attempt_at: string | null;
38307
39729
  order_ref: string;
38308
39730
  owner_module: string;
38309
39731
  payload: import("../integrations/supabase/types").Json;
@@ -38336,6 +39758,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38336
39758
  p_worker?: string;
38337
39759
  };
38338
39760
  Returns: {
39761
+ attempt_log: import("../integrations/supabase/types").Json;
39762
+ attempts: number;
38339
39763
  buffer_ref: string | null;
38340
39764
  claimed_at: string | null;
38341
39765
  claimed_by: string | null;
@@ -38345,6 +39769,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38345
39769
  due_at: string | null;
38346
39770
  error: string | null;
38347
39771
  id: string;
39772
+ last_error: string | null;
39773
+ next_attempt_at: string | null;
38348
39774
  order_ref: string;
38349
39775
  owner_module: string;
38350
39776
  payload: import("../integrations/supabase/types").Json;
@@ -38377,6 +39803,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38377
39803
  p_task_id: string;
38378
39804
  };
38379
39805
  Returns: {
39806
+ attempt_log: import("../integrations/supabase/types").Json;
39807
+ attempts: number;
38380
39808
  buffer_ref: string | null;
38381
39809
  claimed_at: string | null;
38382
39810
  claimed_by: string | null;
@@ -38386,6 +39814,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38386
39814
  due_at: string | null;
38387
39815
  error: string | null;
38388
39816
  id: string;
39817
+ last_error: string | null;
39818
+ next_attempt_at: string | null;
38389
39819
  order_ref: string;
38390
39820
  owner_module: string;
38391
39821
  payload: import("../integrations/supabase/types").Json;
@@ -38467,6 +39897,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38467
39897
  p_task_id: string;
38468
39898
  };
38469
39899
  Returns: {
39900
+ attempt_log: import("../integrations/supabase/types").Json;
39901
+ attempts: number;
38470
39902
  buffer_ref: string | null;
38471
39903
  claimed_at: string | null;
38472
39904
  claimed_by: string | null;
@@ -38476,6 +39908,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38476
39908
  due_at: string | null;
38477
39909
  error: string | null;
38478
39910
  id: string;
39911
+ last_error: string | null;
39912
+ next_attempt_at: string | null;
38479
39913
  order_ref: string;
38480
39914
  owner_module: string;
38481
39915
  payload: import("../integrations/supabase/types").Json;
@@ -38502,6 +39936,51 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38502
39936
  isSetofReturn: false;
38503
39937
  };
38504
39938
  };
39939
+ logistics_floriday_claim_pushes: {
39940
+ Args: {
39941
+ _lease_seconds?: number;
39942
+ _limit?: number;
39943
+ _worker?: string;
39944
+ };
39945
+ Returns: {
39946
+ attempts: number;
39947
+ fulfillment_order_id: string;
39948
+ id: string;
39949
+ last_sent_hash: string;
39950
+ order_ref: string;
39951
+ payload: import("../integrations/supabase/types").Json;
39952
+ payload_hash: string;
39953
+ revision: number;
39954
+ }[];
39955
+ };
39956
+ logistics_floriday_finish_push: {
39957
+ Args: {
39958
+ _error?: string;
39959
+ _fulfillment_order_id?: string;
39960
+ _id: string;
39961
+ _max_age_hours?: number;
39962
+ _max_attempts?: number;
39963
+ _ok: boolean;
39964
+ _permanent?: boolean;
39965
+ _revision: number;
39966
+ _sent_hash?: string;
39967
+ };
39968
+ Returns: string;
39969
+ };
39970
+ logistics_floriday_prune_pushes: {
39971
+ Args: {
39972
+ _days?: number;
39973
+ };
39974
+ Returns: number;
39975
+ };
39976
+ logistics_floriday_queue_push: {
39977
+ Args: {
39978
+ _order_ref: string;
39979
+ _payload?: import("../integrations/supabase/types").Json;
39980
+ _payload_hash?: string;
39981
+ };
39982
+ Returns: string;
39983
+ };
38505
39984
  logistics_live_carriers: {
38506
39985
  Args: {
38507
39986
  p_order_ref: string;
@@ -39229,6 +40708,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39229
40708
  Args: never;
39230
40709
  Returns: undefined;
39231
40710
  };
40711
+ run_logistics_tasks_dispatch: {
40712
+ Args: never;
40713
+ Returns: undefined;
40714
+ };
39232
40715
  run_twinfield_queue_tick: {
39233
40716
  Args: never;
39234
40717
  Returns: undefined;
@@ -39469,6 +40952,13 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39469
40952
  };
39470
40953
  Returns: number;
39471
40954
  };
40955
+ schedule_floriday_stock_queue_process: {
40956
+ Args: {
40957
+ p_apikey: string;
40958
+ p_url: string;
40959
+ };
40960
+ Returns: number;
40961
+ };
39472
40962
  schedule_floriday_token_refresh: {
39473
40963
  Args: {
39474
40964
  p_apikey: string;
@@ -43224,268 +44714,736 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
43224
44714
  referencedColumns: ["id"];
43225
44715
  }];
43226
44716
  };
43227
- exact_bulk_operation_items: {
44717
+ exact_auth_call_budget: {
43228
44718
  Row: {
43229
- attempts: number;
43230
- bulk_operation_id: string;
43231
- created_at: string;
43232
- error_message: string | null;
43233
- id: string;
43234
- invoice_cache_id: string | null;
43235
- invoice_exact_id: string | null;
43236
- processed_at: string | null;
43237
- result_data: import("../integrations/supabase/types").Json | null;
43238
- status: string;
44719
+ account_key: string;
44720
+ day_count: number;
44721
+ day_date: string;
44722
+ division_code: number;
44723
+ environment: string;
44724
+ minute_count: number;
44725
+ minute_window: string;
44726
+ updated_at: string;
43239
44727
  };
43240
44728
  Insert: {
43241
- attempts?: number;
43242
- bulk_operation_id: string;
43243
- created_at?: string;
43244
- error_message?: string | null;
43245
- id?: string;
43246
- invoice_cache_id?: string | null;
43247
- invoice_exact_id?: string | null;
43248
- processed_at?: string | null;
43249
- result_data?: import("../integrations/supabase/types").Json | null;
43250
- status?: string;
44729
+ account_key?: string;
44730
+ day_count?: number;
44731
+ day_date?: string;
44732
+ division_code?: number;
44733
+ environment: string;
44734
+ minute_count?: number;
44735
+ minute_window?: string;
44736
+ updated_at?: string;
43251
44737
  };
43252
44738
  Update: {
43253
- attempts?: number;
43254
- bulk_operation_id?: string;
43255
- created_at?: string;
43256
- error_message?: string | null;
43257
- id?: string;
43258
- invoice_cache_id?: string | null;
43259
- invoice_exact_id?: string | null;
43260
- processed_at?: string | null;
43261
- result_data?: import("../integrations/supabase/types").Json | null;
43262
- status?: string;
44739
+ account_key?: string;
44740
+ day_count?: number;
44741
+ day_date?: string;
44742
+ division_code?: number;
44743
+ environment?: string;
44744
+ minute_count?: number;
44745
+ minute_window?: string;
44746
+ updated_at?: string;
43263
44747
  };
43264
- Relationships: [{
43265
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
43266
- columns: ["bulk_operation_id"];
43267
- isOneToOne: false;
43268
- referencedRelation: "exact_bulk_operations";
43269
- referencedColumns: ["id"];
43270
- }, {
43271
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
43272
- columns: ["invoice_cache_id"];
43273
- isOneToOne: false;
43274
- referencedRelation: "exact_invoices_cache";
43275
- referencedColumns: ["id"];
43276
- }];
44748
+ Relationships: [];
43277
44749
  };
43278
- exact_bulk_operations: {
44750
+ exact_auth_customers: {
43279
44751
  Row: {
43280
- completed_at: string | null;
43281
- connection_id: string;
44752
+ account_key: string;
44753
+ address_line1: string | null;
44754
+ chamber_of_commerce: string | null;
44755
+ city: string | null;
44756
+ code: string | null;
44757
+ country: string | null;
43282
44758
  created_at: string;
43283
- created_by: string | null;
43284
- error_message: string | null;
43285
- failed_count: number | null;
44759
+ currency: string | null;
44760
+ division_code: number | null;
44761
+ email: string | null;
44762
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44763
+ exact_id: string;
44764
+ exact_modified: string | null;
44765
+ exact_timestamp: number | null;
43286
44766
  id: string;
43287
- operation_type: string;
43288
- processed_count: number | null;
43289
- result_data: import("../integrations/supabase/types").Json | null;
43290
- started_at: string | null;
43291
- status: string;
43292
- total_count: number | null;
44767
+ is_active: boolean;
44768
+ name: string | null;
44769
+ phone: string | null;
44770
+ postcode: string | null;
44771
+ raw: import("../integrations/supabase/types").Json | null;
44772
+ status: string | null;
43293
44773
  updated_at: string;
44774
+ vat_number: string | null;
44775
+ website: string | null;
43294
44776
  };
43295
44777
  Insert: {
43296
- completed_at?: string | null;
43297
- connection_id: string;
44778
+ account_key?: string;
44779
+ address_line1?: string | null;
44780
+ chamber_of_commerce?: string | null;
44781
+ city?: string | null;
44782
+ code?: string | null;
44783
+ country?: string | null;
43298
44784
  created_at?: string;
43299
- created_by?: string | null;
43300
- error_message?: string | null;
43301
- failed_count?: number | null;
44785
+ currency?: string | null;
44786
+ division_code?: number | null;
44787
+ email?: string | null;
44788
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44789
+ exact_id: string;
44790
+ exact_modified?: string | null;
44791
+ exact_timestamp?: number | null;
43302
44792
  id?: string;
43303
- operation_type: string;
43304
- processed_count?: number | null;
43305
- result_data?: import("../integrations/supabase/types").Json | null;
43306
- started_at?: string | null;
43307
- status?: string;
43308
- total_count?: number | null;
44793
+ is_active?: boolean;
44794
+ name?: string | null;
44795
+ phone?: string | null;
44796
+ postcode?: string | null;
44797
+ raw?: import("../integrations/supabase/types").Json | null;
44798
+ status?: string | null;
43309
44799
  updated_at?: string;
44800
+ vat_number?: string | null;
44801
+ website?: string | null;
43310
44802
  };
43311
44803
  Update: {
43312
- completed_at?: string | null;
43313
- connection_id?: string;
44804
+ account_key?: string;
44805
+ address_line1?: string | null;
44806
+ chamber_of_commerce?: string | null;
44807
+ city?: string | null;
44808
+ code?: string | null;
44809
+ country?: string | null;
43314
44810
  created_at?: string;
43315
- created_by?: string | null;
43316
- error_message?: string | null;
43317
- failed_count?: number | null;
44811
+ currency?: string | null;
44812
+ division_code?: number | null;
44813
+ email?: string | null;
44814
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44815
+ exact_id?: string;
44816
+ exact_modified?: string | null;
44817
+ exact_timestamp?: number | null;
43318
44818
  id?: string;
43319
- operation_type?: string;
43320
- processed_count?: number | null;
43321
- result_data?: import("../integrations/supabase/types").Json | null;
43322
- started_at?: string | null;
43323
- status?: string;
43324
- total_count?: number | null;
44819
+ is_active?: boolean;
44820
+ name?: string | null;
44821
+ phone?: string | null;
44822
+ postcode?: string | null;
44823
+ raw?: import("../integrations/supabase/types").Json | null;
44824
+ status?: string | null;
43325
44825
  updated_at?: string;
44826
+ vat_number?: string | null;
44827
+ website?: string | null;
43326
44828
  };
43327
- Relationships: [{
43328
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
43329
- columns: ["connection_id"];
43330
- isOneToOne: false;
43331
- referencedRelation: "exact_connections";
43332
- referencedColumns: ["id"];
43333
- }];
44829
+ Relationships: [];
43334
44830
  };
43335
- exact_connections: {
44831
+ exact_auth_divisions: {
43336
44832
  Row: {
43337
- access_token_encrypted: string;
44833
+ account_key: string;
43338
44834
  company_name: string | null;
43339
- connected_at: string;
43340
- connected_by: string | null;
44835
+ created_at: string;
43341
44836
  division_code: number | null;
43342
44837
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43343
- expires_at: string;
43344
44838
  id: string;
43345
- last_error: string | null;
43346
- last_refreshed_at: string | null;
43347
- last_tested_at: string | null;
43348
- refresh_token_encrypted: string;
43349
- status: string;
44839
+ last_synced_at: string | null;
43350
44840
  updated_at: string;
43351
44841
  };
43352
44842
  Insert: {
43353
- access_token_encrypted: string;
44843
+ account_key?: string;
43354
44844
  company_name?: string | null;
43355
- connected_at?: string;
43356
- connected_by?: string | null;
44845
+ created_at?: string;
43357
44846
  division_code?: number | null;
43358
44847
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43359
- expires_at: string;
43360
44848
  id?: string;
43361
- last_error?: string | null;
43362
- last_refreshed_at?: string | null;
43363
- last_tested_at?: string | null;
43364
- refresh_token_encrypted: string;
43365
- status?: string;
44849
+ last_synced_at?: string | null;
43366
44850
  updated_at?: string;
43367
44851
  };
43368
44852
  Update: {
43369
- access_token_encrypted?: string;
44853
+ account_key?: string;
43370
44854
  company_name?: string | null;
43371
- connected_at?: string;
43372
- connected_by?: string | null;
44855
+ created_at?: string;
43373
44856
  division_code?: number | null;
43374
44857
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43375
- expires_at?: string;
43376
44858
  id?: string;
43377
- last_error?: string | null;
43378
- last_refreshed_at?: string | null;
43379
- last_tested_at?: string | null;
43380
- refresh_token_encrypted?: string;
43381
- status?: string;
44859
+ last_synced_at?: string | null;
43382
44860
  updated_at?: string;
43383
44861
  };
43384
44862
  Relationships: [];
43385
44863
  };
43386
- exact_credentials: {
44864
+ exact_auth_invoice_lines: {
43387
44865
  Row: {
43388
- client_id: string;
43389
- client_secret_encrypted: string;
44866
+ account_key: string;
44867
+ amount_excl: number | null;
43390
44868
  created_at: string;
44869
+ description: string | null;
44870
+ discount: number | null;
43391
44871
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44872
+ exact_id: string;
44873
+ exact_timestamp: number | null;
43392
44874
  id: string;
43393
- redirect_uri: string;
44875
+ invoice_exact_id: string;
44876
+ item_code: string | null;
44877
+ item_exact_id: string | null;
44878
+ line_number: number | null;
44879
+ quantity: number | null;
44880
+ raw: import("../integrations/supabase/types").Json | null;
44881
+ unit_price: number | null;
43394
44882
  updated_at: string;
44883
+ vat_amount: number | null;
44884
+ vat_code: string | null;
43395
44885
  };
43396
44886
  Insert: {
43397
- client_id: string;
43398
- client_secret_encrypted: string;
44887
+ account_key?: string;
44888
+ amount_excl?: number | null;
43399
44889
  created_at?: string;
44890
+ description?: string | null;
44891
+ discount?: number | null;
43400
44892
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44893
+ exact_id: string;
44894
+ exact_timestamp?: number | null;
43401
44895
  id?: string;
43402
- redirect_uri?: string;
44896
+ invoice_exact_id: string;
44897
+ item_code?: string | null;
44898
+ item_exact_id?: string | null;
44899
+ line_number?: number | null;
44900
+ quantity?: number | null;
44901
+ raw?: import("../integrations/supabase/types").Json | null;
44902
+ unit_price?: number | null;
43403
44903
  updated_at?: string;
44904
+ vat_amount?: number | null;
44905
+ vat_code?: string | null;
43404
44906
  };
43405
44907
  Update: {
43406
- client_id?: string;
43407
- client_secret_encrypted?: string;
44908
+ account_key?: string;
44909
+ amount_excl?: number | null;
43408
44910
  created_at?: string;
44911
+ description?: string | null;
44912
+ discount?: number | null;
43409
44913
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44914
+ exact_id?: string;
44915
+ exact_timestamp?: number | null;
43410
44916
  id?: string;
43411
- redirect_uri?: string;
44917
+ invoice_exact_id?: string;
44918
+ item_code?: string | null;
44919
+ item_exact_id?: string | null;
44920
+ line_number?: number | null;
44921
+ quantity?: number | null;
44922
+ raw?: import("../integrations/supabase/types").Json | null;
44923
+ unit_price?: number | null;
43412
44924
  updated_at?: string;
44925
+ vat_amount?: number | null;
44926
+ vat_code?: string | null;
43413
44927
  };
43414
44928
  Relationships: [];
43415
44929
  };
43416
- exact_customer_sync_queue: {
44930
+ exact_auth_invoices: {
43417
44931
  Row: {
43418
- attempts: number;
43419
- connection_id: string;
44932
+ account_key: string;
44933
+ amount_excl: number | null;
44934
+ amount_incl: number | null;
44935
+ amount_open: number | null;
43420
44936
  created_at: string;
44937
+ currency: string | null;
44938
+ customer_code: string | null;
43421
44939
  customer_exact_id: string | null;
43422
- error_message: string | null;
44940
+ customer_name: string | null;
44941
+ description: string | null;
44942
+ division_code: number | null;
44943
+ due_date: string | null;
44944
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44945
+ exact_id: string;
44946
+ exact_modified: string | null;
44947
+ exact_timestamp: number | null;
43423
44948
  id: string;
43424
- max_attempts: number;
43425
- operation: string;
43426
- payload: import("../integrations/supabase/types").Json;
43427
- process_at: string;
43428
- processed_at: string | null;
43429
- status: string;
44949
+ invoice_date: string | null;
44950
+ invoice_number: string | null;
44951
+ order_number: string | null;
44952
+ paid_at: string | null;
44953
+ payment_status: string;
44954
+ raw: import("../integrations/supabase/types").Json | null;
44955
+ receivable_synced_at: string | null;
44956
+ status_code: number | null;
43430
44957
  updated_at: string;
43431
44958
  };
43432
44959
  Insert: {
43433
- attempts?: number;
43434
- connection_id: string;
44960
+ account_key?: string;
44961
+ amount_excl?: number | null;
44962
+ amount_incl?: number | null;
44963
+ amount_open?: number | null;
43435
44964
  created_at?: string;
44965
+ currency?: string | null;
44966
+ customer_code?: string | null;
43436
44967
  customer_exact_id?: string | null;
43437
- error_message?: string | null;
44968
+ customer_name?: string | null;
44969
+ description?: string | null;
44970
+ division_code?: number | null;
44971
+ due_date?: string | null;
44972
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44973
+ exact_id: string;
44974
+ exact_modified?: string | null;
44975
+ exact_timestamp?: number | null;
43438
44976
  id?: string;
43439
- max_attempts?: number;
43440
- operation: string;
43441
- payload?: import("../integrations/supabase/types").Json;
43442
- process_at?: string;
43443
- processed_at?: string | null;
43444
- status?: string;
44977
+ invoice_date?: string | null;
44978
+ invoice_number?: string | null;
44979
+ order_number?: string | null;
44980
+ paid_at?: string | null;
44981
+ payment_status?: string;
44982
+ raw?: import("../integrations/supabase/types").Json | null;
44983
+ receivable_synced_at?: string | null;
44984
+ status_code?: number | null;
43445
44985
  updated_at?: string;
43446
44986
  };
43447
44987
  Update: {
43448
- attempts?: number;
43449
- connection_id?: string;
44988
+ account_key?: string;
44989
+ amount_excl?: number | null;
44990
+ amount_incl?: number | null;
44991
+ amount_open?: number | null;
43450
44992
  created_at?: string;
44993
+ currency?: string | null;
44994
+ customer_code?: string | null;
43451
44995
  customer_exact_id?: string | null;
43452
- error_message?: string | null;
44996
+ customer_name?: string | null;
44997
+ description?: string | null;
44998
+ division_code?: number | null;
44999
+ due_date?: string | null;
45000
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45001
+ exact_id?: string;
45002
+ exact_modified?: string | null;
45003
+ exact_timestamp?: number | null;
43453
45004
  id?: string;
43454
- max_attempts?: number;
43455
- operation?: string;
43456
- payload?: import("../integrations/supabase/types").Json;
43457
- process_at?: string;
43458
- processed_at?: string | null;
43459
- status?: string;
45005
+ invoice_date?: string | null;
45006
+ invoice_number?: string | null;
45007
+ order_number?: string | null;
45008
+ paid_at?: string | null;
45009
+ payment_status?: string;
45010
+ raw?: import("../integrations/supabase/types").Json | null;
45011
+ receivable_synced_at?: string | null;
45012
+ status_code?: number | null;
43460
45013
  updated_at?: string;
43461
45014
  };
43462
- Relationships: [{
43463
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
43464
- columns: ["connection_id"];
43465
- isOneToOne: false;
43466
- referencedRelation: "exact_connections";
43467
- referencedColumns: ["id"];
43468
- }];
45015
+ Relationships: [];
43469
45016
  };
43470
- exact_customers_cache: {
45017
+ exact_auth_items: {
43471
45018
  Row: {
43472
- account_name: string | null;
43473
- account_number: string | null;
43474
- address_line1: string | null;
43475
- address_line2: string | null;
43476
- balance: number | null;
43477
- chamber_of_commerce: string | null;
43478
- city: string | null;
43479
- classification_description: string | null;
43480
- connection_id: string;
43481
- contact_name: string | null;
43482
- country: string | null;
43483
- created_at_exact: string | null;
43484
- credit_line: number | null;
43485
- currency: string | null;
43486
- data_raw: import("../integrations/supabase/types").Json | null;
43487
- email: string | null;
43488
- exact_id: string;
45019
+ account_key: string;
45020
+ barcode: string | null;
45021
+ code: string | null;
45022
+ cost_price: number | null;
45023
+ created_at: string;
45024
+ description: string | null;
45025
+ division_code: number | null;
45026
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45027
+ exact_id: string;
45028
+ exact_modified: string | null;
45029
+ exact_timestamp: number | null;
45030
+ gl_account_code: string | null;
45031
+ id: string;
45032
+ is_active: boolean;
45033
+ is_sales_item: boolean | null;
45034
+ item_type: string | null;
45035
+ raw: import("../integrations/supabase/types").Json | null;
45036
+ sales_price: number | null;
45037
+ unit: string | null;
45038
+ updated_at: string;
45039
+ vat_code: string | null;
45040
+ };
45041
+ Insert: {
45042
+ account_key?: string;
45043
+ barcode?: string | null;
45044
+ code?: string | null;
45045
+ cost_price?: number | null;
45046
+ created_at?: string;
45047
+ description?: string | null;
45048
+ division_code?: number | null;
45049
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45050
+ exact_id: string;
45051
+ exact_modified?: string | null;
45052
+ exact_timestamp?: number | null;
45053
+ gl_account_code?: string | null;
45054
+ id?: string;
45055
+ is_active?: boolean;
45056
+ is_sales_item?: boolean | null;
45057
+ item_type?: string | null;
45058
+ raw?: import("../integrations/supabase/types").Json | null;
45059
+ sales_price?: number | null;
45060
+ unit?: string | null;
45061
+ updated_at?: string;
45062
+ vat_code?: string | null;
45063
+ };
45064
+ Update: {
45065
+ account_key?: string;
45066
+ barcode?: string | null;
45067
+ code?: string | null;
45068
+ cost_price?: number | null;
45069
+ created_at?: string;
45070
+ description?: string | null;
45071
+ division_code?: number | null;
45072
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45073
+ exact_id?: string;
45074
+ exact_modified?: string | null;
45075
+ exact_timestamp?: number | null;
45076
+ gl_account_code?: string | null;
45077
+ id?: string;
45078
+ is_active?: boolean;
45079
+ is_sales_item?: boolean | null;
45080
+ item_type?: string | null;
45081
+ raw?: import("../integrations/supabase/types").Json | null;
45082
+ sales_price?: number | null;
45083
+ unit?: string | null;
45084
+ updated_at?: string;
45085
+ vat_code?: string | null;
45086
+ };
45087
+ Relationships: [];
45088
+ };
45089
+ exact_auth_sync_log: {
45090
+ Row: {
45091
+ account_key: string;
45092
+ calls_used: number;
45093
+ created_at: string;
45094
+ domain: string;
45095
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45096
+ error: string | null;
45097
+ finished_at: string | null;
45098
+ id: string;
45099
+ ok: boolean;
45100
+ records: number;
45101
+ started_at: string;
45102
+ };
45103
+ Insert: {
45104
+ account_key?: string;
45105
+ calls_used?: number;
45106
+ created_at?: string;
45107
+ domain: string;
45108
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45109
+ error?: string | null;
45110
+ finished_at?: string | null;
45111
+ id?: string;
45112
+ ok?: boolean;
45113
+ records?: number;
45114
+ started_at?: string;
45115
+ };
45116
+ Update: {
45117
+ account_key?: string;
45118
+ calls_used?: number;
45119
+ created_at?: string;
45120
+ domain?: string;
45121
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45122
+ error?: string | null;
45123
+ finished_at?: string | null;
45124
+ id?: string;
45125
+ ok?: boolean;
45126
+ records?: number;
45127
+ started_at?: string;
45128
+ };
45129
+ Relationships: [];
45130
+ };
45131
+ exact_auth_sync_state: {
45132
+ Row: {
45133
+ account_key: string;
45134
+ created_at: string;
45135
+ cursor_timestamp: number;
45136
+ division_code: number | null;
45137
+ domain: string;
45138
+ duration_ms: number | null;
45139
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45140
+ initial_sync_done: boolean;
45141
+ last_error: string | null;
45142
+ last_run_at: string | null;
45143
+ last_success_at: string | null;
45144
+ locked_at: string | null;
45145
+ needs_initial_sync: boolean;
45146
+ record_count: number;
45147
+ updated_at: string;
45148
+ };
45149
+ Insert: {
45150
+ account_key?: string;
45151
+ created_at?: string;
45152
+ cursor_timestamp?: number;
45153
+ division_code?: number | null;
45154
+ domain: string;
45155
+ duration_ms?: number | null;
45156
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45157
+ initial_sync_done?: boolean;
45158
+ last_error?: string | null;
45159
+ last_run_at?: string | null;
45160
+ last_success_at?: string | null;
45161
+ locked_at?: string | null;
45162
+ needs_initial_sync?: boolean;
45163
+ record_count?: number;
45164
+ updated_at?: string;
45165
+ };
45166
+ Update: {
45167
+ account_key?: string;
45168
+ created_at?: string;
45169
+ cursor_timestamp?: number;
45170
+ division_code?: number | null;
45171
+ domain?: string;
45172
+ duration_ms?: number | null;
45173
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45174
+ initial_sync_done?: boolean;
45175
+ last_error?: string | null;
45176
+ last_run_at?: string | null;
45177
+ last_success_at?: string | null;
45178
+ locked_at?: string | null;
45179
+ needs_initial_sync?: boolean;
45180
+ record_count?: number;
45181
+ updated_at?: string;
45182
+ };
45183
+ Relationships: [];
45184
+ };
45185
+ exact_bulk_operation_items: {
45186
+ Row: {
45187
+ attempts: number;
45188
+ bulk_operation_id: string;
45189
+ created_at: string;
45190
+ error_message: string | null;
45191
+ id: string;
45192
+ invoice_cache_id: string | null;
45193
+ invoice_exact_id: string | null;
45194
+ processed_at: string | null;
45195
+ result_data: import("../integrations/supabase/types").Json | null;
45196
+ status: string;
45197
+ };
45198
+ Insert: {
45199
+ attempts?: number;
45200
+ bulk_operation_id: string;
45201
+ created_at?: string;
45202
+ error_message?: string | null;
45203
+ id?: string;
45204
+ invoice_cache_id?: string | null;
45205
+ invoice_exact_id?: string | null;
45206
+ processed_at?: string | null;
45207
+ result_data?: import("../integrations/supabase/types").Json | null;
45208
+ status?: string;
45209
+ };
45210
+ Update: {
45211
+ attempts?: number;
45212
+ bulk_operation_id?: string;
45213
+ created_at?: string;
45214
+ error_message?: string | null;
45215
+ id?: string;
45216
+ invoice_cache_id?: string | null;
45217
+ invoice_exact_id?: string | null;
45218
+ processed_at?: string | null;
45219
+ result_data?: import("../integrations/supabase/types").Json | null;
45220
+ status?: string;
45221
+ };
45222
+ Relationships: [{
45223
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
45224
+ columns: ["bulk_operation_id"];
45225
+ isOneToOne: false;
45226
+ referencedRelation: "exact_bulk_operations";
45227
+ referencedColumns: ["id"];
45228
+ }, {
45229
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
45230
+ columns: ["invoice_cache_id"];
45231
+ isOneToOne: false;
45232
+ referencedRelation: "exact_invoices_cache";
45233
+ referencedColumns: ["id"];
45234
+ }];
45235
+ };
45236
+ exact_bulk_operations: {
45237
+ Row: {
45238
+ completed_at: string | null;
45239
+ connection_id: string;
45240
+ created_at: string;
45241
+ created_by: string | null;
45242
+ error_message: string | null;
45243
+ failed_count: number | null;
45244
+ id: string;
45245
+ operation_type: string;
45246
+ processed_count: number | null;
45247
+ result_data: import("../integrations/supabase/types").Json | null;
45248
+ started_at: string | null;
45249
+ status: string;
45250
+ total_count: number | null;
45251
+ updated_at: string;
45252
+ };
45253
+ Insert: {
45254
+ completed_at?: string | null;
45255
+ connection_id: string;
45256
+ created_at?: string;
45257
+ created_by?: string | null;
45258
+ error_message?: string | null;
45259
+ failed_count?: number | null;
45260
+ id?: string;
45261
+ operation_type: string;
45262
+ processed_count?: number | null;
45263
+ result_data?: import("../integrations/supabase/types").Json | null;
45264
+ started_at?: string | null;
45265
+ status?: string;
45266
+ total_count?: number | null;
45267
+ updated_at?: string;
45268
+ };
45269
+ Update: {
45270
+ completed_at?: string | null;
45271
+ connection_id?: string;
45272
+ created_at?: string;
45273
+ created_by?: string | null;
45274
+ error_message?: string | null;
45275
+ failed_count?: number | null;
45276
+ id?: string;
45277
+ operation_type?: string;
45278
+ processed_count?: number | null;
45279
+ result_data?: import("../integrations/supabase/types").Json | null;
45280
+ started_at?: string | null;
45281
+ status?: string;
45282
+ total_count?: number | null;
45283
+ updated_at?: string;
45284
+ };
45285
+ Relationships: [{
45286
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
45287
+ columns: ["connection_id"];
45288
+ isOneToOne: false;
45289
+ referencedRelation: "exact_connections";
45290
+ referencedColumns: ["id"];
45291
+ }];
45292
+ };
45293
+ exact_connections: {
45294
+ Row: {
45295
+ access_token_encrypted: string;
45296
+ company_name: string | null;
45297
+ connected_at: string;
45298
+ connected_by: string | null;
45299
+ division_code: number | null;
45300
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45301
+ expires_at: string;
45302
+ id: string;
45303
+ last_error: string | null;
45304
+ last_refreshed_at: string | null;
45305
+ last_tested_at: string | null;
45306
+ refresh_token_encrypted: string;
45307
+ status: string;
45308
+ updated_at: string;
45309
+ };
45310
+ Insert: {
45311
+ access_token_encrypted: string;
45312
+ company_name?: string | null;
45313
+ connected_at?: string;
45314
+ connected_by?: string | null;
45315
+ division_code?: number | null;
45316
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45317
+ expires_at: string;
45318
+ id?: string;
45319
+ last_error?: string | null;
45320
+ last_refreshed_at?: string | null;
45321
+ last_tested_at?: string | null;
45322
+ refresh_token_encrypted: string;
45323
+ status?: string;
45324
+ updated_at?: string;
45325
+ };
45326
+ Update: {
45327
+ access_token_encrypted?: string;
45328
+ company_name?: string | null;
45329
+ connected_at?: string;
45330
+ connected_by?: string | null;
45331
+ division_code?: number | null;
45332
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45333
+ expires_at?: string;
45334
+ id?: string;
45335
+ last_error?: string | null;
45336
+ last_refreshed_at?: string | null;
45337
+ last_tested_at?: string | null;
45338
+ refresh_token_encrypted?: string;
45339
+ status?: string;
45340
+ updated_at?: string;
45341
+ };
45342
+ Relationships: [];
45343
+ };
45344
+ exact_credentials: {
45345
+ Row: {
45346
+ client_id: string;
45347
+ client_secret_encrypted: string;
45348
+ created_at: string;
45349
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45350
+ id: string;
45351
+ redirect_uri: string;
45352
+ updated_at: string;
45353
+ };
45354
+ Insert: {
45355
+ client_id: string;
45356
+ client_secret_encrypted: string;
45357
+ created_at?: string;
45358
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45359
+ id?: string;
45360
+ redirect_uri?: string;
45361
+ updated_at?: string;
45362
+ };
45363
+ Update: {
45364
+ client_id?: string;
45365
+ client_secret_encrypted?: string;
45366
+ created_at?: string;
45367
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45368
+ id?: string;
45369
+ redirect_uri?: string;
45370
+ updated_at?: string;
45371
+ };
45372
+ Relationships: [];
45373
+ };
45374
+ exact_customer_sync_queue: {
45375
+ Row: {
45376
+ attempts: number;
45377
+ connection_id: string;
45378
+ created_at: string;
45379
+ customer_exact_id: string | null;
45380
+ error_message: string | null;
45381
+ id: string;
45382
+ max_attempts: number;
45383
+ operation: string;
45384
+ payload: import("../integrations/supabase/types").Json;
45385
+ process_at: string;
45386
+ processed_at: string | null;
45387
+ status: string;
45388
+ updated_at: string;
45389
+ };
45390
+ Insert: {
45391
+ attempts?: number;
45392
+ connection_id: string;
45393
+ created_at?: string;
45394
+ customer_exact_id?: string | null;
45395
+ error_message?: string | null;
45396
+ id?: string;
45397
+ max_attempts?: number;
45398
+ operation: string;
45399
+ payload?: import("../integrations/supabase/types").Json;
45400
+ process_at?: string;
45401
+ processed_at?: string | null;
45402
+ status?: string;
45403
+ updated_at?: string;
45404
+ };
45405
+ Update: {
45406
+ attempts?: number;
45407
+ connection_id?: string;
45408
+ created_at?: string;
45409
+ customer_exact_id?: string | null;
45410
+ error_message?: string | null;
45411
+ id?: string;
45412
+ max_attempts?: number;
45413
+ operation?: string;
45414
+ payload?: import("../integrations/supabase/types").Json;
45415
+ process_at?: string;
45416
+ processed_at?: string | null;
45417
+ status?: string;
45418
+ updated_at?: string;
45419
+ };
45420
+ Relationships: [{
45421
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
45422
+ columns: ["connection_id"];
45423
+ isOneToOne: false;
45424
+ referencedRelation: "exact_connections";
45425
+ referencedColumns: ["id"];
45426
+ }];
45427
+ };
45428
+ exact_customers_cache: {
45429
+ Row: {
45430
+ account_name: string | null;
45431
+ account_number: string | null;
45432
+ address_line1: string | null;
45433
+ address_line2: string | null;
45434
+ balance: number | null;
45435
+ chamber_of_commerce: string | null;
45436
+ city: string | null;
45437
+ classification_description: string | null;
45438
+ connection_id: string;
45439
+ contact_name: string | null;
45440
+ country: string | null;
45441
+ created_at_exact: string | null;
45442
+ credit_line: number | null;
45443
+ currency: string | null;
45444
+ data_raw: import("../integrations/supabase/types").Json | null;
45445
+ email: string | null;
45446
+ exact_id: string;
43489
45447
  expires_at: string | null;
43490
45448
  fetched_at: string;
43491
45449
  id: string;
@@ -44915,12 +46873,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
44915
46873
  attempts: number;
44916
46874
  connection_id: string;
44917
46875
  created_at: string;
46876
+ desired_available: boolean | null;
44918
46877
  gateway_attempt_id: string | null;
44919
46878
  id: string;
44920
46879
  last_error: string | null;
46880
+ locked_at: string | null;
46881
+ locked_by: string | null;
46882
+ next_attempt_at: string;
44921
46883
  number_of_pieces: number;
44922
46884
  sent_at: string | null;
44923
46885
  status: string;
46886
+ superseded_by: string | null;
44924
46887
  trade_item_id: string;
44925
46888
  updated_at: string;
44926
46889
  user_id: string;
@@ -44929,12 +46892,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
44929
46892
  attempts?: number;
44930
46893
  connection_id: string;
44931
46894
  created_at?: string;
46895
+ desired_available?: boolean | null;
44932
46896
  gateway_attempt_id?: string | null;
44933
46897
  id?: string;
44934
46898
  last_error?: string | null;
46899
+ locked_at?: string | null;
46900
+ locked_by?: string | null;
46901
+ next_attempt_at?: string;
44935
46902
  number_of_pieces?: number;
44936
46903
  sent_at?: string | null;
44937
46904
  status?: string;
46905
+ superseded_by?: string | null;
44938
46906
  trade_item_id: string;
44939
46907
  updated_at?: string;
44940
46908
  user_id: string;
@@ -44943,12 +46911,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
44943
46911
  attempts?: number;
44944
46912
  connection_id?: string;
44945
46913
  created_at?: string;
46914
+ desired_available?: boolean | null;
44946
46915
  gateway_attempt_id?: string | null;
44947
46916
  id?: string;
44948
46917
  last_error?: string | null;
46918
+ locked_at?: string | null;
46919
+ locked_by?: string | null;
46920
+ next_attempt_at?: string;
44949
46921
  number_of_pieces?: number;
44950
46922
  sent_at?: string | null;
44951
46923
  status?: string;
46924
+ superseded_by?: string | null;
44952
46925
  trade_item_id?: string;
44953
46926
  updated_at?: string;
44954
46927
  user_id?: string;
@@ -47697,6 +49670,69 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
47697
49670
  };
47698
49671
  Relationships: [];
47699
49672
  };
49673
+ logistics_floriday_pushes: {
49674
+ Row: {
49675
+ attempts: number;
49676
+ created_at: string;
49677
+ first_queued_at: string;
49678
+ fulfillment_order_id: string | null;
49679
+ id: string;
49680
+ last_error: string | null;
49681
+ last_error_at: string | null;
49682
+ last_sent_hash: string | null;
49683
+ locked_by: string | null;
49684
+ locked_until: string | null;
49685
+ next_attempt_at: string;
49686
+ order_ref: string;
49687
+ payload: import("../integrations/supabase/types").Json;
49688
+ payload_hash: string | null;
49689
+ revision: number;
49690
+ sent_at: string | null;
49691
+ status: string;
49692
+ updated_at: string;
49693
+ };
49694
+ Insert: {
49695
+ attempts?: number;
49696
+ created_at?: string;
49697
+ first_queued_at?: string;
49698
+ fulfillment_order_id?: string | null;
49699
+ id?: string;
49700
+ last_error?: string | null;
49701
+ last_error_at?: string | null;
49702
+ last_sent_hash?: string | null;
49703
+ locked_by?: string | null;
49704
+ locked_until?: string | null;
49705
+ next_attempt_at?: string;
49706
+ order_ref: string;
49707
+ payload?: import("../integrations/supabase/types").Json;
49708
+ payload_hash?: string | null;
49709
+ revision?: number;
49710
+ sent_at?: string | null;
49711
+ status?: string;
49712
+ updated_at?: string;
49713
+ };
49714
+ Update: {
49715
+ attempts?: number;
49716
+ created_at?: string;
49717
+ first_queued_at?: string;
49718
+ fulfillment_order_id?: string | null;
49719
+ id?: string;
49720
+ last_error?: string | null;
49721
+ last_error_at?: string | null;
49722
+ last_sent_hash?: string | null;
49723
+ locked_by?: string | null;
49724
+ locked_until?: string | null;
49725
+ next_attempt_at?: string;
49726
+ order_ref?: string;
49727
+ payload?: import("../integrations/supabase/types").Json;
49728
+ payload_hash?: string | null;
49729
+ revision?: number;
49730
+ sent_at?: string | null;
49731
+ status?: string;
49732
+ updated_at?: string;
49733
+ };
49734
+ Relationships: [];
49735
+ };
47700
49736
  logistics_formulas: {
47701
49737
  Row: {
47702
49738
  created_at: string;
@@ -48308,6 +50344,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48308
50344
  };
48309
50345
  logistics_tasks: {
48310
50346
  Row: {
50347
+ attempt_log: import("../integrations/supabase/types").Json;
50348
+ attempts: number;
48311
50349
  buffer_ref: string | null;
48312
50350
  claimed_at: string | null;
48313
50351
  claimed_by: string | null;
@@ -48317,6 +50355,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48317
50355
  due_at: string | null;
48318
50356
  error: string | null;
48319
50357
  id: string;
50358
+ last_error: string | null;
50359
+ next_attempt_at: string | null;
48320
50360
  order_ref: string;
48321
50361
  owner_module: string;
48322
50362
  payload: import("../integrations/supabase/types").Json;
@@ -48337,6 +50377,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48337
50377
  user_id: string;
48338
50378
  };
48339
50379
  Insert: {
50380
+ attempt_log?: import("../integrations/supabase/types").Json;
50381
+ attempts?: number;
48340
50382
  buffer_ref?: string | null;
48341
50383
  claimed_at?: string | null;
48342
50384
  claimed_by?: string | null;
@@ -48346,6 +50388,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48346
50388
  due_at?: string | null;
48347
50389
  error?: string | null;
48348
50390
  id?: string;
50391
+ last_error?: string | null;
50392
+ next_attempt_at?: string | null;
48349
50393
  order_ref: string;
48350
50394
  owner_module: string;
48351
50395
  payload?: import("../integrations/supabase/types").Json;
@@ -48366,6 +50410,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48366
50410
  user_id?: string;
48367
50411
  };
48368
50412
  Update: {
50413
+ attempt_log?: import("../integrations/supabase/types").Json;
50414
+ attempts?: number;
48369
50415
  buffer_ref?: string | null;
48370
50416
  claimed_at?: string | null;
48371
50417
  claimed_by?: string | null;
@@ -48375,6 +50421,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
48375
50421
  due_at?: string | null;
48376
50422
  error?: string | null;
48377
50423
  id?: string;
50424
+ last_error?: string | null;
50425
+ next_attempt_at?: string | null;
48378
50426
  order_ref?: string;
48379
50427
  owner_module?: string;
48380
50428
  payload?: import("../integrations/supabase/types").Json;
@@ -49724,6 +51772,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49724
51772
  };
49725
51773
  offer_settings: {
49726
51774
  Row: {
51775
+ brand_name: string | null;
49727
51776
  button_color: string;
49728
51777
  created_at: string;
49729
51778
  default_countries: string[];
@@ -49745,6 +51794,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49745
51794
  updated_at: string;
49746
51795
  };
49747
51796
  Insert: {
51797
+ brand_name?: string | null;
49748
51798
  button_color?: string;
49749
51799
  created_at?: string;
49750
51800
  default_countries?: string[];
@@ -49766,6 +51816,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49766
51816
  updated_at?: string;
49767
51817
  };
49768
51818
  Update: {
51819
+ brand_name?: string | null;
49769
51820
  button_color?: string;
49770
51821
  created_at?: string;
49771
51822
  default_countries?: string[];
@@ -57376,6 +59427,85 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
57376
59427
  };
57377
59428
  Returns: import("../integrations/supabase/types").Json;
57378
59429
  };
59430
+ claim_floriday_stock_queue: {
59431
+ Args: {
59432
+ p_limit?: number;
59433
+ p_worker?: string;
59434
+ };
59435
+ Returns: {
59436
+ attempts: number;
59437
+ connection_id: string;
59438
+ created_at: string;
59439
+ desired_available: boolean | null;
59440
+ gateway_attempt_id: string | null;
59441
+ id: string;
59442
+ last_error: string | null;
59443
+ locked_at: string | null;
59444
+ locked_by: string | null;
59445
+ next_attempt_at: string;
59446
+ number_of_pieces: number;
59447
+ sent_at: string | null;
59448
+ status: string;
59449
+ superseded_by: string | null;
59450
+ trade_item_id: string;
59451
+ updated_at: string;
59452
+ user_id: string;
59453
+ }[];
59454
+ SetofOptions: {
59455
+ from: "*";
59456
+ to: "floriday_continuous_stock_queue";
59457
+ isOneToOne: false;
59458
+ isSetofReturn: true;
59459
+ };
59460
+ };
59461
+ claim_logistics_tasks: {
59462
+ Args: {
59463
+ _limit?: number;
59464
+ _owner_module: string;
59465
+ _stale_minutes?: number;
59466
+ _task_type: string;
59467
+ _worker: string;
59468
+ };
59469
+ Returns: {
59470
+ attempt_log: import("../integrations/supabase/types").Json;
59471
+ attempts: number;
59472
+ buffer_ref: string | null;
59473
+ claimed_at: string | null;
59474
+ claimed_by: string | null;
59475
+ completed_at: string | null;
59476
+ created_at: string;
59477
+ depends_on: string[];
59478
+ due_at: string | null;
59479
+ error: string | null;
59480
+ id: string;
59481
+ last_error: string | null;
59482
+ next_attempt_at: string | null;
59483
+ order_ref: string;
59484
+ owner_module: string;
59485
+ payload: import("../integrations/supabase/types").Json;
59486
+ plan_run_id: string | null;
59487
+ planned_end: string | null;
59488
+ planned_start: string | null;
59489
+ priority: number;
59490
+ result: import("../integrations/supabase/types").Json | null;
59491
+ rule_config_id: string | null;
59492
+ rule_version: number | null;
59493
+ sequence: number;
59494
+ shadow: boolean;
59495
+ started_at: string | null;
59496
+ status: string;
59497
+ strategy_id: string | null;
59498
+ task_type: string;
59499
+ updated_at: string;
59500
+ user_id: string;
59501
+ }[];
59502
+ SetofOptions: {
59503
+ from: "*";
59504
+ to: "logistics_tasks";
59505
+ isOneToOne: false;
59506
+ isSetofReturn: true;
59507
+ };
59508
+ };
57379
59509
  claim_print_jobs: {
57380
59510
  Args: {
57381
59511
  _agent_id: string;
@@ -57440,10 +59570,24 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
57440
59570
  isSetofReturn: true;
57441
59571
  };
57442
59572
  };
59573
+ cleanup_floriday_stock_queue: {
59574
+ Args: never;
59575
+ Returns: undefined;
59576
+ };
57443
59577
  cleanup_old_bookings: {
57444
59578
  Args: never;
57445
59579
  Returns: undefined;
57446
59580
  };
59581
+ complete_floriday_stock_queue: {
59582
+ Args: {
59583
+ p_attempt_id?: string;
59584
+ p_error?: string;
59585
+ p_id: string;
59586
+ p_ok: boolean;
59587
+ p_permanent?: boolean;
59588
+ };
59589
+ Returns: undefined;
59590
+ };
57447
59591
  consume_bom_for_production: {
57448
59592
  Args: {
57449
59593
  p_connection_id: string;
@@ -57616,6 +59760,21 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
57616
59760
  Args: never;
57617
59761
  Returns: string;
57618
59762
  };
59763
+ exact_auth_consume_calls: {
59764
+ Args: {
59765
+ _account_key: string;
59766
+ _calls?: number;
59767
+ _day_limit?: number;
59768
+ _division_code: number;
59769
+ _environment: string;
59770
+ _minute_limit?: number;
59771
+ };
59772
+ Returns: import("../integrations/supabase/types").Json;
59773
+ };
59774
+ exact_auth_prune_sync_log: {
59775
+ Args: never;
59776
+ Returns: undefined;
59777
+ };
57619
59778
  exact_decrypt: {
57620
59779
  Args: {
57621
59780
  cipher: string;
@@ -57825,6 +59984,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
57825
59984
  };
57826
59985
  Returns: number;
57827
59986
  };
59987
+ get_offer_branding: {
59988
+ Args: never;
59989
+ Returns: import("../integrations/supabase/types").Json;
59990
+ };
57828
59991
  get_offer_by_link_code: {
57829
59992
  Args: {
57830
59993
  p_code: string;
@@ -58116,6 +60279,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58116
60279
  p_worker?: string;
58117
60280
  };
58118
60281
  Returns: {
60282
+ attempt_log: import("../integrations/supabase/types").Json;
60283
+ attempts: number;
58119
60284
  buffer_ref: string | null;
58120
60285
  claimed_at: string | null;
58121
60286
  claimed_by: string | null;
@@ -58125,6 +60290,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58125
60290
  due_at: string | null;
58126
60291
  error: string | null;
58127
60292
  id: string;
60293
+ last_error: string | null;
60294
+ next_attempt_at: string | null;
58128
60295
  order_ref: string;
58129
60296
  owner_module: string;
58130
60297
  payload: import("../integrations/supabase/types").Json;
@@ -58157,6 +60324,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58157
60324
  p_worker?: string;
58158
60325
  };
58159
60326
  Returns: {
60327
+ attempt_log: import("../integrations/supabase/types").Json;
60328
+ attempts: number;
58160
60329
  buffer_ref: string | null;
58161
60330
  claimed_at: string | null;
58162
60331
  claimed_by: string | null;
@@ -58166,6 +60335,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58166
60335
  due_at: string | null;
58167
60336
  error: string | null;
58168
60337
  id: string;
60338
+ last_error: string | null;
60339
+ next_attempt_at: string | null;
58169
60340
  order_ref: string;
58170
60341
  owner_module: string;
58171
60342
  payload: import("../integrations/supabase/types").Json;
@@ -58198,6 +60369,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58198
60369
  p_task_id: string;
58199
60370
  };
58200
60371
  Returns: {
60372
+ attempt_log: import("../integrations/supabase/types").Json;
60373
+ attempts: number;
58201
60374
  buffer_ref: string | null;
58202
60375
  claimed_at: string | null;
58203
60376
  claimed_by: string | null;
@@ -58207,6 +60380,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58207
60380
  due_at: string | null;
58208
60381
  error: string | null;
58209
60382
  id: string;
60383
+ last_error: string | null;
60384
+ next_attempt_at: string | null;
58210
60385
  order_ref: string;
58211
60386
  owner_module: string;
58212
60387
  payload: import("../integrations/supabase/types").Json;
@@ -58288,6 +60463,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58288
60463
  p_task_id: string;
58289
60464
  };
58290
60465
  Returns: {
60466
+ attempt_log: import("../integrations/supabase/types").Json;
60467
+ attempts: number;
58291
60468
  buffer_ref: string | null;
58292
60469
  claimed_at: string | null;
58293
60470
  claimed_by: string | null;
@@ -58297,6 +60474,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58297
60474
  due_at: string | null;
58298
60475
  error: string | null;
58299
60476
  id: string;
60477
+ last_error: string | null;
60478
+ next_attempt_at: string | null;
58300
60479
  order_ref: string;
58301
60480
  owner_module: string;
58302
60481
  payload: import("../integrations/supabase/types").Json;
@@ -58323,6 +60502,51 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58323
60502
  isSetofReturn: false;
58324
60503
  };
58325
60504
  };
60505
+ logistics_floriday_claim_pushes: {
60506
+ Args: {
60507
+ _lease_seconds?: number;
60508
+ _limit?: number;
60509
+ _worker?: string;
60510
+ };
60511
+ Returns: {
60512
+ attempts: number;
60513
+ fulfillment_order_id: string;
60514
+ id: string;
60515
+ last_sent_hash: string;
60516
+ order_ref: string;
60517
+ payload: import("../integrations/supabase/types").Json;
60518
+ payload_hash: string;
60519
+ revision: number;
60520
+ }[];
60521
+ };
60522
+ logistics_floriday_finish_push: {
60523
+ Args: {
60524
+ _error?: string;
60525
+ _fulfillment_order_id?: string;
60526
+ _id: string;
60527
+ _max_age_hours?: number;
60528
+ _max_attempts?: number;
60529
+ _ok: boolean;
60530
+ _permanent?: boolean;
60531
+ _revision: number;
60532
+ _sent_hash?: string;
60533
+ };
60534
+ Returns: string;
60535
+ };
60536
+ logistics_floriday_prune_pushes: {
60537
+ Args: {
60538
+ _days?: number;
60539
+ };
60540
+ Returns: number;
60541
+ };
60542
+ logistics_floriday_queue_push: {
60543
+ Args: {
60544
+ _order_ref: string;
60545
+ _payload?: import("../integrations/supabase/types").Json;
60546
+ _payload_hash?: string;
60547
+ };
60548
+ Returns: string;
60549
+ };
58326
60550
  logistics_live_carriers: {
58327
60551
  Args: {
58328
60552
  p_order_ref: string;
@@ -59050,6 +61274,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59050
61274
  Args: never;
59051
61275
  Returns: undefined;
59052
61276
  };
61277
+ run_logistics_tasks_dispatch: {
61278
+ Args: never;
61279
+ Returns: undefined;
61280
+ };
59053
61281
  run_twinfield_queue_tick: {
59054
61282
  Args: never;
59055
61283
  Returns: undefined;
@@ -59290,6 +61518,13 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59290
61518
  };
59291
61519
  Returns: number;
59292
61520
  };
61521
+ schedule_floriday_stock_queue_process: {
61522
+ Args: {
61523
+ p_apikey: string;
61524
+ p_url: string;
61525
+ };
61526
+ Returns: number;
61527
+ };
59293
61528
  schedule_floriday_token_refresh: {
59294
61529
  Args: {
59295
61530
  p_apikey: string;
@@ -63043,6 +65278,474 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
63043
65278
  referencedColumns: ["id"];
63044
65279
  }];
63045
65280
  };
65281
+ exact_auth_call_budget: {
65282
+ Row: {
65283
+ account_key: string;
65284
+ day_count: number;
65285
+ day_date: string;
65286
+ division_code: number;
65287
+ environment: string;
65288
+ minute_count: number;
65289
+ minute_window: string;
65290
+ updated_at: string;
65291
+ };
65292
+ Insert: {
65293
+ account_key?: string;
65294
+ day_count?: number;
65295
+ day_date?: string;
65296
+ division_code?: number;
65297
+ environment: string;
65298
+ minute_count?: number;
65299
+ minute_window?: string;
65300
+ updated_at?: string;
65301
+ };
65302
+ Update: {
65303
+ account_key?: string;
65304
+ day_count?: number;
65305
+ day_date?: string;
65306
+ division_code?: number;
65307
+ environment?: string;
65308
+ minute_count?: number;
65309
+ minute_window?: string;
65310
+ updated_at?: string;
65311
+ };
65312
+ Relationships: [];
65313
+ };
65314
+ exact_auth_customers: {
65315
+ Row: {
65316
+ account_key: string;
65317
+ address_line1: string | null;
65318
+ chamber_of_commerce: string | null;
65319
+ city: string | null;
65320
+ code: string | null;
65321
+ country: string | null;
65322
+ created_at: string;
65323
+ currency: string | null;
65324
+ division_code: number | null;
65325
+ email: string | null;
65326
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65327
+ exact_id: string;
65328
+ exact_modified: string | null;
65329
+ exact_timestamp: number | null;
65330
+ id: string;
65331
+ is_active: boolean;
65332
+ name: string | null;
65333
+ phone: string | null;
65334
+ postcode: string | null;
65335
+ raw: import("../integrations/supabase/types").Json | null;
65336
+ status: string | null;
65337
+ updated_at: string;
65338
+ vat_number: string | null;
65339
+ website: string | null;
65340
+ };
65341
+ Insert: {
65342
+ account_key?: string;
65343
+ address_line1?: string | null;
65344
+ chamber_of_commerce?: string | null;
65345
+ city?: string | null;
65346
+ code?: string | null;
65347
+ country?: string | null;
65348
+ created_at?: string;
65349
+ currency?: string | null;
65350
+ division_code?: number | null;
65351
+ email?: string | null;
65352
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65353
+ exact_id: string;
65354
+ exact_modified?: string | null;
65355
+ exact_timestamp?: number | null;
65356
+ id?: string;
65357
+ is_active?: boolean;
65358
+ name?: string | null;
65359
+ phone?: string | null;
65360
+ postcode?: string | null;
65361
+ raw?: import("../integrations/supabase/types").Json | null;
65362
+ status?: string | null;
65363
+ updated_at?: string;
65364
+ vat_number?: string | null;
65365
+ website?: string | null;
65366
+ };
65367
+ Update: {
65368
+ account_key?: string;
65369
+ address_line1?: string | null;
65370
+ chamber_of_commerce?: string | null;
65371
+ city?: string | null;
65372
+ code?: string | null;
65373
+ country?: string | null;
65374
+ created_at?: string;
65375
+ currency?: string | null;
65376
+ division_code?: number | null;
65377
+ email?: string | null;
65378
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65379
+ exact_id?: string;
65380
+ exact_modified?: string | null;
65381
+ exact_timestamp?: number | null;
65382
+ id?: string;
65383
+ is_active?: boolean;
65384
+ name?: string | null;
65385
+ phone?: string | null;
65386
+ postcode?: string | null;
65387
+ raw?: import("../integrations/supabase/types").Json | null;
65388
+ status?: string | null;
65389
+ updated_at?: string;
65390
+ vat_number?: string | null;
65391
+ website?: string | null;
65392
+ };
65393
+ Relationships: [];
65394
+ };
65395
+ exact_auth_divisions: {
65396
+ Row: {
65397
+ account_key: string;
65398
+ company_name: string | null;
65399
+ created_at: string;
65400
+ division_code: number | null;
65401
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65402
+ id: string;
65403
+ last_synced_at: string | null;
65404
+ updated_at: string;
65405
+ };
65406
+ Insert: {
65407
+ account_key?: string;
65408
+ company_name?: string | null;
65409
+ created_at?: string;
65410
+ division_code?: number | null;
65411
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65412
+ id?: string;
65413
+ last_synced_at?: string | null;
65414
+ updated_at?: string;
65415
+ };
65416
+ Update: {
65417
+ account_key?: string;
65418
+ company_name?: string | null;
65419
+ created_at?: string;
65420
+ division_code?: number | null;
65421
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65422
+ id?: string;
65423
+ last_synced_at?: string | null;
65424
+ updated_at?: string;
65425
+ };
65426
+ Relationships: [];
65427
+ };
65428
+ exact_auth_invoice_lines: {
65429
+ Row: {
65430
+ account_key: string;
65431
+ amount_excl: number | null;
65432
+ created_at: string;
65433
+ description: string | null;
65434
+ discount: number | null;
65435
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65436
+ exact_id: string;
65437
+ exact_timestamp: number | null;
65438
+ id: string;
65439
+ invoice_exact_id: string;
65440
+ item_code: string | null;
65441
+ item_exact_id: string | null;
65442
+ line_number: number | null;
65443
+ quantity: number | null;
65444
+ raw: import("../integrations/supabase/types").Json | null;
65445
+ unit_price: number | null;
65446
+ updated_at: string;
65447
+ vat_amount: number | null;
65448
+ vat_code: string | null;
65449
+ };
65450
+ Insert: {
65451
+ account_key?: string;
65452
+ amount_excl?: number | null;
65453
+ created_at?: string;
65454
+ description?: string | null;
65455
+ discount?: number | null;
65456
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65457
+ exact_id: string;
65458
+ exact_timestamp?: number | null;
65459
+ id?: string;
65460
+ invoice_exact_id: string;
65461
+ item_code?: string | null;
65462
+ item_exact_id?: string | null;
65463
+ line_number?: number | null;
65464
+ quantity?: number | null;
65465
+ raw?: import("../integrations/supabase/types").Json | null;
65466
+ unit_price?: number | null;
65467
+ updated_at?: string;
65468
+ vat_amount?: number | null;
65469
+ vat_code?: string | null;
65470
+ };
65471
+ Update: {
65472
+ account_key?: string;
65473
+ amount_excl?: number | null;
65474
+ created_at?: string;
65475
+ description?: string | null;
65476
+ discount?: number | null;
65477
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65478
+ exact_id?: string;
65479
+ exact_timestamp?: number | null;
65480
+ id?: string;
65481
+ invoice_exact_id?: string;
65482
+ item_code?: string | null;
65483
+ item_exact_id?: string | null;
65484
+ line_number?: number | null;
65485
+ quantity?: number | null;
65486
+ raw?: import("../integrations/supabase/types").Json | null;
65487
+ unit_price?: number | null;
65488
+ updated_at?: string;
65489
+ vat_amount?: number | null;
65490
+ vat_code?: string | null;
65491
+ };
65492
+ Relationships: [];
65493
+ };
65494
+ exact_auth_invoices: {
65495
+ Row: {
65496
+ account_key: string;
65497
+ amount_excl: number | null;
65498
+ amount_incl: number | null;
65499
+ amount_open: number | null;
65500
+ created_at: string;
65501
+ currency: string | null;
65502
+ customer_code: string | null;
65503
+ customer_exact_id: string | null;
65504
+ customer_name: string | null;
65505
+ description: string | null;
65506
+ division_code: number | null;
65507
+ due_date: string | null;
65508
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65509
+ exact_id: string;
65510
+ exact_modified: string | null;
65511
+ exact_timestamp: number | null;
65512
+ id: string;
65513
+ invoice_date: string | null;
65514
+ invoice_number: string | null;
65515
+ order_number: string | null;
65516
+ paid_at: string | null;
65517
+ payment_status: string;
65518
+ raw: import("../integrations/supabase/types").Json | null;
65519
+ receivable_synced_at: string | null;
65520
+ status_code: number | null;
65521
+ updated_at: string;
65522
+ };
65523
+ Insert: {
65524
+ account_key?: string;
65525
+ amount_excl?: number | null;
65526
+ amount_incl?: number | null;
65527
+ amount_open?: number | null;
65528
+ created_at?: string;
65529
+ currency?: string | null;
65530
+ customer_code?: string | null;
65531
+ customer_exact_id?: string | null;
65532
+ customer_name?: string | null;
65533
+ description?: string | null;
65534
+ division_code?: number | null;
65535
+ due_date?: string | null;
65536
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65537
+ exact_id: string;
65538
+ exact_modified?: string | null;
65539
+ exact_timestamp?: number | null;
65540
+ id?: string;
65541
+ invoice_date?: string | null;
65542
+ invoice_number?: string | null;
65543
+ order_number?: string | null;
65544
+ paid_at?: string | null;
65545
+ payment_status?: string;
65546
+ raw?: import("../integrations/supabase/types").Json | null;
65547
+ receivable_synced_at?: string | null;
65548
+ status_code?: number | null;
65549
+ updated_at?: string;
65550
+ };
65551
+ Update: {
65552
+ account_key?: string;
65553
+ amount_excl?: number | null;
65554
+ amount_incl?: number | null;
65555
+ amount_open?: number | null;
65556
+ created_at?: string;
65557
+ currency?: string | null;
65558
+ customer_code?: string | null;
65559
+ customer_exact_id?: string | null;
65560
+ customer_name?: string | null;
65561
+ description?: string | null;
65562
+ division_code?: number | null;
65563
+ due_date?: string | null;
65564
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65565
+ exact_id?: string;
65566
+ exact_modified?: string | null;
65567
+ exact_timestamp?: number | null;
65568
+ id?: string;
65569
+ invoice_date?: string | null;
65570
+ invoice_number?: string | null;
65571
+ order_number?: string | null;
65572
+ paid_at?: string | null;
65573
+ payment_status?: string;
65574
+ raw?: import("../integrations/supabase/types").Json | null;
65575
+ receivable_synced_at?: string | null;
65576
+ status_code?: number | null;
65577
+ updated_at?: string;
65578
+ };
65579
+ Relationships: [];
65580
+ };
65581
+ exact_auth_items: {
65582
+ Row: {
65583
+ account_key: string;
65584
+ barcode: string | null;
65585
+ code: string | null;
65586
+ cost_price: number | null;
65587
+ created_at: string;
65588
+ description: string | null;
65589
+ division_code: number | null;
65590
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65591
+ exact_id: string;
65592
+ exact_modified: string | null;
65593
+ exact_timestamp: number | null;
65594
+ gl_account_code: string | null;
65595
+ id: string;
65596
+ is_active: boolean;
65597
+ is_sales_item: boolean | null;
65598
+ item_type: string | null;
65599
+ raw: import("../integrations/supabase/types").Json | null;
65600
+ sales_price: number | null;
65601
+ unit: string | null;
65602
+ updated_at: string;
65603
+ vat_code: string | null;
65604
+ };
65605
+ Insert: {
65606
+ account_key?: string;
65607
+ barcode?: string | null;
65608
+ code?: string | null;
65609
+ cost_price?: number | null;
65610
+ created_at?: string;
65611
+ description?: string | null;
65612
+ division_code?: number | null;
65613
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65614
+ exact_id: string;
65615
+ exact_modified?: string | null;
65616
+ exact_timestamp?: number | null;
65617
+ gl_account_code?: string | null;
65618
+ id?: string;
65619
+ is_active?: boolean;
65620
+ is_sales_item?: boolean | null;
65621
+ item_type?: string | null;
65622
+ raw?: import("../integrations/supabase/types").Json | null;
65623
+ sales_price?: number | null;
65624
+ unit?: string | null;
65625
+ updated_at?: string;
65626
+ vat_code?: string | null;
65627
+ };
65628
+ Update: {
65629
+ account_key?: string;
65630
+ barcode?: string | null;
65631
+ code?: string | null;
65632
+ cost_price?: number | null;
65633
+ created_at?: string;
65634
+ description?: string | null;
65635
+ division_code?: number | null;
65636
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65637
+ exact_id?: string;
65638
+ exact_modified?: string | null;
65639
+ exact_timestamp?: number | null;
65640
+ gl_account_code?: string | null;
65641
+ id?: string;
65642
+ is_active?: boolean;
65643
+ is_sales_item?: boolean | null;
65644
+ item_type?: string | null;
65645
+ raw?: import("../integrations/supabase/types").Json | null;
65646
+ sales_price?: number | null;
65647
+ unit?: string | null;
65648
+ updated_at?: string;
65649
+ vat_code?: string | null;
65650
+ };
65651
+ Relationships: [];
65652
+ };
65653
+ exact_auth_sync_log: {
65654
+ Row: {
65655
+ account_key: string;
65656
+ calls_used: number;
65657
+ created_at: string;
65658
+ domain: string;
65659
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65660
+ error: string | null;
65661
+ finished_at: string | null;
65662
+ id: string;
65663
+ ok: boolean;
65664
+ records: number;
65665
+ started_at: string;
65666
+ };
65667
+ Insert: {
65668
+ account_key?: string;
65669
+ calls_used?: number;
65670
+ created_at?: string;
65671
+ domain: string;
65672
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65673
+ error?: string | null;
65674
+ finished_at?: string | null;
65675
+ id?: string;
65676
+ ok?: boolean;
65677
+ records?: number;
65678
+ started_at?: string;
65679
+ };
65680
+ Update: {
65681
+ account_key?: string;
65682
+ calls_used?: number;
65683
+ created_at?: string;
65684
+ domain?: string;
65685
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65686
+ error?: string | null;
65687
+ finished_at?: string | null;
65688
+ id?: string;
65689
+ ok?: boolean;
65690
+ records?: number;
65691
+ started_at?: string;
65692
+ };
65693
+ Relationships: [];
65694
+ };
65695
+ exact_auth_sync_state: {
65696
+ Row: {
65697
+ account_key: string;
65698
+ created_at: string;
65699
+ cursor_timestamp: number;
65700
+ division_code: number | null;
65701
+ domain: string;
65702
+ duration_ms: number | null;
65703
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65704
+ initial_sync_done: boolean;
65705
+ last_error: string | null;
65706
+ last_run_at: string | null;
65707
+ last_success_at: string | null;
65708
+ locked_at: string | null;
65709
+ needs_initial_sync: boolean;
65710
+ record_count: number;
65711
+ updated_at: string;
65712
+ };
65713
+ Insert: {
65714
+ account_key?: string;
65715
+ created_at?: string;
65716
+ cursor_timestamp?: number;
65717
+ division_code?: number | null;
65718
+ domain: string;
65719
+ duration_ms?: number | null;
65720
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65721
+ initial_sync_done?: boolean;
65722
+ last_error?: string | null;
65723
+ last_run_at?: string | null;
65724
+ last_success_at?: string | null;
65725
+ locked_at?: string | null;
65726
+ needs_initial_sync?: boolean;
65727
+ record_count?: number;
65728
+ updated_at?: string;
65729
+ };
65730
+ Update: {
65731
+ account_key?: string;
65732
+ created_at?: string;
65733
+ cursor_timestamp?: number;
65734
+ division_code?: number | null;
65735
+ domain?: string;
65736
+ duration_ms?: number | null;
65737
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65738
+ initial_sync_done?: boolean;
65739
+ last_error?: string | null;
65740
+ last_run_at?: string | null;
65741
+ last_success_at?: string | null;
65742
+ locked_at?: string | null;
65743
+ needs_initial_sync?: boolean;
65744
+ record_count?: number;
65745
+ updated_at?: string;
65746
+ };
65747
+ Relationships: [];
65748
+ };
63046
65749
  exact_bulk_operation_items: {
63047
65750
  Row: {
63048
65751
  attempts: number;
@@ -64734,12 +67437,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
64734
67437
  attempts: number;
64735
67438
  connection_id: string;
64736
67439
  created_at: string;
67440
+ desired_available: boolean | null;
64737
67441
  gateway_attempt_id: string | null;
64738
67442
  id: string;
64739
67443
  last_error: string | null;
67444
+ locked_at: string | null;
67445
+ locked_by: string | null;
67446
+ next_attempt_at: string;
64740
67447
  number_of_pieces: number;
64741
67448
  sent_at: string | null;
64742
67449
  status: string;
67450
+ superseded_by: string | null;
64743
67451
  trade_item_id: string;
64744
67452
  updated_at: string;
64745
67453
  user_id: string;
@@ -64748,12 +67456,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
64748
67456
  attempts?: number;
64749
67457
  connection_id: string;
64750
67458
  created_at?: string;
67459
+ desired_available?: boolean | null;
64751
67460
  gateway_attempt_id?: string | null;
64752
67461
  id?: string;
64753
67462
  last_error?: string | null;
67463
+ locked_at?: string | null;
67464
+ locked_by?: string | null;
67465
+ next_attempt_at?: string;
64754
67466
  number_of_pieces?: number;
64755
67467
  sent_at?: string | null;
64756
67468
  status?: string;
67469
+ superseded_by?: string | null;
64757
67470
  trade_item_id: string;
64758
67471
  updated_at?: string;
64759
67472
  user_id: string;
@@ -64762,12 +67475,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
64762
67475
  attempts?: number;
64763
67476
  connection_id?: string;
64764
67477
  created_at?: string;
67478
+ desired_available?: boolean | null;
64765
67479
  gateway_attempt_id?: string | null;
64766
67480
  id?: string;
64767
67481
  last_error?: string | null;
67482
+ locked_at?: string | null;
67483
+ locked_by?: string | null;
67484
+ next_attempt_at?: string;
64768
67485
  number_of_pieces?: number;
64769
67486
  sent_at?: string | null;
64770
67487
  status?: string;
67488
+ superseded_by?: string | null;
64771
67489
  trade_item_id?: string;
64772
67490
  updated_at?: string;
64773
67491
  user_id?: string;
@@ -67516,6 +70234,69 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
67516
70234
  };
67517
70235
  Relationships: [];
67518
70236
  };
70237
+ logistics_floriday_pushes: {
70238
+ Row: {
70239
+ attempts: number;
70240
+ created_at: string;
70241
+ first_queued_at: string;
70242
+ fulfillment_order_id: string | null;
70243
+ id: string;
70244
+ last_error: string | null;
70245
+ last_error_at: string | null;
70246
+ last_sent_hash: string | null;
70247
+ locked_by: string | null;
70248
+ locked_until: string | null;
70249
+ next_attempt_at: string;
70250
+ order_ref: string;
70251
+ payload: import("../integrations/supabase/types").Json;
70252
+ payload_hash: string | null;
70253
+ revision: number;
70254
+ sent_at: string | null;
70255
+ status: string;
70256
+ updated_at: string;
70257
+ };
70258
+ Insert: {
70259
+ attempts?: number;
70260
+ created_at?: string;
70261
+ first_queued_at?: string;
70262
+ fulfillment_order_id?: string | null;
70263
+ id?: string;
70264
+ last_error?: string | null;
70265
+ last_error_at?: string | null;
70266
+ last_sent_hash?: string | null;
70267
+ locked_by?: string | null;
70268
+ locked_until?: string | null;
70269
+ next_attempt_at?: string;
70270
+ order_ref: string;
70271
+ payload?: import("../integrations/supabase/types").Json;
70272
+ payload_hash?: string | null;
70273
+ revision?: number;
70274
+ sent_at?: string | null;
70275
+ status?: string;
70276
+ updated_at?: string;
70277
+ };
70278
+ Update: {
70279
+ attempts?: number;
70280
+ created_at?: string;
70281
+ first_queued_at?: string;
70282
+ fulfillment_order_id?: string | null;
70283
+ id?: string;
70284
+ last_error?: string | null;
70285
+ last_error_at?: string | null;
70286
+ last_sent_hash?: string | null;
70287
+ locked_by?: string | null;
70288
+ locked_until?: string | null;
70289
+ next_attempt_at?: string;
70290
+ order_ref?: string;
70291
+ payload?: import("../integrations/supabase/types").Json;
70292
+ payload_hash?: string | null;
70293
+ revision?: number;
70294
+ sent_at?: string | null;
70295
+ status?: string;
70296
+ updated_at?: string;
70297
+ };
70298
+ Relationships: [];
70299
+ };
67519
70300
  logistics_formulas: {
67520
70301
  Row: {
67521
70302
  created_at: string;
@@ -68127,6 +70908,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68127
70908
  };
68128
70909
  logistics_tasks: {
68129
70910
  Row: {
70911
+ attempt_log: import("../integrations/supabase/types").Json;
70912
+ attempts: number;
68130
70913
  buffer_ref: string | null;
68131
70914
  claimed_at: string | null;
68132
70915
  claimed_by: string | null;
@@ -68136,6 +70919,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68136
70919
  due_at: string | null;
68137
70920
  error: string | null;
68138
70921
  id: string;
70922
+ last_error: string | null;
70923
+ next_attempt_at: string | null;
68139
70924
  order_ref: string;
68140
70925
  owner_module: string;
68141
70926
  payload: import("../integrations/supabase/types").Json;
@@ -68156,6 +70941,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68156
70941
  user_id: string;
68157
70942
  };
68158
70943
  Insert: {
70944
+ attempt_log?: import("../integrations/supabase/types").Json;
70945
+ attempts?: number;
68159
70946
  buffer_ref?: string | null;
68160
70947
  claimed_at?: string | null;
68161
70948
  claimed_by?: string | null;
@@ -68165,6 +70952,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68165
70952
  due_at?: string | null;
68166
70953
  error?: string | null;
68167
70954
  id?: string;
70955
+ last_error?: string | null;
70956
+ next_attempt_at?: string | null;
68168
70957
  order_ref: string;
68169
70958
  owner_module: string;
68170
70959
  payload?: import("../integrations/supabase/types").Json;
@@ -68185,6 +70974,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68185
70974
  user_id?: string;
68186
70975
  };
68187
70976
  Update: {
70977
+ attempt_log?: import("../integrations/supabase/types").Json;
70978
+ attempts?: number;
68188
70979
  buffer_ref?: string | null;
68189
70980
  claimed_at?: string | null;
68190
70981
  claimed_by?: string | null;
@@ -68194,6 +70985,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
68194
70985
  due_at?: string | null;
68195
70986
  error?: string | null;
68196
70987
  id?: string;
70988
+ last_error?: string | null;
70989
+ next_attempt_at?: string | null;
68197
70990
  order_ref?: string;
68198
70991
  owner_module?: string;
68199
70992
  payload?: import("../integrations/supabase/types").Json;
@@ -69543,6 +72336,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
69543
72336
  };
69544
72337
  offer_settings: {
69545
72338
  Row: {
72339
+ brand_name: string | null;
69546
72340
  button_color: string;
69547
72341
  created_at: string;
69548
72342
  default_countries: string[];
@@ -69564,6 +72358,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
69564
72358
  updated_at: string;
69565
72359
  };
69566
72360
  Insert: {
72361
+ brand_name?: string | null;
69567
72362
  button_color?: string;
69568
72363
  created_at?: string;
69569
72364
  default_countries?: string[];
@@ -69585,6 +72380,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
69585
72380
  updated_at?: string;
69586
72381
  };
69587
72382
  Update: {
72383
+ brand_name?: string | null;
69588
72384
  button_color?: string;
69589
72385
  created_at?: string;
69590
72386
  default_countries?: string[];
@@ -77195,6 +79991,85 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77195
79991
  };
77196
79992
  Returns: import("../integrations/supabase/types").Json;
77197
79993
  };
79994
+ claim_floriday_stock_queue: {
79995
+ Args: {
79996
+ p_limit?: number;
79997
+ p_worker?: string;
79998
+ };
79999
+ Returns: {
80000
+ attempts: number;
80001
+ connection_id: string;
80002
+ created_at: string;
80003
+ desired_available: boolean | null;
80004
+ gateway_attempt_id: string | null;
80005
+ id: string;
80006
+ last_error: string | null;
80007
+ locked_at: string | null;
80008
+ locked_by: string | null;
80009
+ next_attempt_at: string;
80010
+ number_of_pieces: number;
80011
+ sent_at: string | null;
80012
+ status: string;
80013
+ superseded_by: string | null;
80014
+ trade_item_id: string;
80015
+ updated_at: string;
80016
+ user_id: string;
80017
+ }[];
80018
+ SetofOptions: {
80019
+ from: "*";
80020
+ to: "floriday_continuous_stock_queue";
80021
+ isOneToOne: false;
80022
+ isSetofReturn: true;
80023
+ };
80024
+ };
80025
+ claim_logistics_tasks: {
80026
+ Args: {
80027
+ _limit?: number;
80028
+ _owner_module: string;
80029
+ _stale_minutes?: number;
80030
+ _task_type: string;
80031
+ _worker: string;
80032
+ };
80033
+ Returns: {
80034
+ attempt_log: import("../integrations/supabase/types").Json;
80035
+ attempts: number;
80036
+ buffer_ref: string | null;
80037
+ claimed_at: string | null;
80038
+ claimed_by: string | null;
80039
+ completed_at: string | null;
80040
+ created_at: string;
80041
+ depends_on: string[];
80042
+ due_at: string | null;
80043
+ error: string | null;
80044
+ id: string;
80045
+ last_error: string | null;
80046
+ next_attempt_at: string | null;
80047
+ order_ref: string;
80048
+ owner_module: string;
80049
+ payload: import("../integrations/supabase/types").Json;
80050
+ plan_run_id: string | null;
80051
+ planned_end: string | null;
80052
+ planned_start: string | null;
80053
+ priority: number;
80054
+ result: import("../integrations/supabase/types").Json | null;
80055
+ rule_config_id: string | null;
80056
+ rule_version: number | null;
80057
+ sequence: number;
80058
+ shadow: boolean;
80059
+ started_at: string | null;
80060
+ status: string;
80061
+ strategy_id: string | null;
80062
+ task_type: string;
80063
+ updated_at: string;
80064
+ user_id: string;
80065
+ }[];
80066
+ SetofOptions: {
80067
+ from: "*";
80068
+ to: "logistics_tasks";
80069
+ isOneToOne: false;
80070
+ isSetofReturn: true;
80071
+ };
80072
+ };
77198
80073
  claim_print_jobs: {
77199
80074
  Args: {
77200
80075
  _agent_id: string;
@@ -77259,10 +80134,24 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77259
80134
  isSetofReturn: true;
77260
80135
  };
77261
80136
  };
80137
+ cleanup_floriday_stock_queue: {
80138
+ Args: never;
80139
+ Returns: undefined;
80140
+ };
77262
80141
  cleanup_old_bookings: {
77263
80142
  Args: never;
77264
80143
  Returns: undefined;
77265
80144
  };
80145
+ complete_floriday_stock_queue: {
80146
+ Args: {
80147
+ p_attempt_id?: string;
80148
+ p_error?: string;
80149
+ p_id: string;
80150
+ p_ok: boolean;
80151
+ p_permanent?: boolean;
80152
+ };
80153
+ Returns: undefined;
80154
+ };
77266
80155
  consume_bom_for_production: {
77267
80156
  Args: {
77268
80157
  p_connection_id: string;
@@ -77435,6 +80324,21 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77435
80324
  Args: never;
77436
80325
  Returns: string;
77437
80326
  };
80327
+ exact_auth_consume_calls: {
80328
+ Args: {
80329
+ _account_key: string;
80330
+ _calls?: number;
80331
+ _day_limit?: number;
80332
+ _division_code: number;
80333
+ _environment: string;
80334
+ _minute_limit?: number;
80335
+ };
80336
+ Returns: import("../integrations/supabase/types").Json;
80337
+ };
80338
+ exact_auth_prune_sync_log: {
80339
+ Args: never;
80340
+ Returns: undefined;
80341
+ };
77438
80342
  exact_decrypt: {
77439
80343
  Args: {
77440
80344
  cipher: string;
@@ -77644,6 +80548,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77644
80548
  };
77645
80549
  Returns: number;
77646
80550
  };
80551
+ get_offer_branding: {
80552
+ Args: never;
80553
+ Returns: import("../integrations/supabase/types").Json;
80554
+ };
77647
80555
  get_offer_by_link_code: {
77648
80556
  Args: {
77649
80557
  p_code: string;
@@ -77935,6 +80843,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77935
80843
  p_worker?: string;
77936
80844
  };
77937
80845
  Returns: {
80846
+ attempt_log: import("../integrations/supabase/types").Json;
80847
+ attempts: number;
77938
80848
  buffer_ref: string | null;
77939
80849
  claimed_at: string | null;
77940
80850
  claimed_by: string | null;
@@ -77944,6 +80854,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77944
80854
  due_at: string | null;
77945
80855
  error: string | null;
77946
80856
  id: string;
80857
+ last_error: string | null;
80858
+ next_attempt_at: string | null;
77947
80859
  order_ref: string;
77948
80860
  owner_module: string;
77949
80861
  payload: import("../integrations/supabase/types").Json;
@@ -77976,6 +80888,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77976
80888
  p_worker?: string;
77977
80889
  };
77978
80890
  Returns: {
80891
+ attempt_log: import("../integrations/supabase/types").Json;
80892
+ attempts: number;
77979
80893
  buffer_ref: string | null;
77980
80894
  claimed_at: string | null;
77981
80895
  claimed_by: string | null;
@@ -77985,6 +80899,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
77985
80899
  due_at: string | null;
77986
80900
  error: string | null;
77987
80901
  id: string;
80902
+ last_error: string | null;
80903
+ next_attempt_at: string | null;
77988
80904
  order_ref: string;
77989
80905
  owner_module: string;
77990
80906
  payload: import("../integrations/supabase/types").Json;
@@ -78017,6 +80933,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78017
80933
  p_task_id: string;
78018
80934
  };
78019
80935
  Returns: {
80936
+ attempt_log: import("../integrations/supabase/types").Json;
80937
+ attempts: number;
78020
80938
  buffer_ref: string | null;
78021
80939
  claimed_at: string | null;
78022
80940
  claimed_by: string | null;
@@ -78026,6 +80944,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78026
80944
  due_at: string | null;
78027
80945
  error: string | null;
78028
80946
  id: string;
80947
+ last_error: string | null;
80948
+ next_attempt_at: string | null;
78029
80949
  order_ref: string;
78030
80950
  owner_module: string;
78031
80951
  payload: import("../integrations/supabase/types").Json;
@@ -78107,6 +81027,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78107
81027
  p_task_id: string;
78108
81028
  };
78109
81029
  Returns: {
81030
+ attempt_log: import("../integrations/supabase/types").Json;
81031
+ attempts: number;
78110
81032
  buffer_ref: string | null;
78111
81033
  claimed_at: string | null;
78112
81034
  claimed_by: string | null;
@@ -78116,6 +81038,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78116
81038
  due_at: string | null;
78117
81039
  error: string | null;
78118
81040
  id: string;
81041
+ last_error: string | null;
81042
+ next_attempt_at: string | null;
78119
81043
  order_ref: string;
78120
81044
  owner_module: string;
78121
81045
  payload: import("../integrations/supabase/types").Json;
@@ -78142,6 +81066,51 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78142
81066
  isSetofReturn: false;
78143
81067
  };
78144
81068
  };
81069
+ logistics_floriday_claim_pushes: {
81070
+ Args: {
81071
+ _lease_seconds?: number;
81072
+ _limit?: number;
81073
+ _worker?: string;
81074
+ };
81075
+ Returns: {
81076
+ attempts: number;
81077
+ fulfillment_order_id: string;
81078
+ id: string;
81079
+ last_sent_hash: string;
81080
+ order_ref: string;
81081
+ payload: import("../integrations/supabase/types").Json;
81082
+ payload_hash: string;
81083
+ revision: number;
81084
+ }[];
81085
+ };
81086
+ logistics_floriday_finish_push: {
81087
+ Args: {
81088
+ _error?: string;
81089
+ _fulfillment_order_id?: string;
81090
+ _id: string;
81091
+ _max_age_hours?: number;
81092
+ _max_attempts?: number;
81093
+ _ok: boolean;
81094
+ _permanent?: boolean;
81095
+ _revision: number;
81096
+ _sent_hash?: string;
81097
+ };
81098
+ Returns: string;
81099
+ };
81100
+ logistics_floriday_prune_pushes: {
81101
+ Args: {
81102
+ _days?: number;
81103
+ };
81104
+ Returns: number;
81105
+ };
81106
+ logistics_floriday_queue_push: {
81107
+ Args: {
81108
+ _order_ref: string;
81109
+ _payload?: import("../integrations/supabase/types").Json;
81110
+ _payload_hash?: string;
81111
+ };
81112
+ Returns: string;
81113
+ };
78145
81114
  logistics_live_carriers: {
78146
81115
  Args: {
78147
81116
  p_order_ref: string;
@@ -78869,6 +81838,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
78869
81838
  Args: never;
78870
81839
  Returns: undefined;
78871
81840
  };
81841
+ run_logistics_tasks_dispatch: {
81842
+ Args: never;
81843
+ Returns: undefined;
81844
+ };
78872
81845
  run_twinfield_queue_tick: {
78873
81846
  Args: never;
78874
81847
  Returns: undefined;
@@ -79109,6 +82082,13 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79109
82082
  };
79110
82083
  Returns: number;
79111
82084
  };
82085
+ schedule_floriday_stock_queue_process: {
82086
+ Args: {
82087
+ p_apikey: string;
82088
+ p_url: string;
82089
+ };
82090
+ Returns: number;
82091
+ };
79112
82092
  schedule_floriday_token_refresh: {
79113
82093
  Args: {
79114
82094
  p_apikey: string;