@flowselections/floriday-voorraad 1.0.41 → 1.0.42

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 (38) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +546 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +546 -0
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +546 -0
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +548 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/floricode-required-features.functions.d.ts +546 -0
  10. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/floriday-2026v1.server.d.ts +1 -1
  12. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-2026v1.server.js +4 -0
  14. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +546 -0
  15. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-env.functions.d.ts +1092 -0
  17. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-gateway.functions.d.ts +3276 -0
  19. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-gateway.server.d.ts +7 -1
  21. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-gateway.server.js +50 -3
  23. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +1092 -0
  24. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1638 -0
  26. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-write-gate.server.d.ts +60 -0
  28. package/dist-lib/lib/floriday-write-gate.server.d.ts.map +1 -0
  29. package/dist-lib/lib/floriday-write-gate.server.js +196 -0
  30. package/dist-lib/lib/floriday-writes.functions.d.ts +1092 -0
  31. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/inventory-settings.functions.d.ts +1092 -0
  33. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/module-health.functions.d.ts +1092 -0
  35. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/stock-sync.functions.d.ts +1092 -0
  37. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -5823,6 +5823,84 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
5823
5823
  referencedColumns: ["id"];
5824
5824
  }];
5825
5825
  };
5826
+ floriday_catalog_prices_cache: {
5827
+ Row: {
5828
+ connection_id: string;
5829
+ created_at: string;
5830
+ currency: string;
5831
+ id: string;
5832
+ is_deleted: boolean;
5833
+ price: number | null;
5834
+ price_group_id: string | null;
5835
+ price_group_name: string | null;
5836
+ price_type: string;
5837
+ raw: import("../integrations/supabase/types").Json | null;
5838
+ sales_unit: string | null;
5839
+ sequence_number: number;
5840
+ supplier_article_code: string | null;
5841
+ supply_line_id: string;
5842
+ synced_at: string;
5843
+ trade_item_id: string | null;
5844
+ updated_at: string;
5845
+ valid_from: string | null;
5846
+ valid_to: string | null;
5847
+ week: number | null;
5848
+ year: number | null;
5849
+ };
5850
+ Insert: {
5851
+ connection_id: string;
5852
+ created_at?: string;
5853
+ currency?: string;
5854
+ id?: string;
5855
+ is_deleted?: boolean;
5856
+ price?: number | null;
5857
+ price_group_id?: string | null;
5858
+ price_group_name?: string | null;
5859
+ price_type?: string;
5860
+ raw?: import("../integrations/supabase/types").Json | null;
5861
+ sales_unit?: string | null;
5862
+ sequence_number?: number;
5863
+ supplier_article_code?: string | null;
5864
+ supply_line_id: string;
5865
+ synced_at?: string;
5866
+ trade_item_id?: string | null;
5867
+ updated_at?: string;
5868
+ valid_from?: string | null;
5869
+ valid_to?: string | null;
5870
+ week?: number | null;
5871
+ year?: number | null;
5872
+ };
5873
+ Update: {
5874
+ connection_id?: string;
5875
+ created_at?: string;
5876
+ currency?: string;
5877
+ id?: string;
5878
+ is_deleted?: boolean;
5879
+ price?: number | null;
5880
+ price_group_id?: string | null;
5881
+ price_group_name?: string | null;
5882
+ price_type?: string;
5883
+ raw?: import("../integrations/supabase/types").Json | null;
5884
+ sales_unit?: string | null;
5885
+ sequence_number?: number;
5886
+ supplier_article_code?: string | null;
5887
+ supply_line_id?: string;
5888
+ synced_at?: string;
5889
+ trade_item_id?: string | null;
5890
+ updated_at?: string;
5891
+ valid_from?: string | null;
5892
+ valid_to?: string | null;
5893
+ week?: number | null;
5894
+ year?: number | null;
5895
+ };
5896
+ Relationships: [{
5897
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5898
+ columns: ["connection_id"];
5899
+ isOneToOne: false;
5900
+ referencedRelation: "floriday_connections";
5901
+ referencedColumns: ["id"];
5902
+ }];
5903
+ };
5826
5904
  floriday_clock_presales_cache: {
5827
5905
  Row: {
5828
5906
  buyer_organization_id: string | null;
@@ -10091,22 +10169,31 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10091
10169
  };
10092
10170
  logistics_floriday_push_refusals: {
10093
10171
  Row: {
10172
+ action: string | null;
10094
10173
  created_at: string;
10095
10174
  id: string;
10096
10175
  order_ref: string;
10097
10176
  reason: string;
10177
+ source_module: string | null;
10178
+ source_shell: string | null;
10098
10179
  };
10099
10180
  Insert: {
10181
+ action?: string | null;
10100
10182
  created_at?: string;
10101
10183
  id?: string;
10102
10184
  order_ref: string;
10103
10185
  reason: string;
10186
+ source_module?: string | null;
10187
+ source_shell?: string | null;
10104
10188
  };
10105
10189
  Update: {
10190
+ action?: string | null;
10106
10191
  created_at?: string;
10107
10192
  id?: string;
10108
10193
  order_ref?: string;
10109
10194
  reason?: string;
10195
+ source_module?: string | null;
10196
+ source_shell?: string | null;
10110
10197
  };
10111
10198
  Relationships: [];
10112
10199
  };
@@ -10185,6 +10272,42 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10185
10272
  };
10186
10273
  Relationships: [];
10187
10274
  };
10275
+ logistics_floriday_status_sends: {
10276
+ Row: {
10277
+ action: string;
10278
+ created_at: string;
10279
+ detail: string | null;
10280
+ http_status: number | null;
10281
+ id: string;
10282
+ ok: boolean;
10283
+ order_ref: string;
10284
+ source_module: string | null;
10285
+ source_shell: string | null;
10286
+ };
10287
+ Insert: {
10288
+ action: string;
10289
+ created_at?: string;
10290
+ detail?: string | null;
10291
+ http_status?: number | null;
10292
+ id?: string;
10293
+ ok?: boolean;
10294
+ order_ref: string;
10295
+ source_module?: string | null;
10296
+ source_shell?: string | null;
10297
+ };
10298
+ Update: {
10299
+ action?: string;
10300
+ created_at?: string;
10301
+ detail?: string | null;
10302
+ http_status?: number | null;
10303
+ id?: string;
10304
+ ok?: boolean;
10305
+ order_ref?: string;
10306
+ source_module?: string | null;
10307
+ source_shell?: string | null;
10308
+ };
10309
+ Relationships: [];
10310
+ };
10188
10311
  logistics_formulas: {
10189
10312
  Row: {
10190
10313
  created_at: string;
@@ -10257,6 +10380,108 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10257
10380
  };
10258
10381
  Relationships: [];
10259
10382
  };
10383
+ logistics_opening_exceptions: {
10384
+ Row: {
10385
+ closes: string | null;
10386
+ created_at: string;
10387
+ day: string;
10388
+ id: string;
10389
+ is_closed: boolean;
10390
+ note: string | null;
10391
+ opens: string | null;
10392
+ };
10393
+ Insert: {
10394
+ closes?: string | null;
10395
+ created_at?: string;
10396
+ day: string;
10397
+ id?: string;
10398
+ is_closed?: boolean;
10399
+ note?: string | null;
10400
+ opens?: string | null;
10401
+ };
10402
+ Update: {
10403
+ closes?: string | null;
10404
+ created_at?: string;
10405
+ day?: string;
10406
+ id?: string;
10407
+ is_closed?: boolean;
10408
+ note?: string | null;
10409
+ opens?: string | null;
10410
+ };
10411
+ Relationships: [];
10412
+ };
10413
+ logistics_opening_hours: {
10414
+ Row: {
10415
+ closes: string;
10416
+ created_at: string;
10417
+ id: string;
10418
+ is_active: boolean;
10419
+ note: string | null;
10420
+ opens: string;
10421
+ weekday: number;
10422
+ };
10423
+ Insert: {
10424
+ closes: string;
10425
+ created_at?: string;
10426
+ id?: string;
10427
+ is_active?: boolean;
10428
+ note?: string | null;
10429
+ opens: string;
10430
+ weekday: number;
10431
+ };
10432
+ Update: {
10433
+ closes?: string;
10434
+ created_at?: string;
10435
+ id?: string;
10436
+ is_active?: boolean;
10437
+ note?: string | null;
10438
+ opens?: string;
10439
+ weekday?: number;
10440
+ };
10441
+ Relationships: [];
10442
+ };
10443
+ logistics_pick_data_requests: {
10444
+ Row: {
10445
+ actions: import("../integrations/supabase/types").Json;
10446
+ created_at: string;
10447
+ event_id: string | null;
10448
+ finished_at: string | null;
10449
+ id: string;
10450
+ missing: import("../integrations/supabase/types").Json;
10451
+ order_ref: string;
10452
+ reason: string | null;
10453
+ result: import("../integrations/supabase/types").Json | null;
10454
+ status: string;
10455
+ unit_ref: string | null;
10456
+ };
10457
+ Insert: {
10458
+ actions?: import("../integrations/supabase/types").Json;
10459
+ created_at?: string;
10460
+ event_id?: string | null;
10461
+ finished_at?: string | null;
10462
+ id?: string;
10463
+ missing?: import("../integrations/supabase/types").Json;
10464
+ order_ref: string;
10465
+ reason?: string | null;
10466
+ result?: import("../integrations/supabase/types").Json | null;
10467
+ status?: string;
10468
+ unit_ref?: string | null;
10469
+ };
10470
+ Update: {
10471
+ actions?: import("../integrations/supabase/types").Json;
10472
+ created_at?: string;
10473
+ event_id?: string | null;
10474
+ finished_at?: string | null;
10475
+ id?: string;
10476
+ missing?: import("../integrations/supabase/types").Json;
10477
+ order_ref?: string;
10478
+ reason?: string | null;
10479
+ result?: import("../integrations/supabase/types").Json | null;
10480
+ status?: string;
10481
+ unit_ref?: string | null;
10482
+ };
10483
+ Relationships: [];
10484
+ };
10260
10485
  logistics_pickup_moments: {
10261
10486
  Row: {
10262
10487
  carrier_ref: string | null;
@@ -10716,6 +10941,69 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10716
10941
  };
10717
10942
  Relationships: [];
10718
10943
  };
10944
+ logistics_slip_shipping_note: {
10945
+ Row: {
10946
+ attempts: number;
10947
+ batch_key: string | null;
10948
+ cart_id: string | null;
10949
+ created_at: string;
10950
+ error: string | null;
10951
+ error_code: string | null;
10952
+ fulfillment_order_id: string | null;
10953
+ id: string;
10954
+ locked_until: string | null;
10955
+ next_attempt_at: string | null;
10956
+ order_id: string | null;
10957
+ order_number: string | null;
10958
+ print_job_id: string | null;
10959
+ printer_id: string | null;
10960
+ retry_class: string | null;
10961
+ slip_job_id: string;
10962
+ status: string;
10963
+ updated_at: string;
10964
+ };
10965
+ Insert: {
10966
+ attempts?: number;
10967
+ batch_key?: string | null;
10968
+ cart_id?: string | null;
10969
+ created_at?: string;
10970
+ error?: string | null;
10971
+ error_code?: string | null;
10972
+ fulfillment_order_id?: string | null;
10973
+ id?: string;
10974
+ locked_until?: string | null;
10975
+ next_attempt_at?: string | null;
10976
+ order_id?: string | null;
10977
+ order_number?: string | null;
10978
+ print_job_id?: string | null;
10979
+ printer_id?: string | null;
10980
+ retry_class?: string | null;
10981
+ slip_job_id: string;
10982
+ status?: string;
10983
+ updated_at?: string;
10984
+ };
10985
+ Update: {
10986
+ attempts?: number;
10987
+ batch_key?: string | null;
10988
+ cart_id?: string | null;
10989
+ created_at?: string;
10990
+ error?: string | null;
10991
+ error_code?: string | null;
10992
+ fulfillment_order_id?: string | null;
10993
+ id?: string;
10994
+ locked_until?: string | null;
10995
+ next_attempt_at?: string | null;
10996
+ order_id?: string | null;
10997
+ order_number?: string | null;
10998
+ print_job_id?: string | null;
10999
+ printer_id?: string | null;
11000
+ retry_class?: string | null;
11001
+ slip_job_id?: string;
11002
+ status?: string;
11003
+ updated_at?: string;
11004
+ };
11005
+ Relationships: [];
11006
+ };
10719
11007
  logistics_staff_planning: {
10720
11008
  Row: {
10721
11009
  created_at: string;
@@ -11049,6 +11337,24 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
11049
11337
  };
11050
11338
  Relationships: [];
11051
11339
  };
11340
+ logistics_time_settings: {
11341
+ Row: {
11342
+ id: boolean;
11343
+ timezone: string;
11344
+ updated_at: string;
11345
+ };
11346
+ Insert: {
11347
+ id?: boolean;
11348
+ timezone: string;
11349
+ updated_at?: string;
11350
+ };
11351
+ Update: {
11352
+ id?: boolean;
11353
+ timezone?: string;
11354
+ updated_at?: string;
11355
+ };
11356
+ Relationships: [];
11357
+ };
11052
11358
  logistics_variables: {
11053
11359
  Row: {
11054
11360
  created_at: string;
@@ -13439,6 +13745,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
13439
13745
  customer_name: string;
13440
13746
  deleted_at: string | null;
13441
13747
  delivery_date: string | null;
13748
+ floriday_order_group_key: string | null;
13442
13749
  floriday_sales_order_id: string | null;
13443
13750
  id: string;
13444
13751
  invoice_due_at: string | null;
@@ -13466,6 +13773,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
13466
13773
  customer_name?: string;
13467
13774
  deleted_at?: string | null;
13468
13775
  delivery_date?: string | null;
13776
+ floriday_order_group_key?: string | null;
13469
13777
  floriday_sales_order_id?: string | null;
13470
13778
  id?: string;
13471
13779
  invoice_due_at?: string | null;
@@ -13493,6 +13801,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
13493
13801
  customer_name?: string;
13494
13802
  deleted_at?: string | null;
13495
13803
  delivery_date?: string | null;
13804
+ floriday_order_group_key?: string | null;
13496
13805
  floriday_sales_order_id?: string | null;
13497
13806
  id?: string;
13498
13807
  invoice_due_at?: string | null;
@@ -23156,6 +23465,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23156
23465
  };
23157
23466
  Returns: string;
23158
23467
  };
23468
+ logistics_cart_checkin_at: {
23469
+ Args: {
23470
+ p_cart_id: string;
23471
+ };
23472
+ Returns: string;
23473
+ };
23159
23474
  logistics_cart_handled: {
23160
23475
  Args: {
23161
23476
  p_cart_index: number;
@@ -23189,10 +23504,22 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23189
23504
  task_status: string;
23190
23505
  }[];
23191
23506
  };
23507
+ logistics_cart_is_full: {
23508
+ Args: {
23509
+ p_cart_id: string;
23510
+ };
23511
+ Returns: boolean;
23512
+ };
23192
23513
  logistics_cart_layout_method: {
23193
23514
  Args: never;
23194
23515
  Returns: import("../integrations/supabase/types").Json;
23195
23516
  };
23517
+ logistics_cart_order_refs: {
23518
+ Args: {
23519
+ p_cart_id: string;
23520
+ };
23521
+ Returns: string[];
23522
+ };
23196
23523
  logistics_cart_plan_overview: {
23197
23524
  Args: {
23198
23525
  p_days?: number;
@@ -23212,6 +23539,18 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23212
23539
  };
23213
23540
  Returns: import("../integrations/supabase/types").Json;
23214
23541
  };
23542
+ logistics_cart_release_reason: {
23543
+ Args: {
23544
+ p_cart_id: string;
23545
+ };
23546
+ Returns: string;
23547
+ };
23548
+ logistics_cart_released: {
23549
+ Args: {
23550
+ p_cart_id: string;
23551
+ };
23552
+ Returns: boolean;
23553
+ };
23215
23554
  logistics_cart_seq: {
23216
23555
  Args: {
23217
23556
  p_order_uuid?: string;
@@ -23262,6 +23601,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23262
23601
  unit_ref: string;
23263
23602
  }[];
23264
23603
  };
23604
+ logistics_carts_per_print: {
23605
+ Args: never;
23606
+ Returns: number;
23607
+ };
23265
23608
  logistics_check_order_allowed: {
23266
23609
  Args: {
23267
23610
  p_lines: import("../integrations/supabase/types").Json;
@@ -23365,6 +23708,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23365
23708
  isSetofReturn: false;
23366
23709
  };
23367
23710
  };
23711
+ logistics_cleanup_orphan_print_jobs: {
23712
+ Args: never;
23713
+ Returns: import("../integrations/supabase/types").Json;
23714
+ };
23368
23715
  logistics_complete_task: {
23369
23716
  Args: {
23370
23717
  p_result?: import("../integrations/supabase/types").Json;
@@ -23427,6 +23774,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23427
23774
  station_carts: number;
23428
23775
  }[];
23429
23776
  };
23777
+ logistics_control_complete_cart: {
23778
+ Args: {
23779
+ p_cart_id: string;
23780
+ };
23781
+ Returns: number;
23782
+ };
23430
23783
  logistics_control_scan_approve: {
23431
23784
  Args: {
23432
23785
  p_allow_reprint?: boolean;
@@ -23506,6 +23859,15 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23506
23859
  Args: never;
23507
23860
  Returns: import("../integrations/supabase/types").Json;
23508
23861
  };
23862
+ logistics_day_windows: {
23863
+ Args: {
23864
+ p_day: string;
23865
+ };
23866
+ Returns: {
23867
+ win_end: string;
23868
+ win_start: string;
23869
+ }[];
23870
+ };
23509
23871
  logistics_delay_customer_email: {
23510
23872
  Args: {
23511
23873
  p_customer: string;
@@ -23573,6 +23935,17 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23573
23935
  };
23574
23936
  Returns: import("../integrations/supabase/types").Json;
23575
23937
  };
23938
+ logistics_enqueue_shipping_note_with_slip: {
23939
+ Args: {
23940
+ _cart_id: string;
23941
+ _is_herprint: boolean;
23942
+ _printer_id: string;
23943
+ _queue_item_id: string;
23944
+ _session_id: string;
23945
+ _slip_job_id: string;
23946
+ };
23947
+ Returns: string;
23948
+ };
23576
23949
  logistics_enqueue_sticker_with_slip: {
23577
23950
  Args: {
23578
23951
  _cart_id: string;
@@ -23590,6 +23963,14 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23590
23963
  };
23591
23964
  Returns: string;
23592
23965
  };
23966
+ logistics_ensure_pick_data: {
23967
+ Args: {
23968
+ p_event_id?: string;
23969
+ p_missing?: import("../integrations/supabase/types").Json;
23970
+ p_ref: string;
23971
+ };
23972
+ Returns: import("../integrations/supabase/types").Json;
23973
+ };
23593
23974
  logistics_fail_task: {
23594
23975
  Args: {
23595
23976
  p_error: string;
@@ -23711,6 +24092,32 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23711
24092
  };
23712
24093
  Returns: string;
23713
24094
  };
24095
+ logistics_floriday_gate_status: {
24096
+ Args: never;
24097
+ Returns: import("../integrations/supabase/types").Json;
24098
+ };
24099
+ logistics_floriday_log_refusal: {
24100
+ Args: {
24101
+ _action?: string;
24102
+ _module?: string;
24103
+ _order_ref: string;
24104
+ _reason: string;
24105
+ _shell?: string;
24106
+ };
24107
+ Returns: undefined;
24108
+ };
24109
+ logistics_floriday_log_send: {
24110
+ Args: {
24111
+ _action: string;
24112
+ _detail?: string;
24113
+ _http_status?: number;
24114
+ _module?: string;
24115
+ _ok: boolean;
24116
+ _order_ref: string;
24117
+ _shell?: string;
24118
+ };
24119
+ Returns: undefined;
24120
+ };
23714
24121
  logistics_floriday_order_approved: {
23715
24122
  Args: {
23716
24123
  _order_ref: string;
@@ -23735,6 +24142,16 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23735
24142
  Args: never;
23736
24143
  Returns: boolean;
23737
24144
  };
24145
+ logistics_floriday_stock_updates_enabled: {
24146
+ Args: never;
24147
+ Returns: boolean;
24148
+ };
24149
+ logistics_floriday_write_allowed: {
24150
+ Args: {
24151
+ _action: string;
24152
+ };
24153
+ Returns: boolean;
24154
+ };
23738
24155
  logistics_fulfill_barcode_requests: {
23739
24156
  Args: {
23740
24157
  p_limit?: number;
@@ -23777,6 +24194,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23777
24194
  };
23778
24195
  Returns: number;
23779
24196
  };
24197
+ logistics_merge_partial_carts: {
24198
+ Args: {
24199
+ p_limit?: number;
24200
+ };
24201
+ Returns: import("../integrations/supabase/types").Json;
24202
+ };
23780
24203
  logistics_next_workday_date: {
23781
24204
  Args: {
23782
24205
  p_date: string;
@@ -23803,6 +24226,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23803
24226
  };
23804
24227
  Returns: string;
23805
24228
  };
24229
+ logistics_opening_timezone: {
24230
+ Args: never;
24231
+ Returns: string;
24232
+ };
23806
24233
  logistics_order_cart_count: {
23807
24234
  Args: {
23808
24235
  p_order_ref: string;
@@ -23887,6 +24314,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23887
24314
  Args: never;
23888
24315
  Returns: import("../integrations/supabase/types").Json;
23889
24316
  };
24317
+ logistics_pick_partial_mode: {
24318
+ Args: never;
24319
+ Returns: string;
24320
+ };
23890
24321
  logistics_pick_start_estimate: {
23891
24322
  Args: {
23892
24323
  p_order: import("../integrations/supabase/types").Json;
@@ -23998,6 +24429,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23998
24429
  };
23999
24430
  Returns: number;
24000
24431
  };
24432
+ logistics_prepare_pick_documents: {
24433
+ Args: {
24434
+ p_limit?: number;
24435
+ };
24436
+ Returns: import("../integrations/supabase/types").Json;
24437
+ };
24001
24438
  logistics_prune_buffer_member_queue: {
24002
24439
  Args: never;
24003
24440
  Returns: number;
@@ -24038,6 +24475,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24038
24475
  Args: never;
24039
24476
  Returns: import("../integrations/supabase/types").Json;
24040
24477
  };
24478
+ logistics_refresh_pick_queue_status: {
24479
+ Args: {
24480
+ p_ref: string;
24481
+ };
24482
+ Returns: number;
24483
+ };
24041
24484
  logistics_refresh_pickup_moments: {
24042
24485
  Args: {
24043
24486
  p_weeks?: number;
@@ -24050,6 +24493,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24050
24493
  };
24051
24494
  Returns: import("../integrations/supabase/types").Json;
24052
24495
  };
24496
+ logistics_replan_all_force: {
24497
+ Args: {
24498
+ p_reason?: string;
24499
+ };
24500
+ Returns: import("../integrations/supabase/types").Json;
24501
+ };
24053
24502
  logistics_report_delay: {
24054
24503
  Args: {
24055
24504
  p_expected_date?: string;
@@ -24194,6 +24643,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24194
24643
  };
24195
24644
  Returns: string;
24196
24645
  };
24646
+ logistics_shipping_note_follows_slip: {
24647
+ Args: never;
24648
+ Returns: boolean;
24649
+ };
24197
24650
  logistics_shipping_note_from_barcode: {
24198
24651
  Args: {
24199
24652
  p_allow_reprint?: boolean;
@@ -24202,10 +24655,76 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24202
24655
  };
24203
24656
  Returns: import("../integrations/supabase/types").Json;
24204
24657
  };
24658
+ logistics_shipping_note_job_for_slip: {
24659
+ Args: {
24660
+ _slip_job_id: string;
24661
+ };
24662
+ Returns: string;
24663
+ };
24664
+ logistics_slip_note_claim: {
24665
+ Args: {
24666
+ _lease_seconds?: number;
24667
+ _limit?: number;
24668
+ };
24669
+ Returns: {
24670
+ attempts: number;
24671
+ batch_key: string | null;
24672
+ cart_id: string | null;
24673
+ created_at: string;
24674
+ error: string | null;
24675
+ error_code: string | null;
24676
+ fulfillment_order_id: string | null;
24677
+ id: string;
24678
+ locked_until: string | null;
24679
+ next_attempt_at: string | null;
24680
+ order_id: string | null;
24681
+ order_number: string | null;
24682
+ print_job_id: string | null;
24683
+ printer_id: string | null;
24684
+ retry_class: string | null;
24685
+ slip_job_id: string;
24686
+ status: string;
24687
+ updated_at: string;
24688
+ }[];
24689
+ SetofOptions: {
24690
+ from: "*";
24691
+ to: "logistics_slip_shipping_note";
24692
+ isOneToOne: false;
24693
+ isSetofReturn: true;
24694
+ };
24695
+ };
24696
+ logistics_slip_note_finish: {
24697
+ Args: {
24698
+ _error?: string;
24699
+ _error_code?: string;
24700
+ _fulfillment_order_id?: string;
24701
+ _id: string;
24702
+ _ok: boolean;
24703
+ _print_job_id?: string;
24704
+ _status?: string;
24705
+ };
24706
+ Returns: undefined;
24707
+ };
24708
+ logistics_slip_note_keep_waiting: {
24709
+ Args: {
24710
+ _class?: string;
24711
+ _id: string;
24712
+ _reason: string;
24713
+ };
24714
+ Returns: undefined;
24715
+ };
24205
24716
  logistics_sticker_follows_slip: {
24206
24717
  Args: never;
24207
24718
  Returns: boolean;
24208
24719
  };
24720
+ logistics_subtract_working_minutes: {
24721
+ Args: {
24722
+ p_deadline: string;
24723
+ p_max_workdays?: number;
24724
+ p_minutes: number;
24725
+ };
24726
+ Returns: import("../integrations/supabase/types").Json;
24727
+ };
24209
24728
  logistics_supersede_stale_tasks: {
24210
24729
  Args: {
24211
24730
  p_keep: string[];
@@ -24242,6 +24761,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24242
24761
  Args: never;
24243
24762
  Returns: string;
24244
24763
  };
24764
+ logistics_timezone_options: {
24765
+ Args: never;
24766
+ Returns: {
24767
+ name: string;
24768
+ }[];
24769
+ };
24245
24770
  logistics_upsert_task: {
24246
24771
  Args: {
24247
24772
  p_buffer_ref: string;
@@ -24261,6 +24786,16 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24261
24786
  };
24262
24787
  Returns: string;
24263
24788
  };
24789
+ logistics_valid_timezone: {
24790
+ Args: {
24791
+ _tz: string;
24792
+ };
24793
+ Returns: boolean;
24794
+ };
24795
+ logistics_working_hours_status: {
24796
+ Args: never;
24797
+ Returns: import("../integrations/supabase/types").Json;
24798
+ };
24264
24799
  logistics_write_buffer_layer_positions: {
24265
24800
  Args: {
24266
24801
  p_buffer_id: string;
@@ -25706,6 +26241,13 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
25706
26241
  };
25707
26242
  Returns: number;
25708
26243
  };
26244
+ schedule_floriday_catalog_prices_sync: {
26245
+ Args: {
26246
+ p_apikey: string;
26247
+ p_url: string;
26248
+ };
26249
+ Returns: number;
26250
+ };
25709
26251
  schedule_floriday_clock_presales_sync: {
25710
26252
  Args: {
25711
26253
  p_apikey: string;
@@ -26006,6 +26548,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
26006
26548
  };
26007
26549
  Returns: undefined;
26008
26550
  };
26551
+ sync_floriday_prices_into_price_groups: {
26552
+ Args: never;
26553
+ Returns: number;
26554
+ };
26009
26555
  sync_layer_stock: {
26010
26556
  Args: {
26011
26557
  p_product_id: string;
@@ -32023,6 +32569,84 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
32023
32569
  referencedColumns: ["id"];
32024
32570
  }];
32025
32571
  };
32572
+ floriday_catalog_prices_cache: {
32573
+ Row: {
32574
+ connection_id: string;
32575
+ created_at: string;
32576
+ currency: string;
32577
+ id: string;
32578
+ is_deleted: boolean;
32579
+ price: number | null;
32580
+ price_group_id: string | null;
32581
+ price_group_name: string | null;
32582
+ price_type: string;
32583
+ raw: import("../integrations/supabase/types").Json | null;
32584
+ sales_unit: string | null;
32585
+ sequence_number: number;
32586
+ supplier_article_code: string | null;
32587
+ supply_line_id: string;
32588
+ synced_at: string;
32589
+ trade_item_id: string | null;
32590
+ updated_at: string;
32591
+ valid_from: string | null;
32592
+ valid_to: string | null;
32593
+ week: number | null;
32594
+ year: number | null;
32595
+ };
32596
+ Insert: {
32597
+ connection_id: string;
32598
+ created_at?: string;
32599
+ currency?: string;
32600
+ id?: string;
32601
+ is_deleted?: boolean;
32602
+ price?: number | null;
32603
+ price_group_id?: string | null;
32604
+ price_group_name?: string | null;
32605
+ price_type?: string;
32606
+ raw?: import("../integrations/supabase/types").Json | null;
32607
+ sales_unit?: string | null;
32608
+ sequence_number?: number;
32609
+ supplier_article_code?: string | null;
32610
+ supply_line_id: string;
32611
+ synced_at?: string;
32612
+ trade_item_id?: string | null;
32613
+ updated_at?: string;
32614
+ valid_from?: string | null;
32615
+ valid_to?: string | null;
32616
+ week?: number | null;
32617
+ year?: number | null;
32618
+ };
32619
+ Update: {
32620
+ connection_id?: string;
32621
+ created_at?: string;
32622
+ currency?: string;
32623
+ id?: string;
32624
+ is_deleted?: boolean;
32625
+ price?: number | null;
32626
+ price_group_id?: string | null;
32627
+ price_group_name?: string | null;
32628
+ price_type?: string;
32629
+ raw?: import("../integrations/supabase/types").Json | null;
32630
+ sales_unit?: string | null;
32631
+ sequence_number?: number;
32632
+ supplier_article_code?: string | null;
32633
+ supply_line_id?: string;
32634
+ synced_at?: string;
32635
+ trade_item_id?: string | null;
32636
+ updated_at?: string;
32637
+ valid_from?: string | null;
32638
+ valid_to?: string | null;
32639
+ week?: number | null;
32640
+ year?: number | null;
32641
+ };
32642
+ Relationships: [{
32643
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32644
+ columns: ["connection_id"];
32645
+ isOneToOne: false;
32646
+ referencedRelation: "floriday_connections";
32647
+ referencedColumns: ["id"];
32648
+ }];
32649
+ };
32026
32650
  floriday_clock_presales_cache: {
32027
32651
  Row: {
32028
32652
  buyer_organization_id: string | null;
@@ -36291,22 +36915,31 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36291
36915
  };
36292
36916
  logistics_floriday_push_refusals: {
36293
36917
  Row: {
36918
+ action: string | null;
36294
36919
  created_at: string;
36295
36920
  id: string;
36296
36921
  order_ref: string;
36297
36922
  reason: string;
36923
+ source_module: string | null;
36924
+ source_shell: string | null;
36298
36925
  };
36299
36926
  Insert: {
36927
+ action?: string | null;
36300
36928
  created_at?: string;
36301
36929
  id?: string;
36302
36930
  order_ref: string;
36303
36931
  reason: string;
36932
+ source_module?: string | null;
36933
+ source_shell?: string | null;
36304
36934
  };
36305
36935
  Update: {
36936
+ action?: string | null;
36306
36937
  created_at?: string;
36307
36938
  id?: string;
36308
36939
  order_ref?: string;
36309
36940
  reason?: string;
36941
+ source_module?: string | null;
36942
+ source_shell?: string | null;
36310
36943
  };
36311
36944
  Relationships: [];
36312
36945
  };
@@ -36385,6 +37018,42 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36385
37018
  };
36386
37019
  Relationships: [];
36387
37020
  };
37021
+ logistics_floriday_status_sends: {
37022
+ Row: {
37023
+ action: string;
37024
+ created_at: string;
37025
+ detail: string | null;
37026
+ http_status: number | null;
37027
+ id: string;
37028
+ ok: boolean;
37029
+ order_ref: string;
37030
+ source_module: string | null;
37031
+ source_shell: string | null;
37032
+ };
37033
+ Insert: {
37034
+ action: string;
37035
+ created_at?: string;
37036
+ detail?: string | null;
37037
+ http_status?: number | null;
37038
+ id?: string;
37039
+ ok?: boolean;
37040
+ order_ref: string;
37041
+ source_module?: string | null;
37042
+ source_shell?: string | null;
37043
+ };
37044
+ Update: {
37045
+ action?: string;
37046
+ created_at?: string;
37047
+ detail?: string | null;
37048
+ http_status?: number | null;
37049
+ id?: string;
37050
+ ok?: boolean;
37051
+ order_ref?: string;
37052
+ source_module?: string | null;
37053
+ source_shell?: string | null;
37054
+ };
37055
+ Relationships: [];
37056
+ };
36388
37057
  logistics_formulas: {
36389
37058
  Row: {
36390
37059
  created_at: string;
@@ -36457,6 +37126,108 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36457
37126
  };
36458
37127
  Relationships: [];
36459
37128
  };
37129
+ logistics_opening_exceptions: {
37130
+ Row: {
37131
+ closes: string | null;
37132
+ created_at: string;
37133
+ day: string;
37134
+ id: string;
37135
+ is_closed: boolean;
37136
+ note: string | null;
37137
+ opens: string | null;
37138
+ };
37139
+ Insert: {
37140
+ closes?: string | null;
37141
+ created_at?: string;
37142
+ day: string;
37143
+ id?: string;
37144
+ is_closed?: boolean;
37145
+ note?: string | null;
37146
+ opens?: string | null;
37147
+ };
37148
+ Update: {
37149
+ closes?: string | null;
37150
+ created_at?: string;
37151
+ day?: string;
37152
+ id?: string;
37153
+ is_closed?: boolean;
37154
+ note?: string | null;
37155
+ opens?: string | null;
37156
+ };
37157
+ Relationships: [];
37158
+ };
37159
+ logistics_opening_hours: {
37160
+ Row: {
37161
+ closes: string;
37162
+ created_at: string;
37163
+ id: string;
37164
+ is_active: boolean;
37165
+ note: string | null;
37166
+ opens: string;
37167
+ weekday: number;
37168
+ };
37169
+ Insert: {
37170
+ closes: string;
37171
+ created_at?: string;
37172
+ id?: string;
37173
+ is_active?: boolean;
37174
+ note?: string | null;
37175
+ opens: string;
37176
+ weekday: number;
37177
+ };
37178
+ Update: {
37179
+ closes?: string;
37180
+ created_at?: string;
37181
+ id?: string;
37182
+ is_active?: boolean;
37183
+ note?: string | null;
37184
+ opens?: string;
37185
+ weekday?: number;
37186
+ };
37187
+ Relationships: [];
37188
+ };
37189
+ logistics_pick_data_requests: {
37190
+ Row: {
37191
+ actions: import("../integrations/supabase/types").Json;
37192
+ created_at: string;
37193
+ event_id: string | null;
37194
+ finished_at: string | null;
37195
+ id: string;
37196
+ missing: import("../integrations/supabase/types").Json;
37197
+ order_ref: string;
37198
+ reason: string | null;
37199
+ result: import("../integrations/supabase/types").Json | null;
37200
+ status: string;
37201
+ unit_ref: string | null;
37202
+ };
37203
+ Insert: {
37204
+ actions?: import("../integrations/supabase/types").Json;
37205
+ created_at?: string;
37206
+ event_id?: string | null;
37207
+ finished_at?: string | null;
37208
+ id?: string;
37209
+ missing?: import("../integrations/supabase/types").Json;
37210
+ order_ref: string;
37211
+ reason?: string | null;
37212
+ result?: import("../integrations/supabase/types").Json | null;
37213
+ status?: string;
37214
+ unit_ref?: string | null;
37215
+ };
37216
+ Update: {
37217
+ actions?: import("../integrations/supabase/types").Json;
37218
+ created_at?: string;
37219
+ event_id?: string | null;
37220
+ finished_at?: string | null;
37221
+ id?: string;
37222
+ missing?: import("../integrations/supabase/types").Json;
37223
+ order_ref?: string;
37224
+ reason?: string | null;
37225
+ result?: import("../integrations/supabase/types").Json | null;
37226
+ status?: string;
37227
+ unit_ref?: string | null;
37228
+ };
37229
+ Relationships: [];
37230
+ };
36460
37231
  logistics_pickup_moments: {
36461
37232
  Row: {
36462
37233
  carrier_ref: string | null;
@@ -36916,6 +37687,69 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36916
37687
  };
36917
37688
  Relationships: [];
36918
37689
  };
37690
+ logistics_slip_shipping_note: {
37691
+ Row: {
37692
+ attempts: number;
37693
+ batch_key: string | null;
37694
+ cart_id: string | null;
37695
+ created_at: string;
37696
+ error: string | null;
37697
+ error_code: string | null;
37698
+ fulfillment_order_id: string | null;
37699
+ id: string;
37700
+ locked_until: string | null;
37701
+ next_attempt_at: string | null;
37702
+ order_id: string | null;
37703
+ order_number: string | null;
37704
+ print_job_id: string | null;
37705
+ printer_id: string | null;
37706
+ retry_class: string | null;
37707
+ slip_job_id: string;
37708
+ status: string;
37709
+ updated_at: string;
37710
+ };
37711
+ Insert: {
37712
+ attempts?: number;
37713
+ batch_key?: string | null;
37714
+ cart_id?: string | null;
37715
+ created_at?: string;
37716
+ error?: string | null;
37717
+ error_code?: string | null;
37718
+ fulfillment_order_id?: string | null;
37719
+ id?: string;
37720
+ locked_until?: string | null;
37721
+ next_attempt_at?: string | null;
37722
+ order_id?: string | null;
37723
+ order_number?: string | null;
37724
+ print_job_id?: string | null;
37725
+ printer_id?: string | null;
37726
+ retry_class?: string | null;
37727
+ slip_job_id: string;
37728
+ status?: string;
37729
+ updated_at?: string;
37730
+ };
37731
+ Update: {
37732
+ attempts?: number;
37733
+ batch_key?: string | null;
37734
+ cart_id?: string | null;
37735
+ created_at?: string;
37736
+ error?: string | null;
37737
+ error_code?: string | null;
37738
+ fulfillment_order_id?: string | null;
37739
+ id?: string;
37740
+ locked_until?: string | null;
37741
+ next_attempt_at?: string | null;
37742
+ order_id?: string | null;
37743
+ order_number?: string | null;
37744
+ print_job_id?: string | null;
37745
+ printer_id?: string | null;
37746
+ retry_class?: string | null;
37747
+ slip_job_id?: string;
37748
+ status?: string;
37749
+ updated_at?: string;
37750
+ };
37751
+ Relationships: [];
37752
+ };
36919
37753
  logistics_staff_planning: {
36920
37754
  Row: {
36921
37755
  created_at: string;
@@ -37249,6 +38083,24 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
37249
38083
  };
37250
38084
  Relationships: [];
37251
38085
  };
38086
+ logistics_time_settings: {
38087
+ Row: {
38088
+ id: boolean;
38089
+ timezone: string;
38090
+ updated_at: string;
38091
+ };
38092
+ Insert: {
38093
+ id?: boolean;
38094
+ timezone: string;
38095
+ updated_at?: string;
38096
+ };
38097
+ Update: {
38098
+ id?: boolean;
38099
+ timezone?: string;
38100
+ updated_at?: string;
38101
+ };
38102
+ Relationships: [];
38103
+ };
37252
38104
  logistics_variables: {
37253
38105
  Row: {
37254
38106
  created_at: string;
@@ -39639,6 +40491,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
39639
40491
  customer_name: string;
39640
40492
  deleted_at: string | null;
39641
40493
  delivery_date: string | null;
40494
+ floriday_order_group_key: string | null;
39642
40495
  floriday_sales_order_id: string | null;
39643
40496
  id: string;
39644
40497
  invoice_due_at: string | null;
@@ -39666,6 +40519,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
39666
40519
  customer_name?: string;
39667
40520
  deleted_at?: string | null;
39668
40521
  delivery_date?: string | null;
40522
+ floriday_order_group_key?: string | null;
39669
40523
  floriday_sales_order_id?: string | null;
39670
40524
  id?: string;
39671
40525
  invoice_due_at?: string | null;
@@ -39693,6 +40547,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
39693
40547
  customer_name?: string;
39694
40548
  deleted_at?: string | null;
39695
40549
  delivery_date?: string | null;
40550
+ floriday_order_group_key?: string | null;
39696
40551
  floriday_sales_order_id?: string | null;
39697
40552
  id?: string;
39698
40553
  invoice_due_at?: string | null;
@@ -49356,6 +50211,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49356
50211
  };
49357
50212
  Returns: string;
49358
50213
  };
50214
+ logistics_cart_checkin_at: {
50215
+ Args: {
50216
+ p_cart_id: string;
50217
+ };
50218
+ Returns: string;
50219
+ };
49359
50220
  logistics_cart_handled: {
49360
50221
  Args: {
49361
50222
  p_cart_index: number;
@@ -49389,10 +50250,22 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49389
50250
  task_status: string;
49390
50251
  }[];
49391
50252
  };
50253
+ logistics_cart_is_full: {
50254
+ Args: {
50255
+ p_cart_id: string;
50256
+ };
50257
+ Returns: boolean;
50258
+ };
49392
50259
  logistics_cart_layout_method: {
49393
50260
  Args: never;
49394
50261
  Returns: import("../integrations/supabase/types").Json;
49395
50262
  };
50263
+ logistics_cart_order_refs: {
50264
+ Args: {
50265
+ p_cart_id: string;
50266
+ };
50267
+ Returns: string[];
50268
+ };
49396
50269
  logistics_cart_plan_overview: {
49397
50270
  Args: {
49398
50271
  p_days?: number;
@@ -49412,6 +50285,18 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49412
50285
  };
49413
50286
  Returns: import("../integrations/supabase/types").Json;
49414
50287
  };
50288
+ logistics_cart_release_reason: {
50289
+ Args: {
50290
+ p_cart_id: string;
50291
+ };
50292
+ Returns: string;
50293
+ };
50294
+ logistics_cart_released: {
50295
+ Args: {
50296
+ p_cart_id: string;
50297
+ };
50298
+ Returns: boolean;
50299
+ };
49415
50300
  logistics_cart_seq: {
49416
50301
  Args: {
49417
50302
  p_order_uuid?: string;
@@ -49462,6 +50347,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49462
50347
  unit_ref: string;
49463
50348
  }[];
49464
50349
  };
50350
+ logistics_carts_per_print: {
50351
+ Args: never;
50352
+ Returns: number;
50353
+ };
49465
50354
  logistics_check_order_allowed: {
49466
50355
  Args: {
49467
50356
  p_lines: import("../integrations/supabase/types").Json;
@@ -49565,6 +50454,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49565
50454
  isSetofReturn: false;
49566
50455
  };
49567
50456
  };
50457
+ logistics_cleanup_orphan_print_jobs: {
50458
+ Args: never;
50459
+ Returns: import("../integrations/supabase/types").Json;
50460
+ };
49568
50461
  logistics_complete_task: {
49569
50462
  Args: {
49570
50463
  p_result?: import("../integrations/supabase/types").Json;
@@ -49627,6 +50520,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49627
50520
  station_carts: number;
49628
50521
  }[];
49629
50522
  };
50523
+ logistics_control_complete_cart: {
50524
+ Args: {
50525
+ p_cart_id: string;
50526
+ };
50527
+ Returns: number;
50528
+ };
49630
50529
  logistics_control_scan_approve: {
49631
50530
  Args: {
49632
50531
  p_allow_reprint?: boolean;
@@ -49706,6 +50605,15 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49706
50605
  Args: never;
49707
50606
  Returns: import("../integrations/supabase/types").Json;
49708
50607
  };
50608
+ logistics_day_windows: {
50609
+ Args: {
50610
+ p_day: string;
50611
+ };
50612
+ Returns: {
50613
+ win_end: string;
50614
+ win_start: string;
50615
+ }[];
50616
+ };
49709
50617
  logistics_delay_customer_email: {
49710
50618
  Args: {
49711
50619
  p_customer: string;
@@ -49773,6 +50681,17 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49773
50681
  };
49774
50682
  Returns: import("../integrations/supabase/types").Json;
49775
50683
  };
50684
+ logistics_enqueue_shipping_note_with_slip: {
50685
+ Args: {
50686
+ _cart_id: string;
50687
+ _is_herprint: boolean;
50688
+ _printer_id: string;
50689
+ _queue_item_id: string;
50690
+ _session_id: string;
50691
+ _slip_job_id: string;
50692
+ };
50693
+ Returns: string;
50694
+ };
49776
50695
  logistics_enqueue_sticker_with_slip: {
49777
50696
  Args: {
49778
50697
  _cart_id: string;
@@ -49790,6 +50709,14 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49790
50709
  };
49791
50710
  Returns: string;
49792
50711
  };
50712
+ logistics_ensure_pick_data: {
50713
+ Args: {
50714
+ p_event_id?: string;
50715
+ p_missing?: import("../integrations/supabase/types").Json;
50716
+ p_ref: string;
50717
+ };
50718
+ Returns: import("../integrations/supabase/types").Json;
50719
+ };
49793
50720
  logistics_fail_task: {
49794
50721
  Args: {
49795
50722
  p_error: string;
@@ -49911,6 +50838,32 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49911
50838
  };
49912
50839
  Returns: string;
49913
50840
  };
50841
+ logistics_floriday_gate_status: {
50842
+ Args: never;
50843
+ Returns: import("../integrations/supabase/types").Json;
50844
+ };
50845
+ logistics_floriday_log_refusal: {
50846
+ Args: {
50847
+ _action?: string;
50848
+ _module?: string;
50849
+ _order_ref: string;
50850
+ _reason: string;
50851
+ _shell?: string;
50852
+ };
50853
+ Returns: undefined;
50854
+ };
50855
+ logistics_floriday_log_send: {
50856
+ Args: {
50857
+ _action: string;
50858
+ _detail?: string;
50859
+ _http_status?: number;
50860
+ _module?: string;
50861
+ _ok: boolean;
50862
+ _order_ref: string;
50863
+ _shell?: string;
50864
+ };
50865
+ Returns: undefined;
50866
+ };
49914
50867
  logistics_floriday_order_approved: {
49915
50868
  Args: {
49916
50869
  _order_ref: string;
@@ -49935,6 +50888,16 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49935
50888
  Args: never;
49936
50889
  Returns: boolean;
49937
50890
  };
50891
+ logistics_floriday_stock_updates_enabled: {
50892
+ Args: never;
50893
+ Returns: boolean;
50894
+ };
50895
+ logistics_floriday_write_allowed: {
50896
+ Args: {
50897
+ _action: string;
50898
+ };
50899
+ Returns: boolean;
50900
+ };
49938
50901
  logistics_fulfill_barcode_requests: {
49939
50902
  Args: {
49940
50903
  p_limit?: number;
@@ -49977,6 +50940,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49977
50940
  };
49978
50941
  Returns: number;
49979
50942
  };
50943
+ logistics_merge_partial_carts: {
50944
+ Args: {
50945
+ p_limit?: number;
50946
+ };
50947
+ Returns: import("../integrations/supabase/types").Json;
50948
+ };
49980
50949
  logistics_next_workday_date: {
49981
50950
  Args: {
49982
50951
  p_date: string;
@@ -50003,6 +50972,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50003
50972
  };
50004
50973
  Returns: string;
50005
50974
  };
50975
+ logistics_opening_timezone: {
50976
+ Args: never;
50977
+ Returns: string;
50978
+ };
50006
50979
  logistics_order_cart_count: {
50007
50980
  Args: {
50008
50981
  p_order_ref: string;
@@ -50087,6 +51060,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50087
51060
  Args: never;
50088
51061
  Returns: import("../integrations/supabase/types").Json;
50089
51062
  };
51063
+ logistics_pick_partial_mode: {
51064
+ Args: never;
51065
+ Returns: string;
51066
+ };
50090
51067
  logistics_pick_start_estimate: {
50091
51068
  Args: {
50092
51069
  p_order: import("../integrations/supabase/types").Json;
@@ -50198,6 +51175,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50198
51175
  };
50199
51176
  Returns: number;
50200
51177
  };
51178
+ logistics_prepare_pick_documents: {
51179
+ Args: {
51180
+ p_limit?: number;
51181
+ };
51182
+ Returns: import("../integrations/supabase/types").Json;
51183
+ };
50201
51184
  logistics_prune_buffer_member_queue: {
50202
51185
  Args: never;
50203
51186
  Returns: number;
@@ -50238,6 +51221,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50238
51221
  Args: never;
50239
51222
  Returns: import("../integrations/supabase/types").Json;
50240
51223
  };
51224
+ logistics_refresh_pick_queue_status: {
51225
+ Args: {
51226
+ p_ref: string;
51227
+ };
51228
+ Returns: number;
51229
+ };
50241
51230
  logistics_refresh_pickup_moments: {
50242
51231
  Args: {
50243
51232
  p_weeks?: number;
@@ -50250,6 +51239,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50250
51239
  };
50251
51240
  Returns: import("../integrations/supabase/types").Json;
50252
51241
  };
51242
+ logistics_replan_all_force: {
51243
+ Args: {
51244
+ p_reason?: string;
51245
+ };
51246
+ Returns: import("../integrations/supabase/types").Json;
51247
+ };
50253
51248
  logistics_report_delay: {
50254
51249
  Args: {
50255
51250
  p_expected_date?: string;
@@ -50394,6 +51389,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50394
51389
  };
50395
51390
  Returns: string;
50396
51391
  };
51392
+ logistics_shipping_note_follows_slip: {
51393
+ Args: never;
51394
+ Returns: boolean;
51395
+ };
50397
51396
  logistics_shipping_note_from_barcode: {
50398
51397
  Args: {
50399
51398
  p_allow_reprint?: boolean;
@@ -50402,10 +51401,76 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50402
51401
  };
50403
51402
  Returns: import("../integrations/supabase/types").Json;
50404
51403
  };
51404
+ logistics_shipping_note_job_for_slip: {
51405
+ Args: {
51406
+ _slip_job_id: string;
51407
+ };
51408
+ Returns: string;
51409
+ };
51410
+ logistics_slip_note_claim: {
51411
+ Args: {
51412
+ _lease_seconds?: number;
51413
+ _limit?: number;
51414
+ };
51415
+ Returns: {
51416
+ attempts: number;
51417
+ batch_key: string | null;
51418
+ cart_id: string | null;
51419
+ created_at: string;
51420
+ error: string | null;
51421
+ error_code: string | null;
51422
+ fulfillment_order_id: string | null;
51423
+ id: string;
51424
+ locked_until: string | null;
51425
+ next_attempt_at: string | null;
51426
+ order_id: string | null;
51427
+ order_number: string | null;
51428
+ print_job_id: string | null;
51429
+ printer_id: string | null;
51430
+ retry_class: string | null;
51431
+ slip_job_id: string;
51432
+ status: string;
51433
+ updated_at: string;
51434
+ }[];
51435
+ SetofOptions: {
51436
+ from: "*";
51437
+ to: "logistics_slip_shipping_note";
51438
+ isOneToOne: false;
51439
+ isSetofReturn: true;
51440
+ };
51441
+ };
51442
+ logistics_slip_note_finish: {
51443
+ Args: {
51444
+ _error?: string;
51445
+ _error_code?: string;
51446
+ _fulfillment_order_id?: string;
51447
+ _id: string;
51448
+ _ok: boolean;
51449
+ _print_job_id?: string;
51450
+ _status?: string;
51451
+ };
51452
+ Returns: undefined;
51453
+ };
51454
+ logistics_slip_note_keep_waiting: {
51455
+ Args: {
51456
+ _class?: string;
51457
+ _id: string;
51458
+ _reason: string;
51459
+ };
51460
+ Returns: undefined;
51461
+ };
50405
51462
  logistics_sticker_follows_slip: {
50406
51463
  Args: never;
50407
51464
  Returns: boolean;
50408
51465
  };
51466
+ logistics_subtract_working_minutes: {
51467
+ Args: {
51468
+ p_deadline: string;
51469
+ p_max_workdays?: number;
51470
+ p_minutes: number;
51471
+ };
51472
+ Returns: import("../integrations/supabase/types").Json;
51473
+ };
50409
51474
  logistics_supersede_stale_tasks: {
50410
51475
  Args: {
50411
51476
  p_keep: string[];
@@ -50442,6 +51507,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50442
51507
  Args: never;
50443
51508
  Returns: string;
50444
51509
  };
51510
+ logistics_timezone_options: {
51511
+ Args: never;
51512
+ Returns: {
51513
+ name: string;
51514
+ }[];
51515
+ };
50445
51516
  logistics_upsert_task: {
50446
51517
  Args: {
50447
51518
  p_buffer_ref: string;
@@ -50461,6 +51532,16 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50461
51532
  };
50462
51533
  Returns: string;
50463
51534
  };
51535
+ logistics_valid_timezone: {
51536
+ Args: {
51537
+ _tz: string;
51538
+ };
51539
+ Returns: boolean;
51540
+ };
51541
+ logistics_working_hours_status: {
51542
+ Args: never;
51543
+ Returns: import("../integrations/supabase/types").Json;
51544
+ };
50464
51545
  logistics_write_buffer_layer_positions: {
50465
51546
  Args: {
50466
51547
  p_buffer_id: string;
@@ -51906,6 +52987,13 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
51906
52987
  };
51907
52988
  Returns: number;
51908
52989
  };
52990
+ schedule_floriday_catalog_prices_sync: {
52991
+ Args: {
52992
+ p_apikey: string;
52993
+ p_url: string;
52994
+ };
52995
+ Returns: number;
52996
+ };
51909
52997
  schedule_floriday_clock_presales_sync: {
51910
52998
  Args: {
51911
52999
  p_apikey: string;
@@ -52206,6 +53294,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
52206
53294
  };
52207
53295
  Returns: undefined;
52208
53296
  };
53297
+ sync_floriday_prices_into_price_groups: {
53298
+ Args: never;
53299
+ Returns: number;
53300
+ };
52209
53301
  sync_layer_stock: {
52210
53302
  Args: {
52211
53303
  p_product_id: string;
@@ -58218,6 +59310,84 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
58218
59310
  referencedColumns: ["id"];
58219
59311
  }];
58220
59312
  };
59313
+ floriday_catalog_prices_cache: {
59314
+ Row: {
59315
+ connection_id: string;
59316
+ created_at: string;
59317
+ currency: string;
59318
+ id: string;
59319
+ is_deleted: boolean;
59320
+ price: number | null;
59321
+ price_group_id: string | null;
59322
+ price_group_name: string | null;
59323
+ price_type: string;
59324
+ raw: import("../integrations/supabase/types").Json | null;
59325
+ sales_unit: string | null;
59326
+ sequence_number: number;
59327
+ supplier_article_code: string | null;
59328
+ supply_line_id: string;
59329
+ synced_at: string;
59330
+ trade_item_id: string | null;
59331
+ updated_at: string;
59332
+ valid_from: string | null;
59333
+ valid_to: string | null;
59334
+ week: number | null;
59335
+ year: number | null;
59336
+ };
59337
+ Insert: {
59338
+ connection_id: string;
59339
+ created_at?: string;
59340
+ currency?: string;
59341
+ id?: string;
59342
+ is_deleted?: boolean;
59343
+ price?: number | null;
59344
+ price_group_id?: string | null;
59345
+ price_group_name?: string | null;
59346
+ price_type?: string;
59347
+ raw?: import("../integrations/supabase/types").Json | null;
59348
+ sales_unit?: string | null;
59349
+ sequence_number?: number;
59350
+ supplier_article_code?: string | null;
59351
+ supply_line_id: string;
59352
+ synced_at?: string;
59353
+ trade_item_id?: string | null;
59354
+ updated_at?: string;
59355
+ valid_from?: string | null;
59356
+ valid_to?: string | null;
59357
+ week?: number | null;
59358
+ year?: number | null;
59359
+ };
59360
+ Update: {
59361
+ connection_id?: string;
59362
+ created_at?: string;
59363
+ currency?: string;
59364
+ id?: string;
59365
+ is_deleted?: boolean;
59366
+ price?: number | null;
59367
+ price_group_id?: string | null;
59368
+ price_group_name?: string | null;
59369
+ price_type?: string;
59370
+ raw?: import("../integrations/supabase/types").Json | null;
59371
+ sales_unit?: string | null;
59372
+ sequence_number?: number;
59373
+ supplier_article_code?: string | null;
59374
+ supply_line_id?: string;
59375
+ synced_at?: string;
59376
+ trade_item_id?: string | null;
59377
+ updated_at?: string;
59378
+ valid_from?: string | null;
59379
+ valid_to?: string | null;
59380
+ week?: number | null;
59381
+ year?: number | null;
59382
+ };
59383
+ Relationships: [{
59384
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
59385
+ columns: ["connection_id"];
59386
+ isOneToOne: false;
59387
+ referencedRelation: "floriday_connections";
59388
+ referencedColumns: ["id"];
59389
+ }];
59390
+ };
58221
59391
  floriday_clock_presales_cache: {
58222
59392
  Row: {
58223
59393
  buyer_organization_id: string | null;
@@ -62486,22 +63656,31 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
62486
63656
  };
62487
63657
  logistics_floriday_push_refusals: {
62488
63658
  Row: {
63659
+ action: string | null;
62489
63660
  created_at: string;
62490
63661
  id: string;
62491
63662
  order_ref: string;
62492
63663
  reason: string;
63664
+ source_module: string | null;
63665
+ source_shell: string | null;
62493
63666
  };
62494
63667
  Insert: {
63668
+ action?: string | null;
62495
63669
  created_at?: string;
62496
63670
  id?: string;
62497
63671
  order_ref: string;
62498
63672
  reason: string;
63673
+ source_module?: string | null;
63674
+ source_shell?: string | null;
62499
63675
  };
62500
63676
  Update: {
63677
+ action?: string | null;
62501
63678
  created_at?: string;
62502
63679
  id?: string;
62503
63680
  order_ref?: string;
62504
63681
  reason?: string;
63682
+ source_module?: string | null;
63683
+ source_shell?: string | null;
62505
63684
  };
62506
63685
  Relationships: [];
62507
63686
  };
@@ -62580,6 +63759,42 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
62580
63759
  };
62581
63760
  Relationships: [];
62582
63761
  };
63762
+ logistics_floriday_status_sends: {
63763
+ Row: {
63764
+ action: string;
63765
+ created_at: string;
63766
+ detail: string | null;
63767
+ http_status: number | null;
63768
+ id: string;
63769
+ ok: boolean;
63770
+ order_ref: string;
63771
+ source_module: string | null;
63772
+ source_shell: string | null;
63773
+ };
63774
+ Insert: {
63775
+ action: string;
63776
+ created_at?: string;
63777
+ detail?: string | null;
63778
+ http_status?: number | null;
63779
+ id?: string;
63780
+ ok?: boolean;
63781
+ order_ref: string;
63782
+ source_module?: string | null;
63783
+ source_shell?: string | null;
63784
+ };
63785
+ Update: {
63786
+ action?: string;
63787
+ created_at?: string;
63788
+ detail?: string | null;
63789
+ http_status?: number | null;
63790
+ id?: string;
63791
+ ok?: boolean;
63792
+ order_ref?: string;
63793
+ source_module?: string | null;
63794
+ source_shell?: string | null;
63795
+ };
63796
+ Relationships: [];
63797
+ };
62583
63798
  logistics_formulas: {
62584
63799
  Row: {
62585
63800
  created_at: string;
@@ -62652,6 +63867,108 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
62652
63867
  };
62653
63868
  Relationships: [];
62654
63869
  };
63870
+ logistics_opening_exceptions: {
63871
+ Row: {
63872
+ closes: string | null;
63873
+ created_at: string;
63874
+ day: string;
63875
+ id: string;
63876
+ is_closed: boolean;
63877
+ note: string | null;
63878
+ opens: string | null;
63879
+ };
63880
+ Insert: {
63881
+ closes?: string | null;
63882
+ created_at?: string;
63883
+ day: string;
63884
+ id?: string;
63885
+ is_closed?: boolean;
63886
+ note?: string | null;
63887
+ opens?: string | null;
63888
+ };
63889
+ Update: {
63890
+ closes?: string | null;
63891
+ created_at?: string;
63892
+ day?: string;
63893
+ id?: string;
63894
+ is_closed?: boolean;
63895
+ note?: string | null;
63896
+ opens?: string | null;
63897
+ };
63898
+ Relationships: [];
63899
+ };
63900
+ logistics_opening_hours: {
63901
+ Row: {
63902
+ closes: string;
63903
+ created_at: string;
63904
+ id: string;
63905
+ is_active: boolean;
63906
+ note: string | null;
63907
+ opens: string;
63908
+ weekday: number;
63909
+ };
63910
+ Insert: {
63911
+ closes: string;
63912
+ created_at?: string;
63913
+ id?: string;
63914
+ is_active?: boolean;
63915
+ note?: string | null;
63916
+ opens: string;
63917
+ weekday: number;
63918
+ };
63919
+ Update: {
63920
+ closes?: string;
63921
+ created_at?: string;
63922
+ id?: string;
63923
+ is_active?: boolean;
63924
+ note?: string | null;
63925
+ opens?: string;
63926
+ weekday?: number;
63927
+ };
63928
+ Relationships: [];
63929
+ };
63930
+ logistics_pick_data_requests: {
63931
+ Row: {
63932
+ actions: import("../integrations/supabase/types").Json;
63933
+ created_at: string;
63934
+ event_id: string | null;
63935
+ finished_at: string | null;
63936
+ id: string;
63937
+ missing: import("../integrations/supabase/types").Json;
63938
+ order_ref: string;
63939
+ reason: string | null;
63940
+ result: import("../integrations/supabase/types").Json | null;
63941
+ status: string;
63942
+ unit_ref: string | null;
63943
+ };
63944
+ Insert: {
63945
+ actions?: import("../integrations/supabase/types").Json;
63946
+ created_at?: string;
63947
+ event_id?: string | null;
63948
+ finished_at?: string | null;
63949
+ id?: string;
63950
+ missing?: import("../integrations/supabase/types").Json;
63951
+ order_ref: string;
63952
+ reason?: string | null;
63953
+ result?: import("../integrations/supabase/types").Json | null;
63954
+ status?: string;
63955
+ unit_ref?: string | null;
63956
+ };
63957
+ Update: {
63958
+ actions?: import("../integrations/supabase/types").Json;
63959
+ created_at?: string;
63960
+ event_id?: string | null;
63961
+ finished_at?: string | null;
63962
+ id?: string;
63963
+ missing?: import("../integrations/supabase/types").Json;
63964
+ order_ref?: string;
63965
+ reason?: string | null;
63966
+ result?: import("../integrations/supabase/types").Json | null;
63967
+ status?: string;
63968
+ unit_ref?: string | null;
63969
+ };
63970
+ Relationships: [];
63971
+ };
62655
63972
  logistics_pickup_moments: {
62656
63973
  Row: {
62657
63974
  carrier_ref: string | null;
@@ -63111,6 +64428,69 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
63111
64428
  };
63112
64429
  Relationships: [];
63113
64430
  };
64431
+ logistics_slip_shipping_note: {
64432
+ Row: {
64433
+ attempts: number;
64434
+ batch_key: string | null;
64435
+ cart_id: string | null;
64436
+ created_at: string;
64437
+ error: string | null;
64438
+ error_code: string | null;
64439
+ fulfillment_order_id: string | null;
64440
+ id: string;
64441
+ locked_until: string | null;
64442
+ next_attempt_at: string | null;
64443
+ order_id: string | null;
64444
+ order_number: string | null;
64445
+ print_job_id: string | null;
64446
+ printer_id: string | null;
64447
+ retry_class: string | null;
64448
+ slip_job_id: string;
64449
+ status: string;
64450
+ updated_at: string;
64451
+ };
64452
+ Insert: {
64453
+ attempts?: number;
64454
+ batch_key?: string | null;
64455
+ cart_id?: string | null;
64456
+ created_at?: string;
64457
+ error?: string | null;
64458
+ error_code?: string | null;
64459
+ fulfillment_order_id?: string | null;
64460
+ id?: string;
64461
+ locked_until?: string | null;
64462
+ next_attempt_at?: string | null;
64463
+ order_id?: string | null;
64464
+ order_number?: string | null;
64465
+ print_job_id?: string | null;
64466
+ printer_id?: string | null;
64467
+ retry_class?: string | null;
64468
+ slip_job_id: string;
64469
+ status?: string;
64470
+ updated_at?: string;
64471
+ };
64472
+ Update: {
64473
+ attempts?: number;
64474
+ batch_key?: string | null;
64475
+ cart_id?: string | null;
64476
+ created_at?: string;
64477
+ error?: string | null;
64478
+ error_code?: string | null;
64479
+ fulfillment_order_id?: string | null;
64480
+ id?: string;
64481
+ locked_until?: string | null;
64482
+ next_attempt_at?: string | null;
64483
+ order_id?: string | null;
64484
+ order_number?: string | null;
64485
+ print_job_id?: string | null;
64486
+ printer_id?: string | null;
64487
+ retry_class?: string | null;
64488
+ slip_job_id?: string;
64489
+ status?: string;
64490
+ updated_at?: string;
64491
+ };
64492
+ Relationships: [];
64493
+ };
63114
64494
  logistics_staff_planning: {
63115
64495
  Row: {
63116
64496
  created_at: string;
@@ -63444,6 +64824,24 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
63444
64824
  };
63445
64825
  Relationships: [];
63446
64826
  };
64827
+ logistics_time_settings: {
64828
+ Row: {
64829
+ id: boolean;
64830
+ timezone: string;
64831
+ updated_at: string;
64832
+ };
64833
+ Insert: {
64834
+ id?: boolean;
64835
+ timezone: string;
64836
+ updated_at?: string;
64837
+ };
64838
+ Update: {
64839
+ id?: boolean;
64840
+ timezone?: string;
64841
+ updated_at?: string;
64842
+ };
64843
+ Relationships: [];
64844
+ };
63447
64845
  logistics_variables: {
63448
64846
  Row: {
63449
64847
  created_at: string;
@@ -65834,6 +67232,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
65834
67232
  customer_name: string;
65835
67233
  deleted_at: string | null;
65836
67234
  delivery_date: string | null;
67235
+ floriday_order_group_key: string | null;
65837
67236
  floriday_sales_order_id: string | null;
65838
67237
  id: string;
65839
67238
  invoice_due_at: string | null;
@@ -65861,6 +67260,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
65861
67260
  customer_name?: string;
65862
67261
  deleted_at?: string | null;
65863
67262
  delivery_date?: string | null;
67263
+ floriday_order_group_key?: string | null;
65864
67264
  floriday_sales_order_id?: string | null;
65865
67265
  id?: string;
65866
67266
  invoice_due_at?: string | null;
@@ -65888,6 +67288,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
65888
67288
  customer_name?: string;
65889
67289
  deleted_at?: string | null;
65890
67290
  delivery_date?: string | null;
67291
+ floriday_order_group_key?: string | null;
65891
67292
  floriday_sales_order_id?: string | null;
65892
67293
  id?: string;
65893
67294
  invoice_due_at?: string | null;
@@ -75551,6 +76952,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75551
76952
  };
75552
76953
  Returns: string;
75553
76954
  };
76955
+ logistics_cart_checkin_at: {
76956
+ Args: {
76957
+ p_cart_id: string;
76958
+ };
76959
+ Returns: string;
76960
+ };
75554
76961
  logistics_cart_handled: {
75555
76962
  Args: {
75556
76963
  p_cart_index: number;
@@ -75584,10 +76991,22 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75584
76991
  task_status: string;
75585
76992
  }[];
75586
76993
  };
76994
+ logistics_cart_is_full: {
76995
+ Args: {
76996
+ p_cart_id: string;
76997
+ };
76998
+ Returns: boolean;
76999
+ };
75587
77000
  logistics_cart_layout_method: {
75588
77001
  Args: never;
75589
77002
  Returns: import("../integrations/supabase/types").Json;
75590
77003
  };
77004
+ logistics_cart_order_refs: {
77005
+ Args: {
77006
+ p_cart_id: string;
77007
+ };
77008
+ Returns: string[];
77009
+ };
75591
77010
  logistics_cart_plan_overview: {
75592
77011
  Args: {
75593
77012
  p_days?: number;
@@ -75607,6 +77026,18 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75607
77026
  };
75608
77027
  Returns: import("../integrations/supabase/types").Json;
75609
77028
  };
77029
+ logistics_cart_release_reason: {
77030
+ Args: {
77031
+ p_cart_id: string;
77032
+ };
77033
+ Returns: string;
77034
+ };
77035
+ logistics_cart_released: {
77036
+ Args: {
77037
+ p_cart_id: string;
77038
+ };
77039
+ Returns: boolean;
77040
+ };
75610
77041
  logistics_cart_seq: {
75611
77042
  Args: {
75612
77043
  p_order_uuid?: string;
@@ -75657,6 +77088,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75657
77088
  unit_ref: string;
75658
77089
  }[];
75659
77090
  };
77091
+ logistics_carts_per_print: {
77092
+ Args: never;
77093
+ Returns: number;
77094
+ };
75660
77095
  logistics_check_order_allowed: {
75661
77096
  Args: {
75662
77097
  p_lines: import("../integrations/supabase/types").Json;
@@ -75760,6 +77195,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75760
77195
  isSetofReturn: false;
75761
77196
  };
75762
77197
  };
77198
+ logistics_cleanup_orphan_print_jobs: {
77199
+ Args: never;
77200
+ Returns: import("../integrations/supabase/types").Json;
77201
+ };
75763
77202
  logistics_complete_task: {
75764
77203
  Args: {
75765
77204
  p_result?: import("../integrations/supabase/types").Json;
@@ -75822,6 +77261,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75822
77261
  station_carts: number;
75823
77262
  }[];
75824
77263
  };
77264
+ logistics_control_complete_cart: {
77265
+ Args: {
77266
+ p_cart_id: string;
77267
+ };
77268
+ Returns: number;
77269
+ };
75825
77270
  logistics_control_scan_approve: {
75826
77271
  Args: {
75827
77272
  p_allow_reprint?: boolean;
@@ -75901,6 +77346,15 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75901
77346
  Args: never;
75902
77347
  Returns: import("../integrations/supabase/types").Json;
75903
77348
  };
77349
+ logistics_day_windows: {
77350
+ Args: {
77351
+ p_day: string;
77352
+ };
77353
+ Returns: {
77354
+ win_end: string;
77355
+ win_start: string;
77356
+ }[];
77357
+ };
75904
77358
  logistics_delay_customer_email: {
75905
77359
  Args: {
75906
77360
  p_customer: string;
@@ -75968,6 +77422,17 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75968
77422
  };
75969
77423
  Returns: import("../integrations/supabase/types").Json;
75970
77424
  };
77425
+ logistics_enqueue_shipping_note_with_slip: {
77426
+ Args: {
77427
+ _cart_id: string;
77428
+ _is_herprint: boolean;
77429
+ _printer_id: string;
77430
+ _queue_item_id: string;
77431
+ _session_id: string;
77432
+ _slip_job_id: string;
77433
+ };
77434
+ Returns: string;
77435
+ };
75971
77436
  logistics_enqueue_sticker_with_slip: {
75972
77437
  Args: {
75973
77438
  _cart_id: string;
@@ -75985,6 +77450,14 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75985
77450
  };
75986
77451
  Returns: string;
75987
77452
  };
77453
+ logistics_ensure_pick_data: {
77454
+ Args: {
77455
+ p_event_id?: string;
77456
+ p_missing?: import("../integrations/supabase/types").Json;
77457
+ p_ref: string;
77458
+ };
77459
+ Returns: import("../integrations/supabase/types").Json;
77460
+ };
75988
77461
  logistics_fail_task: {
75989
77462
  Args: {
75990
77463
  p_error: string;
@@ -76106,6 +77579,32 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76106
77579
  };
76107
77580
  Returns: string;
76108
77581
  };
77582
+ logistics_floriday_gate_status: {
77583
+ Args: never;
77584
+ Returns: import("../integrations/supabase/types").Json;
77585
+ };
77586
+ logistics_floriday_log_refusal: {
77587
+ Args: {
77588
+ _action?: string;
77589
+ _module?: string;
77590
+ _order_ref: string;
77591
+ _reason: string;
77592
+ _shell?: string;
77593
+ };
77594
+ Returns: undefined;
77595
+ };
77596
+ logistics_floriday_log_send: {
77597
+ Args: {
77598
+ _action: string;
77599
+ _detail?: string;
77600
+ _http_status?: number;
77601
+ _module?: string;
77602
+ _ok: boolean;
77603
+ _order_ref: string;
77604
+ _shell?: string;
77605
+ };
77606
+ Returns: undefined;
77607
+ };
76109
77608
  logistics_floriday_order_approved: {
76110
77609
  Args: {
76111
77610
  _order_ref: string;
@@ -76130,6 +77629,16 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76130
77629
  Args: never;
76131
77630
  Returns: boolean;
76132
77631
  };
77632
+ logistics_floriday_stock_updates_enabled: {
77633
+ Args: never;
77634
+ Returns: boolean;
77635
+ };
77636
+ logistics_floriday_write_allowed: {
77637
+ Args: {
77638
+ _action: string;
77639
+ };
77640
+ Returns: boolean;
77641
+ };
76133
77642
  logistics_fulfill_barcode_requests: {
76134
77643
  Args: {
76135
77644
  p_limit?: number;
@@ -76172,6 +77681,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76172
77681
  };
76173
77682
  Returns: number;
76174
77683
  };
77684
+ logistics_merge_partial_carts: {
77685
+ Args: {
77686
+ p_limit?: number;
77687
+ };
77688
+ Returns: import("../integrations/supabase/types").Json;
77689
+ };
76175
77690
  logistics_next_workday_date: {
76176
77691
  Args: {
76177
77692
  p_date: string;
@@ -76198,6 +77713,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76198
77713
  };
76199
77714
  Returns: string;
76200
77715
  };
77716
+ logistics_opening_timezone: {
77717
+ Args: never;
77718
+ Returns: string;
77719
+ };
76201
77720
  logistics_order_cart_count: {
76202
77721
  Args: {
76203
77722
  p_order_ref: string;
@@ -76282,6 +77801,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76282
77801
  Args: never;
76283
77802
  Returns: import("../integrations/supabase/types").Json;
76284
77803
  };
77804
+ logistics_pick_partial_mode: {
77805
+ Args: never;
77806
+ Returns: string;
77807
+ };
76285
77808
  logistics_pick_start_estimate: {
76286
77809
  Args: {
76287
77810
  p_order: import("../integrations/supabase/types").Json;
@@ -76393,6 +77916,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76393
77916
  };
76394
77917
  Returns: number;
76395
77918
  };
77919
+ logistics_prepare_pick_documents: {
77920
+ Args: {
77921
+ p_limit?: number;
77922
+ };
77923
+ Returns: import("../integrations/supabase/types").Json;
77924
+ };
76396
77925
  logistics_prune_buffer_member_queue: {
76397
77926
  Args: never;
76398
77927
  Returns: number;
@@ -76433,6 +77962,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76433
77962
  Args: never;
76434
77963
  Returns: import("../integrations/supabase/types").Json;
76435
77964
  };
77965
+ logistics_refresh_pick_queue_status: {
77966
+ Args: {
77967
+ p_ref: string;
77968
+ };
77969
+ Returns: number;
77970
+ };
76436
77971
  logistics_refresh_pickup_moments: {
76437
77972
  Args: {
76438
77973
  p_weeks?: number;
@@ -76445,6 +77980,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76445
77980
  };
76446
77981
  Returns: import("../integrations/supabase/types").Json;
76447
77982
  };
77983
+ logistics_replan_all_force: {
77984
+ Args: {
77985
+ p_reason?: string;
77986
+ };
77987
+ Returns: import("../integrations/supabase/types").Json;
77988
+ };
76448
77989
  logistics_report_delay: {
76449
77990
  Args: {
76450
77991
  p_expected_date?: string;
@@ -76589,6 +78130,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76589
78130
  };
76590
78131
  Returns: string;
76591
78132
  };
78133
+ logistics_shipping_note_follows_slip: {
78134
+ Args: never;
78135
+ Returns: boolean;
78136
+ };
76592
78137
  logistics_shipping_note_from_barcode: {
76593
78138
  Args: {
76594
78139
  p_allow_reprint?: boolean;
@@ -76597,10 +78142,76 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76597
78142
  };
76598
78143
  Returns: import("../integrations/supabase/types").Json;
76599
78144
  };
78145
+ logistics_shipping_note_job_for_slip: {
78146
+ Args: {
78147
+ _slip_job_id: string;
78148
+ };
78149
+ Returns: string;
78150
+ };
78151
+ logistics_slip_note_claim: {
78152
+ Args: {
78153
+ _lease_seconds?: number;
78154
+ _limit?: number;
78155
+ };
78156
+ Returns: {
78157
+ attempts: number;
78158
+ batch_key: string | null;
78159
+ cart_id: string | null;
78160
+ created_at: string;
78161
+ error: string | null;
78162
+ error_code: string | null;
78163
+ fulfillment_order_id: string | null;
78164
+ id: string;
78165
+ locked_until: string | null;
78166
+ next_attempt_at: string | null;
78167
+ order_id: string | null;
78168
+ order_number: string | null;
78169
+ print_job_id: string | null;
78170
+ printer_id: string | null;
78171
+ retry_class: string | null;
78172
+ slip_job_id: string;
78173
+ status: string;
78174
+ updated_at: string;
78175
+ }[];
78176
+ SetofOptions: {
78177
+ from: "*";
78178
+ to: "logistics_slip_shipping_note";
78179
+ isOneToOne: false;
78180
+ isSetofReturn: true;
78181
+ };
78182
+ };
78183
+ logistics_slip_note_finish: {
78184
+ Args: {
78185
+ _error?: string;
78186
+ _error_code?: string;
78187
+ _fulfillment_order_id?: string;
78188
+ _id: string;
78189
+ _ok: boolean;
78190
+ _print_job_id?: string;
78191
+ _status?: string;
78192
+ };
78193
+ Returns: undefined;
78194
+ };
78195
+ logistics_slip_note_keep_waiting: {
78196
+ Args: {
78197
+ _class?: string;
78198
+ _id: string;
78199
+ _reason: string;
78200
+ };
78201
+ Returns: undefined;
78202
+ };
76600
78203
  logistics_sticker_follows_slip: {
76601
78204
  Args: never;
76602
78205
  Returns: boolean;
76603
78206
  };
78207
+ logistics_subtract_working_minutes: {
78208
+ Args: {
78209
+ p_deadline: string;
78210
+ p_max_workdays?: number;
78211
+ p_minutes: number;
78212
+ };
78213
+ Returns: import("../integrations/supabase/types").Json;
78214
+ };
76604
78215
  logistics_supersede_stale_tasks: {
76605
78216
  Args: {
76606
78217
  p_keep: string[];
@@ -76637,6 +78248,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76637
78248
  Args: never;
76638
78249
  Returns: string;
76639
78250
  };
78251
+ logistics_timezone_options: {
78252
+ Args: never;
78253
+ Returns: {
78254
+ name: string;
78255
+ }[];
78256
+ };
76640
78257
  logistics_upsert_task: {
76641
78258
  Args: {
76642
78259
  p_buffer_ref: string;
@@ -76656,6 +78273,16 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76656
78273
  };
76657
78274
  Returns: string;
76658
78275
  };
78276
+ logistics_valid_timezone: {
78277
+ Args: {
78278
+ _tz: string;
78279
+ };
78280
+ Returns: boolean;
78281
+ };
78282
+ logistics_working_hours_status: {
78283
+ Args: never;
78284
+ Returns: import("../integrations/supabase/types").Json;
78285
+ };
76659
78286
  logistics_write_buffer_layer_positions: {
76660
78287
  Args: {
76661
78288
  p_buffer_id: string;
@@ -78101,6 +79728,13 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
78101
79728
  };
78102
79729
  Returns: number;
78103
79730
  };
79731
+ schedule_floriday_catalog_prices_sync: {
79732
+ Args: {
79733
+ p_apikey: string;
79734
+ p_url: string;
79735
+ };
79736
+ Returns: number;
79737
+ };
78104
79738
  schedule_floriday_clock_presales_sync: {
78105
79739
  Args: {
78106
79740
  p_apikey: string;
@@ -78401,6 +80035,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
78401
80035
  };
78402
80036
  Returns: undefined;
78403
80037
  };
80038
+ sync_floriday_prices_into_price_groups: {
80039
+ Args: never;
80040
+ Returns: number;
80041
+ };
78404
80042
  sync_layer_stock: {
78405
80043
  Args: {
78406
80044
  p_product_id: string;