@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
@@ -5820,6 +5820,84 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
5820
5820
  referencedColumns: ["id"];
5821
5821
  }];
5822
5822
  };
5823
+ floriday_catalog_prices_cache: {
5824
+ Row: {
5825
+ connection_id: string;
5826
+ created_at: string;
5827
+ currency: string;
5828
+ id: string;
5829
+ is_deleted: boolean;
5830
+ price: number | null;
5831
+ price_group_id: string | null;
5832
+ price_group_name: string | null;
5833
+ price_type: string;
5834
+ raw: import("../integrations/supabase/types").Json | null;
5835
+ sales_unit: string | null;
5836
+ sequence_number: number;
5837
+ supplier_article_code: string | null;
5838
+ supply_line_id: string;
5839
+ synced_at: string;
5840
+ trade_item_id: string | null;
5841
+ updated_at: string;
5842
+ valid_from: string | null;
5843
+ valid_to: string | null;
5844
+ week: number | null;
5845
+ year: number | null;
5846
+ };
5847
+ Insert: {
5848
+ connection_id: string;
5849
+ created_at?: string;
5850
+ currency?: string;
5851
+ id?: string;
5852
+ is_deleted?: boolean;
5853
+ price?: number | null;
5854
+ price_group_id?: string | null;
5855
+ price_group_name?: string | null;
5856
+ price_type?: string;
5857
+ raw?: import("../integrations/supabase/types").Json | null;
5858
+ sales_unit?: string | null;
5859
+ sequence_number?: number;
5860
+ supplier_article_code?: string | null;
5861
+ supply_line_id: string;
5862
+ synced_at?: string;
5863
+ trade_item_id?: string | null;
5864
+ updated_at?: string;
5865
+ valid_from?: string | null;
5866
+ valid_to?: string | null;
5867
+ week?: number | null;
5868
+ year?: number | null;
5869
+ };
5870
+ Update: {
5871
+ connection_id?: string;
5872
+ created_at?: string;
5873
+ currency?: string;
5874
+ id?: string;
5875
+ is_deleted?: boolean;
5876
+ price?: number | null;
5877
+ price_group_id?: string | null;
5878
+ price_group_name?: string | null;
5879
+ price_type?: string;
5880
+ raw?: import("../integrations/supabase/types").Json | null;
5881
+ sales_unit?: string | null;
5882
+ sequence_number?: number;
5883
+ supplier_article_code?: string | null;
5884
+ supply_line_id?: string;
5885
+ synced_at?: string;
5886
+ trade_item_id?: string | null;
5887
+ updated_at?: string;
5888
+ valid_from?: string | null;
5889
+ valid_to?: string | null;
5890
+ week?: number | null;
5891
+ year?: number | null;
5892
+ };
5893
+ Relationships: [{
5894
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5895
+ columns: ["connection_id"];
5896
+ isOneToOne: false;
5897
+ referencedRelation: "floriday_connections";
5898
+ referencedColumns: ["id"];
5899
+ }];
5900
+ };
5823
5901
  floriday_clock_presales_cache: {
5824
5902
  Row: {
5825
5903
  buyer_organization_id: string | null;
@@ -10088,22 +10166,31 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
10088
10166
  };
10089
10167
  logistics_floriday_push_refusals: {
10090
10168
  Row: {
10169
+ action: string | null;
10091
10170
  created_at: string;
10092
10171
  id: string;
10093
10172
  order_ref: string;
10094
10173
  reason: string;
10174
+ source_module: string | null;
10175
+ source_shell: string | null;
10095
10176
  };
10096
10177
  Insert: {
10178
+ action?: string | null;
10097
10179
  created_at?: string;
10098
10180
  id?: string;
10099
10181
  order_ref: string;
10100
10182
  reason: string;
10183
+ source_module?: string | null;
10184
+ source_shell?: string | null;
10101
10185
  };
10102
10186
  Update: {
10187
+ action?: string | null;
10103
10188
  created_at?: string;
10104
10189
  id?: string;
10105
10190
  order_ref?: string;
10106
10191
  reason?: string;
10192
+ source_module?: string | null;
10193
+ source_shell?: string | null;
10107
10194
  };
10108
10195
  Relationships: [];
10109
10196
  };
@@ -10182,6 +10269,42 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
10182
10269
  };
10183
10270
  Relationships: [];
10184
10271
  };
10272
+ logistics_floriday_status_sends: {
10273
+ Row: {
10274
+ action: string;
10275
+ created_at: string;
10276
+ detail: string | null;
10277
+ http_status: number | null;
10278
+ id: string;
10279
+ ok: boolean;
10280
+ order_ref: string;
10281
+ source_module: string | null;
10282
+ source_shell: string | null;
10283
+ };
10284
+ Insert: {
10285
+ action: string;
10286
+ created_at?: string;
10287
+ detail?: string | null;
10288
+ http_status?: number | null;
10289
+ id?: string;
10290
+ ok?: boolean;
10291
+ order_ref: string;
10292
+ source_module?: string | null;
10293
+ source_shell?: string | null;
10294
+ };
10295
+ Update: {
10296
+ action?: string;
10297
+ created_at?: string;
10298
+ detail?: string | null;
10299
+ http_status?: number | null;
10300
+ id?: string;
10301
+ ok?: boolean;
10302
+ order_ref?: string;
10303
+ source_module?: string | null;
10304
+ source_shell?: string | null;
10305
+ };
10306
+ Relationships: [];
10307
+ };
10185
10308
  logistics_formulas: {
10186
10309
  Row: {
10187
10310
  created_at: string;
@@ -10254,6 +10377,108 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
10254
10377
  };
10255
10378
  Relationships: [];
10256
10379
  };
10380
+ logistics_opening_exceptions: {
10381
+ Row: {
10382
+ closes: string | null;
10383
+ created_at: string;
10384
+ day: string;
10385
+ id: string;
10386
+ is_closed: boolean;
10387
+ note: string | null;
10388
+ opens: string | null;
10389
+ };
10390
+ Insert: {
10391
+ closes?: string | null;
10392
+ created_at?: string;
10393
+ day: string;
10394
+ id?: string;
10395
+ is_closed?: boolean;
10396
+ note?: string | null;
10397
+ opens?: string | null;
10398
+ };
10399
+ Update: {
10400
+ closes?: string | null;
10401
+ created_at?: string;
10402
+ day?: string;
10403
+ id?: string;
10404
+ is_closed?: boolean;
10405
+ note?: string | null;
10406
+ opens?: string | null;
10407
+ };
10408
+ Relationships: [];
10409
+ };
10410
+ logistics_opening_hours: {
10411
+ Row: {
10412
+ closes: string;
10413
+ created_at: string;
10414
+ id: string;
10415
+ is_active: boolean;
10416
+ note: string | null;
10417
+ opens: string;
10418
+ weekday: number;
10419
+ };
10420
+ Insert: {
10421
+ closes: string;
10422
+ created_at?: string;
10423
+ id?: string;
10424
+ is_active?: boolean;
10425
+ note?: string | null;
10426
+ opens: string;
10427
+ weekday: number;
10428
+ };
10429
+ Update: {
10430
+ closes?: string;
10431
+ created_at?: string;
10432
+ id?: string;
10433
+ is_active?: boolean;
10434
+ note?: string | null;
10435
+ opens?: string;
10436
+ weekday?: number;
10437
+ };
10438
+ Relationships: [];
10439
+ };
10440
+ logistics_pick_data_requests: {
10441
+ Row: {
10442
+ actions: import("../integrations/supabase/types").Json;
10443
+ created_at: string;
10444
+ event_id: string | null;
10445
+ finished_at: string | null;
10446
+ id: string;
10447
+ missing: import("../integrations/supabase/types").Json;
10448
+ order_ref: string;
10449
+ reason: string | null;
10450
+ result: import("../integrations/supabase/types").Json | null;
10451
+ status: string;
10452
+ unit_ref: string | null;
10453
+ };
10454
+ Insert: {
10455
+ actions?: import("../integrations/supabase/types").Json;
10456
+ created_at?: string;
10457
+ event_id?: string | null;
10458
+ finished_at?: string | null;
10459
+ id?: string;
10460
+ missing?: import("../integrations/supabase/types").Json;
10461
+ order_ref: string;
10462
+ reason?: string | null;
10463
+ result?: import("../integrations/supabase/types").Json | null;
10464
+ status?: string;
10465
+ unit_ref?: string | null;
10466
+ };
10467
+ Update: {
10468
+ actions?: import("../integrations/supabase/types").Json;
10469
+ created_at?: string;
10470
+ event_id?: string | null;
10471
+ finished_at?: string | null;
10472
+ id?: string;
10473
+ missing?: import("../integrations/supabase/types").Json;
10474
+ order_ref?: string;
10475
+ reason?: string | null;
10476
+ result?: import("../integrations/supabase/types").Json | null;
10477
+ status?: string;
10478
+ unit_ref?: string | null;
10479
+ };
10480
+ Relationships: [];
10481
+ };
10257
10482
  logistics_pickup_moments: {
10258
10483
  Row: {
10259
10484
  carrier_ref: string | null;
@@ -10713,6 +10938,69 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
10713
10938
  };
10714
10939
  Relationships: [];
10715
10940
  };
10941
+ logistics_slip_shipping_note: {
10942
+ Row: {
10943
+ attempts: number;
10944
+ batch_key: string | null;
10945
+ cart_id: string | null;
10946
+ created_at: string;
10947
+ error: string | null;
10948
+ error_code: string | null;
10949
+ fulfillment_order_id: string | null;
10950
+ id: string;
10951
+ locked_until: string | null;
10952
+ next_attempt_at: string | null;
10953
+ order_id: string | null;
10954
+ order_number: string | null;
10955
+ print_job_id: string | null;
10956
+ printer_id: string | null;
10957
+ retry_class: string | null;
10958
+ slip_job_id: string;
10959
+ status: string;
10960
+ updated_at: string;
10961
+ };
10962
+ Insert: {
10963
+ attempts?: number;
10964
+ batch_key?: string | null;
10965
+ cart_id?: string | null;
10966
+ created_at?: string;
10967
+ error?: string | null;
10968
+ error_code?: string | null;
10969
+ fulfillment_order_id?: string | null;
10970
+ id?: string;
10971
+ locked_until?: string | null;
10972
+ next_attempt_at?: string | null;
10973
+ order_id?: string | null;
10974
+ order_number?: string | null;
10975
+ print_job_id?: string | null;
10976
+ printer_id?: string | null;
10977
+ retry_class?: string | null;
10978
+ slip_job_id: string;
10979
+ status?: string;
10980
+ updated_at?: string;
10981
+ };
10982
+ Update: {
10983
+ attempts?: number;
10984
+ batch_key?: string | null;
10985
+ cart_id?: string | null;
10986
+ created_at?: string;
10987
+ error?: string | null;
10988
+ error_code?: string | null;
10989
+ fulfillment_order_id?: string | null;
10990
+ id?: string;
10991
+ locked_until?: string | null;
10992
+ next_attempt_at?: string | null;
10993
+ order_id?: string | null;
10994
+ order_number?: string | null;
10995
+ print_job_id?: string | null;
10996
+ printer_id?: string | null;
10997
+ retry_class?: string | null;
10998
+ slip_job_id?: string;
10999
+ status?: string;
11000
+ updated_at?: string;
11001
+ };
11002
+ Relationships: [];
11003
+ };
10716
11004
  logistics_staff_planning: {
10717
11005
  Row: {
10718
11006
  created_at: string;
@@ -11046,6 +11334,24 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
11046
11334
  };
11047
11335
  Relationships: [];
11048
11336
  };
11337
+ logistics_time_settings: {
11338
+ Row: {
11339
+ id: boolean;
11340
+ timezone: string;
11341
+ updated_at: string;
11342
+ };
11343
+ Insert: {
11344
+ id?: boolean;
11345
+ timezone: string;
11346
+ updated_at?: string;
11347
+ };
11348
+ Update: {
11349
+ id?: boolean;
11350
+ timezone?: string;
11351
+ updated_at?: string;
11352
+ };
11353
+ Relationships: [];
11354
+ };
11049
11355
  logistics_variables: {
11050
11356
  Row: {
11051
11357
  created_at: string;
@@ -13436,6 +13742,7 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
13436
13742
  customer_name: string;
13437
13743
  deleted_at: string | null;
13438
13744
  delivery_date: string | null;
13745
+ floriday_order_group_key: string | null;
13439
13746
  floriday_sales_order_id: string | null;
13440
13747
  id: string;
13441
13748
  invoice_due_at: string | null;
@@ -13463,6 +13770,7 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
13463
13770
  customer_name?: string;
13464
13771
  deleted_at?: string | null;
13465
13772
  delivery_date?: string | null;
13773
+ floriday_order_group_key?: string | null;
13466
13774
  floriday_sales_order_id?: string | null;
13467
13775
  id?: string;
13468
13776
  invoice_due_at?: string | null;
@@ -13490,6 +13798,7 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
13490
13798
  customer_name?: string;
13491
13799
  deleted_at?: string | null;
13492
13800
  delivery_date?: string | null;
13801
+ floriday_order_group_key?: string | null;
13493
13802
  floriday_sales_order_id?: string | null;
13494
13803
  id?: string;
13495
13804
  invoice_due_at?: string | null;
@@ -23153,6 +23462,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23153
23462
  };
23154
23463
  Returns: string;
23155
23464
  };
23465
+ logistics_cart_checkin_at: {
23466
+ Args: {
23467
+ p_cart_id: string;
23468
+ };
23469
+ Returns: string;
23470
+ };
23156
23471
  logistics_cart_handled: {
23157
23472
  Args: {
23158
23473
  p_cart_index: number;
@@ -23186,10 +23501,22 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23186
23501
  task_status: string;
23187
23502
  }[];
23188
23503
  };
23504
+ logistics_cart_is_full: {
23505
+ Args: {
23506
+ p_cart_id: string;
23507
+ };
23508
+ Returns: boolean;
23509
+ };
23189
23510
  logistics_cart_layout_method: {
23190
23511
  Args: never;
23191
23512
  Returns: import("../integrations/supabase/types").Json;
23192
23513
  };
23514
+ logistics_cart_order_refs: {
23515
+ Args: {
23516
+ p_cart_id: string;
23517
+ };
23518
+ Returns: string[];
23519
+ };
23193
23520
  logistics_cart_plan_overview: {
23194
23521
  Args: {
23195
23522
  p_days?: number;
@@ -23209,6 +23536,18 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23209
23536
  };
23210
23537
  Returns: import("../integrations/supabase/types").Json;
23211
23538
  };
23539
+ logistics_cart_release_reason: {
23540
+ Args: {
23541
+ p_cart_id: string;
23542
+ };
23543
+ Returns: string;
23544
+ };
23545
+ logistics_cart_released: {
23546
+ Args: {
23547
+ p_cart_id: string;
23548
+ };
23549
+ Returns: boolean;
23550
+ };
23212
23551
  logistics_cart_seq: {
23213
23552
  Args: {
23214
23553
  p_order_uuid?: string;
@@ -23259,6 +23598,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23259
23598
  unit_ref: string;
23260
23599
  }[];
23261
23600
  };
23601
+ logistics_carts_per_print: {
23602
+ Args: never;
23603
+ Returns: number;
23604
+ };
23262
23605
  logistics_check_order_allowed: {
23263
23606
  Args: {
23264
23607
  p_lines: import("../integrations/supabase/types").Json;
@@ -23362,6 +23705,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23362
23705
  isSetofReturn: false;
23363
23706
  };
23364
23707
  };
23708
+ logistics_cleanup_orphan_print_jobs: {
23709
+ Args: never;
23710
+ Returns: import("../integrations/supabase/types").Json;
23711
+ };
23365
23712
  logistics_complete_task: {
23366
23713
  Args: {
23367
23714
  p_result?: import("../integrations/supabase/types").Json;
@@ -23424,6 +23771,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23424
23771
  station_carts: number;
23425
23772
  }[];
23426
23773
  };
23774
+ logistics_control_complete_cart: {
23775
+ Args: {
23776
+ p_cart_id: string;
23777
+ };
23778
+ Returns: number;
23779
+ };
23427
23780
  logistics_control_scan_approve: {
23428
23781
  Args: {
23429
23782
  p_allow_reprint?: boolean;
@@ -23503,6 +23856,15 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23503
23856
  Args: never;
23504
23857
  Returns: import("../integrations/supabase/types").Json;
23505
23858
  };
23859
+ logistics_day_windows: {
23860
+ Args: {
23861
+ p_day: string;
23862
+ };
23863
+ Returns: {
23864
+ win_end: string;
23865
+ win_start: string;
23866
+ }[];
23867
+ };
23506
23868
  logistics_delay_customer_email: {
23507
23869
  Args: {
23508
23870
  p_customer: string;
@@ -23570,6 +23932,17 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23570
23932
  };
23571
23933
  Returns: import("../integrations/supabase/types").Json;
23572
23934
  };
23935
+ logistics_enqueue_shipping_note_with_slip: {
23936
+ Args: {
23937
+ _cart_id: string;
23938
+ _is_herprint: boolean;
23939
+ _printer_id: string;
23940
+ _queue_item_id: string;
23941
+ _session_id: string;
23942
+ _slip_job_id: string;
23943
+ };
23944
+ Returns: string;
23945
+ };
23573
23946
  logistics_enqueue_sticker_with_slip: {
23574
23947
  Args: {
23575
23948
  _cart_id: string;
@@ -23587,6 +23960,14 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23587
23960
  };
23588
23961
  Returns: string;
23589
23962
  };
23963
+ logistics_ensure_pick_data: {
23964
+ Args: {
23965
+ p_event_id?: string;
23966
+ p_missing?: import("../integrations/supabase/types").Json;
23967
+ p_ref: string;
23968
+ };
23969
+ Returns: import("../integrations/supabase/types").Json;
23970
+ };
23590
23971
  logistics_fail_task: {
23591
23972
  Args: {
23592
23973
  p_error: string;
@@ -23708,6 +24089,32 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23708
24089
  };
23709
24090
  Returns: string;
23710
24091
  };
24092
+ logistics_floriday_gate_status: {
24093
+ Args: never;
24094
+ Returns: import("../integrations/supabase/types").Json;
24095
+ };
24096
+ logistics_floriday_log_refusal: {
24097
+ Args: {
24098
+ _action?: string;
24099
+ _module?: string;
24100
+ _order_ref: string;
24101
+ _reason: string;
24102
+ _shell?: string;
24103
+ };
24104
+ Returns: undefined;
24105
+ };
24106
+ logistics_floriday_log_send: {
24107
+ Args: {
24108
+ _action: string;
24109
+ _detail?: string;
24110
+ _http_status?: number;
24111
+ _module?: string;
24112
+ _ok: boolean;
24113
+ _order_ref: string;
24114
+ _shell?: string;
24115
+ };
24116
+ Returns: undefined;
24117
+ };
23711
24118
  logistics_floriday_order_approved: {
23712
24119
  Args: {
23713
24120
  _order_ref: string;
@@ -23732,6 +24139,16 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23732
24139
  Args: never;
23733
24140
  Returns: boolean;
23734
24141
  };
24142
+ logistics_floriday_stock_updates_enabled: {
24143
+ Args: never;
24144
+ Returns: boolean;
24145
+ };
24146
+ logistics_floriday_write_allowed: {
24147
+ Args: {
24148
+ _action: string;
24149
+ };
24150
+ Returns: boolean;
24151
+ };
23735
24152
  logistics_fulfill_barcode_requests: {
23736
24153
  Args: {
23737
24154
  p_limit?: number;
@@ -23774,6 +24191,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23774
24191
  };
23775
24192
  Returns: number;
23776
24193
  };
24194
+ logistics_merge_partial_carts: {
24195
+ Args: {
24196
+ p_limit?: number;
24197
+ };
24198
+ Returns: import("../integrations/supabase/types").Json;
24199
+ };
23777
24200
  logistics_next_workday_date: {
23778
24201
  Args: {
23779
24202
  p_date: string;
@@ -23800,6 +24223,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23800
24223
  };
23801
24224
  Returns: string;
23802
24225
  };
24226
+ logistics_opening_timezone: {
24227
+ Args: never;
24228
+ Returns: string;
24229
+ };
23803
24230
  logistics_order_cart_count: {
23804
24231
  Args: {
23805
24232
  p_order_ref: string;
@@ -23884,6 +24311,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23884
24311
  Args: never;
23885
24312
  Returns: import("../integrations/supabase/types").Json;
23886
24313
  };
24314
+ logistics_pick_partial_mode: {
24315
+ Args: never;
24316
+ Returns: string;
24317
+ };
23887
24318
  logistics_pick_start_estimate: {
23888
24319
  Args: {
23889
24320
  p_order: import("../integrations/supabase/types").Json;
@@ -23995,6 +24426,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
23995
24426
  };
23996
24427
  Returns: number;
23997
24428
  };
24429
+ logistics_prepare_pick_documents: {
24430
+ Args: {
24431
+ p_limit?: number;
24432
+ };
24433
+ Returns: import("../integrations/supabase/types").Json;
24434
+ };
23998
24435
  logistics_prune_buffer_member_queue: {
23999
24436
  Args: never;
24000
24437
  Returns: number;
@@ -24035,6 +24472,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24035
24472
  Args: never;
24036
24473
  Returns: import("../integrations/supabase/types").Json;
24037
24474
  };
24475
+ logistics_refresh_pick_queue_status: {
24476
+ Args: {
24477
+ p_ref: string;
24478
+ };
24479
+ Returns: number;
24480
+ };
24038
24481
  logistics_refresh_pickup_moments: {
24039
24482
  Args: {
24040
24483
  p_weeks?: number;
@@ -24047,6 +24490,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24047
24490
  };
24048
24491
  Returns: import("../integrations/supabase/types").Json;
24049
24492
  };
24493
+ logistics_replan_all_force: {
24494
+ Args: {
24495
+ p_reason?: string;
24496
+ };
24497
+ Returns: import("../integrations/supabase/types").Json;
24498
+ };
24050
24499
  logistics_report_delay: {
24051
24500
  Args: {
24052
24501
  p_expected_date?: string;
@@ -24191,6 +24640,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24191
24640
  };
24192
24641
  Returns: string;
24193
24642
  };
24643
+ logistics_shipping_note_follows_slip: {
24644
+ Args: never;
24645
+ Returns: boolean;
24646
+ };
24194
24647
  logistics_shipping_note_from_barcode: {
24195
24648
  Args: {
24196
24649
  p_allow_reprint?: boolean;
@@ -24199,10 +24652,76 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24199
24652
  };
24200
24653
  Returns: import("../integrations/supabase/types").Json;
24201
24654
  };
24655
+ logistics_shipping_note_job_for_slip: {
24656
+ Args: {
24657
+ _slip_job_id: string;
24658
+ };
24659
+ Returns: string;
24660
+ };
24661
+ logistics_slip_note_claim: {
24662
+ Args: {
24663
+ _lease_seconds?: number;
24664
+ _limit?: number;
24665
+ };
24666
+ Returns: {
24667
+ attempts: number;
24668
+ batch_key: string | null;
24669
+ cart_id: string | null;
24670
+ created_at: string;
24671
+ error: string | null;
24672
+ error_code: string | null;
24673
+ fulfillment_order_id: string | null;
24674
+ id: string;
24675
+ locked_until: string | null;
24676
+ next_attempt_at: string | null;
24677
+ order_id: string | null;
24678
+ order_number: string | null;
24679
+ print_job_id: string | null;
24680
+ printer_id: string | null;
24681
+ retry_class: string | null;
24682
+ slip_job_id: string;
24683
+ status: string;
24684
+ updated_at: string;
24685
+ }[];
24686
+ SetofOptions: {
24687
+ from: "*";
24688
+ to: "logistics_slip_shipping_note";
24689
+ isOneToOne: false;
24690
+ isSetofReturn: true;
24691
+ };
24692
+ };
24693
+ logistics_slip_note_finish: {
24694
+ Args: {
24695
+ _error?: string;
24696
+ _error_code?: string;
24697
+ _fulfillment_order_id?: string;
24698
+ _id: string;
24699
+ _ok: boolean;
24700
+ _print_job_id?: string;
24701
+ _status?: string;
24702
+ };
24703
+ Returns: undefined;
24704
+ };
24705
+ logistics_slip_note_keep_waiting: {
24706
+ Args: {
24707
+ _class?: string;
24708
+ _id: string;
24709
+ _reason: string;
24710
+ };
24711
+ Returns: undefined;
24712
+ };
24202
24713
  logistics_sticker_follows_slip: {
24203
24714
  Args: never;
24204
24715
  Returns: boolean;
24205
24716
  };
24717
+ logistics_subtract_working_minutes: {
24718
+ Args: {
24719
+ p_deadline: string;
24720
+ p_max_workdays?: number;
24721
+ p_minutes: number;
24722
+ };
24723
+ Returns: import("../integrations/supabase/types").Json;
24724
+ };
24206
24725
  logistics_supersede_stale_tasks: {
24207
24726
  Args: {
24208
24727
  p_keep: string[];
@@ -24239,6 +24758,12 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24239
24758
  Args: never;
24240
24759
  Returns: string;
24241
24760
  };
24761
+ logistics_timezone_options: {
24762
+ Args: never;
24763
+ Returns: {
24764
+ name: string;
24765
+ }[];
24766
+ };
24242
24767
  logistics_upsert_task: {
24243
24768
  Args: {
24244
24769
  p_buffer_ref: string;
@@ -24258,6 +24783,16 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
24258
24783
  };
24259
24784
  Returns: string;
24260
24785
  };
24786
+ logistics_valid_timezone: {
24787
+ Args: {
24788
+ _tz: string;
24789
+ };
24790
+ Returns: boolean;
24791
+ };
24792
+ logistics_working_hours_status: {
24793
+ Args: never;
24794
+ Returns: import("../integrations/supabase/types").Json;
24795
+ };
24261
24796
  logistics_write_buffer_layer_positions: {
24262
24797
  Args: {
24263
24798
  p_buffer_id: string;
@@ -25703,6 +26238,13 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
25703
26238
  };
25704
26239
  Returns: number;
25705
26240
  };
26241
+ schedule_floriday_catalog_prices_sync: {
26242
+ Args: {
26243
+ p_apikey: string;
26244
+ p_url: string;
26245
+ };
26246
+ Returns: number;
26247
+ };
25706
26248
  schedule_floriday_clock_presales_sync: {
25707
26249
  Args: {
25708
26250
  p_apikey: string;
@@ -26003,6 +26545,10 @@ export declare const getModuleHealth: import("@tanstack/start-client-core").Opti
26003
26545
  };
26004
26546
  Returns: undefined;
26005
26547
  };
26548
+ sync_floriday_prices_into_price_groups: {
26549
+ Args: never;
26550
+ Returns: number;
26551
+ };
26006
26552
  sync_layer_stock: {
26007
26553
  Args: {
26008
26554
  p_product_id: string;
@@ -32016,6 +32562,84 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
32016
32562
  referencedColumns: ["id"];
32017
32563
  }];
32018
32564
  };
32565
+ floriday_catalog_prices_cache: {
32566
+ Row: {
32567
+ connection_id: string;
32568
+ created_at: string;
32569
+ currency: string;
32570
+ id: string;
32571
+ is_deleted: boolean;
32572
+ price: number | null;
32573
+ price_group_id: string | null;
32574
+ price_group_name: string | null;
32575
+ price_type: string;
32576
+ raw: import("../integrations/supabase/types").Json | null;
32577
+ sales_unit: string | null;
32578
+ sequence_number: number;
32579
+ supplier_article_code: string | null;
32580
+ supply_line_id: string;
32581
+ synced_at: string;
32582
+ trade_item_id: string | null;
32583
+ updated_at: string;
32584
+ valid_from: string | null;
32585
+ valid_to: string | null;
32586
+ week: number | null;
32587
+ year: number | null;
32588
+ };
32589
+ Insert: {
32590
+ connection_id: string;
32591
+ created_at?: string;
32592
+ currency?: string;
32593
+ id?: string;
32594
+ is_deleted?: boolean;
32595
+ price?: number | null;
32596
+ price_group_id?: string | null;
32597
+ price_group_name?: string | null;
32598
+ price_type?: string;
32599
+ raw?: import("../integrations/supabase/types").Json | null;
32600
+ sales_unit?: string | null;
32601
+ sequence_number?: number;
32602
+ supplier_article_code?: string | null;
32603
+ supply_line_id: string;
32604
+ synced_at?: string;
32605
+ trade_item_id?: string | null;
32606
+ updated_at?: string;
32607
+ valid_from?: string | null;
32608
+ valid_to?: string | null;
32609
+ week?: number | null;
32610
+ year?: number | null;
32611
+ };
32612
+ Update: {
32613
+ connection_id?: string;
32614
+ created_at?: string;
32615
+ currency?: string;
32616
+ id?: string;
32617
+ is_deleted?: boolean;
32618
+ price?: number | null;
32619
+ price_group_id?: string | null;
32620
+ price_group_name?: string | null;
32621
+ price_type?: string;
32622
+ raw?: import("../integrations/supabase/types").Json | null;
32623
+ sales_unit?: string | null;
32624
+ sequence_number?: number;
32625
+ supplier_article_code?: string | null;
32626
+ supply_line_id?: string;
32627
+ synced_at?: string;
32628
+ trade_item_id?: string | null;
32629
+ updated_at?: string;
32630
+ valid_from?: string | null;
32631
+ valid_to?: string | null;
32632
+ week?: number | null;
32633
+ year?: number | null;
32634
+ };
32635
+ Relationships: [{
32636
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32637
+ columns: ["connection_id"];
32638
+ isOneToOne: false;
32639
+ referencedRelation: "floriday_connections";
32640
+ referencedColumns: ["id"];
32641
+ }];
32642
+ };
32019
32643
  floriday_clock_presales_cache: {
32020
32644
  Row: {
32021
32645
  buyer_organization_id: string | null;
@@ -36284,22 +36908,31 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36284
36908
  };
36285
36909
  logistics_floriday_push_refusals: {
36286
36910
  Row: {
36911
+ action: string | null;
36287
36912
  created_at: string;
36288
36913
  id: string;
36289
36914
  order_ref: string;
36290
36915
  reason: string;
36916
+ source_module: string | null;
36917
+ source_shell: string | null;
36291
36918
  };
36292
36919
  Insert: {
36920
+ action?: string | null;
36293
36921
  created_at?: string;
36294
36922
  id?: string;
36295
36923
  order_ref: string;
36296
36924
  reason: string;
36925
+ source_module?: string | null;
36926
+ source_shell?: string | null;
36297
36927
  };
36298
36928
  Update: {
36929
+ action?: string | null;
36299
36930
  created_at?: string;
36300
36931
  id?: string;
36301
36932
  order_ref?: string;
36302
36933
  reason?: string;
36934
+ source_module?: string | null;
36935
+ source_shell?: string | null;
36303
36936
  };
36304
36937
  Relationships: [];
36305
36938
  };
@@ -36378,6 +37011,42 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36378
37011
  };
36379
37012
  Relationships: [];
36380
37013
  };
37014
+ logistics_floriday_status_sends: {
37015
+ Row: {
37016
+ action: string;
37017
+ created_at: string;
37018
+ detail: string | null;
37019
+ http_status: number | null;
37020
+ id: string;
37021
+ ok: boolean;
37022
+ order_ref: string;
37023
+ source_module: string | null;
37024
+ source_shell: string | null;
37025
+ };
37026
+ Insert: {
37027
+ action: string;
37028
+ created_at?: string;
37029
+ detail?: string | null;
37030
+ http_status?: number | null;
37031
+ id?: string;
37032
+ ok?: boolean;
37033
+ order_ref: string;
37034
+ source_module?: string | null;
37035
+ source_shell?: string | null;
37036
+ };
37037
+ Update: {
37038
+ action?: string;
37039
+ created_at?: string;
37040
+ detail?: string | null;
37041
+ http_status?: number | null;
37042
+ id?: string;
37043
+ ok?: boolean;
37044
+ order_ref?: string;
37045
+ source_module?: string | null;
37046
+ source_shell?: string | null;
37047
+ };
37048
+ Relationships: [];
37049
+ };
36381
37050
  logistics_formulas: {
36382
37051
  Row: {
36383
37052
  created_at: string;
@@ -36450,6 +37119,108 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36450
37119
  };
36451
37120
  Relationships: [];
36452
37121
  };
37122
+ logistics_opening_exceptions: {
37123
+ Row: {
37124
+ closes: string | null;
37125
+ created_at: string;
37126
+ day: string;
37127
+ id: string;
37128
+ is_closed: boolean;
37129
+ note: string | null;
37130
+ opens: string | null;
37131
+ };
37132
+ Insert: {
37133
+ closes?: string | null;
37134
+ created_at?: string;
37135
+ day: string;
37136
+ id?: string;
37137
+ is_closed?: boolean;
37138
+ note?: string | null;
37139
+ opens?: string | null;
37140
+ };
37141
+ Update: {
37142
+ closes?: string | null;
37143
+ created_at?: string;
37144
+ day?: string;
37145
+ id?: string;
37146
+ is_closed?: boolean;
37147
+ note?: string | null;
37148
+ opens?: string | null;
37149
+ };
37150
+ Relationships: [];
37151
+ };
37152
+ logistics_opening_hours: {
37153
+ Row: {
37154
+ closes: string;
37155
+ created_at: string;
37156
+ id: string;
37157
+ is_active: boolean;
37158
+ note: string | null;
37159
+ opens: string;
37160
+ weekday: number;
37161
+ };
37162
+ Insert: {
37163
+ closes: string;
37164
+ created_at?: string;
37165
+ id?: string;
37166
+ is_active?: boolean;
37167
+ note?: string | null;
37168
+ opens: string;
37169
+ weekday: number;
37170
+ };
37171
+ Update: {
37172
+ closes?: string;
37173
+ created_at?: string;
37174
+ id?: string;
37175
+ is_active?: boolean;
37176
+ note?: string | null;
37177
+ opens?: string;
37178
+ weekday?: number;
37179
+ };
37180
+ Relationships: [];
37181
+ };
37182
+ logistics_pick_data_requests: {
37183
+ Row: {
37184
+ actions: import("../integrations/supabase/types").Json;
37185
+ created_at: string;
37186
+ event_id: string | null;
37187
+ finished_at: string | null;
37188
+ id: string;
37189
+ missing: import("../integrations/supabase/types").Json;
37190
+ order_ref: string;
37191
+ reason: string | null;
37192
+ result: import("../integrations/supabase/types").Json | null;
37193
+ status: string;
37194
+ unit_ref: string | null;
37195
+ };
37196
+ Insert: {
37197
+ actions?: import("../integrations/supabase/types").Json;
37198
+ created_at?: string;
37199
+ event_id?: string | null;
37200
+ finished_at?: string | null;
37201
+ id?: string;
37202
+ missing?: import("../integrations/supabase/types").Json;
37203
+ order_ref: string;
37204
+ reason?: string | null;
37205
+ result?: import("../integrations/supabase/types").Json | null;
37206
+ status?: string;
37207
+ unit_ref?: string | null;
37208
+ };
37209
+ Update: {
37210
+ actions?: import("../integrations/supabase/types").Json;
37211
+ created_at?: string;
37212
+ event_id?: string | null;
37213
+ finished_at?: string | null;
37214
+ id?: string;
37215
+ missing?: import("../integrations/supabase/types").Json;
37216
+ order_ref?: string;
37217
+ reason?: string | null;
37218
+ result?: import("../integrations/supabase/types").Json | null;
37219
+ status?: string;
37220
+ unit_ref?: string | null;
37221
+ };
37222
+ Relationships: [];
37223
+ };
36453
37224
  logistics_pickup_moments: {
36454
37225
  Row: {
36455
37226
  carrier_ref: string | null;
@@ -36909,6 +37680,69 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36909
37680
  };
36910
37681
  Relationships: [];
36911
37682
  };
37683
+ logistics_slip_shipping_note: {
37684
+ Row: {
37685
+ attempts: number;
37686
+ batch_key: string | null;
37687
+ cart_id: string | null;
37688
+ created_at: string;
37689
+ error: string | null;
37690
+ error_code: string | null;
37691
+ fulfillment_order_id: string | null;
37692
+ id: string;
37693
+ locked_until: string | null;
37694
+ next_attempt_at: string | null;
37695
+ order_id: string | null;
37696
+ order_number: string | null;
37697
+ print_job_id: string | null;
37698
+ printer_id: string | null;
37699
+ retry_class: string | null;
37700
+ slip_job_id: string;
37701
+ status: string;
37702
+ updated_at: string;
37703
+ };
37704
+ Insert: {
37705
+ attempts?: number;
37706
+ batch_key?: string | null;
37707
+ cart_id?: string | null;
37708
+ created_at?: string;
37709
+ error?: string | null;
37710
+ error_code?: string | null;
37711
+ fulfillment_order_id?: string | null;
37712
+ id?: string;
37713
+ locked_until?: string | null;
37714
+ next_attempt_at?: string | null;
37715
+ order_id?: string | null;
37716
+ order_number?: string | null;
37717
+ print_job_id?: string | null;
37718
+ printer_id?: string | null;
37719
+ retry_class?: string | null;
37720
+ slip_job_id: string;
37721
+ status?: string;
37722
+ updated_at?: string;
37723
+ };
37724
+ Update: {
37725
+ attempts?: number;
37726
+ batch_key?: string | null;
37727
+ cart_id?: string | null;
37728
+ created_at?: string;
37729
+ error?: string | null;
37730
+ error_code?: string | null;
37731
+ fulfillment_order_id?: string | null;
37732
+ id?: string;
37733
+ locked_until?: string | null;
37734
+ next_attempt_at?: string | null;
37735
+ order_id?: string | null;
37736
+ order_number?: string | null;
37737
+ print_job_id?: string | null;
37738
+ printer_id?: string | null;
37739
+ retry_class?: string | null;
37740
+ slip_job_id?: string;
37741
+ status?: string;
37742
+ updated_at?: string;
37743
+ };
37744
+ Relationships: [];
37745
+ };
36912
37746
  logistics_staff_planning: {
36913
37747
  Row: {
36914
37748
  created_at: string;
@@ -37242,6 +38076,24 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
37242
38076
  };
37243
38077
  Relationships: [];
37244
38078
  };
38079
+ logistics_time_settings: {
38080
+ Row: {
38081
+ id: boolean;
38082
+ timezone: string;
38083
+ updated_at: string;
38084
+ };
38085
+ Insert: {
38086
+ id?: boolean;
38087
+ timezone: string;
38088
+ updated_at?: string;
38089
+ };
38090
+ Update: {
38091
+ id?: boolean;
38092
+ timezone?: string;
38093
+ updated_at?: string;
38094
+ };
38095
+ Relationships: [];
38096
+ };
37245
38097
  logistics_variables: {
37246
38098
  Row: {
37247
38099
  created_at: string;
@@ -39632,6 +40484,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39632
40484
  customer_name: string;
39633
40485
  deleted_at: string | null;
39634
40486
  delivery_date: string | null;
40487
+ floriday_order_group_key: string | null;
39635
40488
  floriday_sales_order_id: string | null;
39636
40489
  id: string;
39637
40490
  invoice_due_at: string | null;
@@ -39659,6 +40512,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39659
40512
  customer_name?: string;
39660
40513
  deleted_at?: string | null;
39661
40514
  delivery_date?: string | null;
40515
+ floriday_order_group_key?: string | null;
39662
40516
  floriday_sales_order_id?: string | null;
39663
40517
  id?: string;
39664
40518
  invoice_due_at?: string | null;
@@ -39686,6 +40540,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39686
40540
  customer_name?: string;
39687
40541
  deleted_at?: string | null;
39688
40542
  delivery_date?: string | null;
40543
+ floriday_order_group_key?: string | null;
39689
40544
  floriday_sales_order_id?: string | null;
39690
40545
  id?: string;
39691
40546
  invoice_due_at?: string | null;
@@ -49349,6 +50204,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49349
50204
  };
49350
50205
  Returns: string;
49351
50206
  };
50207
+ logistics_cart_checkin_at: {
50208
+ Args: {
50209
+ p_cart_id: string;
50210
+ };
50211
+ Returns: string;
50212
+ };
49352
50213
  logistics_cart_handled: {
49353
50214
  Args: {
49354
50215
  p_cart_index: number;
@@ -49382,10 +50243,22 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49382
50243
  task_status: string;
49383
50244
  }[];
49384
50245
  };
50246
+ logistics_cart_is_full: {
50247
+ Args: {
50248
+ p_cart_id: string;
50249
+ };
50250
+ Returns: boolean;
50251
+ };
49385
50252
  logistics_cart_layout_method: {
49386
50253
  Args: never;
49387
50254
  Returns: import("../integrations/supabase/types").Json;
49388
50255
  };
50256
+ logistics_cart_order_refs: {
50257
+ Args: {
50258
+ p_cart_id: string;
50259
+ };
50260
+ Returns: string[];
50261
+ };
49389
50262
  logistics_cart_plan_overview: {
49390
50263
  Args: {
49391
50264
  p_days?: number;
@@ -49405,6 +50278,18 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49405
50278
  };
49406
50279
  Returns: import("../integrations/supabase/types").Json;
49407
50280
  };
50281
+ logistics_cart_release_reason: {
50282
+ Args: {
50283
+ p_cart_id: string;
50284
+ };
50285
+ Returns: string;
50286
+ };
50287
+ logistics_cart_released: {
50288
+ Args: {
50289
+ p_cart_id: string;
50290
+ };
50291
+ Returns: boolean;
50292
+ };
49408
50293
  logistics_cart_seq: {
49409
50294
  Args: {
49410
50295
  p_order_uuid?: string;
@@ -49455,6 +50340,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49455
50340
  unit_ref: string;
49456
50341
  }[];
49457
50342
  };
50343
+ logistics_carts_per_print: {
50344
+ Args: never;
50345
+ Returns: number;
50346
+ };
49458
50347
  logistics_check_order_allowed: {
49459
50348
  Args: {
49460
50349
  p_lines: import("../integrations/supabase/types").Json;
@@ -49558,6 +50447,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49558
50447
  isSetofReturn: false;
49559
50448
  };
49560
50449
  };
50450
+ logistics_cleanup_orphan_print_jobs: {
50451
+ Args: never;
50452
+ Returns: import("../integrations/supabase/types").Json;
50453
+ };
49561
50454
  logistics_complete_task: {
49562
50455
  Args: {
49563
50456
  p_result?: import("../integrations/supabase/types").Json;
@@ -49620,6 +50513,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49620
50513
  station_carts: number;
49621
50514
  }[];
49622
50515
  };
50516
+ logistics_control_complete_cart: {
50517
+ Args: {
50518
+ p_cart_id: string;
50519
+ };
50520
+ Returns: number;
50521
+ };
49623
50522
  logistics_control_scan_approve: {
49624
50523
  Args: {
49625
50524
  p_allow_reprint?: boolean;
@@ -49699,6 +50598,15 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49699
50598
  Args: never;
49700
50599
  Returns: import("../integrations/supabase/types").Json;
49701
50600
  };
50601
+ logistics_day_windows: {
50602
+ Args: {
50603
+ p_day: string;
50604
+ };
50605
+ Returns: {
50606
+ win_end: string;
50607
+ win_start: string;
50608
+ }[];
50609
+ };
49702
50610
  logistics_delay_customer_email: {
49703
50611
  Args: {
49704
50612
  p_customer: string;
@@ -49766,6 +50674,17 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49766
50674
  };
49767
50675
  Returns: import("../integrations/supabase/types").Json;
49768
50676
  };
50677
+ logistics_enqueue_shipping_note_with_slip: {
50678
+ Args: {
50679
+ _cart_id: string;
50680
+ _is_herprint: boolean;
50681
+ _printer_id: string;
50682
+ _queue_item_id: string;
50683
+ _session_id: string;
50684
+ _slip_job_id: string;
50685
+ };
50686
+ Returns: string;
50687
+ };
49769
50688
  logistics_enqueue_sticker_with_slip: {
49770
50689
  Args: {
49771
50690
  _cart_id: string;
@@ -49783,6 +50702,14 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49783
50702
  };
49784
50703
  Returns: string;
49785
50704
  };
50705
+ logistics_ensure_pick_data: {
50706
+ Args: {
50707
+ p_event_id?: string;
50708
+ p_missing?: import("../integrations/supabase/types").Json;
50709
+ p_ref: string;
50710
+ };
50711
+ Returns: import("../integrations/supabase/types").Json;
50712
+ };
49786
50713
  logistics_fail_task: {
49787
50714
  Args: {
49788
50715
  p_error: string;
@@ -49904,6 +50831,32 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49904
50831
  };
49905
50832
  Returns: string;
49906
50833
  };
50834
+ logistics_floriday_gate_status: {
50835
+ Args: never;
50836
+ Returns: import("../integrations/supabase/types").Json;
50837
+ };
50838
+ logistics_floriday_log_refusal: {
50839
+ Args: {
50840
+ _action?: string;
50841
+ _module?: string;
50842
+ _order_ref: string;
50843
+ _reason: string;
50844
+ _shell?: string;
50845
+ };
50846
+ Returns: undefined;
50847
+ };
50848
+ logistics_floriday_log_send: {
50849
+ Args: {
50850
+ _action: string;
50851
+ _detail?: string;
50852
+ _http_status?: number;
50853
+ _module?: string;
50854
+ _ok: boolean;
50855
+ _order_ref: string;
50856
+ _shell?: string;
50857
+ };
50858
+ Returns: undefined;
50859
+ };
49907
50860
  logistics_floriday_order_approved: {
49908
50861
  Args: {
49909
50862
  _order_ref: string;
@@ -49928,6 +50881,16 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49928
50881
  Args: never;
49929
50882
  Returns: boolean;
49930
50883
  };
50884
+ logistics_floriday_stock_updates_enabled: {
50885
+ Args: never;
50886
+ Returns: boolean;
50887
+ };
50888
+ logistics_floriday_write_allowed: {
50889
+ Args: {
50890
+ _action: string;
50891
+ };
50892
+ Returns: boolean;
50893
+ };
49931
50894
  logistics_fulfill_barcode_requests: {
49932
50895
  Args: {
49933
50896
  p_limit?: number;
@@ -49970,6 +50933,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49970
50933
  };
49971
50934
  Returns: number;
49972
50935
  };
50936
+ logistics_merge_partial_carts: {
50937
+ Args: {
50938
+ p_limit?: number;
50939
+ };
50940
+ Returns: import("../integrations/supabase/types").Json;
50941
+ };
49973
50942
  logistics_next_workday_date: {
49974
50943
  Args: {
49975
50944
  p_date: string;
@@ -49996,6 +50965,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
49996
50965
  };
49997
50966
  Returns: string;
49998
50967
  };
50968
+ logistics_opening_timezone: {
50969
+ Args: never;
50970
+ Returns: string;
50971
+ };
49999
50972
  logistics_order_cart_count: {
50000
50973
  Args: {
50001
50974
  p_order_ref: string;
@@ -50080,6 +51053,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50080
51053
  Args: never;
50081
51054
  Returns: import("../integrations/supabase/types").Json;
50082
51055
  };
51056
+ logistics_pick_partial_mode: {
51057
+ Args: never;
51058
+ Returns: string;
51059
+ };
50083
51060
  logistics_pick_start_estimate: {
50084
51061
  Args: {
50085
51062
  p_order: import("../integrations/supabase/types").Json;
@@ -50191,6 +51168,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50191
51168
  };
50192
51169
  Returns: number;
50193
51170
  };
51171
+ logistics_prepare_pick_documents: {
51172
+ Args: {
51173
+ p_limit?: number;
51174
+ };
51175
+ Returns: import("../integrations/supabase/types").Json;
51176
+ };
50194
51177
  logistics_prune_buffer_member_queue: {
50195
51178
  Args: never;
50196
51179
  Returns: number;
@@ -50231,6 +51214,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50231
51214
  Args: never;
50232
51215
  Returns: import("../integrations/supabase/types").Json;
50233
51216
  };
51217
+ logistics_refresh_pick_queue_status: {
51218
+ Args: {
51219
+ p_ref: string;
51220
+ };
51221
+ Returns: number;
51222
+ };
50234
51223
  logistics_refresh_pickup_moments: {
50235
51224
  Args: {
50236
51225
  p_weeks?: number;
@@ -50243,6 +51232,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50243
51232
  };
50244
51233
  Returns: import("../integrations/supabase/types").Json;
50245
51234
  };
51235
+ logistics_replan_all_force: {
51236
+ Args: {
51237
+ p_reason?: string;
51238
+ };
51239
+ Returns: import("../integrations/supabase/types").Json;
51240
+ };
50246
51241
  logistics_report_delay: {
50247
51242
  Args: {
50248
51243
  p_expected_date?: string;
@@ -50387,6 +51382,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50387
51382
  };
50388
51383
  Returns: string;
50389
51384
  };
51385
+ logistics_shipping_note_follows_slip: {
51386
+ Args: never;
51387
+ Returns: boolean;
51388
+ };
50390
51389
  logistics_shipping_note_from_barcode: {
50391
51390
  Args: {
50392
51391
  p_allow_reprint?: boolean;
@@ -50395,10 +51394,76 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50395
51394
  };
50396
51395
  Returns: import("../integrations/supabase/types").Json;
50397
51396
  };
51397
+ logistics_shipping_note_job_for_slip: {
51398
+ Args: {
51399
+ _slip_job_id: string;
51400
+ };
51401
+ Returns: string;
51402
+ };
51403
+ logistics_slip_note_claim: {
51404
+ Args: {
51405
+ _lease_seconds?: number;
51406
+ _limit?: number;
51407
+ };
51408
+ Returns: {
51409
+ attempts: number;
51410
+ batch_key: string | null;
51411
+ cart_id: string | null;
51412
+ created_at: string;
51413
+ error: string | null;
51414
+ error_code: string | null;
51415
+ fulfillment_order_id: string | null;
51416
+ id: string;
51417
+ locked_until: string | null;
51418
+ next_attempt_at: string | null;
51419
+ order_id: string | null;
51420
+ order_number: string | null;
51421
+ print_job_id: string | null;
51422
+ printer_id: string | null;
51423
+ retry_class: string | null;
51424
+ slip_job_id: string;
51425
+ status: string;
51426
+ updated_at: string;
51427
+ }[];
51428
+ SetofOptions: {
51429
+ from: "*";
51430
+ to: "logistics_slip_shipping_note";
51431
+ isOneToOne: false;
51432
+ isSetofReturn: true;
51433
+ };
51434
+ };
51435
+ logistics_slip_note_finish: {
51436
+ Args: {
51437
+ _error?: string;
51438
+ _error_code?: string;
51439
+ _fulfillment_order_id?: string;
51440
+ _id: string;
51441
+ _ok: boolean;
51442
+ _print_job_id?: string;
51443
+ _status?: string;
51444
+ };
51445
+ Returns: undefined;
51446
+ };
51447
+ logistics_slip_note_keep_waiting: {
51448
+ Args: {
51449
+ _class?: string;
51450
+ _id: string;
51451
+ _reason: string;
51452
+ };
51453
+ Returns: undefined;
51454
+ };
50398
51455
  logistics_sticker_follows_slip: {
50399
51456
  Args: never;
50400
51457
  Returns: boolean;
50401
51458
  };
51459
+ logistics_subtract_working_minutes: {
51460
+ Args: {
51461
+ p_deadline: string;
51462
+ p_max_workdays?: number;
51463
+ p_minutes: number;
51464
+ };
51465
+ Returns: import("../integrations/supabase/types").Json;
51466
+ };
50402
51467
  logistics_supersede_stale_tasks: {
50403
51468
  Args: {
50404
51469
  p_keep: string[];
@@ -50435,6 +51500,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50435
51500
  Args: never;
50436
51501
  Returns: string;
50437
51502
  };
51503
+ logistics_timezone_options: {
51504
+ Args: never;
51505
+ Returns: {
51506
+ name: string;
51507
+ }[];
51508
+ };
50438
51509
  logistics_upsert_task: {
50439
51510
  Args: {
50440
51511
  p_buffer_ref: string;
@@ -50454,6 +51525,16 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
50454
51525
  };
50455
51526
  Returns: string;
50456
51527
  };
51528
+ logistics_valid_timezone: {
51529
+ Args: {
51530
+ _tz: string;
51531
+ };
51532
+ Returns: boolean;
51533
+ };
51534
+ logistics_working_hours_status: {
51535
+ Args: never;
51536
+ Returns: import("../integrations/supabase/types").Json;
51537
+ };
50457
51538
  logistics_write_buffer_layer_positions: {
50458
51539
  Args: {
50459
51540
  p_buffer_id: string;
@@ -51899,6 +52980,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
51899
52980
  };
51900
52981
  Returns: number;
51901
52982
  };
52983
+ schedule_floriday_catalog_prices_sync: {
52984
+ Args: {
52985
+ p_apikey: string;
52986
+ p_url: string;
52987
+ };
52988
+ Returns: number;
52989
+ };
51902
52990
  schedule_floriday_clock_presales_sync: {
51903
52991
  Args: {
51904
52992
  p_apikey: string;
@@ -52199,6 +53287,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
52199
53287
  };
52200
53288
  Returns: undefined;
52201
53289
  };
53290
+ sync_floriday_prices_into_price_groups: {
53291
+ Args: never;
53292
+ Returns: number;
53293
+ };
52202
53294
  sync_layer_stock: {
52203
53295
  Args: {
52204
53296
  p_product_id: string;