@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
@@ -5835,6 +5835,84 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
5835
5835
  referencedColumns: ["id"];
5836
5836
  }];
5837
5837
  };
5838
+ floriday_catalog_prices_cache: {
5839
+ Row: {
5840
+ connection_id: string;
5841
+ created_at: string;
5842
+ currency: string;
5843
+ id: string;
5844
+ is_deleted: boolean;
5845
+ price: number | null;
5846
+ price_group_id: string | null;
5847
+ price_group_name: string | null;
5848
+ price_type: string;
5849
+ raw: import("../integrations/supabase/types").Json | null;
5850
+ sales_unit: string | null;
5851
+ sequence_number: number;
5852
+ supplier_article_code: string | null;
5853
+ supply_line_id: string;
5854
+ synced_at: string;
5855
+ trade_item_id: string | null;
5856
+ updated_at: string;
5857
+ valid_from: string | null;
5858
+ valid_to: string | null;
5859
+ week: number | null;
5860
+ year: number | null;
5861
+ };
5862
+ Insert: {
5863
+ connection_id: string;
5864
+ created_at?: string;
5865
+ currency?: string;
5866
+ id?: string;
5867
+ is_deleted?: boolean;
5868
+ price?: number | null;
5869
+ price_group_id?: string | null;
5870
+ price_group_name?: string | null;
5871
+ price_type?: string;
5872
+ raw?: import("../integrations/supabase/types").Json | null;
5873
+ sales_unit?: string | null;
5874
+ sequence_number?: number;
5875
+ supplier_article_code?: string | null;
5876
+ supply_line_id: string;
5877
+ synced_at?: string;
5878
+ trade_item_id?: string | null;
5879
+ updated_at?: string;
5880
+ valid_from?: string | null;
5881
+ valid_to?: string | null;
5882
+ week?: number | null;
5883
+ year?: number | null;
5884
+ };
5885
+ Update: {
5886
+ connection_id?: string;
5887
+ created_at?: string;
5888
+ currency?: string;
5889
+ id?: string;
5890
+ is_deleted?: boolean;
5891
+ price?: number | null;
5892
+ price_group_id?: string | null;
5893
+ price_group_name?: string | null;
5894
+ price_type?: string;
5895
+ raw?: import("../integrations/supabase/types").Json | null;
5896
+ sales_unit?: string | null;
5897
+ sequence_number?: number;
5898
+ supplier_article_code?: string | null;
5899
+ supply_line_id?: string;
5900
+ synced_at?: string;
5901
+ trade_item_id?: string | null;
5902
+ updated_at?: string;
5903
+ valid_from?: string | null;
5904
+ valid_to?: string | null;
5905
+ week?: number | null;
5906
+ year?: number | null;
5907
+ };
5908
+ Relationships: [{
5909
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5910
+ columns: ["connection_id"];
5911
+ isOneToOne: false;
5912
+ referencedRelation: "floriday_connections";
5913
+ referencedColumns: ["id"];
5914
+ }];
5915
+ };
5838
5916
  floriday_clock_presales_cache: {
5839
5917
  Row: {
5840
5918
  buyer_organization_id: string | null;
@@ -10101,6 +10179,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10101
10179
  };
10102
10180
  Relationships: [];
10103
10181
  };
10182
+ logistics_floriday_push_refusals: {
10183
+ Row: {
10184
+ action: string | null;
10185
+ created_at: string;
10186
+ id: string;
10187
+ order_ref: string;
10188
+ reason: string;
10189
+ source_module: string | null;
10190
+ source_shell: string | null;
10191
+ };
10192
+ Insert: {
10193
+ action?: string | null;
10194
+ created_at?: string;
10195
+ id?: string;
10196
+ order_ref: string;
10197
+ reason: string;
10198
+ source_module?: string | null;
10199
+ source_shell?: string | null;
10200
+ };
10201
+ Update: {
10202
+ action?: string | null;
10203
+ created_at?: string;
10204
+ id?: string;
10205
+ order_ref?: string;
10206
+ reason?: string;
10207
+ source_module?: string | null;
10208
+ source_shell?: string | null;
10209
+ };
10210
+ Relationships: [];
10211
+ };
10104
10212
  logistics_floriday_pushes: {
10105
10213
  Row: {
10106
10214
  attempts: number;
@@ -10176,6 +10284,42 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10176
10284
  };
10177
10285
  Relationships: [];
10178
10286
  };
10287
+ logistics_floriday_status_sends: {
10288
+ Row: {
10289
+ action: string;
10290
+ created_at: string;
10291
+ detail: string | null;
10292
+ http_status: number | null;
10293
+ id: string;
10294
+ ok: boolean;
10295
+ order_ref: string;
10296
+ source_module: string | null;
10297
+ source_shell: string | null;
10298
+ };
10299
+ Insert: {
10300
+ action: string;
10301
+ created_at?: string;
10302
+ detail?: string | null;
10303
+ http_status?: number | null;
10304
+ id?: string;
10305
+ ok?: boolean;
10306
+ order_ref: string;
10307
+ source_module?: string | null;
10308
+ source_shell?: string | null;
10309
+ };
10310
+ Update: {
10311
+ action?: string;
10312
+ created_at?: string;
10313
+ detail?: string | null;
10314
+ http_status?: number | null;
10315
+ id?: string;
10316
+ ok?: boolean;
10317
+ order_ref?: string;
10318
+ source_module?: string | null;
10319
+ source_shell?: string | null;
10320
+ };
10321
+ Relationships: [];
10322
+ };
10179
10323
  logistics_formulas: {
10180
10324
  Row: {
10181
10325
  created_at: string;
@@ -10248,6 +10392,108 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10248
10392
  };
10249
10393
  Relationships: [];
10250
10394
  };
10395
+ logistics_opening_exceptions: {
10396
+ Row: {
10397
+ closes: string | null;
10398
+ created_at: string;
10399
+ day: string;
10400
+ id: string;
10401
+ is_closed: boolean;
10402
+ note: string | null;
10403
+ opens: string | null;
10404
+ };
10405
+ Insert: {
10406
+ closes?: string | null;
10407
+ created_at?: string;
10408
+ day: string;
10409
+ id?: string;
10410
+ is_closed?: boolean;
10411
+ note?: string | null;
10412
+ opens?: string | null;
10413
+ };
10414
+ Update: {
10415
+ closes?: string | null;
10416
+ created_at?: string;
10417
+ day?: string;
10418
+ id?: string;
10419
+ is_closed?: boolean;
10420
+ note?: string | null;
10421
+ opens?: string | null;
10422
+ };
10423
+ Relationships: [];
10424
+ };
10425
+ logistics_opening_hours: {
10426
+ Row: {
10427
+ closes: string;
10428
+ created_at: string;
10429
+ id: string;
10430
+ is_active: boolean;
10431
+ note: string | null;
10432
+ opens: string;
10433
+ weekday: number;
10434
+ };
10435
+ Insert: {
10436
+ closes: string;
10437
+ created_at?: string;
10438
+ id?: string;
10439
+ is_active?: boolean;
10440
+ note?: string | null;
10441
+ opens: string;
10442
+ weekday: number;
10443
+ };
10444
+ Update: {
10445
+ closes?: string;
10446
+ created_at?: string;
10447
+ id?: string;
10448
+ is_active?: boolean;
10449
+ note?: string | null;
10450
+ opens?: string;
10451
+ weekday?: number;
10452
+ };
10453
+ Relationships: [];
10454
+ };
10455
+ logistics_pick_data_requests: {
10456
+ Row: {
10457
+ actions: import("../integrations/supabase/types").Json;
10458
+ created_at: string;
10459
+ event_id: string | null;
10460
+ finished_at: string | null;
10461
+ id: string;
10462
+ missing: import("../integrations/supabase/types").Json;
10463
+ order_ref: string;
10464
+ reason: string | null;
10465
+ result: import("../integrations/supabase/types").Json | null;
10466
+ status: string;
10467
+ unit_ref: string | null;
10468
+ };
10469
+ Insert: {
10470
+ actions?: import("../integrations/supabase/types").Json;
10471
+ created_at?: string;
10472
+ event_id?: string | null;
10473
+ finished_at?: string | null;
10474
+ id?: string;
10475
+ missing?: import("../integrations/supabase/types").Json;
10476
+ order_ref: string;
10477
+ reason?: string | null;
10478
+ result?: import("../integrations/supabase/types").Json | null;
10479
+ status?: string;
10480
+ unit_ref?: string | null;
10481
+ };
10482
+ Update: {
10483
+ actions?: import("../integrations/supabase/types").Json;
10484
+ created_at?: string;
10485
+ event_id?: string | null;
10486
+ finished_at?: string | null;
10487
+ id?: string;
10488
+ missing?: import("../integrations/supabase/types").Json;
10489
+ order_ref?: string;
10490
+ reason?: string | null;
10491
+ result?: import("../integrations/supabase/types").Json | null;
10492
+ status?: string;
10493
+ unit_ref?: string | null;
10494
+ };
10495
+ Relationships: [];
10496
+ };
10251
10497
  logistics_pickup_moments: {
10252
10498
  Row: {
10253
10499
  carrier_ref: string | null;
@@ -11040,6 +11286,24 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
11040
11286
  };
11041
11287
  Relationships: [];
11042
11288
  };
11289
+ logistics_time_settings: {
11290
+ Row: {
11291
+ id: boolean;
11292
+ timezone: string;
11293
+ updated_at: string;
11294
+ };
11295
+ Insert: {
11296
+ id?: boolean;
11297
+ timezone: string;
11298
+ updated_at?: string;
11299
+ };
11300
+ Update: {
11301
+ id?: boolean;
11302
+ timezone?: string;
11303
+ updated_at?: string;
11304
+ };
11305
+ Relationships: [];
11306
+ };
11043
11307
  logistics_variables: {
11044
11308
  Row: {
11045
11309
  created_at: string;
@@ -13430,6 +13694,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
13430
13694
  customer_name: string;
13431
13695
  deleted_at: string | null;
13432
13696
  delivery_date: string | null;
13697
+ floriday_order_group_key: string | null;
13433
13698
  floriday_sales_order_id: string | null;
13434
13699
  id: string;
13435
13700
  invoice_due_at: string | null;
@@ -13457,6 +13722,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
13457
13722
  customer_name?: string;
13458
13723
  deleted_at?: string | null;
13459
13724
  delivery_date?: string | null;
13725
+ floriday_order_group_key?: string | null;
13460
13726
  floriday_sales_order_id?: string | null;
13461
13727
  id?: string;
13462
13728
  invoice_due_at?: string | null;
@@ -13484,6 +13750,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
13484
13750
  customer_name?: string;
13485
13751
  deleted_at?: string | null;
13486
13752
  delivery_date?: string | null;
13753
+ floriday_order_group_key?: string | null;
13487
13754
  floriday_sales_order_id?: string | null;
13488
13755
  id?: string;
13489
13756
  invoice_due_at?: string | null;
@@ -13677,6 +13944,27 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
13677
13944
  };
13678
13945
  Relationships: [];
13679
13946
  };
13947
+ pick_buffer_event_cursor: {
13948
+ Row: {
13949
+ created_at: string;
13950
+ id: boolean;
13951
+ last_event_at: string;
13952
+ updated_at: string;
13953
+ };
13954
+ Insert: {
13955
+ created_at?: string;
13956
+ id?: boolean;
13957
+ last_event_at?: string;
13958
+ updated_at?: string;
13959
+ };
13960
+ Update: {
13961
+ created_at?: string;
13962
+ id?: boolean;
13963
+ last_event_at?: string;
13964
+ updated_at?: string;
13965
+ };
13966
+ Relationships: [];
13967
+ };
13680
13968
  pick_countries: {
13681
13969
  Row: {
13682
13970
  active: boolean;
@@ -19326,6 +19614,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19326
19614
  referencedColumns: ["id"];
19327
19615
  }];
19328
19616
  };
19617
+ voorraad_buffer_state: {
19618
+ Row: {
19619
+ buffer_id: string;
19620
+ buffer_key: string | null;
19621
+ closed_at: string | null;
19622
+ created_at: string;
19623
+ detached_orders: import("../integrations/supabase/types").Json;
19624
+ reason: string | null;
19625
+ updated_at: string;
19626
+ };
19627
+ Insert: {
19628
+ buffer_id: string;
19629
+ buffer_key?: string | null;
19630
+ closed_at?: string | null;
19631
+ created_at?: string;
19632
+ detached_orders?: import("../integrations/supabase/types").Json;
19633
+ reason?: string | null;
19634
+ updated_at?: string;
19635
+ };
19636
+ Update: {
19637
+ buffer_id?: string;
19638
+ buffer_key?: string | null;
19639
+ closed_at?: string | null;
19640
+ created_at?: string;
19641
+ detached_orders?: import("../integrations/supabase/types").Json;
19642
+ reason?: string | null;
19643
+ updated_at?: string;
19644
+ };
19645
+ Relationships: [];
19646
+ };
19329
19647
  voorraad_custom_fields: {
19330
19648
  Row: {
19331
19649
  created_at: string;
@@ -19368,6 +19686,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19368
19686
  };
19369
19687
  Relationships: [];
19370
19688
  };
19689
+ voorraad_logistics_event_log: {
19690
+ Row: {
19691
+ created_at: string;
19692
+ event_id: string;
19693
+ event_type: string;
19694
+ order_ref: string | null;
19695
+ processed_at: string;
19696
+ result: import("../integrations/supabase/types").Json;
19697
+ updated_at: string;
19698
+ };
19699
+ Insert: {
19700
+ created_at?: string;
19701
+ event_id: string;
19702
+ event_type: string;
19703
+ order_ref?: string | null;
19704
+ processed_at?: string;
19705
+ result?: import("../integrations/supabase/types").Json;
19706
+ updated_at?: string;
19707
+ };
19708
+ Update: {
19709
+ created_at?: string;
19710
+ event_id?: string;
19711
+ event_type?: string;
19712
+ order_ref?: string | null;
19713
+ processed_at?: string;
19714
+ result?: import("../integrations/supabase/types").Json;
19715
+ updated_at?: string;
19716
+ };
19717
+ Relationships: [];
19718
+ };
19371
19719
  voorraad_media_upload_failures: {
19372
19720
  Row: {
19373
19721
  action: string;
@@ -22193,6 +22541,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
22193
22541
  };
22194
22542
  Returns: boolean;
22195
22543
  };
22544
+ floriday_adopt_connection: {
22545
+ Args: {
22546
+ p_new: string;
22547
+ p_old: string;
22548
+ };
22549
+ Returns: import("../integrations/supabase/types").Json;
22550
+ };
22551
+ floriday_autoheal_connections: {
22552
+ Args: never;
22553
+ Returns: import("../integrations/supabase/types").Json;
22554
+ };
22196
22555
  floriday_capture_stock_snapshot: {
22197
22556
  Args: never;
22198
22557
  Returns: number;
@@ -22250,6 +22609,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
22250
22609
  };
22251
22610
  Returns: undefined;
22252
22611
  };
22612
+ floriday_relink_products: {
22613
+ Args: {
22614
+ p_connection_id?: string;
22615
+ };
22616
+ Returns: import("../integrations/supabase/types").Json;
22617
+ };
22253
22618
  floriday_requeue_dead_letters: {
22254
22619
  Args: {
22255
22620
  p_connection_id?: string;
@@ -22871,6 +23236,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
22871
23236
  };
22872
23237
  Returns: string;
22873
23238
  };
23239
+ logistics_active_layout_method: {
23240
+ Args: never;
23241
+ Returns: string;
23242
+ };
22874
23243
  logistics_active_pick_workdays: {
22875
23244
  Args: never;
22876
23245
  Returns: string[];
@@ -22978,6 +23347,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
22978
23347
  };
22979
23348
  Returns: boolean;
22980
23349
  };
23350
+ logistics_buffer_notify: {
23351
+ Args: {
23352
+ p_event_type: string;
23353
+ p_idempotency_key: string;
23354
+ p_order_ref: string;
23355
+ p_payload: import("../integrations/supabase/types").Json;
23356
+ };
23357
+ Returns: string;
23358
+ };
22981
23359
  logistics_buffer_open_key: {
22982
23360
  Args: {
22983
23361
  p_base_key: string;
@@ -23036,6 +23414,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23036
23414
  };
23037
23415
  Returns: string;
23038
23416
  };
23417
+ logistics_cart_checkin_at: {
23418
+ Args: {
23419
+ p_cart_id: string;
23420
+ };
23421
+ Returns: string;
23422
+ };
23039
23423
  logistics_cart_handled: {
23040
23424
  Args: {
23041
23425
  p_cart_index: number;
@@ -23069,10 +23453,22 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23069
23453
  task_status: string;
23070
23454
  }[];
23071
23455
  };
23456
+ logistics_cart_is_full: {
23457
+ Args: {
23458
+ p_cart_id: string;
23459
+ };
23460
+ Returns: boolean;
23461
+ };
23072
23462
  logistics_cart_layout_method: {
23073
23463
  Args: never;
23074
23464
  Returns: import("../integrations/supabase/types").Json;
23075
23465
  };
23466
+ logistics_cart_order_refs: {
23467
+ Args: {
23468
+ p_cart_id: string;
23469
+ };
23470
+ Returns: string[];
23471
+ };
23076
23472
  logistics_cart_plan_overview: {
23077
23473
  Args: {
23078
23474
  p_days?: number;
@@ -23092,6 +23488,18 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23092
23488
  };
23093
23489
  Returns: import("../integrations/supabase/types").Json;
23094
23490
  };
23491
+ logistics_cart_release_reason: {
23492
+ Args: {
23493
+ p_cart_id: string;
23494
+ };
23495
+ Returns: string;
23496
+ };
23497
+ logistics_cart_released: {
23498
+ Args: {
23499
+ p_cart_id: string;
23500
+ };
23501
+ Returns: boolean;
23502
+ };
23095
23503
  logistics_cart_seq: {
23096
23504
  Args: {
23097
23505
  p_order_uuid?: string;
@@ -23245,6 +23653,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23245
23653
  isSetofReturn: false;
23246
23654
  };
23247
23655
  };
23656
+ logistics_cleanup_orphan_print_jobs: {
23657
+ Args: never;
23658
+ Returns: import("../integrations/supabase/types").Json;
23659
+ };
23248
23660
  logistics_complete_task: {
23249
23661
  Args: {
23250
23662
  p_result?: import("../integrations/supabase/types").Json;
@@ -23307,6 +23719,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23307
23719
  station_carts: number;
23308
23720
  }[];
23309
23721
  };
23722
+ logistics_control_complete_cart: {
23723
+ Args: {
23724
+ p_cart_id: string;
23725
+ };
23726
+ Returns: number;
23727
+ };
23310
23728
  logistics_control_scan_approve: {
23311
23729
  Args: {
23312
23730
  p_allow_reprint?: boolean;
@@ -23386,6 +23804,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23386
23804
  Args: never;
23387
23805
  Returns: import("../integrations/supabase/types").Json;
23388
23806
  };
23807
+ logistics_day_windows: {
23808
+ Args: {
23809
+ p_day: string;
23810
+ };
23811
+ Returns: {
23812
+ win_end: string;
23813
+ win_start: string;
23814
+ }[];
23815
+ };
23389
23816
  logistics_delay_customer_email: {
23390
23817
  Args: {
23391
23818
  p_customer: string;
@@ -23453,6 +23880,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23453
23880
  };
23454
23881
  Returns: import("../integrations/supabase/types").Json;
23455
23882
  };
23883
+ logistics_enqueue_shipping_note_with_slip: {
23884
+ Args: {
23885
+ _cart_id: string;
23886
+ _is_herprint: boolean;
23887
+ _printer_id: string;
23888
+ _queue_item_id: string;
23889
+ _session_id: string;
23890
+ _slip_job_id: string;
23891
+ };
23892
+ Returns: string;
23893
+ };
23456
23894
  logistics_enqueue_sticker_with_slip: {
23457
23895
  Args: {
23458
23896
  _cart_id: string;
@@ -23470,6 +23908,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23470
23908
  };
23471
23909
  Returns: string;
23472
23910
  };
23911
+ logistics_ensure_pick_data: {
23912
+ Args: {
23913
+ p_event_id?: string;
23914
+ p_missing?: import("../integrations/supabase/types").Json;
23915
+ p_ref: string;
23916
+ };
23917
+ Returns: import("../integrations/supabase/types").Json;
23918
+ };
23473
23919
  logistics_fail_task: {
23474
23920
  Args: {
23475
23921
  p_error: string;
@@ -23591,6 +24037,38 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23591
24037
  };
23592
24038
  Returns: string;
23593
24039
  };
24040
+ logistics_floriday_gate_status: {
24041
+ Args: never;
24042
+ Returns: import("../integrations/supabase/types").Json;
24043
+ };
24044
+ logistics_floriday_log_refusal: {
24045
+ Args: {
24046
+ _action?: string;
24047
+ _module?: string;
24048
+ _order_ref: string;
24049
+ _reason: string;
24050
+ _shell?: string;
24051
+ };
24052
+ Returns: undefined;
24053
+ };
24054
+ logistics_floriday_log_send: {
24055
+ Args: {
24056
+ _action: string;
24057
+ _detail?: string;
24058
+ _http_status?: number;
24059
+ _module?: string;
24060
+ _ok: boolean;
24061
+ _order_ref: string;
24062
+ _shell?: string;
24063
+ };
24064
+ Returns: undefined;
24065
+ };
24066
+ logistics_floriday_order_approved: {
24067
+ Args: {
24068
+ _order_ref: string;
24069
+ };
24070
+ Returns: boolean;
24071
+ };
23594
24072
  logistics_floriday_prune_pushes: {
23595
24073
  Args: {
23596
24074
  _days?: number;
@@ -23605,6 +24083,20 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23605
24083
  };
23606
24084
  Returns: string;
23607
24085
  };
24086
+ logistics_floriday_status_updates_enabled: {
24087
+ Args: never;
24088
+ Returns: boolean;
24089
+ };
24090
+ logistics_floriday_stock_updates_enabled: {
24091
+ Args: never;
24092
+ Returns: boolean;
24093
+ };
24094
+ logistics_floriday_write_allowed: {
24095
+ Args: {
24096
+ _action: string;
24097
+ };
24098
+ Returns: boolean;
24099
+ };
23608
24100
  logistics_fulfill_barcode_requests: {
23609
24101
  Args: {
23610
24102
  p_limit?: number;
@@ -23625,6 +24117,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23625
24117
  };
23626
24118
  Returns: boolean;
23627
24119
  };
24120
+ logistics_layout_method_status: {
24121
+ Args: never;
24122
+ Returns: import("../integrations/supabase/types").Json;
24123
+ };
24124
+ logistics_link_order_items: {
24125
+ Args: {
24126
+ p_order?: string;
24127
+ };
24128
+ Returns: import("../integrations/supabase/types").Json;
24129
+ };
23628
24130
  logistics_live_carriers: {
23629
24131
  Args: {
23630
24132
  p_order_ref: string;
@@ -23637,6 +24139,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23637
24139
  };
23638
24140
  Returns: number;
23639
24141
  };
24142
+ logistics_merge_partial_carts: {
24143
+ Args: {
24144
+ p_limit?: number;
24145
+ };
24146
+ Returns: import("../integrations/supabase/types").Json;
24147
+ };
23640
24148
  logistics_next_workday_date: {
23641
24149
  Args: {
23642
24150
  p_date: string;
@@ -23651,12 +24159,22 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23651
24159
  };
23652
24160
  Returns: string;
23653
24161
  };
24162
+ logistics_normalize_product_label: {
24163
+ Args: {
24164
+ p_label: string;
24165
+ };
24166
+ Returns: string;
24167
+ };
23654
24168
  logistics_not_past: {
23655
24169
  Args: {
23656
24170
  p_ts: string;
23657
24171
  };
23658
24172
  Returns: string;
23659
24173
  };
24174
+ logistics_opening_timezone: {
24175
+ Args: never;
24176
+ Returns: string;
24177
+ };
23660
24178
  logistics_order_cart_count: {
23661
24179
  Args: {
23662
24180
  p_order_ref: string;
@@ -23741,6 +24259,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23741
24259
  Args: never;
23742
24260
  Returns: import("../integrations/supabase/types").Json;
23743
24261
  };
24262
+ logistics_pick_partial_mode: {
24263
+ Args: never;
24264
+ Returns: string;
24265
+ };
23744
24266
  logistics_pick_start_estimate: {
23745
24267
  Args: {
23746
24268
  p_order: import("../integrations/supabase/types").Json;
@@ -23852,6 +24374,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23852
24374
  };
23853
24375
  Returns: number;
23854
24376
  };
24377
+ logistics_prepare_pick_documents: {
24378
+ Args: {
24379
+ p_limit?: number;
24380
+ };
24381
+ Returns: import("../integrations/supabase/types").Json;
24382
+ };
23855
24383
  logistics_prune_buffer_member_queue: {
23856
24384
  Args: never;
23857
24385
  Returns: number;
@@ -23892,12 +24420,30 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23892
24420
  Args: never;
23893
24421
  Returns: import("../integrations/supabase/types").Json;
23894
24422
  };
24423
+ logistics_refresh_pick_queue_status: {
24424
+ Args: {
24425
+ p_ref: string;
24426
+ };
24427
+ Returns: number;
24428
+ };
23895
24429
  logistics_refresh_pickup_moments: {
23896
24430
  Args: {
23897
24431
  p_weeks?: number;
23898
24432
  };
23899
24433
  Returns: import("../integrations/supabase/types").Json;
23900
24434
  };
24435
+ logistics_replan_all: {
24436
+ Args: {
24437
+ p_reason?: string;
24438
+ };
24439
+ Returns: import("../integrations/supabase/types").Json;
24440
+ };
24441
+ logistics_replan_all_force: {
24442
+ Args: {
24443
+ p_reason?: string;
24444
+ };
24445
+ Returns: import("../integrations/supabase/types").Json;
24446
+ };
23901
24447
  logistics_report_delay: {
23902
24448
  Args: {
23903
24449
  p_expected_date?: string;
@@ -23951,6 +24497,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
23951
24497
  };
23952
24498
  Returns: import("../integrations/supabase/types").Json;
23953
24499
  };
24500
+ logistics_resolve_product_id: {
24501
+ Args: {
24502
+ p_label: string;
24503
+ };
24504
+ Returns: string;
24505
+ };
23954
24506
  logistics_resolve_settings: {
23955
24507
  Args: {
23956
24508
  p_config_id: string;
@@ -24036,6 +24588,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24036
24588
  };
24037
24589
  Returns: string;
24038
24590
  };
24591
+ logistics_shipping_note_follows_slip: {
24592
+ Args: never;
24593
+ Returns: boolean;
24594
+ };
24039
24595
  logistics_shipping_note_from_barcode: {
24040
24596
  Args: {
24041
24597
  p_allow_reprint?: boolean;
@@ -24048,6 +24604,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24048
24604
  Args: never;
24049
24605
  Returns: boolean;
24050
24606
  };
24607
+ logistics_subtract_working_minutes: {
24608
+ Args: {
24609
+ p_deadline: string;
24610
+ p_max_workdays?: number;
24611
+ p_minutes: number;
24612
+ };
24613
+ Returns: import("../integrations/supabase/types").Json;
24614
+ };
24051
24615
  logistics_supersede_stale_tasks: {
24052
24616
  Args: {
24053
24617
  p_keep: string[];
@@ -24084,6 +24648,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24084
24648
  Args: never;
24085
24649
  Returns: string;
24086
24650
  };
24651
+ logistics_timezone_options: {
24652
+ Args: never;
24653
+ Returns: {
24654
+ name: string;
24655
+ }[];
24656
+ };
24087
24657
  logistics_upsert_task: {
24088
24658
  Args: {
24089
24659
  p_buffer_ref: string;
@@ -24103,6 +24673,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24103
24673
  };
24104
24674
  Returns: string;
24105
24675
  };
24676
+ logistics_valid_timezone: {
24677
+ Args: {
24678
+ _tz: string;
24679
+ };
24680
+ Returns: boolean;
24681
+ };
24682
+ logistics_working_hours_status: {
24683
+ Args: never;
24684
+ Returns: import("../integrations/supabase/types").Json;
24685
+ };
24106
24686
  logistics_write_buffer_layer_positions: {
24107
24687
  Args: {
24108
24688
  p_buffer_id: string;
@@ -24268,6 +24848,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
24268
24848
  online: boolean;
24269
24849
  }[];
24270
24850
  };
24851
+ pick_apply_buffer_events: {
24852
+ Args: never;
24853
+ Returns: import("../integrations/supabase/types").Json;
24854
+ };
24271
24855
  pick_available_pick_days: {
24272
24856
  Args: {
24273
24857
  _max_days?: number;
@@ -25544,6 +26128,13 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
25544
26128
  };
25545
26129
  Returns: number;
25546
26130
  };
26131
+ schedule_floriday_catalog_prices_sync: {
26132
+ Args: {
26133
+ p_apikey: string;
26134
+ p_url: string;
26135
+ };
26136
+ Returns: number;
26137
+ };
25547
26138
  schedule_floriday_clock_presales_sync: {
25548
26139
  Args: {
25549
26140
  p_apikey: string;
@@ -25844,6 +26435,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
25844
26435
  };
25845
26436
  Returns: undefined;
25846
26437
  };
26438
+ sync_floriday_prices_into_price_groups: {
26439
+ Args: never;
26440
+ Returns: number;
26441
+ };
25847
26442
  sync_layer_stock: {
25848
26443
  Args: {
25849
26444
  p_product_id: string;
@@ -31858,6 +32453,84 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
31858
32453
  referencedColumns: ["id"];
31859
32454
  }];
31860
32455
  };
32456
+ floriday_catalog_prices_cache: {
32457
+ Row: {
32458
+ connection_id: string;
32459
+ created_at: string;
32460
+ currency: string;
32461
+ id: string;
32462
+ is_deleted: boolean;
32463
+ price: number | null;
32464
+ price_group_id: string | null;
32465
+ price_group_name: string | null;
32466
+ price_type: string;
32467
+ raw: import("../integrations/supabase/types").Json | null;
32468
+ sales_unit: string | null;
32469
+ sequence_number: number;
32470
+ supplier_article_code: string | null;
32471
+ supply_line_id: string;
32472
+ synced_at: string;
32473
+ trade_item_id: string | null;
32474
+ updated_at: string;
32475
+ valid_from: string | null;
32476
+ valid_to: string | null;
32477
+ week: number | null;
32478
+ year: number | null;
32479
+ };
32480
+ Insert: {
32481
+ connection_id: string;
32482
+ created_at?: string;
32483
+ currency?: string;
32484
+ id?: string;
32485
+ is_deleted?: boolean;
32486
+ price?: number | null;
32487
+ price_group_id?: string | null;
32488
+ price_group_name?: string | null;
32489
+ price_type?: string;
32490
+ raw?: import("../integrations/supabase/types").Json | null;
32491
+ sales_unit?: string | null;
32492
+ sequence_number?: number;
32493
+ supplier_article_code?: string | null;
32494
+ supply_line_id: string;
32495
+ synced_at?: string;
32496
+ trade_item_id?: string | null;
32497
+ updated_at?: string;
32498
+ valid_from?: string | null;
32499
+ valid_to?: string | null;
32500
+ week?: number | null;
32501
+ year?: number | null;
32502
+ };
32503
+ Update: {
32504
+ connection_id?: string;
32505
+ created_at?: string;
32506
+ currency?: string;
32507
+ id?: string;
32508
+ is_deleted?: boolean;
32509
+ price?: number | null;
32510
+ price_group_id?: string | null;
32511
+ price_group_name?: string | null;
32512
+ price_type?: string;
32513
+ raw?: import("../integrations/supabase/types").Json | null;
32514
+ sales_unit?: string | null;
32515
+ sequence_number?: number;
32516
+ supplier_article_code?: string | null;
32517
+ supply_line_id?: string;
32518
+ synced_at?: string;
32519
+ trade_item_id?: string | null;
32520
+ updated_at?: string;
32521
+ valid_from?: string | null;
32522
+ valid_to?: string | null;
32523
+ week?: number | null;
32524
+ year?: number | null;
32525
+ };
32526
+ Relationships: [{
32527
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32528
+ columns: ["connection_id"];
32529
+ isOneToOne: false;
32530
+ referencedRelation: "floriday_connections";
32531
+ referencedColumns: ["id"];
32532
+ }];
32533
+ };
31861
32534
  floriday_clock_presales_cache: {
31862
32535
  Row: {
31863
32536
  buyer_organization_id: string | null;
@@ -36124,6 +36797,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
36124
36797
  };
36125
36798
  Relationships: [];
36126
36799
  };
36800
+ logistics_floriday_push_refusals: {
36801
+ Row: {
36802
+ action: string | null;
36803
+ created_at: string;
36804
+ id: string;
36805
+ order_ref: string;
36806
+ reason: string;
36807
+ source_module: string | null;
36808
+ source_shell: string | null;
36809
+ };
36810
+ Insert: {
36811
+ action?: string | null;
36812
+ created_at?: string;
36813
+ id?: string;
36814
+ order_ref: string;
36815
+ reason: string;
36816
+ source_module?: string | null;
36817
+ source_shell?: string | null;
36818
+ };
36819
+ Update: {
36820
+ action?: string | null;
36821
+ created_at?: string;
36822
+ id?: string;
36823
+ order_ref?: string;
36824
+ reason?: string;
36825
+ source_module?: string | null;
36826
+ source_shell?: string | null;
36827
+ };
36828
+ Relationships: [];
36829
+ };
36127
36830
  logistics_floriday_pushes: {
36128
36831
  Row: {
36129
36832
  attempts: number;
@@ -36199,6 +36902,42 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
36199
36902
  };
36200
36903
  Relationships: [];
36201
36904
  };
36905
+ logistics_floriday_status_sends: {
36906
+ Row: {
36907
+ action: string;
36908
+ created_at: string;
36909
+ detail: string | null;
36910
+ http_status: number | null;
36911
+ id: string;
36912
+ ok: boolean;
36913
+ order_ref: string;
36914
+ source_module: string | null;
36915
+ source_shell: string | null;
36916
+ };
36917
+ Insert: {
36918
+ action: string;
36919
+ created_at?: string;
36920
+ detail?: string | null;
36921
+ http_status?: number | null;
36922
+ id?: string;
36923
+ ok?: boolean;
36924
+ order_ref: string;
36925
+ source_module?: string | null;
36926
+ source_shell?: string | null;
36927
+ };
36928
+ Update: {
36929
+ action?: string;
36930
+ created_at?: string;
36931
+ detail?: string | null;
36932
+ http_status?: number | null;
36933
+ id?: string;
36934
+ ok?: boolean;
36935
+ order_ref?: string;
36936
+ source_module?: string | null;
36937
+ source_shell?: string | null;
36938
+ };
36939
+ Relationships: [];
36940
+ };
36202
36941
  logistics_formulas: {
36203
36942
  Row: {
36204
36943
  created_at: string;
@@ -36271,6 +37010,108 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
36271
37010
  };
36272
37011
  Relationships: [];
36273
37012
  };
37013
+ logistics_opening_exceptions: {
37014
+ Row: {
37015
+ closes: string | null;
37016
+ created_at: string;
37017
+ day: string;
37018
+ id: string;
37019
+ is_closed: boolean;
37020
+ note: string | null;
37021
+ opens: string | null;
37022
+ };
37023
+ Insert: {
37024
+ closes?: string | null;
37025
+ created_at?: string;
37026
+ day: string;
37027
+ id?: string;
37028
+ is_closed?: boolean;
37029
+ note?: string | null;
37030
+ opens?: string | null;
37031
+ };
37032
+ Update: {
37033
+ closes?: string | null;
37034
+ created_at?: string;
37035
+ day?: string;
37036
+ id?: string;
37037
+ is_closed?: boolean;
37038
+ note?: string | null;
37039
+ opens?: string | null;
37040
+ };
37041
+ Relationships: [];
37042
+ };
37043
+ logistics_opening_hours: {
37044
+ Row: {
37045
+ closes: string;
37046
+ created_at: string;
37047
+ id: string;
37048
+ is_active: boolean;
37049
+ note: string | null;
37050
+ opens: string;
37051
+ weekday: number;
37052
+ };
37053
+ Insert: {
37054
+ closes: string;
37055
+ created_at?: string;
37056
+ id?: string;
37057
+ is_active?: boolean;
37058
+ note?: string | null;
37059
+ opens: string;
37060
+ weekday: number;
37061
+ };
37062
+ Update: {
37063
+ closes?: string;
37064
+ created_at?: string;
37065
+ id?: string;
37066
+ is_active?: boolean;
37067
+ note?: string | null;
37068
+ opens?: string;
37069
+ weekday?: number;
37070
+ };
37071
+ Relationships: [];
37072
+ };
37073
+ logistics_pick_data_requests: {
37074
+ Row: {
37075
+ actions: import("../integrations/supabase/types").Json;
37076
+ created_at: string;
37077
+ event_id: string | null;
37078
+ finished_at: string | null;
37079
+ id: string;
37080
+ missing: import("../integrations/supabase/types").Json;
37081
+ order_ref: string;
37082
+ reason: string | null;
37083
+ result: import("../integrations/supabase/types").Json | null;
37084
+ status: string;
37085
+ unit_ref: string | null;
37086
+ };
37087
+ Insert: {
37088
+ actions?: import("../integrations/supabase/types").Json;
37089
+ created_at?: string;
37090
+ event_id?: string | null;
37091
+ finished_at?: string | null;
37092
+ id?: string;
37093
+ missing?: import("../integrations/supabase/types").Json;
37094
+ order_ref: string;
37095
+ reason?: string | null;
37096
+ result?: import("../integrations/supabase/types").Json | null;
37097
+ status?: string;
37098
+ unit_ref?: string | null;
37099
+ };
37100
+ Update: {
37101
+ actions?: import("../integrations/supabase/types").Json;
37102
+ created_at?: string;
37103
+ event_id?: string | null;
37104
+ finished_at?: string | null;
37105
+ id?: string;
37106
+ missing?: import("../integrations/supabase/types").Json;
37107
+ order_ref?: string;
37108
+ reason?: string | null;
37109
+ result?: import("../integrations/supabase/types").Json | null;
37110
+ status?: string;
37111
+ unit_ref?: string | null;
37112
+ };
37113
+ Relationships: [];
37114
+ };
36274
37115
  logistics_pickup_moments: {
36275
37116
  Row: {
36276
37117
  carrier_ref: string | null;
@@ -37063,6 +37904,24 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
37063
37904
  };
37064
37905
  Relationships: [];
37065
37906
  };
37907
+ logistics_time_settings: {
37908
+ Row: {
37909
+ id: boolean;
37910
+ timezone: string;
37911
+ updated_at: string;
37912
+ };
37913
+ Insert: {
37914
+ id?: boolean;
37915
+ timezone: string;
37916
+ updated_at?: string;
37917
+ };
37918
+ Update: {
37919
+ id?: boolean;
37920
+ timezone?: string;
37921
+ updated_at?: string;
37922
+ };
37923
+ Relationships: [];
37924
+ };
37066
37925
  logistics_variables: {
37067
37926
  Row: {
37068
37927
  created_at: string;
@@ -39453,6 +40312,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39453
40312
  customer_name: string;
39454
40313
  deleted_at: string | null;
39455
40314
  delivery_date: string | null;
40315
+ floriday_order_group_key: string | null;
39456
40316
  floriday_sales_order_id: string | null;
39457
40317
  id: string;
39458
40318
  invoice_due_at: string | null;
@@ -39480,6 +40340,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39480
40340
  customer_name?: string;
39481
40341
  deleted_at?: string | null;
39482
40342
  delivery_date?: string | null;
40343
+ floriday_order_group_key?: string | null;
39483
40344
  floriday_sales_order_id?: string | null;
39484
40345
  id?: string;
39485
40346
  invoice_due_at?: string | null;
@@ -39507,6 +40368,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39507
40368
  customer_name?: string;
39508
40369
  deleted_at?: string | null;
39509
40370
  delivery_date?: string | null;
40371
+ floriday_order_group_key?: string | null;
39510
40372
  floriday_sales_order_id?: string | null;
39511
40373
  id?: string;
39512
40374
  invoice_due_at?: string | null;
@@ -39700,6 +40562,27 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39700
40562
  };
39701
40563
  Relationships: [];
39702
40564
  };
40565
+ pick_buffer_event_cursor: {
40566
+ Row: {
40567
+ created_at: string;
40568
+ id: boolean;
40569
+ last_event_at: string;
40570
+ updated_at: string;
40571
+ };
40572
+ Insert: {
40573
+ created_at?: string;
40574
+ id?: boolean;
40575
+ last_event_at?: string;
40576
+ updated_at?: string;
40577
+ };
40578
+ Update: {
40579
+ created_at?: string;
40580
+ id?: boolean;
40581
+ last_event_at?: string;
40582
+ updated_at?: string;
40583
+ };
40584
+ Relationships: [];
40585
+ };
39703
40586
  pick_countries: {
39704
40587
  Row: {
39705
40588
  active: boolean;
@@ -45349,6 +46232,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
45349
46232
  referencedColumns: ["id"];
45350
46233
  }];
45351
46234
  };
46235
+ voorraad_buffer_state: {
46236
+ Row: {
46237
+ buffer_id: string;
46238
+ buffer_key: string | null;
46239
+ closed_at: string | null;
46240
+ created_at: string;
46241
+ detached_orders: import("../integrations/supabase/types").Json;
46242
+ reason: string | null;
46243
+ updated_at: string;
46244
+ };
46245
+ Insert: {
46246
+ buffer_id: string;
46247
+ buffer_key?: string | null;
46248
+ closed_at?: string | null;
46249
+ created_at?: string;
46250
+ detached_orders?: import("../integrations/supabase/types").Json;
46251
+ reason?: string | null;
46252
+ updated_at?: string;
46253
+ };
46254
+ Update: {
46255
+ buffer_id?: string;
46256
+ buffer_key?: string | null;
46257
+ closed_at?: string | null;
46258
+ created_at?: string;
46259
+ detached_orders?: import("../integrations/supabase/types").Json;
46260
+ reason?: string | null;
46261
+ updated_at?: string;
46262
+ };
46263
+ Relationships: [];
46264
+ };
45352
46265
  voorraad_custom_fields: {
45353
46266
  Row: {
45354
46267
  created_at: string;
@@ -45391,6 +46304,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
45391
46304
  };
45392
46305
  Relationships: [];
45393
46306
  };
46307
+ voorraad_logistics_event_log: {
46308
+ Row: {
46309
+ created_at: string;
46310
+ event_id: string;
46311
+ event_type: string;
46312
+ order_ref: string | null;
46313
+ processed_at: string;
46314
+ result: import("../integrations/supabase/types").Json;
46315
+ updated_at: string;
46316
+ };
46317
+ Insert: {
46318
+ created_at?: string;
46319
+ event_id: string;
46320
+ event_type: string;
46321
+ order_ref?: string | null;
46322
+ processed_at?: string;
46323
+ result?: import("../integrations/supabase/types").Json;
46324
+ updated_at?: string;
46325
+ };
46326
+ Update: {
46327
+ created_at?: string;
46328
+ event_id?: string;
46329
+ event_type?: string;
46330
+ order_ref?: string | null;
46331
+ processed_at?: string;
46332
+ result?: import("../integrations/supabase/types").Json;
46333
+ updated_at?: string;
46334
+ };
46335
+ Relationships: [];
46336
+ };
45394
46337
  voorraad_media_upload_failures: {
45395
46338
  Row: {
45396
46339
  action: string;
@@ -48216,6 +49159,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
48216
49159
  };
48217
49160
  Returns: boolean;
48218
49161
  };
49162
+ floriday_adopt_connection: {
49163
+ Args: {
49164
+ p_new: string;
49165
+ p_old: string;
49166
+ };
49167
+ Returns: import("../integrations/supabase/types").Json;
49168
+ };
49169
+ floriday_autoheal_connections: {
49170
+ Args: never;
49171
+ Returns: import("../integrations/supabase/types").Json;
49172
+ };
48219
49173
  floriday_capture_stock_snapshot: {
48220
49174
  Args: never;
48221
49175
  Returns: number;
@@ -48273,6 +49227,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
48273
49227
  };
48274
49228
  Returns: undefined;
48275
49229
  };
49230
+ floriday_relink_products: {
49231
+ Args: {
49232
+ p_connection_id?: string;
49233
+ };
49234
+ Returns: import("../integrations/supabase/types").Json;
49235
+ };
48276
49236
  floriday_requeue_dead_letters: {
48277
49237
  Args: {
48278
49238
  p_connection_id?: string;
@@ -48894,6 +49854,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
48894
49854
  };
48895
49855
  Returns: string;
48896
49856
  };
49857
+ logistics_active_layout_method: {
49858
+ Args: never;
49859
+ Returns: string;
49860
+ };
48897
49861
  logistics_active_pick_workdays: {
48898
49862
  Args: never;
48899
49863
  Returns: string[];
@@ -49001,6 +49965,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49001
49965
  };
49002
49966
  Returns: boolean;
49003
49967
  };
49968
+ logistics_buffer_notify: {
49969
+ Args: {
49970
+ p_event_type: string;
49971
+ p_idempotency_key: string;
49972
+ p_order_ref: string;
49973
+ p_payload: import("../integrations/supabase/types").Json;
49974
+ };
49975
+ Returns: string;
49976
+ };
49004
49977
  logistics_buffer_open_key: {
49005
49978
  Args: {
49006
49979
  p_base_key: string;
@@ -49059,6 +50032,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49059
50032
  };
49060
50033
  Returns: string;
49061
50034
  };
50035
+ logistics_cart_checkin_at: {
50036
+ Args: {
50037
+ p_cart_id: string;
50038
+ };
50039
+ Returns: string;
50040
+ };
49062
50041
  logistics_cart_handled: {
49063
50042
  Args: {
49064
50043
  p_cart_index: number;
@@ -49092,10 +50071,22 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49092
50071
  task_status: string;
49093
50072
  }[];
49094
50073
  };
50074
+ logistics_cart_is_full: {
50075
+ Args: {
50076
+ p_cart_id: string;
50077
+ };
50078
+ Returns: boolean;
50079
+ };
49095
50080
  logistics_cart_layout_method: {
49096
50081
  Args: never;
49097
50082
  Returns: import("../integrations/supabase/types").Json;
49098
50083
  };
50084
+ logistics_cart_order_refs: {
50085
+ Args: {
50086
+ p_cart_id: string;
50087
+ };
50088
+ Returns: string[];
50089
+ };
49099
50090
  logistics_cart_plan_overview: {
49100
50091
  Args: {
49101
50092
  p_days?: number;
@@ -49115,6 +50106,18 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49115
50106
  };
49116
50107
  Returns: import("../integrations/supabase/types").Json;
49117
50108
  };
50109
+ logistics_cart_release_reason: {
50110
+ Args: {
50111
+ p_cart_id: string;
50112
+ };
50113
+ Returns: string;
50114
+ };
50115
+ logistics_cart_released: {
50116
+ Args: {
50117
+ p_cart_id: string;
50118
+ };
50119
+ Returns: boolean;
50120
+ };
49118
50121
  logistics_cart_seq: {
49119
50122
  Args: {
49120
50123
  p_order_uuid?: string;
@@ -49268,6 +50271,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49268
50271
  isSetofReturn: false;
49269
50272
  };
49270
50273
  };
50274
+ logistics_cleanup_orphan_print_jobs: {
50275
+ Args: never;
50276
+ Returns: import("../integrations/supabase/types").Json;
50277
+ };
49271
50278
  logistics_complete_task: {
49272
50279
  Args: {
49273
50280
  p_result?: import("../integrations/supabase/types").Json;
@@ -49330,6 +50337,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49330
50337
  station_carts: number;
49331
50338
  }[];
49332
50339
  };
50340
+ logistics_control_complete_cart: {
50341
+ Args: {
50342
+ p_cart_id: string;
50343
+ };
50344
+ Returns: number;
50345
+ };
49333
50346
  logistics_control_scan_approve: {
49334
50347
  Args: {
49335
50348
  p_allow_reprint?: boolean;
@@ -49409,6 +50422,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49409
50422
  Args: never;
49410
50423
  Returns: import("../integrations/supabase/types").Json;
49411
50424
  };
50425
+ logistics_day_windows: {
50426
+ Args: {
50427
+ p_day: string;
50428
+ };
50429
+ Returns: {
50430
+ win_end: string;
50431
+ win_start: string;
50432
+ }[];
50433
+ };
49412
50434
  logistics_delay_customer_email: {
49413
50435
  Args: {
49414
50436
  p_customer: string;
@@ -49476,6 +50498,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49476
50498
  };
49477
50499
  Returns: import("../integrations/supabase/types").Json;
49478
50500
  };
50501
+ logistics_enqueue_shipping_note_with_slip: {
50502
+ Args: {
50503
+ _cart_id: string;
50504
+ _is_herprint: boolean;
50505
+ _printer_id: string;
50506
+ _queue_item_id: string;
50507
+ _session_id: string;
50508
+ _slip_job_id: string;
50509
+ };
50510
+ Returns: string;
50511
+ };
49479
50512
  logistics_enqueue_sticker_with_slip: {
49480
50513
  Args: {
49481
50514
  _cart_id: string;
@@ -49493,6 +50526,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49493
50526
  };
49494
50527
  Returns: string;
49495
50528
  };
50529
+ logistics_ensure_pick_data: {
50530
+ Args: {
50531
+ p_event_id?: string;
50532
+ p_missing?: import("../integrations/supabase/types").Json;
50533
+ p_ref: string;
50534
+ };
50535
+ Returns: import("../integrations/supabase/types").Json;
50536
+ };
49496
50537
  logistics_fail_task: {
49497
50538
  Args: {
49498
50539
  p_error: string;
@@ -49614,6 +50655,38 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49614
50655
  };
49615
50656
  Returns: string;
49616
50657
  };
50658
+ logistics_floriday_gate_status: {
50659
+ Args: never;
50660
+ Returns: import("../integrations/supabase/types").Json;
50661
+ };
50662
+ logistics_floriday_log_refusal: {
50663
+ Args: {
50664
+ _action?: string;
50665
+ _module?: string;
50666
+ _order_ref: string;
50667
+ _reason: string;
50668
+ _shell?: string;
50669
+ };
50670
+ Returns: undefined;
50671
+ };
50672
+ logistics_floriday_log_send: {
50673
+ Args: {
50674
+ _action: string;
50675
+ _detail?: string;
50676
+ _http_status?: number;
50677
+ _module?: string;
50678
+ _ok: boolean;
50679
+ _order_ref: string;
50680
+ _shell?: string;
50681
+ };
50682
+ Returns: undefined;
50683
+ };
50684
+ logistics_floriday_order_approved: {
50685
+ Args: {
50686
+ _order_ref: string;
50687
+ };
50688
+ Returns: boolean;
50689
+ };
49617
50690
  logistics_floriday_prune_pushes: {
49618
50691
  Args: {
49619
50692
  _days?: number;
@@ -49628,6 +50701,20 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49628
50701
  };
49629
50702
  Returns: string;
49630
50703
  };
50704
+ logistics_floriday_status_updates_enabled: {
50705
+ Args: never;
50706
+ Returns: boolean;
50707
+ };
50708
+ logistics_floriday_stock_updates_enabled: {
50709
+ Args: never;
50710
+ Returns: boolean;
50711
+ };
50712
+ logistics_floriday_write_allowed: {
50713
+ Args: {
50714
+ _action: string;
50715
+ };
50716
+ Returns: boolean;
50717
+ };
49631
50718
  logistics_fulfill_barcode_requests: {
49632
50719
  Args: {
49633
50720
  p_limit?: number;
@@ -49648,6 +50735,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49648
50735
  };
49649
50736
  Returns: boolean;
49650
50737
  };
50738
+ logistics_layout_method_status: {
50739
+ Args: never;
50740
+ Returns: import("../integrations/supabase/types").Json;
50741
+ };
50742
+ logistics_link_order_items: {
50743
+ Args: {
50744
+ p_order?: string;
50745
+ };
50746
+ Returns: import("../integrations/supabase/types").Json;
50747
+ };
49651
50748
  logistics_live_carriers: {
49652
50749
  Args: {
49653
50750
  p_order_ref: string;
@@ -49660,6 +50757,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49660
50757
  };
49661
50758
  Returns: number;
49662
50759
  };
50760
+ logistics_merge_partial_carts: {
50761
+ Args: {
50762
+ p_limit?: number;
50763
+ };
50764
+ Returns: import("../integrations/supabase/types").Json;
50765
+ };
49663
50766
  logistics_next_workday_date: {
49664
50767
  Args: {
49665
50768
  p_date: string;
@@ -49674,12 +50777,22 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49674
50777
  };
49675
50778
  Returns: string;
49676
50779
  };
50780
+ logistics_normalize_product_label: {
50781
+ Args: {
50782
+ p_label: string;
50783
+ };
50784
+ Returns: string;
50785
+ };
49677
50786
  logistics_not_past: {
49678
50787
  Args: {
49679
50788
  p_ts: string;
49680
50789
  };
49681
50790
  Returns: string;
49682
50791
  };
50792
+ logistics_opening_timezone: {
50793
+ Args: never;
50794
+ Returns: string;
50795
+ };
49683
50796
  logistics_order_cart_count: {
49684
50797
  Args: {
49685
50798
  p_order_ref: string;
@@ -49764,6 +50877,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49764
50877
  Args: never;
49765
50878
  Returns: import("../integrations/supabase/types").Json;
49766
50879
  };
50880
+ logistics_pick_partial_mode: {
50881
+ Args: never;
50882
+ Returns: string;
50883
+ };
49767
50884
  logistics_pick_start_estimate: {
49768
50885
  Args: {
49769
50886
  p_order: import("../integrations/supabase/types").Json;
@@ -49875,6 +50992,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49875
50992
  };
49876
50993
  Returns: number;
49877
50994
  };
50995
+ logistics_prepare_pick_documents: {
50996
+ Args: {
50997
+ p_limit?: number;
50998
+ };
50999
+ Returns: import("../integrations/supabase/types").Json;
51000
+ };
49878
51001
  logistics_prune_buffer_member_queue: {
49879
51002
  Args: never;
49880
51003
  Returns: number;
@@ -49915,12 +51038,30 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49915
51038
  Args: never;
49916
51039
  Returns: import("../integrations/supabase/types").Json;
49917
51040
  };
51041
+ logistics_refresh_pick_queue_status: {
51042
+ Args: {
51043
+ p_ref: string;
51044
+ };
51045
+ Returns: number;
51046
+ };
49918
51047
  logistics_refresh_pickup_moments: {
49919
51048
  Args: {
49920
51049
  p_weeks?: number;
49921
51050
  };
49922
51051
  Returns: import("../integrations/supabase/types").Json;
49923
51052
  };
51053
+ logistics_replan_all: {
51054
+ Args: {
51055
+ p_reason?: string;
51056
+ };
51057
+ Returns: import("../integrations/supabase/types").Json;
51058
+ };
51059
+ logistics_replan_all_force: {
51060
+ Args: {
51061
+ p_reason?: string;
51062
+ };
51063
+ Returns: import("../integrations/supabase/types").Json;
51064
+ };
49924
51065
  logistics_report_delay: {
49925
51066
  Args: {
49926
51067
  p_expected_date?: string;
@@ -49974,6 +51115,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
49974
51115
  };
49975
51116
  Returns: import("../integrations/supabase/types").Json;
49976
51117
  };
51118
+ logistics_resolve_product_id: {
51119
+ Args: {
51120
+ p_label: string;
51121
+ };
51122
+ Returns: string;
51123
+ };
49977
51124
  logistics_resolve_settings: {
49978
51125
  Args: {
49979
51126
  p_config_id: string;
@@ -50059,6 +51206,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50059
51206
  };
50060
51207
  Returns: string;
50061
51208
  };
51209
+ logistics_shipping_note_follows_slip: {
51210
+ Args: never;
51211
+ Returns: boolean;
51212
+ };
50062
51213
  logistics_shipping_note_from_barcode: {
50063
51214
  Args: {
50064
51215
  p_allow_reprint?: boolean;
@@ -50071,6 +51222,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50071
51222
  Args: never;
50072
51223
  Returns: boolean;
50073
51224
  };
51225
+ logistics_subtract_working_minutes: {
51226
+ Args: {
51227
+ p_deadline: string;
51228
+ p_max_workdays?: number;
51229
+ p_minutes: number;
51230
+ };
51231
+ Returns: import("../integrations/supabase/types").Json;
51232
+ };
50074
51233
  logistics_supersede_stale_tasks: {
50075
51234
  Args: {
50076
51235
  p_keep: string[];
@@ -50107,6 +51266,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50107
51266
  Args: never;
50108
51267
  Returns: string;
50109
51268
  };
51269
+ logistics_timezone_options: {
51270
+ Args: never;
51271
+ Returns: {
51272
+ name: string;
51273
+ }[];
51274
+ };
50110
51275
  logistics_upsert_task: {
50111
51276
  Args: {
50112
51277
  p_buffer_ref: string;
@@ -50126,6 +51291,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50126
51291
  };
50127
51292
  Returns: string;
50128
51293
  };
51294
+ logistics_valid_timezone: {
51295
+ Args: {
51296
+ _tz: string;
51297
+ };
51298
+ Returns: boolean;
51299
+ };
51300
+ logistics_working_hours_status: {
51301
+ Args: never;
51302
+ Returns: import("../integrations/supabase/types").Json;
51303
+ };
50129
51304
  logistics_write_buffer_layer_positions: {
50130
51305
  Args: {
50131
51306
  p_buffer_id: string;
@@ -50291,6 +51466,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
50291
51466
  online: boolean;
50292
51467
  }[];
50293
51468
  };
51469
+ pick_apply_buffer_events: {
51470
+ Args: never;
51471
+ Returns: import("../integrations/supabase/types").Json;
51472
+ };
50294
51473
  pick_available_pick_days: {
50295
51474
  Args: {
50296
51475
  _max_days?: number;
@@ -51567,6 +52746,13 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
51567
52746
  };
51568
52747
  Returns: number;
51569
52748
  };
52749
+ schedule_floriday_catalog_prices_sync: {
52750
+ Args: {
52751
+ p_apikey: string;
52752
+ p_url: string;
52753
+ };
52754
+ Returns: number;
52755
+ };
51570
52756
  schedule_floriday_clock_presales_sync: {
51571
52757
  Args: {
51572
52758
  p_apikey: string;
@@ -51867,6 +53053,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
51867
53053
  };
51868
53054
  Returns: undefined;
51869
53055
  };
53056
+ sync_floriday_prices_into_price_groups: {
53057
+ Args: never;
53058
+ Returns: number;
53059
+ };
51870
53060
  sync_layer_stock: {
51871
53061
  Args: {
51872
53062
  p_product_id: string;