@flowselections/floriday-afhandeling-module 1.0.13 → 1.0.14

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 (74) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts +12 -0
  2. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/AutoProcessStatus.js +103 -0
  4. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +3 -1
  5. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/ControleLijstPrint.js +41 -63
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.js +96 -4
  9. package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
  10. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/VervoerdersPage.js +2 -1
  12. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +3 -1
  13. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/WeekAgendaView.js +58 -17
  15. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +2 -1
  16. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  17. package/dist-lib/components/pickstation/PakbonTemplate.js +20 -17
  18. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
  19. package/dist-lib/components/pickstation/PickstationPage.js +57 -8
  20. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  21. package/dist-lib/components/settings/AfhandelingSettingsCard.js +14 -2
  22. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  23. package/dist-lib/hooks/useOrderPlanning.js +28 -11
  24. package/dist-lib/index.d.ts +2 -0
  25. package/dist-lib/index.d.ts.map +1 -1
  26. package/dist-lib/index.js +2 -0
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts +484 -3
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.d.ts +484 -3
  30. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.server.d.ts +484 -3
  32. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/types.d.ts +492 -3
  34. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  35. package/dist-lib/lib/afhandelingSettings.functions.d.ts +981 -7
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/afhandelingSettings.functions.js +28 -1
  38. package/dist-lib/lib/carrierPlanning.d.ts +25 -0
  39. package/dist-lib/lib/carrierPlanning.d.ts.map +1 -0
  40. package/dist-lib/lib/carrierPlanning.js +65 -0
  41. package/dist-lib/lib/carrierSignupMail.server.d.ts +0 -2
  42. package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -1
  43. package/dist-lib/lib/carrierSignupMail.server.js +53 -216
  44. package/dist-lib/lib/carriers.functions.d.ts +2420 -15
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/carriers.functions.js +5 -0
  47. package/dist-lib/lib/cartAssignments.functions.d.ts +2420 -15
  48. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/cartControl.functions.d.ts +4840 -30
  50. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/cartControl.functions.js +1 -1
  52. package/dist-lib/lib/cartRescheduling.d.ts.map +1 -1
  53. package/dist-lib/lib/cartRescheduling.js +8 -6
  54. package/dist-lib/lib/countries.d.ts +2 -0
  55. package/dist-lib/lib/countries.d.ts.map +1 -1
  56. package/dist-lib/lib/countries.js +51 -0
  57. package/dist-lib/lib/deliveryNotePrint.d.ts +26 -0
  58. package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -0
  59. package/dist-lib/lib/deliveryNotePrint.js +172 -0
  60. package/dist-lib/lib/floriday.functions.d.ts +492 -3
  61. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday.functions.js +126 -8
  63. package/dist-lib/lib/floridayAutoProcess.d.ts +30 -0
  64. package/dist-lib/lib/floridayAutoProcess.d.ts.map +1 -0
  65. package/dist-lib/lib/floridayAutoProcess.js +70 -0
  66. package/dist-lib/lib/pickstationI18n.d.ts +46 -0
  67. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  68. package/dist-lib/lib/pickstationI18n.js +251 -0
  69. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  70. package/dist-lib/lib/pickstationOrders.server.js +55 -19
  71. package/dist-lib/lib/planning.d.ts +34 -0
  72. package/dist-lib/lib/planning.d.ts.map +1 -1
  73. package/dist-lib/lib/planning.js +84 -0
  74. package/package.json +1 -1
@@ -9,13 +9,22 @@ export interface AfhandelingSettings {
9
9
  signupMailPurpose: string;
10
10
  /** ISO-dagnummers (1=ma … 7=zo) waarop gepickt mag worden. */
11
11
  pickWeekdays: number[];
12
+ /** Extra werkdagen pickduur wanneer een order stickers bevat. */
13
+ extraPickDaysWithStickers: number;
14
+ /** Pauzeert de automatische Floriday-verwerking (acknowledge → delivery order → fulfillment). */
15
+ autoProcessPaused: boolean;
16
+ /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */
17
+ autoPrintDeliveryNote: boolean;
12
18
  }
13
19
  export declare const getAfhandelingSettings: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
14
20
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
15
21
  Tables: {
16
22
  afhandeling_settings: {
17
23
  Row: {
24
+ auto_print_delivery_note: boolean;
25
+ auto_process_paused: boolean;
18
26
  created_at: string;
27
+ extra_pick_days_with_stickers: number;
19
28
  id: string;
20
29
  max_workdays_earlier_pick: number;
21
30
  pick_days_before_transport: number;
@@ -29,7 +38,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29
38
  user_id: string;
30
39
  };
31
40
  Insert: {
41
+ auto_print_delivery_note?: boolean;
42
+ auto_process_paused?: boolean;
32
43
  created_at?: string;
44
+ extra_pick_days_with_stickers?: number;
33
45
  id?: string;
34
46
  max_workdays_earlier_pick?: number;
35
47
  pick_days_before_transport?: number;
@@ -43,7 +55,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
43
55
  user_id: string;
44
56
  };
45
57
  Update: {
58
+ auto_print_delivery_note?: boolean;
59
+ auto_process_paused?: boolean;
46
60
  created_at?: string;
61
+ extra_pick_days_with_stickers?: number;
47
62
  id?: string;
48
63
  max_workdays_earlier_pick?: number;
49
64
  pick_days_before_transport?: number;
@@ -835,6 +850,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
835
850
  };
836
851
  Relationships: [];
837
852
  };
853
+ cart_replan_queue: {
854
+ Row: {
855
+ attempts: number;
856
+ last_error: string | null;
857
+ order_id: string;
858
+ processed_at: string | null;
859
+ requested_at: string;
860
+ };
861
+ Insert: {
862
+ attempts?: number;
863
+ last_error?: string | null;
864
+ order_id: string;
865
+ processed_at?: string | null;
866
+ requested_at?: string;
867
+ };
868
+ Update: {
869
+ attempts?: number;
870
+ last_error?: string | null;
871
+ order_id?: string;
872
+ processed_at?: string | null;
873
+ requested_at?: string;
874
+ };
875
+ Relationships: [{
876
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
877
+ columns: ["order_id"];
878
+ isOneToOne: true;
879
+ referencedRelation: "orders";
880
+ referencedColumns: ["id"];
881
+ }];
882
+ };
838
883
  collections: {
839
884
  Row: {
840
885
  created_at: string;
@@ -2960,34 +3005,52 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2960
3005
  Row: {
2961
3006
  catalog_key: string | null;
2962
3007
  catalog_url: string;
3008
+ client_id: string | null;
3009
+ client_secret_ciphertext: string | null;
3010
+ client_secret_last4: string | null;
2963
3011
  created_at: string;
2964
3012
  id: number;
2965
3013
  last_meta: import("../integrations/supabase/types").Json | null;
2966
3014
  last_test_at: string | null;
2967
3015
  last_test_error: string | null;
2968
3016
  last_test_ok: boolean | null;
3017
+ last_token_test_at: string | null;
3018
+ last_token_test_error: string | null;
3019
+ last_token_test_ok: boolean | null;
2969
3020
  updated_at: string;
2970
3021
  };
2971
3022
  Insert: {
2972
3023
  catalog_key?: string | null;
2973
3024
  catalog_url?: string;
3025
+ client_id?: string | null;
3026
+ client_secret_ciphertext?: string | null;
3027
+ client_secret_last4?: string | null;
2974
3028
  created_at?: string;
2975
3029
  id?: number;
2976
3030
  last_meta?: import("../integrations/supabase/types").Json | null;
2977
3031
  last_test_at?: string | null;
2978
3032
  last_test_error?: string | null;
2979
3033
  last_test_ok?: boolean | null;
3034
+ last_token_test_at?: string | null;
3035
+ last_token_test_error?: string | null;
3036
+ last_token_test_ok?: boolean | null;
2980
3037
  updated_at?: string;
2981
3038
  };
2982
3039
  Update: {
2983
3040
  catalog_key?: string | null;
2984
3041
  catalog_url?: string;
3042
+ client_id?: string | null;
3043
+ client_secret_ciphertext?: string | null;
3044
+ client_secret_last4?: string | null;
2985
3045
  created_at?: string;
2986
3046
  id?: number;
2987
3047
  last_meta?: import("../integrations/supabase/types").Json | null;
2988
3048
  last_test_at?: string | null;
2989
3049
  last_test_error?: string | null;
2990
3050
  last_test_ok?: boolean | null;
3051
+ last_token_test_at?: string | null;
3052
+ last_token_test_error?: string | null;
3053
+ last_token_test_ok?: boolean | null;
2991
3054
  updated_at?: string;
2992
3055
  };
2993
3056
  Relationships: [];
@@ -3220,6 +3283,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3220
3283
  referencedColumns: ["id"];
3221
3284
  }];
3222
3285
  };
3286
+ floriday_auto_fulfillment_log: {
3287
+ Row: {
3288
+ attempts: number;
3289
+ connection_id: string;
3290
+ created_at: string;
3291
+ error: string | null;
3292
+ fulfillment_order_id: string | null;
3293
+ id: string;
3294
+ last_attempt_at: string | null;
3295
+ reason: string | null;
3296
+ sales_order_id: string;
3297
+ status: string;
3298
+ updated_at: string;
3299
+ };
3300
+ Insert: {
3301
+ attempts?: number;
3302
+ connection_id: string;
3303
+ created_at?: string;
3304
+ error?: string | null;
3305
+ fulfillment_order_id?: string | null;
3306
+ id?: string;
3307
+ last_attempt_at?: string | null;
3308
+ reason?: string | null;
3309
+ sales_order_id: string;
3310
+ status?: string;
3311
+ updated_at?: string;
3312
+ };
3313
+ Update: {
3314
+ attempts?: number;
3315
+ connection_id?: string;
3316
+ created_at?: string;
3317
+ error?: string | null;
3318
+ fulfillment_order_id?: string | null;
3319
+ id?: string;
3320
+ last_attempt_at?: string | null;
3321
+ reason?: string | null;
3322
+ sales_order_id?: string;
3323
+ status?: string;
3324
+ updated_at?: string;
3325
+ };
3326
+ Relationships: [{
3327
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3328
+ columns: ["connection_id"];
3329
+ isOneToOne: false;
3330
+ referencedRelation: "floriday_connections";
3331
+ referencedColumns: ["id"];
3332
+ }];
3333
+ };
3223
3334
  floriday_base_items_cache: {
3224
3335
  Row: {
3225
3336
  connection_id: string;
@@ -4324,6 +4435,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4324
4435
  referencedColumns: ["id"];
4325
4436
  }];
4326
4437
  };
4438
+ floriday_rate_limit_state: {
4439
+ Row: {
4440
+ bucket: string;
4441
+ last_refill_at: string;
4442
+ tokens: number;
4443
+ };
4444
+ Insert: {
4445
+ bucket: string;
4446
+ last_refill_at?: string;
4447
+ tokens: number;
4448
+ };
4449
+ Update: {
4450
+ bucket?: string;
4451
+ last_refill_at?: string;
4452
+ tokens?: number;
4453
+ };
4454
+ Relationships: [];
4455
+ };
4327
4456
  floriday_resource_schemas: {
4328
4457
  Row: {
4329
4458
  enums: import("../integrations/supabase/types").Json;
@@ -4747,6 +4876,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4747
4876
  referencedColumns: ["id"];
4748
4877
  }];
4749
4878
  };
4879
+ flow_role_assignments: {
4880
+ Row: {
4881
+ created_at: string;
4882
+ id: string;
4883
+ role_id: string;
4884
+ user_id: string;
4885
+ };
4886
+ Insert: {
4887
+ created_at?: string;
4888
+ id?: string;
4889
+ role_id: string;
4890
+ user_id: string;
4891
+ };
4892
+ Update: {
4893
+ created_at?: string;
4894
+ id?: string;
4895
+ role_id?: string;
4896
+ user_id?: string;
4897
+ };
4898
+ Relationships: [{
4899
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4900
+ columns: ["role_id"];
4901
+ isOneToOne: false;
4902
+ referencedRelation: "flow_roles";
4903
+ referencedColumns: ["id"];
4904
+ }];
4905
+ };
4906
+ flow_roles: {
4907
+ Row: {
4908
+ created_at: string;
4909
+ description: string | null;
4910
+ id: string;
4911
+ module_access: string[];
4912
+ name: string;
4913
+ updated_at: string;
4914
+ };
4915
+ Insert: {
4916
+ created_at?: string;
4917
+ description?: string | null;
4918
+ id?: string;
4919
+ module_access?: string[];
4920
+ name: string;
4921
+ updated_at?: string;
4922
+ };
4923
+ Update: {
4924
+ created_at?: string;
4925
+ description?: string | null;
4926
+ id?: string;
4927
+ module_access?: string[];
4928
+ name?: string;
4929
+ updated_at?: string;
4930
+ };
4931
+ Relationships: [];
4932
+ };
4750
4933
  imap_accounts: {
4751
4934
  Row: {
4752
4935
  created_at: string;
@@ -5378,6 +5561,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5378
5561
  matched_customer_id: string | null;
5379
5562
  message_id: string;
5380
5563
  notes: string | null;
5564
+ order_number: string | null;
5381
5565
  parsed_payload: import("../integrations/supabase/types").Json | null;
5382
5566
  reviewed_at: string | null;
5383
5567
  reviewed_by: string | null;
@@ -5393,6 +5577,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5393
5577
  matched_customer_id?: string | null;
5394
5578
  message_id: string;
5395
5579
  notes?: string | null;
5580
+ order_number?: string | null;
5396
5581
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5397
5582
  reviewed_at?: string | null;
5398
5583
  reviewed_by?: string | null;
@@ -5408,6 +5593,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5408
5593
  matched_customer_id?: string | null;
5409
5594
  message_id?: string;
5410
5595
  notes?: string | null;
5596
+ order_number?: string | null;
5411
5597
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5412
5598
  reviewed_at?: string | null;
5413
5599
  reviewed_by?: string | null;
@@ -6264,6 +6450,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6264
6450
  id: string;
6265
6451
  items: import("../integrations/supabase/types").Json;
6266
6452
  notes: string | null;
6453
+ order_number: string | null;
6267
6454
  recipient_id: string;
6268
6455
  total_amount: number;
6269
6456
  };
@@ -6277,6 +6464,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6277
6464
  id?: string;
6278
6465
  items?: import("../integrations/supabase/types").Json;
6279
6466
  notes?: string | null;
6467
+ order_number?: string | null;
6280
6468
  recipient_id: string;
6281
6469
  total_amount?: number;
6282
6470
  };
@@ -6290,6 +6478,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6290
6478
  id?: string;
6291
6479
  items?: import("../integrations/supabase/types").Json;
6292
6480
  notes?: string | null;
6481
+ order_number?: string | null;
6293
6482
  recipient_id?: string;
6294
6483
  total_amount?: number;
6295
6484
  };
@@ -6449,6 +6638,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6449
6638
  crates_per_layer: number;
6450
6639
  created_at: string;
6451
6640
  id: string;
6641
+ layer_fraction: number;
6642
+ layer_share_pct: number;
6643
+ layers_per_cart: number;
6452
6644
  order_item_id: string | null;
6453
6645
  plants_per_crate: number;
6454
6646
  product_id: string | null;
@@ -6460,6 +6652,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6460
6652
  crates_per_layer?: number;
6461
6653
  created_at?: string;
6462
6654
  id?: string;
6655
+ layer_fraction?: number;
6656
+ layer_share_pct?: number;
6657
+ layers_per_cart?: number;
6463
6658
  order_item_id?: string | null;
6464
6659
  plants_per_crate?: number;
6465
6660
  product_id?: string | null;
@@ -6471,6 +6666,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6471
6666
  crates_per_layer?: number;
6472
6667
  created_at?: string;
6473
6668
  id?: string;
6669
+ layer_fraction?: number;
6670
+ layer_share_pct?: number;
6671
+ layers_per_cart?: number;
6474
6672
  order_item_id?: string | null;
6475
6673
  plants_per_crate?: number;
6476
6674
  product_id?: string | null;
@@ -6498,33 +6696,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6498
6696
  };
6499
6697
  order_carts: {
6500
6698
  Row: {
6699
+ algorithm_version: number;
6501
6700
  cart_number: number;
6502
6701
  created_at: string;
6503
6702
  id: string;
6504
6703
  is_auto: boolean;
6505
6704
  is_complete: boolean;
6506
6705
  notes: string | null;
6706
+ occupancy_pct: number;
6507
6707
  order_id: string;
6708
+ source: string;
6709
+ total_layers_used: number;
6508
6710
  updated_at: string;
6509
6711
  };
6510
6712
  Insert: {
6713
+ algorithm_version?: number;
6511
6714
  cart_number: number;
6512
6715
  created_at?: string;
6513
6716
  id?: string;
6514
6717
  is_auto?: boolean;
6515
6718
  is_complete?: boolean;
6516
6719
  notes?: string | null;
6720
+ occupancy_pct?: number;
6517
6721
  order_id: string;
6722
+ source?: string;
6723
+ total_layers_used?: number;
6518
6724
  updated_at?: string;
6519
6725
  };
6520
6726
  Update: {
6727
+ algorithm_version?: number;
6521
6728
  cart_number?: number;
6522
6729
  created_at?: string;
6523
6730
  id?: string;
6524
6731
  is_auto?: boolean;
6525
6732
  is_complete?: boolean;
6526
6733
  notes?: string | null;
6734
+ occupancy_pct?: number;
6527
6735
  order_id?: string;
6736
+ source?: string;
6737
+ total_layers_used?: number;
6528
6738
  updated_at?: string;
6529
6739
  };
6530
6740
  Relationships: [{
@@ -6677,6 +6887,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6677
6887
  order_date: string;
6678
6888
  order_number: string;
6679
6889
  order_source: string;
6890
+ plan_locked_at: string | null;
6891
+ plan_locked_ref: string | null;
6680
6892
  status: string;
6681
6893
  total: string;
6682
6894
  updated_at: string;
@@ -6693,6 +6905,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6693
6905
  order_date?: string;
6694
6906
  order_number: string;
6695
6907
  order_source?: string;
6908
+ plan_locked_at?: string | null;
6909
+ plan_locked_ref?: string | null;
6696
6910
  status?: string;
6697
6911
  total?: string;
6698
6912
  updated_at?: string;
@@ -6709,6 +6923,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6709
6923
  order_date?: string;
6710
6924
  order_number?: string;
6711
6925
  order_source?: string;
6926
+ plan_locked_at?: string | null;
6927
+ plan_locked_ref?: string | null;
6712
6928
  status?: string;
6713
6929
  total?: string;
6714
6930
  updated_at?: string;
@@ -7081,6 +7297,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7081
7297
  display_name: string | null;
7082
7298
  email: string | null;
7083
7299
  id: string;
7300
+ is_superadmin: boolean;
7084
7301
  notification_preferences: import("../integrations/supabase/types").Json;
7085
7302
  tenant_id: string | null;
7086
7303
  updated_at: string;
@@ -7090,6 +7307,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7090
7307
  display_name?: string | null;
7091
7308
  email?: string | null;
7092
7309
  id: string;
7310
+ is_superadmin?: boolean;
7093
7311
  notification_preferences?: import("../integrations/supabase/types").Json;
7094
7312
  tenant_id?: string | null;
7095
7313
  updated_at?: string;
@@ -7099,6 +7317,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7099
7317
  display_name?: string | null;
7100
7318
  email?: string | null;
7101
7319
  id?: string;
7320
+ is_superadmin?: boolean;
7102
7321
  notification_preferences?: import("../integrations/supabase/types").Json;
7103
7322
  tenant_id?: string | null;
7104
7323
  updated_at?: string;
@@ -7888,6 +8107,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7888
8107
  };
7889
8108
  Relationships: [];
7890
8109
  };
8110
+ sidebar_config: {
8111
+ Row: {
8112
+ id: string;
8113
+ module_order: string[];
8114
+ updated_at: string;
8115
+ };
8116
+ Insert: {
8117
+ id?: string;
8118
+ module_order?: string[];
8119
+ updated_at?: string;
8120
+ };
8121
+ Update: {
8122
+ id?: string;
8123
+ module_order?: string[];
8124
+ updated_at?: string;
8125
+ };
8126
+ Relationships: [];
8127
+ };
7891
8128
  stock_import_runs: {
7892
8129
  Row: {
7893
8130
  connection_id: string | null;
@@ -7946,7 +8183,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7946
8183
  reason: string | null;
7947
8184
  reserved_after: number | null;
7948
8185
  reserved_before: number | null;
7949
- trade_item_key: string;
8186
+ trade_item_key: string | null;
7950
8187
  };
7951
8188
  Insert: {
7952
8189
  connection_id?: string | null;
@@ -7963,7 +8200,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7963
8200
  reason?: string | null;
7964
8201
  reserved_after?: number | null;
7965
8202
  reserved_before?: number | null;
7966
- trade_item_key: string;
8203
+ trade_item_key?: string | null;
7967
8204
  };
7968
8205
  Update: {
7969
8206
  connection_id?: string | null;
@@ -7980,7 +8217,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7980
8217
  reason?: string | null;
7981
8218
  reserved_after?: number | null;
7982
8219
  reserved_before?: number | null;
7983
- trade_item_key?: string;
8220
+ trade_item_key?: string | null;
7984
8221
  };
7985
8222
  Relationships: [];
7986
8223
  };
@@ -8323,6 +8560,114 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8323
8560
  };
8324
8561
  Relationships: [];
8325
8562
  };
8563
+ trade_item_supply_lines: {
8564
+ Row: {
8565
+ available_quantity: number | null;
8566
+ connection_id: string;
8567
+ created_at: string;
8568
+ currency: string | null;
8569
+ endpoint_family: string | null;
8570
+ environment: string | null;
8571
+ id: string;
8572
+ last_error: string | null;
8573
+ last_status: number | null;
8574
+ packing_configuration_id: string | null;
8575
+ period_end: string | null;
8576
+ period_start: string | null;
8577
+ price_per_piece: number | null;
8578
+ sales_unit: string | null;
8579
+ supply_line_id: string | null;
8580
+ supply_type: string;
8581
+ trade_item_id: string;
8582
+ updated_at: string;
8583
+ user_id: string;
8584
+ week: number | null;
8585
+ year: number | null;
8586
+ };
8587
+ Insert: {
8588
+ available_quantity?: number | null;
8589
+ connection_id: string;
8590
+ created_at?: string;
8591
+ currency?: string | null;
8592
+ endpoint_family?: string | null;
8593
+ environment?: string | null;
8594
+ id?: string;
8595
+ last_error?: string | null;
8596
+ last_status?: number | null;
8597
+ packing_configuration_id?: string | null;
8598
+ period_end?: string | null;
8599
+ period_start?: string | null;
8600
+ price_per_piece?: number | null;
8601
+ sales_unit?: string | null;
8602
+ supply_line_id?: string | null;
8603
+ supply_type?: string;
8604
+ trade_item_id: string;
8605
+ updated_at?: string;
8606
+ user_id: string;
8607
+ week?: number | null;
8608
+ year?: number | null;
8609
+ };
8610
+ Update: {
8611
+ available_quantity?: number | null;
8612
+ connection_id?: string;
8613
+ created_at?: string;
8614
+ currency?: string | null;
8615
+ endpoint_family?: string | null;
8616
+ environment?: string | null;
8617
+ id?: string;
8618
+ last_error?: string | null;
8619
+ last_status?: number | null;
8620
+ packing_configuration_id?: string | null;
8621
+ period_end?: string | null;
8622
+ period_start?: string | null;
8623
+ price_per_piece?: number | null;
8624
+ sales_unit?: string | null;
8625
+ supply_line_id?: string | null;
8626
+ supply_type?: string;
8627
+ trade_item_id?: string;
8628
+ updated_at?: string;
8629
+ user_id?: string;
8630
+ week?: number | null;
8631
+ year?: number | null;
8632
+ };
8633
+ Relationships: [];
8634
+ };
8635
+ trade_item_warehouse_preferences: {
8636
+ Row: {
8637
+ connection_id: string;
8638
+ created_at: string;
8639
+ id: string;
8640
+ trade_item_id: string;
8641
+ updated_at: string;
8642
+ warehouse_id: string;
8643
+ warehouse_name: string | null;
8644
+ };
8645
+ Insert: {
8646
+ connection_id: string;
8647
+ created_at?: string;
8648
+ id?: string;
8649
+ trade_item_id: string;
8650
+ updated_at?: string;
8651
+ warehouse_id: string;
8652
+ warehouse_name?: string | null;
8653
+ };
8654
+ Update: {
8655
+ connection_id?: string;
8656
+ created_at?: string;
8657
+ id?: string;
8658
+ trade_item_id?: string;
8659
+ updated_at?: string;
8660
+ warehouse_id?: string;
8661
+ warehouse_name?: string | null;
8662
+ };
8663
+ Relationships: [{
8664
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8665
+ columns: ["connection_id"];
8666
+ isOneToOne: false;
8667
+ referencedRelation: "floriday_connections";
8668
+ referencedColumns: ["id"];
8669
+ }];
8670
+ };
8326
8671
  twinfield_connections: {
8327
8672
  Row: {
8328
8673
  access_token: string | null;
@@ -8642,6 +8987,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8642
8987
  default_invoice_type: string;
8643
8988
  default_payment_term_days: number;
8644
8989
  default_vat_code: string;
8990
+ invoice_enabled_ao: boolean;
8991
+ invoice_enabled_fo: boolean;
8992
+ invoice_enabled_ho: boolean;
8993
+ invoice_enabled_mo: boolean;
8645
8994
  updated_at: string;
8646
8995
  user_id: string;
8647
8996
  };
@@ -8651,6 +9000,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8651
9000
  default_invoice_type?: string;
8652
9001
  default_payment_term_days?: number;
8653
9002
  default_vat_code?: string;
9003
+ invoice_enabled_ao?: boolean;
9004
+ invoice_enabled_fo?: boolean;
9005
+ invoice_enabled_ho?: boolean;
9006
+ invoice_enabled_mo?: boolean;
8654
9007
  updated_at?: string;
8655
9008
  user_id: string;
8656
9009
  };
@@ -8660,6 +9013,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8660
9013
  default_invoice_type?: string;
8661
9014
  default_payment_term_days?: number;
8662
9015
  default_vat_code?: string;
9016
+ invoice_enabled_ao?: boolean;
9017
+ invoice_enabled_fo?: boolean;
9018
+ invoice_enabled_ho?: boolean;
9019
+ invoice_enabled_mo?: boolean;
8663
9020
  updated_at?: string;
8664
9021
  user_id?: string;
8665
9022
  };
@@ -9954,6 +10311,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9954
10311
  order_number: string;
9955
10312
  }[];
9956
10313
  };
10314
+ autolink_product_to_floriday: {
10315
+ Args: {
10316
+ p_product_id: string;
10317
+ };
10318
+ Returns: string;
10319
+ };
9957
10320
  backfill_open_order_reservations: {
9958
10321
  Args: never;
9959
10322
  Returns: {
@@ -9992,6 +10355,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9992
10355
  Args: never;
9993
10356
  Returns: number;
9994
10357
  };
10358
+ consume_floriday_rate_limit: {
10359
+ Args: {
10360
+ p_bucket: string;
10361
+ p_capacity: number;
10362
+ p_cost?: number;
10363
+ p_refill_per_sec: number;
10364
+ };
10365
+ Returns: {
10366
+ granted: boolean;
10367
+ wait_ms: number;
10368
+ }[];
10369
+ };
9995
10370
  control_get_todays_carts: {
9996
10371
  Args: never;
9997
10372
  Returns: {
@@ -10072,6 +10447,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10072
10447
  status: string;
10073
10448
  }[];
10074
10449
  };
10450
+ enqueue_cart_replan_if_unlocked: {
10451
+ Args: {
10452
+ p_order_id: string;
10453
+ };
10454
+ Returns: undefined;
10455
+ };
10075
10456
  ensure_trade_item_stock_row: {
10076
10457
  Args: {
10077
10458
  p_key: string;
@@ -10178,6 +10559,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10178
10559
  office_code: string;
10179
10560
  }[];
10180
10561
  };
10562
+ get_floricode_record_counts: {
10563
+ Args: never;
10564
+ Returns: {
10565
+ count: number;
10566
+ resource: string;
10567
+ }[];
10568
+ };
10181
10569
  get_floriday_agreements_active: {
10182
10570
  Args: {
10183
10571
  p_on_date?: string;
@@ -10269,6 +10657,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10269
10657
  };
10270
10658
  Returns: import("../integrations/supabase/types").Json;
10271
10659
  };
10660
+ get_offer_delivery_options: {
10661
+ Args: {
10662
+ p_code: string;
10663
+ };
10664
+ Returns: import("../integrations/supabase/types").Json;
10665
+ };
10272
10666
  get_offer_recipient_by_code: {
10273
10667
  Args: {
10274
10668
  p_code: string;
@@ -10333,6 +10727,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10333
10727
  Args: never;
10334
10728
  Returns: boolean;
10335
10729
  };
10730
+ is_superadmin: {
10731
+ Args: {
10732
+ _user_id: string;
10733
+ };
10734
+ Returns: boolean;
10735
+ };
10336
10736
  local_effective_price: {
10337
10737
  Args: {
10338
10738
  _customer_id: string;
@@ -10367,6 +10767,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10367
10767
  };
10368
10768
  Returns: string;
10369
10769
  };
10770
+ next_order_number_for_date: {
10771
+ Args: {
10772
+ p_created_at?: string;
10773
+ p_prefix: string;
10774
+ };
10775
+ Returns: string;
10776
+ };
10370
10777
  next_work_order_number: {
10371
10778
  Args: {
10372
10779
  p_parent_work_order_id?: string;
@@ -10374,6 +10781,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10374
10781
  };
10375
10782
  Returns: string;
10376
10783
  };
10784
+ normalize_order_source: {
10785
+ Args: {
10786
+ p_src: string;
10787
+ };
10788
+ Returns: string;
10789
+ };
10377
10790
  normalize_vat: {
10378
10791
  Args: {
10379
10792
  v: string;
@@ -10388,11 +10801,22 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10388
10801
  };
10389
10802
  Returns: boolean;
10390
10803
  };
10804
+ order_number_prefix: {
10805
+ Args: {
10806
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10807
+ p_order_source: string;
10808
+ };
10809
+ Returns: string;
10810
+ };
10391
10811
  pickstation_get_orders_raw: {
10392
10812
  Args: never;
10393
10813
  Returns: import("../integrations/supabase/types").Json;
10394
10814
  };
10395
- pickstation_get_settings: {
10815
+ pickstation_get_planning_context: {
10816
+ Args: never;
10817
+ Returns: import("../integrations/supabase/types").Json;
10818
+ };
10819
+ pickstation_get_settings: {
10396
10820
  Args: never;
10397
10821
  Returns: import("../integrations/supabase/types").Json;
10398
10822
  };
@@ -10422,6 +10846,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10422
10846
  };
10423
10847
  Returns: undefined;
10424
10848
  };
10849
+ recompute_order_status: {
10850
+ Args: {
10851
+ p_order_id: string;
10852
+ };
10853
+ Returns: undefined;
10854
+ };
10855
+ recompute_reserved_for_order: {
10856
+ Args: {
10857
+ p_order_id: string;
10858
+ };
10859
+ Returns: undefined;
10860
+ };
10861
+ recompute_reserved_stock: {
10862
+ Args: {
10863
+ p_trade_item_key: string;
10864
+ };
10865
+ Returns: undefined;
10866
+ };
10867
+ refresh_external_customers_grouped: {
10868
+ Args: never;
10869
+ Returns: undefined;
10870
+ };
10425
10871
  refresh_floricode_derived_code_lists: {
10426
10872
  Args: never;
10427
10873
  Returns: {
@@ -10436,6 +10882,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10436
10882
  };
10437
10883
  Returns: number;
10438
10884
  };
10885
+ refresh_floricode_derived_for_products: {
10886
+ Args: {
10887
+ _product_ids: string[];
10888
+ };
10889
+ Returns: number;
10890
+ };
10439
10891
  reset_floriday_sync_cursor: {
10440
10892
  Args: {
10441
10893
  p_connection_id: string;
@@ -10443,6 +10895,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10443
10895
  };
10444
10896
  Returns: undefined;
10445
10897
  };
10898
+ resolve_product_id_for_item: {
10899
+ Args: {
10900
+ p_product_name: string;
10901
+ };
10902
+ Returns: string;
10903
+ };
10446
10904
  schedule_floriday_additional_services_sync: {
10447
10905
  Args: {
10448
10906
  p_apikey: string;
@@ -10720,6 +11178,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10720
11178
  };
10721
11179
  Returns: string[];
10722
11180
  };
11181
+ sync_cached_packing_from_product: {
11182
+ Args: {
11183
+ p_product_id: string;
11184
+ };
11185
+ Returns: undefined;
11186
+ };
11187
+ sync_order_cart_item_packing_from_product: {
11188
+ Args: {
11189
+ p_product_id: string;
11190
+ };
11191
+ Returns: undefined;
11192
+ };
11193
+ sync_product_packing_from_floriday_cache: {
11194
+ Args: {
11195
+ p_floriday_id: string;
11196
+ };
11197
+ Returns: undefined;
11198
+ };
10723
11199
  twinfield_decrypt: {
10724
11200
  Args: {
10725
11201
  cipher: string;
@@ -10732,6 +11208,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10732
11208
  };
10733
11209
  Returns: string;
10734
11210
  };
11211
+ upsert_auto_fulfillment_log: {
11212
+ Args: {
11213
+ p_connection_id: string;
11214
+ p_error?: string;
11215
+ p_fulfillment_order_id?: string;
11216
+ p_reason?: string;
11217
+ p_sales_order_id: string;
11218
+ p_status: string;
11219
+ };
11220
+ Returns: undefined;
11221
+ };
10735
11222
  };
10736
11223
  Enums: {
10737
11224
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -10751,7 +11238,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10751
11238
  Tables: {
10752
11239
  afhandeling_settings: {
10753
11240
  Row: {
11241
+ auto_print_delivery_note: boolean;
11242
+ auto_process_paused: boolean;
10754
11243
  created_at: string;
11244
+ extra_pick_days_with_stickers: number;
10755
11245
  id: string;
10756
11246
  max_workdays_earlier_pick: number;
10757
11247
  pick_days_before_transport: number;
@@ -10765,7 +11255,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10765
11255
  user_id: string;
10766
11256
  };
10767
11257
  Insert: {
11258
+ auto_print_delivery_note?: boolean;
11259
+ auto_process_paused?: boolean;
10768
11260
  created_at?: string;
11261
+ extra_pick_days_with_stickers?: number;
10769
11262
  id?: string;
10770
11263
  max_workdays_earlier_pick?: number;
10771
11264
  pick_days_before_transport?: number;
@@ -10779,7 +11272,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10779
11272
  user_id: string;
10780
11273
  };
10781
11274
  Update: {
11275
+ auto_print_delivery_note?: boolean;
11276
+ auto_process_paused?: boolean;
10782
11277
  created_at?: string;
11278
+ extra_pick_days_with_stickers?: number;
10783
11279
  id?: string;
10784
11280
  max_workdays_earlier_pick?: number;
10785
11281
  pick_days_before_transport?: number;
@@ -11571,6 +12067,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
11571
12067
  };
11572
12068
  Relationships: [];
11573
12069
  };
12070
+ cart_replan_queue: {
12071
+ Row: {
12072
+ attempts: number;
12073
+ last_error: string | null;
12074
+ order_id: string;
12075
+ processed_at: string | null;
12076
+ requested_at: string;
12077
+ };
12078
+ Insert: {
12079
+ attempts?: number;
12080
+ last_error?: string | null;
12081
+ order_id: string;
12082
+ processed_at?: string | null;
12083
+ requested_at?: string;
12084
+ };
12085
+ Update: {
12086
+ attempts?: number;
12087
+ last_error?: string | null;
12088
+ order_id?: string;
12089
+ processed_at?: string | null;
12090
+ requested_at?: string;
12091
+ };
12092
+ Relationships: [{
12093
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
12094
+ columns: ["order_id"];
12095
+ isOneToOne: true;
12096
+ referencedRelation: "orders";
12097
+ referencedColumns: ["id"];
12098
+ }];
12099
+ };
11574
12100
  collections: {
11575
12101
  Row: {
11576
12102
  created_at: string;
@@ -13696,34 +14222,52 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
13696
14222
  Row: {
13697
14223
  catalog_key: string | null;
13698
14224
  catalog_url: string;
14225
+ client_id: string | null;
14226
+ client_secret_ciphertext: string | null;
14227
+ client_secret_last4: string | null;
13699
14228
  created_at: string;
13700
14229
  id: number;
13701
14230
  last_meta: import("../integrations/supabase/types").Json | null;
13702
14231
  last_test_at: string | null;
13703
14232
  last_test_error: string | null;
13704
14233
  last_test_ok: boolean | null;
14234
+ last_token_test_at: string | null;
14235
+ last_token_test_error: string | null;
14236
+ last_token_test_ok: boolean | null;
13705
14237
  updated_at: string;
13706
14238
  };
13707
14239
  Insert: {
13708
14240
  catalog_key?: string | null;
13709
14241
  catalog_url?: string;
14242
+ client_id?: string | null;
14243
+ client_secret_ciphertext?: string | null;
14244
+ client_secret_last4?: string | null;
13710
14245
  created_at?: string;
13711
14246
  id?: number;
13712
14247
  last_meta?: import("../integrations/supabase/types").Json | null;
13713
14248
  last_test_at?: string | null;
13714
14249
  last_test_error?: string | null;
13715
14250
  last_test_ok?: boolean | null;
14251
+ last_token_test_at?: string | null;
14252
+ last_token_test_error?: string | null;
14253
+ last_token_test_ok?: boolean | null;
13716
14254
  updated_at?: string;
13717
14255
  };
13718
14256
  Update: {
13719
14257
  catalog_key?: string | null;
13720
14258
  catalog_url?: string;
14259
+ client_id?: string | null;
14260
+ client_secret_ciphertext?: string | null;
14261
+ client_secret_last4?: string | null;
13721
14262
  created_at?: string;
13722
14263
  id?: number;
13723
14264
  last_meta?: import("../integrations/supabase/types").Json | null;
13724
14265
  last_test_at?: string | null;
13725
14266
  last_test_error?: string | null;
13726
14267
  last_test_ok?: boolean | null;
14268
+ last_token_test_at?: string | null;
14269
+ last_token_test_error?: string | null;
14270
+ last_token_test_ok?: boolean | null;
13727
14271
  updated_at?: string;
13728
14272
  };
13729
14273
  Relationships: [];
@@ -13956,6 +14500,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
13956
14500
  referencedColumns: ["id"];
13957
14501
  }];
13958
14502
  };
14503
+ floriday_auto_fulfillment_log: {
14504
+ Row: {
14505
+ attempts: number;
14506
+ connection_id: string;
14507
+ created_at: string;
14508
+ error: string | null;
14509
+ fulfillment_order_id: string | null;
14510
+ id: string;
14511
+ last_attempt_at: string | null;
14512
+ reason: string | null;
14513
+ sales_order_id: string;
14514
+ status: string;
14515
+ updated_at: string;
14516
+ };
14517
+ Insert: {
14518
+ attempts?: number;
14519
+ connection_id: string;
14520
+ created_at?: string;
14521
+ error?: string | null;
14522
+ fulfillment_order_id?: string | null;
14523
+ id?: string;
14524
+ last_attempt_at?: string | null;
14525
+ reason?: string | null;
14526
+ sales_order_id: string;
14527
+ status?: string;
14528
+ updated_at?: string;
14529
+ };
14530
+ Update: {
14531
+ attempts?: number;
14532
+ connection_id?: string;
14533
+ created_at?: string;
14534
+ error?: string | null;
14535
+ fulfillment_order_id?: string | null;
14536
+ id?: string;
14537
+ last_attempt_at?: string | null;
14538
+ reason?: string | null;
14539
+ sales_order_id?: string;
14540
+ status?: string;
14541
+ updated_at?: string;
14542
+ };
14543
+ Relationships: [{
14544
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
14545
+ columns: ["connection_id"];
14546
+ isOneToOne: false;
14547
+ referencedRelation: "floriday_connections";
14548
+ referencedColumns: ["id"];
14549
+ }];
14550
+ };
13959
14551
  floriday_base_items_cache: {
13960
14552
  Row: {
13961
14553
  connection_id: string;
@@ -15060,6 +15652,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15060
15652
  referencedColumns: ["id"];
15061
15653
  }];
15062
15654
  };
15655
+ floriday_rate_limit_state: {
15656
+ Row: {
15657
+ bucket: string;
15658
+ last_refill_at: string;
15659
+ tokens: number;
15660
+ };
15661
+ Insert: {
15662
+ bucket: string;
15663
+ last_refill_at?: string;
15664
+ tokens: number;
15665
+ };
15666
+ Update: {
15667
+ bucket?: string;
15668
+ last_refill_at?: string;
15669
+ tokens?: number;
15670
+ };
15671
+ Relationships: [];
15672
+ };
15063
15673
  floriday_resource_schemas: {
15064
15674
  Row: {
15065
15675
  enums: import("../integrations/supabase/types").Json;
@@ -15483,6 +16093,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15483
16093
  referencedColumns: ["id"];
15484
16094
  }];
15485
16095
  };
16096
+ flow_role_assignments: {
16097
+ Row: {
16098
+ created_at: string;
16099
+ id: string;
16100
+ role_id: string;
16101
+ user_id: string;
16102
+ };
16103
+ Insert: {
16104
+ created_at?: string;
16105
+ id?: string;
16106
+ role_id: string;
16107
+ user_id: string;
16108
+ };
16109
+ Update: {
16110
+ created_at?: string;
16111
+ id?: string;
16112
+ role_id?: string;
16113
+ user_id?: string;
16114
+ };
16115
+ Relationships: [{
16116
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
16117
+ columns: ["role_id"];
16118
+ isOneToOne: false;
16119
+ referencedRelation: "flow_roles";
16120
+ referencedColumns: ["id"];
16121
+ }];
16122
+ };
16123
+ flow_roles: {
16124
+ Row: {
16125
+ created_at: string;
16126
+ description: string | null;
16127
+ id: string;
16128
+ module_access: string[];
16129
+ name: string;
16130
+ updated_at: string;
16131
+ };
16132
+ Insert: {
16133
+ created_at?: string;
16134
+ description?: string | null;
16135
+ id?: string;
16136
+ module_access?: string[];
16137
+ name: string;
16138
+ updated_at?: string;
16139
+ };
16140
+ Update: {
16141
+ created_at?: string;
16142
+ description?: string | null;
16143
+ id?: string;
16144
+ module_access?: string[];
16145
+ name?: string;
16146
+ updated_at?: string;
16147
+ };
16148
+ Relationships: [];
16149
+ };
15486
16150
  imap_accounts: {
15487
16151
  Row: {
15488
16152
  created_at: string;
@@ -16114,6 +16778,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16114
16778
  matched_customer_id: string | null;
16115
16779
  message_id: string;
16116
16780
  notes: string | null;
16781
+ order_number: string | null;
16117
16782
  parsed_payload: import("../integrations/supabase/types").Json | null;
16118
16783
  reviewed_at: string | null;
16119
16784
  reviewed_by: string | null;
@@ -16129,6 +16794,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16129
16794
  matched_customer_id?: string | null;
16130
16795
  message_id: string;
16131
16796
  notes?: string | null;
16797
+ order_number?: string | null;
16132
16798
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16133
16799
  reviewed_at?: string | null;
16134
16800
  reviewed_by?: string | null;
@@ -16144,6 +16810,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16144
16810
  matched_customer_id?: string | null;
16145
16811
  message_id?: string;
16146
16812
  notes?: string | null;
16813
+ order_number?: string | null;
16147
16814
  parsed_payload?: import("../integrations/supabase/types").Json | null;
16148
16815
  reviewed_at?: string | null;
16149
16816
  reviewed_by?: string | null;
@@ -17000,6 +17667,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17000
17667
  id: string;
17001
17668
  items: import("../integrations/supabase/types").Json;
17002
17669
  notes: string | null;
17670
+ order_number: string | null;
17003
17671
  recipient_id: string;
17004
17672
  total_amount: number;
17005
17673
  };
@@ -17013,6 +17681,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17013
17681
  id?: string;
17014
17682
  items?: import("../integrations/supabase/types").Json;
17015
17683
  notes?: string | null;
17684
+ order_number?: string | null;
17016
17685
  recipient_id: string;
17017
17686
  total_amount?: number;
17018
17687
  };
@@ -17026,6 +17695,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17026
17695
  id?: string;
17027
17696
  items?: import("../integrations/supabase/types").Json;
17028
17697
  notes?: string | null;
17698
+ order_number?: string | null;
17029
17699
  recipient_id?: string;
17030
17700
  total_amount?: number;
17031
17701
  };
@@ -17185,6 +17855,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17185
17855
  crates_per_layer: number;
17186
17856
  created_at: string;
17187
17857
  id: string;
17858
+ layer_fraction: number;
17859
+ layer_share_pct: number;
17860
+ layers_per_cart: number;
17188
17861
  order_item_id: string | null;
17189
17862
  plants_per_crate: number;
17190
17863
  product_id: string | null;
@@ -17196,6 +17869,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17196
17869
  crates_per_layer?: number;
17197
17870
  created_at?: string;
17198
17871
  id?: string;
17872
+ layer_fraction?: number;
17873
+ layer_share_pct?: number;
17874
+ layers_per_cart?: number;
17199
17875
  order_item_id?: string | null;
17200
17876
  plants_per_crate?: number;
17201
17877
  product_id?: string | null;
@@ -17207,6 +17883,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17207
17883
  crates_per_layer?: number;
17208
17884
  created_at?: string;
17209
17885
  id?: string;
17886
+ layer_fraction?: number;
17887
+ layer_share_pct?: number;
17888
+ layers_per_cart?: number;
17210
17889
  order_item_id?: string | null;
17211
17890
  plants_per_crate?: number;
17212
17891
  product_id?: string | null;
@@ -17234,33 +17913,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17234
17913
  };
17235
17914
  order_carts: {
17236
17915
  Row: {
17916
+ algorithm_version: number;
17237
17917
  cart_number: number;
17238
17918
  created_at: string;
17239
17919
  id: string;
17240
17920
  is_auto: boolean;
17241
17921
  is_complete: boolean;
17242
17922
  notes: string | null;
17923
+ occupancy_pct: number;
17243
17924
  order_id: string;
17925
+ source: string;
17926
+ total_layers_used: number;
17244
17927
  updated_at: string;
17245
17928
  };
17246
17929
  Insert: {
17930
+ algorithm_version?: number;
17247
17931
  cart_number: number;
17248
17932
  created_at?: string;
17249
17933
  id?: string;
17250
17934
  is_auto?: boolean;
17251
17935
  is_complete?: boolean;
17252
17936
  notes?: string | null;
17937
+ occupancy_pct?: number;
17253
17938
  order_id: string;
17939
+ source?: string;
17940
+ total_layers_used?: number;
17254
17941
  updated_at?: string;
17255
17942
  };
17256
17943
  Update: {
17944
+ algorithm_version?: number;
17257
17945
  cart_number?: number;
17258
17946
  created_at?: string;
17259
17947
  id?: string;
17260
17948
  is_auto?: boolean;
17261
17949
  is_complete?: boolean;
17262
17950
  notes?: string | null;
17951
+ occupancy_pct?: number;
17263
17952
  order_id?: string;
17953
+ source?: string;
17954
+ total_layers_used?: number;
17264
17955
  updated_at?: string;
17265
17956
  };
17266
17957
  Relationships: [{
@@ -17413,6 +18104,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17413
18104
  order_date: string;
17414
18105
  order_number: string;
17415
18106
  order_source: string;
18107
+ plan_locked_at: string | null;
18108
+ plan_locked_ref: string | null;
17416
18109
  status: string;
17417
18110
  total: string;
17418
18111
  updated_at: string;
@@ -17429,6 +18122,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17429
18122
  order_date?: string;
17430
18123
  order_number: string;
17431
18124
  order_source?: string;
18125
+ plan_locked_at?: string | null;
18126
+ plan_locked_ref?: string | null;
17432
18127
  status?: string;
17433
18128
  total?: string;
17434
18129
  updated_at?: string;
@@ -17445,6 +18140,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17445
18140
  order_date?: string;
17446
18141
  order_number?: string;
17447
18142
  order_source?: string;
18143
+ plan_locked_at?: string | null;
18144
+ plan_locked_ref?: string | null;
17448
18145
  status?: string;
17449
18146
  total?: string;
17450
18147
  updated_at?: string;
@@ -17817,6 +18514,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17817
18514
  display_name: string | null;
17818
18515
  email: string | null;
17819
18516
  id: string;
18517
+ is_superadmin: boolean;
17820
18518
  notification_preferences: import("../integrations/supabase/types").Json;
17821
18519
  tenant_id: string | null;
17822
18520
  updated_at: string;
@@ -17826,6 +18524,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17826
18524
  display_name?: string | null;
17827
18525
  email?: string | null;
17828
18526
  id: string;
18527
+ is_superadmin?: boolean;
17829
18528
  notification_preferences?: import("../integrations/supabase/types").Json;
17830
18529
  tenant_id?: string | null;
17831
18530
  updated_at?: string;
@@ -17835,6 +18534,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17835
18534
  display_name?: string | null;
17836
18535
  email?: string | null;
17837
18536
  id?: string;
18537
+ is_superadmin?: boolean;
17838
18538
  notification_preferences?: import("../integrations/supabase/types").Json;
17839
18539
  tenant_id?: string | null;
17840
18540
  updated_at?: string;
@@ -18624,6 +19324,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18624
19324
  };
18625
19325
  Relationships: [];
18626
19326
  };
19327
+ sidebar_config: {
19328
+ Row: {
19329
+ id: string;
19330
+ module_order: string[];
19331
+ updated_at: string;
19332
+ };
19333
+ Insert: {
19334
+ id?: string;
19335
+ module_order?: string[];
19336
+ updated_at?: string;
19337
+ };
19338
+ Update: {
19339
+ id?: string;
19340
+ module_order?: string[];
19341
+ updated_at?: string;
19342
+ };
19343
+ Relationships: [];
19344
+ };
18627
19345
  stock_import_runs: {
18628
19346
  Row: {
18629
19347
  connection_id: string | null;
@@ -18682,7 +19400,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18682
19400
  reason: string | null;
18683
19401
  reserved_after: number | null;
18684
19402
  reserved_before: number | null;
18685
- trade_item_key: string;
19403
+ trade_item_key: string | null;
18686
19404
  };
18687
19405
  Insert: {
18688
19406
  connection_id?: string | null;
@@ -18699,7 +19417,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18699
19417
  reason?: string | null;
18700
19418
  reserved_after?: number | null;
18701
19419
  reserved_before?: number | null;
18702
- trade_item_key: string;
19420
+ trade_item_key?: string | null;
18703
19421
  };
18704
19422
  Update: {
18705
19423
  connection_id?: string | null;
@@ -18716,7 +19434,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18716
19434
  reason?: string | null;
18717
19435
  reserved_after?: number | null;
18718
19436
  reserved_before?: number | null;
18719
- trade_item_key?: string;
19437
+ trade_item_key?: string | null;
18720
19438
  };
18721
19439
  Relationships: [];
18722
19440
  };
@@ -19059,6 +19777,114 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19059
19777
  };
19060
19778
  Relationships: [];
19061
19779
  };
19780
+ trade_item_supply_lines: {
19781
+ Row: {
19782
+ available_quantity: number | null;
19783
+ connection_id: string;
19784
+ created_at: string;
19785
+ currency: string | null;
19786
+ endpoint_family: string | null;
19787
+ environment: string | null;
19788
+ id: string;
19789
+ last_error: string | null;
19790
+ last_status: number | null;
19791
+ packing_configuration_id: string | null;
19792
+ period_end: string | null;
19793
+ period_start: string | null;
19794
+ price_per_piece: number | null;
19795
+ sales_unit: string | null;
19796
+ supply_line_id: string | null;
19797
+ supply_type: string;
19798
+ trade_item_id: string;
19799
+ updated_at: string;
19800
+ user_id: string;
19801
+ week: number | null;
19802
+ year: number | null;
19803
+ };
19804
+ Insert: {
19805
+ available_quantity?: number | null;
19806
+ connection_id: string;
19807
+ created_at?: string;
19808
+ currency?: string | null;
19809
+ endpoint_family?: string | null;
19810
+ environment?: string | null;
19811
+ id?: string;
19812
+ last_error?: string | null;
19813
+ last_status?: number | null;
19814
+ packing_configuration_id?: string | null;
19815
+ period_end?: string | null;
19816
+ period_start?: string | null;
19817
+ price_per_piece?: number | null;
19818
+ sales_unit?: string | null;
19819
+ supply_line_id?: string | null;
19820
+ supply_type?: string;
19821
+ trade_item_id: string;
19822
+ updated_at?: string;
19823
+ user_id: string;
19824
+ week?: number | null;
19825
+ year?: number | null;
19826
+ };
19827
+ Update: {
19828
+ available_quantity?: number | null;
19829
+ connection_id?: string;
19830
+ created_at?: string;
19831
+ currency?: string | null;
19832
+ endpoint_family?: string | null;
19833
+ environment?: string | null;
19834
+ id?: string;
19835
+ last_error?: string | null;
19836
+ last_status?: number | null;
19837
+ packing_configuration_id?: string | null;
19838
+ period_end?: string | null;
19839
+ period_start?: string | null;
19840
+ price_per_piece?: number | null;
19841
+ sales_unit?: string | null;
19842
+ supply_line_id?: string | null;
19843
+ supply_type?: string;
19844
+ trade_item_id?: string;
19845
+ updated_at?: string;
19846
+ user_id?: string;
19847
+ week?: number | null;
19848
+ year?: number | null;
19849
+ };
19850
+ Relationships: [];
19851
+ };
19852
+ trade_item_warehouse_preferences: {
19853
+ Row: {
19854
+ connection_id: string;
19855
+ created_at: string;
19856
+ id: string;
19857
+ trade_item_id: string;
19858
+ updated_at: string;
19859
+ warehouse_id: string;
19860
+ warehouse_name: string | null;
19861
+ };
19862
+ Insert: {
19863
+ connection_id: string;
19864
+ created_at?: string;
19865
+ id?: string;
19866
+ trade_item_id: string;
19867
+ updated_at?: string;
19868
+ warehouse_id: string;
19869
+ warehouse_name?: string | null;
19870
+ };
19871
+ Update: {
19872
+ connection_id?: string;
19873
+ created_at?: string;
19874
+ id?: string;
19875
+ trade_item_id?: string;
19876
+ updated_at?: string;
19877
+ warehouse_id?: string;
19878
+ warehouse_name?: string | null;
19879
+ };
19880
+ Relationships: [{
19881
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
19882
+ columns: ["connection_id"];
19883
+ isOneToOne: false;
19884
+ referencedRelation: "floriday_connections";
19885
+ referencedColumns: ["id"];
19886
+ }];
19887
+ };
19062
19888
  twinfield_connections: {
19063
19889
  Row: {
19064
19890
  access_token: string | null;
@@ -19378,6 +20204,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19378
20204
  default_invoice_type: string;
19379
20205
  default_payment_term_days: number;
19380
20206
  default_vat_code: string;
20207
+ invoice_enabled_ao: boolean;
20208
+ invoice_enabled_fo: boolean;
20209
+ invoice_enabled_ho: boolean;
20210
+ invoice_enabled_mo: boolean;
19381
20211
  updated_at: string;
19382
20212
  user_id: string;
19383
20213
  };
@@ -19387,6 +20217,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19387
20217
  default_invoice_type?: string;
19388
20218
  default_payment_term_days?: number;
19389
20219
  default_vat_code?: string;
20220
+ invoice_enabled_ao?: boolean;
20221
+ invoice_enabled_fo?: boolean;
20222
+ invoice_enabled_ho?: boolean;
20223
+ invoice_enabled_mo?: boolean;
19390
20224
  updated_at?: string;
19391
20225
  user_id: string;
19392
20226
  };
@@ -19396,6 +20230,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19396
20230
  default_invoice_type?: string;
19397
20231
  default_payment_term_days?: number;
19398
20232
  default_vat_code?: string;
20233
+ invoice_enabled_ao?: boolean;
20234
+ invoice_enabled_fo?: boolean;
20235
+ invoice_enabled_ho?: boolean;
20236
+ invoice_enabled_mo?: boolean;
19399
20237
  updated_at?: string;
19400
20238
  user_id?: string;
19401
20239
  };
@@ -20690,6 +21528,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20690
21528
  order_number: string;
20691
21529
  }[];
20692
21530
  };
21531
+ autolink_product_to_floriday: {
21532
+ Args: {
21533
+ p_product_id: string;
21534
+ };
21535
+ Returns: string;
21536
+ };
20693
21537
  backfill_open_order_reservations: {
20694
21538
  Args: never;
20695
21539
  Returns: {
@@ -20728,6 +21572,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20728
21572
  Args: never;
20729
21573
  Returns: number;
20730
21574
  };
21575
+ consume_floriday_rate_limit: {
21576
+ Args: {
21577
+ p_bucket: string;
21578
+ p_capacity: number;
21579
+ p_cost?: number;
21580
+ p_refill_per_sec: number;
21581
+ };
21582
+ Returns: {
21583
+ granted: boolean;
21584
+ wait_ms: number;
21585
+ }[];
21586
+ };
20731
21587
  control_get_todays_carts: {
20732
21588
  Args: never;
20733
21589
  Returns: {
@@ -20808,6 +21664,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20808
21664
  status: string;
20809
21665
  }[];
20810
21666
  };
21667
+ enqueue_cart_replan_if_unlocked: {
21668
+ Args: {
21669
+ p_order_id: string;
21670
+ };
21671
+ Returns: undefined;
21672
+ };
20811
21673
  ensure_trade_item_stock_row: {
20812
21674
  Args: {
20813
21675
  p_key: string;
@@ -20914,6 +21776,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
20914
21776
  office_code: string;
20915
21777
  }[];
20916
21778
  };
21779
+ get_floricode_record_counts: {
21780
+ Args: never;
21781
+ Returns: {
21782
+ count: number;
21783
+ resource: string;
21784
+ }[];
21785
+ };
20917
21786
  get_floriday_agreements_active: {
20918
21787
  Args: {
20919
21788
  p_on_date?: string;
@@ -21005,6 +21874,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21005
21874
  };
21006
21875
  Returns: import("../integrations/supabase/types").Json;
21007
21876
  };
21877
+ get_offer_delivery_options: {
21878
+ Args: {
21879
+ p_code: string;
21880
+ };
21881
+ Returns: import("../integrations/supabase/types").Json;
21882
+ };
21008
21883
  get_offer_recipient_by_code: {
21009
21884
  Args: {
21010
21885
  p_code: string;
@@ -21069,6 +21944,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21069
21944
  Args: never;
21070
21945
  Returns: boolean;
21071
21946
  };
21947
+ is_superadmin: {
21948
+ Args: {
21949
+ _user_id: string;
21950
+ };
21951
+ Returns: boolean;
21952
+ };
21072
21953
  local_effective_price: {
21073
21954
  Args: {
21074
21955
  _customer_id: string;
@@ -21103,6 +21984,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21103
21984
  };
21104
21985
  Returns: string;
21105
21986
  };
21987
+ next_order_number_for_date: {
21988
+ Args: {
21989
+ p_created_at?: string;
21990
+ p_prefix: string;
21991
+ };
21992
+ Returns: string;
21993
+ };
21106
21994
  next_work_order_number: {
21107
21995
  Args: {
21108
21996
  p_parent_work_order_id?: string;
@@ -21110,6 +21998,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21110
21998
  };
21111
21999
  Returns: string;
21112
22000
  };
22001
+ normalize_order_source: {
22002
+ Args: {
22003
+ p_src: string;
22004
+ };
22005
+ Returns: string;
22006
+ };
21113
22007
  normalize_vat: {
21114
22008
  Args: {
21115
22009
  v: string;
@@ -21124,10 +22018,21 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21124
22018
  };
21125
22019
  Returns: boolean;
21126
22020
  };
22021
+ order_number_prefix: {
22022
+ Args: {
22023
+ p_custom_fields?: import("../integrations/supabase/types").Json;
22024
+ p_order_source: string;
22025
+ };
22026
+ Returns: string;
22027
+ };
21127
22028
  pickstation_get_orders_raw: {
21128
22029
  Args: never;
21129
22030
  Returns: import("../integrations/supabase/types").Json;
21130
22031
  };
22032
+ pickstation_get_planning_context: {
22033
+ Args: never;
22034
+ Returns: import("../integrations/supabase/types").Json;
22035
+ };
21131
22036
  pickstation_get_settings: {
21132
22037
  Args: never;
21133
22038
  Returns: import("../integrations/supabase/types").Json;
@@ -21158,6 +22063,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21158
22063
  };
21159
22064
  Returns: undefined;
21160
22065
  };
22066
+ recompute_order_status: {
22067
+ Args: {
22068
+ p_order_id: string;
22069
+ };
22070
+ Returns: undefined;
22071
+ };
22072
+ recompute_reserved_for_order: {
22073
+ Args: {
22074
+ p_order_id: string;
22075
+ };
22076
+ Returns: undefined;
22077
+ };
22078
+ recompute_reserved_stock: {
22079
+ Args: {
22080
+ p_trade_item_key: string;
22081
+ };
22082
+ Returns: undefined;
22083
+ };
22084
+ refresh_external_customers_grouped: {
22085
+ Args: never;
22086
+ Returns: undefined;
22087
+ };
21161
22088
  refresh_floricode_derived_code_lists: {
21162
22089
  Args: never;
21163
22090
  Returns: {
@@ -21172,6 +22099,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21172
22099
  };
21173
22100
  Returns: number;
21174
22101
  };
22102
+ refresh_floricode_derived_for_products: {
22103
+ Args: {
22104
+ _product_ids: string[];
22105
+ };
22106
+ Returns: number;
22107
+ };
21175
22108
  reset_floriday_sync_cursor: {
21176
22109
  Args: {
21177
22110
  p_connection_id: string;
@@ -21179,6 +22112,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21179
22112
  };
21180
22113
  Returns: undefined;
21181
22114
  };
22115
+ resolve_product_id_for_item: {
22116
+ Args: {
22117
+ p_product_name: string;
22118
+ };
22119
+ Returns: string;
22120
+ };
21182
22121
  schedule_floriday_additional_services_sync: {
21183
22122
  Args: {
21184
22123
  p_apikey: string;
@@ -21456,6 +22395,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21456
22395
  };
21457
22396
  Returns: string[];
21458
22397
  };
22398
+ sync_cached_packing_from_product: {
22399
+ Args: {
22400
+ p_product_id: string;
22401
+ };
22402
+ Returns: undefined;
22403
+ };
22404
+ sync_order_cart_item_packing_from_product: {
22405
+ Args: {
22406
+ p_product_id: string;
22407
+ };
22408
+ Returns: undefined;
22409
+ };
22410
+ sync_product_packing_from_floriday_cache: {
22411
+ Args: {
22412
+ p_floriday_id: string;
22413
+ };
22414
+ Returns: undefined;
22415
+ };
21459
22416
  twinfield_decrypt: {
21460
22417
  Args: {
21461
22418
  cipher: string;
@@ -21468,6 +22425,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21468
22425
  };
21469
22426
  Returns: string;
21470
22427
  };
22428
+ upsert_auto_fulfillment_log: {
22429
+ Args: {
22430
+ p_connection_id: string;
22431
+ p_error?: string;
22432
+ p_fulfillment_order_id?: string;
22433
+ p_reason?: string;
22434
+ p_sales_order_id: string;
22435
+ p_status: string;
22436
+ };
22437
+ Returns: undefined;
22438
+ };
21471
22439
  };
21472
22440
  Enums: {
21473
22441
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
@@ -21490,6 +22458,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21490
22458
  signupMailLeadMinutes?: number;
21491
22459
  signupMailPurpose?: string;
21492
22460
  pickWeekdays?: number[];
22461
+ extraPickDaysWithStickers?: number;
22462
+ autoProcessPaused?: boolean;
22463
+ autoPrintDeliveryNote?: boolean;
21493
22464
  }) => {
21494
22465
  pickDaysBeforeTransport: number | undefined;
21495
22466
  transportRegisterDaysBefore: number | undefined;
@@ -21499,5 +22470,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
21499
22470
  signupMailLeadMinutes: number | undefined;
21500
22471
  signupMailPurpose: string | undefined;
21501
22472
  pickWeekdays: number[] | undefined;
22473
+ extraPickDaysWithStickers: number | undefined;
22474
+ autoProcessPaused: boolean | undefined;
22475
+ autoPrintDeliveryNote: boolean | undefined;
21502
22476
  }, Promise<AfhandelingSettings>>;
21503
22477
  //# sourceMappingURL=afhandelingSettings.functions.d.ts.map