@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.
@@ -3553,6 +3553,474 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3553
3553
  referencedColumns: ["id"];
3554
3554
  }];
3555
3555
  };
3556
+ exact_auth_call_budget: {
3557
+ Row: {
3558
+ account_key: string;
3559
+ day_count: number;
3560
+ day_date: string;
3561
+ division_code: number;
3562
+ environment: string;
3563
+ minute_count: number;
3564
+ minute_window: string;
3565
+ updated_at: string;
3566
+ };
3567
+ Insert: {
3568
+ account_key?: string;
3569
+ day_count?: number;
3570
+ day_date?: string;
3571
+ division_code?: number;
3572
+ environment: string;
3573
+ minute_count?: number;
3574
+ minute_window?: string;
3575
+ updated_at?: string;
3576
+ };
3577
+ Update: {
3578
+ account_key?: string;
3579
+ day_count?: number;
3580
+ day_date?: string;
3581
+ division_code?: number;
3582
+ environment?: string;
3583
+ minute_count?: number;
3584
+ minute_window?: string;
3585
+ updated_at?: string;
3586
+ };
3587
+ Relationships: [];
3588
+ };
3589
+ exact_auth_customers: {
3590
+ Row: {
3591
+ account_key: string;
3592
+ address_line1: string | null;
3593
+ chamber_of_commerce: string | null;
3594
+ city: string | null;
3595
+ code: string | null;
3596
+ country: string | null;
3597
+ created_at: string;
3598
+ currency: string | null;
3599
+ division_code: number | null;
3600
+ email: string | null;
3601
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3602
+ exact_id: string;
3603
+ exact_modified: string | null;
3604
+ exact_timestamp: number | null;
3605
+ id: string;
3606
+ is_active: boolean;
3607
+ name: string | null;
3608
+ phone: string | null;
3609
+ postcode: string | null;
3610
+ raw: import("../integrations/supabase/types").Json | null;
3611
+ status: string | null;
3612
+ updated_at: string;
3613
+ vat_number: string | null;
3614
+ website: string | null;
3615
+ };
3616
+ Insert: {
3617
+ account_key?: string;
3618
+ address_line1?: string | null;
3619
+ chamber_of_commerce?: string | null;
3620
+ city?: string | null;
3621
+ code?: string | null;
3622
+ country?: string | null;
3623
+ created_at?: string;
3624
+ currency?: string | null;
3625
+ division_code?: number | null;
3626
+ email?: string | null;
3627
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3628
+ exact_id: string;
3629
+ exact_modified?: string | null;
3630
+ exact_timestamp?: number | null;
3631
+ id?: string;
3632
+ is_active?: boolean;
3633
+ name?: string | null;
3634
+ phone?: string | null;
3635
+ postcode?: string | null;
3636
+ raw?: import("../integrations/supabase/types").Json | null;
3637
+ status?: string | null;
3638
+ updated_at?: string;
3639
+ vat_number?: string | null;
3640
+ website?: string | null;
3641
+ };
3642
+ Update: {
3643
+ account_key?: string;
3644
+ address_line1?: string | null;
3645
+ chamber_of_commerce?: string | null;
3646
+ city?: string | null;
3647
+ code?: string | null;
3648
+ country?: string | null;
3649
+ created_at?: string;
3650
+ currency?: string | null;
3651
+ division_code?: number | null;
3652
+ email?: string | null;
3653
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3654
+ exact_id?: string;
3655
+ exact_modified?: string | null;
3656
+ exact_timestamp?: number | null;
3657
+ id?: string;
3658
+ is_active?: boolean;
3659
+ name?: string | null;
3660
+ phone?: string | null;
3661
+ postcode?: string | null;
3662
+ raw?: import("../integrations/supabase/types").Json | null;
3663
+ status?: string | null;
3664
+ updated_at?: string;
3665
+ vat_number?: string | null;
3666
+ website?: string | null;
3667
+ };
3668
+ Relationships: [];
3669
+ };
3670
+ exact_auth_divisions: {
3671
+ Row: {
3672
+ account_key: string;
3673
+ company_name: string | null;
3674
+ created_at: string;
3675
+ division_code: number | null;
3676
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3677
+ id: string;
3678
+ last_synced_at: string | null;
3679
+ updated_at: string;
3680
+ };
3681
+ Insert: {
3682
+ account_key?: string;
3683
+ company_name?: string | null;
3684
+ created_at?: string;
3685
+ division_code?: number | null;
3686
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3687
+ id?: string;
3688
+ last_synced_at?: string | null;
3689
+ updated_at?: string;
3690
+ };
3691
+ Update: {
3692
+ account_key?: string;
3693
+ company_name?: string | null;
3694
+ created_at?: string;
3695
+ division_code?: number | null;
3696
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3697
+ id?: string;
3698
+ last_synced_at?: string | null;
3699
+ updated_at?: string;
3700
+ };
3701
+ Relationships: [];
3702
+ };
3703
+ exact_auth_invoice_lines: {
3704
+ Row: {
3705
+ account_key: string;
3706
+ amount_excl: number | null;
3707
+ created_at: string;
3708
+ description: string | null;
3709
+ discount: number | null;
3710
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3711
+ exact_id: string;
3712
+ exact_timestamp: number | null;
3713
+ id: string;
3714
+ invoice_exact_id: string;
3715
+ item_code: string | null;
3716
+ item_exact_id: string | null;
3717
+ line_number: number | null;
3718
+ quantity: number | null;
3719
+ raw: import("../integrations/supabase/types").Json | null;
3720
+ unit_price: number | null;
3721
+ updated_at: string;
3722
+ vat_amount: number | null;
3723
+ vat_code: string | null;
3724
+ };
3725
+ Insert: {
3726
+ account_key?: string;
3727
+ amount_excl?: number | null;
3728
+ created_at?: string;
3729
+ description?: string | null;
3730
+ discount?: number | null;
3731
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3732
+ exact_id: string;
3733
+ exact_timestamp?: number | null;
3734
+ id?: string;
3735
+ invoice_exact_id: string;
3736
+ item_code?: string | null;
3737
+ item_exact_id?: string | null;
3738
+ line_number?: number | null;
3739
+ quantity?: number | null;
3740
+ raw?: import("../integrations/supabase/types").Json | null;
3741
+ unit_price?: number | null;
3742
+ updated_at?: string;
3743
+ vat_amount?: number | null;
3744
+ vat_code?: string | null;
3745
+ };
3746
+ Update: {
3747
+ account_key?: string;
3748
+ amount_excl?: number | null;
3749
+ created_at?: string;
3750
+ description?: string | null;
3751
+ discount?: number | null;
3752
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3753
+ exact_id?: string;
3754
+ exact_timestamp?: number | null;
3755
+ id?: string;
3756
+ invoice_exact_id?: string;
3757
+ item_code?: string | null;
3758
+ item_exact_id?: string | null;
3759
+ line_number?: number | null;
3760
+ quantity?: number | null;
3761
+ raw?: import("../integrations/supabase/types").Json | null;
3762
+ unit_price?: number | null;
3763
+ updated_at?: string;
3764
+ vat_amount?: number | null;
3765
+ vat_code?: string | null;
3766
+ };
3767
+ Relationships: [];
3768
+ };
3769
+ exact_auth_invoices: {
3770
+ Row: {
3771
+ account_key: string;
3772
+ amount_excl: number | null;
3773
+ amount_incl: number | null;
3774
+ amount_open: number | null;
3775
+ created_at: string;
3776
+ currency: string | null;
3777
+ customer_code: string | null;
3778
+ customer_exact_id: string | null;
3779
+ customer_name: string | null;
3780
+ description: string | null;
3781
+ division_code: number | null;
3782
+ due_date: string | null;
3783
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3784
+ exact_id: string;
3785
+ exact_modified: string | null;
3786
+ exact_timestamp: number | null;
3787
+ id: string;
3788
+ invoice_date: string | null;
3789
+ invoice_number: string | null;
3790
+ order_number: string | null;
3791
+ paid_at: string | null;
3792
+ payment_status: string;
3793
+ raw: import("../integrations/supabase/types").Json | null;
3794
+ receivable_synced_at: string | null;
3795
+ status_code: number | null;
3796
+ updated_at: string;
3797
+ };
3798
+ Insert: {
3799
+ account_key?: string;
3800
+ amount_excl?: number | null;
3801
+ amount_incl?: number | null;
3802
+ amount_open?: number | null;
3803
+ created_at?: string;
3804
+ currency?: string | null;
3805
+ customer_code?: string | null;
3806
+ customer_exact_id?: string | null;
3807
+ customer_name?: string | null;
3808
+ description?: string | null;
3809
+ division_code?: number | null;
3810
+ due_date?: string | null;
3811
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3812
+ exact_id: string;
3813
+ exact_modified?: string | null;
3814
+ exact_timestamp?: number | null;
3815
+ id?: string;
3816
+ invoice_date?: string | null;
3817
+ invoice_number?: string | null;
3818
+ order_number?: string | null;
3819
+ paid_at?: string | null;
3820
+ payment_status?: string;
3821
+ raw?: import("../integrations/supabase/types").Json | null;
3822
+ receivable_synced_at?: string | null;
3823
+ status_code?: number | null;
3824
+ updated_at?: string;
3825
+ };
3826
+ Update: {
3827
+ account_key?: string;
3828
+ amount_excl?: number | null;
3829
+ amount_incl?: number | null;
3830
+ amount_open?: number | null;
3831
+ created_at?: string;
3832
+ currency?: string | null;
3833
+ customer_code?: string | null;
3834
+ customer_exact_id?: string | null;
3835
+ customer_name?: string | null;
3836
+ description?: string | null;
3837
+ division_code?: number | null;
3838
+ due_date?: string | null;
3839
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3840
+ exact_id?: string;
3841
+ exact_modified?: string | null;
3842
+ exact_timestamp?: number | null;
3843
+ id?: string;
3844
+ invoice_date?: string | null;
3845
+ invoice_number?: string | null;
3846
+ order_number?: string | null;
3847
+ paid_at?: string | null;
3848
+ payment_status?: string;
3849
+ raw?: import("../integrations/supabase/types").Json | null;
3850
+ receivable_synced_at?: string | null;
3851
+ status_code?: number | null;
3852
+ updated_at?: string;
3853
+ };
3854
+ Relationships: [];
3855
+ };
3856
+ exact_auth_items: {
3857
+ Row: {
3858
+ account_key: string;
3859
+ barcode: string | null;
3860
+ code: string | null;
3861
+ cost_price: number | null;
3862
+ created_at: string;
3863
+ description: string | null;
3864
+ division_code: number | null;
3865
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3866
+ exact_id: string;
3867
+ exact_modified: string | null;
3868
+ exact_timestamp: number | null;
3869
+ gl_account_code: string | null;
3870
+ id: string;
3871
+ is_active: boolean;
3872
+ is_sales_item: boolean | null;
3873
+ item_type: string | null;
3874
+ raw: import("../integrations/supabase/types").Json | null;
3875
+ sales_price: number | null;
3876
+ unit: string | null;
3877
+ updated_at: string;
3878
+ vat_code: string | null;
3879
+ };
3880
+ Insert: {
3881
+ account_key?: string;
3882
+ barcode?: string | null;
3883
+ code?: string | null;
3884
+ cost_price?: number | null;
3885
+ created_at?: string;
3886
+ description?: string | null;
3887
+ division_code?: number | null;
3888
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3889
+ exact_id: string;
3890
+ exact_modified?: string | null;
3891
+ exact_timestamp?: number | null;
3892
+ gl_account_code?: string | null;
3893
+ id?: string;
3894
+ is_active?: boolean;
3895
+ is_sales_item?: boolean | null;
3896
+ item_type?: string | null;
3897
+ raw?: import("../integrations/supabase/types").Json | null;
3898
+ sales_price?: number | null;
3899
+ unit?: string | null;
3900
+ updated_at?: string;
3901
+ vat_code?: string | null;
3902
+ };
3903
+ Update: {
3904
+ account_key?: string;
3905
+ barcode?: string | null;
3906
+ code?: string | null;
3907
+ cost_price?: number | null;
3908
+ created_at?: string;
3909
+ description?: string | null;
3910
+ division_code?: number | null;
3911
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3912
+ exact_id?: string;
3913
+ exact_modified?: string | null;
3914
+ exact_timestamp?: number | null;
3915
+ gl_account_code?: string | null;
3916
+ id?: string;
3917
+ is_active?: boolean;
3918
+ is_sales_item?: boolean | null;
3919
+ item_type?: string | null;
3920
+ raw?: import("../integrations/supabase/types").Json | null;
3921
+ sales_price?: number | null;
3922
+ unit?: string | null;
3923
+ updated_at?: string;
3924
+ vat_code?: string | null;
3925
+ };
3926
+ Relationships: [];
3927
+ };
3928
+ exact_auth_sync_log: {
3929
+ Row: {
3930
+ account_key: string;
3931
+ calls_used: number;
3932
+ created_at: string;
3933
+ domain: string;
3934
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3935
+ error: string | null;
3936
+ finished_at: string | null;
3937
+ id: string;
3938
+ ok: boolean;
3939
+ records: number;
3940
+ started_at: string;
3941
+ };
3942
+ Insert: {
3943
+ account_key?: string;
3944
+ calls_used?: number;
3945
+ created_at?: string;
3946
+ domain: string;
3947
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3948
+ error?: string | null;
3949
+ finished_at?: string | null;
3950
+ id?: string;
3951
+ ok?: boolean;
3952
+ records?: number;
3953
+ started_at?: string;
3954
+ };
3955
+ Update: {
3956
+ account_key?: string;
3957
+ calls_used?: number;
3958
+ created_at?: string;
3959
+ domain?: string;
3960
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3961
+ error?: string | null;
3962
+ finished_at?: string | null;
3963
+ id?: string;
3964
+ ok?: boolean;
3965
+ records?: number;
3966
+ started_at?: string;
3967
+ };
3968
+ Relationships: [];
3969
+ };
3970
+ exact_auth_sync_state: {
3971
+ Row: {
3972
+ account_key: string;
3973
+ created_at: string;
3974
+ cursor_timestamp: number;
3975
+ division_code: number | null;
3976
+ domain: string;
3977
+ duration_ms: number | null;
3978
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3979
+ initial_sync_done: boolean;
3980
+ last_error: string | null;
3981
+ last_run_at: string | null;
3982
+ last_success_at: string | null;
3983
+ locked_at: string | null;
3984
+ needs_initial_sync: boolean;
3985
+ record_count: number;
3986
+ updated_at: string;
3987
+ };
3988
+ Insert: {
3989
+ account_key?: string;
3990
+ created_at?: string;
3991
+ cursor_timestamp?: number;
3992
+ division_code?: number | null;
3993
+ domain: string;
3994
+ duration_ms?: number | null;
3995
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3996
+ initial_sync_done?: boolean;
3997
+ last_error?: string | null;
3998
+ last_run_at?: string | null;
3999
+ last_success_at?: string | null;
4000
+ locked_at?: string | null;
4001
+ needs_initial_sync?: boolean;
4002
+ record_count?: number;
4003
+ updated_at?: string;
4004
+ };
4005
+ Update: {
4006
+ account_key?: string;
4007
+ created_at?: string;
4008
+ cursor_timestamp?: number;
4009
+ division_code?: number | null;
4010
+ domain?: string;
4011
+ duration_ms?: number | null;
4012
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4013
+ initial_sync_done?: boolean;
4014
+ last_error?: string | null;
4015
+ last_run_at?: string | null;
4016
+ last_success_at?: string | null;
4017
+ locked_at?: string | null;
4018
+ needs_initial_sync?: boolean;
4019
+ record_count?: number;
4020
+ updated_at?: string;
4021
+ };
4022
+ Relationships: [];
4023
+ };
3556
4024
  exact_bulk_operation_items: {
3557
4025
  Row: {
3558
4026
  attempts: number;
@@ -5244,12 +5712,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5244
5712
  attempts: number;
5245
5713
  connection_id: string;
5246
5714
  created_at: string;
5715
+ desired_available: boolean | null;
5247
5716
  gateway_attempt_id: string | null;
5248
5717
  id: string;
5249
5718
  last_error: string | null;
5719
+ locked_at: string | null;
5720
+ locked_by: string | null;
5721
+ next_attempt_at: string;
5250
5722
  number_of_pieces: number;
5251
5723
  sent_at: string | null;
5252
5724
  status: string;
5725
+ superseded_by: string | null;
5253
5726
  trade_item_id: string;
5254
5727
  updated_at: string;
5255
5728
  user_id: string;
@@ -5258,12 +5731,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5258
5731
  attempts?: number;
5259
5732
  connection_id: string;
5260
5733
  created_at?: string;
5734
+ desired_available?: boolean | null;
5261
5735
  gateway_attempt_id?: string | null;
5262
5736
  id?: string;
5263
5737
  last_error?: string | null;
5738
+ locked_at?: string | null;
5739
+ locked_by?: string | null;
5740
+ next_attempt_at?: string;
5264
5741
  number_of_pieces?: number;
5265
5742
  sent_at?: string | null;
5266
5743
  status?: string;
5744
+ superseded_by?: string | null;
5267
5745
  trade_item_id: string;
5268
5746
  updated_at?: string;
5269
5747
  user_id: string;
@@ -5272,12 +5750,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5272
5750
  attempts?: number;
5273
5751
  connection_id?: string;
5274
5752
  created_at?: string;
5753
+ desired_available?: boolean | null;
5275
5754
  gateway_attempt_id?: string | null;
5276
5755
  id?: string;
5277
5756
  last_error?: string | null;
5757
+ locked_at?: string | null;
5758
+ locked_by?: string | null;
5759
+ next_attempt_at?: string;
5278
5760
  number_of_pieces?: number;
5279
5761
  sent_at?: string | null;
5280
5762
  status?: string;
5763
+ superseded_by?: string | null;
5281
5764
  trade_item_id?: string;
5282
5765
  updated_at?: string;
5283
5766
  user_id?: string;
@@ -8637,6 +9120,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8637
9120
  };
8638
9121
  logistics_tasks: {
8639
9122
  Row: {
9123
+ attempt_log: import("../integrations/supabase/types").Json;
9124
+ attempts: number;
8640
9125
  buffer_ref: string | null;
8641
9126
  claimed_at: string | null;
8642
9127
  claimed_by: string | null;
@@ -8646,6 +9131,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8646
9131
  due_at: string | null;
8647
9132
  error: string | null;
8648
9133
  id: string;
9134
+ last_error: string | null;
9135
+ next_attempt_at: string | null;
8649
9136
  order_ref: string;
8650
9137
  owner_module: string;
8651
9138
  payload: import("../integrations/supabase/types").Json;
@@ -8666,6 +9153,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8666
9153
  user_id: string;
8667
9154
  };
8668
9155
  Insert: {
9156
+ attempt_log?: import("../integrations/supabase/types").Json;
9157
+ attempts?: number;
8669
9158
  buffer_ref?: string | null;
8670
9159
  claimed_at?: string | null;
8671
9160
  claimed_by?: string | null;
@@ -8675,6 +9164,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8675
9164
  due_at?: string | null;
8676
9165
  error?: string | null;
8677
9166
  id?: string;
9167
+ last_error?: string | null;
9168
+ next_attempt_at?: string | null;
8678
9169
  order_ref: string;
8679
9170
  owner_module: string;
8680
9171
  payload?: import("../integrations/supabase/types").Json;
@@ -8695,6 +9186,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8695
9186
  user_id?: string;
8696
9187
  };
8697
9188
  Update: {
9189
+ attempt_log?: import("../integrations/supabase/types").Json;
9190
+ attempts?: number;
8698
9191
  buffer_ref?: string | null;
8699
9192
  claimed_at?: string | null;
8700
9193
  claimed_by?: string | null;
@@ -8704,6 +9197,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8704
9197
  due_at?: string | null;
8705
9198
  error?: string | null;
8706
9199
  id?: string;
9200
+ last_error?: string | null;
9201
+ next_attempt_at?: string | null;
8707
9202
  order_ref?: string;
8708
9203
  owner_module?: string;
8709
9204
  payload?: import("../integrations/supabase/types").Json;
@@ -10053,6 +10548,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10053
10548
  };
10054
10549
  offer_settings: {
10055
10550
  Row: {
10551
+ brand_name: string | null;
10056
10552
  button_color: string;
10057
10553
  created_at: string;
10058
10554
  default_countries: string[];
@@ -10074,6 +10570,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10074
10570
  updated_at: string;
10075
10571
  };
10076
10572
  Insert: {
10573
+ brand_name?: string | null;
10077
10574
  button_color?: string;
10078
10575
  created_at?: string;
10079
10576
  default_countries?: string[];
@@ -10095,6 +10592,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10095
10592
  updated_at?: string;
10096
10593
  };
10097
10594
  Update: {
10595
+ brand_name?: string | null;
10098
10596
  button_color?: string;
10099
10597
  created_at?: string;
10100
10598
  default_countries?: string[];
@@ -17705,6 +18203,85 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17705
18203
  };
17706
18204
  Returns: import("../integrations/supabase/types").Json;
17707
18205
  };
18206
+ claim_floriday_stock_queue: {
18207
+ Args: {
18208
+ p_limit?: number;
18209
+ p_worker?: string;
18210
+ };
18211
+ Returns: {
18212
+ attempts: number;
18213
+ connection_id: string;
18214
+ created_at: string;
18215
+ desired_available: boolean | null;
18216
+ gateway_attempt_id: string | null;
18217
+ id: string;
18218
+ last_error: string | null;
18219
+ locked_at: string | null;
18220
+ locked_by: string | null;
18221
+ next_attempt_at: string;
18222
+ number_of_pieces: number;
18223
+ sent_at: string | null;
18224
+ status: string;
18225
+ superseded_by: string | null;
18226
+ trade_item_id: string;
18227
+ updated_at: string;
18228
+ user_id: string;
18229
+ }[];
18230
+ SetofOptions: {
18231
+ from: "*";
18232
+ to: "floriday_continuous_stock_queue";
18233
+ isOneToOne: false;
18234
+ isSetofReturn: true;
18235
+ };
18236
+ };
18237
+ claim_logistics_tasks: {
18238
+ Args: {
18239
+ _limit?: number;
18240
+ _owner_module: string;
18241
+ _stale_minutes?: number;
18242
+ _task_type: string;
18243
+ _worker: string;
18244
+ };
18245
+ Returns: {
18246
+ attempt_log: import("../integrations/supabase/types").Json;
18247
+ attempts: number;
18248
+ buffer_ref: string | null;
18249
+ claimed_at: string | null;
18250
+ claimed_by: string | null;
18251
+ completed_at: string | null;
18252
+ created_at: string;
18253
+ depends_on: string[];
18254
+ due_at: string | null;
18255
+ error: string | null;
18256
+ id: string;
18257
+ last_error: string | null;
18258
+ next_attempt_at: string | null;
18259
+ order_ref: string;
18260
+ owner_module: string;
18261
+ payload: import("../integrations/supabase/types").Json;
18262
+ plan_run_id: string | null;
18263
+ planned_end: string | null;
18264
+ planned_start: string | null;
18265
+ priority: number;
18266
+ result: import("../integrations/supabase/types").Json | null;
18267
+ rule_config_id: string | null;
18268
+ rule_version: number | null;
18269
+ sequence: number;
18270
+ shadow: boolean;
18271
+ started_at: string | null;
18272
+ status: string;
18273
+ strategy_id: string | null;
18274
+ task_type: string;
18275
+ updated_at: string;
18276
+ user_id: string;
18277
+ }[];
18278
+ SetofOptions: {
18279
+ from: "*";
18280
+ to: "logistics_tasks";
18281
+ isOneToOne: false;
18282
+ isSetofReturn: true;
18283
+ };
18284
+ };
17708
18285
  claim_print_jobs: {
17709
18286
  Args: {
17710
18287
  _agent_id: string;
@@ -17769,10 +18346,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17769
18346
  isSetofReturn: true;
17770
18347
  };
17771
18348
  };
18349
+ cleanup_floriday_stock_queue: {
18350
+ Args: never;
18351
+ Returns: undefined;
18352
+ };
17772
18353
  cleanup_old_bookings: {
17773
18354
  Args: never;
17774
18355
  Returns: undefined;
17775
18356
  };
18357
+ complete_floriday_stock_queue: {
18358
+ Args: {
18359
+ p_attempt_id?: string;
18360
+ p_error?: string;
18361
+ p_id: string;
18362
+ p_ok: boolean;
18363
+ p_permanent?: boolean;
18364
+ };
18365
+ Returns: undefined;
18366
+ };
17776
18367
  consume_bom_for_production: {
17777
18368
  Args: {
17778
18369
  p_connection_id: string;
@@ -17945,6 +18536,21 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17945
18536
  Args: never;
17946
18537
  Returns: string;
17947
18538
  };
18539
+ exact_auth_consume_calls: {
18540
+ Args: {
18541
+ _account_key: string;
18542
+ _calls?: number;
18543
+ _day_limit?: number;
18544
+ _division_code: number;
18545
+ _environment: string;
18546
+ _minute_limit?: number;
18547
+ };
18548
+ Returns: import("../integrations/supabase/types").Json;
18549
+ };
18550
+ exact_auth_prune_sync_log: {
18551
+ Args: never;
18552
+ Returns: undefined;
18553
+ };
17948
18554
  exact_decrypt: {
17949
18555
  Args: {
17950
18556
  cipher: string;
@@ -18154,6 +18760,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18154
18760
  };
18155
18761
  Returns: number;
18156
18762
  };
18763
+ get_offer_branding: {
18764
+ Args: never;
18765
+ Returns: import("../integrations/supabase/types").Json;
18766
+ };
18157
18767
  get_offer_by_link_code: {
18158
18768
  Args: {
18159
18769
  p_code: string;
@@ -18445,6 +19055,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18445
19055
  p_worker?: string;
18446
19056
  };
18447
19057
  Returns: {
19058
+ attempt_log: import("../integrations/supabase/types").Json;
19059
+ attempts: number;
18448
19060
  buffer_ref: string | null;
18449
19061
  claimed_at: string | null;
18450
19062
  claimed_by: string | null;
@@ -18454,6 +19066,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18454
19066
  due_at: string | null;
18455
19067
  error: string | null;
18456
19068
  id: string;
19069
+ last_error: string | null;
19070
+ next_attempt_at: string | null;
18457
19071
  order_ref: string;
18458
19072
  owner_module: string;
18459
19073
  payload: import("../integrations/supabase/types").Json;
@@ -18486,6 +19100,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18486
19100
  p_worker?: string;
18487
19101
  };
18488
19102
  Returns: {
19103
+ attempt_log: import("../integrations/supabase/types").Json;
19104
+ attempts: number;
18489
19105
  buffer_ref: string | null;
18490
19106
  claimed_at: string | null;
18491
19107
  claimed_by: string | null;
@@ -18495,6 +19111,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18495
19111
  due_at: string | null;
18496
19112
  error: string | null;
18497
19113
  id: string;
19114
+ last_error: string | null;
19115
+ next_attempt_at: string | null;
18498
19116
  order_ref: string;
18499
19117
  owner_module: string;
18500
19118
  payload: import("../integrations/supabase/types").Json;
@@ -18527,6 +19145,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18527
19145
  p_task_id: string;
18528
19146
  };
18529
19147
  Returns: {
19148
+ attempt_log: import("../integrations/supabase/types").Json;
19149
+ attempts: number;
18530
19150
  buffer_ref: string | null;
18531
19151
  claimed_at: string | null;
18532
19152
  claimed_by: string | null;
@@ -18536,6 +19156,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18536
19156
  due_at: string | null;
18537
19157
  error: string | null;
18538
19158
  id: string;
19159
+ last_error: string | null;
19160
+ next_attempt_at: string | null;
18539
19161
  order_ref: string;
18540
19162
  owner_module: string;
18541
19163
  payload: import("../integrations/supabase/types").Json;
@@ -18617,6 +19239,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18617
19239
  p_task_id: string;
18618
19240
  };
18619
19241
  Returns: {
19242
+ attempt_log: import("../integrations/supabase/types").Json;
19243
+ attempts: number;
18620
19244
  buffer_ref: string | null;
18621
19245
  claimed_at: string | null;
18622
19246
  claimed_by: string | null;
@@ -18626,6 +19250,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18626
19250
  due_at: string | null;
18627
19251
  error: string | null;
18628
19252
  id: string;
19253
+ last_error: string | null;
19254
+ next_attempt_at: string | null;
18629
19255
  order_ref: string;
18630
19256
  owner_module: string;
18631
19257
  payload: import("../integrations/supabase/types").Json;
@@ -19379,6 +20005,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19379
20005
  Args: never;
19380
20006
  Returns: undefined;
19381
20007
  };
20008
+ run_logistics_tasks_dispatch: {
20009
+ Args: never;
20010
+ Returns: undefined;
20011
+ };
19382
20012
  run_twinfield_queue_tick: {
19383
20013
  Args: never;
19384
20014
  Returns: undefined;
@@ -19619,6 +20249,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19619
20249
  };
19620
20250
  Returns: number;
19621
20251
  };
20252
+ schedule_floriday_stock_queue_process: {
20253
+ Args: {
20254
+ p_apikey: string;
20255
+ p_url: string;
20256
+ };
20257
+ Returns: number;
20258
+ };
19622
20259
  schedule_floriday_token_refresh: {
19623
20260
  Args: {
19624
20261
  p_apikey: string;
@@ -23365,6 +24002,474 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
23365
24002
  referencedColumns: ["id"];
23366
24003
  }];
23367
24004
  };
24005
+ exact_auth_call_budget: {
24006
+ Row: {
24007
+ account_key: string;
24008
+ day_count: number;
24009
+ day_date: string;
24010
+ division_code: number;
24011
+ environment: string;
24012
+ minute_count: number;
24013
+ minute_window: string;
24014
+ updated_at: string;
24015
+ };
24016
+ Insert: {
24017
+ account_key?: string;
24018
+ day_count?: number;
24019
+ day_date?: string;
24020
+ division_code?: number;
24021
+ environment: string;
24022
+ minute_count?: number;
24023
+ minute_window?: string;
24024
+ updated_at?: string;
24025
+ };
24026
+ Update: {
24027
+ account_key?: string;
24028
+ day_count?: number;
24029
+ day_date?: string;
24030
+ division_code?: number;
24031
+ environment?: string;
24032
+ minute_count?: number;
24033
+ minute_window?: string;
24034
+ updated_at?: string;
24035
+ };
24036
+ Relationships: [];
24037
+ };
24038
+ exact_auth_customers: {
24039
+ Row: {
24040
+ account_key: string;
24041
+ address_line1: string | null;
24042
+ chamber_of_commerce: string | null;
24043
+ city: string | null;
24044
+ code: string | null;
24045
+ country: string | null;
24046
+ created_at: string;
24047
+ currency: string | null;
24048
+ division_code: number | null;
24049
+ email: string | null;
24050
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24051
+ exact_id: string;
24052
+ exact_modified: string | null;
24053
+ exact_timestamp: number | null;
24054
+ id: string;
24055
+ is_active: boolean;
24056
+ name: string | null;
24057
+ phone: string | null;
24058
+ postcode: string | null;
24059
+ raw: import("../integrations/supabase/types").Json | null;
24060
+ status: string | null;
24061
+ updated_at: string;
24062
+ vat_number: string | null;
24063
+ website: string | null;
24064
+ };
24065
+ Insert: {
24066
+ account_key?: string;
24067
+ address_line1?: string | null;
24068
+ chamber_of_commerce?: string | null;
24069
+ city?: string | null;
24070
+ code?: string | null;
24071
+ country?: string | null;
24072
+ created_at?: string;
24073
+ currency?: string | null;
24074
+ division_code?: number | null;
24075
+ email?: string | null;
24076
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24077
+ exact_id: string;
24078
+ exact_modified?: string | null;
24079
+ exact_timestamp?: number | null;
24080
+ id?: string;
24081
+ is_active?: boolean;
24082
+ name?: string | null;
24083
+ phone?: string | null;
24084
+ postcode?: string | null;
24085
+ raw?: import("../integrations/supabase/types").Json | null;
24086
+ status?: string | null;
24087
+ updated_at?: string;
24088
+ vat_number?: string | null;
24089
+ website?: string | null;
24090
+ };
24091
+ Update: {
24092
+ account_key?: string;
24093
+ address_line1?: string | null;
24094
+ chamber_of_commerce?: string | null;
24095
+ city?: string | null;
24096
+ code?: string | null;
24097
+ country?: string | null;
24098
+ created_at?: string;
24099
+ currency?: string | null;
24100
+ division_code?: number | null;
24101
+ email?: string | null;
24102
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24103
+ exact_id?: string;
24104
+ exact_modified?: string | null;
24105
+ exact_timestamp?: number | null;
24106
+ id?: string;
24107
+ is_active?: boolean;
24108
+ name?: string | null;
24109
+ phone?: string | null;
24110
+ postcode?: string | null;
24111
+ raw?: import("../integrations/supabase/types").Json | null;
24112
+ status?: string | null;
24113
+ updated_at?: string;
24114
+ vat_number?: string | null;
24115
+ website?: string | null;
24116
+ };
24117
+ Relationships: [];
24118
+ };
24119
+ exact_auth_divisions: {
24120
+ Row: {
24121
+ account_key: string;
24122
+ company_name: string | null;
24123
+ created_at: string;
24124
+ division_code: number | null;
24125
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24126
+ id: string;
24127
+ last_synced_at: string | null;
24128
+ updated_at: string;
24129
+ };
24130
+ Insert: {
24131
+ account_key?: string;
24132
+ company_name?: string | null;
24133
+ created_at?: string;
24134
+ division_code?: number | null;
24135
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24136
+ id?: string;
24137
+ last_synced_at?: string | null;
24138
+ updated_at?: string;
24139
+ };
24140
+ Update: {
24141
+ account_key?: string;
24142
+ company_name?: string | null;
24143
+ created_at?: string;
24144
+ division_code?: number | null;
24145
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24146
+ id?: string;
24147
+ last_synced_at?: string | null;
24148
+ updated_at?: string;
24149
+ };
24150
+ Relationships: [];
24151
+ };
24152
+ exact_auth_invoice_lines: {
24153
+ Row: {
24154
+ account_key: string;
24155
+ amount_excl: number | null;
24156
+ created_at: string;
24157
+ description: string | null;
24158
+ discount: number | null;
24159
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24160
+ exact_id: string;
24161
+ exact_timestamp: number | null;
24162
+ id: string;
24163
+ invoice_exact_id: string;
24164
+ item_code: string | null;
24165
+ item_exact_id: string | null;
24166
+ line_number: number | null;
24167
+ quantity: number | null;
24168
+ raw: import("../integrations/supabase/types").Json | null;
24169
+ unit_price: number | null;
24170
+ updated_at: string;
24171
+ vat_amount: number | null;
24172
+ vat_code: string | null;
24173
+ };
24174
+ Insert: {
24175
+ account_key?: string;
24176
+ amount_excl?: number | null;
24177
+ created_at?: string;
24178
+ description?: string | null;
24179
+ discount?: number | null;
24180
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24181
+ exact_id: string;
24182
+ exact_timestamp?: number | null;
24183
+ id?: string;
24184
+ invoice_exact_id: string;
24185
+ item_code?: string | null;
24186
+ item_exact_id?: string | null;
24187
+ line_number?: number | null;
24188
+ quantity?: number | null;
24189
+ raw?: import("../integrations/supabase/types").Json | null;
24190
+ unit_price?: number | null;
24191
+ updated_at?: string;
24192
+ vat_amount?: number | null;
24193
+ vat_code?: string | null;
24194
+ };
24195
+ Update: {
24196
+ account_key?: string;
24197
+ amount_excl?: number | null;
24198
+ created_at?: string;
24199
+ description?: string | null;
24200
+ discount?: number | null;
24201
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24202
+ exact_id?: string;
24203
+ exact_timestamp?: number | null;
24204
+ id?: string;
24205
+ invoice_exact_id?: string;
24206
+ item_code?: string | null;
24207
+ item_exact_id?: string | null;
24208
+ line_number?: number | null;
24209
+ quantity?: number | null;
24210
+ raw?: import("../integrations/supabase/types").Json | null;
24211
+ unit_price?: number | null;
24212
+ updated_at?: string;
24213
+ vat_amount?: number | null;
24214
+ vat_code?: string | null;
24215
+ };
24216
+ Relationships: [];
24217
+ };
24218
+ exact_auth_invoices: {
24219
+ Row: {
24220
+ account_key: string;
24221
+ amount_excl: number | null;
24222
+ amount_incl: number | null;
24223
+ amount_open: number | null;
24224
+ created_at: string;
24225
+ currency: string | null;
24226
+ customer_code: string | null;
24227
+ customer_exact_id: string | null;
24228
+ customer_name: string | null;
24229
+ description: string | null;
24230
+ division_code: number | null;
24231
+ due_date: string | null;
24232
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24233
+ exact_id: string;
24234
+ exact_modified: string | null;
24235
+ exact_timestamp: number | null;
24236
+ id: string;
24237
+ invoice_date: string | null;
24238
+ invoice_number: string | null;
24239
+ order_number: string | null;
24240
+ paid_at: string | null;
24241
+ payment_status: string;
24242
+ raw: import("../integrations/supabase/types").Json | null;
24243
+ receivable_synced_at: string | null;
24244
+ status_code: number | null;
24245
+ updated_at: string;
24246
+ };
24247
+ Insert: {
24248
+ account_key?: string;
24249
+ amount_excl?: number | null;
24250
+ amount_incl?: number | null;
24251
+ amount_open?: number | null;
24252
+ created_at?: string;
24253
+ currency?: string | null;
24254
+ customer_code?: string | null;
24255
+ customer_exact_id?: string | null;
24256
+ customer_name?: string | null;
24257
+ description?: string | null;
24258
+ division_code?: number | null;
24259
+ due_date?: string | null;
24260
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24261
+ exact_id: string;
24262
+ exact_modified?: string | null;
24263
+ exact_timestamp?: number | null;
24264
+ id?: string;
24265
+ invoice_date?: string | null;
24266
+ invoice_number?: string | null;
24267
+ order_number?: string | null;
24268
+ paid_at?: string | null;
24269
+ payment_status?: string;
24270
+ raw?: import("../integrations/supabase/types").Json | null;
24271
+ receivable_synced_at?: string | null;
24272
+ status_code?: number | null;
24273
+ updated_at?: string;
24274
+ };
24275
+ Update: {
24276
+ account_key?: string;
24277
+ amount_excl?: number | null;
24278
+ amount_incl?: number | null;
24279
+ amount_open?: number | null;
24280
+ created_at?: string;
24281
+ currency?: string | null;
24282
+ customer_code?: string | null;
24283
+ customer_exact_id?: string | null;
24284
+ customer_name?: string | null;
24285
+ description?: string | null;
24286
+ division_code?: number | null;
24287
+ due_date?: string | null;
24288
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24289
+ exact_id?: string;
24290
+ exact_modified?: string | null;
24291
+ exact_timestamp?: number | null;
24292
+ id?: string;
24293
+ invoice_date?: string | null;
24294
+ invoice_number?: string | null;
24295
+ order_number?: string | null;
24296
+ paid_at?: string | null;
24297
+ payment_status?: string;
24298
+ raw?: import("../integrations/supabase/types").Json | null;
24299
+ receivable_synced_at?: string | null;
24300
+ status_code?: number | null;
24301
+ updated_at?: string;
24302
+ };
24303
+ Relationships: [];
24304
+ };
24305
+ exact_auth_items: {
24306
+ Row: {
24307
+ account_key: string;
24308
+ barcode: string | null;
24309
+ code: string | null;
24310
+ cost_price: number | null;
24311
+ created_at: string;
24312
+ description: string | null;
24313
+ division_code: number | null;
24314
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24315
+ exact_id: string;
24316
+ exact_modified: string | null;
24317
+ exact_timestamp: number | null;
24318
+ gl_account_code: string | null;
24319
+ id: string;
24320
+ is_active: boolean;
24321
+ is_sales_item: boolean | null;
24322
+ item_type: string | null;
24323
+ raw: import("../integrations/supabase/types").Json | null;
24324
+ sales_price: number | null;
24325
+ unit: string | null;
24326
+ updated_at: string;
24327
+ vat_code: string | null;
24328
+ };
24329
+ Insert: {
24330
+ account_key?: string;
24331
+ barcode?: string | null;
24332
+ code?: string | null;
24333
+ cost_price?: number | null;
24334
+ created_at?: string;
24335
+ description?: string | null;
24336
+ division_code?: number | null;
24337
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24338
+ exact_id: string;
24339
+ exact_modified?: string | null;
24340
+ exact_timestamp?: number | null;
24341
+ gl_account_code?: string | null;
24342
+ id?: string;
24343
+ is_active?: boolean;
24344
+ is_sales_item?: boolean | null;
24345
+ item_type?: string | null;
24346
+ raw?: import("../integrations/supabase/types").Json | null;
24347
+ sales_price?: number | null;
24348
+ unit?: string | null;
24349
+ updated_at?: string;
24350
+ vat_code?: string | null;
24351
+ };
24352
+ Update: {
24353
+ account_key?: string;
24354
+ barcode?: string | null;
24355
+ code?: string | null;
24356
+ cost_price?: number | null;
24357
+ created_at?: string;
24358
+ description?: string | null;
24359
+ division_code?: number | null;
24360
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24361
+ exact_id?: string;
24362
+ exact_modified?: string | null;
24363
+ exact_timestamp?: number | null;
24364
+ gl_account_code?: string | null;
24365
+ id?: string;
24366
+ is_active?: boolean;
24367
+ is_sales_item?: boolean | null;
24368
+ item_type?: string | null;
24369
+ raw?: import("../integrations/supabase/types").Json | null;
24370
+ sales_price?: number | null;
24371
+ unit?: string | null;
24372
+ updated_at?: string;
24373
+ vat_code?: string | null;
24374
+ };
24375
+ Relationships: [];
24376
+ };
24377
+ exact_auth_sync_log: {
24378
+ Row: {
24379
+ account_key: string;
24380
+ calls_used: number;
24381
+ created_at: string;
24382
+ domain: string;
24383
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24384
+ error: string | null;
24385
+ finished_at: string | null;
24386
+ id: string;
24387
+ ok: boolean;
24388
+ records: number;
24389
+ started_at: string;
24390
+ };
24391
+ Insert: {
24392
+ account_key?: string;
24393
+ calls_used?: number;
24394
+ created_at?: string;
24395
+ domain: string;
24396
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24397
+ error?: string | null;
24398
+ finished_at?: string | null;
24399
+ id?: string;
24400
+ ok?: boolean;
24401
+ records?: number;
24402
+ started_at?: string;
24403
+ };
24404
+ Update: {
24405
+ account_key?: string;
24406
+ calls_used?: number;
24407
+ created_at?: string;
24408
+ domain?: string;
24409
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24410
+ error?: string | null;
24411
+ finished_at?: string | null;
24412
+ id?: string;
24413
+ ok?: boolean;
24414
+ records?: number;
24415
+ started_at?: string;
24416
+ };
24417
+ Relationships: [];
24418
+ };
24419
+ exact_auth_sync_state: {
24420
+ Row: {
24421
+ account_key: string;
24422
+ created_at: string;
24423
+ cursor_timestamp: number;
24424
+ division_code: number | null;
24425
+ domain: string;
24426
+ duration_ms: number | null;
24427
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24428
+ initial_sync_done: boolean;
24429
+ last_error: string | null;
24430
+ last_run_at: string | null;
24431
+ last_success_at: string | null;
24432
+ locked_at: string | null;
24433
+ needs_initial_sync: boolean;
24434
+ record_count: number;
24435
+ updated_at: string;
24436
+ };
24437
+ Insert: {
24438
+ account_key?: string;
24439
+ created_at?: string;
24440
+ cursor_timestamp?: number;
24441
+ division_code?: number | null;
24442
+ domain: string;
24443
+ duration_ms?: number | null;
24444
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24445
+ initial_sync_done?: boolean;
24446
+ last_error?: string | null;
24447
+ last_run_at?: string | null;
24448
+ last_success_at?: string | null;
24449
+ locked_at?: string | null;
24450
+ needs_initial_sync?: boolean;
24451
+ record_count?: number;
24452
+ updated_at?: string;
24453
+ };
24454
+ Update: {
24455
+ account_key?: string;
24456
+ created_at?: string;
24457
+ cursor_timestamp?: number;
24458
+ division_code?: number | null;
24459
+ domain?: string;
24460
+ duration_ms?: number | null;
24461
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24462
+ initial_sync_done?: boolean;
24463
+ last_error?: string | null;
24464
+ last_run_at?: string | null;
24465
+ last_success_at?: string | null;
24466
+ locked_at?: string | null;
24467
+ needs_initial_sync?: boolean;
24468
+ record_count?: number;
24469
+ updated_at?: string;
24470
+ };
24471
+ Relationships: [];
24472
+ };
23368
24473
  exact_bulk_operation_items: {
23369
24474
  Row: {
23370
24475
  attempts: number;
@@ -25056,12 +26161,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25056
26161
  attempts: number;
25057
26162
  connection_id: string;
25058
26163
  created_at: string;
26164
+ desired_available: boolean | null;
25059
26165
  gateway_attempt_id: string | null;
25060
26166
  id: string;
25061
26167
  last_error: string | null;
26168
+ locked_at: string | null;
26169
+ locked_by: string | null;
26170
+ next_attempt_at: string;
25062
26171
  number_of_pieces: number;
25063
26172
  sent_at: string | null;
25064
26173
  status: string;
26174
+ superseded_by: string | null;
25065
26175
  trade_item_id: string;
25066
26176
  updated_at: string;
25067
26177
  user_id: string;
@@ -25070,12 +26180,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25070
26180
  attempts?: number;
25071
26181
  connection_id: string;
25072
26182
  created_at?: string;
26183
+ desired_available?: boolean | null;
25073
26184
  gateway_attempt_id?: string | null;
25074
26185
  id?: string;
25075
26186
  last_error?: string | null;
26187
+ locked_at?: string | null;
26188
+ locked_by?: string | null;
26189
+ next_attempt_at?: string;
25076
26190
  number_of_pieces?: number;
25077
26191
  sent_at?: string | null;
25078
26192
  status?: string;
26193
+ superseded_by?: string | null;
25079
26194
  trade_item_id: string;
25080
26195
  updated_at?: string;
25081
26196
  user_id: string;
@@ -25084,12 +26199,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25084
26199
  attempts?: number;
25085
26200
  connection_id?: string;
25086
26201
  created_at?: string;
26202
+ desired_available?: boolean | null;
25087
26203
  gateway_attempt_id?: string | null;
25088
26204
  id?: string;
25089
26205
  last_error?: string | null;
26206
+ locked_at?: string | null;
26207
+ locked_by?: string | null;
26208
+ next_attempt_at?: string;
25090
26209
  number_of_pieces?: number;
25091
26210
  sent_at?: string | null;
25092
26211
  status?: string;
26212
+ superseded_by?: string | null;
25093
26213
  trade_item_id?: string;
25094
26214
  updated_at?: string;
25095
26215
  user_id?: string;
@@ -28449,6 +29569,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28449
29569
  };
28450
29570
  logistics_tasks: {
28451
29571
  Row: {
29572
+ attempt_log: import("../integrations/supabase/types").Json;
29573
+ attempts: number;
28452
29574
  buffer_ref: string | null;
28453
29575
  claimed_at: string | null;
28454
29576
  claimed_by: string | null;
@@ -28458,6 +29580,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28458
29580
  due_at: string | null;
28459
29581
  error: string | null;
28460
29582
  id: string;
29583
+ last_error: string | null;
29584
+ next_attempt_at: string | null;
28461
29585
  order_ref: string;
28462
29586
  owner_module: string;
28463
29587
  payload: import("../integrations/supabase/types").Json;
@@ -28478,6 +29602,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28478
29602
  user_id: string;
28479
29603
  };
28480
29604
  Insert: {
29605
+ attempt_log?: import("../integrations/supabase/types").Json;
29606
+ attempts?: number;
28481
29607
  buffer_ref?: string | null;
28482
29608
  claimed_at?: string | null;
28483
29609
  claimed_by?: string | null;
@@ -28487,6 +29613,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28487
29613
  due_at?: string | null;
28488
29614
  error?: string | null;
28489
29615
  id?: string;
29616
+ last_error?: string | null;
29617
+ next_attempt_at?: string | null;
28490
29618
  order_ref: string;
28491
29619
  owner_module: string;
28492
29620
  payload?: import("../integrations/supabase/types").Json;
@@ -28507,6 +29635,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28507
29635
  user_id?: string;
28508
29636
  };
28509
29637
  Update: {
29638
+ attempt_log?: import("../integrations/supabase/types").Json;
29639
+ attempts?: number;
28510
29640
  buffer_ref?: string | null;
28511
29641
  claimed_at?: string | null;
28512
29642
  claimed_by?: string | null;
@@ -28516,6 +29646,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28516
29646
  due_at?: string | null;
28517
29647
  error?: string | null;
28518
29648
  id?: string;
29649
+ last_error?: string | null;
29650
+ next_attempt_at?: string | null;
28519
29651
  order_ref?: string;
28520
29652
  owner_module?: string;
28521
29653
  payload?: import("../integrations/supabase/types").Json;
@@ -29865,6 +30997,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29865
30997
  };
29866
30998
  offer_settings: {
29867
30999
  Row: {
31000
+ brand_name: string | null;
29868
31001
  button_color: string;
29869
31002
  created_at: string;
29870
31003
  default_countries: string[];
@@ -29886,6 +31019,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29886
31019
  updated_at: string;
29887
31020
  };
29888
31021
  Insert: {
31022
+ brand_name?: string | null;
29889
31023
  button_color?: string;
29890
31024
  created_at?: string;
29891
31025
  default_countries?: string[];
@@ -29907,6 +31041,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29907
31041
  updated_at?: string;
29908
31042
  };
29909
31043
  Update: {
31044
+ brand_name?: string | null;
29910
31045
  button_color?: string;
29911
31046
  created_at?: string;
29912
31047
  default_countries?: string[];
@@ -37517,6 +38652,85 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
37517
38652
  };
37518
38653
  Returns: import("../integrations/supabase/types").Json;
37519
38654
  };
38655
+ claim_floriday_stock_queue: {
38656
+ Args: {
38657
+ p_limit?: number;
38658
+ p_worker?: string;
38659
+ };
38660
+ Returns: {
38661
+ attempts: number;
38662
+ connection_id: string;
38663
+ created_at: string;
38664
+ desired_available: boolean | null;
38665
+ gateway_attempt_id: string | null;
38666
+ id: string;
38667
+ last_error: string | null;
38668
+ locked_at: string | null;
38669
+ locked_by: string | null;
38670
+ next_attempt_at: string;
38671
+ number_of_pieces: number;
38672
+ sent_at: string | null;
38673
+ status: string;
38674
+ superseded_by: string | null;
38675
+ trade_item_id: string;
38676
+ updated_at: string;
38677
+ user_id: string;
38678
+ }[];
38679
+ SetofOptions: {
38680
+ from: "*";
38681
+ to: "floriday_continuous_stock_queue";
38682
+ isOneToOne: false;
38683
+ isSetofReturn: true;
38684
+ };
38685
+ };
38686
+ claim_logistics_tasks: {
38687
+ Args: {
38688
+ _limit?: number;
38689
+ _owner_module: string;
38690
+ _stale_minutes?: number;
38691
+ _task_type: string;
38692
+ _worker: string;
38693
+ };
38694
+ Returns: {
38695
+ attempt_log: import("../integrations/supabase/types").Json;
38696
+ attempts: number;
38697
+ buffer_ref: string | null;
38698
+ claimed_at: string | null;
38699
+ claimed_by: string | null;
38700
+ completed_at: string | null;
38701
+ created_at: string;
38702
+ depends_on: string[];
38703
+ due_at: string | null;
38704
+ error: string | null;
38705
+ id: string;
38706
+ last_error: string | null;
38707
+ next_attempt_at: string | null;
38708
+ order_ref: string;
38709
+ owner_module: string;
38710
+ payload: import("../integrations/supabase/types").Json;
38711
+ plan_run_id: string | null;
38712
+ planned_end: string | null;
38713
+ planned_start: string | null;
38714
+ priority: number;
38715
+ result: import("../integrations/supabase/types").Json | null;
38716
+ rule_config_id: string | null;
38717
+ rule_version: number | null;
38718
+ sequence: number;
38719
+ shadow: boolean;
38720
+ started_at: string | null;
38721
+ status: string;
38722
+ strategy_id: string | null;
38723
+ task_type: string;
38724
+ updated_at: string;
38725
+ user_id: string;
38726
+ }[];
38727
+ SetofOptions: {
38728
+ from: "*";
38729
+ to: "logistics_tasks";
38730
+ isOneToOne: false;
38731
+ isSetofReturn: true;
38732
+ };
38733
+ };
37520
38734
  claim_print_jobs: {
37521
38735
  Args: {
37522
38736
  _agent_id: string;
@@ -37581,10 +38795,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
37581
38795
  isSetofReturn: true;
37582
38796
  };
37583
38797
  };
38798
+ cleanup_floriday_stock_queue: {
38799
+ Args: never;
38800
+ Returns: undefined;
38801
+ };
37584
38802
  cleanup_old_bookings: {
37585
38803
  Args: never;
37586
38804
  Returns: undefined;
37587
38805
  };
38806
+ complete_floriday_stock_queue: {
38807
+ Args: {
38808
+ p_attempt_id?: string;
38809
+ p_error?: string;
38810
+ p_id: string;
38811
+ p_ok: boolean;
38812
+ p_permanent?: boolean;
38813
+ };
38814
+ Returns: undefined;
38815
+ };
37588
38816
  consume_bom_for_production: {
37589
38817
  Args: {
37590
38818
  p_connection_id: string;
@@ -37757,6 +38985,21 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
37757
38985
  Args: never;
37758
38986
  Returns: string;
37759
38987
  };
38988
+ exact_auth_consume_calls: {
38989
+ Args: {
38990
+ _account_key: string;
38991
+ _calls?: number;
38992
+ _day_limit?: number;
38993
+ _division_code: number;
38994
+ _environment: string;
38995
+ _minute_limit?: number;
38996
+ };
38997
+ Returns: import("../integrations/supabase/types").Json;
38998
+ };
38999
+ exact_auth_prune_sync_log: {
39000
+ Args: never;
39001
+ Returns: undefined;
39002
+ };
37760
39003
  exact_decrypt: {
37761
39004
  Args: {
37762
39005
  cipher: string;
@@ -37966,6 +39209,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
37966
39209
  };
37967
39210
  Returns: number;
37968
39211
  };
39212
+ get_offer_branding: {
39213
+ Args: never;
39214
+ Returns: import("../integrations/supabase/types").Json;
39215
+ };
37969
39216
  get_offer_by_link_code: {
37970
39217
  Args: {
37971
39218
  p_code: string;
@@ -38257,6 +39504,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38257
39504
  p_worker?: string;
38258
39505
  };
38259
39506
  Returns: {
39507
+ attempt_log: import("../integrations/supabase/types").Json;
39508
+ attempts: number;
38260
39509
  buffer_ref: string | null;
38261
39510
  claimed_at: string | null;
38262
39511
  claimed_by: string | null;
@@ -38266,6 +39515,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38266
39515
  due_at: string | null;
38267
39516
  error: string | null;
38268
39517
  id: string;
39518
+ last_error: string | null;
39519
+ next_attempt_at: string | null;
38269
39520
  order_ref: string;
38270
39521
  owner_module: string;
38271
39522
  payload: import("../integrations/supabase/types").Json;
@@ -38298,6 +39549,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38298
39549
  p_worker?: string;
38299
39550
  };
38300
39551
  Returns: {
39552
+ attempt_log: import("../integrations/supabase/types").Json;
39553
+ attempts: number;
38301
39554
  buffer_ref: string | null;
38302
39555
  claimed_at: string | null;
38303
39556
  claimed_by: string | null;
@@ -38307,6 +39560,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38307
39560
  due_at: string | null;
38308
39561
  error: string | null;
38309
39562
  id: string;
39563
+ last_error: string | null;
39564
+ next_attempt_at: string | null;
38310
39565
  order_ref: string;
38311
39566
  owner_module: string;
38312
39567
  payload: import("../integrations/supabase/types").Json;
@@ -38339,6 +39594,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38339
39594
  p_task_id: string;
38340
39595
  };
38341
39596
  Returns: {
39597
+ attempt_log: import("../integrations/supabase/types").Json;
39598
+ attempts: number;
38342
39599
  buffer_ref: string | null;
38343
39600
  claimed_at: string | null;
38344
39601
  claimed_by: string | null;
@@ -38348,6 +39605,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38348
39605
  due_at: string | null;
38349
39606
  error: string | null;
38350
39607
  id: string;
39608
+ last_error: string | null;
39609
+ next_attempt_at: string | null;
38351
39610
  order_ref: string;
38352
39611
  owner_module: string;
38353
39612
  payload: import("../integrations/supabase/types").Json;
@@ -38429,6 +39688,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38429
39688
  p_task_id: string;
38430
39689
  };
38431
39690
  Returns: {
39691
+ attempt_log: import("../integrations/supabase/types").Json;
39692
+ attempts: number;
38432
39693
  buffer_ref: string | null;
38433
39694
  claimed_at: string | null;
38434
39695
  claimed_by: string | null;
@@ -38438,6 +39699,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38438
39699
  due_at: string | null;
38439
39700
  error: string | null;
38440
39701
  id: string;
39702
+ last_error: string | null;
39703
+ next_attempt_at: string | null;
38441
39704
  order_ref: string;
38442
39705
  owner_module: string;
38443
39706
  payload: import("../integrations/supabase/types").Json;
@@ -39191,6 +40454,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
39191
40454
  Args: never;
39192
40455
  Returns: undefined;
39193
40456
  };
40457
+ run_logistics_tasks_dispatch: {
40458
+ Args: never;
40459
+ Returns: undefined;
40460
+ };
39194
40461
  run_twinfield_queue_tick: {
39195
40462
  Args: never;
39196
40463
  Returns: undefined;
@@ -39431,6 +40698,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
39431
40698
  };
39432
40699
  Returns: number;
39433
40700
  };
40701
+ schedule_floriday_stock_queue_process: {
40702
+ Args: {
40703
+ p_apikey: string;
40704
+ p_url: string;
40705
+ };
40706
+ Returns: number;
40707
+ };
39434
40708
  schedule_floriday_token_refresh: {
39435
40709
  Args: {
39436
40710
  p_apikey: string;