@flowselections/floriday-voorraad 1.0.14 → 1.0.16

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 (45) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +48 -7
  3. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +2 -1
  4. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ExcelExportButton.js +24 -5
  6. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +13 -0
  7. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -0
  8. package/dist-lib/components/voorraad/ProductLinkCard.js +159 -0
  9. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/StockBulkButtons.js +88 -7
  11. package/dist-lib/hooks/useTradeItemSpec.d.ts.map +1 -1
  12. package/dist-lib/hooks/useTradeItemSpec.js +4 -1
  13. package/dist-lib/hooks/useVoorraadData.d.ts +5 -4
  14. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  15. package/dist-lib/hooks/useVoorraadData.js +40 -6
  16. package/dist-lib/index.d.ts +1 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +1 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +743 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +743 -0
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +743 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +763 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/ensure-article-codes.d.ts +8 -0
  28. package/dist-lib/lib/ensure-article-codes.d.ts.map +1 -0
  29. package/dist-lib/lib/ensure-article-codes.js +78 -0
  30. package/dist-lib/lib/floricode-required-features.functions.d.ts +743 -0
  31. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-client.d.ts +6 -0
  33. package/dist-lib/lib/floriday-client.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-gateway.functions.d.ts +2972 -0
  35. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-payload.d.ts +19 -5
  37. package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-payload.js +106 -33
  39. package/dist-lib/lib/floriday-warehouse.functions.d.ts +32228 -0
  40. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -0
  41. package/dist-lib/lib/floriday-warehouse.functions.js +98 -0
  42. package/dist-lib/lib/floriday-writes.functions.d.ts +1616 -130
  43. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-writes.functions.js +34 -6
  45. package/package.json +7 -1
@@ -3622,6 +3622,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3622
3622
  referencedColumns: ["id"];
3623
3623
  }];
3624
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
+ };
3625
3670
  floriday_contract_trade_item_groups_cache: {
3626
3671
  Row: {
3627
3672
  connection_id: string;
@@ -5011,6 +5056,204 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5011
5056
  };
5012
5057
  Relationships: [];
5013
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
+ };
5014
5257
  locations: {
5015
5258
  Row: {
5016
5259
  created_at: string;
@@ -5518,6 +5761,273 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5518
5761
  referencedColumns: ["id"];
5519
5762
  }];
5520
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: {
5957
+ Row: {
5958
+ created_at: 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;
5965
+ updated_at: string;
5966
+ updated_by: string | null;
5967
+ week_start_day: number;
5968
+ };
5969
+ Insert: {
5970
+ created_at?: 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;
5977
+ updated_at?: string;
5978
+ updated_by?: string | null;
5979
+ week_start_day?: number;
5980
+ };
5981
+ Update: {
5982
+ created_at?: 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;
5989
+ updated_at?: string;
5990
+ updated_by?: string | null;
5991
+ week_start_day?: number;
5992
+ };
5993
+ Relationships: [];
5994
+ };
5995
+ nmbrs_wage_components: {
5996
+ Row: {
5997
+ category: string;
5998
+ code: string;
5999
+ created_at: string;
6000
+ id: string;
6001
+ is_active: boolean;
6002
+ label: string;
6003
+ sort_order: number;
6004
+ unit: string;
6005
+ updated_at: string;
6006
+ };
6007
+ Insert: {
6008
+ category: string;
6009
+ code: string;
6010
+ created_at?: string;
6011
+ id?: string;
6012
+ is_active?: boolean;
6013
+ label: string;
6014
+ sort_order?: number;
6015
+ unit: string;
6016
+ updated_at?: string;
6017
+ };
6018
+ Update: {
6019
+ category?: string;
6020
+ code?: string;
6021
+ created_at?: string;
6022
+ id?: string;
6023
+ is_active?: boolean;
6024
+ label?: string;
6025
+ sort_order?: number;
6026
+ unit?: string;
6027
+ updated_at?: string;
6028
+ };
6029
+ Relationships: [];
6030
+ };
5521
6031
  notifications: {
5522
6032
  Row: {
5523
6033
  created_at: string;
@@ -7366,6 +7876,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7366
7876
  };
7367
7877
  Relationships: [];
7368
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
+ };
7369
7921
  stock_mutation_log: {
7370
7922
  Row: {
7371
7923
  connection_id: string | null;
@@ -8997,6 +9549,44 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8997
9549
  };
8998
9550
  Relationships: [];
8999
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
+ };
9000
9590
  manufacture_product_possible_stock_view: {
9001
9591
  Row: {
9002
9592
  component_count: number | null;
@@ -9281,6 +9871,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9281
9871
  };
9282
9872
  Returns: number;
9283
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
+ };
9284
9900
  apply_stock_consumption: {
9285
9901
  Args: {
9286
9902
  p_order_id: string;
@@ -9326,12 +9942,40 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9326
9942
  order_number: string;
9327
9943
  }[];
9328
9944
  };
9945
+ backfill_open_order_reservations: {
9946
+ Args: never;
9947
+ Returns: {
9948
+ processed_items: number;
9949
+ }[];
9950
+ };
9329
9951
  call_exact_route: {
9330
9952
  Args: {
9331
9953
  path: string;
9332
9954
  };
9333
9955
  Returns: number;
9334
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
+ };
9335
9979
  cleanup_old_bookings: {
9336
9980
  Args: never;
9337
9981
  Returns: number;
@@ -9375,6 +10019,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9375
10019
  table_name: string;
9376
10020
  }[];
9377
10021
  };
10022
+ dispatch_carrier_signups_sql: {
10023
+ Args: {
10024
+ _catchup?: string;
10025
+ };
10026
+ Returns: import("./types").Json;
10027
+ };
9378
10028
  email_auth_decrypt: {
9379
10029
  Args: {
9380
10030
  cipher: string;
@@ -9410,6 +10060,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9410
10060
  status: string;
9411
10061
  }[];
9412
10062
  };
10063
+ ensure_trade_item_stock_row: {
10064
+ Args: {
10065
+ p_key: string;
10066
+ };
10067
+ Returns: undefined;
10068
+ };
9413
10069
  ensure_user_tenant: {
9414
10070
  Args: never;
9415
10071
  Returns: string;
@@ -9447,6 +10103,31 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9447
10103
  };
9448
10104
  Returns: boolean;
9449
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
+ };
9450
10131
  format_cart_number: {
9451
10132
  Args: {
9452
10133
  p_pick_date: string;
@@ -9467,6 +10148,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9467
10148
  preferred_warehouse_name: string;
9468
10149
  }[];
9469
10150
  };
10151
+ get_active_floriday_context: {
10152
+ Args: never;
10153
+ Returns: {
10154
+ connection_id: string;
10155
+ user_id: string;
10156
+ }[];
10157
+ };
9470
10158
  get_active_twinfield_public: {
9471
10159
  Args: never;
9472
10160
  Returns: {
@@ -9569,6 +10257,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9569
10257
  };
9570
10258
  Returns: import("./types").Json;
9571
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
+ };
9572
10272
  get_or_assign_floriday_order_number: {
9573
10273
  Args: {
9574
10274
  p_floriday_id: string;
@@ -9621,6 +10321,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9621
10321
  Args: never;
9622
10322
  Returns: boolean;
9623
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
+ };
9624
10352
  next_order_number: {
9625
10353
  Args: {
9626
10354
  p_prefix: string;
@@ -9640,6 +10368,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9640
10368
  };
9641
10369
  Returns: string;
9642
10370
  };
10371
+ offer_recipient_matches: {
10372
+ Args: {
10373
+ _campaign_id: string;
10374
+ _customer_id: string;
10375
+ _recipient_id: string;
10376
+ };
10377
+ Returns: boolean;
10378
+ };
9643
10379
  pickstation_get_orders_raw: {
9644
10380
  Args: never;
9645
10381
  Returns: import("./types").Json;
@@ -9667,6 +10403,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9667
10403
  };
9668
10404
  Returns: undefined;
9669
10405
  };
10406
+ promote_trade_item_key: {
10407
+ Args: {
10408
+ p_new: string;
10409
+ p_old: string;
10410
+ };
10411
+ Returns: undefined;
10412
+ };
9670
10413
  refresh_floricode_derived_code_lists: {
9671
10414
  Args: never;
9672
10415
  Returns: {