@flowselections/floriday-authenticatie-module 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  2. package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
  3. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +2 -0
  4. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -0
  5. package/dist-lib/components/settings/FloricodeSettingsCard.js +235 -0
  6. package/dist-lib/index.d.ts.map +1 -1
  7. package/dist-lib/index.js +2 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +524 -4
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.d.ts +524 -4
  11. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +524 -4
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +532 -4
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/floricode-credentials.server.d.ts +21 -0
  17. package/dist-lib/lib/floricode-credentials.server.d.ts.map +1 -0
  18. package/dist-lib/lib/floricode-credentials.server.js +158 -0
  19. package/dist-lib/lib/floricode-product-features.d.ts.map +1 -1
  20. package/dist-lib/lib/floricode-product-features.js +19 -33
  21. package/dist-lib/lib/floricode-regulatory-features.d.ts.map +1 -1
  22. package/dist-lib/lib/floricode-regulatory-features.js +51 -41
  23. package/dist-lib/lib/floricode-sync.server.d.ts +35 -0
  24. package/dist-lib/lib/floricode-sync.server.d.ts.map +1 -0
  25. package/dist-lib/lib/floricode-sync.server.js +211 -0
  26. package/dist-lib/lib/floricode.functions.d.ts +78828 -0
  27. package/dist-lib/lib/floricode.functions.d.ts.map +1 -0
  28. package/dist-lib/lib/floricode.functions.js +178 -0
  29. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +524 -4
  30. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-auto-process.server.d.ts +34 -0
  32. package/dist-lib/lib/floriday-auto-process.server.d.ts.map +1 -0
  33. package/dist-lib/lib/floriday-auto-process.server.js +365 -0
  34. package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts +19 -0
  35. package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts.map +1 -0
  36. package/dist-lib/lib/floriday-fulfillment-lookup.server.js +130 -0
  37. package/dist-lib/lib/floriday-gateway-auth.d.ts +24 -0
  38. package/dist-lib/lib/floriday-gateway-auth.d.ts.map +1 -0
  39. package/dist-lib/lib/floriday-gateway-auth.js +127 -0
  40. package/dist-lib/lib/floriday-labels.functions.d.ts +524 -4
  41. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-labels.functions.js +3 -2
  43. package/dist-lib/lib/floriday-public.functions.d.ts +3144 -24
  44. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-rate-limit.server.d.ts +21 -0
  46. package/dist-lib/lib/floriday-rate-limit.server.d.ts.map +1 -0
  47. package/dist-lib/lib/floriday-rate-limit.server.js +75 -0
  48. package/dist-lib/lib/floriday-stickers.functions.d.ts +524 -4
  49. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday-sync.functions.d.ts +17292 -132
  51. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday-writes.functions.d.ts +3192 -48
  53. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/floriday-writes.functions.js +29 -4
  55. package/dist-lib/lib/floriday.functions.d.ts +9576 -198
  56. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/floriday.functions.js +39 -4
  58. package/dist-lib/lib/planning-helpers.d.ts +30 -0
  59. package/dist-lib/lib/planning-helpers.d.ts.map +1 -0
  60. package/dist-lib/lib/planning-helpers.js +62 -0
  61. package/package.json +3 -2
  62. package/public/flowselections-assets/floriday-authenticatie/floricode-logo.png +0 -0
@@ -17,7 +17,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17
17
  Tables: {
18
18
  afhandeling_settings: {
19
19
  Row: {
20
+ auto_print_delivery_note: boolean;
21
+ auto_process_paused: boolean;
20
22
  created_at: string;
23
+ extra_pick_days_with_stickers: number;
21
24
  id: string;
22
25
  max_workdays_earlier_pick: number;
23
26
  pick_days_before_transport: number;
@@ -31,7 +34,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
31
34
  user_id: string;
32
35
  };
33
36
  Insert: {
37
+ auto_print_delivery_note?: boolean;
38
+ auto_process_paused?: boolean;
34
39
  created_at?: string;
40
+ extra_pick_days_with_stickers?: number;
35
41
  id?: string;
36
42
  max_workdays_earlier_pick?: number;
37
43
  pick_days_before_transport?: number;
@@ -45,7 +51,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
45
51
  user_id: string;
46
52
  };
47
53
  Update: {
54
+ auto_print_delivery_note?: boolean;
55
+ auto_process_paused?: boolean;
48
56
  created_at?: string;
57
+ extra_pick_days_with_stickers?: number;
49
58
  id?: string;
50
59
  max_workdays_earlier_pick?: number;
51
60
  pick_days_before_transport?: number;
@@ -276,6 +285,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
276
285
  created_at: string;
277
286
  extra_id: string;
278
287
  id: string;
288
+ original_unit_price: number | null;
289
+ override_reason: string | null;
290
+ override_unit_price: number | null;
279
291
  quantity: number;
280
292
  total_price: number;
281
293
  unit_price: number;
@@ -285,6 +297,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
285
297
  created_at?: string;
286
298
  extra_id: string;
287
299
  id?: string;
300
+ original_unit_price?: number | null;
301
+ override_reason?: string | null;
302
+ override_unit_price?: number | null;
288
303
  quantity?: number;
289
304
  total_price?: number;
290
305
  unit_price?: number;
@@ -294,6 +309,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
294
309
  created_at?: string;
295
310
  extra_id?: string;
296
311
  id?: string;
312
+ original_unit_price?: number | null;
313
+ override_reason?: string | null;
314
+ override_unit_price?: number | null;
297
315
  quantity?: number;
298
316
  total_price?: number;
299
317
  unit_price?: number;
@@ -314,11 +332,15 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
314
332
  };
315
333
  bookings: {
316
334
  Row: {
335
+ archive_reason: string | null;
336
+ archived_at: string | null;
337
+ archived_by: string | null;
317
338
  company_name: string | null;
318
339
  conflict_checked_at: string | null;
319
340
  conflict_reason: string | null;
320
341
  created_at: string;
321
342
  created_by_role: string | null;
343
+ customer_address: string | null;
322
344
  customer_email: string | null;
323
345
  customer_name: string | null;
324
346
  end_time: string;
@@ -330,7 +352,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
330
352
  invoiced_at: string | null;
331
353
  notes: string | null;
332
354
  number_of_people: number;
355
+ overridden_at: string | null;
356
+ overridden_by: string | null;
357
+ override_reason: string | null;
358
+ price_override: boolean;
333
359
  room_id: string;
360
+ room_price_override: number | null;
334
361
  start_time: string;
335
362
  status: string;
336
363
  total_excl_vat: number | null;
@@ -339,11 +366,15 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
339
366
  vat_amount: number | null;
340
367
  };
341
368
  Insert: {
369
+ archive_reason?: string | null;
370
+ archived_at?: string | null;
371
+ archived_by?: string | null;
342
372
  company_name?: string | null;
343
373
  conflict_checked_at?: string | null;
344
374
  conflict_reason?: string | null;
345
375
  created_at?: string;
346
376
  created_by_role?: string | null;
377
+ customer_address?: string | null;
347
378
  customer_email?: string | null;
348
379
  customer_name?: string | null;
349
380
  end_time: string;
@@ -355,7 +386,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
355
386
  invoiced_at?: string | null;
356
387
  notes?: string | null;
357
388
  number_of_people?: number;
389
+ overridden_at?: string | null;
390
+ overridden_by?: string | null;
391
+ override_reason?: string | null;
392
+ price_override?: boolean;
358
393
  room_id: string;
394
+ room_price_override?: number | null;
359
395
  start_time: string;
360
396
  status?: string;
361
397
  total_excl_vat?: number | null;
@@ -364,11 +400,15 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
364
400
  vat_amount?: number | null;
365
401
  };
366
402
  Update: {
403
+ archive_reason?: string | null;
404
+ archived_at?: string | null;
405
+ archived_by?: string | null;
367
406
  company_name?: string | null;
368
407
  conflict_checked_at?: string | null;
369
408
  conflict_reason?: string | null;
370
409
  created_at?: string;
371
410
  created_by_role?: string | null;
411
+ customer_address?: string | null;
372
412
  customer_email?: string | null;
373
413
  customer_name?: string | null;
374
414
  end_time?: string;
@@ -380,7 +420,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
380
420
  invoiced_at?: string | null;
381
421
  notes?: string | null;
382
422
  number_of_people?: number;
423
+ overridden_at?: string | null;
424
+ overridden_by?: string | null;
425
+ override_reason?: string | null;
426
+ price_override?: boolean;
383
427
  room_id?: string;
428
+ room_price_override?: number | null;
384
429
  start_time?: string;
385
430
  status?: string;
386
431
  total_excl_vat?: number | null;
@@ -837,6 +882,36 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
837
882
  };
838
883
  Relationships: [];
839
884
  };
885
+ cart_replan_queue: {
886
+ Row: {
887
+ attempts: number;
888
+ last_error: string | null;
889
+ order_id: string;
890
+ processed_at: string | null;
891
+ requested_at: string;
892
+ };
893
+ Insert: {
894
+ attempts?: number;
895
+ last_error?: string | null;
896
+ order_id: string;
897
+ processed_at?: string | null;
898
+ requested_at?: string;
899
+ };
900
+ Update: {
901
+ attempts?: number;
902
+ last_error?: string | null;
903
+ order_id?: string;
904
+ processed_at?: string | null;
905
+ requested_at?: string;
906
+ };
907
+ Relationships: [{
908
+ foreignKeyName: "cart_replan_queue_order_id_fkey";
909
+ columns: ["order_id"];
910
+ isOneToOne: true;
911
+ referencedRelation: "orders";
912
+ referencedColumns: ["id"];
913
+ }];
914
+ };
840
915
  collections: {
841
916
  Row: {
842
917
  created_at: string;
@@ -2962,34 +3037,52 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2962
3037
  Row: {
2963
3038
  catalog_key: string | null;
2964
3039
  catalog_url: string;
3040
+ client_id: string | null;
3041
+ client_secret_ciphertext: string | null;
3042
+ client_secret_last4: string | null;
2965
3043
  created_at: string;
2966
3044
  id: number;
2967
3045
  last_meta: import("../integrations/supabase/types").Json | null;
2968
3046
  last_test_at: string | null;
2969
3047
  last_test_error: string | null;
2970
3048
  last_test_ok: boolean | null;
3049
+ last_token_test_at: string | null;
3050
+ last_token_test_error: string | null;
3051
+ last_token_test_ok: boolean | null;
2971
3052
  updated_at: string;
2972
3053
  };
2973
3054
  Insert: {
2974
3055
  catalog_key?: string | null;
2975
3056
  catalog_url?: string;
3057
+ client_id?: string | null;
3058
+ client_secret_ciphertext?: string | null;
3059
+ client_secret_last4?: string | null;
2976
3060
  created_at?: string;
2977
3061
  id?: number;
2978
3062
  last_meta?: import("../integrations/supabase/types").Json | null;
2979
3063
  last_test_at?: string | null;
2980
3064
  last_test_error?: string | null;
2981
3065
  last_test_ok?: boolean | null;
3066
+ last_token_test_at?: string | null;
3067
+ last_token_test_error?: string | null;
3068
+ last_token_test_ok?: boolean | null;
2982
3069
  updated_at?: string;
2983
3070
  };
2984
3071
  Update: {
2985
3072
  catalog_key?: string | null;
2986
3073
  catalog_url?: string;
3074
+ client_id?: string | null;
3075
+ client_secret_ciphertext?: string | null;
3076
+ client_secret_last4?: string | null;
2987
3077
  created_at?: string;
2988
3078
  id?: number;
2989
3079
  last_meta?: import("../integrations/supabase/types").Json | null;
2990
3080
  last_test_at?: string | null;
2991
3081
  last_test_error?: string | null;
2992
3082
  last_test_ok?: boolean | null;
3083
+ last_token_test_at?: string | null;
3084
+ last_token_test_error?: string | null;
3085
+ last_token_test_ok?: boolean | null;
2993
3086
  updated_at?: string;
2994
3087
  };
2995
3088
  Relationships: [];
@@ -3222,6 +3315,54 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
3222
3315
  referencedColumns: ["id"];
3223
3316
  }];
3224
3317
  };
3318
+ floriday_auto_fulfillment_log: {
3319
+ Row: {
3320
+ attempts: number;
3321
+ connection_id: string;
3322
+ created_at: string;
3323
+ error: string | null;
3324
+ fulfillment_order_id: string | null;
3325
+ id: string;
3326
+ last_attempt_at: string | null;
3327
+ reason: string | null;
3328
+ sales_order_id: string;
3329
+ status: string;
3330
+ updated_at: string;
3331
+ };
3332
+ Insert: {
3333
+ attempts?: number;
3334
+ connection_id: string;
3335
+ created_at?: string;
3336
+ error?: string | null;
3337
+ fulfillment_order_id?: string | null;
3338
+ id?: string;
3339
+ last_attempt_at?: string | null;
3340
+ reason?: string | null;
3341
+ sales_order_id: string;
3342
+ status?: string;
3343
+ updated_at?: string;
3344
+ };
3345
+ Update: {
3346
+ attempts?: number;
3347
+ connection_id?: string;
3348
+ created_at?: string;
3349
+ error?: string | null;
3350
+ fulfillment_order_id?: string | null;
3351
+ id?: string;
3352
+ last_attempt_at?: string | null;
3353
+ reason?: string | null;
3354
+ sales_order_id?: string;
3355
+ status?: string;
3356
+ updated_at?: string;
3357
+ };
3358
+ Relationships: [{
3359
+ foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
3360
+ columns: ["connection_id"];
3361
+ isOneToOne: false;
3362
+ referencedRelation: "floriday_connections";
3363
+ referencedColumns: ["id"];
3364
+ }];
3365
+ };
3225
3366
  floriday_base_items_cache: {
3226
3367
  Row: {
3227
3368
  connection_id: string;
@@ -4326,6 +4467,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
4326
4467
  referencedColumns: ["id"];
4327
4468
  }];
4328
4469
  };
4470
+ floriday_rate_limit_state: {
4471
+ Row: {
4472
+ bucket: string;
4473
+ last_refill_at: string;
4474
+ tokens: number;
4475
+ };
4476
+ Insert: {
4477
+ bucket: string;
4478
+ last_refill_at?: string;
4479
+ tokens: number;
4480
+ };
4481
+ Update: {
4482
+ bucket?: string;
4483
+ last_refill_at?: string;
4484
+ tokens?: number;
4485
+ };
4486
+ Relationships: [];
4487
+ };
4329
4488
  floriday_resource_schemas: {
4330
4489
  Row: {
4331
4490
  enums: import("../integrations/supabase/types").Json;
@@ -4749,6 +4908,60 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
4749
4908
  referencedColumns: ["id"];
4750
4909
  }];
4751
4910
  };
4911
+ flow_role_assignments: {
4912
+ Row: {
4913
+ created_at: string;
4914
+ id: string;
4915
+ role_id: string;
4916
+ user_id: string;
4917
+ };
4918
+ Insert: {
4919
+ created_at?: string;
4920
+ id?: string;
4921
+ role_id: string;
4922
+ user_id: string;
4923
+ };
4924
+ Update: {
4925
+ created_at?: string;
4926
+ id?: string;
4927
+ role_id?: string;
4928
+ user_id?: string;
4929
+ };
4930
+ Relationships: [{
4931
+ foreignKeyName: "flow_role_assignments_role_id_fkey";
4932
+ columns: ["role_id"];
4933
+ isOneToOne: false;
4934
+ referencedRelation: "flow_roles";
4935
+ referencedColumns: ["id"];
4936
+ }];
4937
+ };
4938
+ flow_roles: {
4939
+ Row: {
4940
+ created_at: string;
4941
+ description: string | null;
4942
+ id: string;
4943
+ module_access: string[];
4944
+ name: string;
4945
+ updated_at: string;
4946
+ };
4947
+ Insert: {
4948
+ created_at?: string;
4949
+ description?: string | null;
4950
+ id?: string;
4951
+ module_access?: string[];
4952
+ name: string;
4953
+ updated_at?: string;
4954
+ };
4955
+ Update: {
4956
+ created_at?: string;
4957
+ description?: string | null;
4958
+ id?: string;
4959
+ module_access?: string[];
4960
+ name?: string;
4961
+ updated_at?: string;
4962
+ };
4963
+ Relationships: [];
4964
+ };
4752
4965
  imap_accounts: {
4753
4966
  Row: {
4754
4967
  created_at: string;
@@ -5380,6 +5593,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5380
5593
  matched_customer_id: string | null;
5381
5594
  message_id: string;
5382
5595
  notes: string | null;
5596
+ order_number: string | null;
5383
5597
  parsed_payload: import("../integrations/supabase/types").Json | null;
5384
5598
  reviewed_at: string | null;
5385
5599
  reviewed_by: string | null;
@@ -5395,6 +5609,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5395
5609
  matched_customer_id?: string | null;
5396
5610
  message_id: string;
5397
5611
  notes?: string | null;
5612
+ order_number?: string | null;
5398
5613
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5399
5614
  reviewed_at?: string | null;
5400
5615
  reviewed_by?: string | null;
@@ -5410,6 +5625,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
5410
5625
  matched_customer_id?: string | null;
5411
5626
  message_id?: string;
5412
5627
  notes?: string | null;
5628
+ order_number?: string | null;
5413
5629
  parsed_payload?: import("../integrations/supabase/types").Json | null;
5414
5630
  reviewed_at?: string | null;
5415
5631
  reviewed_by?: string | null;
@@ -6266,6 +6482,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6266
6482
  id: string;
6267
6483
  items: import("../integrations/supabase/types").Json;
6268
6484
  notes: string | null;
6485
+ order_number: string | null;
6269
6486
  recipient_id: string;
6270
6487
  total_amount: number;
6271
6488
  };
@@ -6279,6 +6496,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6279
6496
  id?: string;
6280
6497
  items?: import("../integrations/supabase/types").Json;
6281
6498
  notes?: string | null;
6499
+ order_number?: string | null;
6282
6500
  recipient_id: string;
6283
6501
  total_amount?: number;
6284
6502
  };
@@ -6292,6 +6510,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6292
6510
  id?: string;
6293
6511
  items?: import("../integrations/supabase/types").Json;
6294
6512
  notes?: string | null;
6513
+ order_number?: string | null;
6295
6514
  recipient_id?: string;
6296
6515
  total_amount?: number;
6297
6516
  };
@@ -6451,6 +6670,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6451
6670
  crates_per_layer: number;
6452
6671
  created_at: string;
6453
6672
  id: string;
6673
+ layer_fraction: number;
6674
+ layer_share_pct: number;
6675
+ layers_per_cart: number;
6454
6676
  order_item_id: string | null;
6455
6677
  plants_per_crate: number;
6456
6678
  product_id: string | null;
@@ -6462,6 +6684,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6462
6684
  crates_per_layer?: number;
6463
6685
  created_at?: string;
6464
6686
  id?: string;
6687
+ layer_fraction?: number;
6688
+ layer_share_pct?: number;
6689
+ layers_per_cart?: number;
6465
6690
  order_item_id?: string | null;
6466
6691
  plants_per_crate?: number;
6467
6692
  product_id?: string | null;
@@ -6473,6 +6698,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6473
6698
  crates_per_layer?: number;
6474
6699
  created_at?: string;
6475
6700
  id?: string;
6701
+ layer_fraction?: number;
6702
+ layer_share_pct?: number;
6703
+ layers_per_cart?: number;
6476
6704
  order_item_id?: string | null;
6477
6705
  plants_per_crate?: number;
6478
6706
  product_id?: string | null;
@@ -6500,33 +6728,45 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6500
6728
  };
6501
6729
  order_carts: {
6502
6730
  Row: {
6731
+ algorithm_version: number;
6503
6732
  cart_number: number;
6504
6733
  created_at: string;
6505
6734
  id: string;
6506
6735
  is_auto: boolean;
6507
6736
  is_complete: boolean;
6508
6737
  notes: string | null;
6738
+ occupancy_pct: number;
6509
6739
  order_id: string;
6740
+ source: string;
6741
+ total_layers_used: number;
6510
6742
  updated_at: string;
6511
6743
  };
6512
6744
  Insert: {
6745
+ algorithm_version?: number;
6513
6746
  cart_number: number;
6514
6747
  created_at?: string;
6515
6748
  id?: string;
6516
6749
  is_auto?: boolean;
6517
6750
  is_complete?: boolean;
6518
6751
  notes?: string | null;
6752
+ occupancy_pct?: number;
6519
6753
  order_id: string;
6754
+ source?: string;
6755
+ total_layers_used?: number;
6520
6756
  updated_at?: string;
6521
6757
  };
6522
6758
  Update: {
6759
+ algorithm_version?: number;
6523
6760
  cart_number?: number;
6524
6761
  created_at?: string;
6525
6762
  id?: string;
6526
6763
  is_auto?: boolean;
6527
6764
  is_complete?: boolean;
6528
6765
  notes?: string | null;
6766
+ occupancy_pct?: number;
6529
6767
  order_id?: string;
6768
+ source?: string;
6769
+ total_layers_used?: number;
6530
6770
  updated_at?: string;
6531
6771
  };
6532
6772
  Relationships: [{
@@ -6679,6 +6919,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6679
6919
  order_date: string;
6680
6920
  order_number: string;
6681
6921
  order_source: string;
6922
+ plan_locked_at: string | null;
6923
+ plan_locked_ref: string | null;
6682
6924
  status: string;
6683
6925
  total: string;
6684
6926
  updated_at: string;
@@ -6695,6 +6937,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6695
6937
  order_date?: string;
6696
6938
  order_number: string;
6697
6939
  order_source?: string;
6940
+ plan_locked_at?: string | null;
6941
+ plan_locked_ref?: string | null;
6698
6942
  status?: string;
6699
6943
  total?: string;
6700
6944
  updated_at?: string;
@@ -6711,6 +6955,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
6711
6955
  order_date?: string;
6712
6956
  order_number?: string;
6713
6957
  order_source?: string;
6958
+ plan_locked_at?: string | null;
6959
+ plan_locked_ref?: string | null;
6714
6960
  status?: string;
6715
6961
  total?: string;
6716
6962
  updated_at?: string;
@@ -7079,28 +7325,34 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7079
7325
  };
7080
7326
  profiles: {
7081
7327
  Row: {
7328
+ address: string | null;
7082
7329
  created_at: string;
7083
7330
  display_name: string | null;
7084
7331
  email: string | null;
7085
7332
  id: string;
7333
+ is_superadmin: boolean;
7086
7334
  notification_preferences: import("../integrations/supabase/types").Json;
7087
7335
  tenant_id: string | null;
7088
7336
  updated_at: string;
7089
7337
  };
7090
7338
  Insert: {
7339
+ address?: string | null;
7091
7340
  created_at?: string;
7092
7341
  display_name?: string | null;
7093
7342
  email?: string | null;
7094
7343
  id: string;
7344
+ is_superadmin?: boolean;
7095
7345
  notification_preferences?: import("../integrations/supabase/types").Json;
7096
7346
  tenant_id?: string | null;
7097
7347
  updated_at?: string;
7098
7348
  };
7099
7349
  Update: {
7350
+ address?: string | null;
7100
7351
  created_at?: string;
7101
7352
  display_name?: string | null;
7102
7353
  email?: string | null;
7103
7354
  id?: string;
7355
+ is_superadmin?: boolean;
7104
7356
  notification_preferences?: import("../integrations/supabase/types").Json;
7105
7357
  tenant_id?: string | null;
7106
7358
  updated_at?: string;
@@ -7890,6 +8142,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7890
8142
  };
7891
8143
  Relationships: [];
7892
8144
  };
8145
+ sidebar_config: {
8146
+ Row: {
8147
+ id: string;
8148
+ module_order: string[];
8149
+ updated_at: string;
8150
+ };
8151
+ Insert: {
8152
+ id?: string;
8153
+ module_order?: string[];
8154
+ updated_at?: string;
8155
+ };
8156
+ Update: {
8157
+ id?: string;
8158
+ module_order?: string[];
8159
+ updated_at?: string;
8160
+ };
8161
+ Relationships: [];
8162
+ };
7893
8163
  stock_import_runs: {
7894
8164
  Row: {
7895
8165
  connection_id: string | null;
@@ -7948,7 +8218,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7948
8218
  reason: string | null;
7949
8219
  reserved_after: number | null;
7950
8220
  reserved_before: number | null;
7951
- trade_item_key: string;
8221
+ trade_item_key: string | null;
7952
8222
  };
7953
8223
  Insert: {
7954
8224
  connection_id?: string | null;
@@ -7965,7 +8235,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7965
8235
  reason?: string | null;
7966
8236
  reserved_after?: number | null;
7967
8237
  reserved_before?: number | null;
7968
- trade_item_key: string;
8238
+ trade_item_key?: string | null;
7969
8239
  };
7970
8240
  Update: {
7971
8241
  connection_id?: string | null;
@@ -7982,7 +8252,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7982
8252
  reason?: string | null;
7983
8253
  reserved_after?: number | null;
7984
8254
  reserved_before?: number | null;
7985
- trade_item_key?: string;
8255
+ trade_item_key?: string | null;
7986
8256
  };
7987
8257
  Relationships: [];
7988
8258
  };
@@ -8325,6 +8595,114 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8325
8595
  };
8326
8596
  Relationships: [];
8327
8597
  };
8598
+ trade_item_supply_lines: {
8599
+ Row: {
8600
+ available_quantity: number | null;
8601
+ connection_id: string;
8602
+ created_at: string;
8603
+ currency: string | null;
8604
+ endpoint_family: string | null;
8605
+ environment: string | null;
8606
+ id: string;
8607
+ last_error: string | null;
8608
+ last_status: number | null;
8609
+ packing_configuration_id: string | null;
8610
+ period_end: string | null;
8611
+ period_start: string | null;
8612
+ price_per_piece: number | null;
8613
+ sales_unit: string | null;
8614
+ supply_line_id: string | null;
8615
+ supply_type: string;
8616
+ trade_item_id: string;
8617
+ updated_at: string;
8618
+ user_id: string;
8619
+ week: number | null;
8620
+ year: number | null;
8621
+ };
8622
+ Insert: {
8623
+ available_quantity?: number | null;
8624
+ connection_id: string;
8625
+ created_at?: string;
8626
+ currency?: string | null;
8627
+ endpoint_family?: string | null;
8628
+ environment?: string | null;
8629
+ id?: string;
8630
+ last_error?: string | null;
8631
+ last_status?: number | null;
8632
+ packing_configuration_id?: string | null;
8633
+ period_end?: string | null;
8634
+ period_start?: string | null;
8635
+ price_per_piece?: number | null;
8636
+ sales_unit?: string | null;
8637
+ supply_line_id?: string | null;
8638
+ supply_type?: string;
8639
+ trade_item_id: string;
8640
+ updated_at?: string;
8641
+ user_id: string;
8642
+ week?: number | null;
8643
+ year?: number | null;
8644
+ };
8645
+ Update: {
8646
+ available_quantity?: number | null;
8647
+ connection_id?: string;
8648
+ created_at?: string;
8649
+ currency?: string | null;
8650
+ endpoint_family?: string | null;
8651
+ environment?: string | null;
8652
+ id?: string;
8653
+ last_error?: string | null;
8654
+ last_status?: number | null;
8655
+ packing_configuration_id?: string | null;
8656
+ period_end?: string | null;
8657
+ period_start?: string | null;
8658
+ price_per_piece?: number | null;
8659
+ sales_unit?: string | null;
8660
+ supply_line_id?: string | null;
8661
+ supply_type?: string;
8662
+ trade_item_id?: string;
8663
+ updated_at?: string;
8664
+ user_id?: string;
8665
+ week?: number | null;
8666
+ year?: number | null;
8667
+ };
8668
+ Relationships: [];
8669
+ };
8670
+ trade_item_warehouse_preferences: {
8671
+ Row: {
8672
+ connection_id: string;
8673
+ created_at: string;
8674
+ id: string;
8675
+ trade_item_id: string;
8676
+ updated_at: string;
8677
+ warehouse_id: string;
8678
+ warehouse_name: string | null;
8679
+ };
8680
+ Insert: {
8681
+ connection_id: string;
8682
+ created_at?: string;
8683
+ id?: string;
8684
+ trade_item_id: string;
8685
+ updated_at?: string;
8686
+ warehouse_id: string;
8687
+ warehouse_name?: string | null;
8688
+ };
8689
+ Update: {
8690
+ connection_id?: string;
8691
+ created_at?: string;
8692
+ id?: string;
8693
+ trade_item_id?: string;
8694
+ updated_at?: string;
8695
+ warehouse_id?: string;
8696
+ warehouse_name?: string | null;
8697
+ };
8698
+ Relationships: [{
8699
+ foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
8700
+ columns: ["connection_id"];
8701
+ isOneToOne: false;
8702
+ referencedRelation: "floriday_connections";
8703
+ referencedColumns: ["id"];
8704
+ }];
8705
+ };
8328
8706
  twinfield_connections: {
8329
8707
  Row: {
8330
8708
  access_token: string | null;
@@ -8644,6 +9022,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8644
9022
  default_invoice_type: string;
8645
9023
  default_payment_term_days: number;
8646
9024
  default_vat_code: string;
9025
+ invoice_enabled_ao: boolean;
9026
+ invoice_enabled_fo: boolean;
9027
+ invoice_enabled_ho: boolean;
9028
+ invoice_enabled_mo: boolean;
8647
9029
  updated_at: string;
8648
9030
  user_id: string;
8649
9031
  };
@@ -8653,6 +9035,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8653
9035
  default_invoice_type?: string;
8654
9036
  default_payment_term_days?: number;
8655
9037
  default_vat_code?: string;
9038
+ invoice_enabled_ao?: boolean;
9039
+ invoice_enabled_fo?: boolean;
9040
+ invoice_enabled_ho?: boolean;
9041
+ invoice_enabled_mo?: boolean;
8656
9042
  updated_at?: string;
8657
9043
  user_id: string;
8658
9044
  };
@@ -8662,6 +9048,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8662
9048
  default_invoice_type?: string;
8663
9049
  default_payment_term_days?: number;
8664
9050
  default_vat_code?: string;
9051
+ invoice_enabled_ao?: boolean;
9052
+ invoice_enabled_fo?: boolean;
9053
+ invoice_enabled_ho?: boolean;
9054
+ invoice_enabled_mo?: boolean;
8665
9055
  updated_at?: string;
8666
9056
  user_id?: string;
8667
9057
  };
@@ -9956,6 +10346,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9956
10346
  order_number: string;
9957
10347
  }[];
9958
10348
  };
10349
+ autolink_product_to_floriday: {
10350
+ Args: {
10351
+ p_product_id: string;
10352
+ };
10353
+ Returns: string;
10354
+ };
9959
10355
  backfill_open_order_reservations: {
9960
10356
  Args: never;
9961
10357
  Returns: {
@@ -9992,7 +10388,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9992
10388
  };
9993
10389
  cleanup_old_bookings: {
9994
10390
  Args: never;
9995
- Returns: number;
10391
+ Returns: undefined;
10392
+ };
10393
+ consume_floriday_rate_limit: {
10394
+ Args: {
10395
+ p_bucket: string;
10396
+ p_capacity: number;
10397
+ p_cost?: number;
10398
+ p_refill_per_sec: number;
10399
+ };
10400
+ Returns: {
10401
+ granted: boolean;
10402
+ wait_ms: number;
10403
+ }[];
9996
10404
  };
9997
10405
  control_get_todays_carts: {
9998
10406
  Args: never;
@@ -10074,6 +10482,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10074
10482
  status: string;
10075
10483
  }[];
10076
10484
  };
10485
+ enqueue_cart_replan_if_unlocked: {
10486
+ Args: {
10487
+ p_order_id: string;
10488
+ };
10489
+ Returns: undefined;
10490
+ };
10077
10491
  ensure_trade_item_stock_row: {
10078
10492
  Args: {
10079
10493
  p_key: string;
@@ -10180,6 +10594,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10180
10594
  office_code: string;
10181
10595
  }[];
10182
10596
  };
10597
+ get_floricode_record_counts: {
10598
+ Args: never;
10599
+ Returns: {
10600
+ count: number;
10601
+ resource: string;
10602
+ }[];
10603
+ };
10183
10604
  get_floriday_agreements_active: {
10184
10605
  Args: {
10185
10606
  p_on_date?: string;
@@ -10271,6 +10692,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10271
10692
  };
10272
10693
  Returns: import("../integrations/supabase/types").Json;
10273
10694
  };
10695
+ get_offer_delivery_options: {
10696
+ Args: {
10697
+ p_code: string;
10698
+ };
10699
+ Returns: import("../integrations/supabase/types").Json;
10700
+ };
10274
10701
  get_offer_recipient_by_code: {
10275
10702
  Args: {
10276
10703
  p_code: string;
@@ -10335,6 +10762,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10335
10762
  Args: never;
10336
10763
  Returns: boolean;
10337
10764
  };
10765
+ is_superadmin: {
10766
+ Args: {
10767
+ _user_id: string;
10768
+ };
10769
+ Returns: boolean;
10770
+ };
10338
10771
  local_effective_price: {
10339
10772
  Args: {
10340
10773
  _customer_id: string;
@@ -10369,6 +10802,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10369
10802
  };
10370
10803
  Returns: string;
10371
10804
  };
10805
+ next_order_number_for_date: {
10806
+ Args: {
10807
+ p_created_at?: string;
10808
+ p_prefix: string;
10809
+ };
10810
+ Returns: string;
10811
+ };
10372
10812
  next_work_order_number: {
10373
10813
  Args: {
10374
10814
  p_parent_work_order_id?: string;
@@ -10376,6 +10816,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10376
10816
  };
10377
10817
  Returns: string;
10378
10818
  };
10819
+ normalize_order_source: {
10820
+ Args: {
10821
+ p_src: string;
10822
+ };
10823
+ Returns: string;
10824
+ };
10379
10825
  normalize_vat: {
10380
10826
  Args: {
10381
10827
  v: string;
@@ -10390,10 +10836,21 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10390
10836
  };
10391
10837
  Returns: boolean;
10392
10838
  };
10839
+ order_number_prefix: {
10840
+ Args: {
10841
+ p_custom_fields?: import("../integrations/supabase/types").Json;
10842
+ p_order_source: string;
10843
+ };
10844
+ Returns: string;
10845
+ };
10393
10846
  pickstation_get_orders_raw: {
10394
10847
  Args: never;
10395
10848
  Returns: import("../integrations/supabase/types").Json;
10396
10849
  };
10850
+ pickstation_get_planning_context: {
10851
+ Args: never;
10852
+ Returns: import("../integrations/supabase/types").Json;
10853
+ };
10397
10854
  pickstation_get_settings: {
10398
10855
  Args: never;
10399
10856
  Returns: import("../integrations/supabase/types").Json;
@@ -10424,6 +10881,28 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10424
10881
  };
10425
10882
  Returns: undefined;
10426
10883
  };
10884
+ recompute_order_status: {
10885
+ Args: {
10886
+ p_order_id: string;
10887
+ };
10888
+ Returns: undefined;
10889
+ };
10890
+ recompute_reserved_for_order: {
10891
+ Args: {
10892
+ p_order_id: string;
10893
+ };
10894
+ Returns: undefined;
10895
+ };
10896
+ recompute_reserved_stock: {
10897
+ Args: {
10898
+ p_trade_item_key: string;
10899
+ };
10900
+ Returns: undefined;
10901
+ };
10902
+ refresh_external_customers_grouped: {
10903
+ Args: never;
10904
+ Returns: undefined;
10905
+ };
10427
10906
  refresh_floricode_derived_code_lists: {
10428
10907
  Args: never;
10429
10908
  Returns: {
@@ -10438,6 +10917,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10438
10917
  };
10439
10918
  Returns: number;
10440
10919
  };
10920
+ refresh_floricode_derived_for_products: {
10921
+ Args: {
10922
+ _product_ids: string[];
10923
+ };
10924
+ Returns: number;
10925
+ };
10441
10926
  reset_floriday_sync_cursor: {
10442
10927
  Args: {
10443
10928
  p_connection_id: string;
@@ -10445,6 +10930,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10445
10930
  };
10446
10931
  Returns: undefined;
10447
10932
  };
10933
+ resolve_product_id_for_item: {
10934
+ Args: {
10935
+ p_product_name: string;
10936
+ };
10937
+ Returns: string;
10938
+ };
10448
10939
  schedule_floriday_additional_services_sync: {
10449
10940
  Args: {
10450
10941
  p_apikey: string;
@@ -10722,6 +11213,24 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10722
11213
  };
10723
11214
  Returns: string[];
10724
11215
  };
11216
+ sync_cached_packing_from_product: {
11217
+ Args: {
11218
+ p_product_id: string;
11219
+ };
11220
+ Returns: undefined;
11221
+ };
11222
+ sync_order_cart_item_packing_from_product: {
11223
+ Args: {
11224
+ p_product_id: string;
11225
+ };
11226
+ Returns: undefined;
11227
+ };
11228
+ sync_product_packing_from_floriday_cache: {
11229
+ Args: {
11230
+ p_floriday_id: string;
11231
+ };
11232
+ Returns: undefined;
11233
+ };
10725
11234
  twinfield_decrypt: {
10726
11235
  Args: {
10727
11236
  cipher: string;
@@ -10734,6 +11243,17 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10734
11243
  };
10735
11244
  Returns: string;
10736
11245
  };
11246
+ upsert_auto_fulfillment_log: {
11247
+ Args: {
11248
+ p_connection_id: string;
11249
+ p_error?: string;
11250
+ p_fulfillment_order_id?: string;
11251
+ p_reason?: string;
11252
+ p_sales_order_id: string;
11253
+ p_status: string;
11254
+ };
11255
+ Returns: undefined;
11256
+ };
10737
11257
  };
10738
11258
  Enums: {
10739
11259
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";