@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
@@ -5860,6 +5860,84 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
5860
5860
  referencedColumns: ["id"];
5861
5861
  }];
5862
5862
  };
5863
+ floriday_catalog_prices_cache: {
5864
+ Row: {
5865
+ connection_id: string;
5866
+ created_at: string;
5867
+ currency: string;
5868
+ id: string;
5869
+ is_deleted: boolean;
5870
+ price: number | null;
5871
+ price_group_id: string | null;
5872
+ price_group_name: string | null;
5873
+ price_type: string;
5874
+ raw: import("../integrations/supabase/types").Json | null;
5875
+ sales_unit: string | null;
5876
+ sequence_number: number;
5877
+ supplier_article_code: string | null;
5878
+ supply_line_id: string;
5879
+ synced_at: string;
5880
+ trade_item_id: string | null;
5881
+ updated_at: string;
5882
+ valid_from: string | null;
5883
+ valid_to: string | null;
5884
+ week: number | null;
5885
+ year: number | null;
5886
+ };
5887
+ Insert: {
5888
+ connection_id: string;
5889
+ created_at?: string;
5890
+ currency?: string;
5891
+ id?: string;
5892
+ is_deleted?: boolean;
5893
+ price?: number | null;
5894
+ price_group_id?: string | null;
5895
+ price_group_name?: string | null;
5896
+ price_type?: string;
5897
+ raw?: import("../integrations/supabase/types").Json | null;
5898
+ sales_unit?: string | null;
5899
+ sequence_number?: number;
5900
+ supplier_article_code?: string | null;
5901
+ supply_line_id: string;
5902
+ synced_at?: string;
5903
+ trade_item_id?: string | null;
5904
+ updated_at?: string;
5905
+ valid_from?: string | null;
5906
+ valid_to?: string | null;
5907
+ week?: number | null;
5908
+ year?: number | null;
5909
+ };
5910
+ Update: {
5911
+ connection_id?: string;
5912
+ created_at?: string;
5913
+ currency?: string;
5914
+ id?: string;
5915
+ is_deleted?: boolean;
5916
+ price?: number | null;
5917
+ price_group_id?: string | null;
5918
+ price_group_name?: string | null;
5919
+ price_type?: string;
5920
+ raw?: import("../integrations/supabase/types").Json | null;
5921
+ sales_unit?: string | null;
5922
+ sequence_number?: number;
5923
+ supplier_article_code?: string | null;
5924
+ supply_line_id?: string;
5925
+ synced_at?: string;
5926
+ trade_item_id?: string | null;
5927
+ updated_at?: string;
5928
+ valid_from?: string | null;
5929
+ valid_to?: string | null;
5930
+ week?: number | null;
5931
+ year?: number | null;
5932
+ };
5933
+ Relationships: [{
5934
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5935
+ columns: ["connection_id"];
5936
+ isOneToOne: false;
5937
+ referencedRelation: "floriday_connections";
5938
+ referencedColumns: ["id"];
5939
+ }];
5940
+ };
5863
5941
  floriday_clock_presales_cache: {
5864
5942
  Row: {
5865
5943
  buyer_organization_id: string | null;
@@ -10126,6 +10204,36 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
10126
10204
  };
10127
10205
  Relationships: [];
10128
10206
  };
10207
+ logistics_floriday_push_refusals: {
10208
+ Row: {
10209
+ action: string | null;
10210
+ created_at: string;
10211
+ id: string;
10212
+ order_ref: string;
10213
+ reason: string;
10214
+ source_module: string | null;
10215
+ source_shell: string | null;
10216
+ };
10217
+ Insert: {
10218
+ action?: string | null;
10219
+ created_at?: string;
10220
+ id?: string;
10221
+ order_ref: string;
10222
+ reason: string;
10223
+ source_module?: string | null;
10224
+ source_shell?: string | null;
10225
+ };
10226
+ Update: {
10227
+ action?: string | null;
10228
+ created_at?: string;
10229
+ id?: string;
10230
+ order_ref?: string;
10231
+ reason?: string;
10232
+ source_module?: string | null;
10233
+ source_shell?: string | null;
10234
+ };
10235
+ Relationships: [];
10236
+ };
10129
10237
  logistics_floriday_pushes: {
10130
10238
  Row: {
10131
10239
  attempts: number;
@@ -10201,6 +10309,42 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
10201
10309
  };
10202
10310
  Relationships: [];
10203
10311
  };
10312
+ logistics_floriday_status_sends: {
10313
+ Row: {
10314
+ action: string;
10315
+ created_at: string;
10316
+ detail: string | null;
10317
+ http_status: number | null;
10318
+ id: string;
10319
+ ok: boolean;
10320
+ order_ref: string;
10321
+ source_module: string | null;
10322
+ source_shell: string | null;
10323
+ };
10324
+ Insert: {
10325
+ action: string;
10326
+ created_at?: string;
10327
+ detail?: string | null;
10328
+ http_status?: number | null;
10329
+ id?: string;
10330
+ ok?: boolean;
10331
+ order_ref: string;
10332
+ source_module?: string | null;
10333
+ source_shell?: string | null;
10334
+ };
10335
+ Update: {
10336
+ action?: string;
10337
+ created_at?: string;
10338
+ detail?: string | null;
10339
+ http_status?: number | null;
10340
+ id?: string;
10341
+ ok?: boolean;
10342
+ order_ref?: string;
10343
+ source_module?: string | null;
10344
+ source_shell?: string | null;
10345
+ };
10346
+ Relationships: [];
10347
+ };
10204
10348
  logistics_formulas: {
10205
10349
  Row: {
10206
10350
  created_at: string;
@@ -10273,6 +10417,108 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
10273
10417
  };
10274
10418
  Relationships: [];
10275
10419
  };
10420
+ logistics_opening_exceptions: {
10421
+ Row: {
10422
+ closes: string | null;
10423
+ created_at: string;
10424
+ day: string;
10425
+ id: string;
10426
+ is_closed: boolean;
10427
+ note: string | null;
10428
+ opens: string | null;
10429
+ };
10430
+ Insert: {
10431
+ closes?: string | null;
10432
+ created_at?: string;
10433
+ day: string;
10434
+ id?: string;
10435
+ is_closed?: boolean;
10436
+ note?: string | null;
10437
+ opens?: string | null;
10438
+ };
10439
+ Update: {
10440
+ closes?: string | null;
10441
+ created_at?: string;
10442
+ day?: string;
10443
+ id?: string;
10444
+ is_closed?: boolean;
10445
+ note?: string | null;
10446
+ opens?: string | null;
10447
+ };
10448
+ Relationships: [];
10449
+ };
10450
+ logistics_opening_hours: {
10451
+ Row: {
10452
+ closes: string;
10453
+ created_at: string;
10454
+ id: string;
10455
+ is_active: boolean;
10456
+ note: string | null;
10457
+ opens: string;
10458
+ weekday: number;
10459
+ };
10460
+ Insert: {
10461
+ closes: string;
10462
+ created_at?: string;
10463
+ id?: string;
10464
+ is_active?: boolean;
10465
+ note?: string | null;
10466
+ opens: string;
10467
+ weekday: number;
10468
+ };
10469
+ Update: {
10470
+ closes?: string;
10471
+ created_at?: string;
10472
+ id?: string;
10473
+ is_active?: boolean;
10474
+ note?: string | null;
10475
+ opens?: string;
10476
+ weekday?: number;
10477
+ };
10478
+ Relationships: [];
10479
+ };
10480
+ logistics_pick_data_requests: {
10481
+ Row: {
10482
+ actions: import("../integrations/supabase/types").Json;
10483
+ created_at: string;
10484
+ event_id: string | null;
10485
+ finished_at: string | null;
10486
+ id: string;
10487
+ missing: import("../integrations/supabase/types").Json;
10488
+ order_ref: string;
10489
+ reason: string | null;
10490
+ result: import("../integrations/supabase/types").Json | null;
10491
+ status: string;
10492
+ unit_ref: string | null;
10493
+ };
10494
+ Insert: {
10495
+ actions?: import("../integrations/supabase/types").Json;
10496
+ created_at?: string;
10497
+ event_id?: string | null;
10498
+ finished_at?: string | null;
10499
+ id?: string;
10500
+ missing?: import("../integrations/supabase/types").Json;
10501
+ order_ref: string;
10502
+ reason?: string | null;
10503
+ result?: import("../integrations/supabase/types").Json | null;
10504
+ status?: string;
10505
+ unit_ref?: string | null;
10506
+ };
10507
+ Update: {
10508
+ actions?: import("../integrations/supabase/types").Json;
10509
+ created_at?: string;
10510
+ event_id?: string | null;
10511
+ finished_at?: string | null;
10512
+ id?: string;
10513
+ missing?: import("../integrations/supabase/types").Json;
10514
+ order_ref?: string;
10515
+ reason?: string | null;
10516
+ result?: import("../integrations/supabase/types").Json | null;
10517
+ status?: string;
10518
+ unit_ref?: string | null;
10519
+ };
10520
+ Relationships: [];
10521
+ };
10276
10522
  logistics_pickup_moments: {
10277
10523
  Row: {
10278
10524
  carrier_ref: string | null;
@@ -11065,6 +11311,24 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
11065
11311
  };
11066
11312
  Relationships: [];
11067
11313
  };
11314
+ logistics_time_settings: {
11315
+ Row: {
11316
+ id: boolean;
11317
+ timezone: string;
11318
+ updated_at: string;
11319
+ };
11320
+ Insert: {
11321
+ id?: boolean;
11322
+ timezone: string;
11323
+ updated_at?: string;
11324
+ };
11325
+ Update: {
11326
+ id?: boolean;
11327
+ timezone?: string;
11328
+ updated_at?: string;
11329
+ };
11330
+ Relationships: [];
11331
+ };
11068
11332
  logistics_variables: {
11069
11333
  Row: {
11070
11334
  created_at: string;
@@ -13455,6 +13719,7 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
13455
13719
  customer_name: string;
13456
13720
  deleted_at: string | null;
13457
13721
  delivery_date: string | null;
13722
+ floriday_order_group_key: string | null;
13458
13723
  floriday_sales_order_id: string | null;
13459
13724
  id: string;
13460
13725
  invoice_due_at: string | null;
@@ -13482,6 +13747,7 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
13482
13747
  customer_name?: string;
13483
13748
  deleted_at?: string | null;
13484
13749
  delivery_date?: string | null;
13750
+ floriday_order_group_key?: string | null;
13485
13751
  floriday_sales_order_id?: string | null;
13486
13752
  id?: string;
13487
13753
  invoice_due_at?: string | null;
@@ -13509,6 +13775,7 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
13509
13775
  customer_name?: string;
13510
13776
  deleted_at?: string | null;
13511
13777
  delivery_date?: string | null;
13778
+ floriday_order_group_key?: string | null;
13512
13779
  floriday_sales_order_id?: string | null;
13513
13780
  id?: string;
13514
13781
  invoice_due_at?: string | null;
@@ -13702,6 +13969,27 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
13702
13969
  };
13703
13970
  Relationships: [];
13704
13971
  };
13972
+ pick_buffer_event_cursor: {
13973
+ Row: {
13974
+ created_at: string;
13975
+ id: boolean;
13976
+ last_event_at: string;
13977
+ updated_at: string;
13978
+ };
13979
+ Insert: {
13980
+ created_at?: string;
13981
+ id?: boolean;
13982
+ last_event_at?: string;
13983
+ updated_at?: string;
13984
+ };
13985
+ Update: {
13986
+ created_at?: string;
13987
+ id?: boolean;
13988
+ last_event_at?: string;
13989
+ updated_at?: string;
13990
+ };
13991
+ Relationships: [];
13992
+ };
13705
13993
  pick_countries: {
13706
13994
  Row: {
13707
13995
  active: boolean;
@@ -19351,6 +19639,36 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19351
19639
  referencedColumns: ["id"];
19352
19640
  }];
19353
19641
  };
19642
+ voorraad_buffer_state: {
19643
+ Row: {
19644
+ buffer_id: string;
19645
+ buffer_key: string | null;
19646
+ closed_at: string | null;
19647
+ created_at: string;
19648
+ detached_orders: import("../integrations/supabase/types").Json;
19649
+ reason: string | null;
19650
+ updated_at: string;
19651
+ };
19652
+ Insert: {
19653
+ buffer_id: string;
19654
+ buffer_key?: string | null;
19655
+ closed_at?: string | null;
19656
+ created_at?: string;
19657
+ detached_orders?: import("../integrations/supabase/types").Json;
19658
+ reason?: string | null;
19659
+ updated_at?: string;
19660
+ };
19661
+ Update: {
19662
+ buffer_id?: string;
19663
+ buffer_key?: string | null;
19664
+ closed_at?: string | null;
19665
+ created_at?: string;
19666
+ detached_orders?: import("../integrations/supabase/types").Json;
19667
+ reason?: string | null;
19668
+ updated_at?: string;
19669
+ };
19670
+ Relationships: [];
19671
+ };
19354
19672
  voorraad_custom_fields: {
19355
19673
  Row: {
19356
19674
  created_at: string;
@@ -19393,6 +19711,36 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19393
19711
  };
19394
19712
  Relationships: [];
19395
19713
  };
19714
+ voorraad_logistics_event_log: {
19715
+ Row: {
19716
+ created_at: string;
19717
+ event_id: string;
19718
+ event_type: string;
19719
+ order_ref: string | null;
19720
+ processed_at: string;
19721
+ result: import("../integrations/supabase/types").Json;
19722
+ updated_at: string;
19723
+ };
19724
+ Insert: {
19725
+ created_at?: string;
19726
+ event_id: string;
19727
+ event_type: string;
19728
+ order_ref?: string | null;
19729
+ processed_at?: string;
19730
+ result?: import("../integrations/supabase/types").Json;
19731
+ updated_at?: string;
19732
+ };
19733
+ Update: {
19734
+ created_at?: string;
19735
+ event_id?: string;
19736
+ event_type?: string;
19737
+ order_ref?: string | null;
19738
+ processed_at?: string;
19739
+ result?: import("../integrations/supabase/types").Json;
19740
+ updated_at?: string;
19741
+ };
19742
+ Relationships: [];
19743
+ };
19396
19744
  voorraad_media_upload_failures: {
19397
19745
  Row: {
19398
19746
  action: string;
@@ -22218,6 +22566,17 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
22218
22566
  };
22219
22567
  Returns: boolean;
22220
22568
  };
22569
+ floriday_adopt_connection: {
22570
+ Args: {
22571
+ p_new: string;
22572
+ p_old: string;
22573
+ };
22574
+ Returns: import("../integrations/supabase/types").Json;
22575
+ };
22576
+ floriday_autoheal_connections: {
22577
+ Args: never;
22578
+ Returns: import("../integrations/supabase/types").Json;
22579
+ };
22221
22580
  floriday_capture_stock_snapshot: {
22222
22581
  Args: never;
22223
22582
  Returns: number;
@@ -22275,6 +22634,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
22275
22634
  };
22276
22635
  Returns: undefined;
22277
22636
  };
22637
+ floriday_relink_products: {
22638
+ Args: {
22639
+ p_connection_id?: string;
22640
+ };
22641
+ Returns: import("../integrations/supabase/types").Json;
22642
+ };
22278
22643
  floriday_requeue_dead_letters: {
22279
22644
  Args: {
22280
22645
  p_connection_id?: string;
@@ -22896,6 +23261,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
22896
23261
  };
22897
23262
  Returns: string;
22898
23263
  };
23264
+ logistics_active_layout_method: {
23265
+ Args: never;
23266
+ Returns: string;
23267
+ };
22899
23268
  logistics_active_pick_workdays: {
22900
23269
  Args: never;
22901
23270
  Returns: string[];
@@ -23003,6 +23372,15 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23003
23372
  };
23004
23373
  Returns: boolean;
23005
23374
  };
23375
+ logistics_buffer_notify: {
23376
+ Args: {
23377
+ p_event_type: string;
23378
+ p_idempotency_key: string;
23379
+ p_order_ref: string;
23380
+ p_payload: import("../integrations/supabase/types").Json;
23381
+ };
23382
+ Returns: string;
23383
+ };
23006
23384
  logistics_buffer_open_key: {
23007
23385
  Args: {
23008
23386
  p_base_key: string;
@@ -23061,6 +23439,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23061
23439
  };
23062
23440
  Returns: string;
23063
23441
  };
23442
+ logistics_cart_checkin_at: {
23443
+ Args: {
23444
+ p_cart_id: string;
23445
+ };
23446
+ Returns: string;
23447
+ };
23064
23448
  logistics_cart_handled: {
23065
23449
  Args: {
23066
23450
  p_cart_index: number;
@@ -23094,10 +23478,22 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23094
23478
  task_status: string;
23095
23479
  }[];
23096
23480
  };
23481
+ logistics_cart_is_full: {
23482
+ Args: {
23483
+ p_cart_id: string;
23484
+ };
23485
+ Returns: boolean;
23486
+ };
23097
23487
  logistics_cart_layout_method: {
23098
23488
  Args: never;
23099
23489
  Returns: import("../integrations/supabase/types").Json;
23100
23490
  };
23491
+ logistics_cart_order_refs: {
23492
+ Args: {
23493
+ p_cart_id: string;
23494
+ };
23495
+ Returns: string[];
23496
+ };
23101
23497
  logistics_cart_plan_overview: {
23102
23498
  Args: {
23103
23499
  p_days?: number;
@@ -23117,6 +23513,18 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23117
23513
  };
23118
23514
  Returns: import("../integrations/supabase/types").Json;
23119
23515
  };
23516
+ logistics_cart_release_reason: {
23517
+ Args: {
23518
+ p_cart_id: string;
23519
+ };
23520
+ Returns: string;
23521
+ };
23522
+ logistics_cart_released: {
23523
+ Args: {
23524
+ p_cart_id: string;
23525
+ };
23526
+ Returns: boolean;
23527
+ };
23120
23528
  logistics_cart_seq: {
23121
23529
  Args: {
23122
23530
  p_order_uuid?: string;
@@ -23270,6 +23678,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23270
23678
  isSetofReturn: false;
23271
23679
  };
23272
23680
  };
23681
+ logistics_cleanup_orphan_print_jobs: {
23682
+ Args: never;
23683
+ Returns: import("../integrations/supabase/types").Json;
23684
+ };
23273
23685
  logistics_complete_task: {
23274
23686
  Args: {
23275
23687
  p_result?: import("../integrations/supabase/types").Json;
@@ -23332,6 +23744,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23332
23744
  station_carts: number;
23333
23745
  }[];
23334
23746
  };
23747
+ logistics_control_complete_cart: {
23748
+ Args: {
23749
+ p_cart_id: string;
23750
+ };
23751
+ Returns: number;
23752
+ };
23335
23753
  logistics_control_scan_approve: {
23336
23754
  Args: {
23337
23755
  p_allow_reprint?: boolean;
@@ -23411,6 +23829,15 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23411
23829
  Args: never;
23412
23830
  Returns: import("../integrations/supabase/types").Json;
23413
23831
  };
23832
+ logistics_day_windows: {
23833
+ Args: {
23834
+ p_day: string;
23835
+ };
23836
+ Returns: {
23837
+ win_end: string;
23838
+ win_start: string;
23839
+ }[];
23840
+ };
23414
23841
  logistics_delay_customer_email: {
23415
23842
  Args: {
23416
23843
  p_customer: string;
@@ -23478,6 +23905,17 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23478
23905
  };
23479
23906
  Returns: import("../integrations/supabase/types").Json;
23480
23907
  };
23908
+ logistics_enqueue_shipping_note_with_slip: {
23909
+ Args: {
23910
+ _cart_id: string;
23911
+ _is_herprint: boolean;
23912
+ _printer_id: string;
23913
+ _queue_item_id: string;
23914
+ _session_id: string;
23915
+ _slip_job_id: string;
23916
+ };
23917
+ Returns: string;
23918
+ };
23481
23919
  logistics_enqueue_sticker_with_slip: {
23482
23920
  Args: {
23483
23921
  _cart_id: string;
@@ -23495,6 +23933,14 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23495
23933
  };
23496
23934
  Returns: string;
23497
23935
  };
23936
+ logistics_ensure_pick_data: {
23937
+ Args: {
23938
+ p_event_id?: string;
23939
+ p_missing?: import("../integrations/supabase/types").Json;
23940
+ p_ref: string;
23941
+ };
23942
+ Returns: import("../integrations/supabase/types").Json;
23943
+ };
23498
23944
  logistics_fail_task: {
23499
23945
  Args: {
23500
23946
  p_error: string;
@@ -23616,6 +24062,38 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23616
24062
  };
23617
24063
  Returns: string;
23618
24064
  };
24065
+ logistics_floriday_gate_status: {
24066
+ Args: never;
24067
+ Returns: import("../integrations/supabase/types").Json;
24068
+ };
24069
+ logistics_floriday_log_refusal: {
24070
+ Args: {
24071
+ _action?: string;
24072
+ _module?: string;
24073
+ _order_ref: string;
24074
+ _reason: string;
24075
+ _shell?: string;
24076
+ };
24077
+ Returns: undefined;
24078
+ };
24079
+ logistics_floriday_log_send: {
24080
+ Args: {
24081
+ _action: string;
24082
+ _detail?: string;
24083
+ _http_status?: number;
24084
+ _module?: string;
24085
+ _ok: boolean;
24086
+ _order_ref: string;
24087
+ _shell?: string;
24088
+ };
24089
+ Returns: undefined;
24090
+ };
24091
+ logistics_floriday_order_approved: {
24092
+ Args: {
24093
+ _order_ref: string;
24094
+ };
24095
+ Returns: boolean;
24096
+ };
23619
24097
  logistics_floriday_prune_pushes: {
23620
24098
  Args: {
23621
24099
  _days?: number;
@@ -23630,6 +24108,20 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23630
24108
  };
23631
24109
  Returns: string;
23632
24110
  };
24111
+ logistics_floriday_status_updates_enabled: {
24112
+ Args: never;
24113
+ Returns: boolean;
24114
+ };
24115
+ logistics_floriday_stock_updates_enabled: {
24116
+ Args: never;
24117
+ Returns: boolean;
24118
+ };
24119
+ logistics_floriday_write_allowed: {
24120
+ Args: {
24121
+ _action: string;
24122
+ };
24123
+ Returns: boolean;
24124
+ };
23633
24125
  logistics_fulfill_barcode_requests: {
23634
24126
  Args: {
23635
24127
  p_limit?: number;
@@ -23650,6 +24142,16 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23650
24142
  };
23651
24143
  Returns: boolean;
23652
24144
  };
24145
+ logistics_layout_method_status: {
24146
+ Args: never;
24147
+ Returns: import("../integrations/supabase/types").Json;
24148
+ };
24149
+ logistics_link_order_items: {
24150
+ Args: {
24151
+ p_order?: string;
24152
+ };
24153
+ Returns: import("../integrations/supabase/types").Json;
24154
+ };
23653
24155
  logistics_live_carriers: {
23654
24156
  Args: {
23655
24157
  p_order_ref: string;
@@ -23662,6 +24164,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23662
24164
  };
23663
24165
  Returns: number;
23664
24166
  };
24167
+ logistics_merge_partial_carts: {
24168
+ Args: {
24169
+ p_limit?: number;
24170
+ };
24171
+ Returns: import("../integrations/supabase/types").Json;
24172
+ };
23665
24173
  logistics_next_workday_date: {
23666
24174
  Args: {
23667
24175
  p_date: string;
@@ -23676,12 +24184,22 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23676
24184
  };
23677
24185
  Returns: string;
23678
24186
  };
24187
+ logistics_normalize_product_label: {
24188
+ Args: {
24189
+ p_label: string;
24190
+ };
24191
+ Returns: string;
24192
+ };
23679
24193
  logistics_not_past: {
23680
24194
  Args: {
23681
24195
  p_ts: string;
23682
24196
  };
23683
24197
  Returns: string;
23684
24198
  };
24199
+ logistics_opening_timezone: {
24200
+ Args: never;
24201
+ Returns: string;
24202
+ };
23685
24203
  logistics_order_cart_count: {
23686
24204
  Args: {
23687
24205
  p_order_ref: string;
@@ -23766,6 +24284,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23766
24284
  Args: never;
23767
24285
  Returns: import("../integrations/supabase/types").Json;
23768
24286
  };
24287
+ logistics_pick_partial_mode: {
24288
+ Args: never;
24289
+ Returns: string;
24290
+ };
23769
24291
  logistics_pick_start_estimate: {
23770
24292
  Args: {
23771
24293
  p_order: import("../integrations/supabase/types").Json;
@@ -23877,6 +24399,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23877
24399
  };
23878
24400
  Returns: number;
23879
24401
  };
24402
+ logistics_prepare_pick_documents: {
24403
+ Args: {
24404
+ p_limit?: number;
24405
+ };
24406
+ Returns: import("../integrations/supabase/types").Json;
24407
+ };
23880
24408
  logistics_prune_buffer_member_queue: {
23881
24409
  Args: never;
23882
24410
  Returns: number;
@@ -23917,12 +24445,30 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23917
24445
  Args: never;
23918
24446
  Returns: import("../integrations/supabase/types").Json;
23919
24447
  };
24448
+ logistics_refresh_pick_queue_status: {
24449
+ Args: {
24450
+ p_ref: string;
24451
+ };
24452
+ Returns: number;
24453
+ };
23920
24454
  logistics_refresh_pickup_moments: {
23921
24455
  Args: {
23922
24456
  p_weeks?: number;
23923
24457
  };
23924
24458
  Returns: import("../integrations/supabase/types").Json;
23925
24459
  };
24460
+ logistics_replan_all: {
24461
+ Args: {
24462
+ p_reason?: string;
24463
+ };
24464
+ Returns: import("../integrations/supabase/types").Json;
24465
+ };
24466
+ logistics_replan_all_force: {
24467
+ Args: {
24468
+ p_reason?: string;
24469
+ };
24470
+ Returns: import("../integrations/supabase/types").Json;
24471
+ };
23926
24472
  logistics_report_delay: {
23927
24473
  Args: {
23928
24474
  p_expected_date?: string;
@@ -23976,6 +24522,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
23976
24522
  };
23977
24523
  Returns: import("../integrations/supabase/types").Json;
23978
24524
  };
24525
+ logistics_resolve_product_id: {
24526
+ Args: {
24527
+ p_label: string;
24528
+ };
24529
+ Returns: string;
24530
+ };
23979
24531
  logistics_resolve_settings: {
23980
24532
  Args: {
23981
24533
  p_config_id: string;
@@ -24061,6 +24613,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24061
24613
  };
24062
24614
  Returns: string;
24063
24615
  };
24616
+ logistics_shipping_note_follows_slip: {
24617
+ Args: never;
24618
+ Returns: boolean;
24619
+ };
24064
24620
  logistics_shipping_note_from_barcode: {
24065
24621
  Args: {
24066
24622
  p_allow_reprint?: boolean;
@@ -24073,6 +24629,14 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24073
24629
  Args: never;
24074
24630
  Returns: boolean;
24075
24631
  };
24632
+ logistics_subtract_working_minutes: {
24633
+ Args: {
24634
+ p_deadline: string;
24635
+ p_max_workdays?: number;
24636
+ p_minutes: number;
24637
+ };
24638
+ Returns: import("../integrations/supabase/types").Json;
24639
+ };
24076
24640
  logistics_supersede_stale_tasks: {
24077
24641
  Args: {
24078
24642
  p_keep: string[];
@@ -24109,6 +24673,12 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24109
24673
  Args: never;
24110
24674
  Returns: string;
24111
24675
  };
24676
+ logistics_timezone_options: {
24677
+ Args: never;
24678
+ Returns: {
24679
+ name: string;
24680
+ }[];
24681
+ };
24112
24682
  logistics_upsert_task: {
24113
24683
  Args: {
24114
24684
  p_buffer_ref: string;
@@ -24128,6 +24698,16 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24128
24698
  };
24129
24699
  Returns: string;
24130
24700
  };
24701
+ logistics_valid_timezone: {
24702
+ Args: {
24703
+ _tz: string;
24704
+ };
24705
+ Returns: boolean;
24706
+ };
24707
+ logistics_working_hours_status: {
24708
+ Args: never;
24709
+ Returns: import("../integrations/supabase/types").Json;
24710
+ };
24131
24711
  logistics_write_buffer_layer_positions: {
24132
24712
  Args: {
24133
24713
  p_buffer_id: string;
@@ -24293,6 +24873,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
24293
24873
  online: boolean;
24294
24874
  }[];
24295
24875
  };
24876
+ pick_apply_buffer_events: {
24877
+ Args: never;
24878
+ Returns: import("../integrations/supabase/types").Json;
24879
+ };
24296
24880
  pick_available_pick_days: {
24297
24881
  Args: {
24298
24882
  _max_days?: number;
@@ -25569,6 +26153,13 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
25569
26153
  };
25570
26154
  Returns: number;
25571
26155
  };
26156
+ schedule_floriday_catalog_prices_sync: {
26157
+ Args: {
26158
+ p_apikey: string;
26159
+ p_url: string;
26160
+ };
26161
+ Returns: number;
26162
+ };
25572
26163
  schedule_floriday_clock_presales_sync: {
25573
26164
  Args: {
25574
26165
  p_apikey: string;
@@ -25869,6 +26460,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
25869
26460
  };
25870
26461
  Returns: undefined;
25871
26462
  };
26463
+ sync_floriday_prices_into_price_groups: {
26464
+ Args: never;
26465
+ Returns: number;
26466
+ };
25872
26467
  sync_layer_stock: {
25873
26468
  Args: {
25874
26469
  p_product_id: string;
@@ -31897,6 +32492,84 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
31897
32492
  referencedColumns: ["id"];
31898
32493
  }];
31899
32494
  };
32495
+ floriday_catalog_prices_cache: {
32496
+ Row: {
32497
+ connection_id: string;
32498
+ created_at: string;
32499
+ currency: string;
32500
+ id: string;
32501
+ is_deleted: boolean;
32502
+ price: number | null;
32503
+ price_group_id: string | null;
32504
+ price_group_name: string | null;
32505
+ price_type: string;
32506
+ raw: import("../integrations/supabase/types").Json | null;
32507
+ sales_unit: string | null;
32508
+ sequence_number: number;
32509
+ supplier_article_code: string | null;
32510
+ supply_line_id: string;
32511
+ synced_at: string;
32512
+ trade_item_id: string | null;
32513
+ updated_at: string;
32514
+ valid_from: string | null;
32515
+ valid_to: string | null;
32516
+ week: number | null;
32517
+ year: number | null;
32518
+ };
32519
+ Insert: {
32520
+ connection_id: string;
32521
+ created_at?: string;
32522
+ currency?: string;
32523
+ id?: string;
32524
+ is_deleted?: boolean;
32525
+ price?: number | null;
32526
+ price_group_id?: string | null;
32527
+ price_group_name?: string | null;
32528
+ price_type?: string;
32529
+ raw?: import("../integrations/supabase/types").Json | null;
32530
+ sales_unit?: string | null;
32531
+ sequence_number?: number;
32532
+ supplier_article_code?: string | null;
32533
+ supply_line_id: string;
32534
+ synced_at?: string;
32535
+ trade_item_id?: string | null;
32536
+ updated_at?: string;
32537
+ valid_from?: string | null;
32538
+ valid_to?: string | null;
32539
+ week?: number | null;
32540
+ year?: number | null;
32541
+ };
32542
+ Update: {
32543
+ connection_id?: string;
32544
+ created_at?: string;
32545
+ currency?: string;
32546
+ id?: string;
32547
+ is_deleted?: boolean;
32548
+ price?: number | null;
32549
+ price_group_id?: string | null;
32550
+ price_group_name?: string | null;
32551
+ price_type?: string;
32552
+ raw?: import("../integrations/supabase/types").Json | null;
32553
+ sales_unit?: string | null;
32554
+ sequence_number?: number;
32555
+ supplier_article_code?: string | null;
32556
+ supply_line_id?: string;
32557
+ synced_at?: string;
32558
+ trade_item_id?: string | null;
32559
+ updated_at?: string;
32560
+ valid_from?: string | null;
32561
+ valid_to?: string | null;
32562
+ week?: number | null;
32563
+ year?: number | null;
32564
+ };
32565
+ Relationships: [{
32566
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32567
+ columns: ["connection_id"];
32568
+ isOneToOne: false;
32569
+ referencedRelation: "floriday_connections";
32570
+ referencedColumns: ["id"];
32571
+ }];
32572
+ };
31900
32573
  floriday_clock_presales_cache: {
31901
32574
  Row: {
31902
32575
  buyer_organization_id: string | null;
@@ -36163,6 +36836,36 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
36163
36836
  };
36164
36837
  Relationships: [];
36165
36838
  };
36839
+ logistics_floriday_push_refusals: {
36840
+ Row: {
36841
+ action: string | null;
36842
+ created_at: string;
36843
+ id: string;
36844
+ order_ref: string;
36845
+ reason: string;
36846
+ source_module: string | null;
36847
+ source_shell: string | null;
36848
+ };
36849
+ Insert: {
36850
+ action?: string | null;
36851
+ created_at?: string;
36852
+ id?: string;
36853
+ order_ref: string;
36854
+ reason: string;
36855
+ source_module?: string | null;
36856
+ source_shell?: string | null;
36857
+ };
36858
+ Update: {
36859
+ action?: string | null;
36860
+ created_at?: string;
36861
+ id?: string;
36862
+ order_ref?: string;
36863
+ reason?: string;
36864
+ source_module?: string | null;
36865
+ source_shell?: string | null;
36866
+ };
36867
+ Relationships: [];
36868
+ };
36166
36869
  logistics_floriday_pushes: {
36167
36870
  Row: {
36168
36871
  attempts: number;
@@ -36238,6 +36941,42 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
36238
36941
  };
36239
36942
  Relationships: [];
36240
36943
  };
36944
+ logistics_floriday_status_sends: {
36945
+ Row: {
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
+ Insert: {
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
+ Update: {
36968
+ action?: string;
36969
+ created_at?: string;
36970
+ detail?: string | null;
36971
+ http_status?: number | null;
36972
+ id?: string;
36973
+ ok?: boolean;
36974
+ order_ref?: string;
36975
+ source_module?: string | null;
36976
+ source_shell?: string | null;
36977
+ };
36978
+ Relationships: [];
36979
+ };
36241
36980
  logistics_formulas: {
36242
36981
  Row: {
36243
36982
  created_at: string;
@@ -36310,6 +37049,108 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
36310
37049
  };
36311
37050
  Relationships: [];
36312
37051
  };
37052
+ logistics_opening_exceptions: {
37053
+ Row: {
37054
+ closes: string | null;
37055
+ created_at: string;
37056
+ day: string;
37057
+ id: string;
37058
+ is_closed: boolean;
37059
+ note: string | null;
37060
+ opens: string | null;
37061
+ };
37062
+ Insert: {
37063
+ closes?: string | null;
37064
+ created_at?: string;
37065
+ day: string;
37066
+ id?: string;
37067
+ is_closed?: boolean;
37068
+ note?: string | null;
37069
+ opens?: string | null;
37070
+ };
37071
+ Update: {
37072
+ closes?: string | null;
37073
+ created_at?: string;
37074
+ day?: string;
37075
+ id?: string;
37076
+ is_closed?: boolean;
37077
+ note?: string | null;
37078
+ opens?: string | null;
37079
+ };
37080
+ Relationships: [];
37081
+ };
37082
+ logistics_opening_hours: {
37083
+ Row: {
37084
+ closes: string;
37085
+ created_at: string;
37086
+ id: string;
37087
+ is_active: boolean;
37088
+ note: string | null;
37089
+ opens: string;
37090
+ weekday: number;
37091
+ };
37092
+ Insert: {
37093
+ closes: string;
37094
+ created_at?: string;
37095
+ id?: string;
37096
+ is_active?: boolean;
37097
+ note?: string | null;
37098
+ opens: string;
37099
+ weekday: number;
37100
+ };
37101
+ Update: {
37102
+ closes?: string;
37103
+ created_at?: string;
37104
+ id?: string;
37105
+ is_active?: boolean;
37106
+ note?: string | null;
37107
+ opens?: string;
37108
+ weekday?: number;
37109
+ };
37110
+ Relationships: [];
37111
+ };
37112
+ logistics_pick_data_requests: {
37113
+ Row: {
37114
+ actions: import("../integrations/supabase/types").Json;
37115
+ created_at: string;
37116
+ event_id: string | null;
37117
+ finished_at: string | null;
37118
+ id: string;
37119
+ missing: import("../integrations/supabase/types").Json;
37120
+ order_ref: string;
37121
+ reason: string | null;
37122
+ result: import("../integrations/supabase/types").Json | null;
37123
+ status: string;
37124
+ unit_ref: string | null;
37125
+ };
37126
+ Insert: {
37127
+ actions?: import("../integrations/supabase/types").Json;
37128
+ created_at?: string;
37129
+ event_id?: string | null;
37130
+ finished_at?: string | null;
37131
+ id?: string;
37132
+ missing?: import("../integrations/supabase/types").Json;
37133
+ order_ref: string;
37134
+ reason?: string | null;
37135
+ result?: import("../integrations/supabase/types").Json | null;
37136
+ status?: string;
37137
+ unit_ref?: string | null;
37138
+ };
37139
+ Update: {
37140
+ actions?: import("../integrations/supabase/types").Json;
37141
+ created_at?: string;
37142
+ event_id?: string | null;
37143
+ finished_at?: string | null;
37144
+ id?: string;
37145
+ missing?: import("../integrations/supabase/types").Json;
37146
+ order_ref?: string;
37147
+ reason?: string | null;
37148
+ result?: import("../integrations/supabase/types").Json | null;
37149
+ status?: string;
37150
+ unit_ref?: string | null;
37151
+ };
37152
+ Relationships: [];
37153
+ };
36313
37154
  logistics_pickup_moments: {
36314
37155
  Row: {
36315
37156
  carrier_ref: string | null;
@@ -37102,6 +37943,24 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
37102
37943
  };
37103
37944
  Relationships: [];
37104
37945
  };
37946
+ logistics_time_settings: {
37947
+ Row: {
37948
+ id: boolean;
37949
+ timezone: string;
37950
+ updated_at: string;
37951
+ };
37952
+ Insert: {
37953
+ id?: boolean;
37954
+ timezone: string;
37955
+ updated_at?: string;
37956
+ };
37957
+ Update: {
37958
+ id?: boolean;
37959
+ timezone?: string;
37960
+ updated_at?: string;
37961
+ };
37962
+ Relationships: [];
37963
+ };
37105
37964
  logistics_variables: {
37106
37965
  Row: {
37107
37966
  created_at: string;
@@ -39492,6 +40351,7 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39492
40351
  customer_name: string;
39493
40352
  deleted_at: string | null;
39494
40353
  delivery_date: string | null;
40354
+ floriday_order_group_key: string | null;
39495
40355
  floriday_sales_order_id: string | null;
39496
40356
  id: string;
39497
40357
  invoice_due_at: string | null;
@@ -39519,6 +40379,7 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39519
40379
  customer_name?: string;
39520
40380
  deleted_at?: string | null;
39521
40381
  delivery_date?: string | null;
40382
+ floriday_order_group_key?: string | null;
39522
40383
  floriday_sales_order_id?: string | null;
39523
40384
  id?: string;
39524
40385
  invoice_due_at?: string | null;
@@ -39546,6 +40407,7 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39546
40407
  customer_name?: string;
39547
40408
  deleted_at?: string | null;
39548
40409
  delivery_date?: string | null;
40410
+ floriday_order_group_key?: string | null;
39549
40411
  floriday_sales_order_id?: string | null;
39550
40412
  id?: string;
39551
40413
  invoice_due_at?: string | null;
@@ -39739,6 +40601,27 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39739
40601
  };
39740
40602
  Relationships: [];
39741
40603
  };
40604
+ pick_buffer_event_cursor: {
40605
+ Row: {
40606
+ created_at: string;
40607
+ id: boolean;
40608
+ last_event_at: string;
40609
+ updated_at: string;
40610
+ };
40611
+ Insert: {
40612
+ created_at?: string;
40613
+ id?: boolean;
40614
+ last_event_at?: string;
40615
+ updated_at?: string;
40616
+ };
40617
+ Update: {
40618
+ created_at?: string;
40619
+ id?: boolean;
40620
+ last_event_at?: string;
40621
+ updated_at?: string;
40622
+ };
40623
+ Relationships: [];
40624
+ };
39742
40625
  pick_countries: {
39743
40626
  Row: {
39744
40627
  active: boolean;
@@ -45388,6 +46271,36 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
45388
46271
  referencedColumns: ["id"];
45389
46272
  }];
45390
46273
  };
46274
+ voorraad_buffer_state: {
46275
+ Row: {
46276
+ buffer_id: string;
46277
+ buffer_key: string | null;
46278
+ closed_at: string | null;
46279
+ created_at: string;
46280
+ detached_orders: import("../integrations/supabase/types").Json;
46281
+ reason: string | null;
46282
+ updated_at: string;
46283
+ };
46284
+ Insert: {
46285
+ buffer_id: string;
46286
+ buffer_key?: string | null;
46287
+ closed_at?: string | null;
46288
+ created_at?: string;
46289
+ detached_orders?: import("../integrations/supabase/types").Json;
46290
+ reason?: string | null;
46291
+ updated_at?: string;
46292
+ };
46293
+ Update: {
46294
+ buffer_id?: string;
46295
+ buffer_key?: string | null;
46296
+ closed_at?: string | null;
46297
+ created_at?: string;
46298
+ detached_orders?: import("../integrations/supabase/types").Json;
46299
+ reason?: string | null;
46300
+ updated_at?: string;
46301
+ };
46302
+ Relationships: [];
46303
+ };
45391
46304
  voorraad_custom_fields: {
45392
46305
  Row: {
45393
46306
  created_at: string;
@@ -45430,6 +46343,36 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
45430
46343
  };
45431
46344
  Relationships: [];
45432
46345
  };
46346
+ voorraad_logistics_event_log: {
46347
+ Row: {
46348
+ created_at: string;
46349
+ event_id: string;
46350
+ event_type: string;
46351
+ order_ref: string | null;
46352
+ processed_at: string;
46353
+ result: import("../integrations/supabase/types").Json;
46354
+ updated_at: string;
46355
+ };
46356
+ Insert: {
46357
+ created_at?: string;
46358
+ event_id: string;
46359
+ event_type: string;
46360
+ order_ref?: string | null;
46361
+ processed_at?: string;
46362
+ result?: import("../integrations/supabase/types").Json;
46363
+ updated_at?: string;
46364
+ };
46365
+ Update: {
46366
+ created_at?: string;
46367
+ event_id?: string;
46368
+ event_type?: string;
46369
+ order_ref?: string | null;
46370
+ processed_at?: string;
46371
+ result?: import("../integrations/supabase/types").Json;
46372
+ updated_at?: string;
46373
+ };
46374
+ Relationships: [];
46375
+ };
45433
46376
  voorraad_media_upload_failures: {
45434
46377
  Row: {
45435
46378
  action: string;
@@ -48255,6 +49198,17 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
48255
49198
  };
48256
49199
  Returns: boolean;
48257
49200
  };
49201
+ floriday_adopt_connection: {
49202
+ Args: {
49203
+ p_new: string;
49204
+ p_old: string;
49205
+ };
49206
+ Returns: import("../integrations/supabase/types").Json;
49207
+ };
49208
+ floriday_autoheal_connections: {
49209
+ Args: never;
49210
+ Returns: import("../integrations/supabase/types").Json;
49211
+ };
48258
49212
  floriday_capture_stock_snapshot: {
48259
49213
  Args: never;
48260
49214
  Returns: number;
@@ -48312,6 +49266,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
48312
49266
  };
48313
49267
  Returns: undefined;
48314
49268
  };
49269
+ floriday_relink_products: {
49270
+ Args: {
49271
+ p_connection_id?: string;
49272
+ };
49273
+ Returns: import("../integrations/supabase/types").Json;
49274
+ };
48315
49275
  floriday_requeue_dead_letters: {
48316
49276
  Args: {
48317
49277
  p_connection_id?: string;
@@ -48933,6 +49893,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
48933
49893
  };
48934
49894
  Returns: string;
48935
49895
  };
49896
+ logistics_active_layout_method: {
49897
+ Args: never;
49898
+ Returns: string;
49899
+ };
48936
49900
  logistics_active_pick_workdays: {
48937
49901
  Args: never;
48938
49902
  Returns: string[];
@@ -49040,6 +50004,15 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49040
50004
  };
49041
50005
  Returns: boolean;
49042
50006
  };
50007
+ logistics_buffer_notify: {
50008
+ Args: {
50009
+ p_event_type: string;
50010
+ p_idempotency_key: string;
50011
+ p_order_ref: string;
50012
+ p_payload: import("../integrations/supabase/types").Json;
50013
+ };
50014
+ Returns: string;
50015
+ };
49043
50016
  logistics_buffer_open_key: {
49044
50017
  Args: {
49045
50018
  p_base_key: string;
@@ -49098,6 +50071,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49098
50071
  };
49099
50072
  Returns: string;
49100
50073
  };
50074
+ logistics_cart_checkin_at: {
50075
+ Args: {
50076
+ p_cart_id: string;
50077
+ };
50078
+ Returns: string;
50079
+ };
49101
50080
  logistics_cart_handled: {
49102
50081
  Args: {
49103
50082
  p_cart_index: number;
@@ -49131,10 +50110,22 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49131
50110
  task_status: string;
49132
50111
  }[];
49133
50112
  };
50113
+ logistics_cart_is_full: {
50114
+ Args: {
50115
+ p_cart_id: string;
50116
+ };
50117
+ Returns: boolean;
50118
+ };
49134
50119
  logistics_cart_layout_method: {
49135
50120
  Args: never;
49136
50121
  Returns: import("../integrations/supabase/types").Json;
49137
50122
  };
50123
+ logistics_cart_order_refs: {
50124
+ Args: {
50125
+ p_cart_id: string;
50126
+ };
50127
+ Returns: string[];
50128
+ };
49138
50129
  logistics_cart_plan_overview: {
49139
50130
  Args: {
49140
50131
  p_days?: number;
@@ -49154,6 +50145,18 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49154
50145
  };
49155
50146
  Returns: import("../integrations/supabase/types").Json;
49156
50147
  };
50148
+ logistics_cart_release_reason: {
50149
+ Args: {
50150
+ p_cart_id: string;
50151
+ };
50152
+ Returns: string;
50153
+ };
50154
+ logistics_cart_released: {
50155
+ Args: {
50156
+ p_cart_id: string;
50157
+ };
50158
+ Returns: boolean;
50159
+ };
49157
50160
  logistics_cart_seq: {
49158
50161
  Args: {
49159
50162
  p_order_uuid?: string;
@@ -49307,6 +50310,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49307
50310
  isSetofReturn: false;
49308
50311
  };
49309
50312
  };
50313
+ logistics_cleanup_orphan_print_jobs: {
50314
+ Args: never;
50315
+ Returns: import("../integrations/supabase/types").Json;
50316
+ };
49310
50317
  logistics_complete_task: {
49311
50318
  Args: {
49312
50319
  p_result?: import("../integrations/supabase/types").Json;
@@ -49369,6 +50376,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49369
50376
  station_carts: number;
49370
50377
  }[];
49371
50378
  };
50379
+ logistics_control_complete_cart: {
50380
+ Args: {
50381
+ p_cart_id: string;
50382
+ };
50383
+ Returns: number;
50384
+ };
49372
50385
  logistics_control_scan_approve: {
49373
50386
  Args: {
49374
50387
  p_allow_reprint?: boolean;
@@ -49448,6 +50461,15 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49448
50461
  Args: never;
49449
50462
  Returns: import("../integrations/supabase/types").Json;
49450
50463
  };
50464
+ logistics_day_windows: {
50465
+ Args: {
50466
+ p_day: string;
50467
+ };
50468
+ Returns: {
50469
+ win_end: string;
50470
+ win_start: string;
50471
+ }[];
50472
+ };
49451
50473
  logistics_delay_customer_email: {
49452
50474
  Args: {
49453
50475
  p_customer: string;
@@ -49515,6 +50537,17 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49515
50537
  };
49516
50538
  Returns: import("../integrations/supabase/types").Json;
49517
50539
  };
50540
+ logistics_enqueue_shipping_note_with_slip: {
50541
+ Args: {
50542
+ _cart_id: string;
50543
+ _is_herprint: boolean;
50544
+ _printer_id: string;
50545
+ _queue_item_id: string;
50546
+ _session_id: string;
50547
+ _slip_job_id: string;
50548
+ };
50549
+ Returns: string;
50550
+ };
49518
50551
  logistics_enqueue_sticker_with_slip: {
49519
50552
  Args: {
49520
50553
  _cart_id: string;
@@ -49532,6 +50565,14 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49532
50565
  };
49533
50566
  Returns: string;
49534
50567
  };
50568
+ logistics_ensure_pick_data: {
50569
+ Args: {
50570
+ p_event_id?: string;
50571
+ p_missing?: import("../integrations/supabase/types").Json;
50572
+ p_ref: string;
50573
+ };
50574
+ Returns: import("../integrations/supabase/types").Json;
50575
+ };
49535
50576
  logistics_fail_task: {
49536
50577
  Args: {
49537
50578
  p_error: string;
@@ -49653,6 +50694,38 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49653
50694
  };
49654
50695
  Returns: string;
49655
50696
  };
50697
+ logistics_floriday_gate_status: {
50698
+ Args: never;
50699
+ Returns: import("../integrations/supabase/types").Json;
50700
+ };
50701
+ logistics_floriday_log_refusal: {
50702
+ Args: {
50703
+ _action?: string;
50704
+ _module?: string;
50705
+ _order_ref: string;
50706
+ _reason: string;
50707
+ _shell?: string;
50708
+ };
50709
+ Returns: undefined;
50710
+ };
50711
+ logistics_floriday_log_send: {
50712
+ Args: {
50713
+ _action: string;
50714
+ _detail?: string;
50715
+ _http_status?: number;
50716
+ _module?: string;
50717
+ _ok: boolean;
50718
+ _order_ref: string;
50719
+ _shell?: string;
50720
+ };
50721
+ Returns: undefined;
50722
+ };
50723
+ logistics_floriday_order_approved: {
50724
+ Args: {
50725
+ _order_ref: string;
50726
+ };
50727
+ Returns: boolean;
50728
+ };
49656
50729
  logistics_floriday_prune_pushes: {
49657
50730
  Args: {
49658
50731
  _days?: number;
@@ -49667,6 +50740,20 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49667
50740
  };
49668
50741
  Returns: string;
49669
50742
  };
50743
+ logistics_floriday_status_updates_enabled: {
50744
+ Args: never;
50745
+ Returns: boolean;
50746
+ };
50747
+ logistics_floriday_stock_updates_enabled: {
50748
+ Args: never;
50749
+ Returns: boolean;
50750
+ };
50751
+ logistics_floriday_write_allowed: {
50752
+ Args: {
50753
+ _action: string;
50754
+ };
50755
+ Returns: boolean;
50756
+ };
49670
50757
  logistics_fulfill_barcode_requests: {
49671
50758
  Args: {
49672
50759
  p_limit?: number;
@@ -49687,6 +50774,16 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49687
50774
  };
49688
50775
  Returns: boolean;
49689
50776
  };
50777
+ logistics_layout_method_status: {
50778
+ Args: never;
50779
+ Returns: import("../integrations/supabase/types").Json;
50780
+ };
50781
+ logistics_link_order_items: {
50782
+ Args: {
50783
+ p_order?: string;
50784
+ };
50785
+ Returns: import("../integrations/supabase/types").Json;
50786
+ };
49690
50787
  logistics_live_carriers: {
49691
50788
  Args: {
49692
50789
  p_order_ref: string;
@@ -49699,6 +50796,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49699
50796
  };
49700
50797
  Returns: number;
49701
50798
  };
50799
+ logistics_merge_partial_carts: {
50800
+ Args: {
50801
+ p_limit?: number;
50802
+ };
50803
+ Returns: import("../integrations/supabase/types").Json;
50804
+ };
49702
50805
  logistics_next_workday_date: {
49703
50806
  Args: {
49704
50807
  p_date: string;
@@ -49713,12 +50816,22 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49713
50816
  };
49714
50817
  Returns: string;
49715
50818
  };
50819
+ logistics_normalize_product_label: {
50820
+ Args: {
50821
+ p_label: string;
50822
+ };
50823
+ Returns: string;
50824
+ };
49716
50825
  logistics_not_past: {
49717
50826
  Args: {
49718
50827
  p_ts: string;
49719
50828
  };
49720
50829
  Returns: string;
49721
50830
  };
50831
+ logistics_opening_timezone: {
50832
+ Args: never;
50833
+ Returns: string;
50834
+ };
49722
50835
  logistics_order_cart_count: {
49723
50836
  Args: {
49724
50837
  p_order_ref: string;
@@ -49803,6 +50916,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49803
50916
  Args: never;
49804
50917
  Returns: import("../integrations/supabase/types").Json;
49805
50918
  };
50919
+ logistics_pick_partial_mode: {
50920
+ Args: never;
50921
+ Returns: string;
50922
+ };
49806
50923
  logistics_pick_start_estimate: {
49807
50924
  Args: {
49808
50925
  p_order: import("../integrations/supabase/types").Json;
@@ -49914,6 +51031,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49914
51031
  };
49915
51032
  Returns: number;
49916
51033
  };
51034
+ logistics_prepare_pick_documents: {
51035
+ Args: {
51036
+ p_limit?: number;
51037
+ };
51038
+ Returns: import("../integrations/supabase/types").Json;
51039
+ };
49917
51040
  logistics_prune_buffer_member_queue: {
49918
51041
  Args: never;
49919
51042
  Returns: number;
@@ -49954,12 +51077,30 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
49954
51077
  Args: never;
49955
51078
  Returns: import("../integrations/supabase/types").Json;
49956
51079
  };
51080
+ logistics_refresh_pick_queue_status: {
51081
+ Args: {
51082
+ p_ref: string;
51083
+ };
51084
+ Returns: number;
51085
+ };
49957
51086
  logistics_refresh_pickup_moments: {
49958
51087
  Args: {
49959
51088
  p_weeks?: number;
49960
51089
  };
49961
51090
  Returns: import("../integrations/supabase/types").Json;
49962
51091
  };
51092
+ logistics_replan_all: {
51093
+ Args: {
51094
+ p_reason?: string;
51095
+ };
51096
+ Returns: import("../integrations/supabase/types").Json;
51097
+ };
51098
+ logistics_replan_all_force: {
51099
+ Args: {
51100
+ p_reason?: string;
51101
+ };
51102
+ Returns: import("../integrations/supabase/types").Json;
51103
+ };
49963
51104
  logistics_report_delay: {
49964
51105
  Args: {
49965
51106
  p_expected_date?: string;
@@ -50013,6 +51154,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50013
51154
  };
50014
51155
  Returns: import("../integrations/supabase/types").Json;
50015
51156
  };
51157
+ logistics_resolve_product_id: {
51158
+ Args: {
51159
+ p_label: string;
51160
+ };
51161
+ Returns: string;
51162
+ };
50016
51163
  logistics_resolve_settings: {
50017
51164
  Args: {
50018
51165
  p_config_id: string;
@@ -50098,6 +51245,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50098
51245
  };
50099
51246
  Returns: string;
50100
51247
  };
51248
+ logistics_shipping_note_follows_slip: {
51249
+ Args: never;
51250
+ Returns: boolean;
51251
+ };
50101
51252
  logistics_shipping_note_from_barcode: {
50102
51253
  Args: {
50103
51254
  p_allow_reprint?: boolean;
@@ -50110,6 +51261,14 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50110
51261
  Args: never;
50111
51262
  Returns: boolean;
50112
51263
  };
51264
+ logistics_subtract_working_minutes: {
51265
+ Args: {
51266
+ p_deadline: string;
51267
+ p_max_workdays?: number;
51268
+ p_minutes: number;
51269
+ };
51270
+ Returns: import("../integrations/supabase/types").Json;
51271
+ };
50113
51272
  logistics_supersede_stale_tasks: {
50114
51273
  Args: {
50115
51274
  p_keep: string[];
@@ -50146,6 +51305,12 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50146
51305
  Args: never;
50147
51306
  Returns: string;
50148
51307
  };
51308
+ logistics_timezone_options: {
51309
+ Args: never;
51310
+ Returns: {
51311
+ name: string;
51312
+ }[];
51313
+ };
50149
51314
  logistics_upsert_task: {
50150
51315
  Args: {
50151
51316
  p_buffer_ref: string;
@@ -50165,6 +51330,16 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50165
51330
  };
50166
51331
  Returns: string;
50167
51332
  };
51333
+ logistics_valid_timezone: {
51334
+ Args: {
51335
+ _tz: string;
51336
+ };
51337
+ Returns: boolean;
51338
+ };
51339
+ logistics_working_hours_status: {
51340
+ Args: never;
51341
+ Returns: import("../integrations/supabase/types").Json;
51342
+ };
50168
51343
  logistics_write_buffer_layer_positions: {
50169
51344
  Args: {
50170
51345
  p_buffer_id: string;
@@ -50330,6 +51505,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
50330
51505
  online: boolean;
50331
51506
  }[];
50332
51507
  };
51508
+ pick_apply_buffer_events: {
51509
+ Args: never;
51510
+ Returns: import("../integrations/supabase/types").Json;
51511
+ };
50333
51512
  pick_available_pick_days: {
50334
51513
  Args: {
50335
51514
  _max_days?: number;
@@ -51606,6 +52785,13 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51606
52785
  };
51607
52786
  Returns: number;
51608
52787
  };
52788
+ schedule_floriday_catalog_prices_sync: {
52789
+ Args: {
52790
+ p_apikey: string;
52791
+ p_url: string;
52792
+ };
52793
+ Returns: number;
52794
+ };
51609
52795
  schedule_floriday_clock_presales_sync: {
51610
52796
  Args: {
51611
52797
  p_apikey: string;
@@ -51906,6 +53092,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
51906
53092
  };
51907
53093
  Returns: undefined;
51908
53094
  };
53095
+ sync_floriday_prices_into_price_groups: {
53096
+ Args: never;
53097
+ Returns: number;
53098
+ };
51909
53099
  sync_layer_stock: {
51910
53100
  Args: {
51911
53101
  p_product_id: string;