@flowselections/layout-maker 1.3.3 → 1.6.5

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 (112) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfdrukKnop.d.ts +3 -1
  3. package/dist-lib/components/AfdrukKnop.d.ts.map +1 -1
  4. package/dist-lib/components/AfdrukKnop.js +24 -3
  5. package/dist-lib/components/ComputersLijst.d.ts +23 -0
  6. package/dist-lib/components/ComputersLijst.d.ts.map +1 -0
  7. package/dist-lib/components/ComputersLijst.js +75 -0
  8. package/dist-lib/components/LayoutsPage.d.ts.map +1 -1
  9. package/dist-lib/components/LayoutsPage.js +2 -0
  10. package/dist-lib/components/LogosPage.d.ts.map +1 -1
  11. package/dist-lib/components/LogosPage.js +2 -0
  12. package/dist-lib/components/NetwerkPrintersDialog.d.ts +8 -0
  13. package/dist-lib/components/NetwerkPrintersDialog.d.ts.map +1 -0
  14. package/dist-lib/components/NetwerkPrintersDialog.js +79 -0
  15. package/dist-lib/components/PrintProgrammaUitleg.d.ts +5 -0
  16. package/dist-lib/components/PrintProgrammaUitleg.d.ts.map +1 -0
  17. package/dist-lib/components/PrintProgrammaUitleg.js +19 -0
  18. package/dist-lib/components/PrintQueuePage.d.ts.map +1 -1
  19. package/dist-lib/components/PrintQueuePage.js +37 -3
  20. package/dist-lib/components/PrinterKaart.d.ts +17 -0
  21. package/dist-lib/components/PrinterKaart.d.ts.map +1 -0
  22. package/dist-lib/components/PrinterKaart.js +14 -0
  23. package/dist-lib/components/PrinterSetupWizard.d.ts +11 -1
  24. package/dist-lib/components/PrinterSetupWizard.d.ts.map +1 -1
  25. package/dist-lib/components/PrinterSetupWizard.js +134 -64
  26. package/dist-lib/components/PrinterStatsKaarten.d.ts +11 -0
  27. package/dist-lib/components/PrinterStatsKaarten.d.ts.map +1 -0
  28. package/dist-lib/components/PrinterStatsKaarten.js +8 -0
  29. package/dist-lib/components/PrintersPage.d.ts.map +1 -1
  30. package/dist-lib/components/PrintersPage.js +120 -49
  31. package/dist-lib/components/WerkplekConfiguratiePage.d.ts +2 -0
  32. package/dist-lib/components/WerkplekConfiguratiePage.d.ts.map +1 -0
  33. package/dist-lib/components/WerkplekConfiguratiePage.js +101 -0
  34. package/dist-lib/components/WerkplekkenTabel.d.ts +14 -0
  35. package/dist-lib/components/WerkplekkenTabel.d.ts.map +1 -0
  36. package/dist-lib/components/WerkplekkenTabel.js +16 -0
  37. package/dist-lib/index.d.ts +11 -0
  38. package/dist-lib/index.d.ts.map +1 -1
  39. package/dist-lib/index.js +11 -0
  40. package/dist-lib/integrations/supabase/auth-middleware.d.ts +925 -34
  41. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/client.server.d.ts +925 -34
  43. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  44. package/dist-lib/integrations/supabase/types.d.ts +920 -29
  45. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/types.js +12 -1
  47. package/dist-lib/lib/aiLayout.functions.d.ts +925 -34
  48. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/aiLayout.server.js +9 -9
  50. package/dist-lib/lib/browserPrint.d.ts +1 -0
  51. package/dist-lib/lib/browserPrint.d.ts.map +1 -1
  52. package/dist-lib/lib/browserPrint.js +6 -6
  53. package/dist-lib/lib/centralAuth.server.d.ts +13 -0
  54. package/dist-lib/lib/centralAuth.server.d.ts.map +1 -0
  55. package/dist-lib/lib/centralAuth.server.js +60 -0
  56. package/dist-lib/lib/directPrint.d.ts +26 -0
  57. package/dist-lib/lib/directPrint.d.ts.map +1 -0
  58. package/dist-lib/lib/directPrint.js +65 -0
  59. package/dist-lib/lib/documentPdf.d.ts +11 -0
  60. package/dist-lib/lib/documentPdf.d.ts.map +1 -0
  61. package/dist-lib/lib/documentPdf.js +62 -0
  62. package/dist-lib/lib/htmlNaarPdf.server.d.ts +14 -0
  63. package/dist-lib/lib/htmlNaarPdf.server.d.ts.map +1 -0
  64. package/dist-lib/lib/htmlNaarPdf.server.js +34 -0
  65. package/dist-lib/lib/htmlPdf.server.d.ts +29 -0
  66. package/dist-lib/lib/htmlPdf.server.d.ts.map +1 -0
  67. package/dist-lib/lib/htmlPdf.server.js +1009 -0
  68. package/dist-lib/lib/layoutPreview.d.ts +1 -1
  69. package/dist-lib/lib/layoutPreview.d.ts.map +1 -1
  70. package/dist-lib/lib/layoutPreview.js +9 -9
  71. package/dist-lib/lib/logoLibrary.d.ts +1 -1
  72. package/dist-lib/lib/logoLibrary.js +5 -3
  73. package/dist-lib/lib/orderData.server.d.ts +15 -0
  74. package/dist-lib/lib/orderData.server.d.ts.map +1 -0
  75. package/dist-lib/lib/orderData.server.js +194 -0
  76. package/dist-lib/lib/pakbonBuilder.d.ts.map +1 -1
  77. package/dist-lib/lib/pakbonBuilder.js +22 -2
  78. package/dist-lib/lib/pakbonHtml.js +50 -50
  79. package/dist-lib/lib/printQueue.server.d.ts +31 -0
  80. package/dist-lib/lib/printQueue.server.d.ts.map +1 -0
  81. package/dist-lib/lib/printQueue.server.js +435 -0
  82. package/dist-lib/lib/printService.functions.d.ts +103742 -0
  83. package/dist-lib/lib/printService.functions.d.ts.map +1 -0
  84. package/dist-lib/lib/printService.functions.js +94 -0
  85. package/dist-lib/lib/printService.server.d.ts +31 -0
  86. package/dist-lib/lib/printService.server.d.ts.map +1 -0
  87. package/dist-lib/lib/printService.server.js +110 -0
  88. package/dist-lib/lib/productiebonHtml.d.ts +18 -0
  89. package/dist-lib/lib/productiebonHtml.d.ts.map +1 -0
  90. package/dist-lib/lib/productiebonHtml.js +166 -0
  91. package/dist-lib/lib/profielHtml.d.ts +14 -0
  92. package/dist-lib/lib/profielHtml.d.ts.map +1 -0
  93. package/dist-lib/lib/profielHtml.js +256 -0
  94. package/dist-lib/lib/runnerRegistry.server.d.ts +10 -0
  95. package/dist-lib/lib/runnerRegistry.server.d.ts.map +1 -0
  96. package/dist-lib/lib/runnerRegistry.server.js +79 -0
  97. package/dist-lib/lib/supabaseAdmin.server.d.ts +6 -0
  98. package/dist-lib/lib/supabaseAdmin.server.d.ts.map +1 -0
  99. package/dist-lib/lib/supabaseAdmin.server.js +43 -0
  100. package/dist-lib/lib/testpagina.d.ts +2 -0
  101. package/dist-lib/lib/testpagina.d.ts.map +1 -0
  102. package/dist-lib/lib/testpagina.js +31 -0
  103. package/dist-lib/lib/useAutoRefresh.d.ts +8 -0
  104. package/dist-lib/lib/useAutoRefresh.d.ts.map +1 -0
  105. package/dist-lib/lib/useAutoRefresh.js +44 -0
  106. package/dist-lib/lib/useDocumentData.d.ts +4 -3
  107. package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
  108. package/dist-lib/lib/useDocumentData.js +10 -7
  109. package/dist-lib/lib/useNetwerkPrinters.d.ts +12 -0
  110. package/dist-lib/lib/useNetwerkPrinters.d.ts.map +1 -0
  111. package/dist-lib/lib/useNetwerkPrinters.js +26 -0
  112. package/package.json +11 -3
@@ -1719,7 +1719,7 @@ export type Database = {
1719
1719
  city: string | null;
1720
1720
  country: string | null;
1721
1721
  created_at: string;
1722
- customer_id: string | null;
1722
+ customer_id: string;
1723
1723
  external_key: string | null;
1724
1724
  external_provider: string | null;
1725
1725
  floriday_location_id: string | null;
@@ -1743,7 +1743,7 @@ export type Database = {
1743
1743
  city?: string | null;
1744
1744
  country?: string | null;
1745
1745
  created_at?: string;
1746
- customer_id?: string | null;
1746
+ customer_id: string;
1747
1747
  external_key?: string | null;
1748
1748
  external_provider?: string | null;
1749
1749
  floriday_location_id?: string | null;
@@ -1767,7 +1767,7 @@ export type Database = {
1767
1767
  city?: string | null;
1768
1768
  country?: string | null;
1769
1769
  created_at?: string;
1770
- customer_id?: string | null;
1770
+ customer_id?: string;
1771
1771
  external_key?: string | null;
1772
1772
  external_provider?: string | null;
1773
1773
  floriday_location_id?: string | null;
@@ -3627,6 +3627,120 @@ 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
+ };
3630
3744
  exact_auth_divisions: {
3631
3745
  Row: {
3632
3746
  account_key: string;
@@ -3660,6 +3774,327 @@ export type Database = {
3660
3774
  };
3661
3775
  Relationships: [];
3662
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
+ };
3663
4098
  exact_bulk_operation_items: {
3664
4099
  Row: {
3665
4100
  attempts: number;
@@ -5398,12 +5833,17 @@ export type Database = {
5398
5833
  attempts: number;
5399
5834
  connection_id: string;
5400
5835
  created_at: string;
5836
+ desired_available: boolean | null;
5401
5837
  gateway_attempt_id: string | null;
5402
5838
  id: string;
5403
5839
  last_error: string | null;
5840
+ locked_at: string | null;
5841
+ locked_by: string | null;
5842
+ next_attempt_at: string;
5404
5843
  number_of_pieces: number;
5405
5844
  sent_at: string | null;
5406
5845
  status: string;
5846
+ superseded_by: string | null;
5407
5847
  trade_item_id: string;
5408
5848
  updated_at: string;
5409
5849
  user_id: string;
@@ -5412,12 +5852,17 @@ export type Database = {
5412
5852
  attempts?: number;
5413
5853
  connection_id: string;
5414
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5415
5856
  gateway_attempt_id?: string | null;
5416
5857
  id?: string;
5417
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5418
5862
  number_of_pieces?: number;
5419
5863
  sent_at?: string | null;
5420
5864
  status?: string;
5865
+ superseded_by?: string | null;
5421
5866
  trade_item_id: string;
5422
5867
  updated_at?: string;
5423
5868
  user_id: string;
@@ -5426,12 +5871,17 @@ export type Database = {
5426
5871
  attempts?: number;
5427
5872
  connection_id?: string;
5428
5873
  created_at?: string;
5874
+ desired_available?: boolean | null;
5429
5875
  gateway_attempt_id?: string | null;
5430
5876
  id?: string;
5431
5877
  last_error?: string | null;
5878
+ locked_at?: string | null;
5879
+ locked_by?: string | null;
5880
+ next_attempt_at?: string;
5432
5881
  number_of_pieces?: number;
5433
5882
  sent_at?: string | null;
5434
5883
  status?: string;
5884
+ superseded_by?: string | null;
5435
5885
  trade_item_id?: string;
5436
5886
  updated_at?: string;
5437
5887
  user_id?: string;
@@ -8274,6 +8724,69 @@ export type Database = {
8274
8724
  };
8275
8725
  Relationships: [];
8276
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
+ };
8277
8790
  logistics_formulas: {
8278
8791
  Row: {
8279
8792
  created_at: string;
@@ -8896,6 +9409,8 @@ export type Database = {
8896
9409
  };
8897
9410
  logistics_tasks: {
8898
9411
  Row: {
9412
+ attempt_log: Json;
9413
+ attempts: number;
8899
9414
  buffer_ref: string | null;
8900
9415
  claimed_at: string | null;
8901
9416
  claimed_by: string | null;
@@ -8905,6 +9420,8 @@ export type Database = {
8905
9420
  due_at: string | null;
8906
9421
  error: string | null;
8907
9422
  id: string;
9423
+ last_error: string | null;
9424
+ next_attempt_at: string | null;
8908
9425
  order_ref: string;
8909
9426
  owner_module: string;
8910
9427
  payload: Json;
@@ -8925,6 +9442,8 @@ export type Database = {
8925
9442
  user_id: string;
8926
9443
  };
8927
9444
  Insert: {
9445
+ attempt_log?: Json;
9446
+ attempts?: number;
8928
9447
  buffer_ref?: string | null;
8929
9448
  claimed_at?: string | null;
8930
9449
  claimed_by?: string | null;
@@ -8934,6 +9453,8 @@ export type Database = {
8934
9453
  due_at?: string | null;
8935
9454
  error?: string | null;
8936
9455
  id?: string;
9456
+ last_error?: string | null;
9457
+ next_attempt_at?: string | null;
8937
9458
  order_ref: string;
8938
9459
  owner_module: string;
8939
9460
  payload?: Json;
@@ -8954,6 +9475,8 @@ export type Database = {
8954
9475
  user_id?: string;
8955
9476
  };
8956
9477
  Update: {
9478
+ attempt_log?: Json;
9479
+ attempts?: number;
8957
9480
  buffer_ref?: string | null;
8958
9481
  claimed_at?: string | null;
8959
9482
  claimed_by?: string | null;
@@ -8963,6 +9486,8 @@ export type Database = {
8963
9486
  due_at?: string | null;
8964
9487
  error?: string | null;
8965
9488
  id?: string;
9489
+ last_error?: string | null;
9490
+ next_attempt_at?: string | null;
8966
9491
  order_ref?: string;
8967
9492
  owner_module?: string;
8968
9493
  payload?: Json;
@@ -10358,6 +10883,7 @@ export type Database = {
10358
10883
  };
10359
10884
  offer_settings: {
10360
10885
  Row: {
10886
+ brand_name: string | null;
10361
10887
  button_color: string;
10362
10888
  created_at: string;
10363
10889
  default_countries: string[];
@@ -10379,6 +10905,7 @@ export type Database = {
10379
10905
  updated_at: string;
10380
10906
  };
10381
10907
  Insert: {
10908
+ brand_name?: string | null;
10382
10909
  button_color?: string;
10383
10910
  created_at?: string;
10384
10911
  default_countries?: string[];
@@ -10400,6 +10927,7 @@ export type Database = {
10400
10927
  updated_at?: string;
10401
10928
  };
10402
10929
  Update: {
10930
+ brand_name?: string | null;
10403
10931
  button_color?: string;
10404
10932
  created_at?: string;
10405
10933
  default_countries?: string[];
@@ -12183,22 +12711,27 @@ export type Database = {
12183
12711
  created_at: string;
12184
12712
  documentnaam: string;
12185
12713
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12714
+ extern_job_id: string | null;
12186
12715
  foutmelding: string | null;
12187
12716
  gebruiker_id: string | null;
12188
12717
  gebruiker_naam: string;
12189
12718
  gestart_op: string | null;
12190
12719
  id: string;
12720
+ idempotentie_sleutel: string | null;
12191
12721
  is_herprint: boolean;
12192
12722
  kopieen: number;
12193
12723
  layout_id: string | null;
12194
12724
  opgepakt_op: string | null;
12195
12725
  paginas: number;
12196
12726
  payload: Json;
12727
+ pdf_base64: string | null;
12728
+ pdf_url: string | null;
12197
12729
  pogingen: number;
12198
12730
  printer_id: string | null;
12199
12731
  render_html: string | null;
12200
12732
  status: Database["public"]["Enums"]["print_job_status"];
12201
12733
  updated_at: string;
12734
+ volgende_poging: string | null;
12202
12735
  voltooid_op: string | null;
12203
12736
  };
12204
12737
  Insert: {
@@ -12207,22 +12740,27 @@ export type Database = {
12207
12740
  created_at?: string;
12208
12741
  documentnaam?: string;
12209
12742
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12743
+ extern_job_id?: string | null;
12210
12744
  foutmelding?: string | null;
12211
12745
  gebruiker_id?: string | null;
12212
12746
  gebruiker_naam?: string;
12213
12747
  gestart_op?: string | null;
12214
12748
  id?: string;
12749
+ idempotentie_sleutel?: string | null;
12215
12750
  is_herprint?: boolean;
12216
12751
  kopieen?: number;
12217
12752
  layout_id?: string | null;
12218
12753
  opgepakt_op?: string | null;
12219
12754
  paginas?: number;
12220
12755
  payload?: Json;
12756
+ pdf_base64?: string | null;
12757
+ pdf_url?: string | null;
12221
12758
  pogingen?: number;
12222
12759
  printer_id?: string | null;
12223
12760
  render_html?: string | null;
12224
12761
  status?: Database["public"]["Enums"]["print_job_status"];
12225
12762
  updated_at?: string;
12763
+ volgende_poging?: string | null;
12226
12764
  voltooid_op?: string | null;
12227
12765
  };
12228
12766
  Update: {
@@ -12231,47 +12769,103 @@ export type Database = {
12231
12769
  created_at?: string;
12232
12770
  documentnaam?: string;
12233
12771
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12772
+ extern_job_id?: string | null;
12234
12773
  foutmelding?: string | null;
12235
12774
  gebruiker_id?: string | null;
12236
12775
  gebruiker_naam?: string;
12237
12776
  gestart_op?: string | null;
12238
12777
  id?: string;
12778
+ idempotentie_sleutel?: string | null;
12239
12779
  is_herprint?: boolean;
12240
12780
  kopieen?: number;
12241
12781
  layout_id?: string | null;
12242
12782
  opgepakt_op?: string | null;
12243
12783
  paginas?: number;
12244
12784
  payload?: Json;
12785
+ pdf_base64?: string | null;
12786
+ pdf_url?: string | null;
12245
12787
  pogingen?: number;
12246
12788
  printer_id?: string | null;
12247
12789
  render_html?: string | null;
12248
12790
  status?: Database["public"]["Enums"]["print_job_status"];
12249
12791
  updated_at?: string;
12250
- voltooid_op?: string | null;
12792
+ volgende_poging?: string | null;
12793
+ voltooid_op?: string | null;
12794
+ };
12795
+ Relationships: [
12796
+ {
12797
+ foreignKeyName: "print_jobs_agent_id_fkey";
12798
+ columns: ["agent_id"];
12799
+ isOneToOne: false;
12800
+ referencedRelation: "print_agents";
12801
+ referencedColumns: ["id"];
12802
+ },
12803
+ {
12804
+ foreignKeyName: "print_jobs_layout_id_fkey";
12805
+ columns: ["layout_id"];
12806
+ isOneToOne: false;
12807
+ referencedRelation: "document_layouts";
12808
+ referencedColumns: ["id"];
12809
+ },
12810
+ {
12811
+ foreignKeyName: "print_jobs_printer_id_fkey";
12812
+ columns: ["printer_id"];
12813
+ isOneToOne: false;
12814
+ referencedRelation: "printers";
12815
+ referencedColumns: ["id"];
12816
+ }
12817
+ ];
12818
+ };
12819
+ print_queue_runners: {
12820
+ Row: {
12821
+ actief: boolean;
12822
+ basis_url: string;
12823
+ created_at: string;
12824
+ id: string;
12825
+ laatst_gezien: string;
12826
+ tick_sleutel: string;
12827
+ updated_at: string;
12828
+ };
12829
+ Insert: {
12830
+ actief?: boolean;
12831
+ basis_url: string;
12832
+ created_at?: string;
12833
+ id?: string;
12834
+ laatst_gezien?: string;
12835
+ tick_sleutel?: string;
12836
+ updated_at?: string;
12837
+ };
12838
+ Update: {
12839
+ actief?: boolean;
12840
+ basis_url?: string;
12841
+ created_at?: string;
12842
+ id?: string;
12843
+ laatst_gezien?: string;
12844
+ tick_sleutel?: string;
12845
+ updated_at?: string;
12846
+ };
12847
+ Relationships: [];
12848
+ };
12849
+ print_queue_settings: {
12850
+ Row: {
12851
+ created_at: string;
12852
+ dubbel_venster_minuten: number;
12853
+ id: string;
12854
+ updated_at: string;
12855
+ };
12856
+ Insert: {
12857
+ created_at?: string;
12858
+ dubbel_venster_minuten?: number;
12859
+ id?: string;
12860
+ updated_at?: string;
12251
12861
  };
12252
- Relationships: [
12253
- {
12254
- foreignKeyName: "print_jobs_agent_id_fkey";
12255
- columns: ["agent_id"];
12256
- isOneToOne: false;
12257
- referencedRelation: "print_agents";
12258
- referencedColumns: ["id"];
12259
- },
12260
- {
12261
- foreignKeyName: "print_jobs_layout_id_fkey";
12262
- columns: ["layout_id"];
12263
- isOneToOne: false;
12264
- referencedRelation: "document_layouts";
12265
- referencedColumns: ["id"];
12266
- },
12267
- {
12268
- foreignKeyName: "print_jobs_printer_id_fkey";
12269
- columns: ["printer_id"];
12270
- isOneToOne: false;
12271
- referencedRelation: "printers";
12272
- referencedColumns: ["id"];
12273
- }
12274
- ];
12862
+ Update: {
12863
+ created_at?: string;
12864
+ dubbel_venster_minuten?: number;
12865
+ id?: string;
12866
+ updated_at?: string;
12867
+ };
12868
+ Relationships: [];
12275
12869
  };
12276
12870
  print_rules: {
12277
12871
  Row: {
@@ -12441,6 +13035,7 @@ export type Database = {
12441
13035
  agent_id: string | null;
12442
13036
  created_at: string;
12443
13037
  driver: string;
13038
+ extern_printer_id: string | null;
12444
13039
  id: string;
12445
13040
  ip_adres: string | null;
12446
13041
  laatst_gezien: string | null;
@@ -12462,6 +13057,7 @@ export type Database = {
12462
13057
  agent_id?: string | null;
12463
13058
  created_at?: string;
12464
13059
  driver?: string;
13060
+ extern_printer_id?: string | null;
12465
13061
  id?: string;
12466
13062
  ip_adres?: string | null;
12467
13063
  laatst_gezien?: string | null;
@@ -12483,6 +13079,7 @@ export type Database = {
12483
13079
  agent_id?: string | null;
12484
13080
  created_at?: string;
12485
13081
  driver?: string;
13082
+ extern_printer_id?: string | null;
12486
13083
  id?: string;
12487
13084
  ip_adres?: string | null;
12488
13085
  laatst_gezien?: string | null;
@@ -18230,6 +18827,125 @@ export type Database = {
18230
18827
  };
18231
18828
  Returns: Json;
18232
18829
  };
18830
+ claim_cloud_print_jobs: {
18831
+ Args: {
18832
+ _max?: number;
18833
+ };
18834
+ Returns: {
18835
+ agent_id: string | null;
18836
+ bron_job_id: string | null;
18837
+ created_at: string;
18838
+ documentnaam: string;
18839
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
18840
+ extern_job_id: string | null;
18841
+ foutmelding: string | null;
18842
+ gebruiker_id: string | null;
18843
+ gebruiker_naam: string;
18844
+ gestart_op: string | null;
18845
+ id: string;
18846
+ idempotentie_sleutel: string | null;
18847
+ is_herprint: boolean;
18848
+ kopieen: number;
18849
+ layout_id: string | null;
18850
+ opgepakt_op: string | null;
18851
+ paginas: number;
18852
+ payload: Json;
18853
+ pdf_base64: string | null;
18854
+ pdf_url: string | null;
18855
+ pogingen: number;
18856
+ printer_id: string | null;
18857
+ render_html: string | null;
18858
+ status: Database["public"]["Enums"]["print_job_status"];
18859
+ updated_at: string;
18860
+ volgende_poging: string | null;
18861
+ voltooid_op: string | null;
18862
+ }[];
18863
+ SetofOptions: {
18864
+ from: "*";
18865
+ to: "print_jobs";
18866
+ isOneToOne: false;
18867
+ isSetofReturn: true;
18868
+ };
18869
+ };
18870
+ claim_floriday_stock_queue: {
18871
+ Args: {
18872
+ p_limit?: number;
18873
+ p_worker?: string;
18874
+ };
18875
+ Returns: {
18876
+ attempts: number;
18877
+ connection_id: string;
18878
+ created_at: string;
18879
+ desired_available: boolean | null;
18880
+ gateway_attempt_id: string | null;
18881
+ id: string;
18882
+ last_error: string | null;
18883
+ locked_at: string | null;
18884
+ locked_by: string | null;
18885
+ next_attempt_at: string;
18886
+ number_of_pieces: number;
18887
+ sent_at: string | null;
18888
+ status: string;
18889
+ superseded_by: string | null;
18890
+ trade_item_id: string;
18891
+ updated_at: string;
18892
+ user_id: string;
18893
+ }[];
18894
+ SetofOptions: {
18895
+ from: "*";
18896
+ to: "floriday_continuous_stock_queue";
18897
+ isOneToOne: false;
18898
+ isSetofReturn: true;
18899
+ };
18900
+ };
18901
+ claim_logistics_tasks: {
18902
+ Args: {
18903
+ _limit?: number;
18904
+ _owner_module: string;
18905
+ _stale_minutes?: number;
18906
+ _task_type: string;
18907
+ _worker: string;
18908
+ };
18909
+ Returns: {
18910
+ attempt_log: Json;
18911
+ attempts: number;
18912
+ buffer_ref: string | null;
18913
+ claimed_at: string | null;
18914
+ claimed_by: string | null;
18915
+ completed_at: string | null;
18916
+ created_at: string;
18917
+ depends_on: string[];
18918
+ due_at: string | null;
18919
+ error: string | null;
18920
+ id: string;
18921
+ last_error: string | null;
18922
+ next_attempt_at: string | null;
18923
+ order_ref: string;
18924
+ owner_module: string;
18925
+ payload: Json;
18926
+ plan_run_id: string | null;
18927
+ planned_end: string | null;
18928
+ planned_start: string | null;
18929
+ priority: number;
18930
+ result: Json | null;
18931
+ rule_config_id: string | null;
18932
+ rule_version: number | null;
18933
+ sequence: number;
18934
+ shadow: boolean;
18935
+ started_at: string | null;
18936
+ status: string;
18937
+ strategy_id: string | null;
18938
+ task_type: string;
18939
+ updated_at: string;
18940
+ user_id: string;
18941
+ }[];
18942
+ SetofOptions: {
18943
+ from: "*";
18944
+ to: "logistics_tasks";
18945
+ isOneToOne: false;
18946
+ isSetofReturn: true;
18947
+ };
18948
+ };
18233
18949
  claim_print_jobs: {
18234
18950
  Args: {
18235
18951
  _agent_id: string;
@@ -18241,22 +18957,27 @@ export type Database = {
18241
18957
  created_at: string;
18242
18958
  documentnaam: string;
18243
18959
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18960
+ extern_job_id: string | null;
18244
18961
  foutmelding: string | null;
18245
18962
  gebruiker_id: string | null;
18246
18963
  gebruiker_naam: string;
18247
18964
  gestart_op: string | null;
18248
18965
  id: string;
18966
+ idempotentie_sleutel: string | null;
18249
18967
  is_herprint: boolean;
18250
18968
  kopieen: number;
18251
18969
  layout_id: string | null;
18252
18970
  opgepakt_op: string | null;
18253
18971
  paginas: number;
18254
18972
  payload: Json;
18973
+ pdf_base64: string | null;
18974
+ pdf_url: string | null;
18255
18975
  pogingen: number;
18256
18976
  printer_id: string | null;
18257
18977
  render_html: string | null;
18258
18978
  status: Database["public"]["Enums"]["print_job_status"];
18259
18979
  updated_at: string;
18980
+ volgende_poging: string | null;
18260
18981
  voltooid_op: string | null;
18261
18982
  }[];
18262
18983
  SetofOptions: {
@@ -18294,10 +19015,24 @@ export type Database = {
18294
19015
  isSetofReturn: true;
18295
19016
  };
18296
19017
  };
19018
+ cleanup_floriday_stock_queue: {
19019
+ Args: never;
19020
+ Returns: undefined;
19021
+ };
18297
19022
  cleanup_old_bookings: {
18298
19023
  Args: never;
18299
19024
  Returns: undefined;
18300
19025
  };
19026
+ complete_floriday_stock_queue: {
19027
+ Args: {
19028
+ p_attempt_id?: string;
19029
+ p_error?: string;
19030
+ p_id: string;
19031
+ p_ok: boolean;
19032
+ p_permanent?: boolean;
19033
+ };
19034
+ Returns: undefined;
19035
+ };
18301
19036
  consume_bom_for_production: {
18302
19037
  Args: {
18303
19038
  p_connection_id: string;
@@ -18470,6 +19205,21 @@ export type Database = {
18470
19205
  Args: never;
18471
19206
  Returns: string;
18472
19207
  };
19208
+ exact_auth_consume_calls: {
19209
+ Args: {
19210
+ _account_key: string;
19211
+ _calls?: number;
19212
+ _day_limit?: number;
19213
+ _division_code: number;
19214
+ _environment: string;
19215
+ _minute_limit?: number;
19216
+ };
19217
+ Returns: Json;
19218
+ };
19219
+ exact_auth_prune_sync_log: {
19220
+ Args: never;
19221
+ Returns: undefined;
19222
+ };
18473
19223
  exact_decrypt: {
18474
19224
  Args: {
18475
19225
  cipher: string;
@@ -18679,6 +19429,10 @@ export type Database = {
18679
19429
  };
18680
19430
  Returns: number;
18681
19431
  };
19432
+ get_offer_branding: {
19433
+ Args: never;
19434
+ Returns: Json;
19435
+ };
18682
19436
  get_offer_by_link_code: {
18683
19437
  Args: {
18684
19438
  p_code: string;
@@ -18970,6 +19724,8 @@ export type Database = {
18970
19724
  p_worker?: string;
18971
19725
  };
18972
19726
  Returns: {
19727
+ attempt_log: Json;
19728
+ attempts: number;
18973
19729
  buffer_ref: string | null;
18974
19730
  claimed_at: string | null;
18975
19731
  claimed_by: string | null;
@@ -18979,6 +19735,8 @@ export type Database = {
18979
19735
  due_at: string | null;
18980
19736
  error: string | null;
18981
19737
  id: string;
19738
+ last_error: string | null;
19739
+ next_attempt_at: string | null;
18982
19740
  order_ref: string;
18983
19741
  owner_module: string;
18984
19742
  payload: Json;
@@ -19011,6 +19769,8 @@ export type Database = {
19011
19769
  p_worker?: string;
19012
19770
  };
19013
19771
  Returns: {
19772
+ attempt_log: Json;
19773
+ attempts: number;
19014
19774
  buffer_ref: string | null;
19015
19775
  claimed_at: string | null;
19016
19776
  claimed_by: string | null;
@@ -19020,6 +19780,8 @@ export type Database = {
19020
19780
  due_at: string | null;
19021
19781
  error: string | null;
19022
19782
  id: string;
19783
+ last_error: string | null;
19784
+ next_attempt_at: string | null;
19023
19785
  order_ref: string;
19024
19786
  owner_module: string;
19025
19787
  payload: Json;
@@ -19052,6 +19814,8 @@ export type Database = {
19052
19814
  p_task_id: string;
19053
19815
  };
19054
19816
  Returns: {
19817
+ attempt_log: Json;
19818
+ attempts: number;
19055
19819
  buffer_ref: string | null;
19056
19820
  claimed_at: string | null;
19057
19821
  claimed_by: string | null;
@@ -19061,6 +19825,8 @@ export type Database = {
19061
19825
  due_at: string | null;
19062
19826
  error: string | null;
19063
19827
  id: string;
19828
+ last_error: string | null;
19829
+ next_attempt_at: string | null;
19064
19830
  order_ref: string;
19065
19831
  owner_module: string;
19066
19832
  payload: Json;
@@ -19142,6 +19908,8 @@ export type Database = {
19142
19908
  p_task_id: string;
19143
19909
  };
19144
19910
  Returns: {
19911
+ attempt_log: Json;
19912
+ attempts: number;
19145
19913
  buffer_ref: string | null;
19146
19914
  claimed_at: string | null;
19147
19915
  claimed_by: string | null;
@@ -19151,6 +19919,8 @@ export type Database = {
19151
19919
  due_at: string | null;
19152
19920
  error: string | null;
19153
19921
  id: string;
19922
+ last_error: string | null;
19923
+ next_attempt_at: string | null;
19154
19924
  order_ref: string;
19155
19925
  owner_module: string;
19156
19926
  payload: Json;
@@ -19177,6 +19947,51 @@ export type Database = {
19177
19947
  isSetofReturn: false;
19178
19948
  };
19179
19949
  };
19950
+ logistics_floriday_claim_pushes: {
19951
+ Args: {
19952
+ _lease_seconds?: number;
19953
+ _limit?: number;
19954
+ _worker?: string;
19955
+ };
19956
+ Returns: {
19957
+ attempts: number;
19958
+ fulfillment_order_id: string;
19959
+ id: string;
19960
+ last_sent_hash: string;
19961
+ order_ref: string;
19962
+ payload: Json;
19963
+ payload_hash: string;
19964
+ revision: number;
19965
+ }[];
19966
+ };
19967
+ logistics_floriday_finish_push: {
19968
+ Args: {
19969
+ _error?: string;
19970
+ _fulfillment_order_id?: string;
19971
+ _id: string;
19972
+ _max_age_hours?: number;
19973
+ _max_attempts?: number;
19974
+ _ok: boolean;
19975
+ _permanent?: boolean;
19976
+ _revision: number;
19977
+ _sent_hash?: string;
19978
+ };
19979
+ Returns: string;
19980
+ };
19981
+ logistics_floriday_prune_pushes: {
19982
+ Args: {
19983
+ _days?: number;
19984
+ };
19985
+ Returns: number;
19986
+ };
19987
+ logistics_floriday_queue_push: {
19988
+ Args: {
19989
+ _order_ref: string;
19990
+ _payload?: Json;
19991
+ _payload_hash?: string;
19992
+ };
19993
+ Returns: string;
19994
+ };
19180
19995
  logistics_live_carriers: {
19181
19996
  Args: {
19182
19997
  p_order_ref: string;
@@ -19524,6 +20339,15 @@ export type Database = {
19524
20339
  };
19525
20340
  Returns: string;
19526
20341
  };
20342
+ pick_active_printers: {
20343
+ Args: never;
20344
+ Returns: {
20345
+ id: string;
20346
+ locatie: string;
20347
+ naam: string;
20348
+ online: boolean;
20349
+ }[];
20350
+ };
19527
20351
  pick_claim_document: {
19528
20352
  Args: {
19529
20353
  _queue_item_id: string;
@@ -19710,6 +20534,52 @@ export type Database = {
19710
20534
  };
19711
20535
  Returns: undefined;
19712
20536
  };
20537
+ pick_reset_print: {
20538
+ Args: {
20539
+ _queue_item_id: string;
20540
+ _session_id: string;
20541
+ };
20542
+ Returns: {
20543
+ announced_at: string;
20544
+ assigned_user_id: string | null;
20545
+ barcode: string | null;
20546
+ cancelled_at: string | null;
20547
+ cart_count: number;
20548
+ completed_at: string | null;
20549
+ country_code: string | null;
20550
+ created_at: string;
20551
+ customer_name: string | null;
20552
+ delivery_address: string | null;
20553
+ document_number: string | null;
20554
+ document_type_id: string | null;
20555
+ due_at: string | null;
20556
+ id: string;
20557
+ is_urgent: boolean;
20558
+ line_count: number;
20559
+ order_number: string | null;
20560
+ order_type: string | null;
20561
+ payload: Json;
20562
+ print_count: number;
20563
+ print_job_id: string | null;
20564
+ printed_at: string | null;
20565
+ printed_by: string | null;
20566
+ printer_id: string | null;
20567
+ priority: number;
20568
+ reference: string | null;
20569
+ route: string | null;
20570
+ screen_id: string | null;
20571
+ station_id: string | null;
20572
+ status_id: string | null;
20573
+ updated_at: string;
20574
+ warnings: Json;
20575
+ };
20576
+ SetofOptions: {
20577
+ from: "*";
20578
+ to: "pick_queue";
20579
+ isOneToOne: true;
20580
+ isSetofReturn: false;
20581
+ };
20582
+ };
19713
20583
  pick_station_dashboard: {
19714
20584
  Args: never;
19715
20585
  Returns: {
@@ -19900,10 +20770,24 @@ export type Database = {
19900
20770
  };
19901
20771
  Returns: Json;
19902
20772
  };
20773
+ ruim_print_jobs_op: {
20774
+ Args: {
20775
+ _bewaar_dagen?: number;
20776
+ };
20777
+ Returns: number;
20778
+ };
19903
20779
  run_floriday_continuous_stock_sync: {
19904
20780
  Args: never;
19905
20781
  Returns: undefined;
19906
20782
  };
20783
+ run_logistics_tasks_dispatch: {
20784
+ Args: never;
20785
+ Returns: undefined;
20786
+ };
20787
+ run_print_queue_ticks: {
20788
+ Args: never;
20789
+ Returns: number;
20790
+ };
19907
20791
  run_twinfield_queue_tick: {
19908
20792
  Args: never;
19909
20793
  Returns: undefined;
@@ -20144,6 +21028,13 @@ export type Database = {
20144
21028
  };
20145
21029
  Returns: number;
20146
21030
  };
21031
+ schedule_floriday_stock_queue_process: {
21032
+ Args: {
21033
+ p_apikey: string;
21034
+ p_url: string;
21035
+ };
21036
+ Returns: number;
21037
+ };
20147
21038
  schedule_floriday_token_refresh: {
20148
21039
  Args: {
20149
21040
  p_apikey: string;
@@ -20333,7 +21224,7 @@ export type Database = {
20333
21224
  };
20334
21225
  Enums: {
20335
21226
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20336
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21227
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20337
21228
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20338
21229
  doc_orientation: "portrait" | "landscape";
20339
21230
  exact_env: "staging" | "live";
@@ -20404,7 +21295,7 @@ export declare const Constants: {
20404
21295
  readonly public: {
20405
21296
  readonly Enums: {
20406
21297
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
20407
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
21298
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
20408
21299
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
20409
21300
  readonly doc_orientation: readonly ["portrait", "landscape"];
20410
21301
  readonly exact_env: readonly ["staging", "live"];