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