@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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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 publishTradeItem: import("@tanstack/start-client-core").Req
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;
@@ -32015,6 +32561,84 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32015
32561
  referencedColumns: ["id"];
32016
32562
  }];
32017
32563
  };
32564
+ floriday_catalog_prices_cache: {
32565
+ Row: {
32566
+ connection_id: string;
32567
+ created_at: string;
32568
+ currency: string;
32569
+ id: string;
32570
+ is_deleted: boolean;
32571
+ price: number | null;
32572
+ price_group_id: string | null;
32573
+ price_group_name: string | null;
32574
+ price_type: string;
32575
+ raw: import("../integrations/supabase/types").Json | null;
32576
+ sales_unit: string | null;
32577
+ sequence_number: number;
32578
+ supplier_article_code: string | null;
32579
+ supply_line_id: string;
32580
+ synced_at: string;
32581
+ trade_item_id: string | null;
32582
+ updated_at: string;
32583
+ valid_from: string | null;
32584
+ valid_to: string | null;
32585
+ week: number | null;
32586
+ year: number | null;
32587
+ };
32588
+ Insert: {
32589
+ connection_id: string;
32590
+ created_at?: string;
32591
+ currency?: string;
32592
+ id?: string;
32593
+ is_deleted?: boolean;
32594
+ price?: number | null;
32595
+ price_group_id?: string | null;
32596
+ price_group_name?: string | null;
32597
+ price_type?: string;
32598
+ raw?: import("../integrations/supabase/types").Json | null;
32599
+ sales_unit?: string | null;
32600
+ sequence_number?: number;
32601
+ supplier_article_code?: string | null;
32602
+ supply_line_id: string;
32603
+ synced_at?: string;
32604
+ trade_item_id?: string | null;
32605
+ updated_at?: string;
32606
+ valid_from?: string | null;
32607
+ valid_to?: string | null;
32608
+ week?: number | null;
32609
+ year?: number | null;
32610
+ };
32611
+ Update: {
32612
+ connection_id?: string;
32613
+ created_at?: string;
32614
+ currency?: string;
32615
+ id?: string;
32616
+ is_deleted?: boolean;
32617
+ price?: number | null;
32618
+ price_group_id?: string | null;
32619
+ price_group_name?: string | null;
32620
+ price_type?: string;
32621
+ raw?: import("../integrations/supabase/types").Json | null;
32622
+ sales_unit?: string | null;
32623
+ sequence_number?: number;
32624
+ supplier_article_code?: string | null;
32625
+ supply_line_id?: string;
32626
+ synced_at?: string;
32627
+ trade_item_id?: string | null;
32628
+ updated_at?: string;
32629
+ valid_from?: string | null;
32630
+ valid_to?: string | null;
32631
+ week?: number | null;
32632
+ year?: number | null;
32633
+ };
32634
+ Relationships: [{
32635
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32636
+ columns: ["connection_id"];
32637
+ isOneToOne: false;
32638
+ referencedRelation: "floriday_connections";
32639
+ referencedColumns: ["id"];
32640
+ }];
32641
+ };
32018
32642
  floriday_clock_presales_cache: {
32019
32643
  Row: {
32020
32644
  buyer_organization_id: string | null;
@@ -36283,22 +36907,31 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36283
36907
  };
36284
36908
  logistics_floriday_push_refusals: {
36285
36909
  Row: {
36910
+ action: string | null;
36286
36911
  created_at: string;
36287
36912
  id: string;
36288
36913
  order_ref: string;
36289
36914
  reason: string;
36915
+ source_module: string | null;
36916
+ source_shell: string | null;
36290
36917
  };
36291
36918
  Insert: {
36919
+ action?: string | null;
36292
36920
  created_at?: string;
36293
36921
  id?: string;
36294
36922
  order_ref: string;
36295
36923
  reason: string;
36924
+ source_module?: string | null;
36925
+ source_shell?: string | null;
36296
36926
  };
36297
36927
  Update: {
36928
+ action?: string | null;
36298
36929
  created_at?: string;
36299
36930
  id?: string;
36300
36931
  order_ref?: string;
36301
36932
  reason?: string;
36933
+ source_module?: string | null;
36934
+ source_shell?: string | null;
36302
36935
  };
36303
36936
  Relationships: [];
36304
36937
  };
@@ -36377,6 +37010,42 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36377
37010
  };
36378
37011
  Relationships: [];
36379
37012
  };
37013
+ logistics_floriday_status_sends: {
37014
+ Row: {
37015
+ action: string;
37016
+ created_at: string;
37017
+ detail: string | null;
37018
+ http_status: number | null;
37019
+ id: string;
37020
+ ok: boolean;
37021
+ order_ref: string;
37022
+ source_module: string | null;
37023
+ source_shell: string | null;
37024
+ };
37025
+ Insert: {
37026
+ action: string;
37027
+ created_at?: string;
37028
+ detail?: string | null;
37029
+ http_status?: number | null;
37030
+ id?: string;
37031
+ ok?: boolean;
37032
+ order_ref: string;
37033
+ source_module?: string | null;
37034
+ source_shell?: string | null;
37035
+ };
37036
+ Update: {
37037
+ action?: string;
37038
+ created_at?: string;
37039
+ detail?: string | null;
37040
+ http_status?: number | null;
37041
+ id?: string;
37042
+ ok?: boolean;
37043
+ order_ref?: string;
37044
+ source_module?: string | null;
37045
+ source_shell?: string | null;
37046
+ };
37047
+ Relationships: [];
37048
+ };
36380
37049
  logistics_formulas: {
36381
37050
  Row: {
36382
37051
  created_at: string;
@@ -36449,6 +37118,108 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36449
37118
  };
36450
37119
  Relationships: [];
36451
37120
  };
37121
+ logistics_opening_exceptions: {
37122
+ Row: {
37123
+ closes: string | null;
37124
+ created_at: string;
37125
+ day: string;
37126
+ id: string;
37127
+ is_closed: boolean;
37128
+ note: string | null;
37129
+ opens: string | null;
37130
+ };
37131
+ Insert: {
37132
+ closes?: string | null;
37133
+ created_at?: string;
37134
+ day: string;
37135
+ id?: string;
37136
+ is_closed?: boolean;
37137
+ note?: string | null;
37138
+ opens?: string | null;
37139
+ };
37140
+ Update: {
37141
+ closes?: string | null;
37142
+ created_at?: string;
37143
+ day?: string;
37144
+ id?: string;
37145
+ is_closed?: boolean;
37146
+ note?: string | null;
37147
+ opens?: string | null;
37148
+ };
37149
+ Relationships: [];
37150
+ };
37151
+ logistics_opening_hours: {
37152
+ Row: {
37153
+ closes: string;
37154
+ created_at: string;
37155
+ id: string;
37156
+ is_active: boolean;
37157
+ note: string | null;
37158
+ opens: string;
37159
+ weekday: number;
37160
+ };
37161
+ Insert: {
37162
+ closes: string;
37163
+ created_at?: string;
37164
+ id?: string;
37165
+ is_active?: boolean;
37166
+ note?: string | null;
37167
+ opens: string;
37168
+ weekday: number;
37169
+ };
37170
+ Update: {
37171
+ closes?: string;
37172
+ created_at?: string;
37173
+ id?: string;
37174
+ is_active?: boolean;
37175
+ note?: string | null;
37176
+ opens?: string;
37177
+ weekday?: number;
37178
+ };
37179
+ Relationships: [];
37180
+ };
37181
+ logistics_pick_data_requests: {
37182
+ Row: {
37183
+ actions: import("../integrations/supabase/types").Json;
37184
+ created_at: string;
37185
+ event_id: string | null;
37186
+ finished_at: string | null;
37187
+ id: string;
37188
+ missing: import("../integrations/supabase/types").Json;
37189
+ order_ref: string;
37190
+ reason: string | null;
37191
+ result: import("../integrations/supabase/types").Json | null;
37192
+ status: string;
37193
+ unit_ref: string | null;
37194
+ };
37195
+ Insert: {
37196
+ actions?: import("../integrations/supabase/types").Json;
37197
+ created_at?: string;
37198
+ event_id?: string | null;
37199
+ finished_at?: string | null;
37200
+ id?: string;
37201
+ missing?: import("../integrations/supabase/types").Json;
37202
+ order_ref: string;
37203
+ reason?: string | null;
37204
+ result?: import("../integrations/supabase/types").Json | null;
37205
+ status?: string;
37206
+ unit_ref?: string | null;
37207
+ };
37208
+ Update: {
37209
+ actions?: import("../integrations/supabase/types").Json;
37210
+ created_at?: string;
37211
+ event_id?: string | null;
37212
+ finished_at?: string | null;
37213
+ id?: string;
37214
+ missing?: import("../integrations/supabase/types").Json;
37215
+ order_ref?: string;
37216
+ reason?: string | null;
37217
+ result?: import("../integrations/supabase/types").Json | null;
37218
+ status?: string;
37219
+ unit_ref?: string | null;
37220
+ };
37221
+ Relationships: [];
37222
+ };
36452
37223
  logistics_pickup_moments: {
36453
37224
  Row: {
36454
37225
  carrier_ref: string | null;
@@ -36908,6 +37679,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36908
37679
  };
36909
37680
  Relationships: [];
36910
37681
  };
37682
+ logistics_slip_shipping_note: {
37683
+ Row: {
37684
+ attempts: number;
37685
+ batch_key: string | null;
37686
+ cart_id: string | null;
37687
+ created_at: string;
37688
+ error: string | null;
37689
+ error_code: string | null;
37690
+ fulfillment_order_id: string | null;
37691
+ id: string;
37692
+ locked_until: string | null;
37693
+ next_attempt_at: string | null;
37694
+ order_id: string | null;
37695
+ order_number: string | null;
37696
+ print_job_id: string | null;
37697
+ printer_id: string | null;
37698
+ retry_class: string | null;
37699
+ slip_job_id: string;
37700
+ status: string;
37701
+ updated_at: string;
37702
+ };
37703
+ Insert: {
37704
+ attempts?: number;
37705
+ batch_key?: string | null;
37706
+ cart_id?: string | null;
37707
+ created_at?: string;
37708
+ error?: string | null;
37709
+ error_code?: string | null;
37710
+ fulfillment_order_id?: string | null;
37711
+ id?: string;
37712
+ locked_until?: string | null;
37713
+ next_attempt_at?: string | null;
37714
+ order_id?: string | null;
37715
+ order_number?: string | null;
37716
+ print_job_id?: string | null;
37717
+ printer_id?: string | null;
37718
+ retry_class?: string | null;
37719
+ slip_job_id: string;
37720
+ status?: string;
37721
+ updated_at?: string;
37722
+ };
37723
+ Update: {
37724
+ attempts?: number;
37725
+ batch_key?: string | null;
37726
+ cart_id?: string | null;
37727
+ created_at?: string;
37728
+ error?: string | null;
37729
+ error_code?: string | null;
37730
+ fulfillment_order_id?: string | null;
37731
+ id?: string;
37732
+ locked_until?: string | null;
37733
+ next_attempt_at?: string | null;
37734
+ order_id?: string | null;
37735
+ order_number?: string | null;
37736
+ print_job_id?: string | null;
37737
+ printer_id?: string | null;
37738
+ retry_class?: string | null;
37739
+ slip_job_id?: string;
37740
+ status?: string;
37741
+ updated_at?: string;
37742
+ };
37743
+ Relationships: [];
37744
+ };
36911
37745
  logistics_staff_planning: {
36912
37746
  Row: {
36913
37747
  created_at: string;
@@ -37241,6 +38075,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37241
38075
  };
37242
38076
  Relationships: [];
37243
38077
  };
38078
+ logistics_time_settings: {
38079
+ Row: {
38080
+ id: boolean;
38081
+ timezone: string;
38082
+ updated_at: string;
38083
+ };
38084
+ Insert: {
38085
+ id?: boolean;
38086
+ timezone: string;
38087
+ updated_at?: string;
38088
+ };
38089
+ Update: {
38090
+ id?: boolean;
38091
+ timezone?: string;
38092
+ updated_at?: string;
38093
+ };
38094
+ Relationships: [];
38095
+ };
37244
38096
  logistics_variables: {
37245
38097
  Row: {
37246
38098
  created_at: string;
@@ -39631,6 +40483,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39631
40483
  customer_name: string;
39632
40484
  deleted_at: string | null;
39633
40485
  delivery_date: string | null;
40486
+ floriday_order_group_key: string | null;
39634
40487
  floriday_sales_order_id: string | null;
39635
40488
  id: string;
39636
40489
  invoice_due_at: string | null;
@@ -39658,6 +40511,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39658
40511
  customer_name?: string;
39659
40512
  deleted_at?: string | null;
39660
40513
  delivery_date?: string | null;
40514
+ floriday_order_group_key?: string | null;
39661
40515
  floriday_sales_order_id?: string | null;
39662
40516
  id?: string;
39663
40517
  invoice_due_at?: string | null;
@@ -39685,6 +40539,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39685
40539
  customer_name?: string;
39686
40540
  deleted_at?: string | null;
39687
40541
  delivery_date?: string | null;
40542
+ floriday_order_group_key?: string | null;
39688
40543
  floriday_sales_order_id?: string | null;
39689
40544
  id?: string;
39690
40545
  invoice_due_at?: string | null;
@@ -49348,6 +50203,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49348
50203
  };
49349
50204
  Returns: string;
49350
50205
  };
50206
+ logistics_cart_checkin_at: {
50207
+ Args: {
50208
+ p_cart_id: string;
50209
+ };
50210
+ Returns: string;
50211
+ };
49351
50212
  logistics_cart_handled: {
49352
50213
  Args: {
49353
50214
  p_cart_index: number;
@@ -49381,10 +50242,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49381
50242
  task_status: string;
49382
50243
  }[];
49383
50244
  };
50245
+ logistics_cart_is_full: {
50246
+ Args: {
50247
+ p_cart_id: string;
50248
+ };
50249
+ Returns: boolean;
50250
+ };
49384
50251
  logistics_cart_layout_method: {
49385
50252
  Args: never;
49386
50253
  Returns: import("../integrations/supabase/types").Json;
49387
50254
  };
50255
+ logistics_cart_order_refs: {
50256
+ Args: {
50257
+ p_cart_id: string;
50258
+ };
50259
+ Returns: string[];
50260
+ };
49388
50261
  logistics_cart_plan_overview: {
49389
50262
  Args: {
49390
50263
  p_days?: number;
@@ -49404,6 +50277,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49404
50277
  };
49405
50278
  Returns: import("../integrations/supabase/types").Json;
49406
50279
  };
50280
+ logistics_cart_release_reason: {
50281
+ Args: {
50282
+ p_cart_id: string;
50283
+ };
50284
+ Returns: string;
50285
+ };
50286
+ logistics_cart_released: {
50287
+ Args: {
50288
+ p_cart_id: string;
50289
+ };
50290
+ Returns: boolean;
50291
+ };
49407
50292
  logistics_cart_seq: {
49408
50293
  Args: {
49409
50294
  p_order_uuid?: string;
@@ -49454,6 +50339,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49454
50339
  unit_ref: string;
49455
50340
  }[];
49456
50341
  };
50342
+ logistics_carts_per_print: {
50343
+ Args: never;
50344
+ Returns: number;
50345
+ };
49457
50346
  logistics_check_order_allowed: {
49458
50347
  Args: {
49459
50348
  p_lines: import("../integrations/supabase/types").Json;
@@ -49557,6 +50446,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49557
50446
  isSetofReturn: false;
49558
50447
  };
49559
50448
  };
50449
+ logistics_cleanup_orphan_print_jobs: {
50450
+ Args: never;
50451
+ Returns: import("../integrations/supabase/types").Json;
50452
+ };
49560
50453
  logistics_complete_task: {
49561
50454
  Args: {
49562
50455
  p_result?: import("../integrations/supabase/types").Json;
@@ -49619,6 +50512,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49619
50512
  station_carts: number;
49620
50513
  }[];
49621
50514
  };
50515
+ logistics_control_complete_cart: {
50516
+ Args: {
50517
+ p_cart_id: string;
50518
+ };
50519
+ Returns: number;
50520
+ };
49622
50521
  logistics_control_scan_approve: {
49623
50522
  Args: {
49624
50523
  p_allow_reprint?: boolean;
@@ -49698,6 +50597,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49698
50597
  Args: never;
49699
50598
  Returns: import("../integrations/supabase/types").Json;
49700
50599
  };
50600
+ logistics_day_windows: {
50601
+ Args: {
50602
+ p_day: string;
50603
+ };
50604
+ Returns: {
50605
+ win_end: string;
50606
+ win_start: string;
50607
+ }[];
50608
+ };
49701
50609
  logistics_delay_customer_email: {
49702
50610
  Args: {
49703
50611
  p_customer: string;
@@ -49765,6 +50673,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49765
50673
  };
49766
50674
  Returns: import("../integrations/supabase/types").Json;
49767
50675
  };
50676
+ logistics_enqueue_shipping_note_with_slip: {
50677
+ Args: {
50678
+ _cart_id: string;
50679
+ _is_herprint: boolean;
50680
+ _printer_id: string;
50681
+ _queue_item_id: string;
50682
+ _session_id: string;
50683
+ _slip_job_id: string;
50684
+ };
50685
+ Returns: string;
50686
+ };
49768
50687
  logistics_enqueue_sticker_with_slip: {
49769
50688
  Args: {
49770
50689
  _cart_id: string;
@@ -49782,6 +50701,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49782
50701
  };
49783
50702
  Returns: string;
49784
50703
  };
50704
+ logistics_ensure_pick_data: {
50705
+ Args: {
50706
+ p_event_id?: string;
50707
+ p_missing?: import("../integrations/supabase/types").Json;
50708
+ p_ref: string;
50709
+ };
50710
+ Returns: import("../integrations/supabase/types").Json;
50711
+ };
49785
50712
  logistics_fail_task: {
49786
50713
  Args: {
49787
50714
  p_error: string;
@@ -49903,6 +50830,32 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49903
50830
  };
49904
50831
  Returns: string;
49905
50832
  };
50833
+ logistics_floriday_gate_status: {
50834
+ Args: never;
50835
+ Returns: import("../integrations/supabase/types").Json;
50836
+ };
50837
+ logistics_floriday_log_refusal: {
50838
+ Args: {
50839
+ _action?: string;
50840
+ _module?: string;
50841
+ _order_ref: string;
50842
+ _reason: string;
50843
+ _shell?: string;
50844
+ };
50845
+ Returns: undefined;
50846
+ };
50847
+ logistics_floriday_log_send: {
50848
+ Args: {
50849
+ _action: string;
50850
+ _detail?: string;
50851
+ _http_status?: number;
50852
+ _module?: string;
50853
+ _ok: boolean;
50854
+ _order_ref: string;
50855
+ _shell?: string;
50856
+ };
50857
+ Returns: undefined;
50858
+ };
49906
50859
  logistics_floriday_order_approved: {
49907
50860
  Args: {
49908
50861
  _order_ref: string;
@@ -49927,6 +50880,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49927
50880
  Args: never;
49928
50881
  Returns: boolean;
49929
50882
  };
50883
+ logistics_floriday_stock_updates_enabled: {
50884
+ Args: never;
50885
+ Returns: boolean;
50886
+ };
50887
+ logistics_floriday_write_allowed: {
50888
+ Args: {
50889
+ _action: string;
50890
+ };
50891
+ Returns: boolean;
50892
+ };
49930
50893
  logistics_fulfill_barcode_requests: {
49931
50894
  Args: {
49932
50895
  p_limit?: number;
@@ -49969,6 +50932,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49969
50932
  };
49970
50933
  Returns: number;
49971
50934
  };
50935
+ logistics_merge_partial_carts: {
50936
+ Args: {
50937
+ p_limit?: number;
50938
+ };
50939
+ Returns: import("../integrations/supabase/types").Json;
50940
+ };
49972
50941
  logistics_next_workday_date: {
49973
50942
  Args: {
49974
50943
  p_date: string;
@@ -49995,6 +50964,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
49995
50964
  };
49996
50965
  Returns: string;
49997
50966
  };
50967
+ logistics_opening_timezone: {
50968
+ Args: never;
50969
+ Returns: string;
50970
+ };
49998
50971
  logistics_order_cart_count: {
49999
50972
  Args: {
50000
50973
  p_order_ref: string;
@@ -50079,6 +51052,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50079
51052
  Args: never;
50080
51053
  Returns: import("../integrations/supabase/types").Json;
50081
51054
  };
51055
+ logistics_pick_partial_mode: {
51056
+ Args: never;
51057
+ Returns: string;
51058
+ };
50082
51059
  logistics_pick_start_estimate: {
50083
51060
  Args: {
50084
51061
  p_order: import("../integrations/supabase/types").Json;
@@ -50190,6 +51167,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50190
51167
  };
50191
51168
  Returns: number;
50192
51169
  };
51170
+ logistics_prepare_pick_documents: {
51171
+ Args: {
51172
+ p_limit?: number;
51173
+ };
51174
+ Returns: import("../integrations/supabase/types").Json;
51175
+ };
50193
51176
  logistics_prune_buffer_member_queue: {
50194
51177
  Args: never;
50195
51178
  Returns: number;
@@ -50230,6 +51213,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50230
51213
  Args: never;
50231
51214
  Returns: import("../integrations/supabase/types").Json;
50232
51215
  };
51216
+ logistics_refresh_pick_queue_status: {
51217
+ Args: {
51218
+ p_ref: string;
51219
+ };
51220
+ Returns: number;
51221
+ };
50233
51222
  logistics_refresh_pickup_moments: {
50234
51223
  Args: {
50235
51224
  p_weeks?: number;
@@ -50242,6 +51231,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50242
51231
  };
50243
51232
  Returns: import("../integrations/supabase/types").Json;
50244
51233
  };
51234
+ logistics_replan_all_force: {
51235
+ Args: {
51236
+ p_reason?: string;
51237
+ };
51238
+ Returns: import("../integrations/supabase/types").Json;
51239
+ };
50245
51240
  logistics_report_delay: {
50246
51241
  Args: {
50247
51242
  p_expected_date?: string;
@@ -50386,6 +51381,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50386
51381
  };
50387
51382
  Returns: string;
50388
51383
  };
51384
+ logistics_shipping_note_follows_slip: {
51385
+ Args: never;
51386
+ Returns: boolean;
51387
+ };
50389
51388
  logistics_shipping_note_from_barcode: {
50390
51389
  Args: {
50391
51390
  p_allow_reprint?: boolean;
@@ -50394,10 +51393,76 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50394
51393
  };
50395
51394
  Returns: import("../integrations/supabase/types").Json;
50396
51395
  };
51396
+ logistics_shipping_note_job_for_slip: {
51397
+ Args: {
51398
+ _slip_job_id: string;
51399
+ };
51400
+ Returns: string;
51401
+ };
51402
+ logistics_slip_note_claim: {
51403
+ Args: {
51404
+ _lease_seconds?: number;
51405
+ _limit?: number;
51406
+ };
51407
+ Returns: {
51408
+ attempts: number;
51409
+ batch_key: string | null;
51410
+ cart_id: string | null;
51411
+ created_at: string;
51412
+ error: string | null;
51413
+ error_code: string | null;
51414
+ fulfillment_order_id: string | null;
51415
+ id: string;
51416
+ locked_until: string | null;
51417
+ next_attempt_at: string | null;
51418
+ order_id: string | null;
51419
+ order_number: string | null;
51420
+ print_job_id: string | null;
51421
+ printer_id: string | null;
51422
+ retry_class: string | null;
51423
+ slip_job_id: string;
51424
+ status: string;
51425
+ updated_at: string;
51426
+ }[];
51427
+ SetofOptions: {
51428
+ from: "*";
51429
+ to: "logistics_slip_shipping_note";
51430
+ isOneToOne: false;
51431
+ isSetofReturn: true;
51432
+ };
51433
+ };
51434
+ logistics_slip_note_finish: {
51435
+ Args: {
51436
+ _error?: string;
51437
+ _error_code?: string;
51438
+ _fulfillment_order_id?: string;
51439
+ _id: string;
51440
+ _ok: boolean;
51441
+ _print_job_id?: string;
51442
+ _status?: string;
51443
+ };
51444
+ Returns: undefined;
51445
+ };
51446
+ logistics_slip_note_keep_waiting: {
51447
+ Args: {
51448
+ _class?: string;
51449
+ _id: string;
51450
+ _reason: string;
51451
+ };
51452
+ Returns: undefined;
51453
+ };
50397
51454
  logistics_sticker_follows_slip: {
50398
51455
  Args: never;
50399
51456
  Returns: boolean;
50400
51457
  };
51458
+ logistics_subtract_working_minutes: {
51459
+ Args: {
51460
+ p_deadline: string;
51461
+ p_max_workdays?: number;
51462
+ p_minutes: number;
51463
+ };
51464
+ Returns: import("../integrations/supabase/types").Json;
51465
+ };
50401
51466
  logistics_supersede_stale_tasks: {
50402
51467
  Args: {
50403
51468
  p_keep: string[];
@@ -50434,6 +51499,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50434
51499
  Args: never;
50435
51500
  Returns: string;
50436
51501
  };
51502
+ logistics_timezone_options: {
51503
+ Args: never;
51504
+ Returns: {
51505
+ name: string;
51506
+ }[];
51507
+ };
50437
51508
  logistics_upsert_task: {
50438
51509
  Args: {
50439
51510
  p_buffer_ref: string;
@@ -50453,6 +51524,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50453
51524
  };
50454
51525
  Returns: string;
50455
51526
  };
51527
+ logistics_valid_timezone: {
51528
+ Args: {
51529
+ _tz: string;
51530
+ };
51531
+ Returns: boolean;
51532
+ };
51533
+ logistics_working_hours_status: {
51534
+ Args: never;
51535
+ Returns: import("../integrations/supabase/types").Json;
51536
+ };
50456
51537
  logistics_write_buffer_layer_positions: {
50457
51538
  Args: {
50458
51539
  p_buffer_id: string;
@@ -51898,6 +52979,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51898
52979
  };
51899
52980
  Returns: number;
51900
52981
  };
52982
+ schedule_floriday_catalog_prices_sync: {
52983
+ Args: {
52984
+ p_apikey: string;
52985
+ p_url: string;
52986
+ };
52987
+ Returns: number;
52988
+ };
51901
52989
  schedule_floriday_clock_presales_sync: {
51902
52990
  Args: {
51903
52991
  p_apikey: string;
@@ -52198,6 +53286,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
52198
53286
  };
52199
53287
  Returns: undefined;
52200
53288
  };
53289
+ sync_floriday_prices_into_price_groups: {
53290
+ Args: never;
53291
+ Returns: number;
53292
+ };
52201
53293
  sync_layer_stock: {
52202
53294
  Args: {
52203
53295
  p_product_id: string;