@flowselections/floriday-afhandeling-module 1.0.28 → 1.0.29

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.
@@ -3593,6 +3593,474 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3593
3593
  referencedColumns: ["id"];
3594
3594
  }];
3595
3595
  };
3596
+ exact_auth_call_budget: {
3597
+ Row: {
3598
+ account_key: string;
3599
+ day_count: number;
3600
+ day_date: string;
3601
+ division_code: number;
3602
+ environment: string;
3603
+ minute_count: number;
3604
+ minute_window: string;
3605
+ updated_at: string;
3606
+ };
3607
+ Insert: {
3608
+ account_key?: string;
3609
+ day_count?: number;
3610
+ day_date?: string;
3611
+ division_code?: number;
3612
+ environment: string;
3613
+ minute_count?: number;
3614
+ minute_window?: string;
3615
+ updated_at?: string;
3616
+ };
3617
+ Update: {
3618
+ account_key?: string;
3619
+ day_count?: number;
3620
+ day_date?: string;
3621
+ division_code?: number;
3622
+ environment?: string;
3623
+ minute_count?: number;
3624
+ minute_window?: string;
3625
+ updated_at?: string;
3626
+ };
3627
+ Relationships: [];
3628
+ };
3629
+ exact_auth_customers: {
3630
+ Row: {
3631
+ account_key: string;
3632
+ address_line1: string | null;
3633
+ chamber_of_commerce: string | null;
3634
+ city: string | null;
3635
+ code: string | null;
3636
+ country: string | null;
3637
+ created_at: string;
3638
+ currency: string | null;
3639
+ division_code: number | null;
3640
+ email: string | null;
3641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3642
+ exact_id: string;
3643
+ exact_modified: string | null;
3644
+ exact_timestamp: number | null;
3645
+ id: string;
3646
+ is_active: boolean;
3647
+ name: string | null;
3648
+ phone: string | null;
3649
+ postcode: string | null;
3650
+ raw: import("../integrations/supabase/types").Json | null;
3651
+ status: string | null;
3652
+ updated_at: string;
3653
+ vat_number: string | null;
3654
+ website: string | null;
3655
+ };
3656
+ Insert: {
3657
+ account_key?: string;
3658
+ address_line1?: string | null;
3659
+ chamber_of_commerce?: string | null;
3660
+ city?: string | null;
3661
+ code?: string | null;
3662
+ country?: string | null;
3663
+ created_at?: string;
3664
+ currency?: string | null;
3665
+ division_code?: number | null;
3666
+ email?: string | null;
3667
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3668
+ exact_id: string;
3669
+ exact_modified?: string | null;
3670
+ exact_timestamp?: number | null;
3671
+ id?: string;
3672
+ is_active?: boolean;
3673
+ name?: string | null;
3674
+ phone?: string | null;
3675
+ postcode?: string | null;
3676
+ raw?: import("../integrations/supabase/types").Json | null;
3677
+ status?: string | null;
3678
+ updated_at?: string;
3679
+ vat_number?: string | null;
3680
+ website?: string | null;
3681
+ };
3682
+ Update: {
3683
+ account_key?: string;
3684
+ address_line1?: string | null;
3685
+ chamber_of_commerce?: string | null;
3686
+ city?: string | null;
3687
+ code?: string | null;
3688
+ country?: string | null;
3689
+ created_at?: string;
3690
+ currency?: string | null;
3691
+ division_code?: number | null;
3692
+ email?: string | null;
3693
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3694
+ exact_id?: string;
3695
+ exact_modified?: string | null;
3696
+ exact_timestamp?: number | null;
3697
+ id?: string;
3698
+ is_active?: boolean;
3699
+ name?: string | null;
3700
+ phone?: string | null;
3701
+ postcode?: string | null;
3702
+ raw?: import("../integrations/supabase/types").Json | null;
3703
+ status?: string | null;
3704
+ updated_at?: string;
3705
+ vat_number?: string | null;
3706
+ website?: string | null;
3707
+ };
3708
+ Relationships: [];
3709
+ };
3710
+ exact_auth_divisions: {
3711
+ Row: {
3712
+ account_key: string;
3713
+ company_name: string | null;
3714
+ created_at: string;
3715
+ division_code: number | null;
3716
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3717
+ id: string;
3718
+ last_synced_at: string | null;
3719
+ updated_at: string;
3720
+ };
3721
+ Insert: {
3722
+ account_key?: string;
3723
+ company_name?: string | null;
3724
+ created_at?: string;
3725
+ division_code?: number | null;
3726
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3727
+ id?: string;
3728
+ last_synced_at?: string | null;
3729
+ updated_at?: string;
3730
+ };
3731
+ Update: {
3732
+ account_key?: string;
3733
+ company_name?: string | null;
3734
+ created_at?: string;
3735
+ division_code?: number | null;
3736
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3737
+ id?: string;
3738
+ last_synced_at?: string | null;
3739
+ updated_at?: string;
3740
+ };
3741
+ Relationships: [];
3742
+ };
3743
+ exact_auth_invoice_lines: {
3744
+ Row: {
3745
+ account_key: string;
3746
+ amount_excl: number | null;
3747
+ created_at: string;
3748
+ description: string | null;
3749
+ discount: number | null;
3750
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3751
+ exact_id: string;
3752
+ exact_timestamp: number | null;
3753
+ id: string;
3754
+ invoice_exact_id: string;
3755
+ item_code: string | null;
3756
+ item_exact_id: string | null;
3757
+ line_number: number | null;
3758
+ quantity: number | null;
3759
+ raw: import("../integrations/supabase/types").Json | null;
3760
+ unit_price: number | null;
3761
+ updated_at: string;
3762
+ vat_amount: number | null;
3763
+ vat_code: string | null;
3764
+ };
3765
+ Insert: {
3766
+ account_key?: string;
3767
+ amount_excl?: number | null;
3768
+ created_at?: string;
3769
+ description?: string | null;
3770
+ discount?: number | null;
3771
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3772
+ exact_id: string;
3773
+ exact_timestamp?: number | null;
3774
+ id?: string;
3775
+ invoice_exact_id: string;
3776
+ item_code?: string | null;
3777
+ item_exact_id?: string | null;
3778
+ line_number?: number | null;
3779
+ quantity?: number | null;
3780
+ raw?: import("../integrations/supabase/types").Json | null;
3781
+ unit_price?: number | null;
3782
+ updated_at?: string;
3783
+ vat_amount?: number | null;
3784
+ vat_code?: string | null;
3785
+ };
3786
+ Update: {
3787
+ account_key?: string;
3788
+ amount_excl?: number | null;
3789
+ created_at?: string;
3790
+ description?: string | null;
3791
+ discount?: number | null;
3792
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3793
+ exact_id?: string;
3794
+ exact_timestamp?: number | null;
3795
+ id?: string;
3796
+ invoice_exact_id?: string;
3797
+ item_code?: string | null;
3798
+ item_exact_id?: string | null;
3799
+ line_number?: number | null;
3800
+ quantity?: number | null;
3801
+ raw?: import("../integrations/supabase/types").Json | null;
3802
+ unit_price?: number | null;
3803
+ updated_at?: string;
3804
+ vat_amount?: number | null;
3805
+ vat_code?: string | null;
3806
+ };
3807
+ Relationships: [];
3808
+ };
3809
+ exact_auth_invoices: {
3810
+ Row: {
3811
+ account_key: string;
3812
+ amount_excl: number | null;
3813
+ amount_incl: number | null;
3814
+ amount_open: number | null;
3815
+ created_at: string;
3816
+ currency: string | null;
3817
+ customer_code: string | null;
3818
+ customer_exact_id: string | null;
3819
+ customer_name: string | null;
3820
+ description: string | null;
3821
+ division_code: number | null;
3822
+ due_date: string | null;
3823
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3824
+ exact_id: string;
3825
+ exact_modified: string | null;
3826
+ exact_timestamp: number | null;
3827
+ id: string;
3828
+ invoice_date: string | null;
3829
+ invoice_number: string | null;
3830
+ order_number: string | null;
3831
+ paid_at: string | null;
3832
+ payment_status: string;
3833
+ raw: import("../integrations/supabase/types").Json | null;
3834
+ receivable_synced_at: string | null;
3835
+ status_code: number | null;
3836
+ updated_at: string;
3837
+ };
3838
+ Insert: {
3839
+ account_key?: string;
3840
+ amount_excl?: number | null;
3841
+ amount_incl?: number | null;
3842
+ amount_open?: number | null;
3843
+ created_at?: string;
3844
+ currency?: string | null;
3845
+ customer_code?: string | null;
3846
+ customer_exact_id?: string | null;
3847
+ customer_name?: string | null;
3848
+ description?: string | null;
3849
+ division_code?: number | null;
3850
+ due_date?: string | null;
3851
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3852
+ exact_id: string;
3853
+ exact_modified?: string | null;
3854
+ exact_timestamp?: number | null;
3855
+ id?: string;
3856
+ invoice_date?: string | null;
3857
+ invoice_number?: string | null;
3858
+ order_number?: string | null;
3859
+ paid_at?: string | null;
3860
+ payment_status?: string;
3861
+ raw?: import("../integrations/supabase/types").Json | null;
3862
+ receivable_synced_at?: string | null;
3863
+ status_code?: number | null;
3864
+ updated_at?: string;
3865
+ };
3866
+ Update: {
3867
+ account_key?: string;
3868
+ amount_excl?: number | null;
3869
+ amount_incl?: number | null;
3870
+ amount_open?: number | null;
3871
+ created_at?: string;
3872
+ currency?: string | null;
3873
+ customer_code?: string | null;
3874
+ customer_exact_id?: string | null;
3875
+ customer_name?: string | null;
3876
+ description?: string | null;
3877
+ division_code?: number | null;
3878
+ due_date?: string | null;
3879
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3880
+ exact_id?: string;
3881
+ exact_modified?: string | null;
3882
+ exact_timestamp?: number | null;
3883
+ id?: string;
3884
+ invoice_date?: string | null;
3885
+ invoice_number?: string | null;
3886
+ order_number?: string | null;
3887
+ paid_at?: string | null;
3888
+ payment_status?: string;
3889
+ raw?: import("../integrations/supabase/types").Json | null;
3890
+ receivable_synced_at?: string | null;
3891
+ status_code?: number | null;
3892
+ updated_at?: string;
3893
+ };
3894
+ Relationships: [];
3895
+ };
3896
+ exact_auth_items: {
3897
+ Row: {
3898
+ account_key: string;
3899
+ barcode: string | null;
3900
+ code: string | null;
3901
+ cost_price: number | null;
3902
+ created_at: string;
3903
+ description: string | null;
3904
+ division_code: number | null;
3905
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3906
+ exact_id: string;
3907
+ exact_modified: string | null;
3908
+ exact_timestamp: number | null;
3909
+ gl_account_code: string | null;
3910
+ id: string;
3911
+ is_active: boolean;
3912
+ is_sales_item: boolean | null;
3913
+ item_type: string | null;
3914
+ raw: import("../integrations/supabase/types").Json | null;
3915
+ sales_price: number | null;
3916
+ unit: string | null;
3917
+ updated_at: string;
3918
+ vat_code: string | null;
3919
+ };
3920
+ Insert: {
3921
+ account_key?: string;
3922
+ barcode?: string | null;
3923
+ code?: string | null;
3924
+ cost_price?: number | null;
3925
+ created_at?: string;
3926
+ description?: string | null;
3927
+ division_code?: number | null;
3928
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3929
+ exact_id: string;
3930
+ exact_modified?: string | null;
3931
+ exact_timestamp?: number | null;
3932
+ gl_account_code?: string | null;
3933
+ id?: string;
3934
+ is_active?: boolean;
3935
+ is_sales_item?: boolean | null;
3936
+ item_type?: string | null;
3937
+ raw?: import("../integrations/supabase/types").Json | null;
3938
+ sales_price?: number | null;
3939
+ unit?: string | null;
3940
+ updated_at?: string;
3941
+ vat_code?: string | null;
3942
+ };
3943
+ Update: {
3944
+ account_key?: string;
3945
+ barcode?: string | null;
3946
+ code?: string | null;
3947
+ cost_price?: number | null;
3948
+ created_at?: string;
3949
+ description?: string | null;
3950
+ division_code?: number | null;
3951
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3952
+ exact_id?: string;
3953
+ exact_modified?: string | null;
3954
+ exact_timestamp?: number | null;
3955
+ gl_account_code?: string | null;
3956
+ id?: string;
3957
+ is_active?: boolean;
3958
+ is_sales_item?: boolean | null;
3959
+ item_type?: string | null;
3960
+ raw?: import("../integrations/supabase/types").Json | null;
3961
+ sales_price?: number | null;
3962
+ unit?: string | null;
3963
+ updated_at?: string;
3964
+ vat_code?: string | null;
3965
+ };
3966
+ Relationships: [];
3967
+ };
3968
+ exact_auth_sync_log: {
3969
+ Row: {
3970
+ account_key: string;
3971
+ calls_used: number;
3972
+ created_at: string;
3973
+ domain: string;
3974
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3975
+ error: string | null;
3976
+ finished_at: string | null;
3977
+ id: string;
3978
+ ok: boolean;
3979
+ records: number;
3980
+ started_at: string;
3981
+ };
3982
+ Insert: {
3983
+ account_key?: string;
3984
+ calls_used?: number;
3985
+ created_at?: string;
3986
+ domain: string;
3987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3988
+ error?: string | null;
3989
+ finished_at?: string | null;
3990
+ id?: string;
3991
+ ok?: boolean;
3992
+ records?: number;
3993
+ started_at?: string;
3994
+ };
3995
+ Update: {
3996
+ account_key?: string;
3997
+ calls_used?: number;
3998
+ created_at?: string;
3999
+ domain?: string;
4000
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4001
+ error?: string | null;
4002
+ finished_at?: string | null;
4003
+ id?: string;
4004
+ ok?: boolean;
4005
+ records?: number;
4006
+ started_at?: string;
4007
+ };
4008
+ Relationships: [];
4009
+ };
4010
+ exact_auth_sync_state: {
4011
+ Row: {
4012
+ account_key: string;
4013
+ created_at: string;
4014
+ cursor_timestamp: number;
4015
+ division_code: number | null;
4016
+ domain: string;
4017
+ duration_ms: number | null;
4018
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4019
+ initial_sync_done: boolean;
4020
+ last_error: string | null;
4021
+ last_run_at: string | null;
4022
+ last_success_at: string | null;
4023
+ locked_at: string | null;
4024
+ needs_initial_sync: boolean;
4025
+ record_count: number;
4026
+ updated_at: string;
4027
+ };
4028
+ Insert: {
4029
+ account_key?: string;
4030
+ created_at?: string;
4031
+ cursor_timestamp?: number;
4032
+ division_code?: number | null;
4033
+ domain: string;
4034
+ duration_ms?: number | null;
4035
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4036
+ initial_sync_done?: boolean;
4037
+ last_error?: string | null;
4038
+ last_run_at?: string | null;
4039
+ last_success_at?: string | null;
4040
+ locked_at?: string | null;
4041
+ needs_initial_sync?: boolean;
4042
+ record_count?: number;
4043
+ updated_at?: string;
4044
+ };
4045
+ Update: {
4046
+ account_key?: string;
4047
+ created_at?: string;
4048
+ cursor_timestamp?: number;
4049
+ division_code?: number | null;
4050
+ domain?: string;
4051
+ duration_ms?: number | null;
4052
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4053
+ initial_sync_done?: boolean;
4054
+ last_error?: string | null;
4055
+ last_run_at?: string | null;
4056
+ last_success_at?: string | null;
4057
+ locked_at?: string | null;
4058
+ needs_initial_sync?: boolean;
4059
+ record_count?: number;
4060
+ updated_at?: string;
4061
+ };
4062
+ Relationships: [];
4063
+ };
3596
4064
  exact_bulk_operation_items: {
3597
4065
  Row: {
3598
4066
  attempts: number;
@@ -5284,12 +5752,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5284
5752
  attempts: number;
5285
5753
  connection_id: string;
5286
5754
  created_at: string;
5755
+ desired_available: boolean | null;
5287
5756
  gateway_attempt_id: string | null;
5288
5757
  id: string;
5289
5758
  last_error: string | null;
5759
+ locked_at: string | null;
5760
+ locked_by: string | null;
5761
+ next_attempt_at: string;
5290
5762
  number_of_pieces: number;
5291
5763
  sent_at: string | null;
5292
5764
  status: string;
5765
+ superseded_by: string | null;
5293
5766
  trade_item_id: string;
5294
5767
  updated_at: string;
5295
5768
  user_id: string;
@@ -5298,12 +5771,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5298
5771
  attempts?: number;
5299
5772
  connection_id: string;
5300
5773
  created_at?: string;
5774
+ desired_available?: boolean | null;
5301
5775
  gateway_attempt_id?: string | null;
5302
5776
  id?: string;
5303
5777
  last_error?: string | null;
5778
+ locked_at?: string | null;
5779
+ locked_by?: string | null;
5780
+ next_attempt_at?: string;
5304
5781
  number_of_pieces?: number;
5305
5782
  sent_at?: string | null;
5306
5783
  status?: string;
5784
+ superseded_by?: string | null;
5307
5785
  trade_item_id: string;
5308
5786
  updated_at?: string;
5309
5787
  user_id: string;
@@ -5312,12 +5790,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5312
5790
  attempts?: number;
5313
5791
  connection_id?: string;
5314
5792
  created_at?: string;
5793
+ desired_available?: boolean | null;
5315
5794
  gateway_attempt_id?: string | null;
5316
5795
  id?: string;
5317
5796
  last_error?: string | null;
5797
+ locked_at?: string | null;
5798
+ locked_by?: string | null;
5799
+ next_attempt_at?: string;
5318
5800
  number_of_pieces?: number;
5319
5801
  sent_at?: string | null;
5320
5802
  status?: string;
5803
+ superseded_by?: string | null;
5321
5804
  trade_item_id?: string;
5322
5805
  updated_at?: string;
5323
5806
  user_id?: string;
@@ -8677,6 +9160,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8677
9160
  };
8678
9161
  logistics_tasks: {
8679
9162
  Row: {
9163
+ attempt_log: import("../integrations/supabase/types").Json;
9164
+ attempts: number;
8680
9165
  buffer_ref: string | null;
8681
9166
  claimed_at: string | null;
8682
9167
  claimed_by: string | null;
@@ -8686,6 +9171,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8686
9171
  due_at: string | null;
8687
9172
  error: string | null;
8688
9173
  id: string;
9174
+ last_error: string | null;
9175
+ next_attempt_at: string | null;
8689
9176
  order_ref: string;
8690
9177
  owner_module: string;
8691
9178
  payload: import("../integrations/supabase/types").Json;
@@ -8706,6 +9193,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8706
9193
  user_id: string;
8707
9194
  };
8708
9195
  Insert: {
9196
+ attempt_log?: import("../integrations/supabase/types").Json;
9197
+ attempts?: number;
8709
9198
  buffer_ref?: string | null;
8710
9199
  claimed_at?: string | null;
8711
9200
  claimed_by?: string | null;
@@ -8715,6 +9204,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8715
9204
  due_at?: string | null;
8716
9205
  error?: string | null;
8717
9206
  id?: string;
9207
+ last_error?: string | null;
9208
+ next_attempt_at?: string | null;
8718
9209
  order_ref: string;
8719
9210
  owner_module: string;
8720
9211
  payload?: import("../integrations/supabase/types").Json;
@@ -8735,6 +9226,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8735
9226
  user_id?: string;
8736
9227
  };
8737
9228
  Update: {
9229
+ attempt_log?: import("../integrations/supabase/types").Json;
9230
+ attempts?: number;
8738
9231
  buffer_ref?: string | null;
8739
9232
  claimed_at?: string | null;
8740
9233
  claimed_by?: string | null;
@@ -8744,6 +9237,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8744
9237
  due_at?: string | null;
8745
9238
  error?: string | null;
8746
9239
  id?: string;
9240
+ last_error?: string | null;
9241
+ next_attempt_at?: string | null;
8747
9242
  order_ref?: string;
8748
9243
  owner_module?: string;
8749
9244
  payload?: import("../integrations/supabase/types").Json;
@@ -10093,6 +10588,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10093
10588
  };
10094
10589
  offer_settings: {
10095
10590
  Row: {
10591
+ brand_name: string | null;
10096
10592
  button_color: string;
10097
10593
  created_at: string;
10098
10594
  default_countries: string[];
@@ -10114,6 +10610,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10114
10610
  updated_at: string;
10115
10611
  };
10116
10612
  Insert: {
10613
+ brand_name?: string | null;
10117
10614
  button_color?: string;
10118
10615
  created_at?: string;
10119
10616
  default_countries?: string[];
@@ -10135,6 +10632,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10135
10632
  updated_at?: string;
10136
10633
  };
10137
10634
  Update: {
10635
+ brand_name?: string | null;
10138
10636
  button_color?: string;
10139
10637
  created_at?: string;
10140
10638
  default_countries?: string[];
@@ -17745,6 +18243,85 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17745
18243
  };
17746
18244
  Returns: import("../integrations/supabase/types").Json;
17747
18245
  };
18246
+ claim_floriday_stock_queue: {
18247
+ Args: {
18248
+ p_limit?: number;
18249
+ p_worker?: string;
18250
+ };
18251
+ Returns: {
18252
+ attempts: number;
18253
+ connection_id: string;
18254
+ created_at: string;
18255
+ desired_available: boolean | null;
18256
+ gateway_attempt_id: string | null;
18257
+ id: string;
18258
+ last_error: string | null;
18259
+ locked_at: string | null;
18260
+ locked_by: string | null;
18261
+ next_attempt_at: string;
18262
+ number_of_pieces: number;
18263
+ sent_at: string | null;
18264
+ status: string;
18265
+ superseded_by: string | null;
18266
+ trade_item_id: string;
18267
+ updated_at: string;
18268
+ user_id: string;
18269
+ }[];
18270
+ SetofOptions: {
18271
+ from: "*";
18272
+ to: "floriday_continuous_stock_queue";
18273
+ isOneToOne: false;
18274
+ isSetofReturn: true;
18275
+ };
18276
+ };
18277
+ claim_logistics_tasks: {
18278
+ Args: {
18279
+ _limit?: number;
18280
+ _owner_module: string;
18281
+ _stale_minutes?: number;
18282
+ _task_type: string;
18283
+ _worker: string;
18284
+ };
18285
+ Returns: {
18286
+ attempt_log: import("../integrations/supabase/types").Json;
18287
+ attempts: number;
18288
+ buffer_ref: string | null;
18289
+ claimed_at: string | null;
18290
+ claimed_by: string | null;
18291
+ completed_at: string | null;
18292
+ created_at: string;
18293
+ depends_on: string[];
18294
+ due_at: string | null;
18295
+ error: string | null;
18296
+ id: string;
18297
+ last_error: string | null;
18298
+ next_attempt_at: string | null;
18299
+ order_ref: string;
18300
+ owner_module: string;
18301
+ payload: import("../integrations/supabase/types").Json;
18302
+ plan_run_id: string | null;
18303
+ planned_end: string | null;
18304
+ planned_start: string | null;
18305
+ priority: number;
18306
+ result: import("../integrations/supabase/types").Json | null;
18307
+ rule_config_id: string | null;
18308
+ rule_version: number | null;
18309
+ sequence: number;
18310
+ shadow: boolean;
18311
+ started_at: string | null;
18312
+ status: string;
18313
+ strategy_id: string | null;
18314
+ task_type: string;
18315
+ updated_at: string;
18316
+ user_id: string;
18317
+ }[];
18318
+ SetofOptions: {
18319
+ from: "*";
18320
+ to: "logistics_tasks";
18321
+ isOneToOne: false;
18322
+ isSetofReturn: true;
18323
+ };
18324
+ };
17748
18325
  claim_print_jobs: {
17749
18326
  Args: {
17750
18327
  _agent_id: string;
@@ -17809,10 +18386,24 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17809
18386
  isSetofReturn: true;
17810
18387
  };
17811
18388
  };
18389
+ cleanup_floriday_stock_queue: {
18390
+ Args: never;
18391
+ Returns: undefined;
18392
+ };
17812
18393
  cleanup_old_bookings: {
17813
18394
  Args: never;
17814
18395
  Returns: undefined;
17815
18396
  };
18397
+ complete_floriday_stock_queue: {
18398
+ Args: {
18399
+ p_attempt_id?: string;
18400
+ p_error?: string;
18401
+ p_id: string;
18402
+ p_ok: boolean;
18403
+ p_permanent?: boolean;
18404
+ };
18405
+ Returns: undefined;
18406
+ };
17816
18407
  consume_bom_for_production: {
17817
18408
  Args: {
17818
18409
  p_connection_id: string;
@@ -17985,6 +18576,21 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
17985
18576
  Args: never;
17986
18577
  Returns: string;
17987
18578
  };
18579
+ exact_auth_consume_calls: {
18580
+ Args: {
18581
+ _account_key: string;
18582
+ _calls?: number;
18583
+ _day_limit?: number;
18584
+ _division_code: number;
18585
+ _environment: string;
18586
+ _minute_limit?: number;
18587
+ };
18588
+ Returns: import("../integrations/supabase/types").Json;
18589
+ };
18590
+ exact_auth_prune_sync_log: {
18591
+ Args: never;
18592
+ Returns: undefined;
18593
+ };
17988
18594
  exact_decrypt: {
17989
18595
  Args: {
17990
18596
  cipher: string;
@@ -18194,6 +18800,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18194
18800
  };
18195
18801
  Returns: number;
18196
18802
  };
18803
+ get_offer_branding: {
18804
+ Args: never;
18805
+ Returns: import("../integrations/supabase/types").Json;
18806
+ };
18197
18807
  get_offer_by_link_code: {
18198
18808
  Args: {
18199
18809
  p_code: string;
@@ -18485,6 +19095,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18485
19095
  p_worker?: string;
18486
19096
  };
18487
19097
  Returns: {
19098
+ attempt_log: import("../integrations/supabase/types").Json;
19099
+ attempts: number;
18488
19100
  buffer_ref: string | null;
18489
19101
  claimed_at: string | null;
18490
19102
  claimed_by: string | null;
@@ -18494,6 +19106,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18494
19106
  due_at: string | null;
18495
19107
  error: string | null;
18496
19108
  id: string;
19109
+ last_error: string | null;
19110
+ next_attempt_at: string | null;
18497
19111
  order_ref: string;
18498
19112
  owner_module: string;
18499
19113
  payload: import("../integrations/supabase/types").Json;
@@ -18526,6 +19140,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18526
19140
  p_worker?: string;
18527
19141
  };
18528
19142
  Returns: {
19143
+ attempt_log: import("../integrations/supabase/types").Json;
19144
+ attempts: number;
18529
19145
  buffer_ref: string | null;
18530
19146
  claimed_at: string | null;
18531
19147
  claimed_by: string | null;
@@ -18535,6 +19151,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18535
19151
  due_at: string | null;
18536
19152
  error: string | null;
18537
19153
  id: string;
19154
+ last_error: string | null;
19155
+ next_attempt_at: string | null;
18538
19156
  order_ref: string;
18539
19157
  owner_module: string;
18540
19158
  payload: import("../integrations/supabase/types").Json;
@@ -18567,6 +19185,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18567
19185
  p_task_id: string;
18568
19186
  };
18569
19187
  Returns: {
19188
+ attempt_log: import("../integrations/supabase/types").Json;
19189
+ attempts: number;
18570
19190
  buffer_ref: string | null;
18571
19191
  claimed_at: string | null;
18572
19192
  claimed_by: string | null;
@@ -18576,6 +19196,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18576
19196
  due_at: string | null;
18577
19197
  error: string | null;
18578
19198
  id: string;
19199
+ last_error: string | null;
19200
+ next_attempt_at: string | null;
18579
19201
  order_ref: string;
18580
19202
  owner_module: string;
18581
19203
  payload: import("../integrations/supabase/types").Json;
@@ -18657,6 +19279,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18657
19279
  p_task_id: string;
18658
19280
  };
18659
19281
  Returns: {
19282
+ attempt_log: import("../integrations/supabase/types").Json;
19283
+ attempts: number;
18660
19284
  buffer_ref: string | null;
18661
19285
  claimed_at: string | null;
18662
19286
  claimed_by: string | null;
@@ -18666,6 +19290,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18666
19290
  due_at: string | null;
18667
19291
  error: string | null;
18668
19292
  id: string;
19293
+ last_error: string | null;
19294
+ next_attempt_at: string | null;
18669
19295
  order_ref: string;
18670
19296
  owner_module: string;
18671
19297
  payload: import("../integrations/supabase/types").Json;
@@ -19419,6 +20045,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19419
20045
  Args: never;
19420
20046
  Returns: undefined;
19421
20047
  };
20048
+ run_logistics_tasks_dispatch: {
20049
+ Args: never;
20050
+ Returns: undefined;
20051
+ };
19422
20052
  run_twinfield_queue_tick: {
19423
20053
  Args: never;
19424
20054
  Returns: undefined;
@@ -19659,6 +20289,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19659
20289
  };
19660
20290
  Returns: number;
19661
20291
  };
20292
+ schedule_floriday_stock_queue_process: {
20293
+ Args: {
20294
+ p_apikey: string;
20295
+ p_url: string;
20296
+ };
20297
+ Returns: number;
20298
+ };
19662
20299
  schedule_floriday_token_refresh: {
19663
20300
  Args: {
19664
20301
  p_apikey: string;
@@ -23407,6 +24044,474 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
23407
24044
  referencedColumns: ["id"];
23408
24045
  }];
23409
24046
  };
24047
+ exact_auth_call_budget: {
24048
+ Row: {
24049
+ account_key: string;
24050
+ day_count: number;
24051
+ day_date: string;
24052
+ division_code: number;
24053
+ environment: string;
24054
+ minute_count: number;
24055
+ minute_window: string;
24056
+ updated_at: string;
24057
+ };
24058
+ Insert: {
24059
+ account_key?: string;
24060
+ day_count?: number;
24061
+ day_date?: string;
24062
+ division_code?: number;
24063
+ environment: string;
24064
+ minute_count?: number;
24065
+ minute_window?: string;
24066
+ updated_at?: string;
24067
+ };
24068
+ Update: {
24069
+ account_key?: string;
24070
+ day_count?: number;
24071
+ day_date?: string;
24072
+ division_code?: number;
24073
+ environment?: string;
24074
+ minute_count?: number;
24075
+ minute_window?: string;
24076
+ updated_at?: string;
24077
+ };
24078
+ Relationships: [];
24079
+ };
24080
+ exact_auth_customers: {
24081
+ Row: {
24082
+ account_key: string;
24083
+ address_line1: string | null;
24084
+ chamber_of_commerce: string | null;
24085
+ city: string | null;
24086
+ code: string | null;
24087
+ country: string | null;
24088
+ created_at: string;
24089
+ currency: string | null;
24090
+ division_code: number | null;
24091
+ email: string | null;
24092
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24093
+ exact_id: string;
24094
+ exact_modified: string | null;
24095
+ exact_timestamp: number | null;
24096
+ id: string;
24097
+ is_active: boolean;
24098
+ name: string | null;
24099
+ phone: string | null;
24100
+ postcode: string | null;
24101
+ raw: import("../integrations/supabase/types").Json | null;
24102
+ status: string | null;
24103
+ updated_at: string;
24104
+ vat_number: string | null;
24105
+ website: string | null;
24106
+ };
24107
+ Insert: {
24108
+ account_key?: string;
24109
+ address_line1?: string | null;
24110
+ chamber_of_commerce?: string | null;
24111
+ city?: string | null;
24112
+ code?: string | null;
24113
+ country?: string | null;
24114
+ created_at?: string;
24115
+ currency?: string | null;
24116
+ division_code?: number | null;
24117
+ email?: string | null;
24118
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24119
+ exact_id: string;
24120
+ exact_modified?: string | null;
24121
+ exact_timestamp?: number | null;
24122
+ id?: string;
24123
+ is_active?: boolean;
24124
+ name?: string | null;
24125
+ phone?: string | null;
24126
+ postcode?: string | null;
24127
+ raw?: import("../integrations/supabase/types").Json | null;
24128
+ status?: string | null;
24129
+ updated_at?: string;
24130
+ vat_number?: string | null;
24131
+ website?: string | null;
24132
+ };
24133
+ Update: {
24134
+ account_key?: string;
24135
+ address_line1?: string | null;
24136
+ chamber_of_commerce?: string | null;
24137
+ city?: string | null;
24138
+ code?: string | null;
24139
+ country?: string | null;
24140
+ created_at?: string;
24141
+ currency?: string | null;
24142
+ division_code?: number | null;
24143
+ email?: string | null;
24144
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24145
+ exact_id?: string;
24146
+ exact_modified?: string | null;
24147
+ exact_timestamp?: number | null;
24148
+ id?: string;
24149
+ is_active?: boolean;
24150
+ name?: string | null;
24151
+ phone?: string | null;
24152
+ postcode?: string | null;
24153
+ raw?: import("../integrations/supabase/types").Json | null;
24154
+ status?: string | null;
24155
+ updated_at?: string;
24156
+ vat_number?: string | null;
24157
+ website?: string | null;
24158
+ };
24159
+ Relationships: [];
24160
+ };
24161
+ exact_auth_divisions: {
24162
+ Row: {
24163
+ account_key: string;
24164
+ company_name: string | null;
24165
+ created_at: string;
24166
+ division_code: number | null;
24167
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24168
+ id: string;
24169
+ last_synced_at: string | null;
24170
+ updated_at: string;
24171
+ };
24172
+ Insert: {
24173
+ account_key?: string;
24174
+ company_name?: string | null;
24175
+ created_at?: string;
24176
+ division_code?: number | null;
24177
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24178
+ id?: string;
24179
+ last_synced_at?: string | null;
24180
+ updated_at?: string;
24181
+ };
24182
+ Update: {
24183
+ account_key?: string;
24184
+ company_name?: string | null;
24185
+ created_at?: string;
24186
+ division_code?: number | null;
24187
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24188
+ id?: string;
24189
+ last_synced_at?: string | null;
24190
+ updated_at?: string;
24191
+ };
24192
+ Relationships: [];
24193
+ };
24194
+ exact_auth_invoice_lines: {
24195
+ Row: {
24196
+ account_key: string;
24197
+ amount_excl: number | null;
24198
+ created_at: string;
24199
+ description: string | null;
24200
+ discount: number | null;
24201
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24202
+ exact_id: string;
24203
+ exact_timestamp: number | null;
24204
+ id: string;
24205
+ invoice_exact_id: string;
24206
+ item_code: string | null;
24207
+ item_exact_id: string | null;
24208
+ line_number: number | null;
24209
+ quantity: number | null;
24210
+ raw: import("../integrations/supabase/types").Json | null;
24211
+ unit_price: number | null;
24212
+ updated_at: string;
24213
+ vat_amount: number | null;
24214
+ vat_code: string | null;
24215
+ };
24216
+ Insert: {
24217
+ account_key?: string;
24218
+ amount_excl?: number | null;
24219
+ created_at?: string;
24220
+ description?: string | null;
24221
+ discount?: number | null;
24222
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24223
+ exact_id: string;
24224
+ exact_timestamp?: number | null;
24225
+ id?: string;
24226
+ invoice_exact_id: string;
24227
+ item_code?: string | null;
24228
+ item_exact_id?: string | null;
24229
+ line_number?: number | null;
24230
+ quantity?: number | null;
24231
+ raw?: import("../integrations/supabase/types").Json | null;
24232
+ unit_price?: number | null;
24233
+ updated_at?: string;
24234
+ vat_amount?: number | null;
24235
+ vat_code?: string | null;
24236
+ };
24237
+ Update: {
24238
+ account_key?: string;
24239
+ amount_excl?: number | null;
24240
+ created_at?: string;
24241
+ description?: string | null;
24242
+ discount?: number | null;
24243
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24244
+ exact_id?: string;
24245
+ exact_timestamp?: number | null;
24246
+ id?: string;
24247
+ invoice_exact_id?: string;
24248
+ item_code?: string | null;
24249
+ item_exact_id?: string | null;
24250
+ line_number?: number | null;
24251
+ quantity?: number | null;
24252
+ raw?: import("../integrations/supabase/types").Json | null;
24253
+ unit_price?: number | null;
24254
+ updated_at?: string;
24255
+ vat_amount?: number | null;
24256
+ vat_code?: string | null;
24257
+ };
24258
+ Relationships: [];
24259
+ };
24260
+ exact_auth_invoices: {
24261
+ Row: {
24262
+ account_key: string;
24263
+ amount_excl: number | null;
24264
+ amount_incl: number | null;
24265
+ amount_open: number | null;
24266
+ created_at: string;
24267
+ currency: string | null;
24268
+ customer_code: string | null;
24269
+ customer_exact_id: string | null;
24270
+ customer_name: string | null;
24271
+ description: string | null;
24272
+ division_code: number | null;
24273
+ due_date: string | null;
24274
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24275
+ exact_id: string;
24276
+ exact_modified: string | null;
24277
+ exact_timestamp: number | null;
24278
+ id: string;
24279
+ invoice_date: string | null;
24280
+ invoice_number: string | null;
24281
+ order_number: string | null;
24282
+ paid_at: string | null;
24283
+ payment_status: string;
24284
+ raw: import("../integrations/supabase/types").Json | null;
24285
+ receivable_synced_at: string | null;
24286
+ status_code: number | null;
24287
+ updated_at: string;
24288
+ };
24289
+ Insert: {
24290
+ account_key?: string;
24291
+ amount_excl?: number | null;
24292
+ amount_incl?: number | null;
24293
+ amount_open?: number | null;
24294
+ created_at?: string;
24295
+ currency?: string | null;
24296
+ customer_code?: string | null;
24297
+ customer_exact_id?: string | null;
24298
+ customer_name?: string | null;
24299
+ description?: string | null;
24300
+ division_code?: number | null;
24301
+ due_date?: string | null;
24302
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24303
+ exact_id: string;
24304
+ exact_modified?: string | null;
24305
+ exact_timestamp?: number | null;
24306
+ id?: string;
24307
+ invoice_date?: string | null;
24308
+ invoice_number?: string | null;
24309
+ order_number?: string | null;
24310
+ paid_at?: string | null;
24311
+ payment_status?: string;
24312
+ raw?: import("../integrations/supabase/types").Json | null;
24313
+ receivable_synced_at?: string | null;
24314
+ status_code?: number | null;
24315
+ updated_at?: string;
24316
+ };
24317
+ Update: {
24318
+ account_key?: string;
24319
+ amount_excl?: number | null;
24320
+ amount_incl?: number | null;
24321
+ amount_open?: number | null;
24322
+ created_at?: string;
24323
+ currency?: string | null;
24324
+ customer_code?: string | null;
24325
+ customer_exact_id?: string | null;
24326
+ customer_name?: string | null;
24327
+ description?: string | null;
24328
+ division_code?: number | null;
24329
+ due_date?: string | null;
24330
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24331
+ exact_id?: string;
24332
+ exact_modified?: string | null;
24333
+ exact_timestamp?: number | null;
24334
+ id?: string;
24335
+ invoice_date?: string | null;
24336
+ invoice_number?: string | null;
24337
+ order_number?: string | null;
24338
+ paid_at?: string | null;
24339
+ payment_status?: string;
24340
+ raw?: import("../integrations/supabase/types").Json | null;
24341
+ receivable_synced_at?: string | null;
24342
+ status_code?: number | null;
24343
+ updated_at?: string;
24344
+ };
24345
+ Relationships: [];
24346
+ };
24347
+ exact_auth_items: {
24348
+ Row: {
24349
+ account_key: string;
24350
+ barcode: string | null;
24351
+ code: string | null;
24352
+ cost_price: number | null;
24353
+ created_at: string;
24354
+ description: string | null;
24355
+ division_code: number | null;
24356
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24357
+ exact_id: string;
24358
+ exact_modified: string | null;
24359
+ exact_timestamp: number | null;
24360
+ gl_account_code: string | null;
24361
+ id: string;
24362
+ is_active: boolean;
24363
+ is_sales_item: boolean | null;
24364
+ item_type: string | null;
24365
+ raw: import("../integrations/supabase/types").Json | null;
24366
+ sales_price: number | null;
24367
+ unit: string | null;
24368
+ updated_at: string;
24369
+ vat_code: string | null;
24370
+ };
24371
+ Insert: {
24372
+ account_key?: string;
24373
+ barcode?: string | null;
24374
+ code?: string | null;
24375
+ cost_price?: number | null;
24376
+ created_at?: string;
24377
+ description?: string | null;
24378
+ division_code?: number | null;
24379
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24380
+ exact_id: string;
24381
+ exact_modified?: string | null;
24382
+ exact_timestamp?: number | null;
24383
+ gl_account_code?: string | null;
24384
+ id?: string;
24385
+ is_active?: boolean;
24386
+ is_sales_item?: boolean | null;
24387
+ item_type?: string | null;
24388
+ raw?: import("../integrations/supabase/types").Json | null;
24389
+ sales_price?: number | null;
24390
+ unit?: string | null;
24391
+ updated_at?: string;
24392
+ vat_code?: string | null;
24393
+ };
24394
+ Update: {
24395
+ account_key?: string;
24396
+ barcode?: string | null;
24397
+ code?: string | null;
24398
+ cost_price?: number | null;
24399
+ created_at?: string;
24400
+ description?: string | null;
24401
+ division_code?: number | null;
24402
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24403
+ exact_id?: string;
24404
+ exact_modified?: string | null;
24405
+ exact_timestamp?: number | null;
24406
+ gl_account_code?: string | null;
24407
+ id?: string;
24408
+ is_active?: boolean;
24409
+ is_sales_item?: boolean | null;
24410
+ item_type?: string | null;
24411
+ raw?: import("../integrations/supabase/types").Json | null;
24412
+ sales_price?: number | null;
24413
+ unit?: string | null;
24414
+ updated_at?: string;
24415
+ vat_code?: string | null;
24416
+ };
24417
+ Relationships: [];
24418
+ };
24419
+ exact_auth_sync_log: {
24420
+ Row: {
24421
+ account_key: string;
24422
+ calls_used: number;
24423
+ created_at: string;
24424
+ domain: string;
24425
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24426
+ error: string | null;
24427
+ finished_at: string | null;
24428
+ id: string;
24429
+ ok: boolean;
24430
+ records: number;
24431
+ started_at: string;
24432
+ };
24433
+ Insert: {
24434
+ account_key?: string;
24435
+ calls_used?: number;
24436
+ created_at?: string;
24437
+ domain: string;
24438
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24439
+ error?: string | null;
24440
+ finished_at?: string | null;
24441
+ id?: string;
24442
+ ok?: boolean;
24443
+ records?: number;
24444
+ started_at?: string;
24445
+ };
24446
+ Update: {
24447
+ account_key?: string;
24448
+ calls_used?: number;
24449
+ created_at?: string;
24450
+ domain?: string;
24451
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24452
+ error?: string | null;
24453
+ finished_at?: string | null;
24454
+ id?: string;
24455
+ ok?: boolean;
24456
+ records?: number;
24457
+ started_at?: string;
24458
+ };
24459
+ Relationships: [];
24460
+ };
24461
+ exact_auth_sync_state: {
24462
+ Row: {
24463
+ account_key: string;
24464
+ created_at: string;
24465
+ cursor_timestamp: number;
24466
+ division_code: number | null;
24467
+ domain: string;
24468
+ duration_ms: number | null;
24469
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24470
+ initial_sync_done: boolean;
24471
+ last_error: string | null;
24472
+ last_run_at: string | null;
24473
+ last_success_at: string | null;
24474
+ locked_at: string | null;
24475
+ needs_initial_sync: boolean;
24476
+ record_count: number;
24477
+ updated_at: string;
24478
+ };
24479
+ Insert: {
24480
+ account_key?: string;
24481
+ created_at?: string;
24482
+ cursor_timestamp?: number;
24483
+ division_code?: number | null;
24484
+ domain: string;
24485
+ duration_ms?: number | null;
24486
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24487
+ initial_sync_done?: boolean;
24488
+ last_error?: string | null;
24489
+ last_run_at?: string | null;
24490
+ last_success_at?: string | null;
24491
+ locked_at?: string | null;
24492
+ needs_initial_sync?: boolean;
24493
+ record_count?: number;
24494
+ updated_at?: string;
24495
+ };
24496
+ Update: {
24497
+ account_key?: string;
24498
+ created_at?: string;
24499
+ cursor_timestamp?: number;
24500
+ division_code?: number | null;
24501
+ domain?: string;
24502
+ duration_ms?: number | null;
24503
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24504
+ initial_sync_done?: boolean;
24505
+ last_error?: string | null;
24506
+ last_run_at?: string | null;
24507
+ last_success_at?: string | null;
24508
+ locked_at?: string | null;
24509
+ needs_initial_sync?: boolean;
24510
+ record_count?: number;
24511
+ updated_at?: string;
24512
+ };
24513
+ Relationships: [];
24514
+ };
23410
24515
  exact_bulk_operation_items: {
23411
24516
  Row: {
23412
24517
  attempts: number;
@@ -25098,12 +26203,17 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25098
26203
  attempts: number;
25099
26204
  connection_id: string;
25100
26205
  created_at: string;
26206
+ desired_available: boolean | null;
25101
26207
  gateway_attempt_id: string | null;
25102
26208
  id: string;
25103
26209
  last_error: string | null;
26210
+ locked_at: string | null;
26211
+ locked_by: string | null;
26212
+ next_attempt_at: string;
25104
26213
  number_of_pieces: number;
25105
26214
  sent_at: string | null;
25106
26215
  status: string;
26216
+ superseded_by: string | null;
25107
26217
  trade_item_id: string;
25108
26218
  updated_at: string;
25109
26219
  user_id: string;
@@ -25112,12 +26222,17 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25112
26222
  attempts?: number;
25113
26223
  connection_id: string;
25114
26224
  created_at?: string;
26225
+ desired_available?: boolean | null;
25115
26226
  gateway_attempt_id?: string | null;
25116
26227
  id?: string;
25117
26228
  last_error?: string | null;
26229
+ locked_at?: string | null;
26230
+ locked_by?: string | null;
26231
+ next_attempt_at?: string;
25118
26232
  number_of_pieces?: number;
25119
26233
  sent_at?: string | null;
25120
26234
  status?: string;
26235
+ superseded_by?: string | null;
25121
26236
  trade_item_id: string;
25122
26237
  updated_at?: string;
25123
26238
  user_id: string;
@@ -25126,12 +26241,17 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25126
26241
  attempts?: number;
25127
26242
  connection_id?: string;
25128
26243
  created_at?: string;
26244
+ desired_available?: boolean | null;
25129
26245
  gateway_attempt_id?: string | null;
25130
26246
  id?: string;
25131
26247
  last_error?: string | null;
26248
+ locked_at?: string | null;
26249
+ locked_by?: string | null;
26250
+ next_attempt_at?: string;
25132
26251
  number_of_pieces?: number;
25133
26252
  sent_at?: string | null;
25134
26253
  status?: string;
26254
+ superseded_by?: string | null;
25135
26255
  trade_item_id?: string;
25136
26256
  updated_at?: string;
25137
26257
  user_id?: string;
@@ -28491,6 +29611,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28491
29611
  };
28492
29612
  logistics_tasks: {
28493
29613
  Row: {
29614
+ attempt_log: import("../integrations/supabase/types").Json;
29615
+ attempts: number;
28494
29616
  buffer_ref: string | null;
28495
29617
  claimed_at: string | null;
28496
29618
  claimed_by: string | null;
@@ -28500,6 +29622,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28500
29622
  due_at: string | null;
28501
29623
  error: string | null;
28502
29624
  id: string;
29625
+ last_error: string | null;
29626
+ next_attempt_at: string | null;
28503
29627
  order_ref: string;
28504
29628
  owner_module: string;
28505
29629
  payload: import("../integrations/supabase/types").Json;
@@ -28520,6 +29644,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28520
29644
  user_id: string;
28521
29645
  };
28522
29646
  Insert: {
29647
+ attempt_log?: import("../integrations/supabase/types").Json;
29648
+ attempts?: number;
28523
29649
  buffer_ref?: string | null;
28524
29650
  claimed_at?: string | null;
28525
29651
  claimed_by?: string | null;
@@ -28529,6 +29655,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28529
29655
  due_at?: string | null;
28530
29656
  error?: string | null;
28531
29657
  id?: string;
29658
+ last_error?: string | null;
29659
+ next_attempt_at?: string | null;
28532
29660
  order_ref: string;
28533
29661
  owner_module: string;
28534
29662
  payload?: import("../integrations/supabase/types").Json;
@@ -28549,6 +29677,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28549
29677
  user_id?: string;
28550
29678
  };
28551
29679
  Update: {
29680
+ attempt_log?: import("../integrations/supabase/types").Json;
29681
+ attempts?: number;
28552
29682
  buffer_ref?: string | null;
28553
29683
  claimed_at?: string | null;
28554
29684
  claimed_by?: string | null;
@@ -28558,6 +29688,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28558
29688
  due_at?: string | null;
28559
29689
  error?: string | null;
28560
29690
  id?: string;
29691
+ last_error?: string | null;
29692
+ next_attempt_at?: string | null;
28561
29693
  order_ref?: string;
28562
29694
  owner_module?: string;
28563
29695
  payload?: import("../integrations/supabase/types").Json;
@@ -29907,6 +31039,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29907
31039
  };
29908
31040
  offer_settings: {
29909
31041
  Row: {
31042
+ brand_name: string | null;
29910
31043
  button_color: string;
29911
31044
  created_at: string;
29912
31045
  default_countries: string[];
@@ -29928,6 +31061,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29928
31061
  updated_at: string;
29929
31062
  };
29930
31063
  Insert: {
31064
+ brand_name?: string | null;
29931
31065
  button_color?: string;
29932
31066
  created_at?: string;
29933
31067
  default_countries?: string[];
@@ -29949,6 +31083,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29949
31083
  updated_at?: string;
29950
31084
  };
29951
31085
  Update: {
31086
+ brand_name?: string | null;
29952
31087
  button_color?: string;
29953
31088
  created_at?: string;
29954
31089
  default_countries?: string[];
@@ -37559,6 +38694,85 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
37559
38694
  };
37560
38695
  Returns: import("../integrations/supabase/types").Json;
37561
38696
  };
38697
+ claim_floriday_stock_queue: {
38698
+ Args: {
38699
+ p_limit?: number;
38700
+ p_worker?: string;
38701
+ };
38702
+ Returns: {
38703
+ attempts: number;
38704
+ connection_id: string;
38705
+ created_at: string;
38706
+ desired_available: boolean | null;
38707
+ gateway_attempt_id: string | null;
38708
+ id: string;
38709
+ last_error: string | null;
38710
+ locked_at: string | null;
38711
+ locked_by: string | null;
38712
+ next_attempt_at: string;
38713
+ number_of_pieces: number;
38714
+ sent_at: string | null;
38715
+ status: string;
38716
+ superseded_by: string | null;
38717
+ trade_item_id: string;
38718
+ updated_at: string;
38719
+ user_id: string;
38720
+ }[];
38721
+ SetofOptions: {
38722
+ from: "*";
38723
+ to: "floriday_continuous_stock_queue";
38724
+ isOneToOne: false;
38725
+ isSetofReturn: true;
38726
+ };
38727
+ };
38728
+ claim_logistics_tasks: {
38729
+ Args: {
38730
+ _limit?: number;
38731
+ _owner_module: string;
38732
+ _stale_minutes?: number;
38733
+ _task_type: string;
38734
+ _worker: string;
38735
+ };
38736
+ Returns: {
38737
+ attempt_log: import("../integrations/supabase/types").Json;
38738
+ attempts: number;
38739
+ buffer_ref: string | null;
38740
+ claimed_at: string | null;
38741
+ claimed_by: string | null;
38742
+ completed_at: string | null;
38743
+ created_at: string;
38744
+ depends_on: string[];
38745
+ due_at: string | null;
38746
+ error: string | null;
38747
+ id: string;
38748
+ last_error: string | null;
38749
+ next_attempt_at: string | null;
38750
+ order_ref: string;
38751
+ owner_module: string;
38752
+ payload: import("../integrations/supabase/types").Json;
38753
+ plan_run_id: string | null;
38754
+ planned_end: string | null;
38755
+ planned_start: string | null;
38756
+ priority: number;
38757
+ result: import("../integrations/supabase/types").Json | null;
38758
+ rule_config_id: string | null;
38759
+ rule_version: number | null;
38760
+ sequence: number;
38761
+ shadow: boolean;
38762
+ started_at: string | null;
38763
+ status: string;
38764
+ strategy_id: string | null;
38765
+ task_type: string;
38766
+ updated_at: string;
38767
+ user_id: string;
38768
+ }[];
38769
+ SetofOptions: {
38770
+ from: "*";
38771
+ to: "logistics_tasks";
38772
+ isOneToOne: false;
38773
+ isSetofReturn: true;
38774
+ };
38775
+ };
37562
38776
  claim_print_jobs: {
37563
38777
  Args: {
37564
38778
  _agent_id: string;
@@ -37623,10 +38837,24 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
37623
38837
  isSetofReturn: true;
37624
38838
  };
37625
38839
  };
38840
+ cleanup_floriday_stock_queue: {
38841
+ Args: never;
38842
+ Returns: undefined;
38843
+ };
37626
38844
  cleanup_old_bookings: {
37627
38845
  Args: never;
37628
38846
  Returns: undefined;
37629
38847
  };
38848
+ complete_floriday_stock_queue: {
38849
+ Args: {
38850
+ p_attempt_id?: string;
38851
+ p_error?: string;
38852
+ p_id: string;
38853
+ p_ok: boolean;
38854
+ p_permanent?: boolean;
38855
+ };
38856
+ Returns: undefined;
38857
+ };
37630
38858
  consume_bom_for_production: {
37631
38859
  Args: {
37632
38860
  p_connection_id: string;
@@ -37799,6 +39027,21 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
37799
39027
  Args: never;
37800
39028
  Returns: string;
37801
39029
  };
39030
+ exact_auth_consume_calls: {
39031
+ Args: {
39032
+ _account_key: string;
39033
+ _calls?: number;
39034
+ _day_limit?: number;
39035
+ _division_code: number;
39036
+ _environment: string;
39037
+ _minute_limit?: number;
39038
+ };
39039
+ Returns: import("../integrations/supabase/types").Json;
39040
+ };
39041
+ exact_auth_prune_sync_log: {
39042
+ Args: never;
39043
+ Returns: undefined;
39044
+ };
37802
39045
  exact_decrypt: {
37803
39046
  Args: {
37804
39047
  cipher: string;
@@ -38008,6 +39251,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38008
39251
  };
38009
39252
  Returns: number;
38010
39253
  };
39254
+ get_offer_branding: {
39255
+ Args: never;
39256
+ Returns: import("../integrations/supabase/types").Json;
39257
+ };
38011
39258
  get_offer_by_link_code: {
38012
39259
  Args: {
38013
39260
  p_code: string;
@@ -38299,6 +39546,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38299
39546
  p_worker?: string;
38300
39547
  };
38301
39548
  Returns: {
39549
+ attempt_log: import("../integrations/supabase/types").Json;
39550
+ attempts: number;
38302
39551
  buffer_ref: string | null;
38303
39552
  claimed_at: string | null;
38304
39553
  claimed_by: string | null;
@@ -38308,6 +39557,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38308
39557
  due_at: string | null;
38309
39558
  error: string | null;
38310
39559
  id: string;
39560
+ last_error: string | null;
39561
+ next_attempt_at: string | null;
38311
39562
  order_ref: string;
38312
39563
  owner_module: string;
38313
39564
  payload: import("../integrations/supabase/types").Json;
@@ -38340,6 +39591,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38340
39591
  p_worker?: string;
38341
39592
  };
38342
39593
  Returns: {
39594
+ attempt_log: import("../integrations/supabase/types").Json;
39595
+ attempts: number;
38343
39596
  buffer_ref: string | null;
38344
39597
  claimed_at: string | null;
38345
39598
  claimed_by: string | null;
@@ -38349,6 +39602,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38349
39602
  due_at: string | null;
38350
39603
  error: string | null;
38351
39604
  id: string;
39605
+ last_error: string | null;
39606
+ next_attempt_at: string | null;
38352
39607
  order_ref: string;
38353
39608
  owner_module: string;
38354
39609
  payload: import("../integrations/supabase/types").Json;
@@ -38381,6 +39636,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38381
39636
  p_task_id: string;
38382
39637
  };
38383
39638
  Returns: {
39639
+ attempt_log: import("../integrations/supabase/types").Json;
39640
+ attempts: number;
38384
39641
  buffer_ref: string | null;
38385
39642
  claimed_at: string | null;
38386
39643
  claimed_by: string | null;
@@ -38390,6 +39647,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38390
39647
  due_at: string | null;
38391
39648
  error: string | null;
38392
39649
  id: string;
39650
+ last_error: string | null;
39651
+ next_attempt_at: string | null;
38393
39652
  order_ref: string;
38394
39653
  owner_module: string;
38395
39654
  payload: import("../integrations/supabase/types").Json;
@@ -38471,6 +39730,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38471
39730
  p_task_id: string;
38472
39731
  };
38473
39732
  Returns: {
39733
+ attempt_log: import("../integrations/supabase/types").Json;
39734
+ attempts: number;
38474
39735
  buffer_ref: string | null;
38475
39736
  claimed_at: string | null;
38476
39737
  claimed_by: string | null;
@@ -38480,6 +39741,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38480
39741
  due_at: string | null;
38481
39742
  error: string | null;
38482
39743
  id: string;
39744
+ last_error: string | null;
39745
+ next_attempt_at: string | null;
38483
39746
  order_ref: string;
38484
39747
  owner_module: string;
38485
39748
  payload: import("../integrations/supabase/types").Json;
@@ -39233,6 +40496,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
39233
40496
  Args: never;
39234
40497
  Returns: undefined;
39235
40498
  };
40499
+ run_logistics_tasks_dispatch: {
40500
+ Args: never;
40501
+ Returns: undefined;
40502
+ };
39236
40503
  run_twinfield_queue_tick: {
39237
40504
  Args: never;
39238
40505
  Returns: undefined;
@@ -39473,6 +40740,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
39473
40740
  };
39474
40741
  Returns: number;
39475
40742
  };
40743
+ schedule_floriday_stock_queue_process: {
40744
+ Args: {
40745
+ p_apikey: string;
40746
+ p_url: string;
40747
+ };
40748
+ Returns: number;
40749
+ };
39476
40750
  schedule_floriday_token_refresh: {
39477
40751
  Args: {
39478
40752
  p_apikey: string;
@@ -43225,6 +44499,474 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
43225
44499
  referencedColumns: ["id"];
43226
44500
  }];
43227
44501
  };
44502
+ exact_auth_call_budget: {
44503
+ Row: {
44504
+ account_key: string;
44505
+ day_count: number;
44506
+ day_date: string;
44507
+ division_code: number;
44508
+ environment: string;
44509
+ minute_count: number;
44510
+ minute_window: string;
44511
+ updated_at: string;
44512
+ };
44513
+ Insert: {
44514
+ account_key?: string;
44515
+ day_count?: number;
44516
+ day_date?: string;
44517
+ division_code?: number;
44518
+ environment: string;
44519
+ minute_count?: number;
44520
+ minute_window?: string;
44521
+ updated_at?: string;
44522
+ };
44523
+ Update: {
44524
+ account_key?: string;
44525
+ day_count?: number;
44526
+ day_date?: string;
44527
+ division_code?: number;
44528
+ environment?: string;
44529
+ minute_count?: number;
44530
+ minute_window?: string;
44531
+ updated_at?: string;
44532
+ };
44533
+ Relationships: [];
44534
+ };
44535
+ exact_auth_customers: {
44536
+ Row: {
44537
+ account_key: string;
44538
+ address_line1: string | null;
44539
+ chamber_of_commerce: string | null;
44540
+ city: string | null;
44541
+ code: string | null;
44542
+ country: string | null;
44543
+ created_at: string;
44544
+ currency: string | null;
44545
+ division_code: number | null;
44546
+ email: string | null;
44547
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44548
+ exact_id: string;
44549
+ exact_modified: string | null;
44550
+ exact_timestamp: number | null;
44551
+ id: string;
44552
+ is_active: boolean;
44553
+ name: string | null;
44554
+ phone: string | null;
44555
+ postcode: string | null;
44556
+ raw: import("../integrations/supabase/types").Json | null;
44557
+ status: string | null;
44558
+ updated_at: string;
44559
+ vat_number: string | null;
44560
+ website: string | null;
44561
+ };
44562
+ Insert: {
44563
+ account_key?: string;
44564
+ address_line1?: string | null;
44565
+ chamber_of_commerce?: string | null;
44566
+ city?: string | null;
44567
+ code?: string | null;
44568
+ country?: string | null;
44569
+ created_at?: string;
44570
+ currency?: string | null;
44571
+ division_code?: number | null;
44572
+ email?: string | null;
44573
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44574
+ exact_id: string;
44575
+ exact_modified?: string | null;
44576
+ exact_timestamp?: number | null;
44577
+ id?: string;
44578
+ is_active?: boolean;
44579
+ name?: string | null;
44580
+ phone?: string | null;
44581
+ postcode?: string | null;
44582
+ raw?: import("../integrations/supabase/types").Json | null;
44583
+ status?: string | null;
44584
+ updated_at?: string;
44585
+ vat_number?: string | null;
44586
+ website?: string | null;
44587
+ };
44588
+ Update: {
44589
+ account_key?: string;
44590
+ address_line1?: string | null;
44591
+ chamber_of_commerce?: string | null;
44592
+ city?: string | null;
44593
+ code?: string | null;
44594
+ country?: string | null;
44595
+ created_at?: string;
44596
+ currency?: string | null;
44597
+ division_code?: number | null;
44598
+ email?: string | null;
44599
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44600
+ exact_id?: string;
44601
+ exact_modified?: string | null;
44602
+ exact_timestamp?: number | null;
44603
+ id?: string;
44604
+ is_active?: boolean;
44605
+ name?: string | null;
44606
+ phone?: string | null;
44607
+ postcode?: string | null;
44608
+ raw?: import("../integrations/supabase/types").Json | null;
44609
+ status?: string | null;
44610
+ updated_at?: string;
44611
+ vat_number?: string | null;
44612
+ website?: string | null;
44613
+ };
44614
+ Relationships: [];
44615
+ };
44616
+ exact_auth_divisions: {
44617
+ Row: {
44618
+ account_key: string;
44619
+ company_name: string | null;
44620
+ created_at: string;
44621
+ division_code: number | null;
44622
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44623
+ id: string;
44624
+ last_synced_at: string | null;
44625
+ updated_at: string;
44626
+ };
44627
+ Insert: {
44628
+ account_key?: string;
44629
+ company_name?: string | null;
44630
+ created_at?: string;
44631
+ division_code?: number | null;
44632
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44633
+ id?: string;
44634
+ last_synced_at?: string | null;
44635
+ updated_at?: string;
44636
+ };
44637
+ Update: {
44638
+ account_key?: string;
44639
+ company_name?: string | null;
44640
+ created_at?: string;
44641
+ division_code?: number | null;
44642
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44643
+ id?: string;
44644
+ last_synced_at?: string | null;
44645
+ updated_at?: string;
44646
+ };
44647
+ Relationships: [];
44648
+ };
44649
+ exact_auth_invoice_lines: {
44650
+ Row: {
44651
+ account_key: string;
44652
+ amount_excl: number | null;
44653
+ created_at: string;
44654
+ description: string | null;
44655
+ discount: number | null;
44656
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44657
+ exact_id: string;
44658
+ exact_timestamp: number | null;
44659
+ id: string;
44660
+ invoice_exact_id: string;
44661
+ item_code: string | null;
44662
+ item_exact_id: string | null;
44663
+ line_number: number | null;
44664
+ quantity: number | null;
44665
+ raw: import("../integrations/supabase/types").Json | null;
44666
+ unit_price: number | null;
44667
+ updated_at: string;
44668
+ vat_amount: number | null;
44669
+ vat_code: string | null;
44670
+ };
44671
+ Insert: {
44672
+ account_key?: string;
44673
+ amount_excl?: number | null;
44674
+ created_at?: string;
44675
+ description?: string | null;
44676
+ discount?: number | null;
44677
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44678
+ exact_id: string;
44679
+ exact_timestamp?: number | null;
44680
+ id?: string;
44681
+ invoice_exact_id: string;
44682
+ item_code?: string | null;
44683
+ item_exact_id?: string | null;
44684
+ line_number?: number | null;
44685
+ quantity?: number | null;
44686
+ raw?: import("../integrations/supabase/types").Json | null;
44687
+ unit_price?: number | null;
44688
+ updated_at?: string;
44689
+ vat_amount?: number | null;
44690
+ vat_code?: string | null;
44691
+ };
44692
+ Update: {
44693
+ account_key?: string;
44694
+ amount_excl?: number | null;
44695
+ created_at?: string;
44696
+ description?: string | null;
44697
+ discount?: number | null;
44698
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44699
+ exact_id?: string;
44700
+ exact_timestamp?: number | null;
44701
+ id?: string;
44702
+ invoice_exact_id?: string;
44703
+ item_code?: string | null;
44704
+ item_exact_id?: string | null;
44705
+ line_number?: number | null;
44706
+ quantity?: number | null;
44707
+ raw?: import("../integrations/supabase/types").Json | null;
44708
+ unit_price?: number | null;
44709
+ updated_at?: string;
44710
+ vat_amount?: number | null;
44711
+ vat_code?: string | null;
44712
+ };
44713
+ Relationships: [];
44714
+ };
44715
+ exact_auth_invoices: {
44716
+ Row: {
44717
+ account_key: string;
44718
+ amount_excl: number | null;
44719
+ amount_incl: number | null;
44720
+ amount_open: number | null;
44721
+ created_at: string;
44722
+ currency: string | null;
44723
+ customer_code: string | null;
44724
+ customer_exact_id: string | null;
44725
+ customer_name: string | null;
44726
+ description: string | null;
44727
+ division_code: number | null;
44728
+ due_date: string | null;
44729
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44730
+ exact_id: string;
44731
+ exact_modified: string | null;
44732
+ exact_timestamp: number | null;
44733
+ id: string;
44734
+ invoice_date: string | null;
44735
+ invoice_number: string | null;
44736
+ order_number: string | null;
44737
+ paid_at: string | null;
44738
+ payment_status: string;
44739
+ raw: import("../integrations/supabase/types").Json | null;
44740
+ receivable_synced_at: string | null;
44741
+ status_code: number | null;
44742
+ updated_at: string;
44743
+ };
44744
+ Insert: {
44745
+ account_key?: string;
44746
+ amount_excl?: number | null;
44747
+ amount_incl?: number | null;
44748
+ amount_open?: number | null;
44749
+ created_at?: string;
44750
+ currency?: string | null;
44751
+ customer_code?: string | null;
44752
+ customer_exact_id?: string | null;
44753
+ customer_name?: string | null;
44754
+ description?: string | null;
44755
+ division_code?: number | null;
44756
+ due_date?: string | null;
44757
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44758
+ exact_id: string;
44759
+ exact_modified?: string | null;
44760
+ exact_timestamp?: number | null;
44761
+ id?: string;
44762
+ invoice_date?: string | null;
44763
+ invoice_number?: string | null;
44764
+ order_number?: string | null;
44765
+ paid_at?: string | null;
44766
+ payment_status?: string;
44767
+ raw?: import("../integrations/supabase/types").Json | null;
44768
+ receivable_synced_at?: string | null;
44769
+ status_code?: number | null;
44770
+ updated_at?: string;
44771
+ };
44772
+ Update: {
44773
+ account_key?: string;
44774
+ amount_excl?: number | null;
44775
+ amount_incl?: number | null;
44776
+ amount_open?: number | null;
44777
+ created_at?: string;
44778
+ currency?: string | null;
44779
+ customer_code?: string | null;
44780
+ customer_exact_id?: string | null;
44781
+ customer_name?: string | null;
44782
+ description?: string | null;
44783
+ division_code?: number | null;
44784
+ due_date?: string | null;
44785
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44786
+ exact_id?: string;
44787
+ exact_modified?: string | null;
44788
+ exact_timestamp?: number | null;
44789
+ id?: string;
44790
+ invoice_date?: string | null;
44791
+ invoice_number?: string | null;
44792
+ order_number?: string | null;
44793
+ paid_at?: string | null;
44794
+ payment_status?: string;
44795
+ raw?: import("../integrations/supabase/types").Json | null;
44796
+ receivable_synced_at?: string | null;
44797
+ status_code?: number | null;
44798
+ updated_at?: string;
44799
+ };
44800
+ Relationships: [];
44801
+ };
44802
+ exact_auth_items: {
44803
+ Row: {
44804
+ account_key: string;
44805
+ barcode: string | null;
44806
+ code: string | null;
44807
+ cost_price: number | null;
44808
+ created_at: string;
44809
+ description: string | null;
44810
+ division_code: number | null;
44811
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44812
+ exact_id: string;
44813
+ exact_modified: string | null;
44814
+ exact_timestamp: number | null;
44815
+ gl_account_code: string | null;
44816
+ id: string;
44817
+ is_active: boolean;
44818
+ is_sales_item: boolean | null;
44819
+ item_type: string | null;
44820
+ raw: import("../integrations/supabase/types").Json | null;
44821
+ sales_price: number | null;
44822
+ unit: string | null;
44823
+ updated_at: string;
44824
+ vat_code: string | null;
44825
+ };
44826
+ Insert: {
44827
+ account_key?: string;
44828
+ barcode?: string | null;
44829
+ code?: string | null;
44830
+ cost_price?: number | null;
44831
+ created_at?: string;
44832
+ description?: string | null;
44833
+ division_code?: number | null;
44834
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44835
+ exact_id: string;
44836
+ exact_modified?: string | null;
44837
+ exact_timestamp?: number | null;
44838
+ gl_account_code?: string | null;
44839
+ id?: string;
44840
+ is_active?: boolean;
44841
+ is_sales_item?: boolean | null;
44842
+ item_type?: string | null;
44843
+ raw?: import("../integrations/supabase/types").Json | null;
44844
+ sales_price?: number | null;
44845
+ unit?: string | null;
44846
+ updated_at?: string;
44847
+ vat_code?: string | null;
44848
+ };
44849
+ Update: {
44850
+ account_key?: string;
44851
+ barcode?: string | null;
44852
+ code?: string | null;
44853
+ cost_price?: number | null;
44854
+ created_at?: string;
44855
+ description?: string | null;
44856
+ division_code?: number | null;
44857
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44858
+ exact_id?: string;
44859
+ exact_modified?: string | null;
44860
+ exact_timestamp?: number | null;
44861
+ gl_account_code?: string | null;
44862
+ id?: string;
44863
+ is_active?: boolean;
44864
+ is_sales_item?: boolean | null;
44865
+ item_type?: string | null;
44866
+ raw?: import("../integrations/supabase/types").Json | null;
44867
+ sales_price?: number | null;
44868
+ unit?: string | null;
44869
+ updated_at?: string;
44870
+ vat_code?: string | null;
44871
+ };
44872
+ Relationships: [];
44873
+ };
44874
+ exact_auth_sync_log: {
44875
+ Row: {
44876
+ account_key: string;
44877
+ calls_used: number;
44878
+ created_at: string;
44879
+ domain: string;
44880
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44881
+ error: string | null;
44882
+ finished_at: string | null;
44883
+ id: string;
44884
+ ok: boolean;
44885
+ records: number;
44886
+ started_at: string;
44887
+ };
44888
+ Insert: {
44889
+ account_key?: string;
44890
+ calls_used?: number;
44891
+ created_at?: string;
44892
+ domain: string;
44893
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44894
+ error?: string | null;
44895
+ finished_at?: string | null;
44896
+ id?: string;
44897
+ ok?: boolean;
44898
+ records?: number;
44899
+ started_at?: string;
44900
+ };
44901
+ Update: {
44902
+ account_key?: string;
44903
+ calls_used?: number;
44904
+ created_at?: string;
44905
+ domain?: string;
44906
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44907
+ error?: string | null;
44908
+ finished_at?: string | null;
44909
+ id?: string;
44910
+ ok?: boolean;
44911
+ records?: number;
44912
+ started_at?: string;
44913
+ };
44914
+ Relationships: [];
44915
+ };
44916
+ exact_auth_sync_state: {
44917
+ Row: {
44918
+ account_key: string;
44919
+ created_at: string;
44920
+ cursor_timestamp: number;
44921
+ division_code: number | null;
44922
+ domain: string;
44923
+ duration_ms: number | null;
44924
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44925
+ initial_sync_done: boolean;
44926
+ last_error: string | null;
44927
+ last_run_at: string | null;
44928
+ last_success_at: string | null;
44929
+ locked_at: string | null;
44930
+ needs_initial_sync: boolean;
44931
+ record_count: number;
44932
+ updated_at: string;
44933
+ };
44934
+ Insert: {
44935
+ account_key?: string;
44936
+ created_at?: string;
44937
+ cursor_timestamp?: number;
44938
+ division_code?: number | null;
44939
+ domain: string;
44940
+ duration_ms?: number | null;
44941
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44942
+ initial_sync_done?: boolean;
44943
+ last_error?: string | null;
44944
+ last_run_at?: string | null;
44945
+ last_success_at?: string | null;
44946
+ locked_at?: string | null;
44947
+ needs_initial_sync?: boolean;
44948
+ record_count?: number;
44949
+ updated_at?: string;
44950
+ };
44951
+ Update: {
44952
+ account_key?: string;
44953
+ created_at?: string;
44954
+ cursor_timestamp?: number;
44955
+ division_code?: number | null;
44956
+ domain?: string;
44957
+ duration_ms?: number | null;
44958
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44959
+ initial_sync_done?: boolean;
44960
+ last_error?: string | null;
44961
+ last_run_at?: string | null;
44962
+ last_success_at?: string | null;
44963
+ locked_at?: string | null;
44964
+ needs_initial_sync?: boolean;
44965
+ record_count?: number;
44966
+ updated_at?: string;
44967
+ };
44968
+ Relationships: [];
44969
+ };
43228
44970
  exact_bulk_operation_items: {
43229
44971
  Row: {
43230
44972
  attempts: number;
@@ -44916,12 +46658,17 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
44916
46658
  attempts: number;
44917
46659
  connection_id: string;
44918
46660
  created_at: string;
46661
+ desired_available: boolean | null;
44919
46662
  gateway_attempt_id: string | null;
44920
46663
  id: string;
44921
46664
  last_error: string | null;
46665
+ locked_at: string | null;
46666
+ locked_by: string | null;
46667
+ next_attempt_at: string;
44922
46668
  number_of_pieces: number;
44923
46669
  sent_at: string | null;
44924
46670
  status: string;
46671
+ superseded_by: string | null;
44925
46672
  trade_item_id: string;
44926
46673
  updated_at: string;
44927
46674
  user_id: string;
@@ -44930,12 +46677,17 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
44930
46677
  attempts?: number;
44931
46678
  connection_id: string;
44932
46679
  created_at?: string;
46680
+ desired_available?: boolean | null;
44933
46681
  gateway_attempt_id?: string | null;
44934
46682
  id?: string;
44935
46683
  last_error?: string | null;
46684
+ locked_at?: string | null;
46685
+ locked_by?: string | null;
46686
+ next_attempt_at?: string;
44936
46687
  number_of_pieces?: number;
44937
46688
  sent_at?: string | null;
44938
46689
  status?: string;
46690
+ superseded_by?: string | null;
44939
46691
  trade_item_id: string;
44940
46692
  updated_at?: string;
44941
46693
  user_id: string;
@@ -44944,12 +46696,17 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
44944
46696
  attempts?: number;
44945
46697
  connection_id?: string;
44946
46698
  created_at?: string;
46699
+ desired_available?: boolean | null;
44947
46700
  gateway_attempt_id?: string | null;
44948
46701
  id?: string;
44949
46702
  last_error?: string | null;
46703
+ locked_at?: string | null;
46704
+ locked_by?: string | null;
46705
+ next_attempt_at?: string;
44950
46706
  number_of_pieces?: number;
44951
46707
  sent_at?: string | null;
44952
46708
  status?: string;
46709
+ superseded_by?: string | null;
44953
46710
  trade_item_id?: string;
44954
46711
  updated_at?: string;
44955
46712
  user_id?: string;
@@ -48309,6 +50066,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48309
50066
  };
48310
50067
  logistics_tasks: {
48311
50068
  Row: {
50069
+ attempt_log: import("../integrations/supabase/types").Json;
50070
+ attempts: number;
48312
50071
  buffer_ref: string | null;
48313
50072
  claimed_at: string | null;
48314
50073
  claimed_by: string | null;
@@ -48318,6 +50077,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48318
50077
  due_at: string | null;
48319
50078
  error: string | null;
48320
50079
  id: string;
50080
+ last_error: string | null;
50081
+ next_attempt_at: string | null;
48321
50082
  order_ref: string;
48322
50083
  owner_module: string;
48323
50084
  payload: import("../integrations/supabase/types").Json;
@@ -48338,6 +50099,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48338
50099
  user_id: string;
48339
50100
  };
48340
50101
  Insert: {
50102
+ attempt_log?: import("../integrations/supabase/types").Json;
50103
+ attempts?: number;
48341
50104
  buffer_ref?: string | null;
48342
50105
  claimed_at?: string | null;
48343
50106
  claimed_by?: string | null;
@@ -48347,6 +50110,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48347
50110
  due_at?: string | null;
48348
50111
  error?: string | null;
48349
50112
  id?: string;
50113
+ last_error?: string | null;
50114
+ next_attempt_at?: string | null;
48350
50115
  order_ref: string;
48351
50116
  owner_module: string;
48352
50117
  payload?: import("../integrations/supabase/types").Json;
@@ -48367,6 +50132,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48367
50132
  user_id?: string;
48368
50133
  };
48369
50134
  Update: {
50135
+ attempt_log?: import("../integrations/supabase/types").Json;
50136
+ attempts?: number;
48370
50137
  buffer_ref?: string | null;
48371
50138
  claimed_at?: string | null;
48372
50139
  claimed_by?: string | null;
@@ -48376,6 +50143,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
48376
50143
  due_at?: string | null;
48377
50144
  error?: string | null;
48378
50145
  id?: string;
50146
+ last_error?: string | null;
50147
+ next_attempt_at?: string | null;
48379
50148
  order_ref?: string;
48380
50149
  owner_module?: string;
48381
50150
  payload?: import("../integrations/supabase/types").Json;
@@ -49725,6 +51494,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
49725
51494
  };
49726
51495
  offer_settings: {
49727
51496
  Row: {
51497
+ brand_name: string | null;
49728
51498
  button_color: string;
49729
51499
  created_at: string;
49730
51500
  default_countries: string[];
@@ -49746,6 +51516,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
49746
51516
  updated_at: string;
49747
51517
  };
49748
51518
  Insert: {
51519
+ brand_name?: string | null;
49749
51520
  button_color?: string;
49750
51521
  created_at?: string;
49751
51522
  default_countries?: string[];
@@ -49767,6 +51538,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
49767
51538
  updated_at?: string;
49768
51539
  };
49769
51540
  Update: {
51541
+ brand_name?: string | null;
49770
51542
  button_color?: string;
49771
51543
  created_at?: string;
49772
51544
  default_countries?: string[];
@@ -57377,6 +59149,85 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57377
59149
  };
57378
59150
  Returns: import("../integrations/supabase/types").Json;
57379
59151
  };
59152
+ claim_floriday_stock_queue: {
59153
+ Args: {
59154
+ p_limit?: number;
59155
+ p_worker?: string;
59156
+ };
59157
+ Returns: {
59158
+ attempts: number;
59159
+ connection_id: string;
59160
+ created_at: string;
59161
+ desired_available: boolean | null;
59162
+ gateway_attempt_id: string | null;
59163
+ id: string;
59164
+ last_error: string | null;
59165
+ locked_at: string | null;
59166
+ locked_by: string | null;
59167
+ next_attempt_at: string;
59168
+ number_of_pieces: number;
59169
+ sent_at: string | null;
59170
+ status: string;
59171
+ superseded_by: string | null;
59172
+ trade_item_id: string;
59173
+ updated_at: string;
59174
+ user_id: string;
59175
+ }[];
59176
+ SetofOptions: {
59177
+ from: "*";
59178
+ to: "floriday_continuous_stock_queue";
59179
+ isOneToOne: false;
59180
+ isSetofReturn: true;
59181
+ };
59182
+ };
59183
+ claim_logistics_tasks: {
59184
+ Args: {
59185
+ _limit?: number;
59186
+ _owner_module: string;
59187
+ _stale_minutes?: number;
59188
+ _task_type: string;
59189
+ _worker: string;
59190
+ };
59191
+ Returns: {
59192
+ attempt_log: import("../integrations/supabase/types").Json;
59193
+ attempts: number;
59194
+ buffer_ref: string | null;
59195
+ claimed_at: string | null;
59196
+ claimed_by: string | null;
59197
+ completed_at: string | null;
59198
+ created_at: string;
59199
+ depends_on: string[];
59200
+ due_at: string | null;
59201
+ error: string | null;
59202
+ id: string;
59203
+ last_error: string | null;
59204
+ next_attempt_at: string | null;
59205
+ order_ref: string;
59206
+ owner_module: string;
59207
+ payload: import("../integrations/supabase/types").Json;
59208
+ plan_run_id: string | null;
59209
+ planned_end: string | null;
59210
+ planned_start: string | null;
59211
+ priority: number;
59212
+ result: import("../integrations/supabase/types").Json | null;
59213
+ rule_config_id: string | null;
59214
+ rule_version: number | null;
59215
+ sequence: number;
59216
+ shadow: boolean;
59217
+ started_at: string | null;
59218
+ status: string;
59219
+ strategy_id: string | null;
59220
+ task_type: string;
59221
+ updated_at: string;
59222
+ user_id: string;
59223
+ }[];
59224
+ SetofOptions: {
59225
+ from: "*";
59226
+ to: "logistics_tasks";
59227
+ isOneToOne: false;
59228
+ isSetofReturn: true;
59229
+ };
59230
+ };
57380
59231
  claim_print_jobs: {
57381
59232
  Args: {
57382
59233
  _agent_id: string;
@@ -57441,10 +59292,24 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57441
59292
  isSetofReturn: true;
57442
59293
  };
57443
59294
  };
59295
+ cleanup_floriday_stock_queue: {
59296
+ Args: never;
59297
+ Returns: undefined;
59298
+ };
57444
59299
  cleanup_old_bookings: {
57445
59300
  Args: never;
57446
59301
  Returns: undefined;
57447
59302
  };
59303
+ complete_floriday_stock_queue: {
59304
+ Args: {
59305
+ p_attempt_id?: string;
59306
+ p_error?: string;
59307
+ p_id: string;
59308
+ p_ok: boolean;
59309
+ p_permanent?: boolean;
59310
+ };
59311
+ Returns: undefined;
59312
+ };
57448
59313
  consume_bom_for_production: {
57449
59314
  Args: {
57450
59315
  p_connection_id: string;
@@ -57617,6 +59482,21 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57617
59482
  Args: never;
57618
59483
  Returns: string;
57619
59484
  };
59485
+ exact_auth_consume_calls: {
59486
+ Args: {
59487
+ _account_key: string;
59488
+ _calls?: number;
59489
+ _day_limit?: number;
59490
+ _division_code: number;
59491
+ _environment: string;
59492
+ _minute_limit?: number;
59493
+ };
59494
+ Returns: import("../integrations/supabase/types").Json;
59495
+ };
59496
+ exact_auth_prune_sync_log: {
59497
+ Args: never;
59498
+ Returns: undefined;
59499
+ };
57620
59500
  exact_decrypt: {
57621
59501
  Args: {
57622
59502
  cipher: string;
@@ -57826,6 +59706,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57826
59706
  };
57827
59707
  Returns: number;
57828
59708
  };
59709
+ get_offer_branding: {
59710
+ Args: never;
59711
+ Returns: import("../integrations/supabase/types").Json;
59712
+ };
57829
59713
  get_offer_by_link_code: {
57830
59714
  Args: {
57831
59715
  p_code: string;
@@ -58117,6 +60001,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58117
60001
  p_worker?: string;
58118
60002
  };
58119
60003
  Returns: {
60004
+ attempt_log: import("../integrations/supabase/types").Json;
60005
+ attempts: number;
58120
60006
  buffer_ref: string | null;
58121
60007
  claimed_at: string | null;
58122
60008
  claimed_by: string | null;
@@ -58126,6 +60012,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58126
60012
  due_at: string | null;
58127
60013
  error: string | null;
58128
60014
  id: string;
60015
+ last_error: string | null;
60016
+ next_attempt_at: string | null;
58129
60017
  order_ref: string;
58130
60018
  owner_module: string;
58131
60019
  payload: import("../integrations/supabase/types").Json;
@@ -58158,6 +60046,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58158
60046
  p_worker?: string;
58159
60047
  };
58160
60048
  Returns: {
60049
+ attempt_log: import("../integrations/supabase/types").Json;
60050
+ attempts: number;
58161
60051
  buffer_ref: string | null;
58162
60052
  claimed_at: string | null;
58163
60053
  claimed_by: string | null;
@@ -58167,6 +60057,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58167
60057
  due_at: string | null;
58168
60058
  error: string | null;
58169
60059
  id: string;
60060
+ last_error: string | null;
60061
+ next_attempt_at: string | null;
58170
60062
  order_ref: string;
58171
60063
  owner_module: string;
58172
60064
  payload: import("../integrations/supabase/types").Json;
@@ -58199,6 +60091,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58199
60091
  p_task_id: string;
58200
60092
  };
58201
60093
  Returns: {
60094
+ attempt_log: import("../integrations/supabase/types").Json;
60095
+ attempts: number;
58202
60096
  buffer_ref: string | null;
58203
60097
  claimed_at: string | null;
58204
60098
  claimed_by: string | null;
@@ -58208,6 +60102,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58208
60102
  due_at: string | null;
58209
60103
  error: string | null;
58210
60104
  id: string;
60105
+ last_error: string | null;
60106
+ next_attempt_at: string | null;
58211
60107
  order_ref: string;
58212
60108
  owner_module: string;
58213
60109
  payload: import("../integrations/supabase/types").Json;
@@ -58289,6 +60185,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58289
60185
  p_task_id: string;
58290
60186
  };
58291
60187
  Returns: {
60188
+ attempt_log: import("../integrations/supabase/types").Json;
60189
+ attempts: number;
58292
60190
  buffer_ref: string | null;
58293
60191
  claimed_at: string | null;
58294
60192
  claimed_by: string | null;
@@ -58298,6 +60196,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
58298
60196
  due_at: string | null;
58299
60197
  error: string | null;
58300
60198
  id: string;
60199
+ last_error: string | null;
60200
+ next_attempt_at: string | null;
58301
60201
  order_ref: string;
58302
60202
  owner_module: string;
58303
60203
  payload: import("../integrations/supabase/types").Json;
@@ -59051,6 +60951,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59051
60951
  Args: never;
59052
60952
  Returns: undefined;
59053
60953
  };
60954
+ run_logistics_tasks_dispatch: {
60955
+ Args: never;
60956
+ Returns: undefined;
60957
+ };
59054
60958
  run_twinfield_queue_tick: {
59055
60959
  Args: never;
59056
60960
  Returns: undefined;
@@ -59291,6 +61195,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59291
61195
  };
59292
61196
  Returns: number;
59293
61197
  };
61198
+ schedule_floriday_stock_queue_process: {
61199
+ Args: {
61200
+ p_apikey: string;
61201
+ p_url: string;
61202
+ };
61203
+ Returns: number;
61204
+ };
59294
61205
  schedule_floriday_token_refresh: {
59295
61206
  Args: {
59296
61207
  p_apikey: string;
@@ -63045,6 +64956,474 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
63045
64956
  referencedColumns: ["id"];
63046
64957
  }];
63047
64958
  };
64959
+ exact_auth_call_budget: {
64960
+ Row: {
64961
+ account_key: string;
64962
+ day_count: number;
64963
+ day_date: string;
64964
+ division_code: number;
64965
+ environment: string;
64966
+ minute_count: number;
64967
+ minute_window: string;
64968
+ updated_at: string;
64969
+ };
64970
+ Insert: {
64971
+ account_key?: string;
64972
+ day_count?: number;
64973
+ day_date?: string;
64974
+ division_code?: number;
64975
+ environment: string;
64976
+ minute_count?: number;
64977
+ minute_window?: string;
64978
+ updated_at?: string;
64979
+ };
64980
+ Update: {
64981
+ account_key?: string;
64982
+ day_count?: number;
64983
+ day_date?: string;
64984
+ division_code?: number;
64985
+ environment?: string;
64986
+ minute_count?: number;
64987
+ minute_window?: string;
64988
+ updated_at?: string;
64989
+ };
64990
+ Relationships: [];
64991
+ };
64992
+ exact_auth_customers: {
64993
+ Row: {
64994
+ account_key: string;
64995
+ address_line1: string | null;
64996
+ chamber_of_commerce: string | null;
64997
+ city: string | null;
64998
+ code: string | null;
64999
+ country: string | null;
65000
+ created_at: string;
65001
+ currency: string | null;
65002
+ division_code: number | null;
65003
+ email: string | null;
65004
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65005
+ exact_id: string;
65006
+ exact_modified: string | null;
65007
+ exact_timestamp: number | null;
65008
+ id: string;
65009
+ is_active: boolean;
65010
+ name: string | null;
65011
+ phone: string | null;
65012
+ postcode: string | null;
65013
+ raw: import("../integrations/supabase/types").Json | null;
65014
+ status: string | null;
65015
+ updated_at: string;
65016
+ vat_number: string | null;
65017
+ website: string | null;
65018
+ };
65019
+ Insert: {
65020
+ account_key?: string;
65021
+ address_line1?: string | null;
65022
+ chamber_of_commerce?: string | null;
65023
+ city?: string | null;
65024
+ code?: string | null;
65025
+ country?: string | null;
65026
+ created_at?: string;
65027
+ currency?: string | null;
65028
+ division_code?: number | null;
65029
+ email?: string | null;
65030
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65031
+ exact_id: string;
65032
+ exact_modified?: string | null;
65033
+ exact_timestamp?: number | null;
65034
+ id?: string;
65035
+ is_active?: boolean;
65036
+ name?: string | null;
65037
+ phone?: string | null;
65038
+ postcode?: string | null;
65039
+ raw?: import("../integrations/supabase/types").Json | null;
65040
+ status?: string | null;
65041
+ updated_at?: string;
65042
+ vat_number?: string | null;
65043
+ website?: string | null;
65044
+ };
65045
+ Update: {
65046
+ account_key?: string;
65047
+ address_line1?: string | null;
65048
+ chamber_of_commerce?: string | null;
65049
+ city?: string | null;
65050
+ code?: string | null;
65051
+ country?: string | null;
65052
+ created_at?: string;
65053
+ currency?: string | null;
65054
+ division_code?: number | null;
65055
+ email?: string | null;
65056
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65057
+ exact_id?: string;
65058
+ exact_modified?: string | null;
65059
+ exact_timestamp?: number | null;
65060
+ id?: string;
65061
+ is_active?: boolean;
65062
+ name?: string | null;
65063
+ phone?: string | null;
65064
+ postcode?: string | null;
65065
+ raw?: import("../integrations/supabase/types").Json | null;
65066
+ status?: string | null;
65067
+ updated_at?: string;
65068
+ vat_number?: string | null;
65069
+ website?: string | null;
65070
+ };
65071
+ Relationships: [];
65072
+ };
65073
+ exact_auth_divisions: {
65074
+ Row: {
65075
+ account_key: string;
65076
+ company_name: string | null;
65077
+ created_at: string;
65078
+ division_code: number | null;
65079
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65080
+ id: string;
65081
+ last_synced_at: string | null;
65082
+ updated_at: string;
65083
+ };
65084
+ Insert: {
65085
+ account_key?: string;
65086
+ company_name?: string | null;
65087
+ created_at?: string;
65088
+ division_code?: number | null;
65089
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65090
+ id?: string;
65091
+ last_synced_at?: string | null;
65092
+ updated_at?: string;
65093
+ };
65094
+ Update: {
65095
+ account_key?: string;
65096
+ company_name?: string | null;
65097
+ created_at?: string;
65098
+ division_code?: number | null;
65099
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65100
+ id?: string;
65101
+ last_synced_at?: string | null;
65102
+ updated_at?: string;
65103
+ };
65104
+ Relationships: [];
65105
+ };
65106
+ exact_auth_invoice_lines: {
65107
+ Row: {
65108
+ account_key: string;
65109
+ amount_excl: number | null;
65110
+ created_at: string;
65111
+ description: string | null;
65112
+ discount: number | null;
65113
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65114
+ exact_id: string;
65115
+ exact_timestamp: number | null;
65116
+ id: string;
65117
+ invoice_exact_id: string;
65118
+ item_code: string | null;
65119
+ item_exact_id: string | null;
65120
+ line_number: number | null;
65121
+ quantity: number | null;
65122
+ raw: import("../integrations/supabase/types").Json | null;
65123
+ unit_price: number | null;
65124
+ updated_at: string;
65125
+ vat_amount: number | null;
65126
+ vat_code: string | null;
65127
+ };
65128
+ Insert: {
65129
+ account_key?: string;
65130
+ amount_excl?: number | null;
65131
+ created_at?: string;
65132
+ description?: string | null;
65133
+ discount?: number | null;
65134
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65135
+ exact_id: string;
65136
+ exact_timestamp?: number | null;
65137
+ id?: string;
65138
+ invoice_exact_id: string;
65139
+ item_code?: string | null;
65140
+ item_exact_id?: string | null;
65141
+ line_number?: number | null;
65142
+ quantity?: number | null;
65143
+ raw?: import("../integrations/supabase/types").Json | null;
65144
+ unit_price?: number | null;
65145
+ updated_at?: string;
65146
+ vat_amount?: number | null;
65147
+ vat_code?: string | null;
65148
+ };
65149
+ Update: {
65150
+ account_key?: string;
65151
+ amount_excl?: number | null;
65152
+ created_at?: string;
65153
+ description?: string | null;
65154
+ discount?: number | null;
65155
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65156
+ exact_id?: string;
65157
+ exact_timestamp?: number | null;
65158
+ id?: string;
65159
+ invoice_exact_id?: string;
65160
+ item_code?: string | null;
65161
+ item_exact_id?: string | null;
65162
+ line_number?: number | null;
65163
+ quantity?: number | null;
65164
+ raw?: import("../integrations/supabase/types").Json | null;
65165
+ unit_price?: number | null;
65166
+ updated_at?: string;
65167
+ vat_amount?: number | null;
65168
+ vat_code?: string | null;
65169
+ };
65170
+ Relationships: [];
65171
+ };
65172
+ exact_auth_invoices: {
65173
+ Row: {
65174
+ account_key: string;
65175
+ amount_excl: number | null;
65176
+ amount_incl: number | null;
65177
+ amount_open: number | null;
65178
+ created_at: string;
65179
+ currency: string | null;
65180
+ customer_code: string | null;
65181
+ customer_exact_id: string | null;
65182
+ customer_name: string | null;
65183
+ description: string | null;
65184
+ division_code: number | null;
65185
+ due_date: string | null;
65186
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65187
+ exact_id: string;
65188
+ exact_modified: string | null;
65189
+ exact_timestamp: number | null;
65190
+ id: string;
65191
+ invoice_date: string | null;
65192
+ invoice_number: string | null;
65193
+ order_number: string | null;
65194
+ paid_at: string | null;
65195
+ payment_status: string;
65196
+ raw: import("../integrations/supabase/types").Json | null;
65197
+ receivable_synced_at: string | null;
65198
+ status_code: number | null;
65199
+ updated_at: string;
65200
+ };
65201
+ Insert: {
65202
+ account_key?: string;
65203
+ amount_excl?: number | null;
65204
+ amount_incl?: number | null;
65205
+ amount_open?: number | null;
65206
+ created_at?: string;
65207
+ currency?: string | null;
65208
+ customer_code?: string | null;
65209
+ customer_exact_id?: string | null;
65210
+ customer_name?: string | null;
65211
+ description?: string | null;
65212
+ division_code?: number | null;
65213
+ due_date?: string | null;
65214
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65215
+ exact_id: string;
65216
+ exact_modified?: string | null;
65217
+ exact_timestamp?: number | null;
65218
+ id?: string;
65219
+ invoice_date?: string | null;
65220
+ invoice_number?: string | null;
65221
+ order_number?: string | null;
65222
+ paid_at?: string | null;
65223
+ payment_status?: string;
65224
+ raw?: import("../integrations/supabase/types").Json | null;
65225
+ receivable_synced_at?: string | null;
65226
+ status_code?: number | null;
65227
+ updated_at?: string;
65228
+ };
65229
+ Update: {
65230
+ account_key?: string;
65231
+ amount_excl?: number | null;
65232
+ amount_incl?: number | null;
65233
+ amount_open?: number | null;
65234
+ created_at?: string;
65235
+ currency?: string | null;
65236
+ customer_code?: string | null;
65237
+ customer_exact_id?: string | null;
65238
+ customer_name?: string | null;
65239
+ description?: string | null;
65240
+ division_code?: number | null;
65241
+ due_date?: string | null;
65242
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65243
+ exact_id?: string;
65244
+ exact_modified?: string | null;
65245
+ exact_timestamp?: number | null;
65246
+ id?: string;
65247
+ invoice_date?: string | null;
65248
+ invoice_number?: string | null;
65249
+ order_number?: string | null;
65250
+ paid_at?: string | null;
65251
+ payment_status?: string;
65252
+ raw?: import("../integrations/supabase/types").Json | null;
65253
+ receivable_synced_at?: string | null;
65254
+ status_code?: number | null;
65255
+ updated_at?: string;
65256
+ };
65257
+ Relationships: [];
65258
+ };
65259
+ exact_auth_items: {
65260
+ Row: {
65261
+ account_key: string;
65262
+ barcode: string | null;
65263
+ code: string | null;
65264
+ cost_price: number | null;
65265
+ created_at: string;
65266
+ description: string | null;
65267
+ division_code: number | null;
65268
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65269
+ exact_id: string;
65270
+ exact_modified: string | null;
65271
+ exact_timestamp: number | null;
65272
+ gl_account_code: string | null;
65273
+ id: string;
65274
+ is_active: boolean;
65275
+ is_sales_item: boolean | null;
65276
+ item_type: string | null;
65277
+ raw: import("../integrations/supabase/types").Json | null;
65278
+ sales_price: number | null;
65279
+ unit: string | null;
65280
+ updated_at: string;
65281
+ vat_code: string | null;
65282
+ };
65283
+ Insert: {
65284
+ account_key?: string;
65285
+ barcode?: string | null;
65286
+ code?: string | null;
65287
+ cost_price?: number | null;
65288
+ created_at?: string;
65289
+ description?: string | null;
65290
+ division_code?: number | null;
65291
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65292
+ exact_id: string;
65293
+ exact_modified?: string | null;
65294
+ exact_timestamp?: number | null;
65295
+ gl_account_code?: string | null;
65296
+ id?: string;
65297
+ is_active?: boolean;
65298
+ is_sales_item?: boolean | null;
65299
+ item_type?: string | null;
65300
+ raw?: import("../integrations/supabase/types").Json | null;
65301
+ sales_price?: number | null;
65302
+ unit?: string | null;
65303
+ updated_at?: string;
65304
+ vat_code?: string | null;
65305
+ };
65306
+ Update: {
65307
+ account_key?: string;
65308
+ barcode?: string | null;
65309
+ code?: string | null;
65310
+ cost_price?: number | null;
65311
+ created_at?: string;
65312
+ description?: string | null;
65313
+ division_code?: number | null;
65314
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65315
+ exact_id?: string;
65316
+ exact_modified?: string | null;
65317
+ exact_timestamp?: number | null;
65318
+ gl_account_code?: string | null;
65319
+ id?: string;
65320
+ is_active?: boolean;
65321
+ is_sales_item?: boolean | null;
65322
+ item_type?: string | null;
65323
+ raw?: import("../integrations/supabase/types").Json | null;
65324
+ sales_price?: number | null;
65325
+ unit?: string | null;
65326
+ updated_at?: string;
65327
+ vat_code?: string | null;
65328
+ };
65329
+ Relationships: [];
65330
+ };
65331
+ exact_auth_sync_log: {
65332
+ Row: {
65333
+ account_key: string;
65334
+ calls_used: number;
65335
+ created_at: string;
65336
+ domain: string;
65337
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65338
+ error: string | null;
65339
+ finished_at: string | null;
65340
+ id: string;
65341
+ ok: boolean;
65342
+ records: number;
65343
+ started_at: string;
65344
+ };
65345
+ Insert: {
65346
+ account_key?: string;
65347
+ calls_used?: number;
65348
+ created_at?: string;
65349
+ domain: string;
65350
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65351
+ error?: string | null;
65352
+ finished_at?: string | null;
65353
+ id?: string;
65354
+ ok?: boolean;
65355
+ records?: number;
65356
+ started_at?: string;
65357
+ };
65358
+ Update: {
65359
+ account_key?: string;
65360
+ calls_used?: number;
65361
+ created_at?: string;
65362
+ domain?: string;
65363
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65364
+ error?: string | null;
65365
+ finished_at?: string | null;
65366
+ id?: string;
65367
+ ok?: boolean;
65368
+ records?: number;
65369
+ started_at?: string;
65370
+ };
65371
+ Relationships: [];
65372
+ };
65373
+ exact_auth_sync_state: {
65374
+ Row: {
65375
+ account_key: string;
65376
+ created_at: string;
65377
+ cursor_timestamp: number;
65378
+ division_code: number | null;
65379
+ domain: string;
65380
+ duration_ms: number | null;
65381
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65382
+ initial_sync_done: boolean;
65383
+ last_error: string | null;
65384
+ last_run_at: string | null;
65385
+ last_success_at: string | null;
65386
+ locked_at: string | null;
65387
+ needs_initial_sync: boolean;
65388
+ record_count: number;
65389
+ updated_at: string;
65390
+ };
65391
+ Insert: {
65392
+ account_key?: string;
65393
+ created_at?: string;
65394
+ cursor_timestamp?: number;
65395
+ division_code?: number | null;
65396
+ domain: string;
65397
+ duration_ms?: number | null;
65398
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65399
+ initial_sync_done?: boolean;
65400
+ last_error?: string | null;
65401
+ last_run_at?: string | null;
65402
+ last_success_at?: string | null;
65403
+ locked_at?: string | null;
65404
+ needs_initial_sync?: boolean;
65405
+ record_count?: number;
65406
+ updated_at?: string;
65407
+ };
65408
+ Update: {
65409
+ account_key?: string;
65410
+ created_at?: string;
65411
+ cursor_timestamp?: number;
65412
+ division_code?: number | null;
65413
+ domain?: string;
65414
+ duration_ms?: number | null;
65415
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65416
+ initial_sync_done?: boolean;
65417
+ last_error?: string | null;
65418
+ last_run_at?: string | null;
65419
+ last_success_at?: string | null;
65420
+ locked_at?: string | null;
65421
+ needs_initial_sync?: boolean;
65422
+ record_count?: number;
65423
+ updated_at?: string;
65424
+ };
65425
+ Relationships: [];
65426
+ };
63048
65427
  exact_bulk_operation_items: {
63049
65428
  Row: {
63050
65429
  attempts: number;
@@ -64736,12 +67115,17 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
64736
67115
  attempts: number;
64737
67116
  connection_id: string;
64738
67117
  created_at: string;
67118
+ desired_available: boolean | null;
64739
67119
  gateway_attempt_id: string | null;
64740
67120
  id: string;
64741
67121
  last_error: string | null;
67122
+ locked_at: string | null;
67123
+ locked_by: string | null;
67124
+ next_attempt_at: string;
64742
67125
  number_of_pieces: number;
64743
67126
  sent_at: string | null;
64744
67127
  status: string;
67128
+ superseded_by: string | null;
64745
67129
  trade_item_id: string;
64746
67130
  updated_at: string;
64747
67131
  user_id: string;
@@ -64750,12 +67134,17 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
64750
67134
  attempts?: number;
64751
67135
  connection_id: string;
64752
67136
  created_at?: string;
67137
+ desired_available?: boolean | null;
64753
67138
  gateway_attempt_id?: string | null;
64754
67139
  id?: string;
64755
67140
  last_error?: string | null;
67141
+ locked_at?: string | null;
67142
+ locked_by?: string | null;
67143
+ next_attempt_at?: string;
64756
67144
  number_of_pieces?: number;
64757
67145
  sent_at?: string | null;
64758
67146
  status?: string;
67147
+ superseded_by?: string | null;
64759
67148
  trade_item_id: string;
64760
67149
  updated_at?: string;
64761
67150
  user_id: string;
@@ -64764,12 +67153,17 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
64764
67153
  attempts?: number;
64765
67154
  connection_id?: string;
64766
67155
  created_at?: string;
67156
+ desired_available?: boolean | null;
64767
67157
  gateway_attempt_id?: string | null;
64768
67158
  id?: string;
64769
67159
  last_error?: string | null;
67160
+ locked_at?: string | null;
67161
+ locked_by?: string | null;
67162
+ next_attempt_at?: string;
64770
67163
  number_of_pieces?: number;
64771
67164
  sent_at?: string | null;
64772
67165
  status?: string;
67166
+ superseded_by?: string | null;
64773
67167
  trade_item_id?: string;
64774
67168
  updated_at?: string;
64775
67169
  user_id?: string;
@@ -68129,6 +70523,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68129
70523
  };
68130
70524
  logistics_tasks: {
68131
70525
  Row: {
70526
+ attempt_log: import("../integrations/supabase/types").Json;
70527
+ attempts: number;
68132
70528
  buffer_ref: string | null;
68133
70529
  claimed_at: string | null;
68134
70530
  claimed_by: string | null;
@@ -68138,6 +70534,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68138
70534
  due_at: string | null;
68139
70535
  error: string | null;
68140
70536
  id: string;
70537
+ last_error: string | null;
70538
+ next_attempt_at: string | null;
68141
70539
  order_ref: string;
68142
70540
  owner_module: string;
68143
70541
  payload: import("../integrations/supabase/types").Json;
@@ -68158,6 +70556,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68158
70556
  user_id: string;
68159
70557
  };
68160
70558
  Insert: {
70559
+ attempt_log?: import("../integrations/supabase/types").Json;
70560
+ attempts?: number;
68161
70561
  buffer_ref?: string | null;
68162
70562
  claimed_at?: string | null;
68163
70563
  claimed_by?: string | null;
@@ -68167,6 +70567,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68167
70567
  due_at?: string | null;
68168
70568
  error?: string | null;
68169
70569
  id?: string;
70570
+ last_error?: string | null;
70571
+ next_attempt_at?: string | null;
68170
70572
  order_ref: string;
68171
70573
  owner_module: string;
68172
70574
  payload?: import("../integrations/supabase/types").Json;
@@ -68187,6 +70589,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68187
70589
  user_id?: string;
68188
70590
  };
68189
70591
  Update: {
70592
+ attempt_log?: import("../integrations/supabase/types").Json;
70593
+ attempts?: number;
68190
70594
  buffer_ref?: string | null;
68191
70595
  claimed_at?: string | null;
68192
70596
  claimed_by?: string | null;
@@ -68196,6 +70600,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
68196
70600
  due_at?: string | null;
68197
70601
  error?: string | null;
68198
70602
  id?: string;
70603
+ last_error?: string | null;
70604
+ next_attempt_at?: string | null;
68199
70605
  order_ref?: string;
68200
70606
  owner_module?: string;
68201
70607
  payload?: import("../integrations/supabase/types").Json;
@@ -69545,6 +71951,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
69545
71951
  };
69546
71952
  offer_settings: {
69547
71953
  Row: {
71954
+ brand_name: string | null;
69548
71955
  button_color: string;
69549
71956
  created_at: string;
69550
71957
  default_countries: string[];
@@ -69566,6 +71973,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
69566
71973
  updated_at: string;
69567
71974
  };
69568
71975
  Insert: {
71976
+ brand_name?: string | null;
69569
71977
  button_color?: string;
69570
71978
  created_at?: string;
69571
71979
  default_countries?: string[];
@@ -69587,6 +71995,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
69587
71995
  updated_at?: string;
69588
71996
  };
69589
71997
  Update: {
71998
+ brand_name?: string | null;
69590
71999
  button_color?: string;
69591
72000
  created_at?: string;
69592
72001
  default_countries?: string[];
@@ -77197,6 +79606,85 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77197
79606
  };
77198
79607
  Returns: import("../integrations/supabase/types").Json;
77199
79608
  };
79609
+ claim_floriday_stock_queue: {
79610
+ Args: {
79611
+ p_limit?: number;
79612
+ p_worker?: string;
79613
+ };
79614
+ Returns: {
79615
+ attempts: number;
79616
+ connection_id: string;
79617
+ created_at: string;
79618
+ desired_available: boolean | null;
79619
+ gateway_attempt_id: string | null;
79620
+ id: string;
79621
+ last_error: string | null;
79622
+ locked_at: string | null;
79623
+ locked_by: string | null;
79624
+ next_attempt_at: string;
79625
+ number_of_pieces: number;
79626
+ sent_at: string | null;
79627
+ status: string;
79628
+ superseded_by: string | null;
79629
+ trade_item_id: string;
79630
+ updated_at: string;
79631
+ user_id: string;
79632
+ }[];
79633
+ SetofOptions: {
79634
+ from: "*";
79635
+ to: "floriday_continuous_stock_queue";
79636
+ isOneToOne: false;
79637
+ isSetofReturn: true;
79638
+ };
79639
+ };
79640
+ claim_logistics_tasks: {
79641
+ Args: {
79642
+ _limit?: number;
79643
+ _owner_module: string;
79644
+ _stale_minutes?: number;
79645
+ _task_type: string;
79646
+ _worker: string;
79647
+ };
79648
+ Returns: {
79649
+ attempt_log: import("../integrations/supabase/types").Json;
79650
+ attempts: number;
79651
+ buffer_ref: string | null;
79652
+ claimed_at: string | null;
79653
+ claimed_by: string | null;
79654
+ completed_at: string | null;
79655
+ created_at: string;
79656
+ depends_on: string[];
79657
+ due_at: string | null;
79658
+ error: string | null;
79659
+ id: string;
79660
+ last_error: string | null;
79661
+ next_attempt_at: string | null;
79662
+ order_ref: string;
79663
+ owner_module: string;
79664
+ payload: import("../integrations/supabase/types").Json;
79665
+ plan_run_id: string | null;
79666
+ planned_end: string | null;
79667
+ planned_start: string | null;
79668
+ priority: number;
79669
+ result: import("../integrations/supabase/types").Json | null;
79670
+ rule_config_id: string | null;
79671
+ rule_version: number | null;
79672
+ sequence: number;
79673
+ shadow: boolean;
79674
+ started_at: string | null;
79675
+ status: string;
79676
+ strategy_id: string | null;
79677
+ task_type: string;
79678
+ updated_at: string;
79679
+ user_id: string;
79680
+ }[];
79681
+ SetofOptions: {
79682
+ from: "*";
79683
+ to: "logistics_tasks";
79684
+ isOneToOne: false;
79685
+ isSetofReturn: true;
79686
+ };
79687
+ };
77200
79688
  claim_print_jobs: {
77201
79689
  Args: {
77202
79690
  _agent_id: string;
@@ -77261,10 +79749,24 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77261
79749
  isSetofReturn: true;
77262
79750
  };
77263
79751
  };
79752
+ cleanup_floriday_stock_queue: {
79753
+ Args: never;
79754
+ Returns: undefined;
79755
+ };
77264
79756
  cleanup_old_bookings: {
77265
79757
  Args: never;
77266
79758
  Returns: undefined;
77267
79759
  };
79760
+ complete_floriday_stock_queue: {
79761
+ Args: {
79762
+ p_attempt_id?: string;
79763
+ p_error?: string;
79764
+ p_id: string;
79765
+ p_ok: boolean;
79766
+ p_permanent?: boolean;
79767
+ };
79768
+ Returns: undefined;
79769
+ };
77268
79770
  consume_bom_for_production: {
77269
79771
  Args: {
77270
79772
  p_connection_id: string;
@@ -77437,6 +79939,21 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77437
79939
  Args: never;
77438
79940
  Returns: string;
77439
79941
  };
79942
+ exact_auth_consume_calls: {
79943
+ Args: {
79944
+ _account_key: string;
79945
+ _calls?: number;
79946
+ _day_limit?: number;
79947
+ _division_code: number;
79948
+ _environment: string;
79949
+ _minute_limit?: number;
79950
+ };
79951
+ Returns: import("../integrations/supabase/types").Json;
79952
+ };
79953
+ exact_auth_prune_sync_log: {
79954
+ Args: never;
79955
+ Returns: undefined;
79956
+ };
77440
79957
  exact_decrypt: {
77441
79958
  Args: {
77442
79959
  cipher: string;
@@ -77646,6 +80163,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77646
80163
  };
77647
80164
  Returns: number;
77648
80165
  };
80166
+ get_offer_branding: {
80167
+ Args: never;
80168
+ Returns: import("../integrations/supabase/types").Json;
80169
+ };
77649
80170
  get_offer_by_link_code: {
77650
80171
  Args: {
77651
80172
  p_code: string;
@@ -77937,6 +80458,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77937
80458
  p_worker?: string;
77938
80459
  };
77939
80460
  Returns: {
80461
+ attempt_log: import("../integrations/supabase/types").Json;
80462
+ attempts: number;
77940
80463
  buffer_ref: string | null;
77941
80464
  claimed_at: string | null;
77942
80465
  claimed_by: string | null;
@@ -77946,6 +80469,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77946
80469
  due_at: string | null;
77947
80470
  error: string | null;
77948
80471
  id: string;
80472
+ last_error: string | null;
80473
+ next_attempt_at: string | null;
77949
80474
  order_ref: string;
77950
80475
  owner_module: string;
77951
80476
  payload: import("../integrations/supabase/types").Json;
@@ -77978,6 +80503,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77978
80503
  p_worker?: string;
77979
80504
  };
77980
80505
  Returns: {
80506
+ attempt_log: import("../integrations/supabase/types").Json;
80507
+ attempts: number;
77981
80508
  buffer_ref: string | null;
77982
80509
  claimed_at: string | null;
77983
80510
  claimed_by: string | null;
@@ -77987,6 +80514,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77987
80514
  due_at: string | null;
77988
80515
  error: string | null;
77989
80516
  id: string;
80517
+ last_error: string | null;
80518
+ next_attempt_at: string | null;
77990
80519
  order_ref: string;
77991
80520
  owner_module: string;
77992
80521
  payload: import("../integrations/supabase/types").Json;
@@ -78019,6 +80548,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78019
80548
  p_task_id: string;
78020
80549
  };
78021
80550
  Returns: {
80551
+ attempt_log: import("../integrations/supabase/types").Json;
80552
+ attempts: number;
78022
80553
  buffer_ref: string | null;
78023
80554
  claimed_at: string | null;
78024
80555
  claimed_by: string | null;
@@ -78028,6 +80559,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78028
80559
  due_at: string | null;
78029
80560
  error: string | null;
78030
80561
  id: string;
80562
+ last_error: string | null;
80563
+ next_attempt_at: string | null;
78031
80564
  order_ref: string;
78032
80565
  owner_module: string;
78033
80566
  payload: import("../integrations/supabase/types").Json;
@@ -78109,6 +80642,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78109
80642
  p_task_id: string;
78110
80643
  };
78111
80644
  Returns: {
80645
+ attempt_log: import("../integrations/supabase/types").Json;
80646
+ attempts: number;
78112
80647
  buffer_ref: string | null;
78113
80648
  claimed_at: string | null;
78114
80649
  claimed_by: string | null;
@@ -78118,6 +80653,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78118
80653
  due_at: string | null;
78119
80654
  error: string | null;
78120
80655
  id: string;
80656
+ last_error: string | null;
80657
+ next_attempt_at: string | null;
78121
80658
  order_ref: string;
78122
80659
  owner_module: string;
78123
80660
  payload: import("../integrations/supabase/types").Json;
@@ -78871,6 +81408,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78871
81408
  Args: never;
78872
81409
  Returns: undefined;
78873
81410
  };
81411
+ run_logistics_tasks_dispatch: {
81412
+ Args: never;
81413
+ Returns: undefined;
81414
+ };
78874
81415
  run_twinfield_queue_tick: {
78875
81416
  Args: never;
78876
81417
  Returns: undefined;
@@ -79111,6 +81652,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79111
81652
  };
79112
81653
  Returns: number;
79113
81654
  };
81655
+ schedule_floriday_stock_queue_process: {
81656
+ Args: {
81657
+ p_apikey: string;
81658
+ p_url: string;
81659
+ };
81660
+ Returns: number;
81661
+ };
79114
81662
  schedule_floriday_token_refresh: {
79115
81663
  Args: {
79116
81664
  p_apikey: string;
@@ -82863,6 +85411,474 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
82863
85411
  referencedColumns: ["id"];
82864
85412
  }];
82865
85413
  };
85414
+ exact_auth_call_budget: {
85415
+ Row: {
85416
+ account_key: string;
85417
+ day_count: number;
85418
+ day_date: string;
85419
+ division_code: number;
85420
+ environment: string;
85421
+ minute_count: number;
85422
+ minute_window: string;
85423
+ updated_at: string;
85424
+ };
85425
+ Insert: {
85426
+ account_key?: string;
85427
+ day_count?: number;
85428
+ day_date?: string;
85429
+ division_code?: number;
85430
+ environment: string;
85431
+ minute_count?: number;
85432
+ minute_window?: string;
85433
+ updated_at?: string;
85434
+ };
85435
+ Update: {
85436
+ account_key?: string;
85437
+ day_count?: number;
85438
+ day_date?: string;
85439
+ division_code?: number;
85440
+ environment?: string;
85441
+ minute_count?: number;
85442
+ minute_window?: string;
85443
+ updated_at?: string;
85444
+ };
85445
+ Relationships: [];
85446
+ };
85447
+ exact_auth_customers: {
85448
+ Row: {
85449
+ account_key: string;
85450
+ address_line1: string | null;
85451
+ chamber_of_commerce: string | null;
85452
+ city: string | null;
85453
+ code: string | null;
85454
+ country: string | null;
85455
+ created_at: string;
85456
+ currency: string | null;
85457
+ division_code: number | null;
85458
+ email: string | null;
85459
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85460
+ exact_id: string;
85461
+ exact_modified: string | null;
85462
+ exact_timestamp: number | null;
85463
+ id: string;
85464
+ is_active: boolean;
85465
+ name: string | null;
85466
+ phone: string | null;
85467
+ postcode: string | null;
85468
+ raw: import("../integrations/supabase/types").Json | null;
85469
+ status: string | null;
85470
+ updated_at: string;
85471
+ vat_number: string | null;
85472
+ website: string | null;
85473
+ };
85474
+ Insert: {
85475
+ account_key?: string;
85476
+ address_line1?: string | null;
85477
+ chamber_of_commerce?: string | null;
85478
+ city?: string | null;
85479
+ code?: string | null;
85480
+ country?: string | null;
85481
+ created_at?: string;
85482
+ currency?: string | null;
85483
+ division_code?: number | null;
85484
+ email?: string | null;
85485
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85486
+ exact_id: string;
85487
+ exact_modified?: string | null;
85488
+ exact_timestamp?: number | null;
85489
+ id?: string;
85490
+ is_active?: boolean;
85491
+ name?: string | null;
85492
+ phone?: string | null;
85493
+ postcode?: string | null;
85494
+ raw?: import("../integrations/supabase/types").Json | null;
85495
+ status?: string | null;
85496
+ updated_at?: string;
85497
+ vat_number?: string | null;
85498
+ website?: string | null;
85499
+ };
85500
+ Update: {
85501
+ account_key?: string;
85502
+ address_line1?: string | null;
85503
+ chamber_of_commerce?: string | null;
85504
+ city?: string | null;
85505
+ code?: string | null;
85506
+ country?: string | null;
85507
+ created_at?: string;
85508
+ currency?: string | null;
85509
+ division_code?: number | null;
85510
+ email?: string | null;
85511
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85512
+ exact_id?: string;
85513
+ exact_modified?: string | null;
85514
+ exact_timestamp?: number | null;
85515
+ id?: string;
85516
+ is_active?: boolean;
85517
+ name?: string | null;
85518
+ phone?: string | null;
85519
+ postcode?: string | null;
85520
+ raw?: import("../integrations/supabase/types").Json | null;
85521
+ status?: string | null;
85522
+ updated_at?: string;
85523
+ vat_number?: string | null;
85524
+ website?: string | null;
85525
+ };
85526
+ Relationships: [];
85527
+ };
85528
+ exact_auth_divisions: {
85529
+ Row: {
85530
+ account_key: string;
85531
+ company_name: string | null;
85532
+ created_at: string;
85533
+ division_code: number | null;
85534
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85535
+ id: string;
85536
+ last_synced_at: string | null;
85537
+ updated_at: string;
85538
+ };
85539
+ Insert: {
85540
+ account_key?: string;
85541
+ company_name?: string | null;
85542
+ created_at?: string;
85543
+ division_code?: number | null;
85544
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85545
+ id?: string;
85546
+ last_synced_at?: string | null;
85547
+ updated_at?: string;
85548
+ };
85549
+ Update: {
85550
+ account_key?: string;
85551
+ company_name?: string | null;
85552
+ created_at?: string;
85553
+ division_code?: number | null;
85554
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85555
+ id?: string;
85556
+ last_synced_at?: string | null;
85557
+ updated_at?: string;
85558
+ };
85559
+ Relationships: [];
85560
+ };
85561
+ exact_auth_invoice_lines: {
85562
+ Row: {
85563
+ account_key: string;
85564
+ amount_excl: number | null;
85565
+ created_at: string;
85566
+ description: string | null;
85567
+ discount: number | null;
85568
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85569
+ exact_id: string;
85570
+ exact_timestamp: number | null;
85571
+ id: string;
85572
+ invoice_exact_id: string;
85573
+ item_code: string | null;
85574
+ item_exact_id: string | null;
85575
+ line_number: number | null;
85576
+ quantity: number | null;
85577
+ raw: import("../integrations/supabase/types").Json | null;
85578
+ unit_price: number | null;
85579
+ updated_at: string;
85580
+ vat_amount: number | null;
85581
+ vat_code: string | null;
85582
+ };
85583
+ Insert: {
85584
+ account_key?: string;
85585
+ amount_excl?: number | null;
85586
+ created_at?: string;
85587
+ description?: string | null;
85588
+ discount?: number | null;
85589
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85590
+ exact_id: string;
85591
+ exact_timestamp?: number | null;
85592
+ id?: string;
85593
+ invoice_exact_id: string;
85594
+ item_code?: string | null;
85595
+ item_exact_id?: string | null;
85596
+ line_number?: number | null;
85597
+ quantity?: number | null;
85598
+ raw?: import("../integrations/supabase/types").Json | null;
85599
+ unit_price?: number | null;
85600
+ updated_at?: string;
85601
+ vat_amount?: number | null;
85602
+ vat_code?: string | null;
85603
+ };
85604
+ Update: {
85605
+ account_key?: string;
85606
+ amount_excl?: number | null;
85607
+ created_at?: string;
85608
+ description?: string | null;
85609
+ discount?: number | null;
85610
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85611
+ exact_id?: string;
85612
+ exact_timestamp?: number | null;
85613
+ id?: string;
85614
+ invoice_exact_id?: string;
85615
+ item_code?: string | null;
85616
+ item_exact_id?: string | null;
85617
+ line_number?: number | null;
85618
+ quantity?: number | null;
85619
+ raw?: import("../integrations/supabase/types").Json | null;
85620
+ unit_price?: number | null;
85621
+ updated_at?: string;
85622
+ vat_amount?: number | null;
85623
+ vat_code?: string | null;
85624
+ };
85625
+ Relationships: [];
85626
+ };
85627
+ exact_auth_invoices: {
85628
+ Row: {
85629
+ account_key: string;
85630
+ amount_excl: number | null;
85631
+ amount_incl: number | null;
85632
+ amount_open: number | null;
85633
+ created_at: string;
85634
+ currency: string | null;
85635
+ customer_code: string | null;
85636
+ customer_exact_id: string | null;
85637
+ customer_name: string | null;
85638
+ description: string | null;
85639
+ division_code: number | null;
85640
+ due_date: string | null;
85641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85642
+ exact_id: string;
85643
+ exact_modified: string | null;
85644
+ exact_timestamp: number | null;
85645
+ id: string;
85646
+ invoice_date: string | null;
85647
+ invoice_number: string | null;
85648
+ order_number: string | null;
85649
+ paid_at: string | null;
85650
+ payment_status: string;
85651
+ raw: import("../integrations/supabase/types").Json | null;
85652
+ receivable_synced_at: string | null;
85653
+ status_code: number | null;
85654
+ updated_at: string;
85655
+ };
85656
+ Insert: {
85657
+ account_key?: string;
85658
+ amount_excl?: number | null;
85659
+ amount_incl?: number | null;
85660
+ amount_open?: number | null;
85661
+ created_at?: string;
85662
+ currency?: string | null;
85663
+ customer_code?: string | null;
85664
+ customer_exact_id?: string | null;
85665
+ customer_name?: string | null;
85666
+ description?: string | null;
85667
+ division_code?: number | null;
85668
+ due_date?: string | null;
85669
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85670
+ exact_id: string;
85671
+ exact_modified?: string | null;
85672
+ exact_timestamp?: number | null;
85673
+ id?: string;
85674
+ invoice_date?: string | null;
85675
+ invoice_number?: string | null;
85676
+ order_number?: string | null;
85677
+ paid_at?: string | null;
85678
+ payment_status?: string;
85679
+ raw?: import("../integrations/supabase/types").Json | null;
85680
+ receivable_synced_at?: string | null;
85681
+ status_code?: number | null;
85682
+ updated_at?: string;
85683
+ };
85684
+ Update: {
85685
+ account_key?: string;
85686
+ amount_excl?: number | null;
85687
+ amount_incl?: number | null;
85688
+ amount_open?: number | null;
85689
+ created_at?: string;
85690
+ currency?: string | null;
85691
+ customer_code?: string | null;
85692
+ customer_exact_id?: string | null;
85693
+ customer_name?: string | null;
85694
+ description?: string | null;
85695
+ division_code?: number | null;
85696
+ due_date?: string | null;
85697
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85698
+ exact_id?: string;
85699
+ exact_modified?: string | null;
85700
+ exact_timestamp?: number | null;
85701
+ id?: string;
85702
+ invoice_date?: string | null;
85703
+ invoice_number?: string | null;
85704
+ order_number?: string | null;
85705
+ paid_at?: string | null;
85706
+ payment_status?: string;
85707
+ raw?: import("../integrations/supabase/types").Json | null;
85708
+ receivable_synced_at?: string | null;
85709
+ status_code?: number | null;
85710
+ updated_at?: string;
85711
+ };
85712
+ Relationships: [];
85713
+ };
85714
+ exact_auth_items: {
85715
+ Row: {
85716
+ account_key: string;
85717
+ barcode: string | null;
85718
+ code: string | null;
85719
+ cost_price: number | null;
85720
+ created_at: string;
85721
+ description: string | null;
85722
+ division_code: number | null;
85723
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85724
+ exact_id: string;
85725
+ exact_modified: string | null;
85726
+ exact_timestamp: number | null;
85727
+ gl_account_code: string | null;
85728
+ id: string;
85729
+ is_active: boolean;
85730
+ is_sales_item: boolean | null;
85731
+ item_type: string | null;
85732
+ raw: import("../integrations/supabase/types").Json | null;
85733
+ sales_price: number | null;
85734
+ unit: string | null;
85735
+ updated_at: string;
85736
+ vat_code: string | null;
85737
+ };
85738
+ Insert: {
85739
+ account_key?: string;
85740
+ barcode?: string | null;
85741
+ code?: string | null;
85742
+ cost_price?: number | null;
85743
+ created_at?: string;
85744
+ description?: string | null;
85745
+ division_code?: number | null;
85746
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85747
+ exact_id: string;
85748
+ exact_modified?: string | null;
85749
+ exact_timestamp?: number | null;
85750
+ gl_account_code?: string | null;
85751
+ id?: string;
85752
+ is_active?: boolean;
85753
+ is_sales_item?: boolean | null;
85754
+ item_type?: string | null;
85755
+ raw?: import("../integrations/supabase/types").Json | null;
85756
+ sales_price?: number | null;
85757
+ unit?: string | null;
85758
+ updated_at?: string;
85759
+ vat_code?: string | null;
85760
+ };
85761
+ Update: {
85762
+ account_key?: string;
85763
+ barcode?: string | null;
85764
+ code?: string | null;
85765
+ cost_price?: number | null;
85766
+ created_at?: string;
85767
+ description?: string | null;
85768
+ division_code?: number | null;
85769
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85770
+ exact_id?: string;
85771
+ exact_modified?: string | null;
85772
+ exact_timestamp?: number | null;
85773
+ gl_account_code?: string | null;
85774
+ id?: string;
85775
+ is_active?: boolean;
85776
+ is_sales_item?: boolean | null;
85777
+ item_type?: string | null;
85778
+ raw?: import("../integrations/supabase/types").Json | null;
85779
+ sales_price?: number | null;
85780
+ unit?: string | null;
85781
+ updated_at?: string;
85782
+ vat_code?: string | null;
85783
+ };
85784
+ Relationships: [];
85785
+ };
85786
+ exact_auth_sync_log: {
85787
+ Row: {
85788
+ account_key: string;
85789
+ calls_used: number;
85790
+ created_at: string;
85791
+ domain: string;
85792
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85793
+ error: string | null;
85794
+ finished_at: string | null;
85795
+ id: string;
85796
+ ok: boolean;
85797
+ records: number;
85798
+ started_at: string;
85799
+ };
85800
+ Insert: {
85801
+ account_key?: string;
85802
+ calls_used?: number;
85803
+ created_at?: string;
85804
+ domain: string;
85805
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85806
+ error?: string | null;
85807
+ finished_at?: string | null;
85808
+ id?: string;
85809
+ ok?: boolean;
85810
+ records?: number;
85811
+ started_at?: string;
85812
+ };
85813
+ Update: {
85814
+ account_key?: string;
85815
+ calls_used?: number;
85816
+ created_at?: string;
85817
+ domain?: string;
85818
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85819
+ error?: string | null;
85820
+ finished_at?: string | null;
85821
+ id?: string;
85822
+ ok?: boolean;
85823
+ records?: number;
85824
+ started_at?: string;
85825
+ };
85826
+ Relationships: [];
85827
+ };
85828
+ exact_auth_sync_state: {
85829
+ Row: {
85830
+ account_key: string;
85831
+ created_at: string;
85832
+ cursor_timestamp: number;
85833
+ division_code: number | null;
85834
+ domain: string;
85835
+ duration_ms: number | null;
85836
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85837
+ initial_sync_done: boolean;
85838
+ last_error: string | null;
85839
+ last_run_at: string | null;
85840
+ last_success_at: string | null;
85841
+ locked_at: string | null;
85842
+ needs_initial_sync: boolean;
85843
+ record_count: number;
85844
+ updated_at: string;
85845
+ };
85846
+ Insert: {
85847
+ account_key?: string;
85848
+ created_at?: string;
85849
+ cursor_timestamp?: number;
85850
+ division_code?: number | null;
85851
+ domain: string;
85852
+ duration_ms?: number | null;
85853
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85854
+ initial_sync_done?: boolean;
85855
+ last_error?: string | null;
85856
+ last_run_at?: string | null;
85857
+ last_success_at?: string | null;
85858
+ locked_at?: string | null;
85859
+ needs_initial_sync?: boolean;
85860
+ record_count?: number;
85861
+ updated_at?: string;
85862
+ };
85863
+ Update: {
85864
+ account_key?: string;
85865
+ created_at?: string;
85866
+ cursor_timestamp?: number;
85867
+ division_code?: number | null;
85868
+ domain?: string;
85869
+ duration_ms?: number | null;
85870
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85871
+ initial_sync_done?: boolean;
85872
+ last_error?: string | null;
85873
+ last_run_at?: string | null;
85874
+ last_success_at?: string | null;
85875
+ locked_at?: string | null;
85876
+ needs_initial_sync?: boolean;
85877
+ record_count?: number;
85878
+ updated_at?: string;
85879
+ };
85880
+ Relationships: [];
85881
+ };
82866
85882
  exact_bulk_operation_items: {
82867
85883
  Row: {
82868
85884
  attempts: number;
@@ -84554,12 +87570,17 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
84554
87570
  attempts: number;
84555
87571
  connection_id: string;
84556
87572
  created_at: string;
87573
+ desired_available: boolean | null;
84557
87574
  gateway_attempt_id: string | null;
84558
87575
  id: string;
84559
87576
  last_error: string | null;
87577
+ locked_at: string | null;
87578
+ locked_by: string | null;
87579
+ next_attempt_at: string;
84560
87580
  number_of_pieces: number;
84561
87581
  sent_at: string | null;
84562
87582
  status: string;
87583
+ superseded_by: string | null;
84563
87584
  trade_item_id: string;
84564
87585
  updated_at: string;
84565
87586
  user_id: string;
@@ -84568,12 +87589,17 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
84568
87589
  attempts?: number;
84569
87590
  connection_id: string;
84570
87591
  created_at?: string;
87592
+ desired_available?: boolean | null;
84571
87593
  gateway_attempt_id?: string | null;
84572
87594
  id?: string;
84573
87595
  last_error?: string | null;
87596
+ locked_at?: string | null;
87597
+ locked_by?: string | null;
87598
+ next_attempt_at?: string;
84574
87599
  number_of_pieces?: number;
84575
87600
  sent_at?: string | null;
84576
87601
  status?: string;
87602
+ superseded_by?: string | null;
84577
87603
  trade_item_id: string;
84578
87604
  updated_at?: string;
84579
87605
  user_id: string;
@@ -84582,12 +87608,17 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
84582
87608
  attempts?: number;
84583
87609
  connection_id?: string;
84584
87610
  created_at?: string;
87611
+ desired_available?: boolean | null;
84585
87612
  gateway_attempt_id?: string | null;
84586
87613
  id?: string;
84587
87614
  last_error?: string | null;
87615
+ locked_at?: string | null;
87616
+ locked_by?: string | null;
87617
+ next_attempt_at?: string;
84588
87618
  number_of_pieces?: number;
84589
87619
  sent_at?: string | null;
84590
87620
  status?: string;
87621
+ superseded_by?: string | null;
84591
87622
  trade_item_id?: string;
84592
87623
  updated_at?: string;
84593
87624
  user_id?: string;
@@ -87947,6 +90978,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
87947
90978
  };
87948
90979
  logistics_tasks: {
87949
90980
  Row: {
90981
+ attempt_log: import("../integrations/supabase/types").Json;
90982
+ attempts: number;
87950
90983
  buffer_ref: string | null;
87951
90984
  claimed_at: string | null;
87952
90985
  claimed_by: string | null;
@@ -87956,6 +90989,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
87956
90989
  due_at: string | null;
87957
90990
  error: string | null;
87958
90991
  id: string;
90992
+ last_error: string | null;
90993
+ next_attempt_at: string | null;
87959
90994
  order_ref: string;
87960
90995
  owner_module: string;
87961
90996
  payload: import("../integrations/supabase/types").Json;
@@ -87976,6 +91011,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
87976
91011
  user_id: string;
87977
91012
  };
87978
91013
  Insert: {
91014
+ attempt_log?: import("../integrations/supabase/types").Json;
91015
+ attempts?: number;
87979
91016
  buffer_ref?: string | null;
87980
91017
  claimed_at?: string | null;
87981
91018
  claimed_by?: string | null;
@@ -87985,6 +91022,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
87985
91022
  due_at?: string | null;
87986
91023
  error?: string | null;
87987
91024
  id?: string;
91025
+ last_error?: string | null;
91026
+ next_attempt_at?: string | null;
87988
91027
  order_ref: string;
87989
91028
  owner_module: string;
87990
91029
  payload?: import("../integrations/supabase/types").Json;
@@ -88005,6 +91044,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
88005
91044
  user_id?: string;
88006
91045
  };
88007
91046
  Update: {
91047
+ attempt_log?: import("../integrations/supabase/types").Json;
91048
+ attempts?: number;
88008
91049
  buffer_ref?: string | null;
88009
91050
  claimed_at?: string | null;
88010
91051
  claimed_by?: string | null;
@@ -88014,6 +91055,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
88014
91055
  due_at?: string | null;
88015
91056
  error?: string | null;
88016
91057
  id?: string;
91058
+ last_error?: string | null;
91059
+ next_attempt_at?: string | null;
88017
91060
  order_ref?: string;
88018
91061
  owner_module?: string;
88019
91062
  payload?: import("../integrations/supabase/types").Json;
@@ -89363,6 +92406,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
89363
92406
  };
89364
92407
  offer_settings: {
89365
92408
  Row: {
92409
+ brand_name: string | null;
89366
92410
  button_color: string;
89367
92411
  created_at: string;
89368
92412
  default_countries: string[];
@@ -89384,6 +92428,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
89384
92428
  updated_at: string;
89385
92429
  };
89386
92430
  Insert: {
92431
+ brand_name?: string | null;
89387
92432
  button_color?: string;
89388
92433
  created_at?: string;
89389
92434
  default_countries?: string[];
@@ -89405,6 +92450,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
89405
92450
  updated_at?: string;
89406
92451
  };
89407
92452
  Update: {
92453
+ brand_name?: string | null;
89408
92454
  button_color?: string;
89409
92455
  created_at?: string;
89410
92456
  default_countries?: string[];
@@ -97015,6 +100061,85 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97015
100061
  };
97016
100062
  Returns: import("../integrations/supabase/types").Json;
97017
100063
  };
100064
+ claim_floriday_stock_queue: {
100065
+ Args: {
100066
+ p_limit?: number;
100067
+ p_worker?: string;
100068
+ };
100069
+ Returns: {
100070
+ attempts: number;
100071
+ connection_id: string;
100072
+ created_at: string;
100073
+ desired_available: boolean | null;
100074
+ gateway_attempt_id: string | null;
100075
+ id: string;
100076
+ last_error: string | null;
100077
+ locked_at: string | null;
100078
+ locked_by: string | null;
100079
+ next_attempt_at: string;
100080
+ number_of_pieces: number;
100081
+ sent_at: string | null;
100082
+ status: string;
100083
+ superseded_by: string | null;
100084
+ trade_item_id: string;
100085
+ updated_at: string;
100086
+ user_id: string;
100087
+ }[];
100088
+ SetofOptions: {
100089
+ from: "*";
100090
+ to: "floriday_continuous_stock_queue";
100091
+ isOneToOne: false;
100092
+ isSetofReturn: true;
100093
+ };
100094
+ };
100095
+ claim_logistics_tasks: {
100096
+ Args: {
100097
+ _limit?: number;
100098
+ _owner_module: string;
100099
+ _stale_minutes?: number;
100100
+ _task_type: string;
100101
+ _worker: string;
100102
+ };
100103
+ Returns: {
100104
+ attempt_log: import("../integrations/supabase/types").Json;
100105
+ attempts: number;
100106
+ buffer_ref: string | null;
100107
+ claimed_at: string | null;
100108
+ claimed_by: string | null;
100109
+ completed_at: string | null;
100110
+ created_at: string;
100111
+ depends_on: string[];
100112
+ due_at: string | null;
100113
+ error: string | null;
100114
+ id: string;
100115
+ last_error: string | null;
100116
+ next_attempt_at: string | null;
100117
+ order_ref: string;
100118
+ owner_module: string;
100119
+ payload: import("../integrations/supabase/types").Json;
100120
+ plan_run_id: string | null;
100121
+ planned_end: string | null;
100122
+ planned_start: string | null;
100123
+ priority: number;
100124
+ result: import("../integrations/supabase/types").Json | null;
100125
+ rule_config_id: string | null;
100126
+ rule_version: number | null;
100127
+ sequence: number;
100128
+ shadow: boolean;
100129
+ started_at: string | null;
100130
+ status: string;
100131
+ strategy_id: string | null;
100132
+ task_type: string;
100133
+ updated_at: string;
100134
+ user_id: string;
100135
+ }[];
100136
+ SetofOptions: {
100137
+ from: "*";
100138
+ to: "logistics_tasks";
100139
+ isOneToOne: false;
100140
+ isSetofReturn: true;
100141
+ };
100142
+ };
97018
100143
  claim_print_jobs: {
97019
100144
  Args: {
97020
100145
  _agent_id: string;
@@ -97079,10 +100204,24 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97079
100204
  isSetofReturn: true;
97080
100205
  };
97081
100206
  };
100207
+ cleanup_floriday_stock_queue: {
100208
+ Args: never;
100209
+ Returns: undefined;
100210
+ };
97082
100211
  cleanup_old_bookings: {
97083
100212
  Args: never;
97084
100213
  Returns: undefined;
97085
100214
  };
100215
+ complete_floriday_stock_queue: {
100216
+ Args: {
100217
+ p_attempt_id?: string;
100218
+ p_error?: string;
100219
+ p_id: string;
100220
+ p_ok: boolean;
100221
+ p_permanent?: boolean;
100222
+ };
100223
+ Returns: undefined;
100224
+ };
97086
100225
  consume_bom_for_production: {
97087
100226
  Args: {
97088
100227
  p_connection_id: string;
@@ -97255,6 +100394,21 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97255
100394
  Args: never;
97256
100395
  Returns: string;
97257
100396
  };
100397
+ exact_auth_consume_calls: {
100398
+ Args: {
100399
+ _account_key: string;
100400
+ _calls?: number;
100401
+ _day_limit?: number;
100402
+ _division_code: number;
100403
+ _environment: string;
100404
+ _minute_limit?: number;
100405
+ };
100406
+ Returns: import("../integrations/supabase/types").Json;
100407
+ };
100408
+ exact_auth_prune_sync_log: {
100409
+ Args: never;
100410
+ Returns: undefined;
100411
+ };
97258
100412
  exact_decrypt: {
97259
100413
  Args: {
97260
100414
  cipher: string;
@@ -97464,6 +100618,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97464
100618
  };
97465
100619
  Returns: number;
97466
100620
  };
100621
+ get_offer_branding: {
100622
+ Args: never;
100623
+ Returns: import("../integrations/supabase/types").Json;
100624
+ };
97467
100625
  get_offer_by_link_code: {
97468
100626
  Args: {
97469
100627
  p_code: string;
@@ -97755,6 +100913,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97755
100913
  p_worker?: string;
97756
100914
  };
97757
100915
  Returns: {
100916
+ attempt_log: import("../integrations/supabase/types").Json;
100917
+ attempts: number;
97758
100918
  buffer_ref: string | null;
97759
100919
  claimed_at: string | null;
97760
100920
  claimed_by: string | null;
@@ -97764,6 +100924,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97764
100924
  due_at: string | null;
97765
100925
  error: string | null;
97766
100926
  id: string;
100927
+ last_error: string | null;
100928
+ next_attempt_at: string | null;
97767
100929
  order_ref: string;
97768
100930
  owner_module: string;
97769
100931
  payload: import("../integrations/supabase/types").Json;
@@ -97796,6 +100958,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97796
100958
  p_worker?: string;
97797
100959
  };
97798
100960
  Returns: {
100961
+ attempt_log: import("../integrations/supabase/types").Json;
100962
+ attempts: number;
97799
100963
  buffer_ref: string | null;
97800
100964
  claimed_at: string | null;
97801
100965
  claimed_by: string | null;
@@ -97805,6 +100969,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97805
100969
  due_at: string | null;
97806
100970
  error: string | null;
97807
100971
  id: string;
100972
+ last_error: string | null;
100973
+ next_attempt_at: string | null;
97808
100974
  order_ref: string;
97809
100975
  owner_module: string;
97810
100976
  payload: import("../integrations/supabase/types").Json;
@@ -97837,6 +101003,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97837
101003
  p_task_id: string;
97838
101004
  };
97839
101005
  Returns: {
101006
+ attempt_log: import("../integrations/supabase/types").Json;
101007
+ attempts: number;
97840
101008
  buffer_ref: string | null;
97841
101009
  claimed_at: string | null;
97842
101010
  claimed_by: string | null;
@@ -97846,6 +101014,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97846
101014
  due_at: string | null;
97847
101015
  error: string | null;
97848
101016
  id: string;
101017
+ last_error: string | null;
101018
+ next_attempt_at: string | null;
97849
101019
  order_ref: string;
97850
101020
  owner_module: string;
97851
101021
  payload: import("../integrations/supabase/types").Json;
@@ -97927,6 +101097,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97927
101097
  p_task_id: string;
97928
101098
  };
97929
101099
  Returns: {
101100
+ attempt_log: import("../integrations/supabase/types").Json;
101101
+ attempts: number;
97930
101102
  buffer_ref: string | null;
97931
101103
  claimed_at: string | null;
97932
101104
  claimed_by: string | null;
@@ -97936,6 +101108,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
97936
101108
  due_at: string | null;
97937
101109
  error: string | null;
97938
101110
  id: string;
101111
+ last_error: string | null;
101112
+ next_attempt_at: string | null;
97939
101113
  order_ref: string;
97940
101114
  owner_module: string;
97941
101115
  payload: import("../integrations/supabase/types").Json;
@@ -98689,6 +101863,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
98689
101863
  Args: never;
98690
101864
  Returns: undefined;
98691
101865
  };
101866
+ run_logistics_tasks_dispatch: {
101867
+ Args: never;
101868
+ Returns: undefined;
101869
+ };
98692
101870
  run_twinfield_queue_tick: {
98693
101871
  Args: never;
98694
101872
  Returns: undefined;
@@ -98929,6 +102107,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
98929
102107
  };
98930
102108
  Returns: number;
98931
102109
  };
102110
+ schedule_floriday_stock_queue_process: {
102111
+ Args: {
102112
+ p_apikey: string;
102113
+ p_url: string;
102114
+ };
102115
+ Returns: number;
102116
+ };
98932
102117
  schedule_floriday_token_refresh: {
98933
102118
  Args: {
98934
102119
  p_apikey: string;