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