@flowselections/floriday-voorraad 1.0.16 → 1.0.18

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 (64) 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 +372 -30
  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/OrderHistoryCard.d.ts +8 -0
  9. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -0
  10. package/dist-lib/components/voorraad/OrderHistoryCard.js +133 -0
  11. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +7 -0
  12. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -0
  13. package/dist-lib/components/voorraad/PriceStatusBadge.js +67 -0
  14. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +2 -1
  15. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  16. package/dist-lib/components/voorraad/VoorraadStockCard.js +5 -4
  17. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  18. package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
  19. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  20. package/dist-lib/hooks/useLocalTradeItems.js +4 -0
  21. package/dist-lib/hooks/useTradeItemStock.d.ts +14 -1
  22. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  23. package/dist-lib/hooks/useTradeItemStock.js +76 -17
  24. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +21 -0
  25. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -0
  26. package/dist-lib/hooks/useTradeItemSupplyLine.js +49 -0
  27. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  28. package/dist-lib/hooks/useVoorraadData.js +35 -3
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +490 -3
  30. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +490 -3
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.server.d.ts +490 -3
  34. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/types.d.ts +498 -3
  36. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  37. package/dist-lib/lib/floricode-required-features.functions.d.ts +497 -4
  38. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floricode-required-features.functions.js +20 -2
  40. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +11281 -0
  41. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -0
  42. package/dist-lib/lib/floriday-customer-offer.functions.js +175 -0
  43. package/dist-lib/lib/floriday-gateway.functions.d.ts +13240 -15
  44. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-gateway.functions.js +150 -0
  46. package/dist-lib/lib/floriday-gateway.server.d.ts +22 -0
  47. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-gateway.server.js +3 -0
  49. package/dist-lib/lib/floriday-payload.d.ts +60 -6
  50. package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
  51. package/dist-lib/lib/floriday-payload.js +104 -7
  52. package/dist-lib/lib/floriday-supply-line.d.ts +53 -0
  53. package/dist-lib/lib/floriday-supply-line.d.ts.map +1 -0
  54. package/dist-lib/lib/floriday-supply-line.js +109 -0
  55. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1509 -48
  56. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/floriday-writes.functions.d.ts +983 -9
  58. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/floriday-writes.functions.js +6 -1
  60. package/dist-lib/lib/vrs-catalog.d.ts +27 -0
  61. package/dist-lib/lib/vrs-catalog.d.ts.map +1 -0
  62. package/dist-lib/lib/vrs-catalog.js +98 -0
  63. package/package.json +3 -2
  64. package/public/flowselections-assets/Voorraad/floriday-logo.png +0 -0
@@ -13,7 +13,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13
13
  Tables: {
14
14
  afhandeling_settings: {
15
15
  Row: {
16
+ auto_print_delivery_note: boolean;
17
+ auto_process_paused: boolean;
16
18
  created_at: string;
19
+ extra_pick_days_with_stickers: number;
17
20
  id: string;
18
21
  max_workdays_earlier_pick: number;
19
22
  pick_days_before_transport: number;
@@ -27,7 +30,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
27
30
  user_id: string;
28
31
  };
29
32
  Insert: {
33
+ auto_print_delivery_note?: boolean;
34
+ auto_process_paused?: boolean;
30
35
  created_at?: string;
36
+ extra_pick_days_with_stickers?: number;
31
37
  id?: string;
32
38
  max_workdays_earlier_pick?: number;
33
39
  pick_days_before_transport?: number;
@@ -41,7 +47,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
41
47
  user_id: string;
42
48
  };
43
49
  Update: {
50
+ auto_print_delivery_note?: boolean;
51
+ auto_process_paused?: boolean;
44
52
  created_at?: string;
53
+ extra_pick_days_with_stickers?: number;
45
54
  id?: string;
46
55
  max_workdays_earlier_pick?: number;
47
56
  pick_days_before_transport?: number;
@@ -315,6 +324,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
315
324
  conflict_reason: string | null;
316
325
  created_at: string;
317
326
  created_by_role: string | null;
327
+ customer_address: string | null;
318
328
  customer_email: string | null;
319
329
  customer_name: string | null;
320
330
  end_time: string;
@@ -340,6 +350,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
340
350
  conflict_reason?: string | null;
341
351
  created_at?: string;
342
352
  created_by_role?: string | null;
353
+ customer_address?: string | null;
343
354
  customer_email?: string | null;
344
355
  customer_name?: string | null;
345
356
  end_time: string;
@@ -365,6 +376,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
365
376
  conflict_reason?: string | null;
366
377
  created_at?: string;
367
378
  created_by_role?: string | null;
379
+ customer_address?: string | null;
368
380
  customer_email?: string | null;
369
381
  customer_name?: string | null;
370
382
  end_time?: string;
@@ -833,6 +845,36 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
833
845
  };
834
846
  Relationships: [];
835
847
  };
848
+ cart_replan_queue: {
849
+ Row: {
850
+ attempts: number;
851
+ last_error: string | null;
852
+ order_id: string;
853
+ processed_at: string | null;
854
+ requested_at: string;
855
+ };
856
+ Insert: {
857
+ attempts?: number;
858
+ last_error?: string | null;
859
+ order_id: string;
860
+ processed_at?: string | null;
861
+ requested_at?: string;
862
+ };
863
+ Update: {
864
+ attempts?: number;
865
+ last_error?: string | null;
866
+ order_id?: string;
867
+ processed_at?: string | null;
868
+ requested_at?: string;
869
+ };
870
+ Relationships: [{
871
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
872
+ columns: ["order_id"];
873
+ isOneToOne: true;
874
+ referencedRelation: "orders";
875
+ referencedColumns: ["id"];
876
+ }];
877
+ };
836
878
  collections: {
837
879
  Row: {
838
880
  created_at: string;
@@ -2958,34 +3000,52 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2958
3000
  Row: {
2959
3001
  catalog_key: string | null;
2960
3002
  catalog_url: string;
3003
+ client_id: string | null;
3004
+ client_secret_ciphertext: string | null;
3005
+ client_secret_last4: string | null;
2961
3006
  created_at: string;
2962
3007
  id: number;
2963
3008
  last_meta: import("../integrations/supabase/types").Json | null;
2964
3009
  last_test_at: string | null;
2965
3010
  last_test_error: string | null;
2966
3011
  last_test_ok: boolean | null;
3012
+ last_token_test_at: string | null;
3013
+ last_token_test_error: string | null;
3014
+ last_token_test_ok: boolean | null;
2967
3015
  updated_at: string;
2968
3016
  };
2969
3017
  Insert: {
2970
3018
  catalog_key?: string | null;
2971
3019
  catalog_url?: string;
3020
+ client_id?: string | null;
3021
+ client_secret_ciphertext?: string | null;
3022
+ client_secret_last4?: string | null;
2972
3023
  created_at?: string;
2973
3024
  id?: number;
2974
3025
  last_meta?: import("../integrations/supabase/types").Json | null;
2975
3026
  last_test_at?: string | null;
2976
3027
  last_test_error?: string | null;
2977
3028
  last_test_ok?: boolean | null;
3029
+ last_token_test_at?: string | null;
3030
+ last_token_test_error?: string | null;
3031
+ last_token_test_ok?: boolean | null;
2978
3032
  updated_at?: string;
2979
3033
  };
2980
3034
  Update: {
2981
3035
  catalog_key?: string | null;
2982
3036
  catalog_url?: string;
3037
+ client_id?: string | null;
3038
+ client_secret_ciphertext?: string | null;
3039
+ client_secret_last4?: string | null;
2983
3040
  created_at?: string;
2984
3041
  id?: number;
2985
3042
  last_meta?: import("../integrations/supabase/types").Json | null;
2986
3043
  last_test_at?: string | null;
2987
3044
  last_test_error?: string | null;
2988
3045
  last_test_ok?: boolean | null;
3046
+ last_token_test_at?: string | null;
3047
+ last_token_test_error?: string | null;
3048
+ last_token_test_ok?: boolean | null;
2989
3049
  updated_at?: string;
2990
3050
  };
2991
3051
  Relationships: [];
@@ -3218,6 +3278,54 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
3218
3278
  referencedColumns: ["id"];
3219
3279
  }];
3220
3280
  };
3281
+ floriday_auto_fulfillment_log: {
3282
+ Row: {
3283
+ attempts: number;
3284
+ connection_id: string;
3285
+ created_at: string;
3286
+ error: string | null;
3287
+ fulfillment_order_id: string | null;
3288
+ id: string;
3289
+ last_attempt_at: string | null;
3290
+ reason: string | null;
3291
+ sales_order_id: string;
3292
+ status: string;
3293
+ updated_at: string;
3294
+ };
3295
+ Insert: {
3296
+ attempts?: number;
3297
+ connection_id: string;
3298
+ created_at?: string;
3299
+ error?: string | null;
3300
+ fulfillment_order_id?: string | null;
3301
+ id?: string;
3302
+ last_attempt_at?: string | null;
3303
+ reason?: string | null;
3304
+ sales_order_id: string;
3305
+ status?: string;
3306
+ updated_at?: string;
3307
+ };
3308
+ Update: {
3309
+ attempts?: number;
3310
+ connection_id?: string;
3311
+ created_at?: string;
3312
+ error?: string | null;
3313
+ fulfillment_order_id?: string | null;
3314
+ id?: string;
3315
+ last_attempt_at?: string | null;
3316
+ reason?: string | null;
3317
+ sales_order_id?: string;
3318
+ status?: string;
3319
+ updated_at?: string;
3320
+ };
3321
+ Relationships: [{
3322
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3323
+ columns: ["connection_id"];
3324
+ isOneToOne: false;
3325
+ referencedRelation: "floriday_connections";
3326
+ referencedColumns: ["id"];
3327
+ }];
3328
+ };
3221
3329
  floriday_base_items_cache: {
3222
3330
  Row: {
3223
3331
  connection_id: string;
@@ -4322,6 +4430,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
4322
4430
  referencedColumns: ["id"];
4323
4431
  }];
4324
4432
  };
4433
+ floriday_rate_limit_state: {
4434
+ Row: {
4435
+ bucket: string;
4436
+ last_refill_at: string;
4437
+ tokens: number;
4438
+ };
4439
+ Insert: {
4440
+ bucket: string;
4441
+ last_refill_at?: string;
4442
+ tokens: number;
4443
+ };
4444
+ Update: {
4445
+ bucket?: string;
4446
+ last_refill_at?: string;
4447
+ tokens?: number;
4448
+ };
4449
+ Relationships: [];
4450
+ };
4325
4451
  floriday_resource_schemas: {
4326
4452
  Row: {
4327
4453
  enums: import("../integrations/supabase/types").Json;
@@ -4745,6 +4871,60 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
4745
4871
  referencedColumns: ["id"];
4746
4872
  }];
4747
4873
  };
4874
+ flow_role_assignments: {
4875
+ Row: {
4876
+ created_at: string;
4877
+ id: string;
4878
+ role_id: string;
4879
+ user_id: string;
4880
+ };
4881
+ Insert: {
4882
+ created_at?: string;
4883
+ id?: string;
4884
+ role_id: string;
4885
+ user_id: string;
4886
+ };
4887
+ Update: {
4888
+ created_at?: string;
4889
+ id?: string;
4890
+ role_id?: string;
4891
+ user_id?: string;
4892
+ };
4893
+ Relationships: [{
4894
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4895
+ columns: ["role_id"];
4896
+ isOneToOne: false;
4897
+ referencedRelation: "flow_roles";
4898
+ referencedColumns: ["id"];
4899
+ }];
4900
+ };
4901
+ flow_roles: {
4902
+ Row: {
4903
+ created_at: string;
4904
+ description: string | null;
4905
+ id: string;
4906
+ module_access: string[];
4907
+ name: string;
4908
+ updated_at: string;
4909
+ };
4910
+ Insert: {
4911
+ created_at?: string;
4912
+ description?: string | null;
4913
+ id?: string;
4914
+ module_access?: string[];
4915
+ name: string;
4916
+ updated_at?: string;
4917
+ };
4918
+ Update: {
4919
+ created_at?: string;
4920
+ description?: string | null;
4921
+ id?: string;
4922
+ module_access?: string[];
4923
+ name?: string;
4924
+ updated_at?: string;
4925
+ };
4926
+ Relationships: [];
4927
+ };
4748
4928
  imap_accounts: {
4749
4929
  Row: {
4750
4930
  created_at: string;
@@ -5376,6 +5556,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5376
5556
  matched_customer_id: string | null;
5377
5557
  message_id: string;
5378
5558
  notes: string | null;
5559
+ order_number: string | null;
5379
5560
  parsed_payload: import("../integrations/supabase/types").Json | null;
5380
5561
  reviewed_at: string | null;
5381
5562
  reviewed_by: string | null;
@@ -5391,6 +5572,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5391
5572
  matched_customer_id?: string | null;
5392
5573
  message_id: string;
5393
5574
  notes?: string | null;
5575
+ order_number?: string | null;
5394
5576
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5395
5577
  reviewed_at?: string | null;
5396
5578
  reviewed_by?: string | null;
@@ -5406,6 +5588,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5406
5588
  matched_customer_id?: string | null;
5407
5589
  message_id?: string;
5408
5590
  notes?: string | null;
5591
+ order_number?: string | null;
5409
5592
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5410
5593
  reviewed_at?: string | null;
5411
5594
  reviewed_by?: string | null;
@@ -6262,6 +6445,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6262
6445
  id: string;
6263
6446
  items: import("../integrations/supabase/types").Json;
6264
6447
  notes: string | null;
6448
+ order_number: string | null;
6265
6449
  recipient_id: string;
6266
6450
  total_amount: number;
6267
6451
  };
@@ -6275,6 +6459,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6275
6459
  id?: string;
6276
6460
  items?: import("../integrations/supabase/types").Json;
6277
6461
  notes?: string | null;
6462
+ order_number?: string | null;
6278
6463
  recipient_id: string;
6279
6464
  total_amount?: number;
6280
6465
  };
@@ -6288,6 +6473,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6288
6473
  id?: string;
6289
6474
  items?: import("../integrations/supabase/types").Json;
6290
6475
  notes?: string | null;
6476
+ order_number?: string | null;
6291
6477
  recipient_id?: string;
6292
6478
  total_amount?: number;
6293
6479
  };
@@ -6447,6 +6633,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6447
6633
  crates_per_layer: number;
6448
6634
  created_at: string;
6449
6635
  id: string;
6636
+ layer_fraction: number;
6637
+ layer_share_pct: number;
6638
+ layers_per_cart: number;
6450
6639
  order_item_id: string | null;
6451
6640
  plants_per_crate: number;
6452
6641
  product_id: string | null;
@@ -6458,6 +6647,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6458
6647
  crates_per_layer?: number;
6459
6648
  created_at?: string;
6460
6649
  id?: string;
6650
+ layer_fraction?: number;
6651
+ layer_share_pct?: number;
6652
+ layers_per_cart?: number;
6461
6653
  order_item_id?: string | null;
6462
6654
  plants_per_crate?: number;
6463
6655
  product_id?: string | null;
@@ -6469,6 +6661,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6469
6661
  crates_per_layer?: number;
6470
6662
  created_at?: string;
6471
6663
  id?: string;
6664
+ layer_fraction?: number;
6665
+ layer_share_pct?: number;
6666
+ layers_per_cart?: number;
6472
6667
  order_item_id?: string | null;
6473
6668
  plants_per_crate?: number;
6474
6669
  product_id?: string | null;
@@ -6496,33 +6691,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6496
6691
  };
6497
6692
  order_carts: {
6498
6693
  Row: {
6694
+ algorithm_version: number;
6499
6695
  cart_number: number;
6500
6696
  created_at: string;
6501
6697
  id: string;
6502
6698
  is_auto: boolean;
6503
6699
  is_complete: boolean;
6504
6700
  notes: string | null;
6701
+ occupancy_pct: number;
6505
6702
  order_id: string;
6703
+ source: string;
6704
+ total_layers_used: number;
6506
6705
  updated_at: string;
6507
6706
  };
6508
6707
  Insert: {
6708
+ algorithm_version?: number;
6509
6709
  cart_number: number;
6510
6710
  created_at?: string;
6511
6711
  id?: string;
6512
6712
  is_auto?: boolean;
6513
6713
  is_complete?: boolean;
6514
6714
  notes?: string | null;
6715
+ occupancy_pct?: number;
6515
6716
  order_id: string;
6717
+ source?: string;
6718
+ total_layers_used?: number;
6516
6719
  updated_at?: string;
6517
6720
  };
6518
6721
  Update: {
6722
+ algorithm_version?: number;
6519
6723
  cart_number?: number;
6520
6724
  created_at?: string;
6521
6725
  id?: string;
6522
6726
  is_auto?: boolean;
6523
6727
  is_complete?: boolean;
6524
6728
  notes?: string | null;
6729
+ occupancy_pct?: number;
6525
6730
  order_id?: string;
6731
+ source?: string;
6732
+ total_layers_used?: number;
6526
6733
  updated_at?: string;
6527
6734
  };
6528
6735
  Relationships: [{
@@ -6675,6 +6882,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6675
6882
  order_date: string;
6676
6883
  order_number: string;
6677
6884
  order_source: string;
6885
+ plan_locked_at: string | null;
6886
+ plan_locked_ref: string | null;
6678
6887
  status: string;
6679
6888
  total: string;
6680
6889
  updated_at: string;
@@ -6691,6 +6900,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6691
6900
  order_date?: string;
6692
6901
  order_number: string;
6693
6902
  order_source?: string;
6903
+ plan_locked_at?: string | null;
6904
+ plan_locked_ref?: string | null;
6694
6905
  status?: string;
6695
6906
  total?: string;
6696
6907
  updated_at?: string;
@@ -6707,6 +6918,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6707
6918
  order_date?: string;
6708
6919
  order_number?: string;
6709
6920
  order_source?: string;
6921
+ plan_locked_at?: string | null;
6922
+ plan_locked_ref?: string | null;
6710
6923
  status?: string;
6711
6924
  total?: string;
6712
6925
  updated_at?: string;
@@ -7075,28 +7288,34 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7075
7288
  };
7076
7289
  profiles: {
7077
7290
  Row: {
7291
+ address: string | null;
7078
7292
  created_at: string;
7079
7293
  display_name: string | null;
7080
7294
  email: string | null;
7081
7295
  id: string;
7296
+ is_superadmin: boolean;
7082
7297
  notification_preferences: import("../integrations/supabase/types").Json;
7083
7298
  tenant_id: string | null;
7084
7299
  updated_at: string;
7085
7300
  };
7086
7301
  Insert: {
7302
+ address?: string | null;
7087
7303
  created_at?: string;
7088
7304
  display_name?: string | null;
7089
7305
  email?: string | null;
7090
7306
  id: string;
7307
+ is_superadmin?: boolean;
7091
7308
  notification_preferences?: import("../integrations/supabase/types").Json;
7092
7309
  tenant_id?: string | null;
7093
7310
  updated_at?: string;
7094
7311
  };
7095
7312
  Update: {
7313
+ address?: string | null;
7096
7314
  created_at?: string;
7097
7315
  display_name?: string | null;
7098
7316
  email?: string | null;
7099
7317
  id?: string;
7318
+ is_superadmin?: boolean;
7100
7319
  notification_preferences?: import("../integrations/supabase/types").Json;
7101
7320
  tenant_id?: string | null;
7102
7321
  updated_at?: string;
@@ -7886,6 +8105,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7886
8105
  };
7887
8106
  Relationships: [];
7888
8107
  };
8108
+ sidebar_config: {
8109
+ Row: {
8110
+ id: string;
8111
+ module_order: string[];
8112
+ updated_at: string;
8113
+ };
8114
+ Insert: {
8115
+ id?: string;
8116
+ module_order?: string[];
8117
+ updated_at?: string;
8118
+ };
8119
+ Update: {
8120
+ id?: string;
8121
+ module_order?: string[];
8122
+ updated_at?: string;
8123
+ };
8124
+ Relationships: [];
8125
+ };
7889
8126
  stock_import_runs: {
7890
8127
  Row: {
7891
8128
  connection_id: string | null;
@@ -7944,7 +8181,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7944
8181
  reason: string | null;
7945
8182
  reserved_after: number | null;
7946
8183
  reserved_before: number | null;
7947
- trade_item_key: string;
8184
+ trade_item_key: string | null;
7948
8185
  };
7949
8186
  Insert: {
7950
8187
  connection_id?: string | null;
@@ -7961,7 +8198,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7961
8198
  reason?: string | null;
7962
8199
  reserved_after?: number | null;
7963
8200
  reserved_before?: number | null;
7964
- trade_item_key: string;
8201
+ trade_item_key?: string | null;
7965
8202
  };
7966
8203
  Update: {
7967
8204
  connection_id?: string | null;
@@ -7978,7 +8215,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7978
8215
  reason?: string | null;
7979
8216
  reserved_after?: number | null;
7980
8217
  reserved_before?: number | null;
7981
- trade_item_key?: string;
8218
+ trade_item_key?: string | null;
7982
8219
  };
7983
8220
  Relationships: [];
7984
8221
  };
@@ -8321,6 +8558,114 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8321
8558
  };
8322
8559
  Relationships: [];
8323
8560
  };
8561
+ trade_item_supply_lines: {
8562
+ Row: {
8563
+ available_quantity: number | null;
8564
+ connection_id: string;
8565
+ created_at: string;
8566
+ currency: string | null;
8567
+ endpoint_family: string | null;
8568
+ environment: string | null;
8569
+ id: string;
8570
+ last_error: string | null;
8571
+ last_status: number | null;
8572
+ packing_configuration_id: string | null;
8573
+ period_end: string | null;
8574
+ period_start: string | null;
8575
+ price_per_piece: number | null;
8576
+ sales_unit: string | null;
8577
+ supply_line_id: string | null;
8578
+ supply_type: string;
8579
+ trade_item_id: string;
8580
+ updated_at: string;
8581
+ user_id: string;
8582
+ week: number | null;
8583
+ year: number | null;
8584
+ };
8585
+ Insert: {
8586
+ available_quantity?: number | null;
8587
+ connection_id: string;
8588
+ created_at?: string;
8589
+ currency?: string | null;
8590
+ endpoint_family?: string | null;
8591
+ environment?: string | null;
8592
+ id?: string;
8593
+ last_error?: string | null;
8594
+ last_status?: number | null;
8595
+ packing_configuration_id?: string | null;
8596
+ period_end?: string | null;
8597
+ period_start?: string | null;
8598
+ price_per_piece?: number | null;
8599
+ sales_unit?: string | null;
8600
+ supply_line_id?: string | null;
8601
+ supply_type?: string;
8602
+ trade_item_id: string;
8603
+ updated_at?: string;
8604
+ user_id: string;
8605
+ week?: number | null;
8606
+ year?: number | null;
8607
+ };
8608
+ Update: {
8609
+ available_quantity?: number | null;
8610
+ connection_id?: string;
8611
+ created_at?: string;
8612
+ currency?: string | null;
8613
+ endpoint_family?: string | null;
8614
+ environment?: string | null;
8615
+ id?: string;
8616
+ last_error?: string | null;
8617
+ last_status?: number | null;
8618
+ packing_configuration_id?: string | null;
8619
+ period_end?: string | null;
8620
+ period_start?: string | null;
8621
+ price_per_piece?: number | null;
8622
+ sales_unit?: string | null;
8623
+ supply_line_id?: string | null;
8624
+ supply_type?: string;
8625
+ trade_item_id?: string;
8626
+ updated_at?: string;
8627
+ user_id?: string;
8628
+ week?: number | null;
8629
+ year?: number | null;
8630
+ };
8631
+ Relationships: [];
8632
+ };
8633
+ trade_item_warehouse_preferences: {
8634
+ Row: {
8635
+ connection_id: string;
8636
+ created_at: string;
8637
+ id: string;
8638
+ trade_item_id: string;
8639
+ updated_at: string;
8640
+ warehouse_id: string;
8641
+ warehouse_name: string | null;
8642
+ };
8643
+ Insert: {
8644
+ connection_id: string;
8645
+ created_at?: string;
8646
+ id?: string;
8647
+ trade_item_id: string;
8648
+ updated_at?: string;
8649
+ warehouse_id: string;
8650
+ warehouse_name?: string | null;
8651
+ };
8652
+ Update: {
8653
+ connection_id?: string;
8654
+ created_at?: string;
8655
+ id?: string;
8656
+ trade_item_id?: string;
8657
+ updated_at?: string;
8658
+ warehouse_id?: string;
8659
+ warehouse_name?: string | null;
8660
+ };
8661
+ Relationships: [{
8662
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8663
+ columns: ["connection_id"];
8664
+ isOneToOne: false;
8665
+ referencedRelation: "floriday_connections";
8666
+ referencedColumns: ["id"];
8667
+ }];
8668
+ };
8324
8669
  twinfield_connections: {
8325
8670
  Row: {
8326
8671
  access_token: string | null;
@@ -8640,6 +8985,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8640
8985
  default_invoice_type: string;
8641
8986
  default_payment_term_days: number;
8642
8987
  default_vat_code: string;
8988
+ invoice_enabled_ao: boolean;
8989
+ invoice_enabled_fo: boolean;
8990
+ invoice_enabled_ho: boolean;
8991
+ invoice_enabled_mo: boolean;
8643
8992
  updated_at: string;
8644
8993
  user_id: string;
8645
8994
  };
@@ -8649,6 +8998,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8649
8998
  default_invoice_type?: string;
8650
8999
  default_payment_term_days?: number;
8651
9000
  default_vat_code?: string;
9001
+ invoice_enabled_ao?: boolean;
9002
+ invoice_enabled_fo?: boolean;
9003
+ invoice_enabled_ho?: boolean;
9004
+ invoice_enabled_mo?: boolean;
8652
9005
  updated_at?: string;
8653
9006
  user_id: string;
8654
9007
  };
@@ -8658,6 +9011,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8658
9011
  default_invoice_type?: string;
8659
9012
  default_payment_term_days?: number;
8660
9013
  default_vat_code?: string;
9014
+ invoice_enabled_ao?: boolean;
9015
+ invoice_enabled_fo?: boolean;
9016
+ invoice_enabled_ho?: boolean;
9017
+ invoice_enabled_mo?: boolean;
8661
9018
  updated_at?: string;
8662
9019
  user_id?: string;
8663
9020
  };
@@ -9952,6 +10309,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9952
10309
  order_number: string;
9953
10310
  }[];
9954
10311
  };
10312
+ autolink_product_to_floriday: {
10313
+ Args: {
10314
+ p_product_id: string;
10315
+ };
10316
+ Returns: string;
10317
+ };
9955
10318
  backfill_open_order_reservations: {
9956
10319
  Args: never;
9957
10320
  Returns: {
@@ -9990,6 +10353,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9990
10353
  Args: never;
9991
10354
  Returns: number;
9992
10355
  };
10356
+ consume_floriday_rate_limit: {
10357
+ Args: {
10358
+ p_bucket: string;
10359
+ p_capacity: number;
10360
+ p_cost?: number;
10361
+ p_refill_per_sec: number;
10362
+ };
10363
+ Returns: {
10364
+ granted: boolean;
10365
+ wait_ms: number;
10366
+ }[];
10367
+ };
9993
10368
  control_get_todays_carts: {
9994
10369
  Args: never;
9995
10370
  Returns: {
@@ -10070,6 +10445,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10070
10445
  status: string;
10071
10446
  }[];
10072
10447
  };
10448
+ enqueue_cart_replan_if_unlocked: {
10449
+ Args: {
10450
+ p_order_id: string;
10451
+ };
10452
+ Returns: undefined;
10453
+ };
10073
10454
  ensure_trade_item_stock_row: {
10074
10455
  Args: {
10075
10456
  p_key: string;
@@ -10176,6 +10557,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10176
10557
  office_code: string;
10177
10558
  }[];
10178
10559
  };
10560
+ get_floricode_record_counts: {
10561
+ Args: never;
10562
+ Returns: {
10563
+ count: number;
10564
+ resource: string;
10565
+ }[];
10566
+ };
10179
10567
  get_floriday_agreements_active: {
10180
10568
  Args: {
10181
10569
  p_on_date?: string;
@@ -10267,6 +10655,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10267
10655
  };
10268
10656
  Returns: import("../integrations/supabase/types").Json;
10269
10657
  };
10658
+ get_offer_delivery_options: {
10659
+ Args: {
10660
+ p_code: string;
10661
+ };
10662
+ Returns: import("../integrations/supabase/types").Json;
10663
+ };
10270
10664
  get_offer_recipient_by_code: {
10271
10665
  Args: {
10272
10666
  p_code: string;
@@ -10331,6 +10725,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10331
10725
  Args: never;
10332
10726
  Returns: boolean;
10333
10727
  };
10728
+ is_superadmin: {
10729
+ Args: {
10730
+ _user_id: string;
10731
+ };
10732
+ Returns: boolean;
10733
+ };
10334
10734
  local_effective_price: {
10335
10735
  Args: {
10336
10736
  _customer_id: string;
@@ -10365,6 +10765,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10365
10765
  };
10366
10766
  Returns: string;
10367
10767
  };
10768
+ next_order_number_for_date: {
10769
+ Args: {
10770
+ p_created_at?: string;
10771
+ p_prefix: string;
10772
+ };
10773
+ Returns: string;
10774
+ };
10368
10775
  next_work_order_number: {
10369
10776
  Args: {
10370
10777
  p_parent_work_order_id?: string;
@@ -10372,6 +10779,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10372
10779
  };
10373
10780
  Returns: string;
10374
10781
  };
10782
+ normalize_order_source: {
10783
+ Args: {
10784
+ p_src: string;
10785
+ };
10786
+ Returns: string;
10787
+ };
10375
10788
  normalize_vat: {
10376
10789
  Args: {
10377
10790
  v: string;
@@ -10386,9 +10799,20 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10386
10799
  };
10387
10800
  Returns: boolean;
10388
10801
  };
10389
- pickstation_get_orders_raw: {
10390
- Args: never;
10391
- Returns: import("../integrations/supabase/types").Json;
10802
+ order_number_prefix: {
10803
+ Args: {
10804
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10805
+ p_order_source: string;
10806
+ };
10807
+ Returns: string;
10808
+ };
10809
+ pickstation_get_orders_raw: {
10810
+ Args: never;
10811
+ Returns: import("../integrations/supabase/types").Json;
10812
+ };
10813
+ pickstation_get_planning_context: {
10814
+ Args: never;
10815
+ Returns: import("../integrations/supabase/types").Json;
10392
10816
  };
10393
10817
  pickstation_get_settings: {
10394
10818
  Args: never;
@@ -10420,6 +10844,28 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10420
10844
  };
10421
10845
  Returns: undefined;
10422
10846
  };
10847
+ recompute_order_status: {
10848
+ Args: {
10849
+ p_order_id: string;
10850
+ };
10851
+ Returns: undefined;
10852
+ };
10853
+ recompute_reserved_for_order: {
10854
+ Args: {
10855
+ p_order_id: string;
10856
+ };
10857
+ Returns: undefined;
10858
+ };
10859
+ recompute_reserved_stock: {
10860
+ Args: {
10861
+ p_trade_item_key: string;
10862
+ };
10863
+ Returns: undefined;
10864
+ };
10865
+ refresh_external_customers_grouped: {
10866
+ Args: never;
10867
+ Returns: undefined;
10868
+ };
10423
10869
  refresh_floricode_derived_code_lists: {
10424
10870
  Args: never;
10425
10871
  Returns: {
@@ -10434,6 +10880,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10434
10880
  };
10435
10881
  Returns: number;
10436
10882
  };
10883
+ refresh_floricode_derived_for_products: {
10884
+ Args: {
10885
+ _product_ids: string[];
10886
+ };
10887
+ Returns: number;
10888
+ };
10437
10889
  reset_floriday_sync_cursor: {
10438
10890
  Args: {
10439
10891
  p_connection_id: string;
@@ -10441,6 +10893,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10441
10893
  };
10442
10894
  Returns: undefined;
10443
10895
  };
10896
+ resolve_product_id_for_item: {
10897
+ Args: {
10898
+ p_product_name: string;
10899
+ };
10900
+ Returns: string;
10901
+ };
10444
10902
  schedule_floriday_additional_services_sync: {
10445
10903
  Args: {
10446
10904
  p_apikey: string;
@@ -10718,6 +11176,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10718
11176
  };
10719
11177
  Returns: string[];
10720
11178
  };
11179
+ sync_cached_packing_from_product: {
11180
+ Args: {
11181
+ p_product_id: string;
11182
+ };
11183
+ Returns: undefined;
11184
+ };
11185
+ sync_order_cart_item_packing_from_product: {
11186
+ Args: {
11187
+ p_product_id: string;
11188
+ };
11189
+ Returns: undefined;
11190
+ };
11191
+ sync_product_packing_from_floriday_cache: {
11192
+ Args: {
11193
+ p_floriday_id: string;
11194
+ };
11195
+ Returns: undefined;
11196
+ };
10721
11197
  twinfield_decrypt: {
10722
11198
  Args: {
10723
11199
  cipher: string;
@@ -10730,6 +11206,17 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10730
11206
  };
10731
11207
  Returns: string;
10732
11208
  };
11209
+ upsert_auto_fulfillment_log: {
11210
+ Args: {
11211
+ p_connection_id: string;
11212
+ p_error?: string;
11213
+ p_fulfillment_order_id?: string;
11214
+ p_reason?: string;
11215
+ p_sales_order_id: string;
11216
+ p_status: string;
11217
+ };
11218
+ Returns: undefined;
11219
+ };
10733
11220
  };
10734
11221
  Enums: {
10735
11222
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -10749,7 +11236,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
10749
11236
  Tables: {
10750
11237
  afhandeling_settings: {
10751
11238
  Row: {
11239
+ auto_print_delivery_note: boolean;
11240
+ auto_process_paused: boolean;
10752
11241
  created_at: string;
11242
+ extra_pick_days_with_stickers: number;
10753
11243
  id: string;
10754
11244
  max_workdays_earlier_pick: number;
10755
11245
  pick_days_before_transport: number;
@@ -10763,7 +11253,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
10763
11253
  user_id: string;
10764
11254
  };
10765
11255
  Insert: {
11256
+ auto_print_delivery_note?: boolean;
11257
+ auto_process_paused?: boolean;
10766
11258
  created_at?: string;
11259
+ extra_pick_days_with_stickers?: number;
10767
11260
  id?: string;
10768
11261
  max_workdays_earlier_pick?: number;
10769
11262
  pick_days_before_transport?: number;
@@ -10777,7 +11270,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
10777
11270
  user_id: string;
10778
11271
  };
10779
11272
  Update: {
11273
+ auto_print_delivery_note?: boolean;
11274
+ auto_process_paused?: boolean;
10780
11275
  created_at?: string;
11276
+ extra_pick_days_with_stickers?: number;
10781
11277
  id?: string;
10782
11278
  max_workdays_earlier_pick?: number;
10783
11279
  pick_days_before_transport?: number;
@@ -11051,6 +11547,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
11051
11547
  conflict_reason: string | null;
11052
11548
  created_at: string;
11053
11549
  created_by_role: string | null;
11550
+ customer_address: string | null;
11054
11551
  customer_email: string | null;
11055
11552
  customer_name: string | null;
11056
11553
  end_time: string;
@@ -11076,6 +11573,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
11076
11573
  conflict_reason?: string | null;
11077
11574
  created_at?: string;
11078
11575
  created_by_role?: string | null;
11576
+ customer_address?: string | null;
11079
11577
  customer_email?: string | null;
11080
11578
  customer_name?: string | null;
11081
11579
  end_time: string;
@@ -11101,6 +11599,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
11101
11599
  conflict_reason?: string | null;
11102
11600
  created_at?: string;
11103
11601
  created_by_role?: string | null;
11602
+ customer_address?: string | null;
11104
11603
  customer_email?: string | null;
11105
11604
  customer_name?: string | null;
11106
11605
  end_time?: string;
@@ -11569,6 +12068,36 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
11569
12068
  };
11570
12069
  Relationships: [];
11571
12070
  };
12071
+ cart_replan_queue: {
12072
+ Row: {
12073
+ attempts: number;
12074
+ last_error: string | null;
12075
+ order_id: string;
12076
+ processed_at: string | null;
12077
+ requested_at: string;
12078
+ };
12079
+ Insert: {
12080
+ attempts?: number;
12081
+ last_error?: string | null;
12082
+ order_id: string;
12083
+ processed_at?: string | null;
12084
+ requested_at?: string;
12085
+ };
12086
+ Update: {
12087
+ attempts?: number;
12088
+ last_error?: string | null;
12089
+ order_id?: string;
12090
+ processed_at?: string | null;
12091
+ requested_at?: string;
12092
+ };
12093
+ Relationships: [{
12094
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
12095
+ columns: ["order_id"];
12096
+ isOneToOne: true;
12097
+ referencedRelation: "orders";
12098
+ referencedColumns: ["id"];
12099
+ }];
12100
+ };
11572
12101
  collections: {
11573
12102
  Row: {
11574
12103
  created_at: string;
@@ -13694,34 +14223,52 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
13694
14223
  Row: {
13695
14224
  catalog_key: string | null;
13696
14225
  catalog_url: string;
14226
+ client_id: string | null;
14227
+ client_secret_ciphertext: string | null;
14228
+ client_secret_last4: string | null;
13697
14229
  created_at: string;
13698
14230
  id: number;
13699
14231
  last_meta: import("../integrations/supabase/types").Json | null;
13700
14232
  last_test_at: string | null;
13701
14233
  last_test_error: string | null;
13702
14234
  last_test_ok: boolean | null;
14235
+ last_token_test_at: string | null;
14236
+ last_token_test_error: string | null;
14237
+ last_token_test_ok: boolean | null;
13703
14238
  updated_at: string;
13704
14239
  };
13705
14240
  Insert: {
13706
14241
  catalog_key?: string | null;
13707
14242
  catalog_url?: string;
14243
+ client_id?: string | null;
14244
+ client_secret_ciphertext?: string | null;
14245
+ client_secret_last4?: string | null;
13708
14246
  created_at?: string;
13709
14247
  id?: number;
13710
14248
  last_meta?: import("../integrations/supabase/types").Json | null;
13711
14249
  last_test_at?: string | null;
13712
14250
  last_test_error?: string | null;
13713
14251
  last_test_ok?: boolean | null;
14252
+ last_token_test_at?: string | null;
14253
+ last_token_test_error?: string | null;
14254
+ last_token_test_ok?: boolean | null;
13714
14255
  updated_at?: string;
13715
14256
  };
13716
14257
  Update: {
13717
14258
  catalog_key?: string | null;
13718
14259
  catalog_url?: string;
14260
+ client_id?: string | null;
14261
+ client_secret_ciphertext?: string | null;
14262
+ client_secret_last4?: string | null;
13719
14263
  created_at?: string;
13720
14264
  id?: number;
13721
14265
  last_meta?: import("../integrations/supabase/types").Json | null;
13722
14266
  last_test_at?: string | null;
13723
14267
  last_test_error?: string | null;
13724
14268
  last_test_ok?: boolean | null;
14269
+ last_token_test_at?: string | null;
14270
+ last_token_test_error?: string | null;
14271
+ last_token_test_ok?: boolean | null;
13725
14272
  updated_at?: string;
13726
14273
  };
13727
14274
  Relationships: [];
@@ -13954,6 +14501,54 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
13954
14501
  referencedColumns: ["id"];
13955
14502
  }];
13956
14503
  };
14504
+ floriday_auto_fulfillment_log: {
14505
+ Row: {
14506
+ attempts: number;
14507
+ connection_id: string;
14508
+ created_at: string;
14509
+ error: string | null;
14510
+ fulfillment_order_id: string | null;
14511
+ id: string;
14512
+ last_attempt_at: string | null;
14513
+ reason: string | null;
14514
+ sales_order_id: string;
14515
+ status: string;
14516
+ updated_at: string;
14517
+ };
14518
+ Insert: {
14519
+ attempts?: number;
14520
+ connection_id: string;
14521
+ created_at?: string;
14522
+ error?: string | null;
14523
+ fulfillment_order_id?: string | null;
14524
+ id?: string;
14525
+ last_attempt_at?: string | null;
14526
+ reason?: string | null;
14527
+ sales_order_id: string;
14528
+ status?: string;
14529
+ updated_at?: string;
14530
+ };
14531
+ Update: {
14532
+ attempts?: number;
14533
+ connection_id?: string;
14534
+ created_at?: string;
14535
+ error?: string | null;
14536
+ fulfillment_order_id?: string | null;
14537
+ id?: string;
14538
+ last_attempt_at?: string | null;
14539
+ reason?: string | null;
14540
+ sales_order_id?: string;
14541
+ status?: string;
14542
+ updated_at?: string;
14543
+ };
14544
+ Relationships: [{
14545
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
14546
+ columns: ["connection_id"];
14547
+ isOneToOne: false;
14548
+ referencedRelation: "floriday_connections";
14549
+ referencedColumns: ["id"];
14550
+ }];
14551
+ };
13957
14552
  floriday_base_items_cache: {
13958
14553
  Row: {
13959
14554
  connection_id: string;
@@ -15058,6 +15653,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
15058
15653
  referencedColumns: ["id"];
15059
15654
  }];
15060
15655
  };
15656
+ floriday_rate_limit_state: {
15657
+ Row: {
15658
+ bucket: string;
15659
+ last_refill_at: string;
15660
+ tokens: number;
15661
+ };
15662
+ Insert: {
15663
+ bucket: string;
15664
+ last_refill_at?: string;
15665
+ tokens: number;
15666
+ };
15667
+ Update: {
15668
+ bucket?: string;
15669
+ last_refill_at?: string;
15670
+ tokens?: number;
15671
+ };
15672
+ Relationships: [];
15673
+ };
15061
15674
  floriday_resource_schemas: {
15062
15675
  Row: {
15063
15676
  enums: import("../integrations/supabase/types").Json;
@@ -15481,6 +16094,60 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
15481
16094
  referencedColumns: ["id"];
15482
16095
  }];
15483
16096
  };
16097
+ flow_role_assignments: {
16098
+ Row: {
16099
+ created_at: string;
16100
+ id: string;
16101
+ role_id: string;
16102
+ user_id: string;
16103
+ };
16104
+ Insert: {
16105
+ created_at?: string;
16106
+ id?: string;
16107
+ role_id: string;
16108
+ user_id: string;
16109
+ };
16110
+ Update: {
16111
+ created_at?: string;
16112
+ id?: string;
16113
+ role_id?: string;
16114
+ user_id?: string;
16115
+ };
16116
+ Relationships: [{
16117
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
16118
+ columns: ["role_id"];
16119
+ isOneToOne: false;
16120
+ referencedRelation: "flow_roles";
16121
+ referencedColumns: ["id"];
16122
+ }];
16123
+ };
16124
+ flow_roles: {
16125
+ Row: {
16126
+ created_at: string;
16127
+ description: string | null;
16128
+ id: string;
16129
+ module_access: string[];
16130
+ name: string;
16131
+ updated_at: string;
16132
+ };
16133
+ Insert: {
16134
+ created_at?: string;
16135
+ description?: string | null;
16136
+ id?: string;
16137
+ module_access?: string[];
16138
+ name: string;
16139
+ updated_at?: string;
16140
+ };
16141
+ Update: {
16142
+ created_at?: string;
16143
+ description?: string | null;
16144
+ id?: string;
16145
+ module_access?: string[];
16146
+ name?: string;
16147
+ updated_at?: string;
16148
+ };
16149
+ Relationships: [];
16150
+ };
15484
16151
  imap_accounts: {
15485
16152
  Row: {
15486
16153
  created_at: string;
@@ -16112,6 +16779,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
16112
16779
  matched_customer_id: string | null;
16113
16780
  message_id: string;
16114
16781
  notes: string | null;
16782
+ order_number: string | null;
16115
16783
  parsed_payload: import("../integrations/supabase/types").Json | null;
16116
16784
  reviewed_at: string | null;
16117
16785
  reviewed_by: string | null;
@@ -16127,6 +16795,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
16127
16795
  matched_customer_id?: string | null;
16128
16796
  message_id: string;
16129
16797
  notes?: string | null;
16798
+ order_number?: string | null;
16130
16799
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16131
16800
  reviewed_at?: string | null;
16132
16801
  reviewed_by?: string | null;
@@ -16142,6 +16811,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
16142
16811
  matched_customer_id?: string | null;
16143
16812
  message_id?: string;
16144
16813
  notes?: string | null;
16814
+ order_number?: string | null;
16145
16815
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16146
16816
  reviewed_at?: string | null;
16147
16817
  reviewed_by?: string | null;
@@ -16998,6 +17668,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
16998
17668
  id: string;
16999
17669
  items: import("../integrations/supabase/types").Json;
17000
17670
  notes: string | null;
17671
+ order_number: string | null;
17001
17672
  recipient_id: string;
17002
17673
  total_amount: number;
17003
17674
  };
@@ -17011,6 +17682,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17011
17682
  id?: string;
17012
17683
  items?: import("../integrations/supabase/types").Json;
17013
17684
  notes?: string | null;
17685
+ order_number?: string | null;
17014
17686
  recipient_id: string;
17015
17687
  total_amount?: number;
17016
17688
  };
@@ -17024,6 +17696,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17024
17696
  id?: string;
17025
17697
  items?: import("../integrations/supabase/types").Json;
17026
17698
  notes?: string | null;
17699
+ order_number?: string | null;
17027
17700
  recipient_id?: string;
17028
17701
  total_amount?: number;
17029
17702
  };
@@ -17183,6 +17856,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17183
17856
  crates_per_layer: number;
17184
17857
  created_at: string;
17185
17858
  id: string;
17859
+ layer_fraction: number;
17860
+ layer_share_pct: number;
17861
+ layers_per_cart: number;
17186
17862
  order_item_id: string | null;
17187
17863
  plants_per_crate: number;
17188
17864
  product_id: string | null;
@@ -17194,6 +17870,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17194
17870
  crates_per_layer?: number;
17195
17871
  created_at?: string;
17196
17872
  id?: string;
17873
+ layer_fraction?: number;
17874
+ layer_share_pct?: number;
17875
+ layers_per_cart?: number;
17197
17876
  order_item_id?: string | null;
17198
17877
  plants_per_crate?: number;
17199
17878
  product_id?: string | null;
@@ -17205,6 +17884,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17205
17884
  crates_per_layer?: number;
17206
17885
  created_at?: string;
17207
17886
  id?: string;
17887
+ layer_fraction?: number;
17888
+ layer_share_pct?: number;
17889
+ layers_per_cart?: number;
17208
17890
  order_item_id?: string | null;
17209
17891
  plants_per_crate?: number;
17210
17892
  product_id?: string | null;
@@ -17232,33 +17914,45 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17232
17914
  };
17233
17915
  order_carts: {
17234
17916
  Row: {
17917
+ algorithm_version: number;
17235
17918
  cart_number: number;
17236
17919
  created_at: string;
17237
17920
  id: string;
17238
17921
  is_auto: boolean;
17239
17922
  is_complete: boolean;
17240
17923
  notes: string | null;
17924
+ occupancy_pct: number;
17241
17925
  order_id: string;
17926
+ source: string;
17927
+ total_layers_used: number;
17242
17928
  updated_at: string;
17243
17929
  };
17244
17930
  Insert: {
17931
+ algorithm_version?: number;
17245
17932
  cart_number: number;
17246
17933
  created_at?: string;
17247
17934
  id?: string;
17248
17935
  is_auto?: boolean;
17249
17936
  is_complete?: boolean;
17250
17937
  notes?: string | null;
17938
+ occupancy_pct?: number;
17251
17939
  order_id: string;
17940
+ source?: string;
17941
+ total_layers_used?: number;
17252
17942
  updated_at?: string;
17253
17943
  };
17254
17944
  Update: {
17945
+ algorithm_version?: number;
17255
17946
  cart_number?: number;
17256
17947
  created_at?: string;
17257
17948
  id?: string;
17258
17949
  is_auto?: boolean;
17259
17950
  is_complete?: boolean;
17260
17951
  notes?: string | null;
17952
+ occupancy_pct?: number;
17261
17953
  order_id?: string;
17954
+ source?: string;
17955
+ total_layers_used?: number;
17262
17956
  updated_at?: string;
17263
17957
  };
17264
17958
  Relationships: [{
@@ -17411,6 +18105,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17411
18105
  order_date: string;
17412
18106
  order_number: string;
17413
18107
  order_source: string;
18108
+ plan_locked_at: string | null;
18109
+ plan_locked_ref: string | null;
17414
18110
  status: string;
17415
18111
  total: string;
17416
18112
  updated_at: string;
@@ -17427,6 +18123,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17427
18123
  order_date?: string;
17428
18124
  order_number: string;
17429
18125
  order_source?: string;
18126
+ plan_locked_at?: string | null;
18127
+ plan_locked_ref?: string | null;
17430
18128
  status?: string;
17431
18129
  total?: string;
17432
18130
  updated_at?: string;
@@ -17443,6 +18141,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17443
18141
  order_date?: string;
17444
18142
  order_number?: string;
17445
18143
  order_source?: string;
18144
+ plan_locked_at?: string | null;
18145
+ plan_locked_ref?: string | null;
17446
18146
  status?: string;
17447
18147
  total?: string;
17448
18148
  updated_at?: string;
@@ -17811,28 +18511,34 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
17811
18511
  };
17812
18512
  profiles: {
17813
18513
  Row: {
18514
+ address: string | null;
17814
18515
  created_at: string;
17815
18516
  display_name: string | null;
17816
18517
  email: string | null;
17817
18518
  id: string;
18519
+ is_superadmin: boolean;
17818
18520
  notification_preferences: import("../integrations/supabase/types").Json;
17819
18521
  tenant_id: string | null;
17820
18522
  updated_at: string;
17821
18523
  };
17822
18524
  Insert: {
18525
+ address?: string | null;
17823
18526
  created_at?: string;
17824
18527
  display_name?: string | null;
17825
18528
  email?: string | null;
17826
18529
  id: string;
18530
+ is_superadmin?: boolean;
17827
18531
  notification_preferences?: import("../integrations/supabase/types").Json;
17828
18532
  tenant_id?: string | null;
17829
18533
  updated_at?: string;
17830
18534
  };
17831
18535
  Update: {
18536
+ address?: string | null;
17832
18537
  created_at?: string;
17833
18538
  display_name?: string | null;
17834
18539
  email?: string | null;
17835
18540
  id?: string;
18541
+ is_superadmin?: boolean;
17836
18542
  notification_preferences?: import("../integrations/supabase/types").Json;
17837
18543
  tenant_id?: string | null;
17838
18544
  updated_at?: string;
@@ -18622,6 +19328,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
18622
19328
  };
18623
19329
  Relationships: [];
18624
19330
  };
19331
+ sidebar_config: {
19332
+ Row: {
19333
+ id: string;
19334
+ module_order: string[];
19335
+ updated_at: string;
19336
+ };
19337
+ Insert: {
19338
+ id?: string;
19339
+ module_order?: string[];
19340
+ updated_at?: string;
19341
+ };
19342
+ Update: {
19343
+ id?: string;
19344
+ module_order?: string[];
19345
+ updated_at?: string;
19346
+ };
19347
+ Relationships: [];
19348
+ };
18625
19349
  stock_import_runs: {
18626
19350
  Row: {
18627
19351
  connection_id: string | null;
@@ -18680,7 +19404,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
18680
19404
  reason: string | null;
18681
19405
  reserved_after: number | null;
18682
19406
  reserved_before: number | null;
18683
- trade_item_key: string;
19407
+ trade_item_key: string | null;
18684
19408
  };
18685
19409
  Insert: {
18686
19410
  connection_id?: string | null;
@@ -18697,7 +19421,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
18697
19421
  reason?: string | null;
18698
19422
  reserved_after?: number | null;
18699
19423
  reserved_before?: number | null;
18700
- trade_item_key: string;
19424
+ trade_item_key?: string | null;
18701
19425
  };
18702
19426
  Update: {
18703
19427
  connection_id?: string | null;
@@ -18714,7 +19438,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
18714
19438
  reason?: string | null;
18715
19439
  reserved_after?: number | null;
18716
19440
  reserved_before?: number | null;
18717
- trade_item_key?: string;
19441
+ trade_item_key?: string | null;
18718
19442
  };
18719
19443
  Relationships: [];
18720
19444
  };
@@ -19057,6 +19781,114 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19057
19781
  };
19058
19782
  Relationships: [];
19059
19783
  };
19784
+ trade_item_supply_lines: {
19785
+ Row: {
19786
+ available_quantity: number | null;
19787
+ connection_id: string;
19788
+ created_at: string;
19789
+ currency: string | null;
19790
+ endpoint_family: string | null;
19791
+ environment: string | null;
19792
+ id: string;
19793
+ last_error: string | null;
19794
+ last_status: number | null;
19795
+ packing_configuration_id: string | null;
19796
+ period_end: string | null;
19797
+ period_start: string | null;
19798
+ price_per_piece: number | null;
19799
+ sales_unit: string | null;
19800
+ supply_line_id: string | null;
19801
+ supply_type: string;
19802
+ trade_item_id: string;
19803
+ updated_at: string;
19804
+ user_id: string;
19805
+ week: number | null;
19806
+ year: number | null;
19807
+ };
19808
+ Insert: {
19809
+ available_quantity?: number | null;
19810
+ connection_id: string;
19811
+ created_at?: string;
19812
+ currency?: string | null;
19813
+ endpoint_family?: string | null;
19814
+ environment?: string | null;
19815
+ id?: string;
19816
+ last_error?: string | null;
19817
+ last_status?: number | null;
19818
+ packing_configuration_id?: string | null;
19819
+ period_end?: string | null;
19820
+ period_start?: string | null;
19821
+ price_per_piece?: number | null;
19822
+ sales_unit?: string | null;
19823
+ supply_line_id?: string | null;
19824
+ supply_type?: string;
19825
+ trade_item_id: string;
19826
+ updated_at?: string;
19827
+ user_id: string;
19828
+ week?: number | null;
19829
+ year?: number | null;
19830
+ };
19831
+ Update: {
19832
+ available_quantity?: number | null;
19833
+ connection_id?: string;
19834
+ created_at?: string;
19835
+ currency?: string | null;
19836
+ endpoint_family?: string | null;
19837
+ environment?: string | null;
19838
+ id?: string;
19839
+ last_error?: string | null;
19840
+ last_status?: number | null;
19841
+ packing_configuration_id?: string | null;
19842
+ period_end?: string | null;
19843
+ period_start?: string | null;
19844
+ price_per_piece?: number | null;
19845
+ sales_unit?: string | null;
19846
+ supply_line_id?: string | null;
19847
+ supply_type?: string;
19848
+ trade_item_id?: string;
19849
+ updated_at?: string;
19850
+ user_id?: string;
19851
+ week?: number | null;
19852
+ year?: number | null;
19853
+ };
19854
+ Relationships: [];
19855
+ };
19856
+ trade_item_warehouse_preferences: {
19857
+ Row: {
19858
+ connection_id: string;
19859
+ created_at: string;
19860
+ id: string;
19861
+ trade_item_id: string;
19862
+ updated_at: string;
19863
+ warehouse_id: string;
19864
+ warehouse_name: string | null;
19865
+ };
19866
+ Insert: {
19867
+ connection_id: string;
19868
+ created_at?: string;
19869
+ id?: string;
19870
+ trade_item_id: string;
19871
+ updated_at?: string;
19872
+ warehouse_id: string;
19873
+ warehouse_name?: string | null;
19874
+ };
19875
+ Update: {
19876
+ connection_id?: string;
19877
+ created_at?: string;
19878
+ id?: string;
19879
+ trade_item_id?: string;
19880
+ updated_at?: string;
19881
+ warehouse_id?: string;
19882
+ warehouse_name?: string | null;
19883
+ };
19884
+ Relationships: [{
19885
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
19886
+ columns: ["connection_id"];
19887
+ isOneToOne: false;
19888
+ referencedRelation: "floriday_connections";
19889
+ referencedColumns: ["id"];
19890
+ }];
19891
+ };
19060
19892
  twinfield_connections: {
19061
19893
  Row: {
19062
19894
  access_token: string | null;
@@ -19376,6 +20208,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19376
20208
  default_invoice_type: string;
19377
20209
  default_payment_term_days: number;
19378
20210
  default_vat_code: string;
20211
+ invoice_enabled_ao: boolean;
20212
+ invoice_enabled_fo: boolean;
20213
+ invoice_enabled_ho: boolean;
20214
+ invoice_enabled_mo: boolean;
19379
20215
  updated_at: string;
19380
20216
  user_id: string;
19381
20217
  };
@@ -19385,6 +20221,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19385
20221
  default_invoice_type?: string;
19386
20222
  default_payment_term_days?: number;
19387
20223
  default_vat_code?: string;
20224
+ invoice_enabled_ao?: boolean;
20225
+ invoice_enabled_fo?: boolean;
20226
+ invoice_enabled_ho?: boolean;
20227
+ invoice_enabled_mo?: boolean;
19388
20228
  updated_at?: string;
19389
20229
  user_id: string;
19390
20230
  };
@@ -19394,6 +20234,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
19394
20234
  default_invoice_type?: string;
19395
20235
  default_payment_term_days?: number;
19396
20236
  default_vat_code?: string;
20237
+ invoice_enabled_ao?: boolean;
20238
+ invoice_enabled_fo?: boolean;
20239
+ invoice_enabled_ho?: boolean;
20240
+ invoice_enabled_mo?: boolean;
19397
20241
  updated_at?: string;
19398
20242
  user_id?: string;
19399
20243
  };
@@ -20688,6 +21532,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
20688
21532
  order_number: string;
20689
21533
  }[];
20690
21534
  };
21535
+ autolink_product_to_floriday: {
21536
+ Args: {
21537
+ p_product_id: string;
21538
+ };
21539
+ Returns: string;
21540
+ };
20691
21541
  backfill_open_order_reservations: {
20692
21542
  Args: never;
20693
21543
  Returns: {
@@ -20726,6 +21576,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
20726
21576
  Args: never;
20727
21577
  Returns: number;
20728
21578
  };
21579
+ consume_floriday_rate_limit: {
21580
+ Args: {
21581
+ p_bucket: string;
21582
+ p_capacity: number;
21583
+ p_cost?: number;
21584
+ p_refill_per_sec: number;
21585
+ };
21586
+ Returns: {
21587
+ granted: boolean;
21588
+ wait_ms: number;
21589
+ }[];
21590
+ };
20729
21591
  control_get_todays_carts: {
20730
21592
  Args: never;
20731
21593
  Returns: {
@@ -20806,6 +21668,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
20806
21668
  status: string;
20807
21669
  }[];
20808
21670
  };
21671
+ enqueue_cart_replan_if_unlocked: {
21672
+ Args: {
21673
+ p_order_id: string;
21674
+ };
21675
+ Returns: undefined;
21676
+ };
20809
21677
  ensure_trade_item_stock_row: {
20810
21678
  Args: {
20811
21679
  p_key: string;
@@ -20912,6 +21780,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
20912
21780
  office_code: string;
20913
21781
  }[];
20914
21782
  };
21783
+ get_floricode_record_counts: {
21784
+ Args: never;
21785
+ Returns: {
21786
+ count: number;
21787
+ resource: string;
21788
+ }[];
21789
+ };
20915
21790
  get_floriday_agreements_active: {
20916
21791
  Args: {
20917
21792
  p_on_date?: string;
@@ -21003,6 +21878,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21003
21878
  };
21004
21879
  Returns: import("../integrations/supabase/types").Json;
21005
21880
  };
21881
+ get_offer_delivery_options: {
21882
+ Args: {
21883
+ p_code: string;
21884
+ };
21885
+ Returns: import("../integrations/supabase/types").Json;
21886
+ };
21006
21887
  get_offer_recipient_by_code: {
21007
21888
  Args: {
21008
21889
  p_code: string;
@@ -21067,6 +21948,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21067
21948
  Args: never;
21068
21949
  Returns: boolean;
21069
21950
  };
21951
+ is_superadmin: {
21952
+ Args: {
21953
+ _user_id: string;
21954
+ };
21955
+ Returns: boolean;
21956
+ };
21070
21957
  local_effective_price: {
21071
21958
  Args: {
21072
21959
  _customer_id: string;
@@ -21101,6 +21988,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21101
21988
  };
21102
21989
  Returns: string;
21103
21990
  };
21991
+ next_order_number_for_date: {
21992
+ Args: {
21993
+ p_created_at?: string;
21994
+ p_prefix: string;
21995
+ };
21996
+ Returns: string;
21997
+ };
21104
21998
  next_work_order_number: {
21105
21999
  Args: {
21106
22000
  p_parent_work_order_id?: string;
@@ -21108,6 +22002,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21108
22002
  };
21109
22003
  Returns: string;
21110
22004
  };
22005
+ normalize_order_source: {
22006
+ Args: {
22007
+ p_src: string;
22008
+ };
22009
+ Returns: string;
22010
+ };
21111
22011
  normalize_vat: {
21112
22012
  Args: {
21113
22013
  v: string;
@@ -21122,10 +22022,21 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21122
22022
  };
21123
22023
  Returns: boolean;
21124
22024
  };
22025
+ order_number_prefix: {
22026
+ Args: {
22027
+ p_custom_fields?: import("../integrations/supabase/types").Json;
22028
+ p_order_source: string;
22029
+ };
22030
+ Returns: string;
22031
+ };
21125
22032
  pickstation_get_orders_raw: {
21126
22033
  Args: never;
21127
22034
  Returns: import("../integrations/supabase/types").Json;
21128
22035
  };
22036
+ pickstation_get_planning_context: {
22037
+ Args: never;
22038
+ Returns: import("../integrations/supabase/types").Json;
22039
+ };
21129
22040
  pickstation_get_settings: {
21130
22041
  Args: never;
21131
22042
  Returns: import("../integrations/supabase/types").Json;
@@ -21156,6 +22067,28 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21156
22067
  };
21157
22068
  Returns: undefined;
21158
22069
  };
22070
+ recompute_order_status: {
22071
+ Args: {
22072
+ p_order_id: string;
22073
+ };
22074
+ Returns: undefined;
22075
+ };
22076
+ recompute_reserved_for_order: {
22077
+ Args: {
22078
+ p_order_id: string;
22079
+ };
22080
+ Returns: undefined;
22081
+ };
22082
+ recompute_reserved_stock: {
22083
+ Args: {
22084
+ p_trade_item_key: string;
22085
+ };
22086
+ Returns: undefined;
22087
+ };
22088
+ refresh_external_customers_grouped: {
22089
+ Args: never;
22090
+ Returns: undefined;
22091
+ };
21159
22092
  refresh_floricode_derived_code_lists: {
21160
22093
  Args: never;
21161
22094
  Returns: {
@@ -21170,6 +22103,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21170
22103
  };
21171
22104
  Returns: number;
21172
22105
  };
22106
+ refresh_floricode_derived_for_products: {
22107
+ Args: {
22108
+ _product_ids: string[];
22109
+ };
22110
+ Returns: number;
22111
+ };
21173
22112
  reset_floriday_sync_cursor: {
21174
22113
  Args: {
21175
22114
  p_connection_id: string;
@@ -21177,6 +22116,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21177
22116
  };
21178
22117
  Returns: undefined;
21179
22118
  };
22119
+ resolve_product_id_for_item: {
22120
+ Args: {
22121
+ p_product_name: string;
22122
+ };
22123
+ Returns: string;
22124
+ };
21180
22125
  schedule_floriday_additional_services_sync: {
21181
22126
  Args: {
21182
22127
  p_apikey: string;
@@ -21454,6 +22399,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21454
22399
  };
21455
22400
  Returns: string[];
21456
22401
  };
22402
+ sync_cached_packing_from_product: {
22403
+ Args: {
22404
+ p_product_id: string;
22405
+ };
22406
+ Returns: undefined;
22407
+ };
22408
+ sync_order_cart_item_packing_from_product: {
22409
+ Args: {
22410
+ p_product_id: string;
22411
+ };
22412
+ Returns: undefined;
22413
+ };
22414
+ sync_product_packing_from_floriday_cache: {
22415
+ Args: {
22416
+ p_floriday_id: string;
22417
+ };
22418
+ Returns: undefined;
22419
+ };
21457
22420
  twinfield_decrypt: {
21458
22421
  Args: {
21459
22422
  cipher: string;
@@ -21466,6 +22429,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
21466
22429
  };
21467
22430
  Returns: string;
21468
22431
  };
22432
+ upsert_auto_fulfillment_log: {
22433
+ Args: {
22434
+ p_connection_id: string;
22435
+ p_error?: string;
22436
+ p_fulfillment_order_id?: string;
22437
+ p_reason?: string;
22438
+ p_sales_order_id: string;
22439
+ p_status: string;
22440
+ };
22441
+ Returns: undefined;
22442
+ };
21469
22443
  };
21470
22444
  Enums: {
21471
22445
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";