@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
@@ -3535,6 +3535,474 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
3535
3535
  referencedColumns: ["id"];
3536
3536
  }];
3537
3537
  };
3538
+ exact_auth_call_budget: {
3539
+ Row: {
3540
+ account_key: string;
3541
+ day_count: number;
3542
+ day_date: string;
3543
+ division_code: number;
3544
+ environment: string;
3545
+ minute_count: number;
3546
+ minute_window: string;
3547
+ updated_at: string;
3548
+ };
3549
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
3570
+ };
3571
+ exact_auth_customers: {
3572
+ Row: {
3573
+ account_key: string;
3574
+ address_line1: string | null;
3575
+ chamber_of_commerce: string | null;
3576
+ city: string | null;
3577
+ code: string | null;
3578
+ country: string | null;
3579
+ created_at: string;
3580
+ currency: string | null;
3581
+ division_code: number | null;
3582
+ email: string | null;
3583
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3584
+ exact_id: string;
3585
+ exact_modified: string | null;
3586
+ exact_timestamp: number | null;
3587
+ id: string;
3588
+ is_active: boolean;
3589
+ name: string | null;
3590
+ phone: string | null;
3591
+ postcode: string | null;
3592
+ raw: import("../../../integrations/supabase/types").Json | null;
3593
+ status: string | null;
3594
+ updated_at: string;
3595
+ vat_number: string | null;
3596
+ website: string | null;
3597
+ };
3598
+ Insert: {
3599
+ account_key?: string;
3600
+ address_line1?: string | null;
3601
+ chamber_of_commerce?: string | null;
3602
+ city?: string | null;
3603
+ code?: string | null;
3604
+ country?: string | null;
3605
+ created_at?: string;
3606
+ currency?: string | null;
3607
+ division_code?: number | null;
3608
+ email?: string | null;
3609
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3610
+ exact_id: string;
3611
+ exact_modified?: string | null;
3612
+ exact_timestamp?: number | null;
3613
+ id?: string;
3614
+ is_active?: boolean;
3615
+ name?: string | null;
3616
+ phone?: string | null;
3617
+ postcode?: string | null;
3618
+ raw?: import("../../../integrations/supabase/types").Json | null;
3619
+ status?: string | null;
3620
+ updated_at?: string;
3621
+ vat_number?: string | null;
3622
+ website?: string | null;
3623
+ };
3624
+ Update: {
3625
+ account_key?: string;
3626
+ address_line1?: string | null;
3627
+ chamber_of_commerce?: string | null;
3628
+ city?: string | null;
3629
+ code?: string | null;
3630
+ country?: string | null;
3631
+ created_at?: string;
3632
+ currency?: string | null;
3633
+ division_code?: number | null;
3634
+ email?: string | null;
3635
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3636
+ exact_id?: string;
3637
+ exact_modified?: string | null;
3638
+ exact_timestamp?: number | null;
3639
+ id?: string;
3640
+ is_active?: boolean;
3641
+ name?: string | null;
3642
+ phone?: string | null;
3643
+ postcode?: string | null;
3644
+ raw?: import("../../../integrations/supabase/types").Json | null;
3645
+ status?: string | null;
3646
+ updated_at?: string;
3647
+ vat_number?: string | null;
3648
+ website?: string | null;
3649
+ };
3650
+ Relationships: [];
3651
+ };
3652
+ exact_auth_divisions: {
3653
+ Row: {
3654
+ account_key: string;
3655
+ company_name: string | null;
3656
+ created_at: string;
3657
+ division_code: number | null;
3658
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3659
+ id: string;
3660
+ last_synced_at: string | null;
3661
+ updated_at: string;
3662
+ };
3663
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
3684
+ };
3685
+ exact_auth_invoice_lines: {
3686
+ Row: {
3687
+ account_key: string;
3688
+ amount_excl: number | null;
3689
+ created_at: string;
3690
+ description: string | null;
3691
+ discount: number | null;
3692
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3693
+ exact_id: string;
3694
+ exact_timestamp: number | null;
3695
+ id: string;
3696
+ invoice_exact_id: string;
3697
+ item_code: string | null;
3698
+ item_exact_id: string | null;
3699
+ line_number: number | null;
3700
+ quantity: number | null;
3701
+ raw: import("../../../integrations/supabase/types").Json | null;
3702
+ unit_price: number | null;
3703
+ updated_at: string;
3704
+ vat_amount: number | null;
3705
+ vat_code: string | null;
3706
+ };
3707
+ Insert: {
3708
+ account_key?: string;
3709
+ amount_excl?: number | null;
3710
+ created_at?: string;
3711
+ description?: string | null;
3712
+ discount?: number | null;
3713
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3714
+ exact_id: string;
3715
+ exact_timestamp?: number | null;
3716
+ id?: string;
3717
+ invoice_exact_id: string;
3718
+ item_code?: string | null;
3719
+ item_exact_id?: string | null;
3720
+ line_number?: number | null;
3721
+ quantity?: number | null;
3722
+ raw?: import("../../../integrations/supabase/types").Json | null;
3723
+ unit_price?: number | null;
3724
+ updated_at?: string;
3725
+ vat_amount?: number | null;
3726
+ vat_code?: string | null;
3727
+ };
3728
+ Update: {
3729
+ account_key?: string;
3730
+ amount_excl?: number | null;
3731
+ created_at?: string;
3732
+ description?: string | null;
3733
+ discount?: number | null;
3734
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3735
+ exact_id?: string;
3736
+ exact_timestamp?: number | null;
3737
+ id?: string;
3738
+ invoice_exact_id?: string;
3739
+ item_code?: string | null;
3740
+ item_exact_id?: string | null;
3741
+ line_number?: number | null;
3742
+ quantity?: number | null;
3743
+ raw?: import("../../../integrations/supabase/types").Json | null;
3744
+ unit_price?: number | null;
3745
+ updated_at?: string;
3746
+ vat_amount?: number | null;
3747
+ vat_code?: string | null;
3748
+ };
3749
+ Relationships: [];
3750
+ };
3751
+ exact_auth_invoices: {
3752
+ Row: {
3753
+ account_key: string;
3754
+ amount_excl: number | null;
3755
+ amount_incl: number | null;
3756
+ amount_open: number | null;
3757
+ created_at: string;
3758
+ currency: string | null;
3759
+ customer_code: string | null;
3760
+ customer_exact_id: string | null;
3761
+ customer_name: string | null;
3762
+ description: string | null;
3763
+ division_code: number | null;
3764
+ due_date: string | null;
3765
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3766
+ exact_id: string;
3767
+ exact_modified: string | null;
3768
+ exact_timestamp: number | null;
3769
+ id: string;
3770
+ invoice_date: string | null;
3771
+ invoice_number: string | null;
3772
+ order_number: string | null;
3773
+ paid_at: string | null;
3774
+ payment_status: string;
3775
+ raw: import("../../../integrations/supabase/types").Json | null;
3776
+ receivable_synced_at: string | null;
3777
+ status_code: number | null;
3778
+ updated_at: string;
3779
+ };
3780
+ Insert: {
3781
+ account_key?: string;
3782
+ amount_excl?: number | null;
3783
+ amount_incl?: number | null;
3784
+ amount_open?: number | null;
3785
+ created_at?: string;
3786
+ currency?: string | null;
3787
+ customer_code?: string | null;
3788
+ customer_exact_id?: string | null;
3789
+ customer_name?: string | null;
3790
+ description?: string | null;
3791
+ division_code?: number | null;
3792
+ due_date?: string | null;
3793
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3794
+ exact_id: string;
3795
+ exact_modified?: string | null;
3796
+ exact_timestamp?: number | null;
3797
+ id?: string;
3798
+ invoice_date?: string | null;
3799
+ invoice_number?: string | null;
3800
+ order_number?: string | null;
3801
+ paid_at?: string | null;
3802
+ payment_status?: string;
3803
+ raw?: import("../../../integrations/supabase/types").Json | null;
3804
+ receivable_synced_at?: string | null;
3805
+ status_code?: number | null;
3806
+ updated_at?: string;
3807
+ };
3808
+ Update: {
3809
+ account_key?: string;
3810
+ amount_excl?: number | null;
3811
+ amount_incl?: number | null;
3812
+ amount_open?: number | null;
3813
+ created_at?: string;
3814
+ currency?: string | null;
3815
+ customer_code?: string | null;
3816
+ customer_exact_id?: string | null;
3817
+ customer_name?: string | null;
3818
+ description?: string | null;
3819
+ division_code?: number | null;
3820
+ due_date?: string | null;
3821
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3822
+ exact_id?: string;
3823
+ exact_modified?: string | null;
3824
+ exact_timestamp?: number | null;
3825
+ id?: string;
3826
+ invoice_date?: string | null;
3827
+ invoice_number?: string | null;
3828
+ order_number?: string | null;
3829
+ paid_at?: string | null;
3830
+ payment_status?: string;
3831
+ raw?: import("../../../integrations/supabase/types").Json | null;
3832
+ receivable_synced_at?: string | null;
3833
+ status_code?: number | null;
3834
+ updated_at?: string;
3835
+ };
3836
+ Relationships: [];
3837
+ };
3838
+ exact_auth_items: {
3839
+ Row: {
3840
+ account_key: string;
3841
+ barcode: string | null;
3842
+ code: string | null;
3843
+ cost_price: number | null;
3844
+ created_at: string;
3845
+ description: string | null;
3846
+ division_code: number | null;
3847
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3848
+ exact_id: string;
3849
+ exact_modified: string | null;
3850
+ exact_timestamp: number | null;
3851
+ gl_account_code: string | null;
3852
+ id: string;
3853
+ is_active: boolean;
3854
+ is_sales_item: boolean | null;
3855
+ item_type: string | null;
3856
+ raw: import("../../../integrations/supabase/types").Json | null;
3857
+ sales_price: number | null;
3858
+ unit: string | null;
3859
+ updated_at: string;
3860
+ vat_code: string | null;
3861
+ };
3862
+ Insert: {
3863
+ account_key?: string;
3864
+ barcode?: string | null;
3865
+ code?: string | null;
3866
+ cost_price?: number | null;
3867
+ created_at?: string;
3868
+ description?: string | null;
3869
+ division_code?: number | null;
3870
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3871
+ exact_id: string;
3872
+ exact_modified?: string | null;
3873
+ exact_timestamp?: number | null;
3874
+ gl_account_code?: string | null;
3875
+ id?: string;
3876
+ is_active?: boolean;
3877
+ is_sales_item?: boolean | null;
3878
+ item_type?: string | null;
3879
+ raw?: import("../../../integrations/supabase/types").Json | null;
3880
+ sales_price?: number | null;
3881
+ unit?: string | null;
3882
+ updated_at?: string;
3883
+ vat_code?: string | null;
3884
+ };
3885
+ Update: {
3886
+ account_key?: string;
3887
+ barcode?: string | null;
3888
+ code?: string | null;
3889
+ cost_price?: number | null;
3890
+ created_at?: string;
3891
+ description?: string | null;
3892
+ division_code?: number | null;
3893
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3894
+ exact_id?: string;
3895
+ exact_modified?: string | null;
3896
+ exact_timestamp?: number | null;
3897
+ gl_account_code?: string | null;
3898
+ id?: string;
3899
+ is_active?: boolean;
3900
+ is_sales_item?: boolean | null;
3901
+ item_type?: string | null;
3902
+ raw?: import("../../../integrations/supabase/types").Json | null;
3903
+ sales_price?: number | null;
3904
+ unit?: string | null;
3905
+ updated_at?: string;
3906
+ vat_code?: string | null;
3907
+ };
3908
+ Relationships: [];
3909
+ };
3910
+ exact_auth_sync_log: {
3911
+ Row: {
3912
+ account_key: string;
3913
+ calls_used: number;
3914
+ created_at: string;
3915
+ domain: string;
3916
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3917
+ error: string | null;
3918
+ finished_at: string | null;
3919
+ id: string;
3920
+ ok: boolean;
3921
+ records: number;
3922
+ started_at: string;
3923
+ };
3924
+ Insert: {
3925
+ account_key?: string;
3926
+ calls_used?: number;
3927
+ created_at?: string;
3928
+ domain: string;
3929
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3930
+ error?: string | null;
3931
+ finished_at?: string | null;
3932
+ id?: string;
3933
+ ok?: boolean;
3934
+ records?: number;
3935
+ started_at?: string;
3936
+ };
3937
+ Update: {
3938
+ account_key?: string;
3939
+ calls_used?: number;
3940
+ created_at?: string;
3941
+ domain?: string;
3942
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3943
+ error?: string | null;
3944
+ finished_at?: string | null;
3945
+ id?: string;
3946
+ ok?: boolean;
3947
+ records?: number;
3948
+ started_at?: string;
3949
+ };
3950
+ Relationships: [];
3951
+ };
3952
+ exact_auth_sync_state: {
3953
+ Row: {
3954
+ account_key: string;
3955
+ created_at: string;
3956
+ cursor_timestamp: number;
3957
+ division_code: number | null;
3958
+ domain: string;
3959
+ duration_ms: number | null;
3960
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3961
+ initial_sync_done: boolean;
3962
+ last_error: string | null;
3963
+ last_run_at: string | null;
3964
+ last_success_at: string | null;
3965
+ locked_at: string | null;
3966
+ needs_initial_sync: boolean;
3967
+ record_count: number;
3968
+ updated_at: string;
3969
+ };
3970
+ Insert: {
3971
+ account_key?: string;
3972
+ created_at?: string;
3973
+ cursor_timestamp?: number;
3974
+ division_code?: number | null;
3975
+ domain: string;
3976
+ duration_ms?: number | null;
3977
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3978
+ initial_sync_done?: boolean;
3979
+ last_error?: string | null;
3980
+ last_run_at?: string | null;
3981
+ last_success_at?: string | null;
3982
+ locked_at?: string | null;
3983
+ needs_initial_sync?: boolean;
3984
+ record_count?: number;
3985
+ updated_at?: string;
3986
+ };
3987
+ Update: {
3988
+ account_key?: string;
3989
+ created_at?: string;
3990
+ cursor_timestamp?: number;
3991
+ division_code?: number | null;
3992
+ domain?: string;
3993
+ duration_ms?: number | null;
3994
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3995
+ initial_sync_done?: boolean;
3996
+ last_error?: string | null;
3997
+ last_run_at?: string | null;
3998
+ last_success_at?: string | null;
3999
+ locked_at?: string | null;
4000
+ needs_initial_sync?: boolean;
4001
+ record_count?: number;
4002
+ updated_at?: string;
4003
+ };
4004
+ Relationships: [];
4005
+ };
3538
4006
  exact_bulk_operation_items: {
3539
4007
  Row: {
3540
4008
  attempts: number;
@@ -5226,12 +5694,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5226
5694
  attempts: number;
5227
5695
  connection_id: string;
5228
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5229
5698
  gateway_attempt_id: string | null;
5230
5699
  id: string;
5231
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5232
5704
  number_of_pieces: number;
5233
5705
  sent_at: string | null;
5234
5706
  status: string;
5707
+ superseded_by: string | null;
5235
5708
  trade_item_id: string;
5236
5709
  updated_at: string;
5237
5710
  user_id: string;
@@ -5240,12 +5713,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5240
5713
  attempts?: number;
5241
5714
  connection_id: string;
5242
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5243
5717
  gateway_attempt_id?: string | null;
5244
5718
  id?: string;
5245
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5246
5723
  number_of_pieces?: number;
5247
5724
  sent_at?: string | null;
5248
5725
  status?: string;
5726
+ superseded_by?: string | null;
5249
5727
  trade_item_id: string;
5250
5728
  updated_at?: string;
5251
5729
  user_id: string;
@@ -5254,12 +5732,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5254
5732
  attempts?: number;
5255
5733
  connection_id?: string;
5256
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5257
5736
  gateway_attempt_id?: string | null;
5258
5737
  id?: string;
5259
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5260
5742
  number_of_pieces?: number;
5261
5743
  sent_at?: string | null;
5262
5744
  status?: string;
5745
+ superseded_by?: string | null;
5263
5746
  trade_item_id?: string;
5264
5747
  updated_at?: string;
5265
5748
  user_id?: string;
@@ -8008,6 +8491,69 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8008
8491
  };
8009
8492
  Relationships: [];
8010
8493
  };
8494
+ logistics_floriday_pushes: {
8495
+ Row: {
8496
+ attempts: number;
8497
+ created_at: string;
8498
+ first_queued_at: string;
8499
+ fulfillment_order_id: string | null;
8500
+ id: string;
8501
+ last_error: string | null;
8502
+ last_error_at: string | null;
8503
+ last_sent_hash: string | null;
8504
+ locked_by: string | null;
8505
+ locked_until: string | null;
8506
+ next_attempt_at: string;
8507
+ order_ref: string;
8508
+ payload: import("../../../integrations/supabase/types").Json;
8509
+ payload_hash: string | null;
8510
+ revision: number;
8511
+ sent_at: string | null;
8512
+ status: string;
8513
+ updated_at: string;
8514
+ };
8515
+ Insert: {
8516
+ attempts?: number;
8517
+ created_at?: string;
8518
+ first_queued_at?: string;
8519
+ fulfillment_order_id?: string | null;
8520
+ id?: string;
8521
+ last_error?: string | null;
8522
+ last_error_at?: string | null;
8523
+ last_sent_hash?: string | null;
8524
+ locked_by?: string | null;
8525
+ locked_until?: string | null;
8526
+ next_attempt_at?: string;
8527
+ order_ref: string;
8528
+ payload?: import("../../../integrations/supabase/types").Json;
8529
+ payload_hash?: string | null;
8530
+ revision?: number;
8531
+ sent_at?: string | null;
8532
+ status?: string;
8533
+ updated_at?: string;
8534
+ };
8535
+ Update: {
8536
+ attempts?: number;
8537
+ created_at?: string;
8538
+ first_queued_at?: string;
8539
+ fulfillment_order_id?: string | null;
8540
+ id?: string;
8541
+ last_error?: string | null;
8542
+ last_error_at?: string | null;
8543
+ last_sent_hash?: string | null;
8544
+ locked_by?: string | null;
8545
+ locked_until?: string | null;
8546
+ next_attempt_at?: string;
8547
+ order_ref?: string;
8548
+ payload?: import("../../../integrations/supabase/types").Json;
8549
+ payload_hash?: string | null;
8550
+ revision?: number;
8551
+ sent_at?: string | null;
8552
+ status?: string;
8553
+ updated_at?: string;
8554
+ };
8555
+ Relationships: [];
8556
+ };
8011
8557
  logistics_formulas: {
8012
8558
  Row: {
8013
8559
  created_at: string;
@@ -8619,6 +9165,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8619
9165
  };
8620
9166
  logistics_tasks: {
8621
9167
  Row: {
9168
+ attempt_log: import("../../../integrations/supabase/types").Json;
9169
+ attempts: number;
8622
9170
  buffer_ref: string | null;
8623
9171
  claimed_at: string | null;
8624
9172
  claimed_by: string | null;
@@ -8628,6 +9176,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8628
9176
  due_at: string | null;
8629
9177
  error: string | null;
8630
9178
  id: string;
9179
+ last_error: string | null;
9180
+ next_attempt_at: string | null;
8631
9181
  order_ref: string;
8632
9182
  owner_module: string;
8633
9183
  payload: import("../../../integrations/supabase/types").Json;
@@ -8648,6 +9198,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8648
9198
  user_id: string;
8649
9199
  };
8650
9200
  Insert: {
9201
+ attempt_log?: import("../../../integrations/supabase/types").Json;
9202
+ attempts?: number;
8651
9203
  buffer_ref?: string | null;
8652
9204
  claimed_at?: string | null;
8653
9205
  claimed_by?: string | null;
@@ -8657,6 +9209,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8657
9209
  due_at?: string | null;
8658
9210
  error?: string | null;
8659
9211
  id?: string;
9212
+ last_error?: string | null;
9213
+ next_attempt_at?: string | null;
8660
9214
  order_ref: string;
8661
9215
  owner_module: string;
8662
9216
  payload?: import("../../../integrations/supabase/types").Json;
@@ -8677,6 +9231,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8677
9231
  user_id?: string;
8678
9232
  };
8679
9233
  Update: {
9234
+ attempt_log?: import("../../../integrations/supabase/types").Json;
9235
+ attempts?: number;
8680
9236
  buffer_ref?: string | null;
8681
9237
  claimed_at?: string | null;
8682
9238
  claimed_by?: string | null;
@@ -8686,6 +9242,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8686
9242
  due_at?: string | null;
8687
9243
  error?: string | null;
8688
9244
  id?: string;
9245
+ last_error?: string | null;
9246
+ next_attempt_at?: string | null;
8689
9247
  order_ref?: string;
8690
9248
  owner_module?: string;
8691
9249
  payload?: import("../../../integrations/supabase/types").Json;
@@ -10035,6 +10593,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
10035
10593
  };
10036
10594
  offer_settings: {
10037
10595
  Row: {
10596
+ brand_name: string | null;
10038
10597
  button_color: string;
10039
10598
  created_at: string;
10040
10599
  default_countries: string[];
@@ -10056,6 +10615,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
10056
10615
  updated_at: string;
10057
10616
  };
10058
10617
  Insert: {
10618
+ brand_name?: string | null;
10059
10619
  button_color?: string;
10060
10620
  created_at?: string;
10061
10621
  default_countries?: string[];
@@ -10077,6 +10637,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
10077
10637
  updated_at?: string;
10078
10638
  };
10079
10639
  Update: {
10640
+ brand_name?: string | null;
10080
10641
  button_color?: string;
10081
10642
  created_at?: string;
10082
10643
  default_countries?: string[];
@@ -17687,6 +18248,85 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
17687
18248
  };
17688
18249
  Returns: import("../../../integrations/supabase/types").Json;
17689
18250
  };
18251
+ claim_floriday_stock_queue: {
18252
+ Args: {
18253
+ p_limit?: number;
18254
+ p_worker?: string;
18255
+ };
18256
+ Returns: {
18257
+ attempts: number;
18258
+ connection_id: string;
18259
+ created_at: string;
18260
+ desired_available: boolean | null;
18261
+ gateway_attempt_id: string | null;
18262
+ id: string;
18263
+ last_error: string | null;
18264
+ locked_at: string | null;
18265
+ locked_by: string | null;
18266
+ next_attempt_at: string;
18267
+ number_of_pieces: number;
18268
+ sent_at: string | null;
18269
+ status: string;
18270
+ superseded_by: string | null;
18271
+ trade_item_id: string;
18272
+ updated_at: string;
18273
+ user_id: string;
18274
+ }[];
18275
+ SetofOptions: {
18276
+ from: "*";
18277
+ to: "floriday_continuous_stock_queue";
18278
+ isOneToOne: false;
18279
+ isSetofReturn: true;
18280
+ };
18281
+ };
18282
+ claim_logistics_tasks: {
18283
+ Args: {
18284
+ _limit?: number;
18285
+ _owner_module: string;
18286
+ _stale_minutes?: number;
18287
+ _task_type: string;
18288
+ _worker: string;
18289
+ };
18290
+ Returns: {
18291
+ attempt_log: import("../../../integrations/supabase/types").Json;
18292
+ attempts: number;
18293
+ buffer_ref: string | null;
18294
+ claimed_at: string | null;
18295
+ claimed_by: string | null;
18296
+ completed_at: string | null;
18297
+ created_at: string;
18298
+ depends_on: string[];
18299
+ due_at: string | null;
18300
+ error: string | null;
18301
+ id: string;
18302
+ last_error: string | null;
18303
+ next_attempt_at: string | null;
18304
+ order_ref: string;
18305
+ owner_module: string;
18306
+ payload: import("../../../integrations/supabase/types").Json;
18307
+ plan_run_id: string | null;
18308
+ planned_end: string | null;
18309
+ planned_start: string | null;
18310
+ priority: number;
18311
+ result: import("../../../integrations/supabase/types").Json | null;
18312
+ rule_config_id: string | null;
18313
+ rule_version: number | null;
18314
+ sequence: number;
18315
+ shadow: boolean;
18316
+ started_at: string | null;
18317
+ status: string;
18318
+ strategy_id: string | null;
18319
+ task_type: string;
18320
+ updated_at: string;
18321
+ user_id: string;
18322
+ }[];
18323
+ SetofOptions: {
18324
+ from: "*";
18325
+ to: "logistics_tasks";
18326
+ isOneToOne: false;
18327
+ isSetofReturn: true;
18328
+ };
18329
+ };
17690
18330
  claim_print_jobs: {
17691
18331
  Args: {
17692
18332
  _agent_id: string;
@@ -17751,10 +18391,24 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
17751
18391
  isSetofReturn: true;
17752
18392
  };
17753
18393
  };
18394
+ cleanup_floriday_stock_queue: {
18395
+ Args: never;
18396
+ Returns: undefined;
18397
+ };
17754
18398
  cleanup_old_bookings: {
17755
18399
  Args: never;
17756
18400
  Returns: undefined;
17757
18401
  };
18402
+ complete_floriday_stock_queue: {
18403
+ Args: {
18404
+ p_attempt_id?: string;
18405
+ p_error?: string;
18406
+ p_id: string;
18407
+ p_ok: boolean;
18408
+ p_permanent?: boolean;
18409
+ };
18410
+ Returns: undefined;
18411
+ };
17758
18412
  consume_bom_for_production: {
17759
18413
  Args: {
17760
18414
  p_connection_id: string;
@@ -17927,6 +18581,21 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
17927
18581
  Args: never;
17928
18582
  Returns: string;
17929
18583
  };
18584
+ exact_auth_consume_calls: {
18585
+ Args: {
18586
+ _account_key: string;
18587
+ _calls?: number;
18588
+ _day_limit?: number;
18589
+ _division_code: number;
18590
+ _environment: string;
18591
+ _minute_limit?: number;
18592
+ };
18593
+ Returns: import("../../../integrations/supabase/types").Json;
18594
+ };
18595
+ exact_auth_prune_sync_log: {
18596
+ Args: never;
18597
+ Returns: undefined;
18598
+ };
17930
18599
  exact_decrypt: {
17931
18600
  Args: {
17932
18601
  cipher: string;
@@ -18136,6 +18805,10 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18136
18805
  };
18137
18806
  Returns: number;
18138
18807
  };
18808
+ get_offer_branding: {
18809
+ Args: never;
18810
+ Returns: import("../../../integrations/supabase/types").Json;
18811
+ };
18139
18812
  get_offer_by_link_code: {
18140
18813
  Args: {
18141
18814
  p_code: string;
@@ -18427,6 +19100,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18427
19100
  p_worker?: string;
18428
19101
  };
18429
19102
  Returns: {
19103
+ attempt_log: import("../../../integrations/supabase/types").Json;
19104
+ attempts: number;
18430
19105
  buffer_ref: string | null;
18431
19106
  claimed_at: string | null;
18432
19107
  claimed_by: string | null;
@@ -18436,6 +19111,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18436
19111
  due_at: string | null;
18437
19112
  error: string | null;
18438
19113
  id: string;
19114
+ last_error: string | null;
19115
+ next_attempt_at: string | null;
18439
19116
  order_ref: string;
18440
19117
  owner_module: string;
18441
19118
  payload: import("../../../integrations/supabase/types").Json;
@@ -18468,6 +19145,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18468
19145
  p_worker?: string;
18469
19146
  };
18470
19147
  Returns: {
19148
+ attempt_log: import("../../../integrations/supabase/types").Json;
19149
+ attempts: number;
18471
19150
  buffer_ref: string | null;
18472
19151
  claimed_at: string | null;
18473
19152
  claimed_by: string | null;
@@ -18477,6 +19156,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18477
19156
  due_at: string | null;
18478
19157
  error: string | null;
18479
19158
  id: string;
19159
+ last_error: string | null;
19160
+ next_attempt_at: string | null;
18480
19161
  order_ref: string;
18481
19162
  owner_module: string;
18482
19163
  payload: import("../../../integrations/supabase/types").Json;
@@ -18509,6 +19190,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18509
19190
  p_task_id: string;
18510
19191
  };
18511
19192
  Returns: {
19193
+ attempt_log: import("../../../integrations/supabase/types").Json;
19194
+ attempts: number;
18512
19195
  buffer_ref: string | null;
18513
19196
  claimed_at: string | null;
18514
19197
  claimed_by: string | null;
@@ -18518,6 +19201,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18518
19201
  due_at: string | null;
18519
19202
  error: string | null;
18520
19203
  id: string;
19204
+ last_error: string | null;
19205
+ next_attempt_at: string | null;
18521
19206
  order_ref: string;
18522
19207
  owner_module: string;
18523
19208
  payload: import("../../../integrations/supabase/types").Json;
@@ -18599,6 +19284,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18599
19284
  p_task_id: string;
18600
19285
  };
18601
19286
  Returns: {
19287
+ attempt_log: import("../../../integrations/supabase/types").Json;
19288
+ attempts: number;
18602
19289
  buffer_ref: string | null;
18603
19290
  claimed_at: string | null;
18604
19291
  claimed_by: string | null;
@@ -18608,6 +19295,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18608
19295
  due_at: string | null;
18609
19296
  error: string | null;
18610
19297
  id: string;
19298
+ last_error: string | null;
19299
+ next_attempt_at: string | null;
18611
19300
  order_ref: string;
18612
19301
  owner_module: string;
18613
19302
  payload: import("../../../integrations/supabase/types").Json;
@@ -18634,6 +19323,51 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18634
19323
  isSetofReturn: false;
18635
19324
  };
18636
19325
  };
19326
+ logistics_floriday_claim_pushes: {
19327
+ Args: {
19328
+ _lease_seconds?: number;
19329
+ _limit?: number;
19330
+ _worker?: string;
19331
+ };
19332
+ Returns: {
19333
+ attempts: number;
19334
+ fulfillment_order_id: string;
19335
+ id: string;
19336
+ last_sent_hash: string;
19337
+ order_ref: string;
19338
+ payload: import("../../../integrations/supabase/types").Json;
19339
+ payload_hash: string;
19340
+ revision: number;
19341
+ }[];
19342
+ };
19343
+ logistics_floriday_finish_push: {
19344
+ Args: {
19345
+ _error?: string;
19346
+ _fulfillment_order_id?: string;
19347
+ _id: string;
19348
+ _max_age_hours?: number;
19349
+ _max_attempts?: number;
19350
+ _ok: boolean;
19351
+ _permanent?: boolean;
19352
+ _revision: number;
19353
+ _sent_hash?: string;
19354
+ };
19355
+ Returns: string;
19356
+ };
19357
+ logistics_floriday_prune_pushes: {
19358
+ Args: {
19359
+ _days?: number;
19360
+ };
19361
+ Returns: number;
19362
+ };
19363
+ logistics_floriday_queue_push: {
19364
+ Args: {
19365
+ _order_ref: string;
19366
+ _payload?: import("../../../integrations/supabase/types").Json;
19367
+ _payload_hash?: string;
19368
+ };
19369
+ Returns: string;
19370
+ };
18637
19371
  logistics_live_carriers: {
18638
19372
  Args: {
18639
19373
  p_order_ref: string;
@@ -19361,6 +20095,10 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19361
20095
  Args: never;
19362
20096
  Returns: undefined;
19363
20097
  };
20098
+ run_logistics_tasks_dispatch: {
20099
+ Args: never;
20100
+ Returns: undefined;
20101
+ };
19364
20102
  run_twinfield_queue_tick: {
19365
20103
  Args: never;
19366
20104
  Returns: undefined;
@@ -19601,6 +20339,13 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19601
20339
  };
19602
20340
  Returns: number;
19603
20341
  };
20342
+ schedule_floriday_stock_queue_process: {
20343
+ Args: {
20344
+ p_apikey: string;
20345
+ p_url: string;
20346
+ };
20347
+ Returns: number;
20348
+ };
19604
20349
  schedule_floriday_token_refresh: {
19605
20350
  Args: {
19606
20351
  p_apikey: string;
@@ -23351,268 +24096,736 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
23351
24096
  referencedColumns: ["id"];
23352
24097
  }];
23353
24098
  };
23354
- exact_bulk_operation_items: {
24099
+ exact_auth_call_budget: {
23355
24100
  Row: {
23356
- attempts: number;
23357
- bulk_operation_id: string;
23358
- created_at: string;
23359
- error_message: string | null;
23360
- id: string;
23361
- invoice_cache_id: string | null;
23362
- invoice_exact_id: string | null;
23363
- processed_at: string | null;
23364
- result_data: import("../../../integrations/supabase/types").Json | null;
23365
- status: string;
24101
+ account_key: string;
24102
+ day_count: number;
24103
+ day_date: string;
24104
+ division_code: number;
24105
+ environment: string;
24106
+ minute_count: number;
24107
+ minute_window: string;
24108
+ updated_at: string;
23366
24109
  };
23367
24110
  Insert: {
23368
- attempts?: number;
23369
- bulk_operation_id: string;
23370
- created_at?: string;
23371
- error_message?: string | null;
23372
- id?: string;
23373
- invoice_cache_id?: string | null;
23374
- invoice_exact_id?: string | null;
23375
- processed_at?: string | null;
23376
- result_data?: import("../../../integrations/supabase/types").Json | null;
23377
- status?: string;
24111
+ account_key?: string;
24112
+ day_count?: number;
24113
+ day_date?: string;
24114
+ division_code?: number;
24115
+ environment: string;
24116
+ minute_count?: number;
24117
+ minute_window?: string;
24118
+ updated_at?: string;
23378
24119
  };
23379
24120
  Update: {
23380
- attempts?: number;
23381
- bulk_operation_id?: string;
23382
- created_at?: string;
23383
- error_message?: string | null;
23384
- id?: string;
23385
- invoice_cache_id?: string | null;
23386
- invoice_exact_id?: string | null;
23387
- processed_at?: string | null;
23388
- result_data?: import("../../../integrations/supabase/types").Json | null;
23389
- status?: string;
24121
+ account_key?: string;
24122
+ day_count?: number;
24123
+ day_date?: string;
24124
+ division_code?: number;
24125
+ environment?: string;
24126
+ minute_count?: number;
24127
+ minute_window?: string;
24128
+ updated_at?: string;
23390
24129
  };
23391
- Relationships: [{
23392
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
23393
- columns: ["bulk_operation_id"];
23394
- isOneToOne: false;
23395
- referencedRelation: "exact_bulk_operations";
23396
- referencedColumns: ["id"];
23397
- }, {
23398
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
23399
- columns: ["invoice_cache_id"];
23400
- isOneToOne: false;
23401
- referencedRelation: "exact_invoices_cache";
23402
- referencedColumns: ["id"];
23403
- }];
24130
+ Relationships: [];
23404
24131
  };
23405
- exact_bulk_operations: {
24132
+ exact_auth_customers: {
23406
24133
  Row: {
23407
- completed_at: string | null;
23408
- connection_id: string;
24134
+ account_key: string;
24135
+ address_line1: string | null;
24136
+ chamber_of_commerce: string | null;
24137
+ city: string | null;
24138
+ code: string | null;
24139
+ country: string | null;
23409
24140
  created_at: string;
23410
- created_by: string | null;
23411
- error_message: string | null;
23412
- failed_count: number | null;
24141
+ currency: string | null;
24142
+ division_code: number | null;
24143
+ email: string | null;
24144
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24145
+ exact_id: string;
24146
+ exact_modified: string | null;
24147
+ exact_timestamp: number | null;
23413
24148
  id: string;
23414
- operation_type: string;
23415
- processed_count: number | null;
23416
- result_data: import("../../../integrations/supabase/types").Json | null;
23417
- started_at: string | null;
23418
- status: string;
23419
- total_count: number | null;
24149
+ is_active: boolean;
24150
+ name: string | null;
24151
+ phone: string | null;
24152
+ postcode: string | null;
24153
+ raw: import("../../../integrations/supabase/types").Json | null;
24154
+ status: string | null;
23420
24155
  updated_at: string;
24156
+ vat_number: string | null;
24157
+ website: string | null;
23421
24158
  };
23422
24159
  Insert: {
23423
- completed_at?: string | null;
23424
- connection_id: string;
24160
+ account_key?: string;
24161
+ address_line1?: string | null;
24162
+ chamber_of_commerce?: string | null;
24163
+ city?: string | null;
24164
+ code?: string | null;
24165
+ country?: string | null;
23425
24166
  created_at?: string;
23426
- created_by?: string | null;
23427
- error_message?: string | null;
23428
- failed_count?: number | null;
24167
+ currency?: string | null;
24168
+ division_code?: number | null;
24169
+ email?: string | null;
24170
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24171
+ exact_id: string;
24172
+ exact_modified?: string | null;
24173
+ exact_timestamp?: number | null;
23429
24174
  id?: string;
23430
- operation_type: string;
23431
- processed_count?: number | null;
23432
- result_data?: import("../../../integrations/supabase/types").Json | null;
23433
- started_at?: string | null;
23434
- status?: string;
23435
- total_count?: number | null;
24175
+ is_active?: boolean;
24176
+ name?: string | null;
24177
+ phone?: string | null;
24178
+ postcode?: string | null;
24179
+ raw?: import("../../../integrations/supabase/types").Json | null;
24180
+ status?: string | null;
23436
24181
  updated_at?: string;
24182
+ vat_number?: string | null;
24183
+ website?: string | null;
23437
24184
  };
23438
24185
  Update: {
23439
- completed_at?: string | null;
23440
- connection_id?: string;
24186
+ account_key?: string;
24187
+ address_line1?: string | null;
24188
+ chamber_of_commerce?: string | null;
24189
+ city?: string | null;
24190
+ code?: string | null;
24191
+ country?: string | null;
23441
24192
  created_at?: string;
23442
- created_by?: string | null;
23443
- error_message?: string | null;
23444
- failed_count?: number | null;
24193
+ currency?: string | null;
24194
+ division_code?: number | null;
24195
+ email?: string | null;
24196
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24197
+ exact_id?: string;
24198
+ exact_modified?: string | null;
24199
+ exact_timestamp?: number | null;
23445
24200
  id?: string;
23446
- operation_type?: string;
23447
- processed_count?: number | null;
23448
- result_data?: import("../../../integrations/supabase/types").Json | null;
23449
- started_at?: string | null;
23450
- status?: string;
23451
- total_count?: number | null;
24201
+ is_active?: boolean;
24202
+ name?: string | null;
24203
+ phone?: string | null;
24204
+ postcode?: string | null;
24205
+ raw?: import("../../../integrations/supabase/types").Json | null;
24206
+ status?: string | null;
23452
24207
  updated_at?: string;
24208
+ vat_number?: string | null;
24209
+ website?: string | null;
23453
24210
  };
23454
- Relationships: [{
23455
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
23456
- columns: ["connection_id"];
23457
- isOneToOne: false;
23458
- referencedRelation: "exact_connections";
23459
- referencedColumns: ["id"];
23460
- }];
24211
+ Relationships: [];
23461
24212
  };
23462
- exact_connections: {
24213
+ exact_auth_divisions: {
23463
24214
  Row: {
23464
- access_token_encrypted: string;
24215
+ account_key: string;
23465
24216
  company_name: string | null;
23466
- connected_at: string;
23467
- connected_by: string | null;
24217
+ created_at: string;
23468
24218
  division_code: number | null;
23469
24219
  environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23470
- expires_at: string;
23471
24220
  id: string;
23472
- last_error: string | null;
23473
- last_refreshed_at: string | null;
23474
- last_tested_at: string | null;
23475
- refresh_token_encrypted: string;
23476
- status: string;
24221
+ last_synced_at: string | null;
23477
24222
  updated_at: string;
23478
24223
  };
23479
24224
  Insert: {
23480
- access_token_encrypted: string;
24225
+ account_key?: string;
23481
24226
  company_name?: string | null;
23482
- connected_at?: string;
23483
- connected_by?: string | null;
24227
+ created_at?: string;
23484
24228
  division_code?: number | null;
23485
24229
  environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23486
- expires_at: string;
23487
24230
  id?: string;
23488
- last_error?: string | null;
23489
- last_refreshed_at?: string | null;
23490
- last_tested_at?: string | null;
23491
- refresh_token_encrypted: string;
23492
- status?: string;
24231
+ last_synced_at?: string | null;
23493
24232
  updated_at?: string;
23494
24233
  };
23495
24234
  Update: {
23496
- access_token_encrypted?: string;
24235
+ account_key?: string;
23497
24236
  company_name?: string | null;
23498
- connected_at?: string;
23499
- connected_by?: string | null;
24237
+ created_at?: string;
23500
24238
  division_code?: number | null;
23501
24239
  environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23502
- expires_at?: string;
23503
24240
  id?: string;
23504
- last_error?: string | null;
23505
- last_refreshed_at?: string | null;
23506
- last_tested_at?: string | null;
23507
- refresh_token_encrypted?: string;
23508
- status?: string;
24241
+ last_synced_at?: string | null;
23509
24242
  updated_at?: string;
23510
24243
  };
23511
24244
  Relationships: [];
23512
24245
  };
23513
- exact_credentials: {
24246
+ exact_auth_invoice_lines: {
23514
24247
  Row: {
23515
- client_id: string;
23516
- client_secret_encrypted: string;
24248
+ account_key: string;
24249
+ amount_excl: number | null;
23517
24250
  created_at: string;
24251
+ description: string | null;
24252
+ discount: number | null;
23518
24253
  environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24254
+ exact_id: string;
24255
+ exact_timestamp: number | null;
23519
24256
  id: string;
23520
- redirect_uri: string;
24257
+ invoice_exact_id: string;
24258
+ item_code: string | null;
24259
+ item_exact_id: string | null;
24260
+ line_number: number | null;
24261
+ quantity: number | null;
24262
+ raw: import("../../../integrations/supabase/types").Json | null;
24263
+ unit_price: number | null;
23521
24264
  updated_at: string;
24265
+ vat_amount: number | null;
24266
+ vat_code: string | null;
23522
24267
  };
23523
24268
  Insert: {
23524
- client_id: string;
23525
- client_secret_encrypted: string;
24269
+ account_key?: string;
24270
+ amount_excl?: number | null;
23526
24271
  created_at?: string;
24272
+ description?: string | null;
24273
+ discount?: number | null;
23527
24274
  environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24275
+ exact_id: string;
24276
+ exact_timestamp?: number | null;
23528
24277
  id?: string;
23529
- redirect_uri?: string;
24278
+ invoice_exact_id: string;
24279
+ item_code?: string | null;
24280
+ item_exact_id?: string | null;
24281
+ line_number?: number | null;
24282
+ quantity?: number | null;
24283
+ raw?: import("../../../integrations/supabase/types").Json | null;
24284
+ unit_price?: number | null;
23530
24285
  updated_at?: string;
24286
+ vat_amount?: number | null;
24287
+ vat_code?: string | null;
23531
24288
  };
23532
24289
  Update: {
23533
- client_id?: string;
23534
- client_secret_encrypted?: string;
24290
+ account_key?: string;
24291
+ amount_excl?: number | null;
23535
24292
  created_at?: string;
24293
+ description?: string | null;
24294
+ discount?: number | null;
23536
24295
  environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24296
+ exact_id?: string;
24297
+ exact_timestamp?: number | null;
23537
24298
  id?: string;
23538
- redirect_uri?: string;
24299
+ invoice_exact_id?: string;
24300
+ item_code?: string | null;
24301
+ item_exact_id?: string | null;
24302
+ line_number?: number | null;
24303
+ quantity?: number | null;
24304
+ raw?: import("../../../integrations/supabase/types").Json | null;
24305
+ unit_price?: number | null;
23539
24306
  updated_at?: string;
24307
+ vat_amount?: number | null;
24308
+ vat_code?: string | null;
23540
24309
  };
23541
24310
  Relationships: [];
23542
24311
  };
23543
- exact_customer_sync_queue: {
24312
+ exact_auth_invoices: {
23544
24313
  Row: {
23545
- attempts: number;
23546
- connection_id: string;
24314
+ account_key: string;
24315
+ amount_excl: number | null;
24316
+ amount_incl: number | null;
24317
+ amount_open: number | null;
23547
24318
  created_at: string;
24319
+ currency: string | null;
24320
+ customer_code: string | null;
23548
24321
  customer_exact_id: string | null;
23549
- error_message: string | null;
24322
+ customer_name: string | null;
24323
+ description: string | null;
24324
+ division_code: number | null;
24325
+ due_date: string | null;
24326
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24327
+ exact_id: string;
24328
+ exact_modified: string | null;
24329
+ exact_timestamp: number | null;
23550
24330
  id: string;
23551
- max_attempts: number;
23552
- operation: string;
23553
- payload: import("../../../integrations/supabase/types").Json;
23554
- process_at: string;
23555
- processed_at: string | null;
23556
- status: string;
24331
+ invoice_date: string | null;
24332
+ invoice_number: string | null;
24333
+ order_number: string | null;
24334
+ paid_at: string | null;
24335
+ payment_status: string;
24336
+ raw: import("../../../integrations/supabase/types").Json | null;
24337
+ receivable_synced_at: string | null;
24338
+ status_code: number | null;
23557
24339
  updated_at: string;
23558
24340
  };
23559
24341
  Insert: {
23560
- attempts?: number;
23561
- connection_id: string;
24342
+ account_key?: string;
24343
+ amount_excl?: number | null;
24344
+ amount_incl?: number | null;
24345
+ amount_open?: number | null;
23562
24346
  created_at?: string;
24347
+ currency?: string | null;
24348
+ customer_code?: string | null;
23563
24349
  customer_exact_id?: string | null;
23564
- error_message?: string | null;
24350
+ customer_name?: string | null;
24351
+ description?: string | null;
24352
+ division_code?: number | null;
24353
+ due_date?: string | null;
24354
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24355
+ exact_id: string;
24356
+ exact_modified?: string | null;
24357
+ exact_timestamp?: number | null;
23565
24358
  id?: string;
23566
- max_attempts?: number;
23567
- operation: string;
23568
- payload?: import("../../../integrations/supabase/types").Json;
23569
- process_at?: string;
23570
- processed_at?: string | null;
23571
- status?: string;
24359
+ invoice_date?: string | null;
24360
+ invoice_number?: string | null;
24361
+ order_number?: string | null;
24362
+ paid_at?: string | null;
24363
+ payment_status?: string;
24364
+ raw?: import("../../../integrations/supabase/types").Json | null;
24365
+ receivable_synced_at?: string | null;
24366
+ status_code?: number | null;
23572
24367
  updated_at?: string;
23573
24368
  };
23574
24369
  Update: {
23575
- attempts?: number;
23576
- connection_id?: string;
24370
+ account_key?: string;
24371
+ amount_excl?: number | null;
24372
+ amount_incl?: number | null;
24373
+ amount_open?: number | null;
23577
24374
  created_at?: string;
24375
+ currency?: string | null;
24376
+ customer_code?: string | null;
23578
24377
  customer_exact_id?: string | null;
23579
- error_message?: string | null;
24378
+ customer_name?: string | null;
24379
+ description?: string | null;
24380
+ division_code?: number | null;
24381
+ due_date?: string | null;
24382
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24383
+ exact_id?: string;
24384
+ exact_modified?: string | null;
24385
+ exact_timestamp?: number | null;
23580
24386
  id?: string;
23581
- max_attempts?: number;
23582
- operation?: string;
23583
- payload?: import("../../../integrations/supabase/types").Json;
23584
- process_at?: string;
23585
- processed_at?: string | null;
23586
- status?: string;
24387
+ invoice_date?: string | null;
24388
+ invoice_number?: string | null;
24389
+ order_number?: string | null;
24390
+ paid_at?: string | null;
24391
+ payment_status?: string;
24392
+ raw?: import("../../../integrations/supabase/types").Json | null;
24393
+ receivable_synced_at?: string | null;
24394
+ status_code?: number | null;
23587
24395
  updated_at?: string;
23588
24396
  };
23589
- Relationships: [{
23590
- foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
23591
- columns: ["connection_id"];
23592
- isOneToOne: false;
23593
- referencedRelation: "exact_connections";
23594
- referencedColumns: ["id"];
23595
- }];
24397
+ Relationships: [];
23596
24398
  };
23597
- exact_customers_cache: {
24399
+ exact_auth_items: {
23598
24400
  Row: {
23599
- account_name: string | null;
23600
- account_number: string | null;
23601
- address_line1: string | null;
23602
- address_line2: string | null;
23603
- balance: number | null;
23604
- chamber_of_commerce: string | null;
23605
- city: string | null;
23606
- classification_description: string | null;
23607
- connection_id: string;
23608
- contact_name: string | null;
23609
- country: string | null;
23610
- created_at_exact: string | null;
23611
- credit_line: number | null;
23612
- currency: string | null;
23613
- data_raw: import("../../../integrations/supabase/types").Json | null;
23614
- email: string | null;
23615
- exact_id: string;
24401
+ account_key: string;
24402
+ barcode: string | null;
24403
+ code: string | null;
24404
+ cost_price: number | null;
24405
+ created_at: string;
24406
+ description: string | null;
24407
+ division_code: number | null;
24408
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24409
+ exact_id: string;
24410
+ exact_modified: string | null;
24411
+ exact_timestamp: number | null;
24412
+ gl_account_code: string | null;
24413
+ id: string;
24414
+ is_active: boolean;
24415
+ is_sales_item: boolean | null;
24416
+ item_type: string | null;
24417
+ raw: import("../../../integrations/supabase/types").Json | null;
24418
+ sales_price: number | null;
24419
+ unit: string | null;
24420
+ updated_at: string;
24421
+ vat_code: string | null;
24422
+ };
24423
+ Insert: {
24424
+ account_key?: string;
24425
+ barcode?: string | null;
24426
+ code?: string | null;
24427
+ cost_price?: number | null;
24428
+ created_at?: string;
24429
+ description?: string | null;
24430
+ division_code?: number | null;
24431
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24432
+ exact_id: string;
24433
+ exact_modified?: string | null;
24434
+ exact_timestamp?: number | null;
24435
+ gl_account_code?: string | null;
24436
+ id?: string;
24437
+ is_active?: boolean;
24438
+ is_sales_item?: boolean | null;
24439
+ item_type?: string | null;
24440
+ raw?: import("../../../integrations/supabase/types").Json | null;
24441
+ sales_price?: number | null;
24442
+ unit?: string | null;
24443
+ updated_at?: string;
24444
+ vat_code?: string | null;
24445
+ };
24446
+ Update: {
24447
+ account_key?: string;
24448
+ barcode?: string | null;
24449
+ code?: string | null;
24450
+ cost_price?: number | null;
24451
+ created_at?: string;
24452
+ description?: string | null;
24453
+ division_code?: number | null;
24454
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24455
+ exact_id?: string;
24456
+ exact_modified?: string | null;
24457
+ exact_timestamp?: number | null;
24458
+ gl_account_code?: string | null;
24459
+ id?: string;
24460
+ is_active?: boolean;
24461
+ is_sales_item?: boolean | null;
24462
+ item_type?: string | null;
24463
+ raw?: import("../../../integrations/supabase/types").Json | null;
24464
+ sales_price?: number | null;
24465
+ unit?: string | null;
24466
+ updated_at?: string;
24467
+ vat_code?: string | null;
24468
+ };
24469
+ Relationships: [];
24470
+ };
24471
+ exact_auth_sync_log: {
24472
+ Row: {
24473
+ account_key: string;
24474
+ calls_used: number;
24475
+ created_at: string;
24476
+ domain: string;
24477
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24478
+ error: string | null;
24479
+ finished_at: string | null;
24480
+ id: string;
24481
+ ok: boolean;
24482
+ records: number;
24483
+ started_at: string;
24484
+ };
24485
+ Insert: {
24486
+ account_key?: string;
24487
+ calls_used?: number;
24488
+ created_at?: string;
24489
+ domain: string;
24490
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24491
+ error?: string | null;
24492
+ finished_at?: string | null;
24493
+ id?: string;
24494
+ ok?: boolean;
24495
+ records?: number;
24496
+ started_at?: string;
24497
+ };
24498
+ Update: {
24499
+ account_key?: string;
24500
+ calls_used?: number;
24501
+ created_at?: string;
24502
+ domain?: string;
24503
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24504
+ error?: string | null;
24505
+ finished_at?: string | null;
24506
+ id?: string;
24507
+ ok?: boolean;
24508
+ records?: number;
24509
+ started_at?: string;
24510
+ };
24511
+ Relationships: [];
24512
+ };
24513
+ exact_auth_sync_state: {
24514
+ Row: {
24515
+ account_key: string;
24516
+ created_at: string;
24517
+ cursor_timestamp: number;
24518
+ division_code: number | null;
24519
+ domain: string;
24520
+ duration_ms: number | null;
24521
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24522
+ initial_sync_done: boolean;
24523
+ last_error: string | null;
24524
+ last_run_at: string | null;
24525
+ last_success_at: string | null;
24526
+ locked_at: string | null;
24527
+ needs_initial_sync: boolean;
24528
+ record_count: number;
24529
+ updated_at: string;
24530
+ };
24531
+ Insert: {
24532
+ account_key?: string;
24533
+ created_at?: string;
24534
+ cursor_timestamp?: number;
24535
+ division_code?: number | null;
24536
+ domain: string;
24537
+ duration_ms?: number | null;
24538
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24539
+ initial_sync_done?: boolean;
24540
+ last_error?: string | null;
24541
+ last_run_at?: string | null;
24542
+ last_success_at?: string | null;
24543
+ locked_at?: string | null;
24544
+ needs_initial_sync?: boolean;
24545
+ record_count?: number;
24546
+ updated_at?: string;
24547
+ };
24548
+ Update: {
24549
+ account_key?: string;
24550
+ created_at?: string;
24551
+ cursor_timestamp?: number;
24552
+ division_code?: number | null;
24553
+ domain?: string;
24554
+ duration_ms?: number | null;
24555
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24556
+ initial_sync_done?: boolean;
24557
+ last_error?: string | null;
24558
+ last_run_at?: string | null;
24559
+ last_success_at?: string | null;
24560
+ locked_at?: string | null;
24561
+ needs_initial_sync?: boolean;
24562
+ record_count?: number;
24563
+ updated_at?: string;
24564
+ };
24565
+ Relationships: [];
24566
+ };
24567
+ exact_bulk_operation_items: {
24568
+ Row: {
24569
+ attempts: number;
24570
+ bulk_operation_id: string;
24571
+ created_at: string;
24572
+ error_message: string | null;
24573
+ id: string;
24574
+ invoice_cache_id: string | null;
24575
+ invoice_exact_id: string | null;
24576
+ processed_at: string | null;
24577
+ result_data: import("../../../integrations/supabase/types").Json | null;
24578
+ status: string;
24579
+ };
24580
+ Insert: {
24581
+ attempts?: number;
24582
+ bulk_operation_id: string;
24583
+ created_at?: string;
24584
+ error_message?: string | null;
24585
+ id?: string;
24586
+ invoice_cache_id?: string | null;
24587
+ invoice_exact_id?: string | null;
24588
+ processed_at?: string | null;
24589
+ result_data?: import("../../../integrations/supabase/types").Json | null;
24590
+ status?: string;
24591
+ };
24592
+ Update: {
24593
+ attempts?: number;
24594
+ bulk_operation_id?: string;
24595
+ created_at?: string;
24596
+ error_message?: string | null;
24597
+ id?: string;
24598
+ invoice_cache_id?: string | null;
24599
+ invoice_exact_id?: string | null;
24600
+ processed_at?: string | null;
24601
+ result_data?: import("../../../integrations/supabase/types").Json | null;
24602
+ status?: string;
24603
+ };
24604
+ Relationships: [{
24605
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
24606
+ columns: ["bulk_operation_id"];
24607
+ isOneToOne: false;
24608
+ referencedRelation: "exact_bulk_operations";
24609
+ referencedColumns: ["id"];
24610
+ }, {
24611
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
24612
+ columns: ["invoice_cache_id"];
24613
+ isOneToOne: false;
24614
+ referencedRelation: "exact_invoices_cache";
24615
+ referencedColumns: ["id"];
24616
+ }];
24617
+ };
24618
+ exact_bulk_operations: {
24619
+ Row: {
24620
+ completed_at: string | null;
24621
+ connection_id: string;
24622
+ created_at: string;
24623
+ created_by: string | null;
24624
+ error_message: string | null;
24625
+ failed_count: number | null;
24626
+ id: string;
24627
+ operation_type: string;
24628
+ processed_count: number | null;
24629
+ result_data: import("../../../integrations/supabase/types").Json | null;
24630
+ started_at: string | null;
24631
+ status: string;
24632
+ total_count: number | null;
24633
+ updated_at: string;
24634
+ };
24635
+ Insert: {
24636
+ completed_at?: string | null;
24637
+ connection_id: string;
24638
+ created_at?: string;
24639
+ created_by?: string | null;
24640
+ error_message?: string | null;
24641
+ failed_count?: number | null;
24642
+ id?: string;
24643
+ operation_type: string;
24644
+ processed_count?: number | null;
24645
+ result_data?: import("../../../integrations/supabase/types").Json | null;
24646
+ started_at?: string | null;
24647
+ status?: string;
24648
+ total_count?: number | null;
24649
+ updated_at?: string;
24650
+ };
24651
+ Update: {
24652
+ completed_at?: string | null;
24653
+ connection_id?: string;
24654
+ created_at?: string;
24655
+ created_by?: string | null;
24656
+ error_message?: string | null;
24657
+ failed_count?: number | null;
24658
+ id?: string;
24659
+ operation_type?: string;
24660
+ processed_count?: number | null;
24661
+ result_data?: import("../../../integrations/supabase/types").Json | null;
24662
+ started_at?: string | null;
24663
+ status?: string;
24664
+ total_count?: number | null;
24665
+ updated_at?: string;
24666
+ };
24667
+ Relationships: [{
24668
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
24669
+ columns: ["connection_id"];
24670
+ isOneToOne: false;
24671
+ referencedRelation: "exact_connections";
24672
+ referencedColumns: ["id"];
24673
+ }];
24674
+ };
24675
+ exact_connections: {
24676
+ Row: {
24677
+ access_token_encrypted: string;
24678
+ company_name: string | null;
24679
+ connected_at: string;
24680
+ connected_by: string | null;
24681
+ division_code: number | null;
24682
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24683
+ expires_at: string;
24684
+ id: string;
24685
+ last_error: string | null;
24686
+ last_refreshed_at: string | null;
24687
+ last_tested_at: string | null;
24688
+ refresh_token_encrypted: string;
24689
+ status: string;
24690
+ updated_at: string;
24691
+ };
24692
+ Insert: {
24693
+ access_token_encrypted: string;
24694
+ company_name?: string | null;
24695
+ connected_at?: string;
24696
+ connected_by?: string | null;
24697
+ division_code?: number | null;
24698
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24699
+ expires_at: string;
24700
+ id?: string;
24701
+ last_error?: string | null;
24702
+ last_refreshed_at?: string | null;
24703
+ last_tested_at?: string | null;
24704
+ refresh_token_encrypted: string;
24705
+ status?: string;
24706
+ updated_at?: string;
24707
+ };
24708
+ Update: {
24709
+ access_token_encrypted?: string;
24710
+ company_name?: string | null;
24711
+ connected_at?: string;
24712
+ connected_by?: string | null;
24713
+ division_code?: number | null;
24714
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24715
+ expires_at?: string;
24716
+ id?: string;
24717
+ last_error?: string | null;
24718
+ last_refreshed_at?: string | null;
24719
+ last_tested_at?: string | null;
24720
+ refresh_token_encrypted?: string;
24721
+ status?: string;
24722
+ updated_at?: string;
24723
+ };
24724
+ Relationships: [];
24725
+ };
24726
+ exact_credentials: {
24727
+ Row: {
24728
+ client_id: string;
24729
+ client_secret_encrypted: string;
24730
+ created_at: string;
24731
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24732
+ id: string;
24733
+ redirect_uri: string;
24734
+ updated_at: string;
24735
+ };
24736
+ Insert: {
24737
+ client_id: string;
24738
+ client_secret_encrypted: string;
24739
+ created_at?: string;
24740
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24741
+ id?: string;
24742
+ redirect_uri?: string;
24743
+ updated_at?: string;
24744
+ };
24745
+ Update: {
24746
+ client_id?: string;
24747
+ client_secret_encrypted?: string;
24748
+ created_at?: string;
24749
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24750
+ id?: string;
24751
+ redirect_uri?: string;
24752
+ updated_at?: string;
24753
+ };
24754
+ Relationships: [];
24755
+ };
24756
+ exact_customer_sync_queue: {
24757
+ Row: {
24758
+ attempts: number;
24759
+ connection_id: string;
24760
+ created_at: string;
24761
+ customer_exact_id: string | null;
24762
+ error_message: string | null;
24763
+ id: string;
24764
+ max_attempts: number;
24765
+ operation: string;
24766
+ payload: import("../../../integrations/supabase/types").Json;
24767
+ process_at: string;
24768
+ processed_at: string | null;
24769
+ status: string;
24770
+ updated_at: string;
24771
+ };
24772
+ Insert: {
24773
+ attempts?: number;
24774
+ connection_id: string;
24775
+ created_at?: string;
24776
+ customer_exact_id?: string | null;
24777
+ error_message?: string | null;
24778
+ id?: string;
24779
+ max_attempts?: number;
24780
+ operation: string;
24781
+ payload?: import("../../../integrations/supabase/types").Json;
24782
+ process_at?: string;
24783
+ processed_at?: string | null;
24784
+ status?: string;
24785
+ updated_at?: string;
24786
+ };
24787
+ Update: {
24788
+ attempts?: number;
24789
+ connection_id?: string;
24790
+ created_at?: string;
24791
+ customer_exact_id?: string | null;
24792
+ error_message?: string | null;
24793
+ id?: string;
24794
+ max_attempts?: number;
24795
+ operation?: string;
24796
+ payload?: import("../../../integrations/supabase/types").Json;
24797
+ process_at?: string;
24798
+ processed_at?: string | null;
24799
+ status?: string;
24800
+ updated_at?: string;
24801
+ };
24802
+ Relationships: [{
24803
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
24804
+ columns: ["connection_id"];
24805
+ isOneToOne: false;
24806
+ referencedRelation: "exact_connections";
24807
+ referencedColumns: ["id"];
24808
+ }];
24809
+ };
24810
+ exact_customers_cache: {
24811
+ Row: {
24812
+ account_name: string | null;
24813
+ account_number: string | null;
24814
+ address_line1: string | null;
24815
+ address_line2: string | null;
24816
+ balance: number | null;
24817
+ chamber_of_commerce: string | null;
24818
+ city: string | null;
24819
+ classification_description: string | null;
24820
+ connection_id: string;
24821
+ contact_name: string | null;
24822
+ country: string | null;
24823
+ created_at_exact: string | null;
24824
+ credit_line: number | null;
24825
+ currency: string | null;
24826
+ data_raw: import("../../../integrations/supabase/types").Json | null;
24827
+ email: string | null;
24828
+ exact_id: string;
23616
24829
  expires_at: string | null;
23617
24830
  fetched_at: string;
23618
24831
  id: string;
@@ -25042,12 +26255,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25042
26255
  attempts: number;
25043
26256
  connection_id: string;
25044
26257
  created_at: string;
26258
+ desired_available: boolean | null;
25045
26259
  gateway_attempt_id: string | null;
25046
26260
  id: string;
25047
26261
  last_error: string | null;
26262
+ locked_at: string | null;
26263
+ locked_by: string | null;
26264
+ next_attempt_at: string;
25048
26265
  number_of_pieces: number;
25049
26266
  sent_at: string | null;
25050
26267
  status: string;
26268
+ superseded_by: string | null;
25051
26269
  trade_item_id: string;
25052
26270
  updated_at: string;
25053
26271
  user_id: string;
@@ -25056,12 +26274,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25056
26274
  attempts?: number;
25057
26275
  connection_id: string;
25058
26276
  created_at?: string;
26277
+ desired_available?: boolean | null;
25059
26278
  gateway_attempt_id?: string | null;
25060
26279
  id?: string;
25061
26280
  last_error?: string | null;
26281
+ locked_at?: string | null;
26282
+ locked_by?: string | null;
26283
+ next_attempt_at?: string;
25062
26284
  number_of_pieces?: number;
25063
26285
  sent_at?: string | null;
25064
26286
  status?: string;
26287
+ superseded_by?: string | null;
25065
26288
  trade_item_id: string;
25066
26289
  updated_at?: string;
25067
26290
  user_id: string;
@@ -25070,12 +26293,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25070
26293
  attempts?: number;
25071
26294
  connection_id?: string;
25072
26295
  created_at?: string;
26296
+ desired_available?: boolean | null;
25073
26297
  gateway_attempt_id?: string | null;
25074
26298
  id?: string;
25075
26299
  last_error?: string | null;
26300
+ locked_at?: string | null;
26301
+ locked_by?: string | null;
26302
+ next_attempt_at?: string;
25076
26303
  number_of_pieces?: number;
25077
26304
  sent_at?: string | null;
25078
26305
  status?: string;
26306
+ superseded_by?: string | null;
25079
26307
  trade_item_id?: string;
25080
26308
  updated_at?: string;
25081
26309
  user_id?: string;
@@ -27824,6 +29052,69 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
27824
29052
  };
27825
29053
  Relationships: [];
27826
29054
  };
29055
+ logistics_floriday_pushes: {
29056
+ Row: {
29057
+ attempts: number;
29058
+ created_at: string;
29059
+ first_queued_at: string;
29060
+ fulfillment_order_id: string | null;
29061
+ id: string;
29062
+ last_error: string | null;
29063
+ last_error_at: string | null;
29064
+ last_sent_hash: string | null;
29065
+ locked_by: string | null;
29066
+ locked_until: string | null;
29067
+ next_attempt_at: string;
29068
+ order_ref: string;
29069
+ payload: import("../../../integrations/supabase/types").Json;
29070
+ payload_hash: string | null;
29071
+ revision: number;
29072
+ sent_at: string | null;
29073
+ status: string;
29074
+ updated_at: string;
29075
+ };
29076
+ Insert: {
29077
+ attempts?: number;
29078
+ created_at?: string;
29079
+ first_queued_at?: string;
29080
+ fulfillment_order_id?: string | null;
29081
+ id?: string;
29082
+ last_error?: string | null;
29083
+ last_error_at?: string | null;
29084
+ last_sent_hash?: string | null;
29085
+ locked_by?: string | null;
29086
+ locked_until?: string | null;
29087
+ next_attempt_at?: string;
29088
+ order_ref: string;
29089
+ payload?: import("../../../integrations/supabase/types").Json;
29090
+ payload_hash?: string | null;
29091
+ revision?: number;
29092
+ sent_at?: string | null;
29093
+ status?: string;
29094
+ updated_at?: string;
29095
+ };
29096
+ Update: {
29097
+ attempts?: number;
29098
+ created_at?: string;
29099
+ first_queued_at?: string;
29100
+ fulfillment_order_id?: string | null;
29101
+ id?: string;
29102
+ last_error?: string | null;
29103
+ last_error_at?: string | null;
29104
+ last_sent_hash?: string | null;
29105
+ locked_by?: string | null;
29106
+ locked_until?: string | null;
29107
+ next_attempt_at?: string;
29108
+ order_ref?: string;
29109
+ payload?: import("../../../integrations/supabase/types").Json;
29110
+ payload_hash?: string | null;
29111
+ revision?: number;
29112
+ sent_at?: string | null;
29113
+ status?: string;
29114
+ updated_at?: string;
29115
+ };
29116
+ Relationships: [];
29117
+ };
27827
29118
  logistics_formulas: {
27828
29119
  Row: {
27829
29120
  created_at: string;
@@ -28435,6 +29726,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28435
29726
  };
28436
29727
  logistics_tasks: {
28437
29728
  Row: {
29729
+ attempt_log: import("../../../integrations/supabase/types").Json;
29730
+ attempts: number;
28438
29731
  buffer_ref: string | null;
28439
29732
  claimed_at: string | null;
28440
29733
  claimed_by: string | null;
@@ -28444,6 +29737,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28444
29737
  due_at: string | null;
28445
29738
  error: string | null;
28446
29739
  id: string;
29740
+ last_error: string | null;
29741
+ next_attempt_at: string | null;
28447
29742
  order_ref: string;
28448
29743
  owner_module: string;
28449
29744
  payload: import("../../../integrations/supabase/types").Json;
@@ -28464,6 +29759,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28464
29759
  user_id: string;
28465
29760
  };
28466
29761
  Insert: {
29762
+ attempt_log?: import("../../../integrations/supabase/types").Json;
29763
+ attempts?: number;
28467
29764
  buffer_ref?: string | null;
28468
29765
  claimed_at?: string | null;
28469
29766
  claimed_by?: string | null;
@@ -28473,6 +29770,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28473
29770
  due_at?: string | null;
28474
29771
  error?: string | null;
28475
29772
  id?: string;
29773
+ last_error?: string | null;
29774
+ next_attempt_at?: string | null;
28476
29775
  order_ref: string;
28477
29776
  owner_module: string;
28478
29777
  payload?: import("../../../integrations/supabase/types").Json;
@@ -28493,6 +29792,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28493
29792
  user_id?: string;
28494
29793
  };
28495
29794
  Update: {
29795
+ attempt_log?: import("../../../integrations/supabase/types").Json;
29796
+ attempts?: number;
28496
29797
  buffer_ref?: string | null;
28497
29798
  claimed_at?: string | null;
28498
29799
  claimed_by?: string | null;
@@ -28502,6 +29803,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28502
29803
  due_at?: string | null;
28503
29804
  error?: string | null;
28504
29805
  id?: string;
29806
+ last_error?: string | null;
29807
+ next_attempt_at?: string | null;
28505
29808
  order_ref?: string;
28506
29809
  owner_module?: string;
28507
29810
  payload?: import("../../../integrations/supabase/types").Json;
@@ -29851,6 +31154,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29851
31154
  };
29852
31155
  offer_settings: {
29853
31156
  Row: {
31157
+ brand_name: string | null;
29854
31158
  button_color: string;
29855
31159
  created_at: string;
29856
31160
  default_countries: string[];
@@ -29872,6 +31176,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29872
31176
  updated_at: string;
29873
31177
  };
29874
31178
  Insert: {
31179
+ brand_name?: string | null;
29875
31180
  button_color?: string;
29876
31181
  created_at?: string;
29877
31182
  default_countries?: string[];
@@ -29893,6 +31198,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29893
31198
  updated_at?: string;
29894
31199
  };
29895
31200
  Update: {
31201
+ brand_name?: string | null;
29896
31202
  button_color?: string;
29897
31203
  created_at?: string;
29898
31204
  default_countries?: string[];
@@ -37503,6 +38809,85 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
37503
38809
  };
37504
38810
  Returns: import("../../../integrations/supabase/types").Json;
37505
38811
  };
38812
+ claim_floriday_stock_queue: {
38813
+ Args: {
38814
+ p_limit?: number;
38815
+ p_worker?: string;
38816
+ };
38817
+ Returns: {
38818
+ attempts: number;
38819
+ connection_id: string;
38820
+ created_at: string;
38821
+ desired_available: boolean | null;
38822
+ gateway_attempt_id: string | null;
38823
+ id: string;
38824
+ last_error: string | null;
38825
+ locked_at: string | null;
38826
+ locked_by: string | null;
38827
+ next_attempt_at: string;
38828
+ number_of_pieces: number;
38829
+ sent_at: string | null;
38830
+ status: string;
38831
+ superseded_by: string | null;
38832
+ trade_item_id: string;
38833
+ updated_at: string;
38834
+ user_id: string;
38835
+ }[];
38836
+ SetofOptions: {
38837
+ from: "*";
38838
+ to: "floriday_continuous_stock_queue";
38839
+ isOneToOne: false;
38840
+ isSetofReturn: true;
38841
+ };
38842
+ };
38843
+ claim_logistics_tasks: {
38844
+ Args: {
38845
+ _limit?: number;
38846
+ _owner_module: string;
38847
+ _stale_minutes?: number;
38848
+ _task_type: string;
38849
+ _worker: string;
38850
+ };
38851
+ Returns: {
38852
+ attempt_log: import("../../../integrations/supabase/types").Json;
38853
+ attempts: number;
38854
+ buffer_ref: string | null;
38855
+ claimed_at: string | null;
38856
+ claimed_by: string | null;
38857
+ completed_at: string | null;
38858
+ created_at: string;
38859
+ depends_on: string[];
38860
+ due_at: string | null;
38861
+ error: string | null;
38862
+ id: string;
38863
+ last_error: string | null;
38864
+ next_attempt_at: string | null;
38865
+ order_ref: string;
38866
+ owner_module: string;
38867
+ payload: import("../../../integrations/supabase/types").Json;
38868
+ plan_run_id: string | null;
38869
+ planned_end: string | null;
38870
+ planned_start: string | null;
38871
+ priority: number;
38872
+ result: import("../../../integrations/supabase/types").Json | null;
38873
+ rule_config_id: string | null;
38874
+ rule_version: number | null;
38875
+ sequence: number;
38876
+ shadow: boolean;
38877
+ started_at: string | null;
38878
+ status: string;
38879
+ strategy_id: string | null;
38880
+ task_type: string;
38881
+ updated_at: string;
38882
+ user_id: string;
38883
+ }[];
38884
+ SetofOptions: {
38885
+ from: "*";
38886
+ to: "logistics_tasks";
38887
+ isOneToOne: false;
38888
+ isSetofReturn: true;
38889
+ };
38890
+ };
37506
38891
  claim_print_jobs: {
37507
38892
  Args: {
37508
38893
  _agent_id: string;
@@ -37567,10 +38952,24 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
37567
38952
  isSetofReturn: true;
37568
38953
  };
37569
38954
  };
38955
+ cleanup_floriday_stock_queue: {
38956
+ Args: never;
38957
+ Returns: undefined;
38958
+ };
37570
38959
  cleanup_old_bookings: {
37571
38960
  Args: never;
37572
38961
  Returns: undefined;
37573
38962
  };
38963
+ complete_floriday_stock_queue: {
38964
+ Args: {
38965
+ p_attempt_id?: string;
38966
+ p_error?: string;
38967
+ p_id: string;
38968
+ p_ok: boolean;
38969
+ p_permanent?: boolean;
38970
+ };
38971
+ Returns: undefined;
38972
+ };
37574
38973
  consume_bom_for_production: {
37575
38974
  Args: {
37576
38975
  p_connection_id: string;
@@ -37743,6 +39142,21 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
37743
39142
  Args: never;
37744
39143
  Returns: string;
37745
39144
  };
39145
+ exact_auth_consume_calls: {
39146
+ Args: {
39147
+ _account_key: string;
39148
+ _calls?: number;
39149
+ _day_limit?: number;
39150
+ _division_code: number;
39151
+ _environment: string;
39152
+ _minute_limit?: number;
39153
+ };
39154
+ Returns: import("../../../integrations/supabase/types").Json;
39155
+ };
39156
+ exact_auth_prune_sync_log: {
39157
+ Args: never;
39158
+ Returns: undefined;
39159
+ };
37746
39160
  exact_decrypt: {
37747
39161
  Args: {
37748
39162
  cipher: string;
@@ -37952,6 +39366,10 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
37952
39366
  };
37953
39367
  Returns: number;
37954
39368
  };
39369
+ get_offer_branding: {
39370
+ Args: never;
39371
+ Returns: import("../../../integrations/supabase/types").Json;
39372
+ };
37955
39373
  get_offer_by_link_code: {
37956
39374
  Args: {
37957
39375
  p_code: string;
@@ -38243,6 +39661,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38243
39661
  p_worker?: string;
38244
39662
  };
38245
39663
  Returns: {
39664
+ attempt_log: import("../../../integrations/supabase/types").Json;
39665
+ attempts: number;
38246
39666
  buffer_ref: string | null;
38247
39667
  claimed_at: string | null;
38248
39668
  claimed_by: string | null;
@@ -38252,6 +39672,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38252
39672
  due_at: string | null;
38253
39673
  error: string | null;
38254
39674
  id: string;
39675
+ last_error: string | null;
39676
+ next_attempt_at: string | null;
38255
39677
  order_ref: string;
38256
39678
  owner_module: string;
38257
39679
  payload: import("../../../integrations/supabase/types").Json;
@@ -38284,6 +39706,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38284
39706
  p_worker?: string;
38285
39707
  };
38286
39708
  Returns: {
39709
+ attempt_log: import("../../../integrations/supabase/types").Json;
39710
+ attempts: number;
38287
39711
  buffer_ref: string | null;
38288
39712
  claimed_at: string | null;
38289
39713
  claimed_by: string | null;
@@ -38293,6 +39717,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38293
39717
  due_at: string | null;
38294
39718
  error: string | null;
38295
39719
  id: string;
39720
+ last_error: string | null;
39721
+ next_attempt_at: string | null;
38296
39722
  order_ref: string;
38297
39723
  owner_module: string;
38298
39724
  payload: import("../../../integrations/supabase/types").Json;
@@ -38325,6 +39751,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38325
39751
  p_task_id: string;
38326
39752
  };
38327
39753
  Returns: {
39754
+ attempt_log: import("../../../integrations/supabase/types").Json;
39755
+ attempts: number;
38328
39756
  buffer_ref: string | null;
38329
39757
  claimed_at: string | null;
38330
39758
  claimed_by: string | null;
@@ -38334,6 +39762,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38334
39762
  due_at: string | null;
38335
39763
  error: string | null;
38336
39764
  id: string;
39765
+ last_error: string | null;
39766
+ next_attempt_at: string | null;
38337
39767
  order_ref: string;
38338
39768
  owner_module: string;
38339
39769
  payload: import("../../../integrations/supabase/types").Json;
@@ -38415,6 +39845,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38415
39845
  p_task_id: string;
38416
39846
  };
38417
39847
  Returns: {
39848
+ attempt_log: import("../../../integrations/supabase/types").Json;
39849
+ attempts: number;
38418
39850
  buffer_ref: string | null;
38419
39851
  claimed_at: string | null;
38420
39852
  claimed_by: string | null;
@@ -38424,6 +39856,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38424
39856
  due_at: string | null;
38425
39857
  error: string | null;
38426
39858
  id: string;
39859
+ last_error: string | null;
39860
+ next_attempt_at: string | null;
38427
39861
  order_ref: string;
38428
39862
  owner_module: string;
38429
39863
  payload: import("../../../integrations/supabase/types").Json;
@@ -38450,6 +39884,51 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38450
39884
  isSetofReturn: false;
38451
39885
  };
38452
39886
  };
39887
+ logistics_floriday_claim_pushes: {
39888
+ Args: {
39889
+ _lease_seconds?: number;
39890
+ _limit?: number;
39891
+ _worker?: string;
39892
+ };
39893
+ Returns: {
39894
+ attempts: number;
39895
+ fulfillment_order_id: string;
39896
+ id: string;
39897
+ last_sent_hash: string;
39898
+ order_ref: string;
39899
+ payload: import("../../../integrations/supabase/types").Json;
39900
+ payload_hash: string;
39901
+ revision: number;
39902
+ }[];
39903
+ };
39904
+ logistics_floriday_finish_push: {
39905
+ Args: {
39906
+ _error?: string;
39907
+ _fulfillment_order_id?: string;
39908
+ _id: string;
39909
+ _max_age_hours?: number;
39910
+ _max_attempts?: number;
39911
+ _ok: boolean;
39912
+ _permanent?: boolean;
39913
+ _revision: number;
39914
+ _sent_hash?: string;
39915
+ };
39916
+ Returns: string;
39917
+ };
39918
+ logistics_floriday_prune_pushes: {
39919
+ Args: {
39920
+ _days?: number;
39921
+ };
39922
+ Returns: number;
39923
+ };
39924
+ logistics_floriday_queue_push: {
39925
+ Args: {
39926
+ _order_ref: string;
39927
+ _payload?: import("../../../integrations/supabase/types").Json;
39928
+ _payload_hash?: string;
39929
+ };
39930
+ Returns: string;
39931
+ };
38453
39932
  logistics_live_carriers: {
38454
39933
  Args: {
38455
39934
  p_order_ref: string;
@@ -39177,6 +40656,10 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39177
40656
  Args: never;
39178
40657
  Returns: undefined;
39179
40658
  };
40659
+ run_logistics_tasks_dispatch: {
40660
+ Args: never;
40661
+ Returns: undefined;
40662
+ };
39180
40663
  run_twinfield_queue_tick: {
39181
40664
  Args: never;
39182
40665
  Returns: undefined;
@@ -39417,6 +40900,13 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39417
40900
  };
39418
40901
  Returns: number;
39419
40902
  };
40903
+ schedule_floriday_stock_queue_process: {
40904
+ Args: {
40905
+ p_apikey: string;
40906
+ p_url: string;
40907
+ };
40908
+ Returns: number;
40909
+ };
39420
40910
  schedule_floriday_token_refresh: {
39421
40911
  Args: {
39422
40912
  p_apikey: string;
@@ -43169,6 +44659,474 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
43169
44659
  referencedColumns: ["id"];
43170
44660
  }];
43171
44661
  };
44662
+ exact_auth_call_budget: {
44663
+ Row: {
44664
+ account_key: string;
44665
+ day_count: number;
44666
+ day_date: string;
44667
+ division_code: number;
44668
+ environment: string;
44669
+ minute_count: number;
44670
+ minute_window: string;
44671
+ updated_at: string;
44672
+ };
44673
+ Insert: {
44674
+ account_key?: string;
44675
+ day_count?: number;
44676
+ day_date?: string;
44677
+ division_code?: number;
44678
+ environment: string;
44679
+ minute_count?: number;
44680
+ minute_window?: string;
44681
+ updated_at?: string;
44682
+ };
44683
+ Update: {
44684
+ account_key?: string;
44685
+ day_count?: number;
44686
+ day_date?: string;
44687
+ division_code?: number;
44688
+ environment?: string;
44689
+ minute_count?: number;
44690
+ minute_window?: string;
44691
+ updated_at?: string;
44692
+ };
44693
+ Relationships: [];
44694
+ };
44695
+ exact_auth_customers: {
44696
+ Row: {
44697
+ account_key: string;
44698
+ address_line1: string | null;
44699
+ chamber_of_commerce: string | null;
44700
+ city: string | null;
44701
+ code: string | null;
44702
+ country: string | null;
44703
+ created_at: string;
44704
+ currency: string | null;
44705
+ division_code: number | null;
44706
+ email: string | null;
44707
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44708
+ exact_id: string;
44709
+ exact_modified: string | null;
44710
+ exact_timestamp: number | null;
44711
+ id: string;
44712
+ is_active: boolean;
44713
+ name: string | null;
44714
+ phone: string | null;
44715
+ postcode: string | null;
44716
+ raw: import("../../../integrations/supabase/types").Json | null;
44717
+ status: string | null;
44718
+ updated_at: string;
44719
+ vat_number: string | null;
44720
+ website: string | null;
44721
+ };
44722
+ Insert: {
44723
+ account_key?: string;
44724
+ address_line1?: string | null;
44725
+ chamber_of_commerce?: string | null;
44726
+ city?: string | null;
44727
+ code?: string | null;
44728
+ country?: string | null;
44729
+ created_at?: string;
44730
+ currency?: string | null;
44731
+ division_code?: number | null;
44732
+ email?: string | null;
44733
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44734
+ exact_id: string;
44735
+ exact_modified?: string | null;
44736
+ exact_timestamp?: number | null;
44737
+ id?: string;
44738
+ is_active?: boolean;
44739
+ name?: string | null;
44740
+ phone?: string | null;
44741
+ postcode?: string | null;
44742
+ raw?: import("../../../integrations/supabase/types").Json | null;
44743
+ status?: string | null;
44744
+ updated_at?: string;
44745
+ vat_number?: string | null;
44746
+ website?: string | null;
44747
+ };
44748
+ Update: {
44749
+ account_key?: string;
44750
+ address_line1?: string | null;
44751
+ chamber_of_commerce?: string | null;
44752
+ city?: string | null;
44753
+ code?: string | null;
44754
+ country?: string | null;
44755
+ created_at?: string;
44756
+ currency?: string | null;
44757
+ division_code?: number | null;
44758
+ email?: string | null;
44759
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44760
+ exact_id?: string;
44761
+ exact_modified?: string | null;
44762
+ exact_timestamp?: number | null;
44763
+ id?: string;
44764
+ is_active?: boolean;
44765
+ name?: string | null;
44766
+ phone?: string | null;
44767
+ postcode?: string | null;
44768
+ raw?: import("../../../integrations/supabase/types").Json | null;
44769
+ status?: string | null;
44770
+ updated_at?: string;
44771
+ vat_number?: string | null;
44772
+ website?: string | null;
44773
+ };
44774
+ Relationships: [];
44775
+ };
44776
+ exact_auth_divisions: {
44777
+ Row: {
44778
+ account_key: string;
44779
+ company_name: string | null;
44780
+ created_at: string;
44781
+ division_code: number | null;
44782
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44783
+ id: string;
44784
+ last_synced_at: string | null;
44785
+ updated_at: string;
44786
+ };
44787
+ Insert: {
44788
+ account_key?: string;
44789
+ company_name?: string | null;
44790
+ created_at?: string;
44791
+ division_code?: number | null;
44792
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44793
+ id?: string;
44794
+ last_synced_at?: string | null;
44795
+ updated_at?: string;
44796
+ };
44797
+ Update: {
44798
+ account_key?: string;
44799
+ company_name?: string | null;
44800
+ created_at?: string;
44801
+ division_code?: number | null;
44802
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44803
+ id?: string;
44804
+ last_synced_at?: string | null;
44805
+ updated_at?: string;
44806
+ };
44807
+ Relationships: [];
44808
+ };
44809
+ exact_auth_invoice_lines: {
44810
+ Row: {
44811
+ account_key: string;
44812
+ amount_excl: number | null;
44813
+ created_at: string;
44814
+ description: string | null;
44815
+ discount: number | null;
44816
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44817
+ exact_id: string;
44818
+ exact_timestamp: number | null;
44819
+ id: string;
44820
+ invoice_exact_id: string;
44821
+ item_code: string | null;
44822
+ item_exact_id: string | null;
44823
+ line_number: number | null;
44824
+ quantity: number | null;
44825
+ raw: import("../../../integrations/supabase/types").Json | null;
44826
+ unit_price: number | null;
44827
+ updated_at: string;
44828
+ vat_amount: number | null;
44829
+ vat_code: string | null;
44830
+ };
44831
+ Insert: {
44832
+ account_key?: string;
44833
+ amount_excl?: number | null;
44834
+ created_at?: string;
44835
+ description?: string | null;
44836
+ discount?: number | null;
44837
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44838
+ exact_id: string;
44839
+ exact_timestamp?: number | null;
44840
+ id?: string;
44841
+ invoice_exact_id: string;
44842
+ item_code?: string | null;
44843
+ item_exact_id?: string | null;
44844
+ line_number?: number | null;
44845
+ quantity?: number | null;
44846
+ raw?: import("../../../integrations/supabase/types").Json | null;
44847
+ unit_price?: number | null;
44848
+ updated_at?: string;
44849
+ vat_amount?: number | null;
44850
+ vat_code?: string | null;
44851
+ };
44852
+ Update: {
44853
+ account_key?: string;
44854
+ amount_excl?: number | null;
44855
+ created_at?: string;
44856
+ description?: string | null;
44857
+ discount?: number | null;
44858
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44859
+ exact_id?: string;
44860
+ exact_timestamp?: number | null;
44861
+ id?: string;
44862
+ invoice_exact_id?: string;
44863
+ item_code?: string | null;
44864
+ item_exact_id?: string | null;
44865
+ line_number?: number | null;
44866
+ quantity?: number | null;
44867
+ raw?: import("../../../integrations/supabase/types").Json | null;
44868
+ unit_price?: number | null;
44869
+ updated_at?: string;
44870
+ vat_amount?: number | null;
44871
+ vat_code?: string | null;
44872
+ };
44873
+ Relationships: [];
44874
+ };
44875
+ exact_auth_invoices: {
44876
+ Row: {
44877
+ account_key: string;
44878
+ amount_excl: number | null;
44879
+ amount_incl: number | null;
44880
+ amount_open: number | null;
44881
+ created_at: string;
44882
+ currency: string | null;
44883
+ customer_code: string | null;
44884
+ customer_exact_id: string | null;
44885
+ customer_name: string | null;
44886
+ description: string | null;
44887
+ division_code: number | null;
44888
+ due_date: string | null;
44889
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44890
+ exact_id: string;
44891
+ exact_modified: string | null;
44892
+ exact_timestamp: number | null;
44893
+ id: string;
44894
+ invoice_date: string | null;
44895
+ invoice_number: string | null;
44896
+ order_number: string | null;
44897
+ paid_at: string | null;
44898
+ payment_status: string;
44899
+ raw: import("../../../integrations/supabase/types").Json | null;
44900
+ receivable_synced_at: string | null;
44901
+ status_code: number | null;
44902
+ updated_at: string;
44903
+ };
44904
+ Insert: {
44905
+ account_key?: string;
44906
+ amount_excl?: number | null;
44907
+ amount_incl?: number | null;
44908
+ amount_open?: number | null;
44909
+ created_at?: string;
44910
+ currency?: string | null;
44911
+ customer_code?: string | null;
44912
+ customer_exact_id?: string | null;
44913
+ customer_name?: string | null;
44914
+ description?: string | null;
44915
+ division_code?: number | null;
44916
+ due_date?: string | null;
44917
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44918
+ exact_id: string;
44919
+ exact_modified?: string | null;
44920
+ exact_timestamp?: number | null;
44921
+ id?: string;
44922
+ invoice_date?: string | null;
44923
+ invoice_number?: string | null;
44924
+ order_number?: string | null;
44925
+ paid_at?: string | null;
44926
+ payment_status?: string;
44927
+ raw?: import("../../../integrations/supabase/types").Json | null;
44928
+ receivable_synced_at?: string | null;
44929
+ status_code?: number | null;
44930
+ updated_at?: string;
44931
+ };
44932
+ Update: {
44933
+ account_key?: string;
44934
+ amount_excl?: number | null;
44935
+ amount_incl?: number | null;
44936
+ amount_open?: number | null;
44937
+ created_at?: string;
44938
+ currency?: string | null;
44939
+ customer_code?: string | null;
44940
+ customer_exact_id?: string | null;
44941
+ customer_name?: string | null;
44942
+ description?: string | null;
44943
+ division_code?: number | null;
44944
+ due_date?: string | null;
44945
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44946
+ exact_id?: string;
44947
+ exact_modified?: string | null;
44948
+ exact_timestamp?: number | null;
44949
+ id?: string;
44950
+ invoice_date?: string | null;
44951
+ invoice_number?: string | null;
44952
+ order_number?: string | null;
44953
+ paid_at?: string | null;
44954
+ payment_status?: string;
44955
+ raw?: import("../../../integrations/supabase/types").Json | null;
44956
+ receivable_synced_at?: string | null;
44957
+ status_code?: number | null;
44958
+ updated_at?: string;
44959
+ };
44960
+ Relationships: [];
44961
+ };
44962
+ exact_auth_items: {
44963
+ Row: {
44964
+ account_key: string;
44965
+ barcode: string | null;
44966
+ code: string | null;
44967
+ cost_price: number | null;
44968
+ created_at: string;
44969
+ description: string | null;
44970
+ division_code: number | null;
44971
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44972
+ exact_id: string;
44973
+ exact_modified: string | null;
44974
+ exact_timestamp: number | null;
44975
+ gl_account_code: string | null;
44976
+ id: string;
44977
+ is_active: boolean;
44978
+ is_sales_item: boolean | null;
44979
+ item_type: string | null;
44980
+ raw: import("../../../integrations/supabase/types").Json | null;
44981
+ sales_price: number | null;
44982
+ unit: string | null;
44983
+ updated_at: string;
44984
+ vat_code: string | null;
44985
+ };
44986
+ Insert: {
44987
+ account_key?: string;
44988
+ barcode?: string | null;
44989
+ code?: string | null;
44990
+ cost_price?: number | null;
44991
+ created_at?: string;
44992
+ description?: string | null;
44993
+ division_code?: number | null;
44994
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44995
+ exact_id: string;
44996
+ exact_modified?: string | null;
44997
+ exact_timestamp?: number | null;
44998
+ gl_account_code?: string | null;
44999
+ id?: string;
45000
+ is_active?: boolean;
45001
+ is_sales_item?: boolean | null;
45002
+ item_type?: string | null;
45003
+ raw?: import("../../../integrations/supabase/types").Json | null;
45004
+ sales_price?: number | null;
45005
+ unit?: string | null;
45006
+ updated_at?: string;
45007
+ vat_code?: string | null;
45008
+ };
45009
+ Update: {
45010
+ account_key?: string;
45011
+ barcode?: string | null;
45012
+ code?: string | null;
45013
+ cost_price?: number | null;
45014
+ created_at?: string;
45015
+ description?: string | null;
45016
+ division_code?: number | null;
45017
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45018
+ exact_id?: string;
45019
+ exact_modified?: string | null;
45020
+ exact_timestamp?: number | null;
45021
+ gl_account_code?: string | null;
45022
+ id?: string;
45023
+ is_active?: boolean;
45024
+ is_sales_item?: boolean | null;
45025
+ item_type?: string | null;
45026
+ raw?: import("../../../integrations/supabase/types").Json | null;
45027
+ sales_price?: number | null;
45028
+ unit?: string | null;
45029
+ updated_at?: string;
45030
+ vat_code?: string | null;
45031
+ };
45032
+ Relationships: [];
45033
+ };
45034
+ exact_auth_sync_log: {
45035
+ Row: {
45036
+ account_key: string;
45037
+ calls_used: number;
45038
+ created_at: string;
45039
+ domain: string;
45040
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45041
+ error: string | null;
45042
+ finished_at: string | null;
45043
+ id: string;
45044
+ ok: boolean;
45045
+ records: number;
45046
+ started_at: string;
45047
+ };
45048
+ Insert: {
45049
+ account_key?: string;
45050
+ calls_used?: number;
45051
+ created_at?: string;
45052
+ domain: string;
45053
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45054
+ error?: string | null;
45055
+ finished_at?: string | null;
45056
+ id?: string;
45057
+ ok?: boolean;
45058
+ records?: number;
45059
+ started_at?: string;
45060
+ };
45061
+ Update: {
45062
+ account_key?: string;
45063
+ calls_used?: number;
45064
+ created_at?: string;
45065
+ domain?: string;
45066
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45067
+ error?: string | null;
45068
+ finished_at?: string | null;
45069
+ id?: string;
45070
+ ok?: boolean;
45071
+ records?: number;
45072
+ started_at?: string;
45073
+ };
45074
+ Relationships: [];
45075
+ };
45076
+ exact_auth_sync_state: {
45077
+ Row: {
45078
+ account_key: string;
45079
+ created_at: string;
45080
+ cursor_timestamp: number;
45081
+ division_code: number | null;
45082
+ domain: string;
45083
+ duration_ms: number | null;
45084
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45085
+ initial_sync_done: boolean;
45086
+ last_error: string | null;
45087
+ last_run_at: string | null;
45088
+ last_success_at: string | null;
45089
+ locked_at: string | null;
45090
+ needs_initial_sync: boolean;
45091
+ record_count: number;
45092
+ updated_at: string;
45093
+ };
45094
+ Insert: {
45095
+ account_key?: string;
45096
+ created_at?: string;
45097
+ cursor_timestamp?: number;
45098
+ division_code?: number | null;
45099
+ domain: string;
45100
+ duration_ms?: number | null;
45101
+ environment: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45102
+ initial_sync_done?: boolean;
45103
+ last_error?: string | null;
45104
+ last_run_at?: string | null;
45105
+ last_success_at?: string | null;
45106
+ locked_at?: string | null;
45107
+ needs_initial_sync?: boolean;
45108
+ record_count?: number;
45109
+ updated_at?: string;
45110
+ };
45111
+ Update: {
45112
+ account_key?: string;
45113
+ created_at?: string;
45114
+ cursor_timestamp?: number;
45115
+ division_code?: number | null;
45116
+ domain?: string;
45117
+ duration_ms?: number | null;
45118
+ environment?: import("../../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
45119
+ initial_sync_done?: boolean;
45120
+ last_error?: string | null;
45121
+ last_run_at?: string | null;
45122
+ last_success_at?: string | null;
45123
+ locked_at?: string | null;
45124
+ needs_initial_sync?: boolean;
45125
+ record_count?: number;
45126
+ updated_at?: string;
45127
+ };
45128
+ Relationships: [];
45129
+ };
43172
45130
  exact_bulk_operation_items: {
43173
45131
  Row: {
43174
45132
  attempts: number;
@@ -44860,12 +46818,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
44860
46818
  attempts: number;
44861
46819
  connection_id: string;
44862
46820
  created_at: string;
46821
+ desired_available: boolean | null;
44863
46822
  gateway_attempt_id: string | null;
44864
46823
  id: string;
44865
46824
  last_error: string | null;
46825
+ locked_at: string | null;
46826
+ locked_by: string | null;
46827
+ next_attempt_at: string;
44866
46828
  number_of_pieces: number;
44867
46829
  sent_at: string | null;
44868
46830
  status: string;
46831
+ superseded_by: string | null;
44869
46832
  trade_item_id: string;
44870
46833
  updated_at: string;
44871
46834
  user_id: string;
@@ -44874,12 +46837,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
44874
46837
  attempts?: number;
44875
46838
  connection_id: string;
44876
46839
  created_at?: string;
46840
+ desired_available?: boolean | null;
44877
46841
  gateway_attempt_id?: string | null;
44878
46842
  id?: string;
44879
46843
  last_error?: string | null;
46844
+ locked_at?: string | null;
46845
+ locked_by?: string | null;
46846
+ next_attempt_at?: string;
44880
46847
  number_of_pieces?: number;
44881
46848
  sent_at?: string | null;
44882
46849
  status?: string;
46850
+ superseded_by?: string | null;
44883
46851
  trade_item_id: string;
44884
46852
  updated_at?: string;
44885
46853
  user_id: string;
@@ -44888,12 +46856,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
44888
46856
  attempts?: number;
44889
46857
  connection_id?: string;
44890
46858
  created_at?: string;
46859
+ desired_available?: boolean | null;
44891
46860
  gateway_attempt_id?: string | null;
44892
46861
  id?: string;
44893
46862
  last_error?: string | null;
46863
+ locked_at?: string | null;
46864
+ locked_by?: string | null;
46865
+ next_attempt_at?: string;
44894
46866
  number_of_pieces?: number;
44895
46867
  sent_at?: string | null;
44896
46868
  status?: string;
46869
+ superseded_by?: string | null;
44897
46870
  trade_item_id?: string;
44898
46871
  updated_at?: string;
44899
46872
  user_id?: string;
@@ -47642,6 +49615,69 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
47642
49615
  };
47643
49616
  Relationships: [];
47644
49617
  };
49618
+ logistics_floriday_pushes: {
49619
+ Row: {
49620
+ attempts: number;
49621
+ created_at: string;
49622
+ first_queued_at: string;
49623
+ fulfillment_order_id: string | null;
49624
+ id: string;
49625
+ last_error: string | null;
49626
+ last_error_at: string | null;
49627
+ last_sent_hash: string | null;
49628
+ locked_by: string | null;
49629
+ locked_until: string | null;
49630
+ next_attempt_at: string;
49631
+ order_ref: string;
49632
+ payload: import("../../../integrations/supabase/types").Json;
49633
+ payload_hash: string | null;
49634
+ revision: number;
49635
+ sent_at: string | null;
49636
+ status: string;
49637
+ updated_at: string;
49638
+ };
49639
+ Insert: {
49640
+ attempts?: number;
49641
+ created_at?: string;
49642
+ first_queued_at?: string;
49643
+ fulfillment_order_id?: string | null;
49644
+ id?: string;
49645
+ last_error?: string | null;
49646
+ last_error_at?: string | null;
49647
+ last_sent_hash?: string | null;
49648
+ locked_by?: string | null;
49649
+ locked_until?: string | null;
49650
+ next_attempt_at?: string;
49651
+ order_ref: string;
49652
+ payload?: import("../../../integrations/supabase/types").Json;
49653
+ payload_hash?: string | null;
49654
+ revision?: number;
49655
+ sent_at?: string | null;
49656
+ status?: string;
49657
+ updated_at?: string;
49658
+ };
49659
+ Update: {
49660
+ attempts?: number;
49661
+ created_at?: string;
49662
+ first_queued_at?: string;
49663
+ fulfillment_order_id?: string | null;
49664
+ id?: string;
49665
+ last_error?: string | null;
49666
+ last_error_at?: string | null;
49667
+ last_sent_hash?: string | null;
49668
+ locked_by?: string | null;
49669
+ locked_until?: string | null;
49670
+ next_attempt_at?: string;
49671
+ order_ref?: string;
49672
+ payload?: import("../../../integrations/supabase/types").Json;
49673
+ payload_hash?: string | null;
49674
+ revision?: number;
49675
+ sent_at?: string | null;
49676
+ status?: string;
49677
+ updated_at?: string;
49678
+ };
49679
+ Relationships: [];
49680
+ };
47645
49681
  logistics_formulas: {
47646
49682
  Row: {
47647
49683
  created_at: string;
@@ -48253,6 +50289,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48253
50289
  };
48254
50290
  logistics_tasks: {
48255
50291
  Row: {
50292
+ attempt_log: import("../../../integrations/supabase/types").Json;
50293
+ attempts: number;
48256
50294
  buffer_ref: string | null;
48257
50295
  claimed_at: string | null;
48258
50296
  claimed_by: string | null;
@@ -48262,6 +50300,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48262
50300
  due_at: string | null;
48263
50301
  error: string | null;
48264
50302
  id: string;
50303
+ last_error: string | null;
50304
+ next_attempt_at: string | null;
48265
50305
  order_ref: string;
48266
50306
  owner_module: string;
48267
50307
  payload: import("../../../integrations/supabase/types").Json;
@@ -48282,6 +50322,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48282
50322
  user_id: string;
48283
50323
  };
48284
50324
  Insert: {
50325
+ attempt_log?: import("../../../integrations/supabase/types").Json;
50326
+ attempts?: number;
48285
50327
  buffer_ref?: string | null;
48286
50328
  claimed_at?: string | null;
48287
50329
  claimed_by?: string | null;
@@ -48291,6 +50333,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48291
50333
  due_at?: string | null;
48292
50334
  error?: string | null;
48293
50335
  id?: string;
50336
+ last_error?: string | null;
50337
+ next_attempt_at?: string | null;
48294
50338
  order_ref: string;
48295
50339
  owner_module: string;
48296
50340
  payload?: import("../../../integrations/supabase/types").Json;
@@ -48311,6 +50355,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48311
50355
  user_id?: string;
48312
50356
  };
48313
50357
  Update: {
50358
+ attempt_log?: import("../../../integrations/supabase/types").Json;
50359
+ attempts?: number;
48314
50360
  buffer_ref?: string | null;
48315
50361
  claimed_at?: string | null;
48316
50362
  claimed_by?: string | null;
@@ -48320,6 +50366,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
48320
50366
  due_at?: string | null;
48321
50367
  error?: string | null;
48322
50368
  id?: string;
50369
+ last_error?: string | null;
50370
+ next_attempt_at?: string | null;
48323
50371
  order_ref?: string;
48324
50372
  owner_module?: string;
48325
50373
  payload?: import("../../../integrations/supabase/types").Json;
@@ -49669,6 +51717,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49669
51717
  };
49670
51718
  offer_settings: {
49671
51719
  Row: {
51720
+ brand_name: string | null;
49672
51721
  button_color: string;
49673
51722
  created_at: string;
49674
51723
  default_countries: string[];
@@ -49690,6 +51739,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49690
51739
  updated_at: string;
49691
51740
  };
49692
51741
  Insert: {
51742
+ brand_name?: string | null;
49693
51743
  button_color?: string;
49694
51744
  created_at?: string;
49695
51745
  default_countries?: string[];
@@ -49711,6 +51761,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49711
51761
  updated_at?: string;
49712
51762
  };
49713
51763
  Update: {
51764
+ brand_name?: string | null;
49714
51765
  button_color?: string;
49715
51766
  created_at?: string;
49716
51767
  default_countries?: string[];
@@ -57321,6 +59372,85 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
57321
59372
  };
57322
59373
  Returns: import("../../../integrations/supabase/types").Json;
57323
59374
  };
59375
+ claim_floriday_stock_queue: {
59376
+ Args: {
59377
+ p_limit?: number;
59378
+ p_worker?: string;
59379
+ };
59380
+ Returns: {
59381
+ attempts: number;
59382
+ connection_id: string;
59383
+ created_at: string;
59384
+ desired_available: boolean | null;
59385
+ gateway_attempt_id: string | null;
59386
+ id: string;
59387
+ last_error: string | null;
59388
+ locked_at: string | null;
59389
+ locked_by: string | null;
59390
+ next_attempt_at: string;
59391
+ number_of_pieces: number;
59392
+ sent_at: string | null;
59393
+ status: string;
59394
+ superseded_by: string | null;
59395
+ trade_item_id: string;
59396
+ updated_at: string;
59397
+ user_id: string;
59398
+ }[];
59399
+ SetofOptions: {
59400
+ from: "*";
59401
+ to: "floriday_continuous_stock_queue";
59402
+ isOneToOne: false;
59403
+ isSetofReturn: true;
59404
+ };
59405
+ };
59406
+ claim_logistics_tasks: {
59407
+ Args: {
59408
+ _limit?: number;
59409
+ _owner_module: string;
59410
+ _stale_minutes?: number;
59411
+ _task_type: string;
59412
+ _worker: string;
59413
+ };
59414
+ Returns: {
59415
+ attempt_log: import("../../../integrations/supabase/types").Json;
59416
+ attempts: number;
59417
+ buffer_ref: string | null;
59418
+ claimed_at: string | null;
59419
+ claimed_by: string | null;
59420
+ completed_at: string | null;
59421
+ created_at: string;
59422
+ depends_on: string[];
59423
+ due_at: string | null;
59424
+ error: string | null;
59425
+ id: string;
59426
+ last_error: string | null;
59427
+ next_attempt_at: string | null;
59428
+ order_ref: string;
59429
+ owner_module: string;
59430
+ payload: import("../../../integrations/supabase/types").Json;
59431
+ plan_run_id: string | null;
59432
+ planned_end: string | null;
59433
+ planned_start: string | null;
59434
+ priority: number;
59435
+ result: import("../../../integrations/supabase/types").Json | null;
59436
+ rule_config_id: string | null;
59437
+ rule_version: number | null;
59438
+ sequence: number;
59439
+ shadow: boolean;
59440
+ started_at: string | null;
59441
+ status: string;
59442
+ strategy_id: string | null;
59443
+ task_type: string;
59444
+ updated_at: string;
59445
+ user_id: string;
59446
+ }[];
59447
+ SetofOptions: {
59448
+ from: "*";
59449
+ to: "logistics_tasks";
59450
+ isOneToOne: false;
59451
+ isSetofReturn: true;
59452
+ };
59453
+ };
57324
59454
  claim_print_jobs: {
57325
59455
  Args: {
57326
59456
  _agent_id: string;
@@ -57385,10 +59515,24 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
57385
59515
  isSetofReturn: true;
57386
59516
  };
57387
59517
  };
59518
+ cleanup_floriday_stock_queue: {
59519
+ Args: never;
59520
+ Returns: undefined;
59521
+ };
57388
59522
  cleanup_old_bookings: {
57389
59523
  Args: never;
57390
59524
  Returns: undefined;
57391
59525
  };
59526
+ complete_floriday_stock_queue: {
59527
+ Args: {
59528
+ p_attempt_id?: string;
59529
+ p_error?: string;
59530
+ p_id: string;
59531
+ p_ok: boolean;
59532
+ p_permanent?: boolean;
59533
+ };
59534
+ Returns: undefined;
59535
+ };
57392
59536
  consume_bom_for_production: {
57393
59537
  Args: {
57394
59538
  p_connection_id: string;
@@ -57561,6 +59705,21 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
57561
59705
  Args: never;
57562
59706
  Returns: string;
57563
59707
  };
59708
+ exact_auth_consume_calls: {
59709
+ Args: {
59710
+ _account_key: string;
59711
+ _calls?: number;
59712
+ _day_limit?: number;
59713
+ _division_code: number;
59714
+ _environment: string;
59715
+ _minute_limit?: number;
59716
+ };
59717
+ Returns: import("../../../integrations/supabase/types").Json;
59718
+ };
59719
+ exact_auth_prune_sync_log: {
59720
+ Args: never;
59721
+ Returns: undefined;
59722
+ };
57564
59723
  exact_decrypt: {
57565
59724
  Args: {
57566
59725
  cipher: string;
@@ -57770,6 +59929,10 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
57770
59929
  };
57771
59930
  Returns: number;
57772
59931
  };
59932
+ get_offer_branding: {
59933
+ Args: never;
59934
+ Returns: import("../../../integrations/supabase/types").Json;
59935
+ };
57773
59936
  get_offer_by_link_code: {
57774
59937
  Args: {
57775
59938
  p_code: string;
@@ -58061,6 +60224,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58061
60224
  p_worker?: string;
58062
60225
  };
58063
60226
  Returns: {
60227
+ attempt_log: import("../../../integrations/supabase/types").Json;
60228
+ attempts: number;
58064
60229
  buffer_ref: string | null;
58065
60230
  claimed_at: string | null;
58066
60231
  claimed_by: string | null;
@@ -58070,6 +60235,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58070
60235
  due_at: string | null;
58071
60236
  error: string | null;
58072
60237
  id: string;
60238
+ last_error: string | null;
60239
+ next_attempt_at: string | null;
58073
60240
  order_ref: string;
58074
60241
  owner_module: string;
58075
60242
  payload: import("../../../integrations/supabase/types").Json;
@@ -58102,6 +60269,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58102
60269
  p_worker?: string;
58103
60270
  };
58104
60271
  Returns: {
60272
+ attempt_log: import("../../../integrations/supabase/types").Json;
60273
+ attempts: number;
58105
60274
  buffer_ref: string | null;
58106
60275
  claimed_at: string | null;
58107
60276
  claimed_by: string | null;
@@ -58111,6 +60280,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58111
60280
  due_at: string | null;
58112
60281
  error: string | null;
58113
60282
  id: string;
60283
+ last_error: string | null;
60284
+ next_attempt_at: string | null;
58114
60285
  order_ref: string;
58115
60286
  owner_module: string;
58116
60287
  payload: import("../../../integrations/supabase/types").Json;
@@ -58143,6 +60314,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58143
60314
  p_task_id: string;
58144
60315
  };
58145
60316
  Returns: {
60317
+ attempt_log: import("../../../integrations/supabase/types").Json;
60318
+ attempts: number;
58146
60319
  buffer_ref: string | null;
58147
60320
  claimed_at: string | null;
58148
60321
  claimed_by: string | null;
@@ -58152,6 +60325,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58152
60325
  due_at: string | null;
58153
60326
  error: string | null;
58154
60327
  id: string;
60328
+ last_error: string | null;
60329
+ next_attempt_at: string | null;
58155
60330
  order_ref: string;
58156
60331
  owner_module: string;
58157
60332
  payload: import("../../../integrations/supabase/types").Json;
@@ -58233,6 +60408,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58233
60408
  p_task_id: string;
58234
60409
  };
58235
60410
  Returns: {
60411
+ attempt_log: import("../../../integrations/supabase/types").Json;
60412
+ attempts: number;
58236
60413
  buffer_ref: string | null;
58237
60414
  claimed_at: string | null;
58238
60415
  claimed_by: string | null;
@@ -58242,6 +60419,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58242
60419
  due_at: string | null;
58243
60420
  error: string | null;
58244
60421
  id: string;
60422
+ last_error: string | null;
60423
+ next_attempt_at: string | null;
58245
60424
  order_ref: string;
58246
60425
  owner_module: string;
58247
60426
  payload: import("../../../integrations/supabase/types").Json;
@@ -58268,6 +60447,51 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58268
60447
  isSetofReturn: false;
58269
60448
  };
58270
60449
  };
60450
+ logistics_floriday_claim_pushes: {
60451
+ Args: {
60452
+ _lease_seconds?: number;
60453
+ _limit?: number;
60454
+ _worker?: string;
60455
+ };
60456
+ Returns: {
60457
+ attempts: number;
60458
+ fulfillment_order_id: string;
60459
+ id: string;
60460
+ last_sent_hash: string;
60461
+ order_ref: string;
60462
+ payload: import("../../../integrations/supabase/types").Json;
60463
+ payload_hash: string;
60464
+ revision: number;
60465
+ }[];
60466
+ };
60467
+ logistics_floriday_finish_push: {
60468
+ Args: {
60469
+ _error?: string;
60470
+ _fulfillment_order_id?: string;
60471
+ _id: string;
60472
+ _max_age_hours?: number;
60473
+ _max_attempts?: number;
60474
+ _ok: boolean;
60475
+ _permanent?: boolean;
60476
+ _revision: number;
60477
+ _sent_hash?: string;
60478
+ };
60479
+ Returns: string;
60480
+ };
60481
+ logistics_floriday_prune_pushes: {
60482
+ Args: {
60483
+ _days?: number;
60484
+ };
60485
+ Returns: number;
60486
+ };
60487
+ logistics_floriday_queue_push: {
60488
+ Args: {
60489
+ _order_ref: string;
60490
+ _payload?: import("../../../integrations/supabase/types").Json;
60491
+ _payload_hash?: string;
60492
+ };
60493
+ Returns: string;
60494
+ };
58271
60495
  logistics_live_carriers: {
58272
60496
  Args: {
58273
60497
  p_order_ref: string;
@@ -58995,6 +61219,10 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58995
61219
  Args: never;
58996
61220
  Returns: undefined;
58997
61221
  };
61222
+ run_logistics_tasks_dispatch: {
61223
+ Args: never;
61224
+ Returns: undefined;
61225
+ };
58998
61226
  run_twinfield_queue_tick: {
58999
61227
  Args: never;
59000
61228
  Returns: undefined;
@@ -59235,6 +61463,13 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59235
61463
  };
59236
61464
  Returns: number;
59237
61465
  };
61466
+ schedule_floriday_stock_queue_process: {
61467
+ Args: {
61468
+ p_apikey: string;
61469
+ p_url: string;
61470
+ };
61471
+ Returns: number;
61472
+ };
59238
61473
  schedule_floriday_token_refresh: {
59239
61474
  Args: {
59240
61475
  p_apikey: string;