@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.
@@ -3548,6 +3548,474 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3548
3548
  referencedColumns: ["id"];
3549
3549
  }];
3550
3550
  };
3551
+ exact_auth_call_budget: {
3552
+ Row: {
3553
+ account_key: string;
3554
+ day_count: number;
3555
+ day_date: string;
3556
+ division_code: number;
3557
+ environment: string;
3558
+ minute_count: number;
3559
+ minute_window: string;
3560
+ updated_at: string;
3561
+ };
3562
+ Insert: {
3563
+ account_key?: string;
3564
+ day_count?: number;
3565
+ day_date?: string;
3566
+ division_code?: number;
3567
+ environment: string;
3568
+ minute_count?: number;
3569
+ minute_window?: string;
3570
+ updated_at?: string;
3571
+ };
3572
+ Update: {
3573
+ account_key?: string;
3574
+ day_count?: number;
3575
+ day_date?: string;
3576
+ division_code?: number;
3577
+ environment?: string;
3578
+ minute_count?: number;
3579
+ minute_window?: string;
3580
+ updated_at?: string;
3581
+ };
3582
+ Relationships: [];
3583
+ };
3584
+ exact_auth_customers: {
3585
+ Row: {
3586
+ account_key: string;
3587
+ address_line1: string | null;
3588
+ chamber_of_commerce: string | null;
3589
+ city: string | null;
3590
+ code: string | null;
3591
+ country: string | null;
3592
+ created_at: string;
3593
+ currency: string | null;
3594
+ division_code: number | null;
3595
+ email: string | null;
3596
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3597
+ exact_id: string;
3598
+ exact_modified: string | null;
3599
+ exact_timestamp: number | null;
3600
+ id: string;
3601
+ is_active: boolean;
3602
+ name: string | null;
3603
+ phone: string | null;
3604
+ postcode: string | null;
3605
+ raw: import("../integrations/supabase/types").Json | null;
3606
+ status: string | null;
3607
+ updated_at: string;
3608
+ vat_number: string | null;
3609
+ website: string | null;
3610
+ };
3611
+ Insert: {
3612
+ account_key?: string;
3613
+ address_line1?: string | null;
3614
+ chamber_of_commerce?: string | null;
3615
+ city?: string | null;
3616
+ code?: string | null;
3617
+ country?: string | null;
3618
+ created_at?: string;
3619
+ currency?: string | null;
3620
+ division_code?: number | null;
3621
+ email?: string | null;
3622
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3623
+ exact_id: string;
3624
+ exact_modified?: string | null;
3625
+ exact_timestamp?: number | null;
3626
+ id?: string;
3627
+ is_active?: boolean;
3628
+ name?: string | null;
3629
+ phone?: string | null;
3630
+ postcode?: string | null;
3631
+ raw?: import("../integrations/supabase/types").Json | null;
3632
+ status?: string | null;
3633
+ updated_at?: string;
3634
+ vat_number?: string | null;
3635
+ website?: string | null;
3636
+ };
3637
+ Update: {
3638
+ account_key?: string;
3639
+ address_line1?: string | null;
3640
+ chamber_of_commerce?: string | null;
3641
+ city?: string | null;
3642
+ code?: string | null;
3643
+ country?: string | null;
3644
+ created_at?: string;
3645
+ currency?: string | null;
3646
+ division_code?: number | null;
3647
+ email?: string | null;
3648
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3649
+ exact_id?: string;
3650
+ exact_modified?: string | null;
3651
+ exact_timestamp?: number | null;
3652
+ id?: string;
3653
+ is_active?: boolean;
3654
+ name?: string | null;
3655
+ phone?: string | null;
3656
+ postcode?: string | null;
3657
+ raw?: import("../integrations/supabase/types").Json | null;
3658
+ status?: string | null;
3659
+ updated_at?: string;
3660
+ vat_number?: string | null;
3661
+ website?: string | null;
3662
+ };
3663
+ Relationships: [];
3664
+ };
3665
+ exact_auth_divisions: {
3666
+ Row: {
3667
+ account_key: string;
3668
+ company_name: string | null;
3669
+ created_at: string;
3670
+ division_code: number | null;
3671
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3672
+ id: string;
3673
+ last_synced_at: string | null;
3674
+ updated_at: string;
3675
+ };
3676
+ Insert: {
3677
+ account_key?: string;
3678
+ company_name?: string | null;
3679
+ created_at?: string;
3680
+ division_code?: number | null;
3681
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3682
+ id?: string;
3683
+ last_synced_at?: string | null;
3684
+ updated_at?: string;
3685
+ };
3686
+ Update: {
3687
+ account_key?: string;
3688
+ company_name?: string | null;
3689
+ created_at?: string;
3690
+ division_code?: number | null;
3691
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3692
+ id?: string;
3693
+ last_synced_at?: string | null;
3694
+ updated_at?: string;
3695
+ };
3696
+ Relationships: [];
3697
+ };
3698
+ exact_auth_invoice_lines: {
3699
+ Row: {
3700
+ account_key: string;
3701
+ amount_excl: number | null;
3702
+ created_at: string;
3703
+ description: string | null;
3704
+ discount: number | null;
3705
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3706
+ exact_id: string;
3707
+ exact_timestamp: number | null;
3708
+ id: string;
3709
+ invoice_exact_id: string;
3710
+ item_code: string | null;
3711
+ item_exact_id: string | null;
3712
+ line_number: number | null;
3713
+ quantity: number | null;
3714
+ raw: import("../integrations/supabase/types").Json | null;
3715
+ unit_price: number | null;
3716
+ updated_at: string;
3717
+ vat_amount: number | null;
3718
+ vat_code: string | null;
3719
+ };
3720
+ Insert: {
3721
+ account_key?: string;
3722
+ amount_excl?: number | null;
3723
+ created_at?: string;
3724
+ description?: string | null;
3725
+ discount?: number | null;
3726
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3727
+ exact_id: string;
3728
+ exact_timestamp?: number | null;
3729
+ id?: string;
3730
+ invoice_exact_id: string;
3731
+ item_code?: string | null;
3732
+ item_exact_id?: string | null;
3733
+ line_number?: number | null;
3734
+ quantity?: number | null;
3735
+ raw?: import("../integrations/supabase/types").Json | null;
3736
+ unit_price?: number | null;
3737
+ updated_at?: string;
3738
+ vat_amount?: number | null;
3739
+ vat_code?: string | null;
3740
+ };
3741
+ Update: {
3742
+ account_key?: string;
3743
+ amount_excl?: number | null;
3744
+ created_at?: string;
3745
+ description?: string | null;
3746
+ discount?: number | null;
3747
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3748
+ exact_id?: string;
3749
+ exact_timestamp?: number | null;
3750
+ id?: string;
3751
+ invoice_exact_id?: string;
3752
+ item_code?: string | null;
3753
+ item_exact_id?: string | null;
3754
+ line_number?: number | null;
3755
+ quantity?: number | null;
3756
+ raw?: import("../integrations/supabase/types").Json | null;
3757
+ unit_price?: number | null;
3758
+ updated_at?: string;
3759
+ vat_amount?: number | null;
3760
+ vat_code?: string | null;
3761
+ };
3762
+ Relationships: [];
3763
+ };
3764
+ exact_auth_invoices: {
3765
+ Row: {
3766
+ account_key: string;
3767
+ amount_excl: number | null;
3768
+ amount_incl: number | null;
3769
+ amount_open: number | null;
3770
+ created_at: string;
3771
+ currency: string | null;
3772
+ customer_code: string | null;
3773
+ customer_exact_id: string | null;
3774
+ customer_name: string | null;
3775
+ description: string | null;
3776
+ division_code: number | null;
3777
+ due_date: string | null;
3778
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3779
+ exact_id: string;
3780
+ exact_modified: string | null;
3781
+ exact_timestamp: number | null;
3782
+ id: string;
3783
+ invoice_date: string | null;
3784
+ invoice_number: string | null;
3785
+ order_number: string | null;
3786
+ paid_at: string | null;
3787
+ payment_status: string;
3788
+ raw: import("../integrations/supabase/types").Json | null;
3789
+ receivable_synced_at: string | null;
3790
+ status_code: number | null;
3791
+ updated_at: string;
3792
+ };
3793
+ Insert: {
3794
+ account_key?: string;
3795
+ amount_excl?: number | null;
3796
+ amount_incl?: number | null;
3797
+ amount_open?: number | null;
3798
+ created_at?: string;
3799
+ currency?: string | null;
3800
+ customer_code?: string | null;
3801
+ customer_exact_id?: string | null;
3802
+ customer_name?: string | null;
3803
+ description?: string | null;
3804
+ division_code?: number | null;
3805
+ due_date?: string | null;
3806
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3807
+ exact_id: string;
3808
+ exact_modified?: string | null;
3809
+ exact_timestamp?: number | null;
3810
+ id?: string;
3811
+ invoice_date?: string | null;
3812
+ invoice_number?: string | null;
3813
+ order_number?: string | null;
3814
+ paid_at?: string | null;
3815
+ payment_status?: string;
3816
+ raw?: import("../integrations/supabase/types").Json | null;
3817
+ receivable_synced_at?: string | null;
3818
+ status_code?: number | null;
3819
+ updated_at?: string;
3820
+ };
3821
+ Update: {
3822
+ account_key?: string;
3823
+ amount_excl?: number | null;
3824
+ amount_incl?: number | null;
3825
+ amount_open?: number | null;
3826
+ created_at?: string;
3827
+ currency?: string | null;
3828
+ customer_code?: string | null;
3829
+ customer_exact_id?: string | null;
3830
+ customer_name?: string | null;
3831
+ description?: string | null;
3832
+ division_code?: number | null;
3833
+ due_date?: string | null;
3834
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3835
+ exact_id?: string;
3836
+ exact_modified?: string | null;
3837
+ exact_timestamp?: number | null;
3838
+ id?: string;
3839
+ invoice_date?: string | null;
3840
+ invoice_number?: string | null;
3841
+ order_number?: string | null;
3842
+ paid_at?: string | null;
3843
+ payment_status?: string;
3844
+ raw?: import("../integrations/supabase/types").Json | null;
3845
+ receivable_synced_at?: string | null;
3846
+ status_code?: number | null;
3847
+ updated_at?: string;
3848
+ };
3849
+ Relationships: [];
3850
+ };
3851
+ exact_auth_items: {
3852
+ Row: {
3853
+ account_key: string;
3854
+ barcode: string | null;
3855
+ code: string | null;
3856
+ cost_price: number | null;
3857
+ created_at: string;
3858
+ description: string | null;
3859
+ division_code: number | null;
3860
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3861
+ exact_id: string;
3862
+ exact_modified: string | null;
3863
+ exact_timestamp: number | null;
3864
+ gl_account_code: string | null;
3865
+ id: string;
3866
+ is_active: boolean;
3867
+ is_sales_item: boolean | null;
3868
+ item_type: string | null;
3869
+ raw: import("../integrations/supabase/types").Json | null;
3870
+ sales_price: number | null;
3871
+ unit: string | null;
3872
+ updated_at: string;
3873
+ vat_code: string | null;
3874
+ };
3875
+ Insert: {
3876
+ account_key?: string;
3877
+ barcode?: string | null;
3878
+ code?: string | null;
3879
+ cost_price?: number | null;
3880
+ created_at?: string;
3881
+ description?: string | null;
3882
+ division_code?: number | null;
3883
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3884
+ exact_id: string;
3885
+ exact_modified?: string | null;
3886
+ exact_timestamp?: number | null;
3887
+ gl_account_code?: string | null;
3888
+ id?: string;
3889
+ is_active?: boolean;
3890
+ is_sales_item?: boolean | null;
3891
+ item_type?: string | null;
3892
+ raw?: import("../integrations/supabase/types").Json | null;
3893
+ sales_price?: number | null;
3894
+ unit?: string | null;
3895
+ updated_at?: string;
3896
+ vat_code?: string | null;
3897
+ };
3898
+ Update: {
3899
+ account_key?: string;
3900
+ barcode?: string | null;
3901
+ code?: string | null;
3902
+ cost_price?: number | null;
3903
+ created_at?: string;
3904
+ description?: string | null;
3905
+ division_code?: number | null;
3906
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3907
+ exact_id?: string;
3908
+ exact_modified?: string | null;
3909
+ exact_timestamp?: number | null;
3910
+ gl_account_code?: string | null;
3911
+ id?: string;
3912
+ is_active?: boolean;
3913
+ is_sales_item?: boolean | null;
3914
+ item_type?: string | null;
3915
+ raw?: import("../integrations/supabase/types").Json | null;
3916
+ sales_price?: number | null;
3917
+ unit?: string | null;
3918
+ updated_at?: string;
3919
+ vat_code?: string | null;
3920
+ };
3921
+ Relationships: [];
3922
+ };
3923
+ exact_auth_sync_log: {
3924
+ Row: {
3925
+ account_key: string;
3926
+ calls_used: number;
3927
+ created_at: string;
3928
+ domain: string;
3929
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3930
+ error: string | null;
3931
+ finished_at: string | null;
3932
+ id: string;
3933
+ ok: boolean;
3934
+ records: number;
3935
+ started_at: string;
3936
+ };
3937
+ Insert: {
3938
+ account_key?: string;
3939
+ calls_used?: number;
3940
+ created_at?: string;
3941
+ domain: string;
3942
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3943
+ error?: string | null;
3944
+ finished_at?: string | null;
3945
+ id?: string;
3946
+ ok?: boolean;
3947
+ records?: number;
3948
+ started_at?: string;
3949
+ };
3950
+ Update: {
3951
+ account_key?: string;
3952
+ calls_used?: number;
3953
+ created_at?: string;
3954
+ domain?: string;
3955
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3956
+ error?: string | null;
3957
+ finished_at?: string | null;
3958
+ id?: string;
3959
+ ok?: boolean;
3960
+ records?: number;
3961
+ started_at?: string;
3962
+ };
3963
+ Relationships: [];
3964
+ };
3965
+ exact_auth_sync_state: {
3966
+ Row: {
3967
+ account_key: string;
3968
+ created_at: string;
3969
+ cursor_timestamp: number;
3970
+ division_code: number | null;
3971
+ domain: string;
3972
+ duration_ms: number | null;
3973
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3974
+ initial_sync_done: boolean;
3975
+ last_error: string | null;
3976
+ last_run_at: string | null;
3977
+ last_success_at: string | null;
3978
+ locked_at: string | null;
3979
+ needs_initial_sync: boolean;
3980
+ record_count: number;
3981
+ updated_at: string;
3982
+ };
3983
+ Insert: {
3984
+ account_key?: string;
3985
+ created_at?: string;
3986
+ cursor_timestamp?: number;
3987
+ division_code?: number | null;
3988
+ domain: string;
3989
+ duration_ms?: number | null;
3990
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3991
+ initial_sync_done?: boolean;
3992
+ last_error?: string | null;
3993
+ last_run_at?: string | null;
3994
+ last_success_at?: string | null;
3995
+ locked_at?: string | null;
3996
+ needs_initial_sync?: boolean;
3997
+ record_count?: number;
3998
+ updated_at?: string;
3999
+ };
4000
+ Update: {
4001
+ account_key?: string;
4002
+ created_at?: string;
4003
+ cursor_timestamp?: number;
4004
+ division_code?: number | null;
4005
+ domain?: string;
4006
+ duration_ms?: number | null;
4007
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4008
+ initial_sync_done?: boolean;
4009
+ last_error?: string | null;
4010
+ last_run_at?: string | null;
4011
+ last_success_at?: string | null;
4012
+ locked_at?: string | null;
4013
+ needs_initial_sync?: boolean;
4014
+ record_count?: number;
4015
+ updated_at?: string;
4016
+ };
4017
+ Relationships: [];
4018
+ };
3551
4019
  exact_bulk_operation_items: {
3552
4020
  Row: {
3553
4021
  attempts: number;
@@ -5239,12 +5707,17 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
5239
5707
  attempts: number;
5240
5708
  connection_id: string;
5241
5709
  created_at: string;
5710
+ desired_available: boolean | null;
5242
5711
  gateway_attempt_id: string | null;
5243
5712
  id: string;
5244
5713
  last_error: string | null;
5714
+ locked_at: string | null;
5715
+ locked_by: string | null;
5716
+ next_attempt_at: string;
5245
5717
  number_of_pieces: number;
5246
5718
  sent_at: string | null;
5247
5719
  status: string;
5720
+ superseded_by: string | null;
5248
5721
  trade_item_id: string;
5249
5722
  updated_at: string;
5250
5723
  user_id: string;
@@ -5253,12 +5726,17 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
5253
5726
  attempts?: number;
5254
5727
  connection_id: string;
5255
5728
  created_at?: string;
5729
+ desired_available?: boolean | null;
5256
5730
  gateway_attempt_id?: string | null;
5257
5731
  id?: string;
5258
5732
  last_error?: string | null;
5733
+ locked_at?: string | null;
5734
+ locked_by?: string | null;
5735
+ next_attempt_at?: string;
5259
5736
  number_of_pieces?: number;
5260
5737
  sent_at?: string | null;
5261
5738
  status?: string;
5739
+ superseded_by?: string | null;
5262
5740
  trade_item_id: string;
5263
5741
  updated_at?: string;
5264
5742
  user_id: string;
@@ -5267,12 +5745,17 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
5267
5745
  attempts?: number;
5268
5746
  connection_id?: string;
5269
5747
  created_at?: string;
5748
+ desired_available?: boolean | null;
5270
5749
  gateway_attempt_id?: string | null;
5271
5750
  id?: string;
5272
5751
  last_error?: string | null;
5752
+ locked_at?: string | null;
5753
+ locked_by?: string | null;
5754
+ next_attempt_at?: string;
5273
5755
  number_of_pieces?: number;
5274
5756
  sent_at?: string | null;
5275
5757
  status?: string;
5758
+ superseded_by?: string | null;
5276
5759
  trade_item_id?: string;
5277
5760
  updated_at?: string;
5278
5761
  user_id?: string;
@@ -8632,6 +9115,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8632
9115
  };
8633
9116
  logistics_tasks: {
8634
9117
  Row: {
9118
+ attempt_log: import("../integrations/supabase/types").Json;
9119
+ attempts: number;
8635
9120
  buffer_ref: string | null;
8636
9121
  claimed_at: string | null;
8637
9122
  claimed_by: string | null;
@@ -8641,6 +9126,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8641
9126
  due_at: string | null;
8642
9127
  error: string | null;
8643
9128
  id: string;
9129
+ last_error: string | null;
9130
+ next_attempt_at: string | null;
8644
9131
  order_ref: string;
8645
9132
  owner_module: string;
8646
9133
  payload: import("../integrations/supabase/types").Json;
@@ -8661,6 +9148,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8661
9148
  user_id: string;
8662
9149
  };
8663
9150
  Insert: {
9151
+ attempt_log?: import("../integrations/supabase/types").Json;
9152
+ attempts?: number;
8664
9153
  buffer_ref?: string | null;
8665
9154
  claimed_at?: string | null;
8666
9155
  claimed_by?: string | null;
@@ -8670,6 +9159,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8670
9159
  due_at?: string | null;
8671
9160
  error?: string | null;
8672
9161
  id?: string;
9162
+ last_error?: string | null;
9163
+ next_attempt_at?: string | null;
8673
9164
  order_ref: string;
8674
9165
  owner_module: string;
8675
9166
  payload?: import("../integrations/supabase/types").Json;
@@ -8690,6 +9181,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8690
9181
  user_id?: string;
8691
9182
  };
8692
9183
  Update: {
9184
+ attempt_log?: import("../integrations/supabase/types").Json;
9185
+ attempts?: number;
8693
9186
  buffer_ref?: string | null;
8694
9187
  claimed_at?: string | null;
8695
9188
  claimed_by?: string | null;
@@ -8699,6 +9192,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
8699
9192
  due_at?: string | null;
8700
9193
  error?: string | null;
8701
9194
  id?: string;
9195
+ last_error?: string | null;
9196
+ next_attempt_at?: string | null;
8702
9197
  order_ref?: string;
8703
9198
  owner_module?: string;
8704
9199
  payload?: import("../integrations/supabase/types").Json;
@@ -10048,6 +10543,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10048
10543
  };
10049
10544
  offer_settings: {
10050
10545
  Row: {
10546
+ brand_name: string | null;
10051
10547
  button_color: string;
10052
10548
  created_at: string;
10053
10549
  default_countries: string[];
@@ -10069,6 +10565,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10069
10565
  updated_at: string;
10070
10566
  };
10071
10567
  Insert: {
10568
+ brand_name?: string | null;
10072
10569
  button_color?: string;
10073
10570
  created_at?: string;
10074
10571
  default_countries?: string[];
@@ -10090,6 +10587,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10090
10587
  updated_at?: string;
10091
10588
  };
10092
10589
  Update: {
10590
+ brand_name?: string | null;
10093
10591
  button_color?: string;
10094
10592
  created_at?: string;
10095
10593
  default_countries?: string[];
@@ -17700,6 +18198,85 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
17700
18198
  };
17701
18199
  Returns: import("../integrations/supabase/types").Json;
17702
18200
  };
18201
+ claim_floriday_stock_queue: {
18202
+ Args: {
18203
+ p_limit?: number;
18204
+ p_worker?: string;
18205
+ };
18206
+ Returns: {
18207
+ attempts: number;
18208
+ connection_id: string;
18209
+ created_at: string;
18210
+ desired_available: boolean | null;
18211
+ gateway_attempt_id: string | null;
18212
+ id: string;
18213
+ last_error: string | null;
18214
+ locked_at: string | null;
18215
+ locked_by: string | null;
18216
+ next_attempt_at: string;
18217
+ number_of_pieces: number;
18218
+ sent_at: string | null;
18219
+ status: string;
18220
+ superseded_by: string | null;
18221
+ trade_item_id: string;
18222
+ updated_at: string;
18223
+ user_id: string;
18224
+ }[];
18225
+ SetofOptions: {
18226
+ from: "*";
18227
+ to: "floriday_continuous_stock_queue";
18228
+ isOneToOne: false;
18229
+ isSetofReturn: true;
18230
+ };
18231
+ };
18232
+ claim_logistics_tasks: {
18233
+ Args: {
18234
+ _limit?: number;
18235
+ _owner_module: string;
18236
+ _stale_minutes?: number;
18237
+ _task_type: string;
18238
+ _worker: string;
18239
+ };
18240
+ Returns: {
18241
+ attempt_log: import("../integrations/supabase/types").Json;
18242
+ attempts: number;
18243
+ buffer_ref: string | null;
18244
+ claimed_at: string | null;
18245
+ claimed_by: string | null;
18246
+ completed_at: string | null;
18247
+ created_at: string;
18248
+ depends_on: string[];
18249
+ due_at: string | null;
18250
+ error: string | null;
18251
+ id: string;
18252
+ last_error: string | null;
18253
+ next_attempt_at: string | null;
18254
+ order_ref: string;
18255
+ owner_module: string;
18256
+ payload: import("../integrations/supabase/types").Json;
18257
+ plan_run_id: string | null;
18258
+ planned_end: string | null;
18259
+ planned_start: string | null;
18260
+ priority: number;
18261
+ result: import("../integrations/supabase/types").Json | null;
18262
+ rule_config_id: string | null;
18263
+ rule_version: number | null;
18264
+ sequence: number;
18265
+ shadow: boolean;
18266
+ started_at: string | null;
18267
+ status: string;
18268
+ strategy_id: string | null;
18269
+ task_type: string;
18270
+ updated_at: string;
18271
+ user_id: string;
18272
+ }[];
18273
+ SetofOptions: {
18274
+ from: "*";
18275
+ to: "logistics_tasks";
18276
+ isOneToOne: false;
18277
+ isSetofReturn: true;
18278
+ };
18279
+ };
17703
18280
  claim_print_jobs: {
17704
18281
  Args: {
17705
18282
  _agent_id: string;
@@ -17764,10 +18341,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
17764
18341
  isSetofReturn: true;
17765
18342
  };
17766
18343
  };
18344
+ cleanup_floriday_stock_queue: {
18345
+ Args: never;
18346
+ Returns: undefined;
18347
+ };
17767
18348
  cleanup_old_bookings: {
17768
18349
  Args: never;
17769
18350
  Returns: undefined;
17770
18351
  };
18352
+ complete_floriday_stock_queue: {
18353
+ Args: {
18354
+ p_attempt_id?: string;
18355
+ p_error?: string;
18356
+ p_id: string;
18357
+ p_ok: boolean;
18358
+ p_permanent?: boolean;
18359
+ };
18360
+ Returns: undefined;
18361
+ };
17771
18362
  consume_bom_for_production: {
17772
18363
  Args: {
17773
18364
  p_connection_id: string;
@@ -17940,6 +18531,21 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
17940
18531
  Args: never;
17941
18532
  Returns: string;
17942
18533
  };
18534
+ exact_auth_consume_calls: {
18535
+ Args: {
18536
+ _account_key: string;
18537
+ _calls?: number;
18538
+ _day_limit?: number;
18539
+ _division_code: number;
18540
+ _environment: string;
18541
+ _minute_limit?: number;
18542
+ };
18543
+ Returns: import("../integrations/supabase/types").Json;
18544
+ };
18545
+ exact_auth_prune_sync_log: {
18546
+ Args: never;
18547
+ Returns: undefined;
18548
+ };
17943
18549
  exact_decrypt: {
17944
18550
  Args: {
17945
18551
  cipher: string;
@@ -18149,6 +18755,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18149
18755
  };
18150
18756
  Returns: number;
18151
18757
  };
18758
+ get_offer_branding: {
18759
+ Args: never;
18760
+ Returns: import("../integrations/supabase/types").Json;
18761
+ };
18152
18762
  get_offer_by_link_code: {
18153
18763
  Args: {
18154
18764
  p_code: string;
@@ -18440,6 +19050,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18440
19050
  p_worker?: string;
18441
19051
  };
18442
19052
  Returns: {
19053
+ attempt_log: import("../integrations/supabase/types").Json;
19054
+ attempts: number;
18443
19055
  buffer_ref: string | null;
18444
19056
  claimed_at: string | null;
18445
19057
  claimed_by: string | null;
@@ -18449,6 +19061,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18449
19061
  due_at: string | null;
18450
19062
  error: string | null;
18451
19063
  id: string;
19064
+ last_error: string | null;
19065
+ next_attempt_at: string | null;
18452
19066
  order_ref: string;
18453
19067
  owner_module: string;
18454
19068
  payload: import("../integrations/supabase/types").Json;
@@ -18481,6 +19095,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18481
19095
  p_worker?: string;
18482
19096
  };
18483
19097
  Returns: {
19098
+ attempt_log: import("../integrations/supabase/types").Json;
19099
+ attempts: number;
18484
19100
  buffer_ref: string | null;
18485
19101
  claimed_at: string | null;
18486
19102
  claimed_by: string | null;
@@ -18490,6 +19106,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18490
19106
  due_at: string | null;
18491
19107
  error: string | null;
18492
19108
  id: string;
19109
+ last_error: string | null;
19110
+ next_attempt_at: string | null;
18493
19111
  order_ref: string;
18494
19112
  owner_module: string;
18495
19113
  payload: import("../integrations/supabase/types").Json;
@@ -18522,6 +19140,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18522
19140
  p_task_id: string;
18523
19141
  };
18524
19142
  Returns: {
19143
+ attempt_log: import("../integrations/supabase/types").Json;
19144
+ attempts: number;
18525
19145
  buffer_ref: string | null;
18526
19146
  claimed_at: string | null;
18527
19147
  claimed_by: string | null;
@@ -18531,6 +19151,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18531
19151
  due_at: string | null;
18532
19152
  error: string | null;
18533
19153
  id: string;
19154
+ last_error: string | null;
19155
+ next_attempt_at: string | null;
18534
19156
  order_ref: string;
18535
19157
  owner_module: string;
18536
19158
  payload: import("../integrations/supabase/types").Json;
@@ -18612,6 +19234,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18612
19234
  p_task_id: string;
18613
19235
  };
18614
19236
  Returns: {
19237
+ attempt_log: import("../integrations/supabase/types").Json;
19238
+ attempts: number;
18615
19239
  buffer_ref: string | null;
18616
19240
  claimed_at: string | null;
18617
19241
  claimed_by: string | null;
@@ -18621,6 +19245,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18621
19245
  due_at: string | null;
18622
19246
  error: string | null;
18623
19247
  id: string;
19248
+ last_error: string | null;
19249
+ next_attempt_at: string | null;
18624
19250
  order_ref: string;
18625
19251
  owner_module: string;
18626
19252
  payload: import("../integrations/supabase/types").Json;
@@ -19374,6 +20000,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19374
20000
  Args: never;
19375
20001
  Returns: undefined;
19376
20002
  };
20003
+ run_logistics_tasks_dispatch: {
20004
+ Args: never;
20005
+ Returns: undefined;
20006
+ };
19377
20007
  run_twinfield_queue_tick: {
19378
20008
  Args: never;
19379
20009
  Returns: undefined;
@@ -19614,6 +20244,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19614
20244
  };
19615
20245
  Returns: number;
19616
20246
  };
20247
+ schedule_floriday_stock_queue_process: {
20248
+ Args: {
20249
+ p_apikey: string;
20250
+ p_url: string;
20251
+ };
20252
+ Returns: number;
20253
+ };
19617
20254
  schedule_floriday_token_refresh: {
19618
20255
  Args: {
19619
20256
  p_apikey: string;
@@ -23369,6 +24006,474 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
23369
24006
  referencedColumns: ["id"];
23370
24007
  }];
23371
24008
  };
24009
+ exact_auth_call_budget: {
24010
+ Row: {
24011
+ account_key: string;
24012
+ day_count: number;
24013
+ day_date: string;
24014
+ division_code: number;
24015
+ environment: string;
24016
+ minute_count: number;
24017
+ minute_window: string;
24018
+ updated_at: string;
24019
+ };
24020
+ Insert: {
24021
+ account_key?: string;
24022
+ day_count?: number;
24023
+ day_date?: string;
24024
+ division_code?: number;
24025
+ environment: string;
24026
+ minute_count?: number;
24027
+ minute_window?: string;
24028
+ updated_at?: string;
24029
+ };
24030
+ Update: {
24031
+ account_key?: string;
24032
+ day_count?: number;
24033
+ day_date?: string;
24034
+ division_code?: number;
24035
+ environment?: string;
24036
+ minute_count?: number;
24037
+ minute_window?: string;
24038
+ updated_at?: string;
24039
+ };
24040
+ Relationships: [];
24041
+ };
24042
+ exact_auth_customers: {
24043
+ Row: {
24044
+ account_key: string;
24045
+ address_line1: string | null;
24046
+ chamber_of_commerce: string | null;
24047
+ city: string | null;
24048
+ code: string | null;
24049
+ country: string | null;
24050
+ created_at: string;
24051
+ currency: string | null;
24052
+ division_code: number | null;
24053
+ email: string | null;
24054
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24055
+ exact_id: string;
24056
+ exact_modified: string | null;
24057
+ exact_timestamp: number | null;
24058
+ id: string;
24059
+ is_active: boolean;
24060
+ name: string | null;
24061
+ phone: string | null;
24062
+ postcode: string | null;
24063
+ raw: import("../integrations/supabase/types").Json | null;
24064
+ status: string | null;
24065
+ updated_at: string;
24066
+ vat_number: string | null;
24067
+ website: string | null;
24068
+ };
24069
+ Insert: {
24070
+ account_key?: string;
24071
+ address_line1?: string | null;
24072
+ chamber_of_commerce?: string | null;
24073
+ city?: string | null;
24074
+ code?: string | null;
24075
+ country?: string | null;
24076
+ created_at?: string;
24077
+ currency?: string | null;
24078
+ division_code?: number | null;
24079
+ email?: string | null;
24080
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24081
+ exact_id: string;
24082
+ exact_modified?: string | null;
24083
+ exact_timestamp?: number | null;
24084
+ id?: string;
24085
+ is_active?: boolean;
24086
+ name?: string | null;
24087
+ phone?: string | null;
24088
+ postcode?: string | null;
24089
+ raw?: import("../integrations/supabase/types").Json | null;
24090
+ status?: string | null;
24091
+ updated_at?: string;
24092
+ vat_number?: string | null;
24093
+ website?: string | null;
24094
+ };
24095
+ Update: {
24096
+ account_key?: string;
24097
+ address_line1?: string | null;
24098
+ chamber_of_commerce?: string | null;
24099
+ city?: string | null;
24100
+ code?: string | null;
24101
+ country?: string | null;
24102
+ created_at?: string;
24103
+ currency?: string | null;
24104
+ division_code?: number | null;
24105
+ email?: string | null;
24106
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24107
+ exact_id?: string;
24108
+ exact_modified?: string | null;
24109
+ exact_timestamp?: number | null;
24110
+ id?: string;
24111
+ is_active?: boolean;
24112
+ name?: string | null;
24113
+ phone?: string | null;
24114
+ postcode?: string | null;
24115
+ raw?: import("../integrations/supabase/types").Json | null;
24116
+ status?: string | null;
24117
+ updated_at?: string;
24118
+ vat_number?: string | null;
24119
+ website?: string | null;
24120
+ };
24121
+ Relationships: [];
24122
+ };
24123
+ exact_auth_divisions: {
24124
+ Row: {
24125
+ account_key: string;
24126
+ company_name: string | null;
24127
+ created_at: string;
24128
+ division_code: number | null;
24129
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24130
+ id: string;
24131
+ last_synced_at: string | null;
24132
+ updated_at: string;
24133
+ };
24134
+ Insert: {
24135
+ account_key?: string;
24136
+ company_name?: string | null;
24137
+ created_at?: string;
24138
+ division_code?: number | null;
24139
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24140
+ id?: string;
24141
+ last_synced_at?: string | null;
24142
+ updated_at?: string;
24143
+ };
24144
+ Update: {
24145
+ account_key?: string;
24146
+ company_name?: string | null;
24147
+ created_at?: string;
24148
+ division_code?: number | null;
24149
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24150
+ id?: string;
24151
+ last_synced_at?: string | null;
24152
+ updated_at?: string;
24153
+ };
24154
+ Relationships: [];
24155
+ };
24156
+ exact_auth_invoice_lines: {
24157
+ Row: {
24158
+ account_key: string;
24159
+ amount_excl: number | null;
24160
+ created_at: string;
24161
+ description: string | null;
24162
+ discount: number | null;
24163
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24164
+ exact_id: string;
24165
+ exact_timestamp: number | null;
24166
+ id: string;
24167
+ invoice_exact_id: string;
24168
+ item_code: string | null;
24169
+ item_exact_id: string | null;
24170
+ line_number: number | null;
24171
+ quantity: number | null;
24172
+ raw: import("../integrations/supabase/types").Json | null;
24173
+ unit_price: number | null;
24174
+ updated_at: string;
24175
+ vat_amount: number | null;
24176
+ vat_code: string | null;
24177
+ };
24178
+ Insert: {
24179
+ account_key?: string;
24180
+ amount_excl?: number | null;
24181
+ created_at?: string;
24182
+ description?: string | null;
24183
+ discount?: number | null;
24184
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24185
+ exact_id: string;
24186
+ exact_timestamp?: number | null;
24187
+ id?: string;
24188
+ invoice_exact_id: string;
24189
+ item_code?: string | null;
24190
+ item_exact_id?: string | null;
24191
+ line_number?: number | null;
24192
+ quantity?: number | null;
24193
+ raw?: import("../integrations/supabase/types").Json | null;
24194
+ unit_price?: number | null;
24195
+ updated_at?: string;
24196
+ vat_amount?: number | null;
24197
+ vat_code?: string | null;
24198
+ };
24199
+ Update: {
24200
+ account_key?: string;
24201
+ amount_excl?: number | null;
24202
+ created_at?: string;
24203
+ description?: string | null;
24204
+ discount?: number | null;
24205
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24206
+ exact_id?: string;
24207
+ exact_timestamp?: number | null;
24208
+ id?: string;
24209
+ invoice_exact_id?: string;
24210
+ item_code?: string | null;
24211
+ item_exact_id?: string | null;
24212
+ line_number?: number | null;
24213
+ quantity?: number | null;
24214
+ raw?: import("../integrations/supabase/types").Json | null;
24215
+ unit_price?: number | null;
24216
+ updated_at?: string;
24217
+ vat_amount?: number | null;
24218
+ vat_code?: string | null;
24219
+ };
24220
+ Relationships: [];
24221
+ };
24222
+ exact_auth_invoices: {
24223
+ Row: {
24224
+ account_key: string;
24225
+ amount_excl: number | null;
24226
+ amount_incl: number | null;
24227
+ amount_open: number | null;
24228
+ created_at: string;
24229
+ currency: string | null;
24230
+ customer_code: string | null;
24231
+ customer_exact_id: string | null;
24232
+ customer_name: string | null;
24233
+ description: string | null;
24234
+ division_code: number | null;
24235
+ due_date: string | null;
24236
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24237
+ exact_id: string;
24238
+ exact_modified: string | null;
24239
+ exact_timestamp: number | null;
24240
+ id: string;
24241
+ invoice_date: string | null;
24242
+ invoice_number: string | null;
24243
+ order_number: string | null;
24244
+ paid_at: string | null;
24245
+ payment_status: string;
24246
+ raw: import("../integrations/supabase/types").Json | null;
24247
+ receivable_synced_at: string | null;
24248
+ status_code: number | null;
24249
+ updated_at: string;
24250
+ };
24251
+ Insert: {
24252
+ account_key?: string;
24253
+ amount_excl?: number | null;
24254
+ amount_incl?: number | null;
24255
+ amount_open?: number | null;
24256
+ created_at?: string;
24257
+ currency?: string | null;
24258
+ customer_code?: string | null;
24259
+ customer_exact_id?: string | null;
24260
+ customer_name?: string | null;
24261
+ description?: string | null;
24262
+ division_code?: number | null;
24263
+ due_date?: string | null;
24264
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24265
+ exact_id: string;
24266
+ exact_modified?: string | null;
24267
+ exact_timestamp?: number | null;
24268
+ id?: string;
24269
+ invoice_date?: string | null;
24270
+ invoice_number?: string | null;
24271
+ order_number?: string | null;
24272
+ paid_at?: string | null;
24273
+ payment_status?: string;
24274
+ raw?: import("../integrations/supabase/types").Json | null;
24275
+ receivable_synced_at?: string | null;
24276
+ status_code?: number | null;
24277
+ updated_at?: string;
24278
+ };
24279
+ Update: {
24280
+ account_key?: string;
24281
+ amount_excl?: number | null;
24282
+ amount_incl?: number | null;
24283
+ amount_open?: number | null;
24284
+ created_at?: string;
24285
+ currency?: string | null;
24286
+ customer_code?: string | null;
24287
+ customer_exact_id?: string | null;
24288
+ customer_name?: string | null;
24289
+ description?: string | null;
24290
+ division_code?: number | null;
24291
+ due_date?: string | null;
24292
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24293
+ exact_id?: string;
24294
+ exact_modified?: string | null;
24295
+ exact_timestamp?: number | null;
24296
+ id?: string;
24297
+ invoice_date?: string | null;
24298
+ invoice_number?: string | null;
24299
+ order_number?: string | null;
24300
+ paid_at?: string | null;
24301
+ payment_status?: string;
24302
+ raw?: import("../integrations/supabase/types").Json | null;
24303
+ receivable_synced_at?: string | null;
24304
+ status_code?: number | null;
24305
+ updated_at?: string;
24306
+ };
24307
+ Relationships: [];
24308
+ };
24309
+ exact_auth_items: {
24310
+ Row: {
24311
+ account_key: string;
24312
+ barcode: string | null;
24313
+ code: string | null;
24314
+ cost_price: number | null;
24315
+ created_at: string;
24316
+ description: string | null;
24317
+ division_code: number | null;
24318
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24319
+ exact_id: string;
24320
+ exact_modified: string | null;
24321
+ exact_timestamp: number | null;
24322
+ gl_account_code: string | null;
24323
+ id: string;
24324
+ is_active: boolean;
24325
+ is_sales_item: boolean | null;
24326
+ item_type: string | null;
24327
+ raw: import("../integrations/supabase/types").Json | null;
24328
+ sales_price: number | null;
24329
+ unit: string | null;
24330
+ updated_at: string;
24331
+ vat_code: string | null;
24332
+ };
24333
+ Insert: {
24334
+ account_key?: string;
24335
+ barcode?: string | null;
24336
+ code?: string | null;
24337
+ cost_price?: number | null;
24338
+ created_at?: string;
24339
+ description?: string | null;
24340
+ division_code?: number | null;
24341
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24342
+ exact_id: string;
24343
+ exact_modified?: string | null;
24344
+ exact_timestamp?: number | null;
24345
+ gl_account_code?: string | null;
24346
+ id?: string;
24347
+ is_active?: boolean;
24348
+ is_sales_item?: boolean | null;
24349
+ item_type?: string | null;
24350
+ raw?: import("../integrations/supabase/types").Json | null;
24351
+ sales_price?: number | null;
24352
+ unit?: string | null;
24353
+ updated_at?: string;
24354
+ vat_code?: string | null;
24355
+ };
24356
+ Update: {
24357
+ account_key?: string;
24358
+ barcode?: string | null;
24359
+ code?: string | null;
24360
+ cost_price?: number | null;
24361
+ created_at?: string;
24362
+ description?: string | null;
24363
+ division_code?: number | null;
24364
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24365
+ exact_id?: string;
24366
+ exact_modified?: string | null;
24367
+ exact_timestamp?: number | null;
24368
+ gl_account_code?: string | null;
24369
+ id?: string;
24370
+ is_active?: boolean;
24371
+ is_sales_item?: boolean | null;
24372
+ item_type?: string | null;
24373
+ raw?: import("../integrations/supabase/types").Json | null;
24374
+ sales_price?: number | null;
24375
+ unit?: string | null;
24376
+ updated_at?: string;
24377
+ vat_code?: string | null;
24378
+ };
24379
+ Relationships: [];
24380
+ };
24381
+ exact_auth_sync_log: {
24382
+ Row: {
24383
+ account_key: string;
24384
+ calls_used: number;
24385
+ created_at: string;
24386
+ domain: string;
24387
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24388
+ error: string | null;
24389
+ finished_at: string | null;
24390
+ id: string;
24391
+ ok: boolean;
24392
+ records: number;
24393
+ started_at: string;
24394
+ };
24395
+ Insert: {
24396
+ account_key?: string;
24397
+ calls_used?: number;
24398
+ created_at?: string;
24399
+ domain: string;
24400
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24401
+ error?: string | null;
24402
+ finished_at?: string | null;
24403
+ id?: string;
24404
+ ok?: boolean;
24405
+ records?: number;
24406
+ started_at?: string;
24407
+ };
24408
+ Update: {
24409
+ account_key?: string;
24410
+ calls_used?: number;
24411
+ created_at?: string;
24412
+ domain?: string;
24413
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24414
+ error?: string | null;
24415
+ finished_at?: string | null;
24416
+ id?: string;
24417
+ ok?: boolean;
24418
+ records?: number;
24419
+ started_at?: string;
24420
+ };
24421
+ Relationships: [];
24422
+ };
24423
+ exact_auth_sync_state: {
24424
+ Row: {
24425
+ account_key: string;
24426
+ created_at: string;
24427
+ cursor_timestamp: number;
24428
+ division_code: number | null;
24429
+ domain: string;
24430
+ duration_ms: number | null;
24431
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24432
+ initial_sync_done: boolean;
24433
+ last_error: string | null;
24434
+ last_run_at: string | null;
24435
+ last_success_at: string | null;
24436
+ locked_at: string | null;
24437
+ needs_initial_sync: boolean;
24438
+ record_count: number;
24439
+ updated_at: string;
24440
+ };
24441
+ Insert: {
24442
+ account_key?: string;
24443
+ created_at?: string;
24444
+ cursor_timestamp?: number;
24445
+ division_code?: number | null;
24446
+ domain: string;
24447
+ duration_ms?: number | null;
24448
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24449
+ initial_sync_done?: boolean;
24450
+ last_error?: string | null;
24451
+ last_run_at?: string | null;
24452
+ last_success_at?: string | null;
24453
+ locked_at?: string | null;
24454
+ needs_initial_sync?: boolean;
24455
+ record_count?: number;
24456
+ updated_at?: string;
24457
+ };
24458
+ Update: {
24459
+ account_key?: string;
24460
+ created_at?: string;
24461
+ cursor_timestamp?: number;
24462
+ division_code?: number | null;
24463
+ domain?: string;
24464
+ duration_ms?: number | null;
24465
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24466
+ initial_sync_done?: boolean;
24467
+ last_error?: string | null;
24468
+ last_run_at?: string | null;
24469
+ last_success_at?: string | null;
24470
+ locked_at?: string | null;
24471
+ needs_initial_sync?: boolean;
24472
+ record_count?: number;
24473
+ updated_at?: string;
24474
+ };
24475
+ Relationships: [];
24476
+ };
23372
24477
  exact_bulk_operation_items: {
23373
24478
  Row: {
23374
24479
  attempts: number;
@@ -25060,12 +26165,17 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25060
26165
  attempts: number;
25061
26166
  connection_id: string;
25062
26167
  created_at: string;
26168
+ desired_available: boolean | null;
25063
26169
  gateway_attempt_id: string | null;
25064
26170
  id: string;
25065
26171
  last_error: string | null;
26172
+ locked_at: string | null;
26173
+ locked_by: string | null;
26174
+ next_attempt_at: string;
25066
26175
  number_of_pieces: number;
25067
26176
  sent_at: string | null;
25068
26177
  status: string;
26178
+ superseded_by: string | null;
25069
26179
  trade_item_id: string;
25070
26180
  updated_at: string;
25071
26181
  user_id: string;
@@ -25074,12 +26184,17 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25074
26184
  attempts?: number;
25075
26185
  connection_id: string;
25076
26186
  created_at?: string;
26187
+ desired_available?: boolean | null;
25077
26188
  gateway_attempt_id?: string | null;
25078
26189
  id?: string;
25079
26190
  last_error?: string | null;
26191
+ locked_at?: string | null;
26192
+ locked_by?: string | null;
26193
+ next_attempt_at?: string;
25080
26194
  number_of_pieces?: number;
25081
26195
  sent_at?: string | null;
25082
26196
  status?: string;
26197
+ superseded_by?: string | null;
25083
26198
  trade_item_id: string;
25084
26199
  updated_at?: string;
25085
26200
  user_id: string;
@@ -25088,12 +26203,17 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25088
26203
  attempts?: number;
25089
26204
  connection_id?: string;
25090
26205
  created_at?: string;
26206
+ desired_available?: boolean | null;
25091
26207
  gateway_attempt_id?: string | null;
25092
26208
  id?: string;
25093
26209
  last_error?: string | null;
26210
+ locked_at?: string | null;
26211
+ locked_by?: string | null;
26212
+ next_attempt_at?: string;
25094
26213
  number_of_pieces?: number;
25095
26214
  sent_at?: string | null;
25096
26215
  status?: string;
26216
+ superseded_by?: string | null;
25097
26217
  trade_item_id?: string;
25098
26218
  updated_at?: string;
25099
26219
  user_id?: string;
@@ -28453,6 +29573,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28453
29573
  };
28454
29574
  logistics_tasks: {
28455
29575
  Row: {
29576
+ attempt_log: import("../integrations/supabase/types").Json;
29577
+ attempts: number;
28456
29578
  buffer_ref: string | null;
28457
29579
  claimed_at: string | null;
28458
29580
  claimed_by: string | null;
@@ -28462,6 +29584,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28462
29584
  due_at: string | null;
28463
29585
  error: string | null;
28464
29586
  id: string;
29587
+ last_error: string | null;
29588
+ next_attempt_at: string | null;
28465
29589
  order_ref: string;
28466
29590
  owner_module: string;
28467
29591
  payload: import("../integrations/supabase/types").Json;
@@ -28482,6 +29606,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28482
29606
  user_id: string;
28483
29607
  };
28484
29608
  Insert: {
29609
+ attempt_log?: import("../integrations/supabase/types").Json;
29610
+ attempts?: number;
28485
29611
  buffer_ref?: string | null;
28486
29612
  claimed_at?: string | null;
28487
29613
  claimed_by?: string | null;
@@ -28491,6 +29617,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28491
29617
  due_at?: string | null;
28492
29618
  error?: string | null;
28493
29619
  id?: string;
29620
+ last_error?: string | null;
29621
+ next_attempt_at?: string | null;
28494
29622
  order_ref: string;
28495
29623
  owner_module: string;
28496
29624
  payload?: import("../integrations/supabase/types").Json;
@@ -28511,6 +29639,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28511
29639
  user_id?: string;
28512
29640
  };
28513
29641
  Update: {
29642
+ attempt_log?: import("../integrations/supabase/types").Json;
29643
+ attempts?: number;
28514
29644
  buffer_ref?: string | null;
28515
29645
  claimed_at?: string | null;
28516
29646
  claimed_by?: string | null;
@@ -28520,6 +29650,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28520
29650
  due_at?: string | null;
28521
29651
  error?: string | null;
28522
29652
  id?: string;
29653
+ last_error?: string | null;
29654
+ next_attempt_at?: string | null;
28523
29655
  order_ref?: string;
28524
29656
  owner_module?: string;
28525
29657
  payload?: import("../integrations/supabase/types").Json;
@@ -29869,6 +31001,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29869
31001
  };
29870
31002
  offer_settings: {
29871
31003
  Row: {
31004
+ brand_name: string | null;
29872
31005
  button_color: string;
29873
31006
  created_at: string;
29874
31007
  default_countries: string[];
@@ -29890,6 +31023,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29890
31023
  updated_at: string;
29891
31024
  };
29892
31025
  Insert: {
31026
+ brand_name?: string | null;
29893
31027
  button_color?: string;
29894
31028
  created_at?: string;
29895
31029
  default_countries?: string[];
@@ -29911,6 +31045,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29911
31045
  updated_at?: string;
29912
31046
  };
29913
31047
  Update: {
31048
+ brand_name?: string | null;
29914
31049
  button_color?: string;
29915
31050
  created_at?: string;
29916
31051
  default_countries?: string[];
@@ -37521,6 +38656,85 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
37521
38656
  };
37522
38657
  Returns: import("../integrations/supabase/types").Json;
37523
38658
  };
38659
+ claim_floriday_stock_queue: {
38660
+ Args: {
38661
+ p_limit?: number;
38662
+ p_worker?: string;
38663
+ };
38664
+ Returns: {
38665
+ attempts: number;
38666
+ connection_id: string;
38667
+ created_at: string;
38668
+ desired_available: boolean | null;
38669
+ gateway_attempt_id: string | null;
38670
+ id: string;
38671
+ last_error: string | null;
38672
+ locked_at: string | null;
38673
+ locked_by: string | null;
38674
+ next_attempt_at: string;
38675
+ number_of_pieces: number;
38676
+ sent_at: string | null;
38677
+ status: string;
38678
+ superseded_by: string | null;
38679
+ trade_item_id: string;
38680
+ updated_at: string;
38681
+ user_id: string;
38682
+ }[];
38683
+ SetofOptions: {
38684
+ from: "*";
38685
+ to: "floriday_continuous_stock_queue";
38686
+ isOneToOne: false;
38687
+ isSetofReturn: true;
38688
+ };
38689
+ };
38690
+ claim_logistics_tasks: {
38691
+ Args: {
38692
+ _limit?: number;
38693
+ _owner_module: string;
38694
+ _stale_minutes?: number;
38695
+ _task_type: string;
38696
+ _worker: string;
38697
+ };
38698
+ Returns: {
38699
+ attempt_log: import("../integrations/supabase/types").Json;
38700
+ attempts: number;
38701
+ buffer_ref: string | null;
38702
+ claimed_at: string | null;
38703
+ claimed_by: string | null;
38704
+ completed_at: string | null;
38705
+ created_at: string;
38706
+ depends_on: string[];
38707
+ due_at: string | null;
38708
+ error: string | null;
38709
+ id: string;
38710
+ last_error: string | null;
38711
+ next_attempt_at: string | null;
38712
+ order_ref: string;
38713
+ owner_module: string;
38714
+ payload: import("../integrations/supabase/types").Json;
38715
+ plan_run_id: string | null;
38716
+ planned_end: string | null;
38717
+ planned_start: string | null;
38718
+ priority: number;
38719
+ result: import("../integrations/supabase/types").Json | null;
38720
+ rule_config_id: string | null;
38721
+ rule_version: number | null;
38722
+ sequence: number;
38723
+ shadow: boolean;
38724
+ started_at: string | null;
38725
+ status: string;
38726
+ strategy_id: string | null;
38727
+ task_type: string;
38728
+ updated_at: string;
38729
+ user_id: string;
38730
+ }[];
38731
+ SetofOptions: {
38732
+ from: "*";
38733
+ to: "logistics_tasks";
38734
+ isOneToOne: false;
38735
+ isSetofReturn: true;
38736
+ };
38737
+ };
37524
38738
  claim_print_jobs: {
37525
38739
  Args: {
37526
38740
  _agent_id: string;
@@ -37585,10 +38799,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
37585
38799
  isSetofReturn: true;
37586
38800
  };
37587
38801
  };
38802
+ cleanup_floriday_stock_queue: {
38803
+ Args: never;
38804
+ Returns: undefined;
38805
+ };
37588
38806
  cleanup_old_bookings: {
37589
38807
  Args: never;
37590
38808
  Returns: undefined;
37591
38809
  };
38810
+ complete_floriday_stock_queue: {
38811
+ Args: {
38812
+ p_attempt_id?: string;
38813
+ p_error?: string;
38814
+ p_id: string;
38815
+ p_ok: boolean;
38816
+ p_permanent?: boolean;
38817
+ };
38818
+ Returns: undefined;
38819
+ };
37592
38820
  consume_bom_for_production: {
37593
38821
  Args: {
37594
38822
  p_connection_id: string;
@@ -37761,6 +38989,21 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
37761
38989
  Args: never;
37762
38990
  Returns: string;
37763
38991
  };
38992
+ exact_auth_consume_calls: {
38993
+ Args: {
38994
+ _account_key: string;
38995
+ _calls?: number;
38996
+ _day_limit?: number;
38997
+ _division_code: number;
38998
+ _environment: string;
38999
+ _minute_limit?: number;
39000
+ };
39001
+ Returns: import("../integrations/supabase/types").Json;
39002
+ };
39003
+ exact_auth_prune_sync_log: {
39004
+ Args: never;
39005
+ Returns: undefined;
39006
+ };
37764
39007
  exact_decrypt: {
37765
39008
  Args: {
37766
39009
  cipher: string;
@@ -37970,6 +39213,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
37970
39213
  };
37971
39214
  Returns: number;
37972
39215
  };
39216
+ get_offer_branding: {
39217
+ Args: never;
39218
+ Returns: import("../integrations/supabase/types").Json;
39219
+ };
37973
39220
  get_offer_by_link_code: {
37974
39221
  Args: {
37975
39222
  p_code: string;
@@ -38261,6 +39508,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38261
39508
  p_worker?: string;
38262
39509
  };
38263
39510
  Returns: {
39511
+ attempt_log: import("../integrations/supabase/types").Json;
39512
+ attempts: number;
38264
39513
  buffer_ref: string | null;
38265
39514
  claimed_at: string | null;
38266
39515
  claimed_by: string | null;
@@ -38270,6 +39519,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38270
39519
  due_at: string | null;
38271
39520
  error: string | null;
38272
39521
  id: string;
39522
+ last_error: string | null;
39523
+ next_attempt_at: string | null;
38273
39524
  order_ref: string;
38274
39525
  owner_module: string;
38275
39526
  payload: import("../integrations/supabase/types").Json;
@@ -38302,6 +39553,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38302
39553
  p_worker?: string;
38303
39554
  };
38304
39555
  Returns: {
39556
+ attempt_log: import("../integrations/supabase/types").Json;
39557
+ attempts: number;
38305
39558
  buffer_ref: string | null;
38306
39559
  claimed_at: string | null;
38307
39560
  claimed_by: string | null;
@@ -38311,6 +39564,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38311
39564
  due_at: string | null;
38312
39565
  error: string | null;
38313
39566
  id: string;
39567
+ last_error: string | null;
39568
+ next_attempt_at: string | null;
38314
39569
  order_ref: string;
38315
39570
  owner_module: string;
38316
39571
  payload: import("../integrations/supabase/types").Json;
@@ -38343,6 +39598,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38343
39598
  p_task_id: string;
38344
39599
  };
38345
39600
  Returns: {
39601
+ attempt_log: import("../integrations/supabase/types").Json;
39602
+ attempts: number;
38346
39603
  buffer_ref: string | null;
38347
39604
  claimed_at: string | null;
38348
39605
  claimed_by: string | null;
@@ -38352,6 +39609,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38352
39609
  due_at: string | null;
38353
39610
  error: string | null;
38354
39611
  id: string;
39612
+ last_error: string | null;
39613
+ next_attempt_at: string | null;
38355
39614
  order_ref: string;
38356
39615
  owner_module: string;
38357
39616
  payload: import("../integrations/supabase/types").Json;
@@ -38433,6 +39692,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38433
39692
  p_task_id: string;
38434
39693
  };
38435
39694
  Returns: {
39695
+ attempt_log: import("../integrations/supabase/types").Json;
39696
+ attempts: number;
38436
39697
  buffer_ref: string | null;
38437
39698
  claimed_at: string | null;
38438
39699
  claimed_by: string | null;
@@ -38442,6 +39703,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38442
39703
  due_at: string | null;
38443
39704
  error: string | null;
38444
39705
  id: string;
39706
+ last_error: string | null;
39707
+ next_attempt_at: string | null;
38445
39708
  order_ref: string;
38446
39709
  owner_module: string;
38447
39710
  payload: import("../integrations/supabase/types").Json;
@@ -39195,6 +40458,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
39195
40458
  Args: never;
39196
40459
  Returns: undefined;
39197
40460
  };
40461
+ run_logistics_tasks_dispatch: {
40462
+ Args: never;
40463
+ Returns: undefined;
40464
+ };
39198
40465
  run_twinfield_queue_tick: {
39199
40466
  Args: never;
39200
40467
  Returns: undefined;
@@ -39435,6 +40702,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
39435
40702
  };
39436
40703
  Returns: number;
39437
40704
  };
40705
+ schedule_floriday_stock_queue_process: {
40706
+ Args: {
40707
+ p_apikey: string;
40708
+ p_url: string;
40709
+ };
40710
+ Returns: number;
40711
+ };
39438
40712
  schedule_floriday_token_refresh: {
39439
40713
  Args: {
39440
40714
  p_apikey: string;
@@ -43184,6 +44458,474 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
43184
44458
  referencedColumns: ["id"];
43185
44459
  }];
43186
44460
  };
44461
+ exact_auth_call_budget: {
44462
+ Row: {
44463
+ account_key: string;
44464
+ day_count: number;
44465
+ day_date: string;
44466
+ division_code: number;
44467
+ environment: string;
44468
+ minute_count: number;
44469
+ minute_window: string;
44470
+ updated_at: string;
44471
+ };
44472
+ Insert: {
44473
+ account_key?: string;
44474
+ day_count?: number;
44475
+ day_date?: string;
44476
+ division_code?: number;
44477
+ environment: string;
44478
+ minute_count?: number;
44479
+ minute_window?: string;
44480
+ updated_at?: string;
44481
+ };
44482
+ Update: {
44483
+ account_key?: string;
44484
+ day_count?: number;
44485
+ day_date?: string;
44486
+ division_code?: number;
44487
+ environment?: string;
44488
+ minute_count?: number;
44489
+ minute_window?: string;
44490
+ updated_at?: string;
44491
+ };
44492
+ Relationships: [];
44493
+ };
44494
+ exact_auth_customers: {
44495
+ Row: {
44496
+ account_key: string;
44497
+ address_line1: string | null;
44498
+ chamber_of_commerce: string | null;
44499
+ city: string | null;
44500
+ code: string | null;
44501
+ country: string | null;
44502
+ created_at: string;
44503
+ currency: string | null;
44504
+ division_code: number | null;
44505
+ email: string | null;
44506
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44507
+ exact_id: string;
44508
+ exact_modified: string | null;
44509
+ exact_timestamp: number | null;
44510
+ id: string;
44511
+ is_active: boolean;
44512
+ name: string | null;
44513
+ phone: string | null;
44514
+ postcode: string | null;
44515
+ raw: import("../integrations/supabase/types").Json | null;
44516
+ status: string | null;
44517
+ updated_at: string;
44518
+ vat_number: string | null;
44519
+ website: string | null;
44520
+ };
44521
+ Insert: {
44522
+ account_key?: string;
44523
+ address_line1?: string | null;
44524
+ chamber_of_commerce?: string | null;
44525
+ city?: string | null;
44526
+ code?: string | null;
44527
+ country?: string | null;
44528
+ created_at?: string;
44529
+ currency?: string | null;
44530
+ division_code?: number | null;
44531
+ email?: string | null;
44532
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44533
+ exact_id: string;
44534
+ exact_modified?: string | null;
44535
+ exact_timestamp?: number | null;
44536
+ id?: string;
44537
+ is_active?: boolean;
44538
+ name?: string | null;
44539
+ phone?: string | null;
44540
+ postcode?: string | null;
44541
+ raw?: import("../integrations/supabase/types").Json | null;
44542
+ status?: string | null;
44543
+ updated_at?: string;
44544
+ vat_number?: string | null;
44545
+ website?: string | null;
44546
+ };
44547
+ Update: {
44548
+ account_key?: string;
44549
+ address_line1?: string | null;
44550
+ chamber_of_commerce?: string | null;
44551
+ city?: string | null;
44552
+ code?: string | null;
44553
+ country?: string | null;
44554
+ created_at?: string;
44555
+ currency?: string | null;
44556
+ division_code?: number | null;
44557
+ email?: string | null;
44558
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44559
+ exact_id?: string;
44560
+ exact_modified?: string | null;
44561
+ exact_timestamp?: number | null;
44562
+ id?: string;
44563
+ is_active?: boolean;
44564
+ name?: string | null;
44565
+ phone?: string | null;
44566
+ postcode?: string | null;
44567
+ raw?: import("../integrations/supabase/types").Json | null;
44568
+ status?: string | null;
44569
+ updated_at?: string;
44570
+ vat_number?: string | null;
44571
+ website?: string | null;
44572
+ };
44573
+ Relationships: [];
44574
+ };
44575
+ exact_auth_divisions: {
44576
+ Row: {
44577
+ account_key: string;
44578
+ company_name: string | null;
44579
+ created_at: string;
44580
+ division_code: number | null;
44581
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44582
+ id: string;
44583
+ last_synced_at: string | null;
44584
+ updated_at: string;
44585
+ };
44586
+ Insert: {
44587
+ account_key?: string;
44588
+ company_name?: string | null;
44589
+ created_at?: string;
44590
+ division_code?: number | null;
44591
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44592
+ id?: string;
44593
+ last_synced_at?: string | null;
44594
+ updated_at?: string;
44595
+ };
44596
+ Update: {
44597
+ account_key?: string;
44598
+ company_name?: string | null;
44599
+ created_at?: string;
44600
+ division_code?: number | null;
44601
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44602
+ id?: string;
44603
+ last_synced_at?: string | null;
44604
+ updated_at?: string;
44605
+ };
44606
+ Relationships: [];
44607
+ };
44608
+ exact_auth_invoice_lines: {
44609
+ Row: {
44610
+ account_key: string;
44611
+ amount_excl: number | null;
44612
+ created_at: string;
44613
+ description: string | null;
44614
+ discount: number | null;
44615
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44616
+ exact_id: string;
44617
+ exact_timestamp: number | null;
44618
+ id: string;
44619
+ invoice_exact_id: string;
44620
+ item_code: string | null;
44621
+ item_exact_id: string | null;
44622
+ line_number: number | null;
44623
+ quantity: number | null;
44624
+ raw: import("../integrations/supabase/types").Json | null;
44625
+ unit_price: number | null;
44626
+ updated_at: string;
44627
+ vat_amount: number | null;
44628
+ vat_code: string | null;
44629
+ };
44630
+ Insert: {
44631
+ account_key?: string;
44632
+ amount_excl?: number | null;
44633
+ created_at?: string;
44634
+ description?: string | null;
44635
+ discount?: number | null;
44636
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44637
+ exact_id: string;
44638
+ exact_timestamp?: number | null;
44639
+ id?: string;
44640
+ invoice_exact_id: string;
44641
+ item_code?: string | null;
44642
+ item_exact_id?: string | null;
44643
+ line_number?: number | null;
44644
+ quantity?: number | null;
44645
+ raw?: import("../integrations/supabase/types").Json | null;
44646
+ unit_price?: number | null;
44647
+ updated_at?: string;
44648
+ vat_amount?: number | null;
44649
+ vat_code?: string | null;
44650
+ };
44651
+ Update: {
44652
+ account_key?: string;
44653
+ amount_excl?: number | null;
44654
+ created_at?: string;
44655
+ description?: string | null;
44656
+ discount?: number | null;
44657
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44658
+ exact_id?: string;
44659
+ exact_timestamp?: number | null;
44660
+ id?: string;
44661
+ invoice_exact_id?: string;
44662
+ item_code?: string | null;
44663
+ item_exact_id?: string | null;
44664
+ line_number?: number | null;
44665
+ quantity?: number | null;
44666
+ raw?: import("../integrations/supabase/types").Json | null;
44667
+ unit_price?: number | null;
44668
+ updated_at?: string;
44669
+ vat_amount?: number | null;
44670
+ vat_code?: string | null;
44671
+ };
44672
+ Relationships: [];
44673
+ };
44674
+ exact_auth_invoices: {
44675
+ Row: {
44676
+ account_key: string;
44677
+ amount_excl: number | null;
44678
+ amount_incl: number | null;
44679
+ amount_open: number | null;
44680
+ created_at: string;
44681
+ currency: string | null;
44682
+ customer_code: string | null;
44683
+ customer_exact_id: string | null;
44684
+ customer_name: string | null;
44685
+ description: string | null;
44686
+ division_code: number | null;
44687
+ due_date: string | null;
44688
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44689
+ exact_id: string;
44690
+ exact_modified: string | null;
44691
+ exact_timestamp: number | null;
44692
+ id: string;
44693
+ invoice_date: string | null;
44694
+ invoice_number: string | null;
44695
+ order_number: string | null;
44696
+ paid_at: string | null;
44697
+ payment_status: string;
44698
+ raw: import("../integrations/supabase/types").Json | null;
44699
+ receivable_synced_at: string | null;
44700
+ status_code: number | null;
44701
+ updated_at: string;
44702
+ };
44703
+ Insert: {
44704
+ account_key?: string;
44705
+ amount_excl?: number | null;
44706
+ amount_incl?: number | null;
44707
+ amount_open?: number | null;
44708
+ created_at?: string;
44709
+ currency?: string | null;
44710
+ customer_code?: string | null;
44711
+ customer_exact_id?: string | null;
44712
+ customer_name?: string | null;
44713
+ description?: string | null;
44714
+ division_code?: number | null;
44715
+ due_date?: string | null;
44716
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44717
+ exact_id: string;
44718
+ exact_modified?: string | null;
44719
+ exact_timestamp?: number | null;
44720
+ id?: string;
44721
+ invoice_date?: string | null;
44722
+ invoice_number?: string | null;
44723
+ order_number?: string | null;
44724
+ paid_at?: string | null;
44725
+ payment_status?: string;
44726
+ raw?: import("../integrations/supabase/types").Json | null;
44727
+ receivable_synced_at?: string | null;
44728
+ status_code?: number | null;
44729
+ updated_at?: string;
44730
+ };
44731
+ Update: {
44732
+ account_key?: string;
44733
+ amount_excl?: number | null;
44734
+ amount_incl?: number | null;
44735
+ amount_open?: number | null;
44736
+ created_at?: string;
44737
+ currency?: string | null;
44738
+ customer_code?: string | null;
44739
+ customer_exact_id?: string | null;
44740
+ customer_name?: string | null;
44741
+ description?: string | null;
44742
+ division_code?: number | null;
44743
+ due_date?: string | null;
44744
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44745
+ exact_id?: string;
44746
+ exact_modified?: string | null;
44747
+ exact_timestamp?: number | null;
44748
+ id?: string;
44749
+ invoice_date?: string | null;
44750
+ invoice_number?: string | null;
44751
+ order_number?: string | null;
44752
+ paid_at?: string | null;
44753
+ payment_status?: string;
44754
+ raw?: import("../integrations/supabase/types").Json | null;
44755
+ receivable_synced_at?: string | null;
44756
+ status_code?: number | null;
44757
+ updated_at?: string;
44758
+ };
44759
+ Relationships: [];
44760
+ };
44761
+ exact_auth_items: {
44762
+ Row: {
44763
+ account_key: string;
44764
+ barcode: string | null;
44765
+ code: string | null;
44766
+ cost_price: number | null;
44767
+ created_at: string;
44768
+ description: string | null;
44769
+ division_code: number | null;
44770
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44771
+ exact_id: string;
44772
+ exact_modified: string | null;
44773
+ exact_timestamp: number | null;
44774
+ gl_account_code: string | null;
44775
+ id: string;
44776
+ is_active: boolean;
44777
+ is_sales_item: boolean | null;
44778
+ item_type: string | null;
44779
+ raw: import("../integrations/supabase/types").Json | null;
44780
+ sales_price: number | null;
44781
+ unit: string | null;
44782
+ updated_at: string;
44783
+ vat_code: string | null;
44784
+ };
44785
+ Insert: {
44786
+ account_key?: string;
44787
+ barcode?: string | null;
44788
+ code?: string | null;
44789
+ cost_price?: number | null;
44790
+ created_at?: string;
44791
+ description?: string | null;
44792
+ division_code?: number | null;
44793
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44794
+ exact_id: string;
44795
+ exact_modified?: string | null;
44796
+ exact_timestamp?: number | null;
44797
+ gl_account_code?: string | null;
44798
+ id?: string;
44799
+ is_active?: boolean;
44800
+ is_sales_item?: boolean | null;
44801
+ item_type?: string | null;
44802
+ raw?: import("../integrations/supabase/types").Json | null;
44803
+ sales_price?: number | null;
44804
+ unit?: string | null;
44805
+ updated_at?: string;
44806
+ vat_code?: string | null;
44807
+ };
44808
+ Update: {
44809
+ account_key?: string;
44810
+ barcode?: string | null;
44811
+ code?: string | null;
44812
+ cost_price?: number | null;
44813
+ created_at?: string;
44814
+ description?: string | null;
44815
+ division_code?: number | null;
44816
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44817
+ exact_id?: string;
44818
+ exact_modified?: string | null;
44819
+ exact_timestamp?: number | null;
44820
+ gl_account_code?: string | null;
44821
+ id?: string;
44822
+ is_active?: boolean;
44823
+ is_sales_item?: boolean | null;
44824
+ item_type?: string | null;
44825
+ raw?: import("../integrations/supabase/types").Json | null;
44826
+ sales_price?: number | null;
44827
+ unit?: string | null;
44828
+ updated_at?: string;
44829
+ vat_code?: string | null;
44830
+ };
44831
+ Relationships: [];
44832
+ };
44833
+ exact_auth_sync_log: {
44834
+ Row: {
44835
+ account_key: string;
44836
+ calls_used: number;
44837
+ created_at: string;
44838
+ domain: string;
44839
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44840
+ error: string | null;
44841
+ finished_at: string | null;
44842
+ id: string;
44843
+ ok: boolean;
44844
+ records: number;
44845
+ started_at: string;
44846
+ };
44847
+ Insert: {
44848
+ account_key?: string;
44849
+ calls_used?: number;
44850
+ created_at?: string;
44851
+ domain: string;
44852
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44853
+ error?: string | null;
44854
+ finished_at?: string | null;
44855
+ id?: string;
44856
+ ok?: boolean;
44857
+ records?: number;
44858
+ started_at?: string;
44859
+ };
44860
+ Update: {
44861
+ account_key?: string;
44862
+ calls_used?: number;
44863
+ created_at?: string;
44864
+ domain?: string;
44865
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44866
+ error?: string | null;
44867
+ finished_at?: string | null;
44868
+ id?: string;
44869
+ ok?: boolean;
44870
+ records?: number;
44871
+ started_at?: string;
44872
+ };
44873
+ Relationships: [];
44874
+ };
44875
+ exact_auth_sync_state: {
44876
+ Row: {
44877
+ account_key: string;
44878
+ created_at: string;
44879
+ cursor_timestamp: number;
44880
+ division_code: number | null;
44881
+ domain: string;
44882
+ duration_ms: number | null;
44883
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44884
+ initial_sync_done: boolean;
44885
+ last_error: string | null;
44886
+ last_run_at: string | null;
44887
+ last_success_at: string | null;
44888
+ locked_at: string | null;
44889
+ needs_initial_sync: boolean;
44890
+ record_count: number;
44891
+ updated_at: string;
44892
+ };
44893
+ Insert: {
44894
+ account_key?: string;
44895
+ created_at?: string;
44896
+ cursor_timestamp?: number;
44897
+ division_code?: number | null;
44898
+ domain: string;
44899
+ duration_ms?: number | null;
44900
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44901
+ initial_sync_done?: boolean;
44902
+ last_error?: string | null;
44903
+ last_run_at?: string | null;
44904
+ last_success_at?: string | null;
44905
+ locked_at?: string | null;
44906
+ needs_initial_sync?: boolean;
44907
+ record_count?: number;
44908
+ updated_at?: string;
44909
+ };
44910
+ Update: {
44911
+ account_key?: string;
44912
+ created_at?: string;
44913
+ cursor_timestamp?: number;
44914
+ division_code?: number | null;
44915
+ domain?: string;
44916
+ duration_ms?: number | null;
44917
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44918
+ initial_sync_done?: boolean;
44919
+ last_error?: string | null;
44920
+ last_run_at?: string | null;
44921
+ last_success_at?: string | null;
44922
+ locked_at?: string | null;
44923
+ needs_initial_sync?: boolean;
44924
+ record_count?: number;
44925
+ updated_at?: string;
44926
+ };
44927
+ Relationships: [];
44928
+ };
43187
44929
  exact_bulk_operation_items: {
43188
44930
  Row: {
43189
44931
  attempts: number;
@@ -44875,12 +46617,17 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
44875
46617
  attempts: number;
44876
46618
  connection_id: string;
44877
46619
  created_at: string;
46620
+ desired_available: boolean | null;
44878
46621
  gateway_attempt_id: string | null;
44879
46622
  id: string;
44880
46623
  last_error: string | null;
46624
+ locked_at: string | null;
46625
+ locked_by: string | null;
46626
+ next_attempt_at: string;
44881
46627
  number_of_pieces: number;
44882
46628
  sent_at: string | null;
44883
46629
  status: string;
46630
+ superseded_by: string | null;
44884
46631
  trade_item_id: string;
44885
46632
  updated_at: string;
44886
46633
  user_id: string;
@@ -44889,12 +46636,17 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
44889
46636
  attempts?: number;
44890
46637
  connection_id: string;
44891
46638
  created_at?: string;
46639
+ desired_available?: boolean | null;
44892
46640
  gateway_attempt_id?: string | null;
44893
46641
  id?: string;
44894
46642
  last_error?: string | null;
46643
+ locked_at?: string | null;
46644
+ locked_by?: string | null;
46645
+ next_attempt_at?: string;
44895
46646
  number_of_pieces?: number;
44896
46647
  sent_at?: string | null;
44897
46648
  status?: string;
46649
+ superseded_by?: string | null;
44898
46650
  trade_item_id: string;
44899
46651
  updated_at?: string;
44900
46652
  user_id: string;
@@ -44903,12 +46655,17 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
44903
46655
  attempts?: number;
44904
46656
  connection_id?: string;
44905
46657
  created_at?: string;
46658
+ desired_available?: boolean | null;
44906
46659
  gateway_attempt_id?: string | null;
44907
46660
  id?: string;
44908
46661
  last_error?: string | null;
46662
+ locked_at?: string | null;
46663
+ locked_by?: string | null;
46664
+ next_attempt_at?: string;
44909
46665
  number_of_pieces?: number;
44910
46666
  sent_at?: string | null;
44911
46667
  status?: string;
46668
+ superseded_by?: string | null;
44912
46669
  trade_item_id?: string;
44913
46670
  updated_at?: string;
44914
46671
  user_id?: string;
@@ -48268,6 +50025,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48268
50025
  };
48269
50026
  logistics_tasks: {
48270
50027
  Row: {
50028
+ attempt_log: import("../integrations/supabase/types").Json;
50029
+ attempts: number;
48271
50030
  buffer_ref: string | null;
48272
50031
  claimed_at: string | null;
48273
50032
  claimed_by: string | null;
@@ -48277,6 +50036,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48277
50036
  due_at: string | null;
48278
50037
  error: string | null;
48279
50038
  id: string;
50039
+ last_error: string | null;
50040
+ next_attempt_at: string | null;
48280
50041
  order_ref: string;
48281
50042
  owner_module: string;
48282
50043
  payload: import("../integrations/supabase/types").Json;
@@ -48297,6 +50058,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48297
50058
  user_id: string;
48298
50059
  };
48299
50060
  Insert: {
50061
+ attempt_log?: import("../integrations/supabase/types").Json;
50062
+ attempts?: number;
48300
50063
  buffer_ref?: string | null;
48301
50064
  claimed_at?: string | null;
48302
50065
  claimed_by?: string | null;
@@ -48306,6 +50069,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48306
50069
  due_at?: string | null;
48307
50070
  error?: string | null;
48308
50071
  id?: string;
50072
+ last_error?: string | null;
50073
+ next_attempt_at?: string | null;
48309
50074
  order_ref: string;
48310
50075
  owner_module: string;
48311
50076
  payload?: import("../integrations/supabase/types").Json;
@@ -48326,6 +50091,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48326
50091
  user_id?: string;
48327
50092
  };
48328
50093
  Update: {
50094
+ attempt_log?: import("../integrations/supabase/types").Json;
50095
+ attempts?: number;
48329
50096
  buffer_ref?: string | null;
48330
50097
  claimed_at?: string | null;
48331
50098
  claimed_by?: string | null;
@@ -48335,6 +50102,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48335
50102
  due_at?: string | null;
48336
50103
  error?: string | null;
48337
50104
  id?: string;
50105
+ last_error?: string | null;
50106
+ next_attempt_at?: string | null;
48338
50107
  order_ref?: string;
48339
50108
  owner_module?: string;
48340
50109
  payload?: import("../integrations/supabase/types").Json;
@@ -49684,6 +51453,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
49684
51453
  };
49685
51454
  offer_settings: {
49686
51455
  Row: {
51456
+ brand_name: string | null;
49687
51457
  button_color: string;
49688
51458
  created_at: string;
49689
51459
  default_countries: string[];
@@ -49705,6 +51475,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
49705
51475
  updated_at: string;
49706
51476
  };
49707
51477
  Insert: {
51478
+ brand_name?: string | null;
49708
51479
  button_color?: string;
49709
51480
  created_at?: string;
49710
51481
  default_countries?: string[];
@@ -49726,6 +51497,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
49726
51497
  updated_at?: string;
49727
51498
  };
49728
51499
  Update: {
51500
+ brand_name?: string | null;
49729
51501
  button_color?: string;
49730
51502
  created_at?: string;
49731
51503
  default_countries?: string[];
@@ -57336,6 +59108,85 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57336
59108
  };
57337
59109
  Returns: import("../integrations/supabase/types").Json;
57338
59110
  };
59111
+ claim_floriday_stock_queue: {
59112
+ Args: {
59113
+ p_limit?: number;
59114
+ p_worker?: string;
59115
+ };
59116
+ Returns: {
59117
+ attempts: number;
59118
+ connection_id: string;
59119
+ created_at: string;
59120
+ desired_available: boolean | null;
59121
+ gateway_attempt_id: string | null;
59122
+ id: string;
59123
+ last_error: string | null;
59124
+ locked_at: string | null;
59125
+ locked_by: string | null;
59126
+ next_attempt_at: string;
59127
+ number_of_pieces: number;
59128
+ sent_at: string | null;
59129
+ status: string;
59130
+ superseded_by: string | null;
59131
+ trade_item_id: string;
59132
+ updated_at: string;
59133
+ user_id: string;
59134
+ }[];
59135
+ SetofOptions: {
59136
+ from: "*";
59137
+ to: "floriday_continuous_stock_queue";
59138
+ isOneToOne: false;
59139
+ isSetofReturn: true;
59140
+ };
59141
+ };
59142
+ claim_logistics_tasks: {
59143
+ Args: {
59144
+ _limit?: number;
59145
+ _owner_module: string;
59146
+ _stale_minutes?: number;
59147
+ _task_type: string;
59148
+ _worker: string;
59149
+ };
59150
+ Returns: {
59151
+ attempt_log: import("../integrations/supabase/types").Json;
59152
+ attempts: number;
59153
+ buffer_ref: string | null;
59154
+ claimed_at: string | null;
59155
+ claimed_by: string | null;
59156
+ completed_at: string | null;
59157
+ created_at: string;
59158
+ depends_on: string[];
59159
+ due_at: string | null;
59160
+ error: string | null;
59161
+ id: string;
59162
+ last_error: string | null;
59163
+ next_attempt_at: string | null;
59164
+ order_ref: string;
59165
+ owner_module: string;
59166
+ payload: import("../integrations/supabase/types").Json;
59167
+ plan_run_id: string | null;
59168
+ planned_end: string | null;
59169
+ planned_start: string | null;
59170
+ priority: number;
59171
+ result: import("../integrations/supabase/types").Json | null;
59172
+ rule_config_id: string | null;
59173
+ rule_version: number | null;
59174
+ sequence: number;
59175
+ shadow: boolean;
59176
+ started_at: string | null;
59177
+ status: string;
59178
+ strategy_id: string | null;
59179
+ task_type: string;
59180
+ updated_at: string;
59181
+ user_id: string;
59182
+ }[];
59183
+ SetofOptions: {
59184
+ from: "*";
59185
+ to: "logistics_tasks";
59186
+ isOneToOne: false;
59187
+ isSetofReturn: true;
59188
+ };
59189
+ };
57339
59190
  claim_print_jobs: {
57340
59191
  Args: {
57341
59192
  _agent_id: string;
@@ -57400,10 +59251,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57400
59251
  isSetofReturn: true;
57401
59252
  };
57402
59253
  };
59254
+ cleanup_floriday_stock_queue: {
59255
+ Args: never;
59256
+ Returns: undefined;
59257
+ };
57403
59258
  cleanup_old_bookings: {
57404
59259
  Args: never;
57405
59260
  Returns: undefined;
57406
59261
  };
59262
+ complete_floriday_stock_queue: {
59263
+ Args: {
59264
+ p_attempt_id?: string;
59265
+ p_error?: string;
59266
+ p_id: string;
59267
+ p_ok: boolean;
59268
+ p_permanent?: boolean;
59269
+ };
59270
+ Returns: undefined;
59271
+ };
57407
59272
  consume_bom_for_production: {
57408
59273
  Args: {
57409
59274
  p_connection_id: string;
@@ -57576,6 +59441,21 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57576
59441
  Args: never;
57577
59442
  Returns: string;
57578
59443
  };
59444
+ exact_auth_consume_calls: {
59445
+ Args: {
59446
+ _account_key: string;
59447
+ _calls?: number;
59448
+ _day_limit?: number;
59449
+ _division_code: number;
59450
+ _environment: string;
59451
+ _minute_limit?: number;
59452
+ };
59453
+ Returns: import("../integrations/supabase/types").Json;
59454
+ };
59455
+ exact_auth_prune_sync_log: {
59456
+ Args: never;
59457
+ Returns: undefined;
59458
+ };
57579
59459
  exact_decrypt: {
57580
59460
  Args: {
57581
59461
  cipher: string;
@@ -57785,6 +59665,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57785
59665
  };
57786
59666
  Returns: number;
57787
59667
  };
59668
+ get_offer_branding: {
59669
+ Args: never;
59670
+ Returns: import("../integrations/supabase/types").Json;
59671
+ };
57788
59672
  get_offer_by_link_code: {
57789
59673
  Args: {
57790
59674
  p_code: string;
@@ -58076,6 +59960,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58076
59960
  p_worker?: string;
58077
59961
  };
58078
59962
  Returns: {
59963
+ attempt_log: import("../integrations/supabase/types").Json;
59964
+ attempts: number;
58079
59965
  buffer_ref: string | null;
58080
59966
  claimed_at: string | null;
58081
59967
  claimed_by: string | null;
@@ -58085,6 +59971,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58085
59971
  due_at: string | null;
58086
59972
  error: string | null;
58087
59973
  id: string;
59974
+ last_error: string | null;
59975
+ next_attempt_at: string | null;
58088
59976
  order_ref: string;
58089
59977
  owner_module: string;
58090
59978
  payload: import("../integrations/supabase/types").Json;
@@ -58117,6 +60005,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58117
60005
  p_worker?: string;
58118
60006
  };
58119
60007
  Returns: {
60008
+ attempt_log: import("../integrations/supabase/types").Json;
60009
+ attempts: number;
58120
60010
  buffer_ref: string | null;
58121
60011
  claimed_at: string | null;
58122
60012
  claimed_by: string | null;
@@ -58126,6 +60016,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58126
60016
  due_at: string | null;
58127
60017
  error: string | null;
58128
60018
  id: string;
60019
+ last_error: string | null;
60020
+ next_attempt_at: string | null;
58129
60021
  order_ref: string;
58130
60022
  owner_module: string;
58131
60023
  payload: import("../integrations/supabase/types").Json;
@@ -58158,6 +60050,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58158
60050
  p_task_id: string;
58159
60051
  };
58160
60052
  Returns: {
60053
+ attempt_log: import("../integrations/supabase/types").Json;
60054
+ attempts: number;
58161
60055
  buffer_ref: string | null;
58162
60056
  claimed_at: string | null;
58163
60057
  claimed_by: string | null;
@@ -58167,6 +60061,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58167
60061
  due_at: string | null;
58168
60062
  error: string | null;
58169
60063
  id: string;
60064
+ last_error: string | null;
60065
+ next_attempt_at: string | null;
58170
60066
  order_ref: string;
58171
60067
  owner_module: string;
58172
60068
  payload: import("../integrations/supabase/types").Json;
@@ -58248,6 +60144,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58248
60144
  p_task_id: string;
58249
60145
  };
58250
60146
  Returns: {
60147
+ attempt_log: import("../integrations/supabase/types").Json;
60148
+ attempts: number;
58251
60149
  buffer_ref: string | null;
58252
60150
  claimed_at: string | null;
58253
60151
  claimed_by: string | null;
@@ -58257,6 +60155,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58257
60155
  due_at: string | null;
58258
60156
  error: string | null;
58259
60157
  id: string;
60158
+ last_error: string | null;
60159
+ next_attempt_at: string | null;
58260
60160
  order_ref: string;
58261
60161
  owner_module: string;
58262
60162
  payload: import("../integrations/supabase/types").Json;
@@ -59010,6 +60910,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59010
60910
  Args: never;
59011
60911
  Returns: undefined;
59012
60912
  };
60913
+ run_logistics_tasks_dispatch: {
60914
+ Args: never;
60915
+ Returns: undefined;
60916
+ };
59013
60917
  run_twinfield_queue_tick: {
59014
60918
  Args: never;
59015
60919
  Returns: undefined;
@@ -59250,6 +61154,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59250
61154
  };
59251
61155
  Returns: number;
59252
61156
  };
61157
+ schedule_floriday_stock_queue_process: {
61158
+ Args: {
61159
+ p_apikey: string;
61160
+ p_url: string;
61161
+ };
61162
+ Returns: number;
61163
+ };
59253
61164
  schedule_floriday_token_refresh: {
59254
61165
  Args: {
59255
61166
  p_apikey: string;
@@ -63006,6 +64917,474 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
63006
64917
  referencedColumns: ["id"];
63007
64918
  }];
63008
64919
  };
64920
+ exact_auth_call_budget: {
64921
+ Row: {
64922
+ account_key: string;
64923
+ day_count: number;
64924
+ day_date: string;
64925
+ division_code: number;
64926
+ environment: string;
64927
+ minute_count: number;
64928
+ minute_window: string;
64929
+ updated_at: string;
64930
+ };
64931
+ Insert: {
64932
+ account_key?: string;
64933
+ day_count?: number;
64934
+ day_date?: string;
64935
+ division_code?: number;
64936
+ environment: string;
64937
+ minute_count?: number;
64938
+ minute_window?: string;
64939
+ updated_at?: string;
64940
+ };
64941
+ Update: {
64942
+ account_key?: string;
64943
+ day_count?: number;
64944
+ day_date?: string;
64945
+ division_code?: number;
64946
+ environment?: string;
64947
+ minute_count?: number;
64948
+ minute_window?: string;
64949
+ updated_at?: string;
64950
+ };
64951
+ Relationships: [];
64952
+ };
64953
+ exact_auth_customers: {
64954
+ Row: {
64955
+ account_key: string;
64956
+ address_line1: string | null;
64957
+ chamber_of_commerce: string | null;
64958
+ city: string | null;
64959
+ code: string | null;
64960
+ country: string | null;
64961
+ created_at: string;
64962
+ currency: string | null;
64963
+ division_code: number | null;
64964
+ email: string | null;
64965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64966
+ exact_id: string;
64967
+ exact_modified: string | null;
64968
+ exact_timestamp: number | null;
64969
+ id: string;
64970
+ is_active: boolean;
64971
+ name: string | null;
64972
+ phone: string | null;
64973
+ postcode: string | null;
64974
+ raw: import("../integrations/supabase/types").Json | null;
64975
+ status: string | null;
64976
+ updated_at: string;
64977
+ vat_number: string | null;
64978
+ website: string | null;
64979
+ };
64980
+ Insert: {
64981
+ account_key?: string;
64982
+ address_line1?: string | null;
64983
+ chamber_of_commerce?: string | null;
64984
+ city?: string | null;
64985
+ code?: string | null;
64986
+ country?: string | null;
64987
+ created_at?: string;
64988
+ currency?: string | null;
64989
+ division_code?: number | null;
64990
+ email?: string | null;
64991
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64992
+ exact_id: string;
64993
+ exact_modified?: string | null;
64994
+ exact_timestamp?: number | null;
64995
+ id?: string;
64996
+ is_active?: boolean;
64997
+ name?: string | null;
64998
+ phone?: string | null;
64999
+ postcode?: string | null;
65000
+ raw?: import("../integrations/supabase/types").Json | null;
65001
+ status?: string | null;
65002
+ updated_at?: string;
65003
+ vat_number?: string | null;
65004
+ website?: string | null;
65005
+ };
65006
+ Update: {
65007
+ account_key?: string;
65008
+ address_line1?: string | null;
65009
+ chamber_of_commerce?: string | null;
65010
+ city?: string | null;
65011
+ code?: string | null;
65012
+ country?: string | null;
65013
+ created_at?: string;
65014
+ currency?: string | null;
65015
+ division_code?: number | null;
65016
+ email?: string | null;
65017
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65018
+ exact_id?: string;
65019
+ exact_modified?: string | null;
65020
+ exact_timestamp?: number | null;
65021
+ id?: string;
65022
+ is_active?: boolean;
65023
+ name?: string | null;
65024
+ phone?: string | null;
65025
+ postcode?: string | null;
65026
+ raw?: import("../integrations/supabase/types").Json | null;
65027
+ status?: string | null;
65028
+ updated_at?: string;
65029
+ vat_number?: string | null;
65030
+ website?: string | null;
65031
+ };
65032
+ Relationships: [];
65033
+ };
65034
+ exact_auth_divisions: {
65035
+ Row: {
65036
+ account_key: string;
65037
+ company_name: string | null;
65038
+ created_at: string;
65039
+ division_code: number | null;
65040
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65041
+ id: string;
65042
+ last_synced_at: string | null;
65043
+ updated_at: string;
65044
+ };
65045
+ Insert: {
65046
+ account_key?: string;
65047
+ company_name?: string | null;
65048
+ created_at?: string;
65049
+ division_code?: number | null;
65050
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65051
+ id?: string;
65052
+ last_synced_at?: string | null;
65053
+ updated_at?: string;
65054
+ };
65055
+ Update: {
65056
+ account_key?: string;
65057
+ company_name?: string | null;
65058
+ created_at?: string;
65059
+ division_code?: number | null;
65060
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65061
+ id?: string;
65062
+ last_synced_at?: string | null;
65063
+ updated_at?: string;
65064
+ };
65065
+ Relationships: [];
65066
+ };
65067
+ exact_auth_invoice_lines: {
65068
+ Row: {
65069
+ account_key: string;
65070
+ amount_excl: number | null;
65071
+ created_at: string;
65072
+ description: string | null;
65073
+ discount: number | null;
65074
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65075
+ exact_id: string;
65076
+ exact_timestamp: number | null;
65077
+ id: string;
65078
+ invoice_exact_id: string;
65079
+ item_code: string | null;
65080
+ item_exact_id: string | null;
65081
+ line_number: number | null;
65082
+ quantity: number | null;
65083
+ raw: import("../integrations/supabase/types").Json | null;
65084
+ unit_price: number | null;
65085
+ updated_at: string;
65086
+ vat_amount: number | null;
65087
+ vat_code: string | null;
65088
+ };
65089
+ Insert: {
65090
+ account_key?: string;
65091
+ amount_excl?: number | null;
65092
+ created_at?: string;
65093
+ description?: string | null;
65094
+ discount?: number | null;
65095
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65096
+ exact_id: string;
65097
+ exact_timestamp?: number | null;
65098
+ id?: string;
65099
+ invoice_exact_id: string;
65100
+ item_code?: string | null;
65101
+ item_exact_id?: string | null;
65102
+ line_number?: number | null;
65103
+ quantity?: number | null;
65104
+ raw?: import("../integrations/supabase/types").Json | null;
65105
+ unit_price?: number | null;
65106
+ updated_at?: string;
65107
+ vat_amount?: number | null;
65108
+ vat_code?: string | null;
65109
+ };
65110
+ Update: {
65111
+ account_key?: string;
65112
+ amount_excl?: number | null;
65113
+ created_at?: string;
65114
+ description?: string | null;
65115
+ discount?: number | null;
65116
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65117
+ exact_id?: string;
65118
+ exact_timestamp?: number | null;
65119
+ id?: string;
65120
+ invoice_exact_id?: string;
65121
+ item_code?: string | null;
65122
+ item_exact_id?: string | null;
65123
+ line_number?: number | null;
65124
+ quantity?: number | null;
65125
+ raw?: import("../integrations/supabase/types").Json | null;
65126
+ unit_price?: number | null;
65127
+ updated_at?: string;
65128
+ vat_amount?: number | null;
65129
+ vat_code?: string | null;
65130
+ };
65131
+ Relationships: [];
65132
+ };
65133
+ exact_auth_invoices: {
65134
+ Row: {
65135
+ account_key: string;
65136
+ amount_excl: number | null;
65137
+ amount_incl: number | null;
65138
+ amount_open: number | null;
65139
+ created_at: string;
65140
+ currency: string | null;
65141
+ customer_code: string | null;
65142
+ customer_exact_id: string | null;
65143
+ customer_name: string | null;
65144
+ description: string | null;
65145
+ division_code: number | null;
65146
+ due_date: string | null;
65147
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65148
+ exact_id: string;
65149
+ exact_modified: string | null;
65150
+ exact_timestamp: number | null;
65151
+ id: string;
65152
+ invoice_date: string | null;
65153
+ invoice_number: string | null;
65154
+ order_number: string | null;
65155
+ paid_at: string | null;
65156
+ payment_status: string;
65157
+ raw: import("../integrations/supabase/types").Json | null;
65158
+ receivable_synced_at: string | null;
65159
+ status_code: number | null;
65160
+ updated_at: string;
65161
+ };
65162
+ Insert: {
65163
+ account_key?: string;
65164
+ amount_excl?: number | null;
65165
+ amount_incl?: number | null;
65166
+ amount_open?: number | null;
65167
+ created_at?: string;
65168
+ currency?: string | null;
65169
+ customer_code?: string | null;
65170
+ customer_exact_id?: string | null;
65171
+ customer_name?: string | null;
65172
+ description?: string | null;
65173
+ division_code?: number | null;
65174
+ due_date?: string | null;
65175
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65176
+ exact_id: string;
65177
+ exact_modified?: string | null;
65178
+ exact_timestamp?: number | null;
65179
+ id?: string;
65180
+ invoice_date?: string | null;
65181
+ invoice_number?: string | null;
65182
+ order_number?: string | null;
65183
+ paid_at?: string | null;
65184
+ payment_status?: string;
65185
+ raw?: import("../integrations/supabase/types").Json | null;
65186
+ receivable_synced_at?: string | null;
65187
+ status_code?: number | null;
65188
+ updated_at?: string;
65189
+ };
65190
+ Update: {
65191
+ account_key?: string;
65192
+ amount_excl?: number | null;
65193
+ amount_incl?: number | null;
65194
+ amount_open?: number | null;
65195
+ created_at?: string;
65196
+ currency?: string | null;
65197
+ customer_code?: string | null;
65198
+ customer_exact_id?: string | null;
65199
+ customer_name?: string | null;
65200
+ description?: string | null;
65201
+ division_code?: number | null;
65202
+ due_date?: string | null;
65203
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65204
+ exact_id?: string;
65205
+ exact_modified?: string | null;
65206
+ exact_timestamp?: number | null;
65207
+ id?: string;
65208
+ invoice_date?: string | null;
65209
+ invoice_number?: string | null;
65210
+ order_number?: string | null;
65211
+ paid_at?: string | null;
65212
+ payment_status?: string;
65213
+ raw?: import("../integrations/supabase/types").Json | null;
65214
+ receivable_synced_at?: string | null;
65215
+ status_code?: number | null;
65216
+ updated_at?: string;
65217
+ };
65218
+ Relationships: [];
65219
+ };
65220
+ exact_auth_items: {
65221
+ Row: {
65222
+ account_key: string;
65223
+ barcode: string | null;
65224
+ code: string | null;
65225
+ cost_price: number | null;
65226
+ created_at: string;
65227
+ description: string | null;
65228
+ division_code: number | null;
65229
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65230
+ exact_id: string;
65231
+ exact_modified: string | null;
65232
+ exact_timestamp: number | null;
65233
+ gl_account_code: string | null;
65234
+ id: string;
65235
+ is_active: boolean;
65236
+ is_sales_item: boolean | null;
65237
+ item_type: string | null;
65238
+ raw: import("../integrations/supabase/types").Json | null;
65239
+ sales_price: number | null;
65240
+ unit: string | null;
65241
+ updated_at: string;
65242
+ vat_code: string | null;
65243
+ };
65244
+ Insert: {
65245
+ account_key?: string;
65246
+ barcode?: string | null;
65247
+ code?: string | null;
65248
+ cost_price?: number | null;
65249
+ created_at?: string;
65250
+ description?: string | null;
65251
+ division_code?: number | null;
65252
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65253
+ exact_id: string;
65254
+ exact_modified?: string | null;
65255
+ exact_timestamp?: number | null;
65256
+ gl_account_code?: string | null;
65257
+ id?: string;
65258
+ is_active?: boolean;
65259
+ is_sales_item?: boolean | null;
65260
+ item_type?: string | null;
65261
+ raw?: import("../integrations/supabase/types").Json | null;
65262
+ sales_price?: number | null;
65263
+ unit?: string | null;
65264
+ updated_at?: string;
65265
+ vat_code?: string | null;
65266
+ };
65267
+ Update: {
65268
+ account_key?: string;
65269
+ barcode?: string | null;
65270
+ code?: string | null;
65271
+ cost_price?: number | null;
65272
+ created_at?: string;
65273
+ description?: string | null;
65274
+ division_code?: number | null;
65275
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65276
+ exact_id?: string;
65277
+ exact_modified?: string | null;
65278
+ exact_timestamp?: number | null;
65279
+ gl_account_code?: string | null;
65280
+ id?: string;
65281
+ is_active?: boolean;
65282
+ is_sales_item?: boolean | null;
65283
+ item_type?: string | null;
65284
+ raw?: import("../integrations/supabase/types").Json | null;
65285
+ sales_price?: number | null;
65286
+ unit?: string | null;
65287
+ updated_at?: string;
65288
+ vat_code?: string | null;
65289
+ };
65290
+ Relationships: [];
65291
+ };
65292
+ exact_auth_sync_log: {
65293
+ Row: {
65294
+ account_key: string;
65295
+ calls_used: number;
65296
+ created_at: string;
65297
+ domain: string;
65298
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65299
+ error: string | null;
65300
+ finished_at: string | null;
65301
+ id: string;
65302
+ ok: boolean;
65303
+ records: number;
65304
+ started_at: string;
65305
+ };
65306
+ Insert: {
65307
+ account_key?: string;
65308
+ calls_used?: number;
65309
+ created_at?: string;
65310
+ domain: string;
65311
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65312
+ error?: string | null;
65313
+ finished_at?: string | null;
65314
+ id?: string;
65315
+ ok?: boolean;
65316
+ records?: number;
65317
+ started_at?: string;
65318
+ };
65319
+ Update: {
65320
+ account_key?: string;
65321
+ calls_used?: number;
65322
+ created_at?: string;
65323
+ domain?: string;
65324
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65325
+ error?: string | null;
65326
+ finished_at?: string | null;
65327
+ id?: string;
65328
+ ok?: boolean;
65329
+ records?: number;
65330
+ started_at?: string;
65331
+ };
65332
+ Relationships: [];
65333
+ };
65334
+ exact_auth_sync_state: {
65335
+ Row: {
65336
+ account_key: string;
65337
+ created_at: string;
65338
+ cursor_timestamp: number;
65339
+ division_code: number | null;
65340
+ domain: string;
65341
+ duration_ms: number | null;
65342
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65343
+ initial_sync_done: boolean;
65344
+ last_error: string | null;
65345
+ last_run_at: string | null;
65346
+ last_success_at: string | null;
65347
+ locked_at: string | null;
65348
+ needs_initial_sync: boolean;
65349
+ record_count: number;
65350
+ updated_at: string;
65351
+ };
65352
+ Insert: {
65353
+ account_key?: string;
65354
+ created_at?: string;
65355
+ cursor_timestamp?: number;
65356
+ division_code?: number | null;
65357
+ domain: string;
65358
+ duration_ms?: number | null;
65359
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65360
+ initial_sync_done?: boolean;
65361
+ last_error?: string | null;
65362
+ last_run_at?: string | null;
65363
+ last_success_at?: string | null;
65364
+ locked_at?: string | null;
65365
+ needs_initial_sync?: boolean;
65366
+ record_count?: number;
65367
+ updated_at?: string;
65368
+ };
65369
+ Update: {
65370
+ account_key?: string;
65371
+ created_at?: string;
65372
+ cursor_timestamp?: number;
65373
+ division_code?: number | null;
65374
+ domain?: string;
65375
+ duration_ms?: number | null;
65376
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65377
+ initial_sync_done?: boolean;
65378
+ last_error?: string | null;
65379
+ last_run_at?: string | null;
65380
+ last_success_at?: string | null;
65381
+ locked_at?: string | null;
65382
+ needs_initial_sync?: boolean;
65383
+ record_count?: number;
65384
+ updated_at?: string;
65385
+ };
65386
+ Relationships: [];
65387
+ };
63009
65388
  exact_bulk_operation_items: {
63010
65389
  Row: {
63011
65390
  attempts: number;
@@ -64697,12 +67076,17 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
64697
67076
  attempts: number;
64698
67077
  connection_id: string;
64699
67078
  created_at: string;
67079
+ desired_available: boolean | null;
64700
67080
  gateway_attempt_id: string | null;
64701
67081
  id: string;
64702
67082
  last_error: string | null;
67083
+ locked_at: string | null;
67084
+ locked_by: string | null;
67085
+ next_attempt_at: string;
64703
67086
  number_of_pieces: number;
64704
67087
  sent_at: string | null;
64705
67088
  status: string;
67089
+ superseded_by: string | null;
64706
67090
  trade_item_id: string;
64707
67091
  updated_at: string;
64708
67092
  user_id: string;
@@ -64711,12 +67095,17 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
64711
67095
  attempts?: number;
64712
67096
  connection_id: string;
64713
67097
  created_at?: string;
67098
+ desired_available?: boolean | null;
64714
67099
  gateway_attempt_id?: string | null;
64715
67100
  id?: string;
64716
67101
  last_error?: string | null;
67102
+ locked_at?: string | null;
67103
+ locked_by?: string | null;
67104
+ next_attempt_at?: string;
64717
67105
  number_of_pieces?: number;
64718
67106
  sent_at?: string | null;
64719
67107
  status?: string;
67108
+ superseded_by?: string | null;
64720
67109
  trade_item_id: string;
64721
67110
  updated_at?: string;
64722
67111
  user_id: string;
@@ -64725,12 +67114,17 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
64725
67114
  attempts?: number;
64726
67115
  connection_id?: string;
64727
67116
  created_at?: string;
67117
+ desired_available?: boolean | null;
64728
67118
  gateway_attempt_id?: string | null;
64729
67119
  id?: string;
64730
67120
  last_error?: string | null;
67121
+ locked_at?: string | null;
67122
+ locked_by?: string | null;
67123
+ next_attempt_at?: string;
64731
67124
  number_of_pieces?: number;
64732
67125
  sent_at?: string | null;
64733
67126
  status?: string;
67127
+ superseded_by?: string | null;
64734
67128
  trade_item_id?: string;
64735
67129
  updated_at?: string;
64736
67130
  user_id?: string;
@@ -68090,6 +70484,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68090
70484
  };
68091
70485
  logistics_tasks: {
68092
70486
  Row: {
70487
+ attempt_log: import("../integrations/supabase/types").Json;
70488
+ attempts: number;
68093
70489
  buffer_ref: string | null;
68094
70490
  claimed_at: string | null;
68095
70491
  claimed_by: string | null;
@@ -68099,6 +70495,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68099
70495
  due_at: string | null;
68100
70496
  error: string | null;
68101
70497
  id: string;
70498
+ last_error: string | null;
70499
+ next_attempt_at: string | null;
68102
70500
  order_ref: string;
68103
70501
  owner_module: string;
68104
70502
  payload: import("../integrations/supabase/types").Json;
@@ -68119,6 +70517,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68119
70517
  user_id: string;
68120
70518
  };
68121
70519
  Insert: {
70520
+ attempt_log?: import("../integrations/supabase/types").Json;
70521
+ attempts?: number;
68122
70522
  buffer_ref?: string | null;
68123
70523
  claimed_at?: string | null;
68124
70524
  claimed_by?: string | null;
@@ -68128,6 +70528,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68128
70528
  due_at?: string | null;
68129
70529
  error?: string | null;
68130
70530
  id?: string;
70531
+ last_error?: string | null;
70532
+ next_attempt_at?: string | null;
68131
70533
  order_ref: string;
68132
70534
  owner_module: string;
68133
70535
  payload?: import("../integrations/supabase/types").Json;
@@ -68148,6 +70550,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68148
70550
  user_id?: string;
68149
70551
  };
68150
70552
  Update: {
70553
+ attempt_log?: import("../integrations/supabase/types").Json;
70554
+ attempts?: number;
68151
70555
  buffer_ref?: string | null;
68152
70556
  claimed_at?: string | null;
68153
70557
  claimed_by?: string | null;
@@ -68157,6 +70561,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68157
70561
  due_at?: string | null;
68158
70562
  error?: string | null;
68159
70563
  id?: string;
70564
+ last_error?: string | null;
70565
+ next_attempt_at?: string | null;
68160
70566
  order_ref?: string;
68161
70567
  owner_module?: string;
68162
70568
  payload?: import("../integrations/supabase/types").Json;
@@ -69506,6 +71912,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
69506
71912
  };
69507
71913
  offer_settings: {
69508
71914
  Row: {
71915
+ brand_name: string | null;
69509
71916
  button_color: string;
69510
71917
  created_at: string;
69511
71918
  default_countries: string[];
@@ -69527,6 +71934,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
69527
71934
  updated_at: string;
69528
71935
  };
69529
71936
  Insert: {
71937
+ brand_name?: string | null;
69530
71938
  button_color?: string;
69531
71939
  created_at?: string;
69532
71940
  default_countries?: string[];
@@ -69548,6 +71956,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
69548
71956
  updated_at?: string;
69549
71957
  };
69550
71958
  Update: {
71959
+ brand_name?: string | null;
69551
71960
  button_color?: string;
69552
71961
  created_at?: string;
69553
71962
  default_countries?: string[];
@@ -77158,6 +79567,85 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77158
79567
  };
77159
79568
  Returns: import("../integrations/supabase/types").Json;
77160
79569
  };
79570
+ claim_floriday_stock_queue: {
79571
+ Args: {
79572
+ p_limit?: number;
79573
+ p_worker?: string;
79574
+ };
79575
+ Returns: {
79576
+ attempts: number;
79577
+ connection_id: string;
79578
+ created_at: string;
79579
+ desired_available: boolean | null;
79580
+ gateway_attempt_id: string | null;
79581
+ id: string;
79582
+ last_error: string | null;
79583
+ locked_at: string | null;
79584
+ locked_by: string | null;
79585
+ next_attempt_at: string;
79586
+ number_of_pieces: number;
79587
+ sent_at: string | null;
79588
+ status: string;
79589
+ superseded_by: string | null;
79590
+ trade_item_id: string;
79591
+ updated_at: string;
79592
+ user_id: string;
79593
+ }[];
79594
+ SetofOptions: {
79595
+ from: "*";
79596
+ to: "floriday_continuous_stock_queue";
79597
+ isOneToOne: false;
79598
+ isSetofReturn: true;
79599
+ };
79600
+ };
79601
+ claim_logistics_tasks: {
79602
+ Args: {
79603
+ _limit?: number;
79604
+ _owner_module: string;
79605
+ _stale_minutes?: number;
79606
+ _task_type: string;
79607
+ _worker: string;
79608
+ };
79609
+ Returns: {
79610
+ attempt_log: import("../integrations/supabase/types").Json;
79611
+ attempts: number;
79612
+ buffer_ref: string | null;
79613
+ claimed_at: string | null;
79614
+ claimed_by: string | null;
79615
+ completed_at: string | null;
79616
+ created_at: string;
79617
+ depends_on: string[];
79618
+ due_at: string | null;
79619
+ error: string | null;
79620
+ id: string;
79621
+ last_error: string | null;
79622
+ next_attempt_at: string | null;
79623
+ order_ref: string;
79624
+ owner_module: string;
79625
+ payload: import("../integrations/supabase/types").Json;
79626
+ plan_run_id: string | null;
79627
+ planned_end: string | null;
79628
+ planned_start: string | null;
79629
+ priority: number;
79630
+ result: import("../integrations/supabase/types").Json | null;
79631
+ rule_config_id: string | null;
79632
+ rule_version: number | null;
79633
+ sequence: number;
79634
+ shadow: boolean;
79635
+ started_at: string | null;
79636
+ status: string;
79637
+ strategy_id: string | null;
79638
+ task_type: string;
79639
+ updated_at: string;
79640
+ user_id: string;
79641
+ }[];
79642
+ SetofOptions: {
79643
+ from: "*";
79644
+ to: "logistics_tasks";
79645
+ isOneToOne: false;
79646
+ isSetofReturn: true;
79647
+ };
79648
+ };
77161
79649
  claim_print_jobs: {
77162
79650
  Args: {
77163
79651
  _agent_id: string;
@@ -77222,10 +79710,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77222
79710
  isSetofReturn: true;
77223
79711
  };
77224
79712
  };
79713
+ cleanup_floriday_stock_queue: {
79714
+ Args: never;
79715
+ Returns: undefined;
79716
+ };
77225
79717
  cleanup_old_bookings: {
77226
79718
  Args: never;
77227
79719
  Returns: undefined;
77228
79720
  };
79721
+ complete_floriday_stock_queue: {
79722
+ Args: {
79723
+ p_attempt_id?: string;
79724
+ p_error?: string;
79725
+ p_id: string;
79726
+ p_ok: boolean;
79727
+ p_permanent?: boolean;
79728
+ };
79729
+ Returns: undefined;
79730
+ };
77229
79731
  consume_bom_for_production: {
77230
79732
  Args: {
77231
79733
  p_connection_id: string;
@@ -77398,6 +79900,21 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77398
79900
  Args: never;
77399
79901
  Returns: string;
77400
79902
  };
79903
+ exact_auth_consume_calls: {
79904
+ Args: {
79905
+ _account_key: string;
79906
+ _calls?: number;
79907
+ _day_limit?: number;
79908
+ _division_code: number;
79909
+ _environment: string;
79910
+ _minute_limit?: number;
79911
+ };
79912
+ Returns: import("../integrations/supabase/types").Json;
79913
+ };
79914
+ exact_auth_prune_sync_log: {
79915
+ Args: never;
79916
+ Returns: undefined;
79917
+ };
77401
79918
  exact_decrypt: {
77402
79919
  Args: {
77403
79920
  cipher: string;
@@ -77607,6 +80124,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77607
80124
  };
77608
80125
  Returns: number;
77609
80126
  };
80127
+ get_offer_branding: {
80128
+ Args: never;
80129
+ Returns: import("../integrations/supabase/types").Json;
80130
+ };
77610
80131
  get_offer_by_link_code: {
77611
80132
  Args: {
77612
80133
  p_code: string;
@@ -77898,6 +80419,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77898
80419
  p_worker?: string;
77899
80420
  };
77900
80421
  Returns: {
80422
+ attempt_log: import("../integrations/supabase/types").Json;
80423
+ attempts: number;
77901
80424
  buffer_ref: string | null;
77902
80425
  claimed_at: string | null;
77903
80426
  claimed_by: string | null;
@@ -77907,6 +80430,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77907
80430
  due_at: string | null;
77908
80431
  error: string | null;
77909
80432
  id: string;
80433
+ last_error: string | null;
80434
+ next_attempt_at: string | null;
77910
80435
  order_ref: string;
77911
80436
  owner_module: string;
77912
80437
  payload: import("../integrations/supabase/types").Json;
@@ -77939,6 +80464,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77939
80464
  p_worker?: string;
77940
80465
  };
77941
80466
  Returns: {
80467
+ attempt_log: import("../integrations/supabase/types").Json;
80468
+ attempts: number;
77942
80469
  buffer_ref: string | null;
77943
80470
  claimed_at: string | null;
77944
80471
  claimed_by: string | null;
@@ -77948,6 +80475,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77948
80475
  due_at: string | null;
77949
80476
  error: string | null;
77950
80477
  id: string;
80478
+ last_error: string | null;
80479
+ next_attempt_at: string | null;
77951
80480
  order_ref: string;
77952
80481
  owner_module: string;
77953
80482
  payload: import("../integrations/supabase/types").Json;
@@ -77980,6 +80509,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77980
80509
  p_task_id: string;
77981
80510
  };
77982
80511
  Returns: {
80512
+ attempt_log: import("../integrations/supabase/types").Json;
80513
+ attempts: number;
77983
80514
  buffer_ref: string | null;
77984
80515
  claimed_at: string | null;
77985
80516
  claimed_by: string | null;
@@ -77989,6 +80520,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77989
80520
  due_at: string | null;
77990
80521
  error: string | null;
77991
80522
  id: string;
80523
+ last_error: string | null;
80524
+ next_attempt_at: string | null;
77992
80525
  order_ref: string;
77993
80526
  owner_module: string;
77994
80527
  payload: import("../integrations/supabase/types").Json;
@@ -78070,6 +80603,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78070
80603
  p_task_id: string;
78071
80604
  };
78072
80605
  Returns: {
80606
+ attempt_log: import("../integrations/supabase/types").Json;
80607
+ attempts: number;
78073
80608
  buffer_ref: string | null;
78074
80609
  claimed_at: string | null;
78075
80610
  claimed_by: string | null;
@@ -78079,6 +80614,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78079
80614
  due_at: string | null;
78080
80615
  error: string | null;
78081
80616
  id: string;
80617
+ last_error: string | null;
80618
+ next_attempt_at: string | null;
78082
80619
  order_ref: string;
78083
80620
  owner_module: string;
78084
80621
  payload: import("../integrations/supabase/types").Json;
@@ -78832,6 +81369,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78832
81369
  Args: never;
78833
81370
  Returns: undefined;
78834
81371
  };
81372
+ run_logistics_tasks_dispatch: {
81373
+ Args: never;
81374
+ Returns: undefined;
81375
+ };
78835
81376
  run_twinfield_queue_tick: {
78836
81377
  Args: never;
78837
81378
  Returns: undefined;
@@ -79072,6 +81613,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79072
81613
  };
79073
81614
  Returns: number;
79074
81615
  };
81616
+ schedule_floriday_stock_queue_process: {
81617
+ Args: {
81618
+ p_apikey: string;
81619
+ p_url: string;
81620
+ };
81621
+ Returns: number;
81622
+ };
79075
81623
  schedule_floriday_token_refresh: {
79076
81624
  Args: {
79077
81625
  p_apikey: string;
@@ -82828,6 +85376,474 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
82828
85376
  referencedColumns: ["id"];
82829
85377
  }];
82830
85378
  };
85379
+ exact_auth_call_budget: {
85380
+ Row: {
85381
+ account_key: string;
85382
+ day_count: number;
85383
+ day_date: string;
85384
+ division_code: number;
85385
+ environment: string;
85386
+ minute_count: number;
85387
+ minute_window: string;
85388
+ updated_at: string;
85389
+ };
85390
+ Insert: {
85391
+ account_key?: string;
85392
+ day_count?: number;
85393
+ day_date?: string;
85394
+ division_code?: number;
85395
+ environment: string;
85396
+ minute_count?: number;
85397
+ minute_window?: string;
85398
+ updated_at?: string;
85399
+ };
85400
+ Update: {
85401
+ account_key?: string;
85402
+ day_count?: number;
85403
+ day_date?: string;
85404
+ division_code?: number;
85405
+ environment?: string;
85406
+ minute_count?: number;
85407
+ minute_window?: string;
85408
+ updated_at?: string;
85409
+ };
85410
+ Relationships: [];
85411
+ };
85412
+ exact_auth_customers: {
85413
+ Row: {
85414
+ account_key: string;
85415
+ address_line1: string | null;
85416
+ chamber_of_commerce: string | null;
85417
+ city: string | null;
85418
+ code: string | null;
85419
+ country: string | null;
85420
+ created_at: string;
85421
+ currency: string | null;
85422
+ division_code: number | null;
85423
+ email: string | null;
85424
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85425
+ exact_id: string;
85426
+ exact_modified: string | null;
85427
+ exact_timestamp: number | null;
85428
+ id: string;
85429
+ is_active: boolean;
85430
+ name: string | null;
85431
+ phone: string | null;
85432
+ postcode: string | null;
85433
+ raw: import("../integrations/supabase/types").Json | null;
85434
+ status: string | null;
85435
+ updated_at: string;
85436
+ vat_number: string | null;
85437
+ website: string | null;
85438
+ };
85439
+ Insert: {
85440
+ account_key?: string;
85441
+ address_line1?: string | null;
85442
+ chamber_of_commerce?: string | null;
85443
+ city?: string | null;
85444
+ code?: string | null;
85445
+ country?: string | null;
85446
+ created_at?: string;
85447
+ currency?: string | null;
85448
+ division_code?: number | null;
85449
+ email?: string | null;
85450
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85451
+ exact_id: string;
85452
+ exact_modified?: string | null;
85453
+ exact_timestamp?: number | null;
85454
+ id?: string;
85455
+ is_active?: boolean;
85456
+ name?: string | null;
85457
+ phone?: string | null;
85458
+ postcode?: string | null;
85459
+ raw?: import("../integrations/supabase/types").Json | null;
85460
+ status?: string | null;
85461
+ updated_at?: string;
85462
+ vat_number?: string | null;
85463
+ website?: string | null;
85464
+ };
85465
+ Update: {
85466
+ account_key?: string;
85467
+ address_line1?: string | null;
85468
+ chamber_of_commerce?: string | null;
85469
+ city?: string | null;
85470
+ code?: string | null;
85471
+ country?: string | null;
85472
+ created_at?: string;
85473
+ currency?: string | null;
85474
+ division_code?: number | null;
85475
+ email?: string | null;
85476
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85477
+ exact_id?: string;
85478
+ exact_modified?: string | null;
85479
+ exact_timestamp?: number | null;
85480
+ id?: string;
85481
+ is_active?: boolean;
85482
+ name?: string | null;
85483
+ phone?: string | null;
85484
+ postcode?: string | null;
85485
+ raw?: import("../integrations/supabase/types").Json | null;
85486
+ status?: string | null;
85487
+ updated_at?: string;
85488
+ vat_number?: string | null;
85489
+ website?: string | null;
85490
+ };
85491
+ Relationships: [];
85492
+ };
85493
+ exact_auth_divisions: {
85494
+ Row: {
85495
+ account_key: string;
85496
+ company_name: string | null;
85497
+ created_at: string;
85498
+ division_code: number | null;
85499
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85500
+ id: string;
85501
+ last_synced_at: string | null;
85502
+ updated_at: string;
85503
+ };
85504
+ Insert: {
85505
+ account_key?: string;
85506
+ company_name?: string | null;
85507
+ created_at?: string;
85508
+ division_code?: number | null;
85509
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85510
+ id?: string;
85511
+ last_synced_at?: string | null;
85512
+ updated_at?: string;
85513
+ };
85514
+ Update: {
85515
+ account_key?: string;
85516
+ company_name?: string | null;
85517
+ created_at?: string;
85518
+ division_code?: number | null;
85519
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85520
+ id?: string;
85521
+ last_synced_at?: string | null;
85522
+ updated_at?: string;
85523
+ };
85524
+ Relationships: [];
85525
+ };
85526
+ exact_auth_invoice_lines: {
85527
+ Row: {
85528
+ account_key: string;
85529
+ amount_excl: number | null;
85530
+ created_at: string;
85531
+ description: string | null;
85532
+ discount: number | null;
85533
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85534
+ exact_id: string;
85535
+ exact_timestamp: number | null;
85536
+ id: string;
85537
+ invoice_exact_id: string;
85538
+ item_code: string | null;
85539
+ item_exact_id: string | null;
85540
+ line_number: number | null;
85541
+ quantity: number | null;
85542
+ raw: import("../integrations/supabase/types").Json | null;
85543
+ unit_price: number | null;
85544
+ updated_at: string;
85545
+ vat_amount: number | null;
85546
+ vat_code: string | null;
85547
+ };
85548
+ Insert: {
85549
+ account_key?: string;
85550
+ amount_excl?: number | null;
85551
+ created_at?: string;
85552
+ description?: string | null;
85553
+ discount?: number | null;
85554
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85555
+ exact_id: string;
85556
+ exact_timestamp?: number | null;
85557
+ id?: string;
85558
+ invoice_exact_id: string;
85559
+ item_code?: string | null;
85560
+ item_exact_id?: string | null;
85561
+ line_number?: number | null;
85562
+ quantity?: number | null;
85563
+ raw?: import("../integrations/supabase/types").Json | null;
85564
+ unit_price?: number | null;
85565
+ updated_at?: string;
85566
+ vat_amount?: number | null;
85567
+ vat_code?: string | null;
85568
+ };
85569
+ Update: {
85570
+ account_key?: string;
85571
+ amount_excl?: number | null;
85572
+ created_at?: string;
85573
+ description?: string | null;
85574
+ discount?: number | null;
85575
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85576
+ exact_id?: string;
85577
+ exact_timestamp?: number | null;
85578
+ id?: string;
85579
+ invoice_exact_id?: string;
85580
+ item_code?: string | null;
85581
+ item_exact_id?: string | null;
85582
+ line_number?: number | null;
85583
+ quantity?: number | null;
85584
+ raw?: import("../integrations/supabase/types").Json | null;
85585
+ unit_price?: number | null;
85586
+ updated_at?: string;
85587
+ vat_amount?: number | null;
85588
+ vat_code?: string | null;
85589
+ };
85590
+ Relationships: [];
85591
+ };
85592
+ exact_auth_invoices: {
85593
+ Row: {
85594
+ account_key: string;
85595
+ amount_excl: number | null;
85596
+ amount_incl: number | null;
85597
+ amount_open: number | null;
85598
+ created_at: string;
85599
+ currency: string | null;
85600
+ customer_code: string | null;
85601
+ customer_exact_id: string | null;
85602
+ customer_name: string | null;
85603
+ description: string | null;
85604
+ division_code: number | null;
85605
+ due_date: string | null;
85606
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85607
+ exact_id: string;
85608
+ exact_modified: string | null;
85609
+ exact_timestamp: number | null;
85610
+ id: string;
85611
+ invoice_date: string | null;
85612
+ invoice_number: string | null;
85613
+ order_number: string | null;
85614
+ paid_at: string | null;
85615
+ payment_status: string;
85616
+ raw: import("../integrations/supabase/types").Json | null;
85617
+ receivable_synced_at: string | null;
85618
+ status_code: number | null;
85619
+ updated_at: string;
85620
+ };
85621
+ Insert: {
85622
+ account_key?: string;
85623
+ amount_excl?: number | null;
85624
+ amount_incl?: number | null;
85625
+ amount_open?: number | null;
85626
+ created_at?: string;
85627
+ currency?: string | null;
85628
+ customer_code?: string | null;
85629
+ customer_exact_id?: string | null;
85630
+ customer_name?: string | null;
85631
+ description?: string | null;
85632
+ division_code?: number | null;
85633
+ due_date?: string | null;
85634
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85635
+ exact_id: string;
85636
+ exact_modified?: string | null;
85637
+ exact_timestamp?: number | null;
85638
+ id?: string;
85639
+ invoice_date?: string | null;
85640
+ invoice_number?: string | null;
85641
+ order_number?: string | null;
85642
+ paid_at?: string | null;
85643
+ payment_status?: string;
85644
+ raw?: import("../integrations/supabase/types").Json | null;
85645
+ receivable_synced_at?: string | null;
85646
+ status_code?: number | null;
85647
+ updated_at?: string;
85648
+ };
85649
+ Update: {
85650
+ account_key?: string;
85651
+ amount_excl?: number | null;
85652
+ amount_incl?: number | null;
85653
+ amount_open?: number | null;
85654
+ created_at?: string;
85655
+ currency?: string | null;
85656
+ customer_code?: string | null;
85657
+ customer_exact_id?: string | null;
85658
+ customer_name?: string | null;
85659
+ description?: string | null;
85660
+ division_code?: number | null;
85661
+ due_date?: string | null;
85662
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85663
+ exact_id?: string;
85664
+ exact_modified?: string | null;
85665
+ exact_timestamp?: number | null;
85666
+ id?: string;
85667
+ invoice_date?: string | null;
85668
+ invoice_number?: string | null;
85669
+ order_number?: string | null;
85670
+ paid_at?: string | null;
85671
+ payment_status?: string;
85672
+ raw?: import("../integrations/supabase/types").Json | null;
85673
+ receivable_synced_at?: string | null;
85674
+ status_code?: number | null;
85675
+ updated_at?: string;
85676
+ };
85677
+ Relationships: [];
85678
+ };
85679
+ exact_auth_items: {
85680
+ Row: {
85681
+ account_key: string;
85682
+ barcode: string | null;
85683
+ code: string | null;
85684
+ cost_price: number | null;
85685
+ created_at: string;
85686
+ description: string | null;
85687
+ division_code: number | null;
85688
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85689
+ exact_id: string;
85690
+ exact_modified: string | null;
85691
+ exact_timestamp: number | null;
85692
+ gl_account_code: string | null;
85693
+ id: string;
85694
+ is_active: boolean;
85695
+ is_sales_item: boolean | null;
85696
+ item_type: string | null;
85697
+ raw: import("../integrations/supabase/types").Json | null;
85698
+ sales_price: number | null;
85699
+ unit: string | null;
85700
+ updated_at: string;
85701
+ vat_code: string | null;
85702
+ };
85703
+ Insert: {
85704
+ account_key?: string;
85705
+ barcode?: string | null;
85706
+ code?: string | null;
85707
+ cost_price?: number | null;
85708
+ created_at?: string;
85709
+ description?: string | null;
85710
+ division_code?: number | null;
85711
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85712
+ exact_id: string;
85713
+ exact_modified?: string | null;
85714
+ exact_timestamp?: number | null;
85715
+ gl_account_code?: string | null;
85716
+ id?: string;
85717
+ is_active?: boolean;
85718
+ is_sales_item?: boolean | null;
85719
+ item_type?: string | null;
85720
+ raw?: import("../integrations/supabase/types").Json | null;
85721
+ sales_price?: number | null;
85722
+ unit?: string | null;
85723
+ updated_at?: string;
85724
+ vat_code?: string | null;
85725
+ };
85726
+ Update: {
85727
+ account_key?: string;
85728
+ barcode?: string | null;
85729
+ code?: string | null;
85730
+ cost_price?: number | null;
85731
+ created_at?: string;
85732
+ description?: string | null;
85733
+ division_code?: number | null;
85734
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85735
+ exact_id?: string;
85736
+ exact_modified?: string | null;
85737
+ exact_timestamp?: number | null;
85738
+ gl_account_code?: string | null;
85739
+ id?: string;
85740
+ is_active?: boolean;
85741
+ is_sales_item?: boolean | null;
85742
+ item_type?: string | null;
85743
+ raw?: import("../integrations/supabase/types").Json | null;
85744
+ sales_price?: number | null;
85745
+ unit?: string | null;
85746
+ updated_at?: string;
85747
+ vat_code?: string | null;
85748
+ };
85749
+ Relationships: [];
85750
+ };
85751
+ exact_auth_sync_log: {
85752
+ Row: {
85753
+ account_key: string;
85754
+ calls_used: number;
85755
+ created_at: string;
85756
+ domain: string;
85757
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85758
+ error: string | null;
85759
+ finished_at: string | null;
85760
+ id: string;
85761
+ ok: boolean;
85762
+ records: number;
85763
+ started_at: string;
85764
+ };
85765
+ Insert: {
85766
+ account_key?: string;
85767
+ calls_used?: number;
85768
+ created_at?: string;
85769
+ domain: string;
85770
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85771
+ error?: string | null;
85772
+ finished_at?: string | null;
85773
+ id?: string;
85774
+ ok?: boolean;
85775
+ records?: number;
85776
+ started_at?: string;
85777
+ };
85778
+ Update: {
85779
+ account_key?: string;
85780
+ calls_used?: number;
85781
+ created_at?: string;
85782
+ domain?: string;
85783
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85784
+ error?: string | null;
85785
+ finished_at?: string | null;
85786
+ id?: string;
85787
+ ok?: boolean;
85788
+ records?: number;
85789
+ started_at?: string;
85790
+ };
85791
+ Relationships: [];
85792
+ };
85793
+ exact_auth_sync_state: {
85794
+ Row: {
85795
+ account_key: string;
85796
+ created_at: string;
85797
+ cursor_timestamp: number;
85798
+ division_code: number | null;
85799
+ domain: string;
85800
+ duration_ms: number | null;
85801
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85802
+ initial_sync_done: boolean;
85803
+ last_error: string | null;
85804
+ last_run_at: string | null;
85805
+ last_success_at: string | null;
85806
+ locked_at: string | null;
85807
+ needs_initial_sync: boolean;
85808
+ record_count: number;
85809
+ updated_at: string;
85810
+ };
85811
+ Insert: {
85812
+ account_key?: string;
85813
+ created_at?: string;
85814
+ cursor_timestamp?: number;
85815
+ division_code?: number | null;
85816
+ domain: string;
85817
+ duration_ms?: number | null;
85818
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85819
+ initial_sync_done?: boolean;
85820
+ last_error?: string | null;
85821
+ last_run_at?: string | null;
85822
+ last_success_at?: string | null;
85823
+ locked_at?: string | null;
85824
+ needs_initial_sync?: boolean;
85825
+ record_count?: number;
85826
+ updated_at?: string;
85827
+ };
85828
+ Update: {
85829
+ account_key?: string;
85830
+ created_at?: string;
85831
+ cursor_timestamp?: number;
85832
+ division_code?: number | null;
85833
+ domain?: string;
85834
+ duration_ms?: number | null;
85835
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85836
+ initial_sync_done?: boolean;
85837
+ last_error?: string | null;
85838
+ last_run_at?: string | null;
85839
+ last_success_at?: string | null;
85840
+ locked_at?: string | null;
85841
+ needs_initial_sync?: boolean;
85842
+ record_count?: number;
85843
+ updated_at?: string;
85844
+ };
85845
+ Relationships: [];
85846
+ };
82831
85847
  exact_bulk_operation_items: {
82832
85848
  Row: {
82833
85849
  attempts: number;
@@ -84519,12 +87535,17 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
84519
87535
  attempts: number;
84520
87536
  connection_id: string;
84521
87537
  created_at: string;
87538
+ desired_available: boolean | null;
84522
87539
  gateway_attempt_id: string | null;
84523
87540
  id: string;
84524
87541
  last_error: string | null;
87542
+ locked_at: string | null;
87543
+ locked_by: string | null;
87544
+ next_attempt_at: string;
84525
87545
  number_of_pieces: number;
84526
87546
  sent_at: string | null;
84527
87547
  status: string;
87548
+ superseded_by: string | null;
84528
87549
  trade_item_id: string;
84529
87550
  updated_at: string;
84530
87551
  user_id: string;
@@ -84533,12 +87554,17 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
84533
87554
  attempts?: number;
84534
87555
  connection_id: string;
84535
87556
  created_at?: string;
87557
+ desired_available?: boolean | null;
84536
87558
  gateway_attempt_id?: string | null;
84537
87559
  id?: string;
84538
87560
  last_error?: string | null;
87561
+ locked_at?: string | null;
87562
+ locked_by?: string | null;
87563
+ next_attempt_at?: string;
84539
87564
  number_of_pieces?: number;
84540
87565
  sent_at?: string | null;
84541
87566
  status?: string;
87567
+ superseded_by?: string | null;
84542
87568
  trade_item_id: string;
84543
87569
  updated_at?: string;
84544
87570
  user_id: string;
@@ -84547,12 +87573,17 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
84547
87573
  attempts?: number;
84548
87574
  connection_id?: string;
84549
87575
  created_at?: string;
87576
+ desired_available?: boolean | null;
84550
87577
  gateway_attempt_id?: string | null;
84551
87578
  id?: string;
84552
87579
  last_error?: string | null;
87580
+ locked_at?: string | null;
87581
+ locked_by?: string | null;
87582
+ next_attempt_at?: string;
84553
87583
  number_of_pieces?: number;
84554
87584
  sent_at?: string | null;
84555
87585
  status?: string;
87586
+ superseded_by?: string | null;
84556
87587
  trade_item_id?: string;
84557
87588
  updated_at?: string;
84558
87589
  user_id?: string;
@@ -87912,6 +90943,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87912
90943
  };
87913
90944
  logistics_tasks: {
87914
90945
  Row: {
90946
+ attempt_log: import("../integrations/supabase/types").Json;
90947
+ attempts: number;
87915
90948
  buffer_ref: string | null;
87916
90949
  claimed_at: string | null;
87917
90950
  claimed_by: string | null;
@@ -87921,6 +90954,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87921
90954
  due_at: string | null;
87922
90955
  error: string | null;
87923
90956
  id: string;
90957
+ last_error: string | null;
90958
+ next_attempt_at: string | null;
87924
90959
  order_ref: string;
87925
90960
  owner_module: string;
87926
90961
  payload: import("../integrations/supabase/types").Json;
@@ -87941,6 +90976,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87941
90976
  user_id: string;
87942
90977
  };
87943
90978
  Insert: {
90979
+ attempt_log?: import("../integrations/supabase/types").Json;
90980
+ attempts?: number;
87944
90981
  buffer_ref?: string | null;
87945
90982
  claimed_at?: string | null;
87946
90983
  claimed_by?: string | null;
@@ -87950,6 +90987,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87950
90987
  due_at?: string | null;
87951
90988
  error?: string | null;
87952
90989
  id?: string;
90990
+ last_error?: string | null;
90991
+ next_attempt_at?: string | null;
87953
90992
  order_ref: string;
87954
90993
  owner_module: string;
87955
90994
  payload?: import("../integrations/supabase/types").Json;
@@ -87970,6 +91009,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87970
91009
  user_id?: string;
87971
91010
  };
87972
91011
  Update: {
91012
+ attempt_log?: import("../integrations/supabase/types").Json;
91013
+ attempts?: number;
87973
91014
  buffer_ref?: string | null;
87974
91015
  claimed_at?: string | null;
87975
91016
  claimed_by?: string | null;
@@ -87979,6 +91020,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
87979
91020
  due_at?: string | null;
87980
91021
  error?: string | null;
87981
91022
  id?: string;
91023
+ last_error?: string | null;
91024
+ next_attempt_at?: string | null;
87982
91025
  order_ref?: string;
87983
91026
  owner_module?: string;
87984
91027
  payload?: import("../integrations/supabase/types").Json;
@@ -89328,6 +92371,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
89328
92371
  };
89329
92372
  offer_settings: {
89330
92373
  Row: {
92374
+ brand_name: string | null;
89331
92375
  button_color: string;
89332
92376
  created_at: string;
89333
92377
  default_countries: string[];
@@ -89349,6 +92393,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
89349
92393
  updated_at: string;
89350
92394
  };
89351
92395
  Insert: {
92396
+ brand_name?: string | null;
89352
92397
  button_color?: string;
89353
92398
  created_at?: string;
89354
92399
  default_countries?: string[];
@@ -89370,6 +92415,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
89370
92415
  updated_at?: string;
89371
92416
  };
89372
92417
  Update: {
92418
+ brand_name?: string | null;
89373
92419
  button_color?: string;
89374
92420
  created_at?: string;
89375
92421
  default_countries?: string[];
@@ -96980,6 +100026,85 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
96980
100026
  };
96981
100027
  Returns: import("../integrations/supabase/types").Json;
96982
100028
  };
100029
+ claim_floriday_stock_queue: {
100030
+ Args: {
100031
+ p_limit?: number;
100032
+ p_worker?: string;
100033
+ };
100034
+ Returns: {
100035
+ attempts: number;
100036
+ connection_id: string;
100037
+ created_at: string;
100038
+ desired_available: boolean | null;
100039
+ gateway_attempt_id: string | null;
100040
+ id: string;
100041
+ last_error: string | null;
100042
+ locked_at: string | null;
100043
+ locked_by: string | null;
100044
+ next_attempt_at: string;
100045
+ number_of_pieces: number;
100046
+ sent_at: string | null;
100047
+ status: string;
100048
+ superseded_by: string | null;
100049
+ trade_item_id: string;
100050
+ updated_at: string;
100051
+ user_id: string;
100052
+ }[];
100053
+ SetofOptions: {
100054
+ from: "*";
100055
+ to: "floriday_continuous_stock_queue";
100056
+ isOneToOne: false;
100057
+ isSetofReturn: true;
100058
+ };
100059
+ };
100060
+ claim_logistics_tasks: {
100061
+ Args: {
100062
+ _limit?: number;
100063
+ _owner_module: string;
100064
+ _stale_minutes?: number;
100065
+ _task_type: string;
100066
+ _worker: string;
100067
+ };
100068
+ Returns: {
100069
+ attempt_log: import("../integrations/supabase/types").Json;
100070
+ attempts: number;
100071
+ buffer_ref: string | null;
100072
+ claimed_at: string | null;
100073
+ claimed_by: string | null;
100074
+ completed_at: string | null;
100075
+ created_at: string;
100076
+ depends_on: string[];
100077
+ due_at: string | null;
100078
+ error: string | null;
100079
+ id: string;
100080
+ last_error: string | null;
100081
+ next_attempt_at: string | null;
100082
+ order_ref: string;
100083
+ owner_module: string;
100084
+ payload: import("../integrations/supabase/types").Json;
100085
+ plan_run_id: string | null;
100086
+ planned_end: string | null;
100087
+ planned_start: string | null;
100088
+ priority: number;
100089
+ result: import("../integrations/supabase/types").Json | null;
100090
+ rule_config_id: string | null;
100091
+ rule_version: number | null;
100092
+ sequence: number;
100093
+ shadow: boolean;
100094
+ started_at: string | null;
100095
+ status: string;
100096
+ strategy_id: string | null;
100097
+ task_type: string;
100098
+ updated_at: string;
100099
+ user_id: string;
100100
+ }[];
100101
+ SetofOptions: {
100102
+ from: "*";
100103
+ to: "logistics_tasks";
100104
+ isOneToOne: false;
100105
+ isSetofReturn: true;
100106
+ };
100107
+ };
96983
100108
  claim_print_jobs: {
96984
100109
  Args: {
96985
100110
  _agent_id: string;
@@ -97044,10 +100169,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97044
100169
  isSetofReturn: true;
97045
100170
  };
97046
100171
  };
100172
+ cleanup_floriday_stock_queue: {
100173
+ Args: never;
100174
+ Returns: undefined;
100175
+ };
97047
100176
  cleanup_old_bookings: {
97048
100177
  Args: never;
97049
100178
  Returns: undefined;
97050
100179
  };
100180
+ complete_floriday_stock_queue: {
100181
+ Args: {
100182
+ p_attempt_id?: string;
100183
+ p_error?: string;
100184
+ p_id: string;
100185
+ p_ok: boolean;
100186
+ p_permanent?: boolean;
100187
+ };
100188
+ Returns: undefined;
100189
+ };
97051
100190
  consume_bom_for_production: {
97052
100191
  Args: {
97053
100192
  p_connection_id: string;
@@ -97220,6 +100359,21 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97220
100359
  Args: never;
97221
100360
  Returns: string;
97222
100361
  };
100362
+ exact_auth_consume_calls: {
100363
+ Args: {
100364
+ _account_key: string;
100365
+ _calls?: number;
100366
+ _day_limit?: number;
100367
+ _division_code: number;
100368
+ _environment: string;
100369
+ _minute_limit?: number;
100370
+ };
100371
+ Returns: import("../integrations/supabase/types").Json;
100372
+ };
100373
+ exact_auth_prune_sync_log: {
100374
+ Args: never;
100375
+ Returns: undefined;
100376
+ };
97223
100377
  exact_decrypt: {
97224
100378
  Args: {
97225
100379
  cipher: string;
@@ -97429,6 +100583,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97429
100583
  };
97430
100584
  Returns: number;
97431
100585
  };
100586
+ get_offer_branding: {
100587
+ Args: never;
100588
+ Returns: import("../integrations/supabase/types").Json;
100589
+ };
97432
100590
  get_offer_by_link_code: {
97433
100591
  Args: {
97434
100592
  p_code: string;
@@ -97720,6 +100878,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97720
100878
  p_worker?: string;
97721
100879
  };
97722
100880
  Returns: {
100881
+ attempt_log: import("../integrations/supabase/types").Json;
100882
+ attempts: number;
97723
100883
  buffer_ref: string | null;
97724
100884
  claimed_at: string | null;
97725
100885
  claimed_by: string | null;
@@ -97729,6 +100889,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97729
100889
  due_at: string | null;
97730
100890
  error: string | null;
97731
100891
  id: string;
100892
+ last_error: string | null;
100893
+ next_attempt_at: string | null;
97732
100894
  order_ref: string;
97733
100895
  owner_module: string;
97734
100896
  payload: import("../integrations/supabase/types").Json;
@@ -97761,6 +100923,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97761
100923
  p_worker?: string;
97762
100924
  };
97763
100925
  Returns: {
100926
+ attempt_log: import("../integrations/supabase/types").Json;
100927
+ attempts: number;
97764
100928
  buffer_ref: string | null;
97765
100929
  claimed_at: string | null;
97766
100930
  claimed_by: string | null;
@@ -97770,6 +100934,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97770
100934
  due_at: string | null;
97771
100935
  error: string | null;
97772
100936
  id: string;
100937
+ last_error: string | null;
100938
+ next_attempt_at: string | null;
97773
100939
  order_ref: string;
97774
100940
  owner_module: string;
97775
100941
  payload: import("../integrations/supabase/types").Json;
@@ -97802,6 +100968,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97802
100968
  p_task_id: string;
97803
100969
  };
97804
100970
  Returns: {
100971
+ attempt_log: import("../integrations/supabase/types").Json;
100972
+ attempts: number;
97805
100973
  buffer_ref: string | null;
97806
100974
  claimed_at: string | null;
97807
100975
  claimed_by: string | null;
@@ -97811,6 +100979,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97811
100979
  due_at: string | null;
97812
100980
  error: string | null;
97813
100981
  id: string;
100982
+ last_error: string | null;
100983
+ next_attempt_at: string | null;
97814
100984
  order_ref: string;
97815
100985
  owner_module: string;
97816
100986
  payload: import("../integrations/supabase/types").Json;
@@ -97892,6 +101062,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97892
101062
  p_task_id: string;
97893
101063
  };
97894
101064
  Returns: {
101065
+ attempt_log: import("../integrations/supabase/types").Json;
101066
+ attempts: number;
97895
101067
  buffer_ref: string | null;
97896
101068
  claimed_at: string | null;
97897
101069
  claimed_by: string | null;
@@ -97901,6 +101073,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
97901
101073
  due_at: string | null;
97902
101074
  error: string | null;
97903
101075
  id: string;
101076
+ last_error: string | null;
101077
+ next_attempt_at: string | null;
97904
101078
  order_ref: string;
97905
101079
  owner_module: string;
97906
101080
  payload: import("../integrations/supabase/types").Json;
@@ -98654,6 +101828,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
98654
101828
  Args: never;
98655
101829
  Returns: undefined;
98656
101830
  };
101831
+ run_logistics_tasks_dispatch: {
101832
+ Args: never;
101833
+ Returns: undefined;
101834
+ };
98657
101835
  run_twinfield_queue_tick: {
98658
101836
  Args: never;
98659
101837
  Returns: undefined;
@@ -98894,6 +102072,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
98894
102072
  };
98895
102073
  Returns: number;
98896
102074
  };
102075
+ schedule_floriday_stock_queue_process: {
102076
+ Args: {
102077
+ p_apikey: string;
102078
+ p_url: string;
102079
+ };
102080
+ Returns: number;
102081
+ };
98897
102082
  schedule_floriday_token_refresh: {
98898
102083
  Args: {
98899
102084
  p_apikey: string;