@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
@@ -3536,6 +3536,474 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3536
3536
  referencedColumns: ["id"];
3537
3537
  }];
3538
3538
  };
3539
+ exact_auth_call_budget: {
3540
+ Row: {
3541
+ account_key: string;
3542
+ day_count: number;
3543
+ day_date: string;
3544
+ division_code: number;
3545
+ environment: string;
3546
+ minute_count: number;
3547
+ minute_window: string;
3548
+ updated_at: string;
3549
+ };
3550
+ Insert: {
3551
+ account_key?: string;
3552
+ day_count?: number;
3553
+ day_date?: string;
3554
+ division_code?: number;
3555
+ environment: string;
3556
+ minute_count?: number;
3557
+ minute_window?: string;
3558
+ updated_at?: string;
3559
+ };
3560
+ Update: {
3561
+ account_key?: string;
3562
+ day_count?: number;
3563
+ day_date?: string;
3564
+ division_code?: number;
3565
+ environment?: string;
3566
+ minute_count?: number;
3567
+ minute_window?: string;
3568
+ updated_at?: string;
3569
+ };
3570
+ Relationships: [];
3571
+ };
3572
+ exact_auth_customers: {
3573
+ Row: {
3574
+ account_key: string;
3575
+ address_line1: string | null;
3576
+ chamber_of_commerce: string | null;
3577
+ city: string | null;
3578
+ code: string | null;
3579
+ country: string | null;
3580
+ created_at: string;
3581
+ currency: string | null;
3582
+ division_code: number | null;
3583
+ email: string | null;
3584
+ environment: Database["public"]["Enums"]["exact_env"];
3585
+ exact_id: string;
3586
+ exact_modified: string | null;
3587
+ exact_timestamp: number | null;
3588
+ id: string;
3589
+ is_active: boolean;
3590
+ name: string | null;
3591
+ phone: string | null;
3592
+ postcode: string | null;
3593
+ raw: import("./types").Json | null;
3594
+ status: string | null;
3595
+ updated_at: string;
3596
+ vat_number: string | null;
3597
+ website: string | null;
3598
+ };
3599
+ Insert: {
3600
+ account_key?: string;
3601
+ address_line1?: string | null;
3602
+ chamber_of_commerce?: string | null;
3603
+ city?: string | null;
3604
+ code?: string | null;
3605
+ country?: string | null;
3606
+ created_at?: string;
3607
+ currency?: string | null;
3608
+ division_code?: number | null;
3609
+ email?: string | null;
3610
+ environment: Database["public"]["Enums"]["exact_env"];
3611
+ exact_id: string;
3612
+ exact_modified?: string | null;
3613
+ exact_timestamp?: number | null;
3614
+ id?: string;
3615
+ is_active?: boolean;
3616
+ name?: string | null;
3617
+ phone?: string | null;
3618
+ postcode?: string | null;
3619
+ raw?: import("./types").Json | null;
3620
+ status?: string | null;
3621
+ updated_at?: string;
3622
+ vat_number?: string | null;
3623
+ website?: string | null;
3624
+ };
3625
+ Update: {
3626
+ account_key?: string;
3627
+ address_line1?: string | null;
3628
+ chamber_of_commerce?: string | null;
3629
+ city?: string | null;
3630
+ code?: string | null;
3631
+ country?: string | null;
3632
+ created_at?: string;
3633
+ currency?: string | null;
3634
+ division_code?: number | null;
3635
+ email?: string | null;
3636
+ environment?: Database["public"]["Enums"]["exact_env"];
3637
+ exact_id?: string;
3638
+ exact_modified?: string | null;
3639
+ exact_timestamp?: number | null;
3640
+ id?: string;
3641
+ is_active?: boolean;
3642
+ name?: string | null;
3643
+ phone?: string | null;
3644
+ postcode?: string | null;
3645
+ raw?: import("./types").Json | null;
3646
+ status?: string | null;
3647
+ updated_at?: string;
3648
+ vat_number?: string | null;
3649
+ website?: string | null;
3650
+ };
3651
+ Relationships: [];
3652
+ };
3653
+ exact_auth_divisions: {
3654
+ Row: {
3655
+ account_key: string;
3656
+ company_name: string | null;
3657
+ created_at: string;
3658
+ division_code: number | null;
3659
+ environment: Database["public"]["Enums"]["exact_env"];
3660
+ id: string;
3661
+ last_synced_at: string | null;
3662
+ updated_at: string;
3663
+ };
3664
+ Insert: {
3665
+ account_key?: string;
3666
+ company_name?: string | null;
3667
+ created_at?: string;
3668
+ division_code?: number | null;
3669
+ environment: Database["public"]["Enums"]["exact_env"];
3670
+ id?: string;
3671
+ last_synced_at?: string | null;
3672
+ updated_at?: string;
3673
+ };
3674
+ Update: {
3675
+ account_key?: string;
3676
+ company_name?: string | null;
3677
+ created_at?: string;
3678
+ division_code?: number | null;
3679
+ environment?: Database["public"]["Enums"]["exact_env"];
3680
+ id?: string;
3681
+ last_synced_at?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [];
3685
+ };
3686
+ exact_auth_invoice_lines: {
3687
+ Row: {
3688
+ account_key: string;
3689
+ amount_excl: number | null;
3690
+ created_at: string;
3691
+ description: string | null;
3692
+ discount: number | null;
3693
+ environment: Database["public"]["Enums"]["exact_env"];
3694
+ exact_id: string;
3695
+ exact_timestamp: number | null;
3696
+ id: string;
3697
+ invoice_exact_id: string;
3698
+ item_code: string | null;
3699
+ item_exact_id: string | null;
3700
+ line_number: number | null;
3701
+ quantity: number | null;
3702
+ raw: import("./types").Json | null;
3703
+ unit_price: number | null;
3704
+ updated_at: string;
3705
+ vat_amount: number | null;
3706
+ vat_code: string | null;
3707
+ };
3708
+ Insert: {
3709
+ account_key?: string;
3710
+ amount_excl?: number | null;
3711
+ created_at?: string;
3712
+ description?: string | null;
3713
+ discount?: number | null;
3714
+ environment: Database["public"]["Enums"]["exact_env"];
3715
+ exact_id: string;
3716
+ exact_timestamp?: number | null;
3717
+ id?: string;
3718
+ invoice_exact_id: string;
3719
+ item_code?: string | null;
3720
+ item_exact_id?: string | null;
3721
+ line_number?: number | null;
3722
+ quantity?: number | null;
3723
+ raw?: import("./types").Json | null;
3724
+ unit_price?: number | null;
3725
+ updated_at?: string;
3726
+ vat_amount?: number | null;
3727
+ vat_code?: string | null;
3728
+ };
3729
+ Update: {
3730
+ account_key?: string;
3731
+ amount_excl?: number | null;
3732
+ created_at?: string;
3733
+ description?: string | null;
3734
+ discount?: number | null;
3735
+ environment?: Database["public"]["Enums"]["exact_env"];
3736
+ exact_id?: string;
3737
+ exact_timestamp?: number | null;
3738
+ id?: string;
3739
+ invoice_exact_id?: string;
3740
+ item_code?: string | null;
3741
+ item_exact_id?: string | null;
3742
+ line_number?: number | null;
3743
+ quantity?: number | null;
3744
+ raw?: import("./types").Json | null;
3745
+ unit_price?: number | null;
3746
+ updated_at?: string;
3747
+ vat_amount?: number | null;
3748
+ vat_code?: string | null;
3749
+ };
3750
+ Relationships: [];
3751
+ };
3752
+ exact_auth_invoices: {
3753
+ Row: {
3754
+ account_key: string;
3755
+ amount_excl: number | null;
3756
+ amount_incl: number | null;
3757
+ amount_open: number | null;
3758
+ created_at: string;
3759
+ currency: string | null;
3760
+ customer_code: string | null;
3761
+ customer_exact_id: string | null;
3762
+ customer_name: string | null;
3763
+ description: string | null;
3764
+ division_code: number | null;
3765
+ due_date: string | null;
3766
+ environment: Database["public"]["Enums"]["exact_env"];
3767
+ exact_id: string;
3768
+ exact_modified: string | null;
3769
+ exact_timestamp: number | null;
3770
+ id: string;
3771
+ invoice_date: string | null;
3772
+ invoice_number: string | null;
3773
+ order_number: string | null;
3774
+ paid_at: string | null;
3775
+ payment_status: string;
3776
+ raw: import("./types").Json | null;
3777
+ receivable_synced_at: string | null;
3778
+ status_code: number | null;
3779
+ updated_at: string;
3780
+ };
3781
+ Insert: {
3782
+ account_key?: string;
3783
+ amount_excl?: number | null;
3784
+ amount_incl?: number | null;
3785
+ amount_open?: number | null;
3786
+ created_at?: string;
3787
+ currency?: string | null;
3788
+ customer_code?: string | null;
3789
+ customer_exact_id?: string | null;
3790
+ customer_name?: string | null;
3791
+ description?: string | null;
3792
+ division_code?: number | null;
3793
+ due_date?: string | null;
3794
+ environment: Database["public"]["Enums"]["exact_env"];
3795
+ exact_id: string;
3796
+ exact_modified?: string | null;
3797
+ exact_timestamp?: number | null;
3798
+ id?: string;
3799
+ invoice_date?: string | null;
3800
+ invoice_number?: string | null;
3801
+ order_number?: string | null;
3802
+ paid_at?: string | null;
3803
+ payment_status?: string;
3804
+ raw?: import("./types").Json | null;
3805
+ receivable_synced_at?: string | null;
3806
+ status_code?: number | null;
3807
+ updated_at?: string;
3808
+ };
3809
+ Update: {
3810
+ account_key?: string;
3811
+ amount_excl?: number | null;
3812
+ amount_incl?: number | null;
3813
+ amount_open?: number | null;
3814
+ created_at?: string;
3815
+ currency?: string | null;
3816
+ customer_code?: string | null;
3817
+ customer_exact_id?: string | null;
3818
+ customer_name?: string | null;
3819
+ description?: string | null;
3820
+ division_code?: number | null;
3821
+ due_date?: string | null;
3822
+ environment?: Database["public"]["Enums"]["exact_env"];
3823
+ exact_id?: string;
3824
+ exact_modified?: string | null;
3825
+ exact_timestamp?: number | null;
3826
+ id?: string;
3827
+ invoice_date?: string | null;
3828
+ invoice_number?: string | null;
3829
+ order_number?: string | null;
3830
+ paid_at?: string | null;
3831
+ payment_status?: string;
3832
+ raw?: import("./types").Json | null;
3833
+ receivable_synced_at?: string | null;
3834
+ status_code?: number | null;
3835
+ updated_at?: string;
3836
+ };
3837
+ Relationships: [];
3838
+ };
3839
+ exact_auth_items: {
3840
+ Row: {
3841
+ account_key: string;
3842
+ barcode: string | null;
3843
+ code: string | null;
3844
+ cost_price: number | null;
3845
+ created_at: string;
3846
+ description: string | null;
3847
+ division_code: number | null;
3848
+ environment: Database["public"]["Enums"]["exact_env"];
3849
+ exact_id: string;
3850
+ exact_modified: string | null;
3851
+ exact_timestamp: number | null;
3852
+ gl_account_code: string | null;
3853
+ id: string;
3854
+ is_active: boolean;
3855
+ is_sales_item: boolean | null;
3856
+ item_type: string | null;
3857
+ raw: import("./types").Json | null;
3858
+ sales_price: number | null;
3859
+ unit: string | null;
3860
+ updated_at: string;
3861
+ vat_code: string | null;
3862
+ };
3863
+ Insert: {
3864
+ account_key?: string;
3865
+ barcode?: string | null;
3866
+ code?: string | null;
3867
+ cost_price?: number | null;
3868
+ created_at?: string;
3869
+ description?: string | null;
3870
+ division_code?: number | null;
3871
+ environment: Database["public"]["Enums"]["exact_env"];
3872
+ exact_id: string;
3873
+ exact_modified?: string | null;
3874
+ exact_timestamp?: number | null;
3875
+ gl_account_code?: string | null;
3876
+ id?: string;
3877
+ is_active?: boolean;
3878
+ is_sales_item?: boolean | null;
3879
+ item_type?: string | null;
3880
+ raw?: import("./types").Json | null;
3881
+ sales_price?: number | null;
3882
+ unit?: string | null;
3883
+ updated_at?: string;
3884
+ vat_code?: string | null;
3885
+ };
3886
+ Update: {
3887
+ account_key?: string;
3888
+ barcode?: string | null;
3889
+ code?: string | null;
3890
+ cost_price?: number | null;
3891
+ created_at?: string;
3892
+ description?: string | null;
3893
+ division_code?: number | null;
3894
+ environment?: Database["public"]["Enums"]["exact_env"];
3895
+ exact_id?: string;
3896
+ exact_modified?: string | null;
3897
+ exact_timestamp?: number | null;
3898
+ gl_account_code?: string | null;
3899
+ id?: string;
3900
+ is_active?: boolean;
3901
+ is_sales_item?: boolean | null;
3902
+ item_type?: string | null;
3903
+ raw?: import("./types").Json | null;
3904
+ sales_price?: number | null;
3905
+ unit?: string | null;
3906
+ updated_at?: string;
3907
+ vat_code?: string | null;
3908
+ };
3909
+ Relationships: [];
3910
+ };
3911
+ exact_auth_sync_log: {
3912
+ Row: {
3913
+ account_key: string;
3914
+ calls_used: number;
3915
+ created_at: string;
3916
+ domain: string;
3917
+ environment: Database["public"]["Enums"]["exact_env"];
3918
+ error: string | null;
3919
+ finished_at: string | null;
3920
+ id: string;
3921
+ ok: boolean;
3922
+ records: number;
3923
+ started_at: string;
3924
+ };
3925
+ Insert: {
3926
+ account_key?: string;
3927
+ calls_used?: number;
3928
+ created_at?: string;
3929
+ domain: string;
3930
+ environment: Database["public"]["Enums"]["exact_env"];
3931
+ error?: string | null;
3932
+ finished_at?: string | null;
3933
+ id?: string;
3934
+ ok?: boolean;
3935
+ records?: number;
3936
+ started_at?: string;
3937
+ };
3938
+ Update: {
3939
+ account_key?: string;
3940
+ calls_used?: number;
3941
+ created_at?: string;
3942
+ domain?: string;
3943
+ environment?: Database["public"]["Enums"]["exact_env"];
3944
+ error?: string | null;
3945
+ finished_at?: string | null;
3946
+ id?: string;
3947
+ ok?: boolean;
3948
+ records?: number;
3949
+ started_at?: string;
3950
+ };
3951
+ Relationships: [];
3952
+ };
3953
+ exact_auth_sync_state: {
3954
+ Row: {
3955
+ account_key: string;
3956
+ created_at: string;
3957
+ cursor_timestamp: number;
3958
+ division_code: number | null;
3959
+ domain: string;
3960
+ duration_ms: number | null;
3961
+ environment: Database["public"]["Enums"]["exact_env"];
3962
+ initial_sync_done: boolean;
3963
+ last_error: string | null;
3964
+ last_run_at: string | null;
3965
+ last_success_at: string | null;
3966
+ locked_at: string | null;
3967
+ needs_initial_sync: boolean;
3968
+ record_count: number;
3969
+ updated_at: string;
3970
+ };
3971
+ Insert: {
3972
+ account_key?: string;
3973
+ created_at?: string;
3974
+ cursor_timestamp?: number;
3975
+ division_code?: number | null;
3976
+ domain: string;
3977
+ duration_ms?: number | null;
3978
+ environment: Database["public"]["Enums"]["exact_env"];
3979
+ initial_sync_done?: boolean;
3980
+ last_error?: string | null;
3981
+ last_run_at?: string | null;
3982
+ last_success_at?: string | null;
3983
+ locked_at?: string | null;
3984
+ needs_initial_sync?: boolean;
3985
+ record_count?: number;
3986
+ updated_at?: string;
3987
+ };
3988
+ Update: {
3989
+ account_key?: string;
3990
+ created_at?: string;
3991
+ cursor_timestamp?: number;
3992
+ division_code?: number | null;
3993
+ domain?: string;
3994
+ duration_ms?: number | null;
3995
+ environment?: Database["public"]["Enums"]["exact_env"];
3996
+ initial_sync_done?: boolean;
3997
+ last_error?: string | null;
3998
+ last_run_at?: string | null;
3999
+ last_success_at?: string | null;
4000
+ locked_at?: string | null;
4001
+ needs_initial_sync?: boolean;
4002
+ record_count?: number;
4003
+ updated_at?: string;
4004
+ };
4005
+ Relationships: [];
4006
+ };
3539
4007
  exact_bulk_operation_items: {
3540
4008
  Row: {
3541
4009
  attempts: number;
@@ -5227,12 +5695,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5227
5695
  attempts: number;
5228
5696
  connection_id: string;
5229
5697
  created_at: string;
5698
+ desired_available: boolean | null;
5230
5699
  gateway_attempt_id: string | null;
5231
5700
  id: string;
5232
5701
  last_error: string | null;
5702
+ locked_at: string | null;
5703
+ locked_by: string | null;
5704
+ next_attempt_at: string;
5233
5705
  number_of_pieces: number;
5234
5706
  sent_at: string | null;
5235
5707
  status: string;
5708
+ superseded_by: string | null;
5236
5709
  trade_item_id: string;
5237
5710
  updated_at: string;
5238
5711
  user_id: string;
@@ -5241,12 +5714,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5241
5714
  attempts?: number;
5242
5715
  connection_id: string;
5243
5716
  created_at?: string;
5717
+ desired_available?: boolean | null;
5244
5718
  gateway_attempt_id?: string | null;
5245
5719
  id?: string;
5246
5720
  last_error?: string | null;
5721
+ locked_at?: string | null;
5722
+ locked_by?: string | null;
5723
+ next_attempt_at?: string;
5247
5724
  number_of_pieces?: number;
5248
5725
  sent_at?: string | null;
5249
5726
  status?: string;
5727
+ superseded_by?: string | null;
5250
5728
  trade_item_id: string;
5251
5729
  updated_at?: string;
5252
5730
  user_id: string;
@@ -5255,12 +5733,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5255
5733
  attempts?: number;
5256
5734
  connection_id?: string;
5257
5735
  created_at?: string;
5736
+ desired_available?: boolean | null;
5258
5737
  gateway_attempt_id?: string | null;
5259
5738
  id?: string;
5260
5739
  last_error?: string | null;
5740
+ locked_at?: string | null;
5741
+ locked_by?: string | null;
5742
+ next_attempt_at?: string;
5261
5743
  number_of_pieces?: number;
5262
5744
  sent_at?: string | null;
5263
5745
  status?: string;
5746
+ superseded_by?: string | null;
5264
5747
  trade_item_id?: string;
5265
5748
  updated_at?: string;
5266
5749
  user_id?: string;
@@ -8009,6 +8492,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8009
8492
  };
8010
8493
  Relationships: [];
8011
8494
  };
8495
+ logistics_floriday_pushes: {
8496
+ Row: {
8497
+ attempts: number;
8498
+ created_at: string;
8499
+ first_queued_at: string;
8500
+ fulfillment_order_id: string | null;
8501
+ id: string;
8502
+ last_error: string | null;
8503
+ last_error_at: string | null;
8504
+ last_sent_hash: string | null;
8505
+ locked_by: string | null;
8506
+ locked_until: string | null;
8507
+ next_attempt_at: string;
8508
+ order_ref: string;
8509
+ payload: import("./types").Json;
8510
+ payload_hash: string | null;
8511
+ revision: number;
8512
+ sent_at: string | null;
8513
+ status: string;
8514
+ updated_at: string;
8515
+ };
8516
+ Insert: {
8517
+ attempts?: number;
8518
+ created_at?: string;
8519
+ first_queued_at?: string;
8520
+ fulfillment_order_id?: string | null;
8521
+ id?: string;
8522
+ last_error?: string | null;
8523
+ last_error_at?: string | null;
8524
+ last_sent_hash?: string | null;
8525
+ locked_by?: string | null;
8526
+ locked_until?: string | null;
8527
+ next_attempt_at?: string;
8528
+ order_ref: string;
8529
+ payload?: import("./types").Json;
8530
+ payload_hash?: string | null;
8531
+ revision?: number;
8532
+ sent_at?: string | null;
8533
+ status?: string;
8534
+ updated_at?: string;
8535
+ };
8536
+ Update: {
8537
+ attempts?: number;
8538
+ created_at?: string;
8539
+ first_queued_at?: string;
8540
+ fulfillment_order_id?: string | null;
8541
+ id?: string;
8542
+ last_error?: string | null;
8543
+ last_error_at?: string | null;
8544
+ last_sent_hash?: string | null;
8545
+ locked_by?: string | null;
8546
+ locked_until?: string | null;
8547
+ next_attempt_at?: string;
8548
+ order_ref?: string;
8549
+ payload?: import("./types").Json;
8550
+ payload_hash?: string | null;
8551
+ revision?: number;
8552
+ sent_at?: string | null;
8553
+ status?: string;
8554
+ updated_at?: string;
8555
+ };
8556
+ Relationships: [];
8557
+ };
8012
8558
  logistics_formulas: {
8013
8559
  Row: {
8014
8560
  created_at: string;
@@ -8620,6 +9166,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8620
9166
  };
8621
9167
  logistics_tasks: {
8622
9168
  Row: {
9169
+ attempt_log: import("./types").Json;
9170
+ attempts: number;
8623
9171
  buffer_ref: string | null;
8624
9172
  claimed_at: string | null;
8625
9173
  claimed_by: string | null;
@@ -8629,6 +9177,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8629
9177
  due_at: string | null;
8630
9178
  error: string | null;
8631
9179
  id: string;
9180
+ last_error: string | null;
9181
+ next_attempt_at: string | null;
8632
9182
  order_ref: string;
8633
9183
  owner_module: string;
8634
9184
  payload: import("./types").Json;
@@ -8649,6 +9199,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8649
9199
  user_id: string;
8650
9200
  };
8651
9201
  Insert: {
9202
+ attempt_log?: import("./types").Json;
9203
+ attempts?: number;
8652
9204
  buffer_ref?: string | null;
8653
9205
  claimed_at?: string | null;
8654
9206
  claimed_by?: string | null;
@@ -8658,6 +9210,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8658
9210
  due_at?: string | null;
8659
9211
  error?: string | null;
8660
9212
  id?: string;
9213
+ last_error?: string | null;
9214
+ next_attempt_at?: string | null;
8661
9215
  order_ref: string;
8662
9216
  owner_module: string;
8663
9217
  payload?: import("./types").Json;
@@ -8678,6 +9232,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8678
9232
  user_id?: string;
8679
9233
  };
8680
9234
  Update: {
9235
+ attempt_log?: import("./types").Json;
9236
+ attempts?: number;
8681
9237
  buffer_ref?: string | null;
8682
9238
  claimed_at?: string | null;
8683
9239
  claimed_by?: string | null;
@@ -8687,6 +9243,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8687
9243
  due_at?: string | null;
8688
9244
  error?: string | null;
8689
9245
  id?: string;
9246
+ last_error?: string | null;
9247
+ next_attempt_at?: string | null;
8690
9248
  order_ref?: string;
8691
9249
  owner_module?: string;
8692
9250
  payload?: import("./types").Json;
@@ -10036,6 +10594,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10036
10594
  };
10037
10595
  offer_settings: {
10038
10596
  Row: {
10597
+ brand_name: string | null;
10039
10598
  button_color: string;
10040
10599
  created_at: string;
10041
10600
  default_countries: string[];
@@ -10057,6 +10616,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10057
10616
  updated_at: string;
10058
10617
  };
10059
10618
  Insert: {
10619
+ brand_name?: string | null;
10060
10620
  button_color?: string;
10061
10621
  created_at?: string;
10062
10622
  default_countries?: string[];
@@ -10078,6 +10638,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10078
10638
  updated_at?: string;
10079
10639
  };
10080
10640
  Update: {
10641
+ brand_name?: string | null;
10081
10642
  button_color?: string;
10082
10643
  created_at?: string;
10083
10644
  default_countries?: string[];
@@ -17688,6 +18249,85 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17688
18249
  };
17689
18250
  Returns: import("./types").Json;
17690
18251
  };
18252
+ claim_floriday_stock_queue: {
18253
+ Args: {
18254
+ p_limit?: number;
18255
+ p_worker?: string;
18256
+ };
18257
+ Returns: {
18258
+ attempts: number;
18259
+ connection_id: string;
18260
+ created_at: string;
18261
+ desired_available: boolean | null;
18262
+ gateway_attempt_id: string | null;
18263
+ id: string;
18264
+ last_error: string | null;
18265
+ locked_at: string | null;
18266
+ locked_by: string | null;
18267
+ next_attempt_at: string;
18268
+ number_of_pieces: number;
18269
+ sent_at: string | null;
18270
+ status: string;
18271
+ superseded_by: string | null;
18272
+ trade_item_id: string;
18273
+ updated_at: string;
18274
+ user_id: string;
18275
+ }[];
18276
+ SetofOptions: {
18277
+ from: "*";
18278
+ to: "floriday_continuous_stock_queue";
18279
+ isOneToOne: false;
18280
+ isSetofReturn: true;
18281
+ };
18282
+ };
18283
+ claim_logistics_tasks: {
18284
+ Args: {
18285
+ _limit?: number;
18286
+ _owner_module: string;
18287
+ _stale_minutes?: number;
18288
+ _task_type: string;
18289
+ _worker: string;
18290
+ };
18291
+ Returns: {
18292
+ attempt_log: import("./types").Json;
18293
+ attempts: number;
18294
+ buffer_ref: string | null;
18295
+ claimed_at: string | null;
18296
+ claimed_by: string | null;
18297
+ completed_at: string | null;
18298
+ created_at: string;
18299
+ depends_on: string[];
18300
+ due_at: string | null;
18301
+ error: string | null;
18302
+ id: string;
18303
+ last_error: string | null;
18304
+ next_attempt_at: string | null;
18305
+ order_ref: string;
18306
+ owner_module: string;
18307
+ payload: import("./types").Json;
18308
+ plan_run_id: string | null;
18309
+ planned_end: string | null;
18310
+ planned_start: string | null;
18311
+ priority: number;
18312
+ result: import("./types").Json | null;
18313
+ rule_config_id: string | null;
18314
+ rule_version: number | null;
18315
+ sequence: number;
18316
+ shadow: boolean;
18317
+ started_at: string | null;
18318
+ status: string;
18319
+ strategy_id: string | null;
18320
+ task_type: string;
18321
+ updated_at: string;
18322
+ user_id: string;
18323
+ }[];
18324
+ SetofOptions: {
18325
+ from: "*";
18326
+ to: "logistics_tasks";
18327
+ isOneToOne: false;
18328
+ isSetofReturn: true;
18329
+ };
18330
+ };
17691
18331
  claim_print_jobs: {
17692
18332
  Args: {
17693
18333
  _agent_id: string;
@@ -17752,10 +18392,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17752
18392
  isSetofReturn: true;
17753
18393
  };
17754
18394
  };
18395
+ cleanup_floriday_stock_queue: {
18396
+ Args: never;
18397
+ Returns: undefined;
18398
+ };
17755
18399
  cleanup_old_bookings: {
17756
18400
  Args: never;
17757
18401
  Returns: undefined;
17758
18402
  };
18403
+ complete_floriday_stock_queue: {
18404
+ Args: {
18405
+ p_attempt_id?: string;
18406
+ p_error?: string;
18407
+ p_id: string;
18408
+ p_ok: boolean;
18409
+ p_permanent?: boolean;
18410
+ };
18411
+ Returns: undefined;
18412
+ };
17759
18413
  consume_bom_for_production: {
17760
18414
  Args: {
17761
18415
  p_connection_id: string;
@@ -17928,6 +18582,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17928
18582
  Args: never;
17929
18583
  Returns: string;
17930
18584
  };
18585
+ exact_auth_consume_calls: {
18586
+ Args: {
18587
+ _account_key: string;
18588
+ _calls?: number;
18589
+ _day_limit?: number;
18590
+ _division_code: number;
18591
+ _environment: string;
18592
+ _minute_limit?: number;
18593
+ };
18594
+ Returns: import("./types").Json;
18595
+ };
18596
+ exact_auth_prune_sync_log: {
18597
+ Args: never;
18598
+ Returns: undefined;
18599
+ };
17931
18600
  exact_decrypt: {
17932
18601
  Args: {
17933
18602
  cipher: string;
@@ -18137,6 +18806,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18137
18806
  };
18138
18807
  Returns: number;
18139
18808
  };
18809
+ get_offer_branding: {
18810
+ Args: never;
18811
+ Returns: import("./types").Json;
18812
+ };
18140
18813
  get_offer_by_link_code: {
18141
18814
  Args: {
18142
18815
  p_code: string;
@@ -18428,6 +19101,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18428
19101
  p_worker?: string;
18429
19102
  };
18430
19103
  Returns: {
19104
+ attempt_log: import("./types").Json;
19105
+ attempts: number;
18431
19106
  buffer_ref: string | null;
18432
19107
  claimed_at: string | null;
18433
19108
  claimed_by: string | null;
@@ -18437,6 +19112,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18437
19112
  due_at: string | null;
18438
19113
  error: string | null;
18439
19114
  id: string;
19115
+ last_error: string | null;
19116
+ next_attempt_at: string | null;
18440
19117
  order_ref: string;
18441
19118
  owner_module: string;
18442
19119
  payload: import("./types").Json;
@@ -18469,6 +19146,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18469
19146
  p_worker?: string;
18470
19147
  };
18471
19148
  Returns: {
19149
+ attempt_log: import("./types").Json;
19150
+ attempts: number;
18472
19151
  buffer_ref: string | null;
18473
19152
  claimed_at: string | null;
18474
19153
  claimed_by: string | null;
@@ -18478,6 +19157,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18478
19157
  due_at: string | null;
18479
19158
  error: string | null;
18480
19159
  id: string;
19160
+ last_error: string | null;
19161
+ next_attempt_at: string | null;
18481
19162
  order_ref: string;
18482
19163
  owner_module: string;
18483
19164
  payload: import("./types").Json;
@@ -18510,6 +19191,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18510
19191
  p_task_id: string;
18511
19192
  };
18512
19193
  Returns: {
19194
+ attempt_log: import("./types").Json;
19195
+ attempts: number;
18513
19196
  buffer_ref: string | null;
18514
19197
  claimed_at: string | null;
18515
19198
  claimed_by: string | null;
@@ -18519,6 +19202,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18519
19202
  due_at: string | null;
18520
19203
  error: string | null;
18521
19204
  id: string;
19205
+ last_error: string | null;
19206
+ next_attempt_at: string | null;
18522
19207
  order_ref: string;
18523
19208
  owner_module: string;
18524
19209
  payload: import("./types").Json;
@@ -18600,6 +19285,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18600
19285
  p_task_id: string;
18601
19286
  };
18602
19287
  Returns: {
19288
+ attempt_log: import("./types").Json;
19289
+ attempts: number;
18603
19290
  buffer_ref: string | null;
18604
19291
  claimed_at: string | null;
18605
19292
  claimed_by: string | null;
@@ -18609,6 +19296,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18609
19296
  due_at: string | null;
18610
19297
  error: string | null;
18611
19298
  id: string;
19299
+ last_error: string | null;
19300
+ next_attempt_at: string | null;
18612
19301
  order_ref: string;
18613
19302
  owner_module: string;
18614
19303
  payload: import("./types").Json;
@@ -18635,6 +19324,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18635
19324
  isSetofReturn: false;
18636
19325
  };
18637
19326
  };
19327
+ logistics_floriday_claim_pushes: {
19328
+ Args: {
19329
+ _lease_seconds?: number;
19330
+ _limit?: number;
19331
+ _worker?: string;
19332
+ };
19333
+ Returns: {
19334
+ attempts: number;
19335
+ fulfillment_order_id: string;
19336
+ id: string;
19337
+ last_sent_hash: string;
19338
+ order_ref: string;
19339
+ payload: import("./types").Json;
19340
+ payload_hash: string;
19341
+ revision: number;
19342
+ }[];
19343
+ };
19344
+ logistics_floriday_finish_push: {
19345
+ Args: {
19346
+ _error?: string;
19347
+ _fulfillment_order_id?: string;
19348
+ _id: string;
19349
+ _max_age_hours?: number;
19350
+ _max_attempts?: number;
19351
+ _ok: boolean;
19352
+ _permanent?: boolean;
19353
+ _revision: number;
19354
+ _sent_hash?: string;
19355
+ };
19356
+ Returns: string;
19357
+ };
19358
+ logistics_floriday_prune_pushes: {
19359
+ Args: {
19360
+ _days?: number;
19361
+ };
19362
+ Returns: number;
19363
+ };
19364
+ logistics_floriday_queue_push: {
19365
+ Args: {
19366
+ _order_ref: string;
19367
+ _payload?: import("./types").Json;
19368
+ _payload_hash?: string;
19369
+ };
19370
+ Returns: string;
19371
+ };
18638
19372
  logistics_live_carriers: {
18639
19373
  Args: {
18640
19374
  p_order_ref: string;
@@ -19362,6 +20096,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19362
20096
  Args: never;
19363
20097
  Returns: undefined;
19364
20098
  };
20099
+ run_logistics_tasks_dispatch: {
20100
+ Args: never;
20101
+ Returns: undefined;
20102
+ };
19365
20103
  run_twinfield_queue_tick: {
19366
20104
  Args: never;
19367
20105
  Returns: undefined;
@@ -19602,6 +20340,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19602
20340
  };
19603
20341
  Returns: number;
19604
20342
  };
20343
+ schedule_floriday_stock_queue_process: {
20344
+ Args: {
20345
+ p_apikey: string;
20346
+ p_url: string;
20347
+ };
20348
+ Returns: number;
20349
+ };
19605
20350
  schedule_floriday_token_refresh: {
19606
20351
  Args: {
19607
20352
  p_apikey: string;