@flowselections/floriday-afhandeling-module 1.0.11 → 1.0.13

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 (38) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.js +63 -2
  3. package/dist-lib/components/afhandeling/ControlePage.d.ts +3 -1
  4. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/ControlePage.js +6 -2
  6. package/dist-lib/components/pickstation/KioskControle.d.ts +2 -0
  7. package/dist-lib/components/pickstation/KioskControle.d.ts.map +1 -0
  8. package/dist-lib/components/pickstation/KioskControle.js +7 -0
  9. package/dist-lib/components/pickstation/PickstationPage.d.ts +2 -0
  10. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -0
  11. package/dist-lib/components/pickstation/PickstationPage.js +217 -0
  12. package/dist-lib/index.d.ts +2 -0
  13. package/dist-lib/index.d.ts.map +1 -1
  14. package/dist-lib/index.js +2 -0
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +885 -60
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +885 -60
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +885 -60
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +907 -62
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1767 -117
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/carriers.functions.d.ts +4125 -0
  26. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/cartAssignments.functions.d.ts +4125 -0
  28. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/cartControl.functions.d.ts +8253 -0
  30. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/cartControl.functions.js +3 -0
  32. package/dist-lib/lib/floriday.functions.d.ts +885 -60
  33. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  35. package/dist-lib/lib/pickstationOrders.server.js +1 -0
  36. package/dist-lib/lib/pickstationTypes.d.ts +2 -0
  37. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  38. package/package.json +20 -1
@@ -713,6 +713,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
713
713
  notes: string | null;
714
714
  performed_at: string;
715
715
  rescheduled_count: number;
716
+ stock_consumed_at: string | null;
716
717
  total_carts: number;
717
718
  updated_at: string;
718
719
  user_id: string;
@@ -726,6 +727,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
726
727
  notes?: string | null;
727
728
  performed_at?: string;
728
729
  rescheduled_count?: number;
730
+ stock_consumed_at?: string | null;
729
731
  total_carts?: number;
730
732
  updated_at?: string;
731
733
  user_id: string;
@@ -739,6 +741,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
739
741
  notes?: string | null;
740
742
  performed_at?: string;
741
743
  rescheduled_count?: number;
744
+ stock_consumed_at?: string | null;
742
745
  total_carts?: number;
743
746
  updated_at?: string;
744
747
  user_id?: string;
@@ -3619,6 +3622,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3619
3622
  referencedColumns: ["id"];
3620
3623
  }];
3621
3624
  };
3625
+ floriday_continuous_stock_queue: {
3626
+ Row: {
3627
+ attempts: number;
3628
+ connection_id: string;
3629
+ created_at: string;
3630
+ gateway_attempt_id: string | null;
3631
+ id: string;
3632
+ last_error: string | null;
3633
+ number_of_pieces: number;
3634
+ sent_at: string | null;
3635
+ status: string;
3636
+ trade_item_id: string;
3637
+ updated_at: string;
3638
+ user_id: string;
3639
+ };
3640
+ Insert: {
3641
+ attempts?: number;
3642
+ connection_id: string;
3643
+ created_at?: string;
3644
+ gateway_attempt_id?: string | null;
3645
+ id?: string;
3646
+ last_error?: string | null;
3647
+ number_of_pieces?: number;
3648
+ sent_at?: string | null;
3649
+ status?: string;
3650
+ trade_item_id: string;
3651
+ updated_at?: string;
3652
+ user_id: string;
3653
+ };
3654
+ Update: {
3655
+ attempts?: number;
3656
+ connection_id?: string;
3657
+ created_at?: string;
3658
+ gateway_attempt_id?: string | null;
3659
+ id?: string;
3660
+ last_error?: string | null;
3661
+ number_of_pieces?: number;
3662
+ sent_at?: string | null;
3663
+ status?: string;
3664
+ trade_item_id?: string;
3665
+ updated_at?: string;
3666
+ user_id?: string;
3667
+ };
3668
+ Relationships: [];
3669
+ };
3622
3670
  floriday_contract_trade_item_groups_cache: {
3623
3671
  Row: {
3624
3672
  connection_id: string;
@@ -5008,6 +5056,204 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5008
5056
  };
5009
5057
  Relationships: [];
5010
5058
  };
5059
+ local_customer_agreements: {
5060
+ Row: {
5061
+ base_price: number | null;
5062
+ created_at: string;
5063
+ currency: string;
5064
+ customer_id: string;
5065
+ id: string;
5066
+ min_quantity: number;
5067
+ net_price: number;
5068
+ notes: string | null;
5069
+ product_category_id: string | null;
5070
+ product_id: string | null;
5071
+ updated_at: string;
5072
+ valid_from: string | null;
5073
+ valid_until: string | null;
5074
+ };
5075
+ Insert: {
5076
+ base_price?: number | null;
5077
+ created_at?: string;
5078
+ currency?: string;
5079
+ customer_id: string;
5080
+ id?: string;
5081
+ min_quantity?: number;
5082
+ net_price: number;
5083
+ notes?: string | null;
5084
+ product_category_id?: string | null;
5085
+ product_id?: string | null;
5086
+ updated_at?: string;
5087
+ valid_from?: string | null;
5088
+ valid_until?: string | null;
5089
+ };
5090
+ Update: {
5091
+ base_price?: number | null;
5092
+ created_at?: string;
5093
+ currency?: string;
5094
+ customer_id?: string;
5095
+ id?: string;
5096
+ min_quantity?: number;
5097
+ net_price?: number;
5098
+ notes?: string | null;
5099
+ product_category_id?: string | null;
5100
+ product_id?: string | null;
5101
+ updated_at?: string;
5102
+ valid_from?: string | null;
5103
+ valid_until?: string | null;
5104
+ };
5105
+ Relationships: [{
5106
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5107
+ columns: ["customer_id"];
5108
+ isOneToOne: false;
5109
+ referencedRelation: "customers";
5110
+ referencedColumns: ["id"];
5111
+ }, {
5112
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5113
+ columns: ["product_category_id"];
5114
+ isOneToOne: false;
5115
+ referencedRelation: "product_categories";
5116
+ referencedColumns: ["id"];
5117
+ }, {
5118
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5119
+ columns: ["product_id"];
5120
+ isOneToOne: false;
5121
+ referencedRelation: "products";
5122
+ referencedColumns: ["id"];
5123
+ }];
5124
+ };
5125
+ local_customer_price_groups: {
5126
+ Row: {
5127
+ created_at: string;
5128
+ currency: string;
5129
+ customer_id: string;
5130
+ discount_type: string;
5131
+ discount_value: number;
5132
+ id: string;
5133
+ min_quantity: number;
5134
+ notes: string | null;
5135
+ product_category_id: string | null;
5136
+ product_id: string | null;
5137
+ updated_at: string;
5138
+ valid_from: string | null;
5139
+ valid_until: string | null;
5140
+ };
5141
+ Insert: {
5142
+ created_at?: string;
5143
+ currency?: string;
5144
+ customer_id: string;
5145
+ discount_type: string;
5146
+ discount_value: number;
5147
+ id?: string;
5148
+ min_quantity?: number;
5149
+ notes?: string | null;
5150
+ product_category_id?: string | null;
5151
+ product_id?: string | null;
5152
+ updated_at?: string;
5153
+ valid_from?: string | null;
5154
+ valid_until?: string | null;
5155
+ };
5156
+ Update: {
5157
+ created_at?: string;
5158
+ currency?: string;
5159
+ customer_id?: string;
5160
+ discount_type?: string;
5161
+ discount_value?: number;
5162
+ id?: string;
5163
+ min_quantity?: number;
5164
+ notes?: string | null;
5165
+ product_category_id?: string | null;
5166
+ product_id?: string | null;
5167
+ updated_at?: string;
5168
+ valid_from?: string | null;
5169
+ valid_until?: string | null;
5170
+ };
5171
+ Relationships: [{
5172
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5173
+ columns: ["customer_id"];
5174
+ isOneToOne: false;
5175
+ referencedRelation: "customers";
5176
+ referencedColumns: ["id"];
5177
+ }, {
5178
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5179
+ columns: ["product_category_id"];
5180
+ isOneToOne: false;
5181
+ referencedRelation: "product_categories";
5182
+ referencedColumns: ["id"];
5183
+ }, {
5184
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5185
+ columns: ["product_id"];
5186
+ isOneToOne: false;
5187
+ referencedRelation: "products";
5188
+ referencedColumns: ["id"];
5189
+ }];
5190
+ };
5191
+ local_customer_sales_strategies: {
5192
+ Row: {
5193
+ created_at: string;
5194
+ currency: string;
5195
+ customer_id: string;
5196
+ discount_type: string;
5197
+ discount_value: number;
5198
+ id: string;
5199
+ min_quantity: number;
5200
+ notes: string | null;
5201
+ product_category_id: string | null;
5202
+ product_id: string | null;
5203
+ updated_at: string;
5204
+ valid_from: string | null;
5205
+ valid_until: string | null;
5206
+ };
5207
+ Insert: {
5208
+ created_at?: string;
5209
+ currency?: string;
5210
+ customer_id: string;
5211
+ discount_type: string;
5212
+ discount_value: number;
5213
+ id?: string;
5214
+ min_quantity?: number;
5215
+ notes?: string | null;
5216
+ product_category_id?: string | null;
5217
+ product_id?: string | null;
5218
+ updated_at?: string;
5219
+ valid_from?: string | null;
5220
+ valid_until?: string | null;
5221
+ };
5222
+ Update: {
5223
+ created_at?: string;
5224
+ currency?: string;
5225
+ customer_id?: string;
5226
+ discount_type?: string;
5227
+ discount_value?: number;
5228
+ id?: string;
5229
+ min_quantity?: number;
5230
+ notes?: string | null;
5231
+ product_category_id?: string | null;
5232
+ product_id?: string | null;
5233
+ updated_at?: string;
5234
+ valid_from?: string | null;
5235
+ valid_until?: string | null;
5236
+ };
5237
+ Relationships: [{
5238
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5239
+ columns: ["customer_id"];
5240
+ isOneToOne: false;
5241
+ referencedRelation: "customers";
5242
+ referencedColumns: ["id"];
5243
+ }, {
5244
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5245
+ columns: ["product_category_id"];
5246
+ isOneToOne: false;
5247
+ referencedRelation: "product_categories";
5248
+ referencedColumns: ["id"];
5249
+ }, {
5250
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5251
+ columns: ["product_id"];
5252
+ isOneToOne: false;
5253
+ referencedRelation: "products";
5254
+ referencedColumns: ["id"];
5255
+ }];
5256
+ };
5011
5257
  locations: {
5012
5258
  Row: {
5013
5259
  created_at: string;
@@ -5422,98 +5668,365 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5422
5668
  referencedColumns: ["id"];
5423
5669
  }];
5424
5670
  };
5425
- manufacture_products: {
5671
+ manufacture_products: {
5672
+ Row: {
5673
+ created_at: string;
5674
+ description: string | null;
5675
+ id: string;
5676
+ is_active: boolean;
5677
+ name: string;
5678
+ produced_stock: number;
5679
+ product_code: string;
5680
+ tenant_id: string;
5681
+ updated_at: string;
5682
+ };
5683
+ Insert: {
5684
+ created_at?: string;
5685
+ description?: string | null;
5686
+ id?: string;
5687
+ is_active?: boolean;
5688
+ name: string;
5689
+ produced_stock?: number;
5690
+ product_code: string;
5691
+ tenant_id: string;
5692
+ updated_at?: string;
5693
+ };
5694
+ Update: {
5695
+ created_at?: string;
5696
+ description?: string | null;
5697
+ id?: string;
5698
+ is_active?: boolean;
5699
+ name?: string;
5700
+ produced_stock?: number;
5701
+ product_code?: string;
5702
+ tenant_id?: string;
5703
+ updated_at?: string;
5704
+ };
5705
+ Relationships: [];
5706
+ };
5707
+ monteurs: {
5708
+ Row: {
5709
+ avatar_url: string | null;
5710
+ color: string | null;
5711
+ created_at: string;
5712
+ email: string | null;
5713
+ id: string;
5714
+ is_active: boolean;
5715
+ leave_balance_hours: number;
5716
+ name: string;
5717
+ persnr: number | null;
5718
+ phone: string | null;
5719
+ role: string;
5720
+ tenant_id: string;
5721
+ updated_at: string;
5722
+ user_id: string | null;
5723
+ };
5724
+ Insert: {
5725
+ avatar_url?: string | null;
5726
+ color?: string | null;
5727
+ created_at?: string;
5728
+ email?: string | null;
5729
+ id?: string;
5730
+ is_active?: boolean;
5731
+ leave_balance_hours?: number;
5732
+ name: string;
5733
+ persnr?: number | null;
5734
+ phone?: string | null;
5735
+ role?: string;
5736
+ tenant_id: string;
5737
+ updated_at?: string;
5738
+ user_id?: string | null;
5739
+ };
5740
+ Update: {
5741
+ avatar_url?: string | null;
5742
+ color?: string | null;
5743
+ created_at?: string;
5744
+ email?: string | null;
5745
+ id?: string;
5746
+ is_active?: boolean;
5747
+ leave_balance_hours?: number;
5748
+ name?: string;
5749
+ persnr?: number | null;
5750
+ phone?: string | null;
5751
+ role?: string;
5752
+ tenant_id?: string;
5753
+ updated_at?: string;
5754
+ user_id?: string | null;
5755
+ };
5756
+ Relationships: [{
5757
+ foreignKeyName: "monteurs_tenant_id_fkey";
5758
+ columns: ["tenant_id"];
5759
+ isOneToOne: false;
5760
+ referencedRelation: "tenants";
5761
+ referencedColumns: ["id"];
5762
+ }];
5763
+ };
5764
+ nmbrs_component_mapping: {
5765
+ Row: {
5766
+ created_at: string;
5767
+ id: string;
5768
+ source_kind: string;
5769
+ source_value: string | null;
5770
+ updated_at: string;
5771
+ wage_code: string;
5772
+ };
5773
+ Insert: {
5774
+ created_at?: string;
5775
+ id?: string;
5776
+ source_kind: string;
5777
+ source_value?: string | null;
5778
+ updated_at?: string;
5779
+ wage_code: string;
5780
+ };
5781
+ Update: {
5782
+ created_at?: string;
5783
+ id?: string;
5784
+ source_kind?: string;
5785
+ source_value?: string | null;
5786
+ updated_at?: string;
5787
+ wage_code?: string;
5788
+ };
5789
+ Relationships: [{
5790
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5791
+ columns: ["wage_code"];
5792
+ isOneToOne: false;
5793
+ referencedRelation: "nmbrs_wage_components";
5794
+ referencedColumns: ["code"];
5795
+ }];
5796
+ };
5797
+ nmbrs_employee_mapping: {
5798
+ Row: {
5799
+ active_from: string | null;
5800
+ active_to: string | null;
5801
+ contract_hours_per_week: number | null;
5802
+ created_at: string;
5803
+ hourly_wage: number | null;
5804
+ id: string;
5805
+ monteur_id: string;
5806
+ nmbrs_company_code: string | null;
5807
+ nmbrs_employee_number: string;
5808
+ updated_at: string;
5809
+ };
5810
+ Insert: {
5811
+ active_from?: string | null;
5812
+ active_to?: string | null;
5813
+ contract_hours_per_week?: number | null;
5814
+ created_at?: string;
5815
+ hourly_wage?: number | null;
5816
+ id?: string;
5817
+ monteur_id: string;
5818
+ nmbrs_company_code?: string | null;
5819
+ nmbrs_employee_number: string;
5820
+ updated_at?: string;
5821
+ };
5822
+ Update: {
5823
+ active_from?: string | null;
5824
+ active_to?: string | null;
5825
+ contract_hours_per_week?: number | null;
5826
+ created_at?: string;
5827
+ hourly_wage?: number | null;
5828
+ id?: string;
5829
+ monteur_id?: string;
5830
+ nmbrs_company_code?: string | null;
5831
+ nmbrs_employee_number?: string;
5832
+ updated_at?: string;
5833
+ };
5834
+ Relationships: [{
5835
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5836
+ columns: ["monteur_id"];
5837
+ isOneToOne: true;
5838
+ referencedRelation: "monteurs";
5839
+ referencedColumns: ["id"];
5840
+ }];
5841
+ };
5842
+ nmbrs_export_lines: {
5843
+ Row: {
5844
+ amount: number;
5845
+ created_at: string;
5846
+ entry_date: string;
5847
+ hours: number;
5848
+ id: string;
5849
+ monteur_id: string;
5850
+ nmbrs_employee_number: string | null;
5851
+ notes: string | null;
5852
+ run_id: string;
5853
+ source_kind: string | null;
5854
+ source_ref_id: string | null;
5855
+ updated_at: string;
5856
+ wage_code: string;
5857
+ };
5858
+ Insert: {
5859
+ amount?: number;
5860
+ created_at?: string;
5861
+ entry_date: string;
5862
+ hours?: number;
5863
+ id?: string;
5864
+ monteur_id: string;
5865
+ nmbrs_employee_number?: string | null;
5866
+ notes?: string | null;
5867
+ run_id: string;
5868
+ source_kind?: string | null;
5869
+ source_ref_id?: string | null;
5870
+ updated_at?: string;
5871
+ wage_code: string;
5872
+ };
5873
+ Update: {
5874
+ amount?: number;
5875
+ created_at?: string;
5876
+ entry_date?: string;
5877
+ hours?: number;
5878
+ id?: string;
5879
+ monteur_id?: string;
5880
+ nmbrs_employee_number?: string | null;
5881
+ notes?: string | null;
5882
+ run_id?: string;
5883
+ source_kind?: string | null;
5884
+ source_ref_id?: string | null;
5885
+ updated_at?: string;
5886
+ wage_code?: string;
5887
+ };
5888
+ Relationships: [{
5889
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5890
+ columns: ["monteur_id"];
5891
+ isOneToOne: false;
5892
+ referencedRelation: "monteurs";
5893
+ referencedColumns: ["id"];
5894
+ }, {
5895
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5896
+ columns: ["run_id"];
5897
+ isOneToOne: false;
5898
+ referencedRelation: "nmbrs_export_runs";
5899
+ referencedColumns: ["id"];
5900
+ }, {
5901
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5902
+ columns: ["wage_code"];
5903
+ isOneToOne: false;
5904
+ referencedRelation: "nmbrs_wage_components";
5905
+ referencedColumns: ["code"];
5906
+ }];
5907
+ };
5908
+ nmbrs_export_runs: {
5909
+ Row: {
5910
+ created_at: string;
5911
+ file_name: string | null;
5912
+ generated_at: string;
5913
+ generated_by: string | null;
5914
+ id: string;
5915
+ notes: string | null;
5916
+ period_end: string;
5917
+ period_label: string;
5918
+ period_start: string;
5919
+ status: string;
5920
+ total_hours: number;
5921
+ total_lines: number;
5922
+ updated_at: string;
5923
+ };
5924
+ Insert: {
5925
+ created_at?: string;
5926
+ file_name?: string | null;
5927
+ generated_at?: string;
5928
+ generated_by?: string | null;
5929
+ id?: string;
5930
+ notes?: string | null;
5931
+ period_end: string;
5932
+ period_label: string;
5933
+ period_start: string;
5934
+ status?: string;
5935
+ total_hours?: number;
5936
+ total_lines?: number;
5937
+ updated_at?: string;
5938
+ };
5939
+ Update: {
5940
+ created_at?: string;
5941
+ file_name?: string | null;
5942
+ generated_at?: string;
5943
+ generated_by?: string | null;
5944
+ id?: string;
5945
+ notes?: string | null;
5946
+ period_end?: string;
5947
+ period_label?: string;
5948
+ period_start?: string;
5949
+ status?: string;
5950
+ total_hours?: number;
5951
+ total_lines?: number;
5952
+ updated_at?: string;
5953
+ };
5954
+ Relationships: [];
5955
+ };
5956
+ nmbrs_settings: {
5426
5957
  Row: {
5427
5958
  created_at: string;
5428
- description: string | null;
5429
- id: string;
5430
- is_active: boolean;
5431
- name: string;
5432
- produced_stock: number;
5433
- product_code: string;
5434
- tenant_id: string;
5959
+ default_company_code: string | null;
5960
+ id: boolean;
5961
+ include_travel: boolean;
5962
+ overtime_threshold_daily: number;
5963
+ overtime_threshold_weekly: number;
5964
+ period_type: string;
5435
5965
  updated_at: string;
5966
+ updated_by: string | null;
5967
+ week_start_day: number;
5436
5968
  };
5437
5969
  Insert: {
5438
5970
  created_at?: string;
5439
- description?: string | null;
5440
- id?: string;
5441
- is_active?: boolean;
5442
- name: string;
5443
- produced_stock?: number;
5444
- product_code: string;
5445
- tenant_id: string;
5971
+ default_company_code?: string | null;
5972
+ id?: boolean;
5973
+ include_travel?: boolean;
5974
+ overtime_threshold_daily?: number;
5975
+ overtime_threshold_weekly?: number;
5976
+ period_type?: string;
5446
5977
  updated_at?: string;
5978
+ updated_by?: string | null;
5979
+ week_start_day?: number;
5447
5980
  };
5448
5981
  Update: {
5449
5982
  created_at?: string;
5450
- description?: string | null;
5451
- id?: string;
5452
- is_active?: boolean;
5453
- name?: string;
5454
- produced_stock?: number;
5455
- product_code?: string;
5456
- tenant_id?: string;
5983
+ default_company_code?: string | null;
5984
+ id?: boolean;
5985
+ include_travel?: boolean;
5986
+ overtime_threshold_daily?: number;
5987
+ overtime_threshold_weekly?: number;
5988
+ period_type?: string;
5457
5989
  updated_at?: string;
5990
+ updated_by?: string | null;
5991
+ week_start_day?: number;
5458
5992
  };
5459
5993
  Relationships: [];
5460
5994
  };
5461
- monteurs: {
5995
+ nmbrs_wage_components: {
5462
5996
  Row: {
5463
- avatar_url: string | null;
5464
- color: string | null;
5997
+ category: string;
5998
+ code: string;
5465
5999
  created_at: string;
5466
- email: string | null;
5467
6000
  id: string;
5468
6001
  is_active: boolean;
5469
- leave_balance_hours: number;
5470
- name: string;
5471
- persnr: number | null;
5472
- phone: string | null;
5473
- role: string;
5474
- tenant_id: string;
6002
+ label: string;
6003
+ sort_order: number;
6004
+ unit: string;
5475
6005
  updated_at: string;
5476
- user_id: string | null;
5477
6006
  };
5478
6007
  Insert: {
5479
- avatar_url?: string | null;
5480
- color?: string | null;
6008
+ category: string;
6009
+ code: string;
5481
6010
  created_at?: string;
5482
- email?: string | null;
5483
6011
  id?: string;
5484
6012
  is_active?: boolean;
5485
- leave_balance_hours?: number;
5486
- name: string;
5487
- persnr?: number | null;
5488
- phone?: string | null;
5489
- role?: string;
5490
- tenant_id: string;
6013
+ label: string;
6014
+ sort_order?: number;
6015
+ unit: string;
5491
6016
  updated_at?: string;
5492
- user_id?: string | null;
5493
6017
  };
5494
6018
  Update: {
5495
- avatar_url?: string | null;
5496
- color?: string | null;
6019
+ category?: string;
6020
+ code?: string;
5497
6021
  created_at?: string;
5498
- email?: string | null;
5499
6022
  id?: string;
5500
6023
  is_active?: boolean;
5501
- leave_balance_hours?: number;
5502
- name?: string;
5503
- persnr?: number | null;
5504
- phone?: string | null;
5505
- role?: string;
5506
- tenant_id?: string;
6024
+ label?: string;
6025
+ sort_order?: number;
6026
+ unit?: string;
5507
6027
  updated_at?: string;
5508
- user_id?: string | null;
5509
6028
  };
5510
- Relationships: [{
5511
- foreignKeyName: "monteurs_tenant_id_fkey";
5512
- columns: ["tenant_id"];
5513
- isOneToOne: false;
5514
- referencedRelation: "tenants";
5515
- referencedColumns: ["id"];
5516
- }];
6029
+ Relationships: [];
5517
6030
  };
5518
6031
  notifications: {
5519
6032
  Row: {
@@ -6497,6 +7010,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6497
7010
  purchase_price: number | null;
6498
7011
  quantity: number;
6499
7012
  sale_price: number | null;
7013
+ trade_item_key: string | null;
6500
7014
  unit: string;
6501
7015
  updated_at: string;
6502
7016
  weight: string | null;
@@ -6519,6 +7033,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6519
7033
  purchase_price?: number | null;
6520
7034
  quantity?: number;
6521
7035
  sale_price?: number | null;
7036
+ trade_item_key?: string | null;
6522
7037
  unit?: string;
6523
7038
  updated_at?: string;
6524
7039
  weight?: string | null;
@@ -6541,6 +7056,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6541
7056
  purchase_price?: number | null;
6542
7057
  quantity?: number;
6543
7058
  sale_price?: number | null;
7059
+ trade_item_key?: string | null;
6544
7060
  unit?: string;
6545
7061
  updated_at?: string;
6546
7062
  weight?: string | null;
@@ -7360,6 +7876,102 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7360
7876
  };
7361
7877
  Relationships: [];
7362
7878
  };
7879
+ stock_import_runs: {
7880
+ Row: {
7881
+ connection_id: string | null;
7882
+ created_at: string;
7883
+ created_rows: number;
7884
+ errors: import("./types").Json;
7885
+ filename: string | null;
7886
+ id: string;
7887
+ mutations: import("./types").Json;
7888
+ skipped_rows: number;
7889
+ total_rows: number;
7890
+ updated_rows: number;
7891
+ user_id: string;
7892
+ };
7893
+ Insert: {
7894
+ connection_id?: string | null;
7895
+ created_at?: string;
7896
+ created_rows?: number;
7897
+ errors?: import("./types").Json;
7898
+ filename?: string | null;
7899
+ id?: string;
7900
+ mutations?: import("./types").Json;
7901
+ skipped_rows?: number;
7902
+ total_rows?: number;
7903
+ updated_rows?: number;
7904
+ user_id: string;
7905
+ };
7906
+ Update: {
7907
+ connection_id?: string | null;
7908
+ created_at?: string;
7909
+ created_rows?: number;
7910
+ errors?: import("./types").Json;
7911
+ filename?: string | null;
7912
+ id?: string;
7913
+ mutations?: import("./types").Json;
7914
+ skipped_rows?: number;
7915
+ total_rows?: number;
7916
+ updated_rows?: number;
7917
+ user_id?: string;
7918
+ };
7919
+ Relationships: [];
7920
+ };
7921
+ stock_mutation_log: {
7922
+ Row: {
7923
+ connection_id: string | null;
7924
+ created_at: string;
7925
+ created_by: string | null;
7926
+ id: string;
7927
+ mutation_type: string;
7928
+ order_id: string | null;
7929
+ order_item_id: string | null;
7930
+ order_source: string | null;
7931
+ physical_after: number | null;
7932
+ physical_before: number | null;
7933
+ qty_delta: number;
7934
+ reason: string | null;
7935
+ reserved_after: number | null;
7936
+ reserved_before: number | null;
7937
+ trade_item_key: string;
7938
+ };
7939
+ Insert: {
7940
+ connection_id?: string | null;
7941
+ created_at?: string;
7942
+ created_by?: string | null;
7943
+ id?: string;
7944
+ mutation_type: string;
7945
+ order_id?: string | null;
7946
+ order_item_id?: string | null;
7947
+ order_source?: string | null;
7948
+ physical_after?: number | null;
7949
+ physical_before?: number | null;
7950
+ qty_delta: number;
7951
+ reason?: string | null;
7952
+ reserved_after?: number | null;
7953
+ reserved_before?: number | null;
7954
+ trade_item_key: string;
7955
+ };
7956
+ Update: {
7957
+ connection_id?: string | null;
7958
+ created_at?: string;
7959
+ created_by?: string | null;
7960
+ id?: string;
7961
+ mutation_type?: string;
7962
+ order_id?: string | null;
7963
+ order_item_id?: string | null;
7964
+ order_source?: string | null;
7965
+ physical_after?: number | null;
7966
+ physical_before?: number | null;
7967
+ qty_delta?: number;
7968
+ reason?: string | null;
7969
+ reserved_after?: number | null;
7970
+ reserved_before?: number | null;
7971
+ trade_item_key?: string;
7972
+ };
7973
+ Relationships: [];
7974
+ };
7363
7975
  supplier_products: {
7364
7976
  Row: {
7365
7977
  article_number: string | null;
@@ -8937,6 +9549,44 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8937
9549
  };
8938
9550
  Relationships: [];
8939
9551
  };
9552
+ floriday_customer_discounts: {
9553
+ Row: {
9554
+ base_price: number | null;
9555
+ buyer_organization_id: string | null;
9556
+ currency: string | null;
9557
+ discount_type: string | null;
9558
+ discount_value: number | null;
9559
+ min_quantity: number | null;
9560
+ net_price: number | null;
9561
+ product_group_id: string | null;
9562
+ raw: import("./types").Json | null;
9563
+ source: string | null;
9564
+ source_id: string | null;
9565
+ trade_item_id: string | null;
9566
+ valid_from: string | null;
9567
+ valid_until: string | null;
9568
+ };
9569
+ Relationships: [];
9570
+ };
9571
+ local_customer_discounts: {
9572
+ Row: {
9573
+ base_price: number | null;
9574
+ currency: string | null;
9575
+ customer_id: string | null;
9576
+ discount_type: string | null;
9577
+ discount_value: number | null;
9578
+ min_quantity: number | null;
9579
+ net_price: number | null;
9580
+ product_category_id: string | null;
9581
+ product_id: string | null;
9582
+ product_name: string | null;
9583
+ source: string | null;
9584
+ source_id: string | null;
9585
+ valid_from: string | null;
9586
+ valid_until: string | null;
9587
+ };
9588
+ Relationships: [];
9589
+ };
8940
9590
  manufacture_product_possible_stock_view: {
8941
9591
  Row: {
8942
9592
  component_count: number | null;
@@ -9221,6 +9871,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9221
9871
  };
9222
9872
  Returns: number;
9223
9873
  };
9874
+ afh_city_code: {
9875
+ Args: {
9876
+ _city: string;
9877
+ _country: string;
9878
+ };
9879
+ Returns: string;
9880
+ };
9881
+ afh_normalize_country: {
9882
+ Args: {
9883
+ _raw: string;
9884
+ };
9885
+ Returns: string;
9886
+ };
9887
+ afh_normalize_nl_province: {
9888
+ Args: {
9889
+ _raw: string;
9890
+ };
9891
+ Returns: string;
9892
+ };
9893
+ afh_subtract_workdays: {
9894
+ Args: {
9895
+ _date: string;
9896
+ _days: number;
9897
+ };
9898
+ Returns: string;
9899
+ };
9900
+ apply_stock_consumption: {
9901
+ Args: {
9902
+ p_order_id: string;
9903
+ p_order_item_id: string;
9904
+ p_qty: number;
9905
+ p_reason: string;
9906
+ p_source: string;
9907
+ p_trade_item_key: string;
9908
+ };
9909
+ Returns: undefined;
9910
+ };
9911
+ apply_stock_reservation: {
9912
+ Args: {
9913
+ p_order_id: string;
9914
+ p_order_item_id: string;
9915
+ p_qty: number;
9916
+ p_reason: string;
9917
+ p_source: string;
9918
+ p_trade_item_key: string;
9919
+ };
9920
+ Returns: undefined;
9921
+ };
9224
9922
  assign_cart_numbers: {
9225
9923
  Args: {
9226
9924
  p_carts: import("./types").Json;
@@ -9244,12 +9942,40 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9244
9942
  order_number: string;
9245
9943
  }[];
9246
9944
  };
9945
+ backfill_open_order_reservations: {
9946
+ Args: never;
9947
+ Returns: {
9948
+ processed_items: number;
9949
+ }[];
9950
+ };
9247
9951
  call_exact_route: {
9248
9952
  Args: {
9249
9953
  path: string;
9250
9954
  };
9251
9955
  Returns: number;
9252
9956
  };
9957
+ check_offer_product_available_stock: {
9958
+ Args: {
9959
+ p_campaign_product_id: string;
9960
+ p_code: string;
9961
+ p_needed_qty?: number;
9962
+ p_product_name?: string;
9963
+ };
9964
+ Returns: import("./types").Json;
9965
+ };
9966
+ check_trade_item_available_stock: {
9967
+ Args: {
9968
+ p_connection_id?: string;
9969
+ p_context?: string;
9970
+ p_needed_qty?: number;
9971
+ p_order_id?: string;
9972
+ p_order_item_id?: string;
9973
+ p_owner_id?: string;
9974
+ p_product_name?: string;
9975
+ p_trade_item_key: string;
9976
+ };
9977
+ Returns: import("./types").Json;
9978
+ };
9253
9979
  cleanup_old_bookings: {
9254
9980
  Args: never;
9255
9981
  Returns: number;
@@ -9293,6 +10019,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9293
10019
  table_name: string;
9294
10020
  }[];
9295
10021
  };
10022
+ dispatch_carrier_signups_sql: {
10023
+ Args: {
10024
+ _catchup?: string;
10025
+ };
10026
+ Returns: import("./types").Json;
10027
+ };
9296
10028
  email_auth_decrypt: {
9297
10029
  Args: {
9298
10030
  cipher: string;
@@ -9328,6 +10060,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9328
10060
  status: string;
9329
10061
  }[];
9330
10062
  };
10063
+ ensure_trade_item_stock_row: {
10064
+ Args: {
10065
+ p_key: string;
10066
+ };
10067
+ Returns: undefined;
10068
+ };
9331
10069
  ensure_user_tenant: {
9332
10070
  Args: never;
9333
10071
  Returns: string;
@@ -9365,6 +10103,31 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9365
10103
  };
9366
10104
  Returns: boolean;
9367
10105
  };
10106
+ find_trade_item_key: {
10107
+ Args: {
10108
+ p_barcode: string;
10109
+ p_name: string;
10110
+ p_product_id: string;
10111
+ };
10112
+ Returns: string;
10113
+ };
10114
+ floriday_effective_price: {
10115
+ Args: {
10116
+ _buyer_id: string;
10117
+ _on_date?: string;
10118
+ _quantity?: number;
10119
+ _trade_item_id: string;
10120
+ };
10121
+ Returns: {
10122
+ base_price: number;
10123
+ currency: string;
10124
+ discount_type: string;
10125
+ discount_value: number;
10126
+ net_price: number;
10127
+ source: string;
10128
+ source_id: string;
10129
+ }[];
10130
+ };
9368
10131
  format_cart_number: {
9369
10132
  Args: {
9370
10133
  p_pick_date: string;
@@ -9385,6 +10148,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9385
10148
  preferred_warehouse_name: string;
9386
10149
  }[];
9387
10150
  };
10151
+ get_active_floriday_context: {
10152
+ Args: never;
10153
+ Returns: {
10154
+ connection_id: string;
10155
+ user_id: string;
10156
+ }[];
10157
+ };
9388
10158
  get_active_twinfield_public: {
9389
10159
  Args: never;
9390
10160
  Returns: {
@@ -9487,6 +10257,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9487
10257
  };
9488
10258
  Returns: import("./types").Json;
9489
10259
  };
10260
+ get_offer_recipient_by_code: {
10261
+ Args: {
10262
+ p_code: string;
10263
+ };
10264
+ Returns: {
10265
+ campaign_id: string;
10266
+ clicked_at: string;
10267
+ customer_id: string;
10268
+ id: string;
10269
+ ordered_at: string;
10270
+ }[];
10271
+ };
9490
10272
  get_or_assign_floriday_order_number: {
9491
10273
  Args: {
9492
10274
  p_floriday_id: string;
@@ -9539,6 +10321,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9539
10321
  Args: never;
9540
10322
  Returns: boolean;
9541
10323
  };
10324
+ local_effective_price: {
10325
+ Args: {
10326
+ _customer_id: string;
10327
+ _on_date?: string;
10328
+ _product_id: string;
10329
+ _quantity?: number;
10330
+ };
10331
+ Returns: {
10332
+ currency: string;
10333
+ discount_type: string;
10334
+ discount_value: number;
10335
+ net_price: number;
10336
+ source: string;
10337
+ source_id: string;
10338
+ }[];
10339
+ };
10340
+ mark_offer_clicked: {
10341
+ Args: {
10342
+ p_code: string;
10343
+ };
10344
+ Returns: undefined;
10345
+ };
10346
+ mark_offer_ordered: {
10347
+ Args: {
10348
+ p_code: string;
10349
+ };
10350
+ Returns: undefined;
10351
+ };
9542
10352
  next_order_number: {
9543
10353
  Args: {
9544
10354
  p_prefix: string;
@@ -9558,6 +10368,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9558
10368
  };
9559
10369
  Returns: string;
9560
10370
  };
10371
+ offer_recipient_matches: {
10372
+ Args: {
10373
+ _campaign_id: string;
10374
+ _customer_id: string;
10375
+ _recipient_id: string;
10376
+ };
10377
+ Returns: boolean;
10378
+ };
9561
10379
  pickstation_get_orders_raw: {
9562
10380
  Args: never;
9563
10381
  Returns: import("./types").Json;
@@ -9585,6 +10403,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9585
10403
  };
9586
10404
  Returns: undefined;
9587
10405
  };
10406
+ promote_trade_item_key: {
10407
+ Args: {
10408
+ p_new: string;
10409
+ p_old: string;
10410
+ };
10411
+ Returns: undefined;
10412
+ };
9588
10413
  refresh_floricode_derived_code_lists: {
9589
10414
  Args: never;
9590
10415
  Returns: {