@flowselections/floriday-authenticatie-module 1.0.17 → 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 (62) hide show
  1. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  2. package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
  3. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +2 -0
  4. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -0
  5. package/dist-lib/components/settings/FloricodeSettingsCard.js +235 -0
  6. package/dist-lib/index.d.ts.map +1 -1
  7. package/dist-lib/index.js +2 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +484 -3
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.d.ts +484 -3
  11. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +484 -3
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +492 -3
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/floricode-credentials.server.d.ts +21 -0
  17. package/dist-lib/lib/floricode-credentials.server.d.ts.map +1 -0
  18. package/dist-lib/lib/floricode-credentials.server.js +158 -0
  19. package/dist-lib/lib/floricode-product-features.d.ts.map +1 -1
  20. package/dist-lib/lib/floricode-product-features.js +19 -33
  21. package/dist-lib/lib/floricode-regulatory-features.d.ts.map +1 -1
  22. package/dist-lib/lib/floricode-regulatory-features.js +51 -41
  23. package/dist-lib/lib/floricode-sync.server.d.ts +35 -0
  24. package/dist-lib/lib/floricode-sync.server.d.ts.map +1 -0
  25. package/dist-lib/lib/floricode-sync.server.js +211 -0
  26. package/dist-lib/lib/floricode.functions.d.ts +78555 -0
  27. package/dist-lib/lib/floricode.functions.d.ts.map +1 -0
  28. package/dist-lib/lib/floricode.functions.js +178 -0
  29. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +484 -3
  30. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-auto-process.server.d.ts +34 -0
  32. package/dist-lib/lib/floriday-auto-process.server.d.ts.map +1 -0
  33. package/dist-lib/lib/floriday-auto-process.server.js +365 -0
  34. package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts +19 -0
  35. package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts.map +1 -0
  36. package/dist-lib/lib/floriday-fulfillment-lookup.server.js +130 -0
  37. package/dist-lib/lib/floriday-gateway-auth.d.ts +24 -0
  38. package/dist-lib/lib/floriday-gateway-auth.d.ts.map +1 -0
  39. package/dist-lib/lib/floriday-gateway-auth.js +127 -0
  40. package/dist-lib/lib/floriday-labels.functions.d.ts +484 -3
  41. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-labels.functions.js +3 -2
  43. package/dist-lib/lib/floriday-public.functions.d.ts +2904 -18
  44. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-rate-limit.server.d.ts +21 -0
  46. package/dist-lib/lib/floriday-rate-limit.server.d.ts.map +1 -0
  47. package/dist-lib/lib/floriday-rate-limit.server.js +75 -0
  48. package/dist-lib/lib/floriday-stickers.functions.d.ts +484 -3
  49. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday-sync.functions.d.ts +15972 -99
  51. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday-writes.functions.d.ts +2952 -42
  53. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/floriday-writes.functions.js +29 -4
  55. package/dist-lib/lib/floriday.functions.d.ts +9054 -198
  56. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/floriday.functions.js +39 -4
  58. package/dist-lib/lib/planning-helpers.d.ts +30 -0
  59. package/dist-lib/lib/planning-helpers.d.ts.map +1 -0
  60. package/dist-lib/lib/planning-helpers.js +62 -0
  61. package/package.json +3 -2
  62. package/public/flowselections-assets/floriday-authenticatie/floricode-logo.png +0 -0
@@ -17,7 +17,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17
17
  Tables: {
18
18
  afhandeling_settings: {
19
19
  Row: {
20
+ auto_print_delivery_note: boolean;
21
+ auto_process_paused: boolean;
20
22
  created_at: string;
23
+ extra_pick_days_with_stickers: number;
21
24
  id: string;
22
25
  max_workdays_earlier_pick: number;
23
26
  pick_days_before_transport: number;
@@ -31,7 +34,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
31
34
  user_id: string;
32
35
  };
33
36
  Insert: {
37
+ auto_print_delivery_note?: boolean;
38
+ auto_process_paused?: boolean;
34
39
  created_at?: string;
40
+ extra_pick_days_with_stickers?: number;
35
41
  id?: string;
36
42
  max_workdays_earlier_pick?: number;
37
43
  pick_days_before_transport?: number;
@@ -45,7 +51,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
45
51
  user_id: string;
46
52
  };
47
53
  Update: {
54
+ auto_print_delivery_note?: boolean;
55
+ auto_process_paused?: boolean;
48
56
  created_at?: string;
57
+ extra_pick_days_with_stickers?: number;
49
58
  id?: string;
50
59
  max_workdays_earlier_pick?: number;
51
60
  pick_days_before_transport?: number;
@@ -837,6 +846,36 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
837
846
  };
838
847
  Relationships: [];
839
848
  };
849
+ cart_replan_queue: {
850
+ Row: {
851
+ attempts: number;
852
+ last_error: string | null;
853
+ order_id: string;
854
+ processed_at: string | null;
855
+ requested_at: string;
856
+ };
857
+ Insert: {
858
+ attempts?: number;
859
+ last_error?: string | null;
860
+ order_id: string;
861
+ processed_at?: string | null;
862
+ requested_at?: string;
863
+ };
864
+ Update: {
865
+ attempts?: number;
866
+ last_error?: string | null;
867
+ order_id?: string;
868
+ processed_at?: string | null;
869
+ requested_at?: string;
870
+ };
871
+ Relationships: [{
872
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
873
+ columns: ["order_id"];
874
+ isOneToOne: true;
875
+ referencedRelation: "orders";
876
+ referencedColumns: ["id"];
877
+ }];
878
+ };
840
879
  collections: {
841
880
  Row: {
842
881
  created_at: string;
@@ -2962,34 +3001,52 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2962
3001
  Row: {
2963
3002
  catalog_key: string | null;
2964
3003
  catalog_url: string;
3004
+ client_id: string | null;
3005
+ client_secret_ciphertext: string | null;
3006
+ client_secret_last4: string | null;
2965
3007
  created_at: string;
2966
3008
  id: number;
2967
3009
  last_meta: import("../integrations/supabase/types").Json | null;
2968
3010
  last_test_at: string | null;
2969
3011
  last_test_error: string | null;
2970
3012
  last_test_ok: boolean | null;
3013
+ last_token_test_at: string | null;
3014
+ last_token_test_error: string | null;
3015
+ last_token_test_ok: boolean | null;
2971
3016
  updated_at: string;
2972
3017
  };
2973
3018
  Insert: {
2974
3019
  catalog_key?: string | null;
2975
3020
  catalog_url?: string;
3021
+ client_id?: string | null;
3022
+ client_secret_ciphertext?: string | null;
3023
+ client_secret_last4?: string | null;
2976
3024
  created_at?: string;
2977
3025
  id?: number;
2978
3026
  last_meta?: import("../integrations/supabase/types").Json | null;
2979
3027
  last_test_at?: string | null;
2980
3028
  last_test_error?: string | null;
2981
3029
  last_test_ok?: boolean | null;
3030
+ last_token_test_at?: string | null;
3031
+ last_token_test_error?: string | null;
3032
+ last_token_test_ok?: boolean | null;
2982
3033
  updated_at?: string;
2983
3034
  };
2984
3035
  Update: {
2985
3036
  catalog_key?: string | null;
2986
3037
  catalog_url?: string;
3038
+ client_id?: string | null;
3039
+ client_secret_ciphertext?: string | null;
3040
+ client_secret_last4?: string | null;
2987
3041
  created_at?: string;
2988
3042
  id?: number;
2989
3043
  last_meta?: import("../integrations/supabase/types").Json | null;
2990
3044
  last_test_at?: string | null;
2991
3045
  last_test_error?: string | null;
2992
3046
  last_test_ok?: boolean | null;
3047
+ last_token_test_at?: string | null;
3048
+ last_token_test_error?: string | null;
3049
+ last_token_test_ok?: boolean | null;
2993
3050
  updated_at?: string;
2994
3051
  };
2995
3052
  Relationships: [];
@@ -3222,6 +3279,54 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
3222
3279
  referencedColumns: ["id"];
3223
3280
  }];
3224
3281
  };
3282
+ floriday_auto_fulfillment_log: {
3283
+ Row: {
3284
+ attempts: number;
3285
+ connection_id: string;
3286
+ created_at: string;
3287
+ error: string | null;
3288
+ fulfillment_order_id: string | null;
3289
+ id: string;
3290
+ last_attempt_at: string | null;
3291
+ reason: string | null;
3292
+ sales_order_id: string;
3293
+ status: string;
3294
+ updated_at: string;
3295
+ };
3296
+ Insert: {
3297
+ attempts?: number;
3298
+ connection_id: string;
3299
+ created_at?: string;
3300
+ error?: string | null;
3301
+ fulfillment_order_id?: string | null;
3302
+ id?: string;
3303
+ last_attempt_at?: string | null;
3304
+ reason?: string | null;
3305
+ sales_order_id: string;
3306
+ status?: string;
3307
+ updated_at?: string;
3308
+ };
3309
+ Update: {
3310
+ attempts?: number;
3311
+ connection_id?: string;
3312
+ created_at?: string;
3313
+ error?: string | null;
3314
+ fulfillment_order_id?: string | null;
3315
+ id?: string;
3316
+ last_attempt_at?: string | null;
3317
+ reason?: string | null;
3318
+ sales_order_id?: string;
3319
+ status?: string;
3320
+ updated_at?: string;
3321
+ };
3322
+ Relationships: [{
3323
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3324
+ columns: ["connection_id"];
3325
+ isOneToOne: false;
3326
+ referencedRelation: "floriday_connections";
3327
+ referencedColumns: ["id"];
3328
+ }];
3329
+ };
3225
3330
  floriday_base_items_cache: {
3226
3331
  Row: {
3227
3332
  connection_id: string;
@@ -4326,6 +4431,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
4326
4431
  referencedColumns: ["id"];
4327
4432
  }];
4328
4433
  };
4434
+ floriday_rate_limit_state: {
4435
+ Row: {
4436
+ bucket: string;
4437
+ last_refill_at: string;
4438
+ tokens: number;
4439
+ };
4440
+ Insert: {
4441
+ bucket: string;
4442
+ last_refill_at?: string;
4443
+ tokens: number;
4444
+ };
4445
+ Update: {
4446
+ bucket?: string;
4447
+ last_refill_at?: string;
4448
+ tokens?: number;
4449
+ };
4450
+ Relationships: [];
4451
+ };
4329
4452
  floriday_resource_schemas: {
4330
4453
  Row: {
4331
4454
  enums: import("../integrations/supabase/types").Json;
@@ -4749,6 +4872,60 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
4749
4872
  referencedColumns: ["id"];
4750
4873
  }];
4751
4874
  };
4875
+ flow_role_assignments: {
4876
+ Row: {
4877
+ created_at: string;
4878
+ id: string;
4879
+ role_id: string;
4880
+ user_id: string;
4881
+ };
4882
+ Insert: {
4883
+ created_at?: string;
4884
+ id?: string;
4885
+ role_id: string;
4886
+ user_id: string;
4887
+ };
4888
+ Update: {
4889
+ created_at?: string;
4890
+ id?: string;
4891
+ role_id?: string;
4892
+ user_id?: string;
4893
+ };
4894
+ Relationships: [{
4895
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4896
+ columns: ["role_id"];
4897
+ isOneToOne: false;
4898
+ referencedRelation: "flow_roles";
4899
+ referencedColumns: ["id"];
4900
+ }];
4901
+ };
4902
+ flow_roles: {
4903
+ Row: {
4904
+ created_at: string;
4905
+ description: string | null;
4906
+ id: string;
4907
+ module_access: string[];
4908
+ name: string;
4909
+ updated_at: string;
4910
+ };
4911
+ Insert: {
4912
+ created_at?: string;
4913
+ description?: string | null;
4914
+ id?: string;
4915
+ module_access?: string[];
4916
+ name: string;
4917
+ updated_at?: string;
4918
+ };
4919
+ Update: {
4920
+ created_at?: string;
4921
+ description?: string | null;
4922
+ id?: string;
4923
+ module_access?: string[];
4924
+ name?: string;
4925
+ updated_at?: string;
4926
+ };
4927
+ Relationships: [];
4928
+ };
4752
4929
  imap_accounts: {
4753
4930
  Row: {
4754
4931
  created_at: string;
@@ -5380,6 +5557,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5380
5557
  matched_customer_id: string | null;
5381
5558
  message_id: string;
5382
5559
  notes: string | null;
5560
+ order_number: string | null;
5383
5561
  parsed_payload: import("../integrations/supabase/types").Json | null;
5384
5562
  reviewed_at: string | null;
5385
5563
  reviewed_by: string | null;
@@ -5395,6 +5573,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5395
5573
  matched_customer_id?: string | null;
5396
5574
  message_id: string;
5397
5575
  notes?: string | null;
5576
+ order_number?: string | null;
5398
5577
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5399
5578
  reviewed_at?: string | null;
5400
5579
  reviewed_by?: string | null;
@@ -5410,6 +5589,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5410
5589
  matched_customer_id?: string | null;
5411
5590
  message_id?: string;
5412
5591
  notes?: string | null;
5592
+ order_number?: string | null;
5413
5593
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5414
5594
  reviewed_at?: string | null;
5415
5595
  reviewed_by?: string | null;
@@ -6266,6 +6446,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6266
6446
  id: string;
6267
6447
  items: import("../integrations/supabase/types").Json;
6268
6448
  notes: string | null;
6449
+ order_number: string | null;
6269
6450
  recipient_id: string;
6270
6451
  total_amount: number;
6271
6452
  };
@@ -6279,6 +6460,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6279
6460
  id?: string;
6280
6461
  items?: import("../integrations/supabase/types").Json;
6281
6462
  notes?: string | null;
6463
+ order_number?: string | null;
6282
6464
  recipient_id: string;
6283
6465
  total_amount?: number;
6284
6466
  };
@@ -6292,6 +6474,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6292
6474
  id?: string;
6293
6475
  items?: import("../integrations/supabase/types").Json;
6294
6476
  notes?: string | null;
6477
+ order_number?: string | null;
6295
6478
  recipient_id?: string;
6296
6479
  total_amount?: number;
6297
6480
  };
@@ -6451,6 +6634,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6451
6634
  crates_per_layer: number;
6452
6635
  created_at: string;
6453
6636
  id: string;
6637
+ layer_fraction: number;
6638
+ layer_share_pct: number;
6639
+ layers_per_cart: number;
6454
6640
  order_item_id: string | null;
6455
6641
  plants_per_crate: number;
6456
6642
  product_id: string | null;
@@ -6462,6 +6648,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6462
6648
  crates_per_layer?: number;
6463
6649
  created_at?: string;
6464
6650
  id?: string;
6651
+ layer_fraction?: number;
6652
+ layer_share_pct?: number;
6653
+ layers_per_cart?: number;
6465
6654
  order_item_id?: string | null;
6466
6655
  plants_per_crate?: number;
6467
6656
  product_id?: string | null;
@@ -6473,6 +6662,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6473
6662
  crates_per_layer?: number;
6474
6663
  created_at?: string;
6475
6664
  id?: string;
6665
+ layer_fraction?: number;
6666
+ layer_share_pct?: number;
6667
+ layers_per_cart?: number;
6476
6668
  order_item_id?: string | null;
6477
6669
  plants_per_crate?: number;
6478
6670
  product_id?: string | null;
@@ -6500,33 +6692,45 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6500
6692
  };
6501
6693
  order_carts: {
6502
6694
  Row: {
6695
+ algorithm_version: number;
6503
6696
  cart_number: number;
6504
6697
  created_at: string;
6505
6698
  id: string;
6506
6699
  is_auto: boolean;
6507
6700
  is_complete: boolean;
6508
6701
  notes: string | null;
6702
+ occupancy_pct: number;
6509
6703
  order_id: string;
6704
+ source: string;
6705
+ total_layers_used: number;
6510
6706
  updated_at: string;
6511
6707
  };
6512
6708
  Insert: {
6709
+ algorithm_version?: number;
6513
6710
  cart_number: number;
6514
6711
  created_at?: string;
6515
6712
  id?: string;
6516
6713
  is_auto?: boolean;
6517
6714
  is_complete?: boolean;
6518
6715
  notes?: string | null;
6716
+ occupancy_pct?: number;
6519
6717
  order_id: string;
6718
+ source?: string;
6719
+ total_layers_used?: number;
6520
6720
  updated_at?: string;
6521
6721
  };
6522
6722
  Update: {
6723
+ algorithm_version?: number;
6523
6724
  cart_number?: number;
6524
6725
  created_at?: string;
6525
6726
  id?: string;
6526
6727
  is_auto?: boolean;
6527
6728
  is_complete?: boolean;
6528
6729
  notes?: string | null;
6730
+ occupancy_pct?: number;
6529
6731
  order_id?: string;
6732
+ source?: string;
6733
+ total_layers_used?: number;
6530
6734
  updated_at?: string;
6531
6735
  };
6532
6736
  Relationships: [{
@@ -6679,6 +6883,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6679
6883
  order_date: string;
6680
6884
  order_number: string;
6681
6885
  order_source: string;
6886
+ plan_locked_at: string | null;
6887
+ plan_locked_ref: string | null;
6682
6888
  status: string;
6683
6889
  total: string;
6684
6890
  updated_at: string;
@@ -6695,6 +6901,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6695
6901
  order_date?: string;
6696
6902
  order_number: string;
6697
6903
  order_source?: string;
6904
+ plan_locked_at?: string | null;
6905
+ plan_locked_ref?: string | null;
6698
6906
  status?: string;
6699
6907
  total?: string;
6700
6908
  updated_at?: string;
@@ -6711,6 +6919,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6711
6919
  order_date?: string;
6712
6920
  order_number?: string;
6713
6921
  order_source?: string;
6922
+ plan_locked_at?: string | null;
6923
+ plan_locked_ref?: string | null;
6714
6924
  status?: string;
6715
6925
  total?: string;
6716
6926
  updated_at?: string;
@@ -7083,6 +7293,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7083
7293
  display_name: string | null;
7084
7294
  email: string | null;
7085
7295
  id: string;
7296
+ is_superadmin: boolean;
7086
7297
  notification_preferences: import("../integrations/supabase/types").Json;
7087
7298
  tenant_id: string | null;
7088
7299
  updated_at: string;
@@ -7092,6 +7303,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7092
7303
  display_name?: string | null;
7093
7304
  email?: string | null;
7094
7305
  id: string;
7306
+ is_superadmin?: boolean;
7095
7307
  notification_preferences?: import("../integrations/supabase/types").Json;
7096
7308
  tenant_id?: string | null;
7097
7309
  updated_at?: string;
@@ -7101,6 +7313,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7101
7313
  display_name?: string | null;
7102
7314
  email?: string | null;
7103
7315
  id?: string;
7316
+ is_superadmin?: boolean;
7104
7317
  notification_preferences?: import("../integrations/supabase/types").Json;
7105
7318
  tenant_id?: string | null;
7106
7319
  updated_at?: string;
@@ -7890,6 +8103,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7890
8103
  };
7891
8104
  Relationships: [];
7892
8105
  };
8106
+ sidebar_config: {
8107
+ Row: {
8108
+ id: string;
8109
+ module_order: string[];
8110
+ updated_at: string;
8111
+ };
8112
+ Insert: {
8113
+ id?: string;
8114
+ module_order?: string[];
8115
+ updated_at?: string;
8116
+ };
8117
+ Update: {
8118
+ id?: string;
8119
+ module_order?: string[];
8120
+ updated_at?: string;
8121
+ };
8122
+ Relationships: [];
8123
+ };
7893
8124
  stock_import_runs: {
7894
8125
  Row: {
7895
8126
  connection_id: string | null;
@@ -7948,7 +8179,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7948
8179
  reason: string | null;
7949
8180
  reserved_after: number | null;
7950
8181
  reserved_before: number | null;
7951
- trade_item_key: string;
8182
+ trade_item_key: string | null;
7952
8183
  };
7953
8184
  Insert: {
7954
8185
  connection_id?: string | null;
@@ -7965,7 +8196,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7965
8196
  reason?: string | null;
7966
8197
  reserved_after?: number | null;
7967
8198
  reserved_before?: number | null;
7968
- trade_item_key: string;
8199
+ trade_item_key?: string | null;
7969
8200
  };
7970
8201
  Update: {
7971
8202
  connection_id?: string | null;
@@ -7982,7 +8213,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7982
8213
  reason?: string | null;
7983
8214
  reserved_after?: number | null;
7984
8215
  reserved_before?: number | null;
7985
- trade_item_key?: string;
8216
+ trade_item_key?: string | null;
7986
8217
  };
7987
8218
  Relationships: [];
7988
8219
  };
@@ -8325,6 +8556,114 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8325
8556
  };
8326
8557
  Relationships: [];
8327
8558
  };
8559
+ trade_item_supply_lines: {
8560
+ Row: {
8561
+ available_quantity: number | null;
8562
+ connection_id: string;
8563
+ created_at: string;
8564
+ currency: string | null;
8565
+ endpoint_family: string | null;
8566
+ environment: string | null;
8567
+ id: string;
8568
+ last_error: string | null;
8569
+ last_status: number | null;
8570
+ packing_configuration_id: string | null;
8571
+ period_end: string | null;
8572
+ period_start: string | null;
8573
+ price_per_piece: number | null;
8574
+ sales_unit: string | null;
8575
+ supply_line_id: string | null;
8576
+ supply_type: string;
8577
+ trade_item_id: string;
8578
+ updated_at: string;
8579
+ user_id: string;
8580
+ week: number | null;
8581
+ year: number | null;
8582
+ };
8583
+ Insert: {
8584
+ available_quantity?: number | null;
8585
+ connection_id: string;
8586
+ created_at?: string;
8587
+ currency?: string | null;
8588
+ endpoint_family?: string | null;
8589
+ environment?: string | null;
8590
+ id?: string;
8591
+ last_error?: string | null;
8592
+ last_status?: number | null;
8593
+ packing_configuration_id?: string | null;
8594
+ period_end?: string | null;
8595
+ period_start?: string | null;
8596
+ price_per_piece?: number | null;
8597
+ sales_unit?: string | null;
8598
+ supply_line_id?: string | null;
8599
+ supply_type?: string;
8600
+ trade_item_id: string;
8601
+ updated_at?: string;
8602
+ user_id: string;
8603
+ week?: number | null;
8604
+ year?: number | null;
8605
+ };
8606
+ Update: {
8607
+ available_quantity?: number | null;
8608
+ connection_id?: string;
8609
+ created_at?: string;
8610
+ currency?: string | null;
8611
+ endpoint_family?: string | null;
8612
+ environment?: string | null;
8613
+ id?: string;
8614
+ last_error?: string | null;
8615
+ last_status?: number | null;
8616
+ packing_configuration_id?: string | null;
8617
+ period_end?: string | null;
8618
+ period_start?: string | null;
8619
+ price_per_piece?: number | null;
8620
+ sales_unit?: string | null;
8621
+ supply_line_id?: string | null;
8622
+ supply_type?: string;
8623
+ trade_item_id?: string;
8624
+ updated_at?: string;
8625
+ user_id?: string;
8626
+ week?: number | null;
8627
+ year?: number | null;
8628
+ };
8629
+ Relationships: [];
8630
+ };
8631
+ trade_item_warehouse_preferences: {
8632
+ Row: {
8633
+ connection_id: string;
8634
+ created_at: string;
8635
+ id: string;
8636
+ trade_item_id: string;
8637
+ updated_at: string;
8638
+ warehouse_id: string;
8639
+ warehouse_name: string | null;
8640
+ };
8641
+ Insert: {
8642
+ connection_id: string;
8643
+ created_at?: string;
8644
+ id?: string;
8645
+ trade_item_id: string;
8646
+ updated_at?: string;
8647
+ warehouse_id: string;
8648
+ warehouse_name?: string | null;
8649
+ };
8650
+ Update: {
8651
+ connection_id?: string;
8652
+ created_at?: string;
8653
+ id?: string;
8654
+ trade_item_id?: string;
8655
+ updated_at?: string;
8656
+ warehouse_id?: string;
8657
+ warehouse_name?: string | null;
8658
+ };
8659
+ Relationships: [{
8660
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8661
+ columns: ["connection_id"];
8662
+ isOneToOne: false;
8663
+ referencedRelation: "floriday_connections";
8664
+ referencedColumns: ["id"];
8665
+ }];
8666
+ };
8328
8667
  twinfield_connections: {
8329
8668
  Row: {
8330
8669
  access_token: string | null;
@@ -8644,6 +8983,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8644
8983
  default_invoice_type: string;
8645
8984
  default_payment_term_days: number;
8646
8985
  default_vat_code: string;
8986
+ invoice_enabled_ao: boolean;
8987
+ invoice_enabled_fo: boolean;
8988
+ invoice_enabled_ho: boolean;
8989
+ invoice_enabled_mo: boolean;
8647
8990
  updated_at: string;
8648
8991
  user_id: string;
8649
8992
  };
@@ -8653,6 +8996,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8653
8996
  default_invoice_type?: string;
8654
8997
  default_payment_term_days?: number;
8655
8998
  default_vat_code?: string;
8999
+ invoice_enabled_ao?: boolean;
9000
+ invoice_enabled_fo?: boolean;
9001
+ invoice_enabled_ho?: boolean;
9002
+ invoice_enabled_mo?: boolean;
8656
9003
  updated_at?: string;
8657
9004
  user_id: string;
8658
9005
  };
@@ -8662,6 +9009,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8662
9009
  default_invoice_type?: string;
8663
9010
  default_payment_term_days?: number;
8664
9011
  default_vat_code?: string;
9012
+ invoice_enabled_ao?: boolean;
9013
+ invoice_enabled_fo?: boolean;
9014
+ invoice_enabled_ho?: boolean;
9015
+ invoice_enabled_mo?: boolean;
8665
9016
  updated_at?: string;
8666
9017
  user_id?: string;
8667
9018
  };
@@ -9956,6 +10307,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9956
10307
  order_number: string;
9957
10308
  }[];
9958
10309
  };
10310
+ autolink_product_to_floriday: {
10311
+ Args: {
10312
+ p_product_id: string;
10313
+ };
10314
+ Returns: string;
10315
+ };
9959
10316
  backfill_open_order_reservations: {
9960
10317
  Args: never;
9961
10318
  Returns: {
@@ -9994,6 +10351,18 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9994
10351
  Args: never;
9995
10352
  Returns: number;
9996
10353
  };
10354
+ consume_floriday_rate_limit: {
10355
+ Args: {
10356
+ p_bucket: string;
10357
+ p_capacity: number;
10358
+ p_cost?: number;
10359
+ p_refill_per_sec: number;
10360
+ };
10361
+ Returns: {
10362
+ granted: boolean;
10363
+ wait_ms: number;
10364
+ }[];
10365
+ };
9997
10366
  control_get_todays_carts: {
9998
10367
  Args: never;
9999
10368
  Returns: {
@@ -10074,6 +10443,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10074
10443
  status: string;
10075
10444
  }[];
10076
10445
  };
10446
+ enqueue_cart_replan_if_unlocked: {
10447
+ Args: {
10448
+ p_order_id: string;
10449
+ };
10450
+ Returns: undefined;
10451
+ };
10077
10452
  ensure_trade_item_stock_row: {
10078
10453
  Args: {
10079
10454
  p_key: string;
@@ -10180,6 +10555,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10180
10555
  office_code: string;
10181
10556
  }[];
10182
10557
  };
10558
+ get_floricode_record_counts: {
10559
+ Args: never;
10560
+ Returns: {
10561
+ count: number;
10562
+ resource: string;
10563
+ }[];
10564
+ };
10183
10565
  get_floriday_agreements_active: {
10184
10566
  Args: {
10185
10567
  p_on_date?: string;
@@ -10271,6 +10653,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10271
10653
  };
10272
10654
  Returns: import("../integrations/supabase/types").Json;
10273
10655
  };
10656
+ get_offer_delivery_options: {
10657
+ Args: {
10658
+ p_code: string;
10659
+ };
10660
+ Returns: import("../integrations/supabase/types").Json;
10661
+ };
10274
10662
  get_offer_recipient_by_code: {
10275
10663
  Args: {
10276
10664
  p_code: string;
@@ -10335,6 +10723,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10335
10723
  Args: never;
10336
10724
  Returns: boolean;
10337
10725
  };
10726
+ is_superadmin: {
10727
+ Args: {
10728
+ _user_id: string;
10729
+ };
10730
+ Returns: boolean;
10731
+ };
10338
10732
  local_effective_price: {
10339
10733
  Args: {
10340
10734
  _customer_id: string;
@@ -10369,6 +10763,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10369
10763
  };
10370
10764
  Returns: string;
10371
10765
  };
10766
+ next_order_number_for_date: {
10767
+ Args: {
10768
+ p_created_at?: string;
10769
+ p_prefix: string;
10770
+ };
10771
+ Returns: string;
10772
+ };
10372
10773
  next_work_order_number: {
10373
10774
  Args: {
10374
10775
  p_parent_work_order_id?: string;
@@ -10376,6 +10777,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10376
10777
  };
10377
10778
  Returns: string;
10378
10779
  };
10780
+ normalize_order_source: {
10781
+ Args: {
10782
+ p_src: string;
10783
+ };
10784
+ Returns: string;
10785
+ };
10379
10786
  normalize_vat: {
10380
10787
  Args: {
10381
10788
  v: string;
@@ -10390,10 +10797,21 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10390
10797
  };
10391
10798
  Returns: boolean;
10392
10799
  };
10800
+ order_number_prefix: {
10801
+ Args: {
10802
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10803
+ p_order_source: string;
10804
+ };
10805
+ Returns: string;
10806
+ };
10393
10807
  pickstation_get_orders_raw: {
10394
10808
  Args: never;
10395
10809
  Returns: import("../integrations/supabase/types").Json;
10396
10810
  };
10811
+ pickstation_get_planning_context: {
10812
+ Args: never;
10813
+ Returns: import("../integrations/supabase/types").Json;
10814
+ };
10397
10815
  pickstation_get_settings: {
10398
10816
  Args: never;
10399
10817
  Returns: import("../integrations/supabase/types").Json;
@@ -10424,6 +10842,28 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10424
10842
  };
10425
10843
  Returns: undefined;
10426
10844
  };
10845
+ recompute_order_status: {
10846
+ Args: {
10847
+ p_order_id: string;
10848
+ };
10849
+ Returns: undefined;
10850
+ };
10851
+ recompute_reserved_for_order: {
10852
+ Args: {
10853
+ p_order_id: string;
10854
+ };
10855
+ Returns: undefined;
10856
+ };
10857
+ recompute_reserved_stock: {
10858
+ Args: {
10859
+ p_trade_item_key: string;
10860
+ };
10861
+ Returns: undefined;
10862
+ };
10863
+ refresh_external_customers_grouped: {
10864
+ Args: never;
10865
+ Returns: undefined;
10866
+ };
10427
10867
  refresh_floricode_derived_code_lists: {
10428
10868
  Args: never;
10429
10869
  Returns: {
@@ -10438,6 +10878,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10438
10878
  };
10439
10879
  Returns: number;
10440
10880
  };
10881
+ refresh_floricode_derived_for_products: {
10882
+ Args: {
10883
+ _product_ids: string[];
10884
+ };
10885
+ Returns: number;
10886
+ };
10441
10887
  reset_floriday_sync_cursor: {
10442
10888
  Args: {
10443
10889
  p_connection_id: string;
@@ -10445,6 +10891,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10445
10891
  };
10446
10892
  Returns: undefined;
10447
10893
  };
10894
+ resolve_product_id_for_item: {
10895
+ Args: {
10896
+ p_product_name: string;
10897
+ };
10898
+ Returns: string;
10899
+ };
10448
10900
  schedule_floriday_additional_services_sync: {
10449
10901
  Args: {
10450
10902
  p_apikey: string;
@@ -10722,6 +11174,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10722
11174
  };
10723
11175
  Returns: string[];
10724
11176
  };
11177
+ sync_cached_packing_from_product: {
11178
+ Args: {
11179
+ p_product_id: string;
11180
+ };
11181
+ Returns: undefined;
11182
+ };
11183
+ sync_order_cart_item_packing_from_product: {
11184
+ Args: {
11185
+ p_product_id: string;
11186
+ };
11187
+ Returns: undefined;
11188
+ };
11189
+ sync_product_packing_from_floriday_cache: {
11190
+ Args: {
11191
+ p_floriday_id: string;
11192
+ };
11193
+ Returns: undefined;
11194
+ };
10725
11195
  twinfield_decrypt: {
10726
11196
  Args: {
10727
11197
  cipher: string;
@@ -10734,6 +11204,17 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10734
11204
  };
10735
11205
  Returns: string;
10736
11206
  };
11207
+ upsert_auto_fulfillment_log: {
11208
+ Args: {
11209
+ p_connection_id: string;
11210
+ p_error?: string;
11211
+ p_fulfillment_order_id?: string;
11212
+ p_reason?: string;
11213
+ p_sales_order_id: string;
11214
+ p_status: string;
11215
+ };
11216
+ Returns: undefined;
11217
+ };
10737
11218
  };
10738
11219
  Enums: {
10739
11220
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";