@flowselections/floriday-voorraad 1.0.15 → 1.0.17

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 (84) hide show
  1. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +9 -0
  2. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -0
  3. package/dist-lib/components/voorraad/AdditionalPackagingDialog.js +51 -0
  4. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ArtikelWizard.js +411 -28
  6. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/EditArtikelPage.js +78 -4
  8. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +2 -1
  9. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/ExcelExportButton.js +24 -5
  11. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +8 -0
  12. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -0
  13. package/dist-lib/components/voorraad/OrderHistoryCard.js +133 -0
  14. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +7 -0
  15. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -0
  16. package/dist-lib/components/voorraad/PriceStatusBadge.js +67 -0
  17. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +13 -0
  18. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -0
  19. package/dist-lib/components/voorraad/ProductLinkCard.js +159 -0
  20. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  21. package/dist-lib/components/voorraad/StockBulkButtons.js +88 -7
  22. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +2 -1
  23. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  24. package/dist-lib/components/voorraad/VoorraadStockCard.js +5 -4
  25. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  26. package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
  27. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  28. package/dist-lib/hooks/useLocalTradeItems.js +4 -0
  29. package/dist-lib/hooks/useTradeItemSpec.d.ts.map +1 -1
  30. package/dist-lib/hooks/useTradeItemSpec.js +4 -1
  31. package/dist-lib/hooks/useTradeItemStock.d.ts +14 -1
  32. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  33. package/dist-lib/hooks/useTradeItemStock.js +76 -17
  34. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +21 -0
  35. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -0
  36. package/dist-lib/hooks/useTradeItemSupplyLine.js +49 -0
  37. package/dist-lib/hooks/useVoorraadData.d.ts +5 -4
  38. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  39. package/dist-lib/hooks/useVoorraadData.js +73 -7
  40. package/dist-lib/index.d.ts +1 -0
  41. package/dist-lib/index.d.ts.map +1 -1
  42. package/dist-lib/index.js +1 -0
  43. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1307 -94
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  45. package/dist-lib/integrations/supabase/client.d.ts +1307 -94
  46. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/client.server.d.ts +1307 -94
  48. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  49. package/dist-lib/integrations/supabase/types.d.ts +1328 -87
  50. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  51. package/dist-lib/lib/ensure-article-codes.d.ts +8 -0
  52. package/dist-lib/lib/ensure-article-codes.d.ts.map +1 -0
  53. package/dist-lib/lib/ensure-article-codes.js +78 -0
  54. package/dist-lib/lib/floricode-required-features.functions.d.ts +1313 -94
  55. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/floricode-required-features.functions.js +20 -2
  57. package/dist-lib/lib/floriday-client.d.ts +6 -0
  58. package/dist-lib/lib/floriday-client.d.ts.map +1 -1
  59. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +11264 -0
  60. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -0
  61. package/dist-lib/lib/floriday-customer-offer.functions.js +175 -0
  62. package/dist-lib/lib/floriday-gateway.functions.d.ts +16129 -17
  63. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-gateway.functions.js +150 -0
  65. package/dist-lib/lib/floriday-gateway.server.d.ts +22 -0
  66. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  67. package/dist-lib/lib/floriday-gateway.server.js +3 -0
  68. package/dist-lib/lib/floriday-payload.d.ts +76 -8
  69. package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
  70. package/dist-lib/lib/floriday-payload.js +209 -39
  71. package/dist-lib/lib/floriday-supply-line.d.ts +53 -0
  72. package/dist-lib/lib/floriday-supply-line.d.ts.map +1 -0
  73. package/dist-lib/lib/floriday-supply-line.js +109 -0
  74. package/dist-lib/lib/floriday-warehouse.functions.d.ts +33638 -0
  75. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -0
  76. package/dist-lib/lib/floriday-warehouse.functions.js +98 -0
  77. package/dist-lib/lib/floriday-writes.functions.d.ts +2707 -281
  78. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/floriday-writes.functions.js +39 -6
  80. package/dist-lib/lib/vrs-catalog.d.ts +27 -0
  81. package/dist-lib/lib/vrs-catalog.d.ts.map +1 -0
  82. package/dist-lib/lib/vrs-catalog.js +98 -0
  83. package/package.json +3 -2
  84. package/public/flowselections-assets/Voorraad/floriday-logo.png +0 -0
@@ -31,7 +31,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
31
31
  Tables: {
32
32
  afhandeling_settings: {
33
33
  Row: {
34
+ auto_print_delivery_note: boolean;
35
+ auto_process_paused: boolean;
34
36
  created_at: string;
37
+ extra_pick_days_with_stickers: number;
35
38
  id: string;
36
39
  max_workdays_earlier_pick: number;
37
40
  pick_days_before_transport: number;
@@ -45,7 +48,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
45
48
  user_id: string;
46
49
  };
47
50
  Insert: {
51
+ auto_print_delivery_note?: boolean;
52
+ auto_process_paused?: boolean;
48
53
  created_at?: string;
54
+ extra_pick_days_with_stickers?: number;
49
55
  id?: string;
50
56
  max_workdays_earlier_pick?: number;
51
57
  pick_days_before_transport?: number;
@@ -55,11 +61,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
55
61
  signup_mail_lead_minutes?: number;
56
62
  signup_mail_purpose?: string;
57
63
  transport_register_days_before?: number;
58
- updated_at?: string;
64
+ updated_at
65
+ /**
66
+ * Minimalistische Supabase-client-shape die `computeVbnRequiredFeatures`
67
+ * daadwerkelijk gebruikt. Getypeerd als `any` zodat zowel de echte
68
+ * `SupabaseClient` als de fake-client in tests passen.
69
+ */
70
+ ?: string;
59
71
  user_id: string;
60
72
  };
61
73
  Update: {
74
+ auto_print_delivery_note?: boolean;
75
+ auto_process_paused?: boolean;
62
76
  created_at?: string;
77
+ extra_pick_days_with_stickers?: number;
63
78
  id?: string;
64
79
  max_workdays_earlier_pick?: number;
65
80
  pick_days_before_transport?: number;
@@ -851,6 +866,36 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
851
866
  };
852
867
  Relationships: [];
853
868
  };
869
+ cart_replan_queue: {
870
+ Row: {
871
+ attempts: number;
872
+ last_error: string | null;
873
+ order_id: string;
874
+ processed_at: string | null;
875
+ requested_at: string;
876
+ };
877
+ Insert: {
878
+ attempts?: number;
879
+ last_error?: string | null;
880
+ order_id: string;
881
+ processed_at?: string | null;
882
+ requested_at?: string;
883
+ };
884
+ Update: {
885
+ attempts?: number;
886
+ last_error?: string | null;
887
+ order_id?: string;
888
+ processed_at?: string | null;
889
+ requested_at?: string;
890
+ };
891
+ Relationships: [{
892
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
893
+ columns: ["order_id"];
894
+ isOneToOne: true;
895
+ referencedRelation: "orders";
896
+ referencedColumns: ["id"];
897
+ }];
898
+ };
854
899
  collections: {
855
900
  Row: {
856
901
  created_at: string;
@@ -2976,34 +3021,52 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2976
3021
  Row: {
2977
3022
  catalog_key: string | null;
2978
3023
  catalog_url: string;
3024
+ client_id: string | null;
3025
+ client_secret_ciphertext: string | null;
3026
+ client_secret_last4: string | null;
2979
3027
  created_at: string;
2980
3028
  id: number;
2981
3029
  last_meta: import("../integrations/supabase/types").Json | null;
2982
3030
  last_test_at: string | null;
2983
3031
  last_test_error: string | null;
2984
3032
  last_test_ok: boolean | null;
3033
+ last_token_test_at: string | null;
3034
+ last_token_test_error: string | null;
3035
+ last_token_test_ok: boolean | null;
2985
3036
  updated_at: string;
2986
3037
  };
2987
3038
  Insert: {
2988
3039
  catalog_key?: string | null;
2989
3040
  catalog_url?: string;
3041
+ client_id?: string | null;
3042
+ client_secret_ciphertext?: string | null;
3043
+ client_secret_last4?: string | null;
2990
3044
  created_at?: string;
2991
3045
  id?: number;
2992
3046
  last_meta?: import("../integrations/supabase/types").Json | null;
2993
3047
  last_test_at?: string | null;
2994
3048
  last_test_error?: string | null;
2995
3049
  last_test_ok?: boolean | null;
3050
+ last_token_test_at?: string | null;
3051
+ last_token_test_error?: string | null;
3052
+ last_token_test_ok?: boolean | null;
2996
3053
  updated_at?: string;
2997
3054
  };
2998
3055
  Update: {
2999
3056
  catalog_key?: string | null;
3000
3057
  catalog_url?: string;
3058
+ client_id?: string | null;
3059
+ client_secret_ciphertext?: string | null;
3060
+ client_secret_last4?: string | null;
3001
3061
  created_at?: string;
3002
3062
  id?: number;
3003
3063
  last_meta?: import("../integrations/supabase/types").Json | null;
3004
3064
  last_test_at?: string | null;
3005
3065
  last_test_error?: string | null;
3006
3066
  last_test_ok?: boolean | null;
3067
+ last_token_test_at?: string | null;
3068
+ last_token_test_error?: string | null;
3069
+ last_token_test_ok?: boolean | null;
3007
3070
  updated_at?: string;
3008
3071
  };
3009
3072
  Relationships: [];
@@ -3236,6 +3299,54 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3236
3299
  referencedColumns: ["id"];
3237
3300
  }];
3238
3301
  };
3302
+ floriday_auto_fulfillment_log: {
3303
+ Row: {
3304
+ attempts: number;
3305
+ connection_id: string;
3306
+ created_at: string;
3307
+ error: string | null;
3308
+ fulfillment_order_id: string | null;
3309
+ id: string;
3310
+ last_attempt_at: string | null;
3311
+ reason: string | null;
3312
+ sales_order_id: string;
3313
+ status: string;
3314
+ updated_at: string;
3315
+ };
3316
+ Insert: {
3317
+ attempts?: number;
3318
+ connection_id: string;
3319
+ created_at?: string;
3320
+ error?: string | null;
3321
+ fulfillment_order_id?: string | null;
3322
+ id?: string;
3323
+ last_attempt_at?: string | null;
3324
+ reason?: string | null;
3325
+ sales_order_id: string;
3326
+ status?: string;
3327
+ updated_at?: string;
3328
+ };
3329
+ Update: {
3330
+ attempts?: number;
3331
+ connection_id?: string;
3332
+ created_at?: string;
3333
+ error?: string | null;
3334
+ fulfillment_order_id?: string | null;
3335
+ id?: string;
3336
+ last_attempt_at?: string | null;
3337
+ reason?: string | null;
3338
+ sales_order_id?: string;
3339
+ status?: string;
3340
+ updated_at?: string;
3341
+ };
3342
+ Relationships: [{
3343
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3344
+ columns: ["connection_id"];
3345
+ isOneToOne: false;
3346
+ referencedRelation: "floriday_connections";
3347
+ referencedColumns: ["id"];
3348
+ }];
3349
+ };
3239
3350
  floriday_base_items_cache: {
3240
3351
  Row: {
3241
3352
  connection_id: string;
@@ -3650,6 +3761,51 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3650
3761
  referencedColumns: ["id"];
3651
3762
  }];
3652
3763
  };
3764
+ floriday_continuous_stock_queue: {
3765
+ Row: {
3766
+ attempts: number;
3767
+ connection_id: string;
3768
+ created_at: string;
3769
+ gateway_attempt_id: string | null;
3770
+ id: string;
3771
+ last_error: string | null;
3772
+ number_of_pieces: number;
3773
+ sent_at: string | null;
3774
+ status: string;
3775
+ trade_item_id: string;
3776
+ updated_at: string;
3777
+ user_id: string;
3778
+ };
3779
+ Insert: {
3780
+ attempts?: number;
3781
+ connection_id: string;
3782
+ created_at?: string;
3783
+ gateway_attempt_id?: string | null;
3784
+ id?: string;
3785
+ last_error?: string | null;
3786
+ number_of_pieces?: number;
3787
+ sent_at?: string | null;
3788
+ status?: string;
3789
+ trade_item_id: string;
3790
+ updated_at?: string;
3791
+ user_id: string;
3792
+ };
3793
+ Update: {
3794
+ attempts?: number;
3795
+ connection_id?: string;
3796
+ created_at?: string;
3797
+ gateway_attempt_id?: string | null;
3798
+ id?: string;
3799
+ last_error?: string | null;
3800
+ number_of_pieces?: number;
3801
+ sent_at?: string | null;
3802
+ status?: string;
3803
+ trade_item_id?: string;
3804
+ updated_at?: string;
3805
+ user_id?: string;
3806
+ };
3807
+ Relationships: [];
3808
+ };
3653
3809
  floriday_contract_trade_item_groups_cache: {
3654
3810
  Row: {
3655
3811
  connection_id: string;
@@ -4295,6 +4451,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
4295
4451
  referencedColumns: ["id"];
4296
4452
  }];
4297
4453
  };
4454
+ floriday_rate_limit_state: {
4455
+ Row: {
4456
+ bucket: string;
4457
+ last_refill_at: string;
4458
+ tokens: number;
4459
+ };
4460
+ Insert: {
4461
+ bucket: string;
4462
+ last_refill_at?: string;
4463
+ tokens: number;
4464
+ };
4465
+ Update: {
4466
+ bucket?: string;
4467
+ last_refill_at?: string;
4468
+ tokens?: number;
4469
+ };
4470
+ Relationships: [];
4471
+ };
4298
4472
  floriday_resource_schemas: {
4299
4473
  Row: {
4300
4474
  enums: import("../integrations/supabase/types").Json;
@@ -4718,6 +4892,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
4718
4892
  referencedColumns: ["id"];
4719
4893
  }];
4720
4894
  };
4895
+ flow_role_assignments: {
4896
+ Row: {
4897
+ created_at: string;
4898
+ id: string;
4899
+ role_id: string;
4900
+ user_id: string;
4901
+ };
4902
+ Insert: {
4903
+ created_at?: string;
4904
+ id?: string;
4905
+ role_id: string;
4906
+ user_id: string;
4907
+ };
4908
+ Update: {
4909
+ created_at?: string;
4910
+ id?: string;
4911
+ role_id?: string;
4912
+ user_id?: string;
4913
+ };
4914
+ Relationships: [{
4915
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4916
+ columns: ["role_id"];
4917
+ isOneToOne: false;
4918
+ referencedRelation: "flow_roles";
4919
+ referencedColumns: ["id"];
4920
+ }];
4921
+ };
4922
+ flow_roles: {
4923
+ Row: {
4924
+ created_at: string;
4925
+ description: string | null;
4926
+ id: string;
4927
+ module_access: string[];
4928
+ name: string;
4929
+ updated_at: string;
4930
+ };
4931
+ Insert: {
4932
+ created_at?: string;
4933
+ description?: string | null;
4934
+ id?: string;
4935
+ module_access?: string[];
4936
+ name: string;
4937
+ updated_at?: string;
4938
+ };
4939
+ Update: {
4940
+ created_at?: string;
4941
+ description?: string | null;
4942
+ id?: string;
4943
+ module_access?: string[];
4944
+ name?: string;
4945
+ updated_at?: string;
4946
+ };
4947
+ Relationships: [];
4948
+ };
4721
4949
  imap_accounts: {
4722
4950
  Row: {
4723
4951
  created_at: string;
@@ -5039,86 +5267,284 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5039
5267
  };
5040
5268
  Relationships: [];
5041
5269
  };
5042
- locations: {
5270
+ local_customer_agreements: {
5043
5271
  Row: {
5272
+ base_price: number | null;
5044
5273
  created_at: string;
5274
+ currency: string;
5275
+ customer_id: string;
5045
5276
  id: string;
5046
- name: string;
5047
- sort_order: number;
5277
+ min_quantity: number;
5278
+ net_price: number;
5279
+ notes: string | null;
5280
+ product_category_id: string | null;
5281
+ product_id: string | null;
5048
5282
  updated_at: string;
5283
+ valid_from: string | null;
5284
+ valid_until: string | null;
5049
5285
  };
5050
5286
  Insert: {
5287
+ base_price?: number | null;
5051
5288
  created_at?: string;
5289
+ currency?: string;
5290
+ customer_id: string;
5052
5291
  id?: string;
5053
- name: string;
5054
- sort_order?: number;
5292
+ min_quantity?: number;
5293
+ net_price: number;
5294
+ notes?: string | null;
5295
+ product_category_id?: string | null;
5296
+ product_id?: string | null;
5055
5297
  updated_at?: string;
5298
+ valid_from?: string | null;
5299
+ valid_until?: string | null;
5056
5300
  };
5057
5301
  Update: {
5302
+ base_price?: number | null;
5058
5303
  created_at?: string;
5304
+ currency?: string;
5305
+ customer_id?: string;
5059
5306
  id?: string;
5060
- name?: string;
5061
- sort_order?: number;
5307
+ min_quantity?: number;
5308
+ net_price?: number;
5309
+ notes?: string | null;
5310
+ product_category_id?: string | null;
5311
+ product_id?: string | null;
5062
5312
  updated_at?: string;
5313
+ valid_from?: string | null;
5314
+ valid_until?: string | null;
5063
5315
  };
5064
- Relationships: [];
5316
+ Relationships: [{
5317
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5318
+ columns: ["customer_id"];
5319
+ isOneToOne: false;
5320
+ referencedRelation: "customers";
5321
+ referencedColumns: ["id"];
5322
+ }, {
5323
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5324
+ columns: ["product_category_id"];
5325
+ isOneToOne: false;
5326
+ referencedRelation: "product_categories";
5327
+ referencedColumns: ["id"];
5328
+ }, {
5329
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5330
+ columns: ["product_id"];
5331
+ isOneToOne: false;
5332
+ referencedRelation: "products";
5333
+ referencedColumns: ["id"];
5334
+ }];
5065
5335
  };
5066
- mailbox_messages: {
5336
+ local_customer_price_groups: {
5067
5337
  Row: {
5068
- body_html: string | null;
5069
- body_text: string | null;
5070
- connection_id: string | null;
5071
5338
  created_at: string;
5072
- error_message: string | null;
5073
- external_id: string | null;
5074
- from_email: string | null;
5075
- from_name: string | null;
5339
+ currency: string;
5340
+ customer_id: string;
5341
+ discount_type: string;
5342
+ discount_value: number;
5076
5343
  id: string;
5077
- message_id: string | null;
5078
- profile_id: string | null;
5079
- raw_size: number | null;
5080
- received_at: string | null;
5081
- status: string;
5082
- subject: string | null;
5083
- uid: number | null;
5344
+ min_quantity: number;
5345
+ notes: string | null;
5346
+ product_category_id: string | null;
5347
+ product_id: string | null;
5084
5348
  updated_at: string;
5349
+ valid_from: string | null;
5350
+ valid_until: string | null;
5085
5351
  };
5086
5352
  Insert: {
5087
- body_html?: string | null;
5088
- body_text?: string | null;
5089
- connection_id?: string | null;
5090
5353
  created_at?: string;
5091
- error_message?: string | null;
5092
- external_id?: string | null;
5093
- from_email?: string | null;
5094
- from_name?: string | null;
5354
+ currency?: string;
5355
+ customer_id: string;
5356
+ discount_type: string;
5357
+ discount_value: number;
5095
5358
  id?: string;
5096
- message_id?: string | null;
5097
- profile_id?: string | null;
5098
- raw_size?: number | null;
5099
- received_at?: string | null;
5100
- status?: string;
5101
- subject?: string | null;
5102
- uid?: number | null;
5359
+ min_quantity?: number;
5360
+ notes?: string | null;
5361
+ product_category_id?: string | null;
5362
+ product_id?: string | null;
5103
5363
  updated_at?: string;
5364
+ valid_from?: string | null;
5365
+ valid_until?: string | null;
5104
5366
  };
5105
5367
  Update: {
5106
- body_html?: string | null;
5107
- body_text?: string | null;
5108
- connection_id?: string | null;
5109
5368
  created_at?: string;
5110
- error_message?: string | null;
5111
- external_id?: string | null;
5112
- from_email?: string | null;
5113
- from_name?: string | null;
5369
+ currency?: string;
5370
+ customer_id?: string;
5371
+ discount_type?: string;
5372
+ discount_value?: number;
5114
5373
  id?: string;
5115
- message_id?: string | null;
5116
- profile_id?: string | null;
5117
- raw_size?: number | null;
5118
- received_at?: string | null;
5119
- status?: string;
5120
- subject?: string | null;
5121
- uid?: number | null;
5374
+ min_quantity?: number;
5375
+ notes?: string | null;
5376
+ product_category_id?: string | null;
5377
+ product_id?: string | null;
5378
+ updated_at?: string;
5379
+ valid_from?: string | null;
5380
+ valid_until?: string | null;
5381
+ };
5382
+ Relationships: [{
5383
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5384
+ columns: ["customer_id"];
5385
+ isOneToOne: false;
5386
+ referencedRelation: "customers";
5387
+ referencedColumns: ["id"];
5388
+ }, {
5389
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5390
+ columns: ["product_category_id"];
5391
+ isOneToOne: false;
5392
+ referencedRelation: "product_categories";
5393
+ referencedColumns: ["id"];
5394
+ }, {
5395
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5396
+ columns: ["product_id"];
5397
+ isOneToOne: false;
5398
+ referencedRelation: "products";
5399
+ referencedColumns: ["id"];
5400
+ }];
5401
+ };
5402
+ local_customer_sales_strategies: {
5403
+ Row: {
5404
+ created_at: string;
5405
+ currency: string;
5406
+ customer_id: string;
5407
+ discount_type: string;
5408
+ discount_value: number;
5409
+ id: string;
5410
+ min_quantity: number;
5411
+ notes: string | null;
5412
+ product_category_id: string | null;
5413
+ product_id: string | null;
5414
+ updated_at: string;
5415
+ valid_from: string | null;
5416
+ valid_until: string | null;
5417
+ };
5418
+ Insert: {
5419
+ created_at?: string;
5420
+ currency?: string;
5421
+ customer_id: string;
5422
+ discount_type: string;
5423
+ discount_value: number;
5424
+ id?: string;
5425
+ min_quantity?: number;
5426
+ notes?: string | null;
5427
+ product_category_id?: string | null;
5428
+ product_id?: string | null;
5429
+ updated_at?: string;
5430
+ valid_from?: string | null;
5431
+ valid_until?: string | null;
5432
+ };
5433
+ Update: {
5434
+ created_at?: string;
5435
+ currency?: string;
5436
+ customer_id?: string;
5437
+ discount_type?: string;
5438
+ discount_value?: number;
5439
+ id?: string;
5440
+ min_quantity?: number;
5441
+ notes?: string | null;
5442
+ product_category_id?: string | null;
5443
+ product_id?: string | null;
5444
+ updated_at?: string;
5445
+ valid_from?: string | null;
5446
+ valid_until?: string | null;
5447
+ };
5448
+ Relationships: [{
5449
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5450
+ columns: ["customer_id"];
5451
+ isOneToOne: false;
5452
+ referencedRelation: "customers";
5453
+ referencedColumns: ["id"];
5454
+ }, {
5455
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5456
+ columns: ["product_category_id"];
5457
+ isOneToOne: false;
5458
+ referencedRelation: "product_categories";
5459
+ referencedColumns: ["id"];
5460
+ }, {
5461
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5462
+ columns: ["product_id"];
5463
+ isOneToOne: false;
5464
+ referencedRelation: "products";
5465
+ referencedColumns: ["id"];
5466
+ }];
5467
+ };
5468
+ locations: {
5469
+ Row: {
5470
+ created_at: string;
5471
+ id: string;
5472
+ name: string;
5473
+ sort_order: number;
5474
+ updated_at: string;
5475
+ };
5476
+ Insert: {
5477
+ created_at?: string;
5478
+ id?: string;
5479
+ name: string;
5480
+ sort_order?: number;
5481
+ updated_at?: string;
5482
+ };
5483
+ Update: {
5484
+ created_at?: string;
5485
+ id?: string;
5486
+ name?: string;
5487
+ sort_order?: number;
5488
+ updated_at?: string;
5489
+ };
5490
+ Relationships: [];
5491
+ };
5492
+ mailbox_messages: {
5493
+ Row: {
5494
+ body_html: string | null;
5495
+ body_text: string | null;
5496
+ connection_id: string | null;
5497
+ created_at: string;
5498
+ error_message: string | null;
5499
+ external_id: string | null;
5500
+ from_email: string | null;
5501
+ from_name: string | null;
5502
+ id: string;
5503
+ message_id: string | null;
5504
+ profile_id: string | null;
5505
+ raw_size: number | null;
5506
+ received_at: string | null;
5507
+ status: string;
5508
+ subject: string | null;
5509
+ uid: number | null;
5510
+ updated_at: string;
5511
+ };
5512
+ Insert: {
5513
+ body_html?: string | null;
5514
+ body_text?: string | null;
5515
+ connection_id?: string | null;
5516
+ created_at?: string;
5517
+ error_message?: string | null;
5518
+ external_id?: string | null;
5519
+ from_email?: string | null;
5520
+ from_name?: string | null;
5521
+ id?: string;
5522
+ message_id?: string | null;
5523
+ profile_id?: string | null;
5524
+ raw_size?: number | null;
5525
+ received_at?: string | null;
5526
+ status?: string;
5527
+ subject?: string | null;
5528
+ uid?: number | null;
5529
+ updated_at?: string;
5530
+ };
5531
+ Update: {
5532
+ body_html?: string | null;
5533
+ body_text?: string | null;
5534
+ connection_id?: string | null;
5535
+ created_at?: string;
5536
+ error_message?: string | null;
5537
+ external_id?: string | null;
5538
+ from_email?: string | null;
5539
+ from_name?: string | null;
5540
+ id?: string;
5541
+ message_id?: string | null;
5542
+ profile_id?: string | null;
5543
+ raw_size?: number | null;
5544
+ received_at?: string | null;
5545
+ status?: string;
5546
+ subject?: string | null;
5547
+ uid?: number | null;
5122
5548
  updated_at?: string;
5123
5549
  };
5124
5550
  Relationships: [{
@@ -5151,6 +5577,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5151
5577
  matched_customer_id: string | null;
5152
5578
  message_id: string;
5153
5579
  notes: string | null;
5580
+ order_number: string | null;
5154
5581
  parsed_payload: import("../integrations/supabase/types").Json | null;
5155
5582
  reviewed_at: string | null;
5156
5583
  reviewed_by: string | null;
@@ -5166,6 +5593,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5166
5593
  matched_customer_id?: string | null;
5167
5594
  message_id: string;
5168
5595
  notes?: string | null;
5596
+ order_number?: string | null;
5169
5597
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5170
5598
  reviewed_at?: string | null;
5171
5599
  reviewed_by?: string | null;
@@ -5181,6 +5609,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5181
5609
  matched_customer_id?: string | null;
5182
5610
  message_id?: string;
5183
5611
  notes?: string | null;
5612
+ order_number?: string | null;
5184
5613
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5185
5614
  reviewed_at?: string | null;
5186
5615
  reviewed_by?: string | null;
@@ -5546,6 +5975,273 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5546
5975
  referencedColumns: ["id"];
5547
5976
  }];
5548
5977
  };
5978
+ nmbrs_component_mapping: {
5979
+ Row: {
5980
+ created_at: string;
5981
+ id: string;
5982
+ source_kind: string;
5983
+ source_value: string | null;
5984
+ updated_at: string;
5985
+ wage_code: string;
5986
+ };
5987
+ Insert: {
5988
+ created_at?: string;
5989
+ id?: string;
5990
+ source_kind: string;
5991
+ source_value?: string | null;
5992
+ updated_at?: string;
5993
+ wage_code: string;
5994
+ };
5995
+ Update: {
5996
+ created_at?: string;
5997
+ id?: string;
5998
+ source_kind?: string;
5999
+ source_value?: string | null;
6000
+ updated_at?: string;
6001
+ wage_code?: string;
6002
+ };
6003
+ Relationships: [{
6004
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
6005
+ columns: ["wage_code"];
6006
+ isOneToOne: false;
6007
+ referencedRelation: "nmbrs_wage_components";
6008
+ referencedColumns: ["code"];
6009
+ }];
6010
+ };
6011
+ nmbrs_employee_mapping: {
6012
+ Row: {
6013
+ active_from: string | null;
6014
+ active_to: string | null;
6015
+ contract_hours_per_week: number | null;
6016
+ created_at: string;
6017
+ hourly_wage: number | null;
6018
+ id: string;
6019
+ monteur_id: string;
6020
+ nmbrs_company_code: string | null;
6021
+ nmbrs_employee_number: string;
6022
+ updated_at: string;
6023
+ };
6024
+ Insert: {
6025
+ active_from?: string | null;
6026
+ active_to?: string | null;
6027
+ contract_hours_per_week?: number | null;
6028
+ created_at?: string;
6029
+ hourly_wage?: number | null;
6030
+ id?: string;
6031
+ monteur_id: string;
6032
+ nmbrs_company_code?: string | null;
6033
+ nmbrs_employee_number: string;
6034
+ updated_at?: string;
6035
+ };
6036
+ Update: {
6037
+ active_from?: string | null;
6038
+ active_to?: string | null;
6039
+ contract_hours_per_week?: number | null;
6040
+ created_at?: string;
6041
+ hourly_wage?: number | null;
6042
+ id?: string;
6043
+ monteur_id?: string;
6044
+ nmbrs_company_code?: string | null;
6045
+ nmbrs_employee_number?: string;
6046
+ updated_at?: string;
6047
+ };
6048
+ Relationships: [{
6049
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
6050
+ columns: ["monteur_id"];
6051
+ isOneToOne: true;
6052
+ referencedRelation: "monteurs";
6053
+ referencedColumns: ["id"];
6054
+ }];
6055
+ };
6056
+ nmbrs_export_lines: {
6057
+ Row: {
6058
+ amount: number;
6059
+ created_at: string;
6060
+ entry_date: string;
6061
+ hours: number;
6062
+ id: string;
6063
+ monteur_id: string;
6064
+ nmbrs_employee_number: string | null;
6065
+ notes: string | null;
6066
+ run_id: string;
6067
+ source_kind: string | null;
6068
+ source_ref_id: string | null;
6069
+ updated_at: string;
6070
+ wage_code: string;
6071
+ };
6072
+ Insert: {
6073
+ amount?: number;
6074
+ created_at?: string;
6075
+ entry_date: string;
6076
+ hours?: number;
6077
+ id?: string;
6078
+ monteur_id: string;
6079
+ nmbrs_employee_number?: string | null;
6080
+ notes?: string | null;
6081
+ run_id: string;
6082
+ source_kind?: string | null;
6083
+ source_ref_id?: string | null;
6084
+ updated_at?: string;
6085
+ wage_code: string;
6086
+ };
6087
+ Update: {
6088
+ amount?: number;
6089
+ created_at?: string;
6090
+ entry_date?: string;
6091
+ hours?: number;
6092
+ id?: string;
6093
+ monteur_id?: string;
6094
+ nmbrs_employee_number?: string | null;
6095
+ notes?: string | null;
6096
+ run_id?: string;
6097
+ source_kind?: string | null;
6098
+ source_ref_id?: string | null;
6099
+ updated_at?: string;
6100
+ wage_code?: string;
6101
+ };
6102
+ Relationships: [{
6103
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
6104
+ columns: ["monteur_id"];
6105
+ isOneToOne: false;
6106
+ referencedRelation: "monteurs";
6107
+ referencedColumns: ["id"];
6108
+ }, {
6109
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
6110
+ columns: ["run_id"];
6111
+ isOneToOne: false;
6112
+ referencedRelation: "nmbrs_export_runs";
6113
+ referencedColumns: ["id"];
6114
+ }, {
6115
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
6116
+ columns: ["wage_code"];
6117
+ isOneToOne: false;
6118
+ referencedRelation: "nmbrs_wage_components";
6119
+ referencedColumns: ["code"];
6120
+ }];
6121
+ };
6122
+ nmbrs_export_runs: {
6123
+ Row: {
6124
+ created_at: string;
6125
+ file_name: string | null;
6126
+ generated_at: string;
6127
+ generated_by: string | null;
6128
+ id: string;
6129
+ notes: string | null;
6130
+ period_end: string;
6131
+ period_label: string;
6132
+ period_start: string;
6133
+ status: string;
6134
+ total_hours: number;
6135
+ total_lines: number;
6136
+ updated_at: string;
6137
+ };
6138
+ Insert: {
6139
+ created_at?: string;
6140
+ file_name?: string | null;
6141
+ generated_at?: string;
6142
+ generated_by?: string | null;
6143
+ id?: string;
6144
+ notes?: string | null;
6145
+ period_end: string;
6146
+ period_label: string;
6147
+ period_start: string;
6148
+ status?: string;
6149
+ total_hours?: number;
6150
+ total_lines?: number;
6151
+ updated_at?: string;
6152
+ };
6153
+ Update: {
6154
+ created_at?: string;
6155
+ file_name?: string | null;
6156
+ generated_at?: string;
6157
+ generated_by?: string | null;
6158
+ id?: string;
6159
+ notes?: string | null;
6160
+ period_end?: string;
6161
+ period_label?: string;
6162
+ period_start?: string;
6163
+ status?: string;
6164
+ total_hours?: number;
6165
+ total_lines?: number;
6166
+ updated_at?: string;
6167
+ };
6168
+ Relationships: [];
6169
+ };
6170
+ nmbrs_settings: {
6171
+ Row: {
6172
+ created_at: string;
6173
+ default_company_code: string | null;
6174
+ id: boolean;
6175
+ include_travel: boolean;
6176
+ overtime_threshold_daily: number;
6177
+ overtime_threshold_weekly: number;
6178
+ period_type: string;
6179
+ updated_at: string;
6180
+ updated_by: string | null;
6181
+ week_start_day: number;
6182
+ };
6183
+ Insert: {
6184
+ created_at?: string;
6185
+ default_company_code?: string | null;
6186
+ id?: boolean;
6187
+ include_travel?: boolean;
6188
+ overtime_threshold_daily?: number;
6189
+ overtime_threshold_weekly?: number;
6190
+ period_type?: string;
6191
+ updated_at?: string;
6192
+ updated_by?: string | null;
6193
+ week_start_day?: number;
6194
+ };
6195
+ Update: {
6196
+ created_at?: string;
6197
+ default_company_code?: string | null;
6198
+ id?: boolean;
6199
+ include_travel?: boolean;
6200
+ overtime_threshold_daily?: number;
6201
+ overtime_threshold_weekly?: number;
6202
+ period_type?: string;
6203
+ updated_at?: string;
6204
+ updated_by?: string | null;
6205
+ week_start_day?: number;
6206
+ };
6207
+ Relationships: [];
6208
+ };
6209
+ nmbrs_wage_components: {
6210
+ Row: {
6211
+ category: string;
6212
+ code: string;
6213
+ created_at: string;
6214
+ id: string;
6215
+ is_active: boolean;
6216
+ label: string;
6217
+ sort_order: number;
6218
+ unit: string;
6219
+ updated_at: string;
6220
+ };
6221
+ Insert: {
6222
+ category: string;
6223
+ code: string;
6224
+ created_at?: string;
6225
+ id?: string;
6226
+ is_active?: boolean;
6227
+ label: string;
6228
+ sort_order?: number;
6229
+ unit: string;
6230
+ updated_at?: string;
6231
+ };
6232
+ Update: {
6233
+ category?: string;
6234
+ code?: string;
6235
+ created_at?: string;
6236
+ id?: string;
6237
+ is_active?: boolean;
6238
+ label?: string;
6239
+ sort_order?: number;
6240
+ unit?: string;
6241
+ updated_at?: string;
6242
+ };
6243
+ Relationships: [];
6244
+ };
5549
6245
  notifications: {
5550
6246
  Row: {
5551
6247
  created_at: string;
@@ -5770,6 +6466,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5770
6466
  id: string;
5771
6467
  items: import("../integrations/supabase/types").Json;
5772
6468
  notes: string | null;
6469
+ order_number: string | null;
5773
6470
  recipient_id: string;
5774
6471
  total_amount: number;
5775
6472
  };
@@ -5783,6 +6480,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5783
6480
  id?: string;
5784
6481
  items?: import("../integrations/supabase/types").Json;
5785
6482
  notes?: string | null;
6483
+ order_number?: string | null;
5786
6484
  recipient_id: string;
5787
6485
  total_amount?: number;
5788
6486
  };
@@ -5796,6 +6494,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5796
6494
  id?: string;
5797
6495
  items?: import("../integrations/supabase/types").Json;
5798
6496
  notes?: string | null;
6497
+ order_number?: string | null;
5799
6498
  recipient_id?: string;
5800
6499
  total_amount?: number;
5801
6500
  };
@@ -5955,6 +6654,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5955
6654
  crates_per_layer: number;
5956
6655
  created_at: string;
5957
6656
  id: string;
6657
+ layer_fraction: number;
6658
+ layer_share_pct: number;
6659
+ layers_per_cart: number;
5958
6660
  order_item_id: string | null;
5959
6661
  plants_per_crate: number;
5960
6662
  product_id: string | null;
@@ -5966,6 +6668,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5966
6668
  crates_per_layer?: number;
5967
6669
  created_at?: string;
5968
6670
  id?: string;
6671
+ layer_fraction?: number;
6672
+ layer_share_pct?: number;
6673
+ layers_per_cart?: number;
5969
6674
  order_item_id?: string | null;
5970
6675
  plants_per_crate?: number;
5971
6676
  product_id?: string | null;
@@ -5977,6 +6682,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5977
6682
  crates_per_layer?: number;
5978
6683
  created_at?: string;
5979
6684
  id?: string;
6685
+ layer_fraction?: number;
6686
+ layer_share_pct?: number;
6687
+ layers_per_cart?: number;
5980
6688
  order_item_id?: string | null;
5981
6689
  plants_per_crate?: number;
5982
6690
  product_id?: string | null;
@@ -6004,33 +6712,45 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6004
6712
  };
6005
6713
  order_carts: {
6006
6714
  Row: {
6715
+ algorithm_version: number;
6007
6716
  cart_number: number;
6008
6717
  created_at: string;
6009
6718
  id: string;
6010
6719
  is_auto: boolean;
6011
6720
  is_complete: boolean;
6012
6721
  notes: string | null;
6722
+ occupancy_pct: number;
6013
6723
  order_id: string;
6724
+ source: string;
6725
+ total_layers_used: number;
6014
6726
  updated_at: string;
6015
6727
  };
6016
6728
  Insert: {
6729
+ algorithm_version?: number;
6017
6730
  cart_number: number;
6018
6731
  created_at?: string;
6019
6732
  id?: string;
6020
6733
  is_auto?: boolean;
6021
6734
  is_complete?: boolean;
6022
6735
  notes?: string | null;
6736
+ occupancy_pct?: number;
6023
6737
  order_id: string;
6738
+ source?: string;
6739
+ total_layers_used?: number;
6024
6740
  updated_at?: string;
6025
6741
  };
6026
6742
  Update: {
6743
+ algorithm_version?: number;
6027
6744
  cart_number?: number;
6028
6745
  created_at?: string;
6029
6746
  id?: string;
6030
6747
  is_auto?: boolean;
6031
6748
  is_complete?: boolean;
6032
6749
  notes?: string | null;
6750
+ occupancy_pct?: number;
6033
6751
  order_id?: string;
6752
+ source?: string;
6753
+ total_layers_used?: number;
6034
6754
  updated_at?: string;
6035
6755
  };
6036
6756
  Relationships: [{
@@ -6183,6 +6903,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6183
6903
  order_date: string;
6184
6904
  order_number: string;
6185
6905
  order_source: string;
6906
+ plan_locked_at: string | null;
6907
+ plan_locked_ref: string | null;
6186
6908
  status: string;
6187
6909
  total: string;
6188
6910
  updated_at: string;
@@ -6199,6 +6921,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6199
6921
  order_date?: string;
6200
6922
  order_number: string;
6201
6923
  order_source?: string;
6924
+ plan_locked_at?: string | null;
6925
+ plan_locked_ref?: string | null;
6202
6926
  status?: string;
6203
6927
  total?: string;
6204
6928
  updated_at?: string;
@@ -6215,6 +6939,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6215
6939
  order_date?: string;
6216
6940
  order_number?: string;
6217
6941
  order_source?: string;
6942
+ plan_locked_at?: string | null;
6943
+ plan_locked_ref?: string | null;
6218
6944
  status?: string;
6219
6945
  total?: string;
6220
6946
  updated_at?: string;
@@ -6587,6 +7313,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6587
7313
  display_name: string | null;
6588
7314
  email: string | null;
6589
7315
  id: string;
7316
+ is_superadmin: boolean;
6590
7317
  notification_preferences: import("../integrations/supabase/types").Json;
6591
7318
  tenant_id: string | null;
6592
7319
  updated_at: string;
@@ -6596,6 +7323,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6596
7323
  display_name?: string | null;
6597
7324
  email?: string | null;
6598
7325
  id: string;
7326
+ is_superadmin?: boolean;
6599
7327
  notification_preferences?: import("../integrations/supabase/types").Json;
6600
7328
  tenant_id?: string | null;
6601
7329
  updated_at?: string;
@@ -6605,6 +7333,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6605
7333
  display_name?: string | null;
6606
7334
  email?: string | null;
6607
7335
  id?: string;
7336
+ is_superadmin?: boolean;
6608
7337
  notification_preferences?: import("../integrations/supabase/types").Json;
6609
7338
  tenant_id?: string | null;
6610
7339
  updated_at?: string;
@@ -7394,6 +8123,66 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7394
8123
  };
7395
8124
  Relationships: [];
7396
8125
  };
8126
+ sidebar_config: {
8127
+ Row: {
8128
+ id: string;
8129
+ module_order: string[];
8130
+ updated_at: string;
8131
+ };
8132
+ Insert: {
8133
+ id?: string;
8134
+ module_order?: string[];
8135
+ updated_at?: string;
8136
+ };
8137
+ Update: {
8138
+ id?: string;
8139
+ module_order?: string[];
8140
+ updated_at?: string;
8141
+ };
8142
+ Relationships: [];
8143
+ };
8144
+ stock_import_runs: {
8145
+ Row: {
8146
+ connection_id: string | null;
8147
+ created_at: string;
8148
+ created_rows: number;
8149
+ errors: import("../integrations/supabase/types").Json;
8150
+ filename: string | null;
8151
+ id: string;
8152
+ mutations: import("../integrations/supabase/types").Json;
8153
+ skipped_rows: number;
8154
+ total_rows: number;
8155
+ updated_rows: number;
8156
+ user_id: string;
8157
+ };
8158
+ Insert: {
8159
+ connection_id?: string | null;
8160
+ created_at?: string;
8161
+ created_rows?: number;
8162
+ errors?: import("../integrations/supabase/types").Json;
8163
+ filename?: string | null;
8164
+ id?: string;
8165
+ mutations?: import("../integrations/supabase/types").Json;
8166
+ skipped_rows?: number;
8167
+ total_rows?: number;
8168
+ updated_rows?: number;
8169
+ user_id: string;
8170
+ };
8171
+ Update: {
8172
+ connection_id?: string | null;
8173
+ created_at?: string;
8174
+ created_rows?: number;
8175
+ errors?: import("../integrations/supabase/types").Json;
8176
+ filename?: string | null;
8177
+ id?: string;
8178
+ mutations?: import("../integrations/supabase/types").Json;
8179
+ skipped_rows?: number;
8180
+ total_rows?: number;
8181
+ updated_rows?: number;
8182
+ user_id?: string;
8183
+ };
8184
+ Relationships: [];
8185
+ };
7397
8186
  stock_mutation_log: {
7398
8187
  Row: {
7399
8188
  connection_id: string | null;
@@ -7410,7 +8199,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7410
8199
  reason: string | null;
7411
8200
  reserved_after: number | null;
7412
8201
  reserved_before: number | null;
7413
- trade_item_key: string;
8202
+ trade_item_key: string | null;
7414
8203
  };
7415
8204
  Insert: {
7416
8205
  connection_id?: string | null;
@@ -7427,7 +8216,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7427
8216
  reason?: string | null;
7428
8217
  reserved_after?: number | null;
7429
8218
  reserved_before?: number | null;
7430
- trade_item_key: string;
8219
+ trade_item_key?: string | null;
7431
8220
  };
7432
8221
  Update: {
7433
8222
  connection_id?: string | null;
@@ -7444,7 +8233,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7444
8233
  reason?: string | null;
7445
8234
  reserved_after?: number | null;
7446
8235
  reserved_before?: number | null;
7447
- trade_item_key?: string;
8236
+ trade_item_key?: string | null;
7448
8237
  };
7449
8238
  Relationships: [];
7450
8239
  };
@@ -7716,76 +8505,184 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7716
8505
  user_id: string;
7717
8506
  };
7718
8507
  Insert: {
7719
- connection_id?: string | null;
8508
+ connection_id?: string | null;
8509
+ created_at?: string;
8510
+ data?: import("../integrations/supabase/types").Json;
8511
+ floriday_id?: string | null;
8512
+ floriday_link_error?: string | null;
8513
+ floriday_link_status?: string;
8514
+ id?: string;
8515
+ last_floriday_sync_at?: string | null;
8516
+ missing_required_fields?: string[];
8517
+ source?: string;
8518
+ updated_at?: string;
8519
+ user_id: string;
8520
+ };
8521
+ Update: {
8522
+ connection_id?: string | null;
8523
+ created_at?: string;
8524
+ data?: import("../integrations/supabase/types").Json;
8525
+ floriday_id?: string | null;
8526
+ floriday_link_error?: string | null;
8527
+ floriday_link_status?: string;
8528
+ id?: string;
8529
+ last_floriday_sync_at?: string | null;
8530
+ missing_required_fields?: string[];
8531
+ source?: string;
8532
+ updated_at?: string;
8533
+ user_id?: string;
8534
+ };
8535
+ Relationships: [];
8536
+ };
8537
+ trade_item_stock: {
8538
+ Row: {
8539
+ connection_id: string;
8540
+ created_at: string;
8541
+ id: string;
8542
+ incoming_stock: number;
8543
+ minimum_stock: number;
8544
+ notes: string | null;
8545
+ physical_stock: number;
8546
+ reserved_stock: number;
8547
+ trade_item_key: string;
8548
+ updated_at: string;
8549
+ user_id: string;
8550
+ };
8551
+ Insert: {
8552
+ connection_id: string;
8553
+ created_at?: string;
8554
+ id?: string;
8555
+ incoming_stock?: number;
8556
+ minimum_stock?: number;
8557
+ notes?: string | null;
8558
+ physical_stock?: number;
8559
+ reserved_stock?: number;
8560
+ trade_item_key: string;
8561
+ updated_at?: string;
8562
+ user_id: string;
8563
+ };
8564
+ Update: {
8565
+ connection_id?: string;
8566
+ created_at?: string;
8567
+ id?: string;
8568
+ incoming_stock?: number;
8569
+ minimum_stock?: number;
8570
+ notes?: string | null;
8571
+ physical_stock?: number;
8572
+ reserved_stock?: number;
8573
+ trade_item_key?: string;
8574
+ updated_at?: string;
8575
+ user_id?: string;
8576
+ };
8577
+ Relationships: [];
8578
+ };
8579
+ trade_item_supply_lines: {
8580
+ Row: {
8581
+ available_quantity: number | null;
8582
+ connection_id: string;
8583
+ created_at: string;
8584
+ currency: string | null;
8585
+ endpoint_family: string | null;
8586
+ environment: string | null;
8587
+ id: string;
8588
+ last_error: string | null;
8589
+ last_status: number | null;
8590
+ packing_configuration_id: string | null;
8591
+ period_end: string | null;
8592
+ period_start: string | null;
8593
+ price_per_piece: number | null;
8594
+ sales_unit: string | null;
8595
+ supply_line_id: string | null;
8596
+ supply_type: string;
8597
+ trade_item_id: string;
8598
+ updated_at: string;
8599
+ user_id: string;
8600
+ week: number | null;
8601
+ year: number | null;
8602
+ };
8603
+ Insert: {
8604
+ available_quantity?: number | null;
8605
+ connection_id: string;
7720
8606
  created_at?: string;
7721
- data?: import("../integrations/supabase/types").Json;
7722
- floriday_id?: string | null;
7723
- floriday_link_error?: string | null;
7724
- floriday_link_status?: string;
8607
+ currency?: string | null;
8608
+ endpoint_family?: string | null;
8609
+ environment?: string | null;
7725
8610
  id?: string;
7726
- last_floriday_sync_at?: string | null;
7727
- missing_required_fields?: string[];
7728
- source?: string;
8611
+ last_error?: string | null;
8612
+ last_status?: number | null;
8613
+ packing_configuration_id?: string | null;
8614
+ period_end?: string | null;
8615
+ period_start?: string | null;
8616
+ price_per_piece?: number | null;
8617
+ sales_unit?: string | null;
8618
+ supply_line_id?: string | null;
8619
+ supply_type?: string;
8620
+ trade_item_id: string;
7729
8621
  updated_at?: string;
7730
8622
  user_id: string;
8623
+ week?: number | null;
8624
+ year?: number | null;
7731
8625
  };
7732
8626
  Update: {
7733
- connection_id?: string | null;
8627
+ available_quantity?: number | null;
8628
+ connection_id?: string;
7734
8629
  created_at?: string;
7735
- data?: import("../integrations/supabase/types").Json;
7736
- floriday_id?: string | null;
7737
- floriday_link_error?: string | null;
7738
- floriday_link_status?: string;
8630
+ currency?: string | null;
8631
+ endpoint_family?: string | null;
8632
+ environment?: string | null;
7739
8633
  id?: string;
7740
- last_floriday_sync_at?: string | null;
7741
- missing_required_fields?: string[];
7742
- source?: string;
8634
+ last_error?: string | null;
8635
+ last_status?: number | null;
8636
+ packing_configuration_id?: string | null;
8637
+ period_end?: string | null;
8638
+ period_start?: string | null;
8639
+ price_per_piece?: number | null;
8640
+ sales_unit?: string | null;
8641
+ supply_line_id?: string | null;
8642
+ supply_type?: string;
8643
+ trade_item_id?: string;
7743
8644
  updated_at?: string;
7744
8645
  user_id?: string;
8646
+ week?: number | null;
8647
+ year?: number | null;
7745
8648
  };
7746
8649
  Relationships: [];
7747
8650
  };
7748
- trade_item_stock: {
8651
+ trade_item_warehouse_preferences: {
7749
8652
  Row: {
7750
8653
  connection_id: string;
7751
8654
  created_at: string;
7752
8655
  id: string;
7753
- incoming_stock: number;
7754
- minimum_stock: number;
7755
- notes: string | null;
7756
- physical_stock: number;
7757
- reserved_stock: number;
7758
- trade_item_key: string;
8656
+ trade_item_id: string;
7759
8657
  updated_at: string;
7760
- user_id: string;
8658
+ warehouse_id: string;
8659
+ warehouse_name: string | null;
7761
8660
  };
7762
8661
  Insert: {
7763
8662
  connection_id: string;
7764
8663
  created_at?: string;
7765
8664
  id?: string;
7766
- incoming_stock?: number;
7767
- minimum_stock?: number;
7768
- notes?: string | null;
7769
- physical_stock?: number;
7770
- reserved_stock?: number;
7771
- trade_item_key: string;
8665
+ trade_item_id: string;
7772
8666
  updated_at?: string;
7773
- user_id: string;
8667
+ warehouse_id: string;
8668
+ warehouse_name?: string | null;
7774
8669
  };
7775
8670
  Update: {
7776
8671
  connection_id?: string;
7777
8672
  created_at?: string;
7778
8673
  id?: string;
7779
- incoming_stock?: number;
7780
- minimum_stock?: number;
7781
- notes?: string | null;
7782
- physical_stock?: number;
7783
- reserved_stock?: number;
7784
- trade_item_key?: string;
8674
+ trade_item_id?: string;
7785
8675
  updated_at?: string;
7786
- user_id?: string;
8676
+ warehouse_id?: string;
8677
+ warehouse_name?: string | null;
7787
8678
  };
7788
- Relationships: [];
8679
+ Relationships: [{
8680
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8681
+ columns: ["connection_id"];
8682
+ isOneToOne: false;
8683
+ referencedRelation: "floriday_connections";
8684
+ referencedColumns: ["id"];
8685
+ }];
7789
8686
  };
7790
8687
  twinfield_connections: {
7791
8688
  Row: {
@@ -8106,6 +9003,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8106
9003
  default_invoice_type: string;
8107
9004
  default_payment_term_days: number;
8108
9005
  default_vat_code: string;
9006
+ invoice_enabled_ao: boolean;
9007
+ invoice_enabled_fo: boolean;
9008
+ invoice_enabled_ho: boolean;
9009
+ invoice_enabled_mo: boolean;
8109
9010
  updated_at: string;
8110
9011
  user_id: string;
8111
9012
  };
@@ -8115,6 +9016,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8115
9016
  default_invoice_type?: string;
8116
9017
  default_payment_term_days?: number;
8117
9018
  default_vat_code?: string;
9019
+ invoice_enabled_ao?: boolean;
9020
+ invoice_enabled_fo?: boolean;
9021
+ invoice_enabled_ho?: boolean;
9022
+ invoice_enabled_mo?: boolean;
8118
9023
  updated_at?: string;
8119
9024
  user_id: string;
8120
9025
  };
@@ -8124,6 +9029,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8124
9029
  default_invoice_type?: string;
8125
9030
  default_payment_term_days?: number;
8126
9031
  default_vat_code?: string;
9032
+ invoice_enabled_ao?: boolean;
9033
+ invoice_enabled_fo?: boolean;
9034
+ invoice_enabled_ho?: boolean;
9035
+ invoice_enabled_mo?: boolean;
8127
9036
  updated_at?: string;
8128
9037
  user_id?: string;
8129
9038
  };
@@ -9025,6 +9934,44 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9025
9934
  };
9026
9935
  Relationships: [];
9027
9936
  };
9937
+ floriday_customer_discounts: {
9938
+ Row: {
9939
+ base_price: number | null;
9940
+ buyer_organization_id: string | null;
9941
+ currency: string | null;
9942
+ discount_type: string | null;
9943
+ discount_value: number | null;
9944
+ min_quantity: number | null;
9945
+ net_price: number | null;
9946
+ product_group_id: string | null;
9947
+ raw: import("../integrations/supabase/types").Json | null;
9948
+ source: string | null;
9949
+ source_id: string | null;
9950
+ trade_item_id: string | null;
9951
+ valid_from: string | null;
9952
+ valid_until: string | null;
9953
+ };
9954
+ Relationships: [];
9955
+ };
9956
+ local_customer_discounts: {
9957
+ Row: {
9958
+ base_price: number | null;
9959
+ currency: string | null;
9960
+ customer_id: string | null;
9961
+ discount_type: string | null;
9962
+ discount_value: number | null;
9963
+ min_quantity: number | null;
9964
+ net_price: number | null;
9965
+ product_category_id: string | null;
9966
+ product_id: string | null;
9967
+ product_name: string | null;
9968
+ source: string | null;
9969
+ source_id: string | null;
9970
+ valid_from: string | null;
9971
+ valid_until: string | null;
9972
+ };
9973
+ Relationships: [];
9974
+ };
9028
9975
  manufacture_product_possible_stock_view: {
9029
9976
  Row: {
9030
9977
  component_count: number | null;
@@ -9309,6 +10256,32 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9309
10256
  };
9310
10257
  Returns: number;
9311
10258
  };
10259
+ afh_city_code: {
10260
+ Args: {
10261
+ _city: string;
10262
+ _country: string;
10263
+ };
10264
+ Returns: string;
10265
+ };
10266
+ afh_normalize_country: {
10267
+ Args: {
10268
+ _raw: string;
10269
+ };
10270
+ Returns: string;
10271
+ };
10272
+ afh_normalize_nl_province: {
10273
+ Args: {
10274
+ _raw: string;
10275
+ };
10276
+ Returns: string;
10277
+ };
10278
+ afh_subtract_workdays: {
10279
+ Args: {
10280
+ _date: string;
10281
+ _days: number;
10282
+ };
10283
+ Returns: string;
10284
+ };
9312
10285
  apply_stock_consumption: {
9313
10286
  Args: {
9314
10287
  p_order_id: string;
@@ -9354,16 +10327,62 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9354
10327
  order_number: string;
9355
10328
  }[];
9356
10329
  };
10330
+ autolink_product_to_floriday: {
10331
+ Args: {
10332
+ p_product_id: string;
10333
+ };
10334
+ Returns: string;
10335
+ };
10336
+ backfill_open_order_reservations: {
10337
+ Args: never;
10338
+ Returns: {
10339
+ processed_items: number;
10340
+ }[];
10341
+ };
9357
10342
  call_exact_route: {
9358
10343
  Args: {
9359
10344
  path: string;
9360
10345
  };
9361
10346
  Returns: number;
9362
10347
  };
10348
+ check_offer_product_available_stock: {
10349
+ Args: {
10350
+ p_campaign_product_id: string;
10351
+ p_code: string;
10352
+ p_needed_qty?: number;
10353
+ p_product_name?: string;
10354
+ };
10355
+ Returns: import("../integrations/supabase/types").Json;
10356
+ };
10357
+ check_trade_item_available_stock: {
10358
+ Args: {
10359
+ p_connection_id?: string;
10360
+ p_context?: string;
10361
+ p_needed_qty?: number;
10362
+ p_order_id?: string;
10363
+ p_order_item_id?: string;
10364
+ p_owner_id?: string;
10365
+ p_product_name?: string;
10366
+ p_trade_item_key: string;
10367
+ };
10368
+ Returns: import("../integrations/supabase/types").Json;
10369
+ };
9363
10370
  cleanup_old_bookings: {
9364
10371
  Args: never;
9365
10372
  Returns: number;
9366
10373
  };
10374
+ consume_floriday_rate_limit: {
10375
+ Args: {
10376
+ p_bucket: string;
10377
+ p_capacity: number;
10378
+ p_cost?: number;
10379
+ p_refill_per_sec: number;
10380
+ };
10381
+ Returns: {
10382
+ granted: boolean;
10383
+ wait_ms: number;
10384
+ }[];
10385
+ };
9367
10386
  control_get_todays_carts: {
9368
10387
  Args: never;
9369
10388
  Returns: {
@@ -9403,6 +10422,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9403
10422
  table_name: string;
9404
10423
  }[];
9405
10424
  };
10425
+ dispatch_carrier_signups_sql: {
10426
+ Args: {
10427
+ _catchup?: string;
10428
+ };
10429
+ Returns: import("../integrations/supabase/types").Json;
10430
+ };
9406
10431
  email_auth_decrypt: {
9407
10432
  Args: {
9408
10433
  cipher: string;
@@ -9438,6 +10463,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9438
10463
  status: string;
9439
10464
  }[];
9440
10465
  };
10466
+ enqueue_cart_replan_if_unlocked: {
10467
+ Args: {
10468
+ p_order_id: string;
10469
+ };
10470
+ Returns: undefined;
10471
+ };
10472
+ ensure_trade_item_stock_row: {
10473
+ Args: {
10474
+ p_key: string;
10475
+ };
10476
+ Returns: undefined;
10477
+ };
9441
10478
  ensure_user_tenant: {
9442
10479
  Args: never;
9443
10480
  Returns: string;
@@ -9475,6 +10512,31 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9475
10512
  };
9476
10513
  Returns: boolean;
9477
10514
  };
10515
+ find_trade_item_key: {
10516
+ Args: {
10517
+ p_barcode: string;
10518
+ p_name: string;
10519
+ p_product_id: string;
10520
+ };
10521
+ Returns: string;
10522
+ };
10523
+ floriday_effective_price: {
10524
+ Args: {
10525
+ _buyer_id: string;
10526
+ _on_date?: string;
10527
+ _quantity?: number;
10528
+ _trade_item_id: string;
10529
+ };
10530
+ Returns: {
10531
+ base_price: number;
10532
+ currency: string;
10533
+ discount_type: string;
10534
+ discount_value: number;
10535
+ net_price: number;
10536
+ source: string;
10537
+ source_id: string;
10538
+ }[];
10539
+ };
9478
10540
  format_cart_number: {
9479
10541
  Args: {
9480
10542
  p_pick_date: string;
@@ -9495,6 +10557,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9495
10557
  preferred_warehouse_name: string;
9496
10558
  }[];
9497
10559
  };
10560
+ get_active_floriday_context: {
10561
+ Args: never;
10562
+ Returns: {
10563
+ connection_id: string;
10564
+ user_id: string;
10565
+ }[];
10566
+ };
9498
10567
  get_active_twinfield_public: {
9499
10568
  Args: never;
9500
10569
  Returns: {
@@ -9506,6 +10575,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9506
10575
  office_code: string;
9507
10576
  }[];
9508
10577
  };
10578
+ get_floricode_record_counts: {
10579
+ Args: never;
10580
+ Returns: {
10581
+ count: number;
10582
+ resource: string;
10583
+ }[];
10584
+ };
9509
10585
  get_floriday_agreements_active: {
9510
10586
  Args: {
9511
10587
  p_on_date?: string;
@@ -9597,6 +10673,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9597
10673
  };
9598
10674
  Returns: import("../integrations/supabase/types").Json;
9599
10675
  };
10676
+ get_offer_delivery_options: {
10677
+ Args: {
10678
+ p_code: string;
10679
+ };
10680
+ Returns: import("../integrations/supabase/types").Json;
10681
+ };
10682
+ get_offer_recipient_by_code: {
10683
+ Args: {
10684
+ p_code: string;
10685
+ };
10686
+ Returns: {
10687
+ campaign_id: string;
10688
+ clicked_at: string;
10689
+ customer_id: string;
10690
+ id: string;
10691
+ ordered_at: string;
10692
+ }[];
10693
+ };
9600
10694
  get_or_assign_floriday_order_number: {
9601
10695
  Args: {
9602
10696
  p_floriday_id: string;
@@ -9649,12 +10743,53 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9649
10743
  Args: never;
9650
10744
  Returns: boolean;
9651
10745
  };
10746
+ is_superadmin: {
10747
+ Args: {
10748
+ _user_id: string;
10749
+ };
10750
+ Returns: boolean;
10751
+ };
10752
+ local_effective_price: {
10753
+ Args: {
10754
+ _customer_id: string;
10755
+ _on_date?: string;
10756
+ _product_id: string;
10757
+ _quantity?: number;
10758
+ };
10759
+ Returns: {
10760
+ currency: string;
10761
+ discount_type: string;
10762
+ discount_value: number;
10763
+ net_price: number;
10764
+ source: string;
10765
+ source_id: string;
10766
+ }[];
10767
+ };
10768
+ mark_offer_clicked: {
10769
+ Args: {
10770
+ p_code: string;
10771
+ };
10772
+ Returns: undefined;
10773
+ };
10774
+ mark_offer_ordered: {
10775
+ Args: {
10776
+ p_code: string;
10777
+ };
10778
+ Returns: undefined;
10779
+ };
9652
10780
  next_order_number: {
9653
10781
  Args: {
9654
10782
  p_prefix: string;
9655
10783
  };
9656
10784
  Returns: string;
9657
10785
  };
10786
+ next_order_number_for_date: {
10787
+ Args: {
10788
+ p_created_at?: string;
10789
+ p_prefix: string;
10790
+ };
10791
+ Returns: string;
10792
+ };
9658
10793
  next_work_order_number: {
9659
10794
  Args: {
9660
10795
  p_parent_work_order_id?: string;
@@ -9662,16 +10797,41 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9662
10797
  };
9663
10798
  Returns: string;
9664
10799
  };
10800
+ normalize_order_source: {
10801
+ Args: {
10802
+ p_src: string;
10803
+ };
10804
+ Returns: string;
10805
+ };
9665
10806
  normalize_vat: {
9666
10807
  Args: {
9667
10808
  v: string;
9668
10809
  };
9669
10810
  Returns: string;
9670
10811
  };
10812
+ offer_recipient_matches: {
10813
+ Args: {
10814
+ _campaign_id: string;
10815
+ _customer_id: string;
10816
+ _recipient_id: string;
10817
+ };
10818
+ Returns: boolean;
10819
+ };
10820
+ order_number_prefix: {
10821
+ Args: {
10822
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10823
+ p_order_source: string;
10824
+ };
10825
+ Returns: string;
10826
+ };
9671
10827
  pickstation_get_orders_raw: {
9672
10828
  Args: never;
9673
10829
  Returns: import("../integrations/supabase/types").Json;
9674
10830
  };
10831
+ pickstation_get_planning_context: {
10832
+ Args: never;
10833
+ Returns: import("../integrations/supabase/types").Json;
10834
+ };
9675
10835
  pickstation_get_settings: {
9676
10836
  Args: never;
9677
10837
  Returns: import("../integrations/supabase/types").Json;
@@ -9695,6 +10855,35 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9695
10855
  };
9696
10856
  Returns: undefined;
9697
10857
  };
10858
+ promote_trade_item_key: {
10859
+ Args: {
10860
+ p_new: string;
10861
+ p_old: string;
10862
+ };
10863
+ Returns: undefined;
10864
+ };
10865
+ recompute_order_status: {
10866
+ Args: {
10867
+ p_order_id: string;
10868
+ };
10869
+ Returns: undefined;
10870
+ };
10871
+ recompute_reserved_for_order: {
10872
+ Args: {
10873
+ p_order_id: string;
10874
+ };
10875
+ Returns: undefined;
10876
+ };
10877
+ recompute_reserved_stock: {
10878
+ Args: {
10879
+ p_trade_item_key: string;
10880
+ };
10881
+ Returns: undefined;
10882
+ };
10883
+ refresh_external_customers_grouped: {
10884
+ Args: never;
10885
+ Returns: undefined;
10886
+ };
9698
10887
  refresh_floricode_derived_code_lists: {
9699
10888
  Args: never;
9700
10889
  Returns: {
@@ -9709,6 +10898,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9709
10898
  };
9710
10899
  Returns: number;
9711
10900
  };
10901
+ refresh_floricode_derived_for_products: {
10902
+ Args: {
10903
+ _product_ids: string[];
10904
+ };
10905
+ Returns: number;
10906
+ };
9712
10907
  reset_floriday_sync_cursor: {
9713
10908
  Args: {
9714
10909
  p_connection_id: string;
@@ -9716,6 +10911,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9716
10911
  };
9717
10912
  Returns: undefined;
9718
10913
  };
10914
+ resolve_product_id_for_item: {
10915
+ Args: {
10916
+ p_product_name: string;
10917
+ };
10918
+ Returns: string;
10919
+ };
9719
10920
  schedule_floriday_additional_services_sync: {
9720
10921
  Args: {
9721
10922
  p_apikey: string;
@@ -9993,6 +11194,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9993
11194
  };
9994
11195
  Returns: string[];
9995
11196
  };
11197
+ sync_cached_packing_from_product: {
11198
+ Args: {
11199
+ p_product_id: string;
11200
+ };
11201
+ Returns: undefined;
11202
+ };
11203
+ sync_order_cart_item_packing_from_product: {
11204
+ Args: {
11205
+ p_product_id: string;
11206
+ };
11207
+ Returns: undefined;
11208
+ };
11209
+ sync_product_packing_from_floriday_cache: {
11210
+ Args: {
11211
+ p_floriday_id: string;
11212
+ };
11213
+ Returns: undefined;
11214
+ };
9996
11215
  twinfield_decrypt: {
9997
11216
  Args: {
9998
11217
  cipher: string;