@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
@@ -5809,6 +5809,84 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5809
5809
  referencedColumns: ["id"];
5810
5810
  }];
5811
5811
  };
5812
+ floriday_catalog_prices_cache: {
5813
+ Row: {
5814
+ connection_id: string;
5815
+ created_at: string;
5816
+ currency: string;
5817
+ id: string;
5818
+ is_deleted: boolean;
5819
+ price: number | null;
5820
+ price_group_id: string | null;
5821
+ price_group_name: string | null;
5822
+ price_type: string;
5823
+ raw: import("../integrations/supabase/types").Json | null;
5824
+ sales_unit: string | null;
5825
+ sequence_number: number;
5826
+ supplier_article_code: string | null;
5827
+ supply_line_id: string;
5828
+ synced_at: string;
5829
+ trade_item_id: string | null;
5830
+ updated_at: string;
5831
+ valid_from: string | null;
5832
+ valid_to: string | null;
5833
+ week: number | null;
5834
+ year: number | null;
5835
+ };
5836
+ Insert: {
5837
+ connection_id: string;
5838
+ created_at?: string;
5839
+ currency?: string;
5840
+ id?: string;
5841
+ is_deleted?: boolean;
5842
+ price?: number | null;
5843
+ price_group_id?: string | null;
5844
+ price_group_name?: string | null;
5845
+ price_type?: string;
5846
+ raw?: import("../integrations/supabase/types").Json | null;
5847
+ sales_unit?: string | null;
5848
+ sequence_number?: number;
5849
+ supplier_article_code?: string | null;
5850
+ supply_line_id: string;
5851
+ synced_at?: string;
5852
+ trade_item_id?: string | null;
5853
+ updated_at?: string;
5854
+ valid_from?: string | null;
5855
+ valid_to?: string | null;
5856
+ week?: number | null;
5857
+ year?: number | null;
5858
+ };
5859
+ Update: {
5860
+ connection_id?: string;
5861
+ created_at?: string;
5862
+ currency?: string;
5863
+ id?: string;
5864
+ is_deleted?: boolean;
5865
+ price?: number | null;
5866
+ price_group_id?: string | null;
5867
+ price_group_name?: string | null;
5868
+ price_type?: string;
5869
+ raw?: import("../integrations/supabase/types").Json | null;
5870
+ sales_unit?: string | null;
5871
+ sequence_number?: number;
5872
+ supplier_article_code?: string | null;
5873
+ supply_line_id?: string;
5874
+ synced_at?: string;
5875
+ trade_item_id?: string | null;
5876
+ updated_at?: string;
5877
+ valid_from?: string | null;
5878
+ valid_to?: string | null;
5879
+ week?: number | null;
5880
+ year?: number | null;
5881
+ };
5882
+ Relationships: [{
5883
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5884
+ columns: ["connection_id"];
5885
+ isOneToOne: false;
5886
+ referencedRelation: "floriday_connections";
5887
+ referencedColumns: ["id"];
5888
+ }];
5889
+ };
5812
5890
  floriday_clock_presales_cache: {
5813
5891
  Row: {
5814
5892
  buyer_organization_id: string | null;
@@ -10077,22 +10155,31 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10077
10155
  };
10078
10156
  logistics_floriday_push_refusals: {
10079
10157
  Row: {
10158
+ action: string | null;
10080
10159
  created_at: string;
10081
10160
  id: string;
10082
10161
  order_ref: string;
10083
10162
  reason: string;
10163
+ source_module: string | null;
10164
+ source_shell: string | null;
10084
10165
  };
10085
10166
  Insert: {
10167
+ action?: string | null;
10086
10168
  created_at?: string;
10087
10169
  id?: string;
10088
10170
  order_ref: string;
10089
10171
  reason: string;
10172
+ source_module?: string | null;
10173
+ source_shell?: string | null;
10090
10174
  };
10091
10175
  Update: {
10176
+ action?: string | null;
10092
10177
  created_at?: string;
10093
10178
  id?: string;
10094
10179
  order_ref?: string;
10095
10180
  reason?: string;
10181
+ source_module?: string | null;
10182
+ source_shell?: string | null;
10096
10183
  };
10097
10184
  Relationships: [];
10098
10185
  };
@@ -10171,6 +10258,42 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10171
10258
  };
10172
10259
  Relationships: [];
10173
10260
  };
10261
+ logistics_floriday_status_sends: {
10262
+ Row: {
10263
+ action: string;
10264
+ created_at: string;
10265
+ detail: string | null;
10266
+ http_status: number | null;
10267
+ id: string;
10268
+ ok: boolean;
10269
+ order_ref: string;
10270
+ source_module: string | null;
10271
+ source_shell: string | null;
10272
+ };
10273
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
10296
+ };
10174
10297
  logistics_formulas: {
10175
10298
  Row: {
10176
10299
  created_at: string;
@@ -10243,6 +10366,108 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10243
10366
  };
10244
10367
  Relationships: [];
10245
10368
  };
10369
+ logistics_opening_exceptions: {
10370
+ Row: {
10371
+ closes: string | null;
10372
+ created_at: string;
10373
+ day: string;
10374
+ id: string;
10375
+ is_closed: boolean;
10376
+ note: string | null;
10377
+ opens: string | null;
10378
+ };
10379
+ Insert: {
10380
+ closes?: string | null;
10381
+ created_at?: string;
10382
+ day: string;
10383
+ id?: string;
10384
+ is_closed?: boolean;
10385
+ note?: string | null;
10386
+ opens?: string | null;
10387
+ };
10388
+ Update: {
10389
+ closes?: string | null;
10390
+ created_at?: string;
10391
+ day?: string;
10392
+ id?: string;
10393
+ is_closed?: boolean;
10394
+ note?: string | null;
10395
+ opens?: string | null;
10396
+ };
10397
+ Relationships: [];
10398
+ };
10399
+ logistics_opening_hours: {
10400
+ Row: {
10401
+ closes: string;
10402
+ created_at: string;
10403
+ id: string;
10404
+ is_active: boolean;
10405
+ note: string | null;
10406
+ opens: string;
10407
+ weekday: number;
10408
+ };
10409
+ Insert: {
10410
+ closes: string;
10411
+ created_at?: string;
10412
+ id?: string;
10413
+ is_active?: boolean;
10414
+ note?: string | null;
10415
+ opens: string;
10416
+ weekday: number;
10417
+ };
10418
+ Update: {
10419
+ closes?: string;
10420
+ created_at?: string;
10421
+ id?: string;
10422
+ is_active?: boolean;
10423
+ note?: string | null;
10424
+ opens?: string;
10425
+ weekday?: number;
10426
+ };
10427
+ Relationships: [];
10428
+ };
10429
+ logistics_pick_data_requests: {
10430
+ Row: {
10431
+ actions: import("../integrations/supabase/types").Json;
10432
+ created_at: string;
10433
+ event_id: string | null;
10434
+ finished_at: string | null;
10435
+ id: string;
10436
+ missing: import("../integrations/supabase/types").Json;
10437
+ order_ref: string;
10438
+ reason: string | null;
10439
+ result: import("../integrations/supabase/types").Json | null;
10440
+ status: string;
10441
+ unit_ref: string | null;
10442
+ };
10443
+ Insert: {
10444
+ actions?: import("../integrations/supabase/types").Json;
10445
+ created_at?: string;
10446
+ event_id?: string | null;
10447
+ finished_at?: string | null;
10448
+ id?: string;
10449
+ missing?: import("../integrations/supabase/types").Json;
10450
+ order_ref: string;
10451
+ reason?: string | null;
10452
+ result?: import("../integrations/supabase/types").Json | null;
10453
+ status?: string;
10454
+ unit_ref?: string | null;
10455
+ };
10456
+ Update: {
10457
+ actions?: import("../integrations/supabase/types").Json;
10458
+ created_at?: string;
10459
+ event_id?: string | null;
10460
+ finished_at?: string | null;
10461
+ id?: string;
10462
+ missing?: import("../integrations/supabase/types").Json;
10463
+ order_ref?: string;
10464
+ reason?: string | null;
10465
+ result?: import("../integrations/supabase/types").Json | null;
10466
+ status?: string;
10467
+ unit_ref?: string | null;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10246
10471
  logistics_pickup_moments: {
10247
10472
  Row: {
10248
10473
  carrier_ref: string | null;
@@ -10702,6 +10927,69 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10702
10927
  };
10703
10928
  Relationships: [];
10704
10929
  };
10930
+ logistics_slip_shipping_note: {
10931
+ Row: {
10932
+ attempts: number;
10933
+ batch_key: string | null;
10934
+ cart_id: string | null;
10935
+ created_at: string;
10936
+ error: string | null;
10937
+ error_code: string | null;
10938
+ fulfillment_order_id: string | null;
10939
+ id: string;
10940
+ locked_until: string | null;
10941
+ next_attempt_at: string | null;
10942
+ order_id: string | null;
10943
+ order_number: string | null;
10944
+ print_job_id: string | null;
10945
+ printer_id: string | null;
10946
+ retry_class: string | null;
10947
+ slip_job_id: string;
10948
+ status: string;
10949
+ updated_at: string;
10950
+ };
10951
+ Insert: {
10952
+ attempts?: number;
10953
+ batch_key?: string | null;
10954
+ cart_id?: string | null;
10955
+ created_at?: string;
10956
+ error?: string | null;
10957
+ error_code?: string | null;
10958
+ fulfillment_order_id?: string | null;
10959
+ id?: string;
10960
+ locked_until?: string | null;
10961
+ next_attempt_at?: string | null;
10962
+ order_id?: string | null;
10963
+ order_number?: string | null;
10964
+ print_job_id?: string | null;
10965
+ printer_id?: string | null;
10966
+ retry_class?: string | null;
10967
+ slip_job_id: string;
10968
+ status?: string;
10969
+ updated_at?: string;
10970
+ };
10971
+ Update: {
10972
+ attempts?: number;
10973
+ batch_key?: string | null;
10974
+ cart_id?: string | null;
10975
+ created_at?: string;
10976
+ error?: string | null;
10977
+ error_code?: string | null;
10978
+ fulfillment_order_id?: string | null;
10979
+ id?: string;
10980
+ locked_until?: string | null;
10981
+ next_attempt_at?: string | null;
10982
+ order_id?: string | null;
10983
+ order_number?: string | null;
10984
+ print_job_id?: string | null;
10985
+ printer_id?: string | null;
10986
+ retry_class?: string | null;
10987
+ slip_job_id?: string;
10988
+ status?: string;
10989
+ updated_at?: string;
10990
+ };
10991
+ Relationships: [];
10992
+ };
10705
10993
  logistics_staff_planning: {
10706
10994
  Row: {
10707
10995
  created_at: string;
@@ -11035,6 +11323,24 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
11035
11323
  };
11036
11324
  Relationships: [];
11037
11325
  };
11326
+ logistics_time_settings: {
11327
+ Row: {
11328
+ id: boolean;
11329
+ timezone: string;
11330
+ updated_at: string;
11331
+ };
11332
+ Insert: {
11333
+ id?: boolean;
11334
+ timezone: string;
11335
+ updated_at?: string;
11336
+ };
11337
+ Update: {
11338
+ id?: boolean;
11339
+ timezone?: string;
11340
+ updated_at?: string;
11341
+ };
11342
+ Relationships: [];
11343
+ };
11038
11344
  logistics_variables: {
11039
11345
  Row: {
11040
11346
  created_at: string;
@@ -13425,6 +13731,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13425
13731
  customer_name: string;
13426
13732
  deleted_at: string | null;
13427
13733
  delivery_date: string | null;
13734
+ floriday_order_group_key: string | null;
13428
13735
  floriday_sales_order_id: string | null;
13429
13736
  id: string;
13430
13737
  invoice_due_at: string | null;
@@ -13452,6 +13759,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13452
13759
  customer_name?: string;
13453
13760
  deleted_at?: string | null;
13454
13761
  delivery_date?: string | null;
13762
+ floriday_order_group_key?: string | null;
13455
13763
  floriday_sales_order_id?: string | null;
13456
13764
  id?: string;
13457
13765
  invoice_due_at?: string | null;
@@ -13479,6 +13787,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13479
13787
  customer_name?: string;
13480
13788
  deleted_at?: string | null;
13481
13789
  delivery_date?: string | null;
13790
+ floriday_order_group_key?: string | null;
13482
13791
  floriday_sales_order_id?: string | null;
13483
13792
  id?: string;
13484
13793
  invoice_due_at?: string | null;
@@ -23142,6 +23451,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23142
23451
  };
23143
23452
  Returns: string;
23144
23453
  };
23454
+ logistics_cart_checkin_at: {
23455
+ Args: {
23456
+ p_cart_id: string;
23457
+ };
23458
+ Returns: string;
23459
+ };
23145
23460
  logistics_cart_handled: {
23146
23461
  Args: {
23147
23462
  p_cart_index: number;
@@ -23175,10 +23490,22 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23175
23490
  task_status: string;
23176
23491
  }[];
23177
23492
  };
23493
+ logistics_cart_is_full: {
23494
+ Args: {
23495
+ p_cart_id: string;
23496
+ };
23497
+ Returns: boolean;
23498
+ };
23178
23499
  logistics_cart_layout_method: {
23179
23500
  Args: never;
23180
23501
  Returns: import("../integrations/supabase/types").Json;
23181
23502
  };
23503
+ logistics_cart_order_refs: {
23504
+ Args: {
23505
+ p_cart_id: string;
23506
+ };
23507
+ Returns: string[];
23508
+ };
23182
23509
  logistics_cart_plan_overview: {
23183
23510
  Args: {
23184
23511
  p_days?: number;
@@ -23198,6 +23525,18 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23198
23525
  };
23199
23526
  Returns: import("../integrations/supabase/types").Json;
23200
23527
  };
23528
+ logistics_cart_release_reason: {
23529
+ Args: {
23530
+ p_cart_id: string;
23531
+ };
23532
+ Returns: string;
23533
+ };
23534
+ logistics_cart_released: {
23535
+ Args: {
23536
+ p_cart_id: string;
23537
+ };
23538
+ Returns: boolean;
23539
+ };
23201
23540
  logistics_cart_seq: {
23202
23541
  Args: {
23203
23542
  p_order_uuid?: string;
@@ -23248,6 +23587,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23248
23587
  unit_ref: string;
23249
23588
  }[];
23250
23589
  };
23590
+ logistics_carts_per_print: {
23591
+ Args: never;
23592
+ Returns: number;
23593
+ };
23251
23594
  logistics_check_order_allowed: {
23252
23595
  Args: {
23253
23596
  p_lines: import("../integrations/supabase/types").Json;
@@ -23351,6 +23694,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23351
23694
  isSetofReturn: false;
23352
23695
  };
23353
23696
  };
23697
+ logistics_cleanup_orphan_print_jobs: {
23698
+ Args: never;
23699
+ Returns: import("../integrations/supabase/types").Json;
23700
+ };
23354
23701
  logistics_complete_task: {
23355
23702
  Args: {
23356
23703
  p_result?: import("../integrations/supabase/types").Json;
@@ -23413,6 +23760,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23413
23760
  station_carts: number;
23414
23761
  }[];
23415
23762
  };
23763
+ logistics_control_complete_cart: {
23764
+ Args: {
23765
+ p_cart_id: string;
23766
+ };
23767
+ Returns: number;
23768
+ };
23416
23769
  logistics_control_scan_approve: {
23417
23770
  Args: {
23418
23771
  p_allow_reprint?: boolean;
@@ -23492,6 +23845,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23492
23845
  Args: never;
23493
23846
  Returns: import("../integrations/supabase/types").Json;
23494
23847
  };
23848
+ logistics_day_windows: {
23849
+ Args: {
23850
+ p_day: string;
23851
+ };
23852
+ Returns: {
23853
+ win_end: string;
23854
+ win_start: string;
23855
+ }[];
23856
+ };
23495
23857
  logistics_delay_customer_email: {
23496
23858
  Args: {
23497
23859
  p_customer: string;
@@ -23559,6 +23921,17 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23559
23921
  };
23560
23922
  Returns: import("../integrations/supabase/types").Json;
23561
23923
  };
23924
+ logistics_enqueue_shipping_note_with_slip: {
23925
+ Args: {
23926
+ _cart_id: string;
23927
+ _is_herprint: boolean;
23928
+ _printer_id: string;
23929
+ _queue_item_id: string;
23930
+ _session_id: string;
23931
+ _slip_job_id: string;
23932
+ };
23933
+ Returns: string;
23934
+ };
23562
23935
  logistics_enqueue_sticker_with_slip: {
23563
23936
  Args: {
23564
23937
  _cart_id: string;
@@ -23576,6 +23949,14 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23576
23949
  };
23577
23950
  Returns: string;
23578
23951
  };
23952
+ logistics_ensure_pick_data: {
23953
+ Args: {
23954
+ p_event_id?: string;
23955
+ p_missing?: import("../integrations/supabase/types").Json;
23956
+ p_ref: string;
23957
+ };
23958
+ Returns: import("../integrations/supabase/types").Json;
23959
+ };
23579
23960
  logistics_fail_task: {
23580
23961
  Args: {
23581
23962
  p_error: string;
@@ -23697,6 +24078,32 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23697
24078
  };
23698
24079
  Returns: string;
23699
24080
  };
24081
+ logistics_floriday_gate_status: {
24082
+ Args: never;
24083
+ Returns: import("../integrations/supabase/types").Json;
24084
+ };
24085
+ logistics_floriday_log_refusal: {
24086
+ Args: {
24087
+ _action?: string;
24088
+ _module?: string;
24089
+ _order_ref: string;
24090
+ _reason: string;
24091
+ _shell?: string;
24092
+ };
24093
+ Returns: undefined;
24094
+ };
24095
+ logistics_floriday_log_send: {
24096
+ Args: {
24097
+ _action: string;
24098
+ _detail?: string;
24099
+ _http_status?: number;
24100
+ _module?: string;
24101
+ _ok: boolean;
24102
+ _order_ref: string;
24103
+ _shell?: string;
24104
+ };
24105
+ Returns: undefined;
24106
+ };
23700
24107
  logistics_floriday_order_approved: {
23701
24108
  Args: {
23702
24109
  _order_ref: string;
@@ -23721,6 +24128,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23721
24128
  Args: never;
23722
24129
  Returns: boolean;
23723
24130
  };
24131
+ logistics_floriday_stock_updates_enabled: {
24132
+ Args: never;
24133
+ Returns: boolean;
24134
+ };
24135
+ logistics_floriday_write_allowed: {
24136
+ Args: {
24137
+ _action: string;
24138
+ };
24139
+ Returns: boolean;
24140
+ };
23724
24141
  logistics_fulfill_barcode_requests: {
23725
24142
  Args: {
23726
24143
  p_limit?: number;
@@ -23763,6 +24180,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23763
24180
  };
23764
24181
  Returns: number;
23765
24182
  };
24183
+ logistics_merge_partial_carts: {
24184
+ Args: {
24185
+ p_limit?: number;
24186
+ };
24187
+ Returns: import("../integrations/supabase/types").Json;
24188
+ };
23766
24189
  logistics_next_workday_date: {
23767
24190
  Args: {
23768
24191
  p_date: string;
@@ -23789,6 +24212,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23789
24212
  };
23790
24213
  Returns: string;
23791
24214
  };
24215
+ logistics_opening_timezone: {
24216
+ Args: never;
24217
+ Returns: string;
24218
+ };
23792
24219
  logistics_order_cart_count: {
23793
24220
  Args: {
23794
24221
  p_order_ref: string;
@@ -23873,6 +24300,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23873
24300
  Args: never;
23874
24301
  Returns: import("../integrations/supabase/types").Json;
23875
24302
  };
24303
+ logistics_pick_partial_mode: {
24304
+ Args: never;
24305
+ Returns: string;
24306
+ };
23876
24307
  logistics_pick_start_estimate: {
23877
24308
  Args: {
23878
24309
  p_order: import("../integrations/supabase/types").Json;
@@ -23984,6 +24415,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23984
24415
  };
23985
24416
  Returns: number;
23986
24417
  };
24418
+ logistics_prepare_pick_documents: {
24419
+ Args: {
24420
+ p_limit?: number;
24421
+ };
24422
+ Returns: import("../integrations/supabase/types").Json;
24423
+ };
23987
24424
  logistics_prune_buffer_member_queue: {
23988
24425
  Args: never;
23989
24426
  Returns: number;
@@ -24024,6 +24461,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24024
24461
  Args: never;
24025
24462
  Returns: import("../integrations/supabase/types").Json;
24026
24463
  };
24464
+ logistics_refresh_pick_queue_status: {
24465
+ Args: {
24466
+ p_ref: string;
24467
+ };
24468
+ Returns: number;
24469
+ };
24027
24470
  logistics_refresh_pickup_moments: {
24028
24471
  Args: {
24029
24472
  p_weeks?: number;
@@ -24036,6 +24479,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24036
24479
  };
24037
24480
  Returns: import("../integrations/supabase/types").Json;
24038
24481
  };
24482
+ logistics_replan_all_force: {
24483
+ Args: {
24484
+ p_reason?: string;
24485
+ };
24486
+ Returns: import("../integrations/supabase/types").Json;
24487
+ };
24039
24488
  logistics_report_delay: {
24040
24489
  Args: {
24041
24490
  p_expected_date?: string;
@@ -24180,6 +24629,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24180
24629
  };
24181
24630
  Returns: string;
24182
24631
  };
24632
+ logistics_shipping_note_follows_slip: {
24633
+ Args: never;
24634
+ Returns: boolean;
24635
+ };
24183
24636
  logistics_shipping_note_from_barcode: {
24184
24637
  Args: {
24185
24638
  p_allow_reprint?: boolean;
@@ -24188,10 +24641,76 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24188
24641
  };
24189
24642
  Returns: import("../integrations/supabase/types").Json;
24190
24643
  };
24644
+ logistics_shipping_note_job_for_slip: {
24645
+ Args: {
24646
+ _slip_job_id: string;
24647
+ };
24648
+ Returns: string;
24649
+ };
24650
+ logistics_slip_note_claim: {
24651
+ Args: {
24652
+ _lease_seconds?: number;
24653
+ _limit?: number;
24654
+ };
24655
+ Returns: {
24656
+ attempts: number;
24657
+ batch_key: string | null;
24658
+ cart_id: string | null;
24659
+ created_at: string;
24660
+ error: string | null;
24661
+ error_code: string | null;
24662
+ fulfillment_order_id: string | null;
24663
+ id: string;
24664
+ locked_until: string | null;
24665
+ next_attempt_at: string | null;
24666
+ order_id: string | null;
24667
+ order_number: string | null;
24668
+ print_job_id: string | null;
24669
+ printer_id: string | null;
24670
+ retry_class: string | null;
24671
+ slip_job_id: string;
24672
+ status: string;
24673
+ updated_at: string;
24674
+ }[];
24675
+ SetofOptions: {
24676
+ from: "*";
24677
+ to: "logistics_slip_shipping_note";
24678
+ isOneToOne: false;
24679
+ isSetofReturn: true;
24680
+ };
24681
+ };
24682
+ logistics_slip_note_finish: {
24683
+ Args: {
24684
+ _error?: string;
24685
+ _error_code?: string;
24686
+ _fulfillment_order_id?: string;
24687
+ _id: string;
24688
+ _ok: boolean;
24689
+ _print_job_id?: string;
24690
+ _status?: string;
24691
+ };
24692
+ Returns: undefined;
24693
+ };
24694
+ logistics_slip_note_keep_waiting: {
24695
+ Args: {
24696
+ _class?: string;
24697
+ _id: string;
24698
+ _reason: string;
24699
+ };
24700
+ Returns: undefined;
24701
+ };
24191
24702
  logistics_sticker_follows_slip: {
24192
24703
  Args: never;
24193
24704
  Returns: boolean;
24194
24705
  };
24706
+ logistics_subtract_working_minutes: {
24707
+ Args: {
24708
+ p_deadline: string;
24709
+ p_max_workdays?: number;
24710
+ p_minutes: number;
24711
+ };
24712
+ Returns: import("../integrations/supabase/types").Json;
24713
+ };
24195
24714
  logistics_supersede_stale_tasks: {
24196
24715
  Args: {
24197
24716
  p_keep: string[];
@@ -24228,6 +24747,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24228
24747
  Args: never;
24229
24748
  Returns: string;
24230
24749
  };
24750
+ logistics_timezone_options: {
24751
+ Args: never;
24752
+ Returns: {
24753
+ name: string;
24754
+ }[];
24755
+ };
24231
24756
  logistics_upsert_task: {
24232
24757
  Args: {
24233
24758
  p_buffer_ref: string;
@@ -24247,6 +24772,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24247
24772
  };
24248
24773
  Returns: string;
24249
24774
  };
24775
+ logistics_valid_timezone: {
24776
+ Args: {
24777
+ _tz: string;
24778
+ };
24779
+ Returns: boolean;
24780
+ };
24781
+ logistics_working_hours_status: {
24782
+ Args: never;
24783
+ Returns: import("../integrations/supabase/types").Json;
24784
+ };
24250
24785
  logistics_write_buffer_layer_positions: {
24251
24786
  Args: {
24252
24787
  p_buffer_id: string;
@@ -25692,6 +26227,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25692
26227
  };
25693
26228
  Returns: number;
25694
26229
  };
26230
+ schedule_floriday_catalog_prices_sync: {
26231
+ Args: {
26232
+ p_apikey: string;
26233
+ p_url: string;
26234
+ };
26235
+ Returns: number;
26236
+ };
25695
26237
  schedule_floriday_clock_presales_sync: {
25696
26238
  Args: {
25697
26239
  p_apikey: string;
@@ -25992,6 +26534,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25992
26534
  };
25993
26535
  Returns: undefined;
25994
26536
  };
26537
+ sync_floriday_prices_into_price_groups: {
26538
+ Args: never;
26539
+ Returns: number;
26540
+ };
25995
26541
  sync_layer_stock: {
25996
26542
  Args: {
25997
26543
  p_product_id: string;
@@ -32011,6 +32557,84 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
32011
32557
  referencedColumns: ["id"];
32012
32558
  }];
32013
32559
  };
32560
+ floriday_catalog_prices_cache: {
32561
+ Row: {
32562
+ connection_id: string;
32563
+ created_at: string;
32564
+ currency: string;
32565
+ id: string;
32566
+ is_deleted: boolean;
32567
+ price: number | null;
32568
+ price_group_id: string | null;
32569
+ price_group_name: string | null;
32570
+ price_type: string;
32571
+ raw: import("../integrations/supabase/types").Json | null;
32572
+ sales_unit: string | null;
32573
+ sequence_number: number;
32574
+ supplier_article_code: string | null;
32575
+ supply_line_id: string;
32576
+ synced_at: string;
32577
+ trade_item_id: string | null;
32578
+ updated_at: string;
32579
+ valid_from: string | null;
32580
+ valid_to: string | null;
32581
+ week: number | null;
32582
+ year: number | null;
32583
+ };
32584
+ Insert: {
32585
+ connection_id: string;
32586
+ created_at?: string;
32587
+ currency?: string;
32588
+ id?: string;
32589
+ is_deleted?: boolean;
32590
+ price?: number | null;
32591
+ price_group_id?: string | null;
32592
+ price_group_name?: string | null;
32593
+ price_type?: string;
32594
+ raw?: import("../integrations/supabase/types").Json | null;
32595
+ sales_unit?: string | null;
32596
+ sequence_number?: number;
32597
+ supplier_article_code?: string | null;
32598
+ supply_line_id: string;
32599
+ synced_at?: string;
32600
+ trade_item_id?: string | null;
32601
+ updated_at?: string;
32602
+ valid_from?: string | null;
32603
+ valid_to?: string | null;
32604
+ week?: number | null;
32605
+ year?: number | null;
32606
+ };
32607
+ Update: {
32608
+ connection_id?: string;
32609
+ created_at?: string;
32610
+ currency?: string;
32611
+ id?: string;
32612
+ is_deleted?: boolean;
32613
+ price?: number | null;
32614
+ price_group_id?: string | null;
32615
+ price_group_name?: string | null;
32616
+ price_type?: string;
32617
+ raw?: import("../integrations/supabase/types").Json | null;
32618
+ sales_unit?: string | null;
32619
+ sequence_number?: number;
32620
+ supplier_article_code?: string | null;
32621
+ supply_line_id?: string;
32622
+ synced_at?: string;
32623
+ trade_item_id?: string | null;
32624
+ updated_at?: string;
32625
+ valid_from?: string | null;
32626
+ valid_to?: string | null;
32627
+ week?: number | null;
32628
+ year?: number | null;
32629
+ };
32630
+ Relationships: [{
32631
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32632
+ columns: ["connection_id"];
32633
+ isOneToOne: false;
32634
+ referencedRelation: "floriday_connections";
32635
+ referencedColumns: ["id"];
32636
+ }];
32637
+ };
32014
32638
  floriday_clock_presales_cache: {
32015
32639
  Row: {
32016
32640
  buyer_organization_id: string | null;
@@ -36279,22 +36903,31 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36279
36903
  };
36280
36904
  logistics_floriday_push_refusals: {
36281
36905
  Row: {
36906
+ action: string | null;
36282
36907
  created_at: string;
36283
36908
  id: string;
36284
36909
  order_ref: string;
36285
36910
  reason: string;
36911
+ source_module: string | null;
36912
+ source_shell: string | null;
36286
36913
  };
36287
36914
  Insert: {
36915
+ action?: string | null;
36288
36916
  created_at?: string;
36289
36917
  id?: string;
36290
36918
  order_ref: string;
36291
36919
  reason: string;
36920
+ source_module?: string | null;
36921
+ source_shell?: string | null;
36292
36922
  };
36293
36923
  Update: {
36924
+ action?: string | null;
36294
36925
  created_at?: string;
36295
36926
  id?: string;
36296
36927
  order_ref?: string;
36297
36928
  reason?: string;
36929
+ source_module?: string | null;
36930
+ source_shell?: string | null;
36298
36931
  };
36299
36932
  Relationships: [];
36300
36933
  };
@@ -36373,6 +37006,42 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36373
37006
  };
36374
37007
  Relationships: [];
36375
37008
  };
37009
+ logistics_floriday_status_sends: {
37010
+ Row: {
37011
+ action: string;
37012
+ created_at: string;
37013
+ detail: string | null;
37014
+ http_status: number | null;
37015
+ id: string;
37016
+ ok: boolean;
37017
+ order_ref: string;
37018
+ source_module: string | null;
37019
+ source_shell: string | null;
37020
+ };
37021
+ Insert: {
37022
+ action: string;
37023
+ created_at?: string;
37024
+ detail?: string | null;
37025
+ http_status?: number | null;
37026
+ id?: string;
37027
+ ok?: boolean;
37028
+ order_ref: string;
37029
+ source_module?: string | null;
37030
+ source_shell?: string | null;
37031
+ };
37032
+ Update: {
37033
+ action?: string;
37034
+ created_at?: string;
37035
+ detail?: string | null;
37036
+ http_status?: number | null;
37037
+ id?: string;
37038
+ ok?: boolean;
37039
+ order_ref?: string;
37040
+ source_module?: string | null;
37041
+ source_shell?: string | null;
37042
+ };
37043
+ Relationships: [];
37044
+ };
36376
37045
  logistics_formulas: {
36377
37046
  Row: {
36378
37047
  created_at: string;
@@ -36445,6 +37114,108 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36445
37114
  };
36446
37115
  Relationships: [];
36447
37116
  };
37117
+ logistics_opening_exceptions: {
37118
+ Row: {
37119
+ closes: string | null;
37120
+ created_at: string;
37121
+ day: string;
37122
+ id: string;
37123
+ is_closed: boolean;
37124
+ note: string | null;
37125
+ opens: string | null;
37126
+ };
37127
+ Insert: {
37128
+ closes?: string | null;
37129
+ created_at?: string;
37130
+ day: string;
37131
+ id?: string;
37132
+ is_closed?: boolean;
37133
+ note?: string | null;
37134
+ opens?: string | null;
37135
+ };
37136
+ Update: {
37137
+ closes?: string | null;
37138
+ created_at?: string;
37139
+ day?: string;
37140
+ id?: string;
37141
+ is_closed?: boolean;
37142
+ note?: string | null;
37143
+ opens?: string | null;
37144
+ };
37145
+ Relationships: [];
37146
+ };
37147
+ logistics_opening_hours: {
37148
+ Row: {
37149
+ closes: string;
37150
+ created_at: string;
37151
+ id: string;
37152
+ is_active: boolean;
37153
+ note: string | null;
37154
+ opens: string;
37155
+ weekday: number;
37156
+ };
37157
+ Insert: {
37158
+ closes: string;
37159
+ created_at?: string;
37160
+ id?: string;
37161
+ is_active?: boolean;
37162
+ note?: string | null;
37163
+ opens: string;
37164
+ weekday: number;
37165
+ };
37166
+ Update: {
37167
+ closes?: string;
37168
+ created_at?: string;
37169
+ id?: string;
37170
+ is_active?: boolean;
37171
+ note?: string | null;
37172
+ opens?: string;
37173
+ weekday?: number;
37174
+ };
37175
+ Relationships: [];
37176
+ };
37177
+ logistics_pick_data_requests: {
37178
+ Row: {
37179
+ actions: import("../integrations/supabase/types").Json;
37180
+ created_at: string;
37181
+ event_id: string | null;
37182
+ finished_at: string | null;
37183
+ id: string;
37184
+ missing: import("../integrations/supabase/types").Json;
37185
+ order_ref: string;
37186
+ reason: string | null;
37187
+ result: import("../integrations/supabase/types").Json | null;
37188
+ status: string;
37189
+ unit_ref: string | null;
37190
+ };
37191
+ Insert: {
37192
+ actions?: import("../integrations/supabase/types").Json;
37193
+ created_at?: string;
37194
+ event_id?: string | null;
37195
+ finished_at?: string | null;
37196
+ id?: string;
37197
+ missing?: import("../integrations/supabase/types").Json;
37198
+ order_ref: string;
37199
+ reason?: string | null;
37200
+ result?: import("../integrations/supabase/types").Json | null;
37201
+ status?: string;
37202
+ unit_ref?: string | null;
37203
+ };
37204
+ Update: {
37205
+ actions?: import("../integrations/supabase/types").Json;
37206
+ created_at?: string;
37207
+ event_id?: string | null;
37208
+ finished_at?: string | null;
37209
+ id?: string;
37210
+ missing?: import("../integrations/supabase/types").Json;
37211
+ order_ref?: string;
37212
+ reason?: string | null;
37213
+ result?: import("../integrations/supabase/types").Json | null;
37214
+ status?: string;
37215
+ unit_ref?: string | null;
37216
+ };
37217
+ Relationships: [];
37218
+ };
36448
37219
  logistics_pickup_moments: {
36449
37220
  Row: {
36450
37221
  carrier_ref: string | null;
@@ -36904,6 +37675,69 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36904
37675
  };
36905
37676
  Relationships: [];
36906
37677
  };
37678
+ logistics_slip_shipping_note: {
37679
+ Row: {
37680
+ attempts: number;
37681
+ batch_key: string | null;
37682
+ cart_id: string | null;
37683
+ created_at: string;
37684
+ error: string | null;
37685
+ error_code: string | null;
37686
+ fulfillment_order_id: string | null;
37687
+ id: string;
37688
+ locked_until: string | null;
37689
+ next_attempt_at: string | null;
37690
+ order_id: string | null;
37691
+ order_number: string | null;
37692
+ print_job_id: string | null;
37693
+ printer_id: string | null;
37694
+ retry_class: string | null;
37695
+ slip_job_id: string;
37696
+ status: string;
37697
+ updated_at: string;
37698
+ };
37699
+ Insert: {
37700
+ attempts?: number;
37701
+ batch_key?: string | null;
37702
+ cart_id?: string | null;
37703
+ created_at?: string;
37704
+ error?: string | null;
37705
+ error_code?: string | null;
37706
+ fulfillment_order_id?: string | null;
37707
+ id?: string;
37708
+ locked_until?: string | null;
37709
+ next_attempt_at?: string | null;
37710
+ order_id?: string | null;
37711
+ order_number?: string | null;
37712
+ print_job_id?: string | null;
37713
+ printer_id?: string | null;
37714
+ retry_class?: string | null;
37715
+ slip_job_id: string;
37716
+ status?: string;
37717
+ updated_at?: string;
37718
+ };
37719
+ Update: {
37720
+ attempts?: number;
37721
+ batch_key?: string | null;
37722
+ cart_id?: string | null;
37723
+ created_at?: string;
37724
+ error?: string | null;
37725
+ error_code?: string | null;
37726
+ fulfillment_order_id?: string | null;
37727
+ id?: string;
37728
+ locked_until?: string | null;
37729
+ next_attempt_at?: string | null;
37730
+ order_id?: string | null;
37731
+ order_number?: string | null;
37732
+ print_job_id?: string | null;
37733
+ printer_id?: string | null;
37734
+ retry_class?: string | null;
37735
+ slip_job_id?: string;
37736
+ status?: string;
37737
+ updated_at?: string;
37738
+ };
37739
+ Relationships: [];
37740
+ };
36907
37741
  logistics_staff_planning: {
36908
37742
  Row: {
36909
37743
  created_at: string;
@@ -37237,6 +38071,24 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
37237
38071
  };
37238
38072
  Relationships: [];
37239
38073
  };
38074
+ logistics_time_settings: {
38075
+ Row: {
38076
+ id: boolean;
38077
+ timezone: string;
38078
+ updated_at: string;
38079
+ };
38080
+ Insert: {
38081
+ id?: boolean;
38082
+ timezone: string;
38083
+ updated_at?: string;
38084
+ };
38085
+ Update: {
38086
+ id?: boolean;
38087
+ timezone?: string;
38088
+ updated_at?: string;
38089
+ };
38090
+ Relationships: [];
38091
+ };
37240
38092
  logistics_variables: {
37241
38093
  Row: {
37242
38094
  created_at: string;
@@ -39627,6 +40479,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39627
40479
  customer_name: string;
39628
40480
  deleted_at: string | null;
39629
40481
  delivery_date: string | null;
40482
+ floriday_order_group_key: string | null;
39630
40483
  floriday_sales_order_id: string | null;
39631
40484
  id: string;
39632
40485
  invoice_due_at: string | null;
@@ -39654,6 +40507,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39654
40507
  customer_name?: string;
39655
40508
  deleted_at?: string | null;
39656
40509
  delivery_date?: string | null;
40510
+ floriday_order_group_key?: string | null;
39657
40511
  floriday_sales_order_id?: string | null;
39658
40512
  id?: string;
39659
40513
  invoice_due_at?: string | null;
@@ -39681,6 +40535,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39681
40535
  customer_name?: string;
39682
40536
  deleted_at?: string | null;
39683
40537
  delivery_date?: string | null;
40538
+ floriday_order_group_key?: string | null;
39684
40539
  floriday_sales_order_id?: string | null;
39685
40540
  id?: string;
39686
40541
  invoice_due_at?: string | null;
@@ -49344,6 +50199,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49344
50199
  };
49345
50200
  Returns: string;
49346
50201
  };
50202
+ logistics_cart_checkin_at: {
50203
+ Args: {
50204
+ p_cart_id: string;
50205
+ };
50206
+ Returns: string;
50207
+ };
49347
50208
  logistics_cart_handled: {
49348
50209
  Args: {
49349
50210
  p_cart_index: number;
@@ -49377,10 +50238,22 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49377
50238
  task_status: string;
49378
50239
  }[];
49379
50240
  };
50241
+ logistics_cart_is_full: {
50242
+ Args: {
50243
+ p_cart_id: string;
50244
+ };
50245
+ Returns: boolean;
50246
+ };
49380
50247
  logistics_cart_layout_method: {
49381
50248
  Args: never;
49382
50249
  Returns: import("../integrations/supabase/types").Json;
49383
50250
  };
50251
+ logistics_cart_order_refs: {
50252
+ Args: {
50253
+ p_cart_id: string;
50254
+ };
50255
+ Returns: string[];
50256
+ };
49384
50257
  logistics_cart_plan_overview: {
49385
50258
  Args: {
49386
50259
  p_days?: number;
@@ -49400,6 +50273,18 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49400
50273
  };
49401
50274
  Returns: import("../integrations/supabase/types").Json;
49402
50275
  };
50276
+ logistics_cart_release_reason: {
50277
+ Args: {
50278
+ p_cart_id: string;
50279
+ };
50280
+ Returns: string;
50281
+ };
50282
+ logistics_cart_released: {
50283
+ Args: {
50284
+ p_cart_id: string;
50285
+ };
50286
+ Returns: boolean;
50287
+ };
49403
50288
  logistics_cart_seq: {
49404
50289
  Args: {
49405
50290
  p_order_uuid?: string;
@@ -49450,6 +50335,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49450
50335
  unit_ref: string;
49451
50336
  }[];
49452
50337
  };
50338
+ logistics_carts_per_print: {
50339
+ Args: never;
50340
+ Returns: number;
50341
+ };
49453
50342
  logistics_check_order_allowed: {
49454
50343
  Args: {
49455
50344
  p_lines: import("../integrations/supabase/types").Json;
@@ -49553,6 +50442,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49553
50442
  isSetofReturn: false;
49554
50443
  };
49555
50444
  };
50445
+ logistics_cleanup_orphan_print_jobs: {
50446
+ Args: never;
50447
+ Returns: import("../integrations/supabase/types").Json;
50448
+ };
49556
50449
  logistics_complete_task: {
49557
50450
  Args: {
49558
50451
  p_result?: import("../integrations/supabase/types").Json;
@@ -49615,6 +50508,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49615
50508
  station_carts: number;
49616
50509
  }[];
49617
50510
  };
50511
+ logistics_control_complete_cart: {
50512
+ Args: {
50513
+ p_cart_id: string;
50514
+ };
50515
+ Returns: number;
50516
+ };
49618
50517
  logistics_control_scan_approve: {
49619
50518
  Args: {
49620
50519
  p_allow_reprint?: boolean;
@@ -49694,6 +50593,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49694
50593
  Args: never;
49695
50594
  Returns: import("../integrations/supabase/types").Json;
49696
50595
  };
50596
+ logistics_day_windows: {
50597
+ Args: {
50598
+ p_day: string;
50599
+ };
50600
+ Returns: {
50601
+ win_end: string;
50602
+ win_start: string;
50603
+ }[];
50604
+ };
49697
50605
  logistics_delay_customer_email: {
49698
50606
  Args: {
49699
50607
  p_customer: string;
@@ -49761,6 +50669,17 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49761
50669
  };
49762
50670
  Returns: import("../integrations/supabase/types").Json;
49763
50671
  };
50672
+ logistics_enqueue_shipping_note_with_slip: {
50673
+ Args: {
50674
+ _cart_id: string;
50675
+ _is_herprint: boolean;
50676
+ _printer_id: string;
50677
+ _queue_item_id: string;
50678
+ _session_id: string;
50679
+ _slip_job_id: string;
50680
+ };
50681
+ Returns: string;
50682
+ };
49764
50683
  logistics_enqueue_sticker_with_slip: {
49765
50684
  Args: {
49766
50685
  _cart_id: string;
@@ -49778,6 +50697,14 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49778
50697
  };
49779
50698
  Returns: string;
49780
50699
  };
50700
+ logistics_ensure_pick_data: {
50701
+ Args: {
50702
+ p_event_id?: string;
50703
+ p_missing?: import("../integrations/supabase/types").Json;
50704
+ p_ref: string;
50705
+ };
50706
+ Returns: import("../integrations/supabase/types").Json;
50707
+ };
49781
50708
  logistics_fail_task: {
49782
50709
  Args: {
49783
50710
  p_error: string;
@@ -49899,6 +50826,32 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49899
50826
  };
49900
50827
  Returns: string;
49901
50828
  };
50829
+ logistics_floriday_gate_status: {
50830
+ Args: never;
50831
+ Returns: import("../integrations/supabase/types").Json;
50832
+ };
50833
+ logistics_floriday_log_refusal: {
50834
+ Args: {
50835
+ _action?: string;
50836
+ _module?: string;
50837
+ _order_ref: string;
50838
+ _reason: string;
50839
+ _shell?: string;
50840
+ };
50841
+ Returns: undefined;
50842
+ };
50843
+ logistics_floriday_log_send: {
50844
+ Args: {
50845
+ _action: string;
50846
+ _detail?: string;
50847
+ _http_status?: number;
50848
+ _module?: string;
50849
+ _ok: boolean;
50850
+ _order_ref: string;
50851
+ _shell?: string;
50852
+ };
50853
+ Returns: undefined;
50854
+ };
49902
50855
  logistics_floriday_order_approved: {
49903
50856
  Args: {
49904
50857
  _order_ref: string;
@@ -49923,6 +50876,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49923
50876
  Args: never;
49924
50877
  Returns: boolean;
49925
50878
  };
50879
+ logistics_floriday_stock_updates_enabled: {
50880
+ Args: never;
50881
+ Returns: boolean;
50882
+ };
50883
+ logistics_floriday_write_allowed: {
50884
+ Args: {
50885
+ _action: string;
50886
+ };
50887
+ Returns: boolean;
50888
+ };
49926
50889
  logistics_fulfill_barcode_requests: {
49927
50890
  Args: {
49928
50891
  p_limit?: number;
@@ -49965,6 +50928,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49965
50928
  };
49966
50929
  Returns: number;
49967
50930
  };
50931
+ logistics_merge_partial_carts: {
50932
+ Args: {
50933
+ p_limit?: number;
50934
+ };
50935
+ Returns: import("../integrations/supabase/types").Json;
50936
+ };
49968
50937
  logistics_next_workday_date: {
49969
50938
  Args: {
49970
50939
  p_date: string;
@@ -49991,6 +50960,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49991
50960
  };
49992
50961
  Returns: string;
49993
50962
  };
50963
+ logistics_opening_timezone: {
50964
+ Args: never;
50965
+ Returns: string;
50966
+ };
49994
50967
  logistics_order_cart_count: {
49995
50968
  Args: {
49996
50969
  p_order_ref: string;
@@ -50075,6 +51048,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50075
51048
  Args: never;
50076
51049
  Returns: import("../integrations/supabase/types").Json;
50077
51050
  };
51051
+ logistics_pick_partial_mode: {
51052
+ Args: never;
51053
+ Returns: string;
51054
+ };
50078
51055
  logistics_pick_start_estimate: {
50079
51056
  Args: {
50080
51057
  p_order: import("../integrations/supabase/types").Json;
@@ -50186,6 +51163,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50186
51163
  };
50187
51164
  Returns: number;
50188
51165
  };
51166
+ logistics_prepare_pick_documents: {
51167
+ Args: {
51168
+ p_limit?: number;
51169
+ };
51170
+ Returns: import("../integrations/supabase/types").Json;
51171
+ };
50189
51172
  logistics_prune_buffer_member_queue: {
50190
51173
  Args: never;
50191
51174
  Returns: number;
@@ -50226,6 +51209,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50226
51209
  Args: never;
50227
51210
  Returns: import("../integrations/supabase/types").Json;
50228
51211
  };
51212
+ logistics_refresh_pick_queue_status: {
51213
+ Args: {
51214
+ p_ref: string;
51215
+ };
51216
+ Returns: number;
51217
+ };
50229
51218
  logistics_refresh_pickup_moments: {
50230
51219
  Args: {
50231
51220
  p_weeks?: number;
@@ -50238,6 +51227,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50238
51227
  };
50239
51228
  Returns: import("../integrations/supabase/types").Json;
50240
51229
  };
51230
+ logistics_replan_all_force: {
51231
+ Args: {
51232
+ p_reason?: string;
51233
+ };
51234
+ Returns: import("../integrations/supabase/types").Json;
51235
+ };
50241
51236
  logistics_report_delay: {
50242
51237
  Args: {
50243
51238
  p_expected_date?: string;
@@ -50382,6 +51377,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50382
51377
  };
50383
51378
  Returns: string;
50384
51379
  };
51380
+ logistics_shipping_note_follows_slip: {
51381
+ Args: never;
51382
+ Returns: boolean;
51383
+ };
50385
51384
  logistics_shipping_note_from_barcode: {
50386
51385
  Args: {
50387
51386
  p_allow_reprint?: boolean;
@@ -50390,10 +51389,76 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50390
51389
  };
50391
51390
  Returns: import("../integrations/supabase/types").Json;
50392
51391
  };
51392
+ logistics_shipping_note_job_for_slip: {
51393
+ Args: {
51394
+ _slip_job_id: string;
51395
+ };
51396
+ Returns: string;
51397
+ };
51398
+ logistics_slip_note_claim: {
51399
+ Args: {
51400
+ _lease_seconds?: number;
51401
+ _limit?: number;
51402
+ };
51403
+ Returns: {
51404
+ attempts: number;
51405
+ batch_key: string | null;
51406
+ cart_id: string | null;
51407
+ created_at: string;
51408
+ error: string | null;
51409
+ error_code: string | null;
51410
+ fulfillment_order_id: string | null;
51411
+ id: string;
51412
+ locked_until: string | null;
51413
+ next_attempt_at: string | null;
51414
+ order_id: string | null;
51415
+ order_number: string | null;
51416
+ print_job_id: string | null;
51417
+ printer_id: string | null;
51418
+ retry_class: string | null;
51419
+ slip_job_id: string;
51420
+ status: string;
51421
+ updated_at: string;
51422
+ }[];
51423
+ SetofOptions: {
51424
+ from: "*";
51425
+ to: "logistics_slip_shipping_note";
51426
+ isOneToOne: false;
51427
+ isSetofReturn: true;
51428
+ };
51429
+ };
51430
+ logistics_slip_note_finish: {
51431
+ Args: {
51432
+ _error?: string;
51433
+ _error_code?: string;
51434
+ _fulfillment_order_id?: string;
51435
+ _id: string;
51436
+ _ok: boolean;
51437
+ _print_job_id?: string;
51438
+ _status?: string;
51439
+ };
51440
+ Returns: undefined;
51441
+ };
51442
+ logistics_slip_note_keep_waiting: {
51443
+ Args: {
51444
+ _class?: string;
51445
+ _id: string;
51446
+ _reason: string;
51447
+ };
51448
+ Returns: undefined;
51449
+ };
50393
51450
  logistics_sticker_follows_slip: {
50394
51451
  Args: never;
50395
51452
  Returns: boolean;
50396
51453
  };
51454
+ logistics_subtract_working_minutes: {
51455
+ Args: {
51456
+ p_deadline: string;
51457
+ p_max_workdays?: number;
51458
+ p_minutes: number;
51459
+ };
51460
+ Returns: import("../integrations/supabase/types").Json;
51461
+ };
50397
51462
  logistics_supersede_stale_tasks: {
50398
51463
  Args: {
50399
51464
  p_keep: string[];
@@ -50430,6 +51495,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50430
51495
  Args: never;
50431
51496
  Returns: string;
50432
51497
  };
51498
+ logistics_timezone_options: {
51499
+ Args: never;
51500
+ Returns: {
51501
+ name: string;
51502
+ }[];
51503
+ };
50433
51504
  logistics_upsert_task: {
50434
51505
  Args: {
50435
51506
  p_buffer_ref: string;
@@ -50449,6 +51520,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50449
51520
  };
50450
51521
  Returns: string;
50451
51522
  };
51523
+ logistics_valid_timezone: {
51524
+ Args: {
51525
+ _tz: string;
51526
+ };
51527
+ Returns: boolean;
51528
+ };
51529
+ logistics_working_hours_status: {
51530
+ Args: never;
51531
+ Returns: import("../integrations/supabase/types").Json;
51532
+ };
50452
51533
  logistics_write_buffer_layer_positions: {
50453
51534
  Args: {
50454
51535
  p_buffer_id: string;
@@ -51894,6 +52975,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51894
52975
  };
51895
52976
  Returns: number;
51896
52977
  };
52978
+ schedule_floriday_catalog_prices_sync: {
52979
+ Args: {
52980
+ p_apikey: string;
52981
+ p_url: string;
52982
+ };
52983
+ Returns: number;
52984
+ };
51897
52985
  schedule_floriday_clock_presales_sync: {
51898
52986
  Args: {
51899
52987
  p_apikey: string;
@@ -52194,6 +53282,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
52194
53282
  };
52195
53283
  Returns: undefined;
52196
53284
  };
53285
+ sync_floriday_prices_into_price_groups: {
53286
+ Args: never;
53287
+ Returns: number;
53288
+ };
52197
53289
  sync_layer_stock: {
52198
53290
  Args: {
52199
53291
  p_product_id: string;