@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
@@ -5863,6 +5863,84 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5863
5863
  referencedColumns: ["id"];
5864
5864
  }];
5865
5865
  };
5866
+ floriday_catalog_prices_cache: {
5867
+ Row: {
5868
+ connection_id: string;
5869
+ created_at: string;
5870
+ currency: string;
5871
+ id: string;
5872
+ is_deleted: boolean;
5873
+ price: number | null;
5874
+ price_group_id: string | null;
5875
+ price_group_name: string | null;
5876
+ price_type: string;
5877
+ raw: import("../integrations/supabase/types").Json | null;
5878
+ sales_unit: string | null;
5879
+ sequence_number: number;
5880
+ supplier_article_code: string | null;
5881
+ supply_line_id: string;
5882
+ synced_at: string;
5883
+ trade_item_id: string | null;
5884
+ updated_at: string;
5885
+ valid_from: string | null;
5886
+ valid_to: string | null;
5887
+ week: number | null;
5888
+ year: number | null;
5889
+ };
5890
+ Insert: {
5891
+ connection_id: string;
5892
+ created_at?: string;
5893
+ currency?: string;
5894
+ id?: string;
5895
+ is_deleted?: boolean;
5896
+ price?: number | null;
5897
+ price_group_id?: string | null;
5898
+ price_group_name?: string | null;
5899
+ price_type?: string;
5900
+ raw?: import("../integrations/supabase/types").Json | null;
5901
+ sales_unit?: string | null;
5902
+ sequence_number?: number;
5903
+ supplier_article_code?: string | null;
5904
+ supply_line_id: string;
5905
+ synced_at?: string;
5906
+ trade_item_id?: string | null;
5907
+ updated_at?: string;
5908
+ valid_from?: string | null;
5909
+ valid_to?: string | null;
5910
+ week?: number | null;
5911
+ year?: number | null;
5912
+ };
5913
+ Update: {
5914
+ connection_id?: string;
5915
+ created_at?: string;
5916
+ currency?: string;
5917
+ id?: string;
5918
+ is_deleted?: boolean;
5919
+ price?: number | null;
5920
+ price_group_id?: string | null;
5921
+ price_group_name?: string | null;
5922
+ price_type?: string;
5923
+ raw?: import("../integrations/supabase/types").Json | null;
5924
+ sales_unit?: string | null;
5925
+ sequence_number?: number;
5926
+ supplier_article_code?: string | null;
5927
+ supply_line_id?: string;
5928
+ synced_at?: string;
5929
+ trade_item_id?: string | null;
5930
+ updated_at?: string;
5931
+ valid_from?: string | null;
5932
+ valid_to?: string | null;
5933
+ week?: number | null;
5934
+ year?: number | null;
5935
+ };
5936
+ Relationships: [{
5937
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5938
+ columns: ["connection_id"];
5939
+ isOneToOne: false;
5940
+ referencedRelation: "floriday_connections";
5941
+ referencedColumns: ["id"];
5942
+ }];
5943
+ };
5866
5944
  floriday_clock_presales_cache: {
5867
5945
  Row: {
5868
5946
  buyer_organization_id: string | null;
@@ -10129,6 +10207,36 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10129
10207
  };
10130
10208
  Relationships: [];
10131
10209
  };
10210
+ logistics_floriday_push_refusals: {
10211
+ Row: {
10212
+ action: string | null;
10213
+ created_at: string;
10214
+ id: string;
10215
+ order_ref: string;
10216
+ reason: string;
10217
+ source_module: string | null;
10218
+ source_shell: string | null;
10219
+ };
10220
+ Insert: {
10221
+ action?: string | null;
10222
+ created_at?: string;
10223
+ id?: string;
10224
+ order_ref: string;
10225
+ reason: string;
10226
+ source_module?: string | null;
10227
+ source_shell?: string | null;
10228
+ };
10229
+ Update: {
10230
+ action?: string | null;
10231
+ created_at?: string;
10232
+ id?: string;
10233
+ order_ref?: string;
10234
+ reason?: string;
10235
+ source_module?: string | null;
10236
+ source_shell?: string | null;
10237
+ };
10238
+ Relationships: [];
10239
+ };
10132
10240
  logistics_floriday_pushes: {
10133
10241
  Row: {
10134
10242
  attempts: number;
@@ -10204,6 +10312,42 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10204
10312
  };
10205
10313
  Relationships: [];
10206
10314
  };
10315
+ logistics_floriday_status_sends: {
10316
+ Row: {
10317
+ action: string;
10318
+ created_at: string;
10319
+ detail: string | null;
10320
+ http_status: number | null;
10321
+ id: string;
10322
+ ok: boolean;
10323
+ order_ref: string;
10324
+ source_module: string | null;
10325
+ source_shell: string | null;
10326
+ };
10327
+ Insert: {
10328
+ action: string;
10329
+ created_at?: string;
10330
+ detail?: string | null;
10331
+ http_status?: number | null;
10332
+ id?: string;
10333
+ ok?: boolean;
10334
+ order_ref: string;
10335
+ source_module?: string | null;
10336
+ source_shell?: string | null;
10337
+ };
10338
+ Update: {
10339
+ action?: string;
10340
+ created_at?: string;
10341
+ detail?: string | null;
10342
+ http_status?: number | null;
10343
+ id?: string;
10344
+ ok?: boolean;
10345
+ order_ref?: string;
10346
+ source_module?: string | null;
10347
+ source_shell?: string | null;
10348
+ };
10349
+ Relationships: [];
10350
+ };
10207
10351
  logistics_formulas: {
10208
10352
  Row: {
10209
10353
  created_at: string;
@@ -10276,6 +10420,108 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
10276
10420
  };
10277
10421
  Relationships: [];
10278
10422
  };
10423
+ logistics_opening_exceptions: {
10424
+ Row: {
10425
+ closes: string | null;
10426
+ created_at: string;
10427
+ day: string;
10428
+ id: string;
10429
+ is_closed: boolean;
10430
+ note: string | null;
10431
+ opens: string | null;
10432
+ };
10433
+ Insert: {
10434
+ closes?: string | null;
10435
+ created_at?: string;
10436
+ day: string;
10437
+ id?: string;
10438
+ is_closed?: boolean;
10439
+ note?: string | null;
10440
+ opens?: string | null;
10441
+ };
10442
+ Update: {
10443
+ closes?: string | null;
10444
+ created_at?: string;
10445
+ day?: string;
10446
+ id?: string;
10447
+ is_closed?: boolean;
10448
+ note?: string | null;
10449
+ opens?: string | null;
10450
+ };
10451
+ Relationships: [];
10452
+ };
10453
+ logistics_opening_hours: {
10454
+ Row: {
10455
+ closes: string;
10456
+ created_at: string;
10457
+ id: string;
10458
+ is_active: boolean;
10459
+ note: string | null;
10460
+ opens: string;
10461
+ weekday: number;
10462
+ };
10463
+ Insert: {
10464
+ closes: string;
10465
+ created_at?: string;
10466
+ id?: string;
10467
+ is_active?: boolean;
10468
+ note?: string | null;
10469
+ opens: string;
10470
+ weekday: number;
10471
+ };
10472
+ Update: {
10473
+ closes?: string;
10474
+ created_at?: string;
10475
+ id?: string;
10476
+ is_active?: boolean;
10477
+ note?: string | null;
10478
+ opens?: string;
10479
+ weekday?: number;
10480
+ };
10481
+ Relationships: [];
10482
+ };
10483
+ logistics_pick_data_requests: {
10484
+ Row: {
10485
+ actions: import("../integrations/supabase/types").Json;
10486
+ created_at: string;
10487
+ event_id: string | null;
10488
+ finished_at: string | null;
10489
+ id: string;
10490
+ missing: import("../integrations/supabase/types").Json;
10491
+ order_ref: string;
10492
+ reason: string | null;
10493
+ result: import("../integrations/supabase/types").Json | null;
10494
+ status: string;
10495
+ unit_ref: string | null;
10496
+ };
10497
+ Insert: {
10498
+ actions?: import("../integrations/supabase/types").Json;
10499
+ created_at?: string;
10500
+ event_id?: string | null;
10501
+ finished_at?: string | null;
10502
+ id?: string;
10503
+ missing?: import("../integrations/supabase/types").Json;
10504
+ order_ref: string;
10505
+ reason?: string | null;
10506
+ result?: import("../integrations/supabase/types").Json | null;
10507
+ status?: string;
10508
+ unit_ref?: string | null;
10509
+ };
10510
+ Update: {
10511
+ actions?: import("../integrations/supabase/types").Json;
10512
+ created_at?: string;
10513
+ event_id?: string | null;
10514
+ finished_at?: string | null;
10515
+ id?: string;
10516
+ missing?: import("../integrations/supabase/types").Json;
10517
+ order_ref?: string;
10518
+ reason?: string | null;
10519
+ result?: import("../integrations/supabase/types").Json | null;
10520
+ status?: string;
10521
+ unit_ref?: string | null;
10522
+ };
10523
+ Relationships: [];
10524
+ };
10279
10525
  logistics_pickup_moments: {
10280
10526
  Row: {
10281
10527
  carrier_ref: string | null;
@@ -11068,6 +11314,24 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
11068
11314
  };
11069
11315
  Relationships: [];
11070
11316
  };
11317
+ logistics_time_settings: {
11318
+ Row: {
11319
+ id: boolean;
11320
+ timezone: string;
11321
+ updated_at: string;
11322
+ };
11323
+ Insert: {
11324
+ id?: boolean;
11325
+ timezone: string;
11326
+ updated_at?: string;
11327
+ };
11328
+ Update: {
11329
+ id?: boolean;
11330
+ timezone?: string;
11331
+ updated_at?: string;
11332
+ };
11333
+ Relationships: [];
11334
+ };
11071
11335
  logistics_variables: {
11072
11336
  Row: {
11073
11337
  created_at: string;
@@ -13458,6 +13722,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
13458
13722
  customer_name: string;
13459
13723
  deleted_at: string | null;
13460
13724
  delivery_date: string | null;
13725
+ floriday_order_group_key: string | null;
13461
13726
  floriday_sales_order_id: string | null;
13462
13727
  id: string;
13463
13728
  invoice_due_at: string | null;
@@ -13485,6 +13750,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
13485
13750
  customer_name?: string;
13486
13751
  deleted_at?: string | null;
13487
13752
  delivery_date?: string | null;
13753
+ floriday_order_group_key?: string | null;
13488
13754
  floriday_sales_order_id?: string | null;
13489
13755
  id?: string;
13490
13756
  invoice_due_at?: string | null;
@@ -13512,6 +13778,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
13512
13778
  customer_name?: string;
13513
13779
  deleted_at?: string | null;
13514
13780
  delivery_date?: string | null;
13781
+ floriday_order_group_key?: string | null;
13515
13782
  floriday_sales_order_id?: string | null;
13516
13783
  id?: string;
13517
13784
  invoice_due_at?: string | null;
@@ -13705,6 +13972,27 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
13705
13972
  };
13706
13973
  Relationships: [];
13707
13974
  };
13975
+ pick_buffer_event_cursor: {
13976
+ Row: {
13977
+ created_at: string;
13978
+ id: boolean;
13979
+ last_event_at: string;
13980
+ updated_at: string;
13981
+ };
13982
+ Insert: {
13983
+ created_at?: string;
13984
+ id?: boolean;
13985
+ last_event_at?: string;
13986
+ updated_at?: string;
13987
+ };
13988
+ Update: {
13989
+ created_at?: string;
13990
+ id?: boolean;
13991
+ last_event_at?: string;
13992
+ updated_at?: string;
13993
+ };
13994
+ Relationships: [];
13995
+ };
13708
13996
  pick_countries: {
13709
13997
  Row: {
13710
13998
  active: boolean;
@@ -19354,6 +19642,36 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19354
19642
  referencedColumns: ["id"];
19355
19643
  }];
19356
19644
  };
19645
+ voorraad_buffer_state: {
19646
+ Row: {
19647
+ buffer_id: string;
19648
+ buffer_key: string | null;
19649
+ closed_at: string | null;
19650
+ created_at: string;
19651
+ detached_orders: import("../integrations/supabase/types").Json;
19652
+ reason: string | null;
19653
+ updated_at: string;
19654
+ };
19655
+ Insert: {
19656
+ buffer_id: string;
19657
+ buffer_key?: string | null;
19658
+ closed_at?: string | null;
19659
+ created_at?: string;
19660
+ detached_orders?: import("../integrations/supabase/types").Json;
19661
+ reason?: string | null;
19662
+ updated_at?: string;
19663
+ };
19664
+ Update: {
19665
+ buffer_id?: string;
19666
+ buffer_key?: string | null;
19667
+ closed_at?: string | null;
19668
+ created_at?: string;
19669
+ detached_orders?: import("../integrations/supabase/types").Json;
19670
+ reason?: string | null;
19671
+ updated_at?: string;
19672
+ };
19673
+ Relationships: [];
19674
+ };
19357
19675
  voorraad_custom_fields: {
19358
19676
  Row: {
19359
19677
  created_at: string;
@@ -19396,6 +19714,36 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19396
19714
  };
19397
19715
  Relationships: [];
19398
19716
  };
19717
+ voorraad_logistics_event_log: {
19718
+ Row: {
19719
+ created_at: string;
19720
+ event_id: string;
19721
+ event_type: string;
19722
+ order_ref: string | null;
19723
+ processed_at: string;
19724
+ result: import("../integrations/supabase/types").Json;
19725
+ updated_at: string;
19726
+ };
19727
+ Insert: {
19728
+ created_at?: string;
19729
+ event_id: string;
19730
+ event_type: string;
19731
+ order_ref?: string | null;
19732
+ processed_at?: string;
19733
+ result?: import("../integrations/supabase/types").Json;
19734
+ updated_at?: string;
19735
+ };
19736
+ Update: {
19737
+ created_at?: string;
19738
+ event_id?: string;
19739
+ event_type?: string;
19740
+ order_ref?: string | null;
19741
+ processed_at?: string;
19742
+ result?: import("../integrations/supabase/types").Json;
19743
+ updated_at?: string;
19744
+ };
19745
+ Relationships: [];
19746
+ };
19399
19747
  voorraad_media_upload_failures: {
19400
19748
  Row: {
19401
19749
  action: string;
@@ -22221,6 +22569,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
22221
22569
  };
22222
22570
  Returns: boolean;
22223
22571
  };
22572
+ floriday_adopt_connection: {
22573
+ Args: {
22574
+ p_new: string;
22575
+ p_old: string;
22576
+ };
22577
+ Returns: import("../integrations/supabase/types").Json;
22578
+ };
22579
+ floriday_autoheal_connections: {
22580
+ Args: never;
22581
+ Returns: import("../integrations/supabase/types").Json;
22582
+ };
22224
22583
  floriday_capture_stock_snapshot: {
22225
22584
  Args: never;
22226
22585
  Returns: number;
@@ -22278,6 +22637,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
22278
22637
  };
22279
22638
  Returns: undefined;
22280
22639
  };
22640
+ floriday_relink_products: {
22641
+ Args: {
22642
+ p_connection_id?: string;
22643
+ };
22644
+ Returns: import("../integrations/supabase/types").Json;
22645
+ };
22281
22646
  floriday_requeue_dead_letters: {
22282
22647
  Args: {
22283
22648
  p_connection_id?: string;
@@ -22899,6 +23264,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
22899
23264
  };
22900
23265
  Returns: string;
22901
23266
  };
23267
+ logistics_active_layout_method: {
23268
+ Args: never;
23269
+ Returns: string;
23270
+ };
22902
23271
  logistics_active_pick_workdays: {
22903
23272
  Args: never;
22904
23273
  Returns: string[];
@@ -23006,6 +23375,15 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23006
23375
  };
23007
23376
  Returns: boolean;
23008
23377
  };
23378
+ logistics_buffer_notify: {
23379
+ Args: {
23380
+ p_event_type: string;
23381
+ p_idempotency_key: string;
23382
+ p_order_ref: string;
23383
+ p_payload: import("../integrations/supabase/types").Json;
23384
+ };
23385
+ Returns: string;
23386
+ };
23009
23387
  logistics_buffer_open_key: {
23010
23388
  Args: {
23011
23389
  p_base_key: string;
@@ -23064,6 +23442,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23064
23442
  };
23065
23443
  Returns: string;
23066
23444
  };
23445
+ logistics_cart_checkin_at: {
23446
+ Args: {
23447
+ p_cart_id: string;
23448
+ };
23449
+ Returns: string;
23450
+ };
23067
23451
  logistics_cart_handled: {
23068
23452
  Args: {
23069
23453
  p_cart_index: number;
@@ -23097,10 +23481,22 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23097
23481
  task_status: string;
23098
23482
  }[];
23099
23483
  };
23484
+ logistics_cart_is_full: {
23485
+ Args: {
23486
+ p_cart_id: string;
23487
+ };
23488
+ Returns: boolean;
23489
+ };
23100
23490
  logistics_cart_layout_method: {
23101
23491
  Args: never;
23102
23492
  Returns: import("../integrations/supabase/types").Json;
23103
23493
  };
23494
+ logistics_cart_order_refs: {
23495
+ Args: {
23496
+ p_cart_id: string;
23497
+ };
23498
+ Returns: string[];
23499
+ };
23104
23500
  logistics_cart_plan_overview: {
23105
23501
  Args: {
23106
23502
  p_days?: number;
@@ -23120,6 +23516,18 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23120
23516
  };
23121
23517
  Returns: import("../integrations/supabase/types").Json;
23122
23518
  };
23519
+ logistics_cart_release_reason: {
23520
+ Args: {
23521
+ p_cart_id: string;
23522
+ };
23523
+ Returns: string;
23524
+ };
23525
+ logistics_cart_released: {
23526
+ Args: {
23527
+ p_cart_id: string;
23528
+ };
23529
+ Returns: boolean;
23530
+ };
23123
23531
  logistics_cart_seq: {
23124
23532
  Args: {
23125
23533
  p_order_uuid?: string;
@@ -23273,6 +23681,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23273
23681
  isSetofReturn: false;
23274
23682
  };
23275
23683
  };
23684
+ logistics_cleanup_orphan_print_jobs: {
23685
+ Args: never;
23686
+ Returns: import("../integrations/supabase/types").Json;
23687
+ };
23276
23688
  logistics_complete_task: {
23277
23689
  Args: {
23278
23690
  p_result?: import("../integrations/supabase/types").Json;
@@ -23335,6 +23747,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23335
23747
  station_carts: number;
23336
23748
  }[];
23337
23749
  };
23750
+ logistics_control_complete_cart: {
23751
+ Args: {
23752
+ p_cart_id: string;
23753
+ };
23754
+ Returns: number;
23755
+ };
23338
23756
  logistics_control_scan_approve: {
23339
23757
  Args: {
23340
23758
  p_allow_reprint?: boolean;
@@ -23414,6 +23832,15 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23414
23832
  Args: never;
23415
23833
  Returns: import("../integrations/supabase/types").Json;
23416
23834
  };
23835
+ logistics_day_windows: {
23836
+ Args: {
23837
+ p_day: string;
23838
+ };
23839
+ Returns: {
23840
+ win_end: string;
23841
+ win_start: string;
23842
+ }[];
23843
+ };
23417
23844
  logistics_delay_customer_email: {
23418
23845
  Args: {
23419
23846
  p_customer: string;
@@ -23481,6 +23908,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23481
23908
  };
23482
23909
  Returns: import("../integrations/supabase/types").Json;
23483
23910
  };
23911
+ logistics_enqueue_shipping_note_with_slip: {
23912
+ Args: {
23913
+ _cart_id: string;
23914
+ _is_herprint: boolean;
23915
+ _printer_id: string;
23916
+ _queue_item_id: string;
23917
+ _session_id: string;
23918
+ _slip_job_id: string;
23919
+ };
23920
+ Returns: string;
23921
+ };
23484
23922
  logistics_enqueue_sticker_with_slip: {
23485
23923
  Args: {
23486
23924
  _cart_id: string;
@@ -23498,6 +23936,14 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23498
23936
  };
23499
23937
  Returns: string;
23500
23938
  };
23939
+ logistics_ensure_pick_data: {
23940
+ Args: {
23941
+ p_event_id?: string;
23942
+ p_missing?: import("../integrations/supabase/types").Json;
23943
+ p_ref: string;
23944
+ };
23945
+ Returns: import("../integrations/supabase/types").Json;
23946
+ };
23501
23947
  logistics_fail_task: {
23502
23948
  Args: {
23503
23949
  p_error: string;
@@ -23619,6 +24065,38 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23619
24065
  };
23620
24066
  Returns: string;
23621
24067
  };
24068
+ logistics_floriday_gate_status: {
24069
+ Args: never;
24070
+ Returns: import("../integrations/supabase/types").Json;
24071
+ };
24072
+ logistics_floriday_log_refusal: {
24073
+ Args: {
24074
+ _action?: string;
24075
+ _module?: string;
24076
+ _order_ref: string;
24077
+ _reason: string;
24078
+ _shell?: string;
24079
+ };
24080
+ Returns: undefined;
24081
+ };
24082
+ logistics_floriday_log_send: {
24083
+ Args: {
24084
+ _action: string;
24085
+ _detail?: string;
24086
+ _http_status?: number;
24087
+ _module?: string;
24088
+ _ok: boolean;
24089
+ _order_ref: string;
24090
+ _shell?: string;
24091
+ };
24092
+ Returns: undefined;
24093
+ };
24094
+ logistics_floriday_order_approved: {
24095
+ Args: {
24096
+ _order_ref: string;
24097
+ };
24098
+ Returns: boolean;
24099
+ };
23622
24100
  logistics_floriday_prune_pushes: {
23623
24101
  Args: {
23624
24102
  _days?: number;
@@ -23633,6 +24111,20 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23633
24111
  };
23634
24112
  Returns: string;
23635
24113
  };
24114
+ logistics_floriday_status_updates_enabled: {
24115
+ Args: never;
24116
+ Returns: boolean;
24117
+ };
24118
+ logistics_floriday_stock_updates_enabled: {
24119
+ Args: never;
24120
+ Returns: boolean;
24121
+ };
24122
+ logistics_floriday_write_allowed: {
24123
+ Args: {
24124
+ _action: string;
24125
+ };
24126
+ Returns: boolean;
24127
+ };
23636
24128
  logistics_fulfill_barcode_requests: {
23637
24129
  Args: {
23638
24130
  p_limit?: number;
@@ -23653,6 +24145,16 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23653
24145
  };
23654
24146
  Returns: boolean;
23655
24147
  };
24148
+ logistics_layout_method_status: {
24149
+ Args: never;
24150
+ Returns: import("../integrations/supabase/types").Json;
24151
+ };
24152
+ logistics_link_order_items: {
24153
+ Args: {
24154
+ p_order?: string;
24155
+ };
24156
+ Returns: import("../integrations/supabase/types").Json;
24157
+ };
23656
24158
  logistics_live_carriers: {
23657
24159
  Args: {
23658
24160
  p_order_ref: string;
@@ -23665,6 +24167,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23665
24167
  };
23666
24168
  Returns: number;
23667
24169
  };
24170
+ logistics_merge_partial_carts: {
24171
+ Args: {
24172
+ p_limit?: number;
24173
+ };
24174
+ Returns: import("../integrations/supabase/types").Json;
24175
+ };
23668
24176
  logistics_next_workday_date: {
23669
24177
  Args: {
23670
24178
  p_date: string;
@@ -23679,12 +24187,22 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23679
24187
  };
23680
24188
  Returns: string;
23681
24189
  };
24190
+ logistics_normalize_product_label: {
24191
+ Args: {
24192
+ p_label: string;
24193
+ };
24194
+ Returns: string;
24195
+ };
23682
24196
  logistics_not_past: {
23683
24197
  Args: {
23684
24198
  p_ts: string;
23685
24199
  };
23686
24200
  Returns: string;
23687
24201
  };
24202
+ logistics_opening_timezone: {
24203
+ Args: never;
24204
+ Returns: string;
24205
+ };
23688
24206
  logistics_order_cart_count: {
23689
24207
  Args: {
23690
24208
  p_order_ref: string;
@@ -23769,6 +24287,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23769
24287
  Args: never;
23770
24288
  Returns: import("../integrations/supabase/types").Json;
23771
24289
  };
24290
+ logistics_pick_partial_mode: {
24291
+ Args: never;
24292
+ Returns: string;
24293
+ };
23772
24294
  logistics_pick_start_estimate: {
23773
24295
  Args: {
23774
24296
  p_order: import("../integrations/supabase/types").Json;
@@ -23880,6 +24402,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23880
24402
  };
23881
24403
  Returns: number;
23882
24404
  };
24405
+ logistics_prepare_pick_documents: {
24406
+ Args: {
24407
+ p_limit?: number;
24408
+ };
24409
+ Returns: import("../integrations/supabase/types").Json;
24410
+ };
23883
24411
  logistics_prune_buffer_member_queue: {
23884
24412
  Args: never;
23885
24413
  Returns: number;
@@ -23920,12 +24448,30 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23920
24448
  Args: never;
23921
24449
  Returns: import("../integrations/supabase/types").Json;
23922
24450
  };
24451
+ logistics_refresh_pick_queue_status: {
24452
+ Args: {
24453
+ p_ref: string;
24454
+ };
24455
+ Returns: number;
24456
+ };
23923
24457
  logistics_refresh_pickup_moments: {
23924
24458
  Args: {
23925
24459
  p_weeks?: number;
23926
24460
  };
23927
24461
  Returns: import("../integrations/supabase/types").Json;
23928
24462
  };
24463
+ logistics_replan_all: {
24464
+ Args: {
24465
+ p_reason?: string;
24466
+ };
24467
+ Returns: import("../integrations/supabase/types").Json;
24468
+ };
24469
+ logistics_replan_all_force: {
24470
+ Args: {
24471
+ p_reason?: string;
24472
+ };
24473
+ Returns: import("../integrations/supabase/types").Json;
24474
+ };
23929
24475
  logistics_report_delay: {
23930
24476
  Args: {
23931
24477
  p_expected_date?: string;
@@ -23979,6 +24525,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
23979
24525
  };
23980
24526
  Returns: import("../integrations/supabase/types").Json;
23981
24527
  };
24528
+ logistics_resolve_product_id: {
24529
+ Args: {
24530
+ p_label: string;
24531
+ };
24532
+ Returns: string;
24533
+ };
23982
24534
  logistics_resolve_settings: {
23983
24535
  Args: {
23984
24536
  p_config_id: string;
@@ -24064,6 +24616,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24064
24616
  };
24065
24617
  Returns: string;
24066
24618
  };
24619
+ logistics_shipping_note_follows_slip: {
24620
+ Args: never;
24621
+ Returns: boolean;
24622
+ };
24067
24623
  logistics_shipping_note_from_barcode: {
24068
24624
  Args: {
24069
24625
  p_allow_reprint?: boolean;
@@ -24076,6 +24632,14 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24076
24632
  Args: never;
24077
24633
  Returns: boolean;
24078
24634
  };
24635
+ logistics_subtract_working_minutes: {
24636
+ Args: {
24637
+ p_deadline: string;
24638
+ p_max_workdays?: number;
24639
+ p_minutes: number;
24640
+ };
24641
+ Returns: import("../integrations/supabase/types").Json;
24642
+ };
24079
24643
  logistics_supersede_stale_tasks: {
24080
24644
  Args: {
24081
24645
  p_keep: string[];
@@ -24112,6 +24676,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24112
24676
  Args: never;
24113
24677
  Returns: string;
24114
24678
  };
24679
+ logistics_timezone_options: {
24680
+ Args: never;
24681
+ Returns: {
24682
+ name: string;
24683
+ }[];
24684
+ };
24115
24685
  logistics_upsert_task: {
24116
24686
  Args: {
24117
24687
  p_buffer_ref: string;
@@ -24131,6 +24701,16 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24131
24701
  };
24132
24702
  Returns: string;
24133
24703
  };
24704
+ logistics_valid_timezone: {
24705
+ Args: {
24706
+ _tz: string;
24707
+ };
24708
+ Returns: boolean;
24709
+ };
24710
+ logistics_working_hours_status: {
24711
+ Args: never;
24712
+ Returns: import("../integrations/supabase/types").Json;
24713
+ };
24134
24714
  logistics_write_buffer_layer_positions: {
24135
24715
  Args: {
24136
24716
  p_buffer_id: string;
@@ -24296,6 +24876,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
24296
24876
  online: boolean;
24297
24877
  }[];
24298
24878
  };
24879
+ pick_apply_buffer_events: {
24880
+ Args: never;
24881
+ Returns: import("../integrations/supabase/types").Json;
24882
+ };
24299
24883
  pick_available_pick_days: {
24300
24884
  Args: {
24301
24885
  _max_days?: number;
@@ -25572,6 +26156,13 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
25572
26156
  };
25573
26157
  Returns: number;
25574
26158
  };
26159
+ schedule_floriday_catalog_prices_sync: {
26160
+ Args: {
26161
+ p_apikey: string;
26162
+ p_url: string;
26163
+ };
26164
+ Returns: number;
26165
+ };
25575
26166
  schedule_floriday_clock_presales_sync: {
25576
26167
  Args: {
25577
26168
  p_apikey: string;
@@ -25872,6 +26463,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
25872
26463
  };
25873
26464
  Returns: undefined;
25874
26465
  };
26466
+ sync_floriday_prices_into_price_groups: {
26467
+ Args: never;
26468
+ Returns: number;
26469
+ };
25875
26470
  sync_layer_stock: {
25876
26471
  Args: {
25877
26472
  p_product_id: string;
@@ -31886,6 +32481,84 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
31886
32481
  referencedColumns: ["id"];
31887
32482
  }];
31888
32483
  };
32484
+ floriday_catalog_prices_cache: {
32485
+ Row: {
32486
+ connection_id: string;
32487
+ created_at: string;
32488
+ currency: string;
32489
+ id: string;
32490
+ is_deleted: boolean;
32491
+ price: number | null;
32492
+ price_group_id: string | null;
32493
+ price_group_name: string | null;
32494
+ price_type: string;
32495
+ raw: import("../integrations/supabase/types").Json | null;
32496
+ sales_unit: string | null;
32497
+ sequence_number: number;
32498
+ supplier_article_code: string | null;
32499
+ supply_line_id: string;
32500
+ synced_at: string;
32501
+ trade_item_id: string | null;
32502
+ updated_at: string;
32503
+ valid_from: string | null;
32504
+ valid_to: string | null;
32505
+ week: number | null;
32506
+ year: number | null;
32507
+ };
32508
+ Insert: {
32509
+ connection_id: string;
32510
+ created_at?: string;
32511
+ currency?: string;
32512
+ id?: string;
32513
+ is_deleted?: boolean;
32514
+ price?: number | null;
32515
+ price_group_id?: string | null;
32516
+ price_group_name?: string | null;
32517
+ price_type?: string;
32518
+ raw?: import("../integrations/supabase/types").Json | null;
32519
+ sales_unit?: string | null;
32520
+ sequence_number?: number;
32521
+ supplier_article_code?: string | null;
32522
+ supply_line_id: string;
32523
+ synced_at?: string;
32524
+ trade_item_id?: string | null;
32525
+ updated_at?: string;
32526
+ valid_from?: string | null;
32527
+ valid_to?: string | null;
32528
+ week?: number | null;
32529
+ year?: number | null;
32530
+ };
32531
+ Update: {
32532
+ connection_id?: string;
32533
+ created_at?: string;
32534
+ currency?: string;
32535
+ id?: string;
32536
+ is_deleted?: boolean;
32537
+ price?: number | null;
32538
+ price_group_id?: string | null;
32539
+ price_group_name?: string | null;
32540
+ price_type?: string;
32541
+ raw?: import("../integrations/supabase/types").Json | null;
32542
+ sales_unit?: string | null;
32543
+ sequence_number?: number;
32544
+ supplier_article_code?: string | null;
32545
+ supply_line_id?: string;
32546
+ synced_at?: string;
32547
+ trade_item_id?: string | null;
32548
+ updated_at?: string;
32549
+ valid_from?: string | null;
32550
+ valid_to?: string | null;
32551
+ week?: number | null;
32552
+ year?: number | null;
32553
+ };
32554
+ Relationships: [{
32555
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32556
+ columns: ["connection_id"];
32557
+ isOneToOne: false;
32558
+ referencedRelation: "floriday_connections";
32559
+ referencedColumns: ["id"];
32560
+ }];
32561
+ };
31889
32562
  floriday_clock_presales_cache: {
31890
32563
  Row: {
31891
32564
  buyer_organization_id: string | null;
@@ -36152,6 +36825,36 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
36152
36825
  };
36153
36826
  Relationships: [];
36154
36827
  };
36828
+ logistics_floriday_push_refusals: {
36829
+ Row: {
36830
+ action: string | null;
36831
+ created_at: string;
36832
+ id: string;
36833
+ order_ref: string;
36834
+ reason: string;
36835
+ source_module: string | null;
36836
+ source_shell: string | null;
36837
+ };
36838
+ Insert: {
36839
+ action?: string | null;
36840
+ created_at?: string;
36841
+ id?: string;
36842
+ order_ref: string;
36843
+ reason: string;
36844
+ source_module?: string | null;
36845
+ source_shell?: string | null;
36846
+ };
36847
+ Update: {
36848
+ action?: string | null;
36849
+ created_at?: string;
36850
+ id?: string;
36851
+ order_ref?: string;
36852
+ reason?: string;
36853
+ source_module?: string | null;
36854
+ source_shell?: string | null;
36855
+ };
36856
+ Relationships: [];
36857
+ };
36155
36858
  logistics_floriday_pushes: {
36156
36859
  Row: {
36157
36860
  attempts: number;
@@ -36227,6 +36930,42 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
36227
36930
  };
36228
36931
  Relationships: [];
36229
36932
  };
36933
+ logistics_floriday_status_sends: {
36934
+ Row: {
36935
+ action: string;
36936
+ created_at: string;
36937
+ detail: string | null;
36938
+ http_status: number | null;
36939
+ id: string;
36940
+ ok: boolean;
36941
+ order_ref: string;
36942
+ source_module: string | null;
36943
+ source_shell: string | null;
36944
+ };
36945
+ Insert: {
36946
+ action: string;
36947
+ created_at?: string;
36948
+ detail?: string | null;
36949
+ http_status?: number | null;
36950
+ id?: string;
36951
+ ok?: boolean;
36952
+ order_ref: string;
36953
+ source_module?: string | null;
36954
+ source_shell?: string | null;
36955
+ };
36956
+ Update: {
36957
+ action?: string;
36958
+ created_at?: string;
36959
+ detail?: string | null;
36960
+ http_status?: number | null;
36961
+ id?: string;
36962
+ ok?: boolean;
36963
+ order_ref?: string;
36964
+ source_module?: string | null;
36965
+ source_shell?: string | null;
36966
+ };
36967
+ Relationships: [];
36968
+ };
36230
36969
  logistics_formulas: {
36231
36970
  Row: {
36232
36971
  created_at: string;
@@ -36299,6 +37038,108 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
36299
37038
  };
36300
37039
  Relationships: [];
36301
37040
  };
37041
+ logistics_opening_exceptions: {
37042
+ Row: {
37043
+ closes: string | null;
37044
+ created_at: string;
37045
+ day: string;
37046
+ id: string;
37047
+ is_closed: boolean;
37048
+ note: string | null;
37049
+ opens: string | null;
37050
+ };
37051
+ Insert: {
37052
+ closes?: string | null;
37053
+ created_at?: string;
37054
+ day: string;
37055
+ id?: string;
37056
+ is_closed?: boolean;
37057
+ note?: string | null;
37058
+ opens?: string | null;
37059
+ };
37060
+ Update: {
37061
+ closes?: string | null;
37062
+ created_at?: string;
37063
+ day?: string;
37064
+ id?: string;
37065
+ is_closed?: boolean;
37066
+ note?: string | null;
37067
+ opens?: string | null;
37068
+ };
37069
+ Relationships: [];
37070
+ };
37071
+ logistics_opening_hours: {
37072
+ Row: {
37073
+ closes: string;
37074
+ created_at: string;
37075
+ id: string;
37076
+ is_active: boolean;
37077
+ note: string | null;
37078
+ opens: string;
37079
+ weekday: number;
37080
+ };
37081
+ Insert: {
37082
+ closes: string;
37083
+ created_at?: string;
37084
+ id?: string;
37085
+ is_active?: boolean;
37086
+ note?: string | null;
37087
+ opens: string;
37088
+ weekday: number;
37089
+ };
37090
+ Update: {
37091
+ closes?: string;
37092
+ created_at?: string;
37093
+ id?: string;
37094
+ is_active?: boolean;
37095
+ note?: string | null;
37096
+ opens?: string;
37097
+ weekday?: number;
37098
+ };
37099
+ Relationships: [];
37100
+ };
37101
+ logistics_pick_data_requests: {
37102
+ Row: {
37103
+ actions: import("../integrations/supabase/types").Json;
37104
+ created_at: string;
37105
+ event_id: string | null;
37106
+ finished_at: string | null;
37107
+ id: string;
37108
+ missing: import("../integrations/supabase/types").Json;
37109
+ order_ref: string;
37110
+ reason: string | null;
37111
+ result: import("../integrations/supabase/types").Json | null;
37112
+ status: string;
37113
+ unit_ref: string | null;
37114
+ };
37115
+ Insert: {
37116
+ actions?: import("../integrations/supabase/types").Json;
37117
+ created_at?: string;
37118
+ event_id?: string | null;
37119
+ finished_at?: string | null;
37120
+ id?: string;
37121
+ missing?: import("../integrations/supabase/types").Json;
37122
+ order_ref: string;
37123
+ reason?: string | null;
37124
+ result?: import("../integrations/supabase/types").Json | null;
37125
+ status?: string;
37126
+ unit_ref?: string | null;
37127
+ };
37128
+ Update: {
37129
+ actions?: import("../integrations/supabase/types").Json;
37130
+ created_at?: string;
37131
+ event_id?: string | null;
37132
+ finished_at?: string | null;
37133
+ id?: string;
37134
+ missing?: import("../integrations/supabase/types").Json;
37135
+ order_ref?: string;
37136
+ reason?: string | null;
37137
+ result?: import("../integrations/supabase/types").Json | null;
37138
+ status?: string;
37139
+ unit_ref?: string | null;
37140
+ };
37141
+ Relationships: [];
37142
+ };
36302
37143
  logistics_pickup_moments: {
36303
37144
  Row: {
36304
37145
  carrier_ref: string | null;
@@ -37091,6 +37932,24 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
37091
37932
  };
37092
37933
  Relationships: [];
37093
37934
  };
37935
+ logistics_time_settings: {
37936
+ Row: {
37937
+ id: boolean;
37938
+ timezone: string;
37939
+ updated_at: string;
37940
+ };
37941
+ Insert: {
37942
+ id?: boolean;
37943
+ timezone: string;
37944
+ updated_at?: string;
37945
+ };
37946
+ Update: {
37947
+ id?: boolean;
37948
+ timezone?: string;
37949
+ updated_at?: string;
37950
+ };
37951
+ Relationships: [];
37952
+ };
37094
37953
  logistics_variables: {
37095
37954
  Row: {
37096
37955
  created_at: string;
@@ -39481,6 +40340,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39481
40340
  customer_name: string;
39482
40341
  deleted_at: string | null;
39483
40342
  delivery_date: string | null;
40343
+ floriday_order_group_key: string | null;
39484
40344
  floriday_sales_order_id: string | null;
39485
40345
  id: string;
39486
40346
  invoice_due_at: string | null;
@@ -39508,6 +40368,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39508
40368
  customer_name?: string;
39509
40369
  deleted_at?: string | null;
39510
40370
  delivery_date?: string | null;
40371
+ floriday_order_group_key?: string | null;
39511
40372
  floriday_sales_order_id?: string | null;
39512
40373
  id?: string;
39513
40374
  invoice_due_at?: string | null;
@@ -39535,6 +40396,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39535
40396
  customer_name?: string;
39536
40397
  deleted_at?: string | null;
39537
40398
  delivery_date?: string | null;
40399
+ floriday_order_group_key?: string | null;
39538
40400
  floriday_sales_order_id?: string | null;
39539
40401
  id?: string;
39540
40402
  invoice_due_at?: string | null;
@@ -39728,6 +40590,27 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39728
40590
  };
39729
40591
  Relationships: [];
39730
40592
  };
40593
+ pick_buffer_event_cursor: {
40594
+ Row: {
40595
+ created_at: string;
40596
+ id: boolean;
40597
+ last_event_at: string;
40598
+ updated_at: string;
40599
+ };
40600
+ Insert: {
40601
+ created_at?: string;
40602
+ id?: boolean;
40603
+ last_event_at?: string;
40604
+ updated_at?: string;
40605
+ };
40606
+ Update: {
40607
+ created_at?: string;
40608
+ id?: boolean;
40609
+ last_event_at?: string;
40610
+ updated_at?: string;
40611
+ };
40612
+ Relationships: [];
40613
+ };
39731
40614
  pick_countries: {
39732
40615
  Row: {
39733
40616
  active: boolean;
@@ -45377,6 +46260,36 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
45377
46260
  referencedColumns: ["id"];
45378
46261
  }];
45379
46262
  };
46263
+ voorraad_buffer_state: {
46264
+ Row: {
46265
+ buffer_id: string;
46266
+ buffer_key: string | null;
46267
+ closed_at: string | null;
46268
+ created_at: string;
46269
+ detached_orders: import("../integrations/supabase/types").Json;
46270
+ reason: string | null;
46271
+ updated_at: string;
46272
+ };
46273
+ Insert: {
46274
+ buffer_id: string;
46275
+ buffer_key?: string | null;
46276
+ closed_at?: string | null;
46277
+ created_at?: string;
46278
+ detached_orders?: import("../integrations/supabase/types").Json;
46279
+ reason?: string | null;
46280
+ updated_at?: string;
46281
+ };
46282
+ Update: {
46283
+ buffer_id?: string;
46284
+ buffer_key?: string | null;
46285
+ closed_at?: string | null;
46286
+ created_at?: string;
46287
+ detached_orders?: import("../integrations/supabase/types").Json;
46288
+ reason?: string | null;
46289
+ updated_at?: string;
46290
+ };
46291
+ Relationships: [];
46292
+ };
45380
46293
  voorraad_custom_fields: {
45381
46294
  Row: {
45382
46295
  created_at: string;
@@ -45419,6 +46332,36 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
45419
46332
  };
45420
46333
  Relationships: [];
45421
46334
  };
46335
+ voorraad_logistics_event_log: {
46336
+ Row: {
46337
+ created_at: string;
46338
+ event_id: string;
46339
+ event_type: string;
46340
+ order_ref: string | null;
46341
+ processed_at: string;
46342
+ result: import("../integrations/supabase/types").Json;
46343
+ updated_at: string;
46344
+ };
46345
+ Insert: {
46346
+ created_at?: string;
46347
+ event_id: string;
46348
+ event_type: string;
46349
+ order_ref?: string | null;
46350
+ processed_at?: string;
46351
+ result?: import("../integrations/supabase/types").Json;
46352
+ updated_at?: string;
46353
+ };
46354
+ Update: {
46355
+ created_at?: string;
46356
+ event_id?: string;
46357
+ event_type?: string;
46358
+ order_ref?: string | null;
46359
+ processed_at?: string;
46360
+ result?: import("../integrations/supabase/types").Json;
46361
+ updated_at?: string;
46362
+ };
46363
+ Relationships: [];
46364
+ };
45422
46365
  voorraad_media_upload_failures: {
45423
46366
  Row: {
45424
46367
  action: string;
@@ -48244,6 +49187,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
48244
49187
  };
48245
49188
  Returns: boolean;
48246
49189
  };
49190
+ floriday_adopt_connection: {
49191
+ Args: {
49192
+ p_new: string;
49193
+ p_old: string;
49194
+ };
49195
+ Returns: import("../integrations/supabase/types").Json;
49196
+ };
49197
+ floriday_autoheal_connections: {
49198
+ Args: never;
49199
+ Returns: import("../integrations/supabase/types").Json;
49200
+ };
48247
49201
  floriday_capture_stock_snapshot: {
48248
49202
  Args: never;
48249
49203
  Returns: number;
@@ -48301,6 +49255,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
48301
49255
  };
48302
49256
  Returns: undefined;
48303
49257
  };
49258
+ floriday_relink_products: {
49259
+ Args: {
49260
+ p_connection_id?: string;
49261
+ };
49262
+ Returns: import("../integrations/supabase/types").Json;
49263
+ };
48304
49264
  floriday_requeue_dead_letters: {
48305
49265
  Args: {
48306
49266
  p_connection_id?: string;
@@ -48922,6 +49882,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
48922
49882
  };
48923
49883
  Returns: string;
48924
49884
  };
49885
+ logistics_active_layout_method: {
49886
+ Args: never;
49887
+ Returns: string;
49888
+ };
48925
49889
  logistics_active_pick_workdays: {
48926
49890
  Args: never;
48927
49891
  Returns: string[];
@@ -49029,6 +49993,15 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49029
49993
  };
49030
49994
  Returns: boolean;
49031
49995
  };
49996
+ logistics_buffer_notify: {
49997
+ Args: {
49998
+ p_event_type: string;
49999
+ p_idempotency_key: string;
50000
+ p_order_ref: string;
50001
+ p_payload: import("../integrations/supabase/types").Json;
50002
+ };
50003
+ Returns: string;
50004
+ };
49032
50005
  logistics_buffer_open_key: {
49033
50006
  Args: {
49034
50007
  p_base_key: string;
@@ -49087,6 +50060,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49087
50060
  };
49088
50061
  Returns: string;
49089
50062
  };
50063
+ logistics_cart_checkin_at: {
50064
+ Args: {
50065
+ p_cart_id: string;
50066
+ };
50067
+ Returns: string;
50068
+ };
49090
50069
  logistics_cart_handled: {
49091
50070
  Args: {
49092
50071
  p_cart_index: number;
@@ -49120,10 +50099,22 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49120
50099
  task_status: string;
49121
50100
  }[];
49122
50101
  };
50102
+ logistics_cart_is_full: {
50103
+ Args: {
50104
+ p_cart_id: string;
50105
+ };
50106
+ Returns: boolean;
50107
+ };
49123
50108
  logistics_cart_layout_method: {
49124
50109
  Args: never;
49125
50110
  Returns: import("../integrations/supabase/types").Json;
49126
50111
  };
50112
+ logistics_cart_order_refs: {
50113
+ Args: {
50114
+ p_cart_id: string;
50115
+ };
50116
+ Returns: string[];
50117
+ };
49127
50118
  logistics_cart_plan_overview: {
49128
50119
  Args: {
49129
50120
  p_days?: number;
@@ -49143,6 +50134,18 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49143
50134
  };
49144
50135
  Returns: import("../integrations/supabase/types").Json;
49145
50136
  };
50137
+ logistics_cart_release_reason: {
50138
+ Args: {
50139
+ p_cart_id: string;
50140
+ };
50141
+ Returns: string;
50142
+ };
50143
+ logistics_cart_released: {
50144
+ Args: {
50145
+ p_cart_id: string;
50146
+ };
50147
+ Returns: boolean;
50148
+ };
49146
50149
  logistics_cart_seq: {
49147
50150
  Args: {
49148
50151
  p_order_uuid?: string;
@@ -49296,6 +50299,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49296
50299
  isSetofReturn: false;
49297
50300
  };
49298
50301
  };
50302
+ logistics_cleanup_orphan_print_jobs: {
50303
+ Args: never;
50304
+ Returns: import("../integrations/supabase/types").Json;
50305
+ };
49299
50306
  logistics_complete_task: {
49300
50307
  Args: {
49301
50308
  p_result?: import("../integrations/supabase/types").Json;
@@ -49358,6 +50365,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49358
50365
  station_carts: number;
49359
50366
  }[];
49360
50367
  };
50368
+ logistics_control_complete_cart: {
50369
+ Args: {
50370
+ p_cart_id: string;
50371
+ };
50372
+ Returns: number;
50373
+ };
49361
50374
  logistics_control_scan_approve: {
49362
50375
  Args: {
49363
50376
  p_allow_reprint?: boolean;
@@ -49437,6 +50450,15 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49437
50450
  Args: never;
49438
50451
  Returns: import("../integrations/supabase/types").Json;
49439
50452
  };
50453
+ logistics_day_windows: {
50454
+ Args: {
50455
+ p_day: string;
50456
+ };
50457
+ Returns: {
50458
+ win_end: string;
50459
+ win_start: string;
50460
+ }[];
50461
+ };
49440
50462
  logistics_delay_customer_email: {
49441
50463
  Args: {
49442
50464
  p_customer: string;
@@ -49504,6 +50526,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49504
50526
  };
49505
50527
  Returns: import("../integrations/supabase/types").Json;
49506
50528
  };
50529
+ logistics_enqueue_shipping_note_with_slip: {
50530
+ Args: {
50531
+ _cart_id: string;
50532
+ _is_herprint: boolean;
50533
+ _printer_id: string;
50534
+ _queue_item_id: string;
50535
+ _session_id: string;
50536
+ _slip_job_id: string;
50537
+ };
50538
+ Returns: string;
50539
+ };
49507
50540
  logistics_enqueue_sticker_with_slip: {
49508
50541
  Args: {
49509
50542
  _cart_id: string;
@@ -49521,6 +50554,14 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49521
50554
  };
49522
50555
  Returns: string;
49523
50556
  };
50557
+ logistics_ensure_pick_data: {
50558
+ Args: {
50559
+ p_event_id?: string;
50560
+ p_missing?: import("../integrations/supabase/types").Json;
50561
+ p_ref: string;
50562
+ };
50563
+ Returns: import("../integrations/supabase/types").Json;
50564
+ };
49524
50565
  logistics_fail_task: {
49525
50566
  Args: {
49526
50567
  p_error: string;
@@ -49642,6 +50683,38 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49642
50683
  };
49643
50684
  Returns: string;
49644
50685
  };
50686
+ logistics_floriday_gate_status: {
50687
+ Args: never;
50688
+ Returns: import("../integrations/supabase/types").Json;
50689
+ };
50690
+ logistics_floriday_log_refusal: {
50691
+ Args: {
50692
+ _action?: string;
50693
+ _module?: string;
50694
+ _order_ref: string;
50695
+ _reason: string;
50696
+ _shell?: string;
50697
+ };
50698
+ Returns: undefined;
50699
+ };
50700
+ logistics_floriday_log_send: {
50701
+ Args: {
50702
+ _action: string;
50703
+ _detail?: string;
50704
+ _http_status?: number;
50705
+ _module?: string;
50706
+ _ok: boolean;
50707
+ _order_ref: string;
50708
+ _shell?: string;
50709
+ };
50710
+ Returns: undefined;
50711
+ };
50712
+ logistics_floriday_order_approved: {
50713
+ Args: {
50714
+ _order_ref: string;
50715
+ };
50716
+ Returns: boolean;
50717
+ };
49645
50718
  logistics_floriday_prune_pushes: {
49646
50719
  Args: {
49647
50720
  _days?: number;
@@ -49656,6 +50729,20 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49656
50729
  };
49657
50730
  Returns: string;
49658
50731
  };
50732
+ logistics_floriday_status_updates_enabled: {
50733
+ Args: never;
50734
+ Returns: boolean;
50735
+ };
50736
+ logistics_floriday_stock_updates_enabled: {
50737
+ Args: never;
50738
+ Returns: boolean;
50739
+ };
50740
+ logistics_floriday_write_allowed: {
50741
+ Args: {
50742
+ _action: string;
50743
+ };
50744
+ Returns: boolean;
50745
+ };
49659
50746
  logistics_fulfill_barcode_requests: {
49660
50747
  Args: {
49661
50748
  p_limit?: number;
@@ -49676,6 +50763,16 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49676
50763
  };
49677
50764
  Returns: boolean;
49678
50765
  };
50766
+ logistics_layout_method_status: {
50767
+ Args: never;
50768
+ Returns: import("../integrations/supabase/types").Json;
50769
+ };
50770
+ logistics_link_order_items: {
50771
+ Args: {
50772
+ p_order?: string;
50773
+ };
50774
+ Returns: import("../integrations/supabase/types").Json;
50775
+ };
49679
50776
  logistics_live_carriers: {
49680
50777
  Args: {
49681
50778
  p_order_ref: string;
@@ -49688,6 +50785,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49688
50785
  };
49689
50786
  Returns: number;
49690
50787
  };
50788
+ logistics_merge_partial_carts: {
50789
+ Args: {
50790
+ p_limit?: number;
50791
+ };
50792
+ Returns: import("../integrations/supabase/types").Json;
50793
+ };
49691
50794
  logistics_next_workday_date: {
49692
50795
  Args: {
49693
50796
  p_date: string;
@@ -49702,12 +50805,22 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49702
50805
  };
49703
50806
  Returns: string;
49704
50807
  };
50808
+ logistics_normalize_product_label: {
50809
+ Args: {
50810
+ p_label: string;
50811
+ };
50812
+ Returns: string;
50813
+ };
49705
50814
  logistics_not_past: {
49706
50815
  Args: {
49707
50816
  p_ts: string;
49708
50817
  };
49709
50818
  Returns: string;
49710
50819
  };
50820
+ logistics_opening_timezone: {
50821
+ Args: never;
50822
+ Returns: string;
50823
+ };
49711
50824
  logistics_order_cart_count: {
49712
50825
  Args: {
49713
50826
  p_order_ref: string;
@@ -49792,6 +50905,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49792
50905
  Args: never;
49793
50906
  Returns: import("../integrations/supabase/types").Json;
49794
50907
  };
50908
+ logistics_pick_partial_mode: {
50909
+ Args: never;
50910
+ Returns: string;
50911
+ };
49795
50912
  logistics_pick_start_estimate: {
49796
50913
  Args: {
49797
50914
  p_order: import("../integrations/supabase/types").Json;
@@ -49903,6 +51020,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49903
51020
  };
49904
51021
  Returns: number;
49905
51022
  };
51023
+ logistics_prepare_pick_documents: {
51024
+ Args: {
51025
+ p_limit?: number;
51026
+ };
51027
+ Returns: import("../integrations/supabase/types").Json;
51028
+ };
49906
51029
  logistics_prune_buffer_member_queue: {
49907
51030
  Args: never;
49908
51031
  Returns: number;
@@ -49943,12 +51066,30 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
49943
51066
  Args: never;
49944
51067
  Returns: import("../integrations/supabase/types").Json;
49945
51068
  };
51069
+ logistics_refresh_pick_queue_status: {
51070
+ Args: {
51071
+ p_ref: string;
51072
+ };
51073
+ Returns: number;
51074
+ };
49946
51075
  logistics_refresh_pickup_moments: {
49947
51076
  Args: {
49948
51077
  p_weeks?: number;
49949
51078
  };
49950
51079
  Returns: import("../integrations/supabase/types").Json;
49951
51080
  };
51081
+ logistics_replan_all: {
51082
+ Args: {
51083
+ p_reason?: string;
51084
+ };
51085
+ Returns: import("../integrations/supabase/types").Json;
51086
+ };
51087
+ logistics_replan_all_force: {
51088
+ Args: {
51089
+ p_reason?: string;
51090
+ };
51091
+ Returns: import("../integrations/supabase/types").Json;
51092
+ };
49952
51093
  logistics_report_delay: {
49953
51094
  Args: {
49954
51095
  p_expected_date?: string;
@@ -50002,6 +51143,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50002
51143
  };
50003
51144
  Returns: import("../integrations/supabase/types").Json;
50004
51145
  };
51146
+ logistics_resolve_product_id: {
51147
+ Args: {
51148
+ p_label: string;
51149
+ };
51150
+ Returns: string;
51151
+ };
50005
51152
  logistics_resolve_settings: {
50006
51153
  Args: {
50007
51154
  p_config_id: string;
@@ -50087,6 +51234,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50087
51234
  };
50088
51235
  Returns: string;
50089
51236
  };
51237
+ logistics_shipping_note_follows_slip: {
51238
+ Args: never;
51239
+ Returns: boolean;
51240
+ };
50090
51241
  logistics_shipping_note_from_barcode: {
50091
51242
  Args: {
50092
51243
  p_allow_reprint?: boolean;
@@ -50099,6 +51250,14 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50099
51250
  Args: never;
50100
51251
  Returns: boolean;
50101
51252
  };
51253
+ logistics_subtract_working_minutes: {
51254
+ Args: {
51255
+ p_deadline: string;
51256
+ p_max_workdays?: number;
51257
+ p_minutes: number;
51258
+ };
51259
+ Returns: import("../integrations/supabase/types").Json;
51260
+ };
50102
51261
  logistics_supersede_stale_tasks: {
50103
51262
  Args: {
50104
51263
  p_keep: string[];
@@ -50135,6 +51294,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50135
51294
  Args: never;
50136
51295
  Returns: string;
50137
51296
  };
51297
+ logistics_timezone_options: {
51298
+ Args: never;
51299
+ Returns: {
51300
+ name: string;
51301
+ }[];
51302
+ };
50138
51303
  logistics_upsert_task: {
50139
51304
  Args: {
50140
51305
  p_buffer_ref: string;
@@ -50154,6 +51319,16 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50154
51319
  };
50155
51320
  Returns: string;
50156
51321
  };
51322
+ logistics_valid_timezone: {
51323
+ Args: {
51324
+ _tz: string;
51325
+ };
51326
+ Returns: boolean;
51327
+ };
51328
+ logistics_working_hours_status: {
51329
+ Args: never;
51330
+ Returns: import("../integrations/supabase/types").Json;
51331
+ };
50157
51332
  logistics_write_buffer_layer_positions: {
50158
51333
  Args: {
50159
51334
  p_buffer_id: string;
@@ -50319,6 +51494,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
50319
51494
  online: boolean;
50320
51495
  }[];
50321
51496
  };
51497
+ pick_apply_buffer_events: {
51498
+ Args: never;
51499
+ Returns: import("../integrations/supabase/types").Json;
51500
+ };
50322
51501
  pick_available_pick_days: {
50323
51502
  Args: {
50324
51503
  _max_days?: number;
@@ -51595,6 +52774,13 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51595
52774
  };
51596
52775
  Returns: number;
51597
52776
  };
52777
+ schedule_floriday_catalog_prices_sync: {
52778
+ Args: {
52779
+ p_apikey: string;
52780
+ p_url: string;
52781
+ };
52782
+ Returns: number;
52783
+ };
51598
52784
  schedule_floriday_clock_presales_sync: {
51599
52785
  Args: {
51600
52786
  p_apikey: string;
@@ -51895,6 +53081,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
51895
53081
  };
51896
53082
  Returns: undefined;
51897
53083
  };
53084
+ sync_floriday_prices_into_price_groups: {
53085
+ Args: never;
53086
+ Returns: number;
53087
+ };
51898
53088
  sync_layer_stock: {
51899
53089
  Args: {
51900
53090
  p_product_id: string;
@@ -57916,6 +59106,84 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
57916
59106
  referencedColumns: ["id"];
57917
59107
  }];
57918
59108
  };
59109
+ floriday_catalog_prices_cache: {
59110
+ Row: {
59111
+ connection_id: string;
59112
+ created_at: string;
59113
+ currency: string;
59114
+ id: string;
59115
+ is_deleted: boolean;
59116
+ price: number | null;
59117
+ price_group_id: string | null;
59118
+ price_group_name: string | null;
59119
+ price_type: string;
59120
+ raw: import("../integrations/supabase/types").Json | null;
59121
+ sales_unit: string | null;
59122
+ sequence_number: number;
59123
+ supplier_article_code: string | null;
59124
+ supply_line_id: string;
59125
+ synced_at: string;
59126
+ trade_item_id: string | null;
59127
+ updated_at: string;
59128
+ valid_from: string | null;
59129
+ valid_to: string | null;
59130
+ week: number | null;
59131
+ year: number | null;
59132
+ };
59133
+ Insert: {
59134
+ connection_id: string;
59135
+ created_at?: string;
59136
+ currency?: string;
59137
+ id?: string;
59138
+ is_deleted?: boolean;
59139
+ price?: number | null;
59140
+ price_group_id?: string | null;
59141
+ price_group_name?: string | null;
59142
+ price_type?: string;
59143
+ raw?: import("../integrations/supabase/types").Json | null;
59144
+ sales_unit?: string | null;
59145
+ sequence_number?: number;
59146
+ supplier_article_code?: string | null;
59147
+ supply_line_id: string;
59148
+ synced_at?: string;
59149
+ trade_item_id?: string | null;
59150
+ updated_at?: string;
59151
+ valid_from?: string | null;
59152
+ valid_to?: string | null;
59153
+ week?: number | null;
59154
+ year?: number | null;
59155
+ };
59156
+ Update: {
59157
+ connection_id?: string;
59158
+ created_at?: string;
59159
+ currency?: string;
59160
+ id?: string;
59161
+ is_deleted?: boolean;
59162
+ price?: number | null;
59163
+ price_group_id?: string | null;
59164
+ price_group_name?: string | null;
59165
+ price_type?: string;
59166
+ raw?: import("../integrations/supabase/types").Json | null;
59167
+ sales_unit?: string | null;
59168
+ sequence_number?: number;
59169
+ supplier_article_code?: string | null;
59170
+ supply_line_id?: string;
59171
+ synced_at?: string;
59172
+ trade_item_id?: string | null;
59173
+ updated_at?: string;
59174
+ valid_from?: string | null;
59175
+ valid_to?: string | null;
59176
+ week?: number | null;
59177
+ year?: number | null;
59178
+ };
59179
+ Relationships: [{
59180
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
59181
+ columns: ["connection_id"];
59182
+ isOneToOne: false;
59183
+ referencedRelation: "floriday_connections";
59184
+ referencedColumns: ["id"];
59185
+ }];
59186
+ };
57919
59187
  floriday_clock_presales_cache: {
57920
59188
  Row: {
57921
59189
  buyer_organization_id: string | null;
@@ -62182,6 +63450,36 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
62182
63450
  };
62183
63451
  Relationships: [];
62184
63452
  };
63453
+ logistics_floriday_push_refusals: {
63454
+ Row: {
63455
+ action: string | null;
63456
+ created_at: string;
63457
+ id: string;
63458
+ order_ref: string;
63459
+ reason: string;
63460
+ source_module: string | null;
63461
+ source_shell: string | null;
63462
+ };
63463
+ Insert: {
63464
+ action?: string | null;
63465
+ created_at?: string;
63466
+ id?: string;
63467
+ order_ref: string;
63468
+ reason: string;
63469
+ source_module?: string | null;
63470
+ source_shell?: string | null;
63471
+ };
63472
+ Update: {
63473
+ action?: string | null;
63474
+ created_at?: string;
63475
+ id?: string;
63476
+ order_ref?: string;
63477
+ reason?: string;
63478
+ source_module?: string | null;
63479
+ source_shell?: string | null;
63480
+ };
63481
+ Relationships: [];
63482
+ };
62185
63483
  logistics_floriday_pushes: {
62186
63484
  Row: {
62187
63485
  attempts: number;
@@ -62257,6 +63555,42 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
62257
63555
  };
62258
63556
  Relationships: [];
62259
63557
  };
63558
+ logistics_floriday_status_sends: {
63559
+ Row: {
63560
+ action: string;
63561
+ created_at: string;
63562
+ detail: string | null;
63563
+ http_status: number | null;
63564
+ id: string;
63565
+ ok: boolean;
63566
+ order_ref: string;
63567
+ source_module: string | null;
63568
+ source_shell: string | null;
63569
+ };
63570
+ Insert: {
63571
+ action: string;
63572
+ created_at?: string;
63573
+ detail?: string | null;
63574
+ http_status?: number | null;
63575
+ id?: string;
63576
+ ok?: boolean;
63577
+ order_ref: string;
63578
+ source_module?: string | null;
63579
+ source_shell?: string | null;
63580
+ };
63581
+ Update: {
63582
+ action?: string;
63583
+ created_at?: string;
63584
+ detail?: string | null;
63585
+ http_status?: number | null;
63586
+ id?: string;
63587
+ ok?: boolean;
63588
+ order_ref?: string;
63589
+ source_module?: string | null;
63590
+ source_shell?: string | null;
63591
+ };
63592
+ Relationships: [];
63593
+ };
62260
63594
  logistics_formulas: {
62261
63595
  Row: {
62262
63596
  created_at: string;
@@ -62329,6 +63663,108 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
62329
63663
  };
62330
63664
  Relationships: [];
62331
63665
  };
63666
+ logistics_opening_exceptions: {
63667
+ Row: {
63668
+ closes: string | null;
63669
+ created_at: string;
63670
+ day: string;
63671
+ id: string;
63672
+ is_closed: boolean;
63673
+ note: string | null;
63674
+ opens: string | null;
63675
+ };
63676
+ Insert: {
63677
+ closes?: string | null;
63678
+ created_at?: string;
63679
+ day: string;
63680
+ id?: string;
63681
+ is_closed?: boolean;
63682
+ note?: string | null;
63683
+ opens?: string | null;
63684
+ };
63685
+ Update: {
63686
+ closes?: string | null;
63687
+ created_at?: string;
63688
+ day?: string;
63689
+ id?: string;
63690
+ is_closed?: boolean;
63691
+ note?: string | null;
63692
+ opens?: string | null;
63693
+ };
63694
+ Relationships: [];
63695
+ };
63696
+ logistics_opening_hours: {
63697
+ Row: {
63698
+ closes: string;
63699
+ created_at: string;
63700
+ id: string;
63701
+ is_active: boolean;
63702
+ note: string | null;
63703
+ opens: string;
63704
+ weekday: number;
63705
+ };
63706
+ Insert: {
63707
+ closes: string;
63708
+ created_at?: string;
63709
+ id?: string;
63710
+ is_active?: boolean;
63711
+ note?: string | null;
63712
+ opens: string;
63713
+ weekday: number;
63714
+ };
63715
+ Update: {
63716
+ closes?: string;
63717
+ created_at?: string;
63718
+ id?: string;
63719
+ is_active?: boolean;
63720
+ note?: string | null;
63721
+ opens?: string;
63722
+ weekday?: number;
63723
+ };
63724
+ Relationships: [];
63725
+ };
63726
+ logistics_pick_data_requests: {
63727
+ Row: {
63728
+ actions: import("../integrations/supabase/types").Json;
63729
+ created_at: string;
63730
+ event_id: string | null;
63731
+ finished_at: string | null;
63732
+ id: string;
63733
+ missing: import("../integrations/supabase/types").Json;
63734
+ order_ref: string;
63735
+ reason: string | null;
63736
+ result: import("../integrations/supabase/types").Json | null;
63737
+ status: string;
63738
+ unit_ref: string | null;
63739
+ };
63740
+ Insert: {
63741
+ actions?: import("../integrations/supabase/types").Json;
63742
+ created_at?: string;
63743
+ event_id?: string | null;
63744
+ finished_at?: string | null;
63745
+ id?: string;
63746
+ missing?: import("../integrations/supabase/types").Json;
63747
+ order_ref: string;
63748
+ reason?: string | null;
63749
+ result?: import("../integrations/supabase/types").Json | null;
63750
+ status?: string;
63751
+ unit_ref?: string | null;
63752
+ };
63753
+ Update: {
63754
+ actions?: import("../integrations/supabase/types").Json;
63755
+ created_at?: string;
63756
+ event_id?: string | null;
63757
+ finished_at?: string | null;
63758
+ id?: string;
63759
+ missing?: import("../integrations/supabase/types").Json;
63760
+ order_ref?: string;
63761
+ reason?: string | null;
63762
+ result?: import("../integrations/supabase/types").Json | null;
63763
+ status?: string;
63764
+ unit_ref?: string | null;
63765
+ };
63766
+ Relationships: [];
63767
+ };
62332
63768
  logistics_pickup_moments: {
62333
63769
  Row: {
62334
63770
  carrier_ref: string | null;
@@ -63121,6 +64557,24 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
63121
64557
  };
63122
64558
  Relationships: [];
63123
64559
  };
64560
+ logistics_time_settings: {
64561
+ Row: {
64562
+ id: boolean;
64563
+ timezone: string;
64564
+ updated_at: string;
64565
+ };
64566
+ Insert: {
64567
+ id?: boolean;
64568
+ timezone: string;
64569
+ updated_at?: string;
64570
+ };
64571
+ Update: {
64572
+ id?: boolean;
64573
+ timezone?: string;
64574
+ updated_at?: string;
64575
+ };
64576
+ Relationships: [];
64577
+ };
63124
64578
  logistics_variables: {
63125
64579
  Row: {
63126
64580
  created_at: string;
@@ -65511,6 +66965,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
65511
66965
  customer_name: string;
65512
66966
  deleted_at: string | null;
65513
66967
  delivery_date: string | null;
66968
+ floriday_order_group_key: string | null;
65514
66969
  floriday_sales_order_id: string | null;
65515
66970
  id: string;
65516
66971
  invoice_due_at: string | null;
@@ -65538,6 +66993,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
65538
66993
  customer_name?: string;
65539
66994
  deleted_at?: string | null;
65540
66995
  delivery_date?: string | null;
66996
+ floriday_order_group_key?: string | null;
65541
66997
  floriday_sales_order_id?: string | null;
65542
66998
  id?: string;
65543
66999
  invoice_due_at?: string | null;
@@ -65565,6 +67021,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
65565
67021
  customer_name?: string;
65566
67022
  deleted_at?: string | null;
65567
67023
  delivery_date?: string | null;
67024
+ floriday_order_group_key?: string | null;
65568
67025
  floriday_sales_order_id?: string | null;
65569
67026
  id?: string;
65570
67027
  invoice_due_at?: string | null;
@@ -65758,6 +67215,27 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
65758
67215
  };
65759
67216
  Relationships: [];
65760
67217
  };
67218
+ pick_buffer_event_cursor: {
67219
+ Row: {
67220
+ created_at: string;
67221
+ id: boolean;
67222
+ last_event_at: string;
67223
+ updated_at: string;
67224
+ };
67225
+ Insert: {
67226
+ created_at?: string;
67227
+ id?: boolean;
67228
+ last_event_at?: string;
67229
+ updated_at?: string;
67230
+ };
67231
+ Update: {
67232
+ created_at?: string;
67233
+ id?: boolean;
67234
+ last_event_at?: string;
67235
+ updated_at?: string;
67236
+ };
67237
+ Relationships: [];
67238
+ };
65761
67239
  pick_countries: {
65762
67240
  Row: {
65763
67241
  active: boolean;
@@ -71407,6 +72885,36 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
71407
72885
  referencedColumns: ["id"];
71408
72886
  }];
71409
72887
  };
72888
+ voorraad_buffer_state: {
72889
+ Row: {
72890
+ buffer_id: string;
72891
+ buffer_key: string | null;
72892
+ closed_at: string | null;
72893
+ created_at: string;
72894
+ detached_orders: import("../integrations/supabase/types").Json;
72895
+ reason: string | null;
72896
+ updated_at: string;
72897
+ };
72898
+ Insert: {
72899
+ buffer_id: string;
72900
+ buffer_key?: string | null;
72901
+ closed_at?: string | null;
72902
+ created_at?: string;
72903
+ detached_orders?: import("../integrations/supabase/types").Json;
72904
+ reason?: string | null;
72905
+ updated_at?: string;
72906
+ };
72907
+ Update: {
72908
+ buffer_id?: string;
72909
+ buffer_key?: string | null;
72910
+ closed_at?: string | null;
72911
+ created_at?: string;
72912
+ detached_orders?: import("../integrations/supabase/types").Json;
72913
+ reason?: string | null;
72914
+ updated_at?: string;
72915
+ };
72916
+ Relationships: [];
72917
+ };
71410
72918
  voorraad_custom_fields: {
71411
72919
  Row: {
71412
72920
  created_at: string;
@@ -71449,6 +72957,36 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
71449
72957
  };
71450
72958
  Relationships: [];
71451
72959
  };
72960
+ voorraad_logistics_event_log: {
72961
+ Row: {
72962
+ created_at: string;
72963
+ event_id: string;
72964
+ event_type: string;
72965
+ order_ref: string | null;
72966
+ processed_at: string;
72967
+ result: import("../integrations/supabase/types").Json;
72968
+ updated_at: string;
72969
+ };
72970
+ Insert: {
72971
+ created_at?: string;
72972
+ event_id: string;
72973
+ event_type: string;
72974
+ order_ref?: string | null;
72975
+ processed_at?: string;
72976
+ result?: import("../integrations/supabase/types").Json;
72977
+ updated_at?: string;
72978
+ };
72979
+ Update: {
72980
+ created_at?: string;
72981
+ event_id?: string;
72982
+ event_type?: string;
72983
+ order_ref?: string | null;
72984
+ processed_at?: string;
72985
+ result?: import("../integrations/supabase/types").Json;
72986
+ updated_at?: string;
72987
+ };
72988
+ Relationships: [];
72989
+ };
71452
72990
  voorraad_media_upload_failures: {
71453
72991
  Row: {
71454
72992
  action: string;
@@ -74274,6 +75812,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
74274
75812
  };
74275
75813
  Returns: boolean;
74276
75814
  };
75815
+ floriday_adopt_connection: {
75816
+ Args: {
75817
+ p_new: string;
75818
+ p_old: string;
75819
+ };
75820
+ Returns: import("../integrations/supabase/types").Json;
75821
+ };
75822
+ floriday_autoheal_connections: {
75823
+ Args: never;
75824
+ Returns: import("../integrations/supabase/types").Json;
75825
+ };
74277
75826
  floriday_capture_stock_snapshot: {
74278
75827
  Args: never;
74279
75828
  Returns: number;
@@ -74331,6 +75880,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
74331
75880
  };
74332
75881
  Returns: undefined;
74333
75882
  };
75883
+ floriday_relink_products: {
75884
+ Args: {
75885
+ p_connection_id?: string;
75886
+ };
75887
+ Returns: import("../integrations/supabase/types").Json;
75888
+ };
74334
75889
  floriday_requeue_dead_letters: {
74335
75890
  Args: {
74336
75891
  p_connection_id?: string;
@@ -74952,6 +76507,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
74952
76507
  };
74953
76508
  Returns: string;
74954
76509
  };
76510
+ logistics_active_layout_method: {
76511
+ Args: never;
76512
+ Returns: string;
76513
+ };
74955
76514
  logistics_active_pick_workdays: {
74956
76515
  Args: never;
74957
76516
  Returns: string[];
@@ -75059,6 +76618,15 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75059
76618
  };
75060
76619
  Returns: boolean;
75061
76620
  };
76621
+ logistics_buffer_notify: {
76622
+ Args: {
76623
+ p_event_type: string;
76624
+ p_idempotency_key: string;
76625
+ p_order_ref: string;
76626
+ p_payload: import("../integrations/supabase/types").Json;
76627
+ };
76628
+ Returns: string;
76629
+ };
75062
76630
  logistics_buffer_open_key: {
75063
76631
  Args: {
75064
76632
  p_base_key: string;
@@ -75117,6 +76685,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75117
76685
  };
75118
76686
  Returns: string;
75119
76687
  };
76688
+ logistics_cart_checkin_at: {
76689
+ Args: {
76690
+ p_cart_id: string;
76691
+ };
76692
+ Returns: string;
76693
+ };
75120
76694
  logistics_cart_handled: {
75121
76695
  Args: {
75122
76696
  p_cart_index: number;
@@ -75150,10 +76724,22 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75150
76724
  task_status: string;
75151
76725
  }[];
75152
76726
  };
76727
+ logistics_cart_is_full: {
76728
+ Args: {
76729
+ p_cart_id: string;
76730
+ };
76731
+ Returns: boolean;
76732
+ };
75153
76733
  logistics_cart_layout_method: {
75154
76734
  Args: never;
75155
76735
  Returns: import("../integrations/supabase/types").Json;
75156
76736
  };
76737
+ logistics_cart_order_refs: {
76738
+ Args: {
76739
+ p_cart_id: string;
76740
+ };
76741
+ Returns: string[];
76742
+ };
75157
76743
  logistics_cart_plan_overview: {
75158
76744
  Args: {
75159
76745
  p_days?: number;
@@ -75173,6 +76759,18 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75173
76759
  };
75174
76760
  Returns: import("../integrations/supabase/types").Json;
75175
76761
  };
76762
+ logistics_cart_release_reason: {
76763
+ Args: {
76764
+ p_cart_id: string;
76765
+ };
76766
+ Returns: string;
76767
+ };
76768
+ logistics_cart_released: {
76769
+ Args: {
76770
+ p_cart_id: string;
76771
+ };
76772
+ Returns: boolean;
76773
+ };
75176
76774
  logistics_cart_seq: {
75177
76775
  Args: {
75178
76776
  p_order_uuid?: string;
@@ -75326,6 +76924,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75326
76924
  isSetofReturn: false;
75327
76925
  };
75328
76926
  };
76927
+ logistics_cleanup_orphan_print_jobs: {
76928
+ Args: never;
76929
+ Returns: import("../integrations/supabase/types").Json;
76930
+ };
75329
76931
  logistics_complete_task: {
75330
76932
  Args: {
75331
76933
  p_result?: import("../integrations/supabase/types").Json;
@@ -75388,6 +76990,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75388
76990
  station_carts: number;
75389
76991
  }[];
75390
76992
  };
76993
+ logistics_control_complete_cart: {
76994
+ Args: {
76995
+ p_cart_id: string;
76996
+ };
76997
+ Returns: number;
76998
+ };
75391
76999
  logistics_control_scan_approve: {
75392
77000
  Args: {
75393
77001
  p_allow_reprint?: boolean;
@@ -75467,6 +77075,15 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75467
77075
  Args: never;
75468
77076
  Returns: import("../integrations/supabase/types").Json;
75469
77077
  };
77078
+ logistics_day_windows: {
77079
+ Args: {
77080
+ p_day: string;
77081
+ };
77082
+ Returns: {
77083
+ win_end: string;
77084
+ win_start: string;
77085
+ }[];
77086
+ };
75470
77087
  logistics_delay_customer_email: {
75471
77088
  Args: {
75472
77089
  p_customer: string;
@@ -75534,6 +77151,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75534
77151
  };
75535
77152
  Returns: import("../integrations/supabase/types").Json;
75536
77153
  };
77154
+ logistics_enqueue_shipping_note_with_slip: {
77155
+ Args: {
77156
+ _cart_id: string;
77157
+ _is_herprint: boolean;
77158
+ _printer_id: string;
77159
+ _queue_item_id: string;
77160
+ _session_id: string;
77161
+ _slip_job_id: string;
77162
+ };
77163
+ Returns: string;
77164
+ };
75537
77165
  logistics_enqueue_sticker_with_slip: {
75538
77166
  Args: {
75539
77167
  _cart_id: string;
@@ -75551,6 +77179,14 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75551
77179
  };
75552
77180
  Returns: string;
75553
77181
  };
77182
+ logistics_ensure_pick_data: {
77183
+ Args: {
77184
+ p_event_id?: string;
77185
+ p_missing?: import("../integrations/supabase/types").Json;
77186
+ p_ref: string;
77187
+ };
77188
+ Returns: import("../integrations/supabase/types").Json;
77189
+ };
75554
77190
  logistics_fail_task: {
75555
77191
  Args: {
75556
77192
  p_error: string;
@@ -75672,6 +77308,38 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75672
77308
  };
75673
77309
  Returns: string;
75674
77310
  };
77311
+ logistics_floriday_gate_status: {
77312
+ Args: never;
77313
+ Returns: import("../integrations/supabase/types").Json;
77314
+ };
77315
+ logistics_floriday_log_refusal: {
77316
+ Args: {
77317
+ _action?: string;
77318
+ _module?: string;
77319
+ _order_ref: string;
77320
+ _reason: string;
77321
+ _shell?: string;
77322
+ };
77323
+ Returns: undefined;
77324
+ };
77325
+ logistics_floriday_log_send: {
77326
+ Args: {
77327
+ _action: string;
77328
+ _detail?: string;
77329
+ _http_status?: number;
77330
+ _module?: string;
77331
+ _ok: boolean;
77332
+ _order_ref: string;
77333
+ _shell?: string;
77334
+ };
77335
+ Returns: undefined;
77336
+ };
77337
+ logistics_floriday_order_approved: {
77338
+ Args: {
77339
+ _order_ref: string;
77340
+ };
77341
+ Returns: boolean;
77342
+ };
75675
77343
  logistics_floriday_prune_pushes: {
75676
77344
  Args: {
75677
77345
  _days?: number;
@@ -75686,6 +77354,20 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75686
77354
  };
75687
77355
  Returns: string;
75688
77356
  };
77357
+ logistics_floriday_status_updates_enabled: {
77358
+ Args: never;
77359
+ Returns: boolean;
77360
+ };
77361
+ logistics_floriday_stock_updates_enabled: {
77362
+ Args: never;
77363
+ Returns: boolean;
77364
+ };
77365
+ logistics_floriday_write_allowed: {
77366
+ Args: {
77367
+ _action: string;
77368
+ };
77369
+ Returns: boolean;
77370
+ };
75689
77371
  logistics_fulfill_barcode_requests: {
75690
77372
  Args: {
75691
77373
  p_limit?: number;
@@ -75706,6 +77388,16 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75706
77388
  };
75707
77389
  Returns: boolean;
75708
77390
  };
77391
+ logistics_layout_method_status: {
77392
+ Args: never;
77393
+ Returns: import("../integrations/supabase/types").Json;
77394
+ };
77395
+ logistics_link_order_items: {
77396
+ Args: {
77397
+ p_order?: string;
77398
+ };
77399
+ Returns: import("../integrations/supabase/types").Json;
77400
+ };
75709
77401
  logistics_live_carriers: {
75710
77402
  Args: {
75711
77403
  p_order_ref: string;
@@ -75718,6 +77410,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75718
77410
  };
75719
77411
  Returns: number;
75720
77412
  };
77413
+ logistics_merge_partial_carts: {
77414
+ Args: {
77415
+ p_limit?: number;
77416
+ };
77417
+ Returns: import("../integrations/supabase/types").Json;
77418
+ };
75721
77419
  logistics_next_workday_date: {
75722
77420
  Args: {
75723
77421
  p_date: string;
@@ -75732,12 +77430,22 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75732
77430
  };
75733
77431
  Returns: string;
75734
77432
  };
77433
+ logistics_normalize_product_label: {
77434
+ Args: {
77435
+ p_label: string;
77436
+ };
77437
+ Returns: string;
77438
+ };
75735
77439
  logistics_not_past: {
75736
77440
  Args: {
75737
77441
  p_ts: string;
75738
77442
  };
75739
77443
  Returns: string;
75740
77444
  };
77445
+ logistics_opening_timezone: {
77446
+ Args: never;
77447
+ Returns: string;
77448
+ };
75741
77449
  logistics_order_cart_count: {
75742
77450
  Args: {
75743
77451
  p_order_ref: string;
@@ -75822,6 +77530,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75822
77530
  Args: never;
75823
77531
  Returns: import("../integrations/supabase/types").Json;
75824
77532
  };
77533
+ logistics_pick_partial_mode: {
77534
+ Args: never;
77535
+ Returns: string;
77536
+ };
75825
77537
  logistics_pick_start_estimate: {
75826
77538
  Args: {
75827
77539
  p_order: import("../integrations/supabase/types").Json;
@@ -75933,6 +77645,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75933
77645
  };
75934
77646
  Returns: number;
75935
77647
  };
77648
+ logistics_prepare_pick_documents: {
77649
+ Args: {
77650
+ p_limit?: number;
77651
+ };
77652
+ Returns: import("../integrations/supabase/types").Json;
77653
+ };
75936
77654
  logistics_prune_buffer_member_queue: {
75937
77655
  Args: never;
75938
77656
  Returns: number;
@@ -75973,12 +77691,30 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
75973
77691
  Args: never;
75974
77692
  Returns: import("../integrations/supabase/types").Json;
75975
77693
  };
77694
+ logistics_refresh_pick_queue_status: {
77695
+ Args: {
77696
+ p_ref: string;
77697
+ };
77698
+ Returns: number;
77699
+ };
75976
77700
  logistics_refresh_pickup_moments: {
75977
77701
  Args: {
75978
77702
  p_weeks?: number;
75979
77703
  };
75980
77704
  Returns: import("../integrations/supabase/types").Json;
75981
77705
  };
77706
+ logistics_replan_all: {
77707
+ Args: {
77708
+ p_reason?: string;
77709
+ };
77710
+ Returns: import("../integrations/supabase/types").Json;
77711
+ };
77712
+ logistics_replan_all_force: {
77713
+ Args: {
77714
+ p_reason?: string;
77715
+ };
77716
+ Returns: import("../integrations/supabase/types").Json;
77717
+ };
75982
77718
  logistics_report_delay: {
75983
77719
  Args: {
75984
77720
  p_expected_date?: string;
@@ -76032,6 +77768,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76032
77768
  };
76033
77769
  Returns: import("../integrations/supabase/types").Json;
76034
77770
  };
77771
+ logistics_resolve_product_id: {
77772
+ Args: {
77773
+ p_label: string;
77774
+ };
77775
+ Returns: string;
77776
+ };
76035
77777
  logistics_resolve_settings: {
76036
77778
  Args: {
76037
77779
  p_config_id: string;
@@ -76117,6 +77859,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76117
77859
  };
76118
77860
  Returns: string;
76119
77861
  };
77862
+ logistics_shipping_note_follows_slip: {
77863
+ Args: never;
77864
+ Returns: boolean;
77865
+ };
76120
77866
  logistics_shipping_note_from_barcode: {
76121
77867
  Args: {
76122
77868
  p_allow_reprint?: boolean;
@@ -76129,6 +77875,14 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76129
77875
  Args: never;
76130
77876
  Returns: boolean;
76131
77877
  };
77878
+ logistics_subtract_working_minutes: {
77879
+ Args: {
77880
+ p_deadline: string;
77881
+ p_max_workdays?: number;
77882
+ p_minutes: number;
77883
+ };
77884
+ Returns: import("../integrations/supabase/types").Json;
77885
+ };
76132
77886
  logistics_supersede_stale_tasks: {
76133
77887
  Args: {
76134
77888
  p_keep: string[];
@@ -76165,6 +77919,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76165
77919
  Args: never;
76166
77920
  Returns: string;
76167
77921
  };
77922
+ logistics_timezone_options: {
77923
+ Args: never;
77924
+ Returns: {
77925
+ name: string;
77926
+ }[];
77927
+ };
76168
77928
  logistics_upsert_task: {
76169
77929
  Args: {
76170
77930
  p_buffer_ref: string;
@@ -76184,6 +77944,16 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76184
77944
  };
76185
77945
  Returns: string;
76186
77946
  };
77947
+ logistics_valid_timezone: {
77948
+ Args: {
77949
+ _tz: string;
77950
+ };
77951
+ Returns: boolean;
77952
+ };
77953
+ logistics_working_hours_status: {
77954
+ Args: never;
77955
+ Returns: import("../integrations/supabase/types").Json;
77956
+ };
76187
77957
  logistics_write_buffer_layer_positions: {
76188
77958
  Args: {
76189
77959
  p_buffer_id: string;
@@ -76349,6 +78119,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
76349
78119
  online: boolean;
76350
78120
  }[];
76351
78121
  };
78122
+ pick_apply_buffer_events: {
78123
+ Args: never;
78124
+ Returns: import("../integrations/supabase/types").Json;
78125
+ };
76352
78126
  pick_available_pick_days: {
76353
78127
  Args: {
76354
78128
  _max_days?: number;
@@ -77625,6 +79399,13 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77625
79399
  };
77626
79400
  Returns: number;
77627
79401
  };
79402
+ schedule_floriday_catalog_prices_sync: {
79403
+ Args: {
79404
+ p_apikey: string;
79405
+ p_url: string;
79406
+ };
79407
+ Returns: number;
79408
+ };
77628
79409
  schedule_floriday_clock_presales_sync: {
77629
79410
  Args: {
77630
79411
  p_apikey: string;
@@ -77925,6 +79706,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
77925
79706
  };
77926
79707
  Returns: undefined;
77927
79708
  };
79709
+ sync_floriday_prices_into_price_groups: {
79710
+ Args: never;
79711
+ Returns: number;
79712
+ };
77928
79713
  sync_layer_stock: {
77929
79714
  Args: {
77930
79715
  p_product_id: string;
@@ -83944,6 +85729,84 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
83944
85729
  referencedColumns: ["id"];
83945
85730
  }];
83946
85731
  };
85732
+ floriday_catalog_prices_cache: {
85733
+ Row: {
85734
+ connection_id: string;
85735
+ created_at: string;
85736
+ currency: string;
85737
+ id: string;
85738
+ is_deleted: boolean;
85739
+ price: number | null;
85740
+ price_group_id: string | null;
85741
+ price_group_name: string | null;
85742
+ price_type: string;
85743
+ raw: import("../integrations/supabase/types").Json | null;
85744
+ sales_unit: string | null;
85745
+ sequence_number: number;
85746
+ supplier_article_code: string | null;
85747
+ supply_line_id: string;
85748
+ synced_at: string;
85749
+ trade_item_id: string | null;
85750
+ updated_at: string;
85751
+ valid_from: string | null;
85752
+ valid_to: string | null;
85753
+ week: number | null;
85754
+ year: number | null;
85755
+ };
85756
+ Insert: {
85757
+ connection_id: string;
85758
+ created_at?: string;
85759
+ currency?: string;
85760
+ id?: string;
85761
+ is_deleted?: boolean;
85762
+ price?: number | null;
85763
+ price_group_id?: string | null;
85764
+ price_group_name?: string | null;
85765
+ price_type?: string;
85766
+ raw?: import("../integrations/supabase/types").Json | null;
85767
+ sales_unit?: string | null;
85768
+ sequence_number?: number;
85769
+ supplier_article_code?: string | null;
85770
+ supply_line_id: string;
85771
+ synced_at?: string;
85772
+ trade_item_id?: string | null;
85773
+ updated_at?: string;
85774
+ valid_from?: string | null;
85775
+ valid_to?: string | null;
85776
+ week?: number | null;
85777
+ year?: number | null;
85778
+ };
85779
+ Update: {
85780
+ connection_id?: string;
85781
+ created_at?: string;
85782
+ currency?: string;
85783
+ id?: string;
85784
+ is_deleted?: boolean;
85785
+ price?: number | null;
85786
+ price_group_id?: string | null;
85787
+ price_group_name?: string | null;
85788
+ price_type?: string;
85789
+ raw?: import("../integrations/supabase/types").Json | null;
85790
+ sales_unit?: string | null;
85791
+ sequence_number?: number;
85792
+ supplier_article_code?: string | null;
85793
+ supply_line_id?: string;
85794
+ synced_at?: string;
85795
+ trade_item_id?: string | null;
85796
+ updated_at?: string;
85797
+ valid_from?: string | null;
85798
+ valid_to?: string | null;
85799
+ week?: number | null;
85800
+ year?: number | null;
85801
+ };
85802
+ Relationships: [{
85803
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
85804
+ columns: ["connection_id"];
85805
+ isOneToOne: false;
85806
+ referencedRelation: "floriday_connections";
85807
+ referencedColumns: ["id"];
85808
+ }];
85809
+ };
83947
85810
  floriday_clock_presales_cache: {
83948
85811
  Row: {
83949
85812
  buyer_organization_id: string | null;
@@ -88210,6 +90073,36 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
88210
90073
  };
88211
90074
  Relationships: [];
88212
90075
  };
90076
+ logistics_floriday_push_refusals: {
90077
+ Row: {
90078
+ action: string | null;
90079
+ created_at: string;
90080
+ id: string;
90081
+ order_ref: string;
90082
+ reason: string;
90083
+ source_module: string | null;
90084
+ source_shell: string | null;
90085
+ };
90086
+ Insert: {
90087
+ action?: string | null;
90088
+ created_at?: string;
90089
+ id?: string;
90090
+ order_ref: string;
90091
+ reason: string;
90092
+ source_module?: string | null;
90093
+ source_shell?: string | null;
90094
+ };
90095
+ Update: {
90096
+ action?: string | null;
90097
+ created_at?: string;
90098
+ id?: string;
90099
+ order_ref?: string;
90100
+ reason?: string;
90101
+ source_module?: string | null;
90102
+ source_shell?: string | null;
90103
+ };
90104
+ Relationships: [];
90105
+ };
88213
90106
  logistics_floriday_pushes: {
88214
90107
  Row: {
88215
90108
  attempts: number;
@@ -88285,6 +90178,42 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
88285
90178
  };
88286
90179
  Relationships: [];
88287
90180
  };
90181
+ logistics_floriday_status_sends: {
90182
+ Row: {
90183
+ action: string;
90184
+ created_at: string;
90185
+ detail: string | null;
90186
+ http_status: number | null;
90187
+ id: string;
90188
+ ok: boolean;
90189
+ order_ref: string;
90190
+ source_module: string | null;
90191
+ source_shell: string | null;
90192
+ };
90193
+ Insert: {
90194
+ action: string;
90195
+ created_at?: string;
90196
+ detail?: string | null;
90197
+ http_status?: number | null;
90198
+ id?: string;
90199
+ ok?: boolean;
90200
+ order_ref: string;
90201
+ source_module?: string | null;
90202
+ source_shell?: string | null;
90203
+ };
90204
+ Update: {
90205
+ action?: string;
90206
+ created_at?: string;
90207
+ detail?: string | null;
90208
+ http_status?: number | null;
90209
+ id?: string;
90210
+ ok?: boolean;
90211
+ order_ref?: string;
90212
+ source_module?: string | null;
90213
+ source_shell?: string | null;
90214
+ };
90215
+ Relationships: [];
90216
+ };
88288
90217
  logistics_formulas: {
88289
90218
  Row: {
88290
90219
  created_at: string;
@@ -88357,6 +90286,108 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
88357
90286
  };
88358
90287
  Relationships: [];
88359
90288
  };
90289
+ logistics_opening_exceptions: {
90290
+ Row: {
90291
+ closes: string | null;
90292
+ created_at: string;
90293
+ day: string;
90294
+ id: string;
90295
+ is_closed: boolean;
90296
+ note: string | null;
90297
+ opens: string | null;
90298
+ };
90299
+ Insert: {
90300
+ closes?: string | null;
90301
+ created_at?: string;
90302
+ day: string;
90303
+ id?: string;
90304
+ is_closed?: boolean;
90305
+ note?: string | null;
90306
+ opens?: string | null;
90307
+ };
90308
+ Update: {
90309
+ closes?: string | null;
90310
+ created_at?: string;
90311
+ day?: string;
90312
+ id?: string;
90313
+ is_closed?: boolean;
90314
+ note?: string | null;
90315
+ opens?: string | null;
90316
+ };
90317
+ Relationships: [];
90318
+ };
90319
+ logistics_opening_hours: {
90320
+ Row: {
90321
+ closes: string;
90322
+ created_at: string;
90323
+ id: string;
90324
+ is_active: boolean;
90325
+ note: string | null;
90326
+ opens: string;
90327
+ weekday: number;
90328
+ };
90329
+ Insert: {
90330
+ closes: string;
90331
+ created_at?: string;
90332
+ id?: string;
90333
+ is_active?: boolean;
90334
+ note?: string | null;
90335
+ opens: string;
90336
+ weekday: number;
90337
+ };
90338
+ Update: {
90339
+ closes?: string;
90340
+ created_at?: string;
90341
+ id?: string;
90342
+ is_active?: boolean;
90343
+ note?: string | null;
90344
+ opens?: string;
90345
+ weekday?: number;
90346
+ };
90347
+ Relationships: [];
90348
+ };
90349
+ logistics_pick_data_requests: {
90350
+ Row: {
90351
+ actions: import("../integrations/supabase/types").Json;
90352
+ created_at: string;
90353
+ event_id: string | null;
90354
+ finished_at: string | null;
90355
+ id: string;
90356
+ missing: import("../integrations/supabase/types").Json;
90357
+ order_ref: string;
90358
+ reason: string | null;
90359
+ result: import("../integrations/supabase/types").Json | null;
90360
+ status: string;
90361
+ unit_ref: string | null;
90362
+ };
90363
+ Insert: {
90364
+ actions?: import("../integrations/supabase/types").Json;
90365
+ created_at?: string;
90366
+ event_id?: string | null;
90367
+ finished_at?: string | null;
90368
+ id?: string;
90369
+ missing?: import("../integrations/supabase/types").Json;
90370
+ order_ref: string;
90371
+ reason?: string | null;
90372
+ result?: import("../integrations/supabase/types").Json | null;
90373
+ status?: string;
90374
+ unit_ref?: string | null;
90375
+ };
90376
+ Update: {
90377
+ actions?: import("../integrations/supabase/types").Json;
90378
+ created_at?: string;
90379
+ event_id?: string | null;
90380
+ finished_at?: string | null;
90381
+ id?: string;
90382
+ missing?: import("../integrations/supabase/types").Json;
90383
+ order_ref?: string;
90384
+ reason?: string | null;
90385
+ result?: import("../integrations/supabase/types").Json | null;
90386
+ status?: string;
90387
+ unit_ref?: string | null;
90388
+ };
90389
+ Relationships: [];
90390
+ };
88360
90391
  logistics_pickup_moments: {
88361
90392
  Row: {
88362
90393
  carrier_ref: string | null;
@@ -89149,6 +91180,24 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
89149
91180
  };
89150
91181
  Relationships: [];
89151
91182
  };
91183
+ logistics_time_settings: {
91184
+ Row: {
91185
+ id: boolean;
91186
+ timezone: string;
91187
+ updated_at: string;
91188
+ };
91189
+ Insert: {
91190
+ id?: boolean;
91191
+ timezone: string;
91192
+ updated_at?: string;
91193
+ };
91194
+ Update: {
91195
+ id?: boolean;
91196
+ timezone?: string;
91197
+ updated_at?: string;
91198
+ };
91199
+ Relationships: [];
91200
+ };
89152
91201
  logistics_variables: {
89153
91202
  Row: {
89154
91203
  created_at: string;
@@ -91539,6 +93588,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
91539
93588
  customer_name: string;
91540
93589
  deleted_at: string | null;
91541
93590
  delivery_date: string | null;
93591
+ floriday_order_group_key: string | null;
91542
93592
  floriday_sales_order_id: string | null;
91543
93593
  id: string;
91544
93594
  invoice_due_at: string | null;
@@ -91566,6 +93616,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
91566
93616
  customer_name?: string;
91567
93617
  deleted_at?: string | null;
91568
93618
  delivery_date?: string | null;
93619
+ floriday_order_group_key?: string | null;
91569
93620
  floriday_sales_order_id?: string | null;
91570
93621
  id?: string;
91571
93622
  invoice_due_at?: string | null;
@@ -91593,6 +93644,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
91593
93644
  customer_name?: string;
91594
93645
  deleted_at?: string | null;
91595
93646
  delivery_date?: string | null;
93647
+ floriday_order_group_key?: string | null;
91596
93648
  floriday_sales_order_id?: string | null;
91597
93649
  id?: string;
91598
93650
  invoice_due_at?: string | null;
@@ -91786,6 +93838,27 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
91786
93838
  };
91787
93839
  Relationships: [];
91788
93840
  };
93841
+ pick_buffer_event_cursor: {
93842
+ Row: {
93843
+ created_at: string;
93844
+ id: boolean;
93845
+ last_event_at: string;
93846
+ updated_at: string;
93847
+ };
93848
+ Insert: {
93849
+ created_at?: string;
93850
+ id?: boolean;
93851
+ last_event_at?: string;
93852
+ updated_at?: string;
93853
+ };
93854
+ Update: {
93855
+ created_at?: string;
93856
+ id?: boolean;
93857
+ last_event_at?: string;
93858
+ updated_at?: string;
93859
+ };
93860
+ Relationships: [];
93861
+ };
91789
93862
  pick_countries: {
91790
93863
  Row: {
91791
93864
  active: boolean;
@@ -97435,6 +99508,36 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
97435
99508
  referencedColumns: ["id"];
97436
99509
  }];
97437
99510
  };
99511
+ voorraad_buffer_state: {
99512
+ Row: {
99513
+ buffer_id: string;
99514
+ buffer_key: string | null;
99515
+ closed_at: string | null;
99516
+ created_at: string;
99517
+ detached_orders: import("../integrations/supabase/types").Json;
99518
+ reason: string | null;
99519
+ updated_at: string;
99520
+ };
99521
+ Insert: {
99522
+ buffer_id: string;
99523
+ buffer_key?: string | null;
99524
+ closed_at?: string | null;
99525
+ created_at?: string;
99526
+ detached_orders?: import("../integrations/supabase/types").Json;
99527
+ reason?: string | null;
99528
+ updated_at?: string;
99529
+ };
99530
+ Update: {
99531
+ buffer_id?: string;
99532
+ buffer_key?: string | null;
99533
+ closed_at?: string | null;
99534
+ created_at?: string;
99535
+ detached_orders?: import("../integrations/supabase/types").Json;
99536
+ reason?: string | null;
99537
+ updated_at?: string;
99538
+ };
99539
+ Relationships: [];
99540
+ };
97438
99541
  voorraad_custom_fields: {
97439
99542
  Row: {
97440
99543
  created_at: string;
@@ -97477,6 +99580,36 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
97477
99580
  };
97478
99581
  Relationships: [];
97479
99582
  };
99583
+ voorraad_logistics_event_log: {
99584
+ Row: {
99585
+ created_at: string;
99586
+ event_id: string;
99587
+ event_type: string;
99588
+ order_ref: string | null;
99589
+ processed_at: string;
99590
+ result: import("../integrations/supabase/types").Json;
99591
+ updated_at: string;
99592
+ };
99593
+ Insert: {
99594
+ created_at?: string;
99595
+ event_id: string;
99596
+ event_type: string;
99597
+ order_ref?: string | null;
99598
+ processed_at?: string;
99599
+ result?: import("../integrations/supabase/types").Json;
99600
+ updated_at?: string;
99601
+ };
99602
+ Update: {
99603
+ created_at?: string;
99604
+ event_id?: string;
99605
+ event_type?: string;
99606
+ order_ref?: string | null;
99607
+ processed_at?: string;
99608
+ result?: import("../integrations/supabase/types").Json;
99609
+ updated_at?: string;
99610
+ };
99611
+ Relationships: [];
99612
+ };
97480
99613
  voorraad_media_upload_failures: {
97481
99614
  Row: {
97482
99615
  action: string;
@@ -100302,6 +102435,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
100302
102435
  };
100303
102436
  Returns: boolean;
100304
102437
  };
102438
+ floriday_adopt_connection: {
102439
+ Args: {
102440
+ p_new: string;
102441
+ p_old: string;
102442
+ };
102443
+ Returns: import("../integrations/supabase/types").Json;
102444
+ };
102445
+ floriday_autoheal_connections: {
102446
+ Args: never;
102447
+ Returns: import("../integrations/supabase/types").Json;
102448
+ };
100305
102449
  floriday_capture_stock_snapshot: {
100306
102450
  Args: never;
100307
102451
  Returns: number;
@@ -100359,6 +102503,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
100359
102503
  };
100360
102504
  Returns: undefined;
100361
102505
  };
102506
+ floriday_relink_products: {
102507
+ Args: {
102508
+ p_connection_id?: string;
102509
+ };
102510
+ Returns: import("../integrations/supabase/types").Json;
102511
+ };
100362
102512
  floriday_requeue_dead_letters: {
100363
102513
  Args: {
100364
102514
  p_connection_id?: string;
@@ -100980,6 +103130,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
100980
103130
  };
100981
103131
  Returns: string;
100982
103132
  };
103133
+ logistics_active_layout_method: {
103134
+ Args: never;
103135
+ Returns: string;
103136
+ };
100983
103137
  logistics_active_pick_workdays: {
100984
103138
  Args: never;
100985
103139
  Returns: string[];
@@ -101087,6 +103241,15 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101087
103241
  };
101088
103242
  Returns: boolean;
101089
103243
  };
103244
+ logistics_buffer_notify: {
103245
+ Args: {
103246
+ p_event_type: string;
103247
+ p_idempotency_key: string;
103248
+ p_order_ref: string;
103249
+ p_payload: import("../integrations/supabase/types").Json;
103250
+ };
103251
+ Returns: string;
103252
+ };
101090
103253
  logistics_buffer_open_key: {
101091
103254
  Args: {
101092
103255
  p_base_key: string;
@@ -101145,6 +103308,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101145
103308
  };
101146
103309
  Returns: string;
101147
103310
  };
103311
+ logistics_cart_checkin_at: {
103312
+ Args: {
103313
+ p_cart_id: string;
103314
+ };
103315
+ Returns: string;
103316
+ };
101148
103317
  logistics_cart_handled: {
101149
103318
  Args: {
101150
103319
  p_cart_index: number;
@@ -101178,10 +103347,22 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101178
103347
  task_status: string;
101179
103348
  }[];
101180
103349
  };
103350
+ logistics_cart_is_full: {
103351
+ Args: {
103352
+ p_cart_id: string;
103353
+ };
103354
+ Returns: boolean;
103355
+ };
101181
103356
  logistics_cart_layout_method: {
101182
103357
  Args: never;
101183
103358
  Returns: import("../integrations/supabase/types").Json;
101184
103359
  };
103360
+ logistics_cart_order_refs: {
103361
+ Args: {
103362
+ p_cart_id: string;
103363
+ };
103364
+ Returns: string[];
103365
+ };
101185
103366
  logistics_cart_plan_overview: {
101186
103367
  Args: {
101187
103368
  p_days?: number;
@@ -101201,6 +103382,18 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101201
103382
  };
101202
103383
  Returns: import("../integrations/supabase/types").Json;
101203
103384
  };
103385
+ logistics_cart_release_reason: {
103386
+ Args: {
103387
+ p_cart_id: string;
103388
+ };
103389
+ Returns: string;
103390
+ };
103391
+ logistics_cart_released: {
103392
+ Args: {
103393
+ p_cart_id: string;
103394
+ };
103395
+ Returns: boolean;
103396
+ };
101204
103397
  logistics_cart_seq: {
101205
103398
  Args: {
101206
103399
  p_order_uuid?: string;
@@ -101354,6 +103547,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101354
103547
  isSetofReturn: false;
101355
103548
  };
101356
103549
  };
103550
+ logistics_cleanup_orphan_print_jobs: {
103551
+ Args: never;
103552
+ Returns: import("../integrations/supabase/types").Json;
103553
+ };
101357
103554
  logistics_complete_task: {
101358
103555
  Args: {
101359
103556
  p_result?: import("../integrations/supabase/types").Json;
@@ -101416,6 +103613,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101416
103613
  station_carts: number;
101417
103614
  }[];
101418
103615
  };
103616
+ logistics_control_complete_cart: {
103617
+ Args: {
103618
+ p_cart_id: string;
103619
+ };
103620
+ Returns: number;
103621
+ };
101419
103622
  logistics_control_scan_approve: {
101420
103623
  Args: {
101421
103624
  p_allow_reprint?: boolean;
@@ -101495,6 +103698,15 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101495
103698
  Args: never;
101496
103699
  Returns: import("../integrations/supabase/types").Json;
101497
103700
  };
103701
+ logistics_day_windows: {
103702
+ Args: {
103703
+ p_day: string;
103704
+ };
103705
+ Returns: {
103706
+ win_end: string;
103707
+ win_start: string;
103708
+ }[];
103709
+ };
101498
103710
  logistics_delay_customer_email: {
101499
103711
  Args: {
101500
103712
  p_customer: string;
@@ -101562,6 +103774,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101562
103774
  };
101563
103775
  Returns: import("../integrations/supabase/types").Json;
101564
103776
  };
103777
+ logistics_enqueue_shipping_note_with_slip: {
103778
+ Args: {
103779
+ _cart_id: string;
103780
+ _is_herprint: boolean;
103781
+ _printer_id: string;
103782
+ _queue_item_id: string;
103783
+ _session_id: string;
103784
+ _slip_job_id: string;
103785
+ };
103786
+ Returns: string;
103787
+ };
101565
103788
  logistics_enqueue_sticker_with_slip: {
101566
103789
  Args: {
101567
103790
  _cart_id: string;
@@ -101579,6 +103802,14 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101579
103802
  };
101580
103803
  Returns: string;
101581
103804
  };
103805
+ logistics_ensure_pick_data: {
103806
+ Args: {
103807
+ p_event_id?: string;
103808
+ p_missing?: import("../integrations/supabase/types").Json;
103809
+ p_ref: string;
103810
+ };
103811
+ Returns: import("../integrations/supabase/types").Json;
103812
+ };
101582
103813
  logistics_fail_task: {
101583
103814
  Args: {
101584
103815
  p_error: string;
@@ -101700,6 +103931,38 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101700
103931
  };
101701
103932
  Returns: string;
101702
103933
  };
103934
+ logistics_floriday_gate_status: {
103935
+ Args: never;
103936
+ Returns: import("../integrations/supabase/types").Json;
103937
+ };
103938
+ logistics_floriday_log_refusal: {
103939
+ Args: {
103940
+ _action?: string;
103941
+ _module?: string;
103942
+ _order_ref: string;
103943
+ _reason: string;
103944
+ _shell?: string;
103945
+ };
103946
+ Returns: undefined;
103947
+ };
103948
+ logistics_floriday_log_send: {
103949
+ Args: {
103950
+ _action: string;
103951
+ _detail?: string;
103952
+ _http_status?: number;
103953
+ _module?: string;
103954
+ _ok: boolean;
103955
+ _order_ref: string;
103956
+ _shell?: string;
103957
+ };
103958
+ Returns: undefined;
103959
+ };
103960
+ logistics_floriday_order_approved: {
103961
+ Args: {
103962
+ _order_ref: string;
103963
+ };
103964
+ Returns: boolean;
103965
+ };
101703
103966
  logistics_floriday_prune_pushes: {
101704
103967
  Args: {
101705
103968
  _days?: number;
@@ -101714,6 +103977,20 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101714
103977
  };
101715
103978
  Returns: string;
101716
103979
  };
103980
+ logistics_floriday_status_updates_enabled: {
103981
+ Args: never;
103982
+ Returns: boolean;
103983
+ };
103984
+ logistics_floriday_stock_updates_enabled: {
103985
+ Args: never;
103986
+ Returns: boolean;
103987
+ };
103988
+ logistics_floriday_write_allowed: {
103989
+ Args: {
103990
+ _action: string;
103991
+ };
103992
+ Returns: boolean;
103993
+ };
101717
103994
  logistics_fulfill_barcode_requests: {
101718
103995
  Args: {
101719
103996
  p_limit?: number;
@@ -101734,6 +104011,16 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101734
104011
  };
101735
104012
  Returns: boolean;
101736
104013
  };
104014
+ logistics_layout_method_status: {
104015
+ Args: never;
104016
+ Returns: import("../integrations/supabase/types").Json;
104017
+ };
104018
+ logistics_link_order_items: {
104019
+ Args: {
104020
+ p_order?: string;
104021
+ };
104022
+ Returns: import("../integrations/supabase/types").Json;
104023
+ };
101737
104024
  logistics_live_carriers: {
101738
104025
  Args: {
101739
104026
  p_order_ref: string;
@@ -101746,6 +104033,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101746
104033
  };
101747
104034
  Returns: number;
101748
104035
  };
104036
+ logistics_merge_partial_carts: {
104037
+ Args: {
104038
+ p_limit?: number;
104039
+ };
104040
+ Returns: import("../integrations/supabase/types").Json;
104041
+ };
101749
104042
  logistics_next_workday_date: {
101750
104043
  Args: {
101751
104044
  p_date: string;
@@ -101760,12 +104053,22 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101760
104053
  };
101761
104054
  Returns: string;
101762
104055
  };
104056
+ logistics_normalize_product_label: {
104057
+ Args: {
104058
+ p_label: string;
104059
+ };
104060
+ Returns: string;
104061
+ };
101763
104062
  logistics_not_past: {
101764
104063
  Args: {
101765
104064
  p_ts: string;
101766
104065
  };
101767
104066
  Returns: string;
101768
104067
  };
104068
+ logistics_opening_timezone: {
104069
+ Args: never;
104070
+ Returns: string;
104071
+ };
101769
104072
  logistics_order_cart_count: {
101770
104073
  Args: {
101771
104074
  p_order_ref: string;
@@ -101850,6 +104153,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101850
104153
  Args: never;
101851
104154
  Returns: import("../integrations/supabase/types").Json;
101852
104155
  };
104156
+ logistics_pick_partial_mode: {
104157
+ Args: never;
104158
+ Returns: string;
104159
+ };
101853
104160
  logistics_pick_start_estimate: {
101854
104161
  Args: {
101855
104162
  p_order: import("../integrations/supabase/types").Json;
@@ -101961,6 +104268,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
101961
104268
  };
101962
104269
  Returns: number;
101963
104270
  };
104271
+ logistics_prepare_pick_documents: {
104272
+ Args: {
104273
+ p_limit?: number;
104274
+ };
104275
+ Returns: import("../integrations/supabase/types").Json;
104276
+ };
101964
104277
  logistics_prune_buffer_member_queue: {
101965
104278
  Args: never;
101966
104279
  Returns: number;
@@ -102001,12 +104314,30 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102001
104314
  Args: never;
102002
104315
  Returns: import("../integrations/supabase/types").Json;
102003
104316
  };
104317
+ logistics_refresh_pick_queue_status: {
104318
+ Args: {
104319
+ p_ref: string;
104320
+ };
104321
+ Returns: number;
104322
+ };
102004
104323
  logistics_refresh_pickup_moments: {
102005
104324
  Args: {
102006
104325
  p_weeks?: number;
102007
104326
  };
102008
104327
  Returns: import("../integrations/supabase/types").Json;
102009
104328
  };
104329
+ logistics_replan_all: {
104330
+ Args: {
104331
+ p_reason?: string;
104332
+ };
104333
+ Returns: import("../integrations/supabase/types").Json;
104334
+ };
104335
+ logistics_replan_all_force: {
104336
+ Args: {
104337
+ p_reason?: string;
104338
+ };
104339
+ Returns: import("../integrations/supabase/types").Json;
104340
+ };
102010
104341
  logistics_report_delay: {
102011
104342
  Args: {
102012
104343
  p_expected_date?: string;
@@ -102060,6 +104391,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102060
104391
  };
102061
104392
  Returns: import("../integrations/supabase/types").Json;
102062
104393
  };
104394
+ logistics_resolve_product_id: {
104395
+ Args: {
104396
+ p_label: string;
104397
+ };
104398
+ Returns: string;
104399
+ };
102063
104400
  logistics_resolve_settings: {
102064
104401
  Args: {
102065
104402
  p_config_id: string;
@@ -102145,6 +104482,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102145
104482
  };
102146
104483
  Returns: string;
102147
104484
  };
104485
+ logistics_shipping_note_follows_slip: {
104486
+ Args: never;
104487
+ Returns: boolean;
104488
+ };
102148
104489
  logistics_shipping_note_from_barcode: {
102149
104490
  Args: {
102150
104491
  p_allow_reprint?: boolean;
@@ -102157,6 +104498,14 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102157
104498
  Args: never;
102158
104499
  Returns: boolean;
102159
104500
  };
104501
+ logistics_subtract_working_minutes: {
104502
+ Args: {
104503
+ p_deadline: string;
104504
+ p_max_workdays?: number;
104505
+ p_minutes: number;
104506
+ };
104507
+ Returns: import("../integrations/supabase/types").Json;
104508
+ };
102160
104509
  logistics_supersede_stale_tasks: {
102161
104510
  Args: {
102162
104511
  p_keep: string[];
@@ -102193,6 +104542,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102193
104542
  Args: never;
102194
104543
  Returns: string;
102195
104544
  };
104545
+ logistics_timezone_options: {
104546
+ Args: never;
104547
+ Returns: {
104548
+ name: string;
104549
+ }[];
104550
+ };
102196
104551
  logistics_upsert_task: {
102197
104552
  Args: {
102198
104553
  p_buffer_ref: string;
@@ -102212,6 +104567,16 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102212
104567
  };
102213
104568
  Returns: string;
102214
104569
  };
104570
+ logistics_valid_timezone: {
104571
+ Args: {
104572
+ _tz: string;
104573
+ };
104574
+ Returns: boolean;
104575
+ };
104576
+ logistics_working_hours_status: {
104577
+ Args: never;
104578
+ Returns: import("../integrations/supabase/types").Json;
104579
+ };
102215
104580
  logistics_write_buffer_layer_positions: {
102216
104581
  Args: {
102217
104582
  p_buffer_id: string;
@@ -102377,6 +104742,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
102377
104742
  online: boolean;
102378
104743
  }[];
102379
104744
  };
104745
+ pick_apply_buffer_events: {
104746
+ Args: never;
104747
+ Returns: import("../integrations/supabase/types").Json;
104748
+ };
102380
104749
  pick_available_pick_days: {
102381
104750
  Args: {
102382
104751
  _max_days?: number;
@@ -103653,6 +106022,13 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103653
106022
  };
103654
106023
  Returns: number;
103655
106024
  };
106025
+ schedule_floriday_catalog_prices_sync: {
106026
+ Args: {
106027
+ p_apikey: string;
106028
+ p_url: string;
106029
+ };
106030
+ Returns: number;
106031
+ };
103656
106032
  schedule_floriday_clock_presales_sync: {
103657
106033
  Args: {
103658
106034
  p_apikey: string;
@@ -103953,6 +106329,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
103953
106329
  };
103954
106330
  Returns: undefined;
103955
106331
  };
106332
+ sync_floriday_prices_into_price_groups: {
106333
+ Args: never;
106334
+ Returns: number;
106335
+ };
103956
106336
  sync_layer_stock: {
103957
106337
  Args: {
103958
106338
  p_product_id: string;