@flowselections/logistiek-engine 1.0.187 → 1.0.189

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.
@@ -6092,6 +6092,36 @@ export type Database = {
6092
6092
  };
6093
6093
  Relationships: [];
6094
6094
  };
6095
+ floricode_derived_list_state: {
6096
+ Row: {
6097
+ changed: number;
6098
+ cursor_record_id: string | null;
6099
+ done_at: string | null;
6100
+ list_name: string;
6101
+ pass_started_at: string | null;
6102
+ processed: number;
6103
+ updated_at: string;
6104
+ };
6105
+ Insert: {
6106
+ changed?: number;
6107
+ cursor_record_id?: string | null;
6108
+ done_at?: string | null;
6109
+ list_name: string;
6110
+ pass_started_at?: string | null;
6111
+ processed?: number;
6112
+ updated_at?: string;
6113
+ };
6114
+ Update: {
6115
+ changed?: number;
6116
+ cursor_record_id?: string | null;
6117
+ done_at?: string | null;
6118
+ list_name?: string;
6119
+ pass_started_at?: string | null;
6120
+ processed?: number;
6121
+ updated_at?: string;
6122
+ };
6123
+ Relationships: [];
6124
+ };
6095
6125
  floricode_records: {
6096
6126
  Row: {
6097
6127
  change_date_time: string | null;
@@ -7216,6 +7246,24 @@ export type Database = {
7216
7246
  }
7217
7247
  ];
7218
7248
  };
7249
+ floriday_cron_secret: {
7250
+ Row: {
7251
+ created_at: string;
7252
+ id: number;
7253
+ secret: string;
7254
+ };
7255
+ Insert: {
7256
+ created_at?: string;
7257
+ id?: number;
7258
+ secret: string;
7259
+ };
7260
+ Update: {
7261
+ created_at?: string;
7262
+ id?: number;
7263
+ secret?: string;
7264
+ };
7265
+ Relationships: [];
7266
+ };
7219
7267
  floriday_customer_offers_cache: {
7220
7268
  Row: {
7221
7269
  connection_id: string;
@@ -17058,6 +17106,7 @@ export type Database = {
17058
17106
  status: string;
17059
17107
  subject: string;
17060
17108
  updated_at: string;
17109
+ valid_until: string | null;
17061
17110
  };
17062
17111
  Insert: {
17063
17112
  created_at?: string;
@@ -17072,6 +17121,7 @@ export type Database = {
17072
17121
  status?: string;
17073
17122
  subject: string;
17074
17123
  updated_at?: string;
17124
+ valid_until?: string | null;
17075
17125
  };
17076
17126
  Update: {
17077
17127
  created_at?: string;
@@ -17086,6 +17136,7 @@ export type Database = {
17086
17136
  status?: string;
17087
17137
  subject?: string;
17088
17138
  updated_at?: string;
17139
+ valid_until?: string | null;
17089
17140
  };
17090
17141
  Relationships: [];
17091
17142
  };
@@ -17142,6 +17193,9 @@ export type Database = {
17142
17193
  id: string;
17143
17194
  items: Json;
17144
17195
  notes: string | null;
17196
+ office_notification_at: string | null;
17197
+ office_notification_reason: string | null;
17198
+ office_notification_status: string | null;
17145
17199
  order_creation_attempts: number;
17146
17200
  order_creation_error: string | null;
17147
17201
  order_creation_failed_at: string | null;
@@ -17161,6 +17215,9 @@ export type Database = {
17161
17215
  id?: string;
17162
17216
  items?: Json;
17163
17217
  notes?: string | null;
17218
+ office_notification_at?: string | null;
17219
+ office_notification_reason?: string | null;
17220
+ office_notification_status?: string | null;
17164
17221
  order_creation_attempts?: number;
17165
17222
  order_creation_error?: string | null;
17166
17223
  order_creation_failed_at?: string | null;
@@ -17180,6 +17237,9 @@ export type Database = {
17180
17237
  id?: string;
17181
17238
  items?: Json;
17182
17239
  notes?: string | null;
17240
+ office_notification_at?: string | null;
17241
+ office_notification_reason?: string | null;
17242
+ office_notification_status?: string | null;
17183
17243
  order_creation_attempts?: number;
17184
17244
  order_creation_error?: string | null;
17185
17245
  order_creation_failed_at?: string | null;
@@ -18852,6 +18912,74 @@ export type Database = {
18852
18912
  }
18853
18913
  ];
18854
18914
  };
18915
+ pick_settings: {
18916
+ Row: {
18917
+ created_at: string;
18918
+ device_key_required: boolean;
18919
+ id: boolean;
18920
+ updated_at: string;
18921
+ };
18922
+ Insert: {
18923
+ created_at?: string;
18924
+ device_key_required?: boolean;
18925
+ id?: boolean;
18926
+ updated_at?: string;
18927
+ };
18928
+ Update: {
18929
+ created_at?: string;
18930
+ device_key_required?: boolean;
18931
+ id?: boolean;
18932
+ updated_at?: string;
18933
+ };
18934
+ Relationships: [];
18935
+ };
18936
+ pick_station_devices: {
18937
+ Row: {
18938
+ aangemaakt_door: string | null;
18939
+ created_at: string;
18940
+ id: string;
18941
+ ingetrokken_door: string | null;
18942
+ ingetrokken_op: string | null;
18943
+ key_hash: string;
18944
+ laatst_gezien: string | null;
18945
+ naam: string | null;
18946
+ station_id: string;
18947
+ updated_at: string;
18948
+ };
18949
+ Insert: {
18950
+ aangemaakt_door?: string | null;
18951
+ created_at?: string;
18952
+ id?: string;
18953
+ ingetrokken_door?: string | null;
18954
+ ingetrokken_op?: string | null;
18955
+ key_hash: string;
18956
+ laatst_gezien?: string | null;
18957
+ naam?: string | null;
18958
+ station_id: string;
18959
+ updated_at?: string;
18960
+ };
18961
+ Update: {
18962
+ aangemaakt_door?: string | null;
18963
+ created_at?: string;
18964
+ id?: string;
18965
+ ingetrokken_door?: string | null;
18966
+ ingetrokken_op?: string | null;
18967
+ key_hash?: string;
18968
+ laatst_gezien?: string | null;
18969
+ naam?: string | null;
18970
+ station_id?: string;
18971
+ updated_at?: string;
18972
+ };
18973
+ Relationships: [
18974
+ {
18975
+ foreignKeyName: "pick_station_devices_station_id_fkey";
18976
+ columns: ["station_id"];
18977
+ isOneToOne: false;
18978
+ referencedRelation: "pick_stations";
18979
+ referencedColumns: ["id"];
18980
+ }
18981
+ ];
18982
+ };
18855
18983
  pick_station_heartbeats: {
18856
18984
  Row: {
18857
18985
  browser: string | null;
@@ -18984,6 +19112,53 @@ export type Database = {
18984
19112
  };
18985
19113
  Relationships: [];
18986
19114
  };
19115
+ pick_station_pair_codes: {
19116
+ Row: {
19117
+ aangemaakt_door: string | null;
19118
+ code_hash: string;
19119
+ created_at: string;
19120
+ device_id: string | null;
19121
+ gebruikt_op: string | null;
19122
+ geldig_tot: string;
19123
+ id: string;
19124
+ pogingen: number;
19125
+ station_id: string;
19126
+ vervallen_op: string | null;
19127
+ };
19128
+ Insert: {
19129
+ aangemaakt_door?: string | null;
19130
+ code_hash: string;
19131
+ created_at?: string;
19132
+ device_id?: string | null;
19133
+ gebruikt_op?: string | null;
19134
+ geldig_tot: string;
19135
+ id?: string;
19136
+ pogingen?: number;
19137
+ station_id: string;
19138
+ vervallen_op?: string | null;
19139
+ };
19140
+ Update: {
19141
+ aangemaakt_door?: string | null;
19142
+ code_hash?: string;
19143
+ created_at?: string;
19144
+ device_id?: string | null;
19145
+ gebruikt_op?: string | null;
19146
+ geldig_tot?: string;
19147
+ id?: string;
19148
+ pogingen?: number;
19149
+ station_id?: string;
19150
+ vervallen_op?: string | null;
19151
+ };
19152
+ Relationships: [
19153
+ {
19154
+ foreignKeyName: "pick_station_pair_codes_station_id_fkey";
19155
+ columns: ["station_id"];
19156
+ isOneToOne: false;
19157
+ referencedRelation: "pick_stations";
19158
+ referencedColumns: ["id"];
19159
+ }
19160
+ ];
19161
+ };
18987
19162
  pick_station_permissions: {
18988
19163
  Row: {
18989
19164
  can_break_lock: boolean;
@@ -19155,6 +19330,29 @@ export type Database = {
19155
19330
  }
19156
19331
  ];
19157
19332
  };
19333
+ pick_station_signals: {
19334
+ Row: {
19335
+ signaal_op: string;
19336
+ station_id: string;
19337
+ };
19338
+ Insert: {
19339
+ signaal_op?: string;
19340
+ station_id: string;
19341
+ };
19342
+ Update: {
19343
+ signaal_op?: string;
19344
+ station_id?: string;
19345
+ };
19346
+ Relationships: [
19347
+ {
19348
+ foreignKeyName: "pick_station_signals_station_id_fkey";
19349
+ columns: ["station_id"];
19350
+ isOneToOne: true;
19351
+ referencedRelation: "pick_stations";
19352
+ referencedColumns: ["id"];
19353
+ }
19354
+ ];
19355
+ };
19158
19356
  pick_station_tasks: {
19159
19357
  Row: {
19160
19358
  active: boolean;
@@ -23106,6 +23304,107 @@ export type Database = {
23106
23304
  };
23107
23305
  Relationships: [];
23108
23306
  };
23307
+ scan_apparaat_koppelcodes: {
23308
+ Row: {
23309
+ aangemaakt_door: string | null;
23310
+ apparaat_id: string | null;
23311
+ code_hash: string;
23312
+ created_at: string;
23313
+ gebruikt_op: string | null;
23314
+ geldig_tot: string;
23315
+ id: string;
23316
+ pogingen: number;
23317
+ scanner_id: string;
23318
+ vervallen_op: string | null;
23319
+ };
23320
+ Insert: {
23321
+ aangemaakt_door?: string | null;
23322
+ apparaat_id?: string | null;
23323
+ code_hash: string;
23324
+ created_at?: string;
23325
+ gebruikt_op?: string | null;
23326
+ geldig_tot: string;
23327
+ id?: string;
23328
+ pogingen?: number;
23329
+ scanner_id: string;
23330
+ vervallen_op?: string | null;
23331
+ };
23332
+ Update: {
23333
+ aangemaakt_door?: string | null;
23334
+ apparaat_id?: string | null;
23335
+ code_hash?: string;
23336
+ created_at?: string;
23337
+ gebruikt_op?: string | null;
23338
+ geldig_tot?: string;
23339
+ id?: string;
23340
+ pogingen?: number;
23341
+ scanner_id?: string;
23342
+ vervallen_op?: string | null;
23343
+ };
23344
+ Relationships: [
23345
+ {
23346
+ foreignKeyName: "scan_apparaat_koppelcodes_apparaat_id_fkey";
23347
+ columns: ["apparaat_id"];
23348
+ isOneToOne: false;
23349
+ referencedRelation: "scan_apparaten";
23350
+ referencedColumns: ["id"];
23351
+ },
23352
+ {
23353
+ foreignKeyName: "scan_apparaat_koppelcodes_scanner_id_fkey";
23354
+ columns: ["scanner_id"];
23355
+ isOneToOne: false;
23356
+ referencedRelation: "scan_scanners";
23357
+ referencedColumns: ["id"];
23358
+ }
23359
+ ];
23360
+ };
23361
+ scan_apparaten: {
23362
+ Row: {
23363
+ aangemaakt_door: string | null;
23364
+ created_at: string;
23365
+ id: string;
23366
+ ingetrokken_door: string | null;
23367
+ ingetrokken_op: string | null;
23368
+ laatst_gezien: string | null;
23369
+ naam: string | null;
23370
+ scanner_id: string;
23371
+ sleutel_hash: string;
23372
+ updated_at: string;
23373
+ };
23374
+ Insert: {
23375
+ aangemaakt_door?: string | null;
23376
+ created_at?: string;
23377
+ id?: string;
23378
+ ingetrokken_door?: string | null;
23379
+ ingetrokken_op?: string | null;
23380
+ laatst_gezien?: string | null;
23381
+ naam?: string | null;
23382
+ scanner_id: string;
23383
+ sleutel_hash: string;
23384
+ updated_at?: string;
23385
+ };
23386
+ Update: {
23387
+ aangemaakt_door?: string | null;
23388
+ created_at?: string;
23389
+ id?: string;
23390
+ ingetrokken_door?: string | null;
23391
+ ingetrokken_op?: string | null;
23392
+ laatst_gezien?: string | null;
23393
+ naam?: string | null;
23394
+ scanner_id?: string;
23395
+ sleutel_hash?: string;
23396
+ updated_at?: string;
23397
+ };
23398
+ Relationships: [
23399
+ {
23400
+ foreignKeyName: "scan_apparaten_scanner_id_fkey";
23401
+ columns: ["scanner_id"];
23402
+ isOneToOne: false;
23403
+ referencedRelation: "scan_scanners";
23404
+ referencedColumns: ["id"];
23405
+ }
23406
+ ];
23407
+ };
23109
23408
  scan_kar_items: {
23110
23409
  Row: {
23111
23410
  barcode: string;
@@ -23509,6 +23808,35 @@ export type Database = {
23509
23808
  };
23510
23809
  Relationships: [];
23511
23810
  };
23811
+ scan_pin_pogingen: {
23812
+ Row: {
23813
+ fout_pogingen: number;
23814
+ geblokkeerd_tot: string | null;
23815
+ scanner_id: string;
23816
+ updated_at: string;
23817
+ };
23818
+ Insert: {
23819
+ fout_pogingen?: number;
23820
+ geblokkeerd_tot?: string | null;
23821
+ scanner_id: string;
23822
+ updated_at?: string;
23823
+ };
23824
+ Update: {
23825
+ fout_pogingen?: number;
23826
+ geblokkeerd_tot?: string | null;
23827
+ scanner_id?: string;
23828
+ updated_at?: string;
23829
+ };
23830
+ Relationships: [
23831
+ {
23832
+ foreignKeyName: "scan_pin_pogingen_scanner_id_fkey";
23833
+ columns: ["scanner_id"];
23834
+ isOneToOne: true;
23835
+ referencedRelation: "scan_scanners";
23836
+ referencedColumns: ["id"];
23837
+ }
23838
+ ];
23839
+ };
23512
23840
  scan_restpakbonnen: {
23513
23841
  Row: {
23514
23842
  barcode: string;
@@ -27379,6 +27707,51 @@ export type Database = {
27379
27707
  }
27380
27708
  ];
27381
27709
  };
27710
+ verkoop_correctie_log: {
27711
+ Row: {
27712
+ aantal_orders: number;
27713
+ aantal_orders_gewijzigd: number;
27714
+ aantal_overgeslagen: number;
27715
+ aantal_regels_gewijzigd: number;
27716
+ correctie: string;
27717
+ created_at: string;
27718
+ details: Json;
27719
+ door_label: string;
27720
+ id: string;
27721
+ uitgevoerd_door: string | null;
27722
+ uitgevoerd_op: string;
27723
+ uitvoeren: boolean;
27724
+ };
27725
+ Insert: {
27726
+ aantal_orders?: number;
27727
+ aantal_orders_gewijzigd?: number;
27728
+ aantal_overgeslagen?: number;
27729
+ aantal_regels_gewijzigd?: number;
27730
+ correctie: string;
27731
+ created_at?: string;
27732
+ details?: Json;
27733
+ door_label: string;
27734
+ id?: string;
27735
+ uitgevoerd_door?: string | null;
27736
+ uitgevoerd_op?: string;
27737
+ uitvoeren: boolean;
27738
+ };
27739
+ Update: {
27740
+ aantal_orders?: number;
27741
+ aantal_orders_gewijzigd?: number;
27742
+ aantal_overgeslagen?: number;
27743
+ aantal_regels_gewijzigd?: number;
27744
+ correctie?: string;
27745
+ created_at?: string;
27746
+ details?: Json;
27747
+ door_label?: string;
27748
+ id?: string;
27749
+ uitgevoerd_door?: string | null;
27750
+ uitgevoerd_op?: string;
27751
+ uitvoeren?: boolean;
27752
+ };
27753
+ Relationships: [];
27754
+ };
27382
27755
  voorraad_buffer_state: {
27383
27756
  Row: {
27384
27757
  buffer_id: string;
@@ -30164,6 +30537,59 @@ export type Database = {
30164
30537
  };
30165
30538
  Returns: Json;
30166
30539
  };
30540
+ _scan_alleen_gekoppeld: {
30541
+ Args: never;
30542
+ Returns: boolean;
30543
+ };
30544
+ _scan_assert_beheer: {
30545
+ Args: never;
30546
+ Returns: undefined;
30547
+ };
30548
+ _scan_assert_device: {
30549
+ Args: {
30550
+ p_device_key: string;
30551
+ };
30552
+ Returns: string;
30553
+ };
30554
+ _scan_assert_legacy: {
30555
+ Args: never;
30556
+ Returns: undefined;
30557
+ };
30558
+ _scan_check_kar: {
30559
+ Args: {
30560
+ p_kar_id: string;
30561
+ v: string;
30562
+ };
30563
+ Returns: undefined;
30564
+ };
30565
+ _scan_check_scanner: {
30566
+ Args: {
30567
+ p: string;
30568
+ v: string;
30569
+ };
30570
+ Returns: string;
30571
+ };
30572
+ _scan_check_sessie: {
30573
+ Args: {
30574
+ p_sessie_id: string;
30575
+ v: string;
30576
+ };
30577
+ Returns: undefined;
30578
+ };
30579
+ _scan_hash: {
30580
+ Args: {
30581
+ p: string;
30582
+ };
30583
+ Returns: string;
30584
+ };
30585
+ _scan_is_beheer: {
30586
+ Args: never;
30587
+ Returns: boolean;
30588
+ };
30589
+ _scan_is_server: {
30590
+ Args: never;
30591
+ Returns: boolean;
30592
+ };
30167
30593
  _scan_kar_floriday_afgehandeld: {
30168
30594
  Args: {
30169
30595
  p_cart_id: string;
@@ -30183,6 +30609,10 @@ export type Database = {
30183
30609
  };
30184
30610
  Returns: Json;
30185
30611
  };
30612
+ _scan_vertrouwd: {
30613
+ Args: never;
30614
+ Returns: boolean;
30615
+ };
30186
30616
  _stock_import_caller: {
30187
30617
  Args: {
30188
30618
  p_owner: string;
@@ -30193,6 +30623,73 @@ export type Database = {
30193
30623
  Args: never;
30194
30624
  Returns: boolean;
30195
30625
  };
30626
+ aanbiedingsmail_assert_caller: {
30627
+ Args: {
30628
+ p_level: string;
30629
+ };
30630
+ Returns: undefined;
30631
+ };
30632
+ aanbiedingsmail_create_order: {
30633
+ Args: {
30634
+ p_offer_order_id: string;
30635
+ };
30636
+ Returns: Json;
30637
+ };
30638
+ aanbiedingsmail_ensure_cron: {
30639
+ Args: never;
30640
+ Returns: Json;
30641
+ };
30642
+ aanbiedingsmail_install_check: {
30643
+ Args: never;
30644
+ Returns: Json;
30645
+ };
30646
+ aanbiedingsmail_is_server: {
30647
+ Args: never;
30648
+ Returns: boolean;
30649
+ };
30650
+ aanbiedingsmail_koppel_producten: {
30651
+ Args: {
30652
+ p_uitvoeren?: boolean;
30653
+ };
30654
+ Returns: Json;
30655
+ };
30656
+ aanbiedingsmail_link_status: {
30657
+ Args: {
30658
+ p_code: string;
30659
+ };
30660
+ Returns: Json;
30661
+ };
30662
+ aanbiedingsmail_notify_office: {
30663
+ Args: {
30664
+ p_offer_order_id: string;
30665
+ };
30666
+ Returns: Json;
30667
+ };
30668
+ aanbiedingsmail_place_offer_order: {
30669
+ Args: {
30670
+ p_code: string;
30671
+ p_customer_email: string;
30672
+ p_customer_name: string;
30673
+ p_customer_phone: string;
30674
+ p_items: Json;
30675
+ p_notes: string;
30676
+ p_retry_payload: Json;
30677
+ p_total: number;
30678
+ };
30679
+ Returns: Json;
30680
+ };
30681
+ aanbiedingsmail_resolve_product_id: {
30682
+ Args: {
30683
+ p_ref: string;
30684
+ };
30685
+ Returns: string;
30686
+ };
30687
+ aanbiedingsmail_stock_key: {
30688
+ Args: {
30689
+ p_ref: string;
30690
+ };
30691
+ Returns: string;
30692
+ };
30196
30693
  afh_assert_ingelogd: {
30197
30694
  Args: never;
30198
30695
  Returns: undefined;
@@ -30437,6 +30934,26 @@ export type Database = {
30437
30934
  Args: never;
30438
30935
  Returns: Json;
30439
30936
  };
30937
+ ai_catalog: {
30938
+ Args: never;
30939
+ Returns: Json;
30940
+ };
30941
+ ai_declare_installatietechniek_werkbonnen_planner: {
30942
+ Args: never;
30943
+ Returns: Json;
30944
+ };
30945
+ ai_declare_klanten_stickers: {
30946
+ Args: never;
30947
+ Returns: Json;
30948
+ };
30949
+ ai_declare_mailbox_bestellingen: {
30950
+ Args: never;
30951
+ Returns: Json;
30952
+ };
30953
+ ai_declare_werkbon_postvak: {
30954
+ Args: never;
30955
+ Returns: Json;
30956
+ };
30440
30957
  ai_is_admin: {
30441
30958
  Args: {
30442
30959
  _uid: string;
@@ -30457,6 +30974,10 @@ export type Database = {
30457
30974
  };
30458
30975
  Returns: boolean;
30459
30976
  };
30977
+ ai_sync_catalog: {
30978
+ Args: never;
30979
+ Returns: Json;
30980
+ };
30460
30981
  ai_usage_by_module: {
30461
30982
  Args: {
30462
30983
  _from: string;
@@ -31386,6 +31907,16 @@ export type Database = {
31386
31907
  };
31387
31908
  Returns: string;
31388
31909
  };
31910
+ email_auth_enqueue_internal: {
31911
+ Args: {
31912
+ p_dedupe_key: string;
31913
+ p_from_name: string;
31914
+ p_html: string;
31915
+ p_source_module: string;
31916
+ p_subject: string;
31917
+ };
31918
+ Returns: Json;
31919
+ };
31389
31920
  email_auth_fetch_message: {
31390
31921
  Args: {
31391
31922
  _connection_id: string;
@@ -31409,6 +31940,14 @@ export type Database = {
31409
31940
  status: string;
31410
31941
  }[];
31411
31942
  };
31943
+ email_auth_install_check: {
31944
+ Args: never;
31945
+ Returns: Json;
31946
+ };
31947
+ email_auth_is_server_call: {
31948
+ Args: never;
31949
+ Returns: boolean;
31950
+ };
31412
31951
  email_auth_upsert_connection: {
31413
31952
  Args: {
31414
31953
  _account_email: string;
@@ -31618,6 +32157,28 @@ export type Database = {
31618
32157
  Args: never;
31619
32158
  Returns: undefined;
31620
32159
  };
32160
+ floriday_cron_command: {
32161
+ Args: {
32162
+ p_only_with_connection: boolean;
32163
+ p_route: string;
32164
+ p_timeout_ms: number;
32165
+ };
32166
+ Returns: string;
32167
+ };
32168
+ floriday_cron_inventory: {
32169
+ Args: never;
32170
+ Returns: {
32171
+ default_schedule: string;
32172
+ jobname: string;
32173
+ only_with_connection: boolean;
32174
+ route: string;
32175
+ timeout_ms: number;
32176
+ }[];
32177
+ };
32178
+ floriday_cron_key: {
32179
+ Args: never;
32180
+ Returns: string;
32181
+ };
31621
32182
  floriday_customer_candidates: {
31622
32183
  Args: never;
31623
32184
  Returns: {
@@ -31679,6 +32240,10 @@ export type Database = {
31679
32240
  postcode: string;
31680
32241
  }[];
31681
32242
  };
32243
+ floriday_ensure_cron: {
32244
+ Args: never;
32245
+ Returns: Json;
32246
+ };
31682
32247
  floriday_erp_leading_preview: {
31683
32248
  Args: {
31684
32249
  p_connection_id: string;
@@ -35173,6 +35738,15 @@ export type Database = {
35173
35738
  };
35174
35739
  Returns: string;
35175
35740
  };
35741
+ logistics_plan_fail_log: {
35742
+ Args: {
35743
+ p_actor: string;
35744
+ p_msg: string;
35745
+ p_order_id: string;
35746
+ p_state: string;
35747
+ };
35748
+ Returns: undefined;
35749
+ };
35176
35750
  logistics_plan_finish: {
35177
35751
  Args: {
35178
35752
  p_error?: string;
@@ -36678,10 +37252,25 @@ export type Database = {
36678
37252
  naam: string;
36679
37253
  online: boolean;
36680
37254
  }[];
37255
+ } | {
37256
+ Args: {
37257
+ p_device_key: string;
37258
+ };
37259
+ Returns: {
37260
+ id: string;
37261
+ locatie: string;
37262
+ naam: string;
37263
+ online: boolean;
37264
+ }[];
36681
37265
  };
36682
37266
  pick_apply_buffer_events: {
36683
37267
  Args: never;
36684
37268
  Returns: Json;
37269
+ } | {
37270
+ Args: {
37271
+ p_device_key: string;
37272
+ };
37273
+ Returns: Json;
36685
37274
  };
36686
37275
  pick_assert_printable: {
36687
37276
  Args: {
@@ -36689,6 +37278,12 @@ export type Database = {
36689
37278
  };
36690
37279
  Returns: undefined;
36691
37280
  };
37281
+ pick_assert_station: {
37282
+ Args: {
37283
+ p_device_key: string;
37284
+ };
37285
+ Returns: string;
37286
+ };
36692
37287
  pick_available_pick_days: {
36693
37288
  Args: {
36694
37289
  _max_days?: number;
@@ -36697,6 +37292,15 @@ export type Database = {
36697
37292
  orders: number;
36698
37293
  pick_day: string;
36699
37294
  }[];
37295
+ } | {
37296
+ Args: {
37297
+ _max_days?: number;
37298
+ p_device_key: string;
37299
+ };
37300
+ Returns: {
37301
+ orders: number;
37302
+ pick_day: string;
37303
+ }[];
36700
37304
  };
36701
37305
  pick_buffer_order_ids: {
36702
37306
  Args: {
@@ -36704,6 +37308,10 @@ export type Database = {
36704
37308
  };
36705
37309
  Returns: string[];
36706
37310
  };
37311
+ pick_build_key_variants: {
37312
+ Args: never;
37313
+ Returns: Json;
37314
+ };
36707
37315
  pick_cart_breakdown: {
36708
37316
  Args: {
36709
37317
  _order_id: string;
@@ -36759,15 +37367,14 @@ export type Database = {
36759
37367
  isOneToOne: true;
36760
37368
  isSetofReturn: false;
36761
37369
  };
36762
- };
36763
- pick_claim_next_document: {
37370
+ } | {
36764
37371
  Args: {
36765
- _country_code: string;
36766
- _pick_day?: string;
37372
+ _queue_item_id: string;
36767
37373
  _screen_id: string;
36768
37374
  _session_id: string;
36769
37375
  _station_id: string;
36770
37376
  _timeout_seconds?: number;
37377
+ p_device_key: string;
36771
37378
  };
36772
37379
  Returns: {
36773
37380
  announced_at: string;
@@ -36811,181 +37418,513 @@ export type Database = {
36811
37418
  isSetofReturn: false;
36812
37419
  };
36813
37420
  };
36814
- pick_cleanup_maintenance: {
36815
- Args: {
36816
- _heartbeat_hours?: number;
36817
- _log_days?: number;
36818
- };
36819
- Returns: Json;
36820
- };
36821
- pick_complete_print: {
36822
- Args: {
36823
- _printer_id: string;
36824
- _queue_item_id: string;
36825
- _session_id: string;
36826
- };
36827
- Returns: {
36828
- announced_at: string;
36829
- assigned_user_id: string | null;
36830
- barcode: string | null;
36831
- cancelled_at: string | null;
36832
- cart_count: number;
36833
- completed_at: string | null;
36834
- country_code: string | null;
36835
- created_at: string;
36836
- customer_name: string | null;
36837
- delivery_address: string | null;
36838
- document_number: string | null;
36839
- document_type_id: string | null;
36840
- due_at: string | null;
36841
- id: string;
36842
- is_urgent: boolean;
36843
- line_count: number;
36844
- order_number: string | null;
36845
- order_type: string | null;
36846
- payload: Json;
36847
- print_count: number;
36848
- print_job_id: string | null;
36849
- printed_at: string | null;
36850
- printed_by: string | null;
36851
- printed_cart_ids: Json;
36852
- printer_id: string | null;
36853
- priority: number;
36854
- reference: string | null;
36855
- route: string | null;
36856
- screen_id: string | null;
36857
- station_id: string | null;
36858
- status_id: string | null;
36859
- updated_at: string;
36860
- warnings: Json;
36861
- };
36862
- SetofOptions: {
36863
- from: "*";
36864
- to: "pick_queue";
36865
- isOneToOne: true;
36866
- isSetofReturn: false;
36867
- };
36868
- };
36869
- pick_complete_print_cart: {
36870
- Args: {
36871
- _cart_id: string;
36872
- _printer_id: string;
36873
- _queue_item_id: string;
36874
- _session_id: string;
36875
- };
36876
- Returns: {
36877
- announced_at: string;
36878
- assigned_user_id: string | null;
36879
- barcode: string | null;
36880
- cancelled_at: string | null;
36881
- cart_count: number;
36882
- completed_at: string | null;
36883
- country_code: string | null;
36884
- created_at: string;
36885
- customer_name: string | null;
36886
- delivery_address: string | null;
36887
- document_number: string | null;
36888
- document_type_id: string | null;
36889
- due_at: string | null;
36890
- id: string;
36891
- is_urgent: boolean;
36892
- line_count: number;
36893
- order_number: string | null;
36894
- order_type: string | null;
36895
- payload: Json;
36896
- print_count: number;
36897
- print_job_id: string | null;
36898
- printed_at: string | null;
36899
- printed_by: string | null;
36900
- printed_cart_ids: Json;
36901
- printer_id: string | null;
36902
- priority: number;
36903
- reference: string | null;
36904
- route: string | null;
36905
- screen_id: string | null;
36906
- station_id: string | null;
36907
- status_id: string | null;
36908
- updated_at: string;
36909
- warnings: Json;
36910
- };
36911
- SetofOptions: {
36912
- from: "*";
36913
- to: "pick_queue";
36914
- isOneToOne: true;
36915
- isSetofReturn: false;
36916
- };
36917
- };
36918
- pick_complete_print_carts: {
36919
- Args: {
36920
- _cart_ids: string[];
36921
- _queue_item_id: string;
36922
- _session_id: string;
36923
- };
36924
- Returns: Json;
36925
- };
36926
- pick_current_pick_day: {
36927
- Args: never;
36928
- Returns: string;
36929
- };
36930
- pick_day_counts: {
37421
+ pick_claim_next_document: {
36931
37422
  Args: {
37423
+ _country_code: string;
36932
37424
  _pick_day?: string;
36933
- _screen_id?: string;
36934
- _station_id?: string;
36935
- };
36936
- Returns: Json;
36937
- };
36938
- pick_document_layout_data: {
36939
- Args: {
36940
- _layout_id: string;
36941
- };
36942
- Returns: Json;
36943
- };
36944
- pick_enqueue_print_job: {
36945
- Args: {
36946
- _is_herprint?: boolean;
36947
- _printer_id?: string;
36948
- _queue_item_id: string;
36949
- _session_id?: string;
36950
- };
36951
- Returns: string;
36952
- } | {
36953
- Args: {
36954
- _cart_id: string;
36955
- _is_herprint: boolean;
36956
- _printer_id: string;
36957
- _queue_item_id: string;
36958
- _session_id: string;
36959
- };
36960
- Returns: string;
36961
- };
36962
- pick_enqueue_print_job_from_cart: {
36963
- Args: {
36964
- _cart_id: string;
36965
- _is_herprint: boolean;
36966
- _printer_id: string;
36967
- _queue_item_id: string;
36968
- _selected_cart: Json;
36969
- _session_id: string;
36970
- };
36971
- Returns: string;
36972
- };
36973
- pick_find_sent_elsewhere: {
36974
- Args: {
36975
- _cart_id: string;
36976
- _queue_item_id: string;
36977
- };
36978
- Returns: Json;
36979
- };
36980
- pick_is_reference_admin: {
36981
- Args: never;
36982
- Returns: boolean;
36983
- };
36984
- pick_mark_printed: {
36985
- Args: {
36986
- _queue_item_id: string;
36987
- _reden?: string;
37425
+ _screen_id: string;
36988
37426
  _session_id: string;
37427
+ _station_id: string;
37428
+ _timeout_seconds?: number;
37429
+ };
37430
+ Returns: {
37431
+ announced_at: string;
37432
+ assigned_user_id: string | null;
37433
+ barcode: string | null;
37434
+ cancelled_at: string | null;
37435
+ cart_count: number;
37436
+ completed_at: string | null;
37437
+ country_code: string | null;
37438
+ created_at: string;
37439
+ customer_name: string | null;
37440
+ delivery_address: string | null;
37441
+ document_number: string | null;
37442
+ document_type_id: string | null;
37443
+ due_at: string | null;
37444
+ id: string;
37445
+ is_urgent: boolean;
37446
+ line_count: number;
37447
+ order_number: string | null;
37448
+ order_type: string | null;
37449
+ payload: Json;
37450
+ print_count: number;
37451
+ print_job_id: string | null;
37452
+ printed_at: string | null;
37453
+ printed_by: string | null;
37454
+ printed_cart_ids: Json;
37455
+ printer_id: string | null;
37456
+ priority: number;
37457
+ reference: string | null;
37458
+ route: string | null;
37459
+ screen_id: string | null;
37460
+ station_id: string | null;
37461
+ status_id: string | null;
37462
+ updated_at: string;
37463
+ warnings: Json;
37464
+ };
37465
+ SetofOptions: {
37466
+ from: "*";
37467
+ to: "pick_queue";
37468
+ isOneToOne: true;
37469
+ isSetofReturn: false;
37470
+ };
37471
+ } | {
37472
+ Args: {
37473
+ _country_code: string;
37474
+ _pick_day?: string;
37475
+ _screen_id: string;
37476
+ _session_id: string;
37477
+ _station_id: string;
37478
+ _timeout_seconds?: number;
37479
+ p_device_key: string;
37480
+ };
37481
+ Returns: {
37482
+ announced_at: string;
37483
+ assigned_user_id: string | null;
37484
+ barcode: string | null;
37485
+ cancelled_at: string | null;
37486
+ cart_count: number;
37487
+ completed_at: string | null;
37488
+ country_code: string | null;
37489
+ created_at: string;
37490
+ customer_name: string | null;
37491
+ delivery_address: string | null;
37492
+ document_number: string | null;
37493
+ document_type_id: string | null;
37494
+ due_at: string | null;
37495
+ id: string;
37496
+ is_urgent: boolean;
37497
+ line_count: number;
37498
+ order_number: string | null;
37499
+ order_type: string | null;
37500
+ payload: Json;
37501
+ print_count: number;
37502
+ print_job_id: string | null;
37503
+ printed_at: string | null;
37504
+ printed_by: string | null;
37505
+ printed_cart_ids: Json;
37506
+ printer_id: string | null;
37507
+ priority: number;
37508
+ reference: string | null;
37509
+ route: string | null;
37510
+ screen_id: string | null;
37511
+ station_id: string | null;
37512
+ status_id: string | null;
37513
+ updated_at: string;
37514
+ warnings: Json;
37515
+ };
37516
+ SetofOptions: {
37517
+ from: "*";
37518
+ to: "pick_queue";
37519
+ isOneToOne: true;
37520
+ isSetofReturn: false;
37521
+ };
37522
+ };
37523
+ pick_cleanup_maintenance: {
37524
+ Args: {
37525
+ _heartbeat_hours?: number;
37526
+ _log_days?: number;
37527
+ };
37528
+ Returns: Json;
37529
+ };
37530
+ pick_complete_print: {
37531
+ Args: {
37532
+ _printer_id: string;
37533
+ _queue_item_id: string;
37534
+ _session_id: string;
37535
+ };
37536
+ Returns: {
37537
+ announced_at: string;
37538
+ assigned_user_id: string | null;
37539
+ barcode: string | null;
37540
+ cancelled_at: string | null;
37541
+ cart_count: number;
37542
+ completed_at: string | null;
37543
+ country_code: string | null;
37544
+ created_at: string;
37545
+ customer_name: string | null;
37546
+ delivery_address: string | null;
37547
+ document_number: string | null;
37548
+ document_type_id: string | null;
37549
+ due_at: string | null;
37550
+ id: string;
37551
+ is_urgent: boolean;
37552
+ line_count: number;
37553
+ order_number: string | null;
37554
+ order_type: string | null;
37555
+ payload: Json;
37556
+ print_count: number;
37557
+ print_job_id: string | null;
37558
+ printed_at: string | null;
37559
+ printed_by: string | null;
37560
+ printed_cart_ids: Json;
37561
+ printer_id: string | null;
37562
+ priority: number;
37563
+ reference: string | null;
37564
+ route: string | null;
37565
+ screen_id: string | null;
37566
+ station_id: string | null;
37567
+ status_id: string | null;
37568
+ updated_at: string;
37569
+ warnings: Json;
37570
+ };
37571
+ SetofOptions: {
37572
+ from: "*";
37573
+ to: "pick_queue";
37574
+ isOneToOne: true;
37575
+ isSetofReturn: false;
37576
+ };
37577
+ } | {
37578
+ Args: {
37579
+ _printer_id: string;
37580
+ _queue_item_id: string;
37581
+ _session_id: string;
37582
+ p_device_key: string;
37583
+ };
37584
+ Returns: {
37585
+ announced_at: string;
37586
+ assigned_user_id: string | null;
37587
+ barcode: string | null;
37588
+ cancelled_at: string | null;
37589
+ cart_count: number;
37590
+ completed_at: string | null;
37591
+ country_code: string | null;
37592
+ created_at: string;
37593
+ customer_name: string | null;
37594
+ delivery_address: string | null;
37595
+ document_number: string | null;
37596
+ document_type_id: string | null;
37597
+ due_at: string | null;
37598
+ id: string;
37599
+ is_urgent: boolean;
37600
+ line_count: number;
37601
+ order_number: string | null;
37602
+ order_type: string | null;
37603
+ payload: Json;
37604
+ print_count: number;
37605
+ print_job_id: string | null;
37606
+ printed_at: string | null;
37607
+ printed_by: string | null;
37608
+ printed_cart_ids: Json;
37609
+ printer_id: string | null;
37610
+ priority: number;
37611
+ reference: string | null;
37612
+ route: string | null;
37613
+ screen_id: string | null;
37614
+ station_id: string | null;
37615
+ status_id: string | null;
37616
+ updated_at: string;
37617
+ warnings: Json;
37618
+ };
37619
+ SetofOptions: {
37620
+ from: "*";
37621
+ to: "pick_queue";
37622
+ isOneToOne: true;
37623
+ isSetofReturn: false;
37624
+ };
37625
+ };
37626
+ pick_complete_print_cart: {
37627
+ Args: {
37628
+ _cart_id: string;
37629
+ _printer_id: string;
37630
+ _queue_item_id: string;
37631
+ _session_id: string;
37632
+ };
37633
+ Returns: {
37634
+ announced_at: string;
37635
+ assigned_user_id: string | null;
37636
+ barcode: string | null;
37637
+ cancelled_at: string | null;
37638
+ cart_count: number;
37639
+ completed_at: string | null;
37640
+ country_code: string | null;
37641
+ created_at: string;
37642
+ customer_name: string | null;
37643
+ delivery_address: string | null;
37644
+ document_number: string | null;
37645
+ document_type_id: string | null;
37646
+ due_at: string | null;
37647
+ id: string;
37648
+ is_urgent: boolean;
37649
+ line_count: number;
37650
+ order_number: string | null;
37651
+ order_type: string | null;
37652
+ payload: Json;
37653
+ print_count: number;
37654
+ print_job_id: string | null;
37655
+ printed_at: string | null;
37656
+ printed_by: string | null;
37657
+ printed_cart_ids: Json;
37658
+ printer_id: string | null;
37659
+ priority: number;
37660
+ reference: string | null;
37661
+ route: string | null;
37662
+ screen_id: string | null;
37663
+ station_id: string | null;
37664
+ status_id: string | null;
37665
+ updated_at: string;
37666
+ warnings: Json;
37667
+ };
37668
+ SetofOptions: {
37669
+ from: "*";
37670
+ to: "pick_queue";
37671
+ isOneToOne: true;
37672
+ isSetofReturn: false;
37673
+ };
37674
+ } | {
37675
+ Args: {
37676
+ _cart_id: string;
37677
+ _printer_id: string;
37678
+ _queue_item_id: string;
37679
+ _session_id: string;
37680
+ p_device_key: string;
37681
+ };
37682
+ Returns: {
37683
+ announced_at: string;
37684
+ assigned_user_id: string | null;
37685
+ barcode: string | null;
37686
+ cancelled_at: string | null;
37687
+ cart_count: number;
37688
+ completed_at: string | null;
37689
+ country_code: string | null;
37690
+ created_at: string;
37691
+ customer_name: string | null;
37692
+ delivery_address: string | null;
37693
+ document_number: string | null;
37694
+ document_type_id: string | null;
37695
+ due_at: string | null;
37696
+ id: string;
37697
+ is_urgent: boolean;
37698
+ line_count: number;
37699
+ order_number: string | null;
37700
+ order_type: string | null;
37701
+ payload: Json;
37702
+ print_count: number;
37703
+ print_job_id: string | null;
37704
+ printed_at: string | null;
37705
+ printed_by: string | null;
37706
+ printed_cart_ids: Json;
37707
+ printer_id: string | null;
37708
+ priority: number;
37709
+ reference: string | null;
37710
+ route: string | null;
37711
+ screen_id: string | null;
37712
+ station_id: string | null;
37713
+ status_id: string | null;
37714
+ updated_at: string;
37715
+ warnings: Json;
37716
+ };
37717
+ SetofOptions: {
37718
+ from: "*";
37719
+ to: "pick_queue";
37720
+ isOneToOne: true;
37721
+ isSetofReturn: false;
37722
+ };
37723
+ };
37724
+ pick_complete_print_carts: {
37725
+ Args: {
37726
+ _cart_ids: string[];
37727
+ _queue_item_id: string;
37728
+ _session_id: string;
37729
+ };
37730
+ Returns: Json;
37731
+ } | {
37732
+ Args: {
37733
+ _cart_ids: string[];
37734
+ _queue_item_id: string;
37735
+ _session_id: string;
37736
+ p_device_key: string;
37737
+ };
37738
+ Returns: Json;
37739
+ };
37740
+ pick_create_pair_code: {
37741
+ Args: {
37742
+ p_station_id: string;
37743
+ };
37744
+ Returns: Json;
37745
+ };
37746
+ pick_current_pick_day: {
37747
+ Args: never;
37748
+ Returns: string;
37749
+ } | {
37750
+ Args: {
37751
+ p_device_key: string;
37752
+ };
37753
+ Returns: string;
37754
+ };
37755
+ pick_day_counts: {
37756
+ Args: {
37757
+ _pick_day?: string;
37758
+ _screen_id?: string;
37759
+ _station_id?: string;
37760
+ };
37761
+ Returns: Json;
37762
+ } | {
37763
+ Args: {
37764
+ _pick_day?: string;
37765
+ _screen_id?: string;
37766
+ _station_id?: string;
37767
+ p_device_key: string;
37768
+ };
37769
+ Returns: Json;
37770
+ };
37771
+ pick_device_check: {
37772
+ Args: {
37773
+ p_cart: string;
37774
+ p_device_key: string;
37775
+ p_item: string;
37776
+ p_order: string;
37777
+ p_slug: string;
37778
+ p_station: string;
37779
+ };
37780
+ Returns: undefined;
37781
+ };
37782
+ pick_device_gate: {
37783
+ Args: {
37784
+ p_device_key: string;
37785
+ };
37786
+ Returns: string;
37787
+ };
37788
+ pick_device_key_required: {
37789
+ Args: never;
37790
+ Returns: boolean;
37791
+ };
37792
+ pick_document_layout_data: {
37793
+ Args: {
37794
+ _layout_id: string;
37795
+ };
37796
+ Returns: Json;
37797
+ };
37798
+ pick_enqueue_print_job: {
37799
+ Args: {
37800
+ _is_herprint?: boolean;
37801
+ _printer_id?: string;
37802
+ _queue_item_id: string;
37803
+ _session_id?: string;
37804
+ };
37805
+ Returns: string;
37806
+ } | {
37807
+ Args: {
37808
+ _cart_id: string;
37809
+ _is_herprint: boolean;
37810
+ _printer_id: string;
37811
+ _queue_item_id: string;
37812
+ _session_id: string;
37813
+ };
37814
+ Returns: string;
37815
+ } | {
37816
+ Args: {
37817
+ _is_herprint?: boolean;
37818
+ _printer_id?: string;
37819
+ _queue_item_id: string;
37820
+ _session_id?: string;
37821
+ p_device_key: string;
37822
+ };
37823
+ Returns: string;
37824
+ } | {
37825
+ Args: {
37826
+ _cart_id: string;
37827
+ _is_herprint: boolean;
37828
+ _printer_id: string;
37829
+ _queue_item_id: string;
37830
+ _session_id: string;
37831
+ p_device_key: string;
37832
+ };
37833
+ Returns: string;
37834
+ };
37835
+ pick_enqueue_print_job_from_cart: {
37836
+ Args: {
37837
+ _cart_id: string;
37838
+ _is_herprint: boolean;
37839
+ _printer_id: string;
37840
+ _queue_item_id: string;
37841
+ _selected_cart: Json;
37842
+ _session_id: string;
37843
+ };
37844
+ Returns: string;
37845
+ };
37846
+ pick_ensure_settings: {
37847
+ Args: never;
37848
+ Returns: undefined;
37849
+ };
37850
+ pick_find_sent_elsewhere: {
37851
+ Args: {
37852
+ _cart_id: string;
37853
+ _queue_item_id: string;
37854
+ };
37855
+ Returns: Json;
37856
+ };
37857
+ pick_has_station_role: {
37858
+ Args: never;
37859
+ Returns: boolean;
37860
+ };
37861
+ pick_is_reference_admin: {
37862
+ Args: never;
37863
+ Returns: boolean;
37864
+ };
37865
+ pick_is_server: {
37866
+ Args: never;
37867
+ Returns: boolean;
37868
+ };
37869
+ pick_key_hash: {
37870
+ Args: {
37871
+ p_key: string;
37872
+ };
37873
+ Returns: string;
37874
+ };
37875
+ pick_mark_printed: {
37876
+ Args: {
37877
+ _queue_item_id: string;
37878
+ _reden?: string;
37879
+ _session_id: string;
37880
+ };
37881
+ Returns: {
37882
+ announced_at: string;
37883
+ assigned_user_id: string | null;
37884
+ barcode: string | null;
37885
+ cancelled_at: string | null;
37886
+ cart_count: number;
37887
+ completed_at: string | null;
37888
+ country_code: string | null;
37889
+ created_at: string;
37890
+ customer_name: string | null;
37891
+ delivery_address: string | null;
37892
+ document_number: string | null;
37893
+ document_type_id: string | null;
37894
+ due_at: string | null;
37895
+ id: string;
37896
+ is_urgent: boolean;
37897
+ line_count: number;
37898
+ order_number: string | null;
37899
+ order_type: string | null;
37900
+ payload: Json;
37901
+ print_count: number;
37902
+ print_job_id: string | null;
37903
+ printed_at: string | null;
37904
+ printed_by: string | null;
37905
+ printed_cart_ids: Json;
37906
+ printer_id: string | null;
37907
+ priority: number;
37908
+ reference: string | null;
37909
+ route: string | null;
37910
+ screen_id: string | null;
37911
+ station_id: string | null;
37912
+ status_id: string | null;
37913
+ updated_at: string;
37914
+ warnings: Json;
37915
+ };
37916
+ SetofOptions: {
37917
+ from: "*";
37918
+ to: "pick_queue";
37919
+ isOneToOne: true;
37920
+ isSetofReturn: false;
37921
+ };
37922
+ } | {
37923
+ Args: {
37924
+ _queue_item_id: string;
37925
+ _reden?: string;
37926
+ _session_id: string;
37927
+ p_device_key: string;
36989
37928
  };
36990
37929
  Returns: {
36991
37930
  announced_at: string;
@@ -37042,18 +37981,37 @@ export type Database = {
37042
37981
  _station_slug: string;
37043
37982
  };
37044
37983
  Returns: Json;
37984
+ } | {
37985
+ Args: {
37986
+ _queue_item_id: string;
37987
+ _station_slug: string;
37988
+ p_device_key: string;
37989
+ };
37990
+ Returns: Json;
37045
37991
  };
37046
37992
  pick_print_job_status: {
37047
37993
  Args: {
37048
37994
  _job_id: string;
37049
37995
  };
37050
37996
  Returns: Json;
37997
+ } | {
37998
+ Args: {
37999
+ _job_id: string;
38000
+ p_device_key: string;
38001
+ };
38002
+ Returns: Json;
37051
38003
  };
37052
38004
  pick_print_jobs_status: {
37053
38005
  Args: {
37054
38006
  _job_ids: string[];
37055
38007
  };
37056
38008
  Returns: Json[];
38009
+ } | {
38010
+ Args: {
38011
+ _job_ids: string[];
38012
+ p_device_key: string;
38013
+ };
38014
+ Returns: Json[];
37057
38015
  };
37058
38016
  pick_print_plekken: {
37059
38017
  Args: never;
@@ -37062,12 +38020,27 @@ export type Database = {
37062
38020
  naam: string;
37063
38021
  omschrijving: string;
37064
38022
  }[];
38023
+ } | {
38024
+ Args: {
38025
+ p_device_key: string;
38026
+ };
38027
+ Returns: {
38028
+ id: string;
38029
+ naam: string;
38030
+ omschrijving: string;
38031
+ }[];
37065
38032
  };
37066
38033
  pick_queue_cart_plan: {
37067
38034
  Args: {
37068
38035
  _queue_item_id: string;
37069
38036
  };
37070
38037
  Returns: Json;
38038
+ } | {
38039
+ Args: {
38040
+ _queue_item_id: string;
38041
+ p_device_key: string;
38042
+ };
38043
+ Returns: Json;
37071
38044
  };
37072
38045
  pick_queue_cart_plan_v152: {
37073
38046
  Args: {
@@ -37075,23 +38048,220 @@ export type Database = {
37075
38048
  };
37076
38049
  Returns: Json;
37077
38050
  };
38051
+ pick_read_by_code: {
38052
+ Args: {
38053
+ p_code: string;
38054
+ p_device_key: string;
38055
+ p_station_id: string;
38056
+ };
38057
+ Returns: {
38058
+ announced_at: string;
38059
+ assigned_user_id: string | null;
38060
+ barcode: string | null;
38061
+ cancelled_at: string | null;
38062
+ cart_count: number;
38063
+ completed_at: string | null;
38064
+ country_code: string | null;
38065
+ created_at: string;
38066
+ customer_name: string | null;
38067
+ delivery_address: string | null;
38068
+ document_number: string | null;
38069
+ document_type_id: string | null;
38070
+ due_at: string | null;
38071
+ id: string;
38072
+ is_urgent: boolean;
38073
+ line_count: number;
38074
+ order_number: string | null;
38075
+ order_type: string | null;
38076
+ payload: Json;
38077
+ print_count: number;
38078
+ print_job_id: string | null;
38079
+ printed_at: string | null;
38080
+ printed_by: string | null;
38081
+ printed_cart_ids: Json;
38082
+ printer_id: string | null;
38083
+ priority: number;
38084
+ reference: string | null;
38085
+ route: string | null;
38086
+ screen_id: string | null;
38087
+ station_id: string | null;
38088
+ status_id: string | null;
38089
+ updated_at: string;
38090
+ warnings: Json;
38091
+ }[];
38092
+ SetofOptions: {
38093
+ from: "*";
38094
+ to: "pick_queue";
38095
+ isOneToOne: false;
38096
+ isSetofReturn: true;
38097
+ };
38098
+ };
38099
+ pick_read_country_counts: {
38100
+ Args: {
38101
+ p_device_key: string;
38102
+ p_screen_id: string;
38103
+ p_station_id: string;
38104
+ };
38105
+ Returns: Json;
38106
+ };
38107
+ pick_read_locks: {
38108
+ Args: {
38109
+ p_device_key: string;
38110
+ p_station_id: string;
38111
+ };
38112
+ Returns: {
38113
+ expires_at: string;
38114
+ id: string;
38115
+ locked_at: string;
38116
+ locked_by: string | null;
38117
+ queue_item_id: string;
38118
+ screen_id: string | null;
38119
+ session_id: string | null;
38120
+ station_id: string | null;
38121
+ }[];
38122
+ SetofOptions: {
38123
+ from: "*";
38124
+ to: "pick_queue_locks";
38125
+ isOneToOne: false;
38126
+ isSetofReturn: true;
38127
+ };
38128
+ };
38129
+ pick_read_queue: {
38130
+ Args: {
38131
+ p_country: string;
38132
+ p_device_key: string;
38133
+ p_document_type_id: string;
38134
+ p_include_done: boolean;
38135
+ p_limit: number;
38136
+ p_offset: number;
38137
+ p_pick_day: string;
38138
+ p_screen_id: string;
38139
+ p_search: string;
38140
+ p_sort: Json;
38141
+ p_station_id: string;
38142
+ p_urgent_only: boolean;
38143
+ };
38144
+ Returns: Json;
38145
+ };
38146
+ pick_read_station: {
38147
+ Args: {
38148
+ p_device_key: string;
38149
+ p_slug: string;
38150
+ };
38151
+ Returns: {
38152
+ active: boolean;
38153
+ allow_multi_screen: boolean;
38154
+ color: string | null;
38155
+ created_at: string;
38156
+ default_printer_id: string | null;
38157
+ department: string | null;
38158
+ description: string | null;
38159
+ icon: string | null;
38160
+ id: string;
38161
+ location: string | null;
38162
+ lock_timeout_seconds: number;
38163
+ name: string;
38164
+ require_country_selection: boolean;
38165
+ slug: string | null;
38166
+ sort_order: number;
38167
+ sort_rules: Json;
38168
+ task_id: string | null;
38169
+ type_id: string | null;
38170
+ updated_at: string;
38171
+ }[];
38172
+ SetofOptions: {
38173
+ from: "*";
38174
+ to: "pick_stations";
38175
+ isOneToOne: false;
38176
+ isSetofReturn: true;
38177
+ };
38178
+ };
38179
+ pick_read_unscanned_earlier: {
38180
+ Args: {
38181
+ p_before_day: string;
38182
+ p_device_key: string;
38183
+ p_station_id: string;
38184
+ };
38185
+ Returns: {
38186
+ announced_at: string;
38187
+ assigned_user_id: string | null;
38188
+ barcode: string | null;
38189
+ cancelled_at: string | null;
38190
+ cart_count: number;
38191
+ completed_at: string | null;
38192
+ country_code: string | null;
38193
+ created_at: string;
38194
+ customer_name: string | null;
38195
+ delivery_address: string | null;
38196
+ document_number: string | null;
38197
+ document_type_id: string | null;
38198
+ due_at: string | null;
38199
+ id: string;
38200
+ is_urgent: boolean;
38201
+ line_count: number;
38202
+ order_number: string | null;
38203
+ order_type: string | null;
38204
+ payload: Json;
38205
+ print_count: number;
38206
+ print_job_id: string | null;
38207
+ printed_at: string | null;
38208
+ printed_by: string | null;
38209
+ printed_cart_ids: Json;
38210
+ printer_id: string | null;
38211
+ priority: number;
38212
+ reference: string | null;
38213
+ route: string | null;
38214
+ screen_id: string | null;
38215
+ station_id: string | null;
38216
+ status_id: string | null;
38217
+ updated_at: string;
38218
+ warnings: Json;
38219
+ }[];
38220
+ SetofOptions: {
38221
+ from: "*";
38222
+ to: "pick_queue";
38223
+ isOneToOne: false;
38224
+ isSetofReturn: true;
38225
+ };
38226
+ };
37078
38227
  pick_reference_data_status: {
37079
38228
  Args: never;
37080
38229
  Returns: Json;
38230
+ } | {
38231
+ Args: {
38232
+ p_device_key: string;
38233
+ };
38234
+ Returns: Json;
37081
38235
  };
37082
38236
  pick_release_expired_locks: {
37083
38237
  Args: never;
37084
38238
  Returns: number;
38239
+ } | {
38240
+ Args: {
38241
+ p_device_key: string;
38242
+ };
38243
+ Returns: number;
37085
38244
  };
37086
38245
  pick_release_lock: {
37087
38246
  Args: {
37088
38247
  _queue_item_id: string;
37089
38248
  };
37090
38249
  Returns: undefined;
38250
+ } | {
38251
+ Args: {
38252
+ _queue_item_id: string;
38253
+ p_device_key: string;
38254
+ };
38255
+ Returns: undefined;
37091
38256
  };
37092
38257
  pick_report_missing_cart_plan: {
37093
38258
  Args: never;
37094
38259
  Returns: Json;
38260
+ } | {
38261
+ Args: {
38262
+ p_device_key: string;
38263
+ };
38264
+ Returns: Json;
37095
38265
  };
37096
38266
  pick_reprint_cart: {
37097
38267
  Args: {
@@ -37101,6 +38271,15 @@ export type Database = {
37101
38271
  _throttle_seconds?: number;
37102
38272
  };
37103
38273
  Returns: string;
38274
+ } | {
38275
+ Args: {
38276
+ _cart_id: string;
38277
+ _queue_item_id: string;
38278
+ _session_id: string;
38279
+ _throttle_seconds?: number;
38280
+ p_device_key: string;
38281
+ };
38282
+ Returns: string;
37104
38283
  };
37105
38284
  pick_reprint_document: {
37106
38285
  Args: {
@@ -37109,6 +38288,14 @@ export type Database = {
37109
38288
  _throttle_seconds?: number;
37110
38289
  };
37111
38290
  Returns: string;
38291
+ } | {
38292
+ Args: {
38293
+ _queue_item_id: string;
38294
+ _session_id: string;
38295
+ _throttle_seconds?: number;
38296
+ p_device_key: string;
38297
+ };
38298
+ Returns: string;
37112
38299
  };
37113
38300
  pick_reset_print: {
37114
38301
  Args: {
@@ -37203,6 +38390,101 @@ export type Database = {
37203
38390
  isOneToOne: true;
37204
38391
  isSetofReturn: false;
37205
38392
  };
38393
+ } | {
38394
+ Args: {
38395
+ _queue_item_id: string;
38396
+ _session_id: string;
38397
+ p_device_key: string;
38398
+ };
38399
+ Returns: {
38400
+ announced_at: string;
38401
+ assigned_user_id: string | null;
38402
+ barcode: string | null;
38403
+ cancelled_at: string | null;
38404
+ cart_count: number;
38405
+ completed_at: string | null;
38406
+ country_code: string | null;
38407
+ created_at: string;
38408
+ customer_name: string | null;
38409
+ delivery_address: string | null;
38410
+ document_number: string | null;
38411
+ document_type_id: string | null;
38412
+ due_at: string | null;
38413
+ id: string;
38414
+ is_urgent: boolean;
38415
+ line_count: number;
38416
+ order_number: string | null;
38417
+ order_type: string | null;
38418
+ payload: Json;
38419
+ print_count: number;
38420
+ print_job_id: string | null;
38421
+ printed_at: string | null;
38422
+ printed_by: string | null;
38423
+ printed_cart_ids: Json;
38424
+ printer_id: string | null;
38425
+ priority: number;
38426
+ reference: string | null;
38427
+ route: string | null;
38428
+ screen_id: string | null;
38429
+ station_id: string | null;
38430
+ status_id: string | null;
38431
+ updated_at: string;
38432
+ warnings: Json;
38433
+ };
38434
+ SetofOptions: {
38435
+ from: "*";
38436
+ to: "pick_queue";
38437
+ isOneToOne: true;
38438
+ isSetofReturn: false;
38439
+ };
38440
+ } | {
38441
+ Args: {
38442
+ _cart_id?: string;
38443
+ _queue_item_id: string;
38444
+ _session_id: string;
38445
+ p_device_key: string;
38446
+ };
38447
+ Returns: {
38448
+ announced_at: string;
38449
+ assigned_user_id: string | null;
38450
+ barcode: string | null;
38451
+ cancelled_at: string | null;
38452
+ cart_count: number;
38453
+ completed_at: string | null;
38454
+ country_code: string | null;
38455
+ created_at: string;
38456
+ customer_name: string | null;
38457
+ delivery_address: string | null;
38458
+ document_number: string | null;
38459
+ document_type_id: string | null;
38460
+ due_at: string | null;
38461
+ id: string;
38462
+ is_urgent: boolean;
38463
+ line_count: number;
38464
+ order_number: string | null;
38465
+ order_type: string | null;
38466
+ payload: Json;
38467
+ print_count: number;
38468
+ print_job_id: string | null;
38469
+ printed_at: string | null;
38470
+ printed_by: string | null;
38471
+ printed_cart_ids: Json;
38472
+ printer_id: string | null;
38473
+ priority: number;
38474
+ reference: string | null;
38475
+ route: string | null;
38476
+ screen_id: string | null;
38477
+ station_id: string | null;
38478
+ status_id: string | null;
38479
+ updated_at: string;
38480
+ warnings: Json;
38481
+ };
38482
+ SetofOptions: {
38483
+ from: "*";
38484
+ to: "pick_queue";
38485
+ isOneToOne: true;
38486
+ isSetofReturn: false;
38487
+ };
37206
38488
  };
37207
38489
  pick_reset_print_job: {
37208
38490
  Args: {
@@ -37252,6 +38534,55 @@ export type Database = {
37252
38534
  isOneToOne: true;
37253
38535
  isSetofReturn: false;
37254
38536
  };
38537
+ } | {
38538
+ Args: {
38539
+ _cart_id: string;
38540
+ _job_id: string;
38541
+ _queue_item_id: string;
38542
+ _session_id: string;
38543
+ p_device_key: string;
38544
+ };
38545
+ Returns: {
38546
+ announced_at: string;
38547
+ assigned_user_id: string | null;
38548
+ barcode: string | null;
38549
+ cancelled_at: string | null;
38550
+ cart_count: number;
38551
+ completed_at: string | null;
38552
+ country_code: string | null;
38553
+ created_at: string;
38554
+ customer_name: string | null;
38555
+ delivery_address: string | null;
38556
+ document_number: string | null;
38557
+ document_type_id: string | null;
38558
+ due_at: string | null;
38559
+ id: string;
38560
+ is_urgent: boolean;
38561
+ line_count: number;
38562
+ order_number: string | null;
38563
+ order_type: string | null;
38564
+ payload: Json;
38565
+ print_count: number;
38566
+ print_job_id: string | null;
38567
+ printed_at: string | null;
38568
+ printed_by: string | null;
38569
+ printed_cart_ids: Json;
38570
+ printer_id: string | null;
38571
+ priority: number;
38572
+ reference: string | null;
38573
+ route: string | null;
38574
+ screen_id: string | null;
38575
+ station_id: string | null;
38576
+ status_id: string | null;
38577
+ updated_at: string;
38578
+ warnings: Json;
38579
+ };
38580
+ SetofOptions: {
38581
+ from: "*";
38582
+ to: "pick_queue";
38583
+ isOneToOne: true;
38584
+ isSetofReturn: false;
38585
+ };
37255
38586
  };
37256
38587
  pick_reset_print_jobs: {
37257
38588
  Args: {
@@ -37301,6 +38632,55 @@ export type Database = {
37301
38632
  isOneToOne: true;
37302
38633
  isSetofReturn: false;
37303
38634
  };
38635
+ } | {
38636
+ Args: {
38637
+ _cart_ids: string[];
38638
+ _job_ids: string[];
38639
+ _queue_item_id: string;
38640
+ _session_id: string;
38641
+ p_device_key: string;
38642
+ };
38643
+ Returns: {
38644
+ announced_at: string;
38645
+ assigned_user_id: string | null;
38646
+ barcode: string | null;
38647
+ cancelled_at: string | null;
38648
+ cart_count: number;
38649
+ completed_at: string | null;
38650
+ country_code: string | null;
38651
+ created_at: string;
38652
+ customer_name: string | null;
38653
+ delivery_address: string | null;
38654
+ document_number: string | null;
38655
+ document_type_id: string | null;
38656
+ due_at: string | null;
38657
+ id: string;
38658
+ is_urgent: boolean;
38659
+ line_count: number;
38660
+ order_number: string | null;
38661
+ order_type: string | null;
38662
+ payload: Json;
38663
+ print_count: number;
38664
+ print_job_id: string | null;
38665
+ printed_at: string | null;
38666
+ printed_by: string | null;
38667
+ printed_cart_ids: Json;
38668
+ printer_id: string | null;
38669
+ priority: number;
38670
+ reference: string | null;
38671
+ route: string | null;
38672
+ screen_id: string | null;
38673
+ station_id: string | null;
38674
+ status_id: string | null;
38675
+ updated_at: string;
38676
+ warnings: Json;
38677
+ };
38678
+ SetofOptions: {
38679
+ from: "*";
38680
+ to: "pick_queue";
38681
+ isOneToOne: true;
38682
+ isSetofReturn: false;
38683
+ };
37304
38684
  };
37305
38685
  pick_restore_to_queue: {
37306
38686
  Args: {
@@ -37348,6 +38728,65 @@ export type Database = {
37348
38728
  isOneToOne: true;
37349
38729
  isSetofReturn: false;
37350
38730
  };
38731
+ } | {
38732
+ Args: {
38733
+ _queue_item_id: string;
38734
+ _session_id: string;
38735
+ p_device_key: string;
38736
+ };
38737
+ Returns: {
38738
+ announced_at: string;
38739
+ assigned_user_id: string | null;
38740
+ barcode: string | null;
38741
+ cancelled_at: string | null;
38742
+ cart_count: number;
38743
+ completed_at: string | null;
38744
+ country_code: string | null;
38745
+ created_at: string;
38746
+ customer_name: string | null;
38747
+ delivery_address: string | null;
38748
+ document_number: string | null;
38749
+ document_type_id: string | null;
38750
+ due_at: string | null;
38751
+ id: string;
38752
+ is_urgent: boolean;
38753
+ line_count: number;
38754
+ order_number: string | null;
38755
+ order_type: string | null;
38756
+ payload: Json;
38757
+ print_count: number;
38758
+ print_job_id: string | null;
38759
+ printed_at: string | null;
38760
+ printed_by: string | null;
38761
+ printed_cart_ids: Json;
38762
+ printer_id: string | null;
38763
+ priority: number;
38764
+ reference: string | null;
38765
+ route: string | null;
38766
+ screen_id: string | null;
38767
+ station_id: string | null;
38768
+ status_id: string | null;
38769
+ updated_at: string;
38770
+ warnings: Json;
38771
+ };
38772
+ SetofOptions: {
38773
+ from: "*";
38774
+ to: "pick_queue";
38775
+ isOneToOne: true;
38776
+ isSetofReturn: false;
38777
+ };
38778
+ };
38779
+ pick_revoke_device: {
38780
+ Args: {
38781
+ p_device_id: string;
38782
+ };
38783
+ Returns: undefined;
38784
+ };
38785
+ pick_role_allowed: {
38786
+ Args: {
38787
+ p_level: string;
38788
+ };
38789
+ Returns: boolean;
37351
38790
  };
37352
38791
  pick_seed_reference_data: {
37353
38792
  Args: never;
@@ -37359,6 +38798,19 @@ export type Database = {
37359
38798
  _station_id: string;
37360
38799
  };
37361
38800
  Returns: string;
38801
+ } | {
38802
+ Args: {
38803
+ _print_plek_id: string;
38804
+ _station_id: string;
38805
+ p_device_key: string;
38806
+ };
38807
+ Returns: string;
38808
+ };
38809
+ pick_signal_station: {
38810
+ Args: {
38811
+ p_station: string;
38812
+ };
38813
+ Returns: undefined;
37362
38814
  };
37363
38815
  pick_station_dashboard: {
37364
38816
  Args: never;
@@ -37371,6 +38823,31 @@ export type Database = {
37371
38823
  station_name: string;
37372
38824
  waiting: number;
37373
38825
  }[];
38826
+ } | {
38827
+ Args: {
38828
+ p_device_key: string;
38829
+ };
38830
+ Returns: {
38831
+ active: number;
38832
+ active_sessions: number;
38833
+ avg_wait_seconds: number;
38834
+ done_today: number;
38835
+ station_id: string;
38836
+ station_name: string;
38837
+ waiting: number;
38838
+ }[];
38839
+ };
38840
+ pick_station_devices_list: {
38841
+ Args: {
38842
+ p_station_id: string;
38843
+ };
38844
+ Returns: {
38845
+ created_at: string;
38846
+ id: string;
38847
+ ingetrokken_op: string;
38848
+ laatst_gezien: string;
38849
+ naam: string;
38850
+ }[];
37374
38851
  };
37375
38852
  pick_station_print_plek: {
37376
38853
  Args: {
@@ -37381,6 +38858,16 @@ export type Database = {
37381
38858
  omschrijving: string;
37382
38859
  print_plek_id: string;
37383
38860
  }[];
38861
+ } | {
38862
+ Args: {
38863
+ _station_id: string;
38864
+ p_device_key: string;
38865
+ };
38866
+ Returns: {
38867
+ naam: string;
38868
+ omschrijving: string;
38869
+ print_plek_id: string;
38870
+ }[];
37384
38871
  };
37385
38872
  pick_station_print_plekken: {
37386
38873
  Args: never;
@@ -37390,6 +38877,16 @@ export type Database = {
37390
38877
  print_plek_id: string;
37391
38878
  station_id: string;
37392
38879
  }[];
38880
+ } | {
38881
+ Args: {
38882
+ p_device_key: string;
38883
+ };
38884
+ Returns: {
38885
+ naam: string;
38886
+ omschrijving: string;
38887
+ print_plek_id: string;
38888
+ station_id: string;
38889
+ }[];
37393
38890
  };
37394
38891
  pick_station_slugify: {
37395
38892
  Args: {
@@ -37409,20 +38906,49 @@ export type Database = {
37409
38906
  _day: string;
37410
38907
  };
37411
38908
  Returns: Json;
38909
+ } | {
38910
+ Args: {
38911
+ _day: string;
38912
+ p_device_key: string;
38913
+ };
38914
+ Returns: Json;
37412
38915
  };
37413
38916
  pick_sync_queue_throttled: {
37414
38917
  Args: {
37415
38918
  _min_seconds?: number;
37416
38919
  };
37417
38920
  Returns: Json;
38921
+ } | {
38922
+ Args: {
38923
+ _min_seconds?: number;
38924
+ p_device_key: string;
38925
+ };
38926
+ Returns: Json;
37418
38927
  };
37419
38928
  pick_verify_rows: {
37420
38929
  Args: {
37421
38930
  _rows: Json;
37422
38931
  };
37423
38932
  Returns: Json;
38933
+ } | {
38934
+ Args: {
38935
+ _rows: Json;
38936
+ p_device_key: string;
38937
+ };
38938
+ Returns: Json;
38939
+ };
38940
+ pickschermen_install_check: {
38941
+ Args: never;
38942
+ Returns: Json;
37424
38943
  };
37425
38944
  pickstation_auto_send_status: {
38945
+ Args: {
38946
+ p_device_key: string;
38947
+ p_order_id: string;
38948
+ p_slug: string;
38949
+ };
38950
+ Returns: Json;
38951
+ } | {
37426
38952
  Args: {
37427
38953
  p_order_id: string;
37428
38954
  p_slug: string;
@@ -37430,13 +38956,34 @@ export type Database = {
37430
38956
  Returns: Json;
37431
38957
  };
37432
38958
  pickstation_cart_sticker_state: {
38959
+ Args: {
38960
+ p_cart_id: string;
38961
+ p_device_key: string;
38962
+ p_slug: string;
38963
+ };
38964
+ Returns: Json;
38965
+ } | {
37433
38966
  Args: {
37434
38967
  p_cart_id: string;
37435
38968
  p_slug: string;
37436
38969
  };
37437
38970
  Returns: Json;
37438
38971
  };
38972
+ pickstation_device_status: {
38973
+ Args: {
38974
+ p_device_key: string;
38975
+ p_slug: string;
38976
+ };
38977
+ Returns: Json;
38978
+ };
37439
38979
  pickstation_document_for_order: {
38980
+ Args: {
38981
+ p_device_key: string;
38982
+ p_queue_item_id: string;
38983
+ p_slug: string;
38984
+ };
38985
+ Returns: Json;
38986
+ } | {
37440
38987
  Args: {
37441
38988
  p_queue_item_id: string;
37442
38989
  p_slug: string;
@@ -37446,16 +38993,41 @@ export type Database = {
37446
38993
  pickstation_get_orders_raw: {
37447
38994
  Args: never;
37448
38995
  Returns: Json;
38996
+ } | {
38997
+ Args: {
38998
+ p_device_key: string;
38999
+ };
39000
+ Returns: Json;
37449
39001
  };
37450
39002
  pickstation_get_planning_context: {
37451
39003
  Args: never;
37452
39004
  Returns: Json;
39005
+ } | {
39006
+ Args: {
39007
+ p_device_key: string;
39008
+ };
39009
+ Returns: Json;
37453
39010
  };
37454
39011
  pickstation_get_settings: {
37455
39012
  Args: never;
37456
39013
  Returns: Json;
39014
+ } | {
39015
+ Args: {
39016
+ p_device_key: string;
39017
+ };
39018
+ Returns: Json;
37457
39019
  };
37458
39020
  pickstation_log_print: {
39021
+ Args: {
39022
+ p_customer_name: string;
39023
+ p_device_key: string;
39024
+ p_documents: string[];
39025
+ p_ip_address: string;
39026
+ p_order_id: string;
39027
+ p_order_number: string;
39028
+ };
39029
+ Returns: undefined;
39030
+ } | {
37459
39031
  Args: {
37460
39032
  p_customer_name: string;
37461
39033
  p_documents: string[];
@@ -37465,14 +39037,140 @@ export type Database = {
37465
39037
  };
37466
39038
  Returns: undefined;
37467
39039
  };
39040
+ pickstation_logistics_barcode_lookup: {
39041
+ Args: {
39042
+ p_barcode: string;
39043
+ p_device_key: string;
39044
+ };
39045
+ Returns: Json;
39046
+ };
39047
+ pickstation_logistics_cart_plan_status: {
39048
+ Args: {
39049
+ p_device_key: string;
39050
+ p_ref: string;
39051
+ };
39052
+ Returns: Json;
39053
+ };
39054
+ pickstation_logistics_cart_slip_plan: {
39055
+ Args: {
39056
+ p_device_key: string;
39057
+ p_order_id: string;
39058
+ };
39059
+ Returns: Json;
39060
+ };
39061
+ pickstation_logistics_complete_task: {
39062
+ Args: {
39063
+ p_device_key: string;
39064
+ p_result?: Json;
39065
+ p_task_id: string;
39066
+ };
39067
+ Returns: {
39068
+ attempt_log: Json;
39069
+ attempts: number;
39070
+ buffer_ref: string | null;
39071
+ claimed_at: string | null;
39072
+ claimed_by: string | null;
39073
+ completed_at: string | null;
39074
+ created_at: string;
39075
+ depends_on: string[];
39076
+ due_at: string | null;
39077
+ error: string | null;
39078
+ id: string;
39079
+ last_error: string | null;
39080
+ next_attempt_at: string | null;
39081
+ order_ref: string;
39082
+ owner_module: string;
39083
+ payload: Json;
39084
+ plan_run_id: string | null;
39085
+ planned_end: string | null;
39086
+ planned_start: string | null;
39087
+ priority: number;
39088
+ result: Json | null;
39089
+ rule_config_id: string | null;
39090
+ rule_version: number | null;
39091
+ sequence: number;
39092
+ shadow: boolean;
39093
+ started_at: string | null;
39094
+ status: string;
39095
+ strategy_id: string | null;
39096
+ task_type: string;
39097
+ updated_at: string;
39098
+ user_id: string;
39099
+ };
39100
+ SetofOptions: {
39101
+ from: "*";
39102
+ to: "logistics_tasks";
39103
+ isOneToOne: true;
39104
+ isSetofReturn: false;
39105
+ };
39106
+ };
39107
+ pickstation_logistics_is_pick_workday: {
39108
+ Args: {
39109
+ p_date: string;
39110
+ p_device_key: string;
39111
+ };
39112
+ Returns: boolean;
39113
+ };
39114
+ pickstation_logistics_order_released: {
39115
+ Args: {
39116
+ p_device_key: string;
39117
+ p_order_ref: string;
39118
+ };
39119
+ Returns: boolean;
39120
+ };
39121
+ pickstation_logistics_pick_mode: {
39122
+ Args: {
39123
+ p_device_key: string;
39124
+ };
39125
+ Returns: Json;
39126
+ };
39127
+ pickstation_logistics_shipping_note_from_barcode: {
39128
+ Args: {
39129
+ p_allow_reprint?: boolean;
39130
+ p_barcode: string;
39131
+ p_device_key: string;
39132
+ p_station_id?: string;
39133
+ };
39134
+ Returns: Json;
39135
+ };
39136
+ pickstation_logistics_working_hours_status: {
39137
+ Args: {
39138
+ p_device_key: string;
39139
+ };
39140
+ Returns: Json;
39141
+ };
37468
39142
  pickstation_order_sticker_meldingen: {
39143
+ Args: {
39144
+ p_device_key: string;
39145
+ p_order_id: string;
39146
+ p_slug: string;
39147
+ };
39148
+ Returns: Json;
39149
+ } | {
37469
39150
  Args: {
37470
39151
  p_order_id: string;
37471
39152
  p_slug: string;
37472
39153
  };
37473
39154
  Returns: Json;
37474
39155
  };
39156
+ pickstation_pair_device: {
39157
+ Args: {
39158
+ p_code: string;
39159
+ p_device_name: string;
39160
+ p_slug: string;
39161
+ };
39162
+ Returns: Json;
39163
+ };
37475
39164
  pickstation_resolve_delivery_orders: {
39165
+ Args: {
39166
+ p_device_key: string;
39167
+ p_sales_order_ids: string[];
39168
+ };
39169
+ Returns: {
39170
+ delivery_order_id: string;
39171
+ sales_order_id: string;
39172
+ }[];
39173
+ } | {
37476
39174
  Args: {
37477
39175
  p_sales_order_ids: string[];
37478
39176
  };
@@ -37491,6 +39189,13 @@ export type Database = {
37491
39189
  Returns: undefined;
37492
39190
  };
37493
39191
  pickstation_sticker_past_controle: {
39192
+ Args: {
39193
+ p_cart_id: string;
39194
+ p_device_key: string;
39195
+ p_slug: string;
39196
+ };
39197
+ Returns: Json;
39198
+ } | {
37494
39199
  Args: {
37495
39200
  p_cart_id: string;
37496
39201
  p_slug: string;
@@ -37498,6 +39203,14 @@ export type Database = {
37498
39203
  Returns: Json;
37499
39204
  };
37500
39205
  pickstation_sticker_reprint: {
39206
+ Args: {
39207
+ p_cart_id: string;
39208
+ p_device_key: string;
39209
+ p_reden?: string;
39210
+ p_slug: string;
39211
+ };
39212
+ Returns: Json;
39213
+ } | {
37501
39214
  Args: {
37502
39215
  p_cart_id: string;
37503
39216
  p_reden?: string;
@@ -38104,6 +39817,13 @@ export type Database = {
38104
39817
  Args: never;
38105
39818
  Returns: undefined;
38106
39819
  };
39820
+ refresh_floricode_derived_code_list_batch: {
39821
+ Args: {
39822
+ p_limit?: number;
39823
+ p_list: string;
39824
+ };
39825
+ Returns: Json;
39826
+ };
38107
39827
  refresh_floricode_derived_code_lists: {
38108
39828
  Args: never;
38109
39829
  Returns: {
@@ -38236,6 +39956,10 @@ export type Database = {
38236
39956
  };
38237
39957
  Returns: string;
38238
39958
  };
39959
+ restart_floricode_derived_code_lists: {
39960
+ Args: never;
39961
+ Returns: undefined;
39962
+ };
38239
39963
  retry_offer_orders: {
38240
39964
  Args: never;
38241
39965
  Returns: number;
@@ -38342,7 +40066,46 @@ export type Database = {
38342
40066
  };
38343
40067
  Returns: Json;
38344
40068
  };
40069
+ scan_alleen_gekoppeld_zetten: {
40070
+ Args: {
40071
+ p_aan: boolean;
40072
+ };
40073
+ Returns: Json;
40074
+ };
40075
+ scan_apparaat_intrekken: {
40076
+ Args: {
40077
+ p_apparaat_id: string;
40078
+ };
40079
+ Returns: Json;
40080
+ };
40081
+ scan_apparaat_koppelen: {
40082
+ Args: {
40083
+ p_code: string;
40084
+ p_naam?: string;
40085
+ p_scanner_id: string;
40086
+ };
40087
+ Returns: Json;
40088
+ };
40089
+ scan_apparaat_status: {
40090
+ Args: {
40091
+ p_device_key?: string;
40092
+ p_scanner_id: string;
40093
+ };
40094
+ Returns: Json;
40095
+ };
40096
+ scan_apparaten_lijst: {
40097
+ Args: {
40098
+ p_scanner_id: string;
40099
+ };
40100
+ Returns: Json;
40101
+ };
38345
40102
  scan_cancel_kar: {
40103
+ Args: {
40104
+ p_device_key: string;
40105
+ p_kar_id: string;
40106
+ };
40107
+ Returns: Json;
40108
+ } | {
38346
40109
  Args: {
38347
40110
  p_kar_id: string;
38348
40111
  };
@@ -38356,8 +40119,24 @@ export type Database = {
38356
40119
  p_scanner_id?: string;
38357
40120
  };
38358
40121
  Returns: Json;
40122
+ } | {
40123
+ Args: {
40124
+ p_allow_reprint?: boolean;
40125
+ p_cart_id: string;
40126
+ p_device_key: string;
40127
+ p_print?: boolean;
40128
+ p_scanner_id?: string;
40129
+ };
40130
+ Returns: Json;
38359
40131
  };
38360
40132
  scan_controleer_pincode: {
40133
+ Args: {
40134
+ p_device_key: string;
40135
+ p_pin: string;
40136
+ p_scanner_id: string;
40137
+ };
40138
+ Returns: Json;
40139
+ } | {
38361
40140
  Args: {
38362
40141
  p_pin: string;
38363
40142
  p_scanner_id: string;
@@ -38377,20 +40156,51 @@ export type Database = {
38377
40156
  p_scanner_id?: string;
38378
40157
  };
38379
40158
  Returns: Json;
40159
+ } | {
40160
+ Args: {
40161
+ p_barcode: string;
40162
+ p_bevestig_niet_geprint?: boolean;
40163
+ p_device_key: string;
40164
+ p_scanner_id?: string;
40165
+ };
40166
+ Returns: Json;
38380
40167
  };
38381
40168
  scan_finish_kar: {
40169
+ Args: {
40170
+ p_device_key: string;
40171
+ p_kar_id: string;
40172
+ };
40173
+ Returns: Json;
40174
+ } | {
38382
40175
  Args: {
38383
40176
  p_kar_id: string;
38384
40177
  };
38385
40178
  Returns: Json;
38386
40179
  };
38387
40180
  scan_heeft_pincode: {
40181
+ Args: {
40182
+ p_device_key: string;
40183
+ p_scanner_id: string;
40184
+ };
40185
+ Returns: boolean;
40186
+ } | {
38388
40187
  Args: {
38389
40188
  p_scanner_id: string;
38390
40189
  };
38391
40190
  Returns: boolean;
38392
40191
  };
40192
+ scan_install_check: {
40193
+ Args: never;
40194
+ Returns: Json;
40195
+ };
38393
40196
  scan_kar_compleet: {
40197
+ Args: {
40198
+ p_allow_reprint?: boolean;
40199
+ p_device_key: string;
40200
+ p_sessie_id: string;
40201
+ };
40202
+ Returns: Json;
40203
+ } | {
38394
40204
  Args: {
38395
40205
  p_allow_reprint?: boolean;
38396
40206
  p_sessie_id: string;
@@ -38409,11 +40219,25 @@ export type Database = {
38409
40219
  result: string;
38410
40220
  }[];
38411
40221
  };
40222
+ scan_kar_markeren: {
40223
+ Args: {
40224
+ p_device_key: string;
40225
+ p_kar_id: string;
40226
+ p_veld: string;
40227
+ };
40228
+ Returns: Json;
40229
+ };
38412
40230
  scan_kar_regels: {
38413
40231
  Args: {
38414
40232
  p_cart_id: string;
38415
40233
  };
38416
40234
  Returns: Json;
40235
+ } | {
40236
+ Args: {
40237
+ p_cart_id: string;
40238
+ p_device_key: string;
40239
+ };
40240
+ Returns: Json;
38417
40241
  };
38418
40242
  scan_kar_voortgang: {
38419
40243
  Args: {
@@ -38422,6 +40246,20 @@ export type Database = {
38422
40246
  p_slug?: string;
38423
40247
  };
38424
40248
  Returns: Json;
40249
+ } | {
40250
+ Args: {
40251
+ p_cart_id: string;
40252
+ p_device_key: string;
40253
+ p_scanner_id?: string;
40254
+ p_slug?: string;
40255
+ };
40256
+ Returns: Json;
40257
+ };
40258
+ scan_koppelcode_maken: {
40259
+ Args: {
40260
+ p_scanner_id: string;
40261
+ };
40262
+ Returns: Json;
38425
40263
  };
38426
40264
  scan_log_code: {
38427
40265
  Args: {
@@ -38434,14 +40272,38 @@ export type Database = {
38434
40272
  p_scanner_key?: string;
38435
40273
  };
38436
40274
  Returns: string;
40275
+ } | {
40276
+ Args: {
40277
+ p_code: string;
40278
+ p_device_key: string;
40279
+ p_kar_id?: string;
40280
+ p_latency_ms?: number;
40281
+ p_medewerker?: string;
40282
+ p_message?: string;
40283
+ p_result: string;
40284
+ p_scanner_key?: string;
40285
+ };
40286
+ Returns: string;
38437
40287
  };
38438
40288
  scan_open_pakbonnen: {
38439
40289
  Args: {
38440
40290
  p_dagen?: number;
38441
40291
  };
38442
40292
  Returns: Json;
40293
+ } | {
40294
+ Args: {
40295
+ p_dagen?: number;
40296
+ p_device_key: string;
40297
+ };
40298
+ Returns: Json;
38443
40299
  };
38444
40300
  scan_order_klant: {
40301
+ Args: {
40302
+ p_device_key: string;
40303
+ p_order_id: string;
40304
+ };
40305
+ Returns: Json;
40306
+ } | {
38445
40307
  Args: {
38446
40308
  p_order_id: string;
38447
40309
  };
@@ -38452,6 +40314,12 @@ export type Database = {
38452
40314
  p_barcode: string;
38453
40315
  };
38454
40316
  Returns: Json;
40317
+ } | {
40318
+ Args: {
40319
+ p_barcode: string;
40320
+ p_device_key: string;
40321
+ };
40322
+ Returns: Json;
38455
40323
  };
38456
40324
  scan_pakbon_opnieuw: {
38457
40325
  Args: {
@@ -38459,8 +40327,24 @@ export type Database = {
38459
40327
  p_scanner_id?: string;
38460
40328
  };
38461
40329
  Returns: Json;
40330
+ } | {
40331
+ Args: {
40332
+ p_barcode: string;
40333
+ p_device_key: string;
40334
+ p_scanner_id?: string;
40335
+ };
40336
+ Returns: Json;
38462
40337
  };
38463
40338
  scan_pakbon_toevoegen: {
40339
+ Args: {
40340
+ p_barcode: string;
40341
+ p_device_key: string;
40342
+ p_medewerker?: string;
40343
+ p_regels?: Json;
40344
+ p_scanner_id: string;
40345
+ };
40346
+ Returns: Json;
40347
+ } | {
38464
40348
  Args: {
38465
40349
  p_barcode: string;
38466
40350
  p_medewerker?: string;
@@ -38469,7 +40353,34 @@ export type Database = {
38469
40353
  };
38470
40354
  Returns: Json;
38471
40355
  };
40356
+ scan_pakbonnen_open: {
40357
+ Args: {
40358
+ p_device_key: string;
40359
+ p_limiet?: number;
40360
+ };
40361
+ Returns: Json;
40362
+ };
40363
+ scan_pin_blokkade_opheffen: {
40364
+ Args: {
40365
+ p_scanner_id: string;
40366
+ };
40367
+ Returns: Json;
40368
+ };
40369
+ scan_print_job_status: {
40370
+ Args: {
40371
+ p_device_key: string;
40372
+ p_job_id: string;
40373
+ };
40374
+ Returns: Json;
40375
+ };
38472
40376
  scan_print_restpakbon: {
40377
+ Args: {
40378
+ p_device_key: string;
40379
+ p_printer_id?: string;
40380
+ p_restpakbon_id: string;
40381
+ };
40382
+ Returns: Json;
40383
+ } | {
38473
40384
  Args: {
38474
40385
  p_printer_id?: string;
38475
40386
  p_restpakbon_id: string;
@@ -38482,7 +40393,21 @@ export type Database = {
38482
40393
  };
38483
40394
  Returns: Json;
38484
40395
  };
40396
+ scan_printers: {
40397
+ Args: {
40398
+ p_device_key: string;
40399
+ };
40400
+ Returns: Json;
40401
+ };
38485
40402
  scan_register_item: {
40403
+ Args: {
40404
+ p_device_key: string;
40405
+ p_kar_id: string;
40406
+ p_pakbon_item_id: string;
40407
+ p_scanned_by?: string;
40408
+ };
40409
+ Returns: Json;
40410
+ } | {
38486
40411
  Args: {
38487
40412
  p_kar_id: string;
38488
40413
  p_pakbon_item_id: string;
@@ -38493,14 +40418,39 @@ export type Database = {
38493
40418
  scan_release_expired_locks: {
38494
40419
  Args: never;
38495
40420
  Returns: Json;
40421
+ } | {
40422
+ Args: {
40423
+ p_device_key: string;
40424
+ };
40425
+ Returns: Json;
38496
40426
  };
38497
40427
  scan_remove_item: {
38498
40428
  Args: {
40429
+ p_device_key: string;
38499
40430
  p_kar_item_id: string;
38500
40431
  };
38501
40432
  Returns: Json;
40433
+ } | {
40434
+ Args: {
40435
+ p_kar_item_id: string;
40436
+ };
40437
+ Returns: Json;
40438
+ };
40439
+ scan_resolve: {
40440
+ Args: {
40441
+ p_code: string;
40442
+ p_device_key: string;
40443
+ };
40444
+ Returns: Json;
38502
40445
  };
38503
40446
  scan_restpakbon_geprint: {
40447
+ Args: {
40448
+ p_device_key: string;
40449
+ p_id: string;
40450
+ p_print_job_id?: string;
40451
+ };
40452
+ Returns: undefined;
40453
+ } | {
38504
40454
  Args: {
38505
40455
  p_id: string;
38506
40456
  p_print_job_id?: string;
@@ -38524,18 +40474,40 @@ export type Database = {
38524
40474
  }[];
38525
40475
  };
38526
40476
  scan_sessie_annuleren: {
40477
+ Args: {
40478
+ p_device_key: string;
40479
+ p_sessie_id: string;
40480
+ };
40481
+ Returns: undefined;
40482
+ } | {
38527
40483
  Args: {
38528
40484
  p_sessie_id: string;
38529
40485
  };
38530
40486
  Returns: undefined;
38531
40487
  };
38532
40488
  scan_sessie_open: {
40489
+ Args: {
40490
+ p_device_key: string;
40491
+ p_scanner_id: string;
40492
+ };
40493
+ Returns: Json;
40494
+ } | {
38533
40495
  Args: {
38534
40496
  p_scanner_id: string;
38535
40497
  };
38536
40498
  Returns: Json;
38537
40499
  };
38538
40500
  scan_start_kar: {
40501
+ Args: {
40502
+ p_device_key: string;
40503
+ p_medewerker_id?: string;
40504
+ p_medewerker_naam?: string;
40505
+ p_pakbon_ids: string[];
40506
+ p_scanner_key?: string;
40507
+ p_sessie?: string;
40508
+ };
40509
+ Returns: Json;
40510
+ } | {
38539
40511
  Args: {
38540
40512
  p_medewerker_id?: string;
38541
40513
  p_medewerker_naam?: string;
@@ -39835,6 +41807,12 @@ export type Database = {
39835
41807
  };
39836
41808
  Returns: undefined;
39837
41809
  };
41810
+ verkoop_correctie_verpakking: {
41811
+ Args: {
41812
+ p_uitvoeren?: boolean;
41813
+ };
41814
+ Returns: Json;
41815
+ };
39838
41816
  verkoop_create_order: {
39839
41817
  Args: {
39840
41818
  p_accept_late_signup?: boolean;