@flowselections/floriday-voorraad 1.0.105 → 1.0.110

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 (42) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +3 -2
  3. package/dist-lib/components/voorraad/FloridayLoadCarriers.d.ts +9 -0
  4. package/dist-lib/components/voorraad/FloridayLoadCarriers.d.ts.map +1 -0
  5. package/dist-lib/components/voorraad/FloridayLoadCarriers.js +60 -0
  6. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/FustenPage.js +14 -6
  8. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/NieuwArtikelPage.js +7 -6
  10. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  11. package/dist-lib/components/voorraad/StockBulkButtons.js +3 -6
  12. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/StockSyncStatus.js +10 -2
  14. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/VoorraadStockCard.js +6 -4
  16. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  17. package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
  18. package/dist-lib/hooks/useFloridayWriteMode.d.ts +7 -0
  19. package/dist-lib/hooks/useFloridayWriteMode.d.ts.map +1 -0
  20. package/dist-lib/hooks/useFloridayWriteMode.js +21 -0
  21. package/dist-lib/hooks/useStockSyncHealth.d.ts +9 -0
  22. package/dist-lib/hooks/useStockSyncHealth.d.ts.map +1 -1
  23. package/dist-lib/hooks/useStockSyncHealth.js +23 -0
  24. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  25. package/dist-lib/hooks/useTradeItemStock.js +19 -9
  26. package/dist-lib/integrations/supabase/types.d.ts +1669 -122
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/__tests__/floriday-write-mode.test.d.ts +2 -0
  29. package/dist-lib/lib/__tests__/floriday-write-mode.test.d.ts.map +1 -0
  30. package/dist-lib/lib/__tests__/floriday-write-mode.test.js +40 -0
  31. package/dist-lib/lib/floriday-write-mode.d.ts +21 -0
  32. package/dist-lib/lib/floriday-write-mode.d.ts.map +1 -0
  33. package/dist-lib/lib/floriday-write-mode.js +40 -0
  34. package/dist-lib/lib/fusten.d.ts +20 -0
  35. package/dist-lib/lib/fusten.d.ts.map +1 -1
  36. package/dist-lib/lib/fusten.js +48 -41
  37. package/dist-lib/lib/stock-scope.d.ts +3 -1
  38. package/dist-lib/lib/stock-scope.d.ts.map +1 -1
  39. package/dist-lib/lib/stock-scope.js +3 -1
  40. package/package.json +1 -1
  41. package/sql/AGENTS.md +2 -8
  42. package/sql/floriday-voorraad-schema.sql +346 -68
@@ -12501,6 +12501,33 @@ export type Database = {
12501
12501
  };
12502
12502
  Relationships: [];
12503
12503
  };
12504
+ logistics_belading_waarschuwingen: {
12505
+ Row: {
12506
+ created_at: string;
12507
+ id: string;
12508
+ order_id: string;
12509
+ sleutel: string;
12510
+ tekst: string;
12511
+ updated_at: string;
12512
+ };
12513
+ Insert: {
12514
+ created_at?: string;
12515
+ id?: string;
12516
+ order_id: string;
12517
+ sleutel: string;
12518
+ tekst: string;
12519
+ updated_at?: string;
12520
+ };
12521
+ Update: {
12522
+ created_at?: string;
12523
+ id?: string;
12524
+ order_id?: string;
12525
+ sleutel?: string;
12526
+ tekst?: string;
12527
+ updated_at?: string;
12528
+ };
12529
+ Relationships: [];
12530
+ };
12504
12531
  logistics_capacity_alerts: {
12505
12532
  Row: {
12506
12533
  available_minutes: number;
@@ -12875,6 +12902,36 @@ export type Database = {
12875
12902
  };
12876
12903
  Relationships: [];
12877
12904
  };
12905
+ logistics_correctie_log: {
12906
+ Row: {
12907
+ correctie: string;
12908
+ created_at: string;
12909
+ id: string;
12910
+ nieuw: Json | null;
12911
+ object_id: string | null;
12912
+ omschrijving: string | null;
12913
+ oud: Json | null;
12914
+ };
12915
+ Insert: {
12916
+ correctie: string;
12917
+ created_at?: string;
12918
+ id?: string;
12919
+ nieuw?: Json | null;
12920
+ object_id?: string | null;
12921
+ omschrijving?: string | null;
12922
+ oud?: Json | null;
12923
+ };
12924
+ Update: {
12925
+ correctie?: string;
12926
+ created_at?: string;
12927
+ id?: string;
12928
+ nieuw?: Json | null;
12929
+ object_id?: string | null;
12930
+ omschrijving?: string | null;
12931
+ oud?: Json | null;
12932
+ };
12933
+ Relationships: [];
12934
+ };
12878
12935
  logistics_decisions: {
12879
12936
  Row: {
12880
12937
  created_at: string;
@@ -15370,6 +15427,39 @@ export type Database = {
15370
15427
  };
15371
15428
  Relationships: [];
15372
15429
  };
15430
+ logistics_zonder_kar_pogingen: {
15431
+ Row: {
15432
+ created_at: string;
15433
+ gemeld_at: string | null;
15434
+ laatste_poging_at: string | null;
15435
+ opgelost_at: string | null;
15436
+ order_id: string;
15437
+ order_number: string | null;
15438
+ pogingen: number;
15439
+ updated_at: string;
15440
+ };
15441
+ Insert: {
15442
+ created_at?: string;
15443
+ gemeld_at?: string | null;
15444
+ laatste_poging_at?: string | null;
15445
+ opgelost_at?: string | null;
15446
+ order_id: string;
15447
+ order_number?: string | null;
15448
+ pogingen?: number;
15449
+ updated_at?: string;
15450
+ };
15451
+ Update: {
15452
+ created_at?: string;
15453
+ gemeld_at?: string | null;
15454
+ laatste_poging_at?: string | null;
15455
+ opgelost_at?: string | null;
15456
+ order_id?: string;
15457
+ order_number?: string | null;
15458
+ pogingen?: number;
15459
+ updated_at?: string;
15460
+ };
15461
+ Relationships: [];
15462
+ };
15373
15463
  mailbox_ai_goal_prompts: {
15374
15464
  Row: {
15375
15465
  created_at: string;
@@ -17043,6 +17133,7 @@ export type Database = {
17043
17133
  sort_order: number;
17044
17134
  sticker_available: boolean;
17045
17135
  sticker_cost: number | null;
17136
+ zero_price_confirmed: boolean;
17046
17137
  };
17047
17138
  Insert: {
17048
17139
  available_stock?: number;
@@ -17062,6 +17153,7 @@ export type Database = {
17062
17153
  sort_order?: number;
17063
17154
  sticker_available?: boolean;
17064
17155
  sticker_cost?: number | null;
17156
+ zero_price_confirmed?: boolean;
17065
17157
  };
17066
17158
  Update: {
17067
17159
  available_stock?: number;
@@ -17081,6 +17173,7 @@ export type Database = {
17081
17173
  sort_order?: number;
17082
17174
  sticker_available?: boolean;
17083
17175
  sticker_cost?: number | null;
17176
+ zero_price_confirmed?: boolean;
17084
17177
  };
17085
17178
  Relationships: [
17086
17179
  {
@@ -17185,6 +17278,8 @@ export type Database = {
17185
17278
  offer_orders: {
17186
17279
  Row: {
17187
17280
  campaign_id: string;
17281
+ carrier_warning: string | null;
17282
+ carrier_warning_at: string | null;
17188
17283
  created_at: string;
17189
17284
  customer_email: string;
17190
17285
  customer_id: string | null;
@@ -17207,6 +17302,8 @@ export type Database = {
17207
17302
  };
17208
17303
  Insert: {
17209
17304
  campaign_id: string;
17305
+ carrier_warning?: string | null;
17306
+ carrier_warning_at?: string | null;
17210
17307
  created_at?: string;
17211
17308
  customer_email: string;
17212
17309
  customer_id?: string | null;
@@ -17229,6 +17326,8 @@ export type Database = {
17229
17326
  };
17230
17327
  Update: {
17231
17328
  campaign_id?: string;
17329
+ carrier_warning?: string | null;
17330
+ carrier_warning_at?: string | null;
17232
17331
  created_at?: string;
17233
17332
  customer_email?: string;
17234
17333
  customer_id?: string | null;
@@ -17492,6 +17591,7 @@ export type Database = {
17492
17591
  crates_per_layer: number;
17493
17592
  created_at: string;
17494
17593
  id: string;
17594
+ lagen: number | null;
17495
17595
  layer_fraction: number;
17496
17596
  layer_index: number | null;
17497
17597
  layer_share_pct: number;
@@ -17511,6 +17611,7 @@ export type Database = {
17511
17611
  crates_per_layer?: number;
17512
17612
  created_at?: string;
17513
17613
  id?: string;
17614
+ lagen?: number | null;
17514
17615
  layer_fraction?: number;
17515
17616
  layer_index?: number | null;
17516
17617
  layer_share_pct?: number;
@@ -17530,6 +17631,7 @@ export type Database = {
17530
17631
  crates_per_layer?: number;
17531
17632
  created_at?: string;
17532
17633
  id?: string;
17634
+ lagen?: number | null;
17533
17635
  layer_fraction?: number;
17534
17636
  layer_index?: number | null;
17535
17637
  layer_share_pct?: number;
@@ -20627,6 +20729,7 @@ export type Database = {
20627
20729
  render_html: string | null;
20628
20730
  resultaat_pdf_base64: string | null;
20629
20731
  status: Database["public"]["Enums"]["print_job_status"];
20732
+ uitwijk: Json | null;
20630
20733
  updated_at: string;
20631
20734
  verloopt_na_s: number | null;
20632
20735
  verwerkingsfase: string;
@@ -20683,6 +20786,7 @@ export type Database = {
20683
20786
  render_html?: string | null;
20684
20787
  resultaat_pdf_base64?: string | null;
20685
20788
  status?: Database["public"]["Enums"]["print_job_status"];
20789
+ uitwijk?: Json | null;
20686
20790
  updated_at?: string;
20687
20791
  verloopt_na_s?: number | null;
20688
20792
  verwerkingsfase?: string;
@@ -20739,6 +20843,7 @@ export type Database = {
20739
20843
  render_html?: string | null;
20740
20844
  resultaat_pdf_base64?: string | null;
20741
20845
  status?: Database["public"]["Enums"]["print_job_status"];
20846
+ uitwijk?: Json | null;
20742
20847
  updated_at?: string;
20743
20848
  verloopt_na_s?: number | null;
20744
20849
  verwerkingsfase?: string;
@@ -20889,6 +20994,7 @@ export type Database = {
20889
20994
  };
20890
20995
  print_plekken: {
20891
20996
  Row: {
20997
+ a4_stickervel: Json | null;
20892
20998
  actief: boolean;
20893
20999
  created_at: string;
20894
21000
  id: string;
@@ -20897,6 +21003,7 @@ export type Database = {
20897
21003
  updated_at: string;
20898
21004
  };
20899
21005
  Insert: {
21006
+ a4_stickervel?: Json | null;
20900
21007
  actief?: boolean;
20901
21008
  created_at?: string;
20902
21009
  id?: string;
@@ -20905,6 +21012,7 @@ export type Database = {
20905
21012
  updated_at?: string;
20906
21013
  };
20907
21014
  Update: {
21015
+ a4_stickervel?: Json | null;
20908
21016
  actief?: boolean;
20909
21017
  created_at?: string;
20910
21018
  id?: string;
@@ -27854,6 +27962,27 @@ export type Database = {
27854
27962
  };
27855
27963
  Relationships: [];
27856
27964
  };
27965
+ voorraad_local_context: {
27966
+ Row: {
27967
+ created_at: string;
27968
+ created_by: string | null;
27969
+ id: string;
27970
+ singleton: boolean;
27971
+ };
27972
+ Insert: {
27973
+ created_at?: string;
27974
+ created_by?: string | null;
27975
+ id?: string;
27976
+ singleton?: boolean;
27977
+ };
27978
+ Update: {
27979
+ created_at?: string;
27980
+ created_by?: string | null;
27981
+ id?: string;
27982
+ singleton?: boolean;
27983
+ };
27984
+ Relationships: [];
27985
+ };
27857
27986
  voorraad_logistics_event_log: {
27858
27987
  Row: {
27859
27988
  created_at: string;
@@ -30493,6 +30622,10 @@ export type Database = {
30493
30622
  };
30494
30623
  Returns: number;
30495
30624
  };
30625
+ _floriday_write_mode_data: {
30626
+ Args: never;
30627
+ Returns: Json;
30628
+ };
30496
30629
  _jsonb_paden_met_waarde: {
30497
30630
  Args: {
30498
30631
  _j: Json;
@@ -30505,6 +30638,22 @@ export type Database = {
30505
30638
  Args: never;
30506
30639
  Returns: boolean;
30507
30640
  };
30641
+ _layouts_toegang_besluit: {
30642
+ Args: {
30643
+ p_alleen_beheer: boolean;
30644
+ p_beheerder: boolean;
30645
+ p_ingelogd: boolean;
30646
+ p_request_path: string;
30647
+ p_server: boolean;
30648
+ };
30649
+ Returns: string;
30650
+ };
30651
+ _layouts_toegang_server_of_ingelogd: {
30652
+ Args: {
30653
+ p_alleen_beheer: boolean;
30654
+ };
30655
+ Returns: undefined;
30656
+ };
30508
30657
  _migrate_rewrite_stock_key: {
30509
30658
  Args: {
30510
30659
  _from_key: string;
@@ -30512,6 +30661,13 @@ export type Database = {
30512
30661
  };
30513
30662
  Returns: undefined;
30514
30663
  };
30664
+ _pick_job_of_station: {
30665
+ Args: {
30666
+ p_job_id: string;
30667
+ p_station: string;
30668
+ };
30669
+ Returns: boolean;
30670
+ };
30515
30671
  _pick_station_for_cart: {
30516
30672
  Args: {
30517
30673
  p_cart_id: string;
@@ -30576,6 +30732,10 @@ export type Database = {
30576
30732
  };
30577
30733
  Returns: undefined;
30578
30734
  };
30735
+ _scan_floriday_stand: {
30736
+ Args: never;
30737
+ Returns: Json;
30738
+ };
30579
30739
  _scan_hash: {
30580
30740
  Args: {
30581
30741
  p: string;
@@ -30635,6 +30795,10 @@ export type Database = {
30635
30795
  };
30636
30796
  Returns: Json;
30637
30797
  };
30798
+ aanbiedingsmail_ensure_cron: {
30799
+ Args: never;
30800
+ Returns: Json;
30801
+ };
30638
30802
  aanbiedingsmail_install_check: {
30639
30803
  Args: never;
30640
30804
  Returns: Json;
@@ -30889,6 +31053,17 @@ export type Database = {
30889
31053
  };
30890
31054
  Returns: Json;
30891
31055
  };
31056
+ afh_signup_moment_for_orders: {
31057
+ Args: {
31058
+ p_order_ids: string[];
31059
+ };
31060
+ Returns: {
31061
+ aanmeld_at: string;
31062
+ bron: string;
31063
+ carrier_id: string;
31064
+ order_id: string;
31065
+ }[];
31066
+ };
30892
31067
  afh_signup_send_group: {
30893
31068
  Args: {
30894
31069
  g: Json;
@@ -31232,6 +31407,7 @@ export type Database = {
31232
31407
  render_html: string | null;
31233
31408
  resultaat_pdf_base64: string | null;
31234
31409
  status: Database["public"]["Enums"]["print_job_status"];
31410
+ uitwijk: Json | null;
31235
31411
  updated_at: string;
31236
31412
  verloopt_na_s: number | null;
31237
31413
  verwerkingsfase: string;
@@ -31430,6 +31606,7 @@ export type Database = {
31430
31606
  render_html: string | null;
31431
31607
  resultaat_pdf_base64: string | null;
31432
31608
  status: Database["public"]["Enums"]["print_job_status"];
31609
+ uitwijk: Json | null;
31433
31610
  updated_at: string;
31434
31611
  verloopt_na_s: number | null;
31435
31612
  verwerkingsfase: string;
@@ -31498,6 +31675,7 @@ export type Database = {
31498
31675
  render_html: string | null;
31499
31676
  resultaat_pdf_base64: string | null;
31500
31677
  status: Database["public"]["Enums"]["print_job_status"];
31678
+ uitwijk: Json | null;
31501
31679
  updated_at: string;
31502
31680
  verloopt_na_s: number | null;
31503
31681
  verwerkingsfase: string;
@@ -31903,6 +32081,16 @@ export type Database = {
31903
32081
  };
31904
32082
  Returns: string;
31905
32083
  };
32084
+ email_auth_enqueue_internal: {
32085
+ Args: {
32086
+ p_dedupe_key: string;
32087
+ p_from_name: string;
32088
+ p_html: string;
32089
+ p_source_module: string;
32090
+ p_subject: string;
32091
+ };
32092
+ Returns: Json;
32093
+ };
31906
32094
  email_auth_fetch_message: {
31907
32095
  Args: {
31908
32096
  _connection_id: string;
@@ -31926,6 +32114,14 @@ export type Database = {
31926
32114
  status: string;
31927
32115
  }[];
31928
32116
  };
32117
+ email_auth_install_check: {
32118
+ Args: never;
32119
+ Returns: Json;
32120
+ };
32121
+ email_auth_is_server_call: {
32122
+ Args: never;
32123
+ Returns: boolean;
32124
+ };
31929
32125
  email_auth_upsert_connection: {
31930
32126
  Args: {
31931
32127
  _account_email: string;
@@ -31984,6 +32180,10 @@ export type Database = {
31984
32180
  Args: never;
31985
32181
  Returns: string;
31986
32182
  };
32183
+ ensure_voorraad_local_context: {
32184
+ Args: never;
32185
+ Returns: string;
32186
+ };
31987
32187
  exact_auth_consume_calls: {
31988
32188
  Args: {
31989
32189
  _account_key: string;
@@ -32049,6 +32249,30 @@ export type Database = {
32049
32249
  };
32050
32250
  Returns: boolean;
32051
32251
  };
32252
+ floricode_load_carriers: {
32253
+ Args: never;
32254
+ Returns: {
32255
+ code: string;
32256
+ environment: string;
32257
+ height_mm: number;
32258
+ length_mm: number;
32259
+ name: string;
32260
+ width_mm: number;
32261
+ }[];
32262
+ };
32263
+ floricode_packaging_types: {
32264
+ Args: never;
32265
+ Returns: {
32266
+ code: string;
32267
+ expiry_date: string;
32268
+ height_mm: number;
32269
+ length_mm: number;
32270
+ name: string;
32271
+ packaging_type_id: string;
32272
+ packaging_type_name: string;
32273
+ width_mm: number;
32274
+ }[];
32275
+ };
32052
32276
  floricode_sync_cron_schedule: {
32053
32277
  Args: {
32054
32278
  p_apikey: string;
@@ -32628,6 +32852,17 @@ export type Database = {
32628
32852
  status: string;
32629
32853
  }[];
32630
32854
  };
32855
+ get_stock_context: {
32856
+ Args: {
32857
+ p_ensure?: boolean;
32858
+ };
32859
+ Returns: {
32860
+ connection_id: string;
32861
+ context_id: string;
32862
+ context_kind: string;
32863
+ user_id: string;
32864
+ }[];
32865
+ };
32631
32866
  get_twinfield_cron_jobs: {
32632
32867
  Args: never;
32633
32868
  Returns: {
@@ -33308,6 +33543,12 @@ export type Database = {
33308
33543
  status: string;
33309
33544
  }[];
33310
33545
  };
33546
+ layout_rij_weergavenaam: {
33547
+ Args: {
33548
+ _rij: Json;
33549
+ };
33550
+ Returns: string;
33551
+ };
33311
33552
  layout_standaard_overnemen: {
33312
33553
  Args: {
33313
33554
  _layout_id: string;
@@ -33344,6 +33585,50 @@ export type Database = {
33344
33585
  Args: never;
33345
33586
  Returns: number;
33346
33587
  };
33588
+ layouts_a4_velindelingen: {
33589
+ Args: never;
33590
+ Returns: {
33591
+ breedte_mm: number;
33592
+ hoogte_mm: number;
33593
+ kolommen: number;
33594
+ rijen: number;
33595
+ }[];
33596
+ };
33597
+ layouts_install_check: {
33598
+ Args: never;
33599
+ Returns: Json;
33600
+ };
33601
+ layouts_kies_sticker_route: {
33602
+ Args: {
33603
+ p_a4_printer: string;
33604
+ p_a4_vel: Json;
33605
+ p_etiketten: Json;
33606
+ p_heeft_barcode: boolean;
33607
+ p_instelling: Json;
33608
+ p_sticker_breedte_mm: number;
33609
+ p_sticker_hoogte_mm: number;
33610
+ };
33611
+ Returns: Json;
33612
+ };
33613
+ layouts_sticker_verkleinen: {
33614
+ Args: never;
33615
+ Returns: Json;
33616
+ };
33617
+ layouts_vroege_sticker_waarschuwing: {
33618
+ Args: {
33619
+ p_tot: string;
33620
+ p_van: string;
33621
+ };
33622
+ Returns: Json;
33623
+ };
33624
+ layouts_zorg_voor_a4_stickervel: {
33625
+ Args: never;
33626
+ Returns: Json;
33627
+ };
33628
+ layouts_zorg_voor_sticker_verkleinen: {
33629
+ Args: never;
33630
+ Returns: Json;
33631
+ };
33347
33632
  list_medewerkers: {
33348
33633
  Args: never;
33349
33634
  Returns: {
@@ -33443,6 +33728,17 @@ export type Database = {
33443
33728
  };
33444
33729
  Returns: boolean;
33445
33730
  };
33731
+ logistics_aanmeldmoment: {
33732
+ Args: {
33733
+ p_order_ids: string[];
33734
+ };
33735
+ Returns: {
33736
+ aanmeld_at: string;
33737
+ bron: string;
33738
+ order_id: string;
33739
+ tekst: string;
33740
+ }[];
33741
+ };
33446
33742
  logistics_acc_direct: {
33447
33743
  Args: {
33448
33744
  p_fn: string;
@@ -33674,6 +33970,30 @@ export type Database = {
33674
33970
  Args: never;
33675
33971
  Returns: string;
33676
33972
  };
33973
+ logistics_belading_waarschuwingen_zet: {
33974
+ Args: {
33975
+ p_items: Json;
33976
+ p_order_ids: string[];
33977
+ };
33978
+ Returns: number;
33979
+ };
33980
+ logistics_belading_wacht: {
33981
+ Args: {
33982
+ p_order_id?: string;
33983
+ };
33984
+ Returns: {
33985
+ order_id: string;
33986
+ order_ref: string;
33987
+ product: string;
33988
+ redenen: string[];
33989
+ sinds: string;
33990
+ sleutel: string;
33991
+ }[];
33992
+ };
33993
+ logistics_bewaak_zonder_kar: {
33994
+ Args: never;
33995
+ Returns: Json;
33996
+ };
33677
33997
  logistics_block_reason_code: {
33678
33998
  Args: {
33679
33999
  p_details?: Json;
@@ -34229,6 +34549,14 @@ export type Database = {
34229
34549
  Args: never;
34230
34550
  Returns: number;
34231
34551
  };
34552
+ logistics_check_190: {
34553
+ Args: never;
34554
+ Returns: {
34555
+ ok: boolean;
34556
+ onderdeel: string;
34557
+ toelichting: string;
34558
+ }[];
34559
+ };
34232
34560
  logistics_check_order_allowed: {
34233
34561
  Args: {
34234
34562
  p_lines: Json;
@@ -34524,6 +34852,36 @@ export type Database = {
34524
34852
  Args: never;
34525
34853
  Returns: Json;
34526
34854
  };
34855
+ logistics_correctie_buffers_geannuleerd: {
34856
+ Args: {
34857
+ p_uitvoeren?: boolean;
34858
+ };
34859
+ Returns: {
34860
+ actieve_karren: number;
34861
+ andere_open_orders: string;
34862
+ buffer_id: string;
34863
+ order_id: string;
34864
+ order_number: string;
34865
+ reden: string;
34866
+ uitgevoerd: boolean;
34867
+ }[];
34868
+ };
34869
+ logistics_correctie_laagaandeel: {
34870
+ Args: {
34871
+ p_uitvoeren?: boolean;
34872
+ };
34873
+ Returns: {
34874
+ cart_id: string;
34875
+ fusten: number;
34876
+ fusten_per_laag: number;
34877
+ huidig: number;
34878
+ item_id: string;
34879
+ nieuw_lagen: number;
34880
+ nieuw_layer_fraction: number;
34881
+ orders: string;
34882
+ uitgevoerd: boolean;
34883
+ }[];
34884
+ };
34527
34885
  logistics_cron_health: {
34528
34886
  Args: never;
34529
34887
  Returns: Json;
@@ -34679,6 +35037,10 @@ export type Database = {
34679
35037
  };
34680
35038
  Returns: Json;
34681
35039
  };
35040
+ logistics_ensure_rebuffer_setting: {
35041
+ Args: never;
35042
+ Returns: number;
35043
+ };
34682
35044
  logistics_ensure_runtime_defaults: {
34683
35045
  Args: never;
34684
35046
  Returns: undefined;
@@ -35104,6 +35466,15 @@ export type Database = {
35104
35466
  };
35105
35467
  Returns: string;
35106
35468
  };
35469
+ logistics_open_orders_zonder_kar: {
35470
+ Args: never;
35471
+ Returns: {
35472
+ delivery_date: string;
35473
+ laatste_reden: string;
35474
+ order_id: string;
35475
+ order_number: string;
35476
+ }[];
35477
+ };
35107
35478
  logistics_opening_timezone: {
35108
35479
  Args: never;
35109
35480
  Returns: string;
@@ -35453,12 +35824,20 @@ export type Database = {
35453
35824
  Args: never;
35454
35825
  Returns: Json;
35455
35826
  };
35456
- logistics_own_sticker_count: {
35457
- Args: {
35458
- p_ppc_product: number;
35459
- p_ppc_regel: number;
35460
- p_quantity: number;
35461
- p_unit: string;
35827
+ logistics_overload_check: {
35828
+ Args: never;
35829
+ Returns: {
35830
+ ok: boolean;
35831
+ onderdeel: string;
35832
+ toelichting: string;
35833
+ }[];
35834
+ };
35835
+ logistics_own_sticker_count: {
35836
+ Args: {
35837
+ p_ppc_product: number;
35838
+ p_ppc_regel: number;
35839
+ p_quantity: number;
35840
+ p_unit: string;
35462
35841
  };
35463
35842
  Returns: number;
35464
35843
  };
@@ -35633,6 +36012,21 @@ export type Database = {
35633
36012
  unit_ref: string;
35634
36013
  }[];
35635
36014
  };
36015
+ logistics_pick_voorbeeld_layout: {
36016
+ Args: {
36017
+ p_queue_ids: string[];
36018
+ };
36019
+ Returns: {
36020
+ breedte_mm: number;
36021
+ documentsoort: string;
36022
+ hoogte_mm: number;
36023
+ layout_id: string;
36024
+ layout_naam: string;
36025
+ ok: boolean;
36026
+ queue_id: string;
36027
+ reden: string;
36028
+ }[];
36029
+ };
35636
36030
  logistics_pickup_moments_today: {
35637
36031
  Args: never;
35638
36032
  Returns: Json;
@@ -35716,6 +36110,15 @@ export type Database = {
35716
36110
  };
35717
36111
  Returns: string;
35718
36112
  };
36113
+ logistics_plan_fail_log: {
36114
+ Args: {
36115
+ p_actor: string;
36116
+ p_msg: string;
36117
+ p_order_id: string;
36118
+ p_state: string;
36119
+ };
36120
+ Returns: undefined;
36121
+ };
35719
36122
  logistics_plan_finish: {
35720
36123
  Args: {
35721
36124
  p_error?: string;
@@ -35977,6 +36380,10 @@ export type Database = {
35977
36380
  Args: never;
35978
36381
  Returns: number;
35979
36382
  };
36383
+ logistics_rebuffer_aan: {
36384
+ Args: never;
36385
+ Returns: boolean;
36386
+ };
35980
36387
  logistics_rebuffer_candidates: {
35981
36388
  Args: never;
35982
36389
  Returns: {
@@ -36016,6 +36423,12 @@ export type Database = {
36016
36423
  reason: string;
36017
36424
  }[];
36018
36425
  };
36426
+ logistics_rebuffer_vastgezet: {
36427
+ Args: {
36428
+ p_order_id: string;
36429
+ };
36430
+ Returns: boolean;
36431
+ };
36019
36432
  logistics_recalc_tick_kick: {
36020
36433
  Args: never;
36021
36434
  Returns: number;
@@ -36639,6 +37052,19 @@ export type Database = {
36639
37052
  Args: never;
36640
37053
  Returns: boolean;
36641
37054
  };
37055
+ logistics_sticker_maten_per_dag: {
37056
+ Args: {
37057
+ p_tot: string;
37058
+ p_van: string;
37059
+ };
37060
+ Returns: {
37061
+ aantal: number;
37062
+ breedte_mm: number;
37063
+ dag: string;
37064
+ hoogte_mm: number;
37065
+ print_plek_id: string;
37066
+ }[];
37067
+ };
36642
37068
  logistics_sticker_moment: {
36643
37069
  Args: {
36644
37070
  _cart: string;
@@ -37221,10 +37647,25 @@ export type Database = {
37221
37647
  naam: string;
37222
37648
  online: boolean;
37223
37649
  }[];
37650
+ } | {
37651
+ Args: {
37652
+ p_device_key: string;
37653
+ };
37654
+ Returns: {
37655
+ id: string;
37656
+ locatie: string;
37657
+ naam: string;
37658
+ online: boolean;
37659
+ }[];
37224
37660
  };
37225
37661
  pick_apply_buffer_events: {
37226
37662
  Args: never;
37227
37663
  Returns: Json;
37664
+ } | {
37665
+ Args: {
37666
+ p_device_key: string;
37667
+ };
37668
+ Returns: Json;
37228
37669
  };
37229
37670
  pick_assert_printable: {
37230
37671
  Args: {
@@ -37246,6 +37687,15 @@ export type Database = {
37246
37687
  orders: number;
37247
37688
  pick_day: string;
37248
37689
  }[];
37690
+ } | {
37691
+ Args: {
37692
+ _max_days?: number;
37693
+ p_device_key: string;
37694
+ };
37695
+ Returns: {
37696
+ orders: number;
37697
+ pick_day: string;
37698
+ }[];
37249
37699
  };
37250
37700
  pick_buffer_order_ids: {
37251
37701
  Args: {
@@ -37253,6 +37703,10 @@ export type Database = {
37253
37703
  };
37254
37704
  Returns: string[];
37255
37705
  };
37706
+ pick_build_key_variants: {
37707
+ Args: never;
37708
+ Returns: Json;
37709
+ };
37256
37710
  pick_cart_breakdown: {
37257
37711
  Args: {
37258
37712
  _order_id: string;
@@ -37308,15 +37762,14 @@ export type Database = {
37308
37762
  isOneToOne: true;
37309
37763
  isSetofReturn: false;
37310
37764
  };
37311
- };
37312
- pick_claim_next_document: {
37765
+ } | {
37313
37766
  Args: {
37314
- _country_code: string;
37315
- _pick_day?: string;
37767
+ _queue_item_id: string;
37316
37768
  _screen_id: string;
37317
37769
  _session_id: string;
37318
37770
  _station_id: string;
37319
37771
  _timeout_seconds?: number;
37772
+ p_device_key: string;
37320
37773
  };
37321
37774
  Returns: {
37322
37775
  announced_at: string;
@@ -37360,18 +37813,14 @@ export type Database = {
37360
37813
  isSetofReturn: false;
37361
37814
  };
37362
37815
  };
37363
- pick_cleanup_maintenance: {
37364
- Args: {
37365
- _heartbeat_hours?: number;
37366
- _log_days?: number;
37367
- };
37368
- Returns: Json;
37369
- };
37370
- pick_complete_print: {
37816
+ pick_claim_next_document: {
37371
37817
  Args: {
37372
- _printer_id: string;
37373
- _queue_item_id: string;
37818
+ _country_code: string;
37819
+ _pick_day?: string;
37820
+ _screen_id: string;
37374
37821
  _session_id: string;
37822
+ _station_id: string;
37823
+ _timeout_seconds?: number;
37375
37824
  };
37376
37825
  Returns: {
37377
37826
  announced_at: string;
@@ -37414,13 +37863,15 @@ export type Database = {
37414
37863
  isOneToOne: true;
37415
37864
  isSetofReturn: false;
37416
37865
  };
37417
- };
37418
- pick_complete_print_cart: {
37866
+ } | {
37419
37867
  Args: {
37420
- _cart_id: string;
37421
- _printer_id: string;
37422
- _queue_item_id: string;
37868
+ _country_code: string;
37869
+ _pick_day?: string;
37870
+ _screen_id: string;
37423
37871
  _session_id: string;
37872
+ _station_id: string;
37873
+ _timeout_seconds?: number;
37874
+ p_device_key: string;
37424
37875
  };
37425
37876
  Returns: {
37426
37877
  announced_at: string;
@@ -37464,105 +37915,66 @@ export type Database = {
37464
37915
  isSetofReturn: false;
37465
37916
  };
37466
37917
  };
37467
- pick_complete_print_carts: {
37468
- Args: {
37469
- _cart_ids: string[];
37470
- _queue_item_id: string;
37471
- _session_id: string;
37472
- };
37473
- Returns: Json;
37474
- };
37475
- pick_create_pair_code: {
37476
- Args: {
37477
- p_station_id: string;
37478
- };
37479
- Returns: Json;
37480
- };
37481
- pick_current_pick_day: {
37482
- Args: never;
37483
- Returns: string;
37484
- };
37485
- pick_day_counts: {
37486
- Args: {
37487
- _pick_day?: string;
37488
- _screen_id?: string;
37489
- _station_id?: string;
37490
- };
37491
- Returns: Json;
37492
- };
37493
- pick_device_key_required: {
37494
- Args: never;
37495
- Returns: boolean;
37496
- };
37497
- pick_document_layout_data: {
37918
+ pick_cleanup_maintenance: {
37498
37919
  Args: {
37499
- _layout_id: string;
37920
+ _heartbeat_hours?: number;
37921
+ _log_days?: number;
37500
37922
  };
37501
37923
  Returns: Json;
37502
37924
  };
37503
- pick_enqueue_print_job: {
37504
- Args: {
37505
- _is_herprint?: boolean;
37506
- _printer_id?: string;
37507
- _queue_item_id: string;
37508
- _session_id?: string;
37509
- };
37510
- Returns: string;
37511
- } | {
37512
- Args: {
37513
- _cart_id: string;
37514
- _is_herprint: boolean;
37515
- _printer_id: string;
37516
- _queue_item_id: string;
37517
- _session_id: string;
37518
- };
37519
- Returns: string;
37520
- };
37521
- pick_enqueue_print_job_from_cart: {
37925
+ pick_complete_print: {
37522
37926
  Args: {
37523
- _cart_id: string;
37524
- _is_herprint: boolean;
37525
37927
  _printer_id: string;
37526
37928
  _queue_item_id: string;
37527
- _selected_cart: Json;
37528
37929
  _session_id: string;
37529
37930
  };
37530
- Returns: string;
37531
- };
37532
- pick_ensure_settings: {
37533
- Args: never;
37534
- Returns: undefined;
37535
- };
37536
- pick_find_sent_elsewhere: {
37537
- Args: {
37538
- _cart_id: string;
37539
- _queue_item_id: string;
37931
+ Returns: {
37932
+ announced_at: string;
37933
+ assigned_user_id: string | null;
37934
+ barcode: string | null;
37935
+ cancelled_at: string | null;
37936
+ cart_count: number;
37937
+ completed_at: string | null;
37938
+ country_code: string | null;
37939
+ created_at: string;
37940
+ customer_name: string | null;
37941
+ delivery_address: string | null;
37942
+ document_number: string | null;
37943
+ document_type_id: string | null;
37944
+ due_at: string | null;
37945
+ id: string;
37946
+ is_urgent: boolean;
37947
+ line_count: number;
37948
+ order_number: string | null;
37949
+ order_type: string | null;
37950
+ payload: Json;
37951
+ print_count: number;
37952
+ print_job_id: string | null;
37953
+ printed_at: string | null;
37954
+ printed_by: string | null;
37955
+ printed_cart_ids: Json;
37956
+ printer_id: string | null;
37957
+ priority: number;
37958
+ reference: string | null;
37959
+ route: string | null;
37960
+ screen_id: string | null;
37961
+ station_id: string | null;
37962
+ status_id: string | null;
37963
+ updated_at: string;
37964
+ warnings: Json;
37540
37965
  };
37541
- Returns: Json;
37542
- };
37543
- pick_has_station_role: {
37544
- Args: never;
37545
- Returns: boolean;
37546
- };
37547
- pick_is_reference_admin: {
37548
- Args: never;
37549
- Returns: boolean;
37550
- };
37551
- pick_is_server: {
37552
- Args: never;
37553
- Returns: boolean;
37554
- };
37555
- pick_key_hash: {
37556
- Args: {
37557
- p_key: string;
37966
+ SetofOptions: {
37967
+ from: "*";
37968
+ to: "pick_queue";
37969
+ isOneToOne: true;
37970
+ isSetofReturn: false;
37558
37971
  };
37559
- Returns: string;
37560
- };
37561
- pick_mark_printed: {
37972
+ } | {
37562
37973
  Args: {
37974
+ _printer_id: string;
37563
37975
  _queue_item_id: string;
37564
- _reden?: string;
37565
37976
  _session_id: string;
37977
+ p_device_key: string;
37566
37978
  };
37567
37979
  Returns: {
37568
37980
  announced_at: string;
@@ -37606,31 +38018,395 @@ export type Database = {
37606
38018
  isSetofReturn: false;
37607
38019
  };
37608
38020
  };
37609
- pick_order_context: {
37610
- Args: {
37611
- _order_id?: string;
37612
- _order_number?: string;
37613
- };
37614
- Returns: Json;
37615
- };
37616
- pick_preview_job: {
38021
+ pick_complete_print_cart: {
37617
38022
  Args: {
38023
+ _cart_id: string;
38024
+ _printer_id: string;
37618
38025
  _queue_item_id: string;
37619
- _station_slug: string;
38026
+ _session_id: string;
37620
38027
  };
37621
- Returns: Json;
38028
+ Returns: {
38029
+ announced_at: string;
38030
+ assigned_user_id: string | null;
38031
+ barcode: string | null;
38032
+ cancelled_at: string | null;
38033
+ cart_count: number;
38034
+ completed_at: string | null;
38035
+ country_code: string | null;
38036
+ created_at: string;
38037
+ customer_name: string | null;
38038
+ delivery_address: string | null;
38039
+ document_number: string | null;
38040
+ document_type_id: string | null;
38041
+ due_at: string | null;
38042
+ id: string;
38043
+ is_urgent: boolean;
38044
+ line_count: number;
38045
+ order_number: string | null;
38046
+ order_type: string | null;
38047
+ payload: Json;
38048
+ print_count: number;
38049
+ print_job_id: string | null;
38050
+ printed_at: string | null;
38051
+ printed_by: string | null;
38052
+ printed_cart_ids: Json;
38053
+ printer_id: string | null;
38054
+ priority: number;
38055
+ reference: string | null;
38056
+ route: string | null;
38057
+ screen_id: string | null;
38058
+ station_id: string | null;
38059
+ status_id: string | null;
38060
+ updated_at: string;
38061
+ warnings: Json;
38062
+ };
38063
+ SetofOptions: {
38064
+ from: "*";
38065
+ to: "pick_queue";
38066
+ isOneToOne: true;
38067
+ isSetofReturn: false;
38068
+ };
38069
+ } | {
38070
+ Args: {
38071
+ _cart_id: string;
38072
+ _printer_id: string;
38073
+ _queue_item_id: string;
38074
+ _session_id: string;
38075
+ p_device_key: string;
38076
+ };
38077
+ Returns: {
38078
+ announced_at: string;
38079
+ assigned_user_id: string | null;
38080
+ barcode: string | null;
38081
+ cancelled_at: string | null;
38082
+ cart_count: number;
38083
+ completed_at: string | null;
38084
+ country_code: string | null;
38085
+ created_at: string;
38086
+ customer_name: string | null;
38087
+ delivery_address: string | null;
38088
+ document_number: string | null;
38089
+ document_type_id: string | null;
38090
+ due_at: string | null;
38091
+ id: string;
38092
+ is_urgent: boolean;
38093
+ line_count: number;
38094
+ order_number: string | null;
38095
+ order_type: string | null;
38096
+ payload: Json;
38097
+ print_count: number;
38098
+ print_job_id: string | null;
38099
+ printed_at: string | null;
38100
+ printed_by: string | null;
38101
+ printed_cart_ids: Json;
38102
+ printer_id: string | null;
38103
+ priority: number;
38104
+ reference: string | null;
38105
+ route: string | null;
38106
+ screen_id: string | null;
38107
+ station_id: string | null;
38108
+ status_id: string | null;
38109
+ updated_at: string;
38110
+ warnings: Json;
38111
+ };
38112
+ SetofOptions: {
38113
+ from: "*";
38114
+ to: "pick_queue";
38115
+ isOneToOne: true;
38116
+ isSetofReturn: false;
38117
+ };
38118
+ };
38119
+ pick_complete_print_carts: {
38120
+ Args: {
38121
+ _cart_ids: string[];
38122
+ _queue_item_id: string;
38123
+ _session_id: string;
38124
+ };
38125
+ Returns: Json;
38126
+ } | {
38127
+ Args: {
38128
+ _cart_ids: string[];
38129
+ _queue_item_id: string;
38130
+ _session_id: string;
38131
+ p_device_key: string;
38132
+ };
38133
+ Returns: Json;
38134
+ };
38135
+ pick_create_pair_code: {
38136
+ Args: {
38137
+ p_station_id: string;
38138
+ };
38139
+ Returns: Json;
38140
+ };
38141
+ pick_current_pick_day: {
38142
+ Args: never;
38143
+ Returns: string;
38144
+ } | {
38145
+ Args: {
38146
+ p_device_key: string;
38147
+ };
38148
+ Returns: string;
38149
+ };
38150
+ pick_day_counts: {
38151
+ Args: {
38152
+ _pick_day?: string;
38153
+ _screen_id?: string;
38154
+ _station_id?: string;
38155
+ };
38156
+ Returns: Json;
38157
+ } | {
38158
+ Args: {
38159
+ _pick_day?: string;
38160
+ _screen_id?: string;
38161
+ _station_id?: string;
38162
+ p_device_key: string;
38163
+ };
38164
+ Returns: Json;
38165
+ };
38166
+ pick_device_check: {
38167
+ Args: {
38168
+ p_cart: string;
38169
+ p_device_key: string;
38170
+ p_item: string;
38171
+ p_order: string;
38172
+ p_slug: string;
38173
+ p_station: string;
38174
+ };
38175
+ Returns: undefined;
38176
+ };
38177
+ pick_device_gate: {
38178
+ Args: {
38179
+ p_device_key: string;
38180
+ };
38181
+ Returns: string;
38182
+ };
38183
+ pick_device_key_required: {
38184
+ Args: never;
38185
+ Returns: boolean;
38186
+ };
38187
+ pick_document_layout_data: {
38188
+ Args: {
38189
+ _layout_id: string;
38190
+ };
38191
+ Returns: Json;
38192
+ };
38193
+ pick_enqueue_print_job: {
38194
+ Args: {
38195
+ _is_herprint?: boolean;
38196
+ _printer_id?: string;
38197
+ _queue_item_id: string;
38198
+ _session_id?: string;
38199
+ };
38200
+ Returns: string;
38201
+ } | {
38202
+ Args: {
38203
+ _cart_id: string;
38204
+ _is_herprint: boolean;
38205
+ _printer_id: string;
38206
+ _queue_item_id: string;
38207
+ _session_id: string;
38208
+ };
38209
+ Returns: string;
38210
+ } | {
38211
+ Args: {
38212
+ _is_herprint?: boolean;
38213
+ _printer_id?: string;
38214
+ _queue_item_id: string;
38215
+ _session_id?: string;
38216
+ p_device_key: string;
38217
+ };
38218
+ Returns: string;
38219
+ } | {
38220
+ Args: {
38221
+ _cart_id: string;
38222
+ _is_herprint: boolean;
38223
+ _printer_id: string;
38224
+ _queue_item_id: string;
38225
+ _session_id: string;
38226
+ p_device_key: string;
38227
+ };
38228
+ Returns: string;
38229
+ };
38230
+ pick_enqueue_print_job_from_cart: {
38231
+ Args: {
38232
+ _cart_id: string;
38233
+ _is_herprint: boolean;
38234
+ _printer_id: string;
38235
+ _queue_item_id: string;
38236
+ _selected_cart: Json;
38237
+ _session_id: string;
38238
+ };
38239
+ Returns: string;
38240
+ };
38241
+ pick_ensure_settings: {
38242
+ Args: never;
38243
+ Returns: undefined;
38244
+ };
38245
+ pick_find_sent_elsewhere: {
38246
+ Args: {
38247
+ _cart_id: string;
38248
+ _queue_item_id: string;
38249
+ };
38250
+ Returns: Json;
38251
+ };
38252
+ pick_has_station_role: {
38253
+ Args: never;
38254
+ Returns: boolean;
38255
+ };
38256
+ pick_is_reference_admin: {
38257
+ Args: never;
38258
+ Returns: boolean;
38259
+ };
38260
+ pick_is_server: {
38261
+ Args: never;
38262
+ Returns: boolean;
38263
+ };
38264
+ pick_key_hash: {
38265
+ Args: {
38266
+ p_key: string;
38267
+ };
38268
+ Returns: string;
38269
+ };
38270
+ pick_mark_printed: {
38271
+ Args: {
38272
+ _queue_item_id: string;
38273
+ _reden?: string;
38274
+ _session_id: string;
38275
+ };
38276
+ Returns: {
38277
+ announced_at: string;
38278
+ assigned_user_id: string | null;
38279
+ barcode: string | null;
38280
+ cancelled_at: string | null;
38281
+ cart_count: number;
38282
+ completed_at: string | null;
38283
+ country_code: string | null;
38284
+ created_at: string;
38285
+ customer_name: string | null;
38286
+ delivery_address: string | null;
38287
+ document_number: string | null;
38288
+ document_type_id: string | null;
38289
+ due_at: string | null;
38290
+ id: string;
38291
+ is_urgent: boolean;
38292
+ line_count: number;
38293
+ order_number: string | null;
38294
+ order_type: string | null;
38295
+ payload: Json;
38296
+ print_count: number;
38297
+ print_job_id: string | null;
38298
+ printed_at: string | null;
38299
+ printed_by: string | null;
38300
+ printed_cart_ids: Json;
38301
+ printer_id: string | null;
38302
+ priority: number;
38303
+ reference: string | null;
38304
+ route: string | null;
38305
+ screen_id: string | null;
38306
+ station_id: string | null;
38307
+ status_id: string | null;
38308
+ updated_at: string;
38309
+ warnings: Json;
38310
+ };
38311
+ SetofOptions: {
38312
+ from: "*";
38313
+ to: "pick_queue";
38314
+ isOneToOne: true;
38315
+ isSetofReturn: false;
38316
+ };
38317
+ } | {
38318
+ Args: {
38319
+ _queue_item_id: string;
38320
+ _reden?: string;
38321
+ _session_id: string;
38322
+ p_device_key: string;
38323
+ };
38324
+ Returns: {
38325
+ announced_at: string;
38326
+ assigned_user_id: string | null;
38327
+ barcode: string | null;
38328
+ cancelled_at: string | null;
38329
+ cart_count: number;
38330
+ completed_at: string | null;
38331
+ country_code: string | null;
38332
+ created_at: string;
38333
+ customer_name: string | null;
38334
+ delivery_address: string | null;
38335
+ document_number: string | null;
38336
+ document_type_id: string | null;
38337
+ due_at: string | null;
38338
+ id: string;
38339
+ is_urgent: boolean;
38340
+ line_count: number;
38341
+ order_number: string | null;
38342
+ order_type: string | null;
38343
+ payload: Json;
38344
+ print_count: number;
38345
+ print_job_id: string | null;
38346
+ printed_at: string | null;
38347
+ printed_by: string | null;
38348
+ printed_cart_ids: Json;
38349
+ printer_id: string | null;
38350
+ priority: number;
38351
+ reference: string | null;
38352
+ route: string | null;
38353
+ screen_id: string | null;
38354
+ station_id: string | null;
38355
+ status_id: string | null;
38356
+ updated_at: string;
38357
+ warnings: Json;
38358
+ };
38359
+ SetofOptions: {
38360
+ from: "*";
38361
+ to: "pick_queue";
38362
+ isOneToOne: true;
38363
+ isSetofReturn: false;
38364
+ };
38365
+ };
38366
+ pick_order_context: {
38367
+ Args: {
38368
+ _order_id?: string;
38369
+ _order_number?: string;
38370
+ };
38371
+ Returns: Json;
38372
+ };
38373
+ pick_preview_job: {
38374
+ Args: {
38375
+ _queue_item_id: string;
38376
+ _station_slug: string;
38377
+ };
38378
+ Returns: Json;
38379
+ } | {
38380
+ Args: {
38381
+ _queue_item_id: string;
38382
+ _station_slug: string;
38383
+ p_device_key: string;
38384
+ };
38385
+ Returns: Json;
37622
38386
  };
37623
38387
  pick_print_job_status: {
37624
38388
  Args: {
37625
38389
  _job_id: string;
37626
38390
  };
37627
38391
  Returns: Json;
38392
+ } | {
38393
+ Args: {
38394
+ _job_id: string;
38395
+ p_device_key: string;
38396
+ };
38397
+ Returns: Json;
37628
38398
  };
37629
38399
  pick_print_jobs_status: {
37630
38400
  Args: {
37631
38401
  _job_ids: string[];
37632
38402
  };
37633
38403
  Returns: Json[];
38404
+ } | {
38405
+ Args: {
38406
+ _job_ids: string[];
38407
+ p_device_key: string;
38408
+ };
38409
+ Returns: Json[];
37634
38410
  };
37635
38411
  pick_print_plekken: {
37636
38412
  Args: never;
@@ -37639,12 +38415,27 @@ export type Database = {
37639
38415
  naam: string;
37640
38416
  omschrijving: string;
37641
38417
  }[];
38418
+ } | {
38419
+ Args: {
38420
+ p_device_key: string;
38421
+ };
38422
+ Returns: {
38423
+ id: string;
38424
+ naam: string;
38425
+ omschrijving: string;
38426
+ }[];
37642
38427
  };
37643
38428
  pick_queue_cart_plan: {
37644
38429
  Args: {
37645
38430
  _queue_item_id: string;
37646
38431
  };
37647
38432
  Returns: Json;
38433
+ } | {
38434
+ Args: {
38435
+ _queue_item_id: string;
38436
+ p_device_key: string;
38437
+ };
38438
+ Returns: Json;
37648
38439
  };
37649
38440
  pick_queue_cart_plan_v152: {
37650
38441
  Args: {
@@ -37652,23 +38443,234 @@ export type Database = {
37652
38443
  };
37653
38444
  Returns: Json;
37654
38445
  };
38446
+ pick_read_by_code: {
38447
+ Args: {
38448
+ p_code: string;
38449
+ p_device_key: string;
38450
+ p_station_id: string;
38451
+ };
38452
+ Returns: {
38453
+ announced_at: string;
38454
+ assigned_user_id: string | null;
38455
+ barcode: string | null;
38456
+ cancelled_at: string | null;
38457
+ cart_count: number;
38458
+ completed_at: string | null;
38459
+ country_code: string | null;
38460
+ created_at: string;
38461
+ customer_name: string | null;
38462
+ delivery_address: string | null;
38463
+ document_number: string | null;
38464
+ document_type_id: string | null;
38465
+ due_at: string | null;
38466
+ id: string;
38467
+ is_urgent: boolean;
38468
+ line_count: number;
38469
+ order_number: string | null;
38470
+ order_type: string | null;
38471
+ payload: Json;
38472
+ print_count: number;
38473
+ print_job_id: string | null;
38474
+ printed_at: string | null;
38475
+ printed_by: string | null;
38476
+ printed_cart_ids: Json;
38477
+ printer_id: string | null;
38478
+ priority: number;
38479
+ reference: string | null;
38480
+ route: string | null;
38481
+ screen_id: string | null;
38482
+ station_id: string | null;
38483
+ status_id: string | null;
38484
+ updated_at: string;
38485
+ warnings: Json;
38486
+ }[];
38487
+ SetofOptions: {
38488
+ from: "*";
38489
+ to: "pick_queue";
38490
+ isOneToOne: false;
38491
+ isSetofReturn: true;
38492
+ };
38493
+ };
38494
+ pick_read_country_counts: {
38495
+ Args: {
38496
+ p_device_key: string;
38497
+ p_screen_id: string;
38498
+ p_station_id: string;
38499
+ };
38500
+ Returns: Json;
38501
+ };
38502
+ pick_read_locks: {
38503
+ Args: {
38504
+ p_device_key: string;
38505
+ p_station_id: string;
38506
+ };
38507
+ Returns: {
38508
+ expires_at: string;
38509
+ id: string;
38510
+ locked_at: string;
38511
+ locked_by: string | null;
38512
+ queue_item_id: string;
38513
+ screen_id: string | null;
38514
+ session_id: string | null;
38515
+ station_id: string | null;
38516
+ }[];
38517
+ SetofOptions: {
38518
+ from: "*";
38519
+ to: "pick_queue_locks";
38520
+ isOneToOne: false;
38521
+ isSetofReturn: true;
38522
+ };
38523
+ };
38524
+ pick_read_print_job_uitwijk: {
38525
+ Args: {
38526
+ p_device_key: string;
38527
+ p_job_ids: string[];
38528
+ };
38529
+ Returns: Json;
38530
+ };
38531
+ pick_read_queue: {
38532
+ Args: {
38533
+ p_country: string;
38534
+ p_device_key: string;
38535
+ p_document_type_id: string;
38536
+ p_include_done: boolean;
38537
+ p_limit: number;
38538
+ p_offset: number;
38539
+ p_pick_day: string;
38540
+ p_screen_id: string;
38541
+ p_search: string;
38542
+ p_sort: Json;
38543
+ p_station_id: string;
38544
+ p_urgent_only: boolean;
38545
+ };
38546
+ Returns: Json;
38547
+ };
38548
+ pick_read_station: {
38549
+ Args: {
38550
+ p_device_key: string;
38551
+ p_slug: string;
38552
+ };
38553
+ Returns: {
38554
+ active: boolean;
38555
+ allow_multi_screen: boolean;
38556
+ color: string | null;
38557
+ created_at: string;
38558
+ default_printer_id: string | null;
38559
+ department: string | null;
38560
+ description: string | null;
38561
+ icon: string | null;
38562
+ id: string;
38563
+ location: string | null;
38564
+ lock_timeout_seconds: number;
38565
+ name: string;
38566
+ require_country_selection: boolean;
38567
+ slug: string | null;
38568
+ sort_order: number;
38569
+ sort_rules: Json;
38570
+ task_id: string | null;
38571
+ type_id: string | null;
38572
+ updated_at: string;
38573
+ }[];
38574
+ SetofOptions: {
38575
+ from: "*";
38576
+ to: "pick_stations";
38577
+ isOneToOne: false;
38578
+ isSetofReturn: true;
38579
+ };
38580
+ };
38581
+ pick_read_unscanned_earlier: {
38582
+ Args: {
38583
+ p_before_day: string;
38584
+ p_device_key: string;
38585
+ p_station_id: string;
38586
+ };
38587
+ Returns: {
38588
+ announced_at: string;
38589
+ assigned_user_id: string | null;
38590
+ barcode: string | null;
38591
+ cancelled_at: string | null;
38592
+ cart_count: number;
38593
+ completed_at: string | null;
38594
+ country_code: string | null;
38595
+ created_at: string;
38596
+ customer_name: string | null;
38597
+ delivery_address: string | null;
38598
+ document_number: string | null;
38599
+ document_type_id: string | null;
38600
+ due_at: string | null;
38601
+ id: string;
38602
+ is_urgent: boolean;
38603
+ line_count: number;
38604
+ order_number: string | null;
38605
+ order_type: string | null;
38606
+ payload: Json;
38607
+ print_count: number;
38608
+ print_job_id: string | null;
38609
+ printed_at: string | null;
38610
+ printed_by: string | null;
38611
+ printed_cart_ids: Json;
38612
+ printer_id: string | null;
38613
+ priority: number;
38614
+ reference: string | null;
38615
+ route: string | null;
38616
+ screen_id: string | null;
38617
+ station_id: string | null;
38618
+ status_id: string | null;
38619
+ updated_at: string;
38620
+ warnings: Json;
38621
+ }[];
38622
+ SetofOptions: {
38623
+ from: "*";
38624
+ to: "pick_queue";
38625
+ isOneToOne: false;
38626
+ isSetofReturn: true;
38627
+ };
38628
+ };
38629
+ pick_read_vroege_sticker_waarschuwing: {
38630
+ Args: {
38631
+ p_device_key: string;
38632
+ p_station_id: string;
38633
+ };
38634
+ Returns: Json;
38635
+ };
37655
38636
  pick_reference_data_status: {
37656
38637
  Args: never;
37657
38638
  Returns: Json;
38639
+ } | {
38640
+ Args: {
38641
+ p_device_key: string;
38642
+ };
38643
+ Returns: Json;
37658
38644
  };
37659
38645
  pick_release_expired_locks: {
37660
38646
  Args: never;
37661
38647
  Returns: number;
38648
+ } | {
38649
+ Args: {
38650
+ p_device_key: string;
38651
+ };
38652
+ Returns: number;
37662
38653
  };
37663
38654
  pick_release_lock: {
37664
38655
  Args: {
37665
38656
  _queue_item_id: string;
37666
38657
  };
37667
38658
  Returns: undefined;
38659
+ } | {
38660
+ Args: {
38661
+ _queue_item_id: string;
38662
+ p_device_key: string;
38663
+ };
38664
+ Returns: undefined;
37668
38665
  };
37669
38666
  pick_report_missing_cart_plan: {
37670
38667
  Args: never;
37671
38668
  Returns: Json;
38669
+ } | {
38670
+ Args: {
38671
+ p_device_key: string;
38672
+ };
38673
+ Returns: Json;
37672
38674
  };
37673
38675
  pick_reprint_cart: {
37674
38676
  Args: {
@@ -37678,12 +38680,29 @@ export type Database = {
37678
38680
  _throttle_seconds?: number;
37679
38681
  };
37680
38682
  Returns: string;
37681
- };
37682
- pick_reprint_document: {
38683
+ } | {
38684
+ Args: {
38685
+ _cart_id: string;
38686
+ _queue_item_id: string;
38687
+ _session_id: string;
38688
+ _throttle_seconds?: number;
38689
+ p_device_key: string;
38690
+ };
38691
+ Returns: string;
38692
+ };
38693
+ pick_reprint_document: {
38694
+ Args: {
38695
+ _queue_item_id: string;
38696
+ _session_id: string;
38697
+ _throttle_seconds?: number;
38698
+ };
38699
+ Returns: string;
38700
+ } | {
37683
38701
  Args: {
37684
38702
  _queue_item_id: string;
37685
38703
  _session_id: string;
37686
38704
  _throttle_seconds?: number;
38705
+ p_device_key: string;
37687
38706
  };
37688
38707
  Returns: string;
37689
38708
  };
@@ -37780,6 +38799,101 @@ export type Database = {
37780
38799
  isOneToOne: true;
37781
38800
  isSetofReturn: false;
37782
38801
  };
38802
+ } | {
38803
+ Args: {
38804
+ _queue_item_id: string;
38805
+ _session_id: string;
38806
+ p_device_key: string;
38807
+ };
38808
+ Returns: {
38809
+ announced_at: string;
38810
+ assigned_user_id: string | null;
38811
+ barcode: string | null;
38812
+ cancelled_at: string | null;
38813
+ cart_count: number;
38814
+ completed_at: string | null;
38815
+ country_code: string | null;
38816
+ created_at: string;
38817
+ customer_name: string | null;
38818
+ delivery_address: string | null;
38819
+ document_number: string | null;
38820
+ document_type_id: string | null;
38821
+ due_at: string | null;
38822
+ id: string;
38823
+ is_urgent: boolean;
38824
+ line_count: number;
38825
+ order_number: string | null;
38826
+ order_type: string | null;
38827
+ payload: Json;
38828
+ print_count: number;
38829
+ print_job_id: string | null;
38830
+ printed_at: string | null;
38831
+ printed_by: string | null;
38832
+ printed_cart_ids: Json;
38833
+ printer_id: string | null;
38834
+ priority: number;
38835
+ reference: string | null;
38836
+ route: string | null;
38837
+ screen_id: string | null;
38838
+ station_id: string | null;
38839
+ status_id: string | null;
38840
+ updated_at: string;
38841
+ warnings: Json;
38842
+ };
38843
+ SetofOptions: {
38844
+ from: "*";
38845
+ to: "pick_queue";
38846
+ isOneToOne: true;
38847
+ isSetofReturn: false;
38848
+ };
38849
+ } | {
38850
+ Args: {
38851
+ _cart_id: string;
38852
+ _queue_item_id: string;
38853
+ _session_id: string;
38854
+ p_device_key: string;
38855
+ };
38856
+ Returns: {
38857
+ announced_at: string;
38858
+ assigned_user_id: string | null;
38859
+ barcode: string | null;
38860
+ cancelled_at: string | null;
38861
+ cart_count: number;
38862
+ completed_at: string | null;
38863
+ country_code: string | null;
38864
+ created_at: string;
38865
+ customer_name: string | null;
38866
+ delivery_address: string | null;
38867
+ document_number: string | null;
38868
+ document_type_id: string | null;
38869
+ due_at: string | null;
38870
+ id: string;
38871
+ is_urgent: boolean;
38872
+ line_count: number;
38873
+ order_number: string | null;
38874
+ order_type: string | null;
38875
+ payload: Json;
38876
+ print_count: number;
38877
+ print_job_id: string | null;
38878
+ printed_at: string | null;
38879
+ printed_by: string | null;
38880
+ printed_cart_ids: Json;
38881
+ printer_id: string | null;
38882
+ priority: number;
38883
+ reference: string | null;
38884
+ route: string | null;
38885
+ screen_id: string | null;
38886
+ station_id: string | null;
38887
+ status_id: string | null;
38888
+ updated_at: string;
38889
+ warnings: Json;
38890
+ };
38891
+ SetofOptions: {
38892
+ from: "*";
38893
+ to: "pick_queue";
38894
+ isOneToOne: true;
38895
+ isSetofReturn: false;
38896
+ };
37783
38897
  };
37784
38898
  pick_reset_print_job: {
37785
38899
  Args: {
@@ -37829,6 +38943,55 @@ export type Database = {
37829
38943
  isOneToOne: true;
37830
38944
  isSetofReturn: false;
37831
38945
  };
38946
+ } | {
38947
+ Args: {
38948
+ _cart_id: string;
38949
+ _job_id: string;
38950
+ _queue_item_id: string;
38951
+ _session_id: string;
38952
+ p_device_key: string;
38953
+ };
38954
+ Returns: {
38955
+ announced_at: string;
38956
+ assigned_user_id: string | null;
38957
+ barcode: string | null;
38958
+ cancelled_at: string | null;
38959
+ cart_count: number;
38960
+ completed_at: string | null;
38961
+ country_code: string | null;
38962
+ created_at: string;
38963
+ customer_name: string | null;
38964
+ delivery_address: string | null;
38965
+ document_number: string | null;
38966
+ document_type_id: string | null;
38967
+ due_at: string | null;
38968
+ id: string;
38969
+ is_urgent: boolean;
38970
+ line_count: number;
38971
+ order_number: string | null;
38972
+ order_type: string | null;
38973
+ payload: Json;
38974
+ print_count: number;
38975
+ print_job_id: string | null;
38976
+ printed_at: string | null;
38977
+ printed_by: string | null;
38978
+ printed_cart_ids: Json;
38979
+ printer_id: string | null;
38980
+ priority: number;
38981
+ reference: string | null;
38982
+ route: string | null;
38983
+ screen_id: string | null;
38984
+ station_id: string | null;
38985
+ status_id: string | null;
38986
+ updated_at: string;
38987
+ warnings: Json;
38988
+ };
38989
+ SetofOptions: {
38990
+ from: "*";
38991
+ to: "pick_queue";
38992
+ isOneToOne: true;
38993
+ isSetofReturn: false;
38994
+ };
37832
38995
  };
37833
38996
  pick_reset_print_jobs: {
37834
38997
  Args: {
@@ -37878,6 +39041,62 @@ export type Database = {
37878
39041
  isOneToOne: true;
37879
39042
  isSetofReturn: false;
37880
39043
  };
39044
+ } | {
39045
+ Args: {
39046
+ _cart_ids: string[];
39047
+ _job_ids: string[];
39048
+ _queue_item_id: string;
39049
+ _session_id: string;
39050
+ p_device_key: string;
39051
+ };
39052
+ Returns: {
39053
+ announced_at: string;
39054
+ assigned_user_id: string | null;
39055
+ barcode: string | null;
39056
+ cancelled_at: string | null;
39057
+ cart_count: number;
39058
+ completed_at: string | null;
39059
+ country_code: string | null;
39060
+ created_at: string;
39061
+ customer_name: string | null;
39062
+ delivery_address: string | null;
39063
+ document_number: string | null;
39064
+ document_type_id: string | null;
39065
+ due_at: string | null;
39066
+ id: string;
39067
+ is_urgent: boolean;
39068
+ line_count: number;
39069
+ order_number: string | null;
39070
+ order_type: string | null;
39071
+ payload: Json;
39072
+ print_count: number;
39073
+ print_job_id: string | null;
39074
+ printed_at: string | null;
39075
+ printed_by: string | null;
39076
+ printed_cart_ids: Json;
39077
+ printer_id: string | null;
39078
+ priority: number;
39079
+ reference: string | null;
39080
+ route: string | null;
39081
+ screen_id: string | null;
39082
+ station_id: string | null;
39083
+ status_id: string | null;
39084
+ updated_at: string;
39085
+ warnings: Json;
39086
+ };
39087
+ SetofOptions: {
39088
+ from: "*";
39089
+ to: "pick_queue";
39090
+ isOneToOne: true;
39091
+ isSetofReturn: false;
39092
+ };
39093
+ };
39094
+ pick_resolve_scan_code: {
39095
+ Args: {
39096
+ p_code: string;
39097
+ p_device_key: string;
39098
+ };
39099
+ Returns: string;
37881
39100
  };
37882
39101
  pick_restore_to_queue: {
37883
39102
  Args: {
@@ -37925,6 +39144,53 @@ export type Database = {
37925
39144
  isOneToOne: true;
37926
39145
  isSetofReturn: false;
37927
39146
  };
39147
+ } | {
39148
+ Args: {
39149
+ _queue_item_id: string;
39150
+ _session_id: string;
39151
+ p_device_key: string;
39152
+ };
39153
+ Returns: {
39154
+ announced_at: string;
39155
+ assigned_user_id: string | null;
39156
+ barcode: string | null;
39157
+ cancelled_at: string | null;
39158
+ cart_count: number;
39159
+ completed_at: string | null;
39160
+ country_code: string | null;
39161
+ created_at: string;
39162
+ customer_name: string | null;
39163
+ delivery_address: string | null;
39164
+ document_number: string | null;
39165
+ document_type_id: string | null;
39166
+ due_at: string | null;
39167
+ id: string;
39168
+ is_urgent: boolean;
39169
+ line_count: number;
39170
+ order_number: string | null;
39171
+ order_type: string | null;
39172
+ payload: Json;
39173
+ print_count: number;
39174
+ print_job_id: string | null;
39175
+ printed_at: string | null;
39176
+ printed_by: string | null;
39177
+ printed_cart_ids: Json;
39178
+ printer_id: string | null;
39179
+ priority: number;
39180
+ reference: string | null;
39181
+ route: string | null;
39182
+ screen_id: string | null;
39183
+ station_id: string | null;
39184
+ status_id: string | null;
39185
+ updated_at: string;
39186
+ warnings: Json;
39187
+ };
39188
+ SetofOptions: {
39189
+ from: "*";
39190
+ to: "pick_queue";
39191
+ isOneToOne: true;
39192
+ isSetofReturn: false;
39193
+ };
37928
39194
  };
37929
39195
  pick_revoke_device: {
37930
39196
  Args: {
@@ -37932,6 +39198,12 @@ export type Database = {
37932
39198
  };
37933
39199
  Returns: undefined;
37934
39200
  };
39201
+ pick_role_allowed: {
39202
+ Args: {
39203
+ p_level: string;
39204
+ };
39205
+ Returns: boolean;
39206
+ };
37935
39207
  pick_seed_reference_data: {
37936
39208
  Args: never;
37937
39209
  Returns: Json;
@@ -37942,6 +39214,13 @@ export type Database = {
37942
39214
  _station_id: string;
37943
39215
  };
37944
39216
  Returns: string;
39217
+ } | {
39218
+ Args: {
39219
+ _print_plek_id: string;
39220
+ _station_id: string;
39221
+ p_device_key: string;
39222
+ };
39223
+ Returns: string;
37945
39224
  };
37946
39225
  pick_signal_station: {
37947
39226
  Args: {
@@ -37960,6 +39239,19 @@ export type Database = {
37960
39239
  station_name: string;
37961
39240
  waiting: number;
37962
39241
  }[];
39242
+ } | {
39243
+ Args: {
39244
+ p_device_key: string;
39245
+ };
39246
+ Returns: {
39247
+ active: number;
39248
+ active_sessions: number;
39249
+ avg_wait_seconds: number;
39250
+ done_today: number;
39251
+ station_id: string;
39252
+ station_name: string;
39253
+ waiting: number;
39254
+ }[];
37963
39255
  };
37964
39256
  pick_station_devices_list: {
37965
39257
  Args: {
@@ -37982,6 +39274,16 @@ export type Database = {
37982
39274
  omschrijving: string;
37983
39275
  print_plek_id: string;
37984
39276
  }[];
39277
+ } | {
39278
+ Args: {
39279
+ _station_id: string;
39280
+ p_device_key: string;
39281
+ };
39282
+ Returns: {
39283
+ naam: string;
39284
+ omschrijving: string;
39285
+ print_plek_id: string;
39286
+ }[];
37985
39287
  };
37986
39288
  pick_station_print_plekken: {
37987
39289
  Args: never;
@@ -37991,6 +39293,16 @@ export type Database = {
37991
39293
  print_plek_id: string;
37992
39294
  station_id: string;
37993
39295
  }[];
39296
+ } | {
39297
+ Args: {
39298
+ p_device_key: string;
39299
+ };
39300
+ Returns: {
39301
+ naam: string;
39302
+ omschrijving: string;
39303
+ print_plek_id: string;
39304
+ station_id: string;
39305
+ }[];
37994
39306
  };
37995
39307
  pick_station_slugify: {
37996
39308
  Args: {
@@ -38010,24 +39322,49 @@ export type Database = {
38010
39322
  _day: string;
38011
39323
  };
38012
39324
  Returns: Json;
39325
+ } | {
39326
+ Args: {
39327
+ _day: string;
39328
+ p_device_key: string;
39329
+ };
39330
+ Returns: Json;
38013
39331
  };
38014
39332
  pick_sync_queue_throttled: {
38015
39333
  Args: {
38016
39334
  _min_seconds?: number;
38017
39335
  };
38018
39336
  Returns: Json;
39337
+ } | {
39338
+ Args: {
39339
+ _min_seconds?: number;
39340
+ p_device_key: string;
39341
+ };
39342
+ Returns: Json;
38019
39343
  };
38020
39344
  pick_verify_rows: {
38021
39345
  Args: {
38022
39346
  _rows: Json;
38023
39347
  };
38024
39348
  Returns: Json;
39349
+ } | {
39350
+ Args: {
39351
+ _rows: Json;
39352
+ p_device_key: string;
39353
+ };
39354
+ Returns: Json;
38025
39355
  };
38026
39356
  pickschermen_install_check: {
38027
39357
  Args: never;
38028
39358
  Returns: Json;
38029
39359
  };
38030
39360
  pickstation_auto_send_status: {
39361
+ Args: {
39362
+ p_device_key: string;
39363
+ p_order_id: string;
39364
+ p_slug: string;
39365
+ };
39366
+ Returns: Json;
39367
+ } | {
38031
39368
  Args: {
38032
39369
  p_order_id: string;
38033
39370
  p_slug: string;
@@ -38035,6 +39372,13 @@ export type Database = {
38035
39372
  Returns: Json;
38036
39373
  };
38037
39374
  pickstation_cart_sticker_state: {
39375
+ Args: {
39376
+ p_cart_id: string;
39377
+ p_device_key: string;
39378
+ p_slug: string;
39379
+ };
39380
+ Returns: Json;
39381
+ } | {
38038
39382
  Args: {
38039
39383
  p_cart_id: string;
38040
39384
  p_slug: string;
@@ -38049,6 +39393,13 @@ export type Database = {
38049
39393
  Returns: Json;
38050
39394
  };
38051
39395
  pickstation_document_for_order: {
39396
+ Args: {
39397
+ p_device_key: string;
39398
+ p_queue_item_id: string;
39399
+ p_slug: string;
39400
+ };
39401
+ Returns: Json;
39402
+ } | {
38052
39403
  Args: {
38053
39404
  p_queue_item_id: string;
38054
39405
  p_slug: string;
@@ -38058,16 +39409,41 @@ export type Database = {
38058
39409
  pickstation_get_orders_raw: {
38059
39410
  Args: never;
38060
39411
  Returns: Json;
39412
+ } | {
39413
+ Args: {
39414
+ p_device_key: string;
39415
+ };
39416
+ Returns: Json;
38061
39417
  };
38062
39418
  pickstation_get_planning_context: {
38063
39419
  Args: never;
38064
39420
  Returns: Json;
39421
+ } | {
39422
+ Args: {
39423
+ p_device_key: string;
39424
+ };
39425
+ Returns: Json;
38065
39426
  };
38066
39427
  pickstation_get_settings: {
38067
39428
  Args: never;
38068
39429
  Returns: Json;
39430
+ } | {
39431
+ Args: {
39432
+ p_device_key: string;
39433
+ };
39434
+ Returns: Json;
38069
39435
  };
38070
39436
  pickstation_log_print: {
39437
+ Args: {
39438
+ p_customer_name: string;
39439
+ p_device_key: string;
39440
+ p_documents: string[];
39441
+ p_ip_address: string;
39442
+ p_order_id: string;
39443
+ p_order_number: string;
39444
+ };
39445
+ Returns: undefined;
39446
+ } | {
38071
39447
  Args: {
38072
39448
  p_customer_name: string;
38073
39449
  p_documents: string[];
@@ -38077,7 +39453,116 @@ export type Database = {
38077
39453
  };
38078
39454
  Returns: undefined;
38079
39455
  };
39456
+ pickstation_logistics_barcode_lookup: {
39457
+ Args: {
39458
+ p_barcode: string;
39459
+ p_device_key: string;
39460
+ };
39461
+ Returns: Json;
39462
+ };
39463
+ pickstation_logistics_cart_plan_status: {
39464
+ Args: {
39465
+ p_device_key: string;
39466
+ p_ref: string;
39467
+ };
39468
+ Returns: Json;
39469
+ };
39470
+ pickstation_logistics_cart_slip_plan: {
39471
+ Args: {
39472
+ p_device_key: string;
39473
+ p_order_id: string;
39474
+ };
39475
+ Returns: Json;
39476
+ };
39477
+ pickstation_logistics_complete_task: {
39478
+ Args: {
39479
+ p_device_key: string;
39480
+ p_result?: Json;
39481
+ p_task_id: string;
39482
+ };
39483
+ Returns: {
39484
+ attempt_log: Json;
39485
+ attempts: number;
39486
+ buffer_ref: string | null;
39487
+ claimed_at: string | null;
39488
+ claimed_by: string | null;
39489
+ completed_at: string | null;
39490
+ created_at: string;
39491
+ depends_on: string[];
39492
+ due_at: string | null;
39493
+ error: string | null;
39494
+ id: string;
39495
+ last_error: string | null;
39496
+ next_attempt_at: string | null;
39497
+ order_ref: string;
39498
+ owner_module: string;
39499
+ payload: Json;
39500
+ plan_run_id: string | null;
39501
+ planned_end: string | null;
39502
+ planned_start: string | null;
39503
+ priority: number;
39504
+ result: Json | null;
39505
+ rule_config_id: string | null;
39506
+ rule_version: number | null;
39507
+ sequence: number;
39508
+ shadow: boolean;
39509
+ started_at: string | null;
39510
+ status: string;
39511
+ strategy_id: string | null;
39512
+ task_type: string;
39513
+ updated_at: string;
39514
+ user_id: string;
39515
+ };
39516
+ SetofOptions: {
39517
+ from: "*";
39518
+ to: "logistics_tasks";
39519
+ isOneToOne: true;
39520
+ isSetofReturn: false;
39521
+ };
39522
+ };
39523
+ pickstation_logistics_is_pick_workday: {
39524
+ Args: {
39525
+ p_date: string;
39526
+ p_device_key: string;
39527
+ };
39528
+ Returns: boolean;
39529
+ };
39530
+ pickstation_logistics_order_released: {
39531
+ Args: {
39532
+ p_device_key: string;
39533
+ p_order_ref: string;
39534
+ };
39535
+ Returns: boolean;
39536
+ };
39537
+ pickstation_logistics_pick_mode: {
39538
+ Args: {
39539
+ p_device_key: string;
39540
+ };
39541
+ Returns: Json;
39542
+ };
39543
+ pickstation_logistics_shipping_note_from_barcode: {
39544
+ Args: {
39545
+ p_allow_reprint?: boolean;
39546
+ p_barcode: string;
39547
+ p_device_key: string;
39548
+ p_station_id?: string;
39549
+ };
39550
+ Returns: Json;
39551
+ };
39552
+ pickstation_logistics_working_hours_status: {
39553
+ Args: {
39554
+ p_device_key: string;
39555
+ };
39556
+ Returns: Json;
39557
+ };
38080
39558
  pickstation_order_sticker_meldingen: {
39559
+ Args: {
39560
+ p_device_key: string;
39561
+ p_order_id: string;
39562
+ p_slug: string;
39563
+ };
39564
+ Returns: Json;
39565
+ } | {
38081
39566
  Args: {
38082
39567
  p_order_id: string;
38083
39568
  p_slug: string;
@@ -38093,6 +39578,15 @@ export type Database = {
38093
39578
  Returns: Json;
38094
39579
  };
38095
39580
  pickstation_resolve_delivery_orders: {
39581
+ Args: {
39582
+ p_device_key: string;
39583
+ p_sales_order_ids: string[];
39584
+ };
39585
+ Returns: {
39586
+ delivery_order_id: string;
39587
+ sales_order_id: string;
39588
+ }[];
39589
+ } | {
38096
39590
  Args: {
38097
39591
  p_sales_order_ids: string[];
38098
39592
  };
@@ -38111,6 +39605,13 @@ export type Database = {
38111
39605
  Returns: undefined;
38112
39606
  };
38113
39607
  pickstation_sticker_past_controle: {
39608
+ Args: {
39609
+ p_cart_id: string;
39610
+ p_device_key: string;
39611
+ p_slug: string;
39612
+ };
39613
+ Returns: Json;
39614
+ } | {
38114
39615
  Args: {
38115
39616
  p_cart_id: string;
38116
39617
  p_slug: string;
@@ -38118,6 +39619,14 @@ export type Database = {
38118
39619
  Returns: Json;
38119
39620
  };
38120
39621
  pickstation_sticker_reprint: {
39622
+ Args: {
39623
+ p_cart_id: string;
39624
+ p_device_key: string;
39625
+ p_reden?: string;
39626
+ p_slug: string;
39627
+ };
39628
+ Returns: Json;
39629
+ } | {
38121
39630
  Args: {
38122
39631
  p_cart_id: string;
38123
39632
  p_reden?: string;
@@ -39364,6 +40873,12 @@ export type Database = {
39364
40873
  };
39365
40874
  Returns: undefined;
39366
40875
  };
40876
+ scan_role_allowed: {
40877
+ Args: {
40878
+ p_level: string;
40879
+ };
40880
+ Returns: boolean;
40881
+ };
39367
40882
  scan_scanner_info: {
39368
40883
  Args: {
39369
40884
  p_slug: string;
@@ -40869,6 +42384,20 @@ export type Database = {
40869
42384
  };
40870
42385
  Returns: boolean;
40871
42386
  };
42387
+ voorraad_fust_dimensions: {
42388
+ Args: never;
42389
+ Returns: {
42390
+ dimension_source: string;
42391
+ floricode_name: string;
42392
+ fust_key: string;
42393
+ fust_type_id: string;
42394
+ height_mm: number;
42395
+ length_mm: number;
42396
+ name: string;
42397
+ vbn_code: number;
42398
+ width_mm: number;
42399
+ }[];
42400
+ };
40872
42401
  voorraad_hook_base_url: {
40873
42402
  Args: never;
40874
42403
  Returns: string;
@@ -40904,6 +42433,13 @@ export type Database = {
40904
42433
  Args: never;
40905
42434
  Returns: boolean;
40906
42435
  };
42436
+ voorraad_reverse_order_mutations: {
42437
+ Args: {
42438
+ p_order_id: string;
42439
+ p_reason: string;
42440
+ };
42441
+ Returns: Json;
42442
+ };
40907
42443
  voorraad_schema_ddl: {
40908
42444
  Args: {
40909
42445
  p_functions: string[];
@@ -40911,6 +42447,10 @@ export type Database = {
40911
42447
  };
40912
42448
  Returns: string;
40913
42449
  };
42450
+ voorraad_stock_context_status: {
42451
+ Args: never;
42452
+ Returns: Json;
42453
+ };
40914
42454
  voorraad_vereis: {
40915
42455
  Args: {
40916
42456
  p_functie: string;
@@ -40925,6 +42465,13 @@ export type Database = {
40925
42465
  };
40926
42466
  Returns: boolean;
40927
42467
  };
42468
+ voorraad_withdraw_stock_row: {
42469
+ Args: {
42470
+ p_key: string;
42471
+ p_reason: string;
42472
+ };
42473
+ Returns: Json;
42474
+ };
40928
42475
  wake_print_queue: {
40929
42476
  Args: {
40930
42477
  _min_interval_ms?: number;