@flowselections/floriday-afhandeling-module 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.js +63 -2
  3. package/dist-lib/components/pickstation/KioskControle.d.ts +2 -0
  4. package/dist-lib/components/pickstation/KioskControle.d.ts.map +1 -0
  5. package/dist-lib/components/pickstation/KioskControle.js +7 -0
  6. package/dist-lib/components/pickstation/PickstationPage.d.ts +2 -0
  7. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -0
  8. package/dist-lib/components/pickstation/PickstationPage.js +217 -0
  9. package/dist-lib/index.d.ts +2 -0
  10. package/dist-lib/index.d.ts.map +1 -1
  11. package/dist-lib/index.js +2 -0
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +700 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.d.ts +700 -1
  15. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +700 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/types.d.ts +720 -1
  19. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  20. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1545 -147
  21. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/carriers.functions.d.ts +3500 -5
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartAssignments.functions.d.ts +3500 -5
  25. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartControl.functions.d.ts +7003 -10
  27. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/cartControl.functions.js +3 -0
  29. package/dist-lib/lib/floriday.functions.d.ts +700 -1
  30. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  32. package/dist-lib/lib/pickstationOrders.server.js +1 -0
  33. package/dist-lib/lib/pickstationTypes.d.ts +2 -0
  34. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  35. package/package.json +15 -1
@@ -3638,6 +3638,51 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3638
3638
  referencedColumns: ["id"];
3639
3639
  }];
3640
3640
  };
3641
+ floriday_continuous_stock_queue: {
3642
+ Row: {
3643
+ attempts: number;
3644
+ connection_id: string;
3645
+ created_at: string;
3646
+ gateway_attempt_id: string | null;
3647
+ id: string;
3648
+ last_error: string | null;
3649
+ number_of_pieces: number;
3650
+ sent_at: string | null;
3651
+ status: string;
3652
+ trade_item_id: string;
3653
+ updated_at: string;
3654
+ user_id: string;
3655
+ };
3656
+ Insert: {
3657
+ attempts?: number;
3658
+ connection_id: string;
3659
+ created_at?: string;
3660
+ gateway_attempt_id?: string | null;
3661
+ id?: string;
3662
+ last_error?: string | null;
3663
+ number_of_pieces?: number;
3664
+ sent_at?: string | null;
3665
+ status?: string;
3666
+ trade_item_id: string;
3667
+ updated_at?: string;
3668
+ user_id: string;
3669
+ };
3670
+ Update: {
3671
+ attempts?: number;
3672
+ connection_id?: string;
3673
+ created_at?: string;
3674
+ gateway_attempt_id?: string | null;
3675
+ id?: string;
3676
+ last_error?: string | null;
3677
+ number_of_pieces?: number;
3678
+ sent_at?: string | null;
3679
+ status?: string;
3680
+ trade_item_id?: string;
3681
+ updated_at?: string;
3682
+ user_id?: string;
3683
+ };
3684
+ Relationships: [];
3685
+ };
3641
3686
  floriday_contract_trade_item_groups_cache: {
3642
3687
  Row: {
3643
3688
  connection_id: string;
@@ -5027,6 +5072,204 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5027
5072
  };
5028
5073
  Relationships: [];
5029
5074
  };
5075
+ local_customer_agreements: {
5076
+ Row: {
5077
+ base_price: number | null;
5078
+ created_at: string;
5079
+ currency: string;
5080
+ customer_id: string;
5081
+ id: string;
5082
+ min_quantity: number;
5083
+ net_price: number;
5084
+ notes: string | null;
5085
+ product_category_id: string | null;
5086
+ product_id: string | null;
5087
+ updated_at: string;
5088
+ valid_from: string | null;
5089
+ valid_until: string | null;
5090
+ };
5091
+ Insert: {
5092
+ base_price?: number | null;
5093
+ created_at?: string;
5094
+ currency?: string;
5095
+ customer_id: string;
5096
+ id?: string;
5097
+ min_quantity?: number;
5098
+ net_price: number;
5099
+ notes?: string | null;
5100
+ product_category_id?: string | null;
5101
+ product_id?: string | null;
5102
+ updated_at?: string;
5103
+ valid_from?: string | null;
5104
+ valid_until?: string | null;
5105
+ };
5106
+ Update: {
5107
+ base_price?: number | null;
5108
+ created_at?: string;
5109
+ currency?: string;
5110
+ customer_id?: string;
5111
+ id?: string;
5112
+ min_quantity?: number;
5113
+ net_price?: number;
5114
+ notes?: string | null;
5115
+ product_category_id?: string | null;
5116
+ product_id?: string | null;
5117
+ updated_at?: string;
5118
+ valid_from?: string | null;
5119
+ valid_until?: string | null;
5120
+ };
5121
+ Relationships: [{
5122
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5123
+ columns: ["customer_id"];
5124
+ isOneToOne: false;
5125
+ referencedRelation: "customers";
5126
+ referencedColumns: ["id"];
5127
+ }, {
5128
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5129
+ columns: ["product_category_id"];
5130
+ isOneToOne: false;
5131
+ referencedRelation: "product_categories";
5132
+ referencedColumns: ["id"];
5133
+ }, {
5134
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5135
+ columns: ["product_id"];
5136
+ isOneToOne: false;
5137
+ referencedRelation: "products";
5138
+ referencedColumns: ["id"];
5139
+ }];
5140
+ };
5141
+ local_customer_price_groups: {
5142
+ Row: {
5143
+ created_at: string;
5144
+ currency: string;
5145
+ customer_id: string;
5146
+ discount_type: string;
5147
+ discount_value: number;
5148
+ id: string;
5149
+ min_quantity: number;
5150
+ notes: string | null;
5151
+ product_category_id: string | null;
5152
+ product_id: string | null;
5153
+ updated_at: string;
5154
+ valid_from: string | null;
5155
+ valid_until: string | null;
5156
+ };
5157
+ Insert: {
5158
+ created_at?: string;
5159
+ currency?: string;
5160
+ customer_id: string;
5161
+ discount_type: string;
5162
+ discount_value: number;
5163
+ id?: string;
5164
+ min_quantity?: number;
5165
+ notes?: string | null;
5166
+ product_category_id?: string | null;
5167
+ product_id?: string | null;
5168
+ updated_at?: string;
5169
+ valid_from?: string | null;
5170
+ valid_until?: string | null;
5171
+ };
5172
+ Update: {
5173
+ created_at?: string;
5174
+ currency?: string;
5175
+ customer_id?: string;
5176
+ discount_type?: string;
5177
+ discount_value?: number;
5178
+ id?: string;
5179
+ min_quantity?: number;
5180
+ notes?: string | null;
5181
+ product_category_id?: string | null;
5182
+ product_id?: string | null;
5183
+ updated_at?: string;
5184
+ valid_from?: string | null;
5185
+ valid_until?: string | null;
5186
+ };
5187
+ Relationships: [{
5188
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5189
+ columns: ["customer_id"];
5190
+ isOneToOne: false;
5191
+ referencedRelation: "customers";
5192
+ referencedColumns: ["id"];
5193
+ }, {
5194
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5195
+ columns: ["product_category_id"];
5196
+ isOneToOne: false;
5197
+ referencedRelation: "product_categories";
5198
+ referencedColumns: ["id"];
5199
+ }, {
5200
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5201
+ columns: ["product_id"];
5202
+ isOneToOne: false;
5203
+ referencedRelation: "products";
5204
+ referencedColumns: ["id"];
5205
+ }];
5206
+ };
5207
+ local_customer_sales_strategies: {
5208
+ Row: {
5209
+ created_at: string;
5210
+ currency: string;
5211
+ customer_id: string;
5212
+ discount_type: string;
5213
+ discount_value: number;
5214
+ id: string;
5215
+ min_quantity: number;
5216
+ notes: string | null;
5217
+ product_category_id: string | null;
5218
+ product_id: string | null;
5219
+ updated_at: string;
5220
+ valid_from: string | null;
5221
+ valid_until: string | null;
5222
+ };
5223
+ Insert: {
5224
+ created_at?: string;
5225
+ currency?: string;
5226
+ customer_id: string;
5227
+ discount_type: string;
5228
+ discount_value: number;
5229
+ id?: string;
5230
+ min_quantity?: number;
5231
+ notes?: string | null;
5232
+ product_category_id?: string | null;
5233
+ product_id?: string | null;
5234
+ updated_at?: string;
5235
+ valid_from?: string | null;
5236
+ valid_until?: string | null;
5237
+ };
5238
+ Update: {
5239
+ created_at?: string;
5240
+ currency?: string;
5241
+ customer_id?: string;
5242
+ discount_type?: string;
5243
+ discount_value?: number;
5244
+ id?: string;
5245
+ min_quantity?: number;
5246
+ notes?: string | null;
5247
+ product_category_id?: string | null;
5248
+ product_id?: string | null;
5249
+ updated_at?: string;
5250
+ valid_from?: string | null;
5251
+ valid_until?: string | null;
5252
+ };
5253
+ Relationships: [{
5254
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5255
+ columns: ["customer_id"];
5256
+ isOneToOne: false;
5257
+ referencedRelation: "customers";
5258
+ referencedColumns: ["id"];
5259
+ }, {
5260
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5261
+ columns: ["product_category_id"];
5262
+ isOneToOne: false;
5263
+ referencedRelation: "product_categories";
5264
+ referencedColumns: ["id"];
5265
+ }, {
5266
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5267
+ columns: ["product_id"];
5268
+ isOneToOne: false;
5269
+ referencedRelation: "products";
5270
+ referencedColumns: ["id"];
5271
+ }];
5272
+ };
5030
5273
  locations: {
5031
5274
  Row: {
5032
5275
  created_at: string;
@@ -5534,6 +5777,273 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5534
5777
  referencedColumns: ["id"];
5535
5778
  }];
5536
5779
  };
5780
+ nmbrs_component_mapping: {
5781
+ Row: {
5782
+ created_at: string;
5783
+ id: string;
5784
+ source_kind: string;
5785
+ source_value: string | null;
5786
+ updated_at: string;
5787
+ wage_code: string;
5788
+ };
5789
+ Insert: {
5790
+ created_at?: string;
5791
+ id?: string;
5792
+ source_kind: string;
5793
+ source_value?: string | null;
5794
+ updated_at?: string;
5795
+ wage_code: string;
5796
+ };
5797
+ Update: {
5798
+ created_at?: string;
5799
+ id?: string;
5800
+ source_kind?: string;
5801
+ source_value?: string | null;
5802
+ updated_at?: string;
5803
+ wage_code?: string;
5804
+ };
5805
+ Relationships: [{
5806
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5807
+ columns: ["wage_code"];
5808
+ isOneToOne: false;
5809
+ referencedRelation: "nmbrs_wage_components";
5810
+ referencedColumns: ["code"];
5811
+ }];
5812
+ };
5813
+ nmbrs_employee_mapping: {
5814
+ Row: {
5815
+ active_from: string | null;
5816
+ active_to: string | null;
5817
+ contract_hours_per_week: number | null;
5818
+ created_at: string;
5819
+ hourly_wage: number | null;
5820
+ id: string;
5821
+ monteur_id: string;
5822
+ nmbrs_company_code: string | null;
5823
+ nmbrs_employee_number: string;
5824
+ updated_at: string;
5825
+ };
5826
+ Insert: {
5827
+ active_from?: string | null;
5828
+ active_to?: string | null;
5829
+ contract_hours_per_week?: number | null;
5830
+ created_at?: string;
5831
+ hourly_wage?: number | null;
5832
+ id?: string;
5833
+ monteur_id: string;
5834
+ nmbrs_company_code?: string | null;
5835
+ nmbrs_employee_number: string;
5836
+ updated_at?: string;
5837
+ };
5838
+ Update: {
5839
+ active_from?: string | null;
5840
+ active_to?: string | null;
5841
+ contract_hours_per_week?: number | null;
5842
+ created_at?: string;
5843
+ hourly_wage?: number | null;
5844
+ id?: string;
5845
+ monteur_id?: string;
5846
+ nmbrs_company_code?: string | null;
5847
+ nmbrs_employee_number?: string;
5848
+ updated_at?: string;
5849
+ };
5850
+ Relationships: [{
5851
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5852
+ columns: ["monteur_id"];
5853
+ isOneToOne: true;
5854
+ referencedRelation: "monteurs";
5855
+ referencedColumns: ["id"];
5856
+ }];
5857
+ };
5858
+ nmbrs_export_lines: {
5859
+ Row: {
5860
+ amount: number;
5861
+ created_at: string;
5862
+ entry_date: string;
5863
+ hours: number;
5864
+ id: string;
5865
+ monteur_id: string;
5866
+ nmbrs_employee_number: string | null;
5867
+ notes: string | null;
5868
+ run_id: string;
5869
+ source_kind: string | null;
5870
+ source_ref_id: string | null;
5871
+ updated_at: string;
5872
+ wage_code: string;
5873
+ };
5874
+ Insert: {
5875
+ amount?: number;
5876
+ created_at?: string;
5877
+ entry_date: string;
5878
+ hours?: number;
5879
+ id?: string;
5880
+ monteur_id: string;
5881
+ nmbrs_employee_number?: string | null;
5882
+ notes?: string | null;
5883
+ run_id: string;
5884
+ source_kind?: string | null;
5885
+ source_ref_id?: string | null;
5886
+ updated_at?: string;
5887
+ wage_code: string;
5888
+ };
5889
+ Update: {
5890
+ amount?: number;
5891
+ created_at?: string;
5892
+ entry_date?: string;
5893
+ hours?: number;
5894
+ id?: string;
5895
+ monteur_id?: string;
5896
+ nmbrs_employee_number?: string | null;
5897
+ notes?: string | null;
5898
+ run_id?: string;
5899
+ source_kind?: string | null;
5900
+ source_ref_id?: string | null;
5901
+ updated_at?: string;
5902
+ wage_code?: string;
5903
+ };
5904
+ Relationships: [{
5905
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5906
+ columns: ["monteur_id"];
5907
+ isOneToOne: false;
5908
+ referencedRelation: "monteurs";
5909
+ referencedColumns: ["id"];
5910
+ }, {
5911
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5912
+ columns: ["run_id"];
5913
+ isOneToOne: false;
5914
+ referencedRelation: "nmbrs_export_runs";
5915
+ referencedColumns: ["id"];
5916
+ }, {
5917
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5918
+ columns: ["wage_code"];
5919
+ isOneToOne: false;
5920
+ referencedRelation: "nmbrs_wage_components";
5921
+ referencedColumns: ["code"];
5922
+ }];
5923
+ };
5924
+ nmbrs_export_runs: {
5925
+ Row: {
5926
+ created_at: string;
5927
+ file_name: string | null;
5928
+ generated_at: string;
5929
+ generated_by: string | null;
5930
+ id: string;
5931
+ notes: string | null;
5932
+ period_end: string;
5933
+ period_label: string;
5934
+ period_start: string;
5935
+ status: string;
5936
+ total_hours: number;
5937
+ total_lines: number;
5938
+ updated_at: string;
5939
+ };
5940
+ Insert: {
5941
+ created_at?: string;
5942
+ file_name?: string | null;
5943
+ generated_at?: string;
5944
+ generated_by?: string | null;
5945
+ id?: string;
5946
+ notes?: string | null;
5947
+ period_end: string;
5948
+ period_label: string;
5949
+ period_start: string;
5950
+ status?: string;
5951
+ total_hours?: number;
5952
+ total_lines?: number;
5953
+ updated_at?: string;
5954
+ };
5955
+ Update: {
5956
+ created_at?: string;
5957
+ file_name?: string | null;
5958
+ generated_at?: string;
5959
+ generated_by?: string | null;
5960
+ id?: string;
5961
+ notes?: string | null;
5962
+ period_end?: string;
5963
+ period_label?: string;
5964
+ period_start?: string;
5965
+ status?: string;
5966
+ total_hours?: number;
5967
+ total_lines?: number;
5968
+ updated_at?: string;
5969
+ };
5970
+ Relationships: [];
5971
+ };
5972
+ nmbrs_settings: {
5973
+ Row: {
5974
+ created_at: string;
5975
+ default_company_code: string | null;
5976
+ id: boolean;
5977
+ include_travel: boolean;
5978
+ overtime_threshold_daily: number;
5979
+ overtime_threshold_weekly: number;
5980
+ period_type: string;
5981
+ updated_at: string;
5982
+ updated_by: string | null;
5983
+ week_start_day: number;
5984
+ };
5985
+ Insert: {
5986
+ created_at?: string;
5987
+ default_company_code?: string | null;
5988
+ id?: boolean;
5989
+ include_travel?: boolean;
5990
+ overtime_threshold_daily?: number;
5991
+ overtime_threshold_weekly?: number;
5992
+ period_type?: string;
5993
+ updated_at?: string;
5994
+ updated_by?: string | null;
5995
+ week_start_day?: number;
5996
+ };
5997
+ Update: {
5998
+ created_at?: string;
5999
+ default_company_code?: string | null;
6000
+ id?: boolean;
6001
+ include_travel?: boolean;
6002
+ overtime_threshold_daily?: number;
6003
+ overtime_threshold_weekly?: number;
6004
+ period_type?: string;
6005
+ updated_at?: string;
6006
+ updated_by?: string | null;
6007
+ week_start_day?: number;
6008
+ };
6009
+ Relationships: [];
6010
+ };
6011
+ nmbrs_wage_components: {
6012
+ Row: {
6013
+ category: string;
6014
+ code: string;
6015
+ created_at: string;
6016
+ id: string;
6017
+ is_active: boolean;
6018
+ label: string;
6019
+ sort_order: number;
6020
+ unit: string;
6021
+ updated_at: string;
6022
+ };
6023
+ Insert: {
6024
+ category: string;
6025
+ code: string;
6026
+ created_at?: string;
6027
+ id?: string;
6028
+ is_active?: boolean;
6029
+ label: string;
6030
+ sort_order?: number;
6031
+ unit: string;
6032
+ updated_at?: string;
6033
+ };
6034
+ Update: {
6035
+ category?: string;
6036
+ code?: string;
6037
+ created_at?: string;
6038
+ id?: string;
6039
+ is_active?: boolean;
6040
+ label?: string;
6041
+ sort_order?: number;
6042
+ unit?: string;
6043
+ updated_at?: string;
6044
+ };
6045
+ Relationships: [];
6046
+ };
5537
6047
  notifications: {
5538
6048
  Row: {
5539
6049
  created_at: string;
@@ -7382,6 +7892,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7382
7892
  };
7383
7893
  Relationships: [];
7384
7894
  };
7895
+ stock_import_runs: {
7896
+ Row: {
7897
+ connection_id: string | null;
7898
+ created_at: string;
7899
+ created_rows: number;
7900
+ errors: import("../integrations/supabase/types").Json;
7901
+ filename: string | null;
7902
+ id: string;
7903
+ mutations: import("../integrations/supabase/types").Json;
7904
+ skipped_rows: number;
7905
+ total_rows: number;
7906
+ updated_rows: number;
7907
+ user_id: string;
7908
+ };
7909
+ Insert: {
7910
+ connection_id?: string | null;
7911
+ created_at?: string;
7912
+ created_rows?: number;
7913
+ errors?: import("../integrations/supabase/types").Json;
7914
+ filename?: string | null;
7915
+ id?: string;
7916
+ mutations?: import("../integrations/supabase/types").Json;
7917
+ skipped_rows?: number;
7918
+ total_rows?: number;
7919
+ updated_rows?: number;
7920
+ user_id: string;
7921
+ };
7922
+ Update: {
7923
+ connection_id?: string | null;
7924
+ created_at?: string;
7925
+ created_rows?: number;
7926
+ errors?: import("../integrations/supabase/types").Json;
7927
+ filename?: string | null;
7928
+ id?: string;
7929
+ mutations?: import("../integrations/supabase/types").Json;
7930
+ skipped_rows?: number;
7931
+ total_rows?: number;
7932
+ updated_rows?: number;
7933
+ user_id?: string;
7934
+ };
7935
+ Relationships: [];
7936
+ };
7385
7937
  stock_mutation_log: {
7386
7938
  Row: {
7387
7939
  connection_id: string | null;
@@ -9013,6 +9565,44 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9013
9565
  };
9014
9566
  Relationships: [];
9015
9567
  };
9568
+ floriday_customer_discounts: {
9569
+ Row: {
9570
+ base_price: number | null;
9571
+ buyer_organization_id: string | null;
9572
+ currency: string | null;
9573
+ discount_type: string | null;
9574
+ discount_value: number | null;
9575
+ min_quantity: number | null;
9576
+ net_price: number | null;
9577
+ product_group_id: string | null;
9578
+ raw: import("../integrations/supabase/types").Json | null;
9579
+ source: string | null;
9580
+ source_id: string | null;
9581
+ trade_item_id: string | null;
9582
+ valid_from: string | null;
9583
+ valid_until: string | null;
9584
+ };
9585
+ Relationships: [];
9586
+ };
9587
+ local_customer_discounts: {
9588
+ Row: {
9589
+ base_price: number | null;
9590
+ currency: string | null;
9591
+ customer_id: string | null;
9592
+ discount_type: string | null;
9593
+ discount_value: number | null;
9594
+ min_quantity: number | null;
9595
+ net_price: number | null;
9596
+ product_category_id: string | null;
9597
+ product_id: string | null;
9598
+ product_name: string | null;
9599
+ source: string | null;
9600
+ source_id: string | null;
9601
+ valid_from: string | null;
9602
+ valid_until: string | null;
9603
+ };
9604
+ Relationships: [];
9605
+ };
9016
9606
  manufacture_product_possible_stock_view: {
9017
9607
  Row: {
9018
9608
  component_count: number | null;
@@ -9380,6 +9970,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9380
9970
  };
9381
9971
  Returns: number;
9382
9972
  };
9973
+ check_offer_product_available_stock: {
9974
+ Args: {
9975
+ p_campaign_product_id: string;
9976
+ p_code: string;
9977
+ p_needed_qty?: number;
9978
+ p_product_name?: string;
9979
+ };
9980
+ Returns: import("../integrations/supabase/types").Json;
9981
+ };
9982
+ check_trade_item_available_stock: {
9983
+ Args: {
9984
+ p_connection_id?: string;
9985
+ p_context?: string;
9986
+ p_needed_qty?: number;
9987
+ p_order_id?: string;
9988
+ p_order_item_id?: string;
9989
+ p_owner_id?: string;
9990
+ p_product_name?: string;
9991
+ p_trade_item_key: string;
9992
+ };
9993
+ Returns: import("../integrations/supabase/types").Json;
9994
+ };
9383
9995
  cleanup_old_bookings: {
9384
9996
  Args: never;
9385
9997
  Returns: number;
@@ -9464,6 +10076,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9464
10076
  status: string;
9465
10077
  }[];
9466
10078
  };
10079
+ ensure_trade_item_stock_row: {
10080
+ Args: {
10081
+ p_key: string;
10082
+ };
10083
+ Returns: undefined;
10084
+ };
9467
10085
  ensure_user_tenant: {
9468
10086
  Args: never;
9469
10087
  Returns: string;
@@ -9501,12 +10119,31 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9501
10119
  };
9502
10120
  Returns: boolean;
9503
10121
  };
9504
- find_trade_item_key_by_name: {
10122
+ find_trade_item_key: {
9505
10123
  Args: {
10124
+ p_barcode: string;
9506
10125
  p_name: string;
10126
+ p_product_id: string;
9507
10127
  };
9508
10128
  Returns: string;
9509
10129
  };
10130
+ floriday_effective_price: {
10131
+ Args: {
10132
+ _buyer_id: string;
10133
+ _on_date?: string;
10134
+ _quantity?: number;
10135
+ _trade_item_id: string;
10136
+ };
10137
+ Returns: {
10138
+ base_price: number;
10139
+ currency: string;
10140
+ discount_type: string;
10141
+ discount_value: number;
10142
+ net_price: number;
10143
+ source: string;
10144
+ source_id: string;
10145
+ }[];
10146
+ };
9510
10147
  format_cart_number: {
9511
10148
  Args: {
9512
10149
  p_pick_date: string;
@@ -9527,6 +10164,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9527
10164
  preferred_warehouse_name: string;
9528
10165
  }[];
9529
10166
  };
10167
+ get_active_floriday_context: {
10168
+ Args: never;
10169
+ Returns: {
10170
+ connection_id: string;
10171
+ user_id: string;
10172
+ }[];
10173
+ };
9530
10174
  get_active_twinfield_public: {
9531
10175
  Args: never;
9532
10176
  Returns: {
@@ -9629,6 +10273,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9629
10273
  };
9630
10274
  Returns: import("../integrations/supabase/types").Json;
9631
10275
  };
10276
+ get_offer_recipient_by_code: {
10277
+ Args: {
10278
+ p_code: string;
10279
+ };
10280
+ Returns: {
10281
+ campaign_id: string;
10282
+ clicked_at: string;
10283
+ customer_id: string;
10284
+ id: string;
10285
+ ordered_at: string;
10286
+ }[];
10287
+ };
9632
10288
  get_or_assign_floriday_order_number: {
9633
10289
  Args: {
9634
10290
  p_floriday_id: string;
@@ -9681,6 +10337,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9681
10337
  Args: never;
9682
10338
  Returns: boolean;
9683
10339
  };
10340
+ local_effective_price: {
10341
+ Args: {
10342
+ _customer_id: string;
10343
+ _on_date?: string;
10344
+ _product_id: string;
10345
+ _quantity?: number;
10346
+ };
10347
+ Returns: {
10348
+ currency: string;
10349
+ discount_type: string;
10350
+ discount_value: number;
10351
+ net_price: number;
10352
+ source: string;
10353
+ source_id: string;
10354
+ }[];
10355
+ };
10356
+ mark_offer_clicked: {
10357
+ Args: {
10358
+ p_code: string;
10359
+ };
10360
+ Returns: undefined;
10361
+ };
10362
+ mark_offer_ordered: {
10363
+ Args: {
10364
+ p_code: string;
10365
+ };
10366
+ Returns: undefined;
10367
+ };
9684
10368
  next_order_number: {
9685
10369
  Args: {
9686
10370
  p_prefix: string;
@@ -9700,6 +10384,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9700
10384
  };
9701
10385
  Returns: string;
9702
10386
  };
10387
+ offer_recipient_matches: {
10388
+ Args: {
10389
+ _campaign_id: string;
10390
+ _customer_id: string;
10391
+ _recipient_id: string;
10392
+ };
10393
+ Returns: boolean;
10394
+ };
9703
10395
  pickstation_get_orders_raw: {
9704
10396
  Args: never;
9705
10397
  Returns: import("../integrations/supabase/types").Json;
@@ -9727,6 +10419,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9727
10419
  };
9728
10420
  Returns: undefined;
9729
10421
  };
10422
+ promote_trade_item_key: {
10423
+ Args: {
10424
+ p_new: string;
10425
+ p_old: string;
10426
+ };
10427
+ Returns: undefined;
10428
+ };
9730
10429
  refresh_floricode_derived_code_lists: {
9731
10430
  Args: never;
9732
10431
  Returns: {