@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
@@ -3577,6 +3577,474 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3577
3577
  referencedColumns: ["id"];
3578
3578
  }];
3579
3579
  };
3580
+ exact_auth_call_budget: {
3581
+ Row: {
3582
+ account_key: string;
3583
+ day_count: number;
3584
+ day_date: string;
3585
+ division_code: number;
3586
+ environment: string;
3587
+ minute_count: number;
3588
+ minute_window: string;
3589
+ updated_at: string;
3590
+ };
3591
+ Insert: {
3592
+ account_key?: string;
3593
+ day_count?: number;
3594
+ day_date?: string;
3595
+ division_code?: number;
3596
+ environment: string;
3597
+ minute_count?: number;
3598
+ minute_window?: string;
3599
+ updated_at?: string;
3600
+ };
3601
+ Update: {
3602
+ account_key?: string;
3603
+ day_count?: number;
3604
+ day_date?: string;
3605
+ division_code?: number;
3606
+ environment?: string;
3607
+ minute_count?: number;
3608
+ minute_window?: string;
3609
+ updated_at?: string;
3610
+ };
3611
+ Relationships: [];
3612
+ };
3613
+ exact_auth_customers: {
3614
+ Row: {
3615
+ account_key: string;
3616
+ address_line1: string | null;
3617
+ chamber_of_commerce: string | null;
3618
+ city: string | null;
3619
+ code: string | null;
3620
+ country: string | null;
3621
+ created_at: string;
3622
+ currency: string | null;
3623
+ division_code: number | null;
3624
+ email: string | null;
3625
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3626
+ exact_id: string;
3627
+ exact_modified: string | null;
3628
+ exact_timestamp: number | null;
3629
+ id: string;
3630
+ is_active: boolean;
3631
+ name: string | null;
3632
+ phone: string | null;
3633
+ postcode: string | null;
3634
+ raw: import("../integrations/supabase/types").Json | null;
3635
+ status: string | null;
3636
+ updated_at: string;
3637
+ vat_number: string | null;
3638
+ website: string | null;
3639
+ };
3640
+ Insert: {
3641
+ account_key?: string;
3642
+ address_line1?: string | null;
3643
+ chamber_of_commerce?: string | null;
3644
+ city?: string | null;
3645
+ code?: string | null;
3646
+ country?: string | null;
3647
+ created_at?: string;
3648
+ currency?: string | null;
3649
+ division_code?: number | null;
3650
+ email?: string | null;
3651
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3652
+ exact_id: string;
3653
+ exact_modified?: string | null;
3654
+ exact_timestamp?: number | null;
3655
+ id?: string;
3656
+ is_active?: boolean;
3657
+ name?: string | null;
3658
+ phone?: string | null;
3659
+ postcode?: string | null;
3660
+ raw?: import("../integrations/supabase/types").Json | null;
3661
+ status?: string | null;
3662
+ updated_at?: string;
3663
+ vat_number?: string | null;
3664
+ website?: string | null;
3665
+ };
3666
+ Update: {
3667
+ account_key?: string;
3668
+ address_line1?: string | null;
3669
+ chamber_of_commerce?: string | null;
3670
+ city?: string | null;
3671
+ code?: string | null;
3672
+ country?: string | null;
3673
+ created_at?: string;
3674
+ currency?: string | null;
3675
+ division_code?: number | null;
3676
+ email?: string | null;
3677
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3678
+ exact_id?: string;
3679
+ exact_modified?: string | null;
3680
+ exact_timestamp?: number | null;
3681
+ id?: string;
3682
+ is_active?: boolean;
3683
+ name?: string | null;
3684
+ phone?: string | null;
3685
+ postcode?: string | null;
3686
+ raw?: import("../integrations/supabase/types").Json | null;
3687
+ status?: string | null;
3688
+ updated_at?: string;
3689
+ vat_number?: string | null;
3690
+ website?: string | null;
3691
+ };
3692
+ Relationships: [];
3693
+ };
3694
+ exact_auth_divisions: {
3695
+ Row: {
3696
+ account_key: string;
3697
+ company_name: string | null;
3698
+ created_at: string;
3699
+ division_code: number | null;
3700
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3701
+ id: string;
3702
+ last_synced_at: string | null;
3703
+ updated_at: string;
3704
+ };
3705
+ Insert: {
3706
+ account_key?: string;
3707
+ company_name?: string | null;
3708
+ created_at?: string;
3709
+ division_code?: number | null;
3710
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3711
+ id?: string;
3712
+ last_synced_at?: string | null;
3713
+ updated_at?: string;
3714
+ };
3715
+ Update: {
3716
+ account_key?: string;
3717
+ company_name?: string | null;
3718
+ created_at?: string;
3719
+ division_code?: number | null;
3720
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3721
+ id?: string;
3722
+ last_synced_at?: string | null;
3723
+ updated_at?: string;
3724
+ };
3725
+ Relationships: [];
3726
+ };
3727
+ exact_auth_invoice_lines: {
3728
+ Row: {
3729
+ account_key: string;
3730
+ amount_excl: number | null;
3731
+ created_at: string;
3732
+ description: string | null;
3733
+ discount: number | null;
3734
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3735
+ exact_id: string;
3736
+ exact_timestamp: number | null;
3737
+ id: string;
3738
+ invoice_exact_id: string;
3739
+ item_code: string | null;
3740
+ item_exact_id: string | null;
3741
+ line_number: number | null;
3742
+ quantity: number | null;
3743
+ raw: import("../integrations/supabase/types").Json | null;
3744
+ unit_price: number | null;
3745
+ updated_at: string;
3746
+ vat_amount: number | null;
3747
+ vat_code: string | null;
3748
+ };
3749
+ Insert: {
3750
+ account_key?: string;
3751
+ amount_excl?: number | null;
3752
+ created_at?: string;
3753
+ description?: string | null;
3754
+ discount?: number | null;
3755
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3756
+ exact_id: string;
3757
+ exact_timestamp?: number | null;
3758
+ id?: string;
3759
+ invoice_exact_id: string;
3760
+ item_code?: string | null;
3761
+ item_exact_id?: string | null;
3762
+ line_number?: number | null;
3763
+ quantity?: number | null;
3764
+ raw?: import("../integrations/supabase/types").Json | null;
3765
+ unit_price?: number | null;
3766
+ updated_at?: string;
3767
+ vat_amount?: number | null;
3768
+ vat_code?: string | null;
3769
+ };
3770
+ Update: {
3771
+ account_key?: string;
3772
+ amount_excl?: number | null;
3773
+ created_at?: string;
3774
+ description?: string | null;
3775
+ discount?: number | null;
3776
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3777
+ exact_id?: string;
3778
+ exact_timestamp?: number | null;
3779
+ id?: string;
3780
+ invoice_exact_id?: string;
3781
+ item_code?: string | null;
3782
+ item_exact_id?: string | null;
3783
+ line_number?: number | null;
3784
+ quantity?: number | null;
3785
+ raw?: import("../integrations/supabase/types").Json | null;
3786
+ unit_price?: number | null;
3787
+ updated_at?: string;
3788
+ vat_amount?: number | null;
3789
+ vat_code?: string | null;
3790
+ };
3791
+ Relationships: [];
3792
+ };
3793
+ exact_auth_invoices: {
3794
+ Row: {
3795
+ account_key: string;
3796
+ amount_excl: number | null;
3797
+ amount_incl: number | null;
3798
+ amount_open: number | null;
3799
+ created_at: string;
3800
+ currency: string | null;
3801
+ customer_code: string | null;
3802
+ customer_exact_id: string | null;
3803
+ customer_name: string | null;
3804
+ description: string | null;
3805
+ division_code: number | null;
3806
+ due_date: string | null;
3807
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3808
+ exact_id: string;
3809
+ exact_modified: string | null;
3810
+ exact_timestamp: number | null;
3811
+ id: string;
3812
+ invoice_date: string | null;
3813
+ invoice_number: string | null;
3814
+ order_number: string | null;
3815
+ paid_at: string | null;
3816
+ payment_status: string;
3817
+ raw: import("../integrations/supabase/types").Json | null;
3818
+ receivable_synced_at: string | null;
3819
+ status_code: number | null;
3820
+ updated_at: string;
3821
+ };
3822
+ Insert: {
3823
+ account_key?: string;
3824
+ amount_excl?: number | null;
3825
+ amount_incl?: number | null;
3826
+ amount_open?: number | null;
3827
+ created_at?: string;
3828
+ currency?: string | null;
3829
+ customer_code?: string | null;
3830
+ customer_exact_id?: string | null;
3831
+ customer_name?: string | null;
3832
+ description?: string | null;
3833
+ division_code?: number | null;
3834
+ due_date?: string | null;
3835
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3836
+ exact_id: string;
3837
+ exact_modified?: string | null;
3838
+ exact_timestamp?: number | null;
3839
+ id?: string;
3840
+ invoice_date?: string | null;
3841
+ invoice_number?: string | null;
3842
+ order_number?: string | null;
3843
+ paid_at?: string | null;
3844
+ payment_status?: string;
3845
+ raw?: import("../integrations/supabase/types").Json | null;
3846
+ receivable_synced_at?: string | null;
3847
+ status_code?: number | null;
3848
+ updated_at?: string;
3849
+ };
3850
+ Update: {
3851
+ account_key?: string;
3852
+ amount_excl?: number | null;
3853
+ amount_incl?: number | null;
3854
+ amount_open?: number | null;
3855
+ created_at?: string;
3856
+ currency?: string | null;
3857
+ customer_code?: string | null;
3858
+ customer_exact_id?: string | null;
3859
+ customer_name?: string | null;
3860
+ description?: string | null;
3861
+ division_code?: number | null;
3862
+ due_date?: string | null;
3863
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3864
+ exact_id?: string;
3865
+ exact_modified?: string | null;
3866
+ exact_timestamp?: number | null;
3867
+ id?: string;
3868
+ invoice_date?: string | null;
3869
+ invoice_number?: string | null;
3870
+ order_number?: string | null;
3871
+ paid_at?: string | null;
3872
+ payment_status?: string;
3873
+ raw?: import("../integrations/supabase/types").Json | null;
3874
+ receivable_synced_at?: string | null;
3875
+ status_code?: number | null;
3876
+ updated_at?: string;
3877
+ };
3878
+ Relationships: [];
3879
+ };
3880
+ exact_auth_items: {
3881
+ Row: {
3882
+ account_key: string;
3883
+ barcode: string | null;
3884
+ code: string | null;
3885
+ cost_price: number | null;
3886
+ created_at: string;
3887
+ description: string | null;
3888
+ division_code: number | null;
3889
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3890
+ exact_id: string;
3891
+ exact_modified: string | null;
3892
+ exact_timestamp: number | null;
3893
+ gl_account_code: string | null;
3894
+ id: string;
3895
+ is_active: boolean;
3896
+ is_sales_item: boolean | null;
3897
+ item_type: string | null;
3898
+ raw: import("../integrations/supabase/types").Json | null;
3899
+ sales_price: number | null;
3900
+ unit: string | null;
3901
+ updated_at: string;
3902
+ vat_code: string | null;
3903
+ };
3904
+ Insert: {
3905
+ account_key?: string;
3906
+ barcode?: string | null;
3907
+ code?: string | null;
3908
+ cost_price?: number | null;
3909
+ created_at?: string;
3910
+ description?: string | null;
3911
+ division_code?: number | null;
3912
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3913
+ exact_id: string;
3914
+ exact_modified?: string | null;
3915
+ exact_timestamp?: number | null;
3916
+ gl_account_code?: string | null;
3917
+ id?: string;
3918
+ is_active?: boolean;
3919
+ is_sales_item?: boolean | null;
3920
+ item_type?: string | null;
3921
+ raw?: import("../integrations/supabase/types").Json | null;
3922
+ sales_price?: number | null;
3923
+ unit?: string | null;
3924
+ updated_at?: string;
3925
+ vat_code?: string | null;
3926
+ };
3927
+ Update: {
3928
+ account_key?: string;
3929
+ barcode?: string | null;
3930
+ code?: string | null;
3931
+ cost_price?: number | null;
3932
+ created_at?: string;
3933
+ description?: string | null;
3934
+ division_code?: number | null;
3935
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3936
+ exact_id?: string;
3937
+ exact_modified?: string | null;
3938
+ exact_timestamp?: number | null;
3939
+ gl_account_code?: string | null;
3940
+ id?: string;
3941
+ is_active?: boolean;
3942
+ is_sales_item?: boolean | null;
3943
+ item_type?: string | null;
3944
+ raw?: import("../integrations/supabase/types").Json | null;
3945
+ sales_price?: number | null;
3946
+ unit?: string | null;
3947
+ updated_at?: string;
3948
+ vat_code?: string | null;
3949
+ };
3950
+ Relationships: [];
3951
+ };
3952
+ exact_auth_sync_log: {
3953
+ Row: {
3954
+ account_key: string;
3955
+ calls_used: number;
3956
+ created_at: string;
3957
+ domain: string;
3958
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3959
+ error: string | null;
3960
+ finished_at: string | null;
3961
+ id: string;
3962
+ ok: boolean;
3963
+ records: number;
3964
+ started_at: string;
3965
+ };
3966
+ Insert: {
3967
+ account_key?: string;
3968
+ calls_used?: number;
3969
+ created_at?: string;
3970
+ domain: string;
3971
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3972
+ error?: string | null;
3973
+ finished_at?: string | null;
3974
+ id?: string;
3975
+ ok?: boolean;
3976
+ records?: number;
3977
+ started_at?: string;
3978
+ };
3979
+ Update: {
3980
+ account_key?: string;
3981
+ calls_used?: number;
3982
+ created_at?: string;
3983
+ domain?: string;
3984
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3985
+ error?: string | null;
3986
+ finished_at?: string | null;
3987
+ id?: string;
3988
+ ok?: boolean;
3989
+ records?: number;
3990
+ started_at?: string;
3991
+ };
3992
+ Relationships: [];
3993
+ };
3994
+ exact_auth_sync_state: {
3995
+ Row: {
3996
+ account_key: string;
3997
+ created_at: string;
3998
+ cursor_timestamp: number;
3999
+ division_code: number | null;
4000
+ domain: string;
4001
+ duration_ms: number | null;
4002
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4003
+ initial_sync_done: boolean;
4004
+ last_error: string | null;
4005
+ last_run_at: string | null;
4006
+ last_success_at: string | null;
4007
+ locked_at: string | null;
4008
+ needs_initial_sync: boolean;
4009
+ record_count: number;
4010
+ updated_at: string;
4011
+ };
4012
+ Insert: {
4013
+ account_key?: string;
4014
+ created_at?: string;
4015
+ cursor_timestamp?: number;
4016
+ division_code?: number | null;
4017
+ domain: string;
4018
+ duration_ms?: number | null;
4019
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4020
+ initial_sync_done?: boolean;
4021
+ last_error?: string | null;
4022
+ last_run_at?: string | null;
4023
+ last_success_at?: string | null;
4024
+ locked_at?: string | null;
4025
+ needs_initial_sync?: boolean;
4026
+ record_count?: number;
4027
+ updated_at?: string;
4028
+ };
4029
+ Update: {
4030
+ account_key?: string;
4031
+ created_at?: string;
4032
+ cursor_timestamp?: number;
4033
+ division_code?: number | null;
4034
+ domain?: string;
4035
+ duration_ms?: number | null;
4036
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4037
+ initial_sync_done?: boolean;
4038
+ last_error?: string | null;
4039
+ last_run_at?: string | null;
4040
+ last_success_at?: string | null;
4041
+ locked_at?: string | null;
4042
+ needs_initial_sync?: boolean;
4043
+ record_count?: number;
4044
+ updated_at?: string;
4045
+ };
4046
+ Relationships: [];
4047
+ };
3580
4048
  exact_bulk_operation_items: {
3581
4049
  Row: {
3582
4050
  attempts: number;
@@ -5268,12 +5736,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5268
5736
  attempts: number;
5269
5737
  connection_id: string;
5270
5738
  created_at: string;
5739
+ desired_available: boolean | null;
5271
5740
  gateway_attempt_id: string | null;
5272
5741
  id: string;
5273
5742
  last_error: string | null;
5743
+ locked_at: string | null;
5744
+ locked_by: string | null;
5745
+ next_attempt_at: string;
5274
5746
  number_of_pieces: number;
5275
5747
  sent_at: string | null;
5276
5748
  status: string;
5749
+ superseded_by: string | null;
5277
5750
  trade_item_id: string;
5278
5751
  updated_at: string;
5279
5752
  user_id: string;
@@ -5282,12 +5755,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5282
5755
  attempts?: number;
5283
5756
  connection_id: string;
5284
5757
  created_at?: string;
5758
+ desired_available?: boolean | null;
5285
5759
  gateway_attempt_id?: string | null;
5286
5760
  id?: string;
5287
5761
  last_error?: string | null;
5762
+ locked_at?: string | null;
5763
+ locked_by?: string | null;
5764
+ next_attempt_at?: string;
5288
5765
  number_of_pieces?: number;
5289
5766
  sent_at?: string | null;
5290
5767
  status?: string;
5768
+ superseded_by?: string | null;
5291
5769
  trade_item_id: string;
5292
5770
  updated_at?: string;
5293
5771
  user_id: string;
@@ -5296,12 +5774,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5296
5774
  attempts?: number;
5297
5775
  connection_id?: string;
5298
5776
  created_at?: string;
5777
+ desired_available?: boolean | null;
5299
5778
  gateway_attempt_id?: string | null;
5300
5779
  id?: string;
5301
5780
  last_error?: string | null;
5781
+ locked_at?: string | null;
5782
+ locked_by?: string | null;
5783
+ next_attempt_at?: string;
5302
5784
  number_of_pieces?: number;
5303
5785
  sent_at?: string | null;
5304
5786
  status?: string;
5787
+ superseded_by?: string | null;
5305
5788
  trade_item_id?: string;
5306
5789
  updated_at?: string;
5307
5790
  user_id?: string;
@@ -8050,6 +8533,69 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8050
8533
  };
8051
8534
  Relationships: [];
8052
8535
  };
8536
+ logistics_floriday_pushes: {
8537
+ Row: {
8538
+ attempts: number;
8539
+ created_at: string;
8540
+ first_queued_at: string;
8541
+ fulfillment_order_id: string | null;
8542
+ id: string;
8543
+ last_error: string | null;
8544
+ last_error_at: string | null;
8545
+ last_sent_hash: string | null;
8546
+ locked_by: string | null;
8547
+ locked_until: string | null;
8548
+ next_attempt_at: string;
8549
+ order_ref: string;
8550
+ payload: import("../integrations/supabase/types").Json;
8551
+ payload_hash: string | null;
8552
+ revision: number;
8553
+ sent_at: string | null;
8554
+ status: string;
8555
+ updated_at: string;
8556
+ };
8557
+ Insert: {
8558
+ attempts?: number;
8559
+ created_at?: string;
8560
+ first_queued_at?: string;
8561
+ fulfillment_order_id?: string | null;
8562
+ id?: string;
8563
+ last_error?: string | null;
8564
+ last_error_at?: string | null;
8565
+ last_sent_hash?: string | null;
8566
+ locked_by?: string | null;
8567
+ locked_until?: string | null;
8568
+ next_attempt_at?: string;
8569
+ order_ref: string;
8570
+ payload?: import("../integrations/supabase/types").Json;
8571
+ payload_hash?: string | null;
8572
+ revision?: number;
8573
+ sent_at?: string | null;
8574
+ status?: string;
8575
+ updated_at?: string;
8576
+ };
8577
+ Update: {
8578
+ attempts?: number;
8579
+ created_at?: string;
8580
+ first_queued_at?: string;
8581
+ fulfillment_order_id?: string | null;
8582
+ id?: string;
8583
+ last_error?: string | null;
8584
+ last_error_at?: string | null;
8585
+ last_sent_hash?: string | null;
8586
+ locked_by?: string | null;
8587
+ locked_until?: string | null;
8588
+ next_attempt_at?: string;
8589
+ order_ref?: string;
8590
+ payload?: import("../integrations/supabase/types").Json;
8591
+ payload_hash?: string | null;
8592
+ revision?: number;
8593
+ sent_at?: string | null;
8594
+ status?: string;
8595
+ updated_at?: string;
8596
+ };
8597
+ Relationships: [];
8598
+ };
8053
8599
  logistics_formulas: {
8054
8600
  Row: {
8055
8601
  created_at: string;
@@ -8661,6 +9207,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8661
9207
  };
8662
9208
  logistics_tasks: {
8663
9209
  Row: {
9210
+ attempt_log: import("../integrations/supabase/types").Json;
9211
+ attempts: number;
8664
9212
  buffer_ref: string | null;
8665
9213
  claimed_at: string | null;
8666
9214
  claimed_by: string | null;
@@ -8670,6 +9218,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8670
9218
  due_at: string | null;
8671
9219
  error: string | null;
8672
9220
  id: string;
9221
+ last_error: string | null;
9222
+ next_attempt_at: string | null;
8673
9223
  order_ref: string;
8674
9224
  owner_module: string;
8675
9225
  payload: import("../integrations/supabase/types").Json;
@@ -8690,6 +9240,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8690
9240
  user_id: string;
8691
9241
  };
8692
9242
  Insert: {
9243
+ attempt_log?: import("../integrations/supabase/types").Json;
9244
+ attempts?: number;
8693
9245
  buffer_ref?: string | null;
8694
9246
  claimed_at?: string | null;
8695
9247
  claimed_by?: string | null;
@@ -8699,6 +9251,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8699
9251
  due_at?: string | null;
8700
9252
  error?: string | null;
8701
9253
  id?: string;
9254
+ last_error?: string | null;
9255
+ next_attempt_at?: string | null;
8702
9256
  order_ref: string;
8703
9257
  owner_module: string;
8704
9258
  payload?: import("../integrations/supabase/types").Json;
@@ -8719,6 +9273,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8719
9273
  user_id?: string;
8720
9274
  };
8721
9275
  Update: {
9276
+ attempt_log?: import("../integrations/supabase/types").Json;
9277
+ attempts?: number;
8722
9278
  buffer_ref?: string | null;
8723
9279
  claimed_at?: string | null;
8724
9280
  claimed_by?: string | null;
@@ -8728,6 +9284,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8728
9284
  due_at?: string | null;
8729
9285
  error?: string | null;
8730
9286
  id?: string;
9287
+ last_error?: string | null;
9288
+ next_attempt_at?: string | null;
8731
9289
  order_ref?: string;
8732
9290
  owner_module?: string;
8733
9291
  payload?: import("../integrations/supabase/types").Json;
@@ -10077,6 +10635,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10077
10635
  };
10078
10636
  offer_settings: {
10079
10637
  Row: {
10638
+ brand_name: string | null;
10080
10639
  button_color: string;
10081
10640
  created_at: string;
10082
10641
  default_countries: string[];
@@ -10098,6 +10657,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10098
10657
  updated_at: string;
10099
10658
  };
10100
10659
  Insert: {
10660
+ brand_name?: string | null;
10101
10661
  button_color?: string;
10102
10662
  created_at?: string;
10103
10663
  default_countries?: string[];
@@ -10119,6 +10679,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10119
10679
  updated_at?: string;
10120
10680
  };
10121
10681
  Update: {
10682
+ brand_name?: string | null;
10122
10683
  button_color?: string;
10123
10684
  created_at?: string;
10124
10685
  default_countries?: string[];
@@ -17729,6 +18290,85 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17729
18290
  };
17730
18291
  Returns: import("../integrations/supabase/types").Json;
17731
18292
  };
18293
+ claim_floriday_stock_queue: {
18294
+ Args: {
18295
+ p_limit?: number;
18296
+ p_worker?: string;
18297
+ };
18298
+ Returns: {
18299
+ attempts: number;
18300
+ connection_id: string;
18301
+ created_at: string;
18302
+ desired_available: boolean | null;
18303
+ gateway_attempt_id: string | null;
18304
+ id: string;
18305
+ last_error: string | null;
18306
+ locked_at: string | null;
18307
+ locked_by: string | null;
18308
+ next_attempt_at: string;
18309
+ number_of_pieces: number;
18310
+ sent_at: string | null;
18311
+ status: string;
18312
+ superseded_by: string | null;
18313
+ trade_item_id: string;
18314
+ updated_at: string;
18315
+ user_id: string;
18316
+ }[];
18317
+ SetofOptions: {
18318
+ from: "*";
18319
+ to: "floriday_continuous_stock_queue";
18320
+ isOneToOne: false;
18321
+ isSetofReturn: true;
18322
+ };
18323
+ };
18324
+ claim_logistics_tasks: {
18325
+ Args: {
18326
+ _limit?: number;
18327
+ _owner_module: string;
18328
+ _stale_minutes?: number;
18329
+ _task_type: string;
18330
+ _worker: string;
18331
+ };
18332
+ Returns: {
18333
+ attempt_log: import("../integrations/supabase/types").Json;
18334
+ attempts: number;
18335
+ buffer_ref: string | null;
18336
+ claimed_at: string | null;
18337
+ claimed_by: string | null;
18338
+ completed_at: string | null;
18339
+ created_at: string;
18340
+ depends_on: string[];
18341
+ due_at: string | null;
18342
+ error: string | null;
18343
+ id: string;
18344
+ last_error: string | null;
18345
+ next_attempt_at: string | null;
18346
+ order_ref: string;
18347
+ owner_module: string;
18348
+ payload: import("../integrations/supabase/types").Json;
18349
+ plan_run_id: string | null;
18350
+ planned_end: string | null;
18351
+ planned_start: string | null;
18352
+ priority: number;
18353
+ result: import("../integrations/supabase/types").Json | null;
18354
+ rule_config_id: string | null;
18355
+ rule_version: number | null;
18356
+ sequence: number;
18357
+ shadow: boolean;
18358
+ started_at: string | null;
18359
+ status: string;
18360
+ strategy_id: string | null;
18361
+ task_type: string;
18362
+ updated_at: string;
18363
+ user_id: string;
18364
+ }[];
18365
+ SetofOptions: {
18366
+ from: "*";
18367
+ to: "logistics_tasks";
18368
+ isOneToOne: false;
18369
+ isSetofReturn: true;
18370
+ };
18371
+ };
17732
18372
  claim_print_jobs: {
17733
18373
  Args: {
17734
18374
  _agent_id: string;
@@ -17793,10 +18433,24 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17793
18433
  isSetofReturn: true;
17794
18434
  };
17795
18435
  };
18436
+ cleanup_floriday_stock_queue: {
18437
+ Args: never;
18438
+ Returns: undefined;
18439
+ };
17796
18440
  cleanup_old_bookings: {
17797
18441
  Args: never;
17798
18442
  Returns: undefined;
17799
18443
  };
18444
+ complete_floriday_stock_queue: {
18445
+ Args: {
18446
+ p_attempt_id?: string;
18447
+ p_error?: string;
18448
+ p_id: string;
18449
+ p_ok: boolean;
18450
+ p_permanent?: boolean;
18451
+ };
18452
+ Returns: undefined;
18453
+ };
17800
18454
  consume_bom_for_production: {
17801
18455
  Args: {
17802
18456
  p_connection_id: string;
@@ -17969,6 +18623,21 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17969
18623
  Args: never;
17970
18624
  Returns: string;
17971
18625
  };
18626
+ exact_auth_consume_calls: {
18627
+ Args: {
18628
+ _account_key: string;
18629
+ _calls?: number;
18630
+ _day_limit?: number;
18631
+ _division_code: number;
18632
+ _environment: string;
18633
+ _minute_limit?: number;
18634
+ };
18635
+ Returns: import("../integrations/supabase/types").Json;
18636
+ };
18637
+ exact_auth_prune_sync_log: {
18638
+ Args: never;
18639
+ Returns: undefined;
18640
+ };
17972
18641
  exact_decrypt: {
17973
18642
  Args: {
17974
18643
  cipher: string;
@@ -18178,6 +18847,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18178
18847
  };
18179
18848
  Returns: number;
18180
18849
  };
18850
+ get_offer_branding: {
18851
+ Args: never;
18852
+ Returns: import("../integrations/supabase/types").Json;
18853
+ };
18181
18854
  get_offer_by_link_code: {
18182
18855
  Args: {
18183
18856
  p_code: string;
@@ -18469,6 +19142,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18469
19142
  p_worker?: string;
18470
19143
  };
18471
19144
  Returns: {
19145
+ attempt_log: import("../integrations/supabase/types").Json;
19146
+ attempts: number;
18472
19147
  buffer_ref: string | null;
18473
19148
  claimed_at: string | null;
18474
19149
  claimed_by: string | null;
@@ -18478,6 +19153,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18478
19153
  due_at: string | null;
18479
19154
  error: string | null;
18480
19155
  id: string;
19156
+ last_error: string | null;
19157
+ next_attempt_at: string | null;
18481
19158
  order_ref: string;
18482
19159
  owner_module: string;
18483
19160
  payload: import("../integrations/supabase/types").Json;
@@ -18510,6 +19187,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18510
19187
  p_worker?: string;
18511
19188
  };
18512
19189
  Returns: {
19190
+ attempt_log: import("../integrations/supabase/types").Json;
19191
+ attempts: number;
18513
19192
  buffer_ref: string | null;
18514
19193
  claimed_at: string | null;
18515
19194
  claimed_by: string | null;
@@ -18519,6 +19198,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18519
19198
  due_at: string | null;
18520
19199
  error: string | null;
18521
19200
  id: string;
19201
+ last_error: string | null;
19202
+ next_attempt_at: string | null;
18522
19203
  order_ref: string;
18523
19204
  owner_module: string;
18524
19205
  payload: import("../integrations/supabase/types").Json;
@@ -18551,6 +19232,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18551
19232
  p_task_id: string;
18552
19233
  };
18553
19234
  Returns: {
19235
+ attempt_log: import("../integrations/supabase/types").Json;
19236
+ attempts: number;
18554
19237
  buffer_ref: string | null;
18555
19238
  claimed_at: string | null;
18556
19239
  claimed_by: string | null;
@@ -18560,6 +19243,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18560
19243
  due_at: string | null;
18561
19244
  error: string | null;
18562
19245
  id: string;
19246
+ last_error: string | null;
19247
+ next_attempt_at: string | null;
18563
19248
  order_ref: string;
18564
19249
  owner_module: string;
18565
19250
  payload: import("../integrations/supabase/types").Json;
@@ -18641,6 +19326,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18641
19326
  p_task_id: string;
18642
19327
  };
18643
19328
  Returns: {
19329
+ attempt_log: import("../integrations/supabase/types").Json;
19330
+ attempts: number;
18644
19331
  buffer_ref: string | null;
18645
19332
  claimed_at: string | null;
18646
19333
  claimed_by: string | null;
@@ -18650,6 +19337,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18650
19337
  due_at: string | null;
18651
19338
  error: string | null;
18652
19339
  id: string;
19340
+ last_error: string | null;
19341
+ next_attempt_at: string | null;
18653
19342
  order_ref: string;
18654
19343
  owner_module: string;
18655
19344
  payload: import("../integrations/supabase/types").Json;
@@ -18676,6 +19365,51 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18676
19365
  isSetofReturn: false;
18677
19366
  };
18678
19367
  };
19368
+ logistics_floriday_claim_pushes: {
19369
+ Args: {
19370
+ _lease_seconds?: number;
19371
+ _limit?: number;
19372
+ _worker?: string;
19373
+ };
19374
+ Returns: {
19375
+ attempts: number;
19376
+ fulfillment_order_id: string;
19377
+ id: string;
19378
+ last_sent_hash: string;
19379
+ order_ref: string;
19380
+ payload: import("../integrations/supabase/types").Json;
19381
+ payload_hash: string;
19382
+ revision: number;
19383
+ }[];
19384
+ };
19385
+ logistics_floriday_finish_push: {
19386
+ Args: {
19387
+ _error?: string;
19388
+ _fulfillment_order_id?: string;
19389
+ _id: string;
19390
+ _max_age_hours?: number;
19391
+ _max_attempts?: number;
19392
+ _ok: boolean;
19393
+ _permanent?: boolean;
19394
+ _revision: number;
19395
+ _sent_hash?: string;
19396
+ };
19397
+ Returns: string;
19398
+ };
19399
+ logistics_floriday_prune_pushes: {
19400
+ Args: {
19401
+ _days?: number;
19402
+ };
19403
+ Returns: number;
19404
+ };
19405
+ logistics_floriday_queue_push: {
19406
+ Args: {
19407
+ _order_ref: string;
19408
+ _payload?: import("../integrations/supabase/types").Json;
19409
+ _payload_hash?: string;
19410
+ };
19411
+ Returns: string;
19412
+ };
18679
19413
  logistics_live_carriers: {
18680
19414
  Args: {
18681
19415
  p_order_ref: string;
@@ -19403,6 +20137,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19403
20137
  Args: never;
19404
20138
  Returns: undefined;
19405
20139
  };
20140
+ run_logistics_tasks_dispatch: {
20141
+ Args: never;
20142
+ Returns: undefined;
20143
+ };
19406
20144
  run_twinfield_queue_tick: {
19407
20145
  Args: never;
19408
20146
  Returns: undefined;
@@ -19643,6 +20381,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19643
20381
  };
19644
20382
  Returns: number;
19645
20383
  };
20384
+ schedule_floriday_stock_queue_process: {
20385
+ Args: {
20386
+ p_apikey: string;
20387
+ p_url: string;
20388
+ };
20389
+ Returns: number;
20390
+ };
19646
20391
  schedule_floriday_token_refresh: {
19647
20392
  Args: {
19648
20393
  p_apikey: string;
@@ -23398,268 +24143,736 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
23398
24143
  referencedColumns: ["id"];
23399
24144
  }];
23400
24145
  };
23401
- exact_bulk_operation_items: {
24146
+ exact_auth_call_budget: {
23402
24147
  Row: {
23403
- attempts: number;
23404
- bulk_operation_id: string;
23405
- created_at: string;
23406
- error_message: string | null;
23407
- id: string;
23408
- invoice_cache_id: string | null;
23409
- invoice_exact_id: string | null;
23410
- processed_at: string | null;
23411
- result_data: import("../integrations/supabase/types").Json | null;
23412
- status: string;
24148
+ account_key: string;
24149
+ day_count: number;
24150
+ day_date: string;
24151
+ division_code: number;
24152
+ environment: string;
24153
+ minute_count: number;
24154
+ minute_window: string;
24155
+ updated_at: string;
23413
24156
  };
23414
24157
  Insert: {
23415
- attempts?: number;
23416
- bulk_operation_id: string;
23417
- created_at?: string;
23418
- error_message?: string | null;
23419
- id?: string;
23420
- invoice_cache_id?: string | null;
23421
- invoice_exact_id?: string | null;
23422
- processed_at?: string | null;
23423
- result_data?: import("../integrations/supabase/types").Json | null;
23424
- status?: string;
24158
+ account_key?: string;
24159
+ day_count?: number;
24160
+ day_date?: string;
24161
+ division_code?: number;
24162
+ environment: string;
24163
+ minute_count?: number;
24164
+ minute_window?: string;
24165
+ updated_at?: string;
23425
24166
  };
23426
24167
  Update: {
23427
- attempts?: number;
23428
- bulk_operation_id?: string;
23429
- created_at?: string;
23430
- error_message?: string | null;
23431
- id?: string;
23432
- invoice_cache_id?: string | null;
23433
- invoice_exact_id?: string | null;
23434
- processed_at?: string | null;
23435
- result_data?: import("../integrations/supabase/types").Json | null;
23436
- status?: string;
24168
+ account_key?: string;
24169
+ day_count?: number;
24170
+ day_date?: string;
24171
+ division_code?: number;
24172
+ environment?: string;
24173
+ minute_count?: number;
24174
+ minute_window?: string;
24175
+ updated_at?: string;
23437
24176
  };
23438
- Relationships: [{
23439
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
23440
- columns: ["bulk_operation_id"];
23441
- isOneToOne: false;
23442
- referencedRelation: "exact_bulk_operations";
23443
- referencedColumns: ["id"];
23444
- }, {
23445
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
23446
- columns: ["invoice_cache_id"];
23447
- isOneToOne: false;
23448
- referencedRelation: "exact_invoices_cache";
23449
- referencedColumns: ["id"];
23450
- }];
24177
+ Relationships: [];
23451
24178
  };
23452
- exact_bulk_operations: {
24179
+ exact_auth_customers: {
23453
24180
  Row: {
23454
- completed_at: string | null;
23455
- connection_id: string;
24181
+ account_key: string;
24182
+ address_line1: string | null;
24183
+ chamber_of_commerce: string | null;
24184
+ city: string | null;
24185
+ code: string | null;
24186
+ country: string | null;
23456
24187
  created_at: string;
23457
- created_by: string | null;
23458
- error_message: string | null;
23459
- failed_count: number | null;
24188
+ currency: string | null;
24189
+ division_code: number | null;
24190
+ email: string | null;
24191
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24192
+ exact_id: string;
24193
+ exact_modified: string | null;
24194
+ exact_timestamp: number | null;
23460
24195
  id: string;
23461
- operation_type: string;
23462
- processed_count: number | null;
23463
- result_data: import("../integrations/supabase/types").Json | null;
23464
- started_at: string | null;
23465
- status: string;
23466
- total_count: number | null;
24196
+ is_active: boolean;
24197
+ name: string | null;
24198
+ phone: string | null;
24199
+ postcode: string | null;
24200
+ raw: import("../integrations/supabase/types").Json | null;
24201
+ status: string | null;
23467
24202
  updated_at: string;
24203
+ vat_number: string | null;
24204
+ website: string | null;
23468
24205
  };
23469
24206
  Insert: {
23470
- completed_at?: string | null;
23471
- connection_id: string;
24207
+ account_key?: string;
24208
+ address_line1?: string | null;
24209
+ chamber_of_commerce?: string | null;
24210
+ city?: string | null;
24211
+ code?: string | null;
24212
+ country?: string | null;
23472
24213
  created_at?: string;
23473
- created_by?: string | null;
23474
- error_message?: string | null;
23475
- failed_count?: number | null;
24214
+ currency?: string | null;
24215
+ division_code?: number | null;
24216
+ email?: string | null;
24217
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24218
+ exact_id: string;
24219
+ exact_modified?: string | null;
24220
+ exact_timestamp?: number | null;
23476
24221
  id?: string;
23477
- operation_type: string;
23478
- processed_count?: number | null;
23479
- result_data?: import("../integrations/supabase/types").Json | null;
23480
- started_at?: string | null;
23481
- status?: string;
23482
- total_count?: number | null;
24222
+ is_active?: boolean;
24223
+ name?: string | null;
24224
+ phone?: string | null;
24225
+ postcode?: string | null;
24226
+ raw?: import("../integrations/supabase/types").Json | null;
24227
+ status?: string | null;
23483
24228
  updated_at?: string;
24229
+ vat_number?: string | null;
24230
+ website?: string | null;
23484
24231
  };
23485
24232
  Update: {
23486
- completed_at?: string | null;
23487
- connection_id?: string;
24233
+ account_key?: string;
24234
+ address_line1?: string | null;
24235
+ chamber_of_commerce?: string | null;
24236
+ city?: string | null;
24237
+ code?: string | null;
24238
+ country?: string | null;
23488
24239
  created_at?: string;
23489
- created_by?: string | null;
23490
- error_message?: string | null;
23491
- failed_count?: number | null;
24240
+ currency?: string | null;
24241
+ division_code?: number | null;
24242
+ email?: string | null;
24243
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24244
+ exact_id?: string;
24245
+ exact_modified?: string | null;
24246
+ exact_timestamp?: number | null;
23492
24247
  id?: string;
23493
- operation_type?: string;
23494
- processed_count?: number | null;
23495
- result_data?: import("../integrations/supabase/types").Json | null;
23496
- started_at?: string | null;
23497
- status?: string;
23498
- total_count?: number | null;
24248
+ is_active?: boolean;
24249
+ name?: string | null;
24250
+ phone?: string | null;
24251
+ postcode?: string | null;
24252
+ raw?: import("../integrations/supabase/types").Json | null;
24253
+ status?: string | null;
23499
24254
  updated_at?: string;
24255
+ vat_number?: string | null;
24256
+ website?: string | null;
23500
24257
  };
23501
- Relationships: [{
23502
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
23503
- columns: ["connection_id"];
23504
- isOneToOne: false;
23505
- referencedRelation: "exact_connections";
23506
- referencedColumns: ["id"];
23507
- }];
24258
+ Relationships: [];
23508
24259
  };
23509
- exact_connections: {
24260
+ exact_auth_divisions: {
23510
24261
  Row: {
23511
- access_token_encrypted: string;
24262
+ account_key: string;
23512
24263
  company_name: string | null;
23513
- connected_at: string;
23514
- connected_by: string | null;
24264
+ created_at: string;
23515
24265
  division_code: number | null;
23516
24266
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23517
- expires_at: string;
23518
24267
  id: string;
23519
- last_error: string | null;
23520
- last_refreshed_at: string | null;
23521
- last_tested_at: string | null;
23522
- refresh_token_encrypted: string;
23523
- status: string;
24268
+ last_synced_at: string | null;
23524
24269
  updated_at: string;
23525
24270
  };
23526
24271
  Insert: {
23527
- access_token_encrypted: string;
24272
+ account_key?: string;
23528
24273
  company_name?: string | null;
23529
- connected_at?: string;
23530
- connected_by?: string | null;
24274
+ created_at?: string;
23531
24275
  division_code?: number | null;
23532
24276
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23533
- expires_at: string;
23534
24277
  id?: string;
23535
- last_error?: string | null;
23536
- last_refreshed_at?: string | null;
23537
- last_tested_at?: string | null;
23538
- refresh_token_encrypted: string;
23539
- status?: string;
24278
+ last_synced_at?: string | null;
23540
24279
  updated_at?: string;
23541
24280
  };
23542
24281
  Update: {
23543
- access_token_encrypted?: string;
24282
+ account_key?: string;
23544
24283
  company_name?: string | null;
23545
- connected_at?: string;
23546
- connected_by?: string | null;
24284
+ created_at?: string;
23547
24285
  division_code?: number | null;
23548
24286
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23549
- expires_at?: string;
23550
24287
  id?: string;
23551
- last_error?: string | null;
23552
- last_refreshed_at?: string | null;
23553
- last_tested_at?: string | null;
23554
- refresh_token_encrypted?: string;
23555
- status?: string;
24288
+ last_synced_at?: string | null;
23556
24289
  updated_at?: string;
23557
24290
  };
23558
24291
  Relationships: [];
23559
24292
  };
23560
- exact_credentials: {
24293
+ exact_auth_invoice_lines: {
23561
24294
  Row: {
23562
- client_id: string;
23563
- client_secret_encrypted: string;
24295
+ account_key: string;
24296
+ amount_excl: number | null;
23564
24297
  created_at: string;
24298
+ description: string | null;
24299
+ discount: number | null;
23565
24300
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24301
+ exact_id: string;
24302
+ exact_timestamp: number | null;
23566
24303
  id: string;
23567
- redirect_uri: string;
24304
+ invoice_exact_id: string;
24305
+ item_code: string | null;
24306
+ item_exact_id: string | null;
24307
+ line_number: number | null;
24308
+ quantity: number | null;
24309
+ raw: import("../integrations/supabase/types").Json | null;
24310
+ unit_price: number | null;
23568
24311
  updated_at: string;
24312
+ vat_amount: number | null;
24313
+ vat_code: string | null;
23569
24314
  };
23570
24315
  Insert: {
23571
- client_id: string;
23572
- client_secret_encrypted: string;
24316
+ account_key?: string;
24317
+ amount_excl?: number | null;
23573
24318
  created_at?: string;
24319
+ description?: string | null;
24320
+ discount?: number | null;
23574
24321
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24322
+ exact_id: string;
24323
+ exact_timestamp?: number | null;
23575
24324
  id?: string;
23576
- redirect_uri?: string;
24325
+ invoice_exact_id: string;
24326
+ item_code?: string | null;
24327
+ item_exact_id?: string | null;
24328
+ line_number?: number | null;
24329
+ quantity?: number | null;
24330
+ raw?: import("../integrations/supabase/types").Json | null;
24331
+ unit_price?: number | null;
23577
24332
  updated_at?: string;
24333
+ vat_amount?: number | null;
24334
+ vat_code?: string | null;
23578
24335
  };
23579
24336
  Update: {
23580
- client_id?: string;
23581
- client_secret_encrypted?: string;
24337
+ account_key?: string;
24338
+ amount_excl?: number | null;
23582
24339
  created_at?: string;
24340
+ description?: string | null;
24341
+ discount?: number | null;
23583
24342
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24343
+ exact_id?: string;
24344
+ exact_timestamp?: number | null;
23584
24345
  id?: string;
23585
- redirect_uri?: string;
24346
+ invoice_exact_id?: string;
24347
+ item_code?: string | null;
24348
+ item_exact_id?: string | null;
24349
+ line_number?: number | null;
24350
+ quantity?: number | null;
24351
+ raw?: import("../integrations/supabase/types").Json | null;
24352
+ unit_price?: number | null;
23586
24353
  updated_at?: string;
24354
+ vat_amount?: number | null;
24355
+ vat_code?: string | null;
23587
24356
  };
23588
24357
  Relationships: [];
23589
24358
  };
23590
- exact_customer_sync_queue: {
24359
+ exact_auth_invoices: {
23591
24360
  Row: {
23592
- attempts: number;
23593
- connection_id: string;
24361
+ account_key: string;
24362
+ amount_excl: number | null;
24363
+ amount_incl: number | null;
24364
+ amount_open: number | null;
23594
24365
  created_at: string;
24366
+ currency: string | null;
24367
+ customer_code: string | null;
23595
24368
  customer_exact_id: string | null;
23596
- error_message: string | null;
24369
+ customer_name: string | null;
24370
+ description: string | null;
24371
+ division_code: number | null;
24372
+ due_date: string | null;
24373
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24374
+ exact_id: string;
24375
+ exact_modified: string | null;
24376
+ exact_timestamp: number | null;
23597
24377
  id: string;
23598
- max_attempts: number;
23599
- operation: string;
23600
- payload: import("../integrations/supabase/types").Json;
23601
- process_at: string;
23602
- processed_at: string | null;
23603
- status: string;
24378
+ invoice_date: string | null;
24379
+ invoice_number: string | null;
24380
+ order_number: string | null;
24381
+ paid_at: string | null;
24382
+ payment_status: string;
24383
+ raw: import("../integrations/supabase/types").Json | null;
24384
+ receivable_synced_at: string | null;
24385
+ status_code: number | null;
23604
24386
  updated_at: string;
23605
24387
  };
23606
24388
  Insert: {
23607
- attempts?: number;
23608
- connection_id: string;
24389
+ account_key?: string;
24390
+ amount_excl?: number | null;
24391
+ amount_incl?: number | null;
24392
+ amount_open?: number | null;
23609
24393
  created_at?: string;
24394
+ currency?: string | null;
24395
+ customer_code?: string | null;
23610
24396
  customer_exact_id?: string | null;
23611
- error_message?: string | null;
24397
+ customer_name?: string | null;
24398
+ description?: string | null;
24399
+ division_code?: number | null;
24400
+ due_date?: string | null;
24401
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24402
+ exact_id: string;
24403
+ exact_modified?: string | null;
24404
+ exact_timestamp?: number | null;
23612
24405
  id?: string;
23613
- max_attempts?: number;
23614
- operation: string;
23615
- payload?: import("../integrations/supabase/types").Json;
23616
- process_at?: string;
23617
- processed_at?: string | null;
23618
- status?: string;
24406
+ invoice_date?: string | null;
24407
+ invoice_number?: string | null;
24408
+ order_number?: string | null;
24409
+ paid_at?: string | null;
24410
+ payment_status?: string;
24411
+ raw?: import("../integrations/supabase/types").Json | null;
24412
+ receivable_synced_at?: string | null;
24413
+ status_code?: number | null;
23619
24414
  updated_at?: string;
23620
24415
  };
23621
24416
  Update: {
23622
- attempts?: number;
23623
- connection_id?: string;
24417
+ account_key?: string;
24418
+ amount_excl?: number | null;
24419
+ amount_incl?: number | null;
24420
+ amount_open?: number | null;
23624
24421
  created_at?: string;
24422
+ currency?: string | null;
24423
+ customer_code?: string | null;
23625
24424
  customer_exact_id?: string | null;
23626
- error_message?: string | null;
24425
+ customer_name?: string | null;
24426
+ description?: string | null;
24427
+ division_code?: number | null;
24428
+ due_date?: string | null;
24429
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24430
+ exact_id?: string;
24431
+ exact_modified?: string | null;
24432
+ exact_timestamp?: number | null;
23627
24433
  id?: string;
23628
- max_attempts?: number;
23629
- operation?: string;
23630
- payload?: import("../integrations/supabase/types").Json;
23631
- process_at?: string;
23632
- processed_at?: string | null;
23633
- status?: string;
24434
+ invoice_date?: string | null;
24435
+ invoice_number?: string | null;
24436
+ order_number?: string | null;
24437
+ paid_at?: string | null;
24438
+ payment_status?: string;
24439
+ raw?: import("../integrations/supabase/types").Json | null;
24440
+ receivable_synced_at?: string | null;
24441
+ status_code?: number | null;
23634
24442
  updated_at?: string;
23635
24443
  };
23636
- Relationships: [{
23637
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
23638
- columns: ["connection_id"];
23639
- isOneToOne: false;
23640
- referencedRelation: "exact_connections";
23641
- referencedColumns: ["id"];
23642
- }];
24444
+ Relationships: [];
23643
24445
  };
23644
- exact_customers_cache: {
24446
+ exact_auth_items: {
23645
24447
  Row: {
23646
- account_name: string | null;
23647
- account_number: string | null;
23648
- address_line1: string | null;
23649
- address_line2: string | null;
23650
- balance: number | null;
23651
- chamber_of_commerce: string | null;
23652
- city: string | null;
23653
- classification_description: string | null;
23654
- connection_id: string;
23655
- contact_name: string | null;
23656
- country: string | null;
23657
- created_at_exact: string | null;
23658
- credit_line: number | null;
23659
- currency: string | null;
23660
- data_raw: import("../integrations/supabase/types").Json | null;
23661
- email: string | null;
23662
- exact_id: string;
24448
+ account_key: string;
24449
+ barcode: string | null;
24450
+ code: string | null;
24451
+ cost_price: number | null;
24452
+ created_at: string;
24453
+ description: string | null;
24454
+ division_code: number | null;
24455
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24456
+ exact_id: string;
24457
+ exact_modified: string | null;
24458
+ exact_timestamp: number | null;
24459
+ gl_account_code: string | null;
24460
+ id: string;
24461
+ is_active: boolean;
24462
+ is_sales_item: boolean | null;
24463
+ item_type: string | null;
24464
+ raw: import("../integrations/supabase/types").Json | null;
24465
+ sales_price: number | null;
24466
+ unit: string | null;
24467
+ updated_at: string;
24468
+ vat_code: string | null;
24469
+ };
24470
+ Insert: {
24471
+ account_key?: string;
24472
+ barcode?: string | null;
24473
+ code?: string | null;
24474
+ cost_price?: number | null;
24475
+ created_at?: string;
24476
+ description?: string | null;
24477
+ division_code?: number | null;
24478
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24479
+ exact_id: string;
24480
+ exact_modified?: string | null;
24481
+ exact_timestamp?: number | null;
24482
+ gl_account_code?: string | null;
24483
+ id?: string;
24484
+ is_active?: boolean;
24485
+ is_sales_item?: boolean | null;
24486
+ item_type?: string | null;
24487
+ raw?: import("../integrations/supabase/types").Json | null;
24488
+ sales_price?: number | null;
24489
+ unit?: string | null;
24490
+ updated_at?: string;
24491
+ vat_code?: string | null;
24492
+ };
24493
+ Update: {
24494
+ account_key?: string;
24495
+ barcode?: string | null;
24496
+ code?: string | null;
24497
+ cost_price?: number | null;
24498
+ created_at?: string;
24499
+ description?: string | null;
24500
+ division_code?: number | null;
24501
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24502
+ exact_id?: string;
24503
+ exact_modified?: string | null;
24504
+ exact_timestamp?: number | null;
24505
+ gl_account_code?: string | null;
24506
+ id?: string;
24507
+ is_active?: boolean;
24508
+ is_sales_item?: boolean | null;
24509
+ item_type?: string | null;
24510
+ raw?: import("../integrations/supabase/types").Json | null;
24511
+ sales_price?: number | null;
24512
+ unit?: string | null;
24513
+ updated_at?: string;
24514
+ vat_code?: string | null;
24515
+ };
24516
+ Relationships: [];
24517
+ };
24518
+ exact_auth_sync_log: {
24519
+ Row: {
24520
+ account_key: string;
24521
+ calls_used: number;
24522
+ created_at: string;
24523
+ domain: string;
24524
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24525
+ error: string | null;
24526
+ finished_at: string | null;
24527
+ id: string;
24528
+ ok: boolean;
24529
+ records: number;
24530
+ started_at: string;
24531
+ };
24532
+ Insert: {
24533
+ account_key?: string;
24534
+ calls_used?: number;
24535
+ created_at?: string;
24536
+ domain: string;
24537
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24538
+ error?: string | null;
24539
+ finished_at?: string | null;
24540
+ id?: string;
24541
+ ok?: boolean;
24542
+ records?: number;
24543
+ started_at?: string;
24544
+ };
24545
+ Update: {
24546
+ account_key?: string;
24547
+ calls_used?: number;
24548
+ created_at?: string;
24549
+ domain?: string;
24550
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24551
+ error?: string | null;
24552
+ finished_at?: string | null;
24553
+ id?: string;
24554
+ ok?: boolean;
24555
+ records?: number;
24556
+ started_at?: string;
24557
+ };
24558
+ Relationships: [];
24559
+ };
24560
+ exact_auth_sync_state: {
24561
+ Row: {
24562
+ account_key: string;
24563
+ created_at: string;
24564
+ cursor_timestamp: number;
24565
+ division_code: number | null;
24566
+ domain: string;
24567
+ duration_ms: number | null;
24568
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24569
+ initial_sync_done: boolean;
24570
+ last_error: string | null;
24571
+ last_run_at: string | null;
24572
+ last_success_at: string | null;
24573
+ locked_at: string | null;
24574
+ needs_initial_sync: boolean;
24575
+ record_count: number;
24576
+ updated_at: string;
24577
+ };
24578
+ Insert: {
24579
+ account_key?: string;
24580
+ created_at?: string;
24581
+ cursor_timestamp?: number;
24582
+ division_code?: number | null;
24583
+ domain: string;
24584
+ duration_ms?: number | null;
24585
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24586
+ initial_sync_done?: boolean;
24587
+ last_error?: string | null;
24588
+ last_run_at?: string | null;
24589
+ last_success_at?: string | null;
24590
+ locked_at?: string | null;
24591
+ needs_initial_sync?: boolean;
24592
+ record_count?: number;
24593
+ updated_at?: string;
24594
+ };
24595
+ Update: {
24596
+ account_key?: string;
24597
+ created_at?: string;
24598
+ cursor_timestamp?: number;
24599
+ division_code?: number | null;
24600
+ domain?: string;
24601
+ duration_ms?: number | null;
24602
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24603
+ initial_sync_done?: boolean;
24604
+ last_error?: string | null;
24605
+ last_run_at?: string | null;
24606
+ last_success_at?: string | null;
24607
+ locked_at?: string | null;
24608
+ needs_initial_sync?: boolean;
24609
+ record_count?: number;
24610
+ updated_at?: string;
24611
+ };
24612
+ Relationships: [];
24613
+ };
24614
+ exact_bulk_operation_items: {
24615
+ Row: {
24616
+ attempts: number;
24617
+ bulk_operation_id: string;
24618
+ created_at: string;
24619
+ error_message: string | null;
24620
+ id: string;
24621
+ invoice_cache_id: string | null;
24622
+ invoice_exact_id: string | null;
24623
+ processed_at: string | null;
24624
+ result_data: import("../integrations/supabase/types").Json | null;
24625
+ status: string;
24626
+ };
24627
+ Insert: {
24628
+ attempts?: number;
24629
+ bulk_operation_id: string;
24630
+ created_at?: string;
24631
+ error_message?: string | null;
24632
+ id?: string;
24633
+ invoice_cache_id?: string | null;
24634
+ invoice_exact_id?: string | null;
24635
+ processed_at?: string | null;
24636
+ result_data?: import("../integrations/supabase/types").Json | null;
24637
+ status?: string;
24638
+ };
24639
+ Update: {
24640
+ attempts?: number;
24641
+ bulk_operation_id?: string;
24642
+ created_at?: string;
24643
+ error_message?: string | null;
24644
+ id?: string;
24645
+ invoice_cache_id?: string | null;
24646
+ invoice_exact_id?: string | null;
24647
+ processed_at?: string | null;
24648
+ result_data?: import("../integrations/supabase/types").Json | null;
24649
+ status?: string;
24650
+ };
24651
+ Relationships: [{
24652
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
24653
+ columns: ["bulk_operation_id"];
24654
+ isOneToOne: false;
24655
+ referencedRelation: "exact_bulk_operations";
24656
+ referencedColumns: ["id"];
24657
+ }, {
24658
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
24659
+ columns: ["invoice_cache_id"];
24660
+ isOneToOne: false;
24661
+ referencedRelation: "exact_invoices_cache";
24662
+ referencedColumns: ["id"];
24663
+ }];
24664
+ };
24665
+ exact_bulk_operations: {
24666
+ Row: {
24667
+ completed_at: string | null;
24668
+ connection_id: string;
24669
+ created_at: string;
24670
+ created_by: string | null;
24671
+ error_message: string | null;
24672
+ failed_count: number | null;
24673
+ id: string;
24674
+ operation_type: string;
24675
+ processed_count: number | null;
24676
+ result_data: import("../integrations/supabase/types").Json | null;
24677
+ started_at: string | null;
24678
+ status: string;
24679
+ total_count: number | null;
24680
+ updated_at: string;
24681
+ };
24682
+ Insert: {
24683
+ completed_at?: string | null;
24684
+ connection_id: string;
24685
+ created_at?: string;
24686
+ created_by?: string | null;
24687
+ error_message?: string | null;
24688
+ failed_count?: number | null;
24689
+ id?: string;
24690
+ operation_type: string;
24691
+ processed_count?: number | null;
24692
+ result_data?: import("../integrations/supabase/types").Json | null;
24693
+ started_at?: string | null;
24694
+ status?: string;
24695
+ total_count?: number | null;
24696
+ updated_at?: string;
24697
+ };
24698
+ Update: {
24699
+ completed_at?: string | null;
24700
+ connection_id?: string;
24701
+ created_at?: string;
24702
+ created_by?: string | null;
24703
+ error_message?: string | null;
24704
+ failed_count?: number | null;
24705
+ id?: string;
24706
+ operation_type?: string;
24707
+ processed_count?: number | null;
24708
+ result_data?: import("../integrations/supabase/types").Json | null;
24709
+ started_at?: string | null;
24710
+ status?: string;
24711
+ total_count?: number | null;
24712
+ updated_at?: string;
24713
+ };
24714
+ Relationships: [{
24715
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
24716
+ columns: ["connection_id"];
24717
+ isOneToOne: false;
24718
+ referencedRelation: "exact_connections";
24719
+ referencedColumns: ["id"];
24720
+ }];
24721
+ };
24722
+ exact_connections: {
24723
+ Row: {
24724
+ access_token_encrypted: string;
24725
+ company_name: string | null;
24726
+ connected_at: string;
24727
+ connected_by: string | null;
24728
+ division_code: number | null;
24729
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24730
+ expires_at: string;
24731
+ id: string;
24732
+ last_error: string | null;
24733
+ last_refreshed_at: string | null;
24734
+ last_tested_at: string | null;
24735
+ refresh_token_encrypted: string;
24736
+ status: string;
24737
+ updated_at: string;
24738
+ };
24739
+ Insert: {
24740
+ access_token_encrypted: string;
24741
+ company_name?: string | null;
24742
+ connected_at?: string;
24743
+ connected_by?: string | null;
24744
+ division_code?: number | null;
24745
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24746
+ expires_at: string;
24747
+ id?: string;
24748
+ last_error?: string | null;
24749
+ last_refreshed_at?: string | null;
24750
+ last_tested_at?: string | null;
24751
+ refresh_token_encrypted: string;
24752
+ status?: string;
24753
+ updated_at?: string;
24754
+ };
24755
+ Update: {
24756
+ access_token_encrypted?: string;
24757
+ company_name?: string | null;
24758
+ connected_at?: string;
24759
+ connected_by?: string | null;
24760
+ division_code?: number | null;
24761
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24762
+ expires_at?: string;
24763
+ id?: string;
24764
+ last_error?: string | null;
24765
+ last_refreshed_at?: string | null;
24766
+ last_tested_at?: string | null;
24767
+ refresh_token_encrypted?: string;
24768
+ status?: string;
24769
+ updated_at?: string;
24770
+ };
24771
+ Relationships: [];
24772
+ };
24773
+ exact_credentials: {
24774
+ Row: {
24775
+ client_id: string;
24776
+ client_secret_encrypted: string;
24777
+ created_at: string;
24778
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24779
+ id: string;
24780
+ redirect_uri: string;
24781
+ updated_at: string;
24782
+ };
24783
+ Insert: {
24784
+ client_id: string;
24785
+ client_secret_encrypted: string;
24786
+ created_at?: string;
24787
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24788
+ id?: string;
24789
+ redirect_uri?: string;
24790
+ updated_at?: string;
24791
+ };
24792
+ Update: {
24793
+ client_id?: string;
24794
+ client_secret_encrypted?: string;
24795
+ created_at?: string;
24796
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24797
+ id?: string;
24798
+ redirect_uri?: string;
24799
+ updated_at?: string;
24800
+ };
24801
+ Relationships: [];
24802
+ };
24803
+ exact_customer_sync_queue: {
24804
+ Row: {
24805
+ attempts: number;
24806
+ connection_id: string;
24807
+ created_at: string;
24808
+ customer_exact_id: string | null;
24809
+ error_message: string | null;
24810
+ id: string;
24811
+ max_attempts: number;
24812
+ operation: string;
24813
+ payload: import("../integrations/supabase/types").Json;
24814
+ process_at: string;
24815
+ processed_at: string | null;
24816
+ status: string;
24817
+ updated_at: string;
24818
+ };
24819
+ Insert: {
24820
+ attempts?: number;
24821
+ connection_id: string;
24822
+ created_at?: string;
24823
+ customer_exact_id?: string | null;
24824
+ error_message?: string | null;
24825
+ id?: string;
24826
+ max_attempts?: number;
24827
+ operation: string;
24828
+ payload?: import("../integrations/supabase/types").Json;
24829
+ process_at?: string;
24830
+ processed_at?: string | null;
24831
+ status?: string;
24832
+ updated_at?: string;
24833
+ };
24834
+ Update: {
24835
+ attempts?: number;
24836
+ connection_id?: string;
24837
+ created_at?: string;
24838
+ customer_exact_id?: string | null;
24839
+ error_message?: string | null;
24840
+ id?: string;
24841
+ max_attempts?: number;
24842
+ operation?: string;
24843
+ payload?: import("../integrations/supabase/types").Json;
24844
+ process_at?: string;
24845
+ processed_at?: string | null;
24846
+ status?: string;
24847
+ updated_at?: string;
24848
+ };
24849
+ Relationships: [{
24850
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
24851
+ columns: ["connection_id"];
24852
+ isOneToOne: false;
24853
+ referencedRelation: "exact_connections";
24854
+ referencedColumns: ["id"];
24855
+ }];
24856
+ };
24857
+ exact_customers_cache: {
24858
+ Row: {
24859
+ account_name: string | null;
24860
+ account_number: string | null;
24861
+ address_line1: string | null;
24862
+ address_line2: string | null;
24863
+ balance: number | null;
24864
+ chamber_of_commerce: string | null;
24865
+ city: string | null;
24866
+ classification_description: string | null;
24867
+ connection_id: string;
24868
+ contact_name: string | null;
24869
+ country: string | null;
24870
+ created_at_exact: string | null;
24871
+ credit_line: number | null;
24872
+ currency: string | null;
24873
+ data_raw: import("../integrations/supabase/types").Json | null;
24874
+ email: string | null;
24875
+ exact_id: string;
23663
24876
  expires_at: string | null;
23664
24877
  fetched_at: string;
23665
24878
  id: string;
@@ -25089,12 +26302,17 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
25089
26302
  attempts: number;
25090
26303
  connection_id: string;
25091
26304
  created_at: string;
26305
+ desired_available: boolean | null;
25092
26306
  gateway_attempt_id: string | null;
25093
26307
  id: string;
25094
26308
  last_error: string | null;
26309
+ locked_at: string | null;
26310
+ locked_by: string | null;
26311
+ next_attempt_at: string;
25095
26312
  number_of_pieces: number;
25096
26313
  sent_at: string | null;
25097
26314
  status: string;
26315
+ superseded_by: string | null;
25098
26316
  trade_item_id: string;
25099
26317
  updated_at: string;
25100
26318
  user_id: string;
@@ -25103,12 +26321,17 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
25103
26321
  attempts?: number;
25104
26322
  connection_id: string;
25105
26323
  created_at?: string;
26324
+ desired_available?: boolean | null;
25106
26325
  gateway_attempt_id?: string | null;
25107
26326
  id?: string;
25108
26327
  last_error?: string | null;
26328
+ locked_at?: string | null;
26329
+ locked_by?: string | null;
26330
+ next_attempt_at?: string;
25109
26331
  number_of_pieces?: number;
25110
26332
  sent_at?: string | null;
25111
26333
  status?: string;
26334
+ superseded_by?: string | null;
25112
26335
  trade_item_id: string;
25113
26336
  updated_at?: string;
25114
26337
  user_id: string;
@@ -25117,12 +26340,17 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
25117
26340
  attempts?: number;
25118
26341
  connection_id?: string;
25119
26342
  created_at?: string;
26343
+ desired_available?: boolean | null;
25120
26344
  gateway_attempt_id?: string | null;
25121
26345
  id?: string;
25122
26346
  last_error?: string | null;
26347
+ locked_at?: string | null;
26348
+ locked_by?: string | null;
26349
+ next_attempt_at?: string;
25123
26350
  number_of_pieces?: number;
25124
26351
  sent_at?: string | null;
25125
26352
  status?: string;
26353
+ superseded_by?: string | null;
25126
26354
  trade_item_id?: string;
25127
26355
  updated_at?: string;
25128
26356
  user_id?: string;
@@ -27871,6 +29099,69 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
27871
29099
  };
27872
29100
  Relationships: [];
27873
29101
  };
29102
+ logistics_floriday_pushes: {
29103
+ Row: {
29104
+ attempts: number;
29105
+ created_at: string;
29106
+ first_queued_at: string;
29107
+ fulfillment_order_id: string | null;
29108
+ id: string;
29109
+ last_error: string | null;
29110
+ last_error_at: string | null;
29111
+ last_sent_hash: string | null;
29112
+ locked_by: string | null;
29113
+ locked_until: string | null;
29114
+ next_attempt_at: string;
29115
+ order_ref: string;
29116
+ payload: import("../integrations/supabase/types").Json;
29117
+ payload_hash: string | null;
29118
+ revision: number;
29119
+ sent_at: string | null;
29120
+ status: string;
29121
+ updated_at: string;
29122
+ };
29123
+ Insert: {
29124
+ attempts?: number;
29125
+ created_at?: string;
29126
+ first_queued_at?: string;
29127
+ fulfillment_order_id?: string | null;
29128
+ id?: string;
29129
+ last_error?: string | null;
29130
+ last_error_at?: string | null;
29131
+ last_sent_hash?: string | null;
29132
+ locked_by?: string | null;
29133
+ locked_until?: string | null;
29134
+ next_attempt_at?: string;
29135
+ order_ref: string;
29136
+ payload?: import("../integrations/supabase/types").Json;
29137
+ payload_hash?: string | null;
29138
+ revision?: number;
29139
+ sent_at?: string | null;
29140
+ status?: string;
29141
+ updated_at?: string;
29142
+ };
29143
+ Update: {
29144
+ attempts?: number;
29145
+ created_at?: string;
29146
+ first_queued_at?: string;
29147
+ fulfillment_order_id?: string | null;
29148
+ id?: string;
29149
+ last_error?: string | null;
29150
+ last_error_at?: string | null;
29151
+ last_sent_hash?: string | null;
29152
+ locked_by?: string | null;
29153
+ locked_until?: string | null;
29154
+ next_attempt_at?: string;
29155
+ order_ref?: string;
29156
+ payload?: import("../integrations/supabase/types").Json;
29157
+ payload_hash?: string | null;
29158
+ revision?: number;
29159
+ sent_at?: string | null;
29160
+ status?: string;
29161
+ updated_at?: string;
29162
+ };
29163
+ Relationships: [];
29164
+ };
27874
29165
  logistics_formulas: {
27875
29166
  Row: {
27876
29167
  created_at: string;
@@ -28482,6 +29773,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28482
29773
  };
28483
29774
  logistics_tasks: {
28484
29775
  Row: {
29776
+ attempt_log: import("../integrations/supabase/types").Json;
29777
+ attempts: number;
28485
29778
  buffer_ref: string | null;
28486
29779
  claimed_at: string | null;
28487
29780
  claimed_by: string | null;
@@ -28491,6 +29784,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28491
29784
  due_at: string | null;
28492
29785
  error: string | null;
28493
29786
  id: string;
29787
+ last_error: string | null;
29788
+ next_attempt_at: string | null;
28494
29789
  order_ref: string;
28495
29790
  owner_module: string;
28496
29791
  payload: import("../integrations/supabase/types").Json;
@@ -28511,6 +29806,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28511
29806
  user_id: string;
28512
29807
  };
28513
29808
  Insert: {
29809
+ attempt_log?: import("../integrations/supabase/types").Json;
29810
+ attempts?: number;
28514
29811
  buffer_ref?: string | null;
28515
29812
  claimed_at?: string | null;
28516
29813
  claimed_by?: string | null;
@@ -28520,6 +29817,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28520
29817
  due_at?: string | null;
28521
29818
  error?: string | null;
28522
29819
  id?: string;
29820
+ last_error?: string | null;
29821
+ next_attempt_at?: string | null;
28523
29822
  order_ref: string;
28524
29823
  owner_module: string;
28525
29824
  payload?: import("../integrations/supabase/types").Json;
@@ -28540,6 +29839,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28540
29839
  user_id?: string;
28541
29840
  };
28542
29841
  Update: {
29842
+ attempt_log?: import("../integrations/supabase/types").Json;
29843
+ attempts?: number;
28543
29844
  buffer_ref?: string | null;
28544
29845
  claimed_at?: string | null;
28545
29846
  claimed_by?: string | null;
@@ -28549,6 +29850,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
28549
29850
  due_at?: string | null;
28550
29851
  error?: string | null;
28551
29852
  id?: string;
29853
+ last_error?: string | null;
29854
+ next_attempt_at?: string | null;
28552
29855
  order_ref?: string;
28553
29856
  owner_module?: string;
28554
29857
  payload?: import("../integrations/supabase/types").Json;
@@ -29898,6 +31201,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
29898
31201
  };
29899
31202
  offer_settings: {
29900
31203
  Row: {
31204
+ brand_name: string | null;
29901
31205
  button_color: string;
29902
31206
  created_at: string;
29903
31207
  default_countries: string[];
@@ -29919,6 +31223,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
29919
31223
  updated_at: string;
29920
31224
  };
29921
31225
  Insert: {
31226
+ brand_name?: string | null;
29922
31227
  button_color?: string;
29923
31228
  created_at?: string;
29924
31229
  default_countries?: string[];
@@ -29940,6 +31245,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
29940
31245
  updated_at?: string;
29941
31246
  };
29942
31247
  Update: {
31248
+ brand_name?: string | null;
29943
31249
  button_color?: string;
29944
31250
  created_at?: string;
29945
31251
  default_countries?: string[];
@@ -37550,6 +38856,85 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37550
38856
  };
37551
38857
  Returns: import("../integrations/supabase/types").Json;
37552
38858
  };
38859
+ claim_floriday_stock_queue: {
38860
+ Args: {
38861
+ p_limit?: number;
38862
+ p_worker?: string;
38863
+ };
38864
+ Returns: {
38865
+ attempts: number;
38866
+ connection_id: string;
38867
+ created_at: string;
38868
+ desired_available: boolean | null;
38869
+ gateway_attempt_id: string | null;
38870
+ id: string;
38871
+ last_error: string | null;
38872
+ locked_at: string | null;
38873
+ locked_by: string | null;
38874
+ next_attempt_at: string;
38875
+ number_of_pieces: number;
38876
+ sent_at: string | null;
38877
+ status: string;
38878
+ superseded_by: string | null;
38879
+ trade_item_id: string;
38880
+ updated_at: string;
38881
+ user_id: string;
38882
+ }[];
38883
+ SetofOptions: {
38884
+ from: "*";
38885
+ to: "floriday_continuous_stock_queue";
38886
+ isOneToOne: false;
38887
+ isSetofReturn: true;
38888
+ };
38889
+ };
38890
+ claim_logistics_tasks: {
38891
+ Args: {
38892
+ _limit?: number;
38893
+ _owner_module: string;
38894
+ _stale_minutes?: number;
38895
+ _task_type: string;
38896
+ _worker: string;
38897
+ };
38898
+ Returns: {
38899
+ attempt_log: import("../integrations/supabase/types").Json;
38900
+ attempts: number;
38901
+ buffer_ref: string | null;
38902
+ claimed_at: string | null;
38903
+ claimed_by: string | null;
38904
+ completed_at: string | null;
38905
+ created_at: string;
38906
+ depends_on: string[];
38907
+ due_at: string | null;
38908
+ error: string | null;
38909
+ id: string;
38910
+ last_error: string | null;
38911
+ next_attempt_at: string | null;
38912
+ order_ref: string;
38913
+ owner_module: string;
38914
+ payload: import("../integrations/supabase/types").Json;
38915
+ plan_run_id: string | null;
38916
+ planned_end: string | null;
38917
+ planned_start: string | null;
38918
+ priority: number;
38919
+ result: import("../integrations/supabase/types").Json | null;
38920
+ rule_config_id: string | null;
38921
+ rule_version: number | null;
38922
+ sequence: number;
38923
+ shadow: boolean;
38924
+ started_at: string | null;
38925
+ status: string;
38926
+ strategy_id: string | null;
38927
+ task_type: string;
38928
+ updated_at: string;
38929
+ user_id: string;
38930
+ }[];
38931
+ SetofOptions: {
38932
+ from: "*";
38933
+ to: "logistics_tasks";
38934
+ isOneToOne: false;
38935
+ isSetofReturn: true;
38936
+ };
38937
+ };
37553
38938
  claim_print_jobs: {
37554
38939
  Args: {
37555
38940
  _agent_id: string;
@@ -37614,10 +38999,24 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37614
38999
  isSetofReturn: true;
37615
39000
  };
37616
39001
  };
39002
+ cleanup_floriday_stock_queue: {
39003
+ Args: never;
39004
+ Returns: undefined;
39005
+ };
37617
39006
  cleanup_old_bookings: {
37618
39007
  Args: never;
37619
39008
  Returns: undefined;
37620
39009
  };
39010
+ complete_floriday_stock_queue: {
39011
+ Args: {
39012
+ p_attempt_id?: string;
39013
+ p_error?: string;
39014
+ p_id: string;
39015
+ p_ok: boolean;
39016
+ p_permanent?: boolean;
39017
+ };
39018
+ Returns: undefined;
39019
+ };
37621
39020
  consume_bom_for_production: {
37622
39021
  Args: {
37623
39022
  p_connection_id: string;
@@ -37790,6 +39189,21 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37790
39189
  Args: never;
37791
39190
  Returns: string;
37792
39191
  };
39192
+ exact_auth_consume_calls: {
39193
+ Args: {
39194
+ _account_key: string;
39195
+ _calls?: number;
39196
+ _day_limit?: number;
39197
+ _division_code: number;
39198
+ _environment: string;
39199
+ _minute_limit?: number;
39200
+ };
39201
+ Returns: import("../integrations/supabase/types").Json;
39202
+ };
39203
+ exact_auth_prune_sync_log: {
39204
+ Args: never;
39205
+ Returns: undefined;
39206
+ };
37793
39207
  exact_decrypt: {
37794
39208
  Args: {
37795
39209
  cipher: string;
@@ -37999,6 +39413,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37999
39413
  };
38000
39414
  Returns: number;
38001
39415
  };
39416
+ get_offer_branding: {
39417
+ Args: never;
39418
+ Returns: import("../integrations/supabase/types").Json;
39419
+ };
38002
39420
  get_offer_by_link_code: {
38003
39421
  Args: {
38004
39422
  p_code: string;
@@ -38290,6 +39708,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38290
39708
  p_worker?: string;
38291
39709
  };
38292
39710
  Returns: {
39711
+ attempt_log: import("../integrations/supabase/types").Json;
39712
+ attempts: number;
38293
39713
  buffer_ref: string | null;
38294
39714
  claimed_at: string | null;
38295
39715
  claimed_by: string | null;
@@ -38299,6 +39719,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38299
39719
  due_at: string | null;
38300
39720
  error: string | null;
38301
39721
  id: string;
39722
+ last_error: string | null;
39723
+ next_attempt_at: string | null;
38302
39724
  order_ref: string;
38303
39725
  owner_module: string;
38304
39726
  payload: import("../integrations/supabase/types").Json;
@@ -38331,6 +39753,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38331
39753
  p_worker?: string;
38332
39754
  };
38333
39755
  Returns: {
39756
+ attempt_log: import("../integrations/supabase/types").Json;
39757
+ attempts: number;
38334
39758
  buffer_ref: string | null;
38335
39759
  claimed_at: string | null;
38336
39760
  claimed_by: string | null;
@@ -38340,6 +39764,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38340
39764
  due_at: string | null;
38341
39765
  error: string | null;
38342
39766
  id: string;
39767
+ last_error: string | null;
39768
+ next_attempt_at: string | null;
38343
39769
  order_ref: string;
38344
39770
  owner_module: string;
38345
39771
  payload: import("../integrations/supabase/types").Json;
@@ -38372,6 +39798,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38372
39798
  p_task_id: string;
38373
39799
  };
38374
39800
  Returns: {
39801
+ attempt_log: import("../integrations/supabase/types").Json;
39802
+ attempts: number;
38375
39803
  buffer_ref: string | null;
38376
39804
  claimed_at: string | null;
38377
39805
  claimed_by: string | null;
@@ -38381,6 +39809,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38381
39809
  due_at: string | null;
38382
39810
  error: string | null;
38383
39811
  id: string;
39812
+ last_error: string | null;
39813
+ next_attempt_at: string | null;
38384
39814
  order_ref: string;
38385
39815
  owner_module: string;
38386
39816
  payload: import("../integrations/supabase/types").Json;
@@ -38462,6 +39892,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38462
39892
  p_task_id: string;
38463
39893
  };
38464
39894
  Returns: {
39895
+ attempt_log: import("../integrations/supabase/types").Json;
39896
+ attempts: number;
38465
39897
  buffer_ref: string | null;
38466
39898
  claimed_at: string | null;
38467
39899
  claimed_by: string | null;
@@ -38471,6 +39903,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38471
39903
  due_at: string | null;
38472
39904
  error: string | null;
38473
39905
  id: string;
39906
+ last_error: string | null;
39907
+ next_attempt_at: string | null;
38474
39908
  order_ref: string;
38475
39909
  owner_module: string;
38476
39910
  payload: import("../integrations/supabase/types").Json;
@@ -38497,6 +39931,51 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38497
39931
  isSetofReturn: false;
38498
39932
  };
38499
39933
  };
39934
+ logistics_floriday_claim_pushes: {
39935
+ Args: {
39936
+ _lease_seconds?: number;
39937
+ _limit?: number;
39938
+ _worker?: string;
39939
+ };
39940
+ Returns: {
39941
+ attempts: number;
39942
+ fulfillment_order_id: string;
39943
+ id: string;
39944
+ last_sent_hash: string;
39945
+ order_ref: string;
39946
+ payload: import("../integrations/supabase/types").Json;
39947
+ payload_hash: string;
39948
+ revision: number;
39949
+ }[];
39950
+ };
39951
+ logistics_floriday_finish_push: {
39952
+ Args: {
39953
+ _error?: string;
39954
+ _fulfillment_order_id?: string;
39955
+ _id: string;
39956
+ _max_age_hours?: number;
39957
+ _max_attempts?: number;
39958
+ _ok: boolean;
39959
+ _permanent?: boolean;
39960
+ _revision: number;
39961
+ _sent_hash?: string;
39962
+ };
39963
+ Returns: string;
39964
+ };
39965
+ logistics_floriday_prune_pushes: {
39966
+ Args: {
39967
+ _days?: number;
39968
+ };
39969
+ Returns: number;
39970
+ };
39971
+ logistics_floriday_queue_push: {
39972
+ Args: {
39973
+ _order_ref: string;
39974
+ _payload?: import("../integrations/supabase/types").Json;
39975
+ _payload_hash?: string;
39976
+ };
39977
+ Returns: string;
39978
+ };
38500
39979
  logistics_live_carriers: {
38501
39980
  Args: {
38502
39981
  p_order_ref: string;
@@ -39224,6 +40703,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39224
40703
  Args: never;
39225
40704
  Returns: undefined;
39226
40705
  };
40706
+ run_logistics_tasks_dispatch: {
40707
+ Args: never;
40708
+ Returns: undefined;
40709
+ };
39227
40710
  run_twinfield_queue_tick: {
39228
40711
  Args: never;
39229
40712
  Returns: undefined;
@@ -39464,6 +40947,13 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39464
40947
  };
39465
40948
  Returns: number;
39466
40949
  };
40950
+ schedule_floriday_stock_queue_process: {
40951
+ Args: {
40952
+ p_apikey: string;
40953
+ p_url: string;
40954
+ };
40955
+ Returns: number;
40956
+ };
39467
40957
  schedule_floriday_token_refresh: {
39468
40958
  Args: {
39469
40959
  p_apikey: string;
@@ -43245,268 +44735,736 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
43245
44735
  referencedColumns: ["id"];
43246
44736
  }];
43247
44737
  };
43248
- exact_bulk_operation_items: {
44738
+ exact_auth_call_budget: {
43249
44739
  Row: {
43250
- attempts: number;
43251
- bulk_operation_id: string;
43252
- created_at: string;
43253
- error_message: string | null;
43254
- id: string;
43255
- invoice_cache_id: string | null;
43256
- invoice_exact_id: string | null;
43257
- processed_at: string | null;
43258
- result_data: import("../integrations/supabase/types").Json | null;
43259
- status: string;
44740
+ account_key: string;
44741
+ day_count: number;
44742
+ day_date: string;
44743
+ division_code: number;
44744
+ environment: string;
44745
+ minute_count: number;
44746
+ minute_window: string;
44747
+ updated_at: string;
43260
44748
  };
43261
44749
  Insert: {
43262
- attempts?: number;
43263
- bulk_operation_id: string;
43264
- created_at?: string;
43265
- error_message?: string | null;
43266
- id?: string;
43267
- invoice_cache_id?: string | null;
43268
- invoice_exact_id?: string | null;
43269
- processed_at?: string | null;
43270
- result_data?: import("../integrations/supabase/types").Json | null;
43271
- status?: string;
44750
+ account_key?: string;
44751
+ day_count?: number;
44752
+ day_date?: string;
44753
+ division_code?: number;
44754
+ environment: string;
44755
+ minute_count?: number;
44756
+ minute_window?: string;
44757
+ updated_at?: string;
43272
44758
  };
43273
44759
  Update: {
43274
- attempts?: number;
43275
- bulk_operation_id?: string;
43276
- created_at?: string;
43277
- error_message?: string | null;
43278
- id?: string;
43279
- invoice_cache_id?: string | null;
43280
- invoice_exact_id?: string | null;
43281
- processed_at?: string | null;
43282
- result_data?: import("../integrations/supabase/types").Json | null;
43283
- status?: string;
44760
+ account_key?: string;
44761
+ day_count?: number;
44762
+ day_date?: string;
44763
+ division_code?: number;
44764
+ environment?: string;
44765
+ minute_count?: number;
44766
+ minute_window?: string;
44767
+ updated_at?: string;
43284
44768
  };
43285
- Relationships: [{
43286
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
43287
- columns: ["bulk_operation_id"];
43288
- isOneToOne: false;
43289
- referencedRelation: "exact_bulk_operations";
43290
- referencedColumns: ["id"];
43291
- }, {
43292
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
43293
- columns: ["invoice_cache_id"];
43294
- isOneToOne: false;
43295
- referencedRelation: "exact_invoices_cache";
43296
- referencedColumns: ["id"];
43297
- }];
44769
+ Relationships: [];
43298
44770
  };
43299
- exact_bulk_operations: {
44771
+ exact_auth_customers: {
43300
44772
  Row: {
43301
- completed_at: string | null;
43302
- connection_id: string;
44773
+ account_key: string;
44774
+ address_line1: string | null;
44775
+ chamber_of_commerce: string | null;
44776
+ city: string | null;
44777
+ code: string | null;
44778
+ country: string | null;
43303
44779
  created_at: string;
43304
- created_by: string | null;
43305
- error_message: string | null;
43306
- failed_count: number | null;
44780
+ currency: string | null;
44781
+ division_code: number | null;
44782
+ email: string | null;
44783
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44784
+ exact_id: string;
44785
+ exact_modified: string | null;
44786
+ exact_timestamp: number | null;
43307
44787
  id: string;
43308
- operation_type: string;
43309
- processed_count: number | null;
43310
- result_data: import("../integrations/supabase/types").Json | null;
43311
- started_at: string | null;
43312
- status: string;
43313
- total_count: number | null;
44788
+ is_active: boolean;
44789
+ name: string | null;
44790
+ phone: string | null;
44791
+ postcode: string | null;
44792
+ raw: import("../integrations/supabase/types").Json | null;
44793
+ status: string | null;
43314
44794
  updated_at: string;
44795
+ vat_number: string | null;
44796
+ website: string | null;
43315
44797
  };
43316
44798
  Insert: {
43317
- completed_at?: string | null;
43318
- connection_id: string;
44799
+ account_key?: string;
44800
+ address_line1?: string | null;
44801
+ chamber_of_commerce?: string | null;
44802
+ city?: string | null;
44803
+ code?: string | null;
44804
+ country?: string | null;
43319
44805
  created_at?: string;
43320
- created_by?: string | null;
43321
- error_message?: string | null;
43322
- failed_count?: number | null;
44806
+ currency?: string | null;
44807
+ division_code?: number | null;
44808
+ email?: string | null;
44809
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44810
+ exact_id: string;
44811
+ exact_modified?: string | null;
44812
+ exact_timestamp?: number | null;
43323
44813
  id?: string;
43324
- operation_type: string;
43325
- processed_count?: number | null;
43326
- result_data?: import("../integrations/supabase/types").Json | null;
43327
- started_at?: string | null;
43328
- status?: string;
43329
- total_count?: number | null;
44814
+ is_active?: boolean;
44815
+ name?: string | null;
44816
+ phone?: string | null;
44817
+ postcode?: string | null;
44818
+ raw?: import("../integrations/supabase/types").Json | null;
44819
+ status?: string | null;
43330
44820
  updated_at?: string;
44821
+ vat_number?: string | null;
44822
+ website?: string | null;
43331
44823
  };
43332
44824
  Update: {
43333
- completed_at?: string | null;
43334
- connection_id?: string;
44825
+ account_key?: string;
44826
+ address_line1?: string | null;
44827
+ chamber_of_commerce?: string | null;
44828
+ city?: string | null;
44829
+ code?: string | null;
44830
+ country?: string | null;
43335
44831
  created_at?: string;
43336
- created_by?: string | null;
43337
- error_message?: string | null;
43338
- failed_count?: number | null;
44832
+ currency?: string | null;
44833
+ division_code?: number | null;
44834
+ email?: string | null;
44835
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44836
+ exact_id?: string;
44837
+ exact_modified?: string | null;
44838
+ exact_timestamp?: number | null;
43339
44839
  id?: string;
43340
- operation_type?: string;
43341
- processed_count?: number | null;
43342
- result_data?: import("../integrations/supabase/types").Json | null;
43343
- started_at?: string | null;
43344
- status?: string;
43345
- total_count?: number | null;
44840
+ is_active?: boolean;
44841
+ name?: string | null;
44842
+ phone?: string | null;
44843
+ postcode?: string | null;
44844
+ raw?: import("../integrations/supabase/types").Json | null;
44845
+ status?: string | null;
43346
44846
  updated_at?: string;
44847
+ vat_number?: string | null;
44848
+ website?: string | null;
43347
44849
  };
43348
- Relationships: [{
43349
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
43350
- columns: ["connection_id"];
43351
- isOneToOne: false;
43352
- referencedRelation: "exact_connections";
43353
- referencedColumns: ["id"];
43354
- }];
44850
+ Relationships: [];
43355
44851
  };
43356
- exact_connections: {
44852
+ exact_auth_divisions: {
43357
44853
  Row: {
43358
- access_token_encrypted: string;
44854
+ account_key: string;
43359
44855
  company_name: string | null;
43360
- connected_at: string;
43361
- connected_by: string | null;
44856
+ created_at: string;
43362
44857
  division_code: number | null;
43363
44858
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43364
- expires_at: string;
43365
44859
  id: string;
43366
- last_error: string | null;
43367
- last_refreshed_at: string | null;
43368
- last_tested_at: string | null;
43369
- refresh_token_encrypted: string;
43370
- status: string;
44860
+ last_synced_at: string | null;
43371
44861
  updated_at: string;
43372
44862
  };
43373
44863
  Insert: {
43374
- access_token_encrypted: string;
44864
+ account_key?: string;
43375
44865
  company_name?: string | null;
43376
- connected_at?: string;
43377
- connected_by?: string | null;
44866
+ created_at?: string;
43378
44867
  division_code?: number | null;
43379
44868
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43380
- expires_at: string;
43381
44869
  id?: string;
43382
- last_error?: string | null;
43383
- last_refreshed_at?: string | null;
43384
- last_tested_at?: string | null;
43385
- refresh_token_encrypted: string;
43386
- status?: string;
44870
+ last_synced_at?: string | null;
43387
44871
  updated_at?: string;
43388
44872
  };
43389
44873
  Update: {
43390
- access_token_encrypted?: string;
44874
+ account_key?: string;
43391
44875
  company_name?: string | null;
43392
- connected_at?: string;
43393
- connected_by?: string | null;
44876
+ created_at?: string;
43394
44877
  division_code?: number | null;
43395
44878
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43396
- expires_at?: string;
43397
44879
  id?: string;
43398
- last_error?: string | null;
43399
- last_refreshed_at?: string | null;
43400
- last_tested_at?: string | null;
43401
- refresh_token_encrypted?: string;
43402
- status?: string;
44880
+ last_synced_at?: string | null;
43403
44881
  updated_at?: string;
43404
44882
  };
43405
44883
  Relationships: [];
43406
44884
  };
43407
- exact_credentials: {
44885
+ exact_auth_invoice_lines: {
43408
44886
  Row: {
43409
- client_id: string;
43410
- client_secret_encrypted: string;
44887
+ account_key: string;
44888
+ amount_excl: number | null;
43411
44889
  created_at: string;
44890
+ description: string | null;
44891
+ discount: number | null;
43412
44892
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44893
+ exact_id: string;
44894
+ exact_timestamp: number | null;
43413
44895
  id: string;
43414
- 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;
43415
44903
  updated_at: string;
44904
+ vat_amount: number | null;
44905
+ vat_code: string | null;
43416
44906
  };
43417
44907
  Insert: {
43418
- client_id: string;
43419
- client_secret_encrypted: string;
44908
+ account_key?: string;
44909
+ amount_excl?: number | null;
43420
44910
  created_at?: string;
44911
+ description?: string | null;
44912
+ discount?: number | null;
43421
44913
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44914
+ exact_id: string;
44915
+ exact_timestamp?: number | null;
43422
44916
  id?: string;
43423
- 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;
43424
44924
  updated_at?: string;
44925
+ vat_amount?: number | null;
44926
+ vat_code?: string | null;
43425
44927
  };
43426
44928
  Update: {
43427
- client_id?: string;
43428
- client_secret_encrypted?: string;
44929
+ account_key?: string;
44930
+ amount_excl?: number | null;
43429
44931
  created_at?: string;
44932
+ description?: string | null;
44933
+ discount?: number | null;
43430
44934
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44935
+ exact_id?: string;
44936
+ exact_timestamp?: number | null;
43431
44937
  id?: string;
43432
- redirect_uri?: string;
44938
+ invoice_exact_id?: string;
44939
+ item_code?: string | null;
44940
+ item_exact_id?: string | null;
44941
+ line_number?: number | null;
44942
+ quantity?: number | null;
44943
+ raw?: import("../integrations/supabase/types").Json | null;
44944
+ unit_price?: number | null;
43433
44945
  updated_at?: string;
44946
+ vat_amount?: number | null;
44947
+ vat_code?: string | null;
43434
44948
  };
43435
44949
  Relationships: [];
43436
44950
  };
43437
- exact_customer_sync_queue: {
44951
+ exact_auth_invoices: {
43438
44952
  Row: {
43439
- attempts: number;
43440
- connection_id: string;
44953
+ account_key: string;
44954
+ amount_excl: number | null;
44955
+ amount_incl: number | null;
44956
+ amount_open: number | null;
43441
44957
  created_at: string;
44958
+ currency: string | null;
44959
+ customer_code: string | null;
43442
44960
  customer_exact_id: string | null;
43443
- error_message: string | null;
44961
+ customer_name: string | null;
44962
+ description: string | null;
44963
+ division_code: number | null;
44964
+ due_date: string | null;
44965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44966
+ exact_id: string;
44967
+ exact_modified: string | null;
44968
+ exact_timestamp: number | null;
43444
44969
  id: string;
43445
- max_attempts: number;
43446
- operation: string;
43447
- payload: import("../integrations/supabase/types").Json;
43448
- process_at: string;
43449
- processed_at: string | null;
43450
- status: string;
44970
+ invoice_date: string | null;
44971
+ invoice_number: string | null;
44972
+ order_number: string | null;
44973
+ paid_at: string | null;
44974
+ payment_status: string;
44975
+ raw: import("../integrations/supabase/types").Json | null;
44976
+ receivable_synced_at: string | null;
44977
+ status_code: number | null;
43451
44978
  updated_at: string;
43452
44979
  };
43453
44980
  Insert: {
43454
- attempts?: number;
43455
- connection_id: string;
44981
+ account_key?: string;
44982
+ amount_excl?: number | null;
44983
+ amount_incl?: number | null;
44984
+ amount_open?: number | null;
43456
44985
  created_at?: string;
44986
+ currency?: string | null;
44987
+ customer_code?: string | null;
43457
44988
  customer_exact_id?: string | null;
43458
- error_message?: string | null;
44989
+ customer_name?: string | null;
44990
+ description?: string | null;
44991
+ division_code?: number | null;
44992
+ due_date?: string | null;
44993
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44994
+ exact_id: string;
44995
+ exact_modified?: string | null;
44996
+ exact_timestamp?: number | null;
43459
44997
  id?: string;
43460
- max_attempts?: number;
43461
- operation: string;
43462
- payload?: import("../integrations/supabase/types").Json;
43463
- process_at?: string;
43464
- processed_at?: string | null;
43465
- status?: string;
44998
+ invoice_date?: string | null;
44999
+ invoice_number?: string | null;
45000
+ order_number?: string | null;
45001
+ paid_at?: string | null;
45002
+ payment_status?: string;
45003
+ raw?: import("../integrations/supabase/types").Json | null;
45004
+ receivable_synced_at?: string | null;
45005
+ status_code?: number | null;
43466
45006
  updated_at?: string;
43467
45007
  };
43468
45008
  Update: {
43469
- attempts?: number;
43470
- connection_id?: string;
45009
+ account_key?: string;
45010
+ amount_excl?: number | null;
45011
+ amount_incl?: number | null;
45012
+ amount_open?: number | null;
43471
45013
  created_at?: string;
45014
+ currency?: string | null;
45015
+ customer_code?: string | null;
43472
45016
  customer_exact_id?: string | null;
43473
- error_message?: string | null;
45017
+ customer_name?: string | null;
45018
+ description?: string | null;
45019
+ division_code?: number | null;
45020
+ due_date?: string | null;
45021
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45022
+ exact_id?: string;
45023
+ exact_modified?: string | null;
45024
+ exact_timestamp?: number | null;
43474
45025
  id?: string;
43475
- max_attempts?: number;
43476
- operation?: string;
43477
- payload?: import("../integrations/supabase/types").Json;
43478
- process_at?: string;
43479
- processed_at?: string | null;
43480
- status?: string;
45026
+ invoice_date?: string | null;
45027
+ invoice_number?: string | null;
45028
+ order_number?: string | null;
45029
+ paid_at?: string | null;
45030
+ payment_status?: string;
45031
+ raw?: import("../integrations/supabase/types").Json | null;
45032
+ receivable_synced_at?: string | null;
45033
+ status_code?: number | null;
43481
45034
  updated_at?: string;
43482
45035
  };
43483
- Relationships: [{
43484
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
43485
- columns: ["connection_id"];
43486
- isOneToOne: false;
43487
- referencedRelation: "exact_connections";
43488
- referencedColumns: ["id"];
43489
- }];
45036
+ Relationships: [];
43490
45037
  };
43491
- exact_customers_cache: {
45038
+ exact_auth_items: {
43492
45039
  Row: {
43493
- account_name: string | null;
43494
- account_number: string | null;
43495
- address_line1: string | null;
43496
- address_line2: string | null;
43497
- balance: number | null;
43498
- chamber_of_commerce: string | null;
43499
- city: string | null;
43500
- classification_description: string | null;
43501
- connection_id: string;
43502
- contact_name: string | null;
43503
- country: string | null;
43504
- created_at_exact: string | null;
43505
- credit_line: number | null;
43506
- currency: string | null;
43507
- data_raw: import("../integrations/supabase/types").Json | null;
43508
- email: string | null;
43509
- exact_id: string;
45040
+ account_key: string;
45041
+ barcode: string | null;
45042
+ code: string | null;
45043
+ cost_price: number | null;
45044
+ created_at: string;
45045
+ description: string | null;
45046
+ division_code: number | null;
45047
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45048
+ exact_id: string;
45049
+ exact_modified: string | null;
45050
+ exact_timestamp: number | null;
45051
+ gl_account_code: string | null;
45052
+ id: string;
45053
+ is_active: boolean;
45054
+ is_sales_item: boolean | null;
45055
+ item_type: string | null;
45056
+ raw: import("../integrations/supabase/types").Json | null;
45057
+ sales_price: number | null;
45058
+ unit: string | null;
45059
+ updated_at: string;
45060
+ vat_code: string | null;
45061
+ };
45062
+ Insert: {
45063
+ account_key?: string;
45064
+ barcode?: string | null;
45065
+ code?: string | null;
45066
+ cost_price?: number | null;
45067
+ created_at?: string;
45068
+ description?: string | null;
45069
+ division_code?: number | null;
45070
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45071
+ exact_id: string;
45072
+ exact_modified?: string | null;
45073
+ exact_timestamp?: number | null;
45074
+ gl_account_code?: string | null;
45075
+ id?: string;
45076
+ is_active?: boolean;
45077
+ is_sales_item?: boolean | null;
45078
+ item_type?: string | null;
45079
+ raw?: import("../integrations/supabase/types").Json | null;
45080
+ sales_price?: number | null;
45081
+ unit?: string | null;
45082
+ updated_at?: string;
45083
+ vat_code?: string | null;
45084
+ };
45085
+ Update: {
45086
+ account_key?: string;
45087
+ barcode?: string | null;
45088
+ code?: string | null;
45089
+ cost_price?: number | null;
45090
+ created_at?: string;
45091
+ description?: string | null;
45092
+ division_code?: number | null;
45093
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45094
+ exact_id?: string;
45095
+ exact_modified?: string | null;
45096
+ exact_timestamp?: number | null;
45097
+ gl_account_code?: string | null;
45098
+ id?: string;
45099
+ is_active?: boolean;
45100
+ is_sales_item?: boolean | null;
45101
+ item_type?: string | null;
45102
+ raw?: import("../integrations/supabase/types").Json | null;
45103
+ sales_price?: number | null;
45104
+ unit?: string | null;
45105
+ updated_at?: string;
45106
+ vat_code?: string | null;
45107
+ };
45108
+ Relationships: [];
45109
+ };
45110
+ exact_auth_sync_log: {
45111
+ Row: {
45112
+ account_key: string;
45113
+ calls_used: number;
45114
+ created_at: string;
45115
+ domain: string;
45116
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45117
+ error: string | null;
45118
+ finished_at: string | null;
45119
+ id: string;
45120
+ ok: boolean;
45121
+ records: number;
45122
+ started_at: string;
45123
+ };
45124
+ Insert: {
45125
+ account_key?: string;
45126
+ calls_used?: number;
45127
+ created_at?: string;
45128
+ domain: string;
45129
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45130
+ error?: string | null;
45131
+ finished_at?: string | null;
45132
+ id?: string;
45133
+ ok?: boolean;
45134
+ records?: number;
45135
+ started_at?: string;
45136
+ };
45137
+ Update: {
45138
+ account_key?: string;
45139
+ calls_used?: number;
45140
+ created_at?: string;
45141
+ domain?: string;
45142
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45143
+ error?: string | null;
45144
+ finished_at?: string | null;
45145
+ id?: string;
45146
+ ok?: boolean;
45147
+ records?: number;
45148
+ started_at?: string;
45149
+ };
45150
+ Relationships: [];
45151
+ };
45152
+ exact_auth_sync_state: {
45153
+ Row: {
45154
+ account_key: string;
45155
+ created_at: string;
45156
+ cursor_timestamp: number;
45157
+ division_code: number | null;
45158
+ domain: string;
45159
+ duration_ms: number | null;
45160
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45161
+ initial_sync_done: boolean;
45162
+ last_error: string | null;
45163
+ last_run_at: string | null;
45164
+ last_success_at: string | null;
45165
+ locked_at: string | null;
45166
+ needs_initial_sync: boolean;
45167
+ record_count: number;
45168
+ updated_at: string;
45169
+ };
45170
+ Insert: {
45171
+ account_key?: string;
45172
+ created_at?: string;
45173
+ cursor_timestamp?: number;
45174
+ division_code?: number | null;
45175
+ domain: string;
45176
+ duration_ms?: number | null;
45177
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45178
+ initial_sync_done?: boolean;
45179
+ last_error?: string | null;
45180
+ last_run_at?: string | null;
45181
+ last_success_at?: string | null;
45182
+ locked_at?: string | null;
45183
+ needs_initial_sync?: boolean;
45184
+ record_count?: number;
45185
+ updated_at?: string;
45186
+ };
45187
+ Update: {
45188
+ account_key?: string;
45189
+ created_at?: string;
45190
+ cursor_timestamp?: number;
45191
+ division_code?: number | null;
45192
+ domain?: string;
45193
+ duration_ms?: number | null;
45194
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45195
+ initial_sync_done?: boolean;
45196
+ last_error?: string | null;
45197
+ last_run_at?: string | null;
45198
+ last_success_at?: string | null;
45199
+ locked_at?: string | null;
45200
+ needs_initial_sync?: boolean;
45201
+ record_count?: number;
45202
+ updated_at?: string;
45203
+ };
45204
+ Relationships: [];
45205
+ };
45206
+ exact_bulk_operation_items: {
45207
+ Row: {
45208
+ attempts: number;
45209
+ bulk_operation_id: string;
45210
+ created_at: string;
45211
+ error_message: string | null;
45212
+ id: string;
45213
+ invoice_cache_id: string | null;
45214
+ invoice_exact_id: string | null;
45215
+ processed_at: string | null;
45216
+ result_data: import("../integrations/supabase/types").Json | null;
45217
+ status: string;
45218
+ };
45219
+ Insert: {
45220
+ attempts?: number;
45221
+ bulk_operation_id: string;
45222
+ created_at?: string;
45223
+ error_message?: string | null;
45224
+ id?: string;
45225
+ invoice_cache_id?: string | null;
45226
+ invoice_exact_id?: string | null;
45227
+ processed_at?: string | null;
45228
+ result_data?: import("../integrations/supabase/types").Json | null;
45229
+ status?: string;
45230
+ };
45231
+ Update: {
45232
+ attempts?: number;
45233
+ bulk_operation_id?: string;
45234
+ created_at?: string;
45235
+ error_message?: string | null;
45236
+ id?: string;
45237
+ invoice_cache_id?: string | null;
45238
+ invoice_exact_id?: string | null;
45239
+ processed_at?: string | null;
45240
+ result_data?: import("../integrations/supabase/types").Json | null;
45241
+ status?: string;
45242
+ };
45243
+ Relationships: [{
45244
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
45245
+ columns: ["bulk_operation_id"];
45246
+ isOneToOne: false;
45247
+ referencedRelation: "exact_bulk_operations";
45248
+ referencedColumns: ["id"];
45249
+ }, {
45250
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
45251
+ columns: ["invoice_cache_id"];
45252
+ isOneToOne: false;
45253
+ referencedRelation: "exact_invoices_cache";
45254
+ referencedColumns: ["id"];
45255
+ }];
45256
+ };
45257
+ exact_bulk_operations: {
45258
+ Row: {
45259
+ completed_at: string | null;
45260
+ connection_id: string;
45261
+ created_at: string;
45262
+ created_by: string | null;
45263
+ error_message: string | null;
45264
+ failed_count: number | null;
45265
+ id: string;
45266
+ operation_type: string;
45267
+ processed_count: number | null;
45268
+ result_data: import("../integrations/supabase/types").Json | null;
45269
+ started_at: string | null;
45270
+ status: string;
45271
+ total_count: number | null;
45272
+ updated_at: string;
45273
+ };
45274
+ Insert: {
45275
+ completed_at?: string | null;
45276
+ connection_id: string;
45277
+ created_at?: string;
45278
+ created_by?: string | null;
45279
+ error_message?: string | null;
45280
+ failed_count?: number | null;
45281
+ id?: string;
45282
+ operation_type: string;
45283
+ processed_count?: number | null;
45284
+ result_data?: import("../integrations/supabase/types").Json | null;
45285
+ started_at?: string | null;
45286
+ status?: string;
45287
+ total_count?: number | null;
45288
+ updated_at?: string;
45289
+ };
45290
+ Update: {
45291
+ completed_at?: string | null;
45292
+ connection_id?: string;
45293
+ created_at?: string;
45294
+ created_by?: string | null;
45295
+ error_message?: string | null;
45296
+ failed_count?: number | null;
45297
+ id?: string;
45298
+ operation_type?: string;
45299
+ processed_count?: number | null;
45300
+ result_data?: import("../integrations/supabase/types").Json | null;
45301
+ started_at?: string | null;
45302
+ status?: string;
45303
+ total_count?: number | null;
45304
+ updated_at?: string;
45305
+ };
45306
+ Relationships: [{
45307
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
45308
+ columns: ["connection_id"];
45309
+ isOneToOne: false;
45310
+ referencedRelation: "exact_connections";
45311
+ referencedColumns: ["id"];
45312
+ }];
45313
+ };
45314
+ exact_connections: {
45315
+ Row: {
45316
+ access_token_encrypted: string;
45317
+ company_name: string | null;
45318
+ connected_at: string;
45319
+ connected_by: string | null;
45320
+ division_code: number | null;
45321
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45322
+ expires_at: string;
45323
+ id: string;
45324
+ last_error: string | null;
45325
+ last_refreshed_at: string | null;
45326
+ last_tested_at: string | null;
45327
+ refresh_token_encrypted: string;
45328
+ status: string;
45329
+ updated_at: string;
45330
+ };
45331
+ Insert: {
45332
+ access_token_encrypted: string;
45333
+ company_name?: string | null;
45334
+ connected_at?: string;
45335
+ connected_by?: string | null;
45336
+ division_code?: number | null;
45337
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45338
+ expires_at: string;
45339
+ id?: string;
45340
+ last_error?: string | null;
45341
+ last_refreshed_at?: string | null;
45342
+ last_tested_at?: string | null;
45343
+ refresh_token_encrypted: string;
45344
+ status?: string;
45345
+ updated_at?: string;
45346
+ };
45347
+ Update: {
45348
+ access_token_encrypted?: string;
45349
+ company_name?: string | null;
45350
+ connected_at?: string;
45351
+ connected_by?: string | null;
45352
+ division_code?: number | null;
45353
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45354
+ expires_at?: string;
45355
+ id?: string;
45356
+ last_error?: string | null;
45357
+ last_refreshed_at?: string | null;
45358
+ last_tested_at?: string | null;
45359
+ refresh_token_encrypted?: string;
45360
+ status?: string;
45361
+ updated_at?: string;
45362
+ };
45363
+ Relationships: [];
45364
+ };
45365
+ exact_credentials: {
45366
+ Row: {
45367
+ client_id: string;
45368
+ client_secret_encrypted: string;
45369
+ created_at: string;
45370
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45371
+ id: string;
45372
+ redirect_uri: string;
45373
+ updated_at: string;
45374
+ };
45375
+ Insert: {
45376
+ client_id: string;
45377
+ client_secret_encrypted: string;
45378
+ created_at?: string;
45379
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45380
+ id?: string;
45381
+ redirect_uri?: string;
45382
+ updated_at?: string;
45383
+ };
45384
+ Update: {
45385
+ client_id?: string;
45386
+ client_secret_encrypted?: string;
45387
+ created_at?: string;
45388
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45389
+ id?: string;
45390
+ redirect_uri?: string;
45391
+ updated_at?: string;
45392
+ };
45393
+ Relationships: [];
45394
+ };
45395
+ exact_customer_sync_queue: {
45396
+ Row: {
45397
+ attempts: number;
45398
+ connection_id: string;
45399
+ created_at: string;
45400
+ customer_exact_id: string | null;
45401
+ error_message: string | null;
45402
+ id: string;
45403
+ max_attempts: number;
45404
+ operation: string;
45405
+ payload: import("../integrations/supabase/types").Json;
45406
+ process_at: string;
45407
+ processed_at: string | null;
45408
+ status: string;
45409
+ updated_at: string;
45410
+ };
45411
+ Insert: {
45412
+ attempts?: number;
45413
+ connection_id: string;
45414
+ created_at?: string;
45415
+ customer_exact_id?: string | null;
45416
+ error_message?: string | null;
45417
+ id?: string;
45418
+ max_attempts?: number;
45419
+ operation: string;
45420
+ payload?: import("../integrations/supabase/types").Json;
45421
+ process_at?: string;
45422
+ processed_at?: string | null;
45423
+ status?: string;
45424
+ updated_at?: string;
45425
+ };
45426
+ Update: {
45427
+ attempts?: number;
45428
+ connection_id?: string;
45429
+ created_at?: string;
45430
+ customer_exact_id?: string | null;
45431
+ error_message?: string | null;
45432
+ id?: string;
45433
+ max_attempts?: number;
45434
+ operation?: string;
45435
+ payload?: import("../integrations/supabase/types").Json;
45436
+ process_at?: string;
45437
+ processed_at?: string | null;
45438
+ status?: string;
45439
+ updated_at?: string;
45440
+ };
45441
+ Relationships: [{
45442
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
45443
+ columns: ["connection_id"];
45444
+ isOneToOne: false;
45445
+ referencedRelation: "exact_connections";
45446
+ referencedColumns: ["id"];
45447
+ }];
45448
+ };
45449
+ exact_customers_cache: {
45450
+ Row: {
45451
+ account_name: string | null;
45452
+ account_number: string | null;
45453
+ address_line1: string | null;
45454
+ address_line2: string | null;
45455
+ balance: number | null;
45456
+ chamber_of_commerce: string | null;
45457
+ city: string | null;
45458
+ classification_description: string | null;
45459
+ connection_id: string;
45460
+ contact_name: string | null;
45461
+ country: string | null;
45462
+ created_at_exact: string | null;
45463
+ credit_line: number | null;
45464
+ currency: string | null;
45465
+ data_raw: import("../integrations/supabase/types").Json | null;
45466
+ email: string | null;
45467
+ exact_id: string;
43510
45468
  expires_at: string | null;
43511
45469
  fetched_at: string;
43512
45470
  id: string;
@@ -44936,12 +46894,17 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
44936
46894
  attempts: number;
44937
46895
  connection_id: string;
44938
46896
  created_at: string;
46897
+ desired_available: boolean | null;
44939
46898
  gateway_attempt_id: string | null;
44940
46899
  id: string;
44941
46900
  last_error: string | null;
46901
+ locked_at: string | null;
46902
+ locked_by: string | null;
46903
+ next_attempt_at: string;
44942
46904
  number_of_pieces: number;
44943
46905
  sent_at: string | null;
44944
46906
  status: string;
46907
+ superseded_by: string | null;
44945
46908
  trade_item_id: string;
44946
46909
  updated_at: string;
44947
46910
  user_id: string;
@@ -44950,12 +46913,17 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
44950
46913
  attempts?: number;
44951
46914
  connection_id: string;
44952
46915
  created_at?: string;
46916
+ desired_available?: boolean | null;
44953
46917
  gateway_attempt_id?: string | null;
44954
46918
  id?: string;
44955
46919
  last_error?: string | null;
46920
+ locked_at?: string | null;
46921
+ locked_by?: string | null;
46922
+ next_attempt_at?: string;
44956
46923
  number_of_pieces?: number;
44957
46924
  sent_at?: string | null;
44958
46925
  status?: string;
46926
+ superseded_by?: string | null;
44959
46927
  trade_item_id: string;
44960
46928
  updated_at?: string;
44961
46929
  user_id: string;
@@ -44964,12 +46932,17 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
44964
46932
  attempts?: number;
44965
46933
  connection_id?: string;
44966
46934
  created_at?: string;
46935
+ desired_available?: boolean | null;
44967
46936
  gateway_attempt_id?: string | null;
44968
46937
  id?: string;
44969
46938
  last_error?: string | null;
46939
+ locked_at?: string | null;
46940
+ locked_by?: string | null;
46941
+ next_attempt_at?: string;
44970
46942
  number_of_pieces?: number;
44971
46943
  sent_at?: string | null;
44972
46944
  status?: string;
46945
+ superseded_by?: string | null;
44973
46946
  trade_item_id?: string;
44974
46947
  updated_at?: string;
44975
46948
  user_id?: string;
@@ -47718,6 +49691,69 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
47718
49691
  };
47719
49692
  Relationships: [];
47720
49693
  };
49694
+ logistics_floriday_pushes: {
49695
+ Row: {
49696
+ attempts: number;
49697
+ created_at: string;
49698
+ first_queued_at: string;
49699
+ fulfillment_order_id: string | null;
49700
+ id: string;
49701
+ last_error: string | null;
49702
+ last_error_at: string | null;
49703
+ last_sent_hash: string | null;
49704
+ locked_by: string | null;
49705
+ locked_until: string | null;
49706
+ next_attempt_at: string;
49707
+ order_ref: string;
49708
+ payload: import("../integrations/supabase/types").Json;
49709
+ payload_hash: string | null;
49710
+ revision: number;
49711
+ sent_at: string | null;
49712
+ status: string;
49713
+ updated_at: string;
49714
+ };
49715
+ Insert: {
49716
+ attempts?: number;
49717
+ created_at?: string;
49718
+ first_queued_at?: string;
49719
+ fulfillment_order_id?: string | null;
49720
+ id?: string;
49721
+ last_error?: string | null;
49722
+ last_error_at?: string | null;
49723
+ last_sent_hash?: string | null;
49724
+ locked_by?: string | null;
49725
+ locked_until?: string | null;
49726
+ next_attempt_at?: string;
49727
+ order_ref: string;
49728
+ payload?: import("../integrations/supabase/types").Json;
49729
+ payload_hash?: string | null;
49730
+ revision?: number;
49731
+ sent_at?: string | null;
49732
+ status?: string;
49733
+ updated_at?: string;
49734
+ };
49735
+ Update: {
49736
+ attempts?: number;
49737
+ created_at?: string;
49738
+ first_queued_at?: string;
49739
+ fulfillment_order_id?: string | null;
49740
+ id?: string;
49741
+ last_error?: string | null;
49742
+ last_error_at?: string | null;
49743
+ last_sent_hash?: string | null;
49744
+ locked_by?: string | null;
49745
+ locked_until?: string | null;
49746
+ next_attempt_at?: string;
49747
+ order_ref?: string;
49748
+ payload?: import("../integrations/supabase/types").Json;
49749
+ payload_hash?: string | null;
49750
+ revision?: number;
49751
+ sent_at?: string | null;
49752
+ status?: string;
49753
+ updated_at?: string;
49754
+ };
49755
+ Relationships: [];
49756
+ };
47721
49757
  logistics_formulas: {
47722
49758
  Row: {
47723
49759
  created_at: string;
@@ -48329,6 +50365,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48329
50365
  };
48330
50366
  logistics_tasks: {
48331
50367
  Row: {
50368
+ attempt_log: import("../integrations/supabase/types").Json;
50369
+ attempts: number;
48332
50370
  buffer_ref: string | null;
48333
50371
  claimed_at: string | null;
48334
50372
  claimed_by: string | null;
@@ -48338,6 +50376,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48338
50376
  due_at: string | null;
48339
50377
  error: string | null;
48340
50378
  id: string;
50379
+ last_error: string | null;
50380
+ next_attempt_at: string | null;
48341
50381
  order_ref: string;
48342
50382
  owner_module: string;
48343
50383
  payload: import("../integrations/supabase/types").Json;
@@ -48358,6 +50398,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48358
50398
  user_id: string;
48359
50399
  };
48360
50400
  Insert: {
50401
+ attempt_log?: import("../integrations/supabase/types").Json;
50402
+ attempts?: number;
48361
50403
  buffer_ref?: string | null;
48362
50404
  claimed_at?: string | null;
48363
50405
  claimed_by?: string | null;
@@ -48367,6 +50409,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48367
50409
  due_at?: string | null;
48368
50410
  error?: string | null;
48369
50411
  id?: string;
50412
+ last_error?: string | null;
50413
+ next_attempt_at?: string | null;
48370
50414
  order_ref: string;
48371
50415
  owner_module: string;
48372
50416
  payload?: import("../integrations/supabase/types").Json;
@@ -48387,6 +50431,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48387
50431
  user_id?: string;
48388
50432
  };
48389
50433
  Update: {
50434
+ attempt_log?: import("../integrations/supabase/types").Json;
50435
+ attempts?: number;
48390
50436
  buffer_ref?: string | null;
48391
50437
  claimed_at?: string | null;
48392
50438
  claimed_by?: string | null;
@@ -48396,6 +50442,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
48396
50442
  due_at?: string | null;
48397
50443
  error?: string | null;
48398
50444
  id?: string;
50445
+ last_error?: string | null;
50446
+ next_attempt_at?: string | null;
48399
50447
  order_ref?: string;
48400
50448
  owner_module?: string;
48401
50449
  payload?: import("../integrations/supabase/types").Json;
@@ -49745,6 +51793,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
49745
51793
  };
49746
51794
  offer_settings: {
49747
51795
  Row: {
51796
+ brand_name: string | null;
49748
51797
  button_color: string;
49749
51798
  created_at: string;
49750
51799
  default_countries: string[];
@@ -49766,6 +51815,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
49766
51815
  updated_at: string;
49767
51816
  };
49768
51817
  Insert: {
51818
+ brand_name?: string | null;
49769
51819
  button_color?: string;
49770
51820
  created_at?: string;
49771
51821
  default_countries?: string[];
@@ -49787,6 +51837,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
49787
51837
  updated_at?: string;
49788
51838
  };
49789
51839
  Update: {
51840
+ brand_name?: string | null;
49790
51841
  button_color?: string;
49791
51842
  created_at?: string;
49792
51843
  default_countries?: string[];
@@ -57397,6 +59448,85 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
57397
59448
  };
57398
59449
  Returns: import("../integrations/supabase/types").Json;
57399
59450
  };
59451
+ claim_floriday_stock_queue: {
59452
+ Args: {
59453
+ p_limit?: number;
59454
+ p_worker?: string;
59455
+ };
59456
+ Returns: {
59457
+ attempts: number;
59458
+ connection_id: string;
59459
+ created_at: string;
59460
+ desired_available: boolean | null;
59461
+ gateway_attempt_id: string | null;
59462
+ id: string;
59463
+ last_error: string | null;
59464
+ locked_at: string | null;
59465
+ locked_by: string | null;
59466
+ next_attempt_at: string;
59467
+ number_of_pieces: number;
59468
+ sent_at: string | null;
59469
+ status: string;
59470
+ superseded_by: string | null;
59471
+ trade_item_id: string;
59472
+ updated_at: string;
59473
+ user_id: string;
59474
+ }[];
59475
+ SetofOptions: {
59476
+ from: "*";
59477
+ to: "floriday_continuous_stock_queue";
59478
+ isOneToOne: false;
59479
+ isSetofReturn: true;
59480
+ };
59481
+ };
59482
+ claim_logistics_tasks: {
59483
+ Args: {
59484
+ _limit?: number;
59485
+ _owner_module: string;
59486
+ _stale_minutes?: number;
59487
+ _task_type: string;
59488
+ _worker: string;
59489
+ };
59490
+ Returns: {
59491
+ attempt_log: import("../integrations/supabase/types").Json;
59492
+ attempts: number;
59493
+ buffer_ref: string | null;
59494
+ claimed_at: string | null;
59495
+ claimed_by: string | null;
59496
+ completed_at: string | null;
59497
+ created_at: string;
59498
+ depends_on: string[];
59499
+ due_at: string | null;
59500
+ error: string | null;
59501
+ id: string;
59502
+ last_error: string | null;
59503
+ next_attempt_at: string | null;
59504
+ order_ref: string;
59505
+ owner_module: string;
59506
+ payload: import("../integrations/supabase/types").Json;
59507
+ plan_run_id: string | null;
59508
+ planned_end: string | null;
59509
+ planned_start: string | null;
59510
+ priority: number;
59511
+ result: import("../integrations/supabase/types").Json | null;
59512
+ rule_config_id: string | null;
59513
+ rule_version: number | null;
59514
+ sequence: number;
59515
+ shadow: boolean;
59516
+ started_at: string | null;
59517
+ status: string;
59518
+ strategy_id: string | null;
59519
+ task_type: string;
59520
+ updated_at: string;
59521
+ user_id: string;
59522
+ }[];
59523
+ SetofOptions: {
59524
+ from: "*";
59525
+ to: "logistics_tasks";
59526
+ isOneToOne: false;
59527
+ isSetofReturn: true;
59528
+ };
59529
+ };
57400
59530
  claim_print_jobs: {
57401
59531
  Args: {
57402
59532
  _agent_id: string;
@@ -57461,10 +59591,24 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
57461
59591
  isSetofReturn: true;
57462
59592
  };
57463
59593
  };
59594
+ cleanup_floriday_stock_queue: {
59595
+ Args: never;
59596
+ Returns: undefined;
59597
+ };
57464
59598
  cleanup_old_bookings: {
57465
59599
  Args: never;
57466
59600
  Returns: undefined;
57467
59601
  };
59602
+ complete_floriday_stock_queue: {
59603
+ Args: {
59604
+ p_attempt_id?: string;
59605
+ p_error?: string;
59606
+ p_id: string;
59607
+ p_ok: boolean;
59608
+ p_permanent?: boolean;
59609
+ };
59610
+ Returns: undefined;
59611
+ };
57468
59612
  consume_bom_for_production: {
57469
59613
  Args: {
57470
59614
  p_connection_id: string;
@@ -57637,6 +59781,21 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
57637
59781
  Args: never;
57638
59782
  Returns: string;
57639
59783
  };
59784
+ exact_auth_consume_calls: {
59785
+ Args: {
59786
+ _account_key: string;
59787
+ _calls?: number;
59788
+ _day_limit?: number;
59789
+ _division_code: number;
59790
+ _environment: string;
59791
+ _minute_limit?: number;
59792
+ };
59793
+ Returns: import("../integrations/supabase/types").Json;
59794
+ };
59795
+ exact_auth_prune_sync_log: {
59796
+ Args: never;
59797
+ Returns: undefined;
59798
+ };
57640
59799
  exact_decrypt: {
57641
59800
  Args: {
57642
59801
  cipher: string;
@@ -57846,6 +60005,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
57846
60005
  };
57847
60006
  Returns: number;
57848
60007
  };
60008
+ get_offer_branding: {
60009
+ Args: never;
60010
+ Returns: import("../integrations/supabase/types").Json;
60011
+ };
57849
60012
  get_offer_by_link_code: {
57850
60013
  Args: {
57851
60014
  p_code: string;
@@ -58137,6 +60300,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58137
60300
  p_worker?: string;
58138
60301
  };
58139
60302
  Returns: {
60303
+ attempt_log: import("../integrations/supabase/types").Json;
60304
+ attempts: number;
58140
60305
  buffer_ref: string | null;
58141
60306
  claimed_at: string | null;
58142
60307
  claimed_by: string | null;
@@ -58146,6 +60311,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58146
60311
  due_at: string | null;
58147
60312
  error: string | null;
58148
60313
  id: string;
60314
+ last_error: string | null;
60315
+ next_attempt_at: string | null;
58149
60316
  order_ref: string;
58150
60317
  owner_module: string;
58151
60318
  payload: import("../integrations/supabase/types").Json;
@@ -58178,6 +60345,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58178
60345
  p_worker?: string;
58179
60346
  };
58180
60347
  Returns: {
60348
+ attempt_log: import("../integrations/supabase/types").Json;
60349
+ attempts: number;
58181
60350
  buffer_ref: string | null;
58182
60351
  claimed_at: string | null;
58183
60352
  claimed_by: string | null;
@@ -58187,6 +60356,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58187
60356
  due_at: string | null;
58188
60357
  error: string | null;
58189
60358
  id: string;
60359
+ last_error: string | null;
60360
+ next_attempt_at: string | null;
58190
60361
  order_ref: string;
58191
60362
  owner_module: string;
58192
60363
  payload: import("../integrations/supabase/types").Json;
@@ -58219,6 +60390,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58219
60390
  p_task_id: string;
58220
60391
  };
58221
60392
  Returns: {
60393
+ attempt_log: import("../integrations/supabase/types").Json;
60394
+ attempts: number;
58222
60395
  buffer_ref: string | null;
58223
60396
  claimed_at: string | null;
58224
60397
  claimed_by: string | null;
@@ -58228,6 +60401,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58228
60401
  due_at: string | null;
58229
60402
  error: string | null;
58230
60403
  id: string;
60404
+ last_error: string | null;
60405
+ next_attempt_at: string | null;
58231
60406
  order_ref: string;
58232
60407
  owner_module: string;
58233
60408
  payload: import("../integrations/supabase/types").Json;
@@ -58309,6 +60484,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58309
60484
  p_task_id: string;
58310
60485
  };
58311
60486
  Returns: {
60487
+ attempt_log: import("../integrations/supabase/types").Json;
60488
+ attempts: number;
58312
60489
  buffer_ref: string | null;
58313
60490
  claimed_at: string | null;
58314
60491
  claimed_by: string | null;
@@ -58318,6 +60495,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58318
60495
  due_at: string | null;
58319
60496
  error: string | null;
58320
60497
  id: string;
60498
+ last_error: string | null;
60499
+ next_attempt_at: string | null;
58321
60500
  order_ref: string;
58322
60501
  owner_module: string;
58323
60502
  payload: import("../integrations/supabase/types").Json;
@@ -58344,6 +60523,51 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
58344
60523
  isSetofReturn: false;
58345
60524
  };
58346
60525
  };
60526
+ logistics_floriday_claim_pushes: {
60527
+ Args: {
60528
+ _lease_seconds?: number;
60529
+ _limit?: number;
60530
+ _worker?: string;
60531
+ };
60532
+ Returns: {
60533
+ attempts: number;
60534
+ fulfillment_order_id: string;
60535
+ id: string;
60536
+ last_sent_hash: string;
60537
+ order_ref: string;
60538
+ payload: import("../integrations/supabase/types").Json;
60539
+ payload_hash: string;
60540
+ revision: number;
60541
+ }[];
60542
+ };
60543
+ logistics_floriday_finish_push: {
60544
+ Args: {
60545
+ _error?: string;
60546
+ _fulfillment_order_id?: string;
60547
+ _id: string;
60548
+ _max_age_hours?: number;
60549
+ _max_attempts?: number;
60550
+ _ok: boolean;
60551
+ _permanent?: boolean;
60552
+ _revision: number;
60553
+ _sent_hash?: string;
60554
+ };
60555
+ Returns: string;
60556
+ };
60557
+ logistics_floriday_prune_pushes: {
60558
+ Args: {
60559
+ _days?: number;
60560
+ };
60561
+ Returns: number;
60562
+ };
60563
+ logistics_floriday_queue_push: {
60564
+ Args: {
60565
+ _order_ref: string;
60566
+ _payload?: import("../integrations/supabase/types").Json;
60567
+ _payload_hash?: string;
60568
+ };
60569
+ Returns: string;
60570
+ };
58347
60571
  logistics_live_carriers: {
58348
60572
  Args: {
58349
60573
  p_order_ref: string;
@@ -59071,6 +61295,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
59071
61295
  Args: never;
59072
61296
  Returns: undefined;
59073
61297
  };
61298
+ run_logistics_tasks_dispatch: {
61299
+ Args: never;
61300
+ Returns: undefined;
61301
+ };
59074
61302
  run_twinfield_queue_tick: {
59075
61303
  Args: never;
59076
61304
  Returns: undefined;
@@ -59311,6 +61539,13 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
59311
61539
  };
59312
61540
  Returns: number;
59313
61541
  };
61542
+ schedule_floriday_stock_queue_process: {
61543
+ Args: {
61544
+ p_apikey: string;
61545
+ p_url: string;
61546
+ };
61547
+ Returns: number;
61548
+ };
59314
61549
  schedule_floriday_token_refresh: {
59315
61550
  Args: {
59316
61551
  p_apikey: string;
@@ -63099,6 +65334,474 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
63099
65334
  referencedColumns: ["id"];
63100
65335
  }];
63101
65336
  };
65337
+ exact_auth_call_budget: {
65338
+ Row: {
65339
+ account_key: string;
65340
+ day_count: number;
65341
+ day_date: string;
65342
+ division_code: number;
65343
+ environment: string;
65344
+ minute_count: number;
65345
+ minute_window: string;
65346
+ updated_at: string;
65347
+ };
65348
+ Insert: {
65349
+ account_key?: string;
65350
+ day_count?: number;
65351
+ day_date?: string;
65352
+ division_code?: number;
65353
+ environment: string;
65354
+ minute_count?: number;
65355
+ minute_window?: string;
65356
+ updated_at?: string;
65357
+ };
65358
+ Update: {
65359
+ account_key?: string;
65360
+ day_count?: number;
65361
+ day_date?: string;
65362
+ division_code?: number;
65363
+ environment?: string;
65364
+ minute_count?: number;
65365
+ minute_window?: string;
65366
+ updated_at?: string;
65367
+ };
65368
+ Relationships: [];
65369
+ };
65370
+ exact_auth_customers: {
65371
+ Row: {
65372
+ account_key: string;
65373
+ address_line1: string | null;
65374
+ chamber_of_commerce: string | null;
65375
+ city: string | null;
65376
+ code: string | null;
65377
+ country: string | null;
65378
+ created_at: string;
65379
+ currency: string | null;
65380
+ division_code: number | null;
65381
+ email: string | null;
65382
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65383
+ exact_id: string;
65384
+ exact_modified: string | null;
65385
+ exact_timestamp: number | null;
65386
+ id: string;
65387
+ is_active: boolean;
65388
+ name: string | null;
65389
+ phone: string | null;
65390
+ postcode: string | null;
65391
+ raw: import("../integrations/supabase/types").Json | null;
65392
+ status: string | null;
65393
+ updated_at: string;
65394
+ vat_number: string | null;
65395
+ website: string | null;
65396
+ };
65397
+ Insert: {
65398
+ account_key?: string;
65399
+ address_line1?: string | null;
65400
+ chamber_of_commerce?: string | null;
65401
+ city?: string | null;
65402
+ code?: string | null;
65403
+ country?: string | null;
65404
+ created_at?: string;
65405
+ currency?: string | null;
65406
+ division_code?: number | null;
65407
+ email?: string | null;
65408
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65409
+ exact_id: string;
65410
+ exact_modified?: string | null;
65411
+ exact_timestamp?: number | null;
65412
+ id?: string;
65413
+ is_active?: boolean;
65414
+ name?: string | null;
65415
+ phone?: string | null;
65416
+ postcode?: string | null;
65417
+ raw?: import("../integrations/supabase/types").Json | null;
65418
+ status?: string | null;
65419
+ updated_at?: string;
65420
+ vat_number?: string | null;
65421
+ website?: string | null;
65422
+ };
65423
+ Update: {
65424
+ account_key?: string;
65425
+ address_line1?: string | null;
65426
+ chamber_of_commerce?: string | null;
65427
+ city?: string | null;
65428
+ code?: string | null;
65429
+ country?: string | null;
65430
+ created_at?: string;
65431
+ currency?: string | null;
65432
+ division_code?: number | null;
65433
+ email?: string | null;
65434
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65435
+ exact_id?: string;
65436
+ exact_modified?: string | null;
65437
+ exact_timestamp?: number | null;
65438
+ id?: string;
65439
+ is_active?: boolean;
65440
+ name?: string | null;
65441
+ phone?: string | null;
65442
+ postcode?: string | null;
65443
+ raw?: import("../integrations/supabase/types").Json | null;
65444
+ status?: string | null;
65445
+ updated_at?: string;
65446
+ vat_number?: string | null;
65447
+ website?: string | null;
65448
+ };
65449
+ Relationships: [];
65450
+ };
65451
+ exact_auth_divisions: {
65452
+ Row: {
65453
+ account_key: string;
65454
+ company_name: string | null;
65455
+ created_at: string;
65456
+ division_code: number | null;
65457
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65458
+ id: string;
65459
+ last_synced_at: string | null;
65460
+ updated_at: string;
65461
+ };
65462
+ Insert: {
65463
+ account_key?: string;
65464
+ company_name?: string | null;
65465
+ created_at?: string;
65466
+ division_code?: number | null;
65467
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65468
+ id?: string;
65469
+ last_synced_at?: string | null;
65470
+ updated_at?: string;
65471
+ };
65472
+ Update: {
65473
+ account_key?: string;
65474
+ company_name?: string | null;
65475
+ created_at?: string;
65476
+ division_code?: number | null;
65477
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65478
+ id?: string;
65479
+ last_synced_at?: string | null;
65480
+ updated_at?: string;
65481
+ };
65482
+ Relationships: [];
65483
+ };
65484
+ exact_auth_invoice_lines: {
65485
+ Row: {
65486
+ account_key: string;
65487
+ amount_excl: number | null;
65488
+ created_at: string;
65489
+ description: string | null;
65490
+ discount: number | null;
65491
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65492
+ exact_id: string;
65493
+ exact_timestamp: number | null;
65494
+ id: string;
65495
+ invoice_exact_id: string;
65496
+ item_code: string | null;
65497
+ item_exact_id: string | null;
65498
+ line_number: number | null;
65499
+ quantity: number | null;
65500
+ raw: import("../integrations/supabase/types").Json | null;
65501
+ unit_price: number | null;
65502
+ updated_at: string;
65503
+ vat_amount: number | null;
65504
+ vat_code: string | null;
65505
+ };
65506
+ Insert: {
65507
+ account_key?: string;
65508
+ amount_excl?: number | null;
65509
+ created_at?: string;
65510
+ description?: string | null;
65511
+ discount?: number | null;
65512
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65513
+ exact_id: string;
65514
+ exact_timestamp?: number | null;
65515
+ id?: string;
65516
+ invoice_exact_id: string;
65517
+ item_code?: string | null;
65518
+ item_exact_id?: string | null;
65519
+ line_number?: number | null;
65520
+ quantity?: number | null;
65521
+ raw?: import("../integrations/supabase/types").Json | null;
65522
+ unit_price?: number | null;
65523
+ updated_at?: string;
65524
+ vat_amount?: number | null;
65525
+ vat_code?: string | null;
65526
+ };
65527
+ Update: {
65528
+ account_key?: string;
65529
+ amount_excl?: number | null;
65530
+ created_at?: string;
65531
+ description?: string | null;
65532
+ discount?: number | null;
65533
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65534
+ exact_id?: string;
65535
+ exact_timestamp?: number | null;
65536
+ id?: string;
65537
+ invoice_exact_id?: string;
65538
+ item_code?: string | null;
65539
+ item_exact_id?: string | null;
65540
+ line_number?: number | null;
65541
+ quantity?: number | null;
65542
+ raw?: import("../integrations/supabase/types").Json | null;
65543
+ unit_price?: number | null;
65544
+ updated_at?: string;
65545
+ vat_amount?: number | null;
65546
+ vat_code?: string | null;
65547
+ };
65548
+ Relationships: [];
65549
+ };
65550
+ exact_auth_invoices: {
65551
+ Row: {
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
+ Insert: {
65580
+ account_key?: string;
65581
+ amount_excl?: number | null;
65582
+ amount_incl?: number | null;
65583
+ amount_open?: number | null;
65584
+ created_at?: string;
65585
+ currency?: string | null;
65586
+ customer_code?: string | null;
65587
+ customer_exact_id?: string | null;
65588
+ customer_name?: string | null;
65589
+ description?: string | null;
65590
+ division_code?: number | null;
65591
+ due_date?: string | null;
65592
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65593
+ exact_id: string;
65594
+ exact_modified?: string | null;
65595
+ exact_timestamp?: number | null;
65596
+ id?: string;
65597
+ invoice_date?: string | null;
65598
+ invoice_number?: string | null;
65599
+ order_number?: string | null;
65600
+ paid_at?: string | null;
65601
+ payment_status?: string;
65602
+ raw?: import("../integrations/supabase/types").Json | null;
65603
+ receivable_synced_at?: string | null;
65604
+ status_code?: number | null;
65605
+ updated_at?: string;
65606
+ };
65607
+ Update: {
65608
+ account_key?: string;
65609
+ amount_excl?: number | null;
65610
+ amount_incl?: number | null;
65611
+ amount_open?: number | null;
65612
+ created_at?: string;
65613
+ currency?: string | null;
65614
+ customer_code?: string | null;
65615
+ customer_exact_id?: string | null;
65616
+ customer_name?: string | null;
65617
+ description?: string | null;
65618
+ division_code?: number | null;
65619
+ due_date?: string | null;
65620
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65621
+ exact_id?: string;
65622
+ exact_modified?: string | null;
65623
+ exact_timestamp?: number | null;
65624
+ id?: string;
65625
+ invoice_date?: string | null;
65626
+ invoice_number?: string | null;
65627
+ order_number?: string | null;
65628
+ paid_at?: string | null;
65629
+ payment_status?: string;
65630
+ raw?: import("../integrations/supabase/types").Json | null;
65631
+ receivable_synced_at?: string | null;
65632
+ status_code?: number | null;
65633
+ updated_at?: string;
65634
+ };
65635
+ Relationships: [];
65636
+ };
65637
+ exact_auth_items: {
65638
+ Row: {
65639
+ account_key: string;
65640
+ barcode: string | null;
65641
+ code: string | null;
65642
+ cost_price: number | null;
65643
+ created_at: string;
65644
+ description: string | null;
65645
+ division_code: number | null;
65646
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65647
+ exact_id: string;
65648
+ exact_modified: string | null;
65649
+ exact_timestamp: number | null;
65650
+ gl_account_code: string | null;
65651
+ id: string;
65652
+ is_active: boolean;
65653
+ is_sales_item: boolean | null;
65654
+ item_type: string | null;
65655
+ raw: import("../integrations/supabase/types").Json | null;
65656
+ sales_price: number | null;
65657
+ unit: string | null;
65658
+ updated_at: string;
65659
+ vat_code: string | null;
65660
+ };
65661
+ Insert: {
65662
+ account_key?: string;
65663
+ barcode?: string | null;
65664
+ code?: string | null;
65665
+ cost_price?: number | null;
65666
+ created_at?: string;
65667
+ description?: string | null;
65668
+ division_code?: number | null;
65669
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65670
+ exact_id: string;
65671
+ exact_modified?: string | null;
65672
+ exact_timestamp?: number | null;
65673
+ gl_account_code?: string | null;
65674
+ id?: string;
65675
+ is_active?: boolean;
65676
+ is_sales_item?: boolean | null;
65677
+ item_type?: string | null;
65678
+ raw?: import("../integrations/supabase/types").Json | null;
65679
+ sales_price?: number | null;
65680
+ unit?: string | null;
65681
+ updated_at?: string;
65682
+ vat_code?: string | null;
65683
+ };
65684
+ Update: {
65685
+ account_key?: string;
65686
+ barcode?: string | null;
65687
+ code?: string | null;
65688
+ cost_price?: number | null;
65689
+ created_at?: string;
65690
+ description?: string | null;
65691
+ division_code?: number | null;
65692
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65693
+ exact_id?: string;
65694
+ exact_modified?: string | null;
65695
+ exact_timestamp?: number | null;
65696
+ gl_account_code?: string | null;
65697
+ id?: string;
65698
+ is_active?: boolean;
65699
+ is_sales_item?: boolean | null;
65700
+ item_type?: string | null;
65701
+ raw?: import("../integrations/supabase/types").Json | null;
65702
+ sales_price?: number | null;
65703
+ unit?: string | null;
65704
+ updated_at?: string;
65705
+ vat_code?: string | null;
65706
+ };
65707
+ Relationships: [];
65708
+ };
65709
+ exact_auth_sync_log: {
65710
+ Row: {
65711
+ account_key: string;
65712
+ calls_used: number;
65713
+ created_at: string;
65714
+ domain: string;
65715
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65716
+ error: string | null;
65717
+ finished_at: string | null;
65718
+ id: string;
65719
+ ok: boolean;
65720
+ records: number;
65721
+ started_at: string;
65722
+ };
65723
+ Insert: {
65724
+ account_key?: string;
65725
+ calls_used?: number;
65726
+ created_at?: string;
65727
+ domain: string;
65728
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65729
+ error?: string | null;
65730
+ finished_at?: string | null;
65731
+ id?: string;
65732
+ ok?: boolean;
65733
+ records?: number;
65734
+ started_at?: string;
65735
+ };
65736
+ Update: {
65737
+ account_key?: string;
65738
+ calls_used?: number;
65739
+ created_at?: string;
65740
+ domain?: string;
65741
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65742
+ error?: string | null;
65743
+ finished_at?: string | null;
65744
+ id?: string;
65745
+ ok?: boolean;
65746
+ records?: number;
65747
+ started_at?: string;
65748
+ };
65749
+ Relationships: [];
65750
+ };
65751
+ exact_auth_sync_state: {
65752
+ Row: {
65753
+ account_key: string;
65754
+ created_at: string;
65755
+ cursor_timestamp: number;
65756
+ division_code: number | null;
65757
+ domain: string;
65758
+ duration_ms: number | null;
65759
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65760
+ initial_sync_done: boolean;
65761
+ last_error: string | null;
65762
+ last_run_at: string | null;
65763
+ last_success_at: string | null;
65764
+ locked_at: string | null;
65765
+ needs_initial_sync: boolean;
65766
+ record_count: number;
65767
+ updated_at: string;
65768
+ };
65769
+ Insert: {
65770
+ account_key?: string;
65771
+ created_at?: string;
65772
+ cursor_timestamp?: number;
65773
+ division_code?: number | null;
65774
+ domain: string;
65775
+ duration_ms?: number | null;
65776
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65777
+ initial_sync_done?: boolean;
65778
+ last_error?: string | null;
65779
+ last_run_at?: string | null;
65780
+ last_success_at?: string | null;
65781
+ locked_at?: string | null;
65782
+ needs_initial_sync?: boolean;
65783
+ record_count?: number;
65784
+ updated_at?: string;
65785
+ };
65786
+ Update: {
65787
+ account_key?: string;
65788
+ created_at?: string;
65789
+ cursor_timestamp?: number;
65790
+ division_code?: number | null;
65791
+ domain?: string;
65792
+ duration_ms?: number | null;
65793
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65794
+ initial_sync_done?: boolean;
65795
+ last_error?: string | null;
65796
+ last_run_at?: string | null;
65797
+ last_success_at?: string | null;
65798
+ locked_at?: string | null;
65799
+ needs_initial_sync?: boolean;
65800
+ record_count?: number;
65801
+ updated_at?: string;
65802
+ };
65803
+ Relationships: [];
65804
+ };
63102
65805
  exact_bulk_operation_items: {
63103
65806
  Row: {
63104
65807
  attempts: number;
@@ -64790,12 +67493,17 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
64790
67493
  attempts: number;
64791
67494
  connection_id: string;
64792
67495
  created_at: string;
67496
+ desired_available: boolean | null;
64793
67497
  gateway_attempt_id: string | null;
64794
67498
  id: string;
64795
67499
  last_error: string | null;
67500
+ locked_at: string | null;
67501
+ locked_by: string | null;
67502
+ next_attempt_at: string;
64796
67503
  number_of_pieces: number;
64797
67504
  sent_at: string | null;
64798
67505
  status: string;
67506
+ superseded_by: string | null;
64799
67507
  trade_item_id: string;
64800
67508
  updated_at: string;
64801
67509
  user_id: string;
@@ -64804,12 +67512,17 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
64804
67512
  attempts?: number;
64805
67513
  connection_id: string;
64806
67514
  created_at?: string;
67515
+ desired_available?: boolean | null;
64807
67516
  gateway_attempt_id?: string | null;
64808
67517
  id?: string;
64809
67518
  last_error?: string | null;
67519
+ locked_at?: string | null;
67520
+ locked_by?: string | null;
67521
+ next_attempt_at?: string;
64810
67522
  number_of_pieces?: number;
64811
67523
  sent_at?: string | null;
64812
67524
  status?: string;
67525
+ superseded_by?: string | null;
64813
67526
  trade_item_id: string;
64814
67527
  updated_at?: string;
64815
67528
  user_id: string;
@@ -64818,12 +67531,17 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
64818
67531
  attempts?: number;
64819
67532
  connection_id?: string;
64820
67533
  created_at?: string;
67534
+ desired_available?: boolean | null;
64821
67535
  gateway_attempt_id?: string | null;
64822
67536
  id?: string;
64823
67537
  last_error?: string | null;
67538
+ locked_at?: string | null;
67539
+ locked_by?: string | null;
67540
+ next_attempt_at?: string;
64824
67541
  number_of_pieces?: number;
64825
67542
  sent_at?: string | null;
64826
67543
  status?: string;
67544
+ superseded_by?: string | null;
64827
67545
  trade_item_id?: string;
64828
67546
  updated_at?: string;
64829
67547
  user_id?: string;
@@ -67572,6 +70290,69 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
67572
70290
  };
67573
70291
  Relationships: [];
67574
70292
  };
70293
+ logistics_floriday_pushes: {
70294
+ Row: {
70295
+ attempts: number;
70296
+ created_at: string;
70297
+ first_queued_at: string;
70298
+ fulfillment_order_id: string | null;
70299
+ id: string;
70300
+ last_error: string | null;
70301
+ last_error_at: string | null;
70302
+ last_sent_hash: string | null;
70303
+ locked_by: string | null;
70304
+ locked_until: string | null;
70305
+ next_attempt_at: string;
70306
+ order_ref: string;
70307
+ payload: import("../integrations/supabase/types").Json;
70308
+ payload_hash: string | null;
70309
+ revision: number;
70310
+ sent_at: string | null;
70311
+ status: string;
70312
+ updated_at: string;
70313
+ };
70314
+ Insert: {
70315
+ attempts?: number;
70316
+ created_at?: string;
70317
+ first_queued_at?: string;
70318
+ fulfillment_order_id?: string | null;
70319
+ id?: string;
70320
+ last_error?: string | null;
70321
+ last_error_at?: string | null;
70322
+ last_sent_hash?: string | null;
70323
+ locked_by?: string | null;
70324
+ locked_until?: string | null;
70325
+ next_attempt_at?: string;
70326
+ order_ref: string;
70327
+ payload?: import("../integrations/supabase/types").Json;
70328
+ payload_hash?: string | null;
70329
+ revision?: number;
70330
+ sent_at?: string | null;
70331
+ status?: string;
70332
+ updated_at?: string;
70333
+ };
70334
+ Update: {
70335
+ attempts?: number;
70336
+ created_at?: string;
70337
+ first_queued_at?: string;
70338
+ fulfillment_order_id?: string | null;
70339
+ id?: string;
70340
+ last_error?: string | null;
70341
+ last_error_at?: string | null;
70342
+ last_sent_hash?: string | null;
70343
+ locked_by?: string | null;
70344
+ locked_until?: string | null;
70345
+ next_attempt_at?: string;
70346
+ order_ref?: string;
70347
+ payload?: import("../integrations/supabase/types").Json;
70348
+ payload_hash?: string | null;
70349
+ revision?: number;
70350
+ sent_at?: string | null;
70351
+ status?: string;
70352
+ updated_at?: string;
70353
+ };
70354
+ Relationships: [];
70355
+ };
67575
70356
  logistics_formulas: {
67576
70357
  Row: {
67577
70358
  created_at: string;
@@ -68183,6 +70964,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68183
70964
  };
68184
70965
  logistics_tasks: {
68185
70966
  Row: {
70967
+ attempt_log: import("../integrations/supabase/types").Json;
70968
+ attempts: number;
68186
70969
  buffer_ref: string | null;
68187
70970
  claimed_at: string | null;
68188
70971
  claimed_by: string | null;
@@ -68192,6 +70975,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68192
70975
  due_at: string | null;
68193
70976
  error: string | null;
68194
70977
  id: string;
70978
+ last_error: string | null;
70979
+ next_attempt_at: string | null;
68195
70980
  order_ref: string;
68196
70981
  owner_module: string;
68197
70982
  payload: import("../integrations/supabase/types").Json;
@@ -68212,6 +70997,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68212
70997
  user_id: string;
68213
70998
  };
68214
70999
  Insert: {
71000
+ attempt_log?: import("../integrations/supabase/types").Json;
71001
+ attempts?: number;
68215
71002
  buffer_ref?: string | null;
68216
71003
  claimed_at?: string | null;
68217
71004
  claimed_by?: string | null;
@@ -68221,6 +71008,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68221
71008
  due_at?: string | null;
68222
71009
  error?: string | null;
68223
71010
  id?: string;
71011
+ last_error?: string | null;
71012
+ next_attempt_at?: string | null;
68224
71013
  order_ref: string;
68225
71014
  owner_module: string;
68226
71015
  payload?: import("../integrations/supabase/types").Json;
@@ -68241,6 +71030,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68241
71030
  user_id?: string;
68242
71031
  };
68243
71032
  Update: {
71033
+ attempt_log?: import("../integrations/supabase/types").Json;
71034
+ attempts?: number;
68244
71035
  buffer_ref?: string | null;
68245
71036
  claimed_at?: string | null;
68246
71037
  claimed_by?: string | null;
@@ -68250,6 +71041,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
68250
71041
  due_at?: string | null;
68251
71042
  error?: string | null;
68252
71043
  id?: string;
71044
+ last_error?: string | null;
71045
+ next_attempt_at?: string | null;
68253
71046
  order_ref?: string;
68254
71047
  owner_module?: string;
68255
71048
  payload?: import("../integrations/supabase/types").Json;
@@ -69599,6 +72392,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
69599
72392
  };
69600
72393
  offer_settings: {
69601
72394
  Row: {
72395
+ brand_name: string | null;
69602
72396
  button_color: string;
69603
72397
  created_at: string;
69604
72398
  default_countries: string[];
@@ -69620,6 +72414,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
69620
72414
  updated_at: string;
69621
72415
  };
69622
72416
  Insert: {
72417
+ brand_name?: string | null;
69623
72418
  button_color?: string;
69624
72419
  created_at?: string;
69625
72420
  default_countries?: string[];
@@ -69641,6 +72436,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
69641
72436
  updated_at?: string;
69642
72437
  };
69643
72438
  Update: {
72439
+ brand_name?: string | null;
69644
72440
  button_color?: string;
69645
72441
  created_at?: string;
69646
72442
  default_countries?: string[];
@@ -77251,6 +80047,85 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
77251
80047
  };
77252
80048
  Returns: import("../integrations/supabase/types").Json;
77253
80049
  };
80050
+ claim_floriday_stock_queue: {
80051
+ Args: {
80052
+ p_limit?: number;
80053
+ p_worker?: string;
80054
+ };
80055
+ Returns: {
80056
+ attempts: number;
80057
+ connection_id: string;
80058
+ created_at: string;
80059
+ desired_available: boolean | null;
80060
+ gateway_attempt_id: string | null;
80061
+ id: string;
80062
+ last_error: string | null;
80063
+ locked_at: string | null;
80064
+ locked_by: string | null;
80065
+ next_attempt_at: string;
80066
+ number_of_pieces: number;
80067
+ sent_at: string | null;
80068
+ status: string;
80069
+ superseded_by: string | null;
80070
+ trade_item_id: string;
80071
+ updated_at: string;
80072
+ user_id: string;
80073
+ }[];
80074
+ SetofOptions: {
80075
+ from: "*";
80076
+ to: "floriday_continuous_stock_queue";
80077
+ isOneToOne: false;
80078
+ isSetofReturn: true;
80079
+ };
80080
+ };
80081
+ claim_logistics_tasks: {
80082
+ Args: {
80083
+ _limit?: number;
80084
+ _owner_module: string;
80085
+ _stale_minutes?: number;
80086
+ _task_type: string;
80087
+ _worker: string;
80088
+ };
80089
+ Returns: {
80090
+ attempt_log: import("../integrations/supabase/types").Json;
80091
+ attempts: number;
80092
+ buffer_ref: string | null;
80093
+ claimed_at: string | null;
80094
+ claimed_by: string | null;
80095
+ completed_at: string | null;
80096
+ created_at: string;
80097
+ depends_on: string[];
80098
+ due_at: string | null;
80099
+ error: string | null;
80100
+ id: string;
80101
+ last_error: string | null;
80102
+ next_attempt_at: string | null;
80103
+ order_ref: string;
80104
+ owner_module: string;
80105
+ payload: import("../integrations/supabase/types").Json;
80106
+ plan_run_id: string | null;
80107
+ planned_end: string | null;
80108
+ planned_start: string | null;
80109
+ priority: number;
80110
+ result: import("../integrations/supabase/types").Json | null;
80111
+ rule_config_id: string | null;
80112
+ rule_version: number | null;
80113
+ sequence: number;
80114
+ shadow: boolean;
80115
+ started_at: string | null;
80116
+ status: string;
80117
+ strategy_id: string | null;
80118
+ task_type: string;
80119
+ updated_at: string;
80120
+ user_id: string;
80121
+ }[];
80122
+ SetofOptions: {
80123
+ from: "*";
80124
+ to: "logistics_tasks";
80125
+ isOneToOne: false;
80126
+ isSetofReturn: true;
80127
+ };
80128
+ };
77254
80129
  claim_print_jobs: {
77255
80130
  Args: {
77256
80131
  _agent_id: string;
@@ -77315,10 +80190,24 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
77315
80190
  isSetofReturn: true;
77316
80191
  };
77317
80192
  };
80193
+ cleanup_floriday_stock_queue: {
80194
+ Args: never;
80195
+ Returns: undefined;
80196
+ };
77318
80197
  cleanup_old_bookings: {
77319
80198
  Args: never;
77320
80199
  Returns: undefined;
77321
80200
  };
80201
+ complete_floriday_stock_queue: {
80202
+ Args: {
80203
+ p_attempt_id?: string;
80204
+ p_error?: string;
80205
+ p_id: string;
80206
+ p_ok: boolean;
80207
+ p_permanent?: boolean;
80208
+ };
80209
+ Returns: undefined;
80210
+ };
77322
80211
  consume_bom_for_production: {
77323
80212
  Args: {
77324
80213
  p_connection_id: string;
@@ -77491,6 +80380,21 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
77491
80380
  Args: never;
77492
80381
  Returns: string;
77493
80382
  };
80383
+ exact_auth_consume_calls: {
80384
+ Args: {
80385
+ _account_key: string;
80386
+ _calls?: number;
80387
+ _day_limit?: number;
80388
+ _division_code: number;
80389
+ _environment: string;
80390
+ _minute_limit?: number;
80391
+ };
80392
+ Returns: import("../integrations/supabase/types").Json;
80393
+ };
80394
+ exact_auth_prune_sync_log: {
80395
+ Args: never;
80396
+ Returns: undefined;
80397
+ };
77494
80398
  exact_decrypt: {
77495
80399
  Args: {
77496
80400
  cipher: string;
@@ -77700,6 +80604,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
77700
80604
  };
77701
80605
  Returns: number;
77702
80606
  };
80607
+ get_offer_branding: {
80608
+ Args: never;
80609
+ Returns: import("../integrations/supabase/types").Json;
80610
+ };
77703
80611
  get_offer_by_link_code: {
77704
80612
  Args: {
77705
80613
  p_code: string;
@@ -77991,6 +80899,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
77991
80899
  p_worker?: string;
77992
80900
  };
77993
80901
  Returns: {
80902
+ attempt_log: import("../integrations/supabase/types").Json;
80903
+ attempts: number;
77994
80904
  buffer_ref: string | null;
77995
80905
  claimed_at: string | null;
77996
80906
  claimed_by: string | null;
@@ -78000,6 +80910,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78000
80910
  due_at: string | null;
78001
80911
  error: string | null;
78002
80912
  id: string;
80913
+ last_error: string | null;
80914
+ next_attempt_at: string | null;
78003
80915
  order_ref: string;
78004
80916
  owner_module: string;
78005
80917
  payload: import("../integrations/supabase/types").Json;
@@ -78032,6 +80944,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78032
80944
  p_worker?: string;
78033
80945
  };
78034
80946
  Returns: {
80947
+ attempt_log: import("../integrations/supabase/types").Json;
80948
+ attempts: number;
78035
80949
  buffer_ref: string | null;
78036
80950
  claimed_at: string | null;
78037
80951
  claimed_by: string | null;
@@ -78041,6 +80955,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78041
80955
  due_at: string | null;
78042
80956
  error: string | null;
78043
80957
  id: string;
80958
+ last_error: string | null;
80959
+ next_attempt_at: string | null;
78044
80960
  order_ref: string;
78045
80961
  owner_module: string;
78046
80962
  payload: import("../integrations/supabase/types").Json;
@@ -78073,6 +80989,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78073
80989
  p_task_id: string;
78074
80990
  };
78075
80991
  Returns: {
80992
+ attempt_log: import("../integrations/supabase/types").Json;
80993
+ attempts: number;
78076
80994
  buffer_ref: string | null;
78077
80995
  claimed_at: string | null;
78078
80996
  claimed_by: string | null;
@@ -78082,6 +81000,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78082
81000
  due_at: string | null;
78083
81001
  error: string | null;
78084
81002
  id: string;
81003
+ last_error: string | null;
81004
+ next_attempt_at: string | null;
78085
81005
  order_ref: string;
78086
81006
  owner_module: string;
78087
81007
  payload: import("../integrations/supabase/types").Json;
@@ -78163,6 +81083,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78163
81083
  p_task_id: string;
78164
81084
  };
78165
81085
  Returns: {
81086
+ attempt_log: import("../integrations/supabase/types").Json;
81087
+ attempts: number;
78166
81088
  buffer_ref: string | null;
78167
81089
  claimed_at: string | null;
78168
81090
  claimed_by: string | null;
@@ -78172,6 +81094,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78172
81094
  due_at: string | null;
78173
81095
  error: string | null;
78174
81096
  id: string;
81097
+ last_error: string | null;
81098
+ next_attempt_at: string | null;
78175
81099
  order_ref: string;
78176
81100
  owner_module: string;
78177
81101
  payload: import("../integrations/supabase/types").Json;
@@ -78198,6 +81122,51 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78198
81122
  isSetofReturn: false;
78199
81123
  };
78200
81124
  };
81125
+ logistics_floriday_claim_pushes: {
81126
+ Args: {
81127
+ _lease_seconds?: number;
81128
+ _limit?: number;
81129
+ _worker?: string;
81130
+ };
81131
+ Returns: {
81132
+ attempts: number;
81133
+ fulfillment_order_id: string;
81134
+ id: string;
81135
+ last_sent_hash: string;
81136
+ order_ref: string;
81137
+ payload: import("../integrations/supabase/types").Json;
81138
+ payload_hash: string;
81139
+ revision: number;
81140
+ }[];
81141
+ };
81142
+ logistics_floriday_finish_push: {
81143
+ Args: {
81144
+ _error?: string;
81145
+ _fulfillment_order_id?: string;
81146
+ _id: string;
81147
+ _max_age_hours?: number;
81148
+ _max_attempts?: number;
81149
+ _ok: boolean;
81150
+ _permanent?: boolean;
81151
+ _revision: number;
81152
+ _sent_hash?: string;
81153
+ };
81154
+ Returns: string;
81155
+ };
81156
+ logistics_floriday_prune_pushes: {
81157
+ Args: {
81158
+ _days?: number;
81159
+ };
81160
+ Returns: number;
81161
+ };
81162
+ logistics_floriday_queue_push: {
81163
+ Args: {
81164
+ _order_ref: string;
81165
+ _payload?: import("../integrations/supabase/types").Json;
81166
+ _payload_hash?: string;
81167
+ };
81168
+ Returns: string;
81169
+ };
78201
81170
  logistics_live_carriers: {
78202
81171
  Args: {
78203
81172
  p_order_ref: string;
@@ -78925,6 +81894,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
78925
81894
  Args: never;
78926
81895
  Returns: undefined;
78927
81896
  };
81897
+ run_logistics_tasks_dispatch: {
81898
+ Args: never;
81899
+ Returns: undefined;
81900
+ };
78928
81901
  run_twinfield_queue_tick: {
78929
81902
  Args: never;
78930
81903
  Returns: undefined;
@@ -79165,6 +82138,13 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
79165
82138
  };
79166
82139
  Returns: number;
79167
82140
  };
82141
+ schedule_floriday_stock_queue_process: {
82142
+ Args: {
82143
+ p_apikey: string;
82144
+ p_url: string;
82145
+ };
82146
+ Returns: number;
82147
+ };
79168
82148
  schedule_floriday_token_refresh: {
79169
82149
  Args: {
79170
82150
  p_apikey: string;