@flowselections/logistiek-engine 1.0.112 → 1.0.117

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.
@@ -7337,7 +7337,22 @@ export type Database = {
7337
7337
  updated_by?: string | null;
7338
7338
  user_id?: string;
7339
7339
  };
7340
- Relationships: [];
7340
+ Relationships: [
7341
+ {
7342
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7343
+ columns: ["product_id"];
7344
+ isOneToOne: false;
7345
+ referencedRelation: "logistics_product_dimensions";
7346
+ referencedColumns: ["product_id"];
7347
+ },
7348
+ {
7349
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7350
+ columns: ["product_id"];
7351
+ isOneToOne: false;
7352
+ referencedRelation: "products";
7353
+ referencedColumns: ["id"];
7354
+ }
7355
+ ];
7341
7356
  };
7342
7357
  floriday_invoices_cache: {
7343
7358
  Row: {
@@ -7686,6 +7701,39 @@ export type Database = {
7686
7701
  }
7687
7702
  ];
7688
7703
  };
7704
+ floriday_queue_cleanup_runs: {
7705
+ Row: {
7706
+ created_at: string;
7707
+ deleted: Json;
7708
+ error: string | null;
7709
+ finished_at: string | null;
7710
+ id: string;
7711
+ more_remaining: boolean;
7712
+ orphan_settings: number | null;
7713
+ started_at: string;
7714
+ };
7715
+ Insert: {
7716
+ created_at?: string;
7717
+ deleted?: Json;
7718
+ error?: string | null;
7719
+ finished_at?: string | null;
7720
+ id?: string;
7721
+ more_remaining?: boolean;
7722
+ orphan_settings?: number | null;
7723
+ started_at?: string;
7724
+ };
7725
+ Update: {
7726
+ created_at?: string;
7727
+ deleted?: Json;
7728
+ error?: string | null;
7729
+ finished_at?: string | null;
7730
+ id?: string;
7731
+ more_remaining?: boolean;
7732
+ orphan_settings?: number | null;
7733
+ started_at?: string;
7734
+ };
7735
+ Relationships: [];
7736
+ };
7689
7737
  floriday_rate_limit_state: {
7690
7738
  Row: {
7691
7739
  bucket: string;
@@ -8844,22 +8892,55 @@ export type Database = {
8844
8892
  Row: {
8845
8893
  drain_batch: number;
8846
8894
  id: boolean;
8895
+ import_chunk_size: number;
8896
+ import_max_bytes: number;
8897
+ import_max_rows: number;
8898
+ import_new_chunk_size: number;
8899
+ import_retention_days: number;
8847
8900
  max_ms_inline: number;
8848
8901
  max_parents_inline: number;
8902
+ queue_cleanup_batch: number;
8903
+ queue_cleanup_max_batches: number;
8904
+ queue_failed_days: number;
8905
+ queue_sent_days: number;
8906
+ queue_skipped_days: number;
8907
+ queue_superseded_days: number;
8849
8908
  updated_at: string;
8850
8909
  };
8851
8910
  Insert: {
8852
8911
  drain_batch?: number;
8853
8912
  id?: boolean;
8913
+ import_chunk_size?: number;
8914
+ import_max_bytes?: number;
8915
+ import_max_rows?: number;
8916
+ import_new_chunk_size?: number;
8917
+ import_retention_days?: number;
8854
8918
  max_ms_inline?: number;
8855
8919
  max_parents_inline?: number;
8920
+ queue_cleanup_batch?: number;
8921
+ queue_cleanup_max_batches?: number;
8922
+ queue_failed_days?: number;
8923
+ queue_sent_days?: number;
8924
+ queue_skipped_days?: number;
8925
+ queue_superseded_days?: number;
8856
8926
  updated_at?: string;
8857
8927
  };
8858
8928
  Update: {
8859
8929
  drain_batch?: number;
8860
8930
  id?: boolean;
8931
+ import_chunk_size?: number;
8932
+ import_max_bytes?: number;
8933
+ import_max_rows?: number;
8934
+ import_new_chunk_size?: number;
8935
+ import_retention_days?: number;
8861
8936
  max_ms_inline?: number;
8862
8937
  max_parents_inline?: number;
8938
+ queue_cleanup_batch?: number;
8939
+ queue_cleanup_max_batches?: number;
8940
+ queue_failed_days?: number;
8941
+ queue_sent_days?: number;
8942
+ queue_skipped_days?: number;
8943
+ queue_superseded_days?: number;
8863
8944
  updated_at?: string;
8864
8945
  };
8865
8946
  Relationships: [];
@@ -11092,6 +11173,69 @@ export type Database = {
11092
11173
  };
11093
11174
  Relationships: [];
11094
11175
  };
11176
+ logistics_allocation_fingerprint: {
11177
+ Row: {
11178
+ created_at: string;
11179
+ fingerprint: string;
11180
+ last_replan_at: string | null;
11181
+ order_id: string;
11182
+ pending_since: string | null;
11183
+ updated_at: string;
11184
+ };
11185
+ Insert: {
11186
+ created_at?: string;
11187
+ fingerprint: string;
11188
+ last_replan_at?: string | null;
11189
+ order_id: string;
11190
+ pending_since?: string | null;
11191
+ updated_at?: string;
11192
+ };
11193
+ Update: {
11194
+ created_at?: string;
11195
+ fingerprint?: string;
11196
+ last_replan_at?: string | null;
11197
+ order_id?: string;
11198
+ pending_since?: string | null;
11199
+ updated_at?: string;
11200
+ };
11201
+ Relationships: [];
11202
+ };
11203
+ logistics_autolink_audit: {
11204
+ Row: {
11205
+ created_at: string;
11206
+ id: string;
11207
+ match_type: string;
11208
+ order_id: string | null;
11209
+ order_item_id: string | null;
11210
+ order_source: string | null;
11211
+ product_floriday_id: string | null;
11212
+ product_id: string | null;
11213
+ product_name: string | null;
11214
+ };
11215
+ Insert: {
11216
+ created_at?: string;
11217
+ id?: string;
11218
+ match_type: string;
11219
+ order_id?: string | null;
11220
+ order_item_id?: string | null;
11221
+ order_source?: string | null;
11222
+ product_floriday_id?: string | null;
11223
+ product_id?: string | null;
11224
+ product_name?: string | null;
11225
+ };
11226
+ Update: {
11227
+ created_at?: string;
11228
+ id?: string;
11229
+ match_type?: string;
11230
+ order_id?: string | null;
11231
+ order_item_id?: string | null;
11232
+ order_source?: string | null;
11233
+ product_floriday_id?: string | null;
11234
+ product_id?: string | null;
11235
+ product_name?: string | null;
11236
+ };
11237
+ Relationships: [];
11238
+ };
11095
11239
  logistics_base_url_checks: {
11096
11240
  Row: {
11097
11241
  candidate_host: string | null;
@@ -12671,6 +12815,7 @@ export type Database = {
12671
12815
  created_at: string;
12672
12816
  group_id: string | null;
12673
12817
  id: string;
12818
+ line_qty: number | null;
12674
12819
  order_item_id: string;
12675
12820
  qty: number;
12676
12821
  source: string;
@@ -12682,6 +12827,7 @@ export type Database = {
12682
12827
  created_at?: string;
12683
12828
  group_id?: string | null;
12684
12829
  id?: string;
12830
+ line_qty?: number | null;
12685
12831
  order_item_id: string;
12686
12832
  qty: number;
12687
12833
  source: string;
@@ -12693,6 +12839,7 @@ export type Database = {
12693
12839
  created_at?: string;
12694
12840
  group_id?: string | null;
12695
12841
  id?: string;
12842
+ line_qty?: number | null;
12696
12843
  order_item_id?: string;
12697
12844
  qty?: number;
12698
12845
  source?: string;
@@ -12845,6 +12992,7 @@ export type Database = {
12845
12992
  slip_job_id: string;
12846
12993
  status: string;
12847
12994
  updated_at: string;
12995
+ voor_herstel: boolean;
12848
12996
  };
12849
12997
  Insert: {
12850
12998
  attempts?: number;
@@ -12865,6 +13013,7 @@ export type Database = {
12865
13013
  slip_job_id: string;
12866
13014
  status?: string;
12867
13015
  updated_at?: string;
13016
+ voor_herstel?: boolean;
12868
13017
  };
12869
13018
  Update: {
12870
13019
  attempts?: number;
@@ -12885,6 +13034,7 @@ export type Database = {
12885
13034
  slip_job_id?: string;
12886
13035
  status?: string;
12887
13036
  updated_at?: string;
13037
+ voor_herstel?: boolean;
12888
13038
  };
12889
13039
  Relationships: [];
12890
13040
  };
@@ -15445,6 +15595,7 @@ export type Database = {
15445
15595
  Row: {
15446
15596
  boxes: number | null;
15447
15597
  cart_id: string;
15598
+ components: Json | null;
15448
15599
  crates: number;
15449
15600
  crates_in_layer: number | null;
15450
15601
  crates_per_layer: number;
@@ -15463,6 +15614,7 @@ export type Database = {
15463
15614
  Insert: {
15464
15615
  boxes?: number | null;
15465
15616
  cart_id: string;
15617
+ components?: Json | null;
15466
15618
  crates: number;
15467
15619
  crates_in_layer?: number | null;
15468
15620
  crates_per_layer?: number;
@@ -15481,6 +15633,7 @@ export type Database = {
15481
15633
  Update: {
15482
15634
  boxes?: number | null;
15483
15635
  cart_id?: string;
15636
+ components?: Json | null;
15484
15637
  crates?: number;
15485
15638
  crates_in_layer?: number | null;
15486
15639
  crates_per_layer?: number;
@@ -19088,7 +19241,7 @@ export type Database = {
19088
19241
  id?: string;
19089
19242
  product_group_id: string;
19090
19243
  quantity?: number;
19091
- sort_order?: number;
19244
+ sort_order: number;
19092
19245
  trade_item_id: string;
19093
19246
  };
19094
19247
  Update: {
@@ -21043,43 +21196,212 @@ export type Database = {
21043
21196
  };
21044
21197
  Relationships: [];
21045
21198
  };
21199
+ stock_import_chunks: {
21200
+ Row: {
21201
+ chunk_no: number;
21202
+ created_at: string;
21203
+ duration_ms: number | null;
21204
+ processed_at: string | null;
21205
+ run_id: string;
21206
+ status: string;
21207
+ undone_at: string | null;
21208
+ updated_at: string;
21209
+ };
21210
+ Insert: {
21211
+ chunk_no: number;
21212
+ created_at?: string;
21213
+ duration_ms?: number | null;
21214
+ processed_at?: string | null;
21215
+ run_id: string;
21216
+ status?: string;
21217
+ undone_at?: string | null;
21218
+ updated_at?: string;
21219
+ };
21220
+ Update: {
21221
+ chunk_no?: number;
21222
+ created_at?: string;
21223
+ duration_ms?: number | null;
21224
+ processed_at?: string | null;
21225
+ run_id?: string;
21226
+ status?: string;
21227
+ undone_at?: string | null;
21228
+ updated_at?: string;
21229
+ };
21230
+ Relationships: [
21231
+ {
21232
+ foreignKeyName: "stock_import_chunks_run_id_fkey";
21233
+ columns: ["run_id"];
21234
+ isOneToOne: false;
21235
+ referencedRelation: "stock_import_runs";
21236
+ referencedColumns: ["id"];
21237
+ }
21238
+ ];
21239
+ };
21240
+ stock_import_rows: {
21241
+ Row: {
21242
+ article_code: string | null;
21243
+ article_name: string | null;
21244
+ chunk_no: number;
21245
+ connection_id: string | null;
21246
+ created_at: string;
21247
+ custom_values: Json | null;
21248
+ error: string | null;
21249
+ id: string;
21250
+ incoming_after: number | null;
21251
+ incoming_before: number | null;
21252
+ incoming_in: number | null;
21253
+ is_new: boolean;
21254
+ minimum_after: number | null;
21255
+ minimum_before: number | null;
21256
+ minimum_in: number | null;
21257
+ new_payload: Json | null;
21258
+ note: string | null;
21259
+ physical_after: number | null;
21260
+ physical_before: number | null;
21261
+ physical_in: number | null;
21262
+ processed_at: string | null;
21263
+ product_id: string | null;
21264
+ row_no: number;
21265
+ run_id: string;
21266
+ status: string;
21267
+ trade_item_key: string | null;
21268
+ updated_at: string;
21269
+ };
21270
+ Insert: {
21271
+ article_code?: string | null;
21272
+ article_name?: string | null;
21273
+ chunk_no: number;
21274
+ connection_id?: string | null;
21275
+ created_at?: string;
21276
+ custom_values?: Json | null;
21277
+ error?: string | null;
21278
+ id?: string;
21279
+ incoming_after?: number | null;
21280
+ incoming_before?: number | null;
21281
+ incoming_in?: number | null;
21282
+ is_new?: boolean;
21283
+ minimum_after?: number | null;
21284
+ minimum_before?: number | null;
21285
+ minimum_in?: number | null;
21286
+ new_payload?: Json | null;
21287
+ note?: string | null;
21288
+ physical_after?: number | null;
21289
+ physical_before?: number | null;
21290
+ physical_in?: number | null;
21291
+ processed_at?: string | null;
21292
+ product_id?: string | null;
21293
+ row_no: number;
21294
+ run_id: string;
21295
+ status?: string;
21296
+ trade_item_key?: string | null;
21297
+ updated_at?: string;
21298
+ };
21299
+ Update: {
21300
+ article_code?: string | null;
21301
+ article_name?: string | null;
21302
+ chunk_no?: number;
21303
+ connection_id?: string | null;
21304
+ created_at?: string;
21305
+ custom_values?: Json | null;
21306
+ error?: string | null;
21307
+ id?: string;
21308
+ incoming_after?: number | null;
21309
+ incoming_before?: number | null;
21310
+ incoming_in?: number | null;
21311
+ is_new?: boolean;
21312
+ minimum_after?: number | null;
21313
+ minimum_before?: number | null;
21314
+ minimum_in?: number | null;
21315
+ new_payload?: Json | null;
21316
+ note?: string | null;
21317
+ physical_after?: number | null;
21318
+ physical_before?: number | null;
21319
+ physical_in?: number | null;
21320
+ processed_at?: string | null;
21321
+ product_id?: string | null;
21322
+ row_no?: number;
21323
+ run_id?: string;
21324
+ status?: string;
21325
+ trade_item_key?: string | null;
21326
+ updated_at?: string;
21327
+ };
21328
+ Relationships: [
21329
+ {
21330
+ foreignKeyName: "stock_import_rows_run_id_fkey";
21331
+ columns: ["run_id"];
21332
+ isOneToOne: false;
21333
+ referencedRelation: "stock_import_runs";
21334
+ referencedColumns: ["id"];
21335
+ }
21336
+ ];
21337
+ };
21046
21338
  stock_import_runs: {
21047
21339
  Row: {
21340
+ chunk_size: number | null;
21048
21341
  connection_id: string | null;
21049
21342
  created_at: string;
21050
21343
  created_rows: number;
21344
+ done_chunks: number;
21051
21345
  errors: Json;
21346
+ file_hash: string | null;
21052
21347
  filename: string | null;
21348
+ finished_at: string | null;
21053
21349
  id: string;
21054
21350
  mutations: Json;
21351
+ rows_purged_at: string | null;
21055
21352
  skipped_rows: number;
21353
+ status: string;
21354
+ total_chunks: number;
21056
21355
  total_rows: number;
21356
+ undo_skipped_rows: number;
21357
+ undone_rows: number;
21358
+ updated_at: string;
21057
21359
  updated_rows: number;
21058
21360
  user_id: string;
21059
21361
  };
21060
21362
  Insert: {
21363
+ chunk_size?: number | null;
21061
21364
  connection_id?: string | null;
21062
21365
  created_at?: string;
21063
21366
  created_rows?: number;
21367
+ done_chunks?: number;
21064
21368
  errors?: Json;
21369
+ file_hash?: string | null;
21065
21370
  filename?: string | null;
21371
+ finished_at?: string | null;
21066
21372
  id?: string;
21067
21373
  mutations?: Json;
21374
+ rows_purged_at?: string | null;
21068
21375
  skipped_rows?: number;
21376
+ status?: string;
21377
+ total_chunks?: number;
21069
21378
  total_rows?: number;
21379
+ undo_skipped_rows?: number;
21380
+ undone_rows?: number;
21381
+ updated_at?: string;
21070
21382
  updated_rows?: number;
21071
21383
  user_id: string;
21072
21384
  };
21073
21385
  Update: {
21386
+ chunk_size?: number | null;
21074
21387
  connection_id?: string | null;
21075
21388
  created_at?: string;
21076
21389
  created_rows?: number;
21390
+ done_chunks?: number;
21077
21391
  errors?: Json;
21392
+ file_hash?: string | null;
21078
21393
  filename?: string | null;
21394
+ finished_at?: string | null;
21079
21395
  id?: string;
21080
21396
  mutations?: Json;
21397
+ rows_purged_at?: string | null;
21081
21398
  skipped_rows?: number;
21399
+ status?: string;
21400
+ total_chunks?: number;
21082
21401
  total_rows?: number;
21402
+ undo_skipped_rows?: number;
21403
+ undone_rows?: number;
21404
+ updated_at?: string;
21083
21405
  updated_rows?: number;
21084
21406
  user_id?: string;
21085
21407
  };
@@ -26987,6 +27309,15 @@ export type Database = {
26987
27309
  };
26988
27310
  };
26989
27311
  Functions: {
27312
+ _floriday_queue_cleanup_batch: {
27313
+ Args: {
27314
+ p_days: number;
27315
+ p_keep_latest: boolean;
27316
+ p_limit: number;
27317
+ p_statuses: string[];
27318
+ };
27319
+ Returns: number;
27320
+ };
26990
27321
  _floriday_schedule_job: {
26991
27322
  Args: {
26992
27323
  p_apikey: string;
@@ -27010,6 +27341,12 @@ export type Database = {
27010
27341
  };
27011
27342
  Returns: Json;
27012
27343
  };
27344
+ _stock_import_caller: {
27345
+ Args: {
27346
+ p_owner: string;
27347
+ };
27348
+ Returns: boolean;
27349
+ };
27013
27350
  _wo_is_planner: {
27014
27351
  Args: never;
27015
27352
  Returns: boolean;
@@ -27950,7 +28287,7 @@ export type Database = {
27950
28287
  };
27951
28288
  floriday_cleanup_stock_queue_v2: {
27952
28289
  Args: never;
27953
- Returns: undefined;
28290
+ Returns: Json;
27954
28291
  };
27955
28292
  floriday_compact_stock_snapshots: {
27956
28293
  Args: never;
@@ -28002,6 +28339,10 @@ export type Database = {
28002
28339
  };
28003
28340
  Returns: number;
28004
28341
  };
28342
+ floriday_orphan_settings_count: {
28343
+ Args: never;
28344
+ Returns: number;
28345
+ };
28005
28346
  floriday_publish_horizon_weeks: {
28006
28347
  Args: never;
28007
28348
  Returns: number;
@@ -28945,6 +29286,24 @@ export type Database = {
28945
29286
  };
28946
29287
  Returns: string;
28947
29288
  };
29289
+ logistics_allocation_check_changes: {
29290
+ Args: {
29291
+ p_order_item_ids?: string[];
29292
+ };
29293
+ Returns: Json;
29294
+ };
29295
+ logistics_allocation_fp: {
29296
+ Args: {
29297
+ p_order_id: string;
29298
+ };
29299
+ Returns: string;
29300
+ };
29301
+ logistics_allocation_frozen: {
29302
+ Args: {
29303
+ p_order_id: string;
29304
+ };
29305
+ Returns: boolean;
29306
+ };
28948
29307
  logistics_allowed_load_carriers: {
28949
29308
  Args: {
28950
29309
  p_strategy_id?: string;
@@ -28958,6 +29317,13 @@ export type Database = {
28958
29317
  };
28959
29318
  Returns: string;
28960
29319
  };
29320
+ logistics_apply_cart_swap: {
29321
+ Args: {
29322
+ p_delete_ids: string[];
29323
+ p_new_carts: Json;
29324
+ };
29325
+ Returns: Json;
29326
+ };
28961
29327
  logistics_apply_document_layouts: {
28962
29328
  Args: never;
28963
29329
  Returns: undefined;
@@ -29634,6 +30000,15 @@ export type Database = {
29634
30000
  };
29635
30001
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
29636
30002
  };
30003
+ logistics_double_group_lines: {
30004
+ Args: {
30005
+ p_order_id?: string;
30006
+ };
30007
+ Returns: {
30008
+ group_id: string;
30009
+ order_item_id: string;
30010
+ }[];
30011
+ };
29637
30012
  logistics_emit_event: {
29638
30013
  Args: {
29639
30014
  p_event_type: string;
@@ -29892,6 +30267,18 @@ export type Database = {
29892
30267
  };
29893
30268
  Returns: boolean;
29894
30269
  };
30270
+ logistics_frozen_allocation_scaled: {
30271
+ Args: {
30272
+ p_new_qty: number;
30273
+ p_order_item_id: string;
30274
+ };
30275
+ Returns: {
30276
+ group_id: string;
30277
+ qty: number;
30278
+ source: string;
30279
+ trade_item_key: string;
30280
+ }[];
30281
+ };
29895
30282
  logistics_fulfill_barcode_requests: {
29896
30283
  Args: {
29897
30284
  p_limit?: number;
@@ -29913,12 +30300,24 @@ export type Database = {
29913
30300
  };
29914
30301
  Returns: boolean;
29915
30302
  };
30303
+ logistics_is_group_label: {
30304
+ Args: {
30305
+ p_label: string;
30306
+ };
30307
+ Returns: boolean;
30308
+ };
29916
30309
  logistics_is_pick_workday: {
29917
30310
  Args: {
29918
30311
  p_date: string;
29919
30312
  };
29920
30313
  Returns: boolean;
29921
30314
  };
30315
+ logistics_key_product: {
30316
+ Args: {
30317
+ p_key: string;
30318
+ };
30319
+ Returns: string;
30320
+ };
29922
30321
  logistics_layout_method_status: {
29923
30322
  Args: never;
29924
30323
  Returns: Json;
@@ -30021,6 +30420,12 @@ export type Database = {
30021
30420
  };
30022
30421
  Returns: undefined;
30023
30422
  };
30423
+ logistics_order_current_warnings: {
30424
+ Args: {
30425
+ p_order_id: string;
30426
+ };
30427
+ Returns: string[];
30428
+ };
30024
30429
  logistics_order_documents_ready: {
30025
30430
  Args: {
30026
30431
  p_order_ref: string;
@@ -30473,6 +30878,21 @@ export type Database = {
30473
30878
  Args: never;
30474
30879
  Returns: number;
30475
30880
  };
30881
+ logistics_plan_wachttijd: {
30882
+ Args: {
30883
+ p_order_id: string;
30884
+ p_reason: string;
30885
+ };
30886
+ Returns: Json;
30887
+ };
30888
+ logistics_plan_wachttijd_melden: {
30889
+ Args: {
30890
+ p_order_id: string;
30891
+ p_reason: string;
30892
+ p_wacht: Json;
30893
+ };
30894
+ Returns: undefined;
30895
+ };
30476
30896
  logistics_planner_cart_snapshot: {
30477
30897
  Args: {
30478
30898
  p_buffer_id: string;
@@ -30488,6 +30908,23 @@ export type Database = {
30488
30908
  Args: never;
30489
30909
  Returns: number;
30490
30910
  };
30911
+ logistics_planner_lines: {
30912
+ Args: {
30913
+ p_order_id: string;
30914
+ };
30915
+ Returns: {
30916
+ components: Json;
30917
+ frozen: boolean;
30918
+ group_id: string;
30919
+ note: string;
30920
+ order_item_id: string;
30921
+ product_id: string;
30922
+ product_name: string;
30923
+ qty: number;
30924
+ trade_item_key: string;
30925
+ unit_kind: string;
30926
+ }[];
30927
+ };
30491
30928
  logistics_prepare_pick_documents: {
30492
30929
  Args: {
30493
30930
  p_limit?: number;
@@ -30559,6 +30996,12 @@ export type Database = {
30559
30996
  Args: never;
30560
30997
  Returns: number;
30561
30998
  };
30999
+ logistics_recompute_reserved_targeted: {
31000
+ Args: {
31001
+ p_product_id: string;
31002
+ };
31003
+ Returns: Json;
31004
+ };
30562
31005
  logistics_reconcile_missing_plan_queue: {
30563
31006
  Args: never;
30564
31007
  Returns: number;
@@ -30612,6 +31055,13 @@ export type Database = {
30612
31055
  };
30613
31056
  Returns: Json;
30614
31057
  };
31058
+ logistics_replan_selected_orders: {
31059
+ Args: {
31060
+ p_order_ids: string[];
31061
+ p_reason?: string;
31062
+ };
31063
+ Returns: Json;
31064
+ };
30615
31065
  logistics_report_delay: {
30616
31066
  Args: {
30617
31067
  p_expected_date?: string;
@@ -30628,6 +31078,12 @@ export type Database = {
30628
31078
  };
30629
31079
  Returns: string;
30630
31080
  };
31081
+ logistics_report_frozen_shortage: {
31082
+ Args: {
31083
+ p_order_item_ids: string[];
31084
+ };
31085
+ Returns: undefined;
31086
+ };
30631
31087
  logistics_rescan_orders: {
30632
31088
  Args: {
30633
31089
  p_days?: number;
@@ -30656,6 +31112,13 @@ export type Database = {
30656
31112
  };
30657
31113
  Returns: Json;
30658
31114
  };
31115
+ logistics_reserved_fast_skip: {
31116
+ Args: {
31117
+ p_key: string;
31118
+ p_raw: string;
31119
+ };
31120
+ Returns: boolean;
31121
+ };
30659
31122
  logistics_reserved_key: {
30660
31123
  Args: {
30661
31124
  p_key: string;
@@ -30681,6 +31144,12 @@ export type Database = {
30681
31144
  };
30682
31145
  Returns: string;
30683
31146
  };
31147
+ logistics_resolve_product_match: {
31148
+ Args: {
31149
+ p_label: string;
31150
+ };
31151
+ Returns: Record<string, unknown>;
31152
+ };
30684
31153
  logistics_resolve_settings: {
30685
31154
  Args: {
30686
31155
  p_config_id: string;
@@ -30801,6 +31270,16 @@ export type Database = {
30801
31270
  };
30802
31271
  Returns: string;
30803
31272
  };
31273
+ logistics_shipping_note_max_attempts: {
31274
+ Args: never;
31275
+ Returns: number;
31276
+ };
31277
+ logistics_shipping_note_release: {
31278
+ Args: {
31279
+ _order_number?: string;
31280
+ };
31281
+ Returns: number;
31282
+ };
30804
31283
  logistics_shipping_note_status: {
30805
31284
  Args: {
30806
31285
  p_cart_id?: string;
@@ -30808,6 +31287,12 @@ export type Database = {
30808
31287
  };
30809
31288
  Returns: Json;
30810
31289
  };
31290
+ logistics_shipping_note_wake: {
31291
+ Args: {
31292
+ _slip_job_id: string;
31293
+ };
31294
+ Returns: number;
31295
+ };
30811
31296
  logistics_shipping_notes_wake_all: {
30812
31297
  Args: never;
30813
31298
  Returns: Json;
@@ -30842,6 +31327,7 @@ export type Database = {
30842
31327
  slip_job_id: string;
30843
31328
  status: string;
30844
31329
  updated_at: string;
31330
+ voor_herstel: boolean;
30845
31331
  }[];
30846
31332
  SetofOptions: {
30847
31333
  from: "*";
@@ -30862,6 +31348,13 @@ export type Database = {
30862
31348
  };
30863
31349
  Returns: undefined;
30864
31350
  };
31351
+ logistics_slip_note_hold: {
31352
+ Args: {
31353
+ _id: string;
31354
+ _reason: string;
31355
+ };
31356
+ Returns: undefined;
31357
+ };
30865
31358
  logistics_slip_note_keep_waiting: {
30866
31359
  Args: {
30867
31360
  _class?: string;
@@ -33287,6 +33780,40 @@ export type Database = {
33287
33780
  };
33288
33781
  Returns: Json;
33289
33782
  };
33783
+ stock_import_cleanup: {
33784
+ Args: never;
33785
+ Returns: number;
33786
+ };
33787
+ stock_import_create: {
33788
+ Args: {
33789
+ p_connection_id: string;
33790
+ p_file_hash: string;
33791
+ p_filename: string;
33792
+ p_force?: boolean;
33793
+ p_rows: Json;
33794
+ };
33795
+ Returns: Json;
33796
+ };
33797
+ stock_import_process_chunk: {
33798
+ Args: {
33799
+ p_chunk_no: number;
33800
+ p_run_id: string;
33801
+ };
33802
+ Returns: Json;
33803
+ };
33804
+ stock_import_stop: {
33805
+ Args: {
33806
+ p_run_id: string;
33807
+ };
33808
+ Returns: Json;
33809
+ };
33810
+ stock_import_undo_chunk: {
33811
+ Args: {
33812
+ p_chunk_no: number;
33813
+ p_run_id: string;
33814
+ };
33815
+ Returns: Json;
33816
+ };
33290
33817
  stop_time_log: {
33291
33818
  Args: {
33292
33819
  p_employee_id: string;