@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
@@ -3627,6 +3627,474 @@ export type Database = {
3627
3627
  }
3628
3628
  ];
3629
3629
  };
3630
+ exact_auth_call_budget: {
3631
+ Row: {
3632
+ account_key: string;
3633
+ day_count: number;
3634
+ day_date: string;
3635
+ division_code: number;
3636
+ environment: string;
3637
+ minute_count: number;
3638
+ minute_window: string;
3639
+ updated_at: string;
3640
+ };
3641
+ Insert: {
3642
+ account_key?: string;
3643
+ day_count?: number;
3644
+ day_date?: string;
3645
+ division_code?: number;
3646
+ environment: string;
3647
+ minute_count?: number;
3648
+ minute_window?: string;
3649
+ updated_at?: string;
3650
+ };
3651
+ Update: {
3652
+ account_key?: string;
3653
+ day_count?: number;
3654
+ day_date?: string;
3655
+ division_code?: number;
3656
+ environment?: string;
3657
+ minute_count?: number;
3658
+ minute_window?: string;
3659
+ updated_at?: string;
3660
+ };
3661
+ Relationships: [];
3662
+ };
3663
+ exact_auth_customers: {
3664
+ Row: {
3665
+ account_key: string;
3666
+ address_line1: string | null;
3667
+ chamber_of_commerce: string | null;
3668
+ city: string | null;
3669
+ code: string | null;
3670
+ country: string | null;
3671
+ created_at: string;
3672
+ currency: string | null;
3673
+ division_code: number | null;
3674
+ email: string | null;
3675
+ environment: Database["public"]["Enums"]["exact_env"];
3676
+ exact_id: string;
3677
+ exact_modified: string | null;
3678
+ exact_timestamp: number | null;
3679
+ id: string;
3680
+ is_active: boolean;
3681
+ name: string | null;
3682
+ phone: string | null;
3683
+ postcode: string | null;
3684
+ raw: Json | null;
3685
+ status: string | null;
3686
+ updated_at: string;
3687
+ vat_number: string | null;
3688
+ website: string | null;
3689
+ };
3690
+ Insert: {
3691
+ account_key?: string;
3692
+ address_line1?: string | null;
3693
+ chamber_of_commerce?: string | null;
3694
+ city?: string | null;
3695
+ code?: string | null;
3696
+ country?: string | null;
3697
+ created_at?: string;
3698
+ currency?: string | null;
3699
+ division_code?: number | null;
3700
+ email?: string | null;
3701
+ environment: Database["public"]["Enums"]["exact_env"];
3702
+ exact_id: string;
3703
+ exact_modified?: string | null;
3704
+ exact_timestamp?: number | null;
3705
+ id?: string;
3706
+ is_active?: boolean;
3707
+ name?: string | null;
3708
+ phone?: string | null;
3709
+ postcode?: string | null;
3710
+ raw?: Json | null;
3711
+ status?: string | null;
3712
+ updated_at?: string;
3713
+ vat_number?: string | null;
3714
+ website?: string | null;
3715
+ };
3716
+ Update: {
3717
+ account_key?: string;
3718
+ address_line1?: string | null;
3719
+ chamber_of_commerce?: string | null;
3720
+ city?: string | null;
3721
+ code?: string | null;
3722
+ country?: string | null;
3723
+ created_at?: string;
3724
+ currency?: string | null;
3725
+ division_code?: number | null;
3726
+ email?: string | null;
3727
+ environment?: Database["public"]["Enums"]["exact_env"];
3728
+ exact_id?: string;
3729
+ exact_modified?: string | null;
3730
+ exact_timestamp?: number | null;
3731
+ id?: string;
3732
+ is_active?: boolean;
3733
+ name?: string | null;
3734
+ phone?: string | null;
3735
+ postcode?: string | null;
3736
+ raw?: Json | null;
3737
+ status?: string | null;
3738
+ updated_at?: string;
3739
+ vat_number?: string | null;
3740
+ website?: string | null;
3741
+ };
3742
+ Relationships: [];
3743
+ };
3744
+ exact_auth_divisions: {
3745
+ Row: {
3746
+ account_key: string;
3747
+ company_name: string | null;
3748
+ created_at: string;
3749
+ division_code: number | null;
3750
+ environment: Database["public"]["Enums"]["exact_env"];
3751
+ id: string;
3752
+ last_synced_at: string | null;
3753
+ updated_at: string;
3754
+ };
3755
+ Insert: {
3756
+ account_key?: string;
3757
+ company_name?: string | null;
3758
+ created_at?: string;
3759
+ division_code?: number | null;
3760
+ environment: Database["public"]["Enums"]["exact_env"];
3761
+ id?: string;
3762
+ last_synced_at?: string | null;
3763
+ updated_at?: string;
3764
+ };
3765
+ Update: {
3766
+ account_key?: string;
3767
+ company_name?: string | null;
3768
+ created_at?: string;
3769
+ division_code?: number | null;
3770
+ environment?: Database["public"]["Enums"]["exact_env"];
3771
+ id?: string;
3772
+ last_synced_at?: string | null;
3773
+ updated_at?: string;
3774
+ };
3775
+ Relationships: [];
3776
+ };
3777
+ exact_auth_invoice_lines: {
3778
+ Row: {
3779
+ account_key: string;
3780
+ amount_excl: number | null;
3781
+ created_at: string;
3782
+ description: string | null;
3783
+ discount: number | null;
3784
+ environment: Database["public"]["Enums"]["exact_env"];
3785
+ exact_id: string;
3786
+ exact_timestamp: number | null;
3787
+ id: string;
3788
+ invoice_exact_id: string;
3789
+ item_code: string | null;
3790
+ item_exact_id: string | null;
3791
+ line_number: number | null;
3792
+ quantity: number | null;
3793
+ raw: Json | null;
3794
+ unit_price: number | null;
3795
+ updated_at: string;
3796
+ vat_amount: number | null;
3797
+ vat_code: string | null;
3798
+ };
3799
+ Insert: {
3800
+ account_key?: string;
3801
+ amount_excl?: number | null;
3802
+ created_at?: string;
3803
+ description?: string | null;
3804
+ discount?: number | null;
3805
+ environment: Database["public"]["Enums"]["exact_env"];
3806
+ exact_id: string;
3807
+ exact_timestamp?: number | null;
3808
+ id?: string;
3809
+ invoice_exact_id: string;
3810
+ item_code?: string | null;
3811
+ item_exact_id?: string | null;
3812
+ line_number?: number | null;
3813
+ quantity?: number | null;
3814
+ raw?: Json | null;
3815
+ unit_price?: number | null;
3816
+ updated_at?: string;
3817
+ vat_amount?: number | null;
3818
+ vat_code?: string | null;
3819
+ };
3820
+ Update: {
3821
+ account_key?: string;
3822
+ amount_excl?: number | null;
3823
+ created_at?: string;
3824
+ description?: string | null;
3825
+ discount?: number | null;
3826
+ environment?: Database["public"]["Enums"]["exact_env"];
3827
+ exact_id?: string;
3828
+ exact_timestamp?: number | null;
3829
+ id?: string;
3830
+ invoice_exact_id?: string;
3831
+ item_code?: string | null;
3832
+ item_exact_id?: string | null;
3833
+ line_number?: number | null;
3834
+ quantity?: number | null;
3835
+ raw?: Json | null;
3836
+ unit_price?: number | null;
3837
+ updated_at?: string;
3838
+ vat_amount?: number | null;
3839
+ vat_code?: string | null;
3840
+ };
3841
+ Relationships: [];
3842
+ };
3843
+ exact_auth_invoices: {
3844
+ Row: {
3845
+ account_key: string;
3846
+ amount_excl: number | null;
3847
+ amount_incl: number | null;
3848
+ amount_open: number | null;
3849
+ created_at: string;
3850
+ currency: string | null;
3851
+ customer_code: string | null;
3852
+ customer_exact_id: string | null;
3853
+ customer_name: string | null;
3854
+ description: string | null;
3855
+ division_code: number | null;
3856
+ due_date: string | null;
3857
+ environment: Database["public"]["Enums"]["exact_env"];
3858
+ exact_id: string;
3859
+ exact_modified: string | null;
3860
+ exact_timestamp: number | null;
3861
+ id: string;
3862
+ invoice_date: string | null;
3863
+ invoice_number: string | null;
3864
+ order_number: string | null;
3865
+ paid_at: string | null;
3866
+ payment_status: string;
3867
+ raw: Json | null;
3868
+ receivable_synced_at: string | null;
3869
+ status_code: number | null;
3870
+ updated_at: string;
3871
+ };
3872
+ Insert: {
3873
+ account_key?: string;
3874
+ amount_excl?: number | null;
3875
+ amount_incl?: number | null;
3876
+ amount_open?: number | null;
3877
+ created_at?: string;
3878
+ currency?: string | null;
3879
+ customer_code?: string | null;
3880
+ customer_exact_id?: string | null;
3881
+ customer_name?: string | null;
3882
+ description?: string | null;
3883
+ division_code?: number | null;
3884
+ due_date?: string | null;
3885
+ environment: Database["public"]["Enums"]["exact_env"];
3886
+ exact_id: string;
3887
+ exact_modified?: string | null;
3888
+ exact_timestamp?: number | null;
3889
+ id?: string;
3890
+ invoice_date?: string | null;
3891
+ invoice_number?: string | null;
3892
+ order_number?: string | null;
3893
+ paid_at?: string | null;
3894
+ payment_status?: string;
3895
+ raw?: Json | null;
3896
+ receivable_synced_at?: string | null;
3897
+ status_code?: number | null;
3898
+ updated_at?: string;
3899
+ };
3900
+ Update: {
3901
+ account_key?: string;
3902
+ amount_excl?: number | null;
3903
+ amount_incl?: number | null;
3904
+ amount_open?: number | null;
3905
+ created_at?: string;
3906
+ currency?: string | null;
3907
+ customer_code?: string | null;
3908
+ customer_exact_id?: string | null;
3909
+ customer_name?: string | null;
3910
+ description?: string | null;
3911
+ division_code?: number | null;
3912
+ due_date?: string | null;
3913
+ environment?: Database["public"]["Enums"]["exact_env"];
3914
+ exact_id?: string;
3915
+ exact_modified?: string | null;
3916
+ exact_timestamp?: number | null;
3917
+ id?: string;
3918
+ invoice_date?: string | null;
3919
+ invoice_number?: string | null;
3920
+ order_number?: string | null;
3921
+ paid_at?: string | null;
3922
+ payment_status?: string;
3923
+ raw?: Json | null;
3924
+ receivable_synced_at?: string | null;
3925
+ status_code?: number | null;
3926
+ updated_at?: string;
3927
+ };
3928
+ Relationships: [];
3929
+ };
3930
+ exact_auth_items: {
3931
+ Row: {
3932
+ account_key: string;
3933
+ barcode: string | null;
3934
+ code: string | null;
3935
+ cost_price: number | null;
3936
+ created_at: string;
3937
+ description: string | null;
3938
+ division_code: number | null;
3939
+ environment: Database["public"]["Enums"]["exact_env"];
3940
+ exact_id: string;
3941
+ exact_modified: string | null;
3942
+ exact_timestamp: number | null;
3943
+ gl_account_code: string | null;
3944
+ id: string;
3945
+ is_active: boolean;
3946
+ is_sales_item: boolean | null;
3947
+ item_type: string | null;
3948
+ raw: Json | null;
3949
+ sales_price: number | null;
3950
+ unit: string | null;
3951
+ updated_at: string;
3952
+ vat_code: string | null;
3953
+ };
3954
+ Insert: {
3955
+ account_key?: string;
3956
+ barcode?: string | null;
3957
+ code?: string | null;
3958
+ cost_price?: number | null;
3959
+ created_at?: string;
3960
+ description?: string | null;
3961
+ division_code?: number | null;
3962
+ environment: Database["public"]["Enums"]["exact_env"];
3963
+ exact_id: string;
3964
+ exact_modified?: string | null;
3965
+ exact_timestamp?: number | null;
3966
+ gl_account_code?: string | null;
3967
+ id?: string;
3968
+ is_active?: boolean;
3969
+ is_sales_item?: boolean | null;
3970
+ item_type?: string | null;
3971
+ raw?: Json | null;
3972
+ sales_price?: number | null;
3973
+ unit?: string | null;
3974
+ updated_at?: string;
3975
+ vat_code?: string | null;
3976
+ };
3977
+ Update: {
3978
+ account_key?: string;
3979
+ barcode?: string | null;
3980
+ code?: string | null;
3981
+ cost_price?: number | null;
3982
+ created_at?: string;
3983
+ description?: string | null;
3984
+ division_code?: number | null;
3985
+ environment?: Database["public"]["Enums"]["exact_env"];
3986
+ exact_id?: string;
3987
+ exact_modified?: string | null;
3988
+ exact_timestamp?: number | null;
3989
+ gl_account_code?: string | null;
3990
+ id?: string;
3991
+ is_active?: boolean;
3992
+ is_sales_item?: boolean | null;
3993
+ item_type?: string | null;
3994
+ raw?: Json | null;
3995
+ sales_price?: number | null;
3996
+ unit?: string | null;
3997
+ updated_at?: string;
3998
+ vat_code?: string | null;
3999
+ };
4000
+ Relationships: [];
4001
+ };
4002
+ exact_auth_sync_log: {
4003
+ Row: {
4004
+ account_key: string;
4005
+ calls_used: number;
4006
+ created_at: string;
4007
+ domain: string;
4008
+ environment: Database["public"]["Enums"]["exact_env"];
4009
+ error: string | null;
4010
+ finished_at: string | null;
4011
+ id: string;
4012
+ ok: boolean;
4013
+ records: number;
4014
+ started_at: string;
4015
+ };
4016
+ Insert: {
4017
+ account_key?: string;
4018
+ calls_used?: number;
4019
+ created_at?: string;
4020
+ domain: string;
4021
+ environment: Database["public"]["Enums"]["exact_env"];
4022
+ error?: string | null;
4023
+ finished_at?: string | null;
4024
+ id?: string;
4025
+ ok?: boolean;
4026
+ records?: number;
4027
+ started_at?: string;
4028
+ };
4029
+ Update: {
4030
+ account_key?: string;
4031
+ calls_used?: number;
4032
+ created_at?: string;
4033
+ domain?: string;
4034
+ environment?: Database["public"]["Enums"]["exact_env"];
4035
+ error?: string | null;
4036
+ finished_at?: string | null;
4037
+ id?: string;
4038
+ ok?: boolean;
4039
+ records?: number;
4040
+ started_at?: string;
4041
+ };
4042
+ Relationships: [];
4043
+ };
4044
+ exact_auth_sync_state: {
4045
+ Row: {
4046
+ account_key: string;
4047
+ created_at: string;
4048
+ cursor_timestamp: number;
4049
+ division_code: number | null;
4050
+ domain: string;
4051
+ duration_ms: number | null;
4052
+ environment: Database["public"]["Enums"]["exact_env"];
4053
+ initial_sync_done: boolean;
4054
+ last_error: string | null;
4055
+ last_run_at: string | null;
4056
+ last_success_at: string | null;
4057
+ locked_at: string | null;
4058
+ needs_initial_sync: boolean;
4059
+ record_count: number;
4060
+ updated_at: string;
4061
+ };
4062
+ Insert: {
4063
+ account_key?: string;
4064
+ created_at?: string;
4065
+ cursor_timestamp?: number;
4066
+ division_code?: number | null;
4067
+ domain: string;
4068
+ duration_ms?: number | null;
4069
+ environment: Database["public"]["Enums"]["exact_env"];
4070
+ initial_sync_done?: boolean;
4071
+ last_error?: string | null;
4072
+ last_run_at?: string | null;
4073
+ last_success_at?: string | null;
4074
+ locked_at?: string | null;
4075
+ needs_initial_sync?: boolean;
4076
+ record_count?: number;
4077
+ updated_at?: string;
4078
+ };
4079
+ Update: {
4080
+ account_key?: string;
4081
+ created_at?: string;
4082
+ cursor_timestamp?: number;
4083
+ division_code?: number | null;
4084
+ domain?: string;
4085
+ duration_ms?: number | null;
4086
+ environment?: Database["public"]["Enums"]["exact_env"];
4087
+ initial_sync_done?: boolean;
4088
+ last_error?: string | null;
4089
+ last_run_at?: string | null;
4090
+ last_success_at?: string | null;
4091
+ locked_at?: string | null;
4092
+ needs_initial_sync?: boolean;
4093
+ record_count?: number;
4094
+ updated_at?: string;
4095
+ };
4096
+ Relationships: [];
4097
+ };
3630
4098
  exact_bulk_operation_items: {
3631
4099
  Row: {
3632
4100
  attempts: number;
@@ -5365,12 +5833,17 @@ export type Database = {
5365
5833
  attempts: number;
5366
5834
  connection_id: string;
5367
5835
  created_at: string;
5836
+ desired_available: boolean | null;
5368
5837
  gateway_attempt_id: string | null;
5369
5838
  id: string;
5370
5839
  last_error: string | null;
5840
+ locked_at: string | null;
5841
+ locked_by: string | null;
5842
+ next_attempt_at: string;
5371
5843
  number_of_pieces: number;
5372
5844
  sent_at: string | null;
5373
5845
  status: string;
5846
+ superseded_by: string | null;
5374
5847
  trade_item_id: string;
5375
5848
  updated_at: string;
5376
5849
  user_id: string;
@@ -5379,12 +5852,17 @@ export type Database = {
5379
5852
  attempts?: number;
5380
5853
  connection_id: string;
5381
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5382
5856
  gateway_attempt_id?: string | null;
5383
5857
  id?: string;
5384
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5385
5862
  number_of_pieces?: number;
5386
5863
  sent_at?: string | null;
5387
5864
  status?: string;
5865
+ superseded_by?: string | null;
5388
5866
  trade_item_id: string;
5389
5867
  updated_at?: string;
5390
5868
  user_id: string;
@@ -5393,12 +5871,17 @@ export type Database = {
5393
5871
  attempts?: number;
5394
5872
  connection_id?: string;
5395
5873
  created_at?: string;
5874
+ desired_available?: boolean | null;
5396
5875
  gateway_attempt_id?: string | null;
5397
5876
  id?: string;
5398
5877
  last_error?: string | null;
5878
+ locked_at?: string | null;
5879
+ locked_by?: string | null;
5880
+ next_attempt_at?: string;
5399
5881
  number_of_pieces?: number;
5400
5882
  sent_at?: string | null;
5401
5883
  status?: string;
5884
+ superseded_by?: string | null;
5402
5885
  trade_item_id?: string;
5403
5886
  updated_at?: string;
5404
5887
  user_id?: string;
@@ -8241,6 +8724,69 @@ export type Database = {
8241
8724
  };
8242
8725
  Relationships: [];
8243
8726
  };
8727
+ logistics_floriday_pushes: {
8728
+ Row: {
8729
+ attempts: number;
8730
+ created_at: string;
8731
+ first_queued_at: string;
8732
+ fulfillment_order_id: string | null;
8733
+ id: string;
8734
+ last_error: string | null;
8735
+ last_error_at: string | null;
8736
+ last_sent_hash: string | null;
8737
+ locked_by: string | null;
8738
+ locked_until: string | null;
8739
+ next_attempt_at: string;
8740
+ order_ref: string;
8741
+ payload: Json;
8742
+ payload_hash: string | null;
8743
+ revision: number;
8744
+ sent_at: string | null;
8745
+ status: string;
8746
+ updated_at: string;
8747
+ };
8748
+ Insert: {
8749
+ attempts?: number;
8750
+ created_at?: string;
8751
+ first_queued_at?: string;
8752
+ fulfillment_order_id?: string | null;
8753
+ id?: string;
8754
+ last_error?: string | null;
8755
+ last_error_at?: string | null;
8756
+ last_sent_hash?: string | null;
8757
+ locked_by?: string | null;
8758
+ locked_until?: string | null;
8759
+ next_attempt_at?: string;
8760
+ order_ref: string;
8761
+ payload?: Json;
8762
+ payload_hash?: string | null;
8763
+ revision?: number;
8764
+ sent_at?: string | null;
8765
+ status?: string;
8766
+ updated_at?: string;
8767
+ };
8768
+ Update: {
8769
+ attempts?: number;
8770
+ created_at?: string;
8771
+ first_queued_at?: string;
8772
+ fulfillment_order_id?: string | null;
8773
+ id?: string;
8774
+ last_error?: string | null;
8775
+ last_error_at?: string | null;
8776
+ last_sent_hash?: string | null;
8777
+ locked_by?: string | null;
8778
+ locked_until?: string | null;
8779
+ next_attempt_at?: string;
8780
+ order_ref?: string;
8781
+ payload?: Json;
8782
+ payload_hash?: string | null;
8783
+ revision?: number;
8784
+ sent_at?: string | null;
8785
+ status?: string;
8786
+ updated_at?: string;
8787
+ };
8788
+ Relationships: [];
8789
+ };
8244
8790
  logistics_formulas: {
8245
8791
  Row: {
8246
8792
  created_at: string;
@@ -8863,6 +9409,8 @@ export type Database = {
8863
9409
  };
8864
9410
  logistics_tasks: {
8865
9411
  Row: {
9412
+ attempt_log: Json;
9413
+ attempts: number;
8866
9414
  buffer_ref: string | null;
8867
9415
  claimed_at: string | null;
8868
9416
  claimed_by: string | null;
@@ -8872,6 +9420,8 @@ export type Database = {
8872
9420
  due_at: string | null;
8873
9421
  error: string | null;
8874
9422
  id: string;
9423
+ last_error: string | null;
9424
+ next_attempt_at: string | null;
8875
9425
  order_ref: string;
8876
9426
  owner_module: string;
8877
9427
  payload: Json;
@@ -8892,6 +9442,8 @@ export type Database = {
8892
9442
  user_id: string;
8893
9443
  };
8894
9444
  Insert: {
9445
+ attempt_log?: Json;
9446
+ attempts?: number;
8895
9447
  buffer_ref?: string | null;
8896
9448
  claimed_at?: string | null;
8897
9449
  claimed_by?: string | null;
@@ -8901,6 +9453,8 @@ export type Database = {
8901
9453
  due_at?: string | null;
8902
9454
  error?: string | null;
8903
9455
  id?: string;
9456
+ last_error?: string | null;
9457
+ next_attempt_at?: string | null;
8904
9458
  order_ref: string;
8905
9459
  owner_module: string;
8906
9460
  payload?: Json;
@@ -8921,6 +9475,8 @@ export type Database = {
8921
9475
  user_id?: string;
8922
9476
  };
8923
9477
  Update: {
9478
+ attempt_log?: Json;
9479
+ attempts?: number;
8924
9480
  buffer_ref?: string | null;
8925
9481
  claimed_at?: string | null;
8926
9482
  claimed_by?: string | null;
@@ -8930,6 +9486,8 @@ export type Database = {
8930
9486
  due_at?: string | null;
8931
9487
  error?: string | null;
8932
9488
  id?: string;
9489
+ last_error?: string | null;
9490
+ next_attempt_at?: string | null;
8933
9491
  order_ref?: string;
8934
9492
  owner_module?: string;
8935
9493
  payload?: Json;
@@ -10325,6 +10883,7 @@ export type Database = {
10325
10883
  };
10326
10884
  offer_settings: {
10327
10885
  Row: {
10886
+ brand_name: string | null;
10328
10887
  button_color: string;
10329
10888
  created_at: string;
10330
10889
  default_countries: string[];
@@ -10346,6 +10905,7 @@ export type Database = {
10346
10905
  updated_at: string;
10347
10906
  };
10348
10907
  Insert: {
10908
+ brand_name?: string | null;
10349
10909
  button_color?: string;
10350
10910
  created_at?: string;
10351
10911
  default_countries?: string[];
@@ -10367,6 +10927,7 @@ export type Database = {
10367
10927
  updated_at?: string;
10368
10928
  };
10369
10929
  Update: {
10930
+ brand_name?: string | null;
10370
10931
  button_color?: string;
10371
10932
  created_at?: string;
10372
10933
  default_countries?: string[];
@@ -18197,6 +18758,85 @@ export type Database = {
18197
18758
  };
18198
18759
  Returns: Json;
18199
18760
  };
18761
+ claim_floriday_stock_queue: {
18762
+ Args: {
18763
+ p_limit?: number;
18764
+ p_worker?: string;
18765
+ };
18766
+ Returns: {
18767
+ attempts: number;
18768
+ connection_id: string;
18769
+ created_at: string;
18770
+ desired_available: boolean | null;
18771
+ gateway_attempt_id: string | null;
18772
+ id: string;
18773
+ last_error: string | null;
18774
+ locked_at: string | null;
18775
+ locked_by: string | null;
18776
+ next_attempt_at: string;
18777
+ number_of_pieces: number;
18778
+ sent_at: string | null;
18779
+ status: string;
18780
+ superseded_by: string | null;
18781
+ trade_item_id: string;
18782
+ updated_at: string;
18783
+ user_id: string;
18784
+ }[];
18785
+ SetofOptions: {
18786
+ from: "*";
18787
+ to: "floriday_continuous_stock_queue";
18788
+ isOneToOne: false;
18789
+ isSetofReturn: true;
18790
+ };
18791
+ };
18792
+ claim_logistics_tasks: {
18793
+ Args: {
18794
+ _limit?: number;
18795
+ _owner_module: string;
18796
+ _stale_minutes?: number;
18797
+ _task_type: string;
18798
+ _worker: string;
18799
+ };
18800
+ Returns: {
18801
+ attempt_log: Json;
18802
+ attempts: number;
18803
+ buffer_ref: string | null;
18804
+ claimed_at: string | null;
18805
+ claimed_by: string | null;
18806
+ completed_at: string | null;
18807
+ created_at: string;
18808
+ depends_on: string[];
18809
+ due_at: string | null;
18810
+ error: string | null;
18811
+ id: string;
18812
+ last_error: string | null;
18813
+ next_attempt_at: string | null;
18814
+ order_ref: string;
18815
+ owner_module: string;
18816
+ payload: Json;
18817
+ plan_run_id: string | null;
18818
+ planned_end: string | null;
18819
+ planned_start: string | null;
18820
+ priority: number;
18821
+ result: Json | null;
18822
+ rule_config_id: string | null;
18823
+ rule_version: number | null;
18824
+ sequence: number;
18825
+ shadow: boolean;
18826
+ started_at: string | null;
18827
+ status: string;
18828
+ strategy_id: string | null;
18829
+ task_type: string;
18830
+ updated_at: string;
18831
+ user_id: string;
18832
+ }[];
18833
+ SetofOptions: {
18834
+ from: "*";
18835
+ to: "logistics_tasks";
18836
+ isOneToOne: false;
18837
+ isSetofReturn: true;
18838
+ };
18839
+ };
18200
18840
  claim_print_jobs: {
18201
18841
  Args: {
18202
18842
  _agent_id: string;
@@ -18261,10 +18901,24 @@ export type Database = {
18261
18901
  isSetofReturn: true;
18262
18902
  };
18263
18903
  };
18904
+ cleanup_floriday_stock_queue: {
18905
+ Args: never;
18906
+ Returns: undefined;
18907
+ };
18264
18908
  cleanup_old_bookings: {
18265
18909
  Args: never;
18266
18910
  Returns: undefined;
18267
18911
  };
18912
+ complete_floriday_stock_queue: {
18913
+ Args: {
18914
+ p_attempt_id?: string;
18915
+ p_error?: string;
18916
+ p_id: string;
18917
+ p_ok: boolean;
18918
+ p_permanent?: boolean;
18919
+ };
18920
+ Returns: undefined;
18921
+ };
18268
18922
  consume_bom_for_production: {
18269
18923
  Args: {
18270
18924
  p_connection_id: string;
@@ -18437,6 +19091,21 @@ export type Database = {
18437
19091
  Args: never;
18438
19092
  Returns: string;
18439
19093
  };
19094
+ exact_auth_consume_calls: {
19095
+ Args: {
19096
+ _account_key: string;
19097
+ _calls?: number;
19098
+ _day_limit?: number;
19099
+ _division_code: number;
19100
+ _environment: string;
19101
+ _minute_limit?: number;
19102
+ };
19103
+ Returns: Json;
19104
+ };
19105
+ exact_auth_prune_sync_log: {
19106
+ Args: never;
19107
+ Returns: undefined;
19108
+ };
18440
19109
  exact_decrypt: {
18441
19110
  Args: {
18442
19111
  cipher: string;
@@ -18646,6 +19315,10 @@ export type Database = {
18646
19315
  };
18647
19316
  Returns: number;
18648
19317
  };
19318
+ get_offer_branding: {
19319
+ Args: never;
19320
+ Returns: Json;
19321
+ };
18649
19322
  get_offer_by_link_code: {
18650
19323
  Args: {
18651
19324
  p_code: string;
@@ -18937,6 +19610,8 @@ export type Database = {
18937
19610
  p_worker?: string;
18938
19611
  };
18939
19612
  Returns: {
19613
+ attempt_log: Json;
19614
+ attempts: number;
18940
19615
  buffer_ref: string | null;
18941
19616
  claimed_at: string | null;
18942
19617
  claimed_by: string | null;
@@ -18946,6 +19621,8 @@ export type Database = {
18946
19621
  due_at: string | null;
18947
19622
  error: string | null;
18948
19623
  id: string;
19624
+ last_error: string | null;
19625
+ next_attempt_at: string | null;
18949
19626
  order_ref: string;
18950
19627
  owner_module: string;
18951
19628
  payload: Json;
@@ -18978,6 +19655,8 @@ export type Database = {
18978
19655
  p_worker?: string;
18979
19656
  };
18980
19657
  Returns: {
19658
+ attempt_log: Json;
19659
+ attempts: number;
18981
19660
  buffer_ref: string | null;
18982
19661
  claimed_at: string | null;
18983
19662
  claimed_by: string | null;
@@ -18987,6 +19666,8 @@ export type Database = {
18987
19666
  due_at: string | null;
18988
19667
  error: string | null;
18989
19668
  id: string;
19669
+ last_error: string | null;
19670
+ next_attempt_at: string | null;
18990
19671
  order_ref: string;
18991
19672
  owner_module: string;
18992
19673
  payload: Json;
@@ -19019,6 +19700,8 @@ export type Database = {
19019
19700
  p_task_id: string;
19020
19701
  };
19021
19702
  Returns: {
19703
+ attempt_log: Json;
19704
+ attempts: number;
19022
19705
  buffer_ref: string | null;
19023
19706
  claimed_at: string | null;
19024
19707
  claimed_by: string | null;
@@ -19028,6 +19711,8 @@ export type Database = {
19028
19711
  due_at: string | null;
19029
19712
  error: string | null;
19030
19713
  id: string;
19714
+ last_error: string | null;
19715
+ next_attempt_at: string | null;
19031
19716
  order_ref: string;
19032
19717
  owner_module: string;
19033
19718
  payload: Json;
@@ -19109,6 +19794,8 @@ export type Database = {
19109
19794
  p_task_id: string;
19110
19795
  };
19111
19796
  Returns: {
19797
+ attempt_log: Json;
19798
+ attempts: number;
19112
19799
  buffer_ref: string | null;
19113
19800
  claimed_at: string | null;
19114
19801
  claimed_by: string | null;
@@ -19118,6 +19805,8 @@ export type Database = {
19118
19805
  due_at: string | null;
19119
19806
  error: string | null;
19120
19807
  id: string;
19808
+ last_error: string | null;
19809
+ next_attempt_at: string | null;
19121
19810
  order_ref: string;
19122
19811
  owner_module: string;
19123
19812
  payload: Json;
@@ -19144,6 +19833,51 @@ export type Database = {
19144
19833
  isSetofReturn: false;
19145
19834
  };
19146
19835
  };
19836
+ logistics_floriday_claim_pushes: {
19837
+ Args: {
19838
+ _lease_seconds?: number;
19839
+ _limit?: number;
19840
+ _worker?: string;
19841
+ };
19842
+ Returns: {
19843
+ attempts: number;
19844
+ fulfillment_order_id: string;
19845
+ id: string;
19846
+ last_sent_hash: string;
19847
+ order_ref: string;
19848
+ payload: Json;
19849
+ payload_hash: string;
19850
+ revision: number;
19851
+ }[];
19852
+ };
19853
+ logistics_floriday_finish_push: {
19854
+ Args: {
19855
+ _error?: string;
19856
+ _fulfillment_order_id?: string;
19857
+ _id: string;
19858
+ _max_age_hours?: number;
19859
+ _max_attempts?: number;
19860
+ _ok: boolean;
19861
+ _permanent?: boolean;
19862
+ _revision: number;
19863
+ _sent_hash?: string;
19864
+ };
19865
+ Returns: string;
19866
+ };
19867
+ logistics_floriday_prune_pushes: {
19868
+ Args: {
19869
+ _days?: number;
19870
+ };
19871
+ Returns: number;
19872
+ };
19873
+ logistics_floriday_queue_push: {
19874
+ Args: {
19875
+ _order_ref: string;
19876
+ _payload?: Json;
19877
+ _payload_hash?: string;
19878
+ };
19879
+ Returns: string;
19880
+ };
19147
19881
  logistics_live_carriers: {
19148
19882
  Args: {
19149
19883
  p_order_ref: string;
@@ -19871,6 +20605,10 @@ export type Database = {
19871
20605
  Args: never;
19872
20606
  Returns: undefined;
19873
20607
  };
20608
+ run_logistics_tasks_dispatch: {
20609
+ Args: never;
20610
+ Returns: undefined;
20611
+ };
19874
20612
  run_twinfield_queue_tick: {
19875
20613
  Args: never;
19876
20614
  Returns: undefined;
@@ -20111,6 +20849,13 @@ export type Database = {
20111
20849
  };
20112
20850
  Returns: number;
20113
20851
  };
20852
+ schedule_floriday_stock_queue_process: {
20853
+ Args: {
20854
+ p_apikey: string;
20855
+ p_url: string;
20856
+ };
20857
+ Returns: number;
20858
+ };
20114
20859
  schedule_floriday_token_refresh: {
20115
20860
  Args: {
20116
20861
  p_apikey: string;