@flowselections/floriday-klanten-module 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist-lib/components/klanten/BewerkKlant.d.ts +6 -1
  2. package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/BewerkKlant.js +7 -4
  4. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -2
  6. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts +12 -0
  7. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts.map +1 -0
  8. package/dist-lib/components/klanten/KlantBewerkenDialog.js +27 -0
  9. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/KlantDetail.js +5 -3
  11. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  12. package/dist-lib/components/klanten/KlantenOverzicht.js +65 -11
  13. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts +7 -1
  14. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
  15. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +14 -7
  16. package/dist-lib/index.d.ts +1 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +1 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +745 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +745 -0
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +745 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +745 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +2411 -176
  28. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/accounting.functions.d.ts +2411 -176
  30. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customer-analytics.functions.d.ts +745 -0
  32. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/customer-notes.functions.d.ts +1490 -0
  34. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/customer-revenue.functions.d.ts +20582 -0
  36. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -0
  37. package/dist-lib/lib/customer-revenue.functions.js +124 -0
  38. package/dist-lib/lib/customers.functions.d.ts +6705 -0
  39. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/delivery-locations.functions.d.ts +3332 -352
  41. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/external-customers.functions.d.ts +3332 -352
  43. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-assortment.functions.d.ts +745 -0
  45. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-discounts.functions.d.ts +1490 -0
  47. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-trade-items.functions.d.ts +745 -0
  49. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/local-discounts.functions.d.ts +5215 -0
  51. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/logistics-events.functions.d.ts +745 -0
  53. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/logistics-strategy.functions.d.ts +3332 -352
  55. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/overdue-invoices.functions.d.ts +745 -0
  57. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/price-groups-local.functions.d.ts +5215 -0
  59. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/price-groups.functions.d.ts +745 -0
  61. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/twinfield-adopt.functions.d.ts +1490 -0
  63. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/twinfield-ledger.functions.d.ts +745 -0
  65. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  66. package/package.json +2 -2
@@ -3545,6 +3545,474 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
3545
3545
  referencedColumns: ["id"];
3546
3546
  }];
3547
3547
  };
3548
+ exact_auth_call_budget: {
3549
+ Row: {
3550
+ account_key: string;
3551
+ day_count: number;
3552
+ day_date: string;
3553
+ division_code: number;
3554
+ environment: string;
3555
+ minute_count: number;
3556
+ minute_window: string;
3557
+ updated_at: string;
3558
+ };
3559
+ Insert: {
3560
+ account_key?: string;
3561
+ day_count?: number;
3562
+ day_date?: string;
3563
+ division_code?: number;
3564
+ environment: string;
3565
+ minute_count?: number;
3566
+ minute_window?: string;
3567
+ updated_at?: string;
3568
+ };
3569
+ Update: {
3570
+ account_key?: string;
3571
+ day_count?: number;
3572
+ day_date?: string;
3573
+ division_code?: number;
3574
+ environment?: string;
3575
+ minute_count?: number;
3576
+ minute_window?: string;
3577
+ updated_at?: string;
3578
+ };
3579
+ Relationships: [];
3580
+ };
3581
+ exact_auth_customers: {
3582
+ Row: {
3583
+ account_key: string;
3584
+ address_line1: string | null;
3585
+ chamber_of_commerce: string | null;
3586
+ city: string | null;
3587
+ code: string | null;
3588
+ country: string | null;
3589
+ created_at: string;
3590
+ currency: string | null;
3591
+ division_code: number | null;
3592
+ email: string | null;
3593
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3594
+ exact_id: string;
3595
+ exact_modified: string | null;
3596
+ exact_timestamp: number | null;
3597
+ id: string;
3598
+ is_active: boolean;
3599
+ name: string | null;
3600
+ phone: string | null;
3601
+ postcode: string | null;
3602
+ raw: import("../integrations/supabase/types").Json | null;
3603
+ status: string | null;
3604
+ updated_at: string;
3605
+ vat_number: string | null;
3606
+ website: string | null;
3607
+ };
3608
+ Insert: {
3609
+ account_key?: string;
3610
+ address_line1?: string | null;
3611
+ chamber_of_commerce?: string | null;
3612
+ city?: string | null;
3613
+ code?: string | null;
3614
+ country?: string | null;
3615
+ created_at?: string;
3616
+ currency?: string | null;
3617
+ division_code?: number | null;
3618
+ email?: string | null;
3619
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3620
+ exact_id: string;
3621
+ exact_modified?: string | null;
3622
+ exact_timestamp?: number | null;
3623
+ id?: string;
3624
+ is_active?: boolean;
3625
+ name?: string | null;
3626
+ phone?: string | null;
3627
+ postcode?: string | null;
3628
+ raw?: import("../integrations/supabase/types").Json | null;
3629
+ status?: string | null;
3630
+ updated_at?: string;
3631
+ vat_number?: string | null;
3632
+ website?: string | null;
3633
+ };
3634
+ Update: {
3635
+ account_key?: string;
3636
+ address_line1?: string | null;
3637
+ chamber_of_commerce?: string | null;
3638
+ city?: string | null;
3639
+ code?: string | null;
3640
+ country?: string | null;
3641
+ created_at?: string;
3642
+ currency?: string | null;
3643
+ division_code?: number | null;
3644
+ email?: string | null;
3645
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3646
+ exact_id?: string;
3647
+ exact_modified?: string | null;
3648
+ exact_timestamp?: number | null;
3649
+ id?: string;
3650
+ is_active?: boolean;
3651
+ name?: string | null;
3652
+ phone?: string | null;
3653
+ postcode?: string | null;
3654
+ raw?: import("../integrations/supabase/types").Json | null;
3655
+ status?: string | null;
3656
+ updated_at?: string;
3657
+ vat_number?: string | null;
3658
+ website?: string | null;
3659
+ };
3660
+ Relationships: [];
3661
+ };
3662
+ exact_auth_divisions: {
3663
+ Row: {
3664
+ account_key: string;
3665
+ company_name: string | null;
3666
+ created_at: string;
3667
+ division_code: number | null;
3668
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3669
+ id: string;
3670
+ last_synced_at: string | null;
3671
+ updated_at: string;
3672
+ };
3673
+ Insert: {
3674
+ account_key?: string;
3675
+ company_name?: string | null;
3676
+ created_at?: string;
3677
+ division_code?: number | null;
3678
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3679
+ id?: string;
3680
+ last_synced_at?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ account_key?: string;
3685
+ company_name?: string | null;
3686
+ created_at?: string;
3687
+ division_code?: number | null;
3688
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3689
+ id?: string;
3690
+ last_synced_at?: string | null;
3691
+ updated_at?: string;
3692
+ };
3693
+ Relationships: [];
3694
+ };
3695
+ exact_auth_invoice_lines: {
3696
+ Row: {
3697
+ account_key: string;
3698
+ amount_excl: number | null;
3699
+ created_at: string;
3700
+ description: string | null;
3701
+ discount: number | null;
3702
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3703
+ exact_id: string;
3704
+ exact_timestamp: number | null;
3705
+ id: string;
3706
+ invoice_exact_id: string;
3707
+ item_code: string | null;
3708
+ item_exact_id: string | null;
3709
+ line_number: number | null;
3710
+ quantity: number | null;
3711
+ raw: import("../integrations/supabase/types").Json | null;
3712
+ unit_price: number | null;
3713
+ updated_at: string;
3714
+ vat_amount: number | null;
3715
+ vat_code: string | null;
3716
+ };
3717
+ Insert: {
3718
+ account_key?: string;
3719
+ amount_excl?: number | null;
3720
+ created_at?: string;
3721
+ description?: string | null;
3722
+ discount?: number | null;
3723
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3724
+ exact_id: string;
3725
+ exact_timestamp?: number | null;
3726
+ id?: string;
3727
+ invoice_exact_id: string;
3728
+ item_code?: string | null;
3729
+ item_exact_id?: string | null;
3730
+ line_number?: number | null;
3731
+ quantity?: number | null;
3732
+ raw?: import("../integrations/supabase/types").Json | null;
3733
+ unit_price?: number | null;
3734
+ updated_at?: string;
3735
+ vat_amount?: number | null;
3736
+ vat_code?: string | null;
3737
+ };
3738
+ Update: {
3739
+ account_key?: string;
3740
+ amount_excl?: number | null;
3741
+ created_at?: string;
3742
+ description?: string | null;
3743
+ discount?: number | null;
3744
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3745
+ exact_id?: string;
3746
+ exact_timestamp?: number | null;
3747
+ id?: string;
3748
+ invoice_exact_id?: string;
3749
+ item_code?: string | null;
3750
+ item_exact_id?: string | null;
3751
+ line_number?: number | null;
3752
+ quantity?: number | null;
3753
+ raw?: import("../integrations/supabase/types").Json | null;
3754
+ unit_price?: number | null;
3755
+ updated_at?: string;
3756
+ vat_amount?: number | null;
3757
+ vat_code?: string | null;
3758
+ };
3759
+ Relationships: [];
3760
+ };
3761
+ exact_auth_invoices: {
3762
+ Row: {
3763
+ account_key: string;
3764
+ amount_excl: number | null;
3765
+ amount_incl: number | null;
3766
+ amount_open: number | null;
3767
+ created_at: string;
3768
+ currency: string | null;
3769
+ customer_code: string | null;
3770
+ customer_exact_id: string | null;
3771
+ customer_name: string | null;
3772
+ description: string | null;
3773
+ division_code: number | null;
3774
+ due_date: string | null;
3775
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3776
+ exact_id: string;
3777
+ exact_modified: string | null;
3778
+ exact_timestamp: number | null;
3779
+ id: string;
3780
+ invoice_date: string | null;
3781
+ invoice_number: string | null;
3782
+ order_number: string | null;
3783
+ paid_at: string | null;
3784
+ payment_status: string;
3785
+ raw: import("../integrations/supabase/types").Json | null;
3786
+ receivable_synced_at: string | null;
3787
+ status_code: number | null;
3788
+ updated_at: string;
3789
+ };
3790
+ Insert: {
3791
+ account_key?: string;
3792
+ amount_excl?: number | null;
3793
+ amount_incl?: number | null;
3794
+ amount_open?: number | null;
3795
+ created_at?: string;
3796
+ currency?: string | null;
3797
+ customer_code?: string | null;
3798
+ customer_exact_id?: string | null;
3799
+ customer_name?: string | null;
3800
+ description?: string | null;
3801
+ division_code?: number | null;
3802
+ due_date?: string | null;
3803
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3804
+ exact_id: string;
3805
+ exact_modified?: string | null;
3806
+ exact_timestamp?: number | null;
3807
+ id?: string;
3808
+ invoice_date?: string | null;
3809
+ invoice_number?: string | null;
3810
+ order_number?: string | null;
3811
+ paid_at?: string | null;
3812
+ payment_status?: string;
3813
+ raw?: import("../integrations/supabase/types").Json | null;
3814
+ receivable_synced_at?: string | null;
3815
+ status_code?: number | null;
3816
+ updated_at?: string;
3817
+ };
3818
+ Update: {
3819
+ account_key?: string;
3820
+ amount_excl?: number | null;
3821
+ amount_incl?: number | null;
3822
+ amount_open?: number | null;
3823
+ created_at?: string;
3824
+ currency?: string | null;
3825
+ customer_code?: string | null;
3826
+ customer_exact_id?: string | null;
3827
+ customer_name?: string | null;
3828
+ description?: string | null;
3829
+ division_code?: number | null;
3830
+ due_date?: string | null;
3831
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3832
+ exact_id?: string;
3833
+ exact_modified?: string | null;
3834
+ exact_timestamp?: number | null;
3835
+ id?: string;
3836
+ invoice_date?: string | null;
3837
+ invoice_number?: string | null;
3838
+ order_number?: string | null;
3839
+ paid_at?: string | null;
3840
+ payment_status?: string;
3841
+ raw?: import("../integrations/supabase/types").Json | null;
3842
+ receivable_synced_at?: string | null;
3843
+ status_code?: number | null;
3844
+ updated_at?: string;
3845
+ };
3846
+ Relationships: [];
3847
+ };
3848
+ exact_auth_items: {
3849
+ Row: {
3850
+ account_key: string;
3851
+ barcode: string | null;
3852
+ code: string | null;
3853
+ cost_price: number | null;
3854
+ created_at: string;
3855
+ description: string | null;
3856
+ division_code: number | null;
3857
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3858
+ exact_id: string;
3859
+ exact_modified: string | null;
3860
+ exact_timestamp: number | null;
3861
+ gl_account_code: string | null;
3862
+ id: string;
3863
+ is_active: boolean;
3864
+ is_sales_item: boolean | null;
3865
+ item_type: string | null;
3866
+ raw: import("../integrations/supabase/types").Json | null;
3867
+ sales_price: number | null;
3868
+ unit: string | null;
3869
+ updated_at: string;
3870
+ vat_code: string | null;
3871
+ };
3872
+ Insert: {
3873
+ account_key?: string;
3874
+ barcode?: string | null;
3875
+ code?: string | null;
3876
+ cost_price?: number | null;
3877
+ created_at?: string;
3878
+ description?: string | null;
3879
+ division_code?: number | null;
3880
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3881
+ exact_id: string;
3882
+ exact_modified?: string | null;
3883
+ exact_timestamp?: number | null;
3884
+ gl_account_code?: string | null;
3885
+ id?: string;
3886
+ is_active?: boolean;
3887
+ is_sales_item?: boolean | null;
3888
+ item_type?: string | null;
3889
+ raw?: import("../integrations/supabase/types").Json | null;
3890
+ sales_price?: number | null;
3891
+ unit?: string | null;
3892
+ updated_at?: string;
3893
+ vat_code?: string | null;
3894
+ };
3895
+ Update: {
3896
+ account_key?: string;
3897
+ barcode?: string | null;
3898
+ code?: string | null;
3899
+ cost_price?: number | null;
3900
+ created_at?: string;
3901
+ description?: string | null;
3902
+ division_code?: number | null;
3903
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3904
+ exact_id?: string;
3905
+ exact_modified?: string | null;
3906
+ exact_timestamp?: number | null;
3907
+ gl_account_code?: string | null;
3908
+ id?: string;
3909
+ is_active?: boolean;
3910
+ is_sales_item?: boolean | null;
3911
+ item_type?: string | null;
3912
+ raw?: import("../integrations/supabase/types").Json | null;
3913
+ sales_price?: number | null;
3914
+ unit?: string | null;
3915
+ updated_at?: string;
3916
+ vat_code?: string | null;
3917
+ };
3918
+ Relationships: [];
3919
+ };
3920
+ exact_auth_sync_log: {
3921
+ Row: {
3922
+ account_key: string;
3923
+ calls_used: number;
3924
+ created_at: string;
3925
+ domain: string;
3926
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3927
+ error: string | null;
3928
+ finished_at: string | null;
3929
+ id: string;
3930
+ ok: boolean;
3931
+ records: number;
3932
+ started_at: string;
3933
+ };
3934
+ Insert: {
3935
+ account_key?: string;
3936
+ calls_used?: number;
3937
+ created_at?: string;
3938
+ domain: string;
3939
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3940
+ error?: string | null;
3941
+ finished_at?: string | null;
3942
+ id?: string;
3943
+ ok?: boolean;
3944
+ records?: number;
3945
+ started_at?: string;
3946
+ };
3947
+ Update: {
3948
+ account_key?: string;
3949
+ calls_used?: number;
3950
+ created_at?: string;
3951
+ domain?: string;
3952
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3953
+ error?: string | null;
3954
+ finished_at?: string | null;
3955
+ id?: string;
3956
+ ok?: boolean;
3957
+ records?: number;
3958
+ started_at?: string;
3959
+ };
3960
+ Relationships: [];
3961
+ };
3962
+ exact_auth_sync_state: {
3963
+ Row: {
3964
+ account_key: string;
3965
+ created_at: string;
3966
+ cursor_timestamp: number;
3967
+ division_code: number | null;
3968
+ domain: string;
3969
+ duration_ms: number | null;
3970
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3971
+ initial_sync_done: boolean;
3972
+ last_error: string | null;
3973
+ last_run_at: string | null;
3974
+ last_success_at: string | null;
3975
+ locked_at: string | null;
3976
+ needs_initial_sync: boolean;
3977
+ record_count: number;
3978
+ updated_at: string;
3979
+ };
3980
+ Insert: {
3981
+ account_key?: string;
3982
+ created_at?: string;
3983
+ cursor_timestamp?: number;
3984
+ division_code?: number | null;
3985
+ domain: string;
3986
+ duration_ms?: number | null;
3987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3988
+ initial_sync_done?: boolean;
3989
+ last_error?: string | null;
3990
+ last_run_at?: string | null;
3991
+ last_success_at?: string | null;
3992
+ locked_at?: string | null;
3993
+ needs_initial_sync?: boolean;
3994
+ record_count?: number;
3995
+ updated_at?: string;
3996
+ };
3997
+ Update: {
3998
+ account_key?: string;
3999
+ created_at?: string;
4000
+ cursor_timestamp?: number;
4001
+ division_code?: number | null;
4002
+ domain?: string;
4003
+ duration_ms?: number | null;
4004
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4005
+ initial_sync_done?: boolean;
4006
+ last_error?: string | null;
4007
+ last_run_at?: string | null;
4008
+ last_success_at?: string | null;
4009
+ locked_at?: string | null;
4010
+ needs_initial_sync?: boolean;
4011
+ record_count?: number;
4012
+ updated_at?: string;
4013
+ };
4014
+ Relationships: [];
4015
+ };
3548
4016
  exact_bulk_operation_items: {
3549
4017
  Row: {
3550
4018
  attempts: number;
@@ -5236,12 +5704,17 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
5236
5704
  attempts: number;
5237
5705
  connection_id: string;
5238
5706
  created_at: string;
5707
+ desired_available: boolean | null;
5239
5708
  gateway_attempt_id: string | null;
5240
5709
  id: string;
5241
5710
  last_error: string | null;
5711
+ locked_at: string | null;
5712
+ locked_by: string | null;
5713
+ next_attempt_at: string;
5242
5714
  number_of_pieces: number;
5243
5715
  sent_at: string | null;
5244
5716
  status: string;
5717
+ superseded_by: string | null;
5245
5718
  trade_item_id: string;
5246
5719
  updated_at: string;
5247
5720
  user_id: string;
@@ -5250,12 +5723,17 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
5250
5723
  attempts?: number;
5251
5724
  connection_id: string;
5252
5725
  created_at?: string;
5726
+ desired_available?: boolean | null;
5253
5727
  gateway_attempt_id?: string | null;
5254
5728
  id?: string;
5255
5729
  last_error?: string | null;
5730
+ locked_at?: string | null;
5731
+ locked_by?: string | null;
5732
+ next_attempt_at?: string;
5256
5733
  number_of_pieces?: number;
5257
5734
  sent_at?: string | null;
5258
5735
  status?: string;
5736
+ superseded_by?: string | null;
5259
5737
  trade_item_id: string;
5260
5738
  updated_at?: string;
5261
5739
  user_id: string;
@@ -5264,12 +5742,17 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
5264
5742
  attempts?: number;
5265
5743
  connection_id?: string;
5266
5744
  created_at?: string;
5745
+ desired_available?: boolean | null;
5267
5746
  gateway_attempt_id?: string | null;
5268
5747
  id?: string;
5269
5748
  last_error?: string | null;
5749
+ locked_at?: string | null;
5750
+ locked_by?: string | null;
5751
+ next_attempt_at?: string;
5270
5752
  number_of_pieces?: number;
5271
5753
  sent_at?: string | null;
5272
5754
  status?: string;
5755
+ superseded_by?: string | null;
5273
5756
  trade_item_id?: string;
5274
5757
  updated_at?: string;
5275
5758
  user_id?: string;
@@ -8018,6 +8501,69 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8018
8501
  };
8019
8502
  Relationships: [];
8020
8503
  };
8504
+ logistics_floriday_pushes: {
8505
+ Row: {
8506
+ attempts: number;
8507
+ created_at: string;
8508
+ first_queued_at: string;
8509
+ fulfillment_order_id: string | null;
8510
+ id: string;
8511
+ last_error: string | null;
8512
+ last_error_at: string | null;
8513
+ last_sent_hash: string | null;
8514
+ locked_by: string | null;
8515
+ locked_until: string | null;
8516
+ next_attempt_at: string;
8517
+ order_ref: string;
8518
+ payload: import("../integrations/supabase/types").Json;
8519
+ payload_hash: string | null;
8520
+ revision: number;
8521
+ sent_at: string | null;
8522
+ status: string;
8523
+ updated_at: string;
8524
+ };
8525
+ Insert: {
8526
+ attempts?: number;
8527
+ created_at?: string;
8528
+ first_queued_at?: string;
8529
+ fulfillment_order_id?: string | null;
8530
+ id?: string;
8531
+ last_error?: string | null;
8532
+ last_error_at?: string | null;
8533
+ last_sent_hash?: string | null;
8534
+ locked_by?: string | null;
8535
+ locked_until?: string | null;
8536
+ next_attempt_at?: string;
8537
+ order_ref: string;
8538
+ payload?: import("../integrations/supabase/types").Json;
8539
+ payload_hash?: string | null;
8540
+ revision?: number;
8541
+ sent_at?: string | null;
8542
+ status?: string;
8543
+ updated_at?: string;
8544
+ };
8545
+ Update: {
8546
+ attempts?: number;
8547
+ created_at?: string;
8548
+ first_queued_at?: string;
8549
+ fulfillment_order_id?: string | null;
8550
+ id?: string;
8551
+ last_error?: string | null;
8552
+ last_error_at?: string | null;
8553
+ last_sent_hash?: string | null;
8554
+ locked_by?: string | null;
8555
+ locked_until?: string | null;
8556
+ next_attempt_at?: string;
8557
+ order_ref?: string;
8558
+ payload?: import("../integrations/supabase/types").Json;
8559
+ payload_hash?: string | null;
8560
+ revision?: number;
8561
+ sent_at?: string | null;
8562
+ status?: string;
8563
+ updated_at?: string;
8564
+ };
8565
+ Relationships: [];
8566
+ };
8021
8567
  logistics_formulas: {
8022
8568
  Row: {
8023
8569
  created_at: string;
@@ -8629,6 +9175,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8629
9175
  };
8630
9176
  logistics_tasks: {
8631
9177
  Row: {
9178
+ attempt_log: import("../integrations/supabase/types").Json;
9179
+ attempts: number;
8632
9180
  buffer_ref: string | null;
8633
9181
  claimed_at: string | null;
8634
9182
  claimed_by: string | null;
@@ -8638,6 +9186,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8638
9186
  due_at: string | null;
8639
9187
  error: string | null;
8640
9188
  id: string;
9189
+ last_error: string | null;
9190
+ next_attempt_at: string | null;
8641
9191
  order_ref: string;
8642
9192
  owner_module: string;
8643
9193
  payload: import("../integrations/supabase/types").Json;
@@ -8658,6 +9208,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8658
9208
  user_id: string;
8659
9209
  };
8660
9210
  Insert: {
9211
+ attempt_log?: import("../integrations/supabase/types").Json;
9212
+ attempts?: number;
8661
9213
  buffer_ref?: string | null;
8662
9214
  claimed_at?: string | null;
8663
9215
  claimed_by?: string | null;
@@ -8667,6 +9219,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8667
9219
  due_at?: string | null;
8668
9220
  error?: string | null;
8669
9221
  id?: string;
9222
+ last_error?: string | null;
9223
+ next_attempt_at?: string | null;
8670
9224
  order_ref: string;
8671
9225
  owner_module: string;
8672
9226
  payload?: import("../integrations/supabase/types").Json;
@@ -8687,6 +9241,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8687
9241
  user_id?: string;
8688
9242
  };
8689
9243
  Update: {
9244
+ attempt_log?: import("../integrations/supabase/types").Json;
9245
+ attempts?: number;
8690
9246
  buffer_ref?: string | null;
8691
9247
  claimed_at?: string | null;
8692
9248
  claimed_by?: string | null;
@@ -8696,6 +9252,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
8696
9252
  due_at?: string | null;
8697
9253
  error?: string | null;
8698
9254
  id?: string;
9255
+ last_error?: string | null;
9256
+ next_attempt_at?: string | null;
8699
9257
  order_ref?: string;
8700
9258
  owner_module?: string;
8701
9259
  payload?: import("../integrations/supabase/types").Json;
@@ -10045,6 +10603,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10045
10603
  };
10046
10604
  offer_settings: {
10047
10605
  Row: {
10606
+ brand_name: string | null;
10048
10607
  button_color: string;
10049
10608
  created_at: string;
10050
10609
  default_countries: string[];
@@ -10066,6 +10625,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10066
10625
  updated_at: string;
10067
10626
  };
10068
10627
  Insert: {
10628
+ brand_name?: string | null;
10069
10629
  button_color?: string;
10070
10630
  created_at?: string;
10071
10631
  default_countries?: string[];
@@ -10087,6 +10647,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10087
10647
  updated_at?: string;
10088
10648
  };
10089
10649
  Update: {
10650
+ brand_name?: string | null;
10090
10651
  button_color?: string;
10091
10652
  created_at?: string;
10092
10653
  default_countries?: string[];
@@ -17697,6 +18258,85 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
17697
18258
  };
17698
18259
  Returns: import("../integrations/supabase/types").Json;
17699
18260
  };
18261
+ claim_floriday_stock_queue: {
18262
+ Args: {
18263
+ p_limit?: number;
18264
+ p_worker?: string;
18265
+ };
18266
+ Returns: {
18267
+ attempts: number;
18268
+ connection_id: string;
18269
+ created_at: string;
18270
+ desired_available: boolean | null;
18271
+ gateway_attempt_id: string | null;
18272
+ id: string;
18273
+ last_error: string | null;
18274
+ locked_at: string | null;
18275
+ locked_by: string | null;
18276
+ next_attempt_at: string;
18277
+ number_of_pieces: number;
18278
+ sent_at: string | null;
18279
+ status: string;
18280
+ superseded_by: string | null;
18281
+ trade_item_id: string;
18282
+ updated_at: string;
18283
+ user_id: string;
18284
+ }[];
18285
+ SetofOptions: {
18286
+ from: "*";
18287
+ to: "floriday_continuous_stock_queue";
18288
+ isOneToOne: false;
18289
+ isSetofReturn: true;
18290
+ };
18291
+ };
18292
+ claim_logistics_tasks: {
18293
+ Args: {
18294
+ _limit?: number;
18295
+ _owner_module: string;
18296
+ _stale_minutes?: number;
18297
+ _task_type: string;
18298
+ _worker: string;
18299
+ };
18300
+ Returns: {
18301
+ attempt_log: import("../integrations/supabase/types").Json;
18302
+ attempts: number;
18303
+ buffer_ref: string | null;
18304
+ claimed_at: string | null;
18305
+ claimed_by: string | null;
18306
+ completed_at: string | null;
18307
+ created_at: string;
18308
+ depends_on: string[];
18309
+ due_at: string | null;
18310
+ error: string | null;
18311
+ id: string;
18312
+ last_error: string | null;
18313
+ next_attempt_at: string | null;
18314
+ order_ref: string;
18315
+ owner_module: string;
18316
+ payload: import("../integrations/supabase/types").Json;
18317
+ plan_run_id: string | null;
18318
+ planned_end: string | null;
18319
+ planned_start: string | null;
18320
+ priority: number;
18321
+ result: import("../integrations/supabase/types").Json | null;
18322
+ rule_config_id: string | null;
18323
+ rule_version: number | null;
18324
+ sequence: number;
18325
+ shadow: boolean;
18326
+ started_at: string | null;
18327
+ status: string;
18328
+ strategy_id: string | null;
18329
+ task_type: string;
18330
+ updated_at: string;
18331
+ user_id: string;
18332
+ }[];
18333
+ SetofOptions: {
18334
+ from: "*";
18335
+ to: "logistics_tasks";
18336
+ isOneToOne: false;
18337
+ isSetofReturn: true;
18338
+ };
18339
+ };
17700
18340
  claim_print_jobs: {
17701
18341
  Args: {
17702
18342
  _agent_id: string;
@@ -17761,10 +18401,24 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
17761
18401
  isSetofReturn: true;
17762
18402
  };
17763
18403
  };
18404
+ cleanup_floriday_stock_queue: {
18405
+ Args: never;
18406
+ Returns: undefined;
18407
+ };
17764
18408
  cleanup_old_bookings: {
17765
18409
  Args: never;
17766
18410
  Returns: undefined;
17767
18411
  };
18412
+ complete_floriday_stock_queue: {
18413
+ Args: {
18414
+ p_attempt_id?: string;
18415
+ p_error?: string;
18416
+ p_id: string;
18417
+ p_ok: boolean;
18418
+ p_permanent?: boolean;
18419
+ };
18420
+ Returns: undefined;
18421
+ };
17768
18422
  consume_bom_for_production: {
17769
18423
  Args: {
17770
18424
  p_connection_id: string;
@@ -17937,6 +18591,21 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
17937
18591
  Args: never;
17938
18592
  Returns: string;
17939
18593
  };
18594
+ exact_auth_consume_calls: {
18595
+ Args: {
18596
+ _account_key: string;
18597
+ _calls?: number;
18598
+ _day_limit?: number;
18599
+ _division_code: number;
18600
+ _environment: string;
18601
+ _minute_limit?: number;
18602
+ };
18603
+ Returns: import("../integrations/supabase/types").Json;
18604
+ };
18605
+ exact_auth_prune_sync_log: {
18606
+ Args: never;
18607
+ Returns: undefined;
18608
+ };
17940
18609
  exact_decrypt: {
17941
18610
  Args: {
17942
18611
  cipher: string;
@@ -18146,6 +18815,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18146
18815
  };
18147
18816
  Returns: number;
18148
18817
  };
18818
+ get_offer_branding: {
18819
+ Args: never;
18820
+ Returns: import("../integrations/supabase/types").Json;
18821
+ };
18149
18822
  get_offer_by_link_code: {
18150
18823
  Args: {
18151
18824
  p_code: string;
@@ -18437,6 +19110,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18437
19110
  p_worker?: string;
18438
19111
  };
18439
19112
  Returns: {
19113
+ attempt_log: import("../integrations/supabase/types").Json;
19114
+ attempts: number;
18440
19115
  buffer_ref: string | null;
18441
19116
  claimed_at: string | null;
18442
19117
  claimed_by: string | null;
@@ -18446,6 +19121,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18446
19121
  due_at: string | null;
18447
19122
  error: string | null;
18448
19123
  id: string;
19124
+ last_error: string | null;
19125
+ next_attempt_at: string | null;
18449
19126
  order_ref: string;
18450
19127
  owner_module: string;
18451
19128
  payload: import("../integrations/supabase/types").Json;
@@ -18478,6 +19155,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18478
19155
  p_worker?: string;
18479
19156
  };
18480
19157
  Returns: {
19158
+ attempt_log: import("../integrations/supabase/types").Json;
19159
+ attempts: number;
18481
19160
  buffer_ref: string | null;
18482
19161
  claimed_at: string | null;
18483
19162
  claimed_by: string | null;
@@ -18487,6 +19166,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18487
19166
  due_at: string | null;
18488
19167
  error: string | null;
18489
19168
  id: string;
19169
+ last_error: string | null;
19170
+ next_attempt_at: string | null;
18490
19171
  order_ref: string;
18491
19172
  owner_module: string;
18492
19173
  payload: import("../integrations/supabase/types").Json;
@@ -18519,6 +19200,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18519
19200
  p_task_id: string;
18520
19201
  };
18521
19202
  Returns: {
19203
+ attempt_log: import("../integrations/supabase/types").Json;
19204
+ attempts: number;
18522
19205
  buffer_ref: string | null;
18523
19206
  claimed_at: string | null;
18524
19207
  claimed_by: string | null;
@@ -18528,6 +19211,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18528
19211
  due_at: string | null;
18529
19212
  error: string | null;
18530
19213
  id: string;
19214
+ last_error: string | null;
19215
+ next_attempt_at: string | null;
18531
19216
  order_ref: string;
18532
19217
  owner_module: string;
18533
19218
  payload: import("../integrations/supabase/types").Json;
@@ -18609,6 +19294,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18609
19294
  p_task_id: string;
18610
19295
  };
18611
19296
  Returns: {
19297
+ attempt_log: import("../integrations/supabase/types").Json;
19298
+ attempts: number;
18612
19299
  buffer_ref: string | null;
18613
19300
  claimed_at: string | null;
18614
19301
  claimed_by: string | null;
@@ -18618,6 +19305,8 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18618
19305
  due_at: string | null;
18619
19306
  error: string | null;
18620
19307
  id: string;
19308
+ last_error: string | null;
19309
+ next_attempt_at: string | null;
18621
19310
  order_ref: string;
18622
19311
  owner_module: string;
18623
19312
  payload: import("../integrations/supabase/types").Json;
@@ -18644,6 +19333,51 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
18644
19333
  isSetofReturn: false;
18645
19334
  };
18646
19335
  };
19336
+ logistics_floriday_claim_pushes: {
19337
+ Args: {
19338
+ _lease_seconds?: number;
19339
+ _limit?: number;
19340
+ _worker?: string;
19341
+ };
19342
+ Returns: {
19343
+ attempts: number;
19344
+ fulfillment_order_id: string;
19345
+ id: string;
19346
+ last_sent_hash: string;
19347
+ order_ref: string;
19348
+ payload: import("../integrations/supabase/types").Json;
19349
+ payload_hash: string;
19350
+ revision: number;
19351
+ }[];
19352
+ };
19353
+ logistics_floriday_finish_push: {
19354
+ Args: {
19355
+ _error?: string;
19356
+ _fulfillment_order_id?: string;
19357
+ _id: string;
19358
+ _max_age_hours?: number;
19359
+ _max_attempts?: number;
19360
+ _ok: boolean;
19361
+ _permanent?: boolean;
19362
+ _revision: number;
19363
+ _sent_hash?: string;
19364
+ };
19365
+ Returns: string;
19366
+ };
19367
+ logistics_floriday_prune_pushes: {
19368
+ Args: {
19369
+ _days?: number;
19370
+ };
19371
+ Returns: number;
19372
+ };
19373
+ logistics_floriday_queue_push: {
19374
+ Args: {
19375
+ _order_ref: string;
19376
+ _payload?: import("../integrations/supabase/types").Json;
19377
+ _payload_hash?: string;
19378
+ };
19379
+ Returns: string;
19380
+ };
18647
19381
  logistics_live_carriers: {
18648
19382
  Args: {
18649
19383
  p_order_ref: string;
@@ -19371,6 +20105,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
19371
20105
  Args: never;
19372
20106
  Returns: undefined;
19373
20107
  };
20108
+ run_logistics_tasks_dispatch: {
20109
+ Args: never;
20110
+ Returns: undefined;
20111
+ };
19374
20112
  run_twinfield_queue_tick: {
19375
20113
  Args: never;
19376
20114
  Returns: undefined;
@@ -19611,6 +20349,13 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
19611
20349
  };
19612
20350
  Returns: number;
19613
20351
  };
20352
+ schedule_floriday_stock_queue_process: {
20353
+ Args: {
20354
+ p_apikey: string;
20355
+ p_url: string;
20356
+ };
20357
+ Returns: number;
20358
+ };
19614
20359
  schedule_floriday_token_refresh: {
19615
20360
  Args: {
19616
20361
  p_apikey: string;
@@ -23359,268 +24104,736 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
23359
24104
  referencedColumns: ["id"];
23360
24105
  }];
23361
24106
  };
23362
- exact_bulk_operation_items: {
24107
+ exact_auth_call_budget: {
23363
24108
  Row: {
23364
- attempts: number;
23365
- bulk_operation_id: string;
23366
- created_at: string;
23367
- error_message: string | null;
23368
- id: string;
23369
- invoice_cache_id: string | null;
23370
- invoice_exact_id: string | null;
23371
- processed_at: string | null;
23372
- result_data: import("../integrations/supabase/types").Json | null;
23373
- status: string;
24109
+ account_key: string;
24110
+ day_count: number;
24111
+ day_date: string;
24112
+ division_code: number;
24113
+ environment: string;
24114
+ minute_count: number;
24115
+ minute_window: string;
24116
+ updated_at: string;
23374
24117
  };
23375
24118
  Insert: {
23376
- attempts?: number;
23377
- bulk_operation_id: string;
23378
- created_at?: string;
23379
- error_message?: string | null;
23380
- id?: string;
23381
- invoice_cache_id?: string | null;
23382
- invoice_exact_id?: string | null;
23383
- processed_at?: string | null;
23384
- result_data?: import("../integrations/supabase/types").Json | null;
23385
- status?: string;
24119
+ account_key?: string;
24120
+ day_count?: number;
24121
+ day_date?: string;
24122
+ division_code?: number;
24123
+ environment: string;
24124
+ minute_count?: number;
24125
+ minute_window?: string;
24126
+ updated_at?: string;
23386
24127
  };
23387
24128
  Update: {
23388
- attempts?: number;
23389
- bulk_operation_id?: string;
23390
- created_at?: string;
23391
- error_message?: string | null;
23392
- id?: string;
23393
- invoice_cache_id?: string | null;
23394
- invoice_exact_id?: string | null;
23395
- processed_at?: string | null;
23396
- result_data?: import("../integrations/supabase/types").Json | null;
23397
- status?: string;
24129
+ account_key?: string;
24130
+ day_count?: number;
24131
+ day_date?: string;
24132
+ division_code?: number;
24133
+ environment?: string;
24134
+ minute_count?: number;
24135
+ minute_window?: string;
24136
+ updated_at?: string;
23398
24137
  };
23399
- Relationships: [{
23400
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
23401
- columns: ["bulk_operation_id"];
23402
- isOneToOne: false;
23403
- referencedRelation: "exact_bulk_operations";
23404
- referencedColumns: ["id"];
23405
- }, {
23406
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
23407
- columns: ["invoice_cache_id"];
23408
- isOneToOne: false;
23409
- referencedRelation: "exact_invoices_cache";
23410
- referencedColumns: ["id"];
23411
- }];
24138
+ Relationships: [];
23412
24139
  };
23413
- exact_bulk_operations: {
24140
+ exact_auth_customers: {
23414
24141
  Row: {
23415
- completed_at: string | null;
23416
- connection_id: string;
24142
+ account_key: string;
24143
+ address_line1: string | null;
24144
+ chamber_of_commerce: string | null;
24145
+ city: string | null;
24146
+ code: string | null;
24147
+ country: string | null;
23417
24148
  created_at: string;
23418
- created_by: string | null;
23419
- error_message: string | null;
23420
- failed_count: number | null;
24149
+ currency: string | null;
24150
+ division_code: number | null;
24151
+ email: string | null;
24152
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24153
+ exact_id: string;
24154
+ exact_modified: string | null;
24155
+ exact_timestamp: number | null;
23421
24156
  id: string;
23422
- operation_type: string;
23423
- processed_count: number | null;
23424
- result_data: import("../integrations/supabase/types").Json | null;
23425
- started_at: string | null;
23426
- status: string;
23427
- total_count: number | null;
24157
+ is_active: boolean;
24158
+ name: string | null;
24159
+ phone: string | null;
24160
+ postcode: string | null;
24161
+ raw: import("../integrations/supabase/types").Json | null;
24162
+ status: string | null;
23428
24163
  updated_at: string;
24164
+ vat_number: string | null;
24165
+ website: string | null;
23429
24166
  };
23430
24167
  Insert: {
23431
- completed_at?: string | null;
23432
- connection_id: string;
24168
+ account_key?: string;
24169
+ address_line1?: string | null;
24170
+ chamber_of_commerce?: string | null;
24171
+ city?: string | null;
24172
+ code?: string | null;
24173
+ country?: string | null;
23433
24174
  created_at?: string;
23434
- created_by?: string | null;
23435
- error_message?: string | null;
23436
- failed_count?: number | null;
24175
+ currency?: string | null;
24176
+ division_code?: number | null;
24177
+ email?: string | null;
24178
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24179
+ exact_id: string;
24180
+ exact_modified?: string | null;
24181
+ exact_timestamp?: number | null;
23437
24182
  id?: string;
23438
- operation_type: string;
23439
- processed_count?: number | null;
23440
- result_data?: import("../integrations/supabase/types").Json | null;
23441
- started_at?: string | null;
23442
- status?: string;
23443
- total_count?: number | null;
24183
+ is_active?: boolean;
24184
+ name?: string | null;
24185
+ phone?: string | null;
24186
+ postcode?: string | null;
24187
+ raw?: import("../integrations/supabase/types").Json | null;
24188
+ status?: string | null;
23444
24189
  updated_at?: string;
24190
+ vat_number?: string | null;
24191
+ website?: string | null;
23445
24192
  };
23446
24193
  Update: {
23447
- completed_at?: string | null;
23448
- connection_id?: string;
24194
+ account_key?: string;
24195
+ address_line1?: string | null;
24196
+ chamber_of_commerce?: string | null;
24197
+ city?: string | null;
24198
+ code?: string | null;
24199
+ country?: string | null;
23449
24200
  created_at?: string;
23450
- created_by?: string | null;
23451
- error_message?: string | null;
23452
- failed_count?: number | null;
24201
+ currency?: string | null;
24202
+ division_code?: number | null;
24203
+ email?: string | null;
24204
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24205
+ exact_id?: string;
24206
+ exact_modified?: string | null;
24207
+ exact_timestamp?: number | null;
23453
24208
  id?: string;
23454
- operation_type?: string;
23455
- processed_count?: number | null;
23456
- result_data?: import("../integrations/supabase/types").Json | null;
23457
- started_at?: string | null;
23458
- status?: string;
23459
- total_count?: number | null;
24209
+ is_active?: boolean;
24210
+ name?: string | null;
24211
+ phone?: string | null;
24212
+ postcode?: string | null;
24213
+ raw?: import("../integrations/supabase/types").Json | null;
24214
+ status?: string | null;
23460
24215
  updated_at?: string;
24216
+ vat_number?: string | null;
24217
+ website?: string | null;
23461
24218
  };
23462
- Relationships: [{
23463
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
23464
- columns: ["connection_id"];
23465
- isOneToOne: false;
23466
- referencedRelation: "exact_connections";
23467
- referencedColumns: ["id"];
23468
- }];
24219
+ Relationships: [];
23469
24220
  };
23470
- exact_connections: {
24221
+ exact_auth_divisions: {
23471
24222
  Row: {
23472
- access_token_encrypted: string;
24223
+ account_key: string;
23473
24224
  company_name: string | null;
23474
- connected_at: string;
23475
- connected_by: string | null;
24225
+ created_at: string;
23476
24226
  division_code: number | null;
23477
24227
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23478
- expires_at: string;
23479
24228
  id: string;
23480
- last_error: string | null;
23481
- last_refreshed_at: string | null;
23482
- last_tested_at: string | null;
23483
- refresh_token_encrypted: string;
23484
- status: string;
24229
+ last_synced_at: string | null;
23485
24230
  updated_at: string;
23486
24231
  };
23487
24232
  Insert: {
23488
- access_token_encrypted: string;
24233
+ account_key?: string;
23489
24234
  company_name?: string | null;
23490
- connected_at?: string;
23491
- connected_by?: string | null;
24235
+ created_at?: string;
23492
24236
  division_code?: number | null;
23493
24237
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23494
- expires_at: string;
23495
24238
  id?: string;
23496
- last_error?: string | null;
23497
- last_refreshed_at?: string | null;
23498
- last_tested_at?: string | null;
23499
- refresh_token_encrypted: string;
23500
- status?: string;
24239
+ last_synced_at?: string | null;
23501
24240
  updated_at?: string;
23502
24241
  };
23503
24242
  Update: {
23504
- access_token_encrypted?: string;
24243
+ account_key?: string;
23505
24244
  company_name?: string | null;
23506
- connected_at?: string;
23507
- connected_by?: string | null;
24245
+ created_at?: string;
23508
24246
  division_code?: number | null;
23509
24247
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23510
- expires_at?: string;
23511
24248
  id?: string;
23512
- last_error?: string | null;
23513
- last_refreshed_at?: string | null;
23514
- last_tested_at?: string | null;
23515
- refresh_token_encrypted?: string;
23516
- status?: string;
24249
+ last_synced_at?: string | null;
23517
24250
  updated_at?: string;
23518
24251
  };
23519
24252
  Relationships: [];
23520
24253
  };
23521
- exact_credentials: {
24254
+ exact_auth_invoice_lines: {
23522
24255
  Row: {
23523
- client_id: string;
23524
- client_secret_encrypted: string;
24256
+ account_key: string;
24257
+ amount_excl: number | null;
23525
24258
  created_at: string;
24259
+ description: string | null;
24260
+ discount: number | null;
23526
24261
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24262
+ exact_id: string;
24263
+ exact_timestamp: number | null;
23527
24264
  id: string;
23528
- redirect_uri: string;
24265
+ invoice_exact_id: string;
24266
+ item_code: string | null;
24267
+ item_exact_id: string | null;
24268
+ line_number: number | null;
24269
+ quantity: number | null;
24270
+ raw: import("../integrations/supabase/types").Json | null;
24271
+ unit_price: number | null;
23529
24272
  updated_at: string;
24273
+ vat_amount: number | null;
24274
+ vat_code: string | null;
23530
24275
  };
23531
24276
  Insert: {
23532
- client_id: string;
23533
- client_secret_encrypted: string;
24277
+ account_key?: string;
24278
+ amount_excl?: number | null;
23534
24279
  created_at?: string;
24280
+ description?: string | null;
24281
+ discount?: number | null;
23535
24282
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24283
+ exact_id: string;
24284
+ exact_timestamp?: number | null;
23536
24285
  id?: string;
23537
- redirect_uri?: string;
24286
+ invoice_exact_id: string;
24287
+ item_code?: string | null;
24288
+ item_exact_id?: string | null;
24289
+ line_number?: number | null;
24290
+ quantity?: number | null;
24291
+ raw?: import("../integrations/supabase/types").Json | null;
24292
+ unit_price?: number | null;
23538
24293
  updated_at?: string;
24294
+ vat_amount?: number | null;
24295
+ vat_code?: string | null;
23539
24296
  };
23540
24297
  Update: {
23541
- client_id?: string;
23542
- client_secret_encrypted?: string;
24298
+ account_key?: string;
24299
+ amount_excl?: number | null;
23543
24300
  created_at?: string;
24301
+ description?: string | null;
24302
+ discount?: number | null;
23544
24303
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24304
+ exact_id?: string;
24305
+ exact_timestamp?: number | null;
23545
24306
  id?: string;
23546
- redirect_uri?: string;
24307
+ invoice_exact_id?: string;
24308
+ item_code?: string | null;
24309
+ item_exact_id?: string | null;
24310
+ line_number?: number | null;
24311
+ quantity?: number | null;
24312
+ raw?: import("../integrations/supabase/types").Json | null;
24313
+ unit_price?: number | null;
23547
24314
  updated_at?: string;
24315
+ vat_amount?: number | null;
24316
+ vat_code?: string | null;
23548
24317
  };
23549
24318
  Relationships: [];
23550
24319
  };
23551
- exact_customer_sync_queue: {
24320
+ exact_auth_invoices: {
23552
24321
  Row: {
23553
- attempts: number;
23554
- connection_id: string;
24322
+ account_key: string;
24323
+ amount_excl: number | null;
24324
+ amount_incl: number | null;
24325
+ amount_open: number | null;
23555
24326
  created_at: string;
24327
+ currency: string | null;
24328
+ customer_code: string | null;
23556
24329
  customer_exact_id: string | null;
23557
- error_message: string | null;
24330
+ customer_name: string | null;
24331
+ description: string | null;
24332
+ division_code: number | null;
24333
+ due_date: string | null;
24334
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24335
+ exact_id: string;
24336
+ exact_modified: string | null;
24337
+ exact_timestamp: number | null;
23558
24338
  id: string;
23559
- max_attempts: number;
23560
- operation: string;
23561
- payload: import("../integrations/supabase/types").Json;
23562
- process_at: string;
23563
- processed_at: string | null;
23564
- status: string;
24339
+ invoice_date: string | null;
24340
+ invoice_number: string | null;
24341
+ order_number: string | null;
24342
+ paid_at: string | null;
24343
+ payment_status: string;
24344
+ raw: import("../integrations/supabase/types").Json | null;
24345
+ receivable_synced_at: string | null;
24346
+ status_code: number | null;
23565
24347
  updated_at: string;
23566
24348
  };
23567
24349
  Insert: {
23568
- attempts?: number;
23569
- connection_id: string;
24350
+ account_key?: string;
24351
+ amount_excl?: number | null;
24352
+ amount_incl?: number | null;
24353
+ amount_open?: number | null;
23570
24354
  created_at?: string;
24355
+ currency?: string | null;
24356
+ customer_code?: string | null;
23571
24357
  customer_exact_id?: string | null;
23572
- error_message?: string | null;
24358
+ customer_name?: string | null;
24359
+ description?: string | null;
24360
+ division_code?: number | null;
24361
+ due_date?: string | null;
24362
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24363
+ exact_id: string;
24364
+ exact_modified?: string | null;
24365
+ exact_timestamp?: number | null;
23573
24366
  id?: string;
23574
- max_attempts?: number;
23575
- operation: string;
23576
- payload?: import("../integrations/supabase/types").Json;
23577
- process_at?: string;
23578
- processed_at?: string | null;
23579
- status?: string;
24367
+ invoice_date?: string | null;
24368
+ invoice_number?: string | null;
24369
+ order_number?: string | null;
24370
+ paid_at?: string | null;
24371
+ payment_status?: string;
24372
+ raw?: import("../integrations/supabase/types").Json | null;
24373
+ receivable_synced_at?: string | null;
24374
+ status_code?: number | null;
23580
24375
  updated_at?: string;
23581
24376
  };
23582
24377
  Update: {
23583
- attempts?: number;
23584
- connection_id?: string;
24378
+ account_key?: string;
24379
+ amount_excl?: number | null;
24380
+ amount_incl?: number | null;
24381
+ amount_open?: number | null;
23585
24382
  created_at?: string;
24383
+ currency?: string | null;
24384
+ customer_code?: string | null;
23586
24385
  customer_exact_id?: string | null;
23587
- error_message?: string | null;
24386
+ customer_name?: string | null;
24387
+ description?: string | null;
24388
+ division_code?: number | null;
24389
+ due_date?: string | null;
24390
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24391
+ exact_id?: string;
24392
+ exact_modified?: string | null;
24393
+ exact_timestamp?: number | null;
23588
24394
  id?: string;
23589
- max_attempts?: number;
23590
- operation?: string;
23591
- payload?: import("../integrations/supabase/types").Json;
23592
- process_at?: string;
23593
- processed_at?: string | null;
23594
- status?: string;
24395
+ invoice_date?: string | null;
24396
+ invoice_number?: string | null;
24397
+ order_number?: string | null;
24398
+ paid_at?: string | null;
24399
+ payment_status?: string;
24400
+ raw?: import("../integrations/supabase/types").Json | null;
24401
+ receivable_synced_at?: string | null;
24402
+ status_code?: number | null;
23595
24403
  updated_at?: string;
23596
24404
  };
23597
- Relationships: [{
23598
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
23599
- columns: ["connection_id"];
23600
- isOneToOne: false;
23601
- referencedRelation: "exact_connections";
23602
- referencedColumns: ["id"];
23603
- }];
24405
+ Relationships: [];
23604
24406
  };
23605
- exact_customers_cache: {
24407
+ exact_auth_items: {
23606
24408
  Row: {
23607
- account_name: string | null;
23608
- account_number: string | null;
23609
- address_line1: string | null;
23610
- address_line2: string | null;
23611
- balance: number | null;
23612
- chamber_of_commerce: string | null;
23613
- city: string | null;
23614
- classification_description: string | null;
23615
- connection_id: string;
23616
- contact_name: string | null;
23617
- country: string | null;
23618
- created_at_exact: string | null;
23619
- credit_line: number | null;
23620
- currency: string | null;
23621
- data_raw: import("../integrations/supabase/types").Json | null;
23622
- email: string | null;
23623
- exact_id: string;
24409
+ account_key: string;
24410
+ barcode: string | null;
24411
+ code: string | null;
24412
+ cost_price: number | null;
24413
+ created_at: string;
24414
+ description: string | null;
24415
+ division_code: number | null;
24416
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24417
+ exact_id: string;
24418
+ exact_modified: string | null;
24419
+ exact_timestamp: number | null;
24420
+ gl_account_code: string | null;
24421
+ id: string;
24422
+ is_active: boolean;
24423
+ is_sales_item: boolean | null;
24424
+ item_type: string | null;
24425
+ raw: import("../integrations/supabase/types").Json | null;
24426
+ sales_price: number | null;
24427
+ unit: string | null;
24428
+ updated_at: string;
24429
+ vat_code: string | null;
24430
+ };
24431
+ Insert: {
24432
+ account_key?: string;
24433
+ barcode?: string | null;
24434
+ code?: string | null;
24435
+ cost_price?: number | null;
24436
+ created_at?: string;
24437
+ description?: string | null;
24438
+ division_code?: number | null;
24439
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24440
+ exact_id: string;
24441
+ exact_modified?: string | null;
24442
+ exact_timestamp?: number | null;
24443
+ gl_account_code?: string | null;
24444
+ id?: string;
24445
+ is_active?: boolean;
24446
+ is_sales_item?: boolean | null;
24447
+ item_type?: string | null;
24448
+ raw?: import("../integrations/supabase/types").Json | null;
24449
+ sales_price?: number | null;
24450
+ unit?: string | null;
24451
+ updated_at?: string;
24452
+ vat_code?: string | null;
24453
+ };
24454
+ Update: {
24455
+ account_key?: string;
24456
+ barcode?: string | null;
24457
+ code?: string | null;
24458
+ cost_price?: number | null;
24459
+ created_at?: string;
24460
+ description?: string | null;
24461
+ division_code?: number | null;
24462
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24463
+ exact_id?: string;
24464
+ exact_modified?: string | null;
24465
+ exact_timestamp?: number | null;
24466
+ gl_account_code?: string | null;
24467
+ id?: string;
24468
+ is_active?: boolean;
24469
+ is_sales_item?: boolean | null;
24470
+ item_type?: string | null;
24471
+ raw?: import("../integrations/supabase/types").Json | null;
24472
+ sales_price?: number | null;
24473
+ unit?: string | null;
24474
+ updated_at?: string;
24475
+ vat_code?: string | null;
24476
+ };
24477
+ Relationships: [];
24478
+ };
24479
+ exact_auth_sync_log: {
24480
+ Row: {
24481
+ account_key: string;
24482
+ calls_used: number;
24483
+ created_at: string;
24484
+ domain: string;
24485
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24486
+ error: string | null;
24487
+ finished_at: string | null;
24488
+ id: string;
24489
+ ok: boolean;
24490
+ records: number;
24491
+ started_at: string;
24492
+ };
24493
+ Insert: {
24494
+ account_key?: string;
24495
+ calls_used?: number;
24496
+ created_at?: string;
24497
+ domain: string;
24498
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24499
+ error?: string | null;
24500
+ finished_at?: string | null;
24501
+ id?: string;
24502
+ ok?: boolean;
24503
+ records?: number;
24504
+ started_at?: string;
24505
+ };
24506
+ Update: {
24507
+ account_key?: string;
24508
+ calls_used?: number;
24509
+ created_at?: string;
24510
+ domain?: string;
24511
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24512
+ error?: string | null;
24513
+ finished_at?: string | null;
24514
+ id?: string;
24515
+ ok?: boolean;
24516
+ records?: number;
24517
+ started_at?: string;
24518
+ };
24519
+ Relationships: [];
24520
+ };
24521
+ exact_auth_sync_state: {
24522
+ Row: {
24523
+ account_key: string;
24524
+ created_at: string;
24525
+ cursor_timestamp: number;
24526
+ division_code: number | null;
24527
+ domain: string;
24528
+ duration_ms: number | null;
24529
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24530
+ initial_sync_done: boolean;
24531
+ last_error: string | null;
24532
+ last_run_at: string | null;
24533
+ last_success_at: string | null;
24534
+ locked_at: string | null;
24535
+ needs_initial_sync: boolean;
24536
+ record_count: number;
24537
+ updated_at: string;
24538
+ };
24539
+ Insert: {
24540
+ account_key?: string;
24541
+ created_at?: string;
24542
+ cursor_timestamp?: number;
24543
+ division_code?: number | null;
24544
+ domain: string;
24545
+ duration_ms?: number | null;
24546
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24547
+ initial_sync_done?: boolean;
24548
+ last_error?: string | null;
24549
+ last_run_at?: string | null;
24550
+ last_success_at?: string | null;
24551
+ locked_at?: string | null;
24552
+ needs_initial_sync?: boolean;
24553
+ record_count?: number;
24554
+ updated_at?: string;
24555
+ };
24556
+ Update: {
24557
+ account_key?: string;
24558
+ created_at?: string;
24559
+ cursor_timestamp?: number;
24560
+ division_code?: number | null;
24561
+ domain?: string;
24562
+ duration_ms?: number | null;
24563
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24564
+ initial_sync_done?: boolean;
24565
+ last_error?: string | null;
24566
+ last_run_at?: string | null;
24567
+ last_success_at?: string | null;
24568
+ locked_at?: string | null;
24569
+ needs_initial_sync?: boolean;
24570
+ record_count?: number;
24571
+ updated_at?: string;
24572
+ };
24573
+ Relationships: [];
24574
+ };
24575
+ exact_bulk_operation_items: {
24576
+ Row: {
24577
+ attempts: number;
24578
+ bulk_operation_id: string;
24579
+ created_at: string;
24580
+ error_message: string | null;
24581
+ id: string;
24582
+ invoice_cache_id: string | null;
24583
+ invoice_exact_id: string | null;
24584
+ processed_at: string | null;
24585
+ result_data: import("../integrations/supabase/types").Json | null;
24586
+ status: string;
24587
+ };
24588
+ Insert: {
24589
+ attempts?: number;
24590
+ bulk_operation_id: string;
24591
+ created_at?: string;
24592
+ error_message?: string | null;
24593
+ id?: string;
24594
+ invoice_cache_id?: string | null;
24595
+ invoice_exact_id?: string | null;
24596
+ processed_at?: string | null;
24597
+ result_data?: import("../integrations/supabase/types").Json | null;
24598
+ status?: string;
24599
+ };
24600
+ Update: {
24601
+ attempts?: number;
24602
+ bulk_operation_id?: string;
24603
+ created_at?: string;
24604
+ error_message?: string | null;
24605
+ id?: string;
24606
+ invoice_cache_id?: string | null;
24607
+ invoice_exact_id?: string | null;
24608
+ processed_at?: string | null;
24609
+ result_data?: import("../integrations/supabase/types").Json | null;
24610
+ status?: string;
24611
+ };
24612
+ Relationships: [{
24613
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
24614
+ columns: ["bulk_operation_id"];
24615
+ isOneToOne: false;
24616
+ referencedRelation: "exact_bulk_operations";
24617
+ referencedColumns: ["id"];
24618
+ }, {
24619
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
24620
+ columns: ["invoice_cache_id"];
24621
+ isOneToOne: false;
24622
+ referencedRelation: "exact_invoices_cache";
24623
+ referencedColumns: ["id"];
24624
+ }];
24625
+ };
24626
+ exact_bulk_operations: {
24627
+ Row: {
24628
+ completed_at: string | null;
24629
+ connection_id: string;
24630
+ created_at: string;
24631
+ created_by: string | null;
24632
+ error_message: string | null;
24633
+ failed_count: number | null;
24634
+ id: string;
24635
+ operation_type: string;
24636
+ processed_count: number | null;
24637
+ result_data: import("../integrations/supabase/types").Json | null;
24638
+ started_at: string | null;
24639
+ status: string;
24640
+ total_count: number | null;
24641
+ updated_at: string;
24642
+ };
24643
+ Insert: {
24644
+ completed_at?: string | null;
24645
+ connection_id: string;
24646
+ created_at?: string;
24647
+ created_by?: string | null;
24648
+ error_message?: string | null;
24649
+ failed_count?: number | null;
24650
+ id?: string;
24651
+ operation_type: string;
24652
+ processed_count?: number | null;
24653
+ result_data?: import("../integrations/supabase/types").Json | null;
24654
+ started_at?: string | null;
24655
+ status?: string;
24656
+ total_count?: number | null;
24657
+ updated_at?: string;
24658
+ };
24659
+ Update: {
24660
+ completed_at?: string | null;
24661
+ connection_id?: string;
24662
+ created_at?: string;
24663
+ created_by?: string | null;
24664
+ error_message?: string | null;
24665
+ failed_count?: number | null;
24666
+ id?: string;
24667
+ operation_type?: string;
24668
+ processed_count?: number | null;
24669
+ result_data?: import("../integrations/supabase/types").Json | null;
24670
+ started_at?: string | null;
24671
+ status?: string;
24672
+ total_count?: number | null;
24673
+ updated_at?: string;
24674
+ };
24675
+ Relationships: [{
24676
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
24677
+ columns: ["connection_id"];
24678
+ isOneToOne: false;
24679
+ referencedRelation: "exact_connections";
24680
+ referencedColumns: ["id"];
24681
+ }];
24682
+ };
24683
+ exact_connections: {
24684
+ Row: {
24685
+ access_token_encrypted: string;
24686
+ company_name: string | null;
24687
+ connected_at: string;
24688
+ connected_by: string | null;
24689
+ division_code: number | null;
24690
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24691
+ expires_at: string;
24692
+ id: string;
24693
+ last_error: string | null;
24694
+ last_refreshed_at: string | null;
24695
+ last_tested_at: string | null;
24696
+ refresh_token_encrypted: string;
24697
+ status: string;
24698
+ updated_at: string;
24699
+ };
24700
+ Insert: {
24701
+ access_token_encrypted: string;
24702
+ company_name?: string | null;
24703
+ connected_at?: string;
24704
+ connected_by?: string | null;
24705
+ division_code?: number | null;
24706
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24707
+ expires_at: string;
24708
+ id?: string;
24709
+ last_error?: string | null;
24710
+ last_refreshed_at?: string | null;
24711
+ last_tested_at?: string | null;
24712
+ refresh_token_encrypted: string;
24713
+ status?: string;
24714
+ updated_at?: string;
24715
+ };
24716
+ Update: {
24717
+ access_token_encrypted?: string;
24718
+ company_name?: string | null;
24719
+ connected_at?: string;
24720
+ connected_by?: string | null;
24721
+ division_code?: number | null;
24722
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24723
+ expires_at?: string;
24724
+ id?: string;
24725
+ last_error?: string | null;
24726
+ last_refreshed_at?: string | null;
24727
+ last_tested_at?: string | null;
24728
+ refresh_token_encrypted?: string;
24729
+ status?: string;
24730
+ updated_at?: string;
24731
+ };
24732
+ Relationships: [];
24733
+ };
24734
+ exact_credentials: {
24735
+ Row: {
24736
+ client_id: string;
24737
+ client_secret_encrypted: string;
24738
+ created_at: string;
24739
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24740
+ id: string;
24741
+ redirect_uri: string;
24742
+ updated_at: string;
24743
+ };
24744
+ Insert: {
24745
+ client_id: string;
24746
+ client_secret_encrypted: string;
24747
+ created_at?: string;
24748
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24749
+ id?: string;
24750
+ redirect_uri?: string;
24751
+ updated_at?: string;
24752
+ };
24753
+ Update: {
24754
+ client_id?: string;
24755
+ client_secret_encrypted?: string;
24756
+ created_at?: string;
24757
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24758
+ id?: string;
24759
+ redirect_uri?: string;
24760
+ updated_at?: string;
24761
+ };
24762
+ Relationships: [];
24763
+ };
24764
+ exact_customer_sync_queue: {
24765
+ Row: {
24766
+ attempts: number;
24767
+ connection_id: string;
24768
+ created_at: string;
24769
+ customer_exact_id: string | null;
24770
+ error_message: string | null;
24771
+ id: string;
24772
+ max_attempts: number;
24773
+ operation: string;
24774
+ payload: import("../integrations/supabase/types").Json;
24775
+ process_at: string;
24776
+ processed_at: string | null;
24777
+ status: string;
24778
+ updated_at: string;
24779
+ };
24780
+ Insert: {
24781
+ attempts?: number;
24782
+ connection_id: string;
24783
+ created_at?: string;
24784
+ customer_exact_id?: string | null;
24785
+ error_message?: string | null;
24786
+ id?: string;
24787
+ max_attempts?: number;
24788
+ operation: string;
24789
+ payload?: import("../integrations/supabase/types").Json;
24790
+ process_at?: string;
24791
+ processed_at?: string | null;
24792
+ status?: string;
24793
+ updated_at?: string;
24794
+ };
24795
+ Update: {
24796
+ attempts?: number;
24797
+ connection_id?: string;
24798
+ created_at?: string;
24799
+ customer_exact_id?: string | null;
24800
+ error_message?: string | null;
24801
+ id?: string;
24802
+ max_attempts?: number;
24803
+ operation?: string;
24804
+ payload?: import("../integrations/supabase/types").Json;
24805
+ process_at?: string;
24806
+ processed_at?: string | null;
24807
+ status?: string;
24808
+ updated_at?: string;
24809
+ };
24810
+ Relationships: [{
24811
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
24812
+ columns: ["connection_id"];
24813
+ isOneToOne: false;
24814
+ referencedRelation: "exact_connections";
24815
+ referencedColumns: ["id"];
24816
+ }];
24817
+ };
24818
+ exact_customers_cache: {
24819
+ Row: {
24820
+ account_name: string | null;
24821
+ account_number: string | null;
24822
+ address_line1: string | null;
24823
+ address_line2: string | null;
24824
+ balance: number | null;
24825
+ chamber_of_commerce: string | null;
24826
+ city: string | null;
24827
+ classification_description: string | null;
24828
+ connection_id: string;
24829
+ contact_name: string | null;
24830
+ country: string | null;
24831
+ created_at_exact: string | null;
24832
+ credit_line: number | null;
24833
+ currency: string | null;
24834
+ data_raw: import("../integrations/supabase/types").Json | null;
24835
+ email: string | null;
24836
+ exact_id: string;
23624
24837
  expires_at: string | null;
23625
24838
  fetched_at: string;
23626
24839
  id: string;
@@ -25050,12 +26263,17 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
25050
26263
  attempts: number;
25051
26264
  connection_id: string;
25052
26265
  created_at: string;
26266
+ desired_available: boolean | null;
25053
26267
  gateway_attempt_id: string | null;
25054
26268
  id: string;
25055
26269
  last_error: string | null;
26270
+ locked_at: string | null;
26271
+ locked_by: string | null;
26272
+ next_attempt_at: string;
25056
26273
  number_of_pieces: number;
25057
26274
  sent_at: string | null;
25058
26275
  status: string;
26276
+ superseded_by: string | null;
25059
26277
  trade_item_id: string;
25060
26278
  updated_at: string;
25061
26279
  user_id: string;
@@ -25064,12 +26282,17 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
25064
26282
  attempts?: number;
25065
26283
  connection_id: string;
25066
26284
  created_at?: string;
26285
+ desired_available?: boolean | null;
25067
26286
  gateway_attempt_id?: string | null;
25068
26287
  id?: string;
25069
26288
  last_error?: string | null;
26289
+ locked_at?: string | null;
26290
+ locked_by?: string | null;
26291
+ next_attempt_at?: string;
25070
26292
  number_of_pieces?: number;
25071
26293
  sent_at?: string | null;
25072
26294
  status?: string;
26295
+ superseded_by?: string | null;
25073
26296
  trade_item_id: string;
25074
26297
  updated_at?: string;
25075
26298
  user_id: string;
@@ -25078,12 +26301,17 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
25078
26301
  attempts?: number;
25079
26302
  connection_id?: string;
25080
26303
  created_at?: string;
26304
+ desired_available?: boolean | null;
25081
26305
  gateway_attempt_id?: string | null;
25082
26306
  id?: string;
25083
26307
  last_error?: string | null;
26308
+ locked_at?: string | null;
26309
+ locked_by?: string | null;
26310
+ next_attempt_at?: string;
25084
26311
  number_of_pieces?: number;
25085
26312
  sent_at?: string | null;
25086
26313
  status?: string;
26314
+ superseded_by?: string | null;
25087
26315
  trade_item_id?: string;
25088
26316
  updated_at?: string;
25089
26317
  user_id?: string;
@@ -27832,6 +29060,69 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
27832
29060
  };
27833
29061
  Relationships: [];
27834
29062
  };
29063
+ logistics_floriday_pushes: {
29064
+ Row: {
29065
+ attempts: number;
29066
+ created_at: string;
29067
+ first_queued_at: string;
29068
+ fulfillment_order_id: string | null;
29069
+ id: string;
29070
+ last_error: string | null;
29071
+ last_error_at: string | null;
29072
+ last_sent_hash: string | null;
29073
+ locked_by: string | null;
29074
+ locked_until: string | null;
29075
+ next_attempt_at: string;
29076
+ order_ref: string;
29077
+ payload: import("../integrations/supabase/types").Json;
29078
+ payload_hash: string | null;
29079
+ revision: number;
29080
+ sent_at: string | null;
29081
+ status: string;
29082
+ updated_at: string;
29083
+ };
29084
+ Insert: {
29085
+ attempts?: number;
29086
+ created_at?: string;
29087
+ first_queued_at?: string;
29088
+ fulfillment_order_id?: string | null;
29089
+ id?: string;
29090
+ last_error?: string | null;
29091
+ last_error_at?: string | null;
29092
+ last_sent_hash?: string | null;
29093
+ locked_by?: string | null;
29094
+ locked_until?: string | null;
29095
+ next_attempt_at?: string;
29096
+ order_ref: string;
29097
+ payload?: import("../integrations/supabase/types").Json;
29098
+ payload_hash?: string | null;
29099
+ revision?: number;
29100
+ sent_at?: string | null;
29101
+ status?: string;
29102
+ updated_at?: string;
29103
+ };
29104
+ Update: {
29105
+ attempts?: number;
29106
+ created_at?: string;
29107
+ first_queued_at?: string;
29108
+ fulfillment_order_id?: string | null;
29109
+ id?: string;
29110
+ last_error?: string | null;
29111
+ last_error_at?: string | null;
29112
+ last_sent_hash?: string | null;
29113
+ locked_by?: string | null;
29114
+ locked_until?: string | null;
29115
+ next_attempt_at?: string;
29116
+ order_ref?: string;
29117
+ payload?: import("../integrations/supabase/types").Json;
29118
+ payload_hash?: string | null;
29119
+ revision?: number;
29120
+ sent_at?: string | null;
29121
+ status?: string;
29122
+ updated_at?: string;
29123
+ };
29124
+ Relationships: [];
29125
+ };
27835
29126
  logistics_formulas: {
27836
29127
  Row: {
27837
29128
  created_at: string;
@@ -28443,6 +29734,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28443
29734
  };
28444
29735
  logistics_tasks: {
28445
29736
  Row: {
29737
+ attempt_log: import("../integrations/supabase/types").Json;
29738
+ attempts: number;
28446
29739
  buffer_ref: string | null;
28447
29740
  claimed_at: string | null;
28448
29741
  claimed_by: string | null;
@@ -28452,6 +29745,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28452
29745
  due_at: string | null;
28453
29746
  error: string | null;
28454
29747
  id: string;
29748
+ last_error: string | null;
29749
+ next_attempt_at: string | null;
28455
29750
  order_ref: string;
28456
29751
  owner_module: string;
28457
29752
  payload: import("../integrations/supabase/types").Json;
@@ -28472,6 +29767,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28472
29767
  user_id: string;
28473
29768
  };
28474
29769
  Insert: {
29770
+ attempt_log?: import("../integrations/supabase/types").Json;
29771
+ attempts?: number;
28475
29772
  buffer_ref?: string | null;
28476
29773
  claimed_at?: string | null;
28477
29774
  claimed_by?: string | null;
@@ -28481,6 +29778,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28481
29778
  due_at?: string | null;
28482
29779
  error?: string | null;
28483
29780
  id?: string;
29781
+ last_error?: string | null;
29782
+ next_attempt_at?: string | null;
28484
29783
  order_ref: string;
28485
29784
  owner_module: string;
28486
29785
  payload?: import("../integrations/supabase/types").Json;
@@ -28501,6 +29800,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28501
29800
  user_id?: string;
28502
29801
  };
28503
29802
  Update: {
29803
+ attempt_log?: import("../integrations/supabase/types").Json;
29804
+ attempts?: number;
28504
29805
  buffer_ref?: string | null;
28505
29806
  claimed_at?: string | null;
28506
29807
  claimed_by?: string | null;
@@ -28510,6 +29811,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
28510
29811
  due_at?: string | null;
28511
29812
  error?: string | null;
28512
29813
  id?: string;
29814
+ last_error?: string | null;
29815
+ next_attempt_at?: string | null;
28513
29816
  order_ref?: string;
28514
29817
  owner_module?: string;
28515
29818
  payload?: import("../integrations/supabase/types").Json;
@@ -29859,6 +31162,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
29859
31162
  };
29860
31163
  offer_settings: {
29861
31164
  Row: {
31165
+ brand_name: string | null;
29862
31166
  button_color: string;
29863
31167
  created_at: string;
29864
31168
  default_countries: string[];
@@ -29880,6 +31184,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
29880
31184
  updated_at: string;
29881
31185
  };
29882
31186
  Insert: {
31187
+ brand_name?: string | null;
29883
31188
  button_color?: string;
29884
31189
  created_at?: string;
29885
31190
  default_countries?: string[];
@@ -29901,6 +31206,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
29901
31206
  updated_at?: string;
29902
31207
  };
29903
31208
  Update: {
31209
+ brand_name?: string | null;
29904
31210
  button_color?: string;
29905
31211
  created_at?: string;
29906
31212
  default_countries?: string[];
@@ -37511,6 +38817,85 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37511
38817
  };
37512
38818
  Returns: import("../integrations/supabase/types").Json;
37513
38819
  };
38820
+ claim_floriday_stock_queue: {
38821
+ Args: {
38822
+ p_limit?: number;
38823
+ p_worker?: string;
38824
+ };
38825
+ Returns: {
38826
+ attempts: number;
38827
+ connection_id: string;
38828
+ created_at: string;
38829
+ desired_available: boolean | null;
38830
+ gateway_attempt_id: string | null;
38831
+ id: string;
38832
+ last_error: string | null;
38833
+ locked_at: string | null;
38834
+ locked_by: string | null;
38835
+ next_attempt_at: string;
38836
+ number_of_pieces: number;
38837
+ sent_at: string | null;
38838
+ status: string;
38839
+ superseded_by: string | null;
38840
+ trade_item_id: string;
38841
+ updated_at: string;
38842
+ user_id: string;
38843
+ }[];
38844
+ SetofOptions: {
38845
+ from: "*";
38846
+ to: "floriday_continuous_stock_queue";
38847
+ isOneToOne: false;
38848
+ isSetofReturn: true;
38849
+ };
38850
+ };
38851
+ claim_logistics_tasks: {
38852
+ Args: {
38853
+ _limit?: number;
38854
+ _owner_module: string;
38855
+ _stale_minutes?: number;
38856
+ _task_type: string;
38857
+ _worker: string;
38858
+ };
38859
+ Returns: {
38860
+ attempt_log: import("../integrations/supabase/types").Json;
38861
+ attempts: number;
38862
+ buffer_ref: string | null;
38863
+ claimed_at: string | null;
38864
+ claimed_by: string | null;
38865
+ completed_at: string | null;
38866
+ created_at: string;
38867
+ depends_on: string[];
38868
+ due_at: string | null;
38869
+ error: string | null;
38870
+ id: string;
38871
+ last_error: string | null;
38872
+ next_attempt_at: string | null;
38873
+ order_ref: string;
38874
+ owner_module: string;
38875
+ payload: import("../integrations/supabase/types").Json;
38876
+ plan_run_id: string | null;
38877
+ planned_end: string | null;
38878
+ planned_start: string | null;
38879
+ priority: number;
38880
+ result: import("../integrations/supabase/types").Json | null;
38881
+ rule_config_id: string | null;
38882
+ rule_version: number | null;
38883
+ sequence: number;
38884
+ shadow: boolean;
38885
+ started_at: string | null;
38886
+ status: string;
38887
+ strategy_id: string | null;
38888
+ task_type: string;
38889
+ updated_at: string;
38890
+ user_id: string;
38891
+ }[];
38892
+ SetofOptions: {
38893
+ from: "*";
38894
+ to: "logistics_tasks";
38895
+ isOneToOne: false;
38896
+ isSetofReturn: true;
38897
+ };
38898
+ };
37514
38899
  claim_print_jobs: {
37515
38900
  Args: {
37516
38901
  _agent_id: string;
@@ -37575,10 +38960,24 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37575
38960
  isSetofReturn: true;
37576
38961
  };
37577
38962
  };
38963
+ cleanup_floriday_stock_queue: {
38964
+ Args: never;
38965
+ Returns: undefined;
38966
+ };
37578
38967
  cleanup_old_bookings: {
37579
38968
  Args: never;
37580
38969
  Returns: undefined;
37581
38970
  };
38971
+ complete_floriday_stock_queue: {
38972
+ Args: {
38973
+ p_attempt_id?: string;
38974
+ p_error?: string;
38975
+ p_id: string;
38976
+ p_ok: boolean;
38977
+ p_permanent?: boolean;
38978
+ };
38979
+ Returns: undefined;
38980
+ };
37582
38981
  consume_bom_for_production: {
37583
38982
  Args: {
37584
38983
  p_connection_id: string;
@@ -37751,6 +39150,21 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37751
39150
  Args: never;
37752
39151
  Returns: string;
37753
39152
  };
39153
+ exact_auth_consume_calls: {
39154
+ Args: {
39155
+ _account_key: string;
39156
+ _calls?: number;
39157
+ _day_limit?: number;
39158
+ _division_code: number;
39159
+ _environment: string;
39160
+ _minute_limit?: number;
39161
+ };
39162
+ Returns: import("../integrations/supabase/types").Json;
39163
+ };
39164
+ exact_auth_prune_sync_log: {
39165
+ Args: never;
39166
+ Returns: undefined;
39167
+ };
37754
39168
  exact_decrypt: {
37755
39169
  Args: {
37756
39170
  cipher: string;
@@ -37960,6 +39374,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37960
39374
  };
37961
39375
  Returns: number;
37962
39376
  };
39377
+ get_offer_branding: {
39378
+ Args: never;
39379
+ Returns: import("../integrations/supabase/types").Json;
39380
+ };
37963
39381
  get_offer_by_link_code: {
37964
39382
  Args: {
37965
39383
  p_code: string;
@@ -38251,6 +39669,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38251
39669
  p_worker?: string;
38252
39670
  };
38253
39671
  Returns: {
39672
+ attempt_log: import("../integrations/supabase/types").Json;
39673
+ attempts: number;
38254
39674
  buffer_ref: string | null;
38255
39675
  claimed_at: string | null;
38256
39676
  claimed_by: string | null;
@@ -38260,6 +39680,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38260
39680
  due_at: string | null;
38261
39681
  error: string | null;
38262
39682
  id: string;
39683
+ last_error: string | null;
39684
+ next_attempt_at: string | null;
38263
39685
  order_ref: string;
38264
39686
  owner_module: string;
38265
39687
  payload: import("../integrations/supabase/types").Json;
@@ -38292,6 +39714,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38292
39714
  p_worker?: string;
38293
39715
  };
38294
39716
  Returns: {
39717
+ attempt_log: import("../integrations/supabase/types").Json;
39718
+ attempts: number;
38295
39719
  buffer_ref: string | null;
38296
39720
  claimed_at: string | null;
38297
39721
  claimed_by: string | null;
@@ -38301,6 +39725,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38301
39725
  due_at: string | null;
38302
39726
  error: string | null;
38303
39727
  id: string;
39728
+ last_error: string | null;
39729
+ next_attempt_at: string | null;
38304
39730
  order_ref: string;
38305
39731
  owner_module: string;
38306
39732
  payload: import("../integrations/supabase/types").Json;
@@ -38333,6 +39759,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38333
39759
  p_task_id: string;
38334
39760
  };
38335
39761
  Returns: {
39762
+ attempt_log: import("../integrations/supabase/types").Json;
39763
+ attempts: number;
38336
39764
  buffer_ref: string | null;
38337
39765
  claimed_at: string | null;
38338
39766
  claimed_by: string | null;
@@ -38342,6 +39770,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38342
39770
  due_at: string | null;
38343
39771
  error: string | null;
38344
39772
  id: string;
39773
+ last_error: string | null;
39774
+ next_attempt_at: string | null;
38345
39775
  order_ref: string;
38346
39776
  owner_module: string;
38347
39777
  payload: import("../integrations/supabase/types").Json;
@@ -38423,6 +39853,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38423
39853
  p_task_id: string;
38424
39854
  };
38425
39855
  Returns: {
39856
+ attempt_log: import("../integrations/supabase/types").Json;
39857
+ attempts: number;
38426
39858
  buffer_ref: string | null;
38427
39859
  claimed_at: string | null;
38428
39860
  claimed_by: string | null;
@@ -38432,6 +39864,8 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38432
39864
  due_at: string | null;
38433
39865
  error: string | null;
38434
39866
  id: string;
39867
+ last_error: string | null;
39868
+ next_attempt_at: string | null;
38435
39869
  order_ref: string;
38436
39870
  owner_module: string;
38437
39871
  payload: import("../integrations/supabase/types").Json;
@@ -38458,6 +39892,51 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
38458
39892
  isSetofReturn: false;
38459
39893
  };
38460
39894
  };
39895
+ logistics_floriday_claim_pushes: {
39896
+ Args: {
39897
+ _lease_seconds?: number;
39898
+ _limit?: number;
39899
+ _worker?: string;
39900
+ };
39901
+ Returns: {
39902
+ attempts: number;
39903
+ fulfillment_order_id: string;
39904
+ id: string;
39905
+ last_sent_hash: string;
39906
+ order_ref: string;
39907
+ payload: import("../integrations/supabase/types").Json;
39908
+ payload_hash: string;
39909
+ revision: number;
39910
+ }[];
39911
+ };
39912
+ logistics_floriday_finish_push: {
39913
+ Args: {
39914
+ _error?: string;
39915
+ _fulfillment_order_id?: string;
39916
+ _id: string;
39917
+ _max_age_hours?: number;
39918
+ _max_attempts?: number;
39919
+ _ok: boolean;
39920
+ _permanent?: boolean;
39921
+ _revision: number;
39922
+ _sent_hash?: string;
39923
+ };
39924
+ Returns: string;
39925
+ };
39926
+ logistics_floriday_prune_pushes: {
39927
+ Args: {
39928
+ _days?: number;
39929
+ };
39930
+ Returns: number;
39931
+ };
39932
+ logistics_floriday_queue_push: {
39933
+ Args: {
39934
+ _order_ref: string;
39935
+ _payload?: import("../integrations/supabase/types").Json;
39936
+ _payload_hash?: string;
39937
+ };
39938
+ Returns: string;
39939
+ };
38461
39940
  logistics_live_carriers: {
38462
39941
  Args: {
38463
39942
  p_order_ref: string;
@@ -39185,6 +40664,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39185
40664
  Args: never;
39186
40665
  Returns: undefined;
39187
40666
  };
40667
+ run_logistics_tasks_dispatch: {
40668
+ Args: never;
40669
+ Returns: undefined;
40670
+ };
39188
40671
  run_twinfield_queue_tick: {
39189
40672
  Args: never;
39190
40673
  Returns: undefined;
@@ -39425,6 +40908,13 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39425
40908
  };
39426
40909
  Returns: number;
39427
40910
  };
40911
+ schedule_floriday_stock_queue_process: {
40912
+ Args: {
40913
+ p_apikey: string;
40914
+ p_url: string;
40915
+ };
40916
+ Returns: number;
40917
+ };
39428
40918
  schedule_floriday_token_refresh: {
39429
40919
  Args: {
39430
40920
  p_apikey: string;
@@ -43185,268 +44675,736 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
43185
44675
  referencedColumns: ["id"];
43186
44676
  }];
43187
44677
  };
43188
- exact_bulk_operation_items: {
44678
+ exact_auth_call_budget: {
43189
44679
  Row: {
43190
- attempts: number;
43191
- bulk_operation_id: string;
43192
- created_at: string;
43193
- error_message: string | null;
43194
- id: string;
43195
- invoice_cache_id: string | null;
43196
- invoice_exact_id: string | null;
43197
- processed_at: string | null;
43198
- result_data: import("../integrations/supabase/types").Json | null;
43199
- status: string;
44680
+ account_key: string;
44681
+ day_count: number;
44682
+ day_date: string;
44683
+ division_code: number;
44684
+ environment: string;
44685
+ minute_count: number;
44686
+ minute_window: string;
44687
+ updated_at: string;
43200
44688
  };
43201
44689
  Insert: {
43202
- attempts?: number;
43203
- bulk_operation_id: string;
43204
- created_at?: string;
43205
- error_message?: string | null;
43206
- id?: string;
43207
- invoice_cache_id?: string | null;
43208
- invoice_exact_id?: string | null;
43209
- processed_at?: string | null;
43210
- result_data?: import("../integrations/supabase/types").Json | null;
43211
- status?: string;
44690
+ account_key?: string;
44691
+ day_count?: number;
44692
+ day_date?: string;
44693
+ division_code?: number;
44694
+ environment: string;
44695
+ minute_count?: number;
44696
+ minute_window?: string;
44697
+ updated_at?: string;
43212
44698
  };
43213
44699
  Update: {
43214
- attempts?: number;
43215
- bulk_operation_id?: string;
43216
- created_at?: string;
43217
- error_message?: string | null;
43218
- id?: string;
43219
- invoice_cache_id?: string | null;
43220
- invoice_exact_id?: string | null;
43221
- processed_at?: string | null;
43222
- result_data?: import("../integrations/supabase/types").Json | null;
43223
- status?: string;
44700
+ account_key?: string;
44701
+ day_count?: number;
44702
+ day_date?: string;
44703
+ division_code?: number;
44704
+ environment?: string;
44705
+ minute_count?: number;
44706
+ minute_window?: string;
44707
+ updated_at?: string;
43224
44708
  };
43225
- Relationships: [{
43226
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
43227
- columns: ["bulk_operation_id"];
43228
- isOneToOne: false;
43229
- referencedRelation: "exact_bulk_operations";
43230
- referencedColumns: ["id"];
43231
- }, {
43232
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
43233
- columns: ["invoice_cache_id"];
43234
- isOneToOne: false;
43235
- referencedRelation: "exact_invoices_cache";
43236
- referencedColumns: ["id"];
43237
- }];
44709
+ Relationships: [];
43238
44710
  };
43239
- exact_bulk_operations: {
44711
+ exact_auth_customers: {
43240
44712
  Row: {
43241
- completed_at: string | null;
43242
- connection_id: string;
44713
+ account_key: string;
44714
+ address_line1: string | null;
44715
+ chamber_of_commerce: string | null;
44716
+ city: string | null;
44717
+ code: string | null;
44718
+ country: string | null;
43243
44719
  created_at: string;
43244
- created_by: string | null;
43245
- error_message: string | null;
43246
- failed_count: number | null;
44720
+ currency: string | null;
44721
+ division_code: number | null;
44722
+ email: string | null;
44723
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44724
+ exact_id: string;
44725
+ exact_modified: string | null;
44726
+ exact_timestamp: number | null;
43247
44727
  id: string;
43248
- operation_type: string;
43249
- processed_count: number | null;
43250
- result_data: import("../integrations/supabase/types").Json | null;
43251
- started_at: string | null;
43252
- status: string;
43253
- total_count: number | null;
44728
+ is_active: boolean;
44729
+ name: string | null;
44730
+ phone: string | null;
44731
+ postcode: string | null;
44732
+ raw: import("../integrations/supabase/types").Json | null;
44733
+ status: string | null;
43254
44734
  updated_at: string;
44735
+ vat_number: string | null;
44736
+ website: string | null;
43255
44737
  };
43256
44738
  Insert: {
43257
- completed_at?: string | null;
43258
- connection_id: string;
44739
+ account_key?: string;
44740
+ address_line1?: string | null;
44741
+ chamber_of_commerce?: string | null;
44742
+ city?: string | null;
44743
+ code?: string | null;
44744
+ country?: string | null;
43259
44745
  created_at?: string;
43260
- created_by?: string | null;
43261
- error_message?: string | null;
43262
- failed_count?: number | null;
44746
+ currency?: string | null;
44747
+ division_code?: number | null;
44748
+ email?: string | null;
44749
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44750
+ exact_id: string;
44751
+ exact_modified?: string | null;
44752
+ exact_timestamp?: number | null;
43263
44753
  id?: string;
43264
- operation_type: string;
43265
- processed_count?: number | null;
43266
- result_data?: import("../integrations/supabase/types").Json | null;
43267
- started_at?: string | null;
43268
- status?: string;
43269
- total_count?: number | null;
44754
+ is_active?: boolean;
44755
+ name?: string | null;
44756
+ phone?: string | null;
44757
+ postcode?: string | null;
44758
+ raw?: import("../integrations/supabase/types").Json | null;
44759
+ status?: string | null;
43270
44760
  updated_at?: string;
44761
+ vat_number?: string | null;
44762
+ website?: string | null;
43271
44763
  };
43272
44764
  Update: {
43273
- completed_at?: string | null;
43274
- connection_id?: string;
44765
+ account_key?: string;
44766
+ address_line1?: string | null;
44767
+ chamber_of_commerce?: string | null;
44768
+ city?: string | null;
44769
+ code?: string | null;
44770
+ country?: string | null;
43275
44771
  created_at?: string;
43276
- created_by?: string | null;
43277
- error_message?: string | null;
43278
- failed_count?: number | null;
44772
+ currency?: string | null;
44773
+ division_code?: number | null;
44774
+ email?: string | null;
44775
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44776
+ exact_id?: string;
44777
+ exact_modified?: string | null;
44778
+ exact_timestamp?: number | null;
43279
44779
  id?: string;
43280
- operation_type?: string;
43281
- processed_count?: number | null;
43282
- result_data?: import("../integrations/supabase/types").Json | null;
43283
- started_at?: string | null;
43284
- status?: string;
43285
- total_count?: number | null;
44780
+ is_active?: boolean;
44781
+ name?: string | null;
44782
+ phone?: string | null;
44783
+ postcode?: string | null;
44784
+ raw?: import("../integrations/supabase/types").Json | null;
44785
+ status?: string | null;
43286
44786
  updated_at?: string;
44787
+ vat_number?: string | null;
44788
+ website?: string | null;
43287
44789
  };
43288
- Relationships: [{
43289
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
43290
- columns: ["connection_id"];
43291
- isOneToOne: false;
43292
- referencedRelation: "exact_connections";
43293
- referencedColumns: ["id"];
43294
- }];
44790
+ Relationships: [];
43295
44791
  };
43296
- exact_connections: {
44792
+ exact_auth_divisions: {
43297
44793
  Row: {
43298
- access_token_encrypted: string;
44794
+ account_key: string;
43299
44795
  company_name: string | null;
43300
- connected_at: string;
43301
- connected_by: string | null;
44796
+ created_at: string;
43302
44797
  division_code: number | null;
43303
44798
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43304
- expires_at: string;
43305
44799
  id: string;
43306
- last_error: string | null;
43307
- last_refreshed_at: string | null;
43308
- last_tested_at: string | null;
43309
- refresh_token_encrypted: string;
43310
- status: string;
44800
+ last_synced_at: string | null;
43311
44801
  updated_at: string;
43312
44802
  };
43313
44803
  Insert: {
43314
- access_token_encrypted: string;
44804
+ account_key?: string;
43315
44805
  company_name?: string | null;
43316
- connected_at?: string;
43317
- connected_by?: string | null;
44806
+ created_at?: string;
43318
44807
  division_code?: number | null;
43319
44808
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43320
- expires_at: string;
43321
44809
  id?: string;
43322
- last_error?: string | null;
43323
- last_refreshed_at?: string | null;
43324
- last_tested_at?: string | null;
43325
- refresh_token_encrypted: string;
43326
- status?: string;
44810
+ last_synced_at?: string | null;
43327
44811
  updated_at?: string;
43328
44812
  };
43329
44813
  Update: {
43330
- access_token_encrypted?: string;
44814
+ account_key?: string;
43331
44815
  company_name?: string | null;
43332
- connected_at?: string;
43333
- connected_by?: string | null;
44816
+ created_at?: string;
43334
44817
  division_code?: number | null;
43335
44818
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
43336
- expires_at?: string;
43337
44819
  id?: string;
43338
- last_error?: string | null;
43339
- last_refreshed_at?: string | null;
43340
- last_tested_at?: string | null;
43341
- refresh_token_encrypted?: string;
43342
- status?: string;
44820
+ last_synced_at?: string | null;
43343
44821
  updated_at?: string;
43344
44822
  };
43345
44823
  Relationships: [];
43346
44824
  };
43347
- exact_credentials: {
44825
+ exact_auth_invoice_lines: {
43348
44826
  Row: {
43349
- client_id: string;
43350
- client_secret_encrypted: string;
44827
+ account_key: string;
44828
+ amount_excl: number | null;
43351
44829
  created_at: string;
44830
+ description: string | null;
44831
+ discount: number | null;
43352
44832
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44833
+ exact_id: string;
44834
+ exact_timestamp: number | null;
43353
44835
  id: string;
43354
- redirect_uri: string;
44836
+ invoice_exact_id: string;
44837
+ item_code: string | null;
44838
+ item_exact_id: string | null;
44839
+ line_number: number | null;
44840
+ quantity: number | null;
44841
+ raw: import("../integrations/supabase/types").Json | null;
44842
+ unit_price: number | null;
43355
44843
  updated_at: string;
44844
+ vat_amount: number | null;
44845
+ vat_code: string | null;
43356
44846
  };
43357
44847
  Insert: {
43358
- client_id: string;
43359
- client_secret_encrypted: string;
44848
+ account_key?: string;
44849
+ amount_excl?: number | null;
43360
44850
  created_at?: string;
44851
+ description?: string | null;
44852
+ discount?: number | null;
43361
44853
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44854
+ exact_id: string;
44855
+ exact_timestamp?: number | null;
43362
44856
  id?: string;
43363
- redirect_uri?: string;
44857
+ invoice_exact_id: string;
44858
+ item_code?: string | null;
44859
+ item_exact_id?: string | null;
44860
+ line_number?: number | null;
44861
+ quantity?: number | null;
44862
+ raw?: import("../integrations/supabase/types").Json | null;
44863
+ unit_price?: number | null;
43364
44864
  updated_at?: string;
44865
+ vat_amount?: number | null;
44866
+ vat_code?: string | null;
43365
44867
  };
43366
44868
  Update: {
43367
- client_id?: string;
43368
- client_secret_encrypted?: string;
44869
+ account_key?: string;
44870
+ amount_excl?: number | null;
43369
44871
  created_at?: string;
44872
+ description?: string | null;
44873
+ discount?: number | null;
43370
44874
  environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44875
+ exact_id?: string;
44876
+ exact_timestamp?: number | null;
43371
44877
  id?: string;
43372
- redirect_uri?: string;
44878
+ invoice_exact_id?: string;
44879
+ item_code?: string | null;
44880
+ item_exact_id?: string | null;
44881
+ line_number?: number | null;
44882
+ quantity?: number | null;
44883
+ raw?: import("../integrations/supabase/types").Json | null;
44884
+ unit_price?: number | null;
43373
44885
  updated_at?: string;
44886
+ vat_amount?: number | null;
44887
+ vat_code?: string | null;
43374
44888
  };
43375
44889
  Relationships: [];
43376
44890
  };
43377
- exact_customer_sync_queue: {
44891
+ exact_auth_invoices: {
43378
44892
  Row: {
43379
- attempts: number;
43380
- connection_id: string;
44893
+ account_key: string;
44894
+ amount_excl: number | null;
44895
+ amount_incl: number | null;
44896
+ amount_open: number | null;
43381
44897
  created_at: string;
44898
+ currency: string | null;
44899
+ customer_code: string | null;
43382
44900
  customer_exact_id: string | null;
43383
- error_message: string | null;
44901
+ customer_name: string | null;
44902
+ description: string | null;
44903
+ division_code: number | null;
44904
+ due_date: string | null;
44905
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44906
+ exact_id: string;
44907
+ exact_modified: string | null;
44908
+ exact_timestamp: number | null;
43384
44909
  id: string;
43385
- max_attempts: number;
43386
- operation: string;
43387
- payload: import("../integrations/supabase/types").Json;
43388
- process_at: string;
43389
- processed_at: string | null;
43390
- status: string;
44910
+ invoice_date: string | null;
44911
+ invoice_number: string | null;
44912
+ order_number: string | null;
44913
+ paid_at: string | null;
44914
+ payment_status: string;
44915
+ raw: import("../integrations/supabase/types").Json | null;
44916
+ receivable_synced_at: string | null;
44917
+ status_code: number | null;
43391
44918
  updated_at: string;
43392
44919
  };
43393
44920
  Insert: {
43394
- attempts?: number;
43395
- connection_id: string;
44921
+ account_key?: string;
44922
+ amount_excl?: number | null;
44923
+ amount_incl?: number | null;
44924
+ amount_open?: number | null;
43396
44925
  created_at?: string;
44926
+ currency?: string | null;
44927
+ customer_code?: string | null;
43397
44928
  customer_exact_id?: string | null;
43398
- error_message?: string | null;
44929
+ customer_name?: string | null;
44930
+ description?: string | null;
44931
+ division_code?: number | null;
44932
+ due_date?: string | null;
44933
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44934
+ exact_id: string;
44935
+ exact_modified?: string | null;
44936
+ exact_timestamp?: number | null;
43399
44937
  id?: string;
43400
- max_attempts?: number;
43401
- operation: string;
43402
- payload?: import("../integrations/supabase/types").Json;
43403
- process_at?: string;
43404
- processed_at?: string | null;
43405
- status?: string;
44938
+ invoice_date?: string | null;
44939
+ invoice_number?: string | null;
44940
+ order_number?: string | null;
44941
+ paid_at?: string | null;
44942
+ payment_status?: string;
44943
+ raw?: import("../integrations/supabase/types").Json | null;
44944
+ receivable_synced_at?: string | null;
44945
+ status_code?: number | null;
43406
44946
  updated_at?: string;
43407
44947
  };
43408
44948
  Update: {
43409
- attempts?: number;
43410
- connection_id?: string;
44949
+ account_key?: string;
44950
+ amount_excl?: number | null;
44951
+ amount_incl?: number | null;
44952
+ amount_open?: number | null;
43411
44953
  created_at?: string;
44954
+ currency?: string | null;
44955
+ customer_code?: string | null;
43412
44956
  customer_exact_id?: string | null;
43413
- error_message?: string | null;
44957
+ customer_name?: string | null;
44958
+ description?: string | null;
44959
+ division_code?: number | null;
44960
+ due_date?: string | null;
44961
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44962
+ exact_id?: string;
44963
+ exact_modified?: string | null;
44964
+ exact_timestamp?: number | null;
43414
44965
  id?: string;
43415
- max_attempts?: number;
43416
- operation?: string;
43417
- payload?: import("../integrations/supabase/types").Json;
43418
- process_at?: string;
43419
- processed_at?: string | null;
43420
- status?: string;
44966
+ invoice_date?: string | null;
44967
+ invoice_number?: string | null;
44968
+ order_number?: string | null;
44969
+ paid_at?: string | null;
44970
+ payment_status?: string;
44971
+ raw?: import("../integrations/supabase/types").Json | null;
44972
+ receivable_synced_at?: string | null;
44973
+ status_code?: number | null;
43421
44974
  updated_at?: string;
43422
44975
  };
43423
- Relationships: [{
43424
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
43425
- columns: ["connection_id"];
43426
- isOneToOne: false;
43427
- referencedRelation: "exact_connections";
43428
- referencedColumns: ["id"];
43429
- }];
44976
+ Relationships: [];
43430
44977
  };
43431
- exact_customers_cache: {
44978
+ exact_auth_items: {
43432
44979
  Row: {
43433
- account_name: string | null;
43434
- account_number: string | null;
43435
- address_line1: string | null;
43436
- address_line2: string | null;
43437
- balance: number | null;
43438
- chamber_of_commerce: string | null;
43439
- city: string | null;
43440
- classification_description: string | null;
43441
- connection_id: string;
43442
- contact_name: string | null;
43443
- country: string | null;
43444
- created_at_exact: string | null;
43445
- credit_line: number | null;
43446
- currency: string | null;
43447
- data_raw: import("../integrations/supabase/types").Json | null;
43448
- email: string | null;
43449
- exact_id: string;
44980
+ account_key: string;
44981
+ barcode: string | null;
44982
+ code: string | null;
44983
+ cost_price: number | null;
44984
+ created_at: string;
44985
+ description: string | null;
44986
+ division_code: number | null;
44987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44988
+ exact_id: string;
44989
+ exact_modified: string | null;
44990
+ exact_timestamp: number | null;
44991
+ gl_account_code: string | null;
44992
+ id: string;
44993
+ is_active: boolean;
44994
+ is_sales_item: boolean | null;
44995
+ item_type: string | null;
44996
+ raw: import("../integrations/supabase/types").Json | null;
44997
+ sales_price: number | null;
44998
+ unit: string | null;
44999
+ updated_at: string;
45000
+ vat_code: string | null;
45001
+ };
45002
+ Insert: {
45003
+ account_key?: string;
45004
+ barcode?: string | null;
45005
+ code?: string | null;
45006
+ cost_price?: number | null;
45007
+ created_at?: string;
45008
+ description?: string | null;
45009
+ division_code?: number | null;
45010
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45011
+ exact_id: string;
45012
+ exact_modified?: string | null;
45013
+ exact_timestamp?: number | null;
45014
+ gl_account_code?: string | null;
45015
+ id?: string;
45016
+ is_active?: boolean;
45017
+ is_sales_item?: boolean | null;
45018
+ item_type?: string | null;
45019
+ raw?: import("../integrations/supabase/types").Json | null;
45020
+ sales_price?: number | null;
45021
+ unit?: string | null;
45022
+ updated_at?: string;
45023
+ vat_code?: string | null;
45024
+ };
45025
+ Update: {
45026
+ account_key?: string;
45027
+ barcode?: string | null;
45028
+ code?: string | null;
45029
+ cost_price?: number | null;
45030
+ created_at?: string;
45031
+ description?: string | null;
45032
+ division_code?: number | null;
45033
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45034
+ exact_id?: string;
45035
+ exact_modified?: string | null;
45036
+ exact_timestamp?: number | null;
45037
+ gl_account_code?: string | null;
45038
+ id?: string;
45039
+ is_active?: boolean;
45040
+ is_sales_item?: boolean | null;
45041
+ item_type?: string | null;
45042
+ raw?: import("../integrations/supabase/types").Json | null;
45043
+ sales_price?: number | null;
45044
+ unit?: string | null;
45045
+ updated_at?: string;
45046
+ vat_code?: string | null;
45047
+ };
45048
+ Relationships: [];
45049
+ };
45050
+ exact_auth_sync_log: {
45051
+ Row: {
45052
+ account_key: string;
45053
+ calls_used: number;
45054
+ created_at: string;
45055
+ domain: string;
45056
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45057
+ error: string | null;
45058
+ finished_at: string | null;
45059
+ id: string;
45060
+ ok: boolean;
45061
+ records: number;
45062
+ started_at: string;
45063
+ };
45064
+ Insert: {
45065
+ account_key?: string;
45066
+ calls_used?: number;
45067
+ created_at?: string;
45068
+ domain: string;
45069
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45070
+ error?: string | null;
45071
+ finished_at?: string | null;
45072
+ id?: string;
45073
+ ok?: boolean;
45074
+ records?: number;
45075
+ started_at?: string;
45076
+ };
45077
+ Update: {
45078
+ account_key?: string;
45079
+ calls_used?: number;
45080
+ created_at?: string;
45081
+ domain?: string;
45082
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45083
+ error?: string | null;
45084
+ finished_at?: string | null;
45085
+ id?: string;
45086
+ ok?: boolean;
45087
+ records?: number;
45088
+ started_at?: string;
45089
+ };
45090
+ Relationships: [];
45091
+ };
45092
+ exact_auth_sync_state: {
45093
+ Row: {
45094
+ account_key: string;
45095
+ created_at: string;
45096
+ cursor_timestamp: number;
45097
+ division_code: number | null;
45098
+ domain: string;
45099
+ duration_ms: number | null;
45100
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45101
+ initial_sync_done: boolean;
45102
+ last_error: string | null;
45103
+ last_run_at: string | null;
45104
+ last_success_at: string | null;
45105
+ locked_at: string | null;
45106
+ needs_initial_sync: boolean;
45107
+ record_count: number;
45108
+ updated_at: string;
45109
+ };
45110
+ Insert: {
45111
+ account_key?: string;
45112
+ created_at?: string;
45113
+ cursor_timestamp?: number;
45114
+ division_code?: number | null;
45115
+ domain: string;
45116
+ duration_ms?: number | null;
45117
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45118
+ initial_sync_done?: boolean;
45119
+ last_error?: string | null;
45120
+ last_run_at?: string | null;
45121
+ last_success_at?: string | null;
45122
+ locked_at?: string | null;
45123
+ needs_initial_sync?: boolean;
45124
+ record_count?: number;
45125
+ updated_at?: string;
45126
+ };
45127
+ Update: {
45128
+ account_key?: string;
45129
+ created_at?: string;
45130
+ cursor_timestamp?: number;
45131
+ division_code?: number | null;
45132
+ domain?: string;
45133
+ duration_ms?: number | null;
45134
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45135
+ initial_sync_done?: boolean;
45136
+ last_error?: string | null;
45137
+ last_run_at?: string | null;
45138
+ last_success_at?: string | null;
45139
+ locked_at?: string | null;
45140
+ needs_initial_sync?: boolean;
45141
+ record_count?: number;
45142
+ updated_at?: string;
45143
+ };
45144
+ Relationships: [];
45145
+ };
45146
+ exact_bulk_operation_items: {
45147
+ Row: {
45148
+ attempts: number;
45149
+ bulk_operation_id: string;
45150
+ created_at: string;
45151
+ error_message: string | null;
45152
+ id: string;
45153
+ invoice_cache_id: string | null;
45154
+ invoice_exact_id: string | null;
45155
+ processed_at: string | null;
45156
+ result_data: import("../integrations/supabase/types").Json | null;
45157
+ status: string;
45158
+ };
45159
+ Insert: {
45160
+ attempts?: number;
45161
+ bulk_operation_id: string;
45162
+ created_at?: string;
45163
+ error_message?: string | null;
45164
+ id?: string;
45165
+ invoice_cache_id?: string | null;
45166
+ invoice_exact_id?: string | null;
45167
+ processed_at?: string | null;
45168
+ result_data?: import("../integrations/supabase/types").Json | null;
45169
+ status?: string;
45170
+ };
45171
+ Update: {
45172
+ attempts?: number;
45173
+ bulk_operation_id?: string;
45174
+ created_at?: string;
45175
+ error_message?: string | null;
45176
+ id?: string;
45177
+ invoice_cache_id?: string | null;
45178
+ invoice_exact_id?: string | null;
45179
+ processed_at?: string | null;
45180
+ result_data?: import("../integrations/supabase/types").Json | null;
45181
+ status?: string;
45182
+ };
45183
+ Relationships: [{
45184
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
45185
+ columns: ["bulk_operation_id"];
45186
+ isOneToOne: false;
45187
+ referencedRelation: "exact_bulk_operations";
45188
+ referencedColumns: ["id"];
45189
+ }, {
45190
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
45191
+ columns: ["invoice_cache_id"];
45192
+ isOneToOne: false;
45193
+ referencedRelation: "exact_invoices_cache";
45194
+ referencedColumns: ["id"];
45195
+ }];
45196
+ };
45197
+ exact_bulk_operations: {
45198
+ Row: {
45199
+ completed_at: string | null;
45200
+ connection_id: string;
45201
+ created_at: string;
45202
+ created_by: string | null;
45203
+ error_message: string | null;
45204
+ failed_count: number | null;
45205
+ id: string;
45206
+ operation_type: string;
45207
+ processed_count: number | null;
45208
+ result_data: import("../integrations/supabase/types").Json | null;
45209
+ started_at: string | null;
45210
+ status: string;
45211
+ total_count: number | null;
45212
+ updated_at: string;
45213
+ };
45214
+ Insert: {
45215
+ completed_at?: string | null;
45216
+ connection_id: string;
45217
+ created_at?: string;
45218
+ created_by?: string | null;
45219
+ error_message?: string | null;
45220
+ failed_count?: number | null;
45221
+ id?: string;
45222
+ operation_type: string;
45223
+ processed_count?: number | null;
45224
+ result_data?: import("../integrations/supabase/types").Json | null;
45225
+ started_at?: string | null;
45226
+ status?: string;
45227
+ total_count?: number | null;
45228
+ updated_at?: string;
45229
+ };
45230
+ Update: {
45231
+ completed_at?: string | null;
45232
+ connection_id?: string;
45233
+ created_at?: string;
45234
+ created_by?: string | null;
45235
+ error_message?: string | null;
45236
+ failed_count?: number | null;
45237
+ id?: string;
45238
+ operation_type?: string;
45239
+ processed_count?: number | null;
45240
+ result_data?: import("../integrations/supabase/types").Json | null;
45241
+ started_at?: string | null;
45242
+ status?: string;
45243
+ total_count?: number | null;
45244
+ updated_at?: string;
45245
+ };
45246
+ Relationships: [{
45247
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
45248
+ columns: ["connection_id"];
45249
+ isOneToOne: false;
45250
+ referencedRelation: "exact_connections";
45251
+ referencedColumns: ["id"];
45252
+ }];
45253
+ };
45254
+ exact_connections: {
45255
+ Row: {
45256
+ access_token_encrypted: string;
45257
+ company_name: string | null;
45258
+ connected_at: string;
45259
+ connected_by: string | null;
45260
+ division_code: number | null;
45261
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45262
+ expires_at: string;
45263
+ id: string;
45264
+ last_error: string | null;
45265
+ last_refreshed_at: string | null;
45266
+ last_tested_at: string | null;
45267
+ refresh_token_encrypted: string;
45268
+ status: string;
45269
+ updated_at: string;
45270
+ };
45271
+ Insert: {
45272
+ access_token_encrypted: string;
45273
+ company_name?: string | null;
45274
+ connected_at?: string;
45275
+ connected_by?: string | null;
45276
+ division_code?: number | null;
45277
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45278
+ expires_at: string;
45279
+ id?: string;
45280
+ last_error?: string | null;
45281
+ last_refreshed_at?: string | null;
45282
+ last_tested_at?: string | null;
45283
+ refresh_token_encrypted: string;
45284
+ status?: string;
45285
+ updated_at?: string;
45286
+ };
45287
+ Update: {
45288
+ access_token_encrypted?: string;
45289
+ company_name?: string | null;
45290
+ connected_at?: string;
45291
+ connected_by?: string | null;
45292
+ division_code?: number | null;
45293
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45294
+ expires_at?: string;
45295
+ id?: string;
45296
+ last_error?: string | null;
45297
+ last_refreshed_at?: string | null;
45298
+ last_tested_at?: string | null;
45299
+ refresh_token_encrypted?: string;
45300
+ status?: string;
45301
+ updated_at?: string;
45302
+ };
45303
+ Relationships: [];
45304
+ };
45305
+ exact_credentials: {
45306
+ Row: {
45307
+ client_id: string;
45308
+ client_secret_encrypted: string;
45309
+ created_at: string;
45310
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45311
+ id: string;
45312
+ redirect_uri: string;
45313
+ updated_at: string;
45314
+ };
45315
+ Insert: {
45316
+ client_id: string;
45317
+ client_secret_encrypted: string;
45318
+ created_at?: string;
45319
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45320
+ id?: string;
45321
+ redirect_uri?: string;
45322
+ updated_at?: string;
45323
+ };
45324
+ Update: {
45325
+ client_id?: string;
45326
+ client_secret_encrypted?: string;
45327
+ created_at?: string;
45328
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45329
+ id?: string;
45330
+ redirect_uri?: string;
45331
+ updated_at?: string;
45332
+ };
45333
+ Relationships: [];
45334
+ };
45335
+ exact_customer_sync_queue: {
45336
+ Row: {
45337
+ attempts: number;
45338
+ connection_id: string;
45339
+ created_at: string;
45340
+ customer_exact_id: string | null;
45341
+ error_message: string | null;
45342
+ id: string;
45343
+ max_attempts: number;
45344
+ operation: string;
45345
+ payload: import("../integrations/supabase/types").Json;
45346
+ process_at: string;
45347
+ processed_at: string | null;
45348
+ status: string;
45349
+ updated_at: string;
45350
+ };
45351
+ Insert: {
45352
+ attempts?: number;
45353
+ connection_id: string;
45354
+ created_at?: string;
45355
+ customer_exact_id?: string | null;
45356
+ error_message?: string | null;
45357
+ id?: string;
45358
+ max_attempts?: number;
45359
+ operation: string;
45360
+ payload?: import("../integrations/supabase/types").Json;
45361
+ process_at?: string;
45362
+ processed_at?: string | null;
45363
+ status?: string;
45364
+ updated_at?: string;
45365
+ };
45366
+ Update: {
45367
+ attempts?: number;
45368
+ connection_id?: string;
45369
+ created_at?: string;
45370
+ customer_exact_id?: string | null;
45371
+ error_message?: string | null;
45372
+ id?: string;
45373
+ max_attempts?: number;
45374
+ operation?: string;
45375
+ payload?: import("../integrations/supabase/types").Json;
45376
+ process_at?: string;
45377
+ processed_at?: string | null;
45378
+ status?: string;
45379
+ updated_at?: string;
45380
+ };
45381
+ Relationships: [{
45382
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
45383
+ columns: ["connection_id"];
45384
+ isOneToOne: false;
45385
+ referencedRelation: "exact_connections";
45386
+ referencedColumns: ["id"];
45387
+ }];
45388
+ };
45389
+ exact_customers_cache: {
45390
+ Row: {
45391
+ account_name: string | null;
45392
+ account_number: string | null;
45393
+ address_line1: string | null;
45394
+ address_line2: string | null;
45395
+ balance: number | null;
45396
+ chamber_of_commerce: string | null;
45397
+ city: string | null;
45398
+ classification_description: string | null;
45399
+ connection_id: string;
45400
+ contact_name: string | null;
45401
+ country: string | null;
45402
+ created_at_exact: string | null;
45403
+ credit_line: number | null;
45404
+ currency: string | null;
45405
+ data_raw: import("../integrations/supabase/types").Json | null;
45406
+ email: string | null;
45407
+ exact_id: string;
43450
45408
  expires_at: string | null;
43451
45409
  fetched_at: string;
43452
45410
  id: string;
@@ -44876,12 +46834,17 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
44876
46834
  attempts: number;
44877
46835
  connection_id: string;
44878
46836
  created_at: string;
46837
+ desired_available: boolean | null;
44879
46838
  gateway_attempt_id: string | null;
44880
46839
  id: string;
44881
46840
  last_error: string | null;
46841
+ locked_at: string | null;
46842
+ locked_by: string | null;
46843
+ next_attempt_at: string;
44882
46844
  number_of_pieces: number;
44883
46845
  sent_at: string | null;
44884
46846
  status: string;
46847
+ superseded_by: string | null;
44885
46848
  trade_item_id: string;
44886
46849
  updated_at: string;
44887
46850
  user_id: string;
@@ -44890,12 +46853,17 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
44890
46853
  attempts?: number;
44891
46854
  connection_id: string;
44892
46855
  created_at?: string;
46856
+ desired_available?: boolean | null;
44893
46857
  gateway_attempt_id?: string | null;
44894
46858
  id?: string;
44895
46859
  last_error?: string | null;
46860
+ locked_at?: string | null;
46861
+ locked_by?: string | null;
46862
+ next_attempt_at?: string;
44896
46863
  number_of_pieces?: number;
44897
46864
  sent_at?: string | null;
44898
46865
  status?: string;
46866
+ superseded_by?: string | null;
44899
46867
  trade_item_id: string;
44900
46868
  updated_at?: string;
44901
46869
  user_id: string;
@@ -44904,12 +46872,17 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
44904
46872
  attempts?: number;
44905
46873
  connection_id?: string;
44906
46874
  created_at?: string;
46875
+ desired_available?: boolean | null;
44907
46876
  gateway_attempt_id?: string | null;
44908
46877
  id?: string;
44909
46878
  last_error?: string | null;
46879
+ locked_at?: string | null;
46880
+ locked_by?: string | null;
46881
+ next_attempt_at?: string;
44910
46882
  number_of_pieces?: number;
44911
46883
  sent_at?: string | null;
44912
46884
  status?: string;
46885
+ superseded_by?: string | null;
44913
46886
  trade_item_id?: string;
44914
46887
  updated_at?: string;
44915
46888
  user_id?: string;
@@ -47658,6 +49631,69 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
47658
49631
  };
47659
49632
  Relationships: [];
47660
49633
  };
49634
+ logistics_floriday_pushes: {
49635
+ Row: {
49636
+ attempts: number;
49637
+ created_at: string;
49638
+ first_queued_at: string;
49639
+ fulfillment_order_id: string | null;
49640
+ id: string;
49641
+ last_error: string | null;
49642
+ last_error_at: string | null;
49643
+ last_sent_hash: string | null;
49644
+ locked_by: string | null;
49645
+ locked_until: string | null;
49646
+ next_attempt_at: string;
49647
+ order_ref: string;
49648
+ payload: import("../integrations/supabase/types").Json;
49649
+ payload_hash: string | null;
49650
+ revision: number;
49651
+ sent_at: string | null;
49652
+ status: string;
49653
+ updated_at: string;
49654
+ };
49655
+ Insert: {
49656
+ attempts?: number;
49657
+ created_at?: string;
49658
+ first_queued_at?: string;
49659
+ fulfillment_order_id?: string | null;
49660
+ id?: string;
49661
+ last_error?: string | null;
49662
+ last_error_at?: string | null;
49663
+ last_sent_hash?: string | null;
49664
+ locked_by?: string | null;
49665
+ locked_until?: string | null;
49666
+ next_attempt_at?: string;
49667
+ order_ref: string;
49668
+ payload?: import("../integrations/supabase/types").Json;
49669
+ payload_hash?: string | null;
49670
+ revision?: number;
49671
+ sent_at?: string | null;
49672
+ status?: string;
49673
+ updated_at?: string;
49674
+ };
49675
+ Update: {
49676
+ attempts?: number;
49677
+ created_at?: string;
49678
+ first_queued_at?: string;
49679
+ fulfillment_order_id?: string | null;
49680
+ id?: string;
49681
+ last_error?: string | null;
49682
+ last_error_at?: string | null;
49683
+ last_sent_hash?: string | null;
49684
+ locked_by?: string | null;
49685
+ locked_until?: string | null;
49686
+ next_attempt_at?: string;
49687
+ order_ref?: string;
49688
+ payload?: import("../integrations/supabase/types").Json;
49689
+ payload_hash?: string | null;
49690
+ revision?: number;
49691
+ sent_at?: string | null;
49692
+ status?: string;
49693
+ updated_at?: string;
49694
+ };
49695
+ Relationships: [];
49696
+ };
47661
49697
  logistics_formulas: {
47662
49698
  Row: {
47663
49699
  created_at: string;
@@ -48269,6 +50305,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48269
50305
  };
48270
50306
  logistics_tasks: {
48271
50307
  Row: {
50308
+ attempt_log: import("../integrations/supabase/types").Json;
50309
+ attempts: number;
48272
50310
  buffer_ref: string | null;
48273
50311
  claimed_at: string | null;
48274
50312
  claimed_by: string | null;
@@ -48278,6 +50316,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48278
50316
  due_at: string | null;
48279
50317
  error: string | null;
48280
50318
  id: string;
50319
+ last_error: string | null;
50320
+ next_attempt_at: string | null;
48281
50321
  order_ref: string;
48282
50322
  owner_module: string;
48283
50323
  payload: import("../integrations/supabase/types").Json;
@@ -48298,6 +50338,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48298
50338
  user_id: string;
48299
50339
  };
48300
50340
  Insert: {
50341
+ attempt_log?: import("../integrations/supabase/types").Json;
50342
+ attempts?: number;
48301
50343
  buffer_ref?: string | null;
48302
50344
  claimed_at?: string | null;
48303
50345
  claimed_by?: string | null;
@@ -48307,6 +50349,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48307
50349
  due_at?: string | null;
48308
50350
  error?: string | null;
48309
50351
  id?: string;
50352
+ last_error?: string | null;
50353
+ next_attempt_at?: string | null;
48310
50354
  order_ref: string;
48311
50355
  owner_module: string;
48312
50356
  payload?: import("../integrations/supabase/types").Json;
@@ -48327,6 +50371,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48327
50371
  user_id?: string;
48328
50372
  };
48329
50373
  Update: {
50374
+ attempt_log?: import("../integrations/supabase/types").Json;
50375
+ attempts?: number;
48330
50376
  buffer_ref?: string | null;
48331
50377
  claimed_at?: string | null;
48332
50378
  claimed_by?: string | null;
@@ -48336,6 +50382,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
48336
50382
  due_at?: string | null;
48337
50383
  error?: string | null;
48338
50384
  id?: string;
50385
+ last_error?: string | null;
50386
+ next_attempt_at?: string | null;
48339
50387
  order_ref?: string;
48340
50388
  owner_module?: string;
48341
50389
  payload?: import("../integrations/supabase/types").Json;
@@ -49685,6 +51733,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
49685
51733
  };
49686
51734
  offer_settings: {
49687
51735
  Row: {
51736
+ brand_name: string | null;
49688
51737
  button_color: string;
49689
51738
  created_at: string;
49690
51739
  default_countries: string[];
@@ -49706,6 +51755,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
49706
51755
  updated_at: string;
49707
51756
  };
49708
51757
  Insert: {
51758
+ brand_name?: string | null;
49709
51759
  button_color?: string;
49710
51760
  created_at?: string;
49711
51761
  default_countries?: string[];
@@ -49727,6 +51777,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
49727
51777
  updated_at?: string;
49728
51778
  };
49729
51779
  Update: {
51780
+ brand_name?: string | null;
49730
51781
  button_color?: string;
49731
51782
  created_at?: string;
49732
51783
  default_countries?: string[];
@@ -57337,6 +59388,85 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
57337
59388
  };
57338
59389
  Returns: import("../integrations/supabase/types").Json;
57339
59390
  };
59391
+ claim_floriday_stock_queue: {
59392
+ Args: {
59393
+ p_limit?: number;
59394
+ p_worker?: string;
59395
+ };
59396
+ Returns: {
59397
+ attempts: number;
59398
+ connection_id: string;
59399
+ created_at: string;
59400
+ desired_available: boolean | null;
59401
+ gateway_attempt_id: string | null;
59402
+ id: string;
59403
+ last_error: string | null;
59404
+ locked_at: string | null;
59405
+ locked_by: string | null;
59406
+ next_attempt_at: string;
59407
+ number_of_pieces: number;
59408
+ sent_at: string | null;
59409
+ status: string;
59410
+ superseded_by: string | null;
59411
+ trade_item_id: string;
59412
+ updated_at: string;
59413
+ user_id: string;
59414
+ }[];
59415
+ SetofOptions: {
59416
+ from: "*";
59417
+ to: "floriday_continuous_stock_queue";
59418
+ isOneToOne: false;
59419
+ isSetofReturn: true;
59420
+ };
59421
+ };
59422
+ claim_logistics_tasks: {
59423
+ Args: {
59424
+ _limit?: number;
59425
+ _owner_module: string;
59426
+ _stale_minutes?: number;
59427
+ _task_type: string;
59428
+ _worker: string;
59429
+ };
59430
+ Returns: {
59431
+ attempt_log: import("../integrations/supabase/types").Json;
59432
+ attempts: number;
59433
+ buffer_ref: string | null;
59434
+ claimed_at: string | null;
59435
+ claimed_by: string | null;
59436
+ completed_at: string | null;
59437
+ created_at: string;
59438
+ depends_on: string[];
59439
+ due_at: string | null;
59440
+ error: string | null;
59441
+ id: string;
59442
+ last_error: string | null;
59443
+ next_attempt_at: string | null;
59444
+ order_ref: string;
59445
+ owner_module: string;
59446
+ payload: import("../integrations/supabase/types").Json;
59447
+ plan_run_id: string | null;
59448
+ planned_end: string | null;
59449
+ planned_start: string | null;
59450
+ priority: number;
59451
+ result: import("../integrations/supabase/types").Json | null;
59452
+ rule_config_id: string | null;
59453
+ rule_version: number | null;
59454
+ sequence: number;
59455
+ shadow: boolean;
59456
+ started_at: string | null;
59457
+ status: string;
59458
+ strategy_id: string | null;
59459
+ task_type: string;
59460
+ updated_at: string;
59461
+ user_id: string;
59462
+ }[];
59463
+ SetofOptions: {
59464
+ from: "*";
59465
+ to: "logistics_tasks";
59466
+ isOneToOne: false;
59467
+ isSetofReturn: true;
59468
+ };
59469
+ };
57340
59470
  claim_print_jobs: {
57341
59471
  Args: {
57342
59472
  _agent_id: string;
@@ -57401,10 +59531,24 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
57401
59531
  isSetofReturn: true;
57402
59532
  };
57403
59533
  };
59534
+ cleanup_floriday_stock_queue: {
59535
+ Args: never;
59536
+ Returns: undefined;
59537
+ };
57404
59538
  cleanup_old_bookings: {
57405
59539
  Args: never;
57406
59540
  Returns: undefined;
57407
59541
  };
59542
+ complete_floriday_stock_queue: {
59543
+ Args: {
59544
+ p_attempt_id?: string;
59545
+ p_error?: string;
59546
+ p_id: string;
59547
+ p_ok: boolean;
59548
+ p_permanent?: boolean;
59549
+ };
59550
+ Returns: undefined;
59551
+ };
57408
59552
  consume_bom_for_production: {
57409
59553
  Args: {
57410
59554
  p_connection_id: string;
@@ -57577,6 +59721,21 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
57577
59721
  Args: never;
57578
59722
  Returns: string;
57579
59723
  };
59724
+ exact_auth_consume_calls: {
59725
+ Args: {
59726
+ _account_key: string;
59727
+ _calls?: number;
59728
+ _day_limit?: number;
59729
+ _division_code: number;
59730
+ _environment: string;
59731
+ _minute_limit?: number;
59732
+ };
59733
+ Returns: import("../integrations/supabase/types").Json;
59734
+ };
59735
+ exact_auth_prune_sync_log: {
59736
+ Args: never;
59737
+ Returns: undefined;
59738
+ };
57580
59739
  exact_decrypt: {
57581
59740
  Args: {
57582
59741
  cipher: string;
@@ -57786,6 +59945,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
57786
59945
  };
57787
59946
  Returns: number;
57788
59947
  };
59948
+ get_offer_branding: {
59949
+ Args: never;
59950
+ Returns: import("../integrations/supabase/types").Json;
59951
+ };
57789
59952
  get_offer_by_link_code: {
57790
59953
  Args: {
57791
59954
  p_code: string;
@@ -58077,6 +60240,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58077
60240
  p_worker?: string;
58078
60241
  };
58079
60242
  Returns: {
60243
+ attempt_log: import("../integrations/supabase/types").Json;
60244
+ attempts: number;
58080
60245
  buffer_ref: string | null;
58081
60246
  claimed_at: string | null;
58082
60247
  claimed_by: string | null;
@@ -58086,6 +60251,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58086
60251
  due_at: string | null;
58087
60252
  error: string | null;
58088
60253
  id: string;
60254
+ last_error: string | null;
60255
+ next_attempt_at: string | null;
58089
60256
  order_ref: string;
58090
60257
  owner_module: string;
58091
60258
  payload: import("../integrations/supabase/types").Json;
@@ -58118,6 +60285,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58118
60285
  p_worker?: string;
58119
60286
  };
58120
60287
  Returns: {
60288
+ attempt_log: import("../integrations/supabase/types").Json;
60289
+ attempts: number;
58121
60290
  buffer_ref: string | null;
58122
60291
  claimed_at: string | null;
58123
60292
  claimed_by: string | null;
@@ -58127,6 +60296,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58127
60296
  due_at: string | null;
58128
60297
  error: string | null;
58129
60298
  id: string;
60299
+ last_error: string | null;
60300
+ next_attempt_at: string | null;
58130
60301
  order_ref: string;
58131
60302
  owner_module: string;
58132
60303
  payload: import("../integrations/supabase/types").Json;
@@ -58159,6 +60330,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58159
60330
  p_task_id: string;
58160
60331
  };
58161
60332
  Returns: {
60333
+ attempt_log: import("../integrations/supabase/types").Json;
60334
+ attempts: number;
58162
60335
  buffer_ref: string | null;
58163
60336
  claimed_at: string | null;
58164
60337
  claimed_by: string | null;
@@ -58168,6 +60341,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58168
60341
  due_at: string | null;
58169
60342
  error: string | null;
58170
60343
  id: string;
60344
+ last_error: string | null;
60345
+ next_attempt_at: string | null;
58171
60346
  order_ref: string;
58172
60347
  owner_module: string;
58173
60348
  payload: import("../integrations/supabase/types").Json;
@@ -58249,6 +60424,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58249
60424
  p_task_id: string;
58250
60425
  };
58251
60426
  Returns: {
60427
+ attempt_log: import("../integrations/supabase/types").Json;
60428
+ attempts: number;
58252
60429
  buffer_ref: string | null;
58253
60430
  claimed_at: string | null;
58254
60431
  claimed_by: string | null;
@@ -58258,6 +60435,8 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58258
60435
  due_at: string | null;
58259
60436
  error: string | null;
58260
60437
  id: string;
60438
+ last_error: string | null;
60439
+ next_attempt_at: string | null;
58261
60440
  order_ref: string;
58262
60441
  owner_module: string;
58263
60442
  payload: import("../integrations/supabase/types").Json;
@@ -58284,6 +60463,51 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
58284
60463
  isSetofReturn: false;
58285
60464
  };
58286
60465
  };
60466
+ logistics_floriday_claim_pushes: {
60467
+ Args: {
60468
+ _lease_seconds?: number;
60469
+ _limit?: number;
60470
+ _worker?: string;
60471
+ };
60472
+ Returns: {
60473
+ attempts: number;
60474
+ fulfillment_order_id: string;
60475
+ id: string;
60476
+ last_sent_hash: string;
60477
+ order_ref: string;
60478
+ payload: import("../integrations/supabase/types").Json;
60479
+ payload_hash: string;
60480
+ revision: number;
60481
+ }[];
60482
+ };
60483
+ logistics_floriday_finish_push: {
60484
+ Args: {
60485
+ _error?: string;
60486
+ _fulfillment_order_id?: string;
60487
+ _id: string;
60488
+ _max_age_hours?: number;
60489
+ _max_attempts?: number;
60490
+ _ok: boolean;
60491
+ _permanent?: boolean;
60492
+ _revision: number;
60493
+ _sent_hash?: string;
60494
+ };
60495
+ Returns: string;
60496
+ };
60497
+ logistics_floriday_prune_pushes: {
60498
+ Args: {
60499
+ _days?: number;
60500
+ };
60501
+ Returns: number;
60502
+ };
60503
+ logistics_floriday_queue_push: {
60504
+ Args: {
60505
+ _order_ref: string;
60506
+ _payload?: import("../integrations/supabase/types").Json;
60507
+ _payload_hash?: string;
60508
+ };
60509
+ Returns: string;
60510
+ };
58287
60511
  logistics_live_carriers: {
58288
60512
  Args: {
58289
60513
  p_order_ref: string;
@@ -59011,6 +61235,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
59011
61235
  Args: never;
59012
61236
  Returns: undefined;
59013
61237
  };
61238
+ run_logistics_tasks_dispatch: {
61239
+ Args: never;
61240
+ Returns: undefined;
61241
+ };
59014
61242
  run_twinfield_queue_tick: {
59015
61243
  Args: never;
59016
61244
  Returns: undefined;
@@ -59251,6 +61479,13 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
59251
61479
  };
59252
61480
  Returns: number;
59253
61481
  };
61482
+ schedule_floriday_stock_queue_process: {
61483
+ Args: {
61484
+ p_apikey: string;
61485
+ p_url: string;
61486
+ };
61487
+ Returns: number;
61488
+ };
59254
61489
  schedule_floriday_token_refresh: {
59255
61490
  Args: {
59256
61491
  p_apikey: string;
@@ -63012,6 +65247,474 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
63012
65247
  referencedColumns: ["id"];
63013
65248
  }];
63014
65249
  };
65250
+ exact_auth_call_budget: {
65251
+ Row: {
65252
+ account_key: string;
65253
+ day_count: number;
65254
+ day_date: string;
65255
+ division_code: number;
65256
+ environment: string;
65257
+ minute_count: number;
65258
+ minute_window: string;
65259
+ updated_at: string;
65260
+ };
65261
+ Insert: {
65262
+ account_key?: string;
65263
+ day_count?: number;
65264
+ day_date?: string;
65265
+ division_code?: number;
65266
+ environment: string;
65267
+ minute_count?: number;
65268
+ minute_window?: string;
65269
+ updated_at?: string;
65270
+ };
65271
+ Update: {
65272
+ account_key?: string;
65273
+ day_count?: number;
65274
+ day_date?: string;
65275
+ division_code?: number;
65276
+ environment?: string;
65277
+ minute_count?: number;
65278
+ minute_window?: string;
65279
+ updated_at?: string;
65280
+ };
65281
+ Relationships: [];
65282
+ };
65283
+ exact_auth_customers: {
65284
+ Row: {
65285
+ account_key: string;
65286
+ address_line1: string | null;
65287
+ chamber_of_commerce: string | null;
65288
+ city: string | null;
65289
+ code: string | null;
65290
+ country: string | null;
65291
+ created_at: string;
65292
+ currency: string | null;
65293
+ division_code: number | null;
65294
+ email: string | null;
65295
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65296
+ exact_id: string;
65297
+ exact_modified: string | null;
65298
+ exact_timestamp: number | null;
65299
+ id: string;
65300
+ is_active: boolean;
65301
+ name: string | null;
65302
+ phone: string | null;
65303
+ postcode: string | null;
65304
+ raw: import("../integrations/supabase/types").Json | null;
65305
+ status: string | null;
65306
+ updated_at: string;
65307
+ vat_number: string | null;
65308
+ website: string | null;
65309
+ };
65310
+ Insert: {
65311
+ account_key?: string;
65312
+ address_line1?: string | null;
65313
+ chamber_of_commerce?: string | null;
65314
+ city?: string | null;
65315
+ code?: string | null;
65316
+ country?: string | null;
65317
+ created_at?: string;
65318
+ currency?: string | null;
65319
+ division_code?: number | null;
65320
+ email?: string | null;
65321
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65322
+ exact_id: string;
65323
+ exact_modified?: string | null;
65324
+ exact_timestamp?: number | null;
65325
+ id?: string;
65326
+ is_active?: boolean;
65327
+ name?: string | null;
65328
+ phone?: string | null;
65329
+ postcode?: string | null;
65330
+ raw?: import("../integrations/supabase/types").Json | null;
65331
+ status?: string | null;
65332
+ updated_at?: string;
65333
+ vat_number?: string | null;
65334
+ website?: string | null;
65335
+ };
65336
+ Update: {
65337
+ account_key?: string;
65338
+ address_line1?: string | null;
65339
+ chamber_of_commerce?: string | null;
65340
+ city?: string | null;
65341
+ code?: string | null;
65342
+ country?: string | null;
65343
+ created_at?: string;
65344
+ currency?: string | null;
65345
+ division_code?: number | null;
65346
+ email?: string | null;
65347
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65348
+ exact_id?: string;
65349
+ exact_modified?: string | null;
65350
+ exact_timestamp?: number | null;
65351
+ id?: string;
65352
+ is_active?: boolean;
65353
+ name?: string | null;
65354
+ phone?: string | null;
65355
+ postcode?: string | null;
65356
+ raw?: import("../integrations/supabase/types").Json | null;
65357
+ status?: string | null;
65358
+ updated_at?: string;
65359
+ vat_number?: string | null;
65360
+ website?: string | null;
65361
+ };
65362
+ Relationships: [];
65363
+ };
65364
+ exact_auth_divisions: {
65365
+ Row: {
65366
+ account_key: string;
65367
+ company_name: string | null;
65368
+ created_at: string;
65369
+ division_code: number | null;
65370
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65371
+ id: string;
65372
+ last_synced_at: string | null;
65373
+ updated_at: string;
65374
+ };
65375
+ Insert: {
65376
+ account_key?: string;
65377
+ company_name?: string | null;
65378
+ created_at?: string;
65379
+ division_code?: number | null;
65380
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65381
+ id?: string;
65382
+ last_synced_at?: string | null;
65383
+ updated_at?: string;
65384
+ };
65385
+ Update: {
65386
+ account_key?: string;
65387
+ company_name?: string | null;
65388
+ created_at?: string;
65389
+ division_code?: number | null;
65390
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65391
+ id?: string;
65392
+ last_synced_at?: string | null;
65393
+ updated_at?: string;
65394
+ };
65395
+ Relationships: [];
65396
+ };
65397
+ exact_auth_invoice_lines: {
65398
+ Row: {
65399
+ account_key: string;
65400
+ amount_excl: number | null;
65401
+ created_at: string;
65402
+ description: string | null;
65403
+ discount: number | null;
65404
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65405
+ exact_id: string;
65406
+ exact_timestamp: number | null;
65407
+ id: string;
65408
+ invoice_exact_id: string;
65409
+ item_code: string | null;
65410
+ item_exact_id: string | null;
65411
+ line_number: number | null;
65412
+ quantity: number | null;
65413
+ raw: import("../integrations/supabase/types").Json | null;
65414
+ unit_price: number | null;
65415
+ updated_at: string;
65416
+ vat_amount: number | null;
65417
+ vat_code: string | null;
65418
+ };
65419
+ Insert: {
65420
+ account_key?: string;
65421
+ amount_excl?: number | null;
65422
+ created_at?: string;
65423
+ description?: string | null;
65424
+ discount?: number | null;
65425
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65426
+ exact_id: string;
65427
+ exact_timestamp?: number | null;
65428
+ id?: string;
65429
+ invoice_exact_id: string;
65430
+ item_code?: string | null;
65431
+ item_exact_id?: string | null;
65432
+ line_number?: number | null;
65433
+ quantity?: number | null;
65434
+ raw?: import("../integrations/supabase/types").Json | null;
65435
+ unit_price?: number | null;
65436
+ updated_at?: string;
65437
+ vat_amount?: number | null;
65438
+ vat_code?: string | null;
65439
+ };
65440
+ Update: {
65441
+ account_key?: string;
65442
+ amount_excl?: number | null;
65443
+ created_at?: string;
65444
+ description?: string | null;
65445
+ discount?: number | null;
65446
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65447
+ exact_id?: string;
65448
+ exact_timestamp?: number | null;
65449
+ id?: string;
65450
+ invoice_exact_id?: string;
65451
+ item_code?: string | null;
65452
+ item_exact_id?: string | null;
65453
+ line_number?: number | null;
65454
+ quantity?: number | null;
65455
+ raw?: import("../integrations/supabase/types").Json | null;
65456
+ unit_price?: number | null;
65457
+ updated_at?: string;
65458
+ vat_amount?: number | null;
65459
+ vat_code?: string | null;
65460
+ };
65461
+ Relationships: [];
65462
+ };
65463
+ exact_auth_invoices: {
65464
+ Row: {
65465
+ account_key: string;
65466
+ amount_excl: number | null;
65467
+ amount_incl: number | null;
65468
+ amount_open: number | null;
65469
+ created_at: string;
65470
+ currency: string | null;
65471
+ customer_code: string | null;
65472
+ customer_exact_id: string | null;
65473
+ customer_name: string | null;
65474
+ description: string | null;
65475
+ division_code: number | null;
65476
+ due_date: string | null;
65477
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65478
+ exact_id: string;
65479
+ exact_modified: string | null;
65480
+ exact_timestamp: number | null;
65481
+ id: string;
65482
+ invoice_date: string | null;
65483
+ invoice_number: string | null;
65484
+ order_number: string | null;
65485
+ paid_at: string | null;
65486
+ payment_status: string;
65487
+ raw: import("../integrations/supabase/types").Json | null;
65488
+ receivable_synced_at: string | null;
65489
+ status_code: number | null;
65490
+ updated_at: string;
65491
+ };
65492
+ Insert: {
65493
+ account_key?: string;
65494
+ amount_excl?: number | null;
65495
+ amount_incl?: number | null;
65496
+ amount_open?: number | null;
65497
+ created_at?: string;
65498
+ currency?: string | null;
65499
+ customer_code?: string | null;
65500
+ customer_exact_id?: string | null;
65501
+ customer_name?: string | null;
65502
+ description?: string | null;
65503
+ division_code?: number | null;
65504
+ due_date?: string | null;
65505
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65506
+ exact_id: string;
65507
+ exact_modified?: string | null;
65508
+ exact_timestamp?: number | null;
65509
+ id?: string;
65510
+ invoice_date?: string | null;
65511
+ invoice_number?: string | null;
65512
+ order_number?: string | null;
65513
+ paid_at?: string | null;
65514
+ payment_status?: string;
65515
+ raw?: import("../integrations/supabase/types").Json | null;
65516
+ receivable_synced_at?: string | null;
65517
+ status_code?: number | null;
65518
+ updated_at?: string;
65519
+ };
65520
+ Update: {
65521
+ account_key?: string;
65522
+ amount_excl?: number | null;
65523
+ amount_incl?: number | null;
65524
+ amount_open?: number | null;
65525
+ created_at?: string;
65526
+ currency?: string | null;
65527
+ customer_code?: string | null;
65528
+ customer_exact_id?: string | null;
65529
+ customer_name?: string | null;
65530
+ description?: string | null;
65531
+ division_code?: number | null;
65532
+ due_date?: string | null;
65533
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65534
+ exact_id?: string;
65535
+ exact_modified?: string | null;
65536
+ exact_timestamp?: number | null;
65537
+ id?: string;
65538
+ invoice_date?: string | null;
65539
+ invoice_number?: string | null;
65540
+ order_number?: string | null;
65541
+ paid_at?: string | null;
65542
+ payment_status?: string;
65543
+ raw?: import("../integrations/supabase/types").Json | null;
65544
+ receivable_synced_at?: string | null;
65545
+ status_code?: number | null;
65546
+ updated_at?: string;
65547
+ };
65548
+ Relationships: [];
65549
+ };
65550
+ exact_auth_items: {
65551
+ Row: {
65552
+ account_key: string;
65553
+ barcode: string | null;
65554
+ code: string | null;
65555
+ cost_price: number | null;
65556
+ created_at: string;
65557
+ description: string | null;
65558
+ division_code: number | null;
65559
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65560
+ exact_id: string;
65561
+ exact_modified: string | null;
65562
+ exact_timestamp: number | null;
65563
+ gl_account_code: string | null;
65564
+ id: string;
65565
+ is_active: boolean;
65566
+ is_sales_item: boolean | null;
65567
+ item_type: string | null;
65568
+ raw: import("../integrations/supabase/types").Json | null;
65569
+ sales_price: number | null;
65570
+ unit: string | null;
65571
+ updated_at: string;
65572
+ vat_code: string | null;
65573
+ };
65574
+ Insert: {
65575
+ account_key?: string;
65576
+ barcode?: string | null;
65577
+ code?: string | null;
65578
+ cost_price?: number | null;
65579
+ created_at?: string;
65580
+ description?: string | null;
65581
+ division_code?: number | null;
65582
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65583
+ exact_id: string;
65584
+ exact_modified?: string | null;
65585
+ exact_timestamp?: number | null;
65586
+ gl_account_code?: string | null;
65587
+ id?: string;
65588
+ is_active?: boolean;
65589
+ is_sales_item?: boolean | null;
65590
+ item_type?: string | null;
65591
+ raw?: import("../integrations/supabase/types").Json | null;
65592
+ sales_price?: number | null;
65593
+ unit?: string | null;
65594
+ updated_at?: string;
65595
+ vat_code?: string | null;
65596
+ };
65597
+ Update: {
65598
+ account_key?: string;
65599
+ barcode?: string | null;
65600
+ code?: string | null;
65601
+ cost_price?: number | null;
65602
+ created_at?: string;
65603
+ description?: string | null;
65604
+ division_code?: number | null;
65605
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65606
+ exact_id?: string;
65607
+ exact_modified?: string | null;
65608
+ exact_timestamp?: number | null;
65609
+ gl_account_code?: string | null;
65610
+ id?: string;
65611
+ is_active?: boolean;
65612
+ is_sales_item?: boolean | null;
65613
+ item_type?: string | null;
65614
+ raw?: import("../integrations/supabase/types").Json | null;
65615
+ sales_price?: number | null;
65616
+ unit?: string | null;
65617
+ updated_at?: string;
65618
+ vat_code?: string | null;
65619
+ };
65620
+ Relationships: [];
65621
+ };
65622
+ exact_auth_sync_log: {
65623
+ Row: {
65624
+ account_key: string;
65625
+ calls_used: number;
65626
+ created_at: string;
65627
+ domain: string;
65628
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65629
+ error: string | null;
65630
+ finished_at: string | null;
65631
+ id: string;
65632
+ ok: boolean;
65633
+ records: number;
65634
+ started_at: string;
65635
+ };
65636
+ Insert: {
65637
+ account_key?: string;
65638
+ calls_used?: number;
65639
+ created_at?: string;
65640
+ domain: string;
65641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65642
+ error?: string | null;
65643
+ finished_at?: string | null;
65644
+ id?: string;
65645
+ ok?: boolean;
65646
+ records?: number;
65647
+ started_at?: string;
65648
+ };
65649
+ Update: {
65650
+ account_key?: string;
65651
+ calls_used?: number;
65652
+ created_at?: string;
65653
+ domain?: string;
65654
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65655
+ error?: string | null;
65656
+ finished_at?: string | null;
65657
+ id?: string;
65658
+ ok?: boolean;
65659
+ records?: number;
65660
+ started_at?: string;
65661
+ };
65662
+ Relationships: [];
65663
+ };
65664
+ exact_auth_sync_state: {
65665
+ Row: {
65666
+ account_key: string;
65667
+ created_at: string;
65668
+ cursor_timestamp: number;
65669
+ division_code: number | null;
65670
+ domain: string;
65671
+ duration_ms: number | null;
65672
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65673
+ initial_sync_done: boolean;
65674
+ last_error: string | null;
65675
+ last_run_at: string | null;
65676
+ last_success_at: string | null;
65677
+ locked_at: string | null;
65678
+ needs_initial_sync: boolean;
65679
+ record_count: number;
65680
+ updated_at: string;
65681
+ };
65682
+ Insert: {
65683
+ account_key?: string;
65684
+ created_at?: string;
65685
+ cursor_timestamp?: number;
65686
+ division_code?: number | null;
65687
+ domain: string;
65688
+ duration_ms?: number | null;
65689
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65690
+ initial_sync_done?: boolean;
65691
+ last_error?: string | null;
65692
+ last_run_at?: string | null;
65693
+ last_success_at?: string | null;
65694
+ locked_at?: string | null;
65695
+ needs_initial_sync?: boolean;
65696
+ record_count?: number;
65697
+ updated_at?: string;
65698
+ };
65699
+ Update: {
65700
+ account_key?: string;
65701
+ created_at?: string;
65702
+ cursor_timestamp?: number;
65703
+ division_code?: number | null;
65704
+ domain?: string;
65705
+ duration_ms?: number | null;
65706
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65707
+ initial_sync_done?: boolean;
65708
+ last_error?: string | null;
65709
+ last_run_at?: string | null;
65710
+ last_success_at?: string | null;
65711
+ locked_at?: string | null;
65712
+ needs_initial_sync?: boolean;
65713
+ record_count?: number;
65714
+ updated_at?: string;
65715
+ };
65716
+ Relationships: [];
65717
+ };
63015
65718
  exact_bulk_operation_items: {
63016
65719
  Row: {
63017
65720
  attempts: number;
@@ -64703,12 +67406,17 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
64703
67406
  attempts: number;
64704
67407
  connection_id: string;
64705
67408
  created_at: string;
67409
+ desired_available: boolean | null;
64706
67410
  gateway_attempt_id: string | null;
64707
67411
  id: string;
64708
67412
  last_error: string | null;
67413
+ locked_at: string | null;
67414
+ locked_by: string | null;
67415
+ next_attempt_at: string;
64709
67416
  number_of_pieces: number;
64710
67417
  sent_at: string | null;
64711
67418
  status: string;
67419
+ superseded_by: string | null;
64712
67420
  trade_item_id: string;
64713
67421
  updated_at: string;
64714
67422
  user_id: string;
@@ -64717,12 +67425,17 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
64717
67425
  attempts?: number;
64718
67426
  connection_id: string;
64719
67427
  created_at?: string;
67428
+ desired_available?: boolean | null;
64720
67429
  gateway_attempt_id?: string | null;
64721
67430
  id?: string;
64722
67431
  last_error?: string | null;
67432
+ locked_at?: string | null;
67433
+ locked_by?: string | null;
67434
+ next_attempt_at?: string;
64723
67435
  number_of_pieces?: number;
64724
67436
  sent_at?: string | null;
64725
67437
  status?: string;
67438
+ superseded_by?: string | null;
64726
67439
  trade_item_id: string;
64727
67440
  updated_at?: string;
64728
67441
  user_id: string;
@@ -64731,12 +67444,17 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
64731
67444
  attempts?: number;
64732
67445
  connection_id?: string;
64733
67446
  created_at?: string;
67447
+ desired_available?: boolean | null;
64734
67448
  gateway_attempt_id?: string | null;
64735
67449
  id?: string;
64736
67450
  last_error?: string | null;
67451
+ locked_at?: string | null;
67452
+ locked_by?: string | null;
67453
+ next_attempt_at?: string;
64737
67454
  number_of_pieces?: number;
64738
67455
  sent_at?: string | null;
64739
67456
  status?: string;
67457
+ superseded_by?: string | null;
64740
67458
  trade_item_id?: string;
64741
67459
  updated_at?: string;
64742
67460
  user_id?: string;
@@ -67485,6 +70203,69 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
67485
70203
  };
67486
70204
  Relationships: [];
67487
70205
  };
70206
+ logistics_floriday_pushes: {
70207
+ Row: {
70208
+ attempts: number;
70209
+ created_at: string;
70210
+ first_queued_at: string;
70211
+ fulfillment_order_id: string | null;
70212
+ id: string;
70213
+ last_error: string | null;
70214
+ last_error_at: string | null;
70215
+ last_sent_hash: string | null;
70216
+ locked_by: string | null;
70217
+ locked_until: string | null;
70218
+ next_attempt_at: string;
70219
+ order_ref: string;
70220
+ payload: import("../integrations/supabase/types").Json;
70221
+ payload_hash: string | null;
70222
+ revision: number;
70223
+ sent_at: string | null;
70224
+ status: string;
70225
+ updated_at: string;
70226
+ };
70227
+ Insert: {
70228
+ attempts?: number;
70229
+ created_at?: string;
70230
+ first_queued_at?: string;
70231
+ fulfillment_order_id?: string | null;
70232
+ id?: string;
70233
+ last_error?: string | null;
70234
+ last_error_at?: string | null;
70235
+ last_sent_hash?: string | null;
70236
+ locked_by?: string | null;
70237
+ locked_until?: string | null;
70238
+ next_attempt_at?: string;
70239
+ order_ref: string;
70240
+ payload?: import("../integrations/supabase/types").Json;
70241
+ payload_hash?: string | null;
70242
+ revision?: number;
70243
+ sent_at?: string | null;
70244
+ status?: string;
70245
+ updated_at?: string;
70246
+ };
70247
+ Update: {
70248
+ attempts?: number;
70249
+ created_at?: string;
70250
+ first_queued_at?: string;
70251
+ fulfillment_order_id?: string | null;
70252
+ id?: string;
70253
+ last_error?: string | null;
70254
+ last_error_at?: string | null;
70255
+ last_sent_hash?: string | null;
70256
+ locked_by?: string | null;
70257
+ locked_until?: string | null;
70258
+ next_attempt_at?: string;
70259
+ order_ref?: string;
70260
+ payload?: import("../integrations/supabase/types").Json;
70261
+ payload_hash?: string | null;
70262
+ revision?: number;
70263
+ sent_at?: string | null;
70264
+ status?: string;
70265
+ updated_at?: string;
70266
+ };
70267
+ Relationships: [];
70268
+ };
67488
70269
  logistics_formulas: {
67489
70270
  Row: {
67490
70271
  created_at: string;
@@ -68096,6 +70877,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68096
70877
  };
68097
70878
  logistics_tasks: {
68098
70879
  Row: {
70880
+ attempt_log: import("../integrations/supabase/types").Json;
70881
+ attempts: number;
68099
70882
  buffer_ref: string | null;
68100
70883
  claimed_at: string | null;
68101
70884
  claimed_by: string | null;
@@ -68105,6 +70888,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68105
70888
  due_at: string | null;
68106
70889
  error: string | null;
68107
70890
  id: string;
70891
+ last_error: string | null;
70892
+ next_attempt_at: string | null;
68108
70893
  order_ref: string;
68109
70894
  owner_module: string;
68110
70895
  payload: import("../integrations/supabase/types").Json;
@@ -68125,6 +70910,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68125
70910
  user_id: string;
68126
70911
  };
68127
70912
  Insert: {
70913
+ attempt_log?: import("../integrations/supabase/types").Json;
70914
+ attempts?: number;
68128
70915
  buffer_ref?: string | null;
68129
70916
  claimed_at?: string | null;
68130
70917
  claimed_by?: string | null;
@@ -68134,6 +70921,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68134
70921
  due_at?: string | null;
68135
70922
  error?: string | null;
68136
70923
  id?: string;
70924
+ last_error?: string | null;
70925
+ next_attempt_at?: string | null;
68137
70926
  order_ref: string;
68138
70927
  owner_module: string;
68139
70928
  payload?: import("../integrations/supabase/types").Json;
@@ -68154,6 +70943,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68154
70943
  user_id?: string;
68155
70944
  };
68156
70945
  Update: {
70946
+ attempt_log?: import("../integrations/supabase/types").Json;
70947
+ attempts?: number;
68157
70948
  buffer_ref?: string | null;
68158
70949
  claimed_at?: string | null;
68159
70950
  claimed_by?: string | null;
@@ -68163,6 +70954,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
68163
70954
  due_at?: string | null;
68164
70955
  error?: string | null;
68165
70956
  id?: string;
70957
+ last_error?: string | null;
70958
+ next_attempt_at?: string | null;
68166
70959
  order_ref?: string;
68167
70960
  owner_module?: string;
68168
70961
  payload?: import("../integrations/supabase/types").Json;
@@ -69512,6 +72305,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
69512
72305
  };
69513
72306
  offer_settings: {
69514
72307
  Row: {
72308
+ brand_name: string | null;
69515
72309
  button_color: string;
69516
72310
  created_at: string;
69517
72311
  default_countries: string[];
@@ -69533,6 +72327,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
69533
72327
  updated_at: string;
69534
72328
  };
69535
72329
  Insert: {
72330
+ brand_name?: string | null;
69536
72331
  button_color?: string;
69537
72332
  created_at?: string;
69538
72333
  default_countries?: string[];
@@ -69554,6 +72349,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
69554
72349
  updated_at?: string;
69555
72350
  };
69556
72351
  Update: {
72352
+ brand_name?: string | null;
69557
72353
  button_color?: string;
69558
72354
  created_at?: string;
69559
72355
  default_countries?: string[];
@@ -77164,6 +79960,85 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77164
79960
  };
77165
79961
  Returns: import("../integrations/supabase/types").Json;
77166
79962
  };
79963
+ claim_floriday_stock_queue: {
79964
+ Args: {
79965
+ p_limit?: number;
79966
+ p_worker?: string;
79967
+ };
79968
+ Returns: {
79969
+ attempts: number;
79970
+ connection_id: string;
79971
+ created_at: string;
79972
+ desired_available: boolean | null;
79973
+ gateway_attempt_id: string | null;
79974
+ id: string;
79975
+ last_error: string | null;
79976
+ locked_at: string | null;
79977
+ locked_by: string | null;
79978
+ next_attempt_at: string;
79979
+ number_of_pieces: number;
79980
+ sent_at: string | null;
79981
+ status: string;
79982
+ superseded_by: string | null;
79983
+ trade_item_id: string;
79984
+ updated_at: string;
79985
+ user_id: string;
79986
+ }[];
79987
+ SetofOptions: {
79988
+ from: "*";
79989
+ to: "floriday_continuous_stock_queue";
79990
+ isOneToOne: false;
79991
+ isSetofReturn: true;
79992
+ };
79993
+ };
79994
+ claim_logistics_tasks: {
79995
+ Args: {
79996
+ _limit?: number;
79997
+ _owner_module: string;
79998
+ _stale_minutes?: number;
79999
+ _task_type: string;
80000
+ _worker: string;
80001
+ };
80002
+ Returns: {
80003
+ attempt_log: import("../integrations/supabase/types").Json;
80004
+ attempts: number;
80005
+ buffer_ref: string | null;
80006
+ claimed_at: string | null;
80007
+ claimed_by: string | null;
80008
+ completed_at: string | null;
80009
+ created_at: string;
80010
+ depends_on: string[];
80011
+ due_at: string | null;
80012
+ error: string | null;
80013
+ id: string;
80014
+ last_error: string | null;
80015
+ next_attempt_at: string | null;
80016
+ order_ref: string;
80017
+ owner_module: string;
80018
+ payload: import("../integrations/supabase/types").Json;
80019
+ plan_run_id: string | null;
80020
+ planned_end: string | null;
80021
+ planned_start: string | null;
80022
+ priority: number;
80023
+ result: import("../integrations/supabase/types").Json | null;
80024
+ rule_config_id: string | null;
80025
+ rule_version: number | null;
80026
+ sequence: number;
80027
+ shadow: boolean;
80028
+ started_at: string | null;
80029
+ status: string;
80030
+ strategy_id: string | null;
80031
+ task_type: string;
80032
+ updated_at: string;
80033
+ user_id: string;
80034
+ }[];
80035
+ SetofOptions: {
80036
+ from: "*";
80037
+ to: "logistics_tasks";
80038
+ isOneToOne: false;
80039
+ isSetofReturn: true;
80040
+ };
80041
+ };
77167
80042
  claim_print_jobs: {
77168
80043
  Args: {
77169
80044
  _agent_id: string;
@@ -77228,10 +80103,24 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77228
80103
  isSetofReturn: true;
77229
80104
  };
77230
80105
  };
80106
+ cleanup_floriday_stock_queue: {
80107
+ Args: never;
80108
+ Returns: undefined;
80109
+ };
77231
80110
  cleanup_old_bookings: {
77232
80111
  Args: never;
77233
80112
  Returns: undefined;
77234
80113
  };
80114
+ complete_floriday_stock_queue: {
80115
+ Args: {
80116
+ p_attempt_id?: string;
80117
+ p_error?: string;
80118
+ p_id: string;
80119
+ p_ok: boolean;
80120
+ p_permanent?: boolean;
80121
+ };
80122
+ Returns: undefined;
80123
+ };
77235
80124
  consume_bom_for_production: {
77236
80125
  Args: {
77237
80126
  p_connection_id: string;
@@ -77404,6 +80293,21 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77404
80293
  Args: never;
77405
80294
  Returns: string;
77406
80295
  };
80296
+ exact_auth_consume_calls: {
80297
+ Args: {
80298
+ _account_key: string;
80299
+ _calls?: number;
80300
+ _day_limit?: number;
80301
+ _division_code: number;
80302
+ _environment: string;
80303
+ _minute_limit?: number;
80304
+ };
80305
+ Returns: import("../integrations/supabase/types").Json;
80306
+ };
80307
+ exact_auth_prune_sync_log: {
80308
+ Args: never;
80309
+ Returns: undefined;
80310
+ };
77407
80311
  exact_decrypt: {
77408
80312
  Args: {
77409
80313
  cipher: string;
@@ -77613,6 +80517,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77613
80517
  };
77614
80518
  Returns: number;
77615
80519
  };
80520
+ get_offer_branding: {
80521
+ Args: never;
80522
+ Returns: import("../integrations/supabase/types").Json;
80523
+ };
77616
80524
  get_offer_by_link_code: {
77617
80525
  Args: {
77618
80526
  p_code: string;
@@ -77904,6 +80812,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77904
80812
  p_worker?: string;
77905
80813
  };
77906
80814
  Returns: {
80815
+ attempt_log: import("../integrations/supabase/types").Json;
80816
+ attempts: number;
77907
80817
  buffer_ref: string | null;
77908
80818
  claimed_at: string | null;
77909
80819
  claimed_by: string | null;
@@ -77913,6 +80823,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77913
80823
  due_at: string | null;
77914
80824
  error: string | null;
77915
80825
  id: string;
80826
+ last_error: string | null;
80827
+ next_attempt_at: string | null;
77916
80828
  order_ref: string;
77917
80829
  owner_module: string;
77918
80830
  payload: import("../integrations/supabase/types").Json;
@@ -77945,6 +80857,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77945
80857
  p_worker?: string;
77946
80858
  };
77947
80859
  Returns: {
80860
+ attempt_log: import("../integrations/supabase/types").Json;
80861
+ attempts: number;
77948
80862
  buffer_ref: string | null;
77949
80863
  claimed_at: string | null;
77950
80864
  claimed_by: string | null;
@@ -77954,6 +80868,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77954
80868
  due_at: string | null;
77955
80869
  error: string | null;
77956
80870
  id: string;
80871
+ last_error: string | null;
80872
+ next_attempt_at: string | null;
77957
80873
  order_ref: string;
77958
80874
  owner_module: string;
77959
80875
  payload: import("../integrations/supabase/types").Json;
@@ -77986,6 +80902,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77986
80902
  p_task_id: string;
77987
80903
  };
77988
80904
  Returns: {
80905
+ attempt_log: import("../integrations/supabase/types").Json;
80906
+ attempts: number;
77989
80907
  buffer_ref: string | null;
77990
80908
  claimed_at: string | null;
77991
80909
  claimed_by: string | null;
@@ -77995,6 +80913,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
77995
80913
  due_at: string | null;
77996
80914
  error: string | null;
77997
80915
  id: string;
80916
+ last_error: string | null;
80917
+ next_attempt_at: string | null;
77998
80918
  order_ref: string;
77999
80919
  owner_module: string;
78000
80920
  payload: import("../integrations/supabase/types").Json;
@@ -78076,6 +80996,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
78076
80996
  p_task_id: string;
78077
80997
  };
78078
80998
  Returns: {
80999
+ attempt_log: import("../integrations/supabase/types").Json;
81000
+ attempts: number;
78079
81001
  buffer_ref: string | null;
78080
81002
  claimed_at: string | null;
78081
81003
  claimed_by: string | null;
@@ -78085,6 +81007,8 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
78085
81007
  due_at: string | null;
78086
81008
  error: string | null;
78087
81009
  id: string;
81010
+ last_error: string | null;
81011
+ next_attempt_at: string | null;
78088
81012
  order_ref: string;
78089
81013
  owner_module: string;
78090
81014
  payload: import("../integrations/supabase/types").Json;
@@ -78111,6 +81035,51 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
78111
81035
  isSetofReturn: false;
78112
81036
  };
78113
81037
  };
81038
+ logistics_floriday_claim_pushes: {
81039
+ Args: {
81040
+ _lease_seconds?: number;
81041
+ _limit?: number;
81042
+ _worker?: string;
81043
+ };
81044
+ Returns: {
81045
+ attempts: number;
81046
+ fulfillment_order_id: string;
81047
+ id: string;
81048
+ last_sent_hash: string;
81049
+ order_ref: string;
81050
+ payload: import("../integrations/supabase/types").Json;
81051
+ payload_hash: string;
81052
+ revision: number;
81053
+ }[];
81054
+ };
81055
+ logistics_floriday_finish_push: {
81056
+ Args: {
81057
+ _error?: string;
81058
+ _fulfillment_order_id?: string;
81059
+ _id: string;
81060
+ _max_age_hours?: number;
81061
+ _max_attempts?: number;
81062
+ _ok: boolean;
81063
+ _permanent?: boolean;
81064
+ _revision: number;
81065
+ _sent_hash?: string;
81066
+ };
81067
+ Returns: string;
81068
+ };
81069
+ logistics_floriday_prune_pushes: {
81070
+ Args: {
81071
+ _days?: number;
81072
+ };
81073
+ Returns: number;
81074
+ };
81075
+ logistics_floriday_queue_push: {
81076
+ Args: {
81077
+ _order_ref: string;
81078
+ _payload?: import("../integrations/supabase/types").Json;
81079
+ _payload_hash?: string;
81080
+ };
81081
+ Returns: string;
81082
+ };
78114
81083
  logistics_live_carriers: {
78115
81084
  Args: {
78116
81085
  p_order_ref: string;
@@ -78838,6 +81807,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
78838
81807
  Args: never;
78839
81808
  Returns: undefined;
78840
81809
  };
81810
+ run_logistics_tasks_dispatch: {
81811
+ Args: never;
81812
+ Returns: undefined;
81813
+ };
78841
81814
  run_twinfield_queue_tick: {
78842
81815
  Args: never;
78843
81816
  Returns: undefined;
@@ -79078,6 +82051,13 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
79078
82051
  };
79079
82052
  Returns: number;
79080
82053
  };
82054
+ schedule_floriday_stock_queue_process: {
82055
+ Args: {
82056
+ p_apikey: string;
82057
+ p_url: string;
82058
+ };
82059
+ Returns: number;
82060
+ };
79081
82061
  schedule_floriday_token_refresh: {
79082
82062
  Args: {
79083
82063
  p_apikey: string;