@flowselections/floriday-voorraad 1.0.15 → 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 +1 -1
@@ -3632,6 +3632,51 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
3632
3632
  referencedColumns: ["id"];
3633
3633
  }];
3634
3634
  };
3635
+ floriday_continuous_stock_queue: {
3636
+ Row: {
3637
+ attempts: number;
3638
+ connection_id: string;
3639
+ created_at: string;
3640
+ gateway_attempt_id: string | null;
3641
+ id: string;
3642
+ last_error: string | null;
3643
+ number_of_pieces: number;
3644
+ sent_at: string | null;
3645
+ status: string;
3646
+ trade_item_id: string;
3647
+ updated_at: string;
3648
+ user_id: string;
3649
+ };
3650
+ Insert: {
3651
+ attempts?: number;
3652
+ connection_id: string;
3653
+ created_at?: string;
3654
+ gateway_attempt_id?: string | null;
3655
+ id?: string;
3656
+ last_error?: string | null;
3657
+ number_of_pieces?: number;
3658
+ sent_at?: string | null;
3659
+ status?: string;
3660
+ trade_item_id: string;
3661
+ updated_at?: string;
3662
+ user_id: string;
3663
+ };
3664
+ Update: {
3665
+ attempts?: number;
3666
+ connection_id?: string;
3667
+ created_at?: string;
3668
+ gateway_attempt_id?: string | null;
3669
+ id?: string;
3670
+ last_error?: string | null;
3671
+ number_of_pieces?: number;
3672
+ sent_at?: string | null;
3673
+ status?: string;
3674
+ trade_item_id?: string;
3675
+ updated_at?: string;
3676
+ user_id?: string;
3677
+ };
3678
+ Relationships: [];
3679
+ };
3635
3680
  floriday_contract_trade_item_groups_cache: {
3636
3681
  Row: {
3637
3682
  connection_id: string;
@@ -5021,6 +5066,204 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5021
5066
  };
5022
5067
  Relationships: [];
5023
5068
  };
5069
+ local_customer_agreements: {
5070
+ Row: {
5071
+ base_price: number | null;
5072
+ created_at: string;
5073
+ currency: string;
5074
+ customer_id: string;
5075
+ id: string;
5076
+ min_quantity: number;
5077
+ net_price: number;
5078
+ notes: string | null;
5079
+ product_category_id: string | null;
5080
+ product_id: string | null;
5081
+ updated_at: string;
5082
+ valid_from: string | null;
5083
+ valid_until: string | null;
5084
+ };
5085
+ Insert: {
5086
+ base_price?: number | null;
5087
+ created_at?: string;
5088
+ currency?: string;
5089
+ customer_id: string;
5090
+ id?: string;
5091
+ min_quantity?: number;
5092
+ net_price: number;
5093
+ notes?: string | null;
5094
+ product_category_id?: string | null;
5095
+ product_id?: string | null;
5096
+ updated_at?: string;
5097
+ valid_from?: string | null;
5098
+ valid_until?: string | null;
5099
+ };
5100
+ Update: {
5101
+ base_price?: number | null;
5102
+ created_at?: string;
5103
+ currency?: string;
5104
+ customer_id?: string;
5105
+ id?: string;
5106
+ min_quantity?: number;
5107
+ net_price?: number;
5108
+ notes?: string | null;
5109
+ product_category_id?: string | null;
5110
+ product_id?: string | null;
5111
+ updated_at?: string;
5112
+ valid_from?: string | null;
5113
+ valid_until?: string | null;
5114
+ };
5115
+ Relationships: [{
5116
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5117
+ columns: ["customer_id"];
5118
+ isOneToOne: false;
5119
+ referencedRelation: "customers";
5120
+ referencedColumns: ["id"];
5121
+ }, {
5122
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5123
+ columns: ["product_category_id"];
5124
+ isOneToOne: false;
5125
+ referencedRelation: "product_categories";
5126
+ referencedColumns: ["id"];
5127
+ }, {
5128
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5129
+ columns: ["product_id"];
5130
+ isOneToOne: false;
5131
+ referencedRelation: "products";
5132
+ referencedColumns: ["id"];
5133
+ }];
5134
+ };
5135
+ local_customer_price_groups: {
5136
+ Row: {
5137
+ created_at: string;
5138
+ currency: string;
5139
+ customer_id: string;
5140
+ discount_type: string;
5141
+ discount_value: number;
5142
+ id: string;
5143
+ min_quantity: number;
5144
+ notes: string | null;
5145
+ product_category_id: string | null;
5146
+ product_id: string | null;
5147
+ updated_at: string;
5148
+ valid_from: string | null;
5149
+ valid_until: string | null;
5150
+ };
5151
+ Insert: {
5152
+ created_at?: string;
5153
+ currency?: string;
5154
+ customer_id: string;
5155
+ discount_type: string;
5156
+ discount_value: number;
5157
+ id?: string;
5158
+ min_quantity?: number;
5159
+ notes?: string | null;
5160
+ product_category_id?: string | null;
5161
+ product_id?: string | null;
5162
+ updated_at?: string;
5163
+ valid_from?: string | null;
5164
+ valid_until?: string | null;
5165
+ };
5166
+ Update: {
5167
+ created_at?: string;
5168
+ currency?: string;
5169
+ customer_id?: string;
5170
+ discount_type?: string;
5171
+ discount_value?: number;
5172
+ id?: string;
5173
+ min_quantity?: number;
5174
+ notes?: string | null;
5175
+ product_category_id?: string | null;
5176
+ product_id?: string | null;
5177
+ updated_at?: string;
5178
+ valid_from?: string | null;
5179
+ valid_until?: string | null;
5180
+ };
5181
+ Relationships: [{
5182
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5183
+ columns: ["customer_id"];
5184
+ isOneToOne: false;
5185
+ referencedRelation: "customers";
5186
+ referencedColumns: ["id"];
5187
+ }, {
5188
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5189
+ columns: ["product_category_id"];
5190
+ isOneToOne: false;
5191
+ referencedRelation: "product_categories";
5192
+ referencedColumns: ["id"];
5193
+ }, {
5194
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5195
+ columns: ["product_id"];
5196
+ isOneToOne: false;
5197
+ referencedRelation: "products";
5198
+ referencedColumns: ["id"];
5199
+ }];
5200
+ };
5201
+ local_customer_sales_strategies: {
5202
+ Row: {
5203
+ created_at: string;
5204
+ currency: string;
5205
+ customer_id: string;
5206
+ discount_type: string;
5207
+ discount_value: number;
5208
+ id: string;
5209
+ min_quantity: number;
5210
+ notes: string | null;
5211
+ product_category_id: string | null;
5212
+ product_id: string | null;
5213
+ updated_at: string;
5214
+ valid_from: string | null;
5215
+ valid_until: string | null;
5216
+ };
5217
+ Insert: {
5218
+ created_at?: string;
5219
+ currency?: string;
5220
+ customer_id: string;
5221
+ discount_type: string;
5222
+ discount_value: number;
5223
+ id?: string;
5224
+ min_quantity?: number;
5225
+ notes?: string | null;
5226
+ product_category_id?: string | null;
5227
+ product_id?: string | null;
5228
+ updated_at?: string;
5229
+ valid_from?: string | null;
5230
+ valid_until?: string | null;
5231
+ };
5232
+ Update: {
5233
+ created_at?: string;
5234
+ currency?: string;
5235
+ customer_id?: string;
5236
+ discount_type?: string;
5237
+ discount_value?: number;
5238
+ id?: string;
5239
+ min_quantity?: number;
5240
+ notes?: string | null;
5241
+ product_category_id?: string | null;
5242
+ product_id?: string | null;
5243
+ updated_at?: string;
5244
+ valid_from?: string | null;
5245
+ valid_until?: string | null;
5246
+ };
5247
+ Relationships: [{
5248
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5249
+ columns: ["customer_id"];
5250
+ isOneToOne: false;
5251
+ referencedRelation: "customers";
5252
+ referencedColumns: ["id"];
5253
+ }, {
5254
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5255
+ columns: ["product_category_id"];
5256
+ isOneToOne: false;
5257
+ referencedRelation: "product_categories";
5258
+ referencedColumns: ["id"];
5259
+ }, {
5260
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5261
+ columns: ["product_id"];
5262
+ isOneToOne: false;
5263
+ referencedRelation: "products";
5264
+ referencedColumns: ["id"];
5265
+ }];
5266
+ };
5024
5267
  locations: {
5025
5268
  Row: {
5026
5269
  created_at: string;
@@ -5528,99 +5771,366 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5528
5771
  referencedColumns: ["id"];
5529
5772
  }];
5530
5773
  };
5531
- notifications: {
5774
+ nmbrs_component_mapping: {
5532
5775
  Row: {
5533
5776
  created_at: string;
5534
5777
  id: string;
5535
- message: string | null;
5536
- read: boolean;
5537
- title: string;
5778
+ source_kind: string;
5779
+ source_value: string | null;
5538
5780
  updated_at: string;
5539
- user_id: string;
5781
+ wage_code: string;
5540
5782
  };
5541
5783
  Insert: {
5542
5784
  created_at?: string;
5543
5785
  id?: string;
5544
- message?: string | null;
5545
- read?: boolean;
5546
- title: string;
5786
+ source_kind: string;
5787
+ source_value?: string | null;
5547
5788
  updated_at?: string;
5548
- user_id: string;
5789
+ wage_code: string;
5549
5790
  };
5550
5791
  Update: {
5551
5792
  created_at?: string;
5552
5793
  id?: string;
5553
- message?: string | null;
5554
- read?: boolean;
5555
- title?: string;
5794
+ source_kind?: string;
5795
+ source_value?: string | null;
5556
5796
  updated_at?: string;
5557
- user_id?: string;
5797
+ wage_code?: string;
5558
5798
  };
5559
- Relationships: [];
5799
+ Relationships: [{
5800
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5801
+ columns: ["wage_code"];
5802
+ isOneToOne: false;
5803
+ referencedRelation: "nmbrs_wage_components";
5804
+ referencedColumns: ["code"];
5805
+ }];
5560
5806
  };
5561
- offer_campaign_product_tiers: {
5807
+ nmbrs_employee_mapping: {
5562
5808
  Row: {
5563
- campaign_product_id: string;
5809
+ active_from: string | null;
5810
+ active_to: string | null;
5811
+ contract_hours_per_week: number | null;
5564
5812
  created_at: string;
5813
+ hourly_wage: number | null;
5565
5814
  id: string;
5566
- min_crates: number;
5567
- price_per_crate: number;
5568
- sort_order: number;
5815
+ monteur_id: string;
5816
+ nmbrs_company_code: string | null;
5817
+ nmbrs_employee_number: string;
5818
+ updated_at: string;
5569
5819
  };
5570
5820
  Insert: {
5571
- campaign_product_id: string;
5821
+ active_from?: string | null;
5822
+ active_to?: string | null;
5823
+ contract_hours_per_week?: number | null;
5572
5824
  created_at?: string;
5825
+ hourly_wage?: number | null;
5573
5826
  id?: string;
5574
- min_crates?: number;
5575
- price_per_crate?: number;
5576
- sort_order?: number;
5827
+ monteur_id: string;
5828
+ nmbrs_company_code?: string | null;
5829
+ nmbrs_employee_number: string;
5830
+ updated_at?: string;
5577
5831
  };
5578
5832
  Update: {
5579
- campaign_product_id?: string;
5833
+ active_from?: string | null;
5834
+ active_to?: string | null;
5835
+ contract_hours_per_week?: number | null;
5580
5836
  created_at?: string;
5837
+ hourly_wage?: number | null;
5581
5838
  id?: string;
5582
- min_crates?: number;
5583
- price_per_crate?: number;
5584
- sort_order?: number;
5839
+ monteur_id?: string;
5840
+ nmbrs_company_code?: string | null;
5841
+ nmbrs_employee_number?: string;
5842
+ updated_at?: string;
5585
5843
  };
5586
5844
  Relationships: [{
5587
- foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
5588
- columns: ["campaign_product_id"];
5589
- isOneToOne: false;
5590
- referencedRelation: "offer_campaign_products";
5845
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5846
+ columns: ["monteur_id"];
5847
+ isOneToOne: true;
5848
+ referencedRelation: "monteurs";
5591
5849
  referencedColumns: ["id"];
5592
5850
  }];
5593
5851
  };
5594
- offer_campaign_products: {
5852
+ nmbrs_export_lines: {
5595
5853
  Row: {
5596
- available_stock: number;
5597
- barcode: string | null;
5598
- belading: string | null;
5599
- campaign_id: string;
5600
- crate_price: number | null;
5854
+ amount: number;
5601
5855
  created_at: string;
5602
- description: string | null;
5603
- discount_price: number;
5856
+ entry_date: string;
5857
+ hours: number;
5604
5858
  id: string;
5605
- image_url: string | null;
5606
- normal_price: number;
5607
- plants_per_crate: number | null;
5608
- product_id: string | null;
5609
- product_name: string;
5610
- sort_order: number;
5611
- sticker_available: boolean;
5612
- sticker_cost: number | null;
5859
+ monteur_id: string;
5860
+ nmbrs_employee_number: string | null;
5861
+ notes: string | null;
5862
+ run_id: string;
5863
+ source_kind: string | null;
5864
+ source_ref_id: string | null;
5865
+ updated_at: string;
5866
+ wage_code: string;
5613
5867
  };
5614
5868
  Insert: {
5615
- available_stock?: number;
5616
- barcode?: string | null;
5617
- belading?: string | null;
5618
- campaign_id: string;
5619
- crate_price?: number | null;
5869
+ amount?: number;
5620
5870
  created_at?: string;
5621
- description?: string | null;
5622
- discount_price?: number;
5623
- id?: string;
5871
+ entry_date: string;
5872
+ hours?: number;
5873
+ id?: string;
5874
+ monteur_id: string;
5875
+ nmbrs_employee_number?: string | null;
5876
+ notes?: string | null;
5877
+ run_id: string;
5878
+ source_kind?: string | null;
5879
+ source_ref_id?: string | null;
5880
+ updated_at?: string;
5881
+ wage_code: string;
5882
+ };
5883
+ Update: {
5884
+ amount?: number;
5885
+ created_at?: string;
5886
+ entry_date?: string;
5887
+ hours?: number;
5888
+ id?: string;
5889
+ monteur_id?: string;
5890
+ nmbrs_employee_number?: string | null;
5891
+ notes?: string | null;
5892
+ run_id?: string;
5893
+ source_kind?: string | null;
5894
+ source_ref_id?: string | null;
5895
+ updated_at?: string;
5896
+ wage_code?: string;
5897
+ };
5898
+ Relationships: [{
5899
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5900
+ columns: ["monteur_id"];
5901
+ isOneToOne: false;
5902
+ referencedRelation: "monteurs";
5903
+ referencedColumns: ["id"];
5904
+ }, {
5905
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5906
+ columns: ["run_id"];
5907
+ isOneToOne: false;
5908
+ referencedRelation: "nmbrs_export_runs";
5909
+ referencedColumns: ["id"];
5910
+ }, {
5911
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5912
+ columns: ["wage_code"];
5913
+ isOneToOne: false;
5914
+ referencedRelation: "nmbrs_wage_components";
5915
+ referencedColumns: ["code"];
5916
+ }];
5917
+ };
5918
+ nmbrs_export_runs: {
5919
+ Row: {
5920
+ created_at: string;
5921
+ file_name: string | null;
5922
+ generated_at: string;
5923
+ generated_by: string | null;
5924
+ id: string;
5925
+ notes: string | null;
5926
+ period_end: string;
5927
+ period_label: string;
5928
+ period_start: string;
5929
+ status: string;
5930
+ total_hours: number;
5931
+ total_lines: number;
5932
+ updated_at: string;
5933
+ };
5934
+ Insert: {
5935
+ created_at?: string;
5936
+ file_name?: string | null;
5937
+ generated_at?: string;
5938
+ generated_by?: string | null;
5939
+ id?: string;
5940
+ notes?: string | null;
5941
+ period_end: string;
5942
+ period_label: string;
5943
+ period_start: string;
5944
+ status?: string;
5945
+ total_hours?: number;
5946
+ total_lines?: number;
5947
+ updated_at?: string;
5948
+ };
5949
+ Update: {
5950
+ created_at?: string;
5951
+ file_name?: string | null;
5952
+ generated_at?: string;
5953
+ generated_by?: string | null;
5954
+ id?: string;
5955
+ notes?: string | null;
5956
+ period_end?: string;
5957
+ period_label?: string;
5958
+ period_start?: string;
5959
+ status?: string;
5960
+ total_hours?: number;
5961
+ total_lines?: number;
5962
+ updated_at?: string;
5963
+ };
5964
+ Relationships: [];
5965
+ };
5966
+ nmbrs_settings: {
5967
+ Row: {
5968
+ created_at: string;
5969
+ default_company_code: string | null;
5970
+ id: boolean;
5971
+ include_travel: boolean;
5972
+ overtime_threshold_daily: number;
5973
+ overtime_threshold_weekly: number;
5974
+ period_type: string;
5975
+ updated_at: string;
5976
+ updated_by: string | null;
5977
+ week_start_day: number;
5978
+ };
5979
+ Insert: {
5980
+ created_at?: string;
5981
+ default_company_code?: string | null;
5982
+ id?: boolean;
5983
+ include_travel?: boolean;
5984
+ overtime_threshold_daily?: number;
5985
+ overtime_threshold_weekly?: number;
5986
+ period_type?: string;
5987
+ updated_at?: string;
5988
+ updated_by?: string | null;
5989
+ week_start_day?: number;
5990
+ };
5991
+ Update: {
5992
+ created_at?: string;
5993
+ default_company_code?: string | null;
5994
+ id?: boolean;
5995
+ include_travel?: boolean;
5996
+ overtime_threshold_daily?: number;
5997
+ overtime_threshold_weekly?: number;
5998
+ period_type?: string;
5999
+ updated_at?: string;
6000
+ updated_by?: string | null;
6001
+ week_start_day?: number;
6002
+ };
6003
+ Relationships: [];
6004
+ };
6005
+ nmbrs_wage_components: {
6006
+ Row: {
6007
+ category: string;
6008
+ code: string;
6009
+ created_at: string;
6010
+ id: string;
6011
+ is_active: boolean;
6012
+ label: string;
6013
+ sort_order: number;
6014
+ unit: string;
6015
+ updated_at: string;
6016
+ };
6017
+ Insert: {
6018
+ category: string;
6019
+ code: string;
6020
+ created_at?: string;
6021
+ id?: string;
6022
+ is_active?: boolean;
6023
+ label: string;
6024
+ sort_order?: number;
6025
+ unit: string;
6026
+ updated_at?: string;
6027
+ };
6028
+ Update: {
6029
+ category?: string;
6030
+ code?: string;
6031
+ created_at?: string;
6032
+ id?: string;
6033
+ is_active?: boolean;
6034
+ label?: string;
6035
+ sort_order?: number;
6036
+ unit?: string;
6037
+ updated_at?: string;
6038
+ };
6039
+ Relationships: [];
6040
+ };
6041
+ notifications: {
6042
+ Row: {
6043
+ created_at: string;
6044
+ id: string;
6045
+ message: string | null;
6046
+ read: boolean;
6047
+ title: string;
6048
+ updated_at: string;
6049
+ user_id: string;
6050
+ };
6051
+ Insert: {
6052
+ created_at?: string;
6053
+ id?: string;
6054
+ message?: string | null;
6055
+ read?: boolean;
6056
+ title: string;
6057
+ updated_at?: string;
6058
+ user_id: string;
6059
+ };
6060
+ Update: {
6061
+ created_at?: string;
6062
+ id?: string;
6063
+ message?: string | null;
6064
+ read?: boolean;
6065
+ title?: string;
6066
+ updated_at?: string;
6067
+ user_id?: string;
6068
+ };
6069
+ Relationships: [];
6070
+ };
6071
+ offer_campaign_product_tiers: {
6072
+ Row: {
6073
+ campaign_product_id: string;
6074
+ created_at: string;
6075
+ id: string;
6076
+ min_crates: number;
6077
+ price_per_crate: number;
6078
+ sort_order: number;
6079
+ };
6080
+ Insert: {
6081
+ campaign_product_id: string;
6082
+ created_at?: string;
6083
+ id?: string;
6084
+ min_crates?: number;
6085
+ price_per_crate?: number;
6086
+ sort_order?: number;
6087
+ };
6088
+ Update: {
6089
+ campaign_product_id?: string;
6090
+ created_at?: string;
6091
+ id?: string;
6092
+ min_crates?: number;
6093
+ price_per_crate?: number;
6094
+ sort_order?: number;
6095
+ };
6096
+ Relationships: [{
6097
+ foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
6098
+ columns: ["campaign_product_id"];
6099
+ isOneToOne: false;
6100
+ referencedRelation: "offer_campaign_products";
6101
+ referencedColumns: ["id"];
6102
+ }];
6103
+ };
6104
+ offer_campaign_products: {
6105
+ Row: {
6106
+ available_stock: number;
6107
+ barcode: string | null;
6108
+ belading: string | null;
6109
+ campaign_id: string;
6110
+ crate_price: number | null;
6111
+ created_at: string;
6112
+ description: string | null;
6113
+ discount_price: number;
6114
+ id: string;
6115
+ image_url: string | null;
6116
+ normal_price: number;
6117
+ plants_per_crate: number | null;
6118
+ product_id: string | null;
6119
+ product_name: string;
6120
+ sort_order: number;
6121
+ sticker_available: boolean;
6122
+ sticker_cost: number | null;
6123
+ };
6124
+ Insert: {
6125
+ available_stock?: number;
6126
+ barcode?: string | null;
6127
+ belading?: string | null;
6128
+ campaign_id: string;
6129
+ crate_price?: number | null;
6130
+ created_at?: string;
6131
+ description?: string | null;
6132
+ discount_price?: number;
6133
+ id?: string;
5624
6134
  image_url?: string | null;
5625
6135
  normal_price?: number;
5626
6136
  plants_per_crate?: number | null;
@@ -7376,6 +7886,48 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7376
7886
  };
7377
7887
  Relationships: [];
7378
7888
  };
7889
+ stock_import_runs: {
7890
+ Row: {
7891
+ connection_id: string | null;
7892
+ created_at: string;
7893
+ created_rows: number;
7894
+ errors: import("../integrations/supabase/types").Json;
7895
+ filename: string | null;
7896
+ id: string;
7897
+ mutations: import("../integrations/supabase/types").Json;
7898
+ skipped_rows: number;
7899
+ total_rows: number;
7900
+ updated_rows: number;
7901
+ user_id: string;
7902
+ };
7903
+ Insert: {
7904
+ connection_id?: string | null;
7905
+ created_at?: string;
7906
+ created_rows?: number;
7907
+ errors?: import("../integrations/supabase/types").Json;
7908
+ filename?: string | null;
7909
+ id?: string;
7910
+ mutations?: import("../integrations/supabase/types").Json;
7911
+ skipped_rows?: number;
7912
+ total_rows?: number;
7913
+ updated_rows?: number;
7914
+ user_id: string;
7915
+ };
7916
+ Update: {
7917
+ connection_id?: string | null;
7918
+ created_at?: string;
7919
+ created_rows?: number;
7920
+ errors?: import("../integrations/supabase/types").Json;
7921
+ filename?: string | null;
7922
+ id?: string;
7923
+ mutations?: import("../integrations/supabase/types").Json;
7924
+ skipped_rows?: number;
7925
+ total_rows?: number;
7926
+ updated_rows?: number;
7927
+ user_id?: string;
7928
+ };
7929
+ Relationships: [];
7930
+ };
7379
7931
  stock_mutation_log: {
7380
7932
  Row: {
7381
7933
  connection_id: string | null;
@@ -9007,6 +9559,44 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9007
9559
  };
9008
9560
  Relationships: [];
9009
9561
  };
9562
+ floriday_customer_discounts: {
9563
+ Row: {
9564
+ base_price: number | null;
9565
+ buyer_organization_id: string | null;
9566
+ currency: string | null;
9567
+ discount_type: string | null;
9568
+ discount_value: number | null;
9569
+ min_quantity: number | null;
9570
+ net_price: number | null;
9571
+ product_group_id: string | null;
9572
+ raw: import("../integrations/supabase/types").Json | null;
9573
+ source: string | null;
9574
+ source_id: string | null;
9575
+ trade_item_id: string | null;
9576
+ valid_from: string | null;
9577
+ valid_until: string | null;
9578
+ };
9579
+ Relationships: [];
9580
+ };
9581
+ local_customer_discounts: {
9582
+ Row: {
9583
+ base_price: number | null;
9584
+ currency: string | null;
9585
+ customer_id: string | null;
9586
+ discount_type: string | null;
9587
+ discount_value: number | null;
9588
+ min_quantity: number | null;
9589
+ net_price: number | null;
9590
+ product_category_id: string | null;
9591
+ product_id: string | null;
9592
+ product_name: string | null;
9593
+ source: string | null;
9594
+ source_id: string | null;
9595
+ valid_from: string | null;
9596
+ valid_until: string | null;
9597
+ };
9598
+ Relationships: [];
9599
+ };
9010
9600
  manufacture_product_possible_stock_view: {
9011
9601
  Row: {
9012
9602
  component_count: number | null;
@@ -9291,14 +9881,40 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9291
9881
  };
9292
9882
  Returns: number;
9293
9883
  };
9294
- apply_stock_consumption: {
9884
+ afh_city_code: {
9295
9885
  Args: {
9296
- p_order_id: string;
9297
- p_order_item_id: string;
9298
- p_qty: number;
9299
- p_reason: string;
9300
- p_source: string;
9301
- p_trade_item_key: string;
9886
+ _city: string;
9887
+ _country: string;
9888
+ };
9889
+ Returns: string;
9890
+ };
9891
+ afh_normalize_country: {
9892
+ Args: {
9893
+ _raw: string;
9894
+ };
9895
+ Returns: string;
9896
+ };
9897
+ afh_normalize_nl_province: {
9898
+ Args: {
9899
+ _raw: string;
9900
+ };
9901
+ Returns: string;
9902
+ };
9903
+ afh_subtract_workdays: {
9904
+ Args: {
9905
+ _date: string;
9906
+ _days: number;
9907
+ };
9908
+ Returns: string;
9909
+ };
9910
+ apply_stock_consumption: {
9911
+ Args: {
9912
+ p_order_id: string;
9913
+ p_order_item_id: string;
9914
+ p_qty: number;
9915
+ p_reason: string;
9916
+ p_source: string;
9917
+ p_trade_item_key: string;
9302
9918
  };
9303
9919
  Returns: undefined;
9304
9920
  };
@@ -9336,12 +9952,40 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9336
9952
  order_number: string;
9337
9953
  }[];
9338
9954
  };
9955
+ backfill_open_order_reservations: {
9956
+ Args: never;
9957
+ Returns: {
9958
+ processed_items: number;
9959
+ }[];
9960
+ };
9339
9961
  call_exact_route: {
9340
9962
  Args: {
9341
9963
  path: string;
9342
9964
  };
9343
9965
  Returns: number;
9344
9966
  };
9967
+ check_offer_product_available_stock: {
9968
+ Args: {
9969
+ p_campaign_product_id: string;
9970
+ p_code: string;
9971
+ p_needed_qty?: number;
9972
+ p_product_name?: string;
9973
+ };
9974
+ Returns: import("../integrations/supabase/types").Json;
9975
+ };
9976
+ check_trade_item_available_stock: {
9977
+ Args: {
9978
+ p_connection_id?: string;
9979
+ p_context?: string;
9980
+ p_needed_qty?: number;
9981
+ p_order_id?: string;
9982
+ p_order_item_id?: string;
9983
+ p_owner_id?: string;
9984
+ p_product_name?: string;
9985
+ p_trade_item_key: string;
9986
+ };
9987
+ Returns: import("../integrations/supabase/types").Json;
9988
+ };
9345
9989
  cleanup_old_bookings: {
9346
9990
  Args: never;
9347
9991
  Returns: number;
@@ -9385,6 +10029,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9385
10029
  table_name: string;
9386
10030
  }[];
9387
10031
  };
10032
+ dispatch_carrier_signups_sql: {
10033
+ Args: {
10034
+ _catchup?: string;
10035
+ };
10036
+ Returns: import("../integrations/supabase/types").Json;
10037
+ };
9388
10038
  email_auth_decrypt: {
9389
10039
  Args: {
9390
10040
  cipher: string;
@@ -9420,6 +10070,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9420
10070
  status: string;
9421
10071
  }[];
9422
10072
  };
10073
+ ensure_trade_item_stock_row: {
10074
+ Args: {
10075
+ p_key: string;
10076
+ };
10077
+ Returns: undefined;
10078
+ };
9423
10079
  ensure_user_tenant: {
9424
10080
  Args: never;
9425
10081
  Returns: string;
@@ -9457,6 +10113,31 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9457
10113
  };
9458
10114
  Returns: boolean;
9459
10115
  };
10116
+ find_trade_item_key: {
10117
+ Args: {
10118
+ p_barcode: string;
10119
+ p_name: string;
10120
+ p_product_id: string;
10121
+ };
10122
+ Returns: string;
10123
+ };
10124
+ floriday_effective_price: {
10125
+ Args: {
10126
+ _buyer_id: string;
10127
+ _on_date?: string;
10128
+ _quantity?: number;
10129
+ _trade_item_id: string;
10130
+ };
10131
+ Returns: {
10132
+ base_price: number;
10133
+ currency: string;
10134
+ discount_type: string;
10135
+ discount_value: number;
10136
+ net_price: number;
10137
+ source: string;
10138
+ source_id: string;
10139
+ }[];
10140
+ };
9460
10141
  format_cart_number: {
9461
10142
  Args: {
9462
10143
  p_pick_date: string;
@@ -9477,6 +10158,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9477
10158
  preferred_warehouse_name: string;
9478
10159
  }[];
9479
10160
  };
10161
+ get_active_floriday_context: {
10162
+ Args: never;
10163
+ Returns: {
10164
+ connection_id: string;
10165
+ user_id: string;
10166
+ }[];
10167
+ };
9480
10168
  get_active_twinfield_public: {
9481
10169
  Args: never;
9482
10170
  Returns: {
@@ -9579,6 +10267,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9579
10267
  };
9580
10268
  Returns: import("../integrations/supabase/types").Json;
9581
10269
  };
10270
+ get_offer_recipient_by_code: {
10271
+ Args: {
10272
+ p_code: string;
10273
+ };
10274
+ Returns: {
10275
+ campaign_id: string;
10276
+ clicked_at: string;
10277
+ customer_id: string;
10278
+ id: string;
10279
+ ordered_at: string;
10280
+ }[];
10281
+ };
9582
10282
  get_or_assign_floriday_order_number: {
9583
10283
  Args: {
9584
10284
  p_floriday_id: string;
@@ -9631,6 +10331,34 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9631
10331
  Args: never;
9632
10332
  Returns: boolean;
9633
10333
  };
10334
+ local_effective_price: {
10335
+ Args: {
10336
+ _customer_id: string;
10337
+ _on_date?: string;
10338
+ _product_id: string;
10339
+ _quantity?: number;
10340
+ };
10341
+ Returns: {
10342
+ currency: string;
10343
+ discount_type: string;
10344
+ discount_value: number;
10345
+ net_price: number;
10346
+ source: string;
10347
+ source_id: string;
10348
+ }[];
10349
+ };
10350
+ mark_offer_clicked: {
10351
+ Args: {
10352
+ p_code: string;
10353
+ };
10354
+ Returns: undefined;
10355
+ };
10356
+ mark_offer_ordered: {
10357
+ Args: {
10358
+ p_code: string;
10359
+ };
10360
+ Returns: undefined;
10361
+ };
9634
10362
  next_order_number: {
9635
10363
  Args: {
9636
10364
  p_prefix: string;
@@ -9650,6 +10378,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9650
10378
  };
9651
10379
  Returns: string;
9652
10380
  };
10381
+ offer_recipient_matches: {
10382
+ Args: {
10383
+ _campaign_id: string;
10384
+ _customer_id: string;
10385
+ _recipient_id: string;
10386
+ };
10387
+ Returns: boolean;
10388
+ };
9653
10389
  pickstation_get_orders_raw: {
9654
10390
  Args: never;
9655
10391
  Returns: import("../integrations/supabase/types").Json;
@@ -9677,6 +10413,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9677
10413
  };
9678
10414
  Returns: undefined;
9679
10415
  };
10416
+ promote_trade_item_key: {
10417
+ Args: {
10418
+ p_new: string;
10419
+ p_old: string;
10420
+ };
10421
+ Returns: undefined;
10422
+ };
9680
10423
  refresh_floricode_derived_code_lists: {
9681
10424
  Args: never;
9682
10425
  Returns: {
@@ -13625,6 +14368,51 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
13625
14368
  referencedColumns: ["id"];
13626
14369
  }];
13627
14370
  };
14371
+ floriday_continuous_stock_queue: {
14372
+ Row: {
14373
+ attempts: number;
14374
+ connection_id: string;
14375
+ created_at: string;
14376
+ gateway_attempt_id: string | null;
14377
+ id: string;
14378
+ last_error: string | null;
14379
+ number_of_pieces: number;
14380
+ sent_at: string | null;
14381
+ status: string;
14382
+ trade_item_id: string;
14383
+ updated_at: string;
14384
+ user_id: string;
14385
+ };
14386
+ Insert: {
14387
+ attempts?: number;
14388
+ connection_id: string;
14389
+ created_at?: string;
14390
+ gateway_attempt_id?: string | null;
14391
+ id?: string;
14392
+ last_error?: string | null;
14393
+ number_of_pieces?: number;
14394
+ sent_at?: string | null;
14395
+ status?: string;
14396
+ trade_item_id: string;
14397
+ updated_at?: string;
14398
+ user_id: string;
14399
+ };
14400
+ Update: {
14401
+ attempts?: number;
14402
+ connection_id?: string;
14403
+ created_at?: string;
14404
+ gateway_attempt_id?: string | null;
14405
+ id?: string;
14406
+ last_error?: string | null;
14407
+ number_of_pieces?: number;
14408
+ sent_at?: string | null;
14409
+ status?: string;
14410
+ trade_item_id?: string;
14411
+ updated_at?: string;
14412
+ user_id?: string;
14413
+ };
14414
+ Relationships: [];
14415
+ };
13628
14416
  floriday_contract_trade_item_groups_cache: {
13629
14417
  Row: {
13630
14418
  connection_id: string;
@@ -15014,6 +15802,204 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
15014
15802
  };
15015
15803
  Relationships: [];
15016
15804
  };
15805
+ local_customer_agreements: {
15806
+ Row: {
15807
+ base_price: number | null;
15808
+ created_at: string;
15809
+ currency: string;
15810
+ customer_id: string;
15811
+ id: string;
15812
+ min_quantity: number;
15813
+ net_price: number;
15814
+ notes: string | null;
15815
+ product_category_id: string | null;
15816
+ product_id: string | null;
15817
+ updated_at: string;
15818
+ valid_from: string | null;
15819
+ valid_until: string | null;
15820
+ };
15821
+ Insert: {
15822
+ base_price?: number | null;
15823
+ created_at?: string;
15824
+ currency?: string;
15825
+ customer_id: string;
15826
+ id?: string;
15827
+ min_quantity?: number;
15828
+ net_price: number;
15829
+ notes?: string | null;
15830
+ product_category_id?: string | null;
15831
+ product_id?: string | null;
15832
+ updated_at?: string;
15833
+ valid_from?: string | null;
15834
+ valid_until?: string | null;
15835
+ };
15836
+ Update: {
15837
+ base_price?: number | null;
15838
+ created_at?: string;
15839
+ currency?: string;
15840
+ customer_id?: string;
15841
+ id?: string;
15842
+ min_quantity?: number;
15843
+ net_price?: number;
15844
+ notes?: string | null;
15845
+ product_category_id?: string | null;
15846
+ product_id?: string | null;
15847
+ updated_at?: string;
15848
+ valid_from?: string | null;
15849
+ valid_until?: string | null;
15850
+ };
15851
+ Relationships: [{
15852
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
15853
+ columns: ["customer_id"];
15854
+ isOneToOne: false;
15855
+ referencedRelation: "customers";
15856
+ referencedColumns: ["id"];
15857
+ }, {
15858
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
15859
+ columns: ["product_category_id"];
15860
+ isOneToOne: false;
15861
+ referencedRelation: "product_categories";
15862
+ referencedColumns: ["id"];
15863
+ }, {
15864
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
15865
+ columns: ["product_id"];
15866
+ isOneToOne: false;
15867
+ referencedRelation: "products";
15868
+ referencedColumns: ["id"];
15869
+ }];
15870
+ };
15871
+ local_customer_price_groups: {
15872
+ Row: {
15873
+ created_at: string;
15874
+ currency: string;
15875
+ customer_id: string;
15876
+ discount_type: string;
15877
+ discount_value: number;
15878
+ id: string;
15879
+ min_quantity: number;
15880
+ notes: string | null;
15881
+ product_category_id: string | null;
15882
+ product_id: string | null;
15883
+ updated_at: string;
15884
+ valid_from: string | null;
15885
+ valid_until: string | null;
15886
+ };
15887
+ Insert: {
15888
+ created_at?: string;
15889
+ currency?: string;
15890
+ customer_id: string;
15891
+ discount_type: string;
15892
+ discount_value: number;
15893
+ id?: string;
15894
+ min_quantity?: number;
15895
+ notes?: string | null;
15896
+ product_category_id?: string | null;
15897
+ product_id?: string | null;
15898
+ updated_at?: string;
15899
+ valid_from?: string | null;
15900
+ valid_until?: string | null;
15901
+ };
15902
+ Update: {
15903
+ created_at?: string;
15904
+ currency?: string;
15905
+ customer_id?: string;
15906
+ discount_type?: string;
15907
+ discount_value?: number;
15908
+ id?: string;
15909
+ min_quantity?: number;
15910
+ notes?: string | null;
15911
+ product_category_id?: string | null;
15912
+ product_id?: string | null;
15913
+ updated_at?: string;
15914
+ valid_from?: string | null;
15915
+ valid_until?: string | null;
15916
+ };
15917
+ Relationships: [{
15918
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
15919
+ columns: ["customer_id"];
15920
+ isOneToOne: false;
15921
+ referencedRelation: "customers";
15922
+ referencedColumns: ["id"];
15923
+ }, {
15924
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
15925
+ columns: ["product_category_id"];
15926
+ isOneToOne: false;
15927
+ referencedRelation: "product_categories";
15928
+ referencedColumns: ["id"];
15929
+ }, {
15930
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
15931
+ columns: ["product_id"];
15932
+ isOneToOne: false;
15933
+ referencedRelation: "products";
15934
+ referencedColumns: ["id"];
15935
+ }];
15936
+ };
15937
+ local_customer_sales_strategies: {
15938
+ Row: {
15939
+ created_at: string;
15940
+ currency: string;
15941
+ customer_id: string;
15942
+ discount_type: string;
15943
+ discount_value: number;
15944
+ id: string;
15945
+ min_quantity: number;
15946
+ notes: string | null;
15947
+ product_category_id: string | null;
15948
+ product_id: string | null;
15949
+ updated_at: string;
15950
+ valid_from: string | null;
15951
+ valid_until: string | null;
15952
+ };
15953
+ Insert: {
15954
+ created_at?: string;
15955
+ currency?: string;
15956
+ customer_id: string;
15957
+ discount_type: string;
15958
+ discount_value: number;
15959
+ id?: string;
15960
+ min_quantity?: number;
15961
+ notes?: string | null;
15962
+ product_category_id?: string | null;
15963
+ product_id?: string | null;
15964
+ updated_at?: string;
15965
+ valid_from?: string | null;
15966
+ valid_until?: string | null;
15967
+ };
15968
+ Update: {
15969
+ created_at?: string;
15970
+ currency?: string;
15971
+ customer_id?: string;
15972
+ discount_type?: string;
15973
+ discount_value?: number;
15974
+ id?: string;
15975
+ min_quantity?: number;
15976
+ notes?: string | null;
15977
+ product_category_id?: string | null;
15978
+ product_id?: string | null;
15979
+ updated_at?: string;
15980
+ valid_from?: string | null;
15981
+ valid_until?: string | null;
15982
+ };
15983
+ Relationships: [{
15984
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
15985
+ columns: ["customer_id"];
15986
+ isOneToOne: false;
15987
+ referencedRelation: "customers";
15988
+ referencedColumns: ["id"];
15989
+ }, {
15990
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
15991
+ columns: ["product_category_id"];
15992
+ isOneToOne: false;
15993
+ referencedRelation: "product_categories";
15994
+ referencedColumns: ["id"];
15995
+ }, {
15996
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
15997
+ columns: ["product_id"];
15998
+ isOneToOne: false;
15999
+ referencedRelation: "products";
16000
+ referencedColumns: ["id"];
16001
+ }];
16002
+ };
15017
16003
  locations: {
15018
16004
  Row: {
15019
16005
  created_at: string;
@@ -15409,117 +16395,384 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
15409
16395
  unit?: string;
15410
16396
  };
15411
16397
  Relationships: [{
15412
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
15413
- columns: ["manufacture_product_id"];
16398
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
16399
+ columns: ["manufacture_product_id"];
16400
+ isOneToOne: false;
16401
+ referencedRelation: "manufacture_product_possible_stock_view";
16402
+ referencedColumns: ["manufacture_product_id"];
16403
+ }, {
16404
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
16405
+ columns: ["manufacture_product_id"];
16406
+ isOneToOne: false;
16407
+ referencedRelation: "manufacture_products";
16408
+ referencedColumns: ["id"];
16409
+ }, {
16410
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
16411
+ columns: ["product_group_id"];
16412
+ isOneToOne: false;
16413
+ referencedRelation: "product_groups";
16414
+ referencedColumns: ["id"];
16415
+ }];
16416
+ };
16417
+ manufacture_products: {
16418
+ Row: {
16419
+ created_at: string;
16420
+ description: string | null;
16421
+ id: string;
16422
+ is_active: boolean;
16423
+ name: string;
16424
+ produced_stock: number;
16425
+ product_code: string;
16426
+ tenant_id: string;
16427
+ updated_at: string;
16428
+ };
16429
+ Insert: {
16430
+ created_at?: string;
16431
+ description?: string | null;
16432
+ id?: string;
16433
+ is_active?: boolean;
16434
+ name: string;
16435
+ produced_stock?: number;
16436
+ product_code: string;
16437
+ tenant_id: string;
16438
+ updated_at?: string;
16439
+ };
16440
+ Update: {
16441
+ created_at?: string;
16442
+ description?: string | null;
16443
+ id?: string;
16444
+ is_active?: boolean;
16445
+ name?: string;
16446
+ produced_stock?: number;
16447
+ product_code?: string;
16448
+ tenant_id?: string;
16449
+ updated_at?: string;
16450
+ };
16451
+ Relationships: [];
16452
+ };
16453
+ monteurs: {
16454
+ Row: {
16455
+ avatar_url: string | null;
16456
+ color: string | null;
16457
+ created_at: string;
16458
+ email: string | null;
16459
+ id: string;
16460
+ is_active: boolean;
16461
+ leave_balance_hours: number;
16462
+ name: string;
16463
+ persnr: number | null;
16464
+ phone: string | null;
16465
+ role: string;
16466
+ tenant_id: string;
16467
+ updated_at: string;
16468
+ user_id: string | null;
16469
+ };
16470
+ Insert: {
16471
+ avatar_url?: string | null;
16472
+ color?: string | null;
16473
+ created_at?: string;
16474
+ email?: string | null;
16475
+ id?: string;
16476
+ is_active?: boolean;
16477
+ leave_balance_hours?: number;
16478
+ name: string;
16479
+ persnr?: number | null;
16480
+ phone?: string | null;
16481
+ role?: string;
16482
+ tenant_id: string;
16483
+ updated_at?: string;
16484
+ user_id?: string | null;
16485
+ };
16486
+ Update: {
16487
+ avatar_url?: string | null;
16488
+ color?: string | null;
16489
+ created_at?: string;
16490
+ email?: string | null;
16491
+ id?: string;
16492
+ is_active?: boolean;
16493
+ leave_balance_hours?: number;
16494
+ name?: string;
16495
+ persnr?: number | null;
16496
+ phone?: string | null;
16497
+ role?: string;
16498
+ tenant_id?: string;
16499
+ updated_at?: string;
16500
+ user_id?: string | null;
16501
+ };
16502
+ Relationships: [{
16503
+ foreignKeyName: "monteurs_tenant_id_fkey";
16504
+ columns: ["tenant_id"];
16505
+ isOneToOne: false;
16506
+ referencedRelation: "tenants";
16507
+ referencedColumns: ["id"];
16508
+ }];
16509
+ };
16510
+ nmbrs_component_mapping: {
16511
+ Row: {
16512
+ created_at: string;
16513
+ id: string;
16514
+ source_kind: string;
16515
+ source_value: string | null;
16516
+ updated_at: string;
16517
+ wage_code: string;
16518
+ };
16519
+ Insert: {
16520
+ created_at?: string;
16521
+ id?: string;
16522
+ source_kind: string;
16523
+ source_value?: string | null;
16524
+ updated_at?: string;
16525
+ wage_code: string;
16526
+ };
16527
+ Update: {
16528
+ created_at?: string;
16529
+ id?: string;
16530
+ source_kind?: string;
16531
+ source_value?: string | null;
16532
+ updated_at?: string;
16533
+ wage_code?: string;
16534
+ };
16535
+ Relationships: [{
16536
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
16537
+ columns: ["wage_code"];
16538
+ isOneToOne: false;
16539
+ referencedRelation: "nmbrs_wage_components";
16540
+ referencedColumns: ["code"];
16541
+ }];
16542
+ };
16543
+ nmbrs_employee_mapping: {
16544
+ Row: {
16545
+ active_from: string | null;
16546
+ active_to: string | null;
16547
+ contract_hours_per_week: number | null;
16548
+ created_at: string;
16549
+ hourly_wage: number | null;
16550
+ id: string;
16551
+ monteur_id: string;
16552
+ nmbrs_company_code: string | null;
16553
+ nmbrs_employee_number: string;
16554
+ updated_at: string;
16555
+ };
16556
+ Insert: {
16557
+ active_from?: string | null;
16558
+ active_to?: string | null;
16559
+ contract_hours_per_week?: number | null;
16560
+ created_at?: string;
16561
+ hourly_wage?: number | null;
16562
+ id?: string;
16563
+ monteur_id: string;
16564
+ nmbrs_company_code?: string | null;
16565
+ nmbrs_employee_number: string;
16566
+ updated_at?: string;
16567
+ };
16568
+ Update: {
16569
+ active_from?: string | null;
16570
+ active_to?: string | null;
16571
+ contract_hours_per_week?: number | null;
16572
+ created_at?: string;
16573
+ hourly_wage?: number | null;
16574
+ id?: string;
16575
+ monteur_id?: string;
16576
+ nmbrs_company_code?: string | null;
16577
+ nmbrs_employee_number?: string;
16578
+ updated_at?: string;
16579
+ };
16580
+ Relationships: [{
16581
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
16582
+ columns: ["monteur_id"];
16583
+ isOneToOne: true;
16584
+ referencedRelation: "monteurs";
16585
+ referencedColumns: ["id"];
16586
+ }];
16587
+ };
16588
+ nmbrs_export_lines: {
16589
+ Row: {
16590
+ amount: number;
16591
+ created_at: string;
16592
+ entry_date: string;
16593
+ hours: number;
16594
+ id: string;
16595
+ monteur_id: string;
16596
+ nmbrs_employee_number: string | null;
16597
+ notes: string | null;
16598
+ run_id: string;
16599
+ source_kind: string | null;
16600
+ source_ref_id: string | null;
16601
+ updated_at: string;
16602
+ wage_code: string;
16603
+ };
16604
+ Insert: {
16605
+ amount?: number;
16606
+ created_at?: string;
16607
+ entry_date: string;
16608
+ hours?: number;
16609
+ id?: string;
16610
+ monteur_id: string;
16611
+ nmbrs_employee_number?: string | null;
16612
+ notes?: string | null;
16613
+ run_id: string;
16614
+ source_kind?: string | null;
16615
+ source_ref_id?: string | null;
16616
+ updated_at?: string;
16617
+ wage_code: string;
16618
+ };
16619
+ Update: {
16620
+ amount?: number;
16621
+ created_at?: string;
16622
+ entry_date?: string;
16623
+ hours?: number;
16624
+ id?: string;
16625
+ monteur_id?: string;
16626
+ nmbrs_employee_number?: string | null;
16627
+ notes?: string | null;
16628
+ run_id?: string;
16629
+ source_kind?: string | null;
16630
+ source_ref_id?: string | null;
16631
+ updated_at?: string;
16632
+ wage_code?: string;
16633
+ };
16634
+ Relationships: [{
16635
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
16636
+ columns: ["monteur_id"];
15414
16637
  isOneToOne: false;
15415
- referencedRelation: "manufacture_product_possible_stock_view";
15416
- referencedColumns: ["manufacture_product_id"];
16638
+ referencedRelation: "monteurs";
16639
+ referencedColumns: ["id"];
15417
16640
  }, {
15418
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
15419
- columns: ["manufacture_product_id"];
16641
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
16642
+ columns: ["run_id"];
15420
16643
  isOneToOne: false;
15421
- referencedRelation: "manufacture_products";
16644
+ referencedRelation: "nmbrs_export_runs";
15422
16645
  referencedColumns: ["id"];
15423
16646
  }, {
15424
- foreignKeyName: "manufacture_product_components_product_group_id_fkey";
15425
- columns: ["product_group_id"];
16647
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
16648
+ columns: ["wage_code"];
15426
16649
  isOneToOne: false;
15427
- referencedRelation: "product_groups";
15428
- referencedColumns: ["id"];
16650
+ referencedRelation: "nmbrs_wage_components";
16651
+ referencedColumns: ["code"];
15429
16652
  }];
15430
16653
  };
15431
- manufacture_products: {
16654
+ nmbrs_export_runs: {
15432
16655
  Row: {
15433
16656
  created_at: string;
15434
- description: string | null;
16657
+ file_name: string | null;
16658
+ generated_at: string;
16659
+ generated_by: string | null;
15435
16660
  id: string;
15436
- is_active: boolean;
15437
- name: string;
15438
- produced_stock: number;
15439
- product_code: string;
15440
- tenant_id: string;
16661
+ notes: string | null;
16662
+ period_end: string;
16663
+ period_label: string;
16664
+ period_start: string;
16665
+ status: string;
16666
+ total_hours: number;
16667
+ total_lines: number;
15441
16668
  updated_at: string;
15442
16669
  };
15443
16670
  Insert: {
15444
16671
  created_at?: string;
15445
- description?: string | null;
16672
+ file_name?: string | null;
16673
+ generated_at?: string;
16674
+ generated_by?: string | null;
15446
16675
  id?: string;
15447
- is_active?: boolean;
15448
- name: string;
15449
- produced_stock?: number;
15450
- product_code: string;
15451
- tenant_id: string;
16676
+ notes?: string | null;
16677
+ period_end: string;
16678
+ period_label: string;
16679
+ period_start: string;
16680
+ status?: string;
16681
+ total_hours?: number;
16682
+ total_lines?: number;
15452
16683
  updated_at?: string;
15453
16684
  };
15454
16685
  Update: {
15455
16686
  created_at?: string;
15456
- description?: string | null;
16687
+ file_name?: string | null;
16688
+ generated_at?: string;
16689
+ generated_by?: string | null;
15457
16690
  id?: string;
15458
- is_active?: boolean;
15459
- name?: string;
15460
- produced_stock?: number;
15461
- product_code?: string;
15462
- tenant_id?: string;
16691
+ notes?: string | null;
16692
+ period_end?: string;
16693
+ period_label?: string;
16694
+ period_start?: string;
16695
+ status?: string;
16696
+ total_hours?: number;
16697
+ total_lines?: number;
15463
16698
  updated_at?: string;
15464
16699
  };
15465
16700
  Relationships: [];
15466
16701
  };
15467
- monteurs: {
16702
+ nmbrs_settings: {
15468
16703
  Row: {
15469
- avatar_url: string | null;
15470
- color: string | null;
15471
16704
  created_at: string;
15472
- email: string | null;
16705
+ default_company_code: string | null;
16706
+ id: boolean;
16707
+ include_travel: boolean;
16708
+ overtime_threshold_daily: number;
16709
+ overtime_threshold_weekly: number;
16710
+ period_type: string;
16711
+ updated_at: string;
16712
+ updated_by: string | null;
16713
+ week_start_day: number;
16714
+ };
16715
+ Insert: {
16716
+ created_at?: string;
16717
+ default_company_code?: string | null;
16718
+ id?: boolean;
16719
+ include_travel?: boolean;
16720
+ overtime_threshold_daily?: number;
16721
+ overtime_threshold_weekly?: number;
16722
+ period_type?: string;
16723
+ updated_at?: string;
16724
+ updated_by?: string | null;
16725
+ week_start_day?: number;
16726
+ };
16727
+ Update: {
16728
+ created_at?: string;
16729
+ default_company_code?: string | null;
16730
+ id?: boolean;
16731
+ include_travel?: boolean;
16732
+ overtime_threshold_daily?: number;
16733
+ overtime_threshold_weekly?: number;
16734
+ period_type?: string;
16735
+ updated_at?: string;
16736
+ updated_by?: string | null;
16737
+ week_start_day?: number;
16738
+ };
16739
+ Relationships: [];
16740
+ };
16741
+ nmbrs_wage_components: {
16742
+ Row: {
16743
+ category: string;
16744
+ code: string;
16745
+ created_at: string;
15473
16746
  id: string;
15474
16747
  is_active: boolean;
15475
- leave_balance_hours: number;
15476
- name: string;
15477
- persnr: number | null;
15478
- phone: string | null;
15479
- role: string;
15480
- tenant_id: string;
16748
+ label: string;
16749
+ sort_order: number;
16750
+ unit: string;
15481
16751
  updated_at: string;
15482
- user_id: string | null;
15483
16752
  };
15484
16753
  Insert: {
15485
- avatar_url?: string | null;
15486
- color?: string | null;
16754
+ category: string;
16755
+ code: string;
15487
16756
  created_at?: string;
15488
- email?: string | null;
15489
16757
  id?: string;
15490
16758
  is_active?: boolean;
15491
- leave_balance_hours?: number;
15492
- name: string;
15493
- persnr?: number | null;
15494
- phone?: string | null;
15495
- role?: string;
15496
- tenant_id: string;
16759
+ label: string;
16760
+ sort_order?: number;
16761
+ unit: string;
15497
16762
  updated_at?: string;
15498
- user_id?: string | null;
15499
16763
  };
15500
16764
  Update: {
15501
- avatar_url?: string | null;
15502
- color?: string | null;
16765
+ category?: string;
16766
+ code?: string;
15503
16767
  created_at?: string;
15504
- email?: string | null;
15505
16768
  id?: string;
15506
16769
  is_active?: boolean;
15507
- leave_balance_hours?: number;
15508
- name?: string;
15509
- persnr?: number | null;
15510
- phone?: string | null;
15511
- role?: string;
15512
- tenant_id?: string;
16770
+ label?: string;
16771
+ sort_order?: number;
16772
+ unit?: string;
15513
16773
  updated_at?: string;
15514
- user_id?: string | null;
15515
16774
  };
15516
- Relationships: [{
15517
- foreignKeyName: "monteurs_tenant_id_fkey";
15518
- columns: ["tenant_id"];
15519
- isOneToOne: false;
15520
- referencedRelation: "tenants";
15521
- referencedColumns: ["id"];
15522
- }];
16775
+ Relationships: [];
15523
16776
  };
15524
16777
  notifications: {
15525
16778
  Row: {
@@ -17369,6 +18622,48 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17369
18622
  };
17370
18623
  Relationships: [];
17371
18624
  };
18625
+ stock_import_runs: {
18626
+ Row: {
18627
+ connection_id: string | null;
18628
+ created_at: string;
18629
+ created_rows: number;
18630
+ errors: import("../integrations/supabase/types").Json;
18631
+ filename: string | null;
18632
+ id: string;
18633
+ mutations: import("../integrations/supabase/types").Json;
18634
+ skipped_rows: number;
18635
+ total_rows: number;
18636
+ updated_rows: number;
18637
+ user_id: string;
18638
+ };
18639
+ Insert: {
18640
+ connection_id?: string | null;
18641
+ created_at?: string;
18642
+ created_rows?: number;
18643
+ errors?: import("../integrations/supabase/types").Json;
18644
+ filename?: string | null;
18645
+ id?: string;
18646
+ mutations?: import("../integrations/supabase/types").Json;
18647
+ skipped_rows?: number;
18648
+ total_rows?: number;
18649
+ updated_rows?: number;
18650
+ user_id: string;
18651
+ };
18652
+ Update: {
18653
+ connection_id?: string | null;
18654
+ created_at?: string;
18655
+ created_rows?: number;
18656
+ errors?: import("../integrations/supabase/types").Json;
18657
+ filename?: string | null;
18658
+ id?: string;
18659
+ mutations?: import("../integrations/supabase/types").Json;
18660
+ skipped_rows?: number;
18661
+ total_rows?: number;
18662
+ updated_rows?: number;
18663
+ user_id?: string;
18664
+ };
18665
+ Relationships: [];
18666
+ };
17372
18667
  stock_mutation_log: {
17373
18668
  Row: {
17374
18669
  connection_id: string | null;
@@ -19000,6 +20295,44 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19000
20295
  };
19001
20296
  Relationships: [];
19002
20297
  };
20298
+ floriday_customer_discounts: {
20299
+ Row: {
20300
+ base_price: number | null;
20301
+ buyer_organization_id: string | null;
20302
+ currency: string | null;
20303
+ discount_type: string | null;
20304
+ discount_value: number | null;
20305
+ min_quantity: number | null;
20306
+ net_price: number | null;
20307
+ product_group_id: string | null;
20308
+ raw: import("../integrations/supabase/types").Json | null;
20309
+ source: string | null;
20310
+ source_id: string | null;
20311
+ trade_item_id: string | null;
20312
+ valid_from: string | null;
20313
+ valid_until: string | null;
20314
+ };
20315
+ Relationships: [];
20316
+ };
20317
+ local_customer_discounts: {
20318
+ Row: {
20319
+ base_price: number | null;
20320
+ currency: string | null;
20321
+ customer_id: string | null;
20322
+ discount_type: string | null;
20323
+ discount_value: number | null;
20324
+ min_quantity: number | null;
20325
+ net_price: number | null;
20326
+ product_category_id: string | null;
20327
+ product_id: string | null;
20328
+ product_name: string | null;
20329
+ source: string | null;
20330
+ source_id: string | null;
20331
+ valid_from: string | null;
20332
+ valid_until: string | null;
20333
+ };
20334
+ Relationships: [];
20335
+ };
19003
20336
  manufacture_product_possible_stock_view: {
19004
20337
  Row: {
19005
20338
  component_count: number | null;
@@ -19284,6 +20617,32 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19284
20617
  };
19285
20618
  Returns: number;
19286
20619
  };
20620
+ afh_city_code: {
20621
+ Args: {
20622
+ _city: string;
20623
+ _country: string;
20624
+ };
20625
+ Returns: string;
20626
+ };
20627
+ afh_normalize_country: {
20628
+ Args: {
20629
+ _raw: string;
20630
+ };
20631
+ Returns: string;
20632
+ };
20633
+ afh_normalize_nl_province: {
20634
+ Args: {
20635
+ _raw: string;
20636
+ };
20637
+ Returns: string;
20638
+ };
20639
+ afh_subtract_workdays: {
20640
+ Args: {
20641
+ _date: string;
20642
+ _days: number;
20643
+ };
20644
+ Returns: string;
20645
+ };
19287
20646
  apply_stock_consumption: {
19288
20647
  Args: {
19289
20648
  p_order_id: string;
@@ -19329,12 +20688,40 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19329
20688
  order_number: string;
19330
20689
  }[];
19331
20690
  };
20691
+ backfill_open_order_reservations: {
20692
+ Args: never;
20693
+ Returns: {
20694
+ processed_items: number;
20695
+ }[];
20696
+ };
19332
20697
  call_exact_route: {
19333
20698
  Args: {
19334
20699
  path: string;
19335
20700
  };
19336
20701
  Returns: number;
19337
20702
  };
20703
+ check_offer_product_available_stock: {
20704
+ Args: {
20705
+ p_campaign_product_id: string;
20706
+ p_code: string;
20707
+ p_needed_qty?: number;
20708
+ p_product_name?: string;
20709
+ };
20710
+ Returns: import("../integrations/supabase/types").Json;
20711
+ };
20712
+ check_trade_item_available_stock: {
20713
+ Args: {
20714
+ p_connection_id?: string;
20715
+ p_context?: string;
20716
+ p_needed_qty?: number;
20717
+ p_order_id?: string;
20718
+ p_order_item_id?: string;
20719
+ p_owner_id?: string;
20720
+ p_product_name?: string;
20721
+ p_trade_item_key: string;
20722
+ };
20723
+ Returns: import("../integrations/supabase/types").Json;
20724
+ };
19338
20725
  cleanup_old_bookings: {
19339
20726
  Args: never;
19340
20727
  Returns: number;
@@ -19378,6 +20765,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19378
20765
  table_name: string;
19379
20766
  }[];
19380
20767
  };
20768
+ dispatch_carrier_signups_sql: {
20769
+ Args: {
20770
+ _catchup?: string;
20771
+ };
20772
+ Returns: import("../integrations/supabase/types").Json;
20773
+ };
19381
20774
  email_auth_decrypt: {
19382
20775
  Args: {
19383
20776
  cipher: string;
@@ -19413,6 +20806,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19413
20806
  status: string;
19414
20807
  }[];
19415
20808
  };
20809
+ ensure_trade_item_stock_row: {
20810
+ Args: {
20811
+ p_key: string;
20812
+ };
20813
+ Returns: undefined;
20814
+ };
19416
20815
  ensure_user_tenant: {
19417
20816
  Args: never;
19418
20817
  Returns: string;
@@ -19450,6 +20849,31 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19450
20849
  };
19451
20850
  Returns: boolean;
19452
20851
  };
20852
+ find_trade_item_key: {
20853
+ Args: {
20854
+ p_barcode: string;
20855
+ p_name: string;
20856
+ p_product_id: string;
20857
+ };
20858
+ Returns: string;
20859
+ };
20860
+ floriday_effective_price: {
20861
+ Args: {
20862
+ _buyer_id: string;
20863
+ _on_date?: string;
20864
+ _quantity?: number;
20865
+ _trade_item_id: string;
20866
+ };
20867
+ Returns: {
20868
+ base_price: number;
20869
+ currency: string;
20870
+ discount_type: string;
20871
+ discount_value: number;
20872
+ net_price: number;
20873
+ source: string;
20874
+ source_id: string;
20875
+ }[];
20876
+ };
19453
20877
  format_cart_number: {
19454
20878
  Args: {
19455
20879
  p_pick_date: string;
@@ -19470,6 +20894,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19470
20894
  preferred_warehouse_name: string;
19471
20895
  }[];
19472
20896
  };
20897
+ get_active_floriday_context: {
20898
+ Args: never;
20899
+ Returns: {
20900
+ connection_id: string;
20901
+ user_id: string;
20902
+ }[];
20903
+ };
19473
20904
  get_active_twinfield_public: {
19474
20905
  Args: never;
19475
20906
  Returns: {
@@ -19572,6 +21003,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19572
21003
  };
19573
21004
  Returns: import("../integrations/supabase/types").Json;
19574
21005
  };
21006
+ get_offer_recipient_by_code: {
21007
+ Args: {
21008
+ p_code: string;
21009
+ };
21010
+ Returns: {
21011
+ campaign_id: string;
21012
+ clicked_at: string;
21013
+ customer_id: string;
21014
+ id: string;
21015
+ ordered_at: string;
21016
+ }[];
21017
+ };
19575
21018
  get_or_assign_floriday_order_number: {
19576
21019
  Args: {
19577
21020
  p_floriday_id: string;
@@ -19624,6 +21067,34 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19624
21067
  Args: never;
19625
21068
  Returns: boolean;
19626
21069
  };
21070
+ local_effective_price: {
21071
+ Args: {
21072
+ _customer_id: string;
21073
+ _on_date?: string;
21074
+ _product_id: string;
21075
+ _quantity?: number;
21076
+ };
21077
+ Returns: {
21078
+ currency: string;
21079
+ discount_type: string;
21080
+ discount_value: number;
21081
+ net_price: number;
21082
+ source: string;
21083
+ source_id: string;
21084
+ }[];
21085
+ };
21086
+ mark_offer_clicked: {
21087
+ Args: {
21088
+ p_code: string;
21089
+ };
21090
+ Returns: undefined;
21091
+ };
21092
+ mark_offer_ordered: {
21093
+ Args: {
21094
+ p_code: string;
21095
+ };
21096
+ Returns: undefined;
21097
+ };
19627
21098
  next_order_number: {
19628
21099
  Args: {
19629
21100
  p_prefix: string;
@@ -19643,6 +21114,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19643
21114
  };
19644
21115
  Returns: string;
19645
21116
  };
21117
+ offer_recipient_matches: {
21118
+ Args: {
21119
+ _campaign_id: string;
21120
+ _customer_id: string;
21121
+ _recipient_id: string;
21122
+ };
21123
+ Returns: boolean;
21124
+ };
19646
21125
  pickstation_get_orders_raw: {
19647
21126
  Args: never;
19648
21127
  Returns: import("../integrations/supabase/types").Json;
@@ -19670,6 +21149,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19670
21149
  };
19671
21150
  Returns: undefined;
19672
21151
  };
21152
+ promote_trade_item_key: {
21153
+ Args: {
21154
+ p_new: string;
21155
+ p_old: string;
21156
+ };
21157
+ Returns: undefined;
21158
+ };
19673
21159
  refresh_floricode_derived_code_lists: {
19674
21160
  Args: never;
19675
21161
  Returns: {