@flowselections/floriday-klanten-module 1.0.34 → 1.0.35

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 (90) hide show
  1. package/dist-lib/assets/floriday-logo.png.asset.json +11 -0
  2. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts +5 -0
  3. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -0
  4. package/dist-lib/components/klanten/CustomerAssortmentTab.js +74 -0
  5. package/dist-lib/components/klanten/FloridayPriceImportDialog.d.ts +5 -0
  6. package/dist-lib/components/klanten/FloridayPriceImportDialog.d.ts.map +1 -0
  7. package/dist-lib/components/klanten/FloridayPriceImportDialog.js +55 -0
  8. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  9. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -3
  10. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  11. package/dist-lib/components/klanten/KlantDetail.js +10 -2
  12. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  13. package/dist-lib/components/klanten/KlantenOverzicht.js +24 -3
  14. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.d.ts +4 -0
  15. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.d.ts.map +1 -0
  16. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.js +47 -0
  17. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -1
  18. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +2 -1
  19. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.d.ts +5 -0
  20. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.d.ts.map +1 -0
  21. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.js +83 -0
  22. package/dist-lib/index.d.ts +8 -0
  23. package/dist-lib/index.d.ts.map +1 -1
  24. package/dist-lib/index.js +8 -0
  25. package/dist-lib/integrations/supabase/auth-middleware.d.ts +595 -0
  26. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/client.d.ts +595 -0
  28. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.server.d.ts +595 -0
  30. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +597 -0
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/lib/accounting/twinfield/mapping.js +13 -13
  34. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1785 -0
  35. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/accounting.functions.d.ts +1785 -0
  37. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/customer-analytics.functions.d.ts +595 -0
  39. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/customer-assortment.functions.d.ts +26666 -0
  41. package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -0
  42. package/dist-lib/lib/customer-assortment.functions.js +280 -0
  43. package/dist-lib/lib/customer-notes.functions.d.ts +1190 -0
  44. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/customer-revenue.functions.d.ts +595 -0
  46. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/customers.functions.d.ts +5355 -0
  48. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/delivery-locations.functions.d.ts +2975 -0
  50. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/errors.d.ts +12 -0
  52. package/dist-lib/lib/errors.d.ts.map +1 -1
  53. package/dist-lib/lib/errors.js +24 -0
  54. package/dist-lib/lib/external-customers.functions.d.ts +2380 -0
  55. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/floriday-assortment.functions.d.ts +595 -0
  57. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/floriday-catalog-prices.d.ts +33 -0
  59. package/dist-lib/lib/floriday-catalog-prices.d.ts.map +1 -0
  60. package/dist-lib/lib/floriday-catalog-prices.js +98 -0
  61. package/dist-lib/lib/floriday-discounts.functions.d.ts +1190 -0
  62. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/floriday-price-import.functions.d.ts +53265 -0
  64. package/dist-lib/lib/floriday-price-import.functions.d.ts.map +1 -0
  65. package/dist-lib/lib/floriday-price-import.functions.js +219 -0
  66. package/dist-lib/lib/floriday-trade-items.functions.d.ts +595 -0
  67. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday.server.d.ts +55 -0
  69. package/dist-lib/lib/floriday.server.d.ts.map +1 -0
  70. package/dist-lib/lib/floriday.server.js +765 -0
  71. package/dist-lib/lib/local-discounts.functions.d.ts +4165 -0
  72. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  73. package/dist-lib/lib/logistics-events.functions.d.ts +595 -0
  74. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/logistics-strategy.functions.d.ts +2380 -0
  76. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/overdue-invoices.functions.d.ts +595 -0
  78. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/price-groups-local.functions.d.ts +137905 -27
  80. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/price-groups-local.functions.js +145 -0
  82. package/dist-lib/lib/price-groups.functions.d.ts +601 -1
  83. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/twinfield-adopt.functions.d.ts +1190 -0
  85. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/twinfield-ledger.functions.d.ts +595 -0
  87. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/twinfield-ledger.server.js +21 -21
  89. package/package.json +1 -1
  90. package/public/flowselections-assets/Klanten/twinfield-logo.svg +217 -217
@@ -5851,6 +5851,84 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5851
5851
  referencedColumns: ["id"];
5852
5852
  }];
5853
5853
  };
5854
+ floriday_catalog_prices_cache: {
5855
+ Row: {
5856
+ connection_id: string;
5857
+ created_at: string;
5858
+ currency: string;
5859
+ id: string;
5860
+ is_deleted: boolean;
5861
+ price: number | null;
5862
+ price_group_id: string | null;
5863
+ price_group_name: string | null;
5864
+ price_type: string;
5865
+ raw: import("../integrations/supabase/types").Json | null;
5866
+ sales_unit: string | null;
5867
+ sequence_number: number;
5868
+ supplier_article_code: string | null;
5869
+ supply_line_id: string;
5870
+ synced_at: string;
5871
+ trade_item_id: string | null;
5872
+ updated_at: string;
5873
+ valid_from: string | null;
5874
+ valid_to: string | null;
5875
+ week: number | null;
5876
+ year: number | null;
5877
+ };
5878
+ Insert: {
5879
+ connection_id: string;
5880
+ created_at?: string;
5881
+ currency?: string;
5882
+ id?: string;
5883
+ is_deleted?: boolean;
5884
+ price?: number | null;
5885
+ price_group_id?: string | null;
5886
+ price_group_name?: string | null;
5887
+ price_type?: string;
5888
+ raw?: import("../integrations/supabase/types").Json | null;
5889
+ sales_unit?: string | null;
5890
+ sequence_number?: number;
5891
+ supplier_article_code?: string | null;
5892
+ supply_line_id: string;
5893
+ synced_at?: string;
5894
+ trade_item_id?: string | null;
5895
+ updated_at?: string;
5896
+ valid_from?: string | null;
5897
+ valid_to?: string | null;
5898
+ week?: number | null;
5899
+ year?: number | null;
5900
+ };
5901
+ Update: {
5902
+ connection_id?: string;
5903
+ created_at?: string;
5904
+ currency?: string;
5905
+ id?: string;
5906
+ is_deleted?: boolean;
5907
+ price?: number | null;
5908
+ price_group_id?: string | null;
5909
+ price_group_name?: string | null;
5910
+ price_type?: string;
5911
+ raw?: import("../integrations/supabase/types").Json | null;
5912
+ sales_unit?: string | null;
5913
+ sequence_number?: number;
5914
+ supplier_article_code?: string | null;
5915
+ supply_line_id?: string;
5916
+ synced_at?: string;
5917
+ trade_item_id?: string | null;
5918
+ updated_at?: string;
5919
+ valid_from?: string | null;
5920
+ valid_to?: string | null;
5921
+ week?: number | null;
5922
+ year?: number | null;
5923
+ };
5924
+ Relationships: [{
5925
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5926
+ columns: ["connection_id"];
5927
+ isOneToOne: false;
5928
+ referencedRelation: "floriday_connections";
5929
+ referencedColumns: ["id"];
5930
+ }];
5931
+ };
5854
5932
  floriday_clock_presales_cache: {
5855
5933
  Row: {
5856
5934
  buyer_organization_id: string | null;
@@ -10117,6 +10195,36 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10117
10195
  };
10118
10196
  Relationships: [];
10119
10197
  };
10198
+ logistics_floriday_push_refusals: {
10199
+ Row: {
10200
+ action: string | null;
10201
+ created_at: string;
10202
+ id: string;
10203
+ order_ref: string;
10204
+ reason: string;
10205
+ source_module: string | null;
10206
+ source_shell: string | null;
10207
+ };
10208
+ Insert: {
10209
+ action?: string | null;
10210
+ created_at?: string;
10211
+ id?: string;
10212
+ order_ref: string;
10213
+ reason: string;
10214
+ source_module?: string | null;
10215
+ source_shell?: string | null;
10216
+ };
10217
+ Update: {
10218
+ action?: string | null;
10219
+ created_at?: string;
10220
+ id?: string;
10221
+ order_ref?: string;
10222
+ reason?: string;
10223
+ source_module?: string | null;
10224
+ source_shell?: string | null;
10225
+ };
10226
+ Relationships: [];
10227
+ };
10120
10228
  logistics_floriday_pushes: {
10121
10229
  Row: {
10122
10230
  attempts: number;
@@ -10192,6 +10300,42 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10192
10300
  };
10193
10301
  Relationships: [];
10194
10302
  };
10303
+ logistics_floriday_status_sends: {
10304
+ Row: {
10305
+ action: string;
10306
+ created_at: string;
10307
+ detail: string | null;
10308
+ http_status: number | null;
10309
+ id: string;
10310
+ ok: boolean;
10311
+ order_ref: string;
10312
+ source_module: string | null;
10313
+ source_shell: string | null;
10314
+ };
10315
+ Insert: {
10316
+ action: string;
10317
+ created_at?: string;
10318
+ detail?: string | null;
10319
+ http_status?: number | null;
10320
+ id?: string;
10321
+ ok?: boolean;
10322
+ order_ref: string;
10323
+ source_module?: string | null;
10324
+ source_shell?: string | null;
10325
+ };
10326
+ Update: {
10327
+ action?: string;
10328
+ created_at?: string;
10329
+ detail?: string | null;
10330
+ http_status?: number | null;
10331
+ id?: string;
10332
+ ok?: boolean;
10333
+ order_ref?: string;
10334
+ source_module?: string | null;
10335
+ source_shell?: string | null;
10336
+ };
10337
+ Relationships: [];
10338
+ };
10195
10339
  logistics_formulas: {
10196
10340
  Row: {
10197
10341
  created_at: string;
@@ -10264,6 +10408,108 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10264
10408
  };
10265
10409
  Relationships: [];
10266
10410
  };
10411
+ logistics_opening_exceptions: {
10412
+ Row: {
10413
+ closes: string | null;
10414
+ created_at: string;
10415
+ day: string;
10416
+ id: string;
10417
+ is_closed: boolean;
10418
+ note: string | null;
10419
+ opens: string | null;
10420
+ };
10421
+ Insert: {
10422
+ closes?: string | null;
10423
+ created_at?: string;
10424
+ day: string;
10425
+ id?: string;
10426
+ is_closed?: boolean;
10427
+ note?: string | null;
10428
+ opens?: string | null;
10429
+ };
10430
+ Update: {
10431
+ closes?: string | null;
10432
+ created_at?: string;
10433
+ day?: string;
10434
+ id?: string;
10435
+ is_closed?: boolean;
10436
+ note?: string | null;
10437
+ opens?: string | null;
10438
+ };
10439
+ Relationships: [];
10440
+ };
10441
+ logistics_opening_hours: {
10442
+ Row: {
10443
+ closes: string;
10444
+ created_at: string;
10445
+ id: string;
10446
+ is_active: boolean;
10447
+ note: string | null;
10448
+ opens: string;
10449
+ weekday: number;
10450
+ };
10451
+ Insert: {
10452
+ closes: string;
10453
+ created_at?: string;
10454
+ id?: string;
10455
+ is_active?: boolean;
10456
+ note?: string | null;
10457
+ opens: string;
10458
+ weekday: number;
10459
+ };
10460
+ Update: {
10461
+ closes?: string;
10462
+ created_at?: string;
10463
+ id?: string;
10464
+ is_active?: boolean;
10465
+ note?: string | null;
10466
+ opens?: string;
10467
+ weekday?: number;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10471
+ logistics_pick_data_requests: {
10472
+ Row: {
10473
+ actions: import("../integrations/supabase/types").Json;
10474
+ created_at: string;
10475
+ event_id: string | null;
10476
+ finished_at: string | null;
10477
+ id: string;
10478
+ missing: import("../integrations/supabase/types").Json;
10479
+ order_ref: string;
10480
+ reason: string | null;
10481
+ result: import("../integrations/supabase/types").Json | null;
10482
+ status: string;
10483
+ unit_ref: string | null;
10484
+ };
10485
+ Insert: {
10486
+ actions?: import("../integrations/supabase/types").Json;
10487
+ created_at?: string;
10488
+ event_id?: string | null;
10489
+ finished_at?: string | null;
10490
+ id?: string;
10491
+ missing?: import("../integrations/supabase/types").Json;
10492
+ order_ref: string;
10493
+ reason?: string | null;
10494
+ result?: import("../integrations/supabase/types").Json | null;
10495
+ status?: string;
10496
+ unit_ref?: string | null;
10497
+ };
10498
+ Update: {
10499
+ actions?: import("../integrations/supabase/types").Json;
10500
+ created_at?: string;
10501
+ event_id?: string | null;
10502
+ finished_at?: string | null;
10503
+ id?: string;
10504
+ missing?: import("../integrations/supabase/types").Json;
10505
+ order_ref?: string;
10506
+ reason?: string | null;
10507
+ result?: import("../integrations/supabase/types").Json | null;
10508
+ status?: string;
10509
+ unit_ref?: string | null;
10510
+ };
10511
+ Relationships: [];
10512
+ };
10267
10513
  logistics_pickup_moments: {
10268
10514
  Row: {
10269
10515
  carrier_ref: string | null;
@@ -11056,6 +11302,24 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11056
11302
  };
11057
11303
  Relationships: [];
11058
11304
  };
11305
+ logistics_time_settings: {
11306
+ Row: {
11307
+ id: boolean;
11308
+ timezone: string;
11309
+ updated_at: string;
11310
+ };
11311
+ Insert: {
11312
+ id?: boolean;
11313
+ timezone: string;
11314
+ updated_at?: string;
11315
+ };
11316
+ Update: {
11317
+ id?: boolean;
11318
+ timezone?: string;
11319
+ updated_at?: string;
11320
+ };
11321
+ Relationships: [];
11322
+ };
11059
11323
  logistics_variables: {
11060
11324
  Row: {
11061
11325
  created_at: string;
@@ -13446,6 +13710,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13446
13710
  customer_name: string;
13447
13711
  deleted_at: string | null;
13448
13712
  delivery_date: string | null;
13713
+ floriday_order_group_key: string | null;
13449
13714
  floriday_sales_order_id: string | null;
13450
13715
  id: string;
13451
13716
  invoice_due_at: string | null;
@@ -13473,6 +13738,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13473
13738
  customer_name?: string;
13474
13739
  deleted_at?: string | null;
13475
13740
  delivery_date?: string | null;
13741
+ floriday_order_group_key?: string | null;
13476
13742
  floriday_sales_order_id?: string | null;
13477
13743
  id?: string;
13478
13744
  invoice_due_at?: string | null;
@@ -13500,6 +13766,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13500
13766
  customer_name?: string;
13501
13767
  deleted_at?: string | null;
13502
13768
  delivery_date?: string | null;
13769
+ floriday_order_group_key?: string | null;
13503
13770
  floriday_sales_order_id?: string | null;
13504
13771
  id?: string;
13505
13772
  invoice_due_at?: string | null;
@@ -13693,6 +13960,27 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13693
13960
  };
13694
13961
  Relationships: [];
13695
13962
  };
13963
+ pick_buffer_event_cursor: {
13964
+ Row: {
13965
+ created_at: string;
13966
+ id: boolean;
13967
+ last_event_at: string;
13968
+ updated_at: string;
13969
+ };
13970
+ Insert: {
13971
+ created_at?: string;
13972
+ id?: boolean;
13973
+ last_event_at?: string;
13974
+ updated_at?: string;
13975
+ };
13976
+ Update: {
13977
+ created_at?: string;
13978
+ id?: boolean;
13979
+ last_event_at?: string;
13980
+ updated_at?: string;
13981
+ };
13982
+ Relationships: [];
13983
+ };
13696
13984
  pick_countries: {
13697
13985
  Row: {
13698
13986
  active: boolean;
@@ -19342,6 +19630,36 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19342
19630
  referencedColumns: ["id"];
19343
19631
  }];
19344
19632
  };
19633
+ voorraad_buffer_state: {
19634
+ Row: {
19635
+ buffer_id: string;
19636
+ buffer_key: string | null;
19637
+ closed_at: string | null;
19638
+ created_at: string;
19639
+ detached_orders: import("../integrations/supabase/types").Json;
19640
+ reason: string | null;
19641
+ updated_at: string;
19642
+ };
19643
+ Insert: {
19644
+ buffer_id: string;
19645
+ buffer_key?: string | null;
19646
+ closed_at?: string | null;
19647
+ created_at?: string;
19648
+ detached_orders?: import("../integrations/supabase/types").Json;
19649
+ reason?: string | null;
19650
+ updated_at?: string;
19651
+ };
19652
+ Update: {
19653
+ buffer_id?: string;
19654
+ buffer_key?: string | null;
19655
+ closed_at?: string | null;
19656
+ created_at?: string;
19657
+ detached_orders?: import("../integrations/supabase/types").Json;
19658
+ reason?: string | null;
19659
+ updated_at?: string;
19660
+ };
19661
+ Relationships: [];
19662
+ };
19345
19663
  voorraad_custom_fields: {
19346
19664
  Row: {
19347
19665
  created_at: string;
@@ -19384,6 +19702,36 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19384
19702
  };
19385
19703
  Relationships: [];
19386
19704
  };
19705
+ voorraad_logistics_event_log: {
19706
+ Row: {
19707
+ created_at: string;
19708
+ event_id: string;
19709
+ event_type: string;
19710
+ order_ref: string | null;
19711
+ processed_at: string;
19712
+ result: import("../integrations/supabase/types").Json;
19713
+ updated_at: string;
19714
+ };
19715
+ Insert: {
19716
+ created_at?: string;
19717
+ event_id: string;
19718
+ event_type: string;
19719
+ order_ref?: string | null;
19720
+ processed_at?: string;
19721
+ result?: import("../integrations/supabase/types").Json;
19722
+ updated_at?: string;
19723
+ };
19724
+ Update: {
19725
+ created_at?: string;
19726
+ event_id?: string;
19727
+ event_type?: string;
19728
+ order_ref?: string | null;
19729
+ processed_at?: string;
19730
+ result?: import("../integrations/supabase/types").Json;
19731
+ updated_at?: string;
19732
+ };
19733
+ Relationships: [];
19734
+ };
19387
19735
  voorraad_media_upload_failures: {
19388
19736
  Row: {
19389
19737
  action: string;
@@ -22209,6 +22557,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22209
22557
  };
22210
22558
  Returns: boolean;
22211
22559
  };
22560
+ floriday_adopt_connection: {
22561
+ Args: {
22562
+ p_new: string;
22563
+ p_old: string;
22564
+ };
22565
+ Returns: import("../integrations/supabase/types").Json;
22566
+ };
22567
+ floriday_autoheal_connections: {
22568
+ Args: never;
22569
+ Returns: import("../integrations/supabase/types").Json;
22570
+ };
22212
22571
  floriday_capture_stock_snapshot: {
22213
22572
  Args: never;
22214
22573
  Returns: number;
@@ -22266,6 +22625,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22266
22625
  };
22267
22626
  Returns: undefined;
22268
22627
  };
22628
+ floriday_relink_products: {
22629
+ Args: {
22630
+ p_connection_id?: string;
22631
+ };
22632
+ Returns: import("../integrations/supabase/types").Json;
22633
+ };
22269
22634
  floriday_requeue_dead_letters: {
22270
22635
  Args: {
22271
22636
  p_connection_id?: string;
@@ -22887,6 +23252,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22887
23252
  };
22888
23253
  Returns: string;
22889
23254
  };
23255
+ logistics_active_layout_method: {
23256
+ Args: never;
23257
+ Returns: string;
23258
+ };
22890
23259
  logistics_active_pick_workdays: {
22891
23260
  Args: never;
22892
23261
  Returns: string[];
@@ -22994,6 +23363,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22994
23363
  };
22995
23364
  Returns: boolean;
22996
23365
  };
23366
+ logistics_buffer_notify: {
23367
+ Args: {
23368
+ p_event_type: string;
23369
+ p_idempotency_key: string;
23370
+ p_order_ref: string;
23371
+ p_payload: import("../integrations/supabase/types").Json;
23372
+ };
23373
+ Returns: string;
23374
+ };
22997
23375
  logistics_buffer_open_key: {
22998
23376
  Args: {
22999
23377
  p_base_key: string;
@@ -23052,6 +23430,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23052
23430
  };
23053
23431
  Returns: string;
23054
23432
  };
23433
+ logistics_cart_checkin_at: {
23434
+ Args: {
23435
+ p_cart_id: string;
23436
+ };
23437
+ Returns: string;
23438
+ };
23055
23439
  logistics_cart_handled: {
23056
23440
  Args: {
23057
23441
  p_cart_index: number;
@@ -23085,10 +23469,22 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23085
23469
  task_status: string;
23086
23470
  }[];
23087
23471
  };
23472
+ logistics_cart_is_full: {
23473
+ Args: {
23474
+ p_cart_id: string;
23475
+ };
23476
+ Returns: boolean;
23477
+ };
23088
23478
  logistics_cart_layout_method: {
23089
23479
  Args: never;
23090
23480
  Returns: import("../integrations/supabase/types").Json;
23091
23481
  };
23482
+ logistics_cart_order_refs: {
23483
+ Args: {
23484
+ p_cart_id: string;
23485
+ };
23486
+ Returns: string[];
23487
+ };
23092
23488
  logistics_cart_plan_overview: {
23093
23489
  Args: {
23094
23490
  p_days?: number;
@@ -23108,6 +23504,18 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23108
23504
  };
23109
23505
  Returns: import("../integrations/supabase/types").Json;
23110
23506
  };
23507
+ logistics_cart_release_reason: {
23508
+ Args: {
23509
+ p_cart_id: string;
23510
+ };
23511
+ Returns: string;
23512
+ };
23513
+ logistics_cart_released: {
23514
+ Args: {
23515
+ p_cart_id: string;
23516
+ };
23517
+ Returns: boolean;
23518
+ };
23111
23519
  logistics_cart_seq: {
23112
23520
  Args: {
23113
23521
  p_order_uuid?: string;
@@ -23261,6 +23669,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23261
23669
  isSetofReturn: false;
23262
23670
  };
23263
23671
  };
23672
+ logistics_cleanup_orphan_print_jobs: {
23673
+ Args: never;
23674
+ Returns: import("../integrations/supabase/types").Json;
23675
+ };
23264
23676
  logistics_complete_task: {
23265
23677
  Args: {
23266
23678
  p_result?: import("../integrations/supabase/types").Json;
@@ -23323,6 +23735,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23323
23735
  station_carts: number;
23324
23736
  }[];
23325
23737
  };
23738
+ logistics_control_complete_cart: {
23739
+ Args: {
23740
+ p_cart_id: string;
23741
+ };
23742
+ Returns: number;
23743
+ };
23326
23744
  logistics_control_scan_approve: {
23327
23745
  Args: {
23328
23746
  p_allow_reprint?: boolean;
@@ -23402,6 +23820,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23402
23820
  Args: never;
23403
23821
  Returns: import("../integrations/supabase/types").Json;
23404
23822
  };
23823
+ logistics_day_windows: {
23824
+ Args: {
23825
+ p_day: string;
23826
+ };
23827
+ Returns: {
23828
+ win_end: string;
23829
+ win_start: string;
23830
+ }[];
23831
+ };
23405
23832
  logistics_delay_customer_email: {
23406
23833
  Args: {
23407
23834
  p_customer: string;
@@ -23469,6 +23896,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23469
23896
  };
23470
23897
  Returns: import("../integrations/supabase/types").Json;
23471
23898
  };
23899
+ logistics_enqueue_shipping_note_with_slip: {
23900
+ Args: {
23901
+ _cart_id: string;
23902
+ _is_herprint: boolean;
23903
+ _printer_id: string;
23904
+ _queue_item_id: string;
23905
+ _session_id: string;
23906
+ _slip_job_id: string;
23907
+ };
23908
+ Returns: string;
23909
+ };
23472
23910
  logistics_enqueue_sticker_with_slip: {
23473
23911
  Args: {
23474
23912
  _cart_id: string;
@@ -23486,6 +23924,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23486
23924
  };
23487
23925
  Returns: string;
23488
23926
  };
23927
+ logistics_ensure_pick_data: {
23928
+ Args: {
23929
+ p_event_id?: string;
23930
+ p_missing?: import("../integrations/supabase/types").Json;
23931
+ p_ref: string;
23932
+ };
23933
+ Returns: import("../integrations/supabase/types").Json;
23934
+ };
23489
23935
  logistics_fail_task: {
23490
23936
  Args: {
23491
23937
  p_error: string;
@@ -23607,6 +24053,38 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23607
24053
  };
23608
24054
  Returns: string;
23609
24055
  };
24056
+ logistics_floriday_gate_status: {
24057
+ Args: never;
24058
+ Returns: import("../integrations/supabase/types").Json;
24059
+ };
24060
+ logistics_floriday_log_refusal: {
24061
+ Args: {
24062
+ _action?: string;
24063
+ _module?: string;
24064
+ _order_ref: string;
24065
+ _reason: string;
24066
+ _shell?: string;
24067
+ };
24068
+ Returns: undefined;
24069
+ };
24070
+ logistics_floriday_log_send: {
24071
+ Args: {
24072
+ _action: string;
24073
+ _detail?: string;
24074
+ _http_status?: number;
24075
+ _module?: string;
24076
+ _ok: boolean;
24077
+ _order_ref: string;
24078
+ _shell?: string;
24079
+ };
24080
+ Returns: undefined;
24081
+ };
24082
+ logistics_floriday_order_approved: {
24083
+ Args: {
24084
+ _order_ref: string;
24085
+ };
24086
+ Returns: boolean;
24087
+ };
23610
24088
  logistics_floriday_prune_pushes: {
23611
24089
  Args: {
23612
24090
  _days?: number;
@@ -23621,6 +24099,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23621
24099
  };
23622
24100
  Returns: string;
23623
24101
  };
24102
+ logistics_floriday_status_updates_enabled: {
24103
+ Args: never;
24104
+ Returns: boolean;
24105
+ };
24106
+ logistics_floriday_stock_updates_enabled: {
24107
+ Args: never;
24108
+ Returns: boolean;
24109
+ };
24110
+ logistics_floriday_write_allowed: {
24111
+ Args: {
24112
+ _action: string;
24113
+ };
24114
+ Returns: boolean;
24115
+ };
23624
24116
  logistics_fulfill_barcode_requests: {
23625
24117
  Args: {
23626
24118
  p_limit?: number;
@@ -23641,6 +24133,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23641
24133
  };
23642
24134
  Returns: boolean;
23643
24135
  };
24136
+ logistics_layout_method_status: {
24137
+ Args: never;
24138
+ Returns: import("../integrations/supabase/types").Json;
24139
+ };
24140
+ logistics_link_order_items: {
24141
+ Args: {
24142
+ p_order?: string;
24143
+ };
24144
+ Returns: import("../integrations/supabase/types").Json;
24145
+ };
23644
24146
  logistics_live_carriers: {
23645
24147
  Args: {
23646
24148
  p_order_ref: string;
@@ -23653,6 +24155,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23653
24155
  };
23654
24156
  Returns: number;
23655
24157
  };
24158
+ logistics_merge_partial_carts: {
24159
+ Args: {
24160
+ p_limit?: number;
24161
+ };
24162
+ Returns: import("../integrations/supabase/types").Json;
24163
+ };
23656
24164
  logistics_next_workday_date: {
23657
24165
  Args: {
23658
24166
  p_date: string;
@@ -23667,12 +24175,22 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23667
24175
  };
23668
24176
  Returns: string;
23669
24177
  };
24178
+ logistics_normalize_product_label: {
24179
+ Args: {
24180
+ p_label: string;
24181
+ };
24182
+ Returns: string;
24183
+ };
23670
24184
  logistics_not_past: {
23671
24185
  Args: {
23672
24186
  p_ts: string;
23673
24187
  };
23674
24188
  Returns: string;
23675
24189
  };
24190
+ logistics_opening_timezone: {
24191
+ Args: never;
24192
+ Returns: string;
24193
+ };
23676
24194
  logistics_order_cart_count: {
23677
24195
  Args: {
23678
24196
  p_order_ref: string;
@@ -23757,6 +24275,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23757
24275
  Args: never;
23758
24276
  Returns: import("../integrations/supabase/types").Json;
23759
24277
  };
24278
+ logistics_pick_partial_mode: {
24279
+ Args: never;
24280
+ Returns: string;
24281
+ };
23760
24282
  logistics_pick_start_estimate: {
23761
24283
  Args: {
23762
24284
  p_order: import("../integrations/supabase/types").Json;
@@ -23868,6 +24390,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23868
24390
  };
23869
24391
  Returns: number;
23870
24392
  };
24393
+ logistics_prepare_pick_documents: {
24394
+ Args: {
24395
+ p_limit?: number;
24396
+ };
24397
+ Returns: import("../integrations/supabase/types").Json;
24398
+ };
23871
24399
  logistics_prune_buffer_member_queue: {
23872
24400
  Args: never;
23873
24401
  Returns: number;
@@ -23908,12 +24436,30 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23908
24436
  Args: never;
23909
24437
  Returns: import("../integrations/supabase/types").Json;
23910
24438
  };
24439
+ logistics_refresh_pick_queue_status: {
24440
+ Args: {
24441
+ p_ref: string;
24442
+ };
24443
+ Returns: number;
24444
+ };
23911
24445
  logistics_refresh_pickup_moments: {
23912
24446
  Args: {
23913
24447
  p_weeks?: number;
23914
24448
  };
23915
24449
  Returns: import("../integrations/supabase/types").Json;
23916
24450
  };
24451
+ logistics_replan_all: {
24452
+ Args: {
24453
+ p_reason?: string;
24454
+ };
24455
+ Returns: import("../integrations/supabase/types").Json;
24456
+ };
24457
+ logistics_replan_all_force: {
24458
+ Args: {
24459
+ p_reason?: string;
24460
+ };
24461
+ Returns: import("../integrations/supabase/types").Json;
24462
+ };
23917
24463
  logistics_report_delay: {
23918
24464
  Args: {
23919
24465
  p_expected_date?: string;
@@ -23967,6 +24513,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23967
24513
  };
23968
24514
  Returns: import("../integrations/supabase/types").Json;
23969
24515
  };
24516
+ logistics_resolve_product_id: {
24517
+ Args: {
24518
+ p_label: string;
24519
+ };
24520
+ Returns: string;
24521
+ };
23970
24522
  logistics_resolve_settings: {
23971
24523
  Args: {
23972
24524
  p_config_id: string;
@@ -24052,6 +24604,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24052
24604
  };
24053
24605
  Returns: string;
24054
24606
  };
24607
+ logistics_shipping_note_follows_slip: {
24608
+ Args: never;
24609
+ Returns: boolean;
24610
+ };
24055
24611
  logistics_shipping_note_from_barcode: {
24056
24612
  Args: {
24057
24613
  p_allow_reprint?: boolean;
@@ -24064,6 +24620,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24064
24620
  Args: never;
24065
24621
  Returns: boolean;
24066
24622
  };
24623
+ logistics_subtract_working_minutes: {
24624
+ Args: {
24625
+ p_deadline: string;
24626
+ p_max_workdays?: number;
24627
+ p_minutes: number;
24628
+ };
24629
+ Returns: import("../integrations/supabase/types").Json;
24630
+ };
24067
24631
  logistics_supersede_stale_tasks: {
24068
24632
  Args: {
24069
24633
  p_keep: string[];
@@ -24100,6 +24664,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24100
24664
  Args: never;
24101
24665
  Returns: string;
24102
24666
  };
24667
+ logistics_timezone_options: {
24668
+ Args: never;
24669
+ Returns: {
24670
+ name: string;
24671
+ }[];
24672
+ };
24103
24673
  logistics_upsert_task: {
24104
24674
  Args: {
24105
24675
  p_buffer_ref: string;
@@ -24119,6 +24689,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24119
24689
  };
24120
24690
  Returns: string;
24121
24691
  };
24692
+ logistics_valid_timezone: {
24693
+ Args: {
24694
+ _tz: string;
24695
+ };
24696
+ Returns: boolean;
24697
+ };
24698
+ logistics_working_hours_status: {
24699
+ Args: never;
24700
+ Returns: import("../integrations/supabase/types").Json;
24701
+ };
24122
24702
  logistics_write_buffer_layer_positions: {
24123
24703
  Args: {
24124
24704
  p_buffer_id: string;
@@ -24284,6 +24864,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24284
24864
  online: boolean;
24285
24865
  }[];
24286
24866
  };
24867
+ pick_apply_buffer_events: {
24868
+ Args: never;
24869
+ Returns: import("../integrations/supabase/types").Json;
24870
+ };
24287
24871
  pick_available_pick_days: {
24288
24872
  Args: {
24289
24873
  _max_days?: number;
@@ -25560,6 +26144,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25560
26144
  };
25561
26145
  Returns: number;
25562
26146
  };
26147
+ schedule_floriday_catalog_prices_sync: {
26148
+ Args: {
26149
+ p_apikey: string;
26150
+ p_url: string;
26151
+ };
26152
+ Returns: number;
26153
+ };
25563
26154
  schedule_floriday_clock_presales_sync: {
25564
26155
  Args: {
25565
26156
  p_apikey: string;
@@ -25860,6 +26451,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25860
26451
  };
25861
26452
  Returns: undefined;
25862
26453
  };
26454
+ sync_floriday_prices_into_price_groups: {
26455
+ Args: never;
26456
+ Returns: number;
26457
+ };
25863
26458
  sync_layer_stock: {
25864
26459
  Args: {
25865
26460
  p_product_id: string;
@@ -31881,6 +32476,84 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
31881
32476
  referencedColumns: ["id"];
31882
32477
  }];
31883
32478
  };
32479
+ floriday_catalog_prices_cache: {
32480
+ Row: {
32481
+ connection_id: string;
32482
+ created_at: string;
32483
+ currency: string;
32484
+ id: string;
32485
+ is_deleted: boolean;
32486
+ price: number | null;
32487
+ price_group_id: string | null;
32488
+ price_group_name: string | null;
32489
+ price_type: string;
32490
+ raw: import("../integrations/supabase/types").Json | null;
32491
+ sales_unit: string | null;
32492
+ sequence_number: number;
32493
+ supplier_article_code: string | null;
32494
+ supply_line_id: string;
32495
+ synced_at: string;
32496
+ trade_item_id: string | null;
32497
+ updated_at: string;
32498
+ valid_from: string | null;
32499
+ valid_to: string | null;
32500
+ week: number | null;
32501
+ year: number | null;
32502
+ };
32503
+ Insert: {
32504
+ connection_id: string;
32505
+ created_at?: string;
32506
+ currency?: string;
32507
+ id?: string;
32508
+ is_deleted?: boolean;
32509
+ price?: number | null;
32510
+ price_group_id?: string | null;
32511
+ price_group_name?: string | null;
32512
+ price_type?: string;
32513
+ raw?: import("../integrations/supabase/types").Json | null;
32514
+ sales_unit?: string | null;
32515
+ sequence_number?: number;
32516
+ supplier_article_code?: string | null;
32517
+ supply_line_id: string;
32518
+ synced_at?: string;
32519
+ trade_item_id?: string | null;
32520
+ updated_at?: string;
32521
+ valid_from?: string | null;
32522
+ valid_to?: string | null;
32523
+ week?: number | null;
32524
+ year?: number | null;
32525
+ };
32526
+ Update: {
32527
+ connection_id?: string;
32528
+ created_at?: string;
32529
+ currency?: string;
32530
+ id?: string;
32531
+ is_deleted?: boolean;
32532
+ price?: number | null;
32533
+ price_group_id?: string | null;
32534
+ price_group_name?: string | null;
32535
+ price_type?: string;
32536
+ raw?: import("../integrations/supabase/types").Json | null;
32537
+ sales_unit?: string | null;
32538
+ sequence_number?: number;
32539
+ supplier_article_code?: string | null;
32540
+ supply_line_id?: string;
32541
+ synced_at?: string;
32542
+ trade_item_id?: string | null;
32543
+ updated_at?: string;
32544
+ valid_from?: string | null;
32545
+ valid_to?: string | null;
32546
+ week?: number | null;
32547
+ year?: number | null;
32548
+ };
32549
+ Relationships: [{
32550
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32551
+ columns: ["connection_id"];
32552
+ isOneToOne: false;
32553
+ referencedRelation: "floriday_connections";
32554
+ referencedColumns: ["id"];
32555
+ }];
32556
+ };
31884
32557
  floriday_clock_presales_cache: {
31885
32558
  Row: {
31886
32559
  buyer_organization_id: string | null;
@@ -36147,6 +36820,36 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
36147
36820
  };
36148
36821
  Relationships: [];
36149
36822
  };
36823
+ logistics_floriday_push_refusals: {
36824
+ Row: {
36825
+ action: string | null;
36826
+ created_at: string;
36827
+ id: string;
36828
+ order_ref: string;
36829
+ reason: string;
36830
+ source_module: string | null;
36831
+ source_shell: string | null;
36832
+ };
36833
+ Insert: {
36834
+ action?: string | null;
36835
+ created_at?: string;
36836
+ id?: string;
36837
+ order_ref: string;
36838
+ reason: string;
36839
+ source_module?: string | null;
36840
+ source_shell?: string | null;
36841
+ };
36842
+ Update: {
36843
+ action?: string | null;
36844
+ created_at?: string;
36845
+ id?: string;
36846
+ order_ref?: string;
36847
+ reason?: string;
36848
+ source_module?: string | null;
36849
+ source_shell?: string | null;
36850
+ };
36851
+ Relationships: [];
36852
+ };
36150
36853
  logistics_floriday_pushes: {
36151
36854
  Row: {
36152
36855
  attempts: number;
@@ -36222,6 +36925,42 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
36222
36925
  };
36223
36926
  Relationships: [];
36224
36927
  };
36928
+ logistics_floriday_status_sends: {
36929
+ Row: {
36930
+ action: string;
36931
+ created_at: string;
36932
+ detail: string | null;
36933
+ http_status: number | null;
36934
+ id: string;
36935
+ ok: boolean;
36936
+ order_ref: string;
36937
+ source_module: string | null;
36938
+ source_shell: string | null;
36939
+ };
36940
+ Insert: {
36941
+ action: string;
36942
+ created_at?: string;
36943
+ detail?: string | null;
36944
+ http_status?: number | null;
36945
+ id?: string;
36946
+ ok?: boolean;
36947
+ order_ref: string;
36948
+ source_module?: string | null;
36949
+ source_shell?: string | null;
36950
+ };
36951
+ Update: {
36952
+ action?: string;
36953
+ created_at?: string;
36954
+ detail?: string | null;
36955
+ http_status?: number | null;
36956
+ id?: string;
36957
+ ok?: boolean;
36958
+ order_ref?: string;
36959
+ source_module?: string | null;
36960
+ source_shell?: string | null;
36961
+ };
36962
+ Relationships: [];
36963
+ };
36225
36964
  logistics_formulas: {
36226
36965
  Row: {
36227
36966
  created_at: string;
@@ -36294,6 +37033,108 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
36294
37033
  };
36295
37034
  Relationships: [];
36296
37035
  };
37036
+ logistics_opening_exceptions: {
37037
+ Row: {
37038
+ closes: string | null;
37039
+ created_at: string;
37040
+ day: string;
37041
+ id: string;
37042
+ is_closed: boolean;
37043
+ note: string | null;
37044
+ opens: string | null;
37045
+ };
37046
+ Insert: {
37047
+ closes?: string | null;
37048
+ created_at?: string;
37049
+ day: string;
37050
+ id?: string;
37051
+ is_closed?: boolean;
37052
+ note?: string | null;
37053
+ opens?: string | null;
37054
+ };
37055
+ Update: {
37056
+ closes?: string | null;
37057
+ created_at?: string;
37058
+ day?: string;
37059
+ id?: string;
37060
+ is_closed?: boolean;
37061
+ note?: string | null;
37062
+ opens?: string | null;
37063
+ };
37064
+ Relationships: [];
37065
+ };
37066
+ logistics_opening_hours: {
37067
+ Row: {
37068
+ closes: string;
37069
+ created_at: string;
37070
+ id: string;
37071
+ is_active: boolean;
37072
+ note: string | null;
37073
+ opens: string;
37074
+ weekday: number;
37075
+ };
37076
+ Insert: {
37077
+ closes: string;
37078
+ created_at?: string;
37079
+ id?: string;
37080
+ is_active?: boolean;
37081
+ note?: string | null;
37082
+ opens: string;
37083
+ weekday: number;
37084
+ };
37085
+ Update: {
37086
+ closes?: string;
37087
+ created_at?: string;
37088
+ id?: string;
37089
+ is_active?: boolean;
37090
+ note?: string | null;
37091
+ opens?: string;
37092
+ weekday?: number;
37093
+ };
37094
+ Relationships: [];
37095
+ };
37096
+ logistics_pick_data_requests: {
37097
+ Row: {
37098
+ actions: import("../integrations/supabase/types").Json;
37099
+ created_at: string;
37100
+ event_id: string | null;
37101
+ finished_at: string | null;
37102
+ id: string;
37103
+ missing: import("../integrations/supabase/types").Json;
37104
+ order_ref: string;
37105
+ reason: string | null;
37106
+ result: import("../integrations/supabase/types").Json | null;
37107
+ status: string;
37108
+ unit_ref: string | null;
37109
+ };
37110
+ Insert: {
37111
+ actions?: import("../integrations/supabase/types").Json;
37112
+ created_at?: string;
37113
+ event_id?: string | null;
37114
+ finished_at?: string | null;
37115
+ id?: string;
37116
+ missing?: import("../integrations/supabase/types").Json;
37117
+ order_ref: string;
37118
+ reason?: string | null;
37119
+ result?: import("../integrations/supabase/types").Json | null;
37120
+ status?: string;
37121
+ unit_ref?: string | null;
37122
+ };
37123
+ Update: {
37124
+ actions?: import("../integrations/supabase/types").Json;
37125
+ created_at?: string;
37126
+ event_id?: string | null;
37127
+ finished_at?: string | null;
37128
+ id?: string;
37129
+ missing?: import("../integrations/supabase/types").Json;
37130
+ order_ref?: string;
37131
+ reason?: string | null;
37132
+ result?: import("../integrations/supabase/types").Json | null;
37133
+ status?: string;
37134
+ unit_ref?: string | null;
37135
+ };
37136
+ Relationships: [];
37137
+ };
36297
37138
  logistics_pickup_moments: {
36298
37139
  Row: {
36299
37140
  carrier_ref: string | null;
@@ -37086,6 +37927,24 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
37086
37927
  };
37087
37928
  Relationships: [];
37088
37929
  };
37930
+ logistics_time_settings: {
37931
+ Row: {
37932
+ id: boolean;
37933
+ timezone: string;
37934
+ updated_at: string;
37935
+ };
37936
+ Insert: {
37937
+ id?: boolean;
37938
+ timezone: string;
37939
+ updated_at?: string;
37940
+ };
37941
+ Update: {
37942
+ id?: boolean;
37943
+ timezone?: string;
37944
+ updated_at?: string;
37945
+ };
37946
+ Relationships: [];
37947
+ };
37089
37948
  logistics_variables: {
37090
37949
  Row: {
37091
37950
  created_at: string;
@@ -39476,6 +40335,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39476
40335
  customer_name: string;
39477
40336
  deleted_at: string | null;
39478
40337
  delivery_date: string | null;
40338
+ floriday_order_group_key: string | null;
39479
40339
  floriday_sales_order_id: string | null;
39480
40340
  id: string;
39481
40341
  invoice_due_at: string | null;
@@ -39503,6 +40363,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39503
40363
  customer_name?: string;
39504
40364
  deleted_at?: string | null;
39505
40365
  delivery_date?: string | null;
40366
+ floriday_order_group_key?: string | null;
39506
40367
  floriday_sales_order_id?: string | null;
39507
40368
  id?: string;
39508
40369
  invoice_due_at?: string | null;
@@ -39530,6 +40391,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39530
40391
  customer_name?: string;
39531
40392
  deleted_at?: string | null;
39532
40393
  delivery_date?: string | null;
40394
+ floriday_order_group_key?: string | null;
39533
40395
  floriday_sales_order_id?: string | null;
39534
40396
  id?: string;
39535
40397
  invoice_due_at?: string | null;
@@ -39723,6 +40585,27 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
39723
40585
  };
39724
40586
  Relationships: [];
39725
40587
  };
40588
+ pick_buffer_event_cursor: {
40589
+ Row: {
40590
+ created_at: string;
40591
+ id: boolean;
40592
+ last_event_at: string;
40593
+ updated_at: string;
40594
+ };
40595
+ Insert: {
40596
+ created_at?: string;
40597
+ id?: boolean;
40598
+ last_event_at?: string;
40599
+ updated_at?: string;
40600
+ };
40601
+ Update: {
40602
+ created_at?: string;
40603
+ id?: boolean;
40604
+ last_event_at?: string;
40605
+ updated_at?: string;
40606
+ };
40607
+ Relationships: [];
40608
+ };
39726
40609
  pick_countries: {
39727
40610
  Row: {
39728
40611
  active: boolean;
@@ -45372,6 +46255,36 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
45372
46255
  referencedColumns: ["id"];
45373
46256
  }];
45374
46257
  };
46258
+ voorraad_buffer_state: {
46259
+ Row: {
46260
+ buffer_id: string;
46261
+ buffer_key: string | null;
46262
+ closed_at: string | null;
46263
+ created_at: string;
46264
+ detached_orders: import("../integrations/supabase/types").Json;
46265
+ reason: string | null;
46266
+ updated_at: string;
46267
+ };
46268
+ Insert: {
46269
+ buffer_id: string;
46270
+ buffer_key?: string | null;
46271
+ closed_at?: string | null;
46272
+ created_at?: string;
46273
+ detached_orders?: import("../integrations/supabase/types").Json;
46274
+ reason?: string | null;
46275
+ updated_at?: string;
46276
+ };
46277
+ Update: {
46278
+ buffer_id?: string;
46279
+ buffer_key?: string | null;
46280
+ closed_at?: string | null;
46281
+ created_at?: string;
46282
+ detached_orders?: import("../integrations/supabase/types").Json;
46283
+ reason?: string | null;
46284
+ updated_at?: string;
46285
+ };
46286
+ Relationships: [];
46287
+ };
45375
46288
  voorraad_custom_fields: {
45376
46289
  Row: {
45377
46290
  created_at: string;
@@ -45414,6 +46327,36 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
45414
46327
  };
45415
46328
  Relationships: [];
45416
46329
  };
46330
+ voorraad_logistics_event_log: {
46331
+ Row: {
46332
+ created_at: string;
46333
+ event_id: string;
46334
+ event_type: string;
46335
+ order_ref: string | null;
46336
+ processed_at: string;
46337
+ result: import("../integrations/supabase/types").Json;
46338
+ updated_at: string;
46339
+ };
46340
+ Insert: {
46341
+ created_at?: string;
46342
+ event_id: string;
46343
+ event_type: string;
46344
+ order_ref?: string | null;
46345
+ processed_at?: string;
46346
+ result?: import("../integrations/supabase/types").Json;
46347
+ updated_at?: string;
46348
+ };
46349
+ Update: {
46350
+ created_at?: string;
46351
+ event_id?: string;
46352
+ event_type?: string;
46353
+ order_ref?: string | null;
46354
+ processed_at?: string;
46355
+ result?: import("../integrations/supabase/types").Json;
46356
+ updated_at?: string;
46357
+ };
46358
+ Relationships: [];
46359
+ };
45417
46360
  voorraad_media_upload_failures: {
45418
46361
  Row: {
45419
46362
  action: string;
@@ -48239,6 +49182,17 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
48239
49182
  };
48240
49183
  Returns: boolean;
48241
49184
  };
49185
+ floriday_adopt_connection: {
49186
+ Args: {
49187
+ p_new: string;
49188
+ p_old: string;
49189
+ };
49190
+ Returns: import("../integrations/supabase/types").Json;
49191
+ };
49192
+ floriday_autoheal_connections: {
49193
+ Args: never;
49194
+ Returns: import("../integrations/supabase/types").Json;
49195
+ };
48242
49196
  floriday_capture_stock_snapshot: {
48243
49197
  Args: never;
48244
49198
  Returns: number;
@@ -48296,6 +49250,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
48296
49250
  };
48297
49251
  Returns: undefined;
48298
49252
  };
49253
+ floriday_relink_products: {
49254
+ Args: {
49255
+ p_connection_id?: string;
49256
+ };
49257
+ Returns: import("../integrations/supabase/types").Json;
49258
+ };
48299
49259
  floriday_requeue_dead_letters: {
48300
49260
  Args: {
48301
49261
  p_connection_id?: string;
@@ -48917,6 +49877,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
48917
49877
  };
48918
49878
  Returns: string;
48919
49879
  };
49880
+ logistics_active_layout_method: {
49881
+ Args: never;
49882
+ Returns: string;
49883
+ };
48920
49884
  logistics_active_pick_workdays: {
48921
49885
  Args: never;
48922
49886
  Returns: string[];
@@ -49024,6 +49988,15 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49024
49988
  };
49025
49989
  Returns: boolean;
49026
49990
  };
49991
+ logistics_buffer_notify: {
49992
+ Args: {
49993
+ p_event_type: string;
49994
+ p_idempotency_key: string;
49995
+ p_order_ref: string;
49996
+ p_payload: import("../integrations/supabase/types").Json;
49997
+ };
49998
+ Returns: string;
49999
+ };
49027
50000
  logistics_buffer_open_key: {
49028
50001
  Args: {
49029
50002
  p_base_key: string;
@@ -49082,6 +50055,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49082
50055
  };
49083
50056
  Returns: string;
49084
50057
  };
50058
+ logistics_cart_checkin_at: {
50059
+ Args: {
50060
+ p_cart_id: string;
50061
+ };
50062
+ Returns: string;
50063
+ };
49085
50064
  logistics_cart_handled: {
49086
50065
  Args: {
49087
50066
  p_cart_index: number;
@@ -49115,10 +50094,22 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49115
50094
  task_status: string;
49116
50095
  }[];
49117
50096
  };
50097
+ logistics_cart_is_full: {
50098
+ Args: {
50099
+ p_cart_id: string;
50100
+ };
50101
+ Returns: boolean;
50102
+ };
49118
50103
  logistics_cart_layout_method: {
49119
50104
  Args: never;
49120
50105
  Returns: import("../integrations/supabase/types").Json;
49121
50106
  };
50107
+ logistics_cart_order_refs: {
50108
+ Args: {
50109
+ p_cart_id: string;
50110
+ };
50111
+ Returns: string[];
50112
+ };
49122
50113
  logistics_cart_plan_overview: {
49123
50114
  Args: {
49124
50115
  p_days?: number;
@@ -49138,6 +50129,18 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49138
50129
  };
49139
50130
  Returns: import("../integrations/supabase/types").Json;
49140
50131
  };
50132
+ logistics_cart_release_reason: {
50133
+ Args: {
50134
+ p_cart_id: string;
50135
+ };
50136
+ Returns: string;
50137
+ };
50138
+ logistics_cart_released: {
50139
+ Args: {
50140
+ p_cart_id: string;
50141
+ };
50142
+ Returns: boolean;
50143
+ };
49141
50144
  logistics_cart_seq: {
49142
50145
  Args: {
49143
50146
  p_order_uuid?: string;
@@ -49291,6 +50294,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49291
50294
  isSetofReturn: false;
49292
50295
  };
49293
50296
  };
50297
+ logistics_cleanup_orphan_print_jobs: {
50298
+ Args: never;
50299
+ Returns: import("../integrations/supabase/types").Json;
50300
+ };
49294
50301
  logistics_complete_task: {
49295
50302
  Args: {
49296
50303
  p_result?: import("../integrations/supabase/types").Json;
@@ -49353,6 +50360,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49353
50360
  station_carts: number;
49354
50361
  }[];
49355
50362
  };
50363
+ logistics_control_complete_cart: {
50364
+ Args: {
50365
+ p_cart_id: string;
50366
+ };
50367
+ Returns: number;
50368
+ };
49356
50369
  logistics_control_scan_approve: {
49357
50370
  Args: {
49358
50371
  p_allow_reprint?: boolean;
@@ -49432,6 +50445,15 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49432
50445
  Args: never;
49433
50446
  Returns: import("../integrations/supabase/types").Json;
49434
50447
  };
50448
+ logistics_day_windows: {
50449
+ Args: {
50450
+ p_day: string;
50451
+ };
50452
+ Returns: {
50453
+ win_end: string;
50454
+ win_start: string;
50455
+ }[];
50456
+ };
49435
50457
  logistics_delay_customer_email: {
49436
50458
  Args: {
49437
50459
  p_customer: string;
@@ -49499,6 +50521,17 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49499
50521
  };
49500
50522
  Returns: import("../integrations/supabase/types").Json;
49501
50523
  };
50524
+ logistics_enqueue_shipping_note_with_slip: {
50525
+ Args: {
50526
+ _cart_id: string;
50527
+ _is_herprint: boolean;
50528
+ _printer_id: string;
50529
+ _queue_item_id: string;
50530
+ _session_id: string;
50531
+ _slip_job_id: string;
50532
+ };
50533
+ Returns: string;
50534
+ };
49502
50535
  logistics_enqueue_sticker_with_slip: {
49503
50536
  Args: {
49504
50537
  _cart_id: string;
@@ -49516,6 +50549,14 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49516
50549
  };
49517
50550
  Returns: string;
49518
50551
  };
50552
+ logistics_ensure_pick_data: {
50553
+ Args: {
50554
+ p_event_id?: string;
50555
+ p_missing?: import("../integrations/supabase/types").Json;
50556
+ p_ref: string;
50557
+ };
50558
+ Returns: import("../integrations/supabase/types").Json;
50559
+ };
49519
50560
  logistics_fail_task: {
49520
50561
  Args: {
49521
50562
  p_error: string;
@@ -49637,6 +50678,38 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49637
50678
  };
49638
50679
  Returns: string;
49639
50680
  };
50681
+ logistics_floriday_gate_status: {
50682
+ Args: never;
50683
+ Returns: import("../integrations/supabase/types").Json;
50684
+ };
50685
+ logistics_floriday_log_refusal: {
50686
+ Args: {
50687
+ _action?: string;
50688
+ _module?: string;
50689
+ _order_ref: string;
50690
+ _reason: string;
50691
+ _shell?: string;
50692
+ };
50693
+ Returns: undefined;
50694
+ };
50695
+ logistics_floriday_log_send: {
50696
+ Args: {
50697
+ _action: string;
50698
+ _detail?: string;
50699
+ _http_status?: number;
50700
+ _module?: string;
50701
+ _ok: boolean;
50702
+ _order_ref: string;
50703
+ _shell?: string;
50704
+ };
50705
+ Returns: undefined;
50706
+ };
50707
+ logistics_floriday_order_approved: {
50708
+ Args: {
50709
+ _order_ref: string;
50710
+ };
50711
+ Returns: boolean;
50712
+ };
49640
50713
  logistics_floriday_prune_pushes: {
49641
50714
  Args: {
49642
50715
  _days?: number;
@@ -49651,6 +50724,20 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49651
50724
  };
49652
50725
  Returns: string;
49653
50726
  };
50727
+ logistics_floriday_status_updates_enabled: {
50728
+ Args: never;
50729
+ Returns: boolean;
50730
+ };
50731
+ logistics_floriday_stock_updates_enabled: {
50732
+ Args: never;
50733
+ Returns: boolean;
50734
+ };
50735
+ logistics_floriday_write_allowed: {
50736
+ Args: {
50737
+ _action: string;
50738
+ };
50739
+ Returns: boolean;
50740
+ };
49654
50741
  logistics_fulfill_barcode_requests: {
49655
50742
  Args: {
49656
50743
  p_limit?: number;
@@ -49671,6 +50758,16 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49671
50758
  };
49672
50759
  Returns: boolean;
49673
50760
  };
50761
+ logistics_layout_method_status: {
50762
+ Args: never;
50763
+ Returns: import("../integrations/supabase/types").Json;
50764
+ };
50765
+ logistics_link_order_items: {
50766
+ Args: {
50767
+ p_order?: string;
50768
+ };
50769
+ Returns: import("../integrations/supabase/types").Json;
50770
+ };
49674
50771
  logistics_live_carriers: {
49675
50772
  Args: {
49676
50773
  p_order_ref: string;
@@ -49683,6 +50780,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49683
50780
  };
49684
50781
  Returns: number;
49685
50782
  };
50783
+ logistics_merge_partial_carts: {
50784
+ Args: {
50785
+ p_limit?: number;
50786
+ };
50787
+ Returns: import("../integrations/supabase/types").Json;
50788
+ };
49686
50789
  logistics_next_workday_date: {
49687
50790
  Args: {
49688
50791
  p_date: string;
@@ -49697,12 +50800,22 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49697
50800
  };
49698
50801
  Returns: string;
49699
50802
  };
50803
+ logistics_normalize_product_label: {
50804
+ Args: {
50805
+ p_label: string;
50806
+ };
50807
+ Returns: string;
50808
+ };
49700
50809
  logistics_not_past: {
49701
50810
  Args: {
49702
50811
  p_ts: string;
49703
50812
  };
49704
50813
  Returns: string;
49705
50814
  };
50815
+ logistics_opening_timezone: {
50816
+ Args: never;
50817
+ Returns: string;
50818
+ };
49706
50819
  logistics_order_cart_count: {
49707
50820
  Args: {
49708
50821
  p_order_ref: string;
@@ -49787,6 +50900,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49787
50900
  Args: never;
49788
50901
  Returns: import("../integrations/supabase/types").Json;
49789
50902
  };
50903
+ logistics_pick_partial_mode: {
50904
+ Args: never;
50905
+ Returns: string;
50906
+ };
49790
50907
  logistics_pick_start_estimate: {
49791
50908
  Args: {
49792
50909
  p_order: import("../integrations/supabase/types").Json;
@@ -49898,6 +51015,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49898
51015
  };
49899
51016
  Returns: number;
49900
51017
  };
51018
+ logistics_prepare_pick_documents: {
51019
+ Args: {
51020
+ p_limit?: number;
51021
+ };
51022
+ Returns: import("../integrations/supabase/types").Json;
51023
+ };
49901
51024
  logistics_prune_buffer_member_queue: {
49902
51025
  Args: never;
49903
51026
  Returns: number;
@@ -49938,12 +51061,30 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49938
51061
  Args: never;
49939
51062
  Returns: import("../integrations/supabase/types").Json;
49940
51063
  };
51064
+ logistics_refresh_pick_queue_status: {
51065
+ Args: {
51066
+ p_ref: string;
51067
+ };
51068
+ Returns: number;
51069
+ };
49941
51070
  logistics_refresh_pickup_moments: {
49942
51071
  Args: {
49943
51072
  p_weeks?: number;
49944
51073
  };
49945
51074
  Returns: import("../integrations/supabase/types").Json;
49946
51075
  };
51076
+ logistics_replan_all: {
51077
+ Args: {
51078
+ p_reason?: string;
51079
+ };
51080
+ Returns: import("../integrations/supabase/types").Json;
51081
+ };
51082
+ logistics_replan_all_force: {
51083
+ Args: {
51084
+ p_reason?: string;
51085
+ };
51086
+ Returns: import("../integrations/supabase/types").Json;
51087
+ };
49947
51088
  logistics_report_delay: {
49948
51089
  Args: {
49949
51090
  p_expected_date?: string;
@@ -49997,6 +51138,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
49997
51138
  };
49998
51139
  Returns: import("../integrations/supabase/types").Json;
49999
51140
  };
51141
+ logistics_resolve_product_id: {
51142
+ Args: {
51143
+ p_label: string;
51144
+ };
51145
+ Returns: string;
51146
+ };
50000
51147
  logistics_resolve_settings: {
50001
51148
  Args: {
50002
51149
  p_config_id: string;
@@ -50082,6 +51229,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50082
51229
  };
50083
51230
  Returns: string;
50084
51231
  };
51232
+ logistics_shipping_note_follows_slip: {
51233
+ Args: never;
51234
+ Returns: boolean;
51235
+ };
50085
51236
  logistics_shipping_note_from_barcode: {
50086
51237
  Args: {
50087
51238
  p_allow_reprint?: boolean;
@@ -50094,6 +51245,14 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50094
51245
  Args: never;
50095
51246
  Returns: boolean;
50096
51247
  };
51248
+ logistics_subtract_working_minutes: {
51249
+ Args: {
51250
+ p_deadline: string;
51251
+ p_max_workdays?: number;
51252
+ p_minutes: number;
51253
+ };
51254
+ Returns: import("../integrations/supabase/types").Json;
51255
+ };
50097
51256
  logistics_supersede_stale_tasks: {
50098
51257
  Args: {
50099
51258
  p_keep: string[];
@@ -50130,6 +51289,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50130
51289
  Args: never;
50131
51290
  Returns: string;
50132
51291
  };
51292
+ logistics_timezone_options: {
51293
+ Args: never;
51294
+ Returns: {
51295
+ name: string;
51296
+ }[];
51297
+ };
50133
51298
  logistics_upsert_task: {
50134
51299
  Args: {
50135
51300
  p_buffer_ref: string;
@@ -50149,6 +51314,16 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50149
51314
  };
50150
51315
  Returns: string;
50151
51316
  };
51317
+ logistics_valid_timezone: {
51318
+ Args: {
51319
+ _tz: string;
51320
+ };
51321
+ Returns: boolean;
51322
+ };
51323
+ logistics_working_hours_status: {
51324
+ Args: never;
51325
+ Returns: import("../integrations/supabase/types").Json;
51326
+ };
50152
51327
  logistics_write_buffer_layer_positions: {
50153
51328
  Args: {
50154
51329
  p_buffer_id: string;
@@ -50314,6 +51489,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
50314
51489
  online: boolean;
50315
51490
  }[];
50316
51491
  };
51492
+ pick_apply_buffer_events: {
51493
+ Args: never;
51494
+ Returns: import("../integrations/supabase/types").Json;
51495
+ };
50317
51496
  pick_available_pick_days: {
50318
51497
  Args: {
50319
51498
  _max_days?: number;
@@ -51590,6 +52769,13 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51590
52769
  };
51591
52770
  Returns: number;
51592
52771
  };
52772
+ schedule_floriday_catalog_prices_sync: {
52773
+ Args: {
52774
+ p_apikey: string;
52775
+ p_url: string;
52776
+ };
52777
+ Returns: number;
52778
+ };
51593
52779
  schedule_floriday_clock_presales_sync: {
51594
52780
  Args: {
51595
52781
  p_apikey: string;
@@ -51890,6 +53076,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
51890
53076
  };
51891
53077
  Returns: undefined;
51892
53078
  };
53079
+ sync_floriday_prices_into_price_groups: {
53080
+ Args: never;
53081
+ Returns: number;
53082
+ };
51893
53083
  sync_layer_stock: {
51894
53084
  Args: {
51895
53085
  p_product_id: string;
@@ -57937,6 +59127,84 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
57937
59127
  referencedColumns: ["id"];
57938
59128
  }];
57939
59129
  };
59130
+ floriday_catalog_prices_cache: {
59131
+ Row: {
59132
+ connection_id: string;
59133
+ created_at: string;
59134
+ currency: string;
59135
+ id: string;
59136
+ is_deleted: boolean;
59137
+ price: number | null;
59138
+ price_group_id: string | null;
59139
+ price_group_name: string | null;
59140
+ price_type: string;
59141
+ raw: import("../integrations/supabase/types").Json | null;
59142
+ sales_unit: string | null;
59143
+ sequence_number: number;
59144
+ supplier_article_code: string | null;
59145
+ supply_line_id: string;
59146
+ synced_at: string;
59147
+ trade_item_id: string | null;
59148
+ updated_at: string;
59149
+ valid_from: string | null;
59150
+ valid_to: string | null;
59151
+ week: number | null;
59152
+ year: number | null;
59153
+ };
59154
+ Insert: {
59155
+ connection_id: string;
59156
+ created_at?: string;
59157
+ currency?: string;
59158
+ id?: string;
59159
+ is_deleted?: boolean;
59160
+ price?: number | null;
59161
+ price_group_id?: string | null;
59162
+ price_group_name?: string | null;
59163
+ price_type?: string;
59164
+ raw?: import("../integrations/supabase/types").Json | null;
59165
+ sales_unit?: string | null;
59166
+ sequence_number?: number;
59167
+ supplier_article_code?: string | null;
59168
+ supply_line_id: string;
59169
+ synced_at?: string;
59170
+ trade_item_id?: string | null;
59171
+ updated_at?: string;
59172
+ valid_from?: string | null;
59173
+ valid_to?: string | null;
59174
+ week?: number | null;
59175
+ year?: number | null;
59176
+ };
59177
+ Update: {
59178
+ connection_id?: string;
59179
+ created_at?: string;
59180
+ currency?: string;
59181
+ id?: string;
59182
+ is_deleted?: boolean;
59183
+ price?: number | null;
59184
+ price_group_id?: string | null;
59185
+ price_group_name?: string | null;
59186
+ price_type?: string;
59187
+ raw?: import("../integrations/supabase/types").Json | null;
59188
+ sales_unit?: string | null;
59189
+ sequence_number?: number;
59190
+ supplier_article_code?: string | null;
59191
+ supply_line_id?: string;
59192
+ synced_at?: string;
59193
+ trade_item_id?: string | null;
59194
+ updated_at?: string;
59195
+ valid_from?: string | null;
59196
+ valid_to?: string | null;
59197
+ week?: number | null;
59198
+ year?: number | null;
59199
+ };
59200
+ Relationships: [{
59201
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
59202
+ columns: ["connection_id"];
59203
+ isOneToOne: false;
59204
+ referencedRelation: "floriday_connections";
59205
+ referencedColumns: ["id"];
59206
+ }];
59207
+ };
57940
59208
  floriday_clock_presales_cache: {
57941
59209
  Row: {
57942
59210
  buyer_organization_id: string | null;
@@ -62203,6 +63471,36 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
62203
63471
  };
62204
63472
  Relationships: [];
62205
63473
  };
63474
+ logistics_floriday_push_refusals: {
63475
+ Row: {
63476
+ action: string | null;
63477
+ created_at: string;
63478
+ id: string;
63479
+ order_ref: string;
63480
+ reason: string;
63481
+ source_module: string | null;
63482
+ source_shell: string | null;
63483
+ };
63484
+ Insert: {
63485
+ action?: string | null;
63486
+ created_at?: string;
63487
+ id?: string;
63488
+ order_ref: string;
63489
+ reason: string;
63490
+ source_module?: string | null;
63491
+ source_shell?: string | null;
63492
+ };
63493
+ Update: {
63494
+ action?: string | null;
63495
+ created_at?: string;
63496
+ id?: string;
63497
+ order_ref?: string;
63498
+ reason?: string;
63499
+ source_module?: string | null;
63500
+ source_shell?: string | null;
63501
+ };
63502
+ Relationships: [];
63503
+ };
62206
63504
  logistics_floriday_pushes: {
62207
63505
  Row: {
62208
63506
  attempts: number;
@@ -62278,6 +63576,42 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
62278
63576
  };
62279
63577
  Relationships: [];
62280
63578
  };
63579
+ logistics_floriday_status_sends: {
63580
+ Row: {
63581
+ action: string;
63582
+ created_at: string;
63583
+ detail: string | null;
63584
+ http_status: number | null;
63585
+ id: string;
63586
+ ok: boolean;
63587
+ order_ref: string;
63588
+ source_module: string | null;
63589
+ source_shell: string | null;
63590
+ };
63591
+ Insert: {
63592
+ action: string;
63593
+ created_at?: string;
63594
+ detail?: string | null;
63595
+ http_status?: number | null;
63596
+ id?: string;
63597
+ ok?: boolean;
63598
+ order_ref: string;
63599
+ source_module?: string | null;
63600
+ source_shell?: string | null;
63601
+ };
63602
+ Update: {
63603
+ action?: string;
63604
+ created_at?: string;
63605
+ detail?: string | null;
63606
+ http_status?: number | null;
63607
+ id?: string;
63608
+ ok?: boolean;
63609
+ order_ref?: string;
63610
+ source_module?: string | null;
63611
+ source_shell?: string | null;
63612
+ };
63613
+ Relationships: [];
63614
+ };
62281
63615
  logistics_formulas: {
62282
63616
  Row: {
62283
63617
  created_at: string;
@@ -62350,6 +63684,108 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
62350
63684
  };
62351
63685
  Relationships: [];
62352
63686
  };
63687
+ logistics_opening_exceptions: {
63688
+ Row: {
63689
+ closes: string | null;
63690
+ created_at: string;
63691
+ day: string;
63692
+ id: string;
63693
+ is_closed: boolean;
63694
+ note: string | null;
63695
+ opens: string | null;
63696
+ };
63697
+ Insert: {
63698
+ closes?: string | null;
63699
+ created_at?: string;
63700
+ day: string;
63701
+ id?: string;
63702
+ is_closed?: boolean;
63703
+ note?: string | null;
63704
+ opens?: string | null;
63705
+ };
63706
+ Update: {
63707
+ closes?: string | null;
63708
+ created_at?: string;
63709
+ day?: string;
63710
+ id?: string;
63711
+ is_closed?: boolean;
63712
+ note?: string | null;
63713
+ opens?: string | null;
63714
+ };
63715
+ Relationships: [];
63716
+ };
63717
+ logistics_opening_hours: {
63718
+ Row: {
63719
+ closes: string;
63720
+ created_at: string;
63721
+ id: string;
63722
+ is_active: boolean;
63723
+ note: string | null;
63724
+ opens: string;
63725
+ weekday: number;
63726
+ };
63727
+ Insert: {
63728
+ closes: string;
63729
+ created_at?: string;
63730
+ id?: string;
63731
+ is_active?: boolean;
63732
+ note?: string | null;
63733
+ opens: string;
63734
+ weekday: number;
63735
+ };
63736
+ Update: {
63737
+ closes?: string;
63738
+ created_at?: string;
63739
+ id?: string;
63740
+ is_active?: boolean;
63741
+ note?: string | null;
63742
+ opens?: string;
63743
+ weekday?: number;
63744
+ };
63745
+ Relationships: [];
63746
+ };
63747
+ logistics_pick_data_requests: {
63748
+ Row: {
63749
+ actions: import("../integrations/supabase/types").Json;
63750
+ created_at: string;
63751
+ event_id: string | null;
63752
+ finished_at: string | null;
63753
+ id: string;
63754
+ missing: import("../integrations/supabase/types").Json;
63755
+ order_ref: string;
63756
+ reason: string | null;
63757
+ result: import("../integrations/supabase/types").Json | null;
63758
+ status: string;
63759
+ unit_ref: string | null;
63760
+ };
63761
+ Insert: {
63762
+ actions?: import("../integrations/supabase/types").Json;
63763
+ created_at?: string;
63764
+ event_id?: string | null;
63765
+ finished_at?: string | null;
63766
+ id?: string;
63767
+ missing?: import("../integrations/supabase/types").Json;
63768
+ order_ref: string;
63769
+ reason?: string | null;
63770
+ result?: import("../integrations/supabase/types").Json | null;
63771
+ status?: string;
63772
+ unit_ref?: string | null;
63773
+ };
63774
+ Update: {
63775
+ actions?: import("../integrations/supabase/types").Json;
63776
+ created_at?: string;
63777
+ event_id?: string | null;
63778
+ finished_at?: string | null;
63779
+ id?: string;
63780
+ missing?: import("../integrations/supabase/types").Json;
63781
+ order_ref?: string;
63782
+ reason?: string | null;
63783
+ result?: import("../integrations/supabase/types").Json | null;
63784
+ status?: string;
63785
+ unit_ref?: string | null;
63786
+ };
63787
+ Relationships: [];
63788
+ };
62353
63789
  logistics_pickup_moments: {
62354
63790
  Row: {
62355
63791
  carrier_ref: string | null;
@@ -63142,6 +64578,24 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
63142
64578
  };
63143
64579
  Relationships: [];
63144
64580
  };
64581
+ logistics_time_settings: {
64582
+ Row: {
64583
+ id: boolean;
64584
+ timezone: string;
64585
+ updated_at: string;
64586
+ };
64587
+ Insert: {
64588
+ id?: boolean;
64589
+ timezone: string;
64590
+ updated_at?: string;
64591
+ };
64592
+ Update: {
64593
+ id?: boolean;
64594
+ timezone?: string;
64595
+ updated_at?: string;
64596
+ };
64597
+ Relationships: [];
64598
+ };
63145
64599
  logistics_variables: {
63146
64600
  Row: {
63147
64601
  created_at: string;
@@ -65532,6 +66986,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
65532
66986
  customer_name: string;
65533
66987
  deleted_at: string | null;
65534
66988
  delivery_date: string | null;
66989
+ floriday_order_group_key: string | null;
65535
66990
  floriday_sales_order_id: string | null;
65536
66991
  id: string;
65537
66992
  invoice_due_at: string | null;
@@ -65559,6 +67014,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
65559
67014
  customer_name?: string;
65560
67015
  deleted_at?: string | null;
65561
67016
  delivery_date?: string | null;
67017
+ floriday_order_group_key?: string | null;
65562
67018
  floriday_sales_order_id?: string | null;
65563
67019
  id?: string;
65564
67020
  invoice_due_at?: string | null;
@@ -65586,6 +67042,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
65586
67042
  customer_name?: string;
65587
67043
  deleted_at?: string | null;
65588
67044
  delivery_date?: string | null;
67045
+ floriday_order_group_key?: string | null;
65589
67046
  floriday_sales_order_id?: string | null;
65590
67047
  id?: string;
65591
67048
  invoice_due_at?: string | null;
@@ -65779,6 +67236,27 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
65779
67236
  };
65780
67237
  Relationships: [];
65781
67238
  };
67239
+ pick_buffer_event_cursor: {
67240
+ Row: {
67241
+ created_at: string;
67242
+ id: boolean;
67243
+ last_event_at: string;
67244
+ updated_at: string;
67245
+ };
67246
+ Insert: {
67247
+ created_at?: string;
67248
+ id?: boolean;
67249
+ last_event_at?: string;
67250
+ updated_at?: string;
67251
+ };
67252
+ Update: {
67253
+ created_at?: string;
67254
+ id?: boolean;
67255
+ last_event_at?: string;
67256
+ updated_at?: string;
67257
+ };
67258
+ Relationships: [];
67259
+ };
65782
67260
  pick_countries: {
65783
67261
  Row: {
65784
67262
  active: boolean;
@@ -71428,6 +72906,36 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
71428
72906
  referencedColumns: ["id"];
71429
72907
  }];
71430
72908
  };
72909
+ voorraad_buffer_state: {
72910
+ Row: {
72911
+ buffer_id: string;
72912
+ buffer_key: string | null;
72913
+ closed_at: string | null;
72914
+ created_at: string;
72915
+ detached_orders: import("../integrations/supabase/types").Json;
72916
+ reason: string | null;
72917
+ updated_at: string;
72918
+ };
72919
+ Insert: {
72920
+ buffer_id: string;
72921
+ buffer_key?: string | null;
72922
+ closed_at?: string | null;
72923
+ created_at?: string;
72924
+ detached_orders?: import("../integrations/supabase/types").Json;
72925
+ reason?: string | null;
72926
+ updated_at?: string;
72927
+ };
72928
+ Update: {
72929
+ buffer_id?: string;
72930
+ buffer_key?: string | null;
72931
+ closed_at?: string | null;
72932
+ created_at?: string;
72933
+ detached_orders?: import("../integrations/supabase/types").Json;
72934
+ reason?: string | null;
72935
+ updated_at?: string;
72936
+ };
72937
+ Relationships: [];
72938
+ };
71431
72939
  voorraad_custom_fields: {
71432
72940
  Row: {
71433
72941
  created_at: string;
@@ -71470,6 +72978,36 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
71470
72978
  };
71471
72979
  Relationships: [];
71472
72980
  };
72981
+ voorraad_logistics_event_log: {
72982
+ Row: {
72983
+ created_at: string;
72984
+ event_id: string;
72985
+ event_type: string;
72986
+ order_ref: string | null;
72987
+ processed_at: string;
72988
+ result: import("../integrations/supabase/types").Json;
72989
+ updated_at: string;
72990
+ };
72991
+ Insert: {
72992
+ created_at?: string;
72993
+ event_id: string;
72994
+ event_type: string;
72995
+ order_ref?: string | null;
72996
+ processed_at?: string;
72997
+ result?: import("../integrations/supabase/types").Json;
72998
+ updated_at?: string;
72999
+ };
73000
+ Update: {
73001
+ created_at?: string;
73002
+ event_id?: string;
73003
+ event_type?: string;
73004
+ order_ref?: string | null;
73005
+ processed_at?: string;
73006
+ result?: import("../integrations/supabase/types").Json;
73007
+ updated_at?: string;
73008
+ };
73009
+ Relationships: [];
73010
+ };
71473
73011
  voorraad_media_upload_failures: {
71474
73012
  Row: {
71475
73013
  action: string;
@@ -74295,6 +75833,17 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
74295
75833
  };
74296
75834
  Returns: boolean;
74297
75835
  };
75836
+ floriday_adopt_connection: {
75837
+ Args: {
75838
+ p_new: string;
75839
+ p_old: string;
75840
+ };
75841
+ Returns: import("../integrations/supabase/types").Json;
75842
+ };
75843
+ floriday_autoheal_connections: {
75844
+ Args: never;
75845
+ Returns: import("../integrations/supabase/types").Json;
75846
+ };
74298
75847
  floriday_capture_stock_snapshot: {
74299
75848
  Args: never;
74300
75849
  Returns: number;
@@ -74352,6 +75901,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
74352
75901
  };
74353
75902
  Returns: undefined;
74354
75903
  };
75904
+ floriday_relink_products: {
75905
+ Args: {
75906
+ p_connection_id?: string;
75907
+ };
75908
+ Returns: import("../integrations/supabase/types").Json;
75909
+ };
74355
75910
  floriday_requeue_dead_letters: {
74356
75911
  Args: {
74357
75912
  p_connection_id?: string;
@@ -74973,6 +76528,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
74973
76528
  };
74974
76529
  Returns: string;
74975
76530
  };
76531
+ logistics_active_layout_method: {
76532
+ Args: never;
76533
+ Returns: string;
76534
+ };
74976
76535
  logistics_active_pick_workdays: {
74977
76536
  Args: never;
74978
76537
  Returns: string[];
@@ -75080,6 +76639,15 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75080
76639
  };
75081
76640
  Returns: boolean;
75082
76641
  };
76642
+ logistics_buffer_notify: {
76643
+ Args: {
76644
+ p_event_type: string;
76645
+ p_idempotency_key: string;
76646
+ p_order_ref: string;
76647
+ p_payload: import("../integrations/supabase/types").Json;
76648
+ };
76649
+ Returns: string;
76650
+ };
75083
76651
  logistics_buffer_open_key: {
75084
76652
  Args: {
75085
76653
  p_base_key: string;
@@ -75138,6 +76706,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75138
76706
  };
75139
76707
  Returns: string;
75140
76708
  };
76709
+ logistics_cart_checkin_at: {
76710
+ Args: {
76711
+ p_cart_id: string;
76712
+ };
76713
+ Returns: string;
76714
+ };
75141
76715
  logistics_cart_handled: {
75142
76716
  Args: {
75143
76717
  p_cart_index: number;
@@ -75171,10 +76745,22 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75171
76745
  task_status: string;
75172
76746
  }[];
75173
76747
  };
76748
+ logistics_cart_is_full: {
76749
+ Args: {
76750
+ p_cart_id: string;
76751
+ };
76752
+ Returns: boolean;
76753
+ };
75174
76754
  logistics_cart_layout_method: {
75175
76755
  Args: never;
75176
76756
  Returns: import("../integrations/supabase/types").Json;
75177
76757
  };
76758
+ logistics_cart_order_refs: {
76759
+ Args: {
76760
+ p_cart_id: string;
76761
+ };
76762
+ Returns: string[];
76763
+ };
75178
76764
  logistics_cart_plan_overview: {
75179
76765
  Args: {
75180
76766
  p_days?: number;
@@ -75194,6 +76780,18 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75194
76780
  };
75195
76781
  Returns: import("../integrations/supabase/types").Json;
75196
76782
  };
76783
+ logistics_cart_release_reason: {
76784
+ Args: {
76785
+ p_cart_id: string;
76786
+ };
76787
+ Returns: string;
76788
+ };
76789
+ logistics_cart_released: {
76790
+ Args: {
76791
+ p_cart_id: string;
76792
+ };
76793
+ Returns: boolean;
76794
+ };
75197
76795
  logistics_cart_seq: {
75198
76796
  Args: {
75199
76797
  p_order_uuid?: string;
@@ -75347,6 +76945,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75347
76945
  isSetofReturn: false;
75348
76946
  };
75349
76947
  };
76948
+ logistics_cleanup_orphan_print_jobs: {
76949
+ Args: never;
76950
+ Returns: import("../integrations/supabase/types").Json;
76951
+ };
75350
76952
  logistics_complete_task: {
75351
76953
  Args: {
75352
76954
  p_result?: import("../integrations/supabase/types").Json;
@@ -75409,6 +77011,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75409
77011
  station_carts: number;
75410
77012
  }[];
75411
77013
  };
77014
+ logistics_control_complete_cart: {
77015
+ Args: {
77016
+ p_cart_id: string;
77017
+ };
77018
+ Returns: number;
77019
+ };
75412
77020
  logistics_control_scan_approve: {
75413
77021
  Args: {
75414
77022
  p_allow_reprint?: boolean;
@@ -75488,6 +77096,15 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75488
77096
  Args: never;
75489
77097
  Returns: import("../integrations/supabase/types").Json;
75490
77098
  };
77099
+ logistics_day_windows: {
77100
+ Args: {
77101
+ p_day: string;
77102
+ };
77103
+ Returns: {
77104
+ win_end: string;
77105
+ win_start: string;
77106
+ }[];
77107
+ };
75491
77108
  logistics_delay_customer_email: {
75492
77109
  Args: {
75493
77110
  p_customer: string;
@@ -75555,6 +77172,17 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75555
77172
  };
75556
77173
  Returns: import("../integrations/supabase/types").Json;
75557
77174
  };
77175
+ logistics_enqueue_shipping_note_with_slip: {
77176
+ Args: {
77177
+ _cart_id: string;
77178
+ _is_herprint: boolean;
77179
+ _printer_id: string;
77180
+ _queue_item_id: string;
77181
+ _session_id: string;
77182
+ _slip_job_id: string;
77183
+ };
77184
+ Returns: string;
77185
+ };
75558
77186
  logistics_enqueue_sticker_with_slip: {
75559
77187
  Args: {
75560
77188
  _cart_id: string;
@@ -75572,6 +77200,14 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75572
77200
  };
75573
77201
  Returns: string;
75574
77202
  };
77203
+ logistics_ensure_pick_data: {
77204
+ Args: {
77205
+ p_event_id?: string;
77206
+ p_missing?: import("../integrations/supabase/types").Json;
77207
+ p_ref: string;
77208
+ };
77209
+ Returns: import("../integrations/supabase/types").Json;
77210
+ };
75575
77211
  logistics_fail_task: {
75576
77212
  Args: {
75577
77213
  p_error: string;
@@ -75693,6 +77329,38 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75693
77329
  };
75694
77330
  Returns: string;
75695
77331
  };
77332
+ logistics_floriday_gate_status: {
77333
+ Args: never;
77334
+ Returns: import("../integrations/supabase/types").Json;
77335
+ };
77336
+ logistics_floriday_log_refusal: {
77337
+ Args: {
77338
+ _action?: string;
77339
+ _module?: string;
77340
+ _order_ref: string;
77341
+ _reason: string;
77342
+ _shell?: string;
77343
+ };
77344
+ Returns: undefined;
77345
+ };
77346
+ logistics_floriday_log_send: {
77347
+ Args: {
77348
+ _action: string;
77349
+ _detail?: string;
77350
+ _http_status?: number;
77351
+ _module?: string;
77352
+ _ok: boolean;
77353
+ _order_ref: string;
77354
+ _shell?: string;
77355
+ };
77356
+ Returns: undefined;
77357
+ };
77358
+ logistics_floriday_order_approved: {
77359
+ Args: {
77360
+ _order_ref: string;
77361
+ };
77362
+ Returns: boolean;
77363
+ };
75696
77364
  logistics_floriday_prune_pushes: {
75697
77365
  Args: {
75698
77366
  _days?: number;
@@ -75707,6 +77375,20 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75707
77375
  };
75708
77376
  Returns: string;
75709
77377
  };
77378
+ logistics_floriday_status_updates_enabled: {
77379
+ Args: never;
77380
+ Returns: boolean;
77381
+ };
77382
+ logistics_floriday_stock_updates_enabled: {
77383
+ Args: never;
77384
+ Returns: boolean;
77385
+ };
77386
+ logistics_floriday_write_allowed: {
77387
+ Args: {
77388
+ _action: string;
77389
+ };
77390
+ Returns: boolean;
77391
+ };
75710
77392
  logistics_fulfill_barcode_requests: {
75711
77393
  Args: {
75712
77394
  p_limit?: number;
@@ -75727,6 +77409,16 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75727
77409
  };
75728
77410
  Returns: boolean;
75729
77411
  };
77412
+ logistics_layout_method_status: {
77413
+ Args: never;
77414
+ Returns: import("../integrations/supabase/types").Json;
77415
+ };
77416
+ logistics_link_order_items: {
77417
+ Args: {
77418
+ p_order?: string;
77419
+ };
77420
+ Returns: import("../integrations/supabase/types").Json;
77421
+ };
75730
77422
  logistics_live_carriers: {
75731
77423
  Args: {
75732
77424
  p_order_ref: string;
@@ -75739,6 +77431,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75739
77431
  };
75740
77432
  Returns: number;
75741
77433
  };
77434
+ logistics_merge_partial_carts: {
77435
+ Args: {
77436
+ p_limit?: number;
77437
+ };
77438
+ Returns: import("../integrations/supabase/types").Json;
77439
+ };
75742
77440
  logistics_next_workday_date: {
75743
77441
  Args: {
75744
77442
  p_date: string;
@@ -75753,12 +77451,22 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75753
77451
  };
75754
77452
  Returns: string;
75755
77453
  };
77454
+ logistics_normalize_product_label: {
77455
+ Args: {
77456
+ p_label: string;
77457
+ };
77458
+ Returns: string;
77459
+ };
75756
77460
  logistics_not_past: {
75757
77461
  Args: {
75758
77462
  p_ts: string;
75759
77463
  };
75760
77464
  Returns: string;
75761
77465
  };
77466
+ logistics_opening_timezone: {
77467
+ Args: never;
77468
+ Returns: string;
77469
+ };
75762
77470
  logistics_order_cart_count: {
75763
77471
  Args: {
75764
77472
  p_order_ref: string;
@@ -75843,6 +77551,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75843
77551
  Args: never;
75844
77552
  Returns: import("../integrations/supabase/types").Json;
75845
77553
  };
77554
+ logistics_pick_partial_mode: {
77555
+ Args: never;
77556
+ Returns: string;
77557
+ };
75846
77558
  logistics_pick_start_estimate: {
75847
77559
  Args: {
75848
77560
  p_order: import("../integrations/supabase/types").Json;
@@ -75954,6 +77666,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75954
77666
  };
75955
77667
  Returns: number;
75956
77668
  };
77669
+ logistics_prepare_pick_documents: {
77670
+ Args: {
77671
+ p_limit?: number;
77672
+ };
77673
+ Returns: import("../integrations/supabase/types").Json;
77674
+ };
75957
77675
  logistics_prune_buffer_member_queue: {
75958
77676
  Args: never;
75959
77677
  Returns: number;
@@ -75994,12 +77712,30 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
75994
77712
  Args: never;
75995
77713
  Returns: import("../integrations/supabase/types").Json;
75996
77714
  };
77715
+ logistics_refresh_pick_queue_status: {
77716
+ Args: {
77717
+ p_ref: string;
77718
+ };
77719
+ Returns: number;
77720
+ };
75997
77721
  logistics_refresh_pickup_moments: {
75998
77722
  Args: {
75999
77723
  p_weeks?: number;
76000
77724
  };
76001
77725
  Returns: import("../integrations/supabase/types").Json;
76002
77726
  };
77727
+ logistics_replan_all: {
77728
+ Args: {
77729
+ p_reason?: string;
77730
+ };
77731
+ Returns: import("../integrations/supabase/types").Json;
77732
+ };
77733
+ logistics_replan_all_force: {
77734
+ Args: {
77735
+ p_reason?: string;
77736
+ };
77737
+ Returns: import("../integrations/supabase/types").Json;
77738
+ };
76003
77739
  logistics_report_delay: {
76004
77740
  Args: {
76005
77741
  p_expected_date?: string;
@@ -76053,6 +77789,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76053
77789
  };
76054
77790
  Returns: import("../integrations/supabase/types").Json;
76055
77791
  };
77792
+ logistics_resolve_product_id: {
77793
+ Args: {
77794
+ p_label: string;
77795
+ };
77796
+ Returns: string;
77797
+ };
76056
77798
  logistics_resolve_settings: {
76057
77799
  Args: {
76058
77800
  p_config_id: string;
@@ -76138,6 +77880,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76138
77880
  };
76139
77881
  Returns: string;
76140
77882
  };
77883
+ logistics_shipping_note_follows_slip: {
77884
+ Args: never;
77885
+ Returns: boolean;
77886
+ };
76141
77887
  logistics_shipping_note_from_barcode: {
76142
77888
  Args: {
76143
77889
  p_allow_reprint?: boolean;
@@ -76150,6 +77896,14 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76150
77896
  Args: never;
76151
77897
  Returns: boolean;
76152
77898
  };
77899
+ logistics_subtract_working_minutes: {
77900
+ Args: {
77901
+ p_deadline: string;
77902
+ p_max_workdays?: number;
77903
+ p_minutes: number;
77904
+ };
77905
+ Returns: import("../integrations/supabase/types").Json;
77906
+ };
76153
77907
  logistics_supersede_stale_tasks: {
76154
77908
  Args: {
76155
77909
  p_keep: string[];
@@ -76186,6 +77940,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76186
77940
  Args: never;
76187
77941
  Returns: string;
76188
77942
  };
77943
+ logistics_timezone_options: {
77944
+ Args: never;
77945
+ Returns: {
77946
+ name: string;
77947
+ }[];
77948
+ };
76189
77949
  logistics_upsert_task: {
76190
77950
  Args: {
76191
77951
  p_buffer_ref: string;
@@ -76205,6 +77965,16 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76205
77965
  };
76206
77966
  Returns: string;
76207
77967
  };
77968
+ logistics_valid_timezone: {
77969
+ Args: {
77970
+ _tz: string;
77971
+ };
77972
+ Returns: boolean;
77973
+ };
77974
+ logistics_working_hours_status: {
77975
+ Args: never;
77976
+ Returns: import("../integrations/supabase/types").Json;
77977
+ };
76208
77978
  logistics_write_buffer_layer_positions: {
76209
77979
  Args: {
76210
77980
  p_buffer_id: string;
@@ -76370,6 +78140,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
76370
78140
  online: boolean;
76371
78141
  }[];
76372
78142
  };
78143
+ pick_apply_buffer_events: {
78144
+ Args: never;
78145
+ Returns: import("../integrations/supabase/types").Json;
78146
+ };
76373
78147
  pick_available_pick_days: {
76374
78148
  Args: {
76375
78149
  _max_days?: number;
@@ -77646,6 +79420,13 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77646
79420
  };
77647
79421
  Returns: number;
77648
79422
  };
79423
+ schedule_floriday_catalog_prices_sync: {
79424
+ Args: {
79425
+ p_apikey: string;
79426
+ p_url: string;
79427
+ };
79428
+ Returns: number;
79429
+ };
77649
79430
  schedule_floriday_clock_presales_sync: {
77650
79431
  Args: {
77651
79432
  p_apikey: string;
@@ -77946,6 +79727,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
77946
79727
  };
77947
79728
  Returns: undefined;
77948
79729
  };
79730
+ sync_floriday_prices_into_price_groups: {
79731
+ Args: never;
79732
+ Returns: number;
79733
+ };
77949
79734
  sync_layer_stock: {
77950
79735
  Args: {
77951
79736
  p_product_id: string;
@@ -84000,6 +85785,84 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
84000
85785
  referencedColumns: ["id"];
84001
85786
  }];
84002
85787
  };
85788
+ floriday_catalog_prices_cache: {
85789
+ Row: {
85790
+ connection_id: string;
85791
+ created_at: string;
85792
+ currency: string;
85793
+ id: string;
85794
+ is_deleted: boolean;
85795
+ price: number | null;
85796
+ price_group_id: string | null;
85797
+ price_group_name: string | null;
85798
+ price_type: string;
85799
+ raw: import("../integrations/supabase/types").Json | null;
85800
+ sales_unit: string | null;
85801
+ sequence_number: number;
85802
+ supplier_article_code: string | null;
85803
+ supply_line_id: string;
85804
+ synced_at: string;
85805
+ trade_item_id: string | null;
85806
+ updated_at: string;
85807
+ valid_from: string | null;
85808
+ valid_to: string | null;
85809
+ week: number | null;
85810
+ year: number | null;
85811
+ };
85812
+ Insert: {
85813
+ connection_id: string;
85814
+ created_at?: string;
85815
+ currency?: string;
85816
+ id?: string;
85817
+ is_deleted?: boolean;
85818
+ price?: number | null;
85819
+ price_group_id?: string | null;
85820
+ price_group_name?: string | null;
85821
+ price_type?: string;
85822
+ raw?: import("../integrations/supabase/types").Json | null;
85823
+ sales_unit?: string | null;
85824
+ sequence_number?: number;
85825
+ supplier_article_code?: string | null;
85826
+ supply_line_id: string;
85827
+ synced_at?: string;
85828
+ trade_item_id?: string | null;
85829
+ updated_at?: string;
85830
+ valid_from?: string | null;
85831
+ valid_to?: string | null;
85832
+ week?: number | null;
85833
+ year?: number | null;
85834
+ };
85835
+ Update: {
85836
+ connection_id?: string;
85837
+ created_at?: string;
85838
+ currency?: string;
85839
+ id?: string;
85840
+ is_deleted?: boolean;
85841
+ price?: number | null;
85842
+ price_group_id?: string | null;
85843
+ price_group_name?: string | null;
85844
+ price_type?: string;
85845
+ raw?: import("../integrations/supabase/types").Json | null;
85846
+ sales_unit?: string | null;
85847
+ sequence_number?: number;
85848
+ supplier_article_code?: string | null;
85849
+ supply_line_id?: string;
85850
+ synced_at?: string;
85851
+ trade_item_id?: string | null;
85852
+ updated_at?: string;
85853
+ valid_from?: string | null;
85854
+ valid_to?: string | null;
85855
+ week?: number | null;
85856
+ year?: number | null;
85857
+ };
85858
+ Relationships: [{
85859
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
85860
+ columns: ["connection_id"];
85861
+ isOneToOne: false;
85862
+ referencedRelation: "floriday_connections";
85863
+ referencedColumns: ["id"];
85864
+ }];
85865
+ };
84003
85866
  floriday_clock_presales_cache: {
84004
85867
  Row: {
84005
85868
  buyer_organization_id: string | null;
@@ -88266,6 +90129,36 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
88266
90129
  };
88267
90130
  Relationships: [];
88268
90131
  };
90132
+ logistics_floriday_push_refusals: {
90133
+ Row: {
90134
+ action: string | null;
90135
+ created_at: string;
90136
+ id: string;
90137
+ order_ref: string;
90138
+ reason: string;
90139
+ source_module: string | null;
90140
+ source_shell: string | null;
90141
+ };
90142
+ Insert: {
90143
+ action?: string | null;
90144
+ created_at?: string;
90145
+ id?: string;
90146
+ order_ref: string;
90147
+ reason: string;
90148
+ source_module?: string | null;
90149
+ source_shell?: string | null;
90150
+ };
90151
+ Update: {
90152
+ action?: string | null;
90153
+ created_at?: string;
90154
+ id?: string;
90155
+ order_ref?: string;
90156
+ reason?: string;
90157
+ source_module?: string | null;
90158
+ source_shell?: string | null;
90159
+ };
90160
+ Relationships: [];
90161
+ };
88269
90162
  logistics_floriday_pushes: {
88270
90163
  Row: {
88271
90164
  attempts: number;
@@ -88341,6 +90234,42 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
88341
90234
  };
88342
90235
  Relationships: [];
88343
90236
  };
90237
+ logistics_floriday_status_sends: {
90238
+ Row: {
90239
+ action: string;
90240
+ created_at: string;
90241
+ detail: string | null;
90242
+ http_status: number | null;
90243
+ id: string;
90244
+ ok: boolean;
90245
+ order_ref: string;
90246
+ source_module: string | null;
90247
+ source_shell: string | null;
90248
+ };
90249
+ Insert: {
90250
+ action: string;
90251
+ created_at?: string;
90252
+ detail?: string | null;
90253
+ http_status?: number | null;
90254
+ id?: string;
90255
+ ok?: boolean;
90256
+ order_ref: string;
90257
+ source_module?: string | null;
90258
+ source_shell?: string | null;
90259
+ };
90260
+ Update: {
90261
+ action?: string;
90262
+ created_at?: string;
90263
+ detail?: string | null;
90264
+ http_status?: number | null;
90265
+ id?: string;
90266
+ ok?: boolean;
90267
+ order_ref?: string;
90268
+ source_module?: string | null;
90269
+ source_shell?: string | null;
90270
+ };
90271
+ Relationships: [];
90272
+ };
88344
90273
  logistics_formulas: {
88345
90274
  Row: {
88346
90275
  created_at: string;
@@ -88413,6 +90342,108 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
88413
90342
  };
88414
90343
  Relationships: [];
88415
90344
  };
90345
+ logistics_opening_exceptions: {
90346
+ Row: {
90347
+ closes: string | null;
90348
+ created_at: string;
90349
+ day: string;
90350
+ id: string;
90351
+ is_closed: boolean;
90352
+ note: string | null;
90353
+ opens: string | null;
90354
+ };
90355
+ Insert: {
90356
+ closes?: string | null;
90357
+ created_at?: string;
90358
+ day: string;
90359
+ id?: string;
90360
+ is_closed?: boolean;
90361
+ note?: string | null;
90362
+ opens?: string | null;
90363
+ };
90364
+ Update: {
90365
+ closes?: string | null;
90366
+ created_at?: string;
90367
+ day?: string;
90368
+ id?: string;
90369
+ is_closed?: boolean;
90370
+ note?: string | null;
90371
+ opens?: string | null;
90372
+ };
90373
+ Relationships: [];
90374
+ };
90375
+ logistics_opening_hours: {
90376
+ Row: {
90377
+ closes: string;
90378
+ created_at: string;
90379
+ id: string;
90380
+ is_active: boolean;
90381
+ note: string | null;
90382
+ opens: string;
90383
+ weekday: number;
90384
+ };
90385
+ Insert: {
90386
+ closes: string;
90387
+ created_at?: string;
90388
+ id?: string;
90389
+ is_active?: boolean;
90390
+ note?: string | null;
90391
+ opens: string;
90392
+ weekday: number;
90393
+ };
90394
+ Update: {
90395
+ closes?: string;
90396
+ created_at?: string;
90397
+ id?: string;
90398
+ is_active?: boolean;
90399
+ note?: string | null;
90400
+ opens?: string;
90401
+ weekday?: number;
90402
+ };
90403
+ Relationships: [];
90404
+ };
90405
+ logistics_pick_data_requests: {
90406
+ Row: {
90407
+ actions: import("../integrations/supabase/types").Json;
90408
+ created_at: string;
90409
+ event_id: string | null;
90410
+ finished_at: string | null;
90411
+ id: string;
90412
+ missing: import("../integrations/supabase/types").Json;
90413
+ order_ref: string;
90414
+ reason: string | null;
90415
+ result: import("../integrations/supabase/types").Json | null;
90416
+ status: string;
90417
+ unit_ref: string | null;
90418
+ };
90419
+ Insert: {
90420
+ actions?: import("../integrations/supabase/types").Json;
90421
+ created_at?: string;
90422
+ event_id?: string | null;
90423
+ finished_at?: string | null;
90424
+ id?: string;
90425
+ missing?: import("../integrations/supabase/types").Json;
90426
+ order_ref: string;
90427
+ reason?: string | null;
90428
+ result?: import("../integrations/supabase/types").Json | null;
90429
+ status?: string;
90430
+ unit_ref?: string | null;
90431
+ };
90432
+ Update: {
90433
+ actions?: import("../integrations/supabase/types").Json;
90434
+ created_at?: string;
90435
+ event_id?: string | null;
90436
+ finished_at?: string | null;
90437
+ id?: string;
90438
+ missing?: import("../integrations/supabase/types").Json;
90439
+ order_ref?: string;
90440
+ reason?: string | null;
90441
+ result?: import("../integrations/supabase/types").Json | null;
90442
+ status?: string;
90443
+ unit_ref?: string | null;
90444
+ };
90445
+ Relationships: [];
90446
+ };
88416
90447
  logistics_pickup_moments: {
88417
90448
  Row: {
88418
90449
  carrier_ref: string | null;
@@ -89205,6 +91236,24 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
89205
91236
  };
89206
91237
  Relationships: [];
89207
91238
  };
91239
+ logistics_time_settings: {
91240
+ Row: {
91241
+ id: boolean;
91242
+ timezone: string;
91243
+ updated_at: string;
91244
+ };
91245
+ Insert: {
91246
+ id?: boolean;
91247
+ timezone: string;
91248
+ updated_at?: string;
91249
+ };
91250
+ Update: {
91251
+ id?: boolean;
91252
+ timezone?: string;
91253
+ updated_at?: string;
91254
+ };
91255
+ Relationships: [];
91256
+ };
89208
91257
  logistics_variables: {
89209
91258
  Row: {
89210
91259
  created_at: string;
@@ -91595,6 +93644,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
91595
93644
  customer_name: string;
91596
93645
  deleted_at: string | null;
91597
93646
  delivery_date: string | null;
93647
+ floriday_order_group_key: string | null;
91598
93648
  floriday_sales_order_id: string | null;
91599
93649
  id: string;
91600
93650
  invoice_due_at: string | null;
@@ -91622,6 +93672,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
91622
93672
  customer_name?: string;
91623
93673
  deleted_at?: string | null;
91624
93674
  delivery_date?: string | null;
93675
+ floriday_order_group_key?: string | null;
91625
93676
  floriday_sales_order_id?: string | null;
91626
93677
  id?: string;
91627
93678
  invoice_due_at?: string | null;
@@ -91649,6 +93700,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
91649
93700
  customer_name?: string;
91650
93701
  deleted_at?: string | null;
91651
93702
  delivery_date?: string | null;
93703
+ floriday_order_group_key?: string | null;
91652
93704
  floriday_sales_order_id?: string | null;
91653
93705
  id?: string;
91654
93706
  invoice_due_at?: string | null;
@@ -91842,6 +93894,27 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
91842
93894
  };
91843
93895
  Relationships: [];
91844
93896
  };
93897
+ pick_buffer_event_cursor: {
93898
+ Row: {
93899
+ created_at: string;
93900
+ id: boolean;
93901
+ last_event_at: string;
93902
+ updated_at: string;
93903
+ };
93904
+ Insert: {
93905
+ created_at?: string;
93906
+ id?: boolean;
93907
+ last_event_at?: string;
93908
+ updated_at?: string;
93909
+ };
93910
+ Update: {
93911
+ created_at?: string;
93912
+ id?: boolean;
93913
+ last_event_at?: string;
93914
+ updated_at?: string;
93915
+ };
93916
+ Relationships: [];
93917
+ };
91845
93918
  pick_countries: {
91846
93919
  Row: {
91847
93920
  active: boolean;
@@ -97491,6 +99564,36 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
97491
99564
  referencedColumns: ["id"];
97492
99565
  }];
97493
99566
  };
99567
+ voorraad_buffer_state: {
99568
+ Row: {
99569
+ buffer_id: string;
99570
+ buffer_key: string | null;
99571
+ closed_at: string | null;
99572
+ created_at: string;
99573
+ detached_orders: import("../integrations/supabase/types").Json;
99574
+ reason: string | null;
99575
+ updated_at: string;
99576
+ };
99577
+ Insert: {
99578
+ buffer_id: string;
99579
+ buffer_key?: string | null;
99580
+ closed_at?: string | null;
99581
+ created_at?: string;
99582
+ detached_orders?: import("../integrations/supabase/types").Json;
99583
+ reason?: string | null;
99584
+ updated_at?: string;
99585
+ };
99586
+ Update: {
99587
+ buffer_id?: string;
99588
+ buffer_key?: string | null;
99589
+ closed_at?: string | null;
99590
+ created_at?: string;
99591
+ detached_orders?: import("../integrations/supabase/types").Json;
99592
+ reason?: string | null;
99593
+ updated_at?: string;
99594
+ };
99595
+ Relationships: [];
99596
+ };
97494
99597
  voorraad_custom_fields: {
97495
99598
  Row: {
97496
99599
  created_at: string;
@@ -97533,6 +99636,36 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
97533
99636
  };
97534
99637
  Relationships: [];
97535
99638
  };
99639
+ voorraad_logistics_event_log: {
99640
+ Row: {
99641
+ created_at: string;
99642
+ event_id: string;
99643
+ event_type: string;
99644
+ order_ref: string | null;
99645
+ processed_at: string;
99646
+ result: import("../integrations/supabase/types").Json;
99647
+ updated_at: string;
99648
+ };
99649
+ Insert: {
99650
+ created_at?: string;
99651
+ event_id: string;
99652
+ event_type: string;
99653
+ order_ref?: string | null;
99654
+ processed_at?: string;
99655
+ result?: import("../integrations/supabase/types").Json;
99656
+ updated_at?: string;
99657
+ };
99658
+ Update: {
99659
+ created_at?: string;
99660
+ event_id?: string;
99661
+ event_type?: string;
99662
+ order_ref?: string | null;
99663
+ processed_at?: string;
99664
+ result?: import("../integrations/supabase/types").Json;
99665
+ updated_at?: string;
99666
+ };
99667
+ Relationships: [];
99668
+ };
97536
99669
  voorraad_media_upload_failures: {
97537
99670
  Row: {
97538
99671
  action: string;
@@ -100358,6 +102491,17 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
100358
102491
  };
100359
102492
  Returns: boolean;
100360
102493
  };
102494
+ floriday_adopt_connection: {
102495
+ Args: {
102496
+ p_new: string;
102497
+ p_old: string;
102498
+ };
102499
+ Returns: import("../integrations/supabase/types").Json;
102500
+ };
102501
+ floriday_autoheal_connections: {
102502
+ Args: never;
102503
+ Returns: import("../integrations/supabase/types").Json;
102504
+ };
100361
102505
  floriday_capture_stock_snapshot: {
100362
102506
  Args: never;
100363
102507
  Returns: number;
@@ -100415,6 +102559,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
100415
102559
  };
100416
102560
  Returns: undefined;
100417
102561
  };
102562
+ floriday_relink_products: {
102563
+ Args: {
102564
+ p_connection_id?: string;
102565
+ };
102566
+ Returns: import("../integrations/supabase/types").Json;
102567
+ };
100418
102568
  floriday_requeue_dead_letters: {
100419
102569
  Args: {
100420
102570
  p_connection_id?: string;
@@ -101036,6 +103186,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101036
103186
  };
101037
103187
  Returns: string;
101038
103188
  };
103189
+ logistics_active_layout_method: {
103190
+ Args: never;
103191
+ Returns: string;
103192
+ };
101039
103193
  logistics_active_pick_workdays: {
101040
103194
  Args: never;
101041
103195
  Returns: string[];
@@ -101143,6 +103297,15 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101143
103297
  };
101144
103298
  Returns: boolean;
101145
103299
  };
103300
+ logistics_buffer_notify: {
103301
+ Args: {
103302
+ p_event_type: string;
103303
+ p_idempotency_key: string;
103304
+ p_order_ref: string;
103305
+ p_payload: import("../integrations/supabase/types").Json;
103306
+ };
103307
+ Returns: string;
103308
+ };
101146
103309
  logistics_buffer_open_key: {
101147
103310
  Args: {
101148
103311
  p_base_key: string;
@@ -101201,6 +103364,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101201
103364
  };
101202
103365
  Returns: string;
101203
103366
  };
103367
+ logistics_cart_checkin_at: {
103368
+ Args: {
103369
+ p_cart_id: string;
103370
+ };
103371
+ Returns: string;
103372
+ };
101204
103373
  logistics_cart_handled: {
101205
103374
  Args: {
101206
103375
  p_cart_index: number;
@@ -101234,10 +103403,22 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101234
103403
  task_status: string;
101235
103404
  }[];
101236
103405
  };
103406
+ logistics_cart_is_full: {
103407
+ Args: {
103408
+ p_cart_id: string;
103409
+ };
103410
+ Returns: boolean;
103411
+ };
101237
103412
  logistics_cart_layout_method: {
101238
103413
  Args: never;
101239
103414
  Returns: import("../integrations/supabase/types").Json;
101240
103415
  };
103416
+ logistics_cart_order_refs: {
103417
+ Args: {
103418
+ p_cart_id: string;
103419
+ };
103420
+ Returns: string[];
103421
+ };
101241
103422
  logistics_cart_plan_overview: {
101242
103423
  Args: {
101243
103424
  p_days?: number;
@@ -101257,6 +103438,18 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101257
103438
  };
101258
103439
  Returns: import("../integrations/supabase/types").Json;
101259
103440
  };
103441
+ logistics_cart_release_reason: {
103442
+ Args: {
103443
+ p_cart_id: string;
103444
+ };
103445
+ Returns: string;
103446
+ };
103447
+ logistics_cart_released: {
103448
+ Args: {
103449
+ p_cart_id: string;
103450
+ };
103451
+ Returns: boolean;
103452
+ };
101260
103453
  logistics_cart_seq: {
101261
103454
  Args: {
101262
103455
  p_order_uuid?: string;
@@ -101410,6 +103603,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101410
103603
  isSetofReturn: false;
101411
103604
  };
101412
103605
  };
103606
+ logistics_cleanup_orphan_print_jobs: {
103607
+ Args: never;
103608
+ Returns: import("../integrations/supabase/types").Json;
103609
+ };
101413
103610
  logistics_complete_task: {
101414
103611
  Args: {
101415
103612
  p_result?: import("../integrations/supabase/types").Json;
@@ -101472,6 +103669,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101472
103669
  station_carts: number;
101473
103670
  }[];
101474
103671
  };
103672
+ logistics_control_complete_cart: {
103673
+ Args: {
103674
+ p_cart_id: string;
103675
+ };
103676
+ Returns: number;
103677
+ };
101475
103678
  logistics_control_scan_approve: {
101476
103679
  Args: {
101477
103680
  p_allow_reprint?: boolean;
@@ -101551,6 +103754,15 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101551
103754
  Args: never;
101552
103755
  Returns: import("../integrations/supabase/types").Json;
101553
103756
  };
103757
+ logistics_day_windows: {
103758
+ Args: {
103759
+ p_day: string;
103760
+ };
103761
+ Returns: {
103762
+ win_end: string;
103763
+ win_start: string;
103764
+ }[];
103765
+ };
101554
103766
  logistics_delay_customer_email: {
101555
103767
  Args: {
101556
103768
  p_customer: string;
@@ -101618,6 +103830,17 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101618
103830
  };
101619
103831
  Returns: import("../integrations/supabase/types").Json;
101620
103832
  };
103833
+ logistics_enqueue_shipping_note_with_slip: {
103834
+ Args: {
103835
+ _cart_id: string;
103836
+ _is_herprint: boolean;
103837
+ _printer_id: string;
103838
+ _queue_item_id: string;
103839
+ _session_id: string;
103840
+ _slip_job_id: string;
103841
+ };
103842
+ Returns: string;
103843
+ };
101621
103844
  logistics_enqueue_sticker_with_slip: {
101622
103845
  Args: {
101623
103846
  _cart_id: string;
@@ -101635,6 +103858,14 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101635
103858
  };
101636
103859
  Returns: string;
101637
103860
  };
103861
+ logistics_ensure_pick_data: {
103862
+ Args: {
103863
+ p_event_id?: string;
103864
+ p_missing?: import("../integrations/supabase/types").Json;
103865
+ p_ref: string;
103866
+ };
103867
+ Returns: import("../integrations/supabase/types").Json;
103868
+ };
101638
103869
  logistics_fail_task: {
101639
103870
  Args: {
101640
103871
  p_error: string;
@@ -101756,6 +103987,38 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101756
103987
  };
101757
103988
  Returns: string;
101758
103989
  };
103990
+ logistics_floriday_gate_status: {
103991
+ Args: never;
103992
+ Returns: import("../integrations/supabase/types").Json;
103993
+ };
103994
+ logistics_floriday_log_refusal: {
103995
+ Args: {
103996
+ _action?: string;
103997
+ _module?: string;
103998
+ _order_ref: string;
103999
+ _reason: string;
104000
+ _shell?: string;
104001
+ };
104002
+ Returns: undefined;
104003
+ };
104004
+ logistics_floriday_log_send: {
104005
+ Args: {
104006
+ _action: string;
104007
+ _detail?: string;
104008
+ _http_status?: number;
104009
+ _module?: string;
104010
+ _ok: boolean;
104011
+ _order_ref: string;
104012
+ _shell?: string;
104013
+ };
104014
+ Returns: undefined;
104015
+ };
104016
+ logistics_floriday_order_approved: {
104017
+ Args: {
104018
+ _order_ref: string;
104019
+ };
104020
+ Returns: boolean;
104021
+ };
101759
104022
  logistics_floriday_prune_pushes: {
101760
104023
  Args: {
101761
104024
  _days?: number;
@@ -101770,6 +104033,20 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101770
104033
  };
101771
104034
  Returns: string;
101772
104035
  };
104036
+ logistics_floriday_status_updates_enabled: {
104037
+ Args: never;
104038
+ Returns: boolean;
104039
+ };
104040
+ logistics_floriday_stock_updates_enabled: {
104041
+ Args: never;
104042
+ Returns: boolean;
104043
+ };
104044
+ logistics_floriday_write_allowed: {
104045
+ Args: {
104046
+ _action: string;
104047
+ };
104048
+ Returns: boolean;
104049
+ };
101773
104050
  logistics_fulfill_barcode_requests: {
101774
104051
  Args: {
101775
104052
  p_limit?: number;
@@ -101790,6 +104067,16 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101790
104067
  };
101791
104068
  Returns: boolean;
101792
104069
  };
104070
+ logistics_layout_method_status: {
104071
+ Args: never;
104072
+ Returns: import("../integrations/supabase/types").Json;
104073
+ };
104074
+ logistics_link_order_items: {
104075
+ Args: {
104076
+ p_order?: string;
104077
+ };
104078
+ Returns: import("../integrations/supabase/types").Json;
104079
+ };
101793
104080
  logistics_live_carriers: {
101794
104081
  Args: {
101795
104082
  p_order_ref: string;
@@ -101802,6 +104089,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101802
104089
  };
101803
104090
  Returns: number;
101804
104091
  };
104092
+ logistics_merge_partial_carts: {
104093
+ Args: {
104094
+ p_limit?: number;
104095
+ };
104096
+ Returns: import("../integrations/supabase/types").Json;
104097
+ };
101805
104098
  logistics_next_workday_date: {
101806
104099
  Args: {
101807
104100
  p_date: string;
@@ -101816,12 +104109,22 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101816
104109
  };
101817
104110
  Returns: string;
101818
104111
  };
104112
+ logistics_normalize_product_label: {
104113
+ Args: {
104114
+ p_label: string;
104115
+ };
104116
+ Returns: string;
104117
+ };
101819
104118
  logistics_not_past: {
101820
104119
  Args: {
101821
104120
  p_ts: string;
101822
104121
  };
101823
104122
  Returns: string;
101824
104123
  };
104124
+ logistics_opening_timezone: {
104125
+ Args: never;
104126
+ Returns: string;
104127
+ };
101825
104128
  logistics_order_cart_count: {
101826
104129
  Args: {
101827
104130
  p_order_ref: string;
@@ -101906,6 +104209,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
101906
104209
  Args: never;
101907
104210
  Returns: import("../integrations/supabase/types").Json;
101908
104211
  };
104212
+ logistics_pick_partial_mode: {
104213
+ Args: never;
104214
+ Returns: string;
104215
+ };
101909
104216
  logistics_pick_start_estimate: {
101910
104217
  Args: {
101911
104218
  p_order: import("../integrations/supabase/types").Json;
@@ -102017,6 +104324,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102017
104324
  };
102018
104325
  Returns: number;
102019
104326
  };
104327
+ logistics_prepare_pick_documents: {
104328
+ Args: {
104329
+ p_limit?: number;
104330
+ };
104331
+ Returns: import("../integrations/supabase/types").Json;
104332
+ };
102020
104333
  logistics_prune_buffer_member_queue: {
102021
104334
  Args: never;
102022
104335
  Returns: number;
@@ -102057,12 +104370,30 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102057
104370
  Args: never;
102058
104371
  Returns: import("../integrations/supabase/types").Json;
102059
104372
  };
104373
+ logistics_refresh_pick_queue_status: {
104374
+ Args: {
104375
+ p_ref: string;
104376
+ };
104377
+ Returns: number;
104378
+ };
102060
104379
  logistics_refresh_pickup_moments: {
102061
104380
  Args: {
102062
104381
  p_weeks?: number;
102063
104382
  };
102064
104383
  Returns: import("../integrations/supabase/types").Json;
102065
104384
  };
104385
+ logistics_replan_all: {
104386
+ Args: {
104387
+ p_reason?: string;
104388
+ };
104389
+ Returns: import("../integrations/supabase/types").Json;
104390
+ };
104391
+ logistics_replan_all_force: {
104392
+ Args: {
104393
+ p_reason?: string;
104394
+ };
104395
+ Returns: import("../integrations/supabase/types").Json;
104396
+ };
102066
104397
  logistics_report_delay: {
102067
104398
  Args: {
102068
104399
  p_expected_date?: string;
@@ -102116,6 +104447,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102116
104447
  };
102117
104448
  Returns: import("../integrations/supabase/types").Json;
102118
104449
  };
104450
+ logistics_resolve_product_id: {
104451
+ Args: {
104452
+ p_label: string;
104453
+ };
104454
+ Returns: string;
104455
+ };
102119
104456
  logistics_resolve_settings: {
102120
104457
  Args: {
102121
104458
  p_config_id: string;
@@ -102201,6 +104538,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102201
104538
  };
102202
104539
  Returns: string;
102203
104540
  };
104541
+ logistics_shipping_note_follows_slip: {
104542
+ Args: never;
104543
+ Returns: boolean;
104544
+ };
102204
104545
  logistics_shipping_note_from_barcode: {
102205
104546
  Args: {
102206
104547
  p_allow_reprint?: boolean;
@@ -102213,6 +104554,14 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102213
104554
  Args: never;
102214
104555
  Returns: boolean;
102215
104556
  };
104557
+ logistics_subtract_working_minutes: {
104558
+ Args: {
104559
+ p_deadline: string;
104560
+ p_max_workdays?: number;
104561
+ p_minutes: number;
104562
+ };
104563
+ Returns: import("../integrations/supabase/types").Json;
104564
+ };
102216
104565
  logistics_supersede_stale_tasks: {
102217
104566
  Args: {
102218
104567
  p_keep: string[];
@@ -102249,6 +104598,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102249
104598
  Args: never;
102250
104599
  Returns: string;
102251
104600
  };
104601
+ logistics_timezone_options: {
104602
+ Args: never;
104603
+ Returns: {
104604
+ name: string;
104605
+ }[];
104606
+ };
102252
104607
  logistics_upsert_task: {
102253
104608
  Args: {
102254
104609
  p_buffer_ref: string;
@@ -102268,6 +104623,16 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102268
104623
  };
102269
104624
  Returns: string;
102270
104625
  };
104626
+ logistics_valid_timezone: {
104627
+ Args: {
104628
+ _tz: string;
104629
+ };
104630
+ Returns: boolean;
104631
+ };
104632
+ logistics_working_hours_status: {
104633
+ Args: never;
104634
+ Returns: import("../integrations/supabase/types").Json;
104635
+ };
102271
104636
  logistics_write_buffer_layer_positions: {
102272
104637
  Args: {
102273
104638
  p_buffer_id: string;
@@ -102433,6 +104798,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
102433
104798
  online: boolean;
102434
104799
  }[];
102435
104800
  };
104801
+ pick_apply_buffer_events: {
104802
+ Args: never;
104803
+ Returns: import("../integrations/supabase/types").Json;
104804
+ };
102436
104805
  pick_available_pick_days: {
102437
104806
  Args: {
102438
104807
  _max_days?: number;
@@ -103709,6 +106078,13 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
103709
106078
  };
103710
106079
  Returns: number;
103711
106080
  };
106081
+ schedule_floriday_catalog_prices_sync: {
106082
+ Args: {
106083
+ p_apikey: string;
106084
+ p_url: string;
106085
+ };
106086
+ Returns: number;
106087
+ };
103712
106088
  schedule_floriday_clock_presales_sync: {
103713
106089
  Args: {
103714
106090
  p_apikey: string;
@@ -104009,6 +106385,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
104009
106385
  };
104010
106386
  Returns: undefined;
104011
106387
  };
106388
+ sync_floriday_prices_into_price_groups: {
106389
+ Args: never;
106390
+ Returns: number;
106391
+ };
104012
106392
  sync_layer_stock: {
104013
106393
  Args: {
104014
106394
  p_product_id: string;
@@ -110043,6 +112423,84 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
110043
112423
  referencedColumns: ["id"];
110044
112424
  }];
110045
112425
  };
112426
+ floriday_catalog_prices_cache: {
112427
+ Row: {
112428
+ connection_id: string;
112429
+ created_at: string;
112430
+ currency: string;
112431
+ id: string;
112432
+ is_deleted: boolean;
112433
+ price: number | null;
112434
+ price_group_id: string | null;
112435
+ price_group_name: string | null;
112436
+ price_type: string;
112437
+ raw: import("../integrations/supabase/types").Json | null;
112438
+ sales_unit: string | null;
112439
+ sequence_number: number;
112440
+ supplier_article_code: string | null;
112441
+ supply_line_id: string;
112442
+ synced_at: string;
112443
+ trade_item_id: string | null;
112444
+ updated_at: string;
112445
+ valid_from: string | null;
112446
+ valid_to: string | null;
112447
+ week: number | null;
112448
+ year: number | null;
112449
+ };
112450
+ Insert: {
112451
+ connection_id: string;
112452
+ created_at?: string;
112453
+ currency?: string;
112454
+ id?: string;
112455
+ is_deleted?: boolean;
112456
+ price?: number | null;
112457
+ price_group_id?: string | null;
112458
+ price_group_name?: string | null;
112459
+ price_type?: string;
112460
+ raw?: import("../integrations/supabase/types").Json | null;
112461
+ sales_unit?: string | null;
112462
+ sequence_number?: number;
112463
+ supplier_article_code?: string | null;
112464
+ supply_line_id: string;
112465
+ synced_at?: string;
112466
+ trade_item_id?: string | null;
112467
+ updated_at?: string;
112468
+ valid_from?: string | null;
112469
+ valid_to?: string | null;
112470
+ week?: number | null;
112471
+ year?: number | null;
112472
+ };
112473
+ Update: {
112474
+ connection_id?: string;
112475
+ created_at?: string;
112476
+ currency?: string;
112477
+ id?: string;
112478
+ is_deleted?: boolean;
112479
+ price?: number | null;
112480
+ price_group_id?: string | null;
112481
+ price_group_name?: string | null;
112482
+ price_type?: string;
112483
+ raw?: import("../integrations/supabase/types").Json | null;
112484
+ sales_unit?: string | null;
112485
+ sequence_number?: number;
112486
+ supplier_article_code?: string | null;
112487
+ supply_line_id?: string;
112488
+ synced_at?: string;
112489
+ trade_item_id?: string | null;
112490
+ updated_at?: string;
112491
+ valid_from?: string | null;
112492
+ valid_to?: string | null;
112493
+ week?: number | null;
112494
+ year?: number | null;
112495
+ };
112496
+ Relationships: [{
112497
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
112498
+ columns: ["connection_id"];
112499
+ isOneToOne: false;
112500
+ referencedRelation: "floriday_connections";
112501
+ referencedColumns: ["id"];
112502
+ }];
112503
+ };
110046
112504
  floriday_clock_presales_cache: {
110047
112505
  Row: {
110048
112506
  buyer_organization_id: string | null;
@@ -114309,6 +116767,36 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
114309
116767
  };
114310
116768
  Relationships: [];
114311
116769
  };
116770
+ logistics_floriday_push_refusals: {
116771
+ Row: {
116772
+ action: string | null;
116773
+ created_at: string;
116774
+ id: string;
116775
+ order_ref: string;
116776
+ reason: string;
116777
+ source_module: string | null;
116778
+ source_shell: string | null;
116779
+ };
116780
+ Insert: {
116781
+ action?: string | null;
116782
+ created_at?: string;
116783
+ id?: string;
116784
+ order_ref: string;
116785
+ reason: string;
116786
+ source_module?: string | null;
116787
+ source_shell?: string | null;
116788
+ };
116789
+ Update: {
116790
+ action?: string | null;
116791
+ created_at?: string;
116792
+ id?: string;
116793
+ order_ref?: string;
116794
+ reason?: string;
116795
+ source_module?: string | null;
116796
+ source_shell?: string | null;
116797
+ };
116798
+ Relationships: [];
116799
+ };
114312
116800
  logistics_floriday_pushes: {
114313
116801
  Row: {
114314
116802
  attempts: number;
@@ -114384,6 +116872,42 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
114384
116872
  };
114385
116873
  Relationships: [];
114386
116874
  };
116875
+ logistics_floriday_status_sends: {
116876
+ Row: {
116877
+ action: string;
116878
+ created_at: string;
116879
+ detail: string | null;
116880
+ http_status: number | null;
116881
+ id: string;
116882
+ ok: boolean;
116883
+ order_ref: string;
116884
+ source_module: string | null;
116885
+ source_shell: string | null;
116886
+ };
116887
+ Insert: {
116888
+ action: string;
116889
+ created_at?: string;
116890
+ detail?: string | null;
116891
+ http_status?: number | null;
116892
+ id?: string;
116893
+ ok?: boolean;
116894
+ order_ref: string;
116895
+ source_module?: string | null;
116896
+ source_shell?: string | null;
116897
+ };
116898
+ Update: {
116899
+ action?: string;
116900
+ created_at?: string;
116901
+ detail?: string | null;
116902
+ http_status?: number | null;
116903
+ id?: string;
116904
+ ok?: boolean;
116905
+ order_ref?: string;
116906
+ source_module?: string | null;
116907
+ source_shell?: string | null;
116908
+ };
116909
+ Relationships: [];
116910
+ };
114387
116911
  logistics_formulas: {
114388
116912
  Row: {
114389
116913
  created_at: string;
@@ -114456,6 +116980,108 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
114456
116980
  };
114457
116981
  Relationships: [];
114458
116982
  };
116983
+ logistics_opening_exceptions: {
116984
+ Row: {
116985
+ closes: string | null;
116986
+ created_at: string;
116987
+ day: string;
116988
+ id: string;
116989
+ is_closed: boolean;
116990
+ note: string | null;
116991
+ opens: string | null;
116992
+ };
116993
+ Insert: {
116994
+ closes?: string | null;
116995
+ created_at?: string;
116996
+ day: string;
116997
+ id?: string;
116998
+ is_closed?: boolean;
116999
+ note?: string | null;
117000
+ opens?: string | null;
117001
+ };
117002
+ Update: {
117003
+ closes?: string | null;
117004
+ created_at?: string;
117005
+ day?: string;
117006
+ id?: string;
117007
+ is_closed?: boolean;
117008
+ note?: string | null;
117009
+ opens?: string | null;
117010
+ };
117011
+ Relationships: [];
117012
+ };
117013
+ logistics_opening_hours: {
117014
+ Row: {
117015
+ closes: string;
117016
+ created_at: string;
117017
+ id: string;
117018
+ is_active: boolean;
117019
+ note: string | null;
117020
+ opens: string;
117021
+ weekday: number;
117022
+ };
117023
+ Insert: {
117024
+ closes: string;
117025
+ created_at?: string;
117026
+ id?: string;
117027
+ is_active?: boolean;
117028
+ note?: string | null;
117029
+ opens: string;
117030
+ weekday: number;
117031
+ };
117032
+ Update: {
117033
+ closes?: string;
117034
+ created_at?: string;
117035
+ id?: string;
117036
+ is_active?: boolean;
117037
+ note?: string | null;
117038
+ opens?: string;
117039
+ weekday?: number;
117040
+ };
117041
+ Relationships: [];
117042
+ };
117043
+ logistics_pick_data_requests: {
117044
+ Row: {
117045
+ actions: import("../integrations/supabase/types").Json;
117046
+ created_at: string;
117047
+ event_id: string | null;
117048
+ finished_at: string | null;
117049
+ id: string;
117050
+ missing: import("../integrations/supabase/types").Json;
117051
+ order_ref: string;
117052
+ reason: string | null;
117053
+ result: import("../integrations/supabase/types").Json | null;
117054
+ status: string;
117055
+ unit_ref: string | null;
117056
+ };
117057
+ Insert: {
117058
+ actions?: import("../integrations/supabase/types").Json;
117059
+ created_at?: string;
117060
+ event_id?: string | null;
117061
+ finished_at?: string | null;
117062
+ id?: string;
117063
+ missing?: import("../integrations/supabase/types").Json;
117064
+ order_ref: string;
117065
+ reason?: string | null;
117066
+ result?: import("../integrations/supabase/types").Json | null;
117067
+ status?: string;
117068
+ unit_ref?: string | null;
117069
+ };
117070
+ Update: {
117071
+ actions?: import("../integrations/supabase/types").Json;
117072
+ created_at?: string;
117073
+ event_id?: string | null;
117074
+ finished_at?: string | null;
117075
+ id?: string;
117076
+ missing?: import("../integrations/supabase/types").Json;
117077
+ order_ref?: string;
117078
+ reason?: string | null;
117079
+ result?: import("../integrations/supabase/types").Json | null;
117080
+ status?: string;
117081
+ unit_ref?: string | null;
117082
+ };
117083
+ Relationships: [];
117084
+ };
114459
117085
  logistics_pickup_moments: {
114460
117086
  Row: {
114461
117087
  carrier_ref: string | null;
@@ -115248,6 +117874,24 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
115248
117874
  };
115249
117875
  Relationships: [];
115250
117876
  };
117877
+ logistics_time_settings: {
117878
+ Row: {
117879
+ id: boolean;
117880
+ timezone: string;
117881
+ updated_at: string;
117882
+ };
117883
+ Insert: {
117884
+ id?: boolean;
117885
+ timezone: string;
117886
+ updated_at?: string;
117887
+ };
117888
+ Update: {
117889
+ id?: boolean;
117890
+ timezone?: string;
117891
+ updated_at?: string;
117892
+ };
117893
+ Relationships: [];
117894
+ };
115251
117895
  logistics_variables: {
115252
117896
  Row: {
115253
117897
  created_at: string;
@@ -117638,6 +120282,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117638
120282
  customer_name: string;
117639
120283
  deleted_at: string | null;
117640
120284
  delivery_date: string | null;
120285
+ floriday_order_group_key: string | null;
117641
120286
  floriday_sales_order_id: string | null;
117642
120287
  id: string;
117643
120288
  invoice_due_at: string | null;
@@ -117665,6 +120310,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117665
120310
  customer_name?: string;
117666
120311
  deleted_at?: string | null;
117667
120312
  delivery_date?: string | null;
120313
+ floriday_order_group_key?: string | null;
117668
120314
  floriday_sales_order_id?: string | null;
117669
120315
  id?: string;
117670
120316
  invoice_due_at?: string | null;
@@ -117692,6 +120338,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117692
120338
  customer_name?: string;
117693
120339
  deleted_at?: string | null;
117694
120340
  delivery_date?: string | null;
120341
+ floriday_order_group_key?: string | null;
117695
120342
  floriday_sales_order_id?: string | null;
117696
120343
  id?: string;
117697
120344
  invoice_due_at?: string | null;
@@ -117885,6 +120532,27 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
117885
120532
  };
117886
120533
  Relationships: [];
117887
120534
  };
120535
+ pick_buffer_event_cursor: {
120536
+ Row: {
120537
+ created_at: string;
120538
+ id: boolean;
120539
+ last_event_at: string;
120540
+ updated_at: string;
120541
+ };
120542
+ Insert: {
120543
+ created_at?: string;
120544
+ id?: boolean;
120545
+ last_event_at?: string;
120546
+ updated_at?: string;
120547
+ };
120548
+ Update: {
120549
+ created_at?: string;
120550
+ id?: boolean;
120551
+ last_event_at?: string;
120552
+ updated_at?: string;
120553
+ };
120554
+ Relationships: [];
120555
+ };
117888
120556
  pick_countries: {
117889
120557
  Row: {
117890
120558
  active: boolean;
@@ -123534,6 +126202,36 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
123534
126202
  referencedColumns: ["id"];
123535
126203
  }];
123536
126204
  };
126205
+ voorraad_buffer_state: {
126206
+ Row: {
126207
+ buffer_id: string;
126208
+ buffer_key: string | null;
126209
+ closed_at: string | null;
126210
+ created_at: string;
126211
+ detached_orders: import("../integrations/supabase/types").Json;
126212
+ reason: string | null;
126213
+ updated_at: string;
126214
+ };
126215
+ Insert: {
126216
+ buffer_id: string;
126217
+ buffer_key?: string | null;
126218
+ closed_at?: string | null;
126219
+ created_at?: string;
126220
+ detached_orders?: import("../integrations/supabase/types").Json;
126221
+ reason?: string | null;
126222
+ updated_at?: string;
126223
+ };
126224
+ Update: {
126225
+ buffer_id?: string;
126226
+ buffer_key?: string | null;
126227
+ closed_at?: string | null;
126228
+ created_at?: string;
126229
+ detached_orders?: import("../integrations/supabase/types").Json;
126230
+ reason?: string | null;
126231
+ updated_at?: string;
126232
+ };
126233
+ Relationships: [];
126234
+ };
123537
126235
  voorraad_custom_fields: {
123538
126236
  Row: {
123539
126237
  created_at: string;
@@ -123576,6 +126274,36 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
123576
126274
  };
123577
126275
  Relationships: [];
123578
126276
  };
126277
+ voorraad_logistics_event_log: {
126278
+ Row: {
126279
+ created_at: string;
126280
+ event_id: string;
126281
+ event_type: string;
126282
+ order_ref: string | null;
126283
+ processed_at: string;
126284
+ result: import("../integrations/supabase/types").Json;
126285
+ updated_at: string;
126286
+ };
126287
+ Insert: {
126288
+ created_at?: string;
126289
+ event_id: string;
126290
+ event_type: string;
126291
+ order_ref?: string | null;
126292
+ processed_at?: string;
126293
+ result?: import("../integrations/supabase/types").Json;
126294
+ updated_at?: string;
126295
+ };
126296
+ Update: {
126297
+ created_at?: string;
126298
+ event_id?: string;
126299
+ event_type?: string;
126300
+ order_ref?: string | null;
126301
+ processed_at?: string;
126302
+ result?: import("../integrations/supabase/types").Json;
126303
+ updated_at?: string;
126304
+ };
126305
+ Relationships: [];
126306
+ };
123579
126307
  voorraad_media_upload_failures: {
123580
126308
  Row: {
123581
126309
  action: string;
@@ -126401,6 +129129,17 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
126401
129129
  };
126402
129130
  Returns: boolean;
126403
129131
  };
129132
+ floriday_adopt_connection: {
129133
+ Args: {
129134
+ p_new: string;
129135
+ p_old: string;
129136
+ };
129137
+ Returns: import("../integrations/supabase/types").Json;
129138
+ };
129139
+ floriday_autoheal_connections: {
129140
+ Args: never;
129141
+ Returns: import("../integrations/supabase/types").Json;
129142
+ };
126404
129143
  floriday_capture_stock_snapshot: {
126405
129144
  Args: never;
126406
129145
  Returns: number;
@@ -126458,6 +129197,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
126458
129197
  };
126459
129198
  Returns: undefined;
126460
129199
  };
129200
+ floriday_relink_products: {
129201
+ Args: {
129202
+ p_connection_id?: string;
129203
+ };
129204
+ Returns: import("../integrations/supabase/types").Json;
129205
+ };
126461
129206
  floriday_requeue_dead_letters: {
126462
129207
  Args: {
126463
129208
  p_connection_id?: string;
@@ -127079,6 +129824,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127079
129824
  };
127080
129825
  Returns: string;
127081
129826
  };
129827
+ logistics_active_layout_method: {
129828
+ Args: never;
129829
+ Returns: string;
129830
+ };
127082
129831
  logistics_active_pick_workdays: {
127083
129832
  Args: never;
127084
129833
  Returns: string[];
@@ -127186,6 +129935,15 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127186
129935
  };
127187
129936
  Returns: boolean;
127188
129937
  };
129938
+ logistics_buffer_notify: {
129939
+ Args: {
129940
+ p_event_type: string;
129941
+ p_idempotency_key: string;
129942
+ p_order_ref: string;
129943
+ p_payload: import("../integrations/supabase/types").Json;
129944
+ };
129945
+ Returns: string;
129946
+ };
127189
129947
  logistics_buffer_open_key: {
127190
129948
  Args: {
127191
129949
  p_base_key: string;
@@ -127244,6 +130002,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127244
130002
  };
127245
130003
  Returns: string;
127246
130004
  };
130005
+ logistics_cart_checkin_at: {
130006
+ Args: {
130007
+ p_cart_id: string;
130008
+ };
130009
+ Returns: string;
130010
+ };
127247
130011
  logistics_cart_handled: {
127248
130012
  Args: {
127249
130013
  p_cart_index: number;
@@ -127277,10 +130041,22 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127277
130041
  task_status: string;
127278
130042
  }[];
127279
130043
  };
130044
+ logistics_cart_is_full: {
130045
+ Args: {
130046
+ p_cart_id: string;
130047
+ };
130048
+ Returns: boolean;
130049
+ };
127280
130050
  logistics_cart_layout_method: {
127281
130051
  Args: never;
127282
130052
  Returns: import("../integrations/supabase/types").Json;
127283
130053
  };
130054
+ logistics_cart_order_refs: {
130055
+ Args: {
130056
+ p_cart_id: string;
130057
+ };
130058
+ Returns: string[];
130059
+ };
127284
130060
  logistics_cart_plan_overview: {
127285
130061
  Args: {
127286
130062
  p_days?: number;
@@ -127300,6 +130076,18 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127300
130076
  };
127301
130077
  Returns: import("../integrations/supabase/types").Json;
127302
130078
  };
130079
+ logistics_cart_release_reason: {
130080
+ Args: {
130081
+ p_cart_id: string;
130082
+ };
130083
+ Returns: string;
130084
+ };
130085
+ logistics_cart_released: {
130086
+ Args: {
130087
+ p_cart_id: string;
130088
+ };
130089
+ Returns: boolean;
130090
+ };
127303
130091
  logistics_cart_seq: {
127304
130092
  Args: {
127305
130093
  p_order_uuid?: string;
@@ -127453,6 +130241,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127453
130241
  isSetofReturn: false;
127454
130242
  };
127455
130243
  };
130244
+ logistics_cleanup_orphan_print_jobs: {
130245
+ Args: never;
130246
+ Returns: import("../integrations/supabase/types").Json;
130247
+ };
127456
130248
  logistics_complete_task: {
127457
130249
  Args: {
127458
130250
  p_result?: import("../integrations/supabase/types").Json;
@@ -127515,6 +130307,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127515
130307
  station_carts: number;
127516
130308
  }[];
127517
130309
  };
130310
+ logistics_control_complete_cart: {
130311
+ Args: {
130312
+ p_cart_id: string;
130313
+ };
130314
+ Returns: number;
130315
+ };
127518
130316
  logistics_control_scan_approve: {
127519
130317
  Args: {
127520
130318
  p_allow_reprint?: boolean;
@@ -127594,6 +130392,15 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127594
130392
  Args: never;
127595
130393
  Returns: import("../integrations/supabase/types").Json;
127596
130394
  };
130395
+ logistics_day_windows: {
130396
+ Args: {
130397
+ p_day: string;
130398
+ };
130399
+ Returns: {
130400
+ win_end: string;
130401
+ win_start: string;
130402
+ }[];
130403
+ };
127597
130404
  logistics_delay_customer_email: {
127598
130405
  Args: {
127599
130406
  p_customer: string;
@@ -127661,6 +130468,17 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127661
130468
  };
127662
130469
  Returns: import("../integrations/supabase/types").Json;
127663
130470
  };
130471
+ logistics_enqueue_shipping_note_with_slip: {
130472
+ Args: {
130473
+ _cart_id: string;
130474
+ _is_herprint: boolean;
130475
+ _printer_id: string;
130476
+ _queue_item_id: string;
130477
+ _session_id: string;
130478
+ _slip_job_id: string;
130479
+ };
130480
+ Returns: string;
130481
+ };
127664
130482
  logistics_enqueue_sticker_with_slip: {
127665
130483
  Args: {
127666
130484
  _cart_id: string;
@@ -127678,6 +130496,14 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127678
130496
  };
127679
130497
  Returns: string;
127680
130498
  };
130499
+ logistics_ensure_pick_data: {
130500
+ Args: {
130501
+ p_event_id?: string;
130502
+ p_missing?: import("../integrations/supabase/types").Json;
130503
+ p_ref: string;
130504
+ };
130505
+ Returns: import("../integrations/supabase/types").Json;
130506
+ };
127681
130507
  logistics_fail_task: {
127682
130508
  Args: {
127683
130509
  p_error: string;
@@ -127799,6 +130625,38 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127799
130625
  };
127800
130626
  Returns: string;
127801
130627
  };
130628
+ logistics_floriday_gate_status: {
130629
+ Args: never;
130630
+ Returns: import("../integrations/supabase/types").Json;
130631
+ };
130632
+ logistics_floriday_log_refusal: {
130633
+ Args: {
130634
+ _action?: string;
130635
+ _module?: string;
130636
+ _order_ref: string;
130637
+ _reason: string;
130638
+ _shell?: string;
130639
+ };
130640
+ Returns: undefined;
130641
+ };
130642
+ logistics_floriday_log_send: {
130643
+ Args: {
130644
+ _action: string;
130645
+ _detail?: string;
130646
+ _http_status?: number;
130647
+ _module?: string;
130648
+ _ok: boolean;
130649
+ _order_ref: string;
130650
+ _shell?: string;
130651
+ };
130652
+ Returns: undefined;
130653
+ };
130654
+ logistics_floriday_order_approved: {
130655
+ Args: {
130656
+ _order_ref: string;
130657
+ };
130658
+ Returns: boolean;
130659
+ };
127802
130660
  logistics_floriday_prune_pushes: {
127803
130661
  Args: {
127804
130662
  _days?: number;
@@ -127813,6 +130671,20 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127813
130671
  };
127814
130672
  Returns: string;
127815
130673
  };
130674
+ logistics_floriday_status_updates_enabled: {
130675
+ Args: never;
130676
+ Returns: boolean;
130677
+ };
130678
+ logistics_floriday_stock_updates_enabled: {
130679
+ Args: never;
130680
+ Returns: boolean;
130681
+ };
130682
+ logistics_floriday_write_allowed: {
130683
+ Args: {
130684
+ _action: string;
130685
+ };
130686
+ Returns: boolean;
130687
+ };
127816
130688
  logistics_fulfill_barcode_requests: {
127817
130689
  Args: {
127818
130690
  p_limit?: number;
@@ -127833,6 +130705,16 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127833
130705
  };
127834
130706
  Returns: boolean;
127835
130707
  };
130708
+ logistics_layout_method_status: {
130709
+ Args: never;
130710
+ Returns: import("../integrations/supabase/types").Json;
130711
+ };
130712
+ logistics_link_order_items: {
130713
+ Args: {
130714
+ p_order?: string;
130715
+ };
130716
+ Returns: import("../integrations/supabase/types").Json;
130717
+ };
127836
130718
  logistics_live_carriers: {
127837
130719
  Args: {
127838
130720
  p_order_ref: string;
@@ -127845,6 +130727,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127845
130727
  };
127846
130728
  Returns: number;
127847
130729
  };
130730
+ logistics_merge_partial_carts: {
130731
+ Args: {
130732
+ p_limit?: number;
130733
+ };
130734
+ Returns: import("../integrations/supabase/types").Json;
130735
+ };
127848
130736
  logistics_next_workday_date: {
127849
130737
  Args: {
127850
130738
  p_date: string;
@@ -127859,12 +130747,22 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127859
130747
  };
127860
130748
  Returns: string;
127861
130749
  };
130750
+ logistics_normalize_product_label: {
130751
+ Args: {
130752
+ p_label: string;
130753
+ };
130754
+ Returns: string;
130755
+ };
127862
130756
  logistics_not_past: {
127863
130757
  Args: {
127864
130758
  p_ts: string;
127865
130759
  };
127866
130760
  Returns: string;
127867
130761
  };
130762
+ logistics_opening_timezone: {
130763
+ Args: never;
130764
+ Returns: string;
130765
+ };
127868
130766
  logistics_order_cart_count: {
127869
130767
  Args: {
127870
130768
  p_order_ref: string;
@@ -127949,6 +130847,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
127949
130847
  Args: never;
127950
130848
  Returns: import("../integrations/supabase/types").Json;
127951
130849
  };
130850
+ logistics_pick_partial_mode: {
130851
+ Args: never;
130852
+ Returns: string;
130853
+ };
127952
130854
  logistics_pick_start_estimate: {
127953
130855
  Args: {
127954
130856
  p_order: import("../integrations/supabase/types").Json;
@@ -128060,6 +130962,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128060
130962
  };
128061
130963
  Returns: number;
128062
130964
  };
130965
+ logistics_prepare_pick_documents: {
130966
+ Args: {
130967
+ p_limit?: number;
130968
+ };
130969
+ Returns: import("../integrations/supabase/types").Json;
130970
+ };
128063
130971
  logistics_prune_buffer_member_queue: {
128064
130972
  Args: never;
128065
130973
  Returns: number;
@@ -128100,12 +131008,30 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128100
131008
  Args: never;
128101
131009
  Returns: import("../integrations/supabase/types").Json;
128102
131010
  };
131011
+ logistics_refresh_pick_queue_status: {
131012
+ Args: {
131013
+ p_ref: string;
131014
+ };
131015
+ Returns: number;
131016
+ };
128103
131017
  logistics_refresh_pickup_moments: {
128104
131018
  Args: {
128105
131019
  p_weeks?: number;
128106
131020
  };
128107
131021
  Returns: import("../integrations/supabase/types").Json;
128108
131022
  };
131023
+ logistics_replan_all: {
131024
+ Args: {
131025
+ p_reason?: string;
131026
+ };
131027
+ Returns: import("../integrations/supabase/types").Json;
131028
+ };
131029
+ logistics_replan_all_force: {
131030
+ Args: {
131031
+ p_reason?: string;
131032
+ };
131033
+ Returns: import("../integrations/supabase/types").Json;
131034
+ };
128109
131035
  logistics_report_delay: {
128110
131036
  Args: {
128111
131037
  p_expected_date?: string;
@@ -128159,6 +131085,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128159
131085
  };
128160
131086
  Returns: import("../integrations/supabase/types").Json;
128161
131087
  };
131088
+ logistics_resolve_product_id: {
131089
+ Args: {
131090
+ p_label: string;
131091
+ };
131092
+ Returns: string;
131093
+ };
128162
131094
  logistics_resolve_settings: {
128163
131095
  Args: {
128164
131096
  p_config_id: string;
@@ -128244,6 +131176,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128244
131176
  };
128245
131177
  Returns: string;
128246
131178
  };
131179
+ logistics_shipping_note_follows_slip: {
131180
+ Args: never;
131181
+ Returns: boolean;
131182
+ };
128247
131183
  logistics_shipping_note_from_barcode: {
128248
131184
  Args: {
128249
131185
  p_allow_reprint?: boolean;
@@ -128256,6 +131192,14 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128256
131192
  Args: never;
128257
131193
  Returns: boolean;
128258
131194
  };
131195
+ logistics_subtract_working_minutes: {
131196
+ Args: {
131197
+ p_deadline: string;
131198
+ p_max_workdays?: number;
131199
+ p_minutes: number;
131200
+ };
131201
+ Returns: import("../integrations/supabase/types").Json;
131202
+ };
128259
131203
  logistics_supersede_stale_tasks: {
128260
131204
  Args: {
128261
131205
  p_keep: string[];
@@ -128292,6 +131236,12 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128292
131236
  Args: never;
128293
131237
  Returns: string;
128294
131238
  };
131239
+ logistics_timezone_options: {
131240
+ Args: never;
131241
+ Returns: {
131242
+ name: string;
131243
+ }[];
131244
+ };
128295
131245
  logistics_upsert_task: {
128296
131246
  Args: {
128297
131247
  p_buffer_ref: string;
@@ -128311,6 +131261,16 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128311
131261
  };
128312
131262
  Returns: string;
128313
131263
  };
131264
+ logistics_valid_timezone: {
131265
+ Args: {
131266
+ _tz: string;
131267
+ };
131268
+ Returns: boolean;
131269
+ };
131270
+ logistics_working_hours_status: {
131271
+ Args: never;
131272
+ Returns: import("../integrations/supabase/types").Json;
131273
+ };
128314
131274
  logistics_write_buffer_layer_positions: {
128315
131275
  Args: {
128316
131276
  p_buffer_id: string;
@@ -128476,6 +131436,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
128476
131436
  online: boolean;
128477
131437
  }[];
128478
131438
  };
131439
+ pick_apply_buffer_events: {
131440
+ Args: never;
131441
+ Returns: import("../integrations/supabase/types").Json;
131442
+ };
128479
131443
  pick_available_pick_days: {
128480
131444
  Args: {
128481
131445
  _max_days?: number;
@@ -129752,6 +132716,13 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
129752
132716
  };
129753
132717
  Returns: number;
129754
132718
  };
132719
+ schedule_floriday_catalog_prices_sync: {
132720
+ Args: {
132721
+ p_apikey: string;
132722
+ p_url: string;
132723
+ };
132724
+ Returns: number;
132725
+ };
129755
132726
  schedule_floriday_clock_presales_sync: {
129756
132727
  Args: {
129757
132728
  p_apikey: string;
@@ -130052,6 +133023,10 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
130052
133023
  };
130053
133024
  Returns: undefined;
130054
133025
  };
133026
+ sync_floriday_prices_into_price_groups: {
133027
+ Args: never;
133028
+ Returns: number;
133029
+ };
130055
133030
  sync_layer_stock: {
130056
133031
  Args: {
130057
133032
  p_product_id: string;