@flowselections/layout-maker 1.69.13 → 1.69.19

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 (37) hide show
  1. package/dist-lib/components/PrintQueuePage.d.ts.map +1 -1
  2. package/dist-lib/components/PrintQueuePage.js +2 -5
  3. package/dist-lib/integrations/supabase/types.d.ts +645 -2
  4. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/types.js +1 -0
  6. package/dist-lib/lib/codelijstCache.d.ts +11 -0
  7. package/dist-lib/lib/codelijstCache.d.ts.map +1 -0
  8. package/dist-lib/lib/codelijstCache.js +117 -0
  9. package/dist-lib/lib/documentTypes.d.ts +1 -1
  10. package/dist-lib/lib/documentTypes.d.ts.map +1 -1
  11. package/dist-lib/lib/documentTypes.js +2 -1
  12. package/dist-lib/lib/foutTekst.d.ts +3 -0
  13. package/dist-lib/lib/foutTekst.d.ts.map +1 -1
  14. package/dist-lib/lib/foutTekst.js +9 -0
  15. package/dist-lib/lib/kiesFormaat.d.ts +11 -0
  16. package/dist-lib/lib/kiesFormaat.d.ts.map +1 -0
  17. package/dist-lib/lib/kiesFormaat.js +32 -0
  18. package/dist-lib/lib/orderData.server.d.ts.map +1 -1
  19. package/dist-lib/lib/orderData.server.js +5 -14
  20. package/dist-lib/lib/printQueue.server.d.ts +5 -2
  21. package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
  22. package/dist-lib/lib/printQueue.server.js +148 -47
  23. package/dist-lib/lib/printerKeuze.d.ts +15 -0
  24. package/dist-lib/lib/printerKeuze.d.ts.map +1 -0
  25. package/dist-lib/lib/printerKeuze.js +32 -0
  26. package/dist-lib/lib/queueTick.d.ts.map +1 -1
  27. package/dist-lib/lib/queueTick.js +9 -1
  28. package/dist-lib/lib/runnerRegistry.server.d.ts +10 -0
  29. package/dist-lib/lib/runnerRegistry.server.d.ts.map +1 -1
  30. package/dist-lib/lib/runnerRegistry.server.js +55 -0
  31. package/dist-lib/lib/useDocumentData.js +1 -1
  32. package/dist-lib/lib/versie.generated.d.ts +1 -1
  33. package/dist-lib/lib/versie.generated.js +1 -1
  34. package/package.json +1 -1
  35. package/sql/print-schema.aanvulling.sql +5 -0
  36. package/sql/print-schema.sql +4114 -2919
  37. package/sql/print-schema.verslag.md +402 -0
@@ -13486,6 +13486,54 @@ export type Database = {
13486
13486
  }
13487
13487
  ];
13488
13488
  };
13489
+ logistics_index_log: {
13490
+ Row: {
13491
+ aangemaakt_at: string;
13492
+ duur_ms: number | null;
13493
+ index_naam: string;
13494
+ rijen: number | null;
13495
+ tabel: string;
13496
+ };
13497
+ Insert: {
13498
+ aangemaakt_at?: string;
13499
+ duur_ms?: number | null;
13500
+ index_naam: string;
13501
+ rijen?: number | null;
13502
+ tabel: string;
13503
+ };
13504
+ Update: {
13505
+ aangemaakt_at?: string;
13506
+ duur_ms?: number | null;
13507
+ index_naam?: string;
13508
+ rijen?: number | null;
13509
+ tabel?: string;
13510
+ };
13511
+ Relationships: [];
13512
+ };
13513
+ logistics_kick_log: {
13514
+ Row: {
13515
+ id: number;
13516
+ kicked_at: string;
13517
+ request_id: number | null;
13518
+ round_started_at: string | null;
13519
+ skipped_reason: string | null;
13520
+ };
13521
+ Insert: {
13522
+ id?: number;
13523
+ kicked_at?: string;
13524
+ request_id?: number | null;
13525
+ round_started_at?: string | null;
13526
+ skipped_reason?: string | null;
13527
+ };
13528
+ Update: {
13529
+ id?: number;
13530
+ kicked_at?: string;
13531
+ request_id?: number | null;
13532
+ round_started_at?: string | null;
13533
+ skipped_reason?: string | null;
13534
+ };
13535
+ Relationships: [];
13536
+ };
13489
13537
  logistics_layer_override_log: {
13490
13538
  Row: {
13491
13539
  cart_id: string;
@@ -14530,6 +14578,90 @@ export type Database = {
14530
14578
  }
14531
14579
  ];
14532
14580
  };
14581
+ logistics_schedule_fp: {
14582
+ Row: {
14583
+ fp: string;
14584
+ ingepland_at: string;
14585
+ order_ref: string;
14586
+ };
14587
+ Insert: {
14588
+ fp: string;
14589
+ ingepland_at?: string;
14590
+ order_ref: string;
14591
+ };
14592
+ Update: {
14593
+ fp?: string;
14594
+ ingepland_at?: string;
14595
+ order_ref?: string;
14596
+ };
14597
+ Relationships: [];
14598
+ };
14599
+ logistics_schedule_voortgang: {
14600
+ Row: {
14601
+ bijgewerkt_at: string | null;
14602
+ duur_ms: number | null;
14603
+ fouten: number;
14604
+ gestart_at: string | null;
14605
+ id: boolean;
14606
+ ingepland: number;
14607
+ klaar: boolean;
14608
+ laatste_fout: string | null;
14609
+ overgeslagen: number;
14610
+ run_id: string | null;
14611
+ totaal: number;
14612
+ verwerkt: number;
14613
+ };
14614
+ Insert: {
14615
+ bijgewerkt_at?: string | null;
14616
+ duur_ms?: number | null;
14617
+ fouten?: number;
14618
+ gestart_at?: string | null;
14619
+ id?: boolean;
14620
+ ingepland?: number;
14621
+ klaar?: boolean;
14622
+ laatste_fout?: string | null;
14623
+ overgeslagen?: number;
14624
+ run_id?: string | null;
14625
+ totaal?: number;
14626
+ verwerkt?: number;
14627
+ };
14628
+ Update: {
14629
+ bijgewerkt_at?: string | null;
14630
+ duur_ms?: number | null;
14631
+ fouten?: number;
14632
+ gestart_at?: string | null;
14633
+ id?: boolean;
14634
+ ingepland?: number;
14635
+ klaar?: boolean;
14636
+ laatste_fout?: string | null;
14637
+ overgeslagen?: number;
14638
+ run_id?: string | null;
14639
+ totaal?: number;
14640
+ verwerkt?: number;
14641
+ };
14642
+ Relationships: [];
14643
+ };
14644
+ logistics_schedule_werklijst: {
14645
+ Row: {
14646
+ order_ref: string;
14647
+ run_id: string;
14648
+ uitkomst: string | null;
14649
+ verwerkt_at: string | null;
14650
+ };
14651
+ Insert: {
14652
+ order_ref: string;
14653
+ run_id: string;
14654
+ uitkomst?: string | null;
14655
+ verwerkt_at?: string | null;
14656
+ };
14657
+ Update: {
14658
+ order_ref?: string;
14659
+ run_id?: string;
14660
+ uitkomst?: string | null;
14661
+ verwerkt_at?: string | null;
14662
+ };
14663
+ Relationships: [];
14664
+ };
14533
14665
  logistics_shipping_note_scan: {
14534
14666
  Row: {
14535
14667
  barcode: string;
@@ -15124,6 +15256,24 @@ export type Database = {
15124
15256
  };
15125
15257
  Relationships: [];
15126
15258
  };
15259
+ logistics_tick_state: {
15260
+ Row: {
15261
+ key: string;
15262
+ updated_at: string;
15263
+ value: Json;
15264
+ };
15265
+ Insert: {
15266
+ key: string;
15267
+ updated_at?: string;
15268
+ value?: Json;
15269
+ };
15270
+ Update: {
15271
+ key?: string;
15272
+ updated_at?: string;
15273
+ value?: Json;
15274
+ };
15275
+ Relationships: [];
15276
+ };
15127
15277
  logistics_time_settings: {
15128
15278
  Row: {
15129
15279
  departure_rule_since: string | null;
@@ -20723,6 +20873,7 @@ export type Database = {
20723
20873
  pdf_url: string | null;
20724
20874
  pogingen: number;
20725
20875
  printer_id: string | null;
20876
+ printer_keuze: Json | null;
20726
20877
  printnode_bericht: string | null;
20727
20878
  printnode_status: string | null;
20728
20879
  printnode_status_op: string | null;
@@ -20780,6 +20931,7 @@ export type Database = {
20780
20931
  pdf_url?: string | null;
20781
20932
  pogingen?: number;
20782
20933
  printer_id?: string | null;
20934
+ printer_keuze?: Json | null;
20783
20935
  printnode_bericht?: string | null;
20784
20936
  printnode_status?: string | null;
20785
20937
  printnode_status_op?: string | null;
@@ -20837,6 +20989,7 @@ export type Database = {
20837
20989
  pdf_url?: string | null;
20838
20990
  pogingen?: number;
20839
20991
  printer_id?: string | null;
20992
+ printer_keuze?: Json | null;
20840
20993
  printnode_bericht?: string | null;
20841
20994
  printnode_status?: string | null;
20842
20995
  printnode_status_op?: string | null;
@@ -21173,7 +21326,9 @@ export type Database = {
21173
21326
  created_at: string;
21174
21327
  dubbel_venster_minuten: number;
21175
21328
  id: string;
21329
+ tick_timeout_ms: number | null;
21176
21330
  updated_at: string;
21331
+ vervallen_fase_seconden: number | null;
21177
21332
  };
21178
21333
  Insert: {
21179
21334
  bewaar_bestanden_dagen?: number;
@@ -21181,7 +21336,9 @@ export type Database = {
21181
21336
  created_at?: string;
21182
21337
  dubbel_venster_minuten?: number;
21183
21338
  id?: string;
21339
+ tick_timeout_ms?: number | null;
21184
21340
  updated_at?: string;
21341
+ vervallen_fase_seconden?: number | null;
21185
21342
  };
21186
21343
  Update: {
21187
21344
  bewaar_bestanden_dagen?: number;
@@ -21189,7 +21346,9 @@ export type Database = {
21189
21346
  created_at?: string;
21190
21347
  dubbel_venster_minuten?: number;
21191
21348
  id?: string;
21349
+ tick_timeout_ms?: number | null;
21192
21350
  updated_at?: string;
21351
+ vervallen_fase_seconden?: number | null;
21193
21352
  };
21194
21353
  Relationships: [];
21195
21354
  };
@@ -26086,6 +26245,8 @@ export type Database = {
26086
26245
  twinfield_invoice_settings: {
26087
26246
  Row: {
26088
26247
  administration_code: string | null;
26248
+ auto_invoice_config_error: string | null;
26249
+ auto_invoice_config_error_at: string | null;
26089
26250
  auto_invoice_enabled: boolean;
26090
26251
  auto_invoice_start_date: string | null;
26091
26252
  auto_invoice_trigger_statuses: string[];
@@ -26115,6 +26276,8 @@ export type Database = {
26115
26276
  };
26116
26277
  Insert: {
26117
26278
  administration_code?: string | null;
26279
+ auto_invoice_config_error?: string | null;
26280
+ auto_invoice_config_error_at?: string | null;
26118
26281
  auto_invoice_enabled?: boolean;
26119
26282
  auto_invoice_start_date?: string | null;
26120
26283
  auto_invoice_trigger_statuses?: string[];
@@ -26144,6 +26307,8 @@ export type Database = {
26144
26307
  };
26145
26308
  Update: {
26146
26309
  administration_code?: string | null;
26310
+ auto_invoice_config_error?: string | null;
26311
+ auto_invoice_config_error_at?: string | null;
26147
26312
  auto_invoice_enabled?: boolean;
26148
26313
  auto_invoice_start_date?: string | null;
26149
26314
  auto_invoice_trigger_statuses?: string[];
@@ -26737,6 +26902,7 @@ export type Database = {
26737
26902
  default_language: string | null;
26738
26903
  default_language_at: string | null;
26739
26904
  default_language_source: string | null;
26905
+ hourly_call_threshold: number;
26740
26906
  nightly_full_scan_cron: string;
26741
26907
  payment_term_min_invoices: number;
26742
26908
  payment_term_min_share: number;
@@ -26777,6 +26943,7 @@ export type Database = {
26777
26943
  default_language?: string | null;
26778
26944
  default_language_at?: string | null;
26779
26945
  default_language_source?: string | null;
26946
+ hourly_call_threshold?: number;
26780
26947
  nightly_full_scan_cron?: string;
26781
26948
  payment_term_min_invoices?: number;
26782
26949
  payment_term_min_share?: number;
@@ -26817,6 +26984,7 @@ export type Database = {
26817
26984
  default_language?: string | null;
26818
26985
  default_language_at?: string | null;
26819
26986
  default_language_source?: string | null;
26987
+ hourly_call_threshold?: number;
26820
26988
  nightly_full_scan_cron?: string;
26821
26989
  payment_term_min_invoices?: number;
26822
26990
  payment_term_min_share?: number;
@@ -27860,6 +28028,99 @@ export type Database = {
27860
28028
  };
27861
28029
  Relationships: [];
27862
28030
  };
28031
+ verkoop_engine_event_log: {
28032
+ Row: {
28033
+ created_at: string;
28034
+ event_type: string | null;
28035
+ id: string;
28036
+ ok: boolean;
28037
+ order_id: string | null;
28038
+ reason: string | null;
28039
+ user_id: string | null;
28040
+ };
28041
+ Insert: {
28042
+ created_at?: string;
28043
+ event_type?: string | null;
28044
+ id?: string;
28045
+ ok: boolean;
28046
+ order_id?: string | null;
28047
+ reason?: string | null;
28048
+ user_id?: string | null;
28049
+ };
28050
+ Update: {
28051
+ created_at?: string;
28052
+ event_type?: string | null;
28053
+ id?: string;
28054
+ ok?: boolean;
28055
+ order_id?: string | null;
28056
+ reason?: string | null;
28057
+ user_id?: string | null;
28058
+ };
28059
+ Relationships: [];
28060
+ };
28061
+ verkoop_fulfillment_index: {
28062
+ Row: {
28063
+ changed_at: string;
28064
+ delivery_note_codes: string[];
28065
+ fulfillment_id: string;
28066
+ is_deleted: boolean;
28067
+ packages: number;
28068
+ received: boolean;
28069
+ received_at: string | null;
28070
+ sales_order_id: string;
28071
+ status: string | null;
28072
+ };
28073
+ Insert: {
28074
+ changed_at?: string;
28075
+ delivery_note_codes?: string[];
28076
+ fulfillment_id: string;
28077
+ is_deleted?: boolean;
28078
+ packages?: number;
28079
+ received?: boolean;
28080
+ received_at?: string | null;
28081
+ sales_order_id: string;
28082
+ status?: string | null;
28083
+ };
28084
+ Update: {
28085
+ changed_at?: string;
28086
+ delivery_note_codes?: string[];
28087
+ fulfillment_id?: string;
28088
+ is_deleted?: boolean;
28089
+ packages?: number;
28090
+ received?: boolean;
28091
+ received_at?: string | null;
28092
+ sales_order_id?: string;
28093
+ status?: string | null;
28094
+ };
28095
+ Relationships: [];
28096
+ };
28097
+ verkoop_sync_state: {
28098
+ Row: {
28099
+ ensure_cron_at: string | null;
28100
+ full_run_at: string | null;
28101
+ key: string;
28102
+ last_seen_at: string | null;
28103
+ rebuilt_at: string | null;
28104
+ updated_at: string;
28105
+ };
28106
+ Insert: {
28107
+ ensure_cron_at?: string | null;
28108
+ full_run_at?: string | null;
28109
+ key: string;
28110
+ last_seen_at?: string | null;
28111
+ rebuilt_at?: string | null;
28112
+ updated_at?: string;
28113
+ };
28114
+ Update: {
28115
+ ensure_cron_at?: string | null;
28116
+ full_run_at?: string | null;
28117
+ key?: string;
28118
+ last_seen_at?: string | null;
28119
+ rebuilt_at?: string | null;
28120
+ updated_at?: string;
28121
+ };
28122
+ Relationships: [];
28123
+ };
27863
28124
  voorraad_buffer_state: {
27864
28125
  Row: {
27865
28126
  buffer_id: string;
@@ -30648,6 +30909,24 @@ export type Database = {
30648
30909
  };
30649
30910
  Returns: string;
30650
30911
  };
30912
+ _layouts_toegang_functie: {
30913
+ Args: {
30914
+ p_functie: string;
30915
+ p_niveau: string;
30916
+ };
30917
+ Returns: undefined;
30918
+ };
30919
+ _layouts_toegang_functie_besluit: {
30920
+ Args: {
30921
+ p_beheerder: boolean;
30922
+ p_functie: string;
30923
+ p_ingelogd: boolean;
30924
+ p_niveau: string;
30925
+ p_request_path: string;
30926
+ p_server: boolean;
30927
+ };
30928
+ Returns: string;
30929
+ };
30651
30930
  _layouts_toegang_server_of_ingelogd: {
30652
30931
  Args: {
30653
30932
  p_alleen_beheer: boolean;
@@ -30668,6 +30947,10 @@ export type Database = {
30668
30947
  };
30669
30948
  Returns: boolean;
30670
30949
  };
30950
+ _pick_printstatus_via_engine: {
30951
+ Args: never;
30952
+ Returns: boolean;
30953
+ };
30671
30954
  _pick_station_for_cart: {
30672
30955
  Args: {
30673
30956
  p_cart_id: string;
@@ -31401,6 +31684,7 @@ export type Database = {
31401
31684
  pdf_url: string | null;
31402
31685
  pogingen: number;
31403
31686
  printer_id: string | null;
31687
+ printer_keuze: Json | null;
31404
31688
  printnode_bericht: string | null;
31405
31689
  printnode_status: string | null;
31406
31690
  printnode_status_op: string | null;
@@ -31600,6 +31884,7 @@ export type Database = {
31600
31884
  pdf_url: string | null;
31601
31885
  pogingen: number;
31602
31886
  printer_id: string | null;
31887
+ printer_keuze: Json | null;
31603
31888
  printnode_bericht: string | null;
31604
31889
  printnode_status: string | null;
31605
31890
  printnode_status_op: string | null;
@@ -31669,6 +31954,7 @@ export type Database = {
31669
31954
  pdf_url: string | null;
31670
31955
  pogingen: number;
31671
31956
  printer_id: string | null;
31957
+ printer_keuze: Json | null;
31672
31958
  printnode_bericht: string | null;
31673
31959
  printnode_status: string | null;
31674
31960
  printnode_status_op: string | null;
@@ -32232,6 +32518,28 @@ export type Database = {
32232
32518
  };
32233
32519
  Returns: boolean;
32234
32520
  };
32521
+ facturatie_auto_invoice_checks: {
32522
+ Args: never;
32523
+ Returns: Json;
32524
+ };
32525
+ facturatie_auto_invoice_route_seen: {
32526
+ Args: never;
32527
+ Returns: undefined;
32528
+ };
32529
+ facturatie_auto_invoice_set_config_error: {
32530
+ Args: {
32531
+ _msg: string;
32532
+ };
32533
+ Returns: undefined;
32534
+ };
32535
+ facturatie_ensure_cron: {
32536
+ Args: never;
32537
+ Returns: string;
32538
+ };
32539
+ facturatie_ensure_runtime: {
32540
+ Args: never;
32541
+ Returns: string;
32542
+ };
32235
32543
  find_trade_item_key: {
32236
32544
  Args: {
32237
32545
  p_barcode: string;
@@ -33482,6 +33790,15 @@ export type Database = {
33482
33790
  };
33483
33791
  Returns: Json;
33484
33792
  };
33793
+ klanten_ensure_cron: {
33794
+ Args: never;
33795
+ Returns: Json;
33796
+ } | {
33797
+ Args: {
33798
+ p_alleen_bijwerken: boolean;
33799
+ };
33800
+ Returns: Json;
33801
+ };
33485
33802
  klanten_install_check: {
33486
33803
  Args: never;
33487
33804
  Returns: Json;
@@ -33610,10 +33927,23 @@ export type Database = {
33610
33927
  };
33611
33928
  Returns: Json;
33612
33929
  };
33930
+ layouts_origineel_bron: {
33931
+ Args: {
33932
+ p_documenttype: string;
33933
+ p_payload: Json;
33934
+ };
33935
+ Returns: string;
33936
+ };
33613
33937
  layouts_sticker_verkleinen: {
33614
33938
  Args: never;
33615
33939
  Returns: Json;
33616
33940
  };
33941
+ layouts_vrijgeven_vastgelopen: {
33942
+ Args: {
33943
+ p_houder: string;
33944
+ };
33945
+ Returns: number;
33946
+ };
33617
33947
  layouts_vroege_sticker_waarschuwing: {
33618
33948
  Args: {
33619
33949
  p_tot: string;
@@ -33629,6 +33959,10 @@ export type Database = {
33629
33959
  Args: never;
33630
33960
  Returns: Json;
33631
33961
  };
33962
+ layouts_zorg_voor_wachtrij_instellingen: {
33963
+ Args: never;
33964
+ Returns: Json;
33965
+ };
33632
33966
  list_medewerkers: {
33633
33967
  Args: never;
33634
33968
  Returns: {
@@ -34886,6 +35220,30 @@ export type Database = {
34886
35220
  Args: never;
34887
35221
  Returns: Json;
34888
35222
  };
35223
+ logistics_data_gereedheid: {
35224
+ Args: {
35225
+ p_product_ids?: string[];
35226
+ };
35227
+ Returns: {
35228
+ in_open_order: boolean;
35229
+ ladingdrager: string;
35230
+ methode: string;
35231
+ ontbrekend: string[];
35232
+ product: string;
35233
+ product_id: string;
35234
+ uitleg: string;
35235
+ velden: Json;
35236
+ voorstel: Json;
35237
+ }[];
35238
+ };
35239
+ logistics_data_vul_in: {
35240
+ Args: {
35241
+ p_product_id: string;
35242
+ p_veld: string;
35243
+ p_waarde: number;
35244
+ };
35245
+ Returns: Json;
35246
+ };
34889
35247
  logistics_day_windows: {
34890
35248
  Args: {
34891
35249
  p_day: string;
@@ -34988,6 +35346,14 @@ export type Database = {
34988
35346
  order_item_id: string;
34989
35347
  }[];
34990
35348
  };
35349
+ logistics_dubbele_pakbonnamen: {
35350
+ Args: never;
35351
+ Returns: {
35352
+ aantal: number;
35353
+ document_number: string;
35354
+ karren: string[];
35355
+ }[];
35356
+ };
34991
35357
  logistics_emit_event: {
34992
35358
  Args: {
34993
35359
  p_event_type: string;
@@ -35029,6 +35395,10 @@ export type Database = {
35029
35395
  };
35030
35396
  Returns: string;
35031
35397
  };
35398
+ logistics_ensure_periodiek: {
35399
+ Args: never;
35400
+ Returns: Json;
35401
+ };
35032
35402
  logistics_ensure_pick_data: {
35033
35403
  Args: {
35034
35404
  p_event_id?: string;
@@ -35051,6 +35421,10 @@ export type Database = {
35051
35421
  };
35052
35422
  Returns: Json;
35053
35423
  };
35424
+ logistics_ensure_tick_settings: {
35425
+ Args: never;
35426
+ Returns: Json;
35427
+ };
35054
35428
  logistics_expand_line: {
35055
35429
  Args: {
35056
35430
  p_depth?: number;
@@ -35330,6 +35704,30 @@ export type Database = {
35330
35704
  toelichting: string;
35331
35705
  }[];
35332
35706
  };
35707
+ logistics_install_check_194: {
35708
+ Args: never;
35709
+ Returns: {
35710
+ ok: boolean;
35711
+ onderdeel: string;
35712
+ toelichting: string;
35713
+ }[];
35714
+ };
35715
+ logistics_install_check_196: {
35716
+ Args: never;
35717
+ Returns: {
35718
+ controle: string;
35719
+ ok: boolean;
35720
+ toelichting: string;
35721
+ }[];
35722
+ };
35723
+ logistics_install_check_197: {
35724
+ Args: never;
35725
+ Returns: {
35726
+ controle: string;
35727
+ ok: boolean;
35728
+ toelichting: string;
35729
+ }[];
35730
+ };
35333
35731
  logistics_is_beheer: {
35334
35732
  Args: never;
35335
35733
  Returns: boolean;
@@ -35366,6 +35764,33 @@ export type Database = {
35366
35764
  };
35367
35765
  Returns: string;
35368
35766
  };
35767
+ logistics_kick_metingen: {
35768
+ Args: {
35769
+ p_limit: number;
35770
+ };
35771
+ Returns: {
35772
+ antwoord_at: string;
35773
+ fout: string;
35774
+ kicked_at: string;
35775
+ request_id: number;
35776
+ round_started_at: string;
35777
+ skipped_reason: string;
35778
+ status_code: number;
35779
+ time_out: boolean;
35780
+ wacht_tot_antwoord_ms: number;
35781
+ wacht_tot_ronde_ms: number;
35782
+ }[];
35783
+ };
35784
+ logistics_kick_pending_take: {
35785
+ Args: {
35786
+ p_since: string;
35787
+ };
35788
+ Returns: boolean;
35789
+ };
35790
+ logistics_kick_round_start: {
35791
+ Args: never;
35792
+ Returns: number;
35793
+ };
35369
35794
  logistics_layout_method_status: {
35370
35795
  Args: never;
35371
35796
  Returns: Json;
@@ -35497,6 +35922,18 @@ export type Database = {
35497
35922
  };
35498
35923
  Returns: Json;
35499
35924
  };
35925
+ logistics_order_backlog_info_many: {
35926
+ Args: {
35927
+ p_order_ids: string[];
35928
+ };
35929
+ Returns: {
35930
+ achterstand: boolean;
35931
+ dagen: number;
35932
+ info: Json;
35933
+ leverdatum: string;
35934
+ order_id: string;
35935
+ }[];
35936
+ };
35500
35937
  logistics_order_buffer_excluded: {
35501
35938
  Args: {
35502
35939
  p_order_id: string;
@@ -35555,6 +35992,21 @@ export type Database = {
35555
35992
  };
35556
35993
  Returns: string[];
35557
35994
  };
35995
+ logistics_order_date: {
35996
+ Args: {
35997
+ p: string;
35998
+ };
35999
+ Returns: {
36000
+ error: true;
36001
+ } & "Could not choose the best candidate function between: public.logistics_order_date(p => text), public.logistics_order_date(p => date). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
36002
+ } | {
36003
+ Args: {
36004
+ p: string;
36005
+ };
36006
+ Returns: {
36007
+ error: true;
36008
+ } & "Could not choose the best candidate function between: public.logistics_order_date(p => text), public.logistics_order_date(p => date). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
36009
+ };
35558
36010
  logistics_order_definitively_blocked: {
35559
36011
  Args: {
35560
36012
  p_order_id: string;
@@ -35656,6 +36108,12 @@ export type Database = {
35656
36108
  };
35657
36109
  Returns: boolean;
35658
36110
  };
36111
+ logistics_order_geannuleerd: {
36112
+ Args: {
36113
+ p_order_id: string;
36114
+ };
36115
+ Returns: boolean;
36116
+ };
35659
36117
  logistics_order_handled: {
35660
36118
  Args: {
35661
36119
  p_order_uuid: string;
@@ -35804,6 +36262,12 @@ export type Database = {
35804
36262
  };
35805
36263
  Returns: Json;
35806
36264
  };
36265
+ logistics_order_print_actief: {
36266
+ Args: {
36267
+ p_order_number: string;
36268
+ };
36269
+ Returns: boolean;
36270
+ };
35807
36271
  logistics_order_released: {
35808
36272
  Args: {
35809
36273
  p_order_ref: string;
@@ -35816,6 +36280,32 @@ export type Database = {
35816
36280
  };
35817
36281
  Returns: Json;
35818
36282
  };
36283
+ logistics_order_unit_carts: {
36284
+ Args: {
36285
+ p_order_ids: string[];
36286
+ };
36287
+ Returns: {
36288
+ buffer_id: string;
36289
+ cart_id: string;
36290
+ cart_number: number;
36291
+ display_seq: number;
36292
+ display_total: number;
36293
+ order_id: string;
36294
+ }[];
36295
+ };
36296
+ logistics_order_unit_carts_core: {
36297
+ Args: {
36298
+ p_order_ids: string[];
36299
+ };
36300
+ Returns: {
36301
+ buffer_id: string;
36302
+ cart_id: string;
36303
+ cart_number: number;
36304
+ display_seq: number;
36305
+ display_total: number;
36306
+ order_id: string;
36307
+ }[];
36308
+ };
35819
36309
  logistics_orphan_carts_list: {
35820
36310
  Args: never;
35821
36311
  Returns: Json;
@@ -36166,6 +36656,12 @@ export type Database = {
36166
36656
  };
36167
36657
  Returns: undefined;
36168
36658
  };
36659
+ logistics_plan_now_gate: {
36660
+ Args: {
36661
+ p_order_ids: string[];
36662
+ };
36663
+ Returns: Json;
36664
+ };
36169
36665
  logistics_plan_progress: {
36170
36666
  Args: {
36171
36667
  p_refs: string[];
@@ -36329,6 +36825,19 @@ export type Database = {
36329
36825
  };
36330
36826
  Returns: string;
36331
36827
  };
36828
+ logistics_print_status: {
36829
+ Args: {
36830
+ p_queue_item_ids: string[];
36831
+ };
36832
+ Returns: {
36833
+ fase: string;
36834
+ fase_gestart_op: string;
36835
+ melding: string;
36836
+ printnode_status: string;
36837
+ queue_item_id: string;
36838
+ status: string;
36839
+ }[];
36840
+ };
36332
36841
  logistics_print_via_layout: {
36333
36842
  Args: {
36334
36843
  _documentnaam: string;
@@ -36461,6 +36970,10 @@ export type Database = {
36461
36970
  };
36462
36971
  Returns: Json;
36463
36972
  };
36973
+ logistics_refresh_plan_state_als_nodig: {
36974
+ Args: never;
36975
+ Returns: Json;
36976
+ };
36464
36977
  logistics_register_tick_apikey: {
36465
36978
  Args: {
36466
36979
  p_key: string;
@@ -36749,6 +37262,17 @@ export type Database = {
36749
37262
  };
36750
37263
  Returns: Json;
36751
37264
  };
37265
+ logistics_schedule_global_fp: {
37266
+ Args: never;
37267
+ Returns: string;
37268
+ };
37269
+ logistics_schedule_order_fp: {
37270
+ Args: {
37271
+ p_global: string;
37272
+ p_order_ref: string;
37273
+ };
37274
+ Returns: string;
37275
+ };
36752
37276
  logistics_schedule_tasks: {
36753
37277
  Args: never;
36754
37278
  Returns: number;
@@ -36758,6 +37282,12 @@ export type Database = {
36758
37282
  };
36759
37283
  Returns: number;
36760
37284
  };
37285
+ logistics_schedule_tasks_batch: {
37286
+ Args: {
37287
+ p_opties: Json;
37288
+ };
37289
+ Returns: Json;
37290
+ };
36761
37291
  logistics_set_components_scaled: {
36762
37292
  Args: {
36763
37293
  p_order_item_id: string;
@@ -37087,6 +37617,12 @@ export type Database = {
37087
37617
  };
37088
37618
  Returns: number[];
37089
37619
  };
37620
+ logistics_sticker_retry: {
37621
+ Args: {
37622
+ p_id: string;
37623
+ };
37624
+ Returns: Json;
37625
+ };
37090
37626
  logistics_sticker_sync: {
37091
37627
  Args: {
37092
37628
  p_limit?: number;
@@ -37209,6 +37745,12 @@ export type Database = {
37209
37745
  Args: never;
37210
37746
  Returns: Json;
37211
37747
  };
37748
+ logistics_tick_http_log: {
37749
+ Args: {
37750
+ p_steps: Json;
37751
+ };
37752
+ Returns: undefined;
37753
+ };
37212
37754
  logistics_tick_ping: {
37213
37755
  Args: never;
37214
37756
  Returns: string;
@@ -37217,6 +37759,10 @@ export type Database = {
37217
37759
  Args: never;
37218
37760
  Returns: number;
37219
37761
  };
37762
+ logistics_tick_timeout_ms: {
37763
+ Args: never;
37764
+ Returns: number;
37765
+ };
37220
37766
  logistics_timezone_options: {
37221
37767
  Args: never;
37222
37768
  Returns: {
@@ -39357,6 +39903,10 @@ export type Database = {
39357
39903
  Args: never;
39358
39904
  Returns: Json;
39359
39905
  };
39906
+ pickschermen_missing_objects: {
39907
+ Args: never;
39908
+ Returns: string[];
39909
+ };
39360
39910
  pickstation_auto_send_status: {
39361
39911
  Args: {
39362
39912
  p_device_key: string;
@@ -39385,6 +39935,20 @@ export type Database = {
39385
39935
  };
39386
39936
  Returns: Json;
39387
39937
  };
39938
+ pickstation_cart_sticker_states: {
39939
+ Args: {
39940
+ p_cart_ids: string[];
39941
+ p_device_key: string;
39942
+ p_slug: string;
39943
+ };
39944
+ Returns: Json;
39945
+ } | {
39946
+ Args: {
39947
+ p_cart_ids: string[];
39948
+ p_slug: string;
39949
+ };
39950
+ Returns: Json;
39951
+ };
39388
39952
  pickstation_device_status: {
39389
39953
  Args: {
39390
39954
  p_device_key: string;
@@ -39577,6 +40141,20 @@ export type Database = {
39577
40141
  };
39578
40142
  Returns: Json;
39579
40143
  };
40144
+ pickstation_print_status: {
40145
+ Args: {
40146
+ p_device_key: string;
40147
+ p_queue_item_ids: string[];
40148
+ p_slug: string;
40149
+ };
40150
+ Returns: Json;
40151
+ } | {
40152
+ Args: {
40153
+ p_queue_item_ids: string[];
40154
+ p_slug: string;
40155
+ };
40156
+ Returns: Json;
40157
+ };
39580
40158
  pickstation_resolve_delivery_orders: {
39581
40159
  Args: {
39582
40160
  p_device_key: string;
@@ -41506,6 +42084,20 @@ export type Database = {
41506
42084
  };
41507
42085
  Returns: boolean;
41508
42086
  };
42087
+ twinfield_add_request_metrics: {
42088
+ Args: {
42089
+ p_bucket_hour: string;
42090
+ p_clientid_limit?: number;
42091
+ p_clientid_remaining?: number;
42092
+ p_connection_id: string;
42093
+ p_errors: number;
42094
+ p_rate_limit_limit?: number;
42095
+ p_rate_limit_remaining?: number;
42096
+ p_rate_limited: number;
42097
+ p_requests: number;
42098
+ };
42099
+ Returns: undefined;
42100
+ };
41509
42101
  twinfield_assert_caller: {
41510
42102
  Args: {
41511
42103
  p_level: string;
@@ -41561,6 +42153,14 @@ export type Database = {
41561
42153
  user_id: string;
41562
42154
  }[];
41563
42155
  };
42156
+ twinfield_cron_jobs_spec: {
42157
+ Args: never;
42158
+ Returns: {
42159
+ command: string;
42160
+ jobname: string;
42161
+ schedule: string;
42162
+ }[];
42163
+ };
41564
42164
  twinfield_cron_lock_acquire: {
41565
42165
  Args: {
41566
42166
  _job_name: string;
@@ -41582,6 +42182,10 @@ export type Database = {
41582
42182
  };
41583
42183
  Returns: Json;
41584
42184
  };
42185
+ twinfield_ensure_cron: {
42186
+ Args: never;
42187
+ Returns: Json;
42188
+ };
41585
42189
  twinfield_facturatie_assert_server: {
41586
42190
  Args: {
41587
42191
  _functie: string;
@@ -42253,6 +42857,23 @@ export type Database = {
42253
42857
  };
42254
42858
  Returns: Json;
42255
42859
  };
42860
+ verkoop_ensure_cron: {
42861
+ Args: never;
42862
+ Returns: Json;
42863
+ };
42864
+ verkoop_fulfillment_index_apply: {
42865
+ Args: {
42866
+ p_data: Json;
42867
+ p_fulfillment_id: string;
42868
+ p_is_deleted: boolean;
42869
+ p_status: string;
42870
+ };
42871
+ Returns: number;
42872
+ };
42873
+ verkoop_fulfillment_index_rebuild: {
42874
+ Args: never;
42875
+ Returns: Json;
42876
+ };
42256
42877
  verkoop_guarded_functions: {
42257
42878
  Args: never;
42258
42879
  Returns: {
@@ -42262,6 +42883,14 @@ export type Database = {
42262
42883
  sig: string;
42263
42884
  }[];
42264
42885
  };
42886
+ verkoop_health_checks: {
42887
+ Args: never;
42888
+ Returns: {
42889
+ naam: string;
42890
+ ok: boolean;
42891
+ opm: string;
42892
+ }[];
42893
+ };
42265
42894
  verkoop_insert_manual_order: {
42266
42895
  Args: {
42267
42896
  p_idempotency_key: string;
@@ -42433,6 +43062,13 @@ export type Database = {
42433
43062
  Args: never;
42434
43063
  Returns: boolean;
42435
43064
  };
43065
+ voorraad_reverse_order_mutations: {
43066
+ Args: {
43067
+ p_order_id: string;
43068
+ p_reason: string;
43069
+ };
43070
+ Returns: Json;
43071
+ };
42436
43072
  voorraad_schema_ddl: {
42437
43073
  Args: {
42438
43074
  p_functions: string[];
@@ -42458,6 +43094,13 @@ export type Database = {
42458
43094
  };
42459
43095
  Returns: boolean;
42460
43096
  };
43097
+ voorraad_withdraw_stock_row: {
43098
+ Args: {
43099
+ p_key: string;
43100
+ p_reason: string;
43101
+ };
43102
+ Returns: Json;
43103
+ };
42461
43104
  wake_print_queue: {
42462
43105
  Args: {
42463
43106
  _min_interval_ms?: number;
@@ -42655,7 +43298,7 @@ export type Database = {
42655
43298
  Enums: {
42656
43299
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
42657
43300
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
42658
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief" | "traysticker";
43301
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief" | "traysticker" | "eigen_sticker";
42659
43302
  doc_orientation: "portrait" | "landscape";
42660
43303
  exact_env: "staging" | "live";
42661
43304
  exact_push_status: "pending" | "sent" | "error";
@@ -42726,7 +43369,7 @@ export declare const Constants: {
42726
43369
  readonly Enums: {
42727
43370
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
42728
43371
  readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
42729
- readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief", "traysticker"];
43372
+ readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief", "traysticker", "eigen_sticker"];
42730
43373
  readonly doc_orientation: readonly ["portrait", "landscape"];
42731
43374
  readonly exact_env: readonly ["staging", "live"];
42732
43375
  readonly exact_push_status: readonly ["pending", "sent", "error"];