@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
@@ -3543,6 +3543,474 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
3543
3543
  referencedColumns: ["id"];
3544
3544
  }];
3545
3545
  };
3546
+ exact_auth_call_budget: {
3547
+ Row: {
3548
+ account_key: string;
3549
+ day_count: number;
3550
+ day_date: string;
3551
+ division_code: number;
3552
+ environment: string;
3553
+ minute_count: number;
3554
+ minute_window: string;
3555
+ updated_at: string;
3556
+ };
3557
+ Insert: {
3558
+ account_key?: string;
3559
+ day_count?: number;
3560
+ day_date?: string;
3561
+ division_code?: number;
3562
+ environment: string;
3563
+ minute_count?: number;
3564
+ minute_window?: string;
3565
+ updated_at?: string;
3566
+ };
3567
+ Update: {
3568
+ account_key?: string;
3569
+ day_count?: number;
3570
+ day_date?: string;
3571
+ division_code?: number;
3572
+ environment?: string;
3573
+ minute_count?: number;
3574
+ minute_window?: string;
3575
+ updated_at?: string;
3576
+ };
3577
+ Relationships: [];
3578
+ };
3579
+ exact_auth_customers: {
3580
+ Row: {
3581
+ account_key: string;
3582
+ address_line1: string | null;
3583
+ chamber_of_commerce: string | null;
3584
+ city: string | null;
3585
+ code: string | null;
3586
+ country: string | null;
3587
+ created_at: string;
3588
+ currency: string | null;
3589
+ division_code: number | null;
3590
+ email: string | null;
3591
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3592
+ exact_id: string;
3593
+ exact_modified: string | null;
3594
+ exact_timestamp: number | null;
3595
+ id: string;
3596
+ is_active: boolean;
3597
+ name: string | null;
3598
+ phone: string | null;
3599
+ postcode: string | null;
3600
+ raw: import("../integrations/supabase/types").Json | null;
3601
+ status: string | null;
3602
+ updated_at: string;
3603
+ vat_number: string | null;
3604
+ website: string | null;
3605
+ };
3606
+ Insert: {
3607
+ account_key?: string;
3608
+ address_line1?: string | null;
3609
+ chamber_of_commerce?: string | null;
3610
+ city?: string | null;
3611
+ code?: string | null;
3612
+ country?: string | null;
3613
+ created_at?: string;
3614
+ currency?: string | null;
3615
+ division_code?: number | null;
3616
+ email?: string | null;
3617
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3618
+ exact_id: string;
3619
+ exact_modified?: string | null;
3620
+ exact_timestamp?: number | null;
3621
+ id?: string;
3622
+ is_active?: boolean;
3623
+ name?: string | null;
3624
+ phone?: string | null;
3625
+ postcode?: string | null;
3626
+ raw?: import("../integrations/supabase/types").Json | null;
3627
+ status?: string | null;
3628
+ updated_at?: string;
3629
+ vat_number?: string | null;
3630
+ website?: string | null;
3631
+ };
3632
+ Update: {
3633
+ account_key?: string;
3634
+ address_line1?: string | null;
3635
+ chamber_of_commerce?: string | null;
3636
+ city?: string | null;
3637
+ code?: string | null;
3638
+ country?: string | null;
3639
+ created_at?: string;
3640
+ currency?: string | null;
3641
+ division_code?: number | null;
3642
+ email?: string | null;
3643
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3644
+ exact_id?: string;
3645
+ exact_modified?: string | null;
3646
+ exact_timestamp?: number | null;
3647
+ id?: string;
3648
+ is_active?: boolean;
3649
+ name?: string | null;
3650
+ phone?: string | null;
3651
+ postcode?: string | null;
3652
+ raw?: import("../integrations/supabase/types").Json | null;
3653
+ status?: string | null;
3654
+ updated_at?: string;
3655
+ vat_number?: string | null;
3656
+ website?: string | null;
3657
+ };
3658
+ Relationships: [];
3659
+ };
3660
+ exact_auth_divisions: {
3661
+ Row: {
3662
+ account_key: string;
3663
+ company_name: string | null;
3664
+ created_at: string;
3665
+ division_code: number | null;
3666
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3667
+ id: string;
3668
+ last_synced_at: string | null;
3669
+ updated_at: string;
3670
+ };
3671
+ Insert: {
3672
+ account_key?: string;
3673
+ company_name?: string | null;
3674
+ created_at?: string;
3675
+ division_code?: number | null;
3676
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3677
+ id?: string;
3678
+ last_synced_at?: string | null;
3679
+ updated_at?: string;
3680
+ };
3681
+ Update: {
3682
+ account_key?: string;
3683
+ company_name?: string | null;
3684
+ created_at?: string;
3685
+ division_code?: number | null;
3686
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3687
+ id?: string;
3688
+ last_synced_at?: string | null;
3689
+ updated_at?: string;
3690
+ };
3691
+ Relationships: [];
3692
+ };
3693
+ exact_auth_invoice_lines: {
3694
+ Row: {
3695
+ account_key: string;
3696
+ amount_excl: number | null;
3697
+ created_at: string;
3698
+ description: string | null;
3699
+ discount: number | null;
3700
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3701
+ exact_id: string;
3702
+ exact_timestamp: number | null;
3703
+ id: string;
3704
+ invoice_exact_id: string;
3705
+ item_code: string | null;
3706
+ item_exact_id: string | null;
3707
+ line_number: number | null;
3708
+ quantity: number | null;
3709
+ raw: import("../integrations/supabase/types").Json | null;
3710
+ unit_price: number | null;
3711
+ updated_at: string;
3712
+ vat_amount: number | null;
3713
+ vat_code: string | null;
3714
+ };
3715
+ Insert: {
3716
+ account_key?: string;
3717
+ amount_excl?: number | null;
3718
+ created_at?: string;
3719
+ description?: string | null;
3720
+ discount?: number | null;
3721
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3722
+ exact_id: string;
3723
+ exact_timestamp?: number | null;
3724
+ id?: string;
3725
+ invoice_exact_id: string;
3726
+ item_code?: string | null;
3727
+ item_exact_id?: string | null;
3728
+ line_number?: number | null;
3729
+ quantity?: number | null;
3730
+ raw?: import("../integrations/supabase/types").Json | null;
3731
+ unit_price?: number | null;
3732
+ updated_at?: string;
3733
+ vat_amount?: number | null;
3734
+ vat_code?: string | null;
3735
+ };
3736
+ Update: {
3737
+ account_key?: string;
3738
+ amount_excl?: number | null;
3739
+ created_at?: string;
3740
+ description?: string | null;
3741
+ discount?: number | null;
3742
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3743
+ exact_id?: string;
3744
+ exact_timestamp?: number | null;
3745
+ id?: string;
3746
+ invoice_exact_id?: string;
3747
+ item_code?: string | null;
3748
+ item_exact_id?: string | null;
3749
+ line_number?: number | null;
3750
+ quantity?: number | null;
3751
+ raw?: import("../integrations/supabase/types").Json | null;
3752
+ unit_price?: number | null;
3753
+ updated_at?: string;
3754
+ vat_amount?: number | null;
3755
+ vat_code?: string | null;
3756
+ };
3757
+ Relationships: [];
3758
+ };
3759
+ exact_auth_invoices: {
3760
+ Row: {
3761
+ account_key: string;
3762
+ amount_excl: number | null;
3763
+ amount_incl: number | null;
3764
+ amount_open: number | null;
3765
+ created_at: string;
3766
+ currency: string | null;
3767
+ customer_code: string | null;
3768
+ customer_exact_id: string | null;
3769
+ customer_name: string | null;
3770
+ description: string | null;
3771
+ division_code: number | null;
3772
+ due_date: string | null;
3773
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3774
+ exact_id: string;
3775
+ exact_modified: string | null;
3776
+ exact_timestamp: number | null;
3777
+ id: string;
3778
+ invoice_date: string | null;
3779
+ invoice_number: string | null;
3780
+ order_number: string | null;
3781
+ paid_at: string | null;
3782
+ payment_status: string;
3783
+ raw: import("../integrations/supabase/types").Json | null;
3784
+ receivable_synced_at: string | null;
3785
+ status_code: number | null;
3786
+ updated_at: string;
3787
+ };
3788
+ Insert: {
3789
+ account_key?: string;
3790
+ amount_excl?: number | null;
3791
+ amount_incl?: number | null;
3792
+ amount_open?: number | null;
3793
+ created_at?: string;
3794
+ currency?: string | null;
3795
+ customer_code?: string | null;
3796
+ customer_exact_id?: string | null;
3797
+ customer_name?: string | null;
3798
+ description?: string | null;
3799
+ division_code?: number | null;
3800
+ due_date?: string | null;
3801
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3802
+ exact_id: string;
3803
+ exact_modified?: string | null;
3804
+ exact_timestamp?: number | null;
3805
+ id?: string;
3806
+ invoice_date?: string | null;
3807
+ invoice_number?: string | null;
3808
+ order_number?: string | null;
3809
+ paid_at?: string | null;
3810
+ payment_status?: string;
3811
+ raw?: import("../integrations/supabase/types").Json | null;
3812
+ receivable_synced_at?: string | null;
3813
+ status_code?: number | null;
3814
+ updated_at?: string;
3815
+ };
3816
+ Update: {
3817
+ account_key?: string;
3818
+ amount_excl?: number | null;
3819
+ amount_incl?: number | null;
3820
+ amount_open?: number | null;
3821
+ created_at?: string;
3822
+ currency?: string | null;
3823
+ customer_code?: string | null;
3824
+ customer_exact_id?: string | null;
3825
+ customer_name?: string | null;
3826
+ description?: string | null;
3827
+ division_code?: number | null;
3828
+ due_date?: string | null;
3829
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3830
+ exact_id?: string;
3831
+ exact_modified?: string | null;
3832
+ exact_timestamp?: number | null;
3833
+ id?: string;
3834
+ invoice_date?: string | null;
3835
+ invoice_number?: string | null;
3836
+ order_number?: string | null;
3837
+ paid_at?: string | null;
3838
+ payment_status?: string;
3839
+ raw?: import("../integrations/supabase/types").Json | null;
3840
+ receivable_synced_at?: string | null;
3841
+ status_code?: number | null;
3842
+ updated_at?: string;
3843
+ };
3844
+ Relationships: [];
3845
+ };
3846
+ exact_auth_items: {
3847
+ Row: {
3848
+ account_key: string;
3849
+ barcode: string | null;
3850
+ code: string | null;
3851
+ cost_price: number | null;
3852
+ created_at: string;
3853
+ description: string | null;
3854
+ division_code: number | null;
3855
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3856
+ exact_id: string;
3857
+ exact_modified: string | null;
3858
+ exact_timestamp: number | null;
3859
+ gl_account_code: string | null;
3860
+ id: string;
3861
+ is_active: boolean;
3862
+ is_sales_item: boolean | null;
3863
+ item_type: string | null;
3864
+ raw: import("../integrations/supabase/types").Json | null;
3865
+ sales_price: number | null;
3866
+ unit: string | null;
3867
+ updated_at: string;
3868
+ vat_code: string | null;
3869
+ };
3870
+ Insert: {
3871
+ account_key?: string;
3872
+ barcode?: string | null;
3873
+ code?: string | null;
3874
+ cost_price?: number | null;
3875
+ created_at?: string;
3876
+ description?: string | null;
3877
+ division_code?: number | null;
3878
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3879
+ exact_id: string;
3880
+ exact_modified?: string | null;
3881
+ exact_timestamp?: number | null;
3882
+ gl_account_code?: string | null;
3883
+ id?: string;
3884
+ is_active?: boolean;
3885
+ is_sales_item?: boolean | null;
3886
+ item_type?: string | null;
3887
+ raw?: import("../integrations/supabase/types").Json | null;
3888
+ sales_price?: number | null;
3889
+ unit?: string | null;
3890
+ updated_at?: string;
3891
+ vat_code?: string | null;
3892
+ };
3893
+ Update: {
3894
+ account_key?: string;
3895
+ barcode?: string | null;
3896
+ code?: string | null;
3897
+ cost_price?: number | null;
3898
+ created_at?: string;
3899
+ description?: string | null;
3900
+ division_code?: number | null;
3901
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3902
+ exact_id?: string;
3903
+ exact_modified?: string | null;
3904
+ exact_timestamp?: number | null;
3905
+ gl_account_code?: string | null;
3906
+ id?: string;
3907
+ is_active?: boolean;
3908
+ is_sales_item?: boolean | null;
3909
+ item_type?: string | null;
3910
+ raw?: import("../integrations/supabase/types").Json | null;
3911
+ sales_price?: number | null;
3912
+ unit?: string | null;
3913
+ updated_at?: string;
3914
+ vat_code?: string | null;
3915
+ };
3916
+ Relationships: [];
3917
+ };
3918
+ exact_auth_sync_log: {
3919
+ Row: {
3920
+ account_key: string;
3921
+ calls_used: number;
3922
+ created_at: string;
3923
+ domain: string;
3924
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3925
+ error: string | null;
3926
+ finished_at: string | null;
3927
+ id: string;
3928
+ ok: boolean;
3929
+ records: number;
3930
+ started_at: string;
3931
+ };
3932
+ Insert: {
3933
+ account_key?: string;
3934
+ calls_used?: number;
3935
+ created_at?: string;
3936
+ domain: string;
3937
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3938
+ error?: string | null;
3939
+ finished_at?: string | null;
3940
+ id?: string;
3941
+ ok?: boolean;
3942
+ records?: number;
3943
+ started_at?: string;
3944
+ };
3945
+ Update: {
3946
+ account_key?: string;
3947
+ calls_used?: number;
3948
+ created_at?: string;
3949
+ domain?: string;
3950
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3951
+ error?: string | null;
3952
+ finished_at?: string | null;
3953
+ id?: string;
3954
+ ok?: boolean;
3955
+ records?: number;
3956
+ started_at?: string;
3957
+ };
3958
+ Relationships: [];
3959
+ };
3960
+ exact_auth_sync_state: {
3961
+ Row: {
3962
+ account_key: string;
3963
+ created_at: string;
3964
+ cursor_timestamp: number;
3965
+ division_code: number | null;
3966
+ domain: string;
3967
+ duration_ms: number | null;
3968
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3969
+ initial_sync_done: boolean;
3970
+ last_error: string | null;
3971
+ last_run_at: string | null;
3972
+ last_success_at: string | null;
3973
+ locked_at: string | null;
3974
+ needs_initial_sync: boolean;
3975
+ record_count: number;
3976
+ updated_at: string;
3977
+ };
3978
+ Insert: {
3979
+ account_key?: string;
3980
+ created_at?: string;
3981
+ cursor_timestamp?: number;
3982
+ division_code?: number | null;
3983
+ domain: string;
3984
+ duration_ms?: number | null;
3985
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3986
+ initial_sync_done?: boolean;
3987
+ last_error?: string | null;
3988
+ last_run_at?: string | null;
3989
+ last_success_at?: string | null;
3990
+ locked_at?: string | null;
3991
+ needs_initial_sync?: boolean;
3992
+ record_count?: number;
3993
+ updated_at?: string;
3994
+ };
3995
+ Update: {
3996
+ account_key?: string;
3997
+ created_at?: string;
3998
+ cursor_timestamp?: number;
3999
+ division_code?: number | null;
4000
+ domain?: string;
4001
+ duration_ms?: number | null;
4002
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4003
+ initial_sync_done?: boolean;
4004
+ last_error?: string | null;
4005
+ last_run_at?: string | null;
4006
+ last_success_at?: string | null;
4007
+ locked_at?: string | null;
4008
+ needs_initial_sync?: boolean;
4009
+ record_count?: number;
4010
+ updated_at?: string;
4011
+ };
4012
+ Relationships: [];
4013
+ };
3546
4014
  exact_bulk_operation_items: {
3547
4015
  Row: {
3548
4016
  attempts: number;
@@ -5234,12 +5702,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5234
5702
  attempts: number;
5235
5703
  connection_id: string;
5236
5704
  created_at: string;
5705
+ desired_available: boolean | null;
5237
5706
  gateway_attempt_id: string | null;
5238
5707
  id: string;
5239
5708
  last_error: string | null;
5709
+ locked_at: string | null;
5710
+ locked_by: string | null;
5711
+ next_attempt_at: string;
5240
5712
  number_of_pieces: number;
5241
5713
  sent_at: string | null;
5242
5714
  status: string;
5715
+ superseded_by: string | null;
5243
5716
  trade_item_id: string;
5244
5717
  updated_at: string;
5245
5718
  user_id: string;
@@ -5248,12 +5721,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5248
5721
  attempts?: number;
5249
5722
  connection_id: string;
5250
5723
  created_at?: string;
5724
+ desired_available?: boolean | null;
5251
5725
  gateway_attempt_id?: string | null;
5252
5726
  id?: string;
5253
5727
  last_error?: string | null;
5728
+ locked_at?: string | null;
5729
+ locked_by?: string | null;
5730
+ next_attempt_at?: string;
5254
5731
  number_of_pieces?: number;
5255
5732
  sent_at?: string | null;
5256
5733
  status?: string;
5734
+ superseded_by?: string | null;
5257
5735
  trade_item_id: string;
5258
5736
  updated_at?: string;
5259
5737
  user_id: string;
@@ -5262,12 +5740,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5262
5740
  attempts?: number;
5263
5741
  connection_id?: string;
5264
5742
  created_at?: string;
5743
+ desired_available?: boolean | null;
5265
5744
  gateway_attempt_id?: string | null;
5266
5745
  id?: string;
5267
5746
  last_error?: string | null;
5747
+ locked_at?: string | null;
5748
+ locked_by?: string | null;
5749
+ next_attempt_at?: string;
5268
5750
  number_of_pieces?: number;
5269
5751
  sent_at?: string | null;
5270
5752
  status?: string;
5753
+ superseded_by?: string | null;
5271
5754
  trade_item_id?: string;
5272
5755
  updated_at?: string;
5273
5756
  user_id?: string;
@@ -8016,6 +8499,69 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8016
8499
  };
8017
8500
  Relationships: [];
8018
8501
  };
8502
+ logistics_floriday_pushes: {
8503
+ Row: {
8504
+ attempts: number;
8505
+ created_at: string;
8506
+ first_queued_at: string;
8507
+ fulfillment_order_id: string | null;
8508
+ id: string;
8509
+ last_error: string | null;
8510
+ last_error_at: string | null;
8511
+ last_sent_hash: string | null;
8512
+ locked_by: string | null;
8513
+ locked_until: string | null;
8514
+ next_attempt_at: string;
8515
+ order_ref: string;
8516
+ payload: import("../integrations/supabase/types").Json;
8517
+ payload_hash: string | null;
8518
+ revision: number;
8519
+ sent_at: string | null;
8520
+ status: string;
8521
+ updated_at: string;
8522
+ };
8523
+ Insert: {
8524
+ attempts?: number;
8525
+ created_at?: string;
8526
+ first_queued_at?: string;
8527
+ fulfillment_order_id?: string | null;
8528
+ id?: string;
8529
+ last_error?: string | null;
8530
+ last_error_at?: string | null;
8531
+ last_sent_hash?: string | null;
8532
+ locked_by?: string | null;
8533
+ locked_until?: string | null;
8534
+ next_attempt_at?: string;
8535
+ order_ref: string;
8536
+ payload?: import("../integrations/supabase/types").Json;
8537
+ payload_hash?: string | null;
8538
+ revision?: number;
8539
+ sent_at?: string | null;
8540
+ status?: string;
8541
+ updated_at?: string;
8542
+ };
8543
+ Update: {
8544
+ attempts?: number;
8545
+ created_at?: string;
8546
+ first_queued_at?: string;
8547
+ fulfillment_order_id?: string | null;
8548
+ id?: string;
8549
+ last_error?: string | null;
8550
+ last_error_at?: string | null;
8551
+ last_sent_hash?: string | null;
8552
+ locked_by?: string | null;
8553
+ locked_until?: string | null;
8554
+ next_attempt_at?: string;
8555
+ order_ref?: string;
8556
+ payload?: import("../integrations/supabase/types").Json;
8557
+ payload_hash?: string | null;
8558
+ revision?: number;
8559
+ sent_at?: string | null;
8560
+ status?: string;
8561
+ updated_at?: string;
8562
+ };
8563
+ Relationships: [];
8564
+ };
8019
8565
  logistics_formulas: {
8020
8566
  Row: {
8021
8567
  created_at: string;
@@ -8627,6 +9173,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8627
9173
  };
8628
9174
  logistics_tasks: {
8629
9175
  Row: {
9176
+ attempt_log: import("../integrations/supabase/types").Json;
9177
+ attempts: number;
8630
9178
  buffer_ref: string | null;
8631
9179
  claimed_at: string | null;
8632
9180
  claimed_by: string | null;
@@ -8636,6 +9184,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8636
9184
  due_at: string | null;
8637
9185
  error: string | null;
8638
9186
  id: string;
9187
+ last_error: string | null;
9188
+ next_attempt_at: string | null;
8639
9189
  order_ref: string;
8640
9190
  owner_module: string;
8641
9191
  payload: import("../integrations/supabase/types").Json;
@@ -8656,6 +9206,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8656
9206
  user_id: string;
8657
9207
  };
8658
9208
  Insert: {
9209
+ attempt_log?: import("../integrations/supabase/types").Json;
9210
+ attempts?: number;
8659
9211
  buffer_ref?: string | null;
8660
9212
  claimed_at?: string | null;
8661
9213
  claimed_by?: string | null;
@@ -8665,6 +9217,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8665
9217
  due_at?: string | null;
8666
9218
  error?: string | null;
8667
9219
  id?: string;
9220
+ last_error?: string | null;
9221
+ next_attempt_at?: string | null;
8668
9222
  order_ref: string;
8669
9223
  owner_module: string;
8670
9224
  payload?: import("../integrations/supabase/types").Json;
@@ -8685,6 +9239,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8685
9239
  user_id?: string;
8686
9240
  };
8687
9241
  Update: {
9242
+ attempt_log?: import("../integrations/supabase/types").Json;
9243
+ attempts?: number;
8688
9244
  buffer_ref?: string | null;
8689
9245
  claimed_at?: string | null;
8690
9246
  claimed_by?: string | null;
@@ -8694,6 +9250,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8694
9250
  due_at?: string | null;
8695
9251
  error?: string | null;
8696
9252
  id?: string;
9253
+ last_error?: string | null;
9254
+ next_attempt_at?: string | null;
8697
9255
  order_ref?: string;
8698
9256
  owner_module?: string;
8699
9257
  payload?: import("../integrations/supabase/types").Json;
@@ -10043,6 +10601,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
10043
10601
  };
10044
10602
  offer_settings: {
10045
10603
  Row: {
10604
+ brand_name: string | null;
10046
10605
  button_color: string;
10047
10606
  created_at: string;
10048
10607
  default_countries: string[];
@@ -10064,6 +10623,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
10064
10623
  updated_at: string;
10065
10624
  };
10066
10625
  Insert: {
10626
+ brand_name?: string | null;
10067
10627
  button_color?: string;
10068
10628
  created_at?: string;
10069
10629
  default_countries?: string[];
@@ -10085,6 +10645,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
10085
10645
  updated_at?: string;
10086
10646
  };
10087
10647
  Update: {
10648
+ brand_name?: string | null;
10088
10649
  button_color?: string;
10089
10650
  created_at?: string;
10090
10651
  default_countries?: string[];
@@ -17695,6 +18256,85 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
17695
18256
  };
17696
18257
  Returns: import("../integrations/supabase/types").Json;
17697
18258
  };
18259
+ claim_floriday_stock_queue: {
18260
+ Args: {
18261
+ p_limit?: number;
18262
+ p_worker?: string;
18263
+ };
18264
+ Returns: {
18265
+ attempts: number;
18266
+ connection_id: string;
18267
+ created_at: string;
18268
+ desired_available: boolean | null;
18269
+ gateway_attempt_id: string | null;
18270
+ id: string;
18271
+ last_error: string | null;
18272
+ locked_at: string | null;
18273
+ locked_by: string | null;
18274
+ next_attempt_at: string;
18275
+ number_of_pieces: number;
18276
+ sent_at: string | null;
18277
+ status: string;
18278
+ superseded_by: string | null;
18279
+ trade_item_id: string;
18280
+ updated_at: string;
18281
+ user_id: string;
18282
+ }[];
18283
+ SetofOptions: {
18284
+ from: "*";
18285
+ to: "floriday_continuous_stock_queue";
18286
+ isOneToOne: false;
18287
+ isSetofReturn: true;
18288
+ };
18289
+ };
18290
+ claim_logistics_tasks: {
18291
+ Args: {
18292
+ _limit?: number;
18293
+ _owner_module: string;
18294
+ _stale_minutes?: number;
18295
+ _task_type: string;
18296
+ _worker: string;
18297
+ };
18298
+ Returns: {
18299
+ attempt_log: import("../integrations/supabase/types").Json;
18300
+ attempts: number;
18301
+ buffer_ref: string | null;
18302
+ claimed_at: string | null;
18303
+ claimed_by: string | null;
18304
+ completed_at: string | null;
18305
+ created_at: string;
18306
+ depends_on: string[];
18307
+ due_at: string | null;
18308
+ error: string | null;
18309
+ id: string;
18310
+ last_error: string | null;
18311
+ next_attempt_at: string | null;
18312
+ order_ref: string;
18313
+ owner_module: string;
18314
+ payload: import("../integrations/supabase/types").Json;
18315
+ plan_run_id: string | null;
18316
+ planned_end: string | null;
18317
+ planned_start: string | null;
18318
+ priority: number;
18319
+ result: import("../integrations/supabase/types").Json | null;
18320
+ rule_config_id: string | null;
18321
+ rule_version: number | null;
18322
+ sequence: number;
18323
+ shadow: boolean;
18324
+ started_at: string | null;
18325
+ status: string;
18326
+ strategy_id: string | null;
18327
+ task_type: string;
18328
+ updated_at: string;
18329
+ user_id: string;
18330
+ }[];
18331
+ SetofOptions: {
18332
+ from: "*";
18333
+ to: "logistics_tasks";
18334
+ isOneToOne: false;
18335
+ isSetofReturn: true;
18336
+ };
18337
+ };
17698
18338
  claim_print_jobs: {
17699
18339
  Args: {
17700
18340
  _agent_id: string;
@@ -17759,10 +18399,24 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
17759
18399
  isSetofReturn: true;
17760
18400
  };
17761
18401
  };
18402
+ cleanup_floriday_stock_queue: {
18403
+ Args: never;
18404
+ Returns: undefined;
18405
+ };
17762
18406
  cleanup_old_bookings: {
17763
18407
  Args: never;
17764
18408
  Returns: undefined;
17765
18409
  };
18410
+ complete_floriday_stock_queue: {
18411
+ Args: {
18412
+ p_attempt_id?: string;
18413
+ p_error?: string;
18414
+ p_id: string;
18415
+ p_ok: boolean;
18416
+ p_permanent?: boolean;
18417
+ };
18418
+ Returns: undefined;
18419
+ };
17766
18420
  consume_bom_for_production: {
17767
18421
  Args: {
17768
18422
  p_connection_id: string;
@@ -17935,6 +18589,21 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
17935
18589
  Args: never;
17936
18590
  Returns: string;
17937
18591
  };
18592
+ exact_auth_consume_calls: {
18593
+ Args: {
18594
+ _account_key: string;
18595
+ _calls?: number;
18596
+ _day_limit?: number;
18597
+ _division_code: number;
18598
+ _environment: string;
18599
+ _minute_limit?: number;
18600
+ };
18601
+ Returns: import("../integrations/supabase/types").Json;
18602
+ };
18603
+ exact_auth_prune_sync_log: {
18604
+ Args: never;
18605
+ Returns: undefined;
18606
+ };
17938
18607
  exact_decrypt: {
17939
18608
  Args: {
17940
18609
  cipher: string;
@@ -18144,6 +18813,10 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18144
18813
  };
18145
18814
  Returns: number;
18146
18815
  };
18816
+ get_offer_branding: {
18817
+ Args: never;
18818
+ Returns: import("../integrations/supabase/types").Json;
18819
+ };
18147
18820
  get_offer_by_link_code: {
18148
18821
  Args: {
18149
18822
  p_code: string;
@@ -18435,6 +19108,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18435
19108
  p_worker?: string;
18436
19109
  };
18437
19110
  Returns: {
19111
+ attempt_log: import("../integrations/supabase/types").Json;
19112
+ attempts: number;
18438
19113
  buffer_ref: string | null;
18439
19114
  claimed_at: string | null;
18440
19115
  claimed_by: string | null;
@@ -18444,6 +19119,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18444
19119
  due_at: string | null;
18445
19120
  error: string | null;
18446
19121
  id: string;
19122
+ last_error: string | null;
19123
+ next_attempt_at: string | null;
18447
19124
  order_ref: string;
18448
19125
  owner_module: string;
18449
19126
  payload: import("../integrations/supabase/types").Json;
@@ -18476,6 +19153,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18476
19153
  p_worker?: string;
18477
19154
  };
18478
19155
  Returns: {
19156
+ attempt_log: import("../integrations/supabase/types").Json;
19157
+ attempts: number;
18479
19158
  buffer_ref: string | null;
18480
19159
  claimed_at: string | null;
18481
19160
  claimed_by: string | null;
@@ -18485,6 +19164,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18485
19164
  due_at: string | null;
18486
19165
  error: string | null;
18487
19166
  id: string;
19167
+ last_error: string | null;
19168
+ next_attempt_at: string | null;
18488
19169
  order_ref: string;
18489
19170
  owner_module: string;
18490
19171
  payload: import("../integrations/supabase/types").Json;
@@ -18517,6 +19198,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18517
19198
  p_task_id: string;
18518
19199
  };
18519
19200
  Returns: {
19201
+ attempt_log: import("../integrations/supabase/types").Json;
19202
+ attempts: number;
18520
19203
  buffer_ref: string | null;
18521
19204
  claimed_at: string | null;
18522
19205
  claimed_by: string | null;
@@ -18526,6 +19209,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18526
19209
  due_at: string | null;
18527
19210
  error: string | null;
18528
19211
  id: string;
19212
+ last_error: string | null;
19213
+ next_attempt_at: string | null;
18529
19214
  order_ref: string;
18530
19215
  owner_module: string;
18531
19216
  payload: import("../integrations/supabase/types").Json;
@@ -18607,6 +19292,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18607
19292
  p_task_id: string;
18608
19293
  };
18609
19294
  Returns: {
19295
+ attempt_log: import("../integrations/supabase/types").Json;
19296
+ attempts: number;
18610
19297
  buffer_ref: string | null;
18611
19298
  claimed_at: string | null;
18612
19299
  claimed_by: string | null;
@@ -18616,6 +19303,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18616
19303
  due_at: string | null;
18617
19304
  error: string | null;
18618
19305
  id: string;
19306
+ last_error: string | null;
19307
+ next_attempt_at: string | null;
18619
19308
  order_ref: string;
18620
19309
  owner_module: string;
18621
19310
  payload: import("../integrations/supabase/types").Json;
@@ -18642,6 +19331,51 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18642
19331
  isSetofReturn: false;
18643
19332
  };
18644
19333
  };
19334
+ logistics_floriday_claim_pushes: {
19335
+ Args: {
19336
+ _lease_seconds?: number;
19337
+ _limit?: number;
19338
+ _worker?: string;
19339
+ };
19340
+ Returns: {
19341
+ attempts: number;
19342
+ fulfillment_order_id: string;
19343
+ id: string;
19344
+ last_sent_hash: string;
19345
+ order_ref: string;
19346
+ payload: import("../integrations/supabase/types").Json;
19347
+ payload_hash: string;
19348
+ revision: number;
19349
+ }[];
19350
+ };
19351
+ logistics_floriday_finish_push: {
19352
+ Args: {
19353
+ _error?: string;
19354
+ _fulfillment_order_id?: string;
19355
+ _id: string;
19356
+ _max_age_hours?: number;
19357
+ _max_attempts?: number;
19358
+ _ok: boolean;
19359
+ _permanent?: boolean;
19360
+ _revision: number;
19361
+ _sent_hash?: string;
19362
+ };
19363
+ Returns: string;
19364
+ };
19365
+ logistics_floriday_prune_pushes: {
19366
+ Args: {
19367
+ _days?: number;
19368
+ };
19369
+ Returns: number;
19370
+ };
19371
+ logistics_floriday_queue_push: {
19372
+ Args: {
19373
+ _order_ref: string;
19374
+ _payload?: import("../integrations/supabase/types").Json;
19375
+ _payload_hash?: string;
19376
+ };
19377
+ Returns: string;
19378
+ };
18645
19379
  logistics_live_carriers: {
18646
19380
  Args: {
18647
19381
  p_order_ref: string;
@@ -19369,6 +20103,10 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19369
20103
  Args: never;
19370
20104
  Returns: undefined;
19371
20105
  };
20106
+ run_logistics_tasks_dispatch: {
20107
+ Args: never;
20108
+ Returns: undefined;
20109
+ };
19372
20110
  run_twinfield_queue_tick: {
19373
20111
  Args: never;
19374
20112
  Returns: undefined;
@@ -19609,6 +20347,13 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19609
20347
  };
19610
20348
  Returns: number;
19611
20349
  };
20350
+ schedule_floriday_stock_queue_process: {
20351
+ Args: {
20352
+ p_apikey: string;
20353
+ p_url: string;
20354
+ };
20355
+ Returns: number;
20356
+ };
19612
20357
  schedule_floriday_token_refresh: {
19613
20358
  Args: {
19614
20359
  p_apikey: string;