@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
@@ -5819,6 +5819,84 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
5819
5819
  referencedColumns: ["id"];
5820
5820
  }];
5821
5821
  };
5822
+ floriday_catalog_prices_cache: {
5823
+ Row: {
5824
+ connection_id: string;
5825
+ created_at: string;
5826
+ currency: string;
5827
+ id: string;
5828
+ is_deleted: boolean;
5829
+ price: number | null;
5830
+ price_group_id: string | null;
5831
+ price_group_name: string | null;
5832
+ price_type: string;
5833
+ raw: import("../integrations/supabase/types").Json | null;
5834
+ sales_unit: string | null;
5835
+ sequence_number: number;
5836
+ supplier_article_code: string | null;
5837
+ supply_line_id: string;
5838
+ synced_at: string;
5839
+ trade_item_id: string | null;
5840
+ updated_at: string;
5841
+ valid_from: string | null;
5842
+ valid_to: string | null;
5843
+ week: number | null;
5844
+ year: number | null;
5845
+ };
5846
+ Insert: {
5847
+ connection_id: string;
5848
+ created_at?: string;
5849
+ currency?: string;
5850
+ id?: string;
5851
+ is_deleted?: boolean;
5852
+ price?: number | null;
5853
+ price_group_id?: string | null;
5854
+ price_group_name?: string | null;
5855
+ price_type?: string;
5856
+ raw?: import("../integrations/supabase/types").Json | null;
5857
+ sales_unit?: string | null;
5858
+ sequence_number?: number;
5859
+ supplier_article_code?: string | null;
5860
+ supply_line_id: string;
5861
+ synced_at?: string;
5862
+ trade_item_id?: string | null;
5863
+ updated_at?: string;
5864
+ valid_from?: string | null;
5865
+ valid_to?: string | null;
5866
+ week?: number | null;
5867
+ year?: number | null;
5868
+ };
5869
+ Update: {
5870
+ connection_id?: string;
5871
+ created_at?: string;
5872
+ currency?: string;
5873
+ id?: string;
5874
+ is_deleted?: boolean;
5875
+ price?: number | null;
5876
+ price_group_id?: string | null;
5877
+ price_group_name?: string | null;
5878
+ price_type?: string;
5879
+ raw?: import("../integrations/supabase/types").Json | null;
5880
+ sales_unit?: string | null;
5881
+ sequence_number?: number;
5882
+ supplier_article_code?: string | null;
5883
+ supply_line_id?: string;
5884
+ synced_at?: string;
5885
+ trade_item_id?: string | null;
5886
+ updated_at?: string;
5887
+ valid_from?: string | null;
5888
+ valid_to?: string | null;
5889
+ week?: number | null;
5890
+ year?: number | null;
5891
+ };
5892
+ Relationships: [{
5893
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5894
+ columns: ["connection_id"];
5895
+ isOneToOne: false;
5896
+ referencedRelation: "floriday_connections";
5897
+ referencedColumns: ["id"];
5898
+ }];
5899
+ };
5822
5900
  floriday_clock_presales_cache: {
5823
5901
  Row: {
5824
5902
  buyer_organization_id: string | null;
@@ -10085,6 +10163,36 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10085
10163
  };
10086
10164
  Relationships: [];
10087
10165
  };
10166
+ logistics_floriday_push_refusals: {
10167
+ Row: {
10168
+ action: string | null;
10169
+ created_at: string;
10170
+ id: string;
10171
+ order_ref: string;
10172
+ reason: string;
10173
+ source_module: string | null;
10174
+ source_shell: string | null;
10175
+ };
10176
+ Insert: {
10177
+ action?: string | null;
10178
+ created_at?: string;
10179
+ id?: string;
10180
+ order_ref: string;
10181
+ reason: string;
10182
+ source_module?: string | null;
10183
+ source_shell?: string | null;
10184
+ };
10185
+ Update: {
10186
+ action?: string | null;
10187
+ created_at?: string;
10188
+ id?: string;
10189
+ order_ref?: string;
10190
+ reason?: string;
10191
+ source_module?: string | null;
10192
+ source_shell?: string | null;
10193
+ };
10194
+ Relationships: [];
10195
+ };
10088
10196
  logistics_floriday_pushes: {
10089
10197
  Row: {
10090
10198
  attempts: number;
@@ -10160,6 +10268,42 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10160
10268
  };
10161
10269
  Relationships: [];
10162
10270
  };
10271
+ logistics_floriday_status_sends: {
10272
+ Row: {
10273
+ action: string;
10274
+ created_at: string;
10275
+ detail: string | null;
10276
+ http_status: number | null;
10277
+ id: string;
10278
+ ok: boolean;
10279
+ order_ref: string;
10280
+ source_module: string | null;
10281
+ source_shell: string | null;
10282
+ };
10283
+ Insert: {
10284
+ action: string;
10285
+ created_at?: string;
10286
+ detail?: string | null;
10287
+ http_status?: number | null;
10288
+ id?: string;
10289
+ ok?: boolean;
10290
+ order_ref: string;
10291
+ source_module?: string | null;
10292
+ source_shell?: string | null;
10293
+ };
10294
+ Update: {
10295
+ action?: string;
10296
+ created_at?: string;
10297
+ detail?: string | null;
10298
+ http_status?: number | null;
10299
+ id?: string;
10300
+ ok?: boolean;
10301
+ order_ref?: string;
10302
+ source_module?: string | null;
10303
+ source_shell?: string | null;
10304
+ };
10305
+ Relationships: [];
10306
+ };
10163
10307
  logistics_formulas: {
10164
10308
  Row: {
10165
10309
  created_at: string;
@@ -10232,6 +10376,108 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
10232
10376
  };
10233
10377
  Relationships: [];
10234
10378
  };
10379
+ logistics_opening_exceptions: {
10380
+ Row: {
10381
+ closes: string | null;
10382
+ created_at: string;
10383
+ day: string;
10384
+ id: string;
10385
+ is_closed: boolean;
10386
+ note: string | null;
10387
+ opens: string | null;
10388
+ };
10389
+ Insert: {
10390
+ closes?: string | null;
10391
+ created_at?: string;
10392
+ day: string;
10393
+ id?: string;
10394
+ is_closed?: boolean;
10395
+ note?: string | null;
10396
+ opens?: string | null;
10397
+ };
10398
+ Update: {
10399
+ closes?: string | null;
10400
+ created_at?: string;
10401
+ day?: string;
10402
+ id?: string;
10403
+ is_closed?: boolean;
10404
+ note?: string | null;
10405
+ opens?: string | null;
10406
+ };
10407
+ Relationships: [];
10408
+ };
10409
+ logistics_opening_hours: {
10410
+ Row: {
10411
+ closes: string;
10412
+ created_at: string;
10413
+ id: string;
10414
+ is_active: boolean;
10415
+ note: string | null;
10416
+ opens: string;
10417
+ weekday: number;
10418
+ };
10419
+ Insert: {
10420
+ closes: string;
10421
+ created_at?: string;
10422
+ id?: string;
10423
+ is_active?: boolean;
10424
+ note?: string | null;
10425
+ opens: string;
10426
+ weekday: number;
10427
+ };
10428
+ Update: {
10429
+ closes?: string;
10430
+ created_at?: string;
10431
+ id?: string;
10432
+ is_active?: boolean;
10433
+ note?: string | null;
10434
+ opens?: string;
10435
+ weekday?: number;
10436
+ };
10437
+ Relationships: [];
10438
+ };
10439
+ logistics_pick_data_requests: {
10440
+ Row: {
10441
+ actions: import("../integrations/supabase/types").Json;
10442
+ created_at: string;
10443
+ event_id: string | null;
10444
+ finished_at: string | null;
10445
+ id: string;
10446
+ missing: import("../integrations/supabase/types").Json;
10447
+ order_ref: string;
10448
+ reason: string | null;
10449
+ result: import("../integrations/supabase/types").Json | null;
10450
+ status: string;
10451
+ unit_ref: string | null;
10452
+ };
10453
+ Insert: {
10454
+ actions?: import("../integrations/supabase/types").Json;
10455
+ created_at?: string;
10456
+ event_id?: string | null;
10457
+ finished_at?: string | null;
10458
+ id?: string;
10459
+ missing?: import("../integrations/supabase/types").Json;
10460
+ order_ref: string;
10461
+ reason?: string | null;
10462
+ result?: import("../integrations/supabase/types").Json | null;
10463
+ status?: string;
10464
+ unit_ref?: string | null;
10465
+ };
10466
+ Update: {
10467
+ actions?: import("../integrations/supabase/types").Json;
10468
+ created_at?: string;
10469
+ event_id?: string | null;
10470
+ finished_at?: string | null;
10471
+ id?: string;
10472
+ missing?: import("../integrations/supabase/types").Json;
10473
+ order_ref?: string;
10474
+ reason?: string | null;
10475
+ result?: import("../integrations/supabase/types").Json | null;
10476
+ status?: string;
10477
+ unit_ref?: string | null;
10478
+ };
10479
+ Relationships: [];
10480
+ };
10235
10481
  logistics_pickup_moments: {
10236
10482
  Row: {
10237
10483
  carrier_ref: string | null;
@@ -11024,6 +11270,24 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
11024
11270
  };
11025
11271
  Relationships: [];
11026
11272
  };
11273
+ logistics_time_settings: {
11274
+ Row: {
11275
+ id: boolean;
11276
+ timezone: string;
11277
+ updated_at: string;
11278
+ };
11279
+ Insert: {
11280
+ id?: boolean;
11281
+ timezone: string;
11282
+ updated_at?: string;
11283
+ };
11284
+ Update: {
11285
+ id?: boolean;
11286
+ timezone?: string;
11287
+ updated_at?: string;
11288
+ };
11289
+ Relationships: [];
11290
+ };
11027
11291
  logistics_variables: {
11028
11292
  Row: {
11029
11293
  created_at: string;
@@ -13414,6 +13678,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
13414
13678
  customer_name: string;
13415
13679
  deleted_at: string | null;
13416
13680
  delivery_date: string | null;
13681
+ floriday_order_group_key: string | null;
13417
13682
  floriday_sales_order_id: string | null;
13418
13683
  id: string;
13419
13684
  invoice_due_at: string | null;
@@ -13441,6 +13706,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
13441
13706
  customer_name?: string;
13442
13707
  deleted_at?: string | null;
13443
13708
  delivery_date?: string | null;
13709
+ floriday_order_group_key?: string | null;
13444
13710
  floriday_sales_order_id?: string | null;
13445
13711
  id?: string;
13446
13712
  invoice_due_at?: string | null;
@@ -13468,6 +13734,7 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
13468
13734
  customer_name?: string;
13469
13735
  deleted_at?: string | null;
13470
13736
  delivery_date?: string | null;
13737
+ floriday_order_group_key?: string | null;
13471
13738
  floriday_sales_order_id?: string | null;
13472
13739
  id?: string;
13473
13740
  invoice_due_at?: string | null;
@@ -13661,6 +13928,27 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
13661
13928
  };
13662
13929
  Relationships: [];
13663
13930
  };
13931
+ pick_buffer_event_cursor: {
13932
+ Row: {
13933
+ created_at: string;
13934
+ id: boolean;
13935
+ last_event_at: string;
13936
+ updated_at: string;
13937
+ };
13938
+ Insert: {
13939
+ created_at?: string;
13940
+ id?: boolean;
13941
+ last_event_at?: string;
13942
+ updated_at?: string;
13943
+ };
13944
+ Update: {
13945
+ created_at?: string;
13946
+ id?: boolean;
13947
+ last_event_at?: string;
13948
+ updated_at?: string;
13949
+ };
13950
+ Relationships: [];
13951
+ };
13664
13952
  pick_countries: {
13665
13953
  Row: {
13666
13954
  active: boolean;
@@ -19310,6 +19598,36 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
19310
19598
  referencedColumns: ["id"];
19311
19599
  }];
19312
19600
  };
19601
+ voorraad_buffer_state: {
19602
+ Row: {
19603
+ buffer_id: string;
19604
+ buffer_key: string | null;
19605
+ closed_at: string | null;
19606
+ created_at: string;
19607
+ detached_orders: import("../integrations/supabase/types").Json;
19608
+ reason: string | null;
19609
+ updated_at: string;
19610
+ };
19611
+ Insert: {
19612
+ buffer_id: string;
19613
+ buffer_key?: string | null;
19614
+ closed_at?: string | null;
19615
+ created_at?: string;
19616
+ detached_orders?: import("../integrations/supabase/types").Json;
19617
+ reason?: string | null;
19618
+ updated_at?: string;
19619
+ };
19620
+ Update: {
19621
+ buffer_id?: string;
19622
+ buffer_key?: string | null;
19623
+ closed_at?: string | null;
19624
+ created_at?: string;
19625
+ detached_orders?: import("../integrations/supabase/types").Json;
19626
+ reason?: string | null;
19627
+ updated_at?: string;
19628
+ };
19629
+ Relationships: [];
19630
+ };
19313
19631
  voorraad_custom_fields: {
19314
19632
  Row: {
19315
19633
  created_at: string;
@@ -19352,6 +19670,36 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
19352
19670
  };
19353
19671
  Relationships: [];
19354
19672
  };
19673
+ voorraad_logistics_event_log: {
19674
+ Row: {
19675
+ created_at: string;
19676
+ event_id: string;
19677
+ event_type: string;
19678
+ order_ref: string | null;
19679
+ processed_at: string;
19680
+ result: import("../integrations/supabase/types").Json;
19681
+ updated_at: string;
19682
+ };
19683
+ Insert: {
19684
+ created_at?: string;
19685
+ event_id: string;
19686
+ event_type: string;
19687
+ order_ref?: string | null;
19688
+ processed_at?: string;
19689
+ result?: import("../integrations/supabase/types").Json;
19690
+ updated_at?: string;
19691
+ };
19692
+ Update: {
19693
+ created_at?: string;
19694
+ event_id?: string;
19695
+ event_type?: string;
19696
+ order_ref?: string | null;
19697
+ processed_at?: string;
19698
+ result?: import("../integrations/supabase/types").Json;
19699
+ updated_at?: string;
19700
+ };
19701
+ Relationships: [];
19702
+ };
19355
19703
  voorraad_media_upload_failures: {
19356
19704
  Row: {
19357
19705
  action: string;
@@ -22177,6 +22525,17 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
22177
22525
  };
22178
22526
  Returns: boolean;
22179
22527
  };
22528
+ floriday_adopt_connection: {
22529
+ Args: {
22530
+ p_new: string;
22531
+ p_old: string;
22532
+ };
22533
+ Returns: import("../integrations/supabase/types").Json;
22534
+ };
22535
+ floriday_autoheal_connections: {
22536
+ Args: never;
22537
+ Returns: import("../integrations/supabase/types").Json;
22538
+ };
22180
22539
  floriday_capture_stock_snapshot: {
22181
22540
  Args: never;
22182
22541
  Returns: number;
@@ -22234,6 +22593,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
22234
22593
  };
22235
22594
  Returns: undefined;
22236
22595
  };
22596
+ floriday_relink_products: {
22597
+ Args: {
22598
+ p_connection_id?: string;
22599
+ };
22600
+ Returns: import("../integrations/supabase/types").Json;
22601
+ };
22237
22602
  floriday_requeue_dead_letters: {
22238
22603
  Args: {
22239
22604
  p_connection_id?: string;
@@ -22855,6 +23220,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
22855
23220
  };
22856
23221
  Returns: string;
22857
23222
  };
23223
+ logistics_active_layout_method: {
23224
+ Args: never;
23225
+ Returns: string;
23226
+ };
22858
23227
  logistics_active_pick_workdays: {
22859
23228
  Args: never;
22860
23229
  Returns: string[];
@@ -22962,6 +23331,15 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
22962
23331
  };
22963
23332
  Returns: boolean;
22964
23333
  };
23334
+ logistics_buffer_notify: {
23335
+ Args: {
23336
+ p_event_type: string;
23337
+ p_idempotency_key: string;
23338
+ p_order_ref: string;
23339
+ p_payload: import("../integrations/supabase/types").Json;
23340
+ };
23341
+ Returns: string;
23342
+ };
22965
23343
  logistics_buffer_open_key: {
22966
23344
  Args: {
22967
23345
  p_base_key: string;
@@ -23020,6 +23398,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23020
23398
  };
23021
23399
  Returns: string;
23022
23400
  };
23401
+ logistics_cart_checkin_at: {
23402
+ Args: {
23403
+ p_cart_id: string;
23404
+ };
23405
+ Returns: string;
23406
+ };
23023
23407
  logistics_cart_handled: {
23024
23408
  Args: {
23025
23409
  p_cart_index: number;
@@ -23053,10 +23437,22 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23053
23437
  task_status: string;
23054
23438
  }[];
23055
23439
  };
23440
+ logistics_cart_is_full: {
23441
+ Args: {
23442
+ p_cart_id: string;
23443
+ };
23444
+ Returns: boolean;
23445
+ };
23056
23446
  logistics_cart_layout_method: {
23057
23447
  Args: never;
23058
23448
  Returns: import("../integrations/supabase/types").Json;
23059
23449
  };
23450
+ logistics_cart_order_refs: {
23451
+ Args: {
23452
+ p_cart_id: string;
23453
+ };
23454
+ Returns: string[];
23455
+ };
23060
23456
  logistics_cart_plan_overview: {
23061
23457
  Args: {
23062
23458
  p_days?: number;
@@ -23076,6 +23472,18 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23076
23472
  };
23077
23473
  Returns: import("../integrations/supabase/types").Json;
23078
23474
  };
23475
+ logistics_cart_release_reason: {
23476
+ Args: {
23477
+ p_cart_id: string;
23478
+ };
23479
+ Returns: string;
23480
+ };
23481
+ logistics_cart_released: {
23482
+ Args: {
23483
+ p_cart_id: string;
23484
+ };
23485
+ Returns: boolean;
23486
+ };
23079
23487
  logistics_cart_seq: {
23080
23488
  Args: {
23081
23489
  p_order_uuid?: string;
@@ -23229,6 +23637,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23229
23637
  isSetofReturn: false;
23230
23638
  };
23231
23639
  };
23640
+ logistics_cleanup_orphan_print_jobs: {
23641
+ Args: never;
23642
+ Returns: import("../integrations/supabase/types").Json;
23643
+ };
23232
23644
  logistics_complete_task: {
23233
23645
  Args: {
23234
23646
  p_result?: import("../integrations/supabase/types").Json;
@@ -23291,6 +23703,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23291
23703
  station_carts: number;
23292
23704
  }[];
23293
23705
  };
23706
+ logistics_control_complete_cart: {
23707
+ Args: {
23708
+ p_cart_id: string;
23709
+ };
23710
+ Returns: number;
23711
+ };
23294
23712
  logistics_control_scan_approve: {
23295
23713
  Args: {
23296
23714
  p_allow_reprint?: boolean;
@@ -23370,6 +23788,15 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23370
23788
  Args: never;
23371
23789
  Returns: import("../integrations/supabase/types").Json;
23372
23790
  };
23791
+ logistics_day_windows: {
23792
+ Args: {
23793
+ p_day: string;
23794
+ };
23795
+ Returns: {
23796
+ win_end: string;
23797
+ win_start: string;
23798
+ }[];
23799
+ };
23373
23800
  logistics_delay_customer_email: {
23374
23801
  Args: {
23375
23802
  p_customer: string;
@@ -23437,6 +23864,17 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23437
23864
  };
23438
23865
  Returns: import("../integrations/supabase/types").Json;
23439
23866
  };
23867
+ logistics_enqueue_shipping_note_with_slip: {
23868
+ Args: {
23869
+ _cart_id: string;
23870
+ _is_herprint: boolean;
23871
+ _printer_id: string;
23872
+ _queue_item_id: string;
23873
+ _session_id: string;
23874
+ _slip_job_id: string;
23875
+ };
23876
+ Returns: string;
23877
+ };
23440
23878
  logistics_enqueue_sticker_with_slip: {
23441
23879
  Args: {
23442
23880
  _cart_id: string;
@@ -23454,6 +23892,14 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23454
23892
  };
23455
23893
  Returns: string;
23456
23894
  };
23895
+ logistics_ensure_pick_data: {
23896
+ Args: {
23897
+ p_event_id?: string;
23898
+ p_missing?: import("../integrations/supabase/types").Json;
23899
+ p_ref: string;
23900
+ };
23901
+ Returns: import("../integrations/supabase/types").Json;
23902
+ };
23457
23903
  logistics_fail_task: {
23458
23904
  Args: {
23459
23905
  p_error: string;
@@ -23575,6 +24021,38 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23575
24021
  };
23576
24022
  Returns: string;
23577
24023
  };
24024
+ logistics_floriday_gate_status: {
24025
+ Args: never;
24026
+ Returns: import("../integrations/supabase/types").Json;
24027
+ };
24028
+ logistics_floriday_log_refusal: {
24029
+ Args: {
24030
+ _action?: string;
24031
+ _module?: string;
24032
+ _order_ref: string;
24033
+ _reason: string;
24034
+ _shell?: string;
24035
+ };
24036
+ Returns: undefined;
24037
+ };
24038
+ logistics_floriday_log_send: {
24039
+ Args: {
24040
+ _action: string;
24041
+ _detail?: string;
24042
+ _http_status?: number;
24043
+ _module?: string;
24044
+ _ok: boolean;
24045
+ _order_ref: string;
24046
+ _shell?: string;
24047
+ };
24048
+ Returns: undefined;
24049
+ };
24050
+ logistics_floriday_order_approved: {
24051
+ Args: {
24052
+ _order_ref: string;
24053
+ };
24054
+ Returns: boolean;
24055
+ };
23578
24056
  logistics_floriday_prune_pushes: {
23579
24057
  Args: {
23580
24058
  _days?: number;
@@ -23589,6 +24067,20 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23589
24067
  };
23590
24068
  Returns: string;
23591
24069
  };
24070
+ logistics_floriday_status_updates_enabled: {
24071
+ Args: never;
24072
+ Returns: boolean;
24073
+ };
24074
+ logistics_floriday_stock_updates_enabled: {
24075
+ Args: never;
24076
+ Returns: boolean;
24077
+ };
24078
+ logistics_floriday_write_allowed: {
24079
+ Args: {
24080
+ _action: string;
24081
+ };
24082
+ Returns: boolean;
24083
+ };
23592
24084
  logistics_fulfill_barcode_requests: {
23593
24085
  Args: {
23594
24086
  p_limit?: number;
@@ -23609,6 +24101,16 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23609
24101
  };
23610
24102
  Returns: boolean;
23611
24103
  };
24104
+ logistics_layout_method_status: {
24105
+ Args: never;
24106
+ Returns: import("../integrations/supabase/types").Json;
24107
+ };
24108
+ logistics_link_order_items: {
24109
+ Args: {
24110
+ p_order?: string;
24111
+ };
24112
+ Returns: import("../integrations/supabase/types").Json;
24113
+ };
23612
24114
  logistics_live_carriers: {
23613
24115
  Args: {
23614
24116
  p_order_ref: string;
@@ -23621,6 +24123,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23621
24123
  };
23622
24124
  Returns: number;
23623
24125
  };
24126
+ logistics_merge_partial_carts: {
24127
+ Args: {
24128
+ p_limit?: number;
24129
+ };
24130
+ Returns: import("../integrations/supabase/types").Json;
24131
+ };
23624
24132
  logistics_next_workday_date: {
23625
24133
  Args: {
23626
24134
  p_date: string;
@@ -23635,12 +24143,22 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23635
24143
  };
23636
24144
  Returns: string;
23637
24145
  };
24146
+ logistics_normalize_product_label: {
24147
+ Args: {
24148
+ p_label: string;
24149
+ };
24150
+ Returns: string;
24151
+ };
23638
24152
  logistics_not_past: {
23639
24153
  Args: {
23640
24154
  p_ts: string;
23641
24155
  };
23642
24156
  Returns: string;
23643
24157
  };
24158
+ logistics_opening_timezone: {
24159
+ Args: never;
24160
+ Returns: string;
24161
+ };
23644
24162
  logistics_order_cart_count: {
23645
24163
  Args: {
23646
24164
  p_order_ref: string;
@@ -23725,6 +24243,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23725
24243
  Args: never;
23726
24244
  Returns: import("../integrations/supabase/types").Json;
23727
24245
  };
24246
+ logistics_pick_partial_mode: {
24247
+ Args: never;
24248
+ Returns: string;
24249
+ };
23728
24250
  logistics_pick_start_estimate: {
23729
24251
  Args: {
23730
24252
  p_order: import("../integrations/supabase/types").Json;
@@ -23836,6 +24358,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23836
24358
  };
23837
24359
  Returns: number;
23838
24360
  };
24361
+ logistics_prepare_pick_documents: {
24362
+ Args: {
24363
+ p_limit?: number;
24364
+ };
24365
+ Returns: import("../integrations/supabase/types").Json;
24366
+ };
23839
24367
  logistics_prune_buffer_member_queue: {
23840
24368
  Args: never;
23841
24369
  Returns: number;
@@ -23876,12 +24404,30 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23876
24404
  Args: never;
23877
24405
  Returns: import("../integrations/supabase/types").Json;
23878
24406
  };
24407
+ logistics_refresh_pick_queue_status: {
24408
+ Args: {
24409
+ p_ref: string;
24410
+ };
24411
+ Returns: number;
24412
+ };
23879
24413
  logistics_refresh_pickup_moments: {
23880
24414
  Args: {
23881
24415
  p_weeks?: number;
23882
24416
  };
23883
24417
  Returns: import("../integrations/supabase/types").Json;
23884
24418
  };
24419
+ logistics_replan_all: {
24420
+ Args: {
24421
+ p_reason?: string;
24422
+ };
24423
+ Returns: import("../integrations/supabase/types").Json;
24424
+ };
24425
+ logistics_replan_all_force: {
24426
+ Args: {
24427
+ p_reason?: string;
24428
+ };
24429
+ Returns: import("../integrations/supabase/types").Json;
24430
+ };
23885
24431
  logistics_report_delay: {
23886
24432
  Args: {
23887
24433
  p_expected_date?: string;
@@ -23935,6 +24481,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
23935
24481
  };
23936
24482
  Returns: import("../integrations/supabase/types").Json;
23937
24483
  };
24484
+ logistics_resolve_product_id: {
24485
+ Args: {
24486
+ p_label: string;
24487
+ };
24488
+ Returns: string;
24489
+ };
23938
24490
  logistics_resolve_settings: {
23939
24491
  Args: {
23940
24492
  p_config_id: string;
@@ -24020,6 +24572,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24020
24572
  };
24021
24573
  Returns: string;
24022
24574
  };
24575
+ logistics_shipping_note_follows_slip: {
24576
+ Args: never;
24577
+ Returns: boolean;
24578
+ };
24023
24579
  logistics_shipping_note_from_barcode: {
24024
24580
  Args: {
24025
24581
  p_allow_reprint?: boolean;
@@ -24032,6 +24588,14 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24032
24588
  Args: never;
24033
24589
  Returns: boolean;
24034
24590
  };
24591
+ logistics_subtract_working_minutes: {
24592
+ Args: {
24593
+ p_deadline: string;
24594
+ p_max_workdays?: number;
24595
+ p_minutes: number;
24596
+ };
24597
+ Returns: import("../integrations/supabase/types").Json;
24598
+ };
24035
24599
  logistics_supersede_stale_tasks: {
24036
24600
  Args: {
24037
24601
  p_keep: string[];
@@ -24068,6 +24632,12 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24068
24632
  Args: never;
24069
24633
  Returns: string;
24070
24634
  };
24635
+ logistics_timezone_options: {
24636
+ Args: never;
24637
+ Returns: {
24638
+ name: string;
24639
+ }[];
24640
+ };
24071
24641
  logistics_upsert_task: {
24072
24642
  Args: {
24073
24643
  p_buffer_ref: string;
@@ -24087,6 +24657,16 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24087
24657
  };
24088
24658
  Returns: string;
24089
24659
  };
24660
+ logistics_valid_timezone: {
24661
+ Args: {
24662
+ _tz: string;
24663
+ };
24664
+ Returns: boolean;
24665
+ };
24666
+ logistics_working_hours_status: {
24667
+ Args: never;
24668
+ Returns: import("../integrations/supabase/types").Json;
24669
+ };
24090
24670
  logistics_write_buffer_layer_positions: {
24091
24671
  Args: {
24092
24672
  p_buffer_id: string;
@@ -24252,6 +24832,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
24252
24832
  online: boolean;
24253
24833
  }[];
24254
24834
  };
24835
+ pick_apply_buffer_events: {
24836
+ Args: never;
24837
+ Returns: import("../integrations/supabase/types").Json;
24838
+ };
24255
24839
  pick_available_pick_days: {
24256
24840
  Args: {
24257
24841
  _max_days?: number;
@@ -25528,6 +26112,13 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
25528
26112
  };
25529
26113
  Returns: number;
25530
26114
  };
26115
+ schedule_floriday_catalog_prices_sync: {
26116
+ Args: {
26117
+ p_apikey: string;
26118
+ p_url: string;
26119
+ };
26120
+ Returns: number;
26121
+ };
25531
26122
  schedule_floriday_clock_presales_sync: {
25532
26123
  Args: {
25533
26124
  p_apikey: string;
@@ -25828,6 +26419,10 @@ export declare const listLogisticsStrategies: import("@tanstack/start-client-cor
25828
26419
  };
25829
26420
  Returns: undefined;
25830
26421
  };
26422
+ sync_floriday_prices_into_price_groups: {
26423
+ Args: never;
26424
+ Returns: number;
26425
+ };
25831
26426
  sync_layer_stock: {
25832
26427
  Args: {
25833
26428
  p_product_id: string;
@@ -31842,6 +32437,84 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
31842
32437
  referencedColumns: ["id"];
31843
32438
  }];
31844
32439
  };
32440
+ floriday_catalog_prices_cache: {
32441
+ Row: {
32442
+ connection_id: string;
32443
+ created_at: string;
32444
+ currency: string;
32445
+ id: string;
32446
+ is_deleted: boolean;
32447
+ price: number | null;
32448
+ price_group_id: string | null;
32449
+ price_group_name: string | null;
32450
+ price_type: string;
32451
+ raw: import("../integrations/supabase/types").Json | null;
32452
+ sales_unit: string | null;
32453
+ sequence_number: number;
32454
+ supplier_article_code: string | null;
32455
+ supply_line_id: string;
32456
+ synced_at: string;
32457
+ trade_item_id: string | null;
32458
+ updated_at: string;
32459
+ valid_from: string | null;
32460
+ valid_to: string | null;
32461
+ week: number | null;
32462
+ year: number | null;
32463
+ };
32464
+ Insert: {
32465
+ connection_id: string;
32466
+ created_at?: string;
32467
+ currency?: string;
32468
+ id?: string;
32469
+ is_deleted?: boolean;
32470
+ price?: number | null;
32471
+ price_group_id?: string | null;
32472
+ price_group_name?: string | null;
32473
+ price_type?: string;
32474
+ raw?: import("../integrations/supabase/types").Json | null;
32475
+ sales_unit?: string | null;
32476
+ sequence_number?: number;
32477
+ supplier_article_code?: string | null;
32478
+ supply_line_id: string;
32479
+ synced_at?: string;
32480
+ trade_item_id?: string | null;
32481
+ updated_at?: string;
32482
+ valid_from?: string | null;
32483
+ valid_to?: string | null;
32484
+ week?: number | null;
32485
+ year?: number | null;
32486
+ };
32487
+ Update: {
32488
+ connection_id?: string;
32489
+ created_at?: string;
32490
+ currency?: string;
32491
+ id?: string;
32492
+ is_deleted?: boolean;
32493
+ price?: number | null;
32494
+ price_group_id?: string | null;
32495
+ price_group_name?: string | null;
32496
+ price_type?: string;
32497
+ raw?: import("../integrations/supabase/types").Json | null;
32498
+ sales_unit?: string | null;
32499
+ sequence_number?: number;
32500
+ supplier_article_code?: string | null;
32501
+ supply_line_id?: string;
32502
+ synced_at?: string;
32503
+ trade_item_id?: string | null;
32504
+ updated_at?: string;
32505
+ valid_from?: string | null;
32506
+ valid_to?: string | null;
32507
+ week?: number | null;
32508
+ year?: number | null;
32509
+ };
32510
+ Relationships: [{
32511
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32512
+ columns: ["connection_id"];
32513
+ isOneToOne: false;
32514
+ referencedRelation: "floriday_connections";
32515
+ referencedColumns: ["id"];
32516
+ }];
32517
+ };
31845
32518
  floriday_clock_presales_cache: {
31846
32519
  Row: {
31847
32520
  buyer_organization_id: string | null;
@@ -36108,6 +36781,36 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
36108
36781
  };
36109
36782
  Relationships: [];
36110
36783
  };
36784
+ logistics_floriday_push_refusals: {
36785
+ Row: {
36786
+ action: string | null;
36787
+ created_at: string;
36788
+ id: string;
36789
+ order_ref: string;
36790
+ reason: string;
36791
+ source_module: string | null;
36792
+ source_shell: string | null;
36793
+ };
36794
+ Insert: {
36795
+ action?: string | null;
36796
+ created_at?: string;
36797
+ id?: string;
36798
+ order_ref: string;
36799
+ reason: string;
36800
+ source_module?: string | null;
36801
+ source_shell?: string | null;
36802
+ };
36803
+ Update: {
36804
+ action?: string | null;
36805
+ created_at?: string;
36806
+ id?: string;
36807
+ order_ref?: string;
36808
+ reason?: string;
36809
+ source_module?: string | null;
36810
+ source_shell?: string | null;
36811
+ };
36812
+ Relationships: [];
36813
+ };
36111
36814
  logistics_floriday_pushes: {
36112
36815
  Row: {
36113
36816
  attempts: number;
@@ -36183,6 +36886,42 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
36183
36886
  };
36184
36887
  Relationships: [];
36185
36888
  };
36889
+ logistics_floriday_status_sends: {
36890
+ Row: {
36891
+ action: string;
36892
+ created_at: string;
36893
+ detail: string | null;
36894
+ http_status: number | null;
36895
+ id: string;
36896
+ ok: boolean;
36897
+ order_ref: string;
36898
+ source_module: string | null;
36899
+ source_shell: string | null;
36900
+ };
36901
+ Insert: {
36902
+ action: string;
36903
+ created_at?: string;
36904
+ detail?: string | null;
36905
+ http_status?: number | null;
36906
+ id?: string;
36907
+ ok?: boolean;
36908
+ order_ref: string;
36909
+ source_module?: string | null;
36910
+ source_shell?: string | null;
36911
+ };
36912
+ Update: {
36913
+ action?: string;
36914
+ created_at?: string;
36915
+ detail?: string | null;
36916
+ http_status?: number | null;
36917
+ id?: string;
36918
+ ok?: boolean;
36919
+ order_ref?: string;
36920
+ source_module?: string | null;
36921
+ source_shell?: string | null;
36922
+ };
36923
+ Relationships: [];
36924
+ };
36186
36925
  logistics_formulas: {
36187
36926
  Row: {
36188
36927
  created_at: string;
@@ -36255,6 +36994,108 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
36255
36994
  };
36256
36995
  Relationships: [];
36257
36996
  };
36997
+ logistics_opening_exceptions: {
36998
+ Row: {
36999
+ closes: string | null;
37000
+ created_at: string;
37001
+ day: string;
37002
+ id: string;
37003
+ is_closed: boolean;
37004
+ note: string | null;
37005
+ opens: string | null;
37006
+ };
37007
+ Insert: {
37008
+ closes?: string | null;
37009
+ created_at?: string;
37010
+ day: string;
37011
+ id?: string;
37012
+ is_closed?: boolean;
37013
+ note?: string | null;
37014
+ opens?: string | null;
37015
+ };
37016
+ Update: {
37017
+ closes?: string | null;
37018
+ created_at?: string;
37019
+ day?: string;
37020
+ id?: string;
37021
+ is_closed?: boolean;
37022
+ note?: string | null;
37023
+ opens?: string | null;
37024
+ };
37025
+ Relationships: [];
37026
+ };
37027
+ logistics_opening_hours: {
37028
+ Row: {
37029
+ closes: string;
37030
+ created_at: string;
37031
+ id: string;
37032
+ is_active: boolean;
37033
+ note: string | null;
37034
+ opens: string;
37035
+ weekday: number;
37036
+ };
37037
+ Insert: {
37038
+ closes: string;
37039
+ created_at?: string;
37040
+ id?: string;
37041
+ is_active?: boolean;
37042
+ note?: string | null;
37043
+ opens: string;
37044
+ weekday: number;
37045
+ };
37046
+ Update: {
37047
+ closes?: string;
37048
+ created_at?: string;
37049
+ id?: string;
37050
+ is_active?: boolean;
37051
+ note?: string | null;
37052
+ opens?: string;
37053
+ weekday?: number;
37054
+ };
37055
+ Relationships: [];
37056
+ };
37057
+ logistics_pick_data_requests: {
37058
+ Row: {
37059
+ actions: import("../integrations/supabase/types").Json;
37060
+ created_at: string;
37061
+ event_id: string | null;
37062
+ finished_at: string | null;
37063
+ id: string;
37064
+ missing: import("../integrations/supabase/types").Json;
37065
+ order_ref: string;
37066
+ reason: string | null;
37067
+ result: import("../integrations/supabase/types").Json | null;
37068
+ status: string;
37069
+ unit_ref: string | null;
37070
+ };
37071
+ Insert: {
37072
+ actions?: import("../integrations/supabase/types").Json;
37073
+ created_at?: string;
37074
+ event_id?: string | null;
37075
+ finished_at?: string | null;
37076
+ id?: string;
37077
+ missing?: import("../integrations/supabase/types").Json;
37078
+ order_ref: string;
37079
+ reason?: string | null;
37080
+ result?: import("../integrations/supabase/types").Json | null;
37081
+ status?: string;
37082
+ unit_ref?: string | null;
37083
+ };
37084
+ Update: {
37085
+ actions?: import("../integrations/supabase/types").Json;
37086
+ created_at?: string;
37087
+ event_id?: string | null;
37088
+ finished_at?: string | null;
37089
+ id?: string;
37090
+ missing?: import("../integrations/supabase/types").Json;
37091
+ order_ref?: string;
37092
+ reason?: string | null;
37093
+ result?: import("../integrations/supabase/types").Json | null;
37094
+ status?: string;
37095
+ unit_ref?: string | null;
37096
+ };
37097
+ Relationships: [];
37098
+ };
36258
37099
  logistics_pickup_moments: {
36259
37100
  Row: {
36260
37101
  carrier_ref: string | null;
@@ -37047,6 +37888,24 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
37047
37888
  };
37048
37889
  Relationships: [];
37049
37890
  };
37891
+ logistics_time_settings: {
37892
+ Row: {
37893
+ id: boolean;
37894
+ timezone: string;
37895
+ updated_at: string;
37896
+ };
37897
+ Insert: {
37898
+ id?: boolean;
37899
+ timezone: string;
37900
+ updated_at?: string;
37901
+ };
37902
+ Update: {
37903
+ id?: boolean;
37904
+ timezone?: string;
37905
+ updated_at?: string;
37906
+ };
37907
+ Relationships: [];
37908
+ };
37050
37909
  logistics_variables: {
37051
37910
  Row: {
37052
37911
  created_at: string;
@@ -39437,6 +40296,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39437
40296
  customer_name: string;
39438
40297
  deleted_at: string | null;
39439
40298
  delivery_date: string | null;
40299
+ floriday_order_group_key: string | null;
39440
40300
  floriday_sales_order_id: string | null;
39441
40301
  id: string;
39442
40302
  invoice_due_at: string | null;
@@ -39464,6 +40324,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39464
40324
  customer_name?: string;
39465
40325
  deleted_at?: string | null;
39466
40326
  delivery_date?: string | null;
40327
+ floriday_order_group_key?: string | null;
39467
40328
  floriday_sales_order_id?: string | null;
39468
40329
  id?: string;
39469
40330
  invoice_due_at?: string | null;
@@ -39491,6 +40352,7 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39491
40352
  customer_name?: string;
39492
40353
  deleted_at?: string | null;
39493
40354
  delivery_date?: string | null;
40355
+ floriday_order_group_key?: string | null;
39494
40356
  floriday_sales_order_id?: string | null;
39495
40357
  id?: string;
39496
40358
  invoice_due_at?: string | null;
@@ -39684,6 +40546,27 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
39684
40546
  };
39685
40547
  Relationships: [];
39686
40548
  };
40549
+ pick_buffer_event_cursor: {
40550
+ Row: {
40551
+ created_at: string;
40552
+ id: boolean;
40553
+ last_event_at: string;
40554
+ updated_at: string;
40555
+ };
40556
+ Insert: {
40557
+ created_at?: string;
40558
+ id?: boolean;
40559
+ last_event_at?: string;
40560
+ updated_at?: string;
40561
+ };
40562
+ Update: {
40563
+ created_at?: string;
40564
+ id?: boolean;
40565
+ last_event_at?: string;
40566
+ updated_at?: string;
40567
+ };
40568
+ Relationships: [];
40569
+ };
39687
40570
  pick_countries: {
39688
40571
  Row: {
39689
40572
  active: boolean;
@@ -45333,6 +46216,36 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
45333
46216
  referencedColumns: ["id"];
45334
46217
  }];
45335
46218
  };
46219
+ voorraad_buffer_state: {
46220
+ Row: {
46221
+ buffer_id: string;
46222
+ buffer_key: string | null;
46223
+ closed_at: string | null;
46224
+ created_at: string;
46225
+ detached_orders: import("../integrations/supabase/types").Json;
46226
+ reason: string | null;
46227
+ updated_at: string;
46228
+ };
46229
+ Insert: {
46230
+ buffer_id: string;
46231
+ buffer_key?: string | null;
46232
+ closed_at?: string | null;
46233
+ created_at?: string;
46234
+ detached_orders?: import("../integrations/supabase/types").Json;
46235
+ reason?: string | null;
46236
+ updated_at?: string;
46237
+ };
46238
+ Update: {
46239
+ buffer_id?: string;
46240
+ buffer_key?: string | null;
46241
+ closed_at?: string | null;
46242
+ created_at?: string;
46243
+ detached_orders?: import("../integrations/supabase/types").Json;
46244
+ reason?: string | null;
46245
+ updated_at?: string;
46246
+ };
46247
+ Relationships: [];
46248
+ };
45336
46249
  voorraad_custom_fields: {
45337
46250
  Row: {
45338
46251
  created_at: string;
@@ -45375,6 +46288,36 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
45375
46288
  };
45376
46289
  Relationships: [];
45377
46290
  };
46291
+ voorraad_logistics_event_log: {
46292
+ Row: {
46293
+ created_at: string;
46294
+ event_id: string;
46295
+ event_type: string;
46296
+ order_ref: string | null;
46297
+ processed_at: string;
46298
+ result: import("../integrations/supabase/types").Json;
46299
+ updated_at: string;
46300
+ };
46301
+ Insert: {
46302
+ created_at?: string;
46303
+ event_id: string;
46304
+ event_type: string;
46305
+ order_ref?: string | null;
46306
+ processed_at?: string;
46307
+ result?: import("../integrations/supabase/types").Json;
46308
+ updated_at?: string;
46309
+ };
46310
+ Update: {
46311
+ created_at?: string;
46312
+ event_id?: string;
46313
+ event_type?: string;
46314
+ order_ref?: string | null;
46315
+ processed_at?: string;
46316
+ result?: import("../integrations/supabase/types").Json;
46317
+ updated_at?: string;
46318
+ };
46319
+ Relationships: [];
46320
+ };
45378
46321
  voorraad_media_upload_failures: {
45379
46322
  Row: {
45380
46323
  action: string;
@@ -48200,6 +49143,17 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
48200
49143
  };
48201
49144
  Returns: boolean;
48202
49145
  };
49146
+ floriday_adopt_connection: {
49147
+ Args: {
49148
+ p_new: string;
49149
+ p_old: string;
49150
+ };
49151
+ Returns: import("../integrations/supabase/types").Json;
49152
+ };
49153
+ floriday_autoheal_connections: {
49154
+ Args: never;
49155
+ Returns: import("../integrations/supabase/types").Json;
49156
+ };
48203
49157
  floriday_capture_stock_snapshot: {
48204
49158
  Args: never;
48205
49159
  Returns: number;
@@ -48257,6 +49211,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
48257
49211
  };
48258
49212
  Returns: undefined;
48259
49213
  };
49214
+ floriday_relink_products: {
49215
+ Args: {
49216
+ p_connection_id?: string;
49217
+ };
49218
+ Returns: import("../integrations/supabase/types").Json;
49219
+ };
48260
49220
  floriday_requeue_dead_letters: {
48261
49221
  Args: {
48262
49222
  p_connection_id?: string;
@@ -48878,6 +49838,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
48878
49838
  };
48879
49839
  Returns: string;
48880
49840
  };
49841
+ logistics_active_layout_method: {
49842
+ Args: never;
49843
+ Returns: string;
49844
+ };
48881
49845
  logistics_active_pick_workdays: {
48882
49846
  Args: never;
48883
49847
  Returns: string[];
@@ -48985,6 +49949,15 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
48985
49949
  };
48986
49950
  Returns: boolean;
48987
49951
  };
49952
+ logistics_buffer_notify: {
49953
+ Args: {
49954
+ p_event_type: string;
49955
+ p_idempotency_key: string;
49956
+ p_order_ref: string;
49957
+ p_payload: import("../integrations/supabase/types").Json;
49958
+ };
49959
+ Returns: string;
49960
+ };
48988
49961
  logistics_buffer_open_key: {
48989
49962
  Args: {
48990
49963
  p_base_key: string;
@@ -49043,6 +50016,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49043
50016
  };
49044
50017
  Returns: string;
49045
50018
  };
50019
+ logistics_cart_checkin_at: {
50020
+ Args: {
50021
+ p_cart_id: string;
50022
+ };
50023
+ Returns: string;
50024
+ };
49046
50025
  logistics_cart_handled: {
49047
50026
  Args: {
49048
50027
  p_cart_index: number;
@@ -49076,10 +50055,22 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49076
50055
  task_status: string;
49077
50056
  }[];
49078
50057
  };
50058
+ logistics_cart_is_full: {
50059
+ Args: {
50060
+ p_cart_id: string;
50061
+ };
50062
+ Returns: boolean;
50063
+ };
49079
50064
  logistics_cart_layout_method: {
49080
50065
  Args: never;
49081
50066
  Returns: import("../integrations/supabase/types").Json;
49082
50067
  };
50068
+ logistics_cart_order_refs: {
50069
+ Args: {
50070
+ p_cart_id: string;
50071
+ };
50072
+ Returns: string[];
50073
+ };
49083
50074
  logistics_cart_plan_overview: {
49084
50075
  Args: {
49085
50076
  p_days?: number;
@@ -49099,6 +50090,18 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49099
50090
  };
49100
50091
  Returns: import("../integrations/supabase/types").Json;
49101
50092
  };
50093
+ logistics_cart_release_reason: {
50094
+ Args: {
50095
+ p_cart_id: string;
50096
+ };
50097
+ Returns: string;
50098
+ };
50099
+ logistics_cart_released: {
50100
+ Args: {
50101
+ p_cart_id: string;
50102
+ };
50103
+ Returns: boolean;
50104
+ };
49102
50105
  logistics_cart_seq: {
49103
50106
  Args: {
49104
50107
  p_order_uuid?: string;
@@ -49252,6 +50255,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49252
50255
  isSetofReturn: false;
49253
50256
  };
49254
50257
  };
50258
+ logistics_cleanup_orphan_print_jobs: {
50259
+ Args: never;
50260
+ Returns: import("../integrations/supabase/types").Json;
50261
+ };
49255
50262
  logistics_complete_task: {
49256
50263
  Args: {
49257
50264
  p_result?: import("../integrations/supabase/types").Json;
@@ -49314,6 +50321,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49314
50321
  station_carts: number;
49315
50322
  }[];
49316
50323
  };
50324
+ logistics_control_complete_cart: {
50325
+ Args: {
50326
+ p_cart_id: string;
50327
+ };
50328
+ Returns: number;
50329
+ };
49317
50330
  logistics_control_scan_approve: {
49318
50331
  Args: {
49319
50332
  p_allow_reprint?: boolean;
@@ -49393,6 +50406,15 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49393
50406
  Args: never;
49394
50407
  Returns: import("../integrations/supabase/types").Json;
49395
50408
  };
50409
+ logistics_day_windows: {
50410
+ Args: {
50411
+ p_day: string;
50412
+ };
50413
+ Returns: {
50414
+ win_end: string;
50415
+ win_start: string;
50416
+ }[];
50417
+ };
49396
50418
  logistics_delay_customer_email: {
49397
50419
  Args: {
49398
50420
  p_customer: string;
@@ -49460,6 +50482,17 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49460
50482
  };
49461
50483
  Returns: import("../integrations/supabase/types").Json;
49462
50484
  };
50485
+ logistics_enqueue_shipping_note_with_slip: {
50486
+ Args: {
50487
+ _cart_id: string;
50488
+ _is_herprint: boolean;
50489
+ _printer_id: string;
50490
+ _queue_item_id: string;
50491
+ _session_id: string;
50492
+ _slip_job_id: string;
50493
+ };
50494
+ Returns: string;
50495
+ };
49463
50496
  logistics_enqueue_sticker_with_slip: {
49464
50497
  Args: {
49465
50498
  _cart_id: string;
@@ -49477,6 +50510,14 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49477
50510
  };
49478
50511
  Returns: string;
49479
50512
  };
50513
+ logistics_ensure_pick_data: {
50514
+ Args: {
50515
+ p_event_id?: string;
50516
+ p_missing?: import("../integrations/supabase/types").Json;
50517
+ p_ref: string;
50518
+ };
50519
+ Returns: import("../integrations/supabase/types").Json;
50520
+ };
49480
50521
  logistics_fail_task: {
49481
50522
  Args: {
49482
50523
  p_error: string;
@@ -49598,6 +50639,38 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49598
50639
  };
49599
50640
  Returns: string;
49600
50641
  };
50642
+ logistics_floriday_gate_status: {
50643
+ Args: never;
50644
+ Returns: import("../integrations/supabase/types").Json;
50645
+ };
50646
+ logistics_floriday_log_refusal: {
50647
+ Args: {
50648
+ _action?: string;
50649
+ _module?: string;
50650
+ _order_ref: string;
50651
+ _reason: string;
50652
+ _shell?: string;
50653
+ };
50654
+ Returns: undefined;
50655
+ };
50656
+ logistics_floriday_log_send: {
50657
+ Args: {
50658
+ _action: string;
50659
+ _detail?: string;
50660
+ _http_status?: number;
50661
+ _module?: string;
50662
+ _ok: boolean;
50663
+ _order_ref: string;
50664
+ _shell?: string;
50665
+ };
50666
+ Returns: undefined;
50667
+ };
50668
+ logistics_floriday_order_approved: {
50669
+ Args: {
50670
+ _order_ref: string;
50671
+ };
50672
+ Returns: boolean;
50673
+ };
49601
50674
  logistics_floriday_prune_pushes: {
49602
50675
  Args: {
49603
50676
  _days?: number;
@@ -49612,6 +50685,20 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49612
50685
  };
49613
50686
  Returns: string;
49614
50687
  };
50688
+ logistics_floriday_status_updates_enabled: {
50689
+ Args: never;
50690
+ Returns: boolean;
50691
+ };
50692
+ logistics_floriday_stock_updates_enabled: {
50693
+ Args: never;
50694
+ Returns: boolean;
50695
+ };
50696
+ logistics_floriday_write_allowed: {
50697
+ Args: {
50698
+ _action: string;
50699
+ };
50700
+ Returns: boolean;
50701
+ };
49615
50702
  logistics_fulfill_barcode_requests: {
49616
50703
  Args: {
49617
50704
  p_limit?: number;
@@ -49632,6 +50719,16 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49632
50719
  };
49633
50720
  Returns: boolean;
49634
50721
  };
50722
+ logistics_layout_method_status: {
50723
+ Args: never;
50724
+ Returns: import("../integrations/supabase/types").Json;
50725
+ };
50726
+ logistics_link_order_items: {
50727
+ Args: {
50728
+ p_order?: string;
50729
+ };
50730
+ Returns: import("../integrations/supabase/types").Json;
50731
+ };
49635
50732
  logistics_live_carriers: {
49636
50733
  Args: {
49637
50734
  p_order_ref: string;
@@ -49644,6 +50741,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49644
50741
  };
49645
50742
  Returns: number;
49646
50743
  };
50744
+ logistics_merge_partial_carts: {
50745
+ Args: {
50746
+ p_limit?: number;
50747
+ };
50748
+ Returns: import("../integrations/supabase/types").Json;
50749
+ };
49647
50750
  logistics_next_workday_date: {
49648
50751
  Args: {
49649
50752
  p_date: string;
@@ -49658,12 +50761,22 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49658
50761
  };
49659
50762
  Returns: string;
49660
50763
  };
50764
+ logistics_normalize_product_label: {
50765
+ Args: {
50766
+ p_label: string;
50767
+ };
50768
+ Returns: string;
50769
+ };
49661
50770
  logistics_not_past: {
49662
50771
  Args: {
49663
50772
  p_ts: string;
49664
50773
  };
49665
50774
  Returns: string;
49666
50775
  };
50776
+ logistics_opening_timezone: {
50777
+ Args: never;
50778
+ Returns: string;
50779
+ };
49667
50780
  logistics_order_cart_count: {
49668
50781
  Args: {
49669
50782
  p_order_ref: string;
@@ -49748,6 +50861,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49748
50861
  Args: never;
49749
50862
  Returns: import("../integrations/supabase/types").Json;
49750
50863
  };
50864
+ logistics_pick_partial_mode: {
50865
+ Args: never;
50866
+ Returns: string;
50867
+ };
49751
50868
  logistics_pick_start_estimate: {
49752
50869
  Args: {
49753
50870
  p_order: import("../integrations/supabase/types").Json;
@@ -49859,6 +50976,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49859
50976
  };
49860
50977
  Returns: number;
49861
50978
  };
50979
+ logistics_prepare_pick_documents: {
50980
+ Args: {
50981
+ p_limit?: number;
50982
+ };
50983
+ Returns: import("../integrations/supabase/types").Json;
50984
+ };
49862
50985
  logistics_prune_buffer_member_queue: {
49863
50986
  Args: never;
49864
50987
  Returns: number;
@@ -49899,12 +51022,30 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49899
51022
  Args: never;
49900
51023
  Returns: import("../integrations/supabase/types").Json;
49901
51024
  };
51025
+ logistics_refresh_pick_queue_status: {
51026
+ Args: {
51027
+ p_ref: string;
51028
+ };
51029
+ Returns: number;
51030
+ };
49902
51031
  logistics_refresh_pickup_moments: {
49903
51032
  Args: {
49904
51033
  p_weeks?: number;
49905
51034
  };
49906
51035
  Returns: import("../integrations/supabase/types").Json;
49907
51036
  };
51037
+ logistics_replan_all: {
51038
+ Args: {
51039
+ p_reason?: string;
51040
+ };
51041
+ Returns: import("../integrations/supabase/types").Json;
51042
+ };
51043
+ logistics_replan_all_force: {
51044
+ Args: {
51045
+ p_reason?: string;
51046
+ };
51047
+ Returns: import("../integrations/supabase/types").Json;
51048
+ };
49908
51049
  logistics_report_delay: {
49909
51050
  Args: {
49910
51051
  p_expected_date?: string;
@@ -49958,6 +51099,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
49958
51099
  };
49959
51100
  Returns: import("../integrations/supabase/types").Json;
49960
51101
  };
51102
+ logistics_resolve_product_id: {
51103
+ Args: {
51104
+ p_label: string;
51105
+ };
51106
+ Returns: string;
51107
+ };
49961
51108
  logistics_resolve_settings: {
49962
51109
  Args: {
49963
51110
  p_config_id: string;
@@ -50043,6 +51190,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50043
51190
  };
50044
51191
  Returns: string;
50045
51192
  };
51193
+ logistics_shipping_note_follows_slip: {
51194
+ Args: never;
51195
+ Returns: boolean;
51196
+ };
50046
51197
  logistics_shipping_note_from_barcode: {
50047
51198
  Args: {
50048
51199
  p_allow_reprint?: boolean;
@@ -50055,6 +51206,14 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50055
51206
  Args: never;
50056
51207
  Returns: boolean;
50057
51208
  };
51209
+ logistics_subtract_working_minutes: {
51210
+ Args: {
51211
+ p_deadline: string;
51212
+ p_max_workdays?: number;
51213
+ p_minutes: number;
51214
+ };
51215
+ Returns: import("../integrations/supabase/types").Json;
51216
+ };
50058
51217
  logistics_supersede_stale_tasks: {
50059
51218
  Args: {
50060
51219
  p_keep: string[];
@@ -50091,6 +51250,12 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50091
51250
  Args: never;
50092
51251
  Returns: string;
50093
51252
  };
51253
+ logistics_timezone_options: {
51254
+ Args: never;
51255
+ Returns: {
51256
+ name: string;
51257
+ }[];
51258
+ };
50094
51259
  logistics_upsert_task: {
50095
51260
  Args: {
50096
51261
  p_buffer_ref: string;
@@ -50110,6 +51275,16 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50110
51275
  };
50111
51276
  Returns: string;
50112
51277
  };
51278
+ logistics_valid_timezone: {
51279
+ Args: {
51280
+ _tz: string;
51281
+ };
51282
+ Returns: boolean;
51283
+ };
51284
+ logistics_working_hours_status: {
51285
+ Args: never;
51286
+ Returns: import("../integrations/supabase/types").Json;
51287
+ };
50113
51288
  logistics_write_buffer_layer_positions: {
50114
51289
  Args: {
50115
51290
  p_buffer_id: string;
@@ -50275,6 +51450,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
50275
51450
  online: boolean;
50276
51451
  }[];
50277
51452
  };
51453
+ pick_apply_buffer_events: {
51454
+ Args: never;
51455
+ Returns: import("../integrations/supabase/types").Json;
51456
+ };
50278
51457
  pick_available_pick_days: {
50279
51458
  Args: {
50280
51459
  _max_days?: number;
@@ -51551,6 +52730,13 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
51551
52730
  };
51552
52731
  Returns: number;
51553
52732
  };
52733
+ schedule_floriday_catalog_prices_sync: {
52734
+ Args: {
52735
+ p_apikey: string;
52736
+ p_url: string;
52737
+ };
52738
+ Returns: number;
52739
+ };
51554
52740
  schedule_floriday_clock_presales_sync: {
51555
52741
  Args: {
51556
52742
  p_apikey: string;
@@ -51851,6 +53037,10 @@ export declare const getLogisticsStrategyBinding: import("@tanstack/start-client
51851
53037
  };
51852
53038
  Returns: undefined;
51853
53039
  };
53040
+ sync_floriday_prices_into_price_groups: {
53041
+ Args: never;
53042
+ Returns: number;
53043
+ };
51854
53044
  sync_layer_stock: {
51855
53045
  Args: {
51856
53046
  p_product_id: string;
@@ -57877,6 +59067,84 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
57877
59067
  referencedColumns: ["id"];
57878
59068
  }];
57879
59069
  };
59070
+ floriday_catalog_prices_cache: {
59071
+ Row: {
59072
+ connection_id: string;
59073
+ created_at: string;
59074
+ currency: string;
59075
+ id: string;
59076
+ is_deleted: boolean;
59077
+ price: number | null;
59078
+ price_group_id: string | null;
59079
+ price_group_name: string | null;
59080
+ price_type: string;
59081
+ raw: import("../integrations/supabase/types").Json | null;
59082
+ sales_unit: string | null;
59083
+ sequence_number: number;
59084
+ supplier_article_code: string | null;
59085
+ supply_line_id: string;
59086
+ synced_at: string;
59087
+ trade_item_id: string | null;
59088
+ updated_at: string;
59089
+ valid_from: string | null;
59090
+ valid_to: string | null;
59091
+ week: number | null;
59092
+ year: number | null;
59093
+ };
59094
+ Insert: {
59095
+ connection_id: string;
59096
+ created_at?: string;
59097
+ currency?: string;
59098
+ id?: string;
59099
+ is_deleted?: boolean;
59100
+ price?: number | null;
59101
+ price_group_id?: string | null;
59102
+ price_group_name?: string | null;
59103
+ price_type?: string;
59104
+ raw?: import("../integrations/supabase/types").Json | null;
59105
+ sales_unit?: string | null;
59106
+ sequence_number?: number;
59107
+ supplier_article_code?: string | null;
59108
+ supply_line_id: string;
59109
+ synced_at?: string;
59110
+ trade_item_id?: string | null;
59111
+ updated_at?: string;
59112
+ valid_from?: string | null;
59113
+ valid_to?: string | null;
59114
+ week?: number | null;
59115
+ year?: number | null;
59116
+ };
59117
+ Update: {
59118
+ connection_id?: string;
59119
+ created_at?: string;
59120
+ currency?: string;
59121
+ id?: string;
59122
+ is_deleted?: boolean;
59123
+ price?: number | null;
59124
+ price_group_id?: string | null;
59125
+ price_group_name?: string | null;
59126
+ price_type?: string;
59127
+ raw?: import("../integrations/supabase/types").Json | null;
59128
+ sales_unit?: string | null;
59129
+ sequence_number?: number;
59130
+ supplier_article_code?: string | null;
59131
+ supply_line_id?: string;
59132
+ synced_at?: string;
59133
+ trade_item_id?: string | null;
59134
+ updated_at?: string;
59135
+ valid_from?: string | null;
59136
+ valid_to?: string | null;
59137
+ week?: number | null;
59138
+ year?: number | null;
59139
+ };
59140
+ Relationships: [{
59141
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
59142
+ columns: ["connection_id"];
59143
+ isOneToOne: false;
59144
+ referencedRelation: "floriday_connections";
59145
+ referencedColumns: ["id"];
59146
+ }];
59147
+ };
57880
59148
  floriday_clock_presales_cache: {
57881
59149
  Row: {
57882
59150
  buyer_organization_id: string | null;
@@ -62143,6 +63411,36 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
62143
63411
  };
62144
63412
  Relationships: [];
62145
63413
  };
63414
+ logistics_floriday_push_refusals: {
63415
+ Row: {
63416
+ action: string | null;
63417
+ created_at: string;
63418
+ id: string;
63419
+ order_ref: string;
63420
+ reason: string;
63421
+ source_module: string | null;
63422
+ source_shell: string | null;
63423
+ };
63424
+ Insert: {
63425
+ action?: string | null;
63426
+ created_at?: string;
63427
+ id?: string;
63428
+ order_ref: string;
63429
+ reason: string;
63430
+ source_module?: string | null;
63431
+ source_shell?: string | null;
63432
+ };
63433
+ Update: {
63434
+ action?: string | null;
63435
+ created_at?: string;
63436
+ id?: string;
63437
+ order_ref?: string;
63438
+ reason?: string;
63439
+ source_module?: string | null;
63440
+ source_shell?: string | null;
63441
+ };
63442
+ Relationships: [];
63443
+ };
62146
63444
  logistics_floriday_pushes: {
62147
63445
  Row: {
62148
63446
  attempts: number;
@@ -62218,6 +63516,42 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
62218
63516
  };
62219
63517
  Relationships: [];
62220
63518
  };
63519
+ logistics_floriday_status_sends: {
63520
+ Row: {
63521
+ action: string;
63522
+ created_at: string;
63523
+ detail: string | null;
63524
+ http_status: number | null;
63525
+ id: string;
63526
+ ok: boolean;
63527
+ order_ref: string;
63528
+ source_module: string | null;
63529
+ source_shell: string | null;
63530
+ };
63531
+ Insert: {
63532
+ action: string;
63533
+ created_at?: string;
63534
+ detail?: string | null;
63535
+ http_status?: number | null;
63536
+ id?: string;
63537
+ ok?: boolean;
63538
+ order_ref: string;
63539
+ source_module?: string | null;
63540
+ source_shell?: string | null;
63541
+ };
63542
+ Update: {
63543
+ action?: string;
63544
+ created_at?: string;
63545
+ detail?: string | null;
63546
+ http_status?: number | null;
63547
+ id?: string;
63548
+ ok?: boolean;
63549
+ order_ref?: string;
63550
+ source_module?: string | null;
63551
+ source_shell?: string | null;
63552
+ };
63553
+ Relationships: [];
63554
+ };
62221
63555
  logistics_formulas: {
62222
63556
  Row: {
62223
63557
  created_at: string;
@@ -62290,6 +63624,108 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
62290
63624
  };
62291
63625
  Relationships: [];
62292
63626
  };
63627
+ logistics_opening_exceptions: {
63628
+ Row: {
63629
+ closes: string | null;
63630
+ created_at: string;
63631
+ day: string;
63632
+ id: string;
63633
+ is_closed: boolean;
63634
+ note: string | null;
63635
+ opens: string | null;
63636
+ };
63637
+ Insert: {
63638
+ closes?: string | null;
63639
+ created_at?: string;
63640
+ day: string;
63641
+ id?: string;
63642
+ is_closed?: boolean;
63643
+ note?: string | null;
63644
+ opens?: string | null;
63645
+ };
63646
+ Update: {
63647
+ closes?: string | null;
63648
+ created_at?: string;
63649
+ day?: string;
63650
+ id?: string;
63651
+ is_closed?: boolean;
63652
+ note?: string | null;
63653
+ opens?: string | null;
63654
+ };
63655
+ Relationships: [];
63656
+ };
63657
+ logistics_opening_hours: {
63658
+ Row: {
63659
+ closes: string;
63660
+ created_at: string;
63661
+ id: string;
63662
+ is_active: boolean;
63663
+ note: string | null;
63664
+ opens: string;
63665
+ weekday: number;
63666
+ };
63667
+ Insert: {
63668
+ closes: string;
63669
+ created_at?: string;
63670
+ id?: string;
63671
+ is_active?: boolean;
63672
+ note?: string | null;
63673
+ opens: string;
63674
+ weekday: number;
63675
+ };
63676
+ Update: {
63677
+ closes?: string;
63678
+ created_at?: string;
63679
+ id?: string;
63680
+ is_active?: boolean;
63681
+ note?: string | null;
63682
+ opens?: string;
63683
+ weekday?: number;
63684
+ };
63685
+ Relationships: [];
63686
+ };
63687
+ logistics_pick_data_requests: {
63688
+ Row: {
63689
+ actions: import("../integrations/supabase/types").Json;
63690
+ created_at: string;
63691
+ event_id: string | null;
63692
+ finished_at: string | null;
63693
+ id: string;
63694
+ missing: import("../integrations/supabase/types").Json;
63695
+ order_ref: string;
63696
+ reason: string | null;
63697
+ result: import("../integrations/supabase/types").Json | null;
63698
+ status: string;
63699
+ unit_ref: string | null;
63700
+ };
63701
+ Insert: {
63702
+ actions?: import("../integrations/supabase/types").Json;
63703
+ created_at?: string;
63704
+ event_id?: string | null;
63705
+ finished_at?: string | null;
63706
+ id?: string;
63707
+ missing?: import("../integrations/supabase/types").Json;
63708
+ order_ref: string;
63709
+ reason?: string | null;
63710
+ result?: import("../integrations/supabase/types").Json | null;
63711
+ status?: string;
63712
+ unit_ref?: string | null;
63713
+ };
63714
+ Update: {
63715
+ actions?: import("../integrations/supabase/types").Json;
63716
+ created_at?: string;
63717
+ event_id?: string | null;
63718
+ finished_at?: string | null;
63719
+ id?: string;
63720
+ missing?: import("../integrations/supabase/types").Json;
63721
+ order_ref?: string;
63722
+ reason?: string | null;
63723
+ result?: import("../integrations/supabase/types").Json | null;
63724
+ status?: string;
63725
+ unit_ref?: string | null;
63726
+ };
63727
+ Relationships: [];
63728
+ };
62293
63729
  logistics_pickup_moments: {
62294
63730
  Row: {
62295
63731
  carrier_ref: string | null;
@@ -63082,6 +64518,24 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
63082
64518
  };
63083
64519
  Relationships: [];
63084
64520
  };
64521
+ logistics_time_settings: {
64522
+ Row: {
64523
+ id: boolean;
64524
+ timezone: string;
64525
+ updated_at: string;
64526
+ };
64527
+ Insert: {
64528
+ id?: boolean;
64529
+ timezone: string;
64530
+ updated_at?: string;
64531
+ };
64532
+ Update: {
64533
+ id?: boolean;
64534
+ timezone?: string;
64535
+ updated_at?: string;
64536
+ };
64537
+ Relationships: [];
64538
+ };
63085
64539
  logistics_variables: {
63086
64540
  Row: {
63087
64541
  created_at: string;
@@ -65472,6 +66926,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
65472
66926
  customer_name: string;
65473
66927
  deleted_at: string | null;
65474
66928
  delivery_date: string | null;
66929
+ floriday_order_group_key: string | null;
65475
66930
  floriday_sales_order_id: string | null;
65476
66931
  id: string;
65477
66932
  invoice_due_at: string | null;
@@ -65499,6 +66954,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
65499
66954
  customer_name?: string;
65500
66955
  deleted_at?: string | null;
65501
66956
  delivery_date?: string | null;
66957
+ floriday_order_group_key?: string | null;
65502
66958
  floriday_sales_order_id?: string | null;
65503
66959
  id?: string;
65504
66960
  invoice_due_at?: string | null;
@@ -65526,6 +66982,7 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
65526
66982
  customer_name?: string;
65527
66983
  deleted_at?: string | null;
65528
66984
  delivery_date?: string | null;
66985
+ floriday_order_group_key?: string | null;
65529
66986
  floriday_sales_order_id?: string | null;
65530
66987
  id?: string;
65531
66988
  invoice_due_at?: string | null;
@@ -65719,6 +67176,27 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
65719
67176
  };
65720
67177
  Relationships: [];
65721
67178
  };
67179
+ pick_buffer_event_cursor: {
67180
+ Row: {
67181
+ created_at: string;
67182
+ id: boolean;
67183
+ last_event_at: string;
67184
+ updated_at: string;
67185
+ };
67186
+ Insert: {
67187
+ created_at?: string;
67188
+ id?: boolean;
67189
+ last_event_at?: string;
67190
+ updated_at?: string;
67191
+ };
67192
+ Update: {
67193
+ created_at?: string;
67194
+ id?: boolean;
67195
+ last_event_at?: string;
67196
+ updated_at?: string;
67197
+ };
67198
+ Relationships: [];
67199
+ };
65722
67200
  pick_countries: {
65723
67201
  Row: {
65724
67202
  active: boolean;
@@ -71368,6 +72846,36 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
71368
72846
  referencedColumns: ["id"];
71369
72847
  }];
71370
72848
  };
72849
+ voorraad_buffer_state: {
72850
+ Row: {
72851
+ buffer_id: string;
72852
+ buffer_key: string | null;
72853
+ closed_at: string | null;
72854
+ created_at: string;
72855
+ detached_orders: import("../integrations/supabase/types").Json;
72856
+ reason: string | null;
72857
+ updated_at: string;
72858
+ };
72859
+ Insert: {
72860
+ buffer_id: string;
72861
+ buffer_key?: string | null;
72862
+ closed_at?: string | null;
72863
+ created_at?: string;
72864
+ detached_orders?: import("../integrations/supabase/types").Json;
72865
+ reason?: string | null;
72866
+ updated_at?: string;
72867
+ };
72868
+ Update: {
72869
+ buffer_id?: string;
72870
+ buffer_key?: string | null;
72871
+ closed_at?: string | null;
72872
+ created_at?: string;
72873
+ detached_orders?: import("../integrations/supabase/types").Json;
72874
+ reason?: string | null;
72875
+ updated_at?: string;
72876
+ };
72877
+ Relationships: [];
72878
+ };
71371
72879
  voorraad_custom_fields: {
71372
72880
  Row: {
71373
72881
  created_at: string;
@@ -71410,6 +72918,36 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
71410
72918
  };
71411
72919
  Relationships: [];
71412
72920
  };
72921
+ voorraad_logistics_event_log: {
72922
+ Row: {
72923
+ created_at: string;
72924
+ event_id: string;
72925
+ event_type: string;
72926
+ order_ref: string | null;
72927
+ processed_at: string;
72928
+ result: import("../integrations/supabase/types").Json;
72929
+ updated_at: string;
72930
+ };
72931
+ Insert: {
72932
+ created_at?: string;
72933
+ event_id: string;
72934
+ event_type: string;
72935
+ order_ref?: string | null;
72936
+ processed_at?: string;
72937
+ result?: import("../integrations/supabase/types").Json;
72938
+ updated_at?: string;
72939
+ };
72940
+ Update: {
72941
+ created_at?: string;
72942
+ event_id?: string;
72943
+ event_type?: string;
72944
+ order_ref?: string | null;
72945
+ processed_at?: string;
72946
+ result?: import("../integrations/supabase/types").Json;
72947
+ updated_at?: string;
72948
+ };
72949
+ Relationships: [];
72950
+ };
71413
72951
  voorraad_media_upload_failures: {
71414
72952
  Row: {
71415
72953
  action: string;
@@ -74235,6 +75773,17 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
74235
75773
  };
74236
75774
  Returns: boolean;
74237
75775
  };
75776
+ floriday_adopt_connection: {
75777
+ Args: {
75778
+ p_new: string;
75779
+ p_old: string;
75780
+ };
75781
+ Returns: import("../integrations/supabase/types").Json;
75782
+ };
75783
+ floriday_autoheal_connections: {
75784
+ Args: never;
75785
+ Returns: import("../integrations/supabase/types").Json;
75786
+ };
74238
75787
  floriday_capture_stock_snapshot: {
74239
75788
  Args: never;
74240
75789
  Returns: number;
@@ -74292,6 +75841,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
74292
75841
  };
74293
75842
  Returns: undefined;
74294
75843
  };
75844
+ floriday_relink_products: {
75845
+ Args: {
75846
+ p_connection_id?: string;
75847
+ };
75848
+ Returns: import("../integrations/supabase/types").Json;
75849
+ };
74295
75850
  floriday_requeue_dead_letters: {
74296
75851
  Args: {
74297
75852
  p_connection_id?: string;
@@ -74913,6 +76468,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
74913
76468
  };
74914
76469
  Returns: string;
74915
76470
  };
76471
+ logistics_active_layout_method: {
76472
+ Args: never;
76473
+ Returns: string;
76474
+ };
74916
76475
  logistics_active_pick_workdays: {
74917
76476
  Args: never;
74918
76477
  Returns: string[];
@@ -75020,6 +76579,15 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75020
76579
  };
75021
76580
  Returns: boolean;
75022
76581
  };
76582
+ logistics_buffer_notify: {
76583
+ Args: {
76584
+ p_event_type: string;
76585
+ p_idempotency_key: string;
76586
+ p_order_ref: string;
76587
+ p_payload: import("../integrations/supabase/types").Json;
76588
+ };
76589
+ Returns: string;
76590
+ };
75023
76591
  logistics_buffer_open_key: {
75024
76592
  Args: {
75025
76593
  p_base_key: string;
@@ -75078,6 +76646,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75078
76646
  };
75079
76647
  Returns: string;
75080
76648
  };
76649
+ logistics_cart_checkin_at: {
76650
+ Args: {
76651
+ p_cart_id: string;
76652
+ };
76653
+ Returns: string;
76654
+ };
75081
76655
  logistics_cart_handled: {
75082
76656
  Args: {
75083
76657
  p_cart_index: number;
@@ -75111,10 +76685,22 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75111
76685
  task_status: string;
75112
76686
  }[];
75113
76687
  };
76688
+ logistics_cart_is_full: {
76689
+ Args: {
76690
+ p_cart_id: string;
76691
+ };
76692
+ Returns: boolean;
76693
+ };
75114
76694
  logistics_cart_layout_method: {
75115
76695
  Args: never;
75116
76696
  Returns: import("../integrations/supabase/types").Json;
75117
76697
  };
76698
+ logistics_cart_order_refs: {
76699
+ Args: {
76700
+ p_cart_id: string;
76701
+ };
76702
+ Returns: string[];
76703
+ };
75118
76704
  logistics_cart_plan_overview: {
75119
76705
  Args: {
75120
76706
  p_days?: number;
@@ -75134,6 +76720,18 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75134
76720
  };
75135
76721
  Returns: import("../integrations/supabase/types").Json;
75136
76722
  };
76723
+ logistics_cart_release_reason: {
76724
+ Args: {
76725
+ p_cart_id: string;
76726
+ };
76727
+ Returns: string;
76728
+ };
76729
+ logistics_cart_released: {
76730
+ Args: {
76731
+ p_cart_id: string;
76732
+ };
76733
+ Returns: boolean;
76734
+ };
75137
76735
  logistics_cart_seq: {
75138
76736
  Args: {
75139
76737
  p_order_uuid?: string;
@@ -75287,6 +76885,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75287
76885
  isSetofReturn: false;
75288
76886
  };
75289
76887
  };
76888
+ logistics_cleanup_orphan_print_jobs: {
76889
+ Args: never;
76890
+ Returns: import("../integrations/supabase/types").Json;
76891
+ };
75290
76892
  logistics_complete_task: {
75291
76893
  Args: {
75292
76894
  p_result?: import("../integrations/supabase/types").Json;
@@ -75349,6 +76951,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75349
76951
  station_carts: number;
75350
76952
  }[];
75351
76953
  };
76954
+ logistics_control_complete_cart: {
76955
+ Args: {
76956
+ p_cart_id: string;
76957
+ };
76958
+ Returns: number;
76959
+ };
75352
76960
  logistics_control_scan_approve: {
75353
76961
  Args: {
75354
76962
  p_allow_reprint?: boolean;
@@ -75428,6 +77036,15 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75428
77036
  Args: never;
75429
77037
  Returns: import("../integrations/supabase/types").Json;
75430
77038
  };
77039
+ logistics_day_windows: {
77040
+ Args: {
77041
+ p_day: string;
77042
+ };
77043
+ Returns: {
77044
+ win_end: string;
77045
+ win_start: string;
77046
+ }[];
77047
+ };
75431
77048
  logistics_delay_customer_email: {
75432
77049
  Args: {
75433
77050
  p_customer: string;
@@ -75495,6 +77112,17 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75495
77112
  };
75496
77113
  Returns: import("../integrations/supabase/types").Json;
75497
77114
  };
77115
+ logistics_enqueue_shipping_note_with_slip: {
77116
+ Args: {
77117
+ _cart_id: string;
77118
+ _is_herprint: boolean;
77119
+ _printer_id: string;
77120
+ _queue_item_id: string;
77121
+ _session_id: string;
77122
+ _slip_job_id: string;
77123
+ };
77124
+ Returns: string;
77125
+ };
75498
77126
  logistics_enqueue_sticker_with_slip: {
75499
77127
  Args: {
75500
77128
  _cart_id: string;
@@ -75512,6 +77140,14 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75512
77140
  };
75513
77141
  Returns: string;
75514
77142
  };
77143
+ logistics_ensure_pick_data: {
77144
+ Args: {
77145
+ p_event_id?: string;
77146
+ p_missing?: import("../integrations/supabase/types").Json;
77147
+ p_ref: string;
77148
+ };
77149
+ Returns: import("../integrations/supabase/types").Json;
77150
+ };
75515
77151
  logistics_fail_task: {
75516
77152
  Args: {
75517
77153
  p_error: string;
@@ -75633,6 +77269,38 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75633
77269
  };
75634
77270
  Returns: string;
75635
77271
  };
77272
+ logistics_floriday_gate_status: {
77273
+ Args: never;
77274
+ Returns: import("../integrations/supabase/types").Json;
77275
+ };
77276
+ logistics_floriday_log_refusal: {
77277
+ Args: {
77278
+ _action?: string;
77279
+ _module?: string;
77280
+ _order_ref: string;
77281
+ _reason: string;
77282
+ _shell?: string;
77283
+ };
77284
+ Returns: undefined;
77285
+ };
77286
+ logistics_floriday_log_send: {
77287
+ Args: {
77288
+ _action: string;
77289
+ _detail?: string;
77290
+ _http_status?: number;
77291
+ _module?: string;
77292
+ _ok: boolean;
77293
+ _order_ref: string;
77294
+ _shell?: string;
77295
+ };
77296
+ Returns: undefined;
77297
+ };
77298
+ logistics_floriday_order_approved: {
77299
+ Args: {
77300
+ _order_ref: string;
77301
+ };
77302
+ Returns: boolean;
77303
+ };
75636
77304
  logistics_floriday_prune_pushes: {
75637
77305
  Args: {
75638
77306
  _days?: number;
@@ -75647,6 +77315,20 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75647
77315
  };
75648
77316
  Returns: string;
75649
77317
  };
77318
+ logistics_floriday_status_updates_enabled: {
77319
+ Args: never;
77320
+ Returns: boolean;
77321
+ };
77322
+ logistics_floriday_stock_updates_enabled: {
77323
+ Args: never;
77324
+ Returns: boolean;
77325
+ };
77326
+ logistics_floriday_write_allowed: {
77327
+ Args: {
77328
+ _action: string;
77329
+ };
77330
+ Returns: boolean;
77331
+ };
75650
77332
  logistics_fulfill_barcode_requests: {
75651
77333
  Args: {
75652
77334
  p_limit?: number;
@@ -75667,6 +77349,16 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75667
77349
  };
75668
77350
  Returns: boolean;
75669
77351
  };
77352
+ logistics_layout_method_status: {
77353
+ Args: never;
77354
+ Returns: import("../integrations/supabase/types").Json;
77355
+ };
77356
+ logistics_link_order_items: {
77357
+ Args: {
77358
+ p_order?: string;
77359
+ };
77360
+ Returns: import("../integrations/supabase/types").Json;
77361
+ };
75670
77362
  logistics_live_carriers: {
75671
77363
  Args: {
75672
77364
  p_order_ref: string;
@@ -75679,6 +77371,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75679
77371
  };
75680
77372
  Returns: number;
75681
77373
  };
77374
+ logistics_merge_partial_carts: {
77375
+ Args: {
77376
+ p_limit?: number;
77377
+ };
77378
+ Returns: import("../integrations/supabase/types").Json;
77379
+ };
75682
77380
  logistics_next_workday_date: {
75683
77381
  Args: {
75684
77382
  p_date: string;
@@ -75693,12 +77391,22 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75693
77391
  };
75694
77392
  Returns: string;
75695
77393
  };
77394
+ logistics_normalize_product_label: {
77395
+ Args: {
77396
+ p_label: string;
77397
+ };
77398
+ Returns: string;
77399
+ };
75696
77400
  logistics_not_past: {
75697
77401
  Args: {
75698
77402
  p_ts: string;
75699
77403
  };
75700
77404
  Returns: string;
75701
77405
  };
77406
+ logistics_opening_timezone: {
77407
+ Args: never;
77408
+ Returns: string;
77409
+ };
75702
77410
  logistics_order_cart_count: {
75703
77411
  Args: {
75704
77412
  p_order_ref: string;
@@ -75783,6 +77491,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75783
77491
  Args: never;
75784
77492
  Returns: import("../integrations/supabase/types").Json;
75785
77493
  };
77494
+ logistics_pick_partial_mode: {
77495
+ Args: never;
77496
+ Returns: string;
77497
+ };
75786
77498
  logistics_pick_start_estimate: {
75787
77499
  Args: {
75788
77500
  p_order: import("../integrations/supabase/types").Json;
@@ -75894,6 +77606,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75894
77606
  };
75895
77607
  Returns: number;
75896
77608
  };
77609
+ logistics_prepare_pick_documents: {
77610
+ Args: {
77611
+ p_limit?: number;
77612
+ };
77613
+ Returns: import("../integrations/supabase/types").Json;
77614
+ };
75897
77615
  logistics_prune_buffer_member_queue: {
75898
77616
  Args: never;
75899
77617
  Returns: number;
@@ -75934,12 +77652,30 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75934
77652
  Args: never;
75935
77653
  Returns: import("../integrations/supabase/types").Json;
75936
77654
  };
77655
+ logistics_refresh_pick_queue_status: {
77656
+ Args: {
77657
+ p_ref: string;
77658
+ };
77659
+ Returns: number;
77660
+ };
75937
77661
  logistics_refresh_pickup_moments: {
75938
77662
  Args: {
75939
77663
  p_weeks?: number;
75940
77664
  };
75941
77665
  Returns: import("../integrations/supabase/types").Json;
75942
77666
  };
77667
+ logistics_replan_all: {
77668
+ Args: {
77669
+ p_reason?: string;
77670
+ };
77671
+ Returns: import("../integrations/supabase/types").Json;
77672
+ };
77673
+ logistics_replan_all_force: {
77674
+ Args: {
77675
+ p_reason?: string;
77676
+ };
77677
+ Returns: import("../integrations/supabase/types").Json;
77678
+ };
75943
77679
  logistics_report_delay: {
75944
77680
  Args: {
75945
77681
  p_expected_date?: string;
@@ -75993,6 +77729,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
75993
77729
  };
75994
77730
  Returns: import("../integrations/supabase/types").Json;
75995
77731
  };
77732
+ logistics_resolve_product_id: {
77733
+ Args: {
77734
+ p_label: string;
77735
+ };
77736
+ Returns: string;
77737
+ };
75996
77738
  logistics_resolve_settings: {
75997
77739
  Args: {
75998
77740
  p_config_id: string;
@@ -76078,6 +77820,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76078
77820
  };
76079
77821
  Returns: string;
76080
77822
  };
77823
+ logistics_shipping_note_follows_slip: {
77824
+ Args: never;
77825
+ Returns: boolean;
77826
+ };
76081
77827
  logistics_shipping_note_from_barcode: {
76082
77828
  Args: {
76083
77829
  p_allow_reprint?: boolean;
@@ -76090,6 +77836,14 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76090
77836
  Args: never;
76091
77837
  Returns: boolean;
76092
77838
  };
77839
+ logistics_subtract_working_minutes: {
77840
+ Args: {
77841
+ p_deadline: string;
77842
+ p_max_workdays?: number;
77843
+ p_minutes: number;
77844
+ };
77845
+ Returns: import("../integrations/supabase/types").Json;
77846
+ };
76093
77847
  logistics_supersede_stale_tasks: {
76094
77848
  Args: {
76095
77849
  p_keep: string[];
@@ -76126,6 +77880,12 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76126
77880
  Args: never;
76127
77881
  Returns: string;
76128
77882
  };
77883
+ logistics_timezone_options: {
77884
+ Args: never;
77885
+ Returns: {
77886
+ name: string;
77887
+ }[];
77888
+ };
76129
77889
  logistics_upsert_task: {
76130
77890
  Args: {
76131
77891
  p_buffer_ref: string;
@@ -76145,6 +77905,16 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76145
77905
  };
76146
77906
  Returns: string;
76147
77907
  };
77908
+ logistics_valid_timezone: {
77909
+ Args: {
77910
+ _tz: string;
77911
+ };
77912
+ Returns: boolean;
77913
+ };
77914
+ logistics_working_hours_status: {
77915
+ Args: never;
77916
+ Returns: import("../integrations/supabase/types").Json;
77917
+ };
76148
77918
  logistics_write_buffer_layer_positions: {
76149
77919
  Args: {
76150
77920
  p_buffer_id: string;
@@ -76310,6 +78080,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
76310
78080
  online: boolean;
76311
78081
  }[];
76312
78082
  };
78083
+ pick_apply_buffer_events: {
78084
+ Args: never;
78085
+ Returns: import("../integrations/supabase/types").Json;
78086
+ };
76313
78087
  pick_available_pick_days: {
76314
78088
  Args: {
76315
78089
  _max_days?: number;
@@ -77586,6 +79360,13 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77586
79360
  };
77587
79361
  Returns: number;
77588
79362
  };
79363
+ schedule_floriday_catalog_prices_sync: {
79364
+ Args: {
79365
+ p_apikey: string;
79366
+ p_url: string;
79367
+ };
79368
+ Returns: number;
79369
+ };
77589
79370
  schedule_floriday_clock_presales_sync: {
77590
79371
  Args: {
77591
79372
  p_apikey: string;
@@ -77886,6 +79667,10 @@ export declare const setLogisticsStrategyBinding: import("@tanstack/start-client
77886
79667
  };
77887
79668
  Returns: undefined;
77888
79669
  };
79670
+ sync_floriday_prices_into_price_groups: {
79671
+ Args: never;
79672
+ Returns: number;
79673
+ };
77889
79674
  sync_layer_stock: {
77890
79675
  Args: {
77891
79676
  p_product_id: string;
@@ -83913,6 +85698,84 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
83913
85698
  referencedColumns: ["id"];
83914
85699
  }];
83915
85700
  };
85701
+ floriday_catalog_prices_cache: {
85702
+ Row: {
85703
+ connection_id: string;
85704
+ created_at: string;
85705
+ currency: string;
85706
+ id: string;
85707
+ is_deleted: boolean;
85708
+ price: number | null;
85709
+ price_group_id: string | null;
85710
+ price_group_name: string | null;
85711
+ price_type: string;
85712
+ raw: import("../integrations/supabase/types").Json | null;
85713
+ sales_unit: string | null;
85714
+ sequence_number: number;
85715
+ supplier_article_code: string | null;
85716
+ supply_line_id: string;
85717
+ synced_at: string;
85718
+ trade_item_id: string | null;
85719
+ updated_at: string;
85720
+ valid_from: string | null;
85721
+ valid_to: string | null;
85722
+ week: number | null;
85723
+ year: number | null;
85724
+ };
85725
+ Insert: {
85726
+ connection_id: string;
85727
+ created_at?: string;
85728
+ currency?: string;
85729
+ id?: string;
85730
+ is_deleted?: boolean;
85731
+ price?: number | null;
85732
+ price_group_id?: string | null;
85733
+ price_group_name?: string | null;
85734
+ price_type?: string;
85735
+ raw?: import("../integrations/supabase/types").Json | null;
85736
+ sales_unit?: string | null;
85737
+ sequence_number?: number;
85738
+ supplier_article_code?: string | null;
85739
+ supply_line_id: string;
85740
+ synced_at?: string;
85741
+ trade_item_id?: string | null;
85742
+ updated_at?: string;
85743
+ valid_from?: string | null;
85744
+ valid_to?: string | null;
85745
+ week?: number | null;
85746
+ year?: number | null;
85747
+ };
85748
+ Update: {
85749
+ connection_id?: string;
85750
+ created_at?: string;
85751
+ currency?: string;
85752
+ id?: string;
85753
+ is_deleted?: boolean;
85754
+ price?: number | null;
85755
+ price_group_id?: string | null;
85756
+ price_group_name?: string | null;
85757
+ price_type?: string;
85758
+ raw?: import("../integrations/supabase/types").Json | null;
85759
+ sales_unit?: string | null;
85760
+ sequence_number?: number;
85761
+ supplier_article_code?: string | null;
85762
+ supply_line_id?: string;
85763
+ synced_at?: string;
85764
+ trade_item_id?: string | null;
85765
+ updated_at?: string;
85766
+ valid_from?: string | null;
85767
+ valid_to?: string | null;
85768
+ week?: number | null;
85769
+ year?: number | null;
85770
+ };
85771
+ Relationships: [{
85772
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
85773
+ columns: ["connection_id"];
85774
+ isOneToOne: false;
85775
+ referencedRelation: "floriday_connections";
85776
+ referencedColumns: ["id"];
85777
+ }];
85778
+ };
83916
85779
  floriday_clock_presales_cache: {
83917
85780
  Row: {
83918
85781
  buyer_organization_id: string | null;
@@ -88179,6 +90042,36 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
88179
90042
  };
88180
90043
  Relationships: [];
88181
90044
  };
90045
+ logistics_floriday_push_refusals: {
90046
+ Row: {
90047
+ action: string | null;
90048
+ created_at: string;
90049
+ id: string;
90050
+ order_ref: string;
90051
+ reason: string;
90052
+ source_module: string | null;
90053
+ source_shell: string | null;
90054
+ };
90055
+ Insert: {
90056
+ action?: string | null;
90057
+ created_at?: string;
90058
+ id?: string;
90059
+ order_ref: string;
90060
+ reason: string;
90061
+ source_module?: string | null;
90062
+ source_shell?: string | null;
90063
+ };
90064
+ Update: {
90065
+ action?: string | null;
90066
+ created_at?: string;
90067
+ id?: string;
90068
+ order_ref?: string;
90069
+ reason?: string;
90070
+ source_module?: string | null;
90071
+ source_shell?: string | null;
90072
+ };
90073
+ Relationships: [];
90074
+ };
88182
90075
  logistics_floriday_pushes: {
88183
90076
  Row: {
88184
90077
  attempts: number;
@@ -88254,6 +90147,42 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
88254
90147
  };
88255
90148
  Relationships: [];
88256
90149
  };
90150
+ logistics_floriday_status_sends: {
90151
+ Row: {
90152
+ action: string;
90153
+ created_at: string;
90154
+ detail: string | null;
90155
+ http_status: number | null;
90156
+ id: string;
90157
+ ok: boolean;
90158
+ order_ref: string;
90159
+ source_module: string | null;
90160
+ source_shell: string | null;
90161
+ };
90162
+ Insert: {
90163
+ action: string;
90164
+ created_at?: string;
90165
+ detail?: string | null;
90166
+ http_status?: number | null;
90167
+ id?: string;
90168
+ ok?: boolean;
90169
+ order_ref: string;
90170
+ source_module?: string | null;
90171
+ source_shell?: string | null;
90172
+ };
90173
+ Update: {
90174
+ action?: string;
90175
+ created_at?: string;
90176
+ detail?: string | null;
90177
+ http_status?: number | null;
90178
+ id?: string;
90179
+ ok?: boolean;
90180
+ order_ref?: string;
90181
+ source_module?: string | null;
90182
+ source_shell?: string | null;
90183
+ };
90184
+ Relationships: [];
90185
+ };
88257
90186
  logistics_formulas: {
88258
90187
  Row: {
88259
90188
  created_at: string;
@@ -88326,6 +90255,108 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
88326
90255
  };
88327
90256
  Relationships: [];
88328
90257
  };
90258
+ logistics_opening_exceptions: {
90259
+ Row: {
90260
+ closes: string | null;
90261
+ created_at: string;
90262
+ day: string;
90263
+ id: string;
90264
+ is_closed: boolean;
90265
+ note: string | null;
90266
+ opens: string | null;
90267
+ };
90268
+ Insert: {
90269
+ closes?: string | null;
90270
+ created_at?: string;
90271
+ day: string;
90272
+ id?: string;
90273
+ is_closed?: boolean;
90274
+ note?: string | null;
90275
+ opens?: string | null;
90276
+ };
90277
+ Update: {
90278
+ closes?: string | null;
90279
+ created_at?: string;
90280
+ day?: string;
90281
+ id?: string;
90282
+ is_closed?: boolean;
90283
+ note?: string | null;
90284
+ opens?: string | null;
90285
+ };
90286
+ Relationships: [];
90287
+ };
90288
+ logistics_opening_hours: {
90289
+ Row: {
90290
+ closes: string;
90291
+ created_at: string;
90292
+ id: string;
90293
+ is_active: boolean;
90294
+ note: string | null;
90295
+ opens: string;
90296
+ weekday: number;
90297
+ };
90298
+ Insert: {
90299
+ closes: string;
90300
+ created_at?: string;
90301
+ id?: string;
90302
+ is_active?: boolean;
90303
+ note?: string | null;
90304
+ opens: string;
90305
+ weekday: number;
90306
+ };
90307
+ Update: {
90308
+ closes?: string;
90309
+ created_at?: string;
90310
+ id?: string;
90311
+ is_active?: boolean;
90312
+ note?: string | null;
90313
+ opens?: string;
90314
+ weekday?: number;
90315
+ };
90316
+ Relationships: [];
90317
+ };
90318
+ logistics_pick_data_requests: {
90319
+ Row: {
90320
+ actions: import("../integrations/supabase/types").Json;
90321
+ created_at: string;
90322
+ event_id: string | null;
90323
+ finished_at: string | null;
90324
+ id: string;
90325
+ missing: import("../integrations/supabase/types").Json;
90326
+ order_ref: string;
90327
+ reason: string | null;
90328
+ result: import("../integrations/supabase/types").Json | null;
90329
+ status: string;
90330
+ unit_ref: string | null;
90331
+ };
90332
+ Insert: {
90333
+ actions?: import("../integrations/supabase/types").Json;
90334
+ created_at?: string;
90335
+ event_id?: string | null;
90336
+ finished_at?: string | null;
90337
+ id?: string;
90338
+ missing?: import("../integrations/supabase/types").Json;
90339
+ order_ref: string;
90340
+ reason?: string | null;
90341
+ result?: import("../integrations/supabase/types").Json | null;
90342
+ status?: string;
90343
+ unit_ref?: string | null;
90344
+ };
90345
+ Update: {
90346
+ actions?: import("../integrations/supabase/types").Json;
90347
+ created_at?: string;
90348
+ event_id?: string | null;
90349
+ finished_at?: string | null;
90350
+ id?: string;
90351
+ missing?: import("../integrations/supabase/types").Json;
90352
+ order_ref?: string;
90353
+ reason?: string | null;
90354
+ result?: import("../integrations/supabase/types").Json | null;
90355
+ status?: string;
90356
+ unit_ref?: string | null;
90357
+ };
90358
+ Relationships: [];
90359
+ };
88329
90360
  logistics_pickup_moments: {
88330
90361
  Row: {
88331
90362
  carrier_ref: string | null;
@@ -89118,6 +91149,24 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
89118
91149
  };
89119
91150
  Relationships: [];
89120
91151
  };
91152
+ logistics_time_settings: {
91153
+ Row: {
91154
+ id: boolean;
91155
+ timezone: string;
91156
+ updated_at: string;
91157
+ };
91158
+ Insert: {
91159
+ id?: boolean;
91160
+ timezone: string;
91161
+ updated_at?: string;
91162
+ };
91163
+ Update: {
91164
+ id?: boolean;
91165
+ timezone?: string;
91166
+ updated_at?: string;
91167
+ };
91168
+ Relationships: [];
91169
+ };
89121
91170
  logistics_variables: {
89122
91171
  Row: {
89123
91172
  created_at: string;
@@ -91508,6 +93557,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
91508
93557
  customer_name: string;
91509
93558
  deleted_at: string | null;
91510
93559
  delivery_date: string | null;
93560
+ floriday_order_group_key: string | null;
91511
93561
  floriday_sales_order_id: string | null;
91512
93562
  id: string;
91513
93563
  invoice_due_at: string | null;
@@ -91535,6 +93585,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
91535
93585
  customer_name?: string;
91536
93586
  deleted_at?: string | null;
91537
93587
  delivery_date?: string | null;
93588
+ floriday_order_group_key?: string | null;
91538
93589
  floriday_sales_order_id?: string | null;
91539
93590
  id?: string;
91540
93591
  invoice_due_at?: string | null;
@@ -91562,6 +93613,7 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
91562
93613
  customer_name?: string;
91563
93614
  deleted_at?: string | null;
91564
93615
  delivery_date?: string | null;
93616
+ floriday_order_group_key?: string | null;
91565
93617
  floriday_sales_order_id?: string | null;
91566
93618
  id?: string;
91567
93619
  invoice_due_at?: string | null;
@@ -91755,6 +93807,27 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
91755
93807
  };
91756
93808
  Relationships: [];
91757
93809
  };
93810
+ pick_buffer_event_cursor: {
93811
+ Row: {
93812
+ created_at: string;
93813
+ id: boolean;
93814
+ last_event_at: string;
93815
+ updated_at: string;
93816
+ };
93817
+ Insert: {
93818
+ created_at?: string;
93819
+ id?: boolean;
93820
+ last_event_at?: string;
93821
+ updated_at?: string;
93822
+ };
93823
+ Update: {
93824
+ created_at?: string;
93825
+ id?: boolean;
93826
+ last_event_at?: string;
93827
+ updated_at?: string;
93828
+ };
93829
+ Relationships: [];
93830
+ };
91758
93831
  pick_countries: {
91759
93832
  Row: {
91760
93833
  active: boolean;
@@ -97404,6 +99477,36 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
97404
99477
  referencedColumns: ["id"];
97405
99478
  }];
97406
99479
  };
99480
+ voorraad_buffer_state: {
99481
+ Row: {
99482
+ buffer_id: string;
99483
+ buffer_key: string | null;
99484
+ closed_at: string | null;
99485
+ created_at: string;
99486
+ detached_orders: import("../integrations/supabase/types").Json;
99487
+ reason: string | null;
99488
+ updated_at: string;
99489
+ };
99490
+ Insert: {
99491
+ buffer_id: string;
99492
+ buffer_key?: string | null;
99493
+ closed_at?: string | null;
99494
+ created_at?: string;
99495
+ detached_orders?: import("../integrations/supabase/types").Json;
99496
+ reason?: string | null;
99497
+ updated_at?: string;
99498
+ };
99499
+ Update: {
99500
+ buffer_id?: string;
99501
+ buffer_key?: string | null;
99502
+ closed_at?: string | null;
99503
+ created_at?: string;
99504
+ detached_orders?: import("../integrations/supabase/types").Json;
99505
+ reason?: string | null;
99506
+ updated_at?: string;
99507
+ };
99508
+ Relationships: [];
99509
+ };
97407
99510
  voorraad_custom_fields: {
97408
99511
  Row: {
97409
99512
  created_at: string;
@@ -97446,6 +99549,36 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
97446
99549
  };
97447
99550
  Relationships: [];
97448
99551
  };
99552
+ voorraad_logistics_event_log: {
99553
+ Row: {
99554
+ created_at: string;
99555
+ event_id: string;
99556
+ event_type: string;
99557
+ order_ref: string | null;
99558
+ processed_at: string;
99559
+ result: import("../integrations/supabase/types").Json;
99560
+ updated_at: string;
99561
+ };
99562
+ Insert: {
99563
+ created_at?: string;
99564
+ event_id: string;
99565
+ event_type: string;
99566
+ order_ref?: string | null;
99567
+ processed_at?: string;
99568
+ result?: import("../integrations/supabase/types").Json;
99569
+ updated_at?: string;
99570
+ };
99571
+ Update: {
99572
+ created_at?: string;
99573
+ event_id?: string;
99574
+ event_type?: string;
99575
+ order_ref?: string | null;
99576
+ processed_at?: string;
99577
+ result?: import("../integrations/supabase/types").Json;
99578
+ updated_at?: string;
99579
+ };
99580
+ Relationships: [];
99581
+ };
97449
99582
  voorraad_media_upload_failures: {
97450
99583
  Row: {
97451
99584
  action: string;
@@ -100271,6 +102404,17 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
100271
102404
  };
100272
102405
  Returns: boolean;
100273
102406
  };
102407
+ floriday_adopt_connection: {
102408
+ Args: {
102409
+ p_new: string;
102410
+ p_old: string;
102411
+ };
102412
+ Returns: import("../integrations/supabase/types").Json;
102413
+ };
102414
+ floriday_autoheal_connections: {
102415
+ Args: never;
102416
+ Returns: import("../integrations/supabase/types").Json;
102417
+ };
100274
102418
  floriday_capture_stock_snapshot: {
100275
102419
  Args: never;
100276
102420
  Returns: number;
@@ -100328,6 +102472,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
100328
102472
  };
100329
102473
  Returns: undefined;
100330
102474
  };
102475
+ floriday_relink_products: {
102476
+ Args: {
102477
+ p_connection_id?: string;
102478
+ };
102479
+ Returns: import("../integrations/supabase/types").Json;
102480
+ };
100331
102481
  floriday_requeue_dead_letters: {
100332
102482
  Args: {
100333
102483
  p_connection_id?: string;
@@ -100949,6 +103099,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
100949
103099
  };
100950
103100
  Returns: string;
100951
103101
  };
103102
+ logistics_active_layout_method: {
103103
+ Args: never;
103104
+ Returns: string;
103105
+ };
100952
103106
  logistics_active_pick_workdays: {
100953
103107
  Args: never;
100954
103108
  Returns: string[];
@@ -101056,6 +103210,15 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101056
103210
  };
101057
103211
  Returns: boolean;
101058
103212
  };
103213
+ logistics_buffer_notify: {
103214
+ Args: {
103215
+ p_event_type: string;
103216
+ p_idempotency_key: string;
103217
+ p_order_ref: string;
103218
+ p_payload: import("../integrations/supabase/types").Json;
103219
+ };
103220
+ Returns: string;
103221
+ };
101059
103222
  logistics_buffer_open_key: {
101060
103223
  Args: {
101061
103224
  p_base_key: string;
@@ -101114,6 +103277,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101114
103277
  };
101115
103278
  Returns: string;
101116
103279
  };
103280
+ logistics_cart_checkin_at: {
103281
+ Args: {
103282
+ p_cart_id: string;
103283
+ };
103284
+ Returns: string;
103285
+ };
101117
103286
  logistics_cart_handled: {
101118
103287
  Args: {
101119
103288
  p_cart_index: number;
@@ -101147,10 +103316,22 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101147
103316
  task_status: string;
101148
103317
  }[];
101149
103318
  };
103319
+ logistics_cart_is_full: {
103320
+ Args: {
103321
+ p_cart_id: string;
103322
+ };
103323
+ Returns: boolean;
103324
+ };
101150
103325
  logistics_cart_layout_method: {
101151
103326
  Args: never;
101152
103327
  Returns: import("../integrations/supabase/types").Json;
101153
103328
  };
103329
+ logistics_cart_order_refs: {
103330
+ Args: {
103331
+ p_cart_id: string;
103332
+ };
103333
+ Returns: string[];
103334
+ };
101154
103335
  logistics_cart_plan_overview: {
101155
103336
  Args: {
101156
103337
  p_days?: number;
@@ -101170,6 +103351,18 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101170
103351
  };
101171
103352
  Returns: import("../integrations/supabase/types").Json;
101172
103353
  };
103354
+ logistics_cart_release_reason: {
103355
+ Args: {
103356
+ p_cart_id: string;
103357
+ };
103358
+ Returns: string;
103359
+ };
103360
+ logistics_cart_released: {
103361
+ Args: {
103362
+ p_cart_id: string;
103363
+ };
103364
+ Returns: boolean;
103365
+ };
101173
103366
  logistics_cart_seq: {
101174
103367
  Args: {
101175
103368
  p_order_uuid?: string;
@@ -101323,6 +103516,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101323
103516
  isSetofReturn: false;
101324
103517
  };
101325
103518
  };
103519
+ logistics_cleanup_orphan_print_jobs: {
103520
+ Args: never;
103521
+ Returns: import("../integrations/supabase/types").Json;
103522
+ };
101326
103523
  logistics_complete_task: {
101327
103524
  Args: {
101328
103525
  p_result?: import("../integrations/supabase/types").Json;
@@ -101385,6 +103582,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101385
103582
  station_carts: number;
101386
103583
  }[];
101387
103584
  };
103585
+ logistics_control_complete_cart: {
103586
+ Args: {
103587
+ p_cart_id: string;
103588
+ };
103589
+ Returns: number;
103590
+ };
101388
103591
  logistics_control_scan_approve: {
101389
103592
  Args: {
101390
103593
  p_allow_reprint?: boolean;
@@ -101464,6 +103667,15 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101464
103667
  Args: never;
101465
103668
  Returns: import("../integrations/supabase/types").Json;
101466
103669
  };
103670
+ logistics_day_windows: {
103671
+ Args: {
103672
+ p_day: string;
103673
+ };
103674
+ Returns: {
103675
+ win_end: string;
103676
+ win_start: string;
103677
+ }[];
103678
+ };
101467
103679
  logistics_delay_customer_email: {
101468
103680
  Args: {
101469
103681
  p_customer: string;
@@ -101531,6 +103743,17 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101531
103743
  };
101532
103744
  Returns: import("../integrations/supabase/types").Json;
101533
103745
  };
103746
+ logistics_enqueue_shipping_note_with_slip: {
103747
+ Args: {
103748
+ _cart_id: string;
103749
+ _is_herprint: boolean;
103750
+ _printer_id: string;
103751
+ _queue_item_id: string;
103752
+ _session_id: string;
103753
+ _slip_job_id: string;
103754
+ };
103755
+ Returns: string;
103756
+ };
101534
103757
  logistics_enqueue_sticker_with_slip: {
101535
103758
  Args: {
101536
103759
  _cart_id: string;
@@ -101548,6 +103771,14 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101548
103771
  };
101549
103772
  Returns: string;
101550
103773
  };
103774
+ logistics_ensure_pick_data: {
103775
+ Args: {
103776
+ p_event_id?: string;
103777
+ p_missing?: import("../integrations/supabase/types").Json;
103778
+ p_ref: string;
103779
+ };
103780
+ Returns: import("../integrations/supabase/types").Json;
103781
+ };
101551
103782
  logistics_fail_task: {
101552
103783
  Args: {
101553
103784
  p_error: string;
@@ -101669,6 +103900,38 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101669
103900
  };
101670
103901
  Returns: string;
101671
103902
  };
103903
+ logistics_floriday_gate_status: {
103904
+ Args: never;
103905
+ Returns: import("../integrations/supabase/types").Json;
103906
+ };
103907
+ logistics_floriday_log_refusal: {
103908
+ Args: {
103909
+ _action?: string;
103910
+ _module?: string;
103911
+ _order_ref: string;
103912
+ _reason: string;
103913
+ _shell?: string;
103914
+ };
103915
+ Returns: undefined;
103916
+ };
103917
+ logistics_floriday_log_send: {
103918
+ Args: {
103919
+ _action: string;
103920
+ _detail?: string;
103921
+ _http_status?: number;
103922
+ _module?: string;
103923
+ _ok: boolean;
103924
+ _order_ref: string;
103925
+ _shell?: string;
103926
+ };
103927
+ Returns: undefined;
103928
+ };
103929
+ logistics_floriday_order_approved: {
103930
+ Args: {
103931
+ _order_ref: string;
103932
+ };
103933
+ Returns: boolean;
103934
+ };
101672
103935
  logistics_floriday_prune_pushes: {
101673
103936
  Args: {
101674
103937
  _days?: number;
@@ -101683,6 +103946,20 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101683
103946
  };
101684
103947
  Returns: string;
101685
103948
  };
103949
+ logistics_floriday_status_updates_enabled: {
103950
+ Args: never;
103951
+ Returns: boolean;
103952
+ };
103953
+ logistics_floriday_stock_updates_enabled: {
103954
+ Args: never;
103955
+ Returns: boolean;
103956
+ };
103957
+ logistics_floriday_write_allowed: {
103958
+ Args: {
103959
+ _action: string;
103960
+ };
103961
+ Returns: boolean;
103962
+ };
101686
103963
  logistics_fulfill_barcode_requests: {
101687
103964
  Args: {
101688
103965
  p_limit?: number;
@@ -101703,6 +103980,16 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101703
103980
  };
101704
103981
  Returns: boolean;
101705
103982
  };
103983
+ logistics_layout_method_status: {
103984
+ Args: never;
103985
+ Returns: import("../integrations/supabase/types").Json;
103986
+ };
103987
+ logistics_link_order_items: {
103988
+ Args: {
103989
+ p_order?: string;
103990
+ };
103991
+ Returns: import("../integrations/supabase/types").Json;
103992
+ };
101706
103993
  logistics_live_carriers: {
101707
103994
  Args: {
101708
103995
  p_order_ref: string;
@@ -101715,6 +104002,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101715
104002
  };
101716
104003
  Returns: number;
101717
104004
  };
104005
+ logistics_merge_partial_carts: {
104006
+ Args: {
104007
+ p_limit?: number;
104008
+ };
104009
+ Returns: import("../integrations/supabase/types").Json;
104010
+ };
101718
104011
  logistics_next_workday_date: {
101719
104012
  Args: {
101720
104013
  p_date: string;
@@ -101729,12 +104022,22 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101729
104022
  };
101730
104023
  Returns: string;
101731
104024
  };
104025
+ logistics_normalize_product_label: {
104026
+ Args: {
104027
+ p_label: string;
104028
+ };
104029
+ Returns: string;
104030
+ };
101732
104031
  logistics_not_past: {
101733
104032
  Args: {
101734
104033
  p_ts: string;
101735
104034
  };
101736
104035
  Returns: string;
101737
104036
  };
104037
+ logistics_opening_timezone: {
104038
+ Args: never;
104039
+ Returns: string;
104040
+ };
101738
104041
  logistics_order_cart_count: {
101739
104042
  Args: {
101740
104043
  p_order_ref: string;
@@ -101819,6 +104122,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101819
104122
  Args: never;
101820
104123
  Returns: import("../integrations/supabase/types").Json;
101821
104124
  };
104125
+ logistics_pick_partial_mode: {
104126
+ Args: never;
104127
+ Returns: string;
104128
+ };
101822
104129
  logistics_pick_start_estimate: {
101823
104130
  Args: {
101824
104131
  p_order: import("../integrations/supabase/types").Json;
@@ -101930,6 +104237,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101930
104237
  };
101931
104238
  Returns: number;
101932
104239
  };
104240
+ logistics_prepare_pick_documents: {
104241
+ Args: {
104242
+ p_limit?: number;
104243
+ };
104244
+ Returns: import("../integrations/supabase/types").Json;
104245
+ };
101933
104246
  logistics_prune_buffer_member_queue: {
101934
104247
  Args: never;
101935
104248
  Returns: number;
@@ -101970,12 +104283,30 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
101970
104283
  Args: never;
101971
104284
  Returns: import("../integrations/supabase/types").Json;
101972
104285
  };
104286
+ logistics_refresh_pick_queue_status: {
104287
+ Args: {
104288
+ p_ref: string;
104289
+ };
104290
+ Returns: number;
104291
+ };
101973
104292
  logistics_refresh_pickup_moments: {
101974
104293
  Args: {
101975
104294
  p_weeks?: number;
101976
104295
  };
101977
104296
  Returns: import("../integrations/supabase/types").Json;
101978
104297
  };
104298
+ logistics_replan_all: {
104299
+ Args: {
104300
+ p_reason?: string;
104301
+ };
104302
+ Returns: import("../integrations/supabase/types").Json;
104303
+ };
104304
+ logistics_replan_all_force: {
104305
+ Args: {
104306
+ p_reason?: string;
104307
+ };
104308
+ Returns: import("../integrations/supabase/types").Json;
104309
+ };
101979
104310
  logistics_report_delay: {
101980
104311
  Args: {
101981
104312
  p_expected_date?: string;
@@ -102029,6 +104360,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102029
104360
  };
102030
104361
  Returns: import("../integrations/supabase/types").Json;
102031
104362
  };
104363
+ logistics_resolve_product_id: {
104364
+ Args: {
104365
+ p_label: string;
104366
+ };
104367
+ Returns: string;
104368
+ };
102032
104369
  logistics_resolve_settings: {
102033
104370
  Args: {
102034
104371
  p_config_id: string;
@@ -102114,6 +104451,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102114
104451
  };
102115
104452
  Returns: string;
102116
104453
  };
104454
+ logistics_shipping_note_follows_slip: {
104455
+ Args: never;
104456
+ Returns: boolean;
104457
+ };
102117
104458
  logistics_shipping_note_from_barcode: {
102118
104459
  Args: {
102119
104460
  p_allow_reprint?: boolean;
@@ -102126,6 +104467,14 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102126
104467
  Args: never;
102127
104468
  Returns: boolean;
102128
104469
  };
104470
+ logistics_subtract_working_minutes: {
104471
+ Args: {
104472
+ p_deadline: string;
104473
+ p_max_workdays?: number;
104474
+ p_minutes: number;
104475
+ };
104476
+ Returns: import("../integrations/supabase/types").Json;
104477
+ };
102129
104478
  logistics_supersede_stale_tasks: {
102130
104479
  Args: {
102131
104480
  p_keep: string[];
@@ -102162,6 +104511,12 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102162
104511
  Args: never;
102163
104512
  Returns: string;
102164
104513
  };
104514
+ logistics_timezone_options: {
104515
+ Args: never;
104516
+ Returns: {
104517
+ name: string;
104518
+ }[];
104519
+ };
102165
104520
  logistics_upsert_task: {
102166
104521
  Args: {
102167
104522
  p_buffer_ref: string;
@@ -102181,6 +104536,16 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102181
104536
  };
102182
104537
  Returns: string;
102183
104538
  };
104539
+ logistics_valid_timezone: {
104540
+ Args: {
104541
+ _tz: string;
104542
+ };
104543
+ Returns: boolean;
104544
+ };
104545
+ logistics_working_hours_status: {
104546
+ Args: never;
104547
+ Returns: import("../integrations/supabase/types").Json;
104548
+ };
102184
104549
  logistics_write_buffer_layer_positions: {
102185
104550
  Args: {
102186
104551
  p_buffer_id: string;
@@ -102346,6 +104711,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
102346
104711
  online: boolean;
102347
104712
  }[];
102348
104713
  };
104714
+ pick_apply_buffer_events: {
104715
+ Args: never;
104716
+ Returns: import("../integrations/supabase/types").Json;
104717
+ };
102349
104718
  pick_available_pick_days: {
102350
104719
  Args: {
102351
104720
  _max_days?: number;
@@ -103622,6 +105991,13 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103622
105991
  };
103623
105992
  Returns: number;
103624
105993
  };
105994
+ schedule_floriday_catalog_prices_sync: {
105995
+ Args: {
105996
+ p_apikey: string;
105997
+ p_url: string;
105998
+ };
105999
+ Returns: number;
106000
+ };
103625
106001
  schedule_floriday_clock_presales_sync: {
103626
106002
  Args: {
103627
106003
  p_apikey: string;
@@ -103922,6 +106298,10 @@ export declare const resolveLogisticsStrategy: import("@tanstack/start-client-co
103922
106298
  };
103923
106299
  Returns: undefined;
103924
106300
  };
106301
+ sync_floriday_prices_into_price_groups: {
106302
+ Args: never;
106303
+ Returns: number;
106304
+ };
103925
106305
  sync_layer_stock: {
103926
106306
  Args: {
103927
106307
  p_product_id: string;