@flowselections/floriday-verkoop-module 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +4 -0
  2. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -0
  3. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +95 -0
  4. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +6 -0
  5. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -0
  6. package/dist-lib/components/verkoop/CartAssignmentWizard.js +194 -0
  7. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  8. package/dist-lib/components/verkoop/CreateOrderPage.js +230 -192
  9. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +4 -0
  10. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -0
  11. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +44 -0
  12. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +5 -0
  13. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -0
  14. package/dist-lib/components/verkoop/OrderKarindelingCard.js +160 -0
  15. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  16. package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -3
  17. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  18. package/dist-lib/components/verkoop/SalesOrdersTable.js +3 -4
  19. package/dist-lib/components/verkoop/SearchableSelect.d.ts +19 -0
  20. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -0
  21. package/dist-lib/components/verkoop/SearchableSelect.js +21 -0
  22. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +39 -3
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1381 -86
  25. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/client.d.ts +1381 -86
  27. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.server.d.ts +1381 -86
  29. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/types.d.ts +1402 -79
  31. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  32. package/dist-lib/lib/cart-lock.functions.d.ts +11225 -0
  33. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -0
  34. package/dist-lib/lib/cart-lock.functions.js +47 -0
  35. package/dist-lib/lib/cart-planner.d.ts +38 -0
  36. package/dist-lib/lib/cart-planner.d.ts.map +1 -0
  37. package/dist-lib/lib/cart-planner.js +217 -0
  38. package/dist-lib/lib/cart-replan.functions.d.ts +22467 -0
  39. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -0
  40. package/dist-lib/lib/cart-replan.functions.js +203 -0
  41. package/dist-lib/lib/create-order.functions.d.ts +100967 -0
  42. package/dist-lib/lib/create-order.functions.d.ts.map +1 -0
  43. package/dist-lib/lib/create-order.functions.js +343 -0
  44. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +33640 -0
  45. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -0
  46. package/dist-lib/lib/floriday-auto-fulfillment.functions.js +65 -0
  47. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +21 -0
  48. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +1 -0
  49. package/dist-lib/lib/floriday-auto-fulfillment.server.js +352 -0
  50. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +11220 -0
  51. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -0
  52. package/dist-lib/lib/floriday-logistic-labels.functions.js +171 -0
  53. package/dist-lib/lib/floriday-public.functions.d.ts +9067 -16
  54. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/floriday-public.functions.js +45 -47
  56. package/dist-lib/lib/floriday-writes.functions.d.ts +6475 -0
  57. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-mapping.d.ts +2 -0
  59. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-mapping.js +46 -20
  61. package/dist-lib/lib/salesorders.functions.d.ts +4273 -388
  62. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/salesorders.functions.js +8 -0
  64. package/dist-lib/lib/tradeitems.functions.d.ts +1381 -86
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -0
  67. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  68. package/dist-lib/lib/useSalesOrdersQuery.js +130 -41
  69. package/package.json +1 -1
@@ -4,7 +4,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4
4
  Tables: {
5
5
  afhandeling_settings: {
6
6
  Row: {
7
+ auto_print_delivery_note: boolean;
8
+ auto_process_paused: boolean;
7
9
  created_at: string;
10
+ extra_pick_days_with_stickers: number;
8
11
  id: string;
9
12
  max_workdays_earlier_pick: number;
10
13
  pick_days_before_transport: number;
@@ -18,7 +21,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18
21
  user_id: string;
19
22
  };
20
23
  Insert: {
24
+ auto_print_delivery_note?: boolean;
25
+ auto_process_paused?: boolean;
21
26
  created_at?: string;
27
+ extra_pick_days_with_stickers?: number;
22
28
  id?: string;
23
29
  max_workdays_earlier_pick?: number;
24
30
  pick_days_before_transport?: number;
@@ -32,7 +38,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
32
38
  user_id: string;
33
39
  };
34
40
  Update: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
35
43
  created_at?: string;
44
+ extra_pick_days_with_stickers?: number;
36
45
  id?: string;
37
46
  max_workdays_earlier_pick?: number;
38
47
  pick_days_before_transport?: number;
@@ -714,6 +723,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
714
723
  notes: string | null;
715
724
  performed_at: string;
716
725
  rescheduled_count: number;
726
+ stock_consumed_at: string | null;
717
727
  total_carts: number;
718
728
  updated_at: string;
719
729
  user_id: string;
@@ -727,6 +737,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
727
737
  notes?: string | null;
728
738
  performed_at?: string;
729
739
  rescheduled_count?: number;
740
+ stock_consumed_at?: string | null;
730
741
  total_carts?: number;
731
742
  updated_at?: string;
732
743
  user_id: string;
@@ -740,6 +751,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
740
751
  notes?: string | null;
741
752
  performed_at?: string;
742
753
  rescheduled_count?: number;
754
+ stock_consumed_at?: string | null;
743
755
  total_carts?: number;
744
756
  updated_at?: string;
745
757
  user_id?: string;
@@ -821,6 +833,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
821
833
  };
822
834
  Relationships: [];
823
835
  };
836
+ cart_replan_queue: {
837
+ Row: {
838
+ attempts: number;
839
+ last_error: string | null;
840
+ order_id: string;
841
+ processed_at: string | null;
842
+ requested_at: string;
843
+ };
844
+ Insert: {
845
+ attempts?: number;
846
+ last_error?: string | null;
847
+ order_id: string;
848
+ processed_at?: string | null;
849
+ requested_at?: string;
850
+ };
851
+ Update: {
852
+ attempts?: number;
853
+ last_error?: string | null;
854
+ order_id?: string;
855
+ processed_at?: string | null;
856
+ requested_at?: string;
857
+ };
858
+ Relationships: [{
859
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
860
+ columns: ["order_id"];
861
+ isOneToOne: true;
862
+ referencedRelation: "orders";
863
+ referencedColumns: ["id"];
864
+ }];
865
+ };
824
866
  collections: {
825
867
  Row: {
826
868
  created_at: string;
@@ -2946,34 +2988,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2946
2988
  Row: {
2947
2989
  catalog_key: string | null;
2948
2990
  catalog_url: string;
2991
+ client_id: string | null;
2992
+ client_secret_ciphertext: string | null;
2993
+ client_secret_last4: string | null;
2949
2994
  created_at: string;
2950
2995
  id: number;
2951
2996
  last_meta: import("./types").Json | null;
2952
2997
  last_test_at: string | null;
2953
2998
  last_test_error: string | null;
2954
2999
  last_test_ok: boolean | null;
3000
+ last_token_test_at: string | null;
3001
+ last_token_test_error: string | null;
3002
+ last_token_test_ok: boolean | null;
2955
3003
  updated_at: string;
2956
3004
  };
2957
3005
  Insert: {
2958
3006
  catalog_key?: string | null;
2959
3007
  catalog_url?: string;
3008
+ client_id?: string | null;
3009
+ client_secret_ciphertext?: string | null;
3010
+ client_secret_last4?: string | null;
2960
3011
  created_at?: string;
2961
3012
  id?: number;
2962
3013
  last_meta?: import("./types").Json | null;
2963
3014
  last_test_at?: string | null;
2964
3015
  last_test_error?: string | null;
2965
3016
  last_test_ok?: boolean | null;
3017
+ last_token_test_at?: string | null;
3018
+ last_token_test_error?: string | null;
3019
+ last_token_test_ok?: boolean | null;
2966
3020
  updated_at?: string;
2967
3021
  };
2968
3022
  Update: {
2969
3023
  catalog_key?: string | null;
2970
3024
  catalog_url?: string;
3025
+ client_id?: string | null;
3026
+ client_secret_ciphertext?: string | null;
3027
+ client_secret_last4?: string | null;
2971
3028
  created_at?: string;
2972
3029
  id?: number;
2973
3030
  last_meta?: import("./types").Json | null;
2974
3031
  last_test_at?: string | null;
2975
3032
  last_test_error?: string | null;
2976
3033
  last_test_ok?: boolean | null;
3034
+ last_token_test_at?: string | null;
3035
+ last_token_test_error?: string | null;
3036
+ last_token_test_ok?: boolean | null;
2977
3037
  updated_at?: string;
2978
3038
  };
2979
3039
  Relationships: [];
@@ -3206,6 +3266,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3206
3266
  referencedColumns: ["id"];
3207
3267
  }];
3208
3268
  };
3269
+ floriday_auto_fulfillment_log: {
3270
+ Row: {
3271
+ attempts: number;
3272
+ connection_id: string;
3273
+ created_at: string;
3274
+ error: string | null;
3275
+ fulfillment_order_id: string | null;
3276
+ id: string;
3277
+ last_attempt_at: string | null;
3278
+ reason: string | null;
3279
+ sales_order_id: string;
3280
+ status: string;
3281
+ updated_at: string;
3282
+ };
3283
+ Insert: {
3284
+ attempts?: number;
3285
+ connection_id: string;
3286
+ created_at?: string;
3287
+ error?: string | null;
3288
+ fulfillment_order_id?: string | null;
3289
+ id?: string;
3290
+ last_attempt_at?: string | null;
3291
+ reason?: string | null;
3292
+ sales_order_id: string;
3293
+ status?: string;
3294
+ updated_at?: string;
3295
+ };
3296
+ Update: {
3297
+ attempts?: number;
3298
+ connection_id?: string;
3299
+ created_at?: string;
3300
+ error?: string | null;
3301
+ fulfillment_order_id?: string | null;
3302
+ id?: string;
3303
+ last_attempt_at?: string | null;
3304
+ reason?: string | null;
3305
+ sales_order_id?: string;
3306
+ status?: string;
3307
+ updated_at?: string;
3308
+ };
3309
+ Relationships: [{
3310
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3311
+ columns: ["connection_id"];
3312
+ isOneToOne: false;
3313
+ referencedRelation: "floriday_connections";
3314
+ referencedColumns: ["id"];
3315
+ }];
3316
+ };
3209
3317
  floriday_base_items_cache: {
3210
3318
  Row: {
3211
3319
  connection_id: string;
@@ -3620,6 +3728,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3620
3728
  referencedColumns: ["id"];
3621
3729
  }];
3622
3730
  };
3731
+ floriday_continuous_stock_queue: {
3732
+ Row: {
3733
+ attempts: number;
3734
+ connection_id: string;
3735
+ created_at: string;
3736
+ gateway_attempt_id: string | null;
3737
+ id: string;
3738
+ last_error: string | null;
3739
+ number_of_pieces: number;
3740
+ sent_at: string | null;
3741
+ status: string;
3742
+ trade_item_id: string;
3743
+ updated_at: string;
3744
+ user_id: string;
3745
+ };
3746
+ Insert: {
3747
+ attempts?: number;
3748
+ connection_id: string;
3749
+ created_at?: string;
3750
+ gateway_attempt_id?: string | null;
3751
+ id?: string;
3752
+ last_error?: string | null;
3753
+ number_of_pieces?: number;
3754
+ sent_at?: string | null;
3755
+ status?: string;
3756
+ trade_item_id: string;
3757
+ updated_at?: string;
3758
+ user_id: string;
3759
+ };
3760
+ Update: {
3761
+ attempts?: number;
3762
+ connection_id?: string;
3763
+ created_at?: string;
3764
+ gateway_attempt_id?: string | null;
3765
+ id?: string;
3766
+ last_error?: string | null;
3767
+ number_of_pieces?: number;
3768
+ sent_at?: string | null;
3769
+ status?: string;
3770
+ trade_item_id?: string;
3771
+ updated_at?: string;
3772
+ user_id?: string;
3773
+ };
3774
+ Relationships: [];
3775
+ };
3623
3776
  floriday_contract_trade_item_groups_cache: {
3624
3777
  Row: {
3625
3778
  connection_id: string;
@@ -4265,6 +4418,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4265
4418
  referencedColumns: ["id"];
4266
4419
  }];
4267
4420
  };
4421
+ floriday_rate_limit_state: {
4422
+ Row: {
4423
+ bucket: string;
4424
+ last_refill_at: string;
4425
+ tokens: number;
4426
+ };
4427
+ Insert: {
4428
+ bucket: string;
4429
+ last_refill_at?: string;
4430
+ tokens: number;
4431
+ };
4432
+ Update: {
4433
+ bucket?: string;
4434
+ last_refill_at?: string;
4435
+ tokens?: number;
4436
+ };
4437
+ Relationships: [];
4438
+ };
4268
4439
  floriday_resource_schemas: {
4269
4440
  Row: {
4270
4441
  enums: import("./types").Json;
@@ -4688,6 +4859,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4688
4859
  referencedColumns: ["id"];
4689
4860
  }];
4690
4861
  };
4862
+ flow_role_assignments: {
4863
+ Row: {
4864
+ created_at: string;
4865
+ id: string;
4866
+ role_id: string;
4867
+ user_id: string;
4868
+ };
4869
+ Insert: {
4870
+ created_at?: string;
4871
+ id?: string;
4872
+ role_id: string;
4873
+ user_id: string;
4874
+ };
4875
+ Update: {
4876
+ created_at?: string;
4877
+ id?: string;
4878
+ role_id?: string;
4879
+ user_id?: string;
4880
+ };
4881
+ Relationships: [{
4882
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4883
+ columns: ["role_id"];
4884
+ isOneToOne: false;
4885
+ referencedRelation: "flow_roles";
4886
+ referencedColumns: ["id"];
4887
+ }];
4888
+ };
4889
+ flow_roles: {
4890
+ Row: {
4891
+ created_at: string;
4892
+ description: string | null;
4893
+ id: string;
4894
+ module_access: string[];
4895
+ name: string;
4896
+ updated_at: string;
4897
+ };
4898
+ Insert: {
4899
+ created_at?: string;
4900
+ description?: string | null;
4901
+ id?: string;
4902
+ module_access?: string[];
4903
+ name: string;
4904
+ updated_at?: string;
4905
+ };
4906
+ Update: {
4907
+ created_at?: string;
4908
+ description?: string | null;
4909
+ id?: string;
4910
+ module_access?: string[];
4911
+ name?: string;
4912
+ updated_at?: string;
4913
+ };
4914
+ Relationships: [];
4915
+ };
4691
4916
  imap_accounts: {
4692
4917
  Row: {
4693
4918
  created_at: string;
@@ -5009,88 +5234,286 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5009
5234
  };
5010
5235
  Relationships: [];
5011
5236
  };
5012
- locations: {
5237
+ local_customer_agreements: {
5013
5238
  Row: {
5239
+ base_price: number | null;
5014
5240
  created_at: string;
5241
+ currency: string;
5242
+ customer_id: string;
5015
5243
  id: string;
5016
- name: string;
5017
- sort_order: number;
5244
+ min_quantity: number;
5245
+ net_price: number;
5246
+ notes: string | null;
5247
+ product_category_id: string | null;
5248
+ product_id: string | null;
5018
5249
  updated_at: string;
5250
+ valid_from: string | null;
5251
+ valid_until: string | null;
5019
5252
  };
5020
5253
  Insert: {
5254
+ base_price?: number | null;
5021
5255
  created_at?: string;
5256
+ currency?: string;
5257
+ customer_id: string;
5022
5258
  id?: string;
5023
- name: string;
5024
- sort_order?: number;
5259
+ min_quantity?: number;
5260
+ net_price: number;
5261
+ notes?: string | null;
5262
+ product_category_id?: string | null;
5263
+ product_id?: string | null;
5025
5264
  updated_at?: string;
5265
+ valid_from?: string | null;
5266
+ valid_until?: string | null;
5026
5267
  };
5027
5268
  Update: {
5269
+ base_price?: number | null;
5028
5270
  created_at?: string;
5271
+ currency?: string;
5272
+ customer_id?: string;
5029
5273
  id?: string;
5030
- name?: string;
5031
- sort_order?: number;
5274
+ min_quantity?: number;
5275
+ net_price?: number;
5276
+ notes?: string | null;
5277
+ product_category_id?: string | null;
5278
+ product_id?: string | null;
5032
5279
  updated_at?: string;
5280
+ valid_from?: string | null;
5281
+ valid_until?: string | null;
5033
5282
  };
5034
- Relationships: [];
5283
+ Relationships: [{
5284
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5285
+ columns: ["customer_id"];
5286
+ isOneToOne: false;
5287
+ referencedRelation: "customers";
5288
+ referencedColumns: ["id"];
5289
+ }, {
5290
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5291
+ columns: ["product_category_id"];
5292
+ isOneToOne: false;
5293
+ referencedRelation: "product_categories";
5294
+ referencedColumns: ["id"];
5295
+ }, {
5296
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5297
+ columns: ["product_id"];
5298
+ isOneToOne: false;
5299
+ referencedRelation: "products";
5300
+ referencedColumns: ["id"];
5301
+ }];
5035
5302
  };
5036
- mailbox_messages: {
5303
+ local_customer_price_groups: {
5037
5304
  Row: {
5038
- body_html: string | null;
5039
- body_text: string | null;
5040
- connection_id: string | null;
5041
5305
  created_at: string;
5042
- error_message: string | null;
5043
- external_id: string | null;
5044
- from_email: string | null;
5045
- from_name: string | null;
5306
+ currency: string;
5307
+ customer_id: string;
5308
+ discount_type: string;
5309
+ discount_value: number;
5046
5310
  id: string;
5047
- message_id: string | null;
5048
- profile_id: string | null;
5049
- raw_size: number | null;
5050
- received_at: string | null;
5051
- status: string;
5052
- subject: string | null;
5053
- uid: number | null;
5311
+ min_quantity: number;
5312
+ notes: string | null;
5313
+ product_category_id: string | null;
5314
+ product_id: string | null;
5054
5315
  updated_at: string;
5316
+ valid_from: string | null;
5317
+ valid_until: string | null;
5055
5318
  };
5056
5319
  Insert: {
5057
- body_html?: string | null;
5058
- body_text?: string | null;
5059
- connection_id?: string | null;
5060
5320
  created_at?: string;
5061
- error_message?: string | null;
5062
- external_id?: string | null;
5063
- from_email?: string | null;
5064
- from_name?: string | null;
5321
+ currency?: string;
5322
+ customer_id: string;
5323
+ discount_type: string;
5324
+ discount_value: number;
5065
5325
  id?: string;
5066
- message_id?: string | null;
5067
- profile_id?: string | null;
5068
- raw_size?: number | null;
5069
- received_at?: string | null;
5070
- status?: string;
5071
- subject?: string | null;
5072
- uid?: number | null;
5326
+ min_quantity?: number;
5327
+ notes?: string | null;
5328
+ product_category_id?: string | null;
5329
+ product_id?: string | null;
5073
5330
  updated_at?: string;
5331
+ valid_from?: string | null;
5332
+ valid_until?: string | null;
5074
5333
  };
5075
5334
  Update: {
5076
- body_html?: string | null;
5077
- body_text?: string | null;
5078
- connection_id?: string | null;
5079
5335
  created_at?: string;
5080
- error_message?: string | null;
5081
- external_id?: string | null;
5082
- from_email?: string | null;
5083
- from_name?: string | null;
5336
+ currency?: string;
5337
+ customer_id?: string;
5338
+ discount_type?: string;
5339
+ discount_value?: number;
5084
5340
  id?: string;
5085
- message_id?: string | null;
5086
- profile_id?: string | null;
5087
- raw_size?: number | null;
5088
- received_at?: string | null;
5089
- status?: string;
5090
- subject?: string | null;
5091
- uid?: number | null;
5341
+ min_quantity?: number;
5342
+ notes?: string | null;
5343
+ product_category_id?: string | null;
5344
+ product_id?: string | null;
5092
5345
  updated_at?: string;
5093
- };
5346
+ valid_from?: string | null;
5347
+ valid_until?: string | null;
5348
+ };
5349
+ Relationships: [{
5350
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5351
+ columns: ["customer_id"];
5352
+ isOneToOne: false;
5353
+ referencedRelation: "customers";
5354
+ referencedColumns: ["id"];
5355
+ }, {
5356
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5357
+ columns: ["product_category_id"];
5358
+ isOneToOne: false;
5359
+ referencedRelation: "product_categories";
5360
+ referencedColumns: ["id"];
5361
+ }, {
5362
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5363
+ columns: ["product_id"];
5364
+ isOneToOne: false;
5365
+ referencedRelation: "products";
5366
+ referencedColumns: ["id"];
5367
+ }];
5368
+ };
5369
+ local_customer_sales_strategies: {
5370
+ Row: {
5371
+ created_at: string;
5372
+ currency: string;
5373
+ customer_id: string;
5374
+ discount_type: string;
5375
+ discount_value: number;
5376
+ id: string;
5377
+ min_quantity: number;
5378
+ notes: string | null;
5379
+ product_category_id: string | null;
5380
+ product_id: string | null;
5381
+ updated_at: string;
5382
+ valid_from: string | null;
5383
+ valid_until: string | null;
5384
+ };
5385
+ Insert: {
5386
+ created_at?: string;
5387
+ currency?: string;
5388
+ customer_id: string;
5389
+ discount_type: string;
5390
+ discount_value: number;
5391
+ id?: string;
5392
+ min_quantity?: number;
5393
+ notes?: string | null;
5394
+ product_category_id?: string | null;
5395
+ product_id?: string | null;
5396
+ updated_at?: string;
5397
+ valid_from?: string | null;
5398
+ valid_until?: string | null;
5399
+ };
5400
+ Update: {
5401
+ created_at?: string;
5402
+ currency?: string;
5403
+ customer_id?: string;
5404
+ discount_type?: string;
5405
+ discount_value?: number;
5406
+ id?: string;
5407
+ min_quantity?: number;
5408
+ notes?: string | null;
5409
+ product_category_id?: string | null;
5410
+ product_id?: string | null;
5411
+ updated_at?: string;
5412
+ valid_from?: string | null;
5413
+ valid_until?: string | null;
5414
+ };
5415
+ Relationships: [{
5416
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5417
+ columns: ["customer_id"];
5418
+ isOneToOne: false;
5419
+ referencedRelation: "customers";
5420
+ referencedColumns: ["id"];
5421
+ }, {
5422
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5423
+ columns: ["product_category_id"];
5424
+ isOneToOne: false;
5425
+ referencedRelation: "product_categories";
5426
+ referencedColumns: ["id"];
5427
+ }, {
5428
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5429
+ columns: ["product_id"];
5430
+ isOneToOne: false;
5431
+ referencedRelation: "products";
5432
+ referencedColumns: ["id"];
5433
+ }];
5434
+ };
5435
+ locations: {
5436
+ Row: {
5437
+ created_at: string;
5438
+ id: string;
5439
+ name: string;
5440
+ sort_order: number;
5441
+ updated_at: string;
5442
+ };
5443
+ Insert: {
5444
+ created_at?: string;
5445
+ id?: string;
5446
+ name: string;
5447
+ sort_order?: number;
5448
+ updated_at?: string;
5449
+ };
5450
+ Update: {
5451
+ created_at?: string;
5452
+ id?: string;
5453
+ name?: string;
5454
+ sort_order?: number;
5455
+ updated_at?: string;
5456
+ };
5457
+ Relationships: [];
5458
+ };
5459
+ mailbox_messages: {
5460
+ Row: {
5461
+ body_html: string | null;
5462
+ body_text: string | null;
5463
+ connection_id: string | null;
5464
+ created_at: string;
5465
+ error_message: string | null;
5466
+ external_id: string | null;
5467
+ from_email: string | null;
5468
+ from_name: string | null;
5469
+ id: string;
5470
+ message_id: string | null;
5471
+ profile_id: string | null;
5472
+ raw_size: number | null;
5473
+ received_at: string | null;
5474
+ status: string;
5475
+ subject: string | null;
5476
+ uid: number | null;
5477
+ updated_at: string;
5478
+ };
5479
+ Insert: {
5480
+ body_html?: string | null;
5481
+ body_text?: string | null;
5482
+ connection_id?: string | null;
5483
+ created_at?: string;
5484
+ error_message?: string | null;
5485
+ external_id?: string | null;
5486
+ from_email?: string | null;
5487
+ from_name?: string | null;
5488
+ id?: string;
5489
+ message_id?: string | null;
5490
+ profile_id?: string | null;
5491
+ raw_size?: number | null;
5492
+ received_at?: string | null;
5493
+ status?: string;
5494
+ subject?: string | null;
5495
+ uid?: number | null;
5496
+ updated_at?: string;
5497
+ };
5498
+ Update: {
5499
+ body_html?: string | null;
5500
+ body_text?: string | null;
5501
+ connection_id?: string | null;
5502
+ created_at?: string;
5503
+ error_message?: string | null;
5504
+ external_id?: string | null;
5505
+ from_email?: string | null;
5506
+ from_name?: string | null;
5507
+ id?: string;
5508
+ message_id?: string | null;
5509
+ profile_id?: string | null;
5510
+ raw_size?: number | null;
5511
+ received_at?: string | null;
5512
+ status?: string;
5513
+ subject?: string | null;
5514
+ uid?: number | null;
5515
+ updated_at?: string;
5516
+ };
5094
5517
  Relationships: [{
5095
5518
  foreignKeyName: "mailbox_messages_connection_id_fkey";
5096
5519
  columns: ["connection_id"];
@@ -5121,6 +5544,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5121
5544
  matched_customer_id: string | null;
5122
5545
  message_id: string;
5123
5546
  notes: string | null;
5547
+ order_number: string | null;
5124
5548
  parsed_payload: import("./types").Json | null;
5125
5549
  reviewed_at: string | null;
5126
5550
  reviewed_by: string | null;
@@ -5136,6 +5560,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5136
5560
  matched_customer_id?: string | null;
5137
5561
  message_id: string;
5138
5562
  notes?: string | null;
5563
+ order_number?: string | null;
5139
5564
  parsed_payload?: import("./types").Json | null;
5140
5565
  reviewed_at?: string | null;
5141
5566
  reviewed_by?: string | null;
@@ -5151,6 +5576,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5151
5576
  matched_customer_id?: string | null;
5152
5577
  message_id?: string;
5153
5578
  notes?: string | null;
5579
+ order_number?: string | null;
5154
5580
  parsed_payload?: import("./types").Json | null;
5155
5581
  reviewed_at?: string | null;
5156
5582
  reviewed_by?: string | null;
@@ -5516,6 +5942,273 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5516
5942
  referencedColumns: ["id"];
5517
5943
  }];
5518
5944
  };
5945
+ nmbrs_component_mapping: {
5946
+ Row: {
5947
+ created_at: string;
5948
+ id: string;
5949
+ source_kind: string;
5950
+ source_value: string | null;
5951
+ updated_at: string;
5952
+ wage_code: string;
5953
+ };
5954
+ Insert: {
5955
+ created_at?: string;
5956
+ id?: string;
5957
+ source_kind: string;
5958
+ source_value?: string | null;
5959
+ updated_at?: string;
5960
+ wage_code: string;
5961
+ };
5962
+ Update: {
5963
+ created_at?: string;
5964
+ id?: string;
5965
+ source_kind?: string;
5966
+ source_value?: string | null;
5967
+ updated_at?: string;
5968
+ wage_code?: string;
5969
+ };
5970
+ Relationships: [{
5971
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5972
+ columns: ["wage_code"];
5973
+ isOneToOne: false;
5974
+ referencedRelation: "nmbrs_wage_components";
5975
+ referencedColumns: ["code"];
5976
+ }];
5977
+ };
5978
+ nmbrs_employee_mapping: {
5979
+ Row: {
5980
+ active_from: string | null;
5981
+ active_to: string | null;
5982
+ contract_hours_per_week: number | null;
5983
+ created_at: string;
5984
+ hourly_wage: number | null;
5985
+ id: string;
5986
+ monteur_id: string;
5987
+ nmbrs_company_code: string | null;
5988
+ nmbrs_employee_number: string;
5989
+ updated_at: string;
5990
+ };
5991
+ Insert: {
5992
+ active_from?: string | null;
5993
+ active_to?: string | null;
5994
+ contract_hours_per_week?: number | null;
5995
+ created_at?: string;
5996
+ hourly_wage?: number | null;
5997
+ id?: string;
5998
+ monteur_id: string;
5999
+ nmbrs_company_code?: string | null;
6000
+ nmbrs_employee_number: string;
6001
+ updated_at?: string;
6002
+ };
6003
+ Update: {
6004
+ active_from?: string | null;
6005
+ active_to?: string | null;
6006
+ contract_hours_per_week?: number | null;
6007
+ created_at?: string;
6008
+ hourly_wage?: number | null;
6009
+ id?: string;
6010
+ monteur_id?: string;
6011
+ nmbrs_company_code?: string | null;
6012
+ nmbrs_employee_number?: string;
6013
+ updated_at?: string;
6014
+ };
6015
+ Relationships: [{
6016
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
6017
+ columns: ["monteur_id"];
6018
+ isOneToOne: true;
6019
+ referencedRelation: "monteurs";
6020
+ referencedColumns: ["id"];
6021
+ }];
6022
+ };
6023
+ nmbrs_export_lines: {
6024
+ Row: {
6025
+ amount: number;
6026
+ created_at: string;
6027
+ entry_date: string;
6028
+ hours: number;
6029
+ id: string;
6030
+ monteur_id: string;
6031
+ nmbrs_employee_number: string | null;
6032
+ notes: string | null;
6033
+ run_id: string;
6034
+ source_kind: string | null;
6035
+ source_ref_id: string | null;
6036
+ updated_at: string;
6037
+ wage_code: string;
6038
+ };
6039
+ Insert: {
6040
+ amount?: number;
6041
+ created_at?: string;
6042
+ entry_date: string;
6043
+ hours?: number;
6044
+ id?: string;
6045
+ monteur_id: string;
6046
+ nmbrs_employee_number?: string | null;
6047
+ notes?: string | null;
6048
+ run_id: string;
6049
+ source_kind?: string | null;
6050
+ source_ref_id?: string | null;
6051
+ updated_at?: string;
6052
+ wage_code: string;
6053
+ };
6054
+ Update: {
6055
+ amount?: number;
6056
+ created_at?: string;
6057
+ entry_date?: string;
6058
+ hours?: number;
6059
+ id?: string;
6060
+ monteur_id?: string;
6061
+ nmbrs_employee_number?: string | null;
6062
+ notes?: string | null;
6063
+ run_id?: string;
6064
+ source_kind?: string | null;
6065
+ source_ref_id?: string | null;
6066
+ updated_at?: string;
6067
+ wage_code?: string;
6068
+ };
6069
+ Relationships: [{
6070
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
6071
+ columns: ["monteur_id"];
6072
+ isOneToOne: false;
6073
+ referencedRelation: "monteurs";
6074
+ referencedColumns: ["id"];
6075
+ }, {
6076
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
6077
+ columns: ["run_id"];
6078
+ isOneToOne: false;
6079
+ referencedRelation: "nmbrs_export_runs";
6080
+ referencedColumns: ["id"];
6081
+ }, {
6082
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
6083
+ columns: ["wage_code"];
6084
+ isOneToOne: false;
6085
+ referencedRelation: "nmbrs_wage_components";
6086
+ referencedColumns: ["code"];
6087
+ }];
6088
+ };
6089
+ nmbrs_export_runs: {
6090
+ Row: {
6091
+ created_at: string;
6092
+ file_name: string | null;
6093
+ generated_at: string;
6094
+ generated_by: string | null;
6095
+ id: string;
6096
+ notes: string | null;
6097
+ period_end: string;
6098
+ period_label: string;
6099
+ period_start: string;
6100
+ status: string;
6101
+ total_hours: number;
6102
+ total_lines: number;
6103
+ updated_at: string;
6104
+ };
6105
+ Insert: {
6106
+ created_at?: string;
6107
+ file_name?: string | null;
6108
+ generated_at?: string;
6109
+ generated_by?: string | null;
6110
+ id?: string;
6111
+ notes?: string | null;
6112
+ period_end: string;
6113
+ period_label: string;
6114
+ period_start: string;
6115
+ status?: string;
6116
+ total_hours?: number;
6117
+ total_lines?: number;
6118
+ updated_at?: string;
6119
+ };
6120
+ Update: {
6121
+ created_at?: string;
6122
+ file_name?: string | null;
6123
+ generated_at?: string;
6124
+ generated_by?: string | null;
6125
+ id?: string;
6126
+ notes?: string | null;
6127
+ period_end?: string;
6128
+ period_label?: string;
6129
+ period_start?: string;
6130
+ status?: string;
6131
+ total_hours?: number;
6132
+ total_lines?: number;
6133
+ updated_at?: string;
6134
+ };
6135
+ Relationships: [];
6136
+ };
6137
+ nmbrs_settings: {
6138
+ Row: {
6139
+ created_at: string;
6140
+ default_company_code: string | null;
6141
+ id: boolean;
6142
+ include_travel: boolean;
6143
+ overtime_threshold_daily: number;
6144
+ overtime_threshold_weekly: number;
6145
+ period_type: string;
6146
+ updated_at: string;
6147
+ updated_by: string | null;
6148
+ week_start_day: number;
6149
+ };
6150
+ Insert: {
6151
+ created_at?: string;
6152
+ default_company_code?: string | null;
6153
+ id?: boolean;
6154
+ include_travel?: boolean;
6155
+ overtime_threshold_daily?: number;
6156
+ overtime_threshold_weekly?: number;
6157
+ period_type?: string;
6158
+ updated_at?: string;
6159
+ updated_by?: string | null;
6160
+ week_start_day?: number;
6161
+ };
6162
+ Update: {
6163
+ created_at?: string;
6164
+ default_company_code?: string | null;
6165
+ id?: boolean;
6166
+ include_travel?: boolean;
6167
+ overtime_threshold_daily?: number;
6168
+ overtime_threshold_weekly?: number;
6169
+ period_type?: string;
6170
+ updated_at?: string;
6171
+ updated_by?: string | null;
6172
+ week_start_day?: number;
6173
+ };
6174
+ Relationships: [];
6175
+ };
6176
+ nmbrs_wage_components: {
6177
+ Row: {
6178
+ category: string;
6179
+ code: string;
6180
+ created_at: string;
6181
+ id: string;
6182
+ is_active: boolean;
6183
+ label: string;
6184
+ sort_order: number;
6185
+ unit: string;
6186
+ updated_at: string;
6187
+ };
6188
+ Insert: {
6189
+ category: string;
6190
+ code: string;
6191
+ created_at?: string;
6192
+ id?: string;
6193
+ is_active?: boolean;
6194
+ label: string;
6195
+ sort_order?: number;
6196
+ unit: string;
6197
+ updated_at?: string;
6198
+ };
6199
+ Update: {
6200
+ category?: string;
6201
+ code?: string;
6202
+ created_at?: string;
6203
+ id?: string;
6204
+ is_active?: boolean;
6205
+ label?: string;
6206
+ sort_order?: number;
6207
+ unit?: string;
6208
+ updated_at?: string;
6209
+ };
6210
+ Relationships: [];
6211
+ };
5519
6212
  notifications: {
5520
6213
  Row: {
5521
6214
  created_at: string;
@@ -5740,6 +6433,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5740
6433
  id: string;
5741
6434
  items: import("./types").Json;
5742
6435
  notes: string | null;
6436
+ order_number: string | null;
5743
6437
  recipient_id: string;
5744
6438
  total_amount: number;
5745
6439
  };
@@ -5753,6 +6447,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5753
6447
  id?: string;
5754
6448
  items?: import("./types").Json;
5755
6449
  notes?: string | null;
6450
+ order_number?: string | null;
5756
6451
  recipient_id: string;
5757
6452
  total_amount?: number;
5758
6453
  };
@@ -5766,6 +6461,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5766
6461
  id?: string;
5767
6462
  items?: import("./types").Json;
5768
6463
  notes?: string | null;
6464
+ order_number?: string | null;
5769
6465
  recipient_id?: string;
5770
6466
  total_amount?: number;
5771
6467
  };
@@ -5925,6 +6621,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5925
6621
  crates_per_layer: number;
5926
6622
  created_at: string;
5927
6623
  id: string;
6624
+ layer_fraction: number;
6625
+ layer_share_pct: number;
6626
+ layers_per_cart: number;
5928
6627
  order_item_id: string | null;
5929
6628
  plants_per_crate: number;
5930
6629
  product_id: string | null;
@@ -5936,6 +6635,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5936
6635
  crates_per_layer?: number;
5937
6636
  created_at?: string;
5938
6637
  id?: string;
6638
+ layer_fraction?: number;
6639
+ layer_share_pct?: number;
6640
+ layers_per_cart?: number;
5939
6641
  order_item_id?: string | null;
5940
6642
  plants_per_crate?: number;
5941
6643
  product_id?: string | null;
@@ -5947,6 +6649,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5947
6649
  crates_per_layer?: number;
5948
6650
  created_at?: string;
5949
6651
  id?: string;
6652
+ layer_fraction?: number;
6653
+ layer_share_pct?: number;
6654
+ layers_per_cart?: number;
5950
6655
  order_item_id?: string | null;
5951
6656
  plants_per_crate?: number;
5952
6657
  product_id?: string | null;
@@ -5974,33 +6679,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5974
6679
  };
5975
6680
  order_carts: {
5976
6681
  Row: {
6682
+ algorithm_version: number;
5977
6683
  cart_number: number;
5978
6684
  created_at: string;
5979
6685
  id: string;
5980
6686
  is_auto: boolean;
5981
6687
  is_complete: boolean;
5982
6688
  notes: string | null;
6689
+ occupancy_pct: number;
5983
6690
  order_id: string;
6691
+ source: string;
6692
+ total_layers_used: number;
5984
6693
  updated_at: string;
5985
6694
  };
5986
6695
  Insert: {
6696
+ algorithm_version?: number;
5987
6697
  cart_number: number;
5988
6698
  created_at?: string;
5989
6699
  id?: string;
5990
6700
  is_auto?: boolean;
5991
6701
  is_complete?: boolean;
5992
6702
  notes?: string | null;
6703
+ occupancy_pct?: number;
5993
6704
  order_id: string;
6705
+ source?: string;
6706
+ total_layers_used?: number;
5994
6707
  updated_at?: string;
5995
6708
  };
5996
6709
  Update: {
6710
+ algorithm_version?: number;
5997
6711
  cart_number?: number;
5998
6712
  created_at?: string;
5999
6713
  id?: string;
6000
6714
  is_auto?: boolean;
6001
6715
  is_complete?: boolean;
6002
6716
  notes?: string | null;
6717
+ occupancy_pct?: number;
6003
6718
  order_id?: string;
6719
+ source?: string;
6720
+ total_layers_used?: number;
6004
6721
  updated_at?: string;
6005
6722
  };
6006
6723
  Relationships: [{
@@ -6153,6 +6870,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6153
6870
  order_date: string;
6154
6871
  order_number: string;
6155
6872
  order_source: string;
6873
+ plan_locked_at: string | null;
6874
+ plan_locked_ref: string | null;
6156
6875
  status: string;
6157
6876
  total: string;
6158
6877
  updated_at: string;
@@ -6169,6 +6888,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6169
6888
  order_date?: string;
6170
6889
  order_number: string;
6171
6890
  order_source?: string;
6891
+ plan_locked_at?: string | null;
6892
+ plan_locked_ref?: string | null;
6172
6893
  status?: string;
6173
6894
  total?: string;
6174
6895
  updated_at?: string;
@@ -6185,6 +6906,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6185
6906
  order_date?: string;
6186
6907
  order_number?: string;
6187
6908
  order_source?: string;
6909
+ plan_locked_at?: string | null;
6910
+ plan_locked_ref?: string | null;
6188
6911
  status?: string;
6189
6912
  total?: string;
6190
6913
  updated_at?: string;
@@ -6498,6 +7221,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6498
7221
  purchase_price: number | null;
6499
7222
  quantity: number;
6500
7223
  sale_price: number | null;
7224
+ trade_item_key: string | null;
6501
7225
  unit: string;
6502
7226
  updated_at: string;
6503
7227
  weight: string | null;
@@ -6520,6 +7244,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6520
7244
  purchase_price?: number | null;
6521
7245
  quantity?: number;
6522
7246
  sale_price?: number | null;
7247
+ trade_item_key?: string | null;
6523
7248
  unit?: string;
6524
7249
  updated_at?: string;
6525
7250
  weight?: string | null;
@@ -6542,6 +7267,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6542
7267
  purchase_price?: number | null;
6543
7268
  quantity?: number;
6544
7269
  sale_price?: number | null;
7270
+ trade_item_key?: string | null;
6545
7271
  unit?: string;
6546
7272
  updated_at?: string;
6547
7273
  weight?: string | null;
@@ -6554,6 +7280,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6554
7280
  display_name: string | null;
6555
7281
  email: string | null;
6556
7282
  id: string;
7283
+ is_superadmin: boolean;
6557
7284
  notification_preferences: import("./types").Json;
6558
7285
  tenant_id: string | null;
6559
7286
  updated_at: string;
@@ -6563,6 +7290,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6563
7290
  display_name?: string | null;
6564
7291
  email?: string | null;
6565
7292
  id: string;
7293
+ is_superadmin?: boolean;
6566
7294
  notification_preferences?: import("./types").Json;
6567
7295
  tenant_id?: string | null;
6568
7296
  updated_at?: string;
@@ -6572,6 +7300,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6572
7300
  display_name?: string | null;
6573
7301
  email?: string | null;
6574
7302
  id?: string;
7303
+ is_superadmin?: boolean;
6575
7304
  notification_preferences?: import("./types").Json;
6576
7305
  tenant_id?: string | null;
6577
7306
  updated_at?: string;
@@ -7361,6 +8090,120 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7361
8090
  };
7362
8091
  Relationships: [];
7363
8092
  };
8093
+ sidebar_config: {
8094
+ Row: {
8095
+ id: string;
8096
+ module_order: string[];
8097
+ updated_at: string;
8098
+ };
8099
+ Insert: {
8100
+ id?: string;
8101
+ module_order?: string[];
8102
+ updated_at?: string;
8103
+ };
8104
+ Update: {
8105
+ id?: string;
8106
+ module_order?: string[];
8107
+ updated_at?: string;
8108
+ };
8109
+ Relationships: [];
8110
+ };
8111
+ stock_import_runs: {
8112
+ Row: {
8113
+ connection_id: string | null;
8114
+ created_at: string;
8115
+ created_rows: number;
8116
+ errors: import("./types").Json;
8117
+ filename: string | null;
8118
+ id: string;
8119
+ mutations: import("./types").Json;
8120
+ skipped_rows: number;
8121
+ total_rows: number;
8122
+ updated_rows: number;
8123
+ user_id: string;
8124
+ };
8125
+ Insert: {
8126
+ connection_id?: string | null;
8127
+ created_at?: string;
8128
+ created_rows?: number;
8129
+ errors?: import("./types").Json;
8130
+ filename?: string | null;
8131
+ id?: string;
8132
+ mutations?: import("./types").Json;
8133
+ skipped_rows?: number;
8134
+ total_rows?: number;
8135
+ updated_rows?: number;
8136
+ user_id: string;
8137
+ };
8138
+ Update: {
8139
+ connection_id?: string | null;
8140
+ created_at?: string;
8141
+ created_rows?: number;
8142
+ errors?: import("./types").Json;
8143
+ filename?: string | null;
8144
+ id?: string;
8145
+ mutations?: import("./types").Json;
8146
+ skipped_rows?: number;
8147
+ total_rows?: number;
8148
+ updated_rows?: number;
8149
+ user_id?: string;
8150
+ };
8151
+ Relationships: [];
8152
+ };
8153
+ stock_mutation_log: {
8154
+ Row: {
8155
+ connection_id: string | null;
8156
+ created_at: string;
8157
+ created_by: string | null;
8158
+ id: string;
8159
+ mutation_type: string;
8160
+ order_id: string | null;
8161
+ order_item_id: string | null;
8162
+ order_source: string | null;
8163
+ physical_after: number | null;
8164
+ physical_before: number | null;
8165
+ qty_delta: number;
8166
+ reason: string | null;
8167
+ reserved_after: number | null;
8168
+ reserved_before: number | null;
8169
+ trade_item_key: string | null;
8170
+ };
8171
+ Insert: {
8172
+ connection_id?: string | null;
8173
+ created_at?: string;
8174
+ created_by?: string | null;
8175
+ id?: string;
8176
+ mutation_type: string;
8177
+ order_id?: string | null;
8178
+ order_item_id?: string | null;
8179
+ order_source?: string | null;
8180
+ physical_after?: number | null;
8181
+ physical_before?: number | null;
8182
+ qty_delta: number;
8183
+ reason?: string | null;
8184
+ reserved_after?: number | null;
8185
+ reserved_before?: number | null;
8186
+ trade_item_key?: string | null;
8187
+ };
8188
+ Update: {
8189
+ connection_id?: string | null;
8190
+ created_at?: string;
8191
+ created_by?: string | null;
8192
+ id?: string;
8193
+ mutation_type?: string;
8194
+ order_id?: string | null;
8195
+ order_item_id?: string | null;
8196
+ order_source?: string | null;
8197
+ physical_after?: number | null;
8198
+ physical_before?: number | null;
8199
+ qty_delta?: number;
8200
+ reason?: string | null;
8201
+ reserved_after?: number | null;
8202
+ reserved_before?: number | null;
8203
+ trade_item_key?: string | null;
8204
+ };
8205
+ Relationships: [];
8206
+ };
7364
8207
  supplier_products: {
7365
8208
  Row: {
7366
8209
  article_number: string | null;
@@ -7636,69 +8479,177 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7636
8479
  floriday_link_error?: string | null;
7637
8480
  floriday_link_status?: string;
7638
8481
  id?: string;
7639
- last_floriday_sync_at?: string | null;
7640
- missing_required_fields?: string[];
7641
- source?: string;
8482
+ last_floriday_sync_at?: string | null;
8483
+ missing_required_fields?: string[];
8484
+ source?: string;
8485
+ updated_at?: string;
8486
+ user_id: string;
8487
+ };
8488
+ Update: {
8489
+ connection_id?: string | null;
8490
+ created_at?: string;
8491
+ data?: import("./types").Json;
8492
+ floriday_id?: string | null;
8493
+ floriday_link_error?: string | null;
8494
+ floriday_link_status?: string;
8495
+ id?: string;
8496
+ last_floriday_sync_at?: string | null;
8497
+ missing_required_fields?: string[];
8498
+ source?: string;
8499
+ updated_at?: string;
8500
+ user_id?: string;
8501
+ };
8502
+ Relationships: [];
8503
+ };
8504
+ trade_item_stock: {
8505
+ Row: {
8506
+ connection_id: string;
8507
+ created_at: string;
8508
+ id: string;
8509
+ incoming_stock: number;
8510
+ minimum_stock: number;
8511
+ notes: string | null;
8512
+ physical_stock: number;
8513
+ reserved_stock: number;
8514
+ trade_item_key: string;
8515
+ updated_at: string;
8516
+ user_id: string;
8517
+ };
8518
+ Insert: {
8519
+ connection_id: string;
8520
+ created_at?: string;
8521
+ id?: string;
8522
+ incoming_stock?: number;
8523
+ minimum_stock?: number;
8524
+ notes?: string | null;
8525
+ physical_stock?: number;
8526
+ reserved_stock?: number;
8527
+ trade_item_key: string;
8528
+ updated_at?: string;
8529
+ user_id: string;
8530
+ };
8531
+ Update: {
8532
+ connection_id?: string;
8533
+ created_at?: string;
8534
+ id?: string;
8535
+ incoming_stock?: number;
8536
+ minimum_stock?: number;
8537
+ notes?: string | null;
8538
+ physical_stock?: number;
8539
+ reserved_stock?: number;
8540
+ trade_item_key?: string;
8541
+ updated_at?: string;
8542
+ user_id?: string;
8543
+ };
8544
+ Relationships: [];
8545
+ };
8546
+ trade_item_supply_lines: {
8547
+ Row: {
8548
+ available_quantity: number | null;
8549
+ connection_id: string;
8550
+ created_at: string;
8551
+ currency: string | null;
8552
+ endpoint_family: string | null;
8553
+ environment: string | null;
8554
+ id: string;
8555
+ last_error: string | null;
8556
+ last_status: number | null;
8557
+ packing_configuration_id: string | null;
8558
+ period_end: string | null;
8559
+ period_start: string | null;
8560
+ price_per_piece: number | null;
8561
+ sales_unit: string | null;
8562
+ supply_line_id: string | null;
8563
+ supply_type: string;
8564
+ trade_item_id: string;
8565
+ updated_at: string;
8566
+ user_id: string;
8567
+ week: number | null;
8568
+ year: number | null;
8569
+ };
8570
+ Insert: {
8571
+ available_quantity?: number | null;
8572
+ connection_id: string;
8573
+ created_at?: string;
8574
+ currency?: string | null;
8575
+ endpoint_family?: string | null;
8576
+ environment?: string | null;
8577
+ id?: string;
8578
+ last_error?: string | null;
8579
+ last_status?: number | null;
8580
+ packing_configuration_id?: string | null;
8581
+ period_end?: string | null;
8582
+ period_start?: string | null;
8583
+ price_per_piece?: number | null;
8584
+ sales_unit?: string | null;
8585
+ supply_line_id?: string | null;
8586
+ supply_type?: string;
8587
+ trade_item_id: string;
7642
8588
  updated_at?: string;
7643
8589
  user_id: string;
8590
+ week?: number | null;
8591
+ year?: number | null;
7644
8592
  };
7645
8593
  Update: {
7646
- connection_id?: string | null;
8594
+ available_quantity?: number | null;
8595
+ connection_id?: string;
7647
8596
  created_at?: string;
7648
- data?: import("./types").Json;
7649
- floriday_id?: string | null;
7650
- floriday_link_error?: string | null;
7651
- floriday_link_status?: string;
8597
+ currency?: string | null;
8598
+ endpoint_family?: string | null;
8599
+ environment?: string | null;
7652
8600
  id?: string;
7653
- last_floriday_sync_at?: string | null;
7654
- missing_required_fields?: string[];
7655
- source?: string;
8601
+ last_error?: string | null;
8602
+ last_status?: number | null;
8603
+ packing_configuration_id?: string | null;
8604
+ period_end?: string | null;
8605
+ period_start?: string | null;
8606
+ price_per_piece?: number | null;
8607
+ sales_unit?: string | null;
8608
+ supply_line_id?: string | null;
8609
+ supply_type?: string;
8610
+ trade_item_id?: string;
7656
8611
  updated_at?: string;
7657
8612
  user_id?: string;
8613
+ week?: number | null;
8614
+ year?: number | null;
7658
8615
  };
7659
8616
  Relationships: [];
7660
8617
  };
7661
- trade_item_stock: {
8618
+ trade_item_warehouse_preferences: {
7662
8619
  Row: {
7663
8620
  connection_id: string;
7664
8621
  created_at: string;
7665
8622
  id: string;
7666
- incoming_stock: number;
7667
- minimum_stock: number;
7668
- notes: string | null;
7669
- physical_stock: number;
7670
- reserved_stock: number;
7671
- trade_item_key: string;
8623
+ trade_item_id: string;
7672
8624
  updated_at: string;
7673
- user_id: string;
8625
+ warehouse_id: string;
8626
+ warehouse_name: string | null;
7674
8627
  };
7675
8628
  Insert: {
7676
8629
  connection_id: string;
7677
8630
  created_at?: string;
7678
8631
  id?: string;
7679
- incoming_stock?: number;
7680
- minimum_stock?: number;
7681
- notes?: string | null;
7682
- physical_stock?: number;
7683
- reserved_stock?: number;
7684
- trade_item_key: string;
8632
+ trade_item_id: string;
7685
8633
  updated_at?: string;
7686
- user_id: string;
8634
+ warehouse_id: string;
8635
+ warehouse_name?: string | null;
7687
8636
  };
7688
8637
  Update: {
7689
8638
  connection_id?: string;
7690
8639
  created_at?: string;
7691
8640
  id?: string;
7692
- incoming_stock?: number;
7693
- minimum_stock?: number;
7694
- notes?: string | null;
7695
- physical_stock?: number;
7696
- reserved_stock?: number;
7697
- trade_item_key?: string;
8641
+ trade_item_id?: string;
7698
8642
  updated_at?: string;
7699
- user_id?: string;
8643
+ warehouse_id?: string;
8644
+ warehouse_name?: string | null;
7700
8645
  };
7701
- Relationships: [];
8646
+ Relationships: [{
8647
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8648
+ columns: ["connection_id"];
8649
+ isOneToOne: false;
8650
+ referencedRelation: "floriday_connections";
8651
+ referencedColumns: ["id"];
8652
+ }];
7702
8653
  };
7703
8654
  twinfield_connections: {
7704
8655
  Row: {
@@ -8019,6 +8970,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8019
8970
  default_invoice_type: string;
8020
8971
  default_payment_term_days: number;
8021
8972
  default_vat_code: string;
8973
+ invoice_enabled_ao: boolean;
8974
+ invoice_enabled_fo: boolean;
8975
+ invoice_enabled_ho: boolean;
8976
+ invoice_enabled_mo: boolean;
8022
8977
  updated_at: string;
8023
8978
  user_id: string;
8024
8979
  };
@@ -8028,6 +8983,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8028
8983
  default_invoice_type?: string;
8029
8984
  default_payment_term_days?: number;
8030
8985
  default_vat_code?: string;
8986
+ invoice_enabled_ao?: boolean;
8987
+ invoice_enabled_fo?: boolean;
8988
+ invoice_enabled_ho?: boolean;
8989
+ invoice_enabled_mo?: boolean;
8031
8990
  updated_at?: string;
8032
8991
  user_id: string;
8033
8992
  };
@@ -8037,6 +8996,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8037
8996
  default_invoice_type?: string;
8038
8997
  default_payment_term_days?: number;
8039
8998
  default_vat_code?: string;
8999
+ invoice_enabled_ao?: boolean;
9000
+ invoice_enabled_fo?: boolean;
9001
+ invoice_enabled_ho?: boolean;
9002
+ invoice_enabled_mo?: boolean;
8040
9003
  updated_at?: string;
8041
9004
  user_id?: string;
8042
9005
  };
@@ -8938,6 +9901,44 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8938
9901
  };
8939
9902
  Relationships: [];
8940
9903
  };
9904
+ floriday_customer_discounts: {
9905
+ Row: {
9906
+ base_price: number | null;
9907
+ buyer_organization_id: string | null;
9908
+ currency: string | null;
9909
+ discount_type: string | null;
9910
+ discount_value: number | null;
9911
+ min_quantity: number | null;
9912
+ net_price: number | null;
9913
+ product_group_id: string | null;
9914
+ raw: import("./types").Json | null;
9915
+ source: string | null;
9916
+ source_id: string | null;
9917
+ trade_item_id: string | null;
9918
+ valid_from: string | null;
9919
+ valid_until: string | null;
9920
+ };
9921
+ Relationships: [];
9922
+ };
9923
+ local_customer_discounts: {
9924
+ Row: {
9925
+ base_price: number | null;
9926
+ currency: string | null;
9927
+ customer_id: string | null;
9928
+ discount_type: string | null;
9929
+ discount_value: number | null;
9930
+ min_quantity: number | null;
9931
+ net_price: number | null;
9932
+ product_category_id: string | null;
9933
+ product_id: string | null;
9934
+ product_name: string | null;
9935
+ source: string | null;
9936
+ source_id: string | null;
9937
+ valid_from: string | null;
9938
+ valid_until: string | null;
9939
+ };
9940
+ Relationships: [];
9941
+ };
8941
9942
  manufacture_product_possible_stock_view: {
8942
9943
  Row: {
8943
9944
  component_count: number | null;
@@ -9222,6 +10223,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9222
10223
  };
9223
10224
  Returns: number;
9224
10225
  };
10226
+ afh_city_code: {
10227
+ Args: {
10228
+ _city: string;
10229
+ _country: string;
10230
+ };
10231
+ Returns: string;
10232
+ };
10233
+ afh_normalize_country: {
10234
+ Args: {
10235
+ _raw: string;
10236
+ };
10237
+ Returns: string;
10238
+ };
10239
+ afh_normalize_nl_province: {
10240
+ Args: {
10241
+ _raw: string;
10242
+ };
10243
+ Returns: string;
10244
+ };
10245
+ afh_subtract_workdays: {
10246
+ Args: {
10247
+ _date: string;
10248
+ _days: number;
10249
+ };
10250
+ Returns: string;
10251
+ };
10252
+ apply_stock_consumption: {
10253
+ Args: {
10254
+ p_order_id: string;
10255
+ p_order_item_id: string;
10256
+ p_qty: number;
10257
+ p_reason: string;
10258
+ p_source: string;
10259
+ p_trade_item_key: string;
10260
+ };
10261
+ Returns: undefined;
10262
+ };
10263
+ apply_stock_reservation: {
10264
+ Args: {
10265
+ p_order_id: string;
10266
+ p_order_item_id: string;
10267
+ p_qty: number;
10268
+ p_reason: string;
10269
+ p_source: string;
10270
+ p_trade_item_key: string;
10271
+ };
10272
+ Returns: undefined;
10273
+ };
9225
10274
  assign_cart_numbers: {
9226
10275
  Args: {
9227
10276
  p_carts: import("./types").Json;
@@ -9245,16 +10294,62 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9245
10294
  order_number: string;
9246
10295
  }[];
9247
10296
  };
10297
+ autolink_product_to_floriday: {
10298
+ Args: {
10299
+ p_product_id: string;
10300
+ };
10301
+ Returns: string;
10302
+ };
10303
+ backfill_open_order_reservations: {
10304
+ Args: never;
10305
+ Returns: {
10306
+ processed_items: number;
10307
+ }[];
10308
+ };
9248
10309
  call_exact_route: {
9249
10310
  Args: {
9250
10311
  path: string;
9251
10312
  };
9252
10313
  Returns: number;
9253
10314
  };
10315
+ check_offer_product_available_stock: {
10316
+ Args: {
10317
+ p_campaign_product_id: string;
10318
+ p_code: string;
10319
+ p_needed_qty?: number;
10320
+ p_product_name?: string;
10321
+ };
10322
+ Returns: import("./types").Json;
10323
+ };
10324
+ check_trade_item_available_stock: {
10325
+ Args: {
10326
+ p_connection_id?: string;
10327
+ p_context?: string;
10328
+ p_needed_qty?: number;
10329
+ p_order_id?: string;
10330
+ p_order_item_id?: string;
10331
+ p_owner_id?: string;
10332
+ p_product_name?: string;
10333
+ p_trade_item_key: string;
10334
+ };
10335
+ Returns: import("./types").Json;
10336
+ };
9254
10337
  cleanup_old_bookings: {
9255
10338
  Args: never;
9256
10339
  Returns: number;
9257
10340
  };
10341
+ consume_floriday_rate_limit: {
10342
+ Args: {
10343
+ p_bucket: string;
10344
+ p_capacity: number;
10345
+ p_cost?: number;
10346
+ p_refill_per_sec: number;
10347
+ };
10348
+ Returns: {
10349
+ granted: boolean;
10350
+ wait_ms: number;
10351
+ }[];
10352
+ };
9258
10353
  control_get_todays_carts: {
9259
10354
  Args: never;
9260
10355
  Returns: {
@@ -9294,6 +10389,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9294
10389
  table_name: string;
9295
10390
  }[];
9296
10391
  };
10392
+ dispatch_carrier_signups_sql: {
10393
+ Args: {
10394
+ _catchup?: string;
10395
+ };
10396
+ Returns: import("./types").Json;
10397
+ };
9297
10398
  email_auth_decrypt: {
9298
10399
  Args: {
9299
10400
  cipher: string;
@@ -9329,6 +10430,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9329
10430
  status: string;
9330
10431
  }[];
9331
10432
  };
10433
+ enqueue_cart_replan_if_unlocked: {
10434
+ Args: {
10435
+ p_order_id: string;
10436
+ };
10437
+ Returns: undefined;
10438
+ };
10439
+ ensure_trade_item_stock_row: {
10440
+ Args: {
10441
+ p_key: string;
10442
+ };
10443
+ Returns: undefined;
10444
+ };
9332
10445
  ensure_user_tenant: {
9333
10446
  Args: never;
9334
10447
  Returns: string;
@@ -9366,6 +10479,31 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9366
10479
  };
9367
10480
  Returns: boolean;
9368
10481
  };
10482
+ find_trade_item_key: {
10483
+ Args: {
10484
+ p_barcode: string;
10485
+ p_name: string;
10486
+ p_product_id: string;
10487
+ };
10488
+ Returns: string;
10489
+ };
10490
+ floriday_effective_price: {
10491
+ Args: {
10492
+ _buyer_id: string;
10493
+ _on_date?: string;
10494
+ _quantity?: number;
10495
+ _trade_item_id: string;
10496
+ };
10497
+ Returns: {
10498
+ base_price: number;
10499
+ currency: string;
10500
+ discount_type: string;
10501
+ discount_value: number;
10502
+ net_price: number;
10503
+ source: string;
10504
+ source_id: string;
10505
+ }[];
10506
+ };
9369
10507
  format_cart_number: {
9370
10508
  Args: {
9371
10509
  p_pick_date: string;
@@ -9386,6 +10524,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9386
10524
  preferred_warehouse_name: string;
9387
10525
  }[];
9388
10526
  };
10527
+ get_active_floriday_context: {
10528
+ Args: never;
10529
+ Returns: {
10530
+ connection_id: string;
10531
+ user_id: string;
10532
+ }[];
10533
+ };
9389
10534
  get_active_twinfield_public: {
9390
10535
  Args: never;
9391
10536
  Returns: {
@@ -9397,6 +10542,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9397
10542
  office_code: string;
9398
10543
  }[];
9399
10544
  };
10545
+ get_floricode_record_counts: {
10546
+ Args: never;
10547
+ Returns: {
10548
+ count: number;
10549
+ resource: string;
10550
+ }[];
10551
+ };
9400
10552
  get_floriday_agreements_active: {
9401
10553
  Args: {
9402
10554
  p_on_date?: string;
@@ -9488,6 +10640,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9488
10640
  };
9489
10641
  Returns: import("./types").Json;
9490
10642
  };
10643
+ get_offer_delivery_options: {
10644
+ Args: {
10645
+ p_code: string;
10646
+ };
10647
+ Returns: import("./types").Json;
10648
+ };
10649
+ get_offer_recipient_by_code: {
10650
+ Args: {
10651
+ p_code: string;
10652
+ };
10653
+ Returns: {
10654
+ campaign_id: string;
10655
+ clicked_at: string;
10656
+ customer_id: string;
10657
+ id: string;
10658
+ ordered_at: string;
10659
+ }[];
10660
+ };
9491
10661
  get_or_assign_floriday_order_number: {
9492
10662
  Args: {
9493
10663
  p_floriday_id: string;
@@ -9540,12 +10710,53 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9540
10710
  Args: never;
9541
10711
  Returns: boolean;
9542
10712
  };
10713
+ is_superadmin: {
10714
+ Args: {
10715
+ _user_id: string;
10716
+ };
10717
+ Returns: boolean;
10718
+ };
10719
+ local_effective_price: {
10720
+ Args: {
10721
+ _customer_id: string;
10722
+ _on_date?: string;
10723
+ _product_id: string;
10724
+ _quantity?: number;
10725
+ };
10726
+ Returns: {
10727
+ currency: string;
10728
+ discount_type: string;
10729
+ discount_value: number;
10730
+ net_price: number;
10731
+ source: string;
10732
+ source_id: string;
10733
+ }[];
10734
+ };
10735
+ mark_offer_clicked: {
10736
+ Args: {
10737
+ p_code: string;
10738
+ };
10739
+ Returns: undefined;
10740
+ };
10741
+ mark_offer_ordered: {
10742
+ Args: {
10743
+ p_code: string;
10744
+ };
10745
+ Returns: undefined;
10746
+ };
9543
10747
  next_order_number: {
9544
10748
  Args: {
9545
10749
  p_prefix: string;
9546
10750
  };
9547
10751
  Returns: string;
9548
10752
  };
10753
+ next_order_number_for_date: {
10754
+ Args: {
10755
+ p_created_at?: string;
10756
+ p_prefix: string;
10757
+ };
10758
+ Returns: string;
10759
+ };
9549
10760
  next_work_order_number: {
9550
10761
  Args: {
9551
10762
  p_parent_work_order_id?: string;
@@ -9553,16 +10764,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9553
10764
  };
9554
10765
  Returns: string;
9555
10766
  };
10767
+ normalize_order_source: {
10768
+ Args: {
10769
+ p_src: string;
10770
+ };
10771
+ Returns: string;
10772
+ };
9556
10773
  normalize_vat: {
9557
10774
  Args: {
9558
10775
  v: string;
9559
10776
  };
9560
10777
  Returns: string;
9561
10778
  };
10779
+ offer_recipient_matches: {
10780
+ Args: {
10781
+ _campaign_id: string;
10782
+ _customer_id: string;
10783
+ _recipient_id: string;
10784
+ };
10785
+ Returns: boolean;
10786
+ };
10787
+ order_number_prefix: {
10788
+ Args: {
10789
+ p_custom_fields?: import("./types").Json;
10790
+ p_order_source: string;
10791
+ };
10792
+ Returns: string;
10793
+ };
9562
10794
  pickstation_get_orders_raw: {
9563
10795
  Args: never;
9564
10796
  Returns: import("./types").Json;
9565
10797
  };
10798
+ pickstation_get_planning_context: {
10799
+ Args: never;
10800
+ Returns: import("./types").Json;
10801
+ };
9566
10802
  pickstation_get_settings: {
9567
10803
  Args: never;
9568
10804
  Returns: import("./types").Json;
@@ -9586,6 +10822,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9586
10822
  };
9587
10823
  Returns: undefined;
9588
10824
  };
10825
+ promote_trade_item_key: {
10826
+ Args: {
10827
+ p_new: string;
10828
+ p_old: string;
10829
+ };
10830
+ Returns: undefined;
10831
+ };
10832
+ recompute_order_status: {
10833
+ Args: {
10834
+ p_order_id: string;
10835
+ };
10836
+ Returns: undefined;
10837
+ };
10838
+ recompute_reserved_for_order: {
10839
+ Args: {
10840
+ p_order_id: string;
10841
+ };
10842
+ Returns: undefined;
10843
+ };
10844
+ recompute_reserved_stock: {
10845
+ Args: {
10846
+ p_trade_item_key: string;
10847
+ };
10848
+ Returns: undefined;
10849
+ };
10850
+ refresh_external_customers_grouped: {
10851
+ Args: never;
10852
+ Returns: undefined;
10853
+ };
9589
10854
  refresh_floricode_derived_code_lists: {
9590
10855
  Args: never;
9591
10856
  Returns: {
@@ -9600,6 +10865,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9600
10865
  };
9601
10866
  Returns: number;
9602
10867
  };
10868
+ refresh_floricode_derived_for_products: {
10869
+ Args: {
10870
+ _product_ids: string[];
10871
+ };
10872
+ Returns: number;
10873
+ };
9603
10874
  reset_floriday_sync_cursor: {
9604
10875
  Args: {
9605
10876
  p_connection_id: string;
@@ -9607,6 +10878,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9607
10878
  };
9608
10879
  Returns: undefined;
9609
10880
  };
10881
+ resolve_product_id_for_item: {
10882
+ Args: {
10883
+ p_product_name: string;
10884
+ };
10885
+ Returns: string;
10886
+ };
9610
10887
  schedule_floriday_additional_services_sync: {
9611
10888
  Args: {
9612
10889
  p_apikey: string;
@@ -9884,6 +11161,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9884
11161
  };
9885
11162
  Returns: string[];
9886
11163
  };
11164
+ sync_cached_packing_from_product: {
11165
+ Args: {
11166
+ p_product_id: string;
11167
+ };
11168
+ Returns: undefined;
11169
+ };
11170
+ sync_order_cart_item_packing_from_product: {
11171
+ Args: {
11172
+ p_product_id: string;
11173
+ };
11174
+ Returns: undefined;
11175
+ };
11176
+ sync_product_packing_from_floriday_cache: {
11177
+ Args: {
11178
+ p_floriday_id: string;
11179
+ };
11180
+ Returns: undefined;
11181
+ };
9887
11182
  twinfield_decrypt: {
9888
11183
  Args: {
9889
11184
  cipher: string;