@flowselections/floriday-authenticatie-module 1.0.31 → 1.0.36

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 (54) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  8. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  9. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  10. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  11. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  12. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  14. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +652 -221
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +652 -221
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +652 -221
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +653 -228
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.js +1 -12
  24. package/dist-lib/lib/central-auth.server.d.ts +26 -1
  25. package/dist-lib/lib/central-auth.server.d.ts.map +1 -1
  26. package/dist-lib/lib/central-auth.server.js +69 -3
  27. package/dist-lib/lib/cron/index.d.ts +1 -0
  28. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  29. package/dist-lib/lib/cron/index.js +1 -0
  30. package/dist-lib/lib/cron/process-stock-queue.d.ts +43 -0
  31. package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -0
  32. package/dist-lib/lib/cron/process-stock-queue.js +218 -0
  33. package/dist-lib/lib/cron/refresh-floriday-tokens.d.ts.map +1 -1
  34. package/dist-lib/lib/cron/refresh-floriday-tokens.js +27 -148
  35. package/dist-lib/lib/error-page.js +30 -30
  36. package/dist-lib/lib/floricode.functions.d.ts +4557 -1540
  37. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +652 -221
  39. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-labels.functions.d.ts +652 -221
  41. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-public.functions.d.ts +3912 -1362
  43. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-stickers.functions.d.ts +652 -221
  45. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-sync.functions.d.ts +20181 -6820
  47. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-writes.functions.d.ts +3906 -1320
  49. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +32289 -4066
  51. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday.functions.js +111 -45
  53. package/package.json +483 -475
  54. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -341,7 +341,6 @@ export type Database = {
341
341
  active: boolean;
342
342
  api_key: string;
343
343
  created_at: string;
344
- created_by: string | null;
345
344
  id: string;
346
345
  label: string;
347
346
  provider_id: string;
@@ -351,7 +350,6 @@ export type Database = {
351
350
  active?: boolean;
352
351
  api_key: string;
353
352
  created_at?: string;
354
- created_by?: string | null;
355
353
  id?: string;
356
354
  label: string;
357
355
  provider_id: string;
@@ -361,7 +359,6 @@ export type Database = {
361
359
  active?: boolean;
362
360
  api_key?: string;
363
361
  created_at?: string;
364
- created_by?: string | null;
365
362
  id?: string;
366
363
  label?: string;
367
364
  provider_id?: string;
@@ -1659,15 +1656,7 @@ export type Database = {
1659
1656
  id?: string;
1660
1657
  user_id?: string | null;
1661
1658
  };
1662
- Relationships: [
1663
- {
1664
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1665
- columns: ["customer_id"];
1666
- isOneToOne: false;
1667
- referencedRelation: "customers";
1668
- referencedColumns: ["id"];
1669
- }
1670
- ];
1659
+ Relationships: [];
1671
1660
  };
1672
1661
  customer_contacts: {
1673
1662
  Row: {
@@ -1730,7 +1719,7 @@ export type Database = {
1730
1719
  city: string | null;
1731
1720
  country: string | null;
1732
1721
  created_at: string;
1733
- customer_id: string;
1722
+ customer_id: string | null;
1734
1723
  external_key: string | null;
1735
1724
  external_provider: string | null;
1736
1725
  floriday_location_id: string | null;
@@ -1754,7 +1743,7 @@ export type Database = {
1754
1743
  city?: string | null;
1755
1744
  country?: string | null;
1756
1745
  created_at?: string;
1757
- customer_id: string;
1746
+ customer_id?: string | null;
1758
1747
  external_key?: string | null;
1759
1748
  external_provider?: string | null;
1760
1749
  floriday_location_id?: string | null;
@@ -1778,7 +1767,7 @@ export type Database = {
1778
1767
  city?: string | null;
1779
1768
  country?: string | null;
1780
1769
  created_at?: string;
1781
- customer_id?: string;
1770
+ customer_id?: string | null;
1782
1771
  external_key?: string | null;
1783
1772
  external_provider?: string | null;
1784
1773
  floriday_location_id?: string | null;
@@ -3638,6 +3627,474 @@ export type Database = {
3638
3627
  }
3639
3628
  ];
3640
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
+ };
3641
4098
  exact_bulk_operation_items: {
3642
4099
  Row: {
3643
4100
  attempts: number;
@@ -5376,12 +5833,17 @@ export type Database = {
5376
5833
  attempts: number;
5377
5834
  connection_id: string;
5378
5835
  created_at: string;
5836
+ desired_available: boolean | null;
5379
5837
  gateway_attempt_id: string | null;
5380
5838
  id: string;
5381
5839
  last_error: string | null;
5840
+ locked_at: string | null;
5841
+ locked_by: string | null;
5842
+ next_attempt_at: string;
5382
5843
  number_of_pieces: number;
5383
5844
  sent_at: string | null;
5384
5845
  status: string;
5846
+ superseded_by: string | null;
5385
5847
  trade_item_id: string;
5386
5848
  updated_at: string;
5387
5849
  user_id: string;
@@ -5390,12 +5852,17 @@ export type Database = {
5390
5852
  attempts?: number;
5391
5853
  connection_id: string;
5392
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5393
5856
  gateway_attempt_id?: string | null;
5394
5857
  id?: string;
5395
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5396
5862
  number_of_pieces?: number;
5397
5863
  sent_at?: string | null;
5398
5864
  status?: string;
5865
+ superseded_by?: string | null;
5399
5866
  trade_item_id: string;
5400
5867
  updated_at?: string;
5401
5868
  user_id: string;
@@ -5404,12 +5871,17 @@ export type Database = {
5404
5871
  attempts?: number;
5405
5872
  connection_id?: string;
5406
5873
  created_at?: string;
5874
+ desired_available?: boolean | null;
5407
5875
  gateway_attempt_id?: string | null;
5408
5876
  id?: string;
5409
5877
  last_error?: string | null;
5878
+ locked_at?: string | null;
5879
+ locked_by?: string | null;
5880
+ next_attempt_at?: string;
5410
5881
  number_of_pieces?: number;
5411
5882
  sent_at?: string | null;
5412
5883
  status?: string;
5884
+ superseded_by?: string | null;
5413
5885
  trade_item_id?: string;
5414
5886
  updated_at?: string;
5415
5887
  user_id?: string;
@@ -6174,8 +6646,6 @@ export type Database = {
6174
6646
  Row: {
6175
6647
  buyer_organization_id: string | null;
6176
6648
  connection_id: string;
6177
- controlled_at: string | null;
6178
- controlled_by: string | null;
6179
6649
  created_at: string;
6180
6650
  data: Json;
6181
6651
  floriday_id: string;
@@ -6187,8 +6657,6 @@ export type Database = {
6187
6657
  Insert: {
6188
6658
  buyer_organization_id?: string | null;
6189
6659
  connection_id: string;
6190
- controlled_at?: string | null;
6191
- controlled_by?: string | null;
6192
6660
  created_at?: string;
6193
6661
  data: Json;
6194
6662
  floriday_id: string;
@@ -6200,8 +6668,6 @@ export type Database = {
6200
6668
  Update: {
6201
6669
  buyer_organization_id?: string | null;
6202
6670
  connection_id?: string;
6203
- controlled_at?: string | null;
6204
- controlled_by?: string | null;
6205
6671
  created_at?: string;
6206
6672
  data?: Json;
6207
6673
  floriday_id?: string;
@@ -8880,6 +9346,8 @@ export type Database = {
8880
9346
  };
8881
9347
  logistics_tasks: {
8882
9348
  Row: {
9349
+ attempt_log: Json;
9350
+ attempts: number;
8883
9351
  buffer_ref: string | null;
8884
9352
  claimed_at: string | null;
8885
9353
  claimed_by: string | null;
@@ -8889,6 +9357,8 @@ export type Database = {
8889
9357
  due_at: string | null;
8890
9358
  error: string | null;
8891
9359
  id: string;
9360
+ last_error: string | null;
9361
+ next_attempt_at: string | null;
8892
9362
  order_ref: string;
8893
9363
  owner_module: string;
8894
9364
  payload: Json;
@@ -8909,6 +9379,8 @@ export type Database = {
8909
9379
  user_id: string;
8910
9380
  };
8911
9381
  Insert: {
9382
+ attempt_log?: Json;
9383
+ attempts?: number;
8912
9384
  buffer_ref?: string | null;
8913
9385
  claimed_at?: string | null;
8914
9386
  claimed_by?: string | null;
@@ -8918,6 +9390,8 @@ export type Database = {
8918
9390
  due_at?: string | null;
8919
9391
  error?: string | null;
8920
9392
  id?: string;
9393
+ last_error?: string | null;
9394
+ next_attempt_at?: string | null;
8921
9395
  order_ref: string;
8922
9396
  owner_module: string;
8923
9397
  payload?: Json;
@@ -8938,6 +9412,8 @@ export type Database = {
8938
9412
  user_id?: string;
8939
9413
  };
8940
9414
  Update: {
9415
+ attempt_log?: Json;
9416
+ attempts?: number;
8941
9417
  buffer_ref?: string | null;
8942
9418
  claimed_at?: string | null;
8943
9419
  claimed_by?: string | null;
@@ -8947,6 +9423,8 @@ export type Database = {
8947
9423
  due_at?: string | null;
8948
9424
  error?: string | null;
8949
9425
  id?: string;
9426
+ last_error?: string | null;
9427
+ next_attempt_at?: string | null;
8950
9428
  order_ref?: string;
8951
9429
  owner_module?: string;
8952
9430
  payload?: Json;
@@ -9540,62 +10018,39 @@ export type Database = {
9540
10018
  };
9541
10019
  manufacture_products: {
9542
10020
  Row: {
9543
- aantal_te_produceren: number;
9544
10021
  created_at: string;
9545
10022
  description: string | null;
9546
10023
  id: string;
9547
10024
  is_active: boolean;
9548
- location_id: string | null;
9549
10025
  name: string;
9550
- partij_nummer: string | null;
9551
- photos: Json;
9552
10026
  produced_stock: number;
9553
10027
  product_code: string;
9554
10028
  tenant_id: string;
9555
- unit: string;
9556
10029
  updated_at: string;
9557
10030
  };
9558
10031
  Insert: {
9559
- aantal_te_produceren?: number;
9560
10032
  created_at?: string;
9561
10033
  description?: string | null;
9562
10034
  id?: string;
9563
10035
  is_active?: boolean;
9564
- location_id?: string | null;
9565
10036
  name: string;
9566
- partij_nummer?: string | null;
9567
- photos?: Json;
9568
10037
  produced_stock?: number;
9569
10038
  product_code: string;
9570
10039
  tenant_id: string;
9571
- unit?: string;
9572
10040
  updated_at?: string;
9573
10041
  };
9574
10042
  Update: {
9575
- aantal_te_produceren?: number;
9576
10043
  created_at?: string;
9577
10044
  description?: string | null;
9578
10045
  id?: string;
9579
10046
  is_active?: boolean;
9580
- location_id?: string | null;
9581
10047
  name?: string;
9582
- partij_nummer?: string | null;
9583
- photos?: Json;
9584
10048
  produced_stock?: number;
9585
10049
  product_code?: string;
9586
10050
  tenant_id?: string;
9587
- unit?: string;
9588
10051
  updated_at?: string;
9589
10052
  };
9590
- Relationships: [
9591
- {
9592
- foreignKeyName: "manufacture_products_location_id_fkey";
9593
- columns: ["location_id"];
9594
- isOneToOne: false;
9595
- referencedRelation: "locations";
9596
- referencedColumns: ["id"];
9597
- }
9598
- ];
10053
+ Relationships: [];
9599
10054
  };
9600
10055
  module_permissions: {
9601
10056
  Row: {
@@ -10365,6 +10820,7 @@ export type Database = {
10365
10820
  };
10366
10821
  offer_settings: {
10367
10822
  Row: {
10823
+ brand_name: string | null;
10368
10824
  button_color: string;
10369
10825
  created_at: string;
10370
10826
  default_countries: string[];
@@ -10386,6 +10842,7 @@ export type Database = {
10386
10842
  updated_at: string;
10387
10843
  };
10388
10844
  Insert: {
10845
+ brand_name?: string | null;
10389
10846
  button_color?: string;
10390
10847
  created_at?: string;
10391
10848
  default_countries?: string[];
@@ -10407,6 +10864,7 @@ export type Database = {
10407
10864
  updated_at?: string;
10408
10865
  };
10409
10866
  Update: {
10867
+ brand_name?: string | null;
10410
10868
  button_color?: string;
10411
10869
  created_at?: string;
10412
10870
  default_countries?: string[];
@@ -12918,8 +13376,6 @@ export type Database = {
12918
13376
  crates_per_layer: number;
12919
13377
  created_at: string;
12920
13378
  custom_fields: Json;
12921
- floriday_active: boolean;
12922
- floriday_payload: Json;
12923
13379
  floriday_trade_item_id: string | null;
12924
13380
  id: string;
12925
13381
  image_url: string | null;
@@ -12937,8 +13393,6 @@ export type Database = {
12937
13393
  trade_item_key: string | null;
12938
13394
  unit: string;
12939
13395
  updated_at: string;
12940
- vat_code: string | null;
12941
- vat_rate: number | null;
12942
13396
  weight: string | null;
12943
13397
  };
12944
13398
  Insert: {
@@ -12948,8 +13402,6 @@ export type Database = {
12948
13402
  crates_per_layer?: number;
12949
13403
  created_at?: string;
12950
13404
  custom_fields?: Json;
12951
- floriday_active?: boolean;
12952
- floriday_payload?: Json;
12953
13405
  floriday_trade_item_id?: string | null;
12954
13406
  id?: string;
12955
13407
  image_url?: string | null;
@@ -12967,8 +13419,6 @@ export type Database = {
12967
13419
  trade_item_key?: string | null;
12968
13420
  unit?: string;
12969
13421
  updated_at?: string;
12970
- vat_code?: string | null;
12971
- vat_rate?: number | null;
12972
13422
  weight?: string | null;
12973
13423
  };
12974
13424
  Update: {
@@ -12978,8 +13428,6 @@ export type Database = {
12978
13428
  crates_per_layer?: number;
12979
13429
  created_at?: string;
12980
13430
  custom_fields?: Json;
12981
- floriday_active?: boolean;
12982
- floriday_payload?: Json;
12983
13431
  floriday_trade_item_id?: string | null;
12984
13432
  id?: string;
12985
13433
  image_url?: string | null;
@@ -12997,8 +13445,6 @@ export type Database = {
12997
13445
  trade_item_key?: string | null;
12998
13446
  unit?: string;
12999
13447
  updated_at?: string;
13000
- vat_code?: string | null;
13001
- vat_rate?: number | null;
13002
13448
  weight?: string | null;
13003
13449
  };
13004
13450
  Relationships: [];
@@ -14272,7 +14718,6 @@ export type Database = {
14272
14718
  order_id: string | null;
14273
14719
  order_item_id: string | null;
14274
14720
  order_source: string | null;
14275
- parent_trade_item_key: string | null;
14276
14721
  physical_after: number | null;
14277
14722
  physical_before: number | null;
14278
14723
  production_batch_id: string | null;
@@ -14291,7 +14736,6 @@ export type Database = {
14291
14736
  order_id?: string | null;
14292
14737
  order_item_id?: string | null;
14293
14738
  order_source?: string | null;
14294
- parent_trade_item_key?: string | null;
14295
14739
  physical_after?: number | null;
14296
14740
  physical_before?: number | null;
14297
14741
  production_batch_id?: string | null;
@@ -14310,7 +14754,6 @@ export type Database = {
14310
14754
  order_id?: string | null;
14311
14755
  order_item_id?: string | null;
14312
14756
  order_source?: string | null;
14313
- parent_trade_item_key?: string | null;
14314
14757
  physical_after?: number | null;
14315
14758
  physical_before?: number | null;
14316
14759
  production_batch_id?: string | null;
@@ -14886,10 +15329,7 @@ export type Database = {
14886
15329
  };
14887
15330
  twinfield_connections: {
14888
15331
  Row: {
14889
- access_token: string | null;
14890
15332
  account_key: string | null;
14891
- client_id: string | null;
14892
- client_secret: string | null;
14893
15333
  cluster_uri: string | null;
14894
15334
  company_code: string | null;
14895
15335
  company_name: string | null;
@@ -14900,17 +15340,12 @@ export type Database = {
14900
15340
  is_active: boolean;
14901
15341
  label: string | null;
14902
15342
  office_code: string | null;
14903
- redirect_uri: string | null;
14904
- refresh_token: string | null;
14905
- token_expires_at: string | null;
15343
+ redirect_uri: string | null;
14906
15344
  updated_at: string;
14907
15345
  user_id: string;
14908
15346
  };
14909
15347
  Insert: {
14910
- access_token?: string | null;
14911
15348
  account_key?: string | null;
14912
- client_id?: string | null;
14913
- client_secret?: string | null;
14914
15349
  cluster_uri?: string | null;
14915
15350
  company_code?: string | null;
14916
15351
  company_name?: string | null;
@@ -14922,16 +15357,11 @@ export type Database = {
14922
15357
  label?: string | null;
14923
15358
  office_code?: string | null;
14924
15359
  redirect_uri?: string | null;
14925
- refresh_token?: string | null;
14926
- token_expires_at?: string | null;
14927
15360
  updated_at?: string;
14928
15361
  user_id: string;
14929
15362
  };
14930
15363
  Update: {
14931
- access_token?: string | null;
14932
15364
  account_key?: string | null;
14933
- client_id?: string | null;
14934
- client_secret?: string | null;
14935
15365
  cluster_uri?: string | null;
14936
15366
  company_code?: string | null;
14937
15367
  company_name?: string | null;
@@ -14943,53 +15373,6 @@ export type Database = {
14943
15373
  label?: string | null;
14944
15374
  office_code?: string | null;
14945
15375
  redirect_uri?: string | null;
14946
- refresh_token?: string | null;
14947
- token_expires_at?: string | null;
14948
- updated_at?: string;
14949
- user_id?: string;
14950
- };
14951
- Relationships: [];
14952
- };
14953
- twinfield_credentials: {
14954
- Row: {
14955
- administration_code: string | null;
14956
- client_id: string | null;
14957
- client_secret: string | null;
14958
- cluster: string | null;
14959
- connected_at: string | null;
14960
- created_at: string;
14961
- environment: string | null;
14962
- id: string;
14963
- redirect_uri: string | null;
14964
- refresh_token: string | null;
14965
- updated_at: string;
14966
- user_id: string;
14967
- };
14968
- Insert: {
14969
- administration_code?: string | null;
14970
- client_id?: string | null;
14971
- client_secret?: string | null;
14972
- cluster?: string | null;
14973
- connected_at?: string | null;
14974
- created_at?: string;
14975
- environment?: string | null;
14976
- id?: string;
14977
- redirect_uri?: string | null;
14978
- refresh_token?: string | null;
14979
- updated_at?: string;
14980
- user_id: string;
14981
- };
14982
- Update: {
14983
- administration_code?: string | null;
14984
- client_id?: string | null;
14985
- client_secret?: string | null;
14986
- cluster?: string | null;
14987
- connected_at?: string | null;
14988
- created_at?: string;
14989
- environment?: string | null;
14990
- id?: string;
14991
- redirect_uri?: string | null;
14992
- refresh_token?: string | null;
14993
15376
  updated_at?: string;
14994
15377
  user_id?: string;
14995
15378
  };
@@ -15575,30 +15958,6 @@ export type Database = {
15575
15958
  };
15576
15959
  Relationships: [];
15577
15960
  };
15578
- twinfield_oauth_state: {
15579
- Row: {
15580
- created_at: string;
15581
- environment: string;
15582
- nonce: string | null;
15583
- state: string;
15584
- user_id: string;
15585
- };
15586
- Insert: {
15587
- created_at?: string;
15588
- environment: string;
15589
- nonce?: string | null;
15590
- state: string;
15591
- user_id: string;
15592
- };
15593
- Update: {
15594
- created_at?: string;
15595
- environment?: string;
15596
- nonce?: string | null;
15597
- state?: string;
15598
- user_id?: string;
15599
- };
15600
- Relationships: [];
15601
- };
15602
15961
  twinfield_push_log: {
15603
15962
  Row: {
15604
15963
  created_at: string;
@@ -15642,7 +16001,7 @@ export type Database = {
15642
16001
  Row: {
15643
16002
  action: string;
15644
16003
  attempts: number;
15645
- connection_id: string;
16004
+ connection_id: string | null;
15646
16005
  created_at: string;
15647
16006
  customer_id: string | null;
15648
16007
  external_id: string | null;
@@ -15650,7 +16009,7 @@ export type Database = {
15650
16009
  idempotency_key: string;
15651
16010
  last_error: string | null;
15652
16011
  next_attempt_at: string;
15653
- office_code: string;
16012
+ office_code: string | null;
15654
16013
  payload: Json;
15655
16014
  status: string;
15656
16015
  updated_at: string;
@@ -15658,7 +16017,7 @@ export type Database = {
15658
16017
  Insert: {
15659
16018
  action?: string;
15660
16019
  attempts?: number;
15661
- connection_id: string;
16020
+ connection_id?: string | null;
15662
16021
  created_at?: string;
15663
16022
  customer_id?: string | null;
15664
16023
  external_id?: string | null;
@@ -15666,7 +16025,7 @@ export type Database = {
15666
16025
  idempotency_key: string;
15667
16026
  last_error?: string | null;
15668
16027
  next_attempt_at?: string;
15669
- office_code: string;
16028
+ office_code?: string | null;
15670
16029
  payload: Json;
15671
16030
  status?: string;
15672
16031
  updated_at?: string;
@@ -15674,7 +16033,7 @@ export type Database = {
15674
16033
  Update: {
15675
16034
  action?: string;
15676
16035
  attempts?: number;
15677
- connection_id?: string;
16036
+ connection_id?: string | null;
15678
16037
  created_at?: string;
15679
16038
  customer_id?: string | null;
15680
16039
  external_id?: string | null;
@@ -15682,7 +16041,7 @@ export type Database = {
15682
16041
  idempotency_key?: string;
15683
16042
  last_error?: string | null;
15684
16043
  next_attempt_at?: string;
15685
- office_code?: string;
16044
+ office_code?: string | null;
15686
16045
  payload?: Json;
15687
16046
  status?: string;
15688
16047
  updated_at?: string;
@@ -15829,41 +16188,6 @@ export type Database = {
15829
16188
  }
15830
16189
  ];
15831
16190
  };
15832
- twinfield_token_refresh_log: {
15833
- Row: {
15834
- attempted_at: string;
15835
- connection_id: string;
15836
- error: string | null;
15837
- expires_at: string | null;
15838
- id: string;
15839
- ok: boolean;
15840
- };
15841
- Insert: {
15842
- attempted_at?: string;
15843
- connection_id: string;
15844
- error?: string | null;
15845
- expires_at?: string | null;
15846
- id?: string;
15847
- ok: boolean;
15848
- };
15849
- Update: {
15850
- attempted_at?: string;
15851
- connection_id?: string;
15852
- error?: string | null;
15853
- expires_at?: string | null;
15854
- id?: string;
15855
- ok?: boolean;
15856
- };
15857
- Relationships: [
15858
- {
15859
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
15860
- columns: ["connection_id"];
15861
- isOneToOne: false;
15862
- referencedRelation: "twinfield_connections";
15863
- referencedColumns: ["id"];
15864
- }
15865
- ];
15866
- };
15867
16191
  uren_cao_profiles: {
15868
16192
  Row: {
15869
16193
  break_minutes: number | null;
@@ -18371,6 +18695,85 @@ export type Database = {
18371
18695
  };
18372
18696
  Returns: Json;
18373
18697
  };
18698
+ claim_floriday_stock_queue: {
18699
+ Args: {
18700
+ p_limit?: number;
18701
+ p_worker?: string;
18702
+ };
18703
+ Returns: {
18704
+ attempts: number;
18705
+ connection_id: string;
18706
+ created_at: string;
18707
+ desired_available: boolean | null;
18708
+ gateway_attempt_id: string | null;
18709
+ id: string;
18710
+ last_error: string | null;
18711
+ locked_at: string | null;
18712
+ locked_by: string | null;
18713
+ next_attempt_at: string;
18714
+ number_of_pieces: number;
18715
+ sent_at: string | null;
18716
+ status: string;
18717
+ superseded_by: string | null;
18718
+ trade_item_id: string;
18719
+ updated_at: string;
18720
+ user_id: string;
18721
+ }[];
18722
+ SetofOptions: {
18723
+ from: "*";
18724
+ to: "floriday_continuous_stock_queue";
18725
+ isOneToOne: false;
18726
+ isSetofReturn: true;
18727
+ };
18728
+ };
18729
+ claim_logistics_tasks: {
18730
+ Args: {
18731
+ _limit?: number;
18732
+ _owner_module: string;
18733
+ _stale_minutes?: number;
18734
+ _task_type: string;
18735
+ _worker: string;
18736
+ };
18737
+ Returns: {
18738
+ attempt_log: Json;
18739
+ attempts: number;
18740
+ buffer_ref: string | null;
18741
+ claimed_at: string | null;
18742
+ claimed_by: string | null;
18743
+ completed_at: string | null;
18744
+ created_at: string;
18745
+ depends_on: string[];
18746
+ due_at: string | null;
18747
+ error: string | null;
18748
+ id: string;
18749
+ last_error: string | null;
18750
+ next_attempt_at: string | null;
18751
+ order_ref: string;
18752
+ owner_module: string;
18753
+ payload: Json;
18754
+ plan_run_id: string | null;
18755
+ planned_end: string | null;
18756
+ planned_start: string | null;
18757
+ priority: number;
18758
+ result: Json | null;
18759
+ rule_config_id: string | null;
18760
+ rule_version: number | null;
18761
+ sequence: number;
18762
+ shadow: boolean;
18763
+ started_at: string | null;
18764
+ status: string;
18765
+ strategy_id: string | null;
18766
+ task_type: string;
18767
+ updated_at: string;
18768
+ user_id: string;
18769
+ }[];
18770
+ SetofOptions: {
18771
+ from: "*";
18772
+ to: "logistics_tasks";
18773
+ isOneToOne: false;
18774
+ isSetofReturn: true;
18775
+ };
18776
+ };
18374
18777
  claim_print_jobs: {
18375
18778
  Args: {
18376
18779
  _agent_id: string;
@@ -18408,32 +18811,6 @@ export type Database = {
18408
18811
  };
18409
18812
  };
18410
18813
  claim_twinfield_push_batch: {
18411
- Args: {
18412
- _limit?: number;
18413
- };
18414
- Returns: {
18415
- action: string;
18416
- attempts: number;
18417
- connection_id: string;
18418
- created_at: string;
18419
- customer_id: string | null;
18420
- external_id: string | null;
18421
- id: string;
18422
- idempotency_key: string;
18423
- last_error: string | null;
18424
- next_attempt_at: string;
18425
- office_code: string;
18426
- payload: Json;
18427
- status: string;
18428
- updated_at: string;
18429
- }[];
18430
- SetofOptions: {
18431
- from: "*";
18432
- to: "twinfield_push_queue";
18433
- isOneToOne: false;
18434
- isSetofReturn: true;
18435
- };
18436
- } | {
18437
18814
  Args: {
18438
18815
  _customer_id?: string;
18439
18816
  _limit?: number;
@@ -18441,7 +18818,7 @@ export type Database = {
18441
18818
  Returns: {
18442
18819
  action: string;
18443
18820
  attempts: number;
18444
- connection_id: string;
18821
+ connection_id: string | null;
18445
18822
  created_at: string;
18446
18823
  customer_id: string | null;
18447
18824
  external_id: string | null;
@@ -18449,7 +18826,7 @@ export type Database = {
18449
18826
  idempotency_key: string;
18450
18827
  last_error: string | null;
18451
18828
  next_attempt_at: string;
18452
- office_code: string;
18829
+ office_code: string | null;
18453
18830
  payload: Json;
18454
18831
  status: string;
18455
18832
  updated_at: string;
@@ -18461,10 +18838,24 @@ export type Database = {
18461
18838
  isSetofReturn: true;
18462
18839
  };
18463
18840
  };
18841
+ cleanup_floriday_stock_queue: {
18842
+ Args: never;
18843
+ Returns: undefined;
18844
+ };
18464
18845
  cleanup_old_bookings: {
18465
18846
  Args: never;
18466
18847
  Returns: undefined;
18467
18848
  };
18849
+ complete_floriday_stock_queue: {
18850
+ Args: {
18851
+ p_attempt_id?: string;
18852
+ p_error?: string;
18853
+ p_id: string;
18854
+ p_ok: boolean;
18855
+ p_permanent?: boolean;
18856
+ };
18857
+ Returns: undefined;
18858
+ };
18468
18859
  consume_bom_for_production: {
18469
18860
  Args: {
18470
18861
  p_connection_id: string;
@@ -18637,6 +19028,21 @@ export type Database = {
18637
19028
  Args: never;
18638
19029
  Returns: string;
18639
19030
  };
19031
+ exact_auth_consume_calls: {
19032
+ Args: {
19033
+ _account_key: string;
19034
+ _calls?: number;
19035
+ _day_limit?: number;
19036
+ _division_code: number;
19037
+ _environment: string;
19038
+ _minute_limit?: number;
19039
+ };
19040
+ Returns: Json;
19041
+ };
19042
+ exact_auth_prune_sync_log: {
19043
+ Args: never;
19044
+ Returns: undefined;
19045
+ };
18640
19046
  exact_decrypt: {
18641
19047
  Args: {
18642
19048
  cipher: string;
@@ -18846,6 +19252,10 @@ export type Database = {
18846
19252
  };
18847
19253
  Returns: number;
18848
19254
  };
19255
+ get_offer_branding: {
19256
+ Args: never;
19257
+ Returns: Json;
19258
+ };
18849
19259
  get_offer_by_link_code: {
18850
19260
  Args: {
18851
19261
  p_code: string;
@@ -19137,6 +19547,8 @@ export type Database = {
19137
19547
  p_worker?: string;
19138
19548
  };
19139
19549
  Returns: {
19550
+ attempt_log: Json;
19551
+ attempts: number;
19140
19552
  buffer_ref: string | null;
19141
19553
  claimed_at: string | null;
19142
19554
  claimed_by: string | null;
@@ -19146,6 +19558,8 @@ export type Database = {
19146
19558
  due_at: string | null;
19147
19559
  error: string | null;
19148
19560
  id: string;
19561
+ last_error: string | null;
19562
+ next_attempt_at: string | null;
19149
19563
  order_ref: string;
19150
19564
  owner_module: string;
19151
19565
  payload: Json;
@@ -19178,6 +19592,8 @@ export type Database = {
19178
19592
  p_worker?: string;
19179
19593
  };
19180
19594
  Returns: {
19595
+ attempt_log: Json;
19596
+ attempts: number;
19181
19597
  buffer_ref: string | null;
19182
19598
  claimed_at: string | null;
19183
19599
  claimed_by: string | null;
@@ -19187,6 +19603,8 @@ export type Database = {
19187
19603
  due_at: string | null;
19188
19604
  error: string | null;
19189
19605
  id: string;
19606
+ last_error: string | null;
19607
+ next_attempt_at: string | null;
19190
19608
  order_ref: string;
19191
19609
  owner_module: string;
19192
19610
  payload: Json;
@@ -19219,6 +19637,8 @@ export type Database = {
19219
19637
  p_task_id: string;
19220
19638
  };
19221
19639
  Returns: {
19640
+ attempt_log: Json;
19641
+ attempts: number;
19222
19642
  buffer_ref: string | null;
19223
19643
  claimed_at: string | null;
19224
19644
  claimed_by: string | null;
@@ -19228,6 +19648,8 @@ export type Database = {
19228
19648
  due_at: string | null;
19229
19649
  error: string | null;
19230
19650
  id: string;
19651
+ last_error: string | null;
19652
+ next_attempt_at: string | null;
19231
19653
  order_ref: string;
19232
19654
  owner_module: string;
19233
19655
  payload: Json;
@@ -19309,6 +19731,8 @@ export type Database = {
19309
19731
  p_task_id: string;
19310
19732
  };
19311
19733
  Returns: {
19734
+ attempt_log: Json;
19735
+ attempts: number;
19312
19736
  buffer_ref: string | null;
19313
19737
  claimed_at: string | null;
19314
19738
  claimed_by: string | null;
@@ -19318,6 +19742,8 @@ export type Database = {
19318
19742
  due_at: string | null;
19319
19743
  error: string | null;
19320
19744
  id: string;
19745
+ last_error: string | null;
19746
+ next_attempt_at: string | null;
19321
19747
  order_ref: string;
19322
19748
  owner_module: string;
19323
19749
  payload: Json;
@@ -20071,6 +20497,10 @@ export type Database = {
20071
20497
  Args: never;
20072
20498
  Returns: undefined;
20073
20499
  };
20500
+ run_logistics_tasks_dispatch: {
20501
+ Args: never;
20502
+ Returns: undefined;
20503
+ };
20074
20504
  run_twinfield_queue_tick: {
20075
20505
  Args: never;
20076
20506
  Returns: undefined;
@@ -20311,6 +20741,13 @@ export type Database = {
20311
20741
  };
20312
20742
  Returns: number;
20313
20743
  };
20744
+ schedule_floriday_stock_queue_process: {
20745
+ Args: {
20746
+ p_apikey: string;
20747
+ p_url: string;
20748
+ };
20749
+ Returns: number;
20750
+ };
20314
20751
  schedule_floriday_token_refresh: {
20315
20752
  Args: {
20316
20753
  p_apikey: string;
@@ -20458,18 +20895,6 @@ export type Database = {
20458
20895
  };
20459
20896
  Returns: boolean;
20460
20897
  };
20461
- twinfield_decrypt: {
20462
- Args: {
20463
- cipher: string;
20464
- };
20465
- Returns: string;
20466
- };
20467
- twinfield_encrypt: {
20468
- Args: {
20469
- plain: string;
20470
- };
20471
- Returns: string;
20472
- };
20473
20898
  twinfield_register_cron: {
20474
20899
  Args: {
20475
20900
  apikey?: string;
@@ -20512,7 +20937,7 @@ export type Database = {
20512
20937
  };
20513
20938
  Enums: {
20514
20939
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20515
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur" | "planner" | "administratie" | "ai_admin";
20940
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20516
20941
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20517
20942
  doc_orientation: "portrait" | "landscape";
20518
20943
  exact_env: "staging" | "live";
@@ -20583,7 +21008,7 @@ export declare const Constants: {
20583
21008
  readonly public: {
20584
21009
  readonly Enums: {
20585
21010
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
20586
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie", "monteur", "planner", "administratie", "ai_admin"];
21011
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
20587
21012
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
20588
21013
  readonly doc_orientation: readonly ["portrait", "landscape"];
20589
21014
  readonly exact_env: readonly ["staging", "live"];