@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
@@ -729,6 +729,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
729
729
  notes: string | null;
730
730
  performed_at: string;
731
731
  rescheduled_count: number;
732
+ stock_consumed_at: string | null;
732
733
  total_carts: number;
733
734
  updated_at: string;
734
735
  user_id: string;
@@ -742,6 +743,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
742
743
  notes?: string | null;
743
744
  performed_at?: string;
744
745
  rescheduled_count?: number;
746
+ stock_consumed_at?: string | null;
745
747
  total_carts?: number;
746
748
  updated_at?: string;
747
749
  user_id: string;
@@ -755,6 +757,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
755
757
  notes?: string | null;
756
758
  performed_at?: string;
757
759
  rescheduled_count?: number;
760
+ stock_consumed_at?: string | null;
758
761
  total_carts?: number;
759
762
  updated_at?: string;
760
763
  user_id?: string;
@@ -3635,6 +3638,51 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3635
3638
  referencedColumns: ["id"];
3636
3639
  }];
3637
3640
  };
3641
+ floriday_continuous_stock_queue: {
3642
+ Row: {
3643
+ attempts: number;
3644
+ connection_id: string;
3645
+ created_at: string;
3646
+ gateway_attempt_id: string | null;
3647
+ id: string;
3648
+ last_error: string | null;
3649
+ number_of_pieces: number;
3650
+ sent_at: string | null;
3651
+ status: string;
3652
+ trade_item_id: string;
3653
+ updated_at: string;
3654
+ user_id: string;
3655
+ };
3656
+ Insert: {
3657
+ attempts?: number;
3658
+ connection_id: string;
3659
+ created_at?: string;
3660
+ gateway_attempt_id?: string | null;
3661
+ id?: string;
3662
+ last_error?: string | null;
3663
+ number_of_pieces?: number;
3664
+ sent_at?: string | null;
3665
+ status?: string;
3666
+ trade_item_id: string;
3667
+ updated_at?: string;
3668
+ user_id: string;
3669
+ };
3670
+ Update: {
3671
+ attempts?: number;
3672
+ connection_id?: string;
3673
+ created_at?: string;
3674
+ gateway_attempt_id?: string | null;
3675
+ id?: string;
3676
+ last_error?: string | null;
3677
+ number_of_pieces?: number;
3678
+ sent_at?: string | null;
3679
+ status?: string;
3680
+ trade_item_id?: string;
3681
+ updated_at?: string;
3682
+ user_id?: string;
3683
+ };
3684
+ Relationships: [];
3685
+ };
3638
3686
  floriday_contract_trade_item_groups_cache: {
3639
3687
  Row: {
3640
3688
  connection_id: string;
@@ -5024,6 +5072,204 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5024
5072
  };
5025
5073
  Relationships: [];
5026
5074
  };
5075
+ local_customer_agreements: {
5076
+ Row: {
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
+ Insert: {
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
+ Update: {
5107
+ base_price?: number | null;
5108
+ created_at?: string;
5109
+ currency?: string;
5110
+ customer_id?: string;
5111
+ id?: string;
5112
+ min_quantity?: number;
5113
+ net_price?: number;
5114
+ notes?: string | null;
5115
+ product_category_id?: string | null;
5116
+ product_id?: string | null;
5117
+ updated_at?: string;
5118
+ valid_from?: string | null;
5119
+ valid_until?: string | null;
5120
+ };
5121
+ Relationships: [{
5122
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5123
+ columns: ["customer_id"];
5124
+ isOneToOne: false;
5125
+ referencedRelation: "customers";
5126
+ referencedColumns: ["id"];
5127
+ }, {
5128
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5129
+ columns: ["product_category_id"];
5130
+ isOneToOne: false;
5131
+ referencedRelation: "product_categories";
5132
+ referencedColumns: ["id"];
5133
+ }, {
5134
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5135
+ columns: ["product_id"];
5136
+ isOneToOne: false;
5137
+ referencedRelation: "products";
5138
+ referencedColumns: ["id"];
5139
+ }];
5140
+ };
5141
+ local_customer_price_groups: {
5142
+ Row: {
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
+ Insert: {
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
+ Update: {
5173
+ created_at?: string;
5174
+ currency?: string;
5175
+ customer_id?: string;
5176
+ discount_type?: string;
5177
+ discount_value?: number;
5178
+ id?: string;
5179
+ min_quantity?: number;
5180
+ notes?: string | null;
5181
+ product_category_id?: string | null;
5182
+ product_id?: string | null;
5183
+ updated_at?: string;
5184
+ valid_from?: string | null;
5185
+ valid_until?: string | null;
5186
+ };
5187
+ Relationships: [{
5188
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5189
+ columns: ["customer_id"];
5190
+ isOneToOne: false;
5191
+ referencedRelation: "customers";
5192
+ referencedColumns: ["id"];
5193
+ }, {
5194
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5195
+ columns: ["product_category_id"];
5196
+ isOneToOne: false;
5197
+ referencedRelation: "product_categories";
5198
+ referencedColumns: ["id"];
5199
+ }, {
5200
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5201
+ columns: ["product_id"];
5202
+ isOneToOne: false;
5203
+ referencedRelation: "products";
5204
+ referencedColumns: ["id"];
5205
+ }];
5206
+ };
5207
+ local_customer_sales_strategies: {
5208
+ Row: {
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
+ Insert: {
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
+ Update: {
5239
+ created_at?: string;
5240
+ currency?: string;
5241
+ customer_id?: string;
5242
+ discount_type?: string;
5243
+ discount_value?: number;
5244
+ id?: string;
5245
+ min_quantity?: number;
5246
+ notes?: string | null;
5247
+ product_category_id?: string | null;
5248
+ product_id?: string | null;
5249
+ updated_at?: string;
5250
+ valid_from?: string | null;
5251
+ valid_until?: string | null;
5252
+ };
5253
+ Relationships: [{
5254
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5255
+ columns: ["customer_id"];
5256
+ isOneToOne: false;
5257
+ referencedRelation: "customers";
5258
+ referencedColumns: ["id"];
5259
+ }, {
5260
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5261
+ columns: ["product_category_id"];
5262
+ isOneToOne: false;
5263
+ referencedRelation: "product_categories";
5264
+ referencedColumns: ["id"];
5265
+ }, {
5266
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5267
+ columns: ["product_id"];
5268
+ isOneToOne: false;
5269
+ referencedRelation: "products";
5270
+ referencedColumns: ["id"];
5271
+ }];
5272
+ };
5027
5273
  locations: {
5028
5274
  Row: {
5029
5275
  created_at: string;
@@ -5438,98 +5684,365 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5438
5684
  referencedColumns: ["id"];
5439
5685
  }];
5440
5686
  };
5441
- manufacture_products: {
5687
+ manufacture_products: {
5688
+ Row: {
5689
+ created_at: string;
5690
+ description: string | null;
5691
+ id: string;
5692
+ is_active: boolean;
5693
+ name: string;
5694
+ produced_stock: number;
5695
+ product_code: string;
5696
+ tenant_id: string;
5697
+ updated_at: string;
5698
+ };
5699
+ Insert: {
5700
+ created_at?: string;
5701
+ description?: string | null;
5702
+ id?: string;
5703
+ is_active?: boolean;
5704
+ name: string;
5705
+ produced_stock?: number;
5706
+ product_code: string;
5707
+ tenant_id: string;
5708
+ updated_at?: string;
5709
+ };
5710
+ Update: {
5711
+ created_at?: string;
5712
+ description?: string | null;
5713
+ id?: string;
5714
+ is_active?: boolean;
5715
+ name?: string;
5716
+ produced_stock?: number;
5717
+ product_code?: string;
5718
+ tenant_id?: string;
5719
+ updated_at?: string;
5720
+ };
5721
+ Relationships: [];
5722
+ };
5723
+ monteurs: {
5724
+ Row: {
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
+ Insert: {
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
+ Update: {
5757
+ avatar_url?: string | null;
5758
+ color?: string | null;
5759
+ created_at?: string;
5760
+ email?: string | null;
5761
+ id?: string;
5762
+ is_active?: boolean;
5763
+ leave_balance_hours?: number;
5764
+ name?: string;
5765
+ persnr?: number | null;
5766
+ phone?: string | null;
5767
+ role?: string;
5768
+ tenant_id?: string;
5769
+ updated_at?: string;
5770
+ user_id?: string | null;
5771
+ };
5772
+ Relationships: [{
5773
+ foreignKeyName: "monteurs_tenant_id_fkey";
5774
+ columns: ["tenant_id"];
5775
+ isOneToOne: false;
5776
+ referencedRelation: "tenants";
5777
+ referencedColumns: ["id"];
5778
+ }];
5779
+ };
5780
+ nmbrs_component_mapping: {
5781
+ Row: {
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
+ Insert: {
5790
+ created_at?: string;
5791
+ id?: string;
5792
+ source_kind: string;
5793
+ source_value?: string | null;
5794
+ updated_at?: string;
5795
+ wage_code: string;
5796
+ };
5797
+ Update: {
5798
+ created_at?: string;
5799
+ id?: string;
5800
+ source_kind?: string;
5801
+ source_value?: string | null;
5802
+ updated_at?: string;
5803
+ wage_code?: string;
5804
+ };
5805
+ Relationships: [{
5806
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5807
+ columns: ["wage_code"];
5808
+ isOneToOne: false;
5809
+ referencedRelation: "nmbrs_wage_components";
5810
+ referencedColumns: ["code"];
5811
+ }];
5812
+ };
5813
+ nmbrs_employee_mapping: {
5814
+ Row: {
5815
+ active_from: string | null;
5816
+ active_to: string | null;
5817
+ contract_hours_per_week: number | null;
5818
+ created_at: string;
5819
+ hourly_wage: number | null;
5820
+ id: string;
5821
+ monteur_id: string;
5822
+ nmbrs_company_code: string | null;
5823
+ nmbrs_employee_number: string;
5824
+ updated_at: string;
5825
+ };
5826
+ Insert: {
5827
+ active_from?: string | null;
5828
+ active_to?: string | null;
5829
+ contract_hours_per_week?: number | null;
5830
+ created_at?: string;
5831
+ hourly_wage?: number | null;
5832
+ id?: string;
5833
+ monteur_id: string;
5834
+ nmbrs_company_code?: string | null;
5835
+ nmbrs_employee_number: string;
5836
+ updated_at?: string;
5837
+ };
5838
+ Update: {
5839
+ active_from?: string | null;
5840
+ active_to?: string | null;
5841
+ contract_hours_per_week?: number | null;
5842
+ created_at?: string;
5843
+ hourly_wage?: number | null;
5844
+ id?: string;
5845
+ monteur_id?: string;
5846
+ nmbrs_company_code?: string | null;
5847
+ nmbrs_employee_number?: string;
5848
+ updated_at?: string;
5849
+ };
5850
+ Relationships: [{
5851
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5852
+ columns: ["monteur_id"];
5853
+ isOneToOne: true;
5854
+ referencedRelation: "monteurs";
5855
+ referencedColumns: ["id"];
5856
+ }];
5857
+ };
5858
+ nmbrs_export_lines: {
5859
+ Row: {
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
+ Insert: {
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
+ Update: {
5890
+ amount?: number;
5891
+ created_at?: string;
5892
+ entry_date?: string;
5893
+ hours?: number;
5894
+ id?: string;
5895
+ monteur_id?: string;
5896
+ nmbrs_employee_number?: string | null;
5897
+ notes?: string | null;
5898
+ run_id?: string;
5899
+ source_kind?: string | null;
5900
+ source_ref_id?: string | null;
5901
+ updated_at?: string;
5902
+ wage_code?: string;
5903
+ };
5904
+ Relationships: [{
5905
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5906
+ columns: ["monteur_id"];
5907
+ isOneToOne: false;
5908
+ referencedRelation: "monteurs";
5909
+ referencedColumns: ["id"];
5910
+ }, {
5911
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5912
+ columns: ["run_id"];
5913
+ isOneToOne: false;
5914
+ referencedRelation: "nmbrs_export_runs";
5915
+ referencedColumns: ["id"];
5916
+ }, {
5917
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5918
+ columns: ["wage_code"];
5919
+ isOneToOne: false;
5920
+ referencedRelation: "nmbrs_wage_components";
5921
+ referencedColumns: ["code"];
5922
+ }];
5923
+ };
5924
+ nmbrs_export_runs: {
5925
+ Row: {
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
+ Insert: {
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
+ Update: {
5956
+ created_at?: string;
5957
+ file_name?: string | null;
5958
+ generated_at?: string;
5959
+ generated_by?: string | null;
5960
+ id?: string;
5961
+ notes?: string | null;
5962
+ period_end?: string;
5963
+ period_label?: string;
5964
+ period_start?: string;
5965
+ status?: string;
5966
+ total_hours?: number;
5967
+ total_lines?: number;
5968
+ updated_at?: string;
5969
+ };
5970
+ Relationships: [];
5971
+ };
5972
+ nmbrs_settings: {
5442
5973
  Row: {
5443
5974
  created_at: string;
5444
- description: string | null;
5445
- id: string;
5446
- is_active: boolean;
5447
- name: string;
5448
- produced_stock: number;
5449
- product_code: string;
5450
- tenant_id: string;
5975
+ default_company_code: string | null;
5976
+ id: boolean;
5977
+ include_travel: boolean;
5978
+ overtime_threshold_daily: number;
5979
+ overtime_threshold_weekly: number;
5980
+ period_type: string;
5451
5981
  updated_at: string;
5982
+ updated_by: string | null;
5983
+ week_start_day: number;
5452
5984
  };
5453
5985
  Insert: {
5454
5986
  created_at?: string;
5455
- description?: string | null;
5456
- id?: string;
5457
- is_active?: boolean;
5458
- name: string;
5459
- produced_stock?: number;
5460
- product_code: string;
5461
- tenant_id: string;
5987
+ default_company_code?: string | null;
5988
+ id?: boolean;
5989
+ include_travel?: boolean;
5990
+ overtime_threshold_daily?: number;
5991
+ overtime_threshold_weekly?: number;
5992
+ period_type?: string;
5462
5993
  updated_at?: string;
5994
+ updated_by?: string | null;
5995
+ week_start_day?: number;
5463
5996
  };
5464
5997
  Update: {
5465
5998
  created_at?: string;
5466
- description?: string | null;
5467
- id?: string;
5468
- is_active?: boolean;
5469
- name?: string;
5470
- produced_stock?: number;
5471
- product_code?: string;
5472
- tenant_id?: string;
5999
+ default_company_code?: string | null;
6000
+ id?: boolean;
6001
+ include_travel?: boolean;
6002
+ overtime_threshold_daily?: number;
6003
+ overtime_threshold_weekly?: number;
6004
+ period_type?: string;
5473
6005
  updated_at?: string;
6006
+ updated_by?: string | null;
6007
+ week_start_day?: number;
5474
6008
  };
5475
6009
  Relationships: [];
5476
6010
  };
5477
- monteurs: {
6011
+ nmbrs_wage_components: {
5478
6012
  Row: {
5479
- avatar_url: string | null;
5480
- color: string | null;
6013
+ category: string;
6014
+ code: string;
5481
6015
  created_at: string;
5482
- email: string | null;
5483
6016
  id: string;
5484
6017
  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;
6018
+ label: string;
6019
+ sort_order: number;
6020
+ unit: string;
5491
6021
  updated_at: string;
5492
- user_id: string | null;
5493
6022
  };
5494
6023
  Insert: {
5495
- avatar_url?: string | null;
5496
- color?: string | null;
6024
+ category: string;
6025
+ code: string;
5497
6026
  created_at?: string;
5498
- email?: string | null;
5499
6027
  id?: string;
5500
6028
  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;
6029
+ label: string;
6030
+ sort_order?: number;
6031
+ unit: string;
5507
6032
  updated_at?: string;
5508
- user_id?: string | null;
5509
6033
  };
5510
6034
  Update: {
5511
- avatar_url?: string | null;
5512
- color?: string | null;
6035
+ category?: string;
6036
+ code?: string;
5513
6037
  created_at?: string;
5514
- email?: string | null;
5515
6038
  id?: string;
5516
6039
  is_active?: boolean;
5517
- leave_balance_hours?: number;
5518
- name?: string;
5519
- persnr?: number | null;
5520
- phone?: string | null;
5521
- role?: string;
5522
- tenant_id?: string;
6040
+ label?: string;
6041
+ sort_order?: number;
6042
+ unit?: string;
5523
6043
  updated_at?: string;
5524
- user_id?: string | null;
5525
6044
  };
5526
- Relationships: [{
5527
- foreignKeyName: "monteurs_tenant_id_fkey";
5528
- columns: ["tenant_id"];
5529
- isOneToOne: false;
5530
- referencedRelation: "tenants";
5531
- referencedColumns: ["id"];
5532
- }];
6045
+ Relationships: [];
5533
6046
  };
5534
6047
  notifications: {
5535
6048
  Row: {
@@ -6513,6 +7026,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6513
7026
  purchase_price: number | null;
6514
7027
  quantity: number;
6515
7028
  sale_price: number | null;
7029
+ trade_item_key: string | null;
6516
7030
  unit: string;
6517
7031
  updated_at: string;
6518
7032
  weight: string | null;
@@ -6535,6 +7049,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6535
7049
  purchase_price?: number | null;
6536
7050
  quantity?: number;
6537
7051
  sale_price?: number | null;
7052
+ trade_item_key?: string | null;
6538
7053
  unit?: string;
6539
7054
  updated_at?: string;
6540
7055
  weight?: string | null;
@@ -6557,6 +7072,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6557
7072
  purchase_price?: number | null;
6558
7073
  quantity?: number;
6559
7074
  sale_price?: number | null;
7075
+ trade_item_key?: string | null;
6560
7076
  unit?: string;
6561
7077
  updated_at?: string;
6562
7078
  weight?: string | null;
@@ -7376,6 +7892,102 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7376
7892
  };
7377
7893
  Relationships: [];
7378
7894
  };
7895
+ stock_import_runs: {
7896
+ Row: {
7897
+ connection_id: string | null;
7898
+ created_at: string;
7899
+ created_rows: number;
7900
+ errors: import("../integrations/supabase/types").Json;
7901
+ filename: string | null;
7902
+ id: string;
7903
+ mutations: import("../integrations/supabase/types").Json;
7904
+ skipped_rows: number;
7905
+ total_rows: number;
7906
+ updated_rows: number;
7907
+ user_id: string;
7908
+ };
7909
+ Insert: {
7910
+ connection_id?: string | null;
7911
+ created_at?: string;
7912
+ created_rows?: number;
7913
+ errors?: import("../integrations/supabase/types").Json;
7914
+ filename?: string | null;
7915
+ id?: string;
7916
+ mutations?: import("../integrations/supabase/types").Json;
7917
+ skipped_rows?: number;
7918
+ total_rows?: number;
7919
+ updated_rows?: number;
7920
+ user_id: string;
7921
+ };
7922
+ Update: {
7923
+ connection_id?: string | null;
7924
+ created_at?: string;
7925
+ created_rows?: number;
7926
+ errors?: import("../integrations/supabase/types").Json;
7927
+ filename?: string | null;
7928
+ id?: string;
7929
+ mutations?: import("../integrations/supabase/types").Json;
7930
+ skipped_rows?: number;
7931
+ total_rows?: number;
7932
+ updated_rows?: number;
7933
+ user_id?: string;
7934
+ };
7935
+ Relationships: [];
7936
+ };
7937
+ stock_mutation_log: {
7938
+ Row: {
7939
+ connection_id: string | null;
7940
+ created_at: string;
7941
+ created_by: string | null;
7942
+ id: string;
7943
+ mutation_type: string;
7944
+ order_id: string | null;
7945
+ order_item_id: string | null;
7946
+ order_source: string | null;
7947
+ physical_after: number | null;
7948
+ physical_before: number | null;
7949
+ qty_delta: number;
7950
+ reason: string | null;
7951
+ reserved_after: number | null;
7952
+ reserved_before: number | null;
7953
+ trade_item_key: string;
7954
+ };
7955
+ Insert: {
7956
+ connection_id?: string | null;
7957
+ created_at?: string;
7958
+ created_by?: string | null;
7959
+ id?: string;
7960
+ mutation_type: string;
7961
+ order_id?: string | null;
7962
+ order_item_id?: string | null;
7963
+ order_source?: string | null;
7964
+ physical_after?: number | null;
7965
+ physical_before?: number | null;
7966
+ qty_delta: number;
7967
+ reason?: string | null;
7968
+ reserved_after?: number | null;
7969
+ reserved_before?: number | null;
7970
+ trade_item_key: string;
7971
+ };
7972
+ Update: {
7973
+ connection_id?: string | null;
7974
+ created_at?: string;
7975
+ created_by?: string | null;
7976
+ id?: string;
7977
+ mutation_type?: string;
7978
+ order_id?: string | null;
7979
+ order_item_id?: string | null;
7980
+ order_source?: string | null;
7981
+ physical_after?: number | null;
7982
+ physical_before?: number | null;
7983
+ qty_delta?: number;
7984
+ reason?: string | null;
7985
+ reserved_after?: number | null;
7986
+ reserved_before?: number | null;
7987
+ trade_item_key?: string;
7988
+ };
7989
+ Relationships: [];
7990
+ };
7379
7991
  supplier_products: {
7380
7992
  Row: {
7381
7993
  article_number: string | null;
@@ -8953,6 +9565,44 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8953
9565
  };
8954
9566
  Relationships: [];
8955
9567
  };
9568
+ floriday_customer_discounts: {
9569
+ Row: {
9570
+ base_price: number | null;
9571
+ buyer_organization_id: string | null;
9572
+ currency: string | null;
9573
+ discount_type: string | null;
9574
+ discount_value: number | null;
9575
+ min_quantity: number | null;
9576
+ net_price: number | null;
9577
+ product_group_id: string | null;
9578
+ raw: import("../integrations/supabase/types").Json | null;
9579
+ source: string | null;
9580
+ source_id: string | null;
9581
+ trade_item_id: string | null;
9582
+ valid_from: string | null;
9583
+ valid_until: string | null;
9584
+ };
9585
+ Relationships: [];
9586
+ };
9587
+ local_customer_discounts: {
9588
+ Row: {
9589
+ base_price: number | null;
9590
+ currency: string | null;
9591
+ customer_id: string | null;
9592
+ discount_type: string | null;
9593
+ discount_value: number | null;
9594
+ min_quantity: number | null;
9595
+ net_price: number | null;
9596
+ product_category_id: string | null;
9597
+ product_id: string | null;
9598
+ product_name: string | null;
9599
+ source: string | null;
9600
+ source_id: string | null;
9601
+ valid_from: string | null;
9602
+ valid_until: string | null;
9603
+ };
9604
+ Relationships: [];
9605
+ };
8956
9606
  manufacture_product_possible_stock_view: {
8957
9607
  Row: {
8958
9608
  component_count: number | null;
@@ -9237,6 +9887,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9237
9887
  };
9238
9888
  Returns: number;
9239
9889
  };
9890
+ afh_city_code: {
9891
+ Args: {
9892
+ _city: string;
9893
+ _country: string;
9894
+ };
9895
+ Returns: string;
9896
+ };
9897
+ afh_normalize_country: {
9898
+ Args: {
9899
+ _raw: string;
9900
+ };
9901
+ Returns: string;
9902
+ };
9903
+ afh_normalize_nl_province: {
9904
+ Args: {
9905
+ _raw: string;
9906
+ };
9907
+ Returns: string;
9908
+ };
9909
+ afh_subtract_workdays: {
9910
+ Args: {
9911
+ _date: string;
9912
+ _days: number;
9913
+ };
9914
+ Returns: string;
9915
+ };
9916
+ apply_stock_consumption: {
9917
+ Args: {
9918
+ p_order_id: string;
9919
+ p_order_item_id: string;
9920
+ p_qty: number;
9921
+ p_reason: string;
9922
+ p_source: string;
9923
+ p_trade_item_key: string;
9924
+ };
9925
+ Returns: undefined;
9926
+ };
9927
+ apply_stock_reservation: {
9928
+ Args: {
9929
+ p_order_id: string;
9930
+ p_order_item_id: string;
9931
+ p_qty: number;
9932
+ p_reason: string;
9933
+ p_source: string;
9934
+ p_trade_item_key: string;
9935
+ };
9936
+ Returns: undefined;
9937
+ };
9240
9938
  assign_cart_numbers: {
9241
9939
  Args: {
9242
9940
  p_carts: import("../integrations/supabase/types").Json;
@@ -9260,12 +9958,40 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9260
9958
  order_number: string;
9261
9959
  }[];
9262
9960
  };
9961
+ backfill_open_order_reservations: {
9962
+ Args: never;
9963
+ Returns: {
9964
+ processed_items: number;
9965
+ }[];
9966
+ };
9263
9967
  call_exact_route: {
9264
9968
  Args: {
9265
9969
  path: string;
9266
9970
  };
9267
9971
  Returns: number;
9268
9972
  };
9973
+ check_offer_product_available_stock: {
9974
+ Args: {
9975
+ p_campaign_product_id: string;
9976
+ p_code: string;
9977
+ p_needed_qty?: number;
9978
+ p_product_name?: string;
9979
+ };
9980
+ Returns: import("../integrations/supabase/types").Json;
9981
+ };
9982
+ check_trade_item_available_stock: {
9983
+ Args: {
9984
+ p_connection_id?: string;
9985
+ p_context?: string;
9986
+ p_needed_qty?: number;
9987
+ p_order_id?: string;
9988
+ p_order_item_id?: string;
9989
+ p_owner_id?: string;
9990
+ p_product_name?: string;
9991
+ p_trade_item_key: string;
9992
+ };
9993
+ Returns: import("../integrations/supabase/types").Json;
9994
+ };
9269
9995
  cleanup_old_bookings: {
9270
9996
  Args: never;
9271
9997
  Returns: number;
@@ -9309,6 +10035,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9309
10035
  table_name: string;
9310
10036
  }[];
9311
10037
  };
10038
+ dispatch_carrier_signups_sql: {
10039
+ Args: {
10040
+ _catchup?: string;
10041
+ };
10042
+ Returns: import("../integrations/supabase/types").Json;
10043
+ };
9312
10044
  email_auth_decrypt: {
9313
10045
  Args: {
9314
10046
  cipher: string;
@@ -9344,6 +10076,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9344
10076
  status: string;
9345
10077
  }[];
9346
10078
  };
10079
+ ensure_trade_item_stock_row: {
10080
+ Args: {
10081
+ p_key: string;
10082
+ };
10083
+ Returns: undefined;
10084
+ };
9347
10085
  ensure_user_tenant: {
9348
10086
  Args: never;
9349
10087
  Returns: string;
@@ -9381,6 +10119,31 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9381
10119
  };
9382
10120
  Returns: boolean;
9383
10121
  };
10122
+ find_trade_item_key: {
10123
+ Args: {
10124
+ p_barcode: string;
10125
+ p_name: string;
10126
+ p_product_id: string;
10127
+ };
10128
+ Returns: string;
10129
+ };
10130
+ floriday_effective_price: {
10131
+ Args: {
10132
+ _buyer_id: string;
10133
+ _on_date?: string;
10134
+ _quantity?: number;
10135
+ _trade_item_id: string;
10136
+ };
10137
+ Returns: {
10138
+ base_price: number;
10139
+ currency: string;
10140
+ discount_type: string;
10141
+ discount_value: number;
10142
+ net_price: number;
10143
+ source: string;
10144
+ source_id: string;
10145
+ }[];
10146
+ };
9384
10147
  format_cart_number: {
9385
10148
  Args: {
9386
10149
  p_pick_date: string;
@@ -9401,6 +10164,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9401
10164
  preferred_warehouse_name: string;
9402
10165
  }[];
9403
10166
  };
10167
+ get_active_floriday_context: {
10168
+ Args: never;
10169
+ Returns: {
10170
+ connection_id: string;
10171
+ user_id: string;
10172
+ }[];
10173
+ };
9404
10174
  get_active_twinfield_public: {
9405
10175
  Args: never;
9406
10176
  Returns: {
@@ -9503,6 +10273,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9503
10273
  };
9504
10274
  Returns: import("../integrations/supabase/types").Json;
9505
10275
  };
10276
+ get_offer_recipient_by_code: {
10277
+ Args: {
10278
+ p_code: string;
10279
+ };
10280
+ Returns: {
10281
+ campaign_id: string;
10282
+ clicked_at: string;
10283
+ customer_id: string;
10284
+ id: string;
10285
+ ordered_at: string;
10286
+ }[];
10287
+ };
9506
10288
  get_or_assign_floriday_order_number: {
9507
10289
  Args: {
9508
10290
  p_floriday_id: string;
@@ -9555,6 +10337,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9555
10337
  Args: never;
9556
10338
  Returns: boolean;
9557
10339
  };
10340
+ local_effective_price: {
10341
+ Args: {
10342
+ _customer_id: string;
10343
+ _on_date?: string;
10344
+ _product_id: string;
10345
+ _quantity?: number;
10346
+ };
10347
+ Returns: {
10348
+ currency: string;
10349
+ discount_type: string;
10350
+ discount_value: number;
10351
+ net_price: number;
10352
+ source: string;
10353
+ source_id: string;
10354
+ }[];
10355
+ };
10356
+ mark_offer_clicked: {
10357
+ Args: {
10358
+ p_code: string;
10359
+ };
10360
+ Returns: undefined;
10361
+ };
10362
+ mark_offer_ordered: {
10363
+ Args: {
10364
+ p_code: string;
10365
+ };
10366
+ Returns: undefined;
10367
+ };
9558
10368
  next_order_number: {
9559
10369
  Args: {
9560
10370
  p_prefix: string;
@@ -9574,6 +10384,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9574
10384
  };
9575
10385
  Returns: string;
9576
10386
  };
10387
+ offer_recipient_matches: {
10388
+ Args: {
10389
+ _campaign_id: string;
10390
+ _customer_id: string;
10391
+ _recipient_id: string;
10392
+ };
10393
+ Returns: boolean;
10394
+ };
9577
10395
  pickstation_get_orders_raw: {
9578
10396
  Args: never;
9579
10397
  Returns: import("../integrations/supabase/types").Json;
@@ -9601,6 +10419,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9601
10419
  };
9602
10420
  Returns: undefined;
9603
10421
  };
10422
+ promote_trade_item_key: {
10423
+ Args: {
10424
+ p_new: string;
10425
+ p_old: string;
10426
+ };
10427
+ Returns: undefined;
10428
+ };
9604
10429
  refresh_floricode_derived_code_lists: {
9605
10430
  Args: never;
9606
10431
  Returns: {