@flowselections/logistiek-engine 1.0.140 → 1.0.147

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 (47) hide show
  1. package/dist-lib/components/GearchiveerdeOrdersCard.d.ts +2 -0
  2. package/dist-lib/components/GearchiveerdeOrdersCard.d.ts.map +1 -0
  3. package/dist-lib/components/GearchiveerdeOrdersCard.js +32 -0
  4. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -1
  5. package/dist-lib/components/GeblokkeerdeOrdersCard.js +1 -1
  6. package/dist-lib/components/PlanWachtrijPage.d.ts.map +1 -1
  7. package/dist-lib/components/PlanWachtrijPage.js +20 -13
  8. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  9. package/dist-lib/components/RuleEnginePage.js +24 -3
  10. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +20 -0
  11. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -1
  12. package/dist-lib/hooks/useGeblokkeerdeOrders.js +57 -0
  13. package/dist-lib/index.d.ts +1 -0
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +1 -0
  16. package/dist-lib/integrations/supabase/types.d.ts +650 -0
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/briefTransport.server.d.ts +17 -0
  19. package/dist-lib/lib/briefTransport.server.d.ts.map +1 -0
  20. package/dist-lib/lib/briefTransport.server.js +41 -0
  21. package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
  22. package/dist-lib/lib/controlScan.server.js +8 -0
  23. package/dist-lib/lib/handlers/logistics-tick.server.js +21 -0
  24. package/dist-lib/lib/layoutPrint.server.d.ts +2 -0
  25. package/dist-lib/lib/layoutPrint.server.d.ts.map +1 -1
  26. package/dist-lib/lib/layoutPrint.server.js +1 -1
  27. package/dist-lib/lib/logisticsTasks.d.ts +1 -0
  28. package/dist-lib/lib/logisticsTasks.d.ts.map +1 -1
  29. package/dist-lib/lib/logisticsTasks.js +2 -1
  30. package/dist-lib/lib/modulePrompts.d.ts +1 -0
  31. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  32. package/dist-lib/lib/modulePrompts.js +304 -1
  33. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  34. package/dist-lib/lib/moduleVersion.js +1 -1
  35. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  36. package/dist-lib/lib/planQueue.server.js +13 -0
  37. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  38. package/dist-lib/lib/ruleEngineSchema.js +18 -0
  39. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  40. package/dist-lib/lib/shippingNoteQueue.server.js +3 -0
  41. package/dist-lib/lib/stickerQueue.server.d.ts +15 -0
  42. package/dist-lib/lib/stickerQueue.server.d.ts.map +1 -0
  43. package/dist-lib/lib/stickerQueue.server.js +349 -0
  44. package/dist-lib/lib/stickerRules.d.ts +38 -0
  45. package/dist-lib/lib/stickerRules.d.ts.map +1 -0
  46. package/dist-lib/lib/stickerRules.js +111 -0
  47. package/package.json +2 -2
@@ -1056,10 +1056,13 @@ export type Database = {
1056
1056
  created_at: string;
1057
1057
  daily_regular_hours: number;
1058
1058
  default_hourly_rate: number;
1059
+ default_vacation_days: number;
1059
1060
  id: string;
1061
+ last_cleanup_on: string | null;
1060
1062
  materials_markup_percent: number;
1061
1063
  max_daily_hours: number;
1062
1064
  max_weekly_hours: number;
1065
+ meal_after_minutes: number;
1063
1066
  meal_allowance_amount: number;
1064
1067
  overtime_pct_178: number;
1065
1068
  overtime_pct_189: number;
@@ -1088,10 +1091,13 @@ export type Database = {
1088
1091
  created_at?: string;
1089
1092
  daily_regular_hours?: number;
1090
1093
  default_hourly_rate?: number;
1094
+ default_vacation_days?: number;
1091
1095
  id?: string;
1096
+ last_cleanup_on?: string | null;
1092
1097
  materials_markup_percent?: number;
1093
1098
  max_daily_hours?: number;
1094
1099
  max_weekly_hours?: number;
1100
+ meal_after_minutes?: number;
1095
1101
  meal_allowance_amount?: number;
1096
1102
  overtime_pct_178?: number;
1097
1103
  overtime_pct_189?: number;
@@ -1120,10 +1126,13 @@ export type Database = {
1120
1126
  created_at?: string;
1121
1127
  daily_regular_hours?: number;
1122
1128
  default_hourly_rate?: number;
1129
+ default_vacation_days?: number;
1123
1130
  id?: string;
1131
+ last_cleanup_on?: string | null;
1124
1132
  materials_markup_percent?: number;
1125
1133
  max_daily_hours?: number;
1126
1134
  max_weekly_hours?: number;
1135
+ meal_after_minutes?: number;
1127
1136
  meal_allowance_amount?: number;
1128
1137
  overtime_pct_178?: number;
1129
1138
  overtime_pct_189?: number;
@@ -7052,6 +7061,59 @@ export type Database = {
7052
7061
  }
7053
7062
  ];
7054
7063
  };
7064
+ floriday_customer_sticker_upload_requests_cache: {
7065
+ Row: {
7066
+ connection_id: string;
7067
+ created_at: string;
7068
+ customer_sticker_id: string | null;
7069
+ data: Json;
7070
+ expires_on: string | null;
7071
+ fetched_at: string;
7072
+ floriday_id: string;
7073
+ id: string;
7074
+ responded_on: string | null;
7075
+ sales_order_id: string | null;
7076
+ sequence_number: number;
7077
+ status: string | null;
7078
+ };
7079
+ Insert: {
7080
+ connection_id: string;
7081
+ created_at?: string;
7082
+ customer_sticker_id?: string | null;
7083
+ data?: Json;
7084
+ expires_on?: string | null;
7085
+ fetched_at?: string;
7086
+ floriday_id: string;
7087
+ id?: string;
7088
+ responded_on?: string | null;
7089
+ sales_order_id?: string | null;
7090
+ sequence_number?: number;
7091
+ status?: string | null;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ customer_sticker_id?: string | null;
7097
+ data?: Json;
7098
+ expires_on?: string | null;
7099
+ fetched_at?: string;
7100
+ floriday_id?: string;
7101
+ id?: string;
7102
+ responded_on?: string | null;
7103
+ sales_order_id?: string | null;
7104
+ sequence_number?: number;
7105
+ status?: string | null;
7106
+ };
7107
+ Relationships: [
7108
+ {
7109
+ foreignKeyName: "floriday_customer_sticker_upload_requests_ca_connection_id_fkey";
7110
+ columns: ["connection_id"];
7111
+ isOneToOne: false;
7112
+ referencedRelation: "floriday_connections";
7113
+ referencedColumns: ["id"];
7114
+ }
7115
+ ];
7116
+ };
7055
7117
  floriday_customer_stickers_cache: {
7056
7118
  Row: {
7057
7119
  connection_id: string;
@@ -7379,6 +7441,59 @@ export type Database = {
7379
7441
  }
7380
7442
  ];
7381
7443
  };
7444
+ floriday_document_versions: {
7445
+ Row: {
7446
+ bucket: string;
7447
+ byte_size: number | null;
7448
+ connection_id: string;
7449
+ content_sha256: string;
7450
+ content_type: string | null;
7451
+ created_at: string;
7452
+ delivery_date: string | null;
7453
+ document_id: string;
7454
+ document_kind: string;
7455
+ id: string;
7456
+ storage_path: string;
7457
+ version: number;
7458
+ };
7459
+ Insert: {
7460
+ bucket: string;
7461
+ byte_size?: number | null;
7462
+ connection_id: string;
7463
+ content_sha256: string;
7464
+ content_type?: string | null;
7465
+ created_at?: string;
7466
+ delivery_date?: string | null;
7467
+ document_id: string;
7468
+ document_kind: string;
7469
+ id?: string;
7470
+ storage_path: string;
7471
+ version: number;
7472
+ };
7473
+ Update: {
7474
+ bucket?: string;
7475
+ byte_size?: number | null;
7476
+ connection_id?: string;
7477
+ content_sha256?: string;
7478
+ content_type?: string | null;
7479
+ created_at?: string;
7480
+ delivery_date?: string | null;
7481
+ document_id?: string;
7482
+ document_kind?: string;
7483
+ id?: string;
7484
+ storage_path?: string;
7485
+ version?: number;
7486
+ };
7487
+ Relationships: [
7488
+ {
7489
+ foreignKeyName: "floriday_document_versions_connection_id_fkey";
7490
+ columns: ["connection_id"];
7491
+ isOneToOne: false;
7492
+ referencedRelation: "floriday_connections";
7493
+ referencedColumns: ["id"];
7494
+ }
7495
+ ];
7496
+ };
7382
7497
  floriday_fulfillment_orders_cache: {
7383
7498
  Row: {
7384
7499
  auction_date: string | null;
@@ -12622,6 +12737,54 @@ export type Database = {
12622
12737
  }
12623
12738
  ];
12624
12739
  };
12740
+ logistics_order_sticker_warnings: {
12741
+ Row: {
12742
+ benodigd_breedte_mm: number | null;
12743
+ benodigd_hoogte_mm: number | null;
12744
+ bron_id: string;
12745
+ created_at: string;
12746
+ geladen_breedte_mm: number | null;
12747
+ geladen_hoogte_mm: number | null;
12748
+ id: string;
12749
+ melding: string;
12750
+ opgelost_op: string | null;
12751
+ order_id: string;
12752
+ plek: string | null;
12753
+ soort: string;
12754
+ updated_at: string;
12755
+ };
12756
+ Insert: {
12757
+ benodigd_breedte_mm?: number | null;
12758
+ benodigd_hoogte_mm?: number | null;
12759
+ bron_id: string;
12760
+ created_at?: string;
12761
+ geladen_breedte_mm?: number | null;
12762
+ geladen_hoogte_mm?: number | null;
12763
+ id?: string;
12764
+ melding: string;
12765
+ opgelost_op?: string | null;
12766
+ order_id: string;
12767
+ plek?: string | null;
12768
+ soort: string;
12769
+ updated_at?: string;
12770
+ };
12771
+ Update: {
12772
+ benodigd_breedte_mm?: number | null;
12773
+ benodigd_hoogte_mm?: number | null;
12774
+ bron_id?: string;
12775
+ created_at?: string;
12776
+ geladen_breedte_mm?: number | null;
12777
+ geladen_hoogte_mm?: number | null;
12778
+ id?: string;
12779
+ melding?: string;
12780
+ opgelost_op?: string | null;
12781
+ order_id?: string;
12782
+ plek?: string | null;
12783
+ soort?: string;
12784
+ updated_at?: string;
12785
+ };
12786
+ Relationships: [];
12787
+ };
12625
12788
  logistics_packing_deviations: {
12626
12789
  Row: {
12627
12790
  auto_fixed_at: string | null;
@@ -13451,6 +13614,78 @@ export type Database = {
13451
13614
  };
13452
13615
  Relationships: [];
13453
13616
  };
13617
+ logistics_sticker_prints: {
13618
+ Row: {
13619
+ attempts: number;
13620
+ breedte_mm: number | null;
13621
+ bron_id: string;
13622
+ cart_id: string | null;
13623
+ created_at: string;
13624
+ fulfillment_order_id: string | null;
13625
+ handled_at: string | null;
13626
+ handled_error: string | null;
13627
+ handled_next_at: string | null;
13628
+ hoogte_mm: number | null;
13629
+ id: string;
13630
+ kopieen: number;
13631
+ next_attempt_at: string | null;
13632
+ order_id: string | null;
13633
+ order_number: string | null;
13634
+ print_job_id: string | null;
13635
+ print_plek_id: string | null;
13636
+ reden: string | null;
13637
+ soort: string;
13638
+ status: string;
13639
+ updated_at: string;
13640
+ };
13641
+ Insert: {
13642
+ attempts?: number;
13643
+ breedte_mm?: number | null;
13644
+ bron_id: string;
13645
+ cart_id?: string | null;
13646
+ created_at?: string;
13647
+ fulfillment_order_id?: string | null;
13648
+ handled_at?: string | null;
13649
+ handled_error?: string | null;
13650
+ handled_next_at?: string | null;
13651
+ hoogte_mm?: number | null;
13652
+ id?: string;
13653
+ kopieen?: number;
13654
+ next_attempt_at?: string | null;
13655
+ order_id?: string | null;
13656
+ order_number?: string | null;
13657
+ print_job_id?: string | null;
13658
+ print_plek_id?: string | null;
13659
+ reden?: string | null;
13660
+ soort: string;
13661
+ status?: string;
13662
+ updated_at?: string;
13663
+ };
13664
+ Update: {
13665
+ attempts?: number;
13666
+ breedte_mm?: number | null;
13667
+ bron_id?: string;
13668
+ cart_id?: string | null;
13669
+ created_at?: string;
13670
+ fulfillment_order_id?: string | null;
13671
+ handled_at?: string | null;
13672
+ handled_error?: string | null;
13673
+ handled_next_at?: string | null;
13674
+ hoogte_mm?: number | null;
13675
+ id?: string;
13676
+ kopieen?: number;
13677
+ next_attempt_at?: string | null;
13678
+ order_id?: string | null;
13679
+ order_number?: string | null;
13680
+ print_job_id?: string | null;
13681
+ print_plek_id?: string | null;
13682
+ reden?: string | null;
13683
+ soort?: string;
13684
+ status?: string;
13685
+ updated_at?: string;
13686
+ };
13687
+ Relationships: [];
13688
+ };
13454
13689
  logistics_stock_alerts: {
13455
13690
  Row: {
13456
13691
  created_at: string;
@@ -13467,6 +13702,7 @@ export type Database = {
13467
13702
  order_id: string | null;
13468
13703
  order_ref: string;
13469
13704
  priority: number;
13705
+ resolution_reason: string | null;
13470
13706
  resolved_at: string | null;
13471
13707
  resolved_by: string | null;
13472
13708
  shortages: Json;
@@ -13489,6 +13725,7 @@ export type Database = {
13489
13725
  order_id?: string | null;
13490
13726
  order_ref: string;
13491
13727
  priority?: number;
13728
+ resolution_reason?: string | null;
13492
13729
  resolved_at?: string | null;
13493
13730
  resolved_by?: string | null;
13494
13731
  shortages?: Json;
@@ -13511,6 +13748,7 @@ export type Database = {
13511
13748
  order_id?: string | null;
13512
13749
  order_ref?: string;
13513
13750
  priority?: number;
13751
+ resolution_reason?: string | null;
13514
13752
  resolved_at?: string | null;
13515
13753
  resolved_by?: string | null;
13516
13754
  shortages?: Json;
@@ -18727,6 +18965,35 @@ export type Database = {
18727
18965
  };
18728
18966
  Relationships: [];
18729
18967
  };
18968
+ print_gebruiker_werkplek: {
18969
+ Row: {
18970
+ created_at: string;
18971
+ updated_at: string;
18972
+ user_id: string;
18973
+ werkplek_id: string;
18974
+ };
18975
+ Insert: {
18976
+ created_at?: string;
18977
+ updated_at?: string;
18978
+ user_id: string;
18979
+ werkplek_id: string;
18980
+ };
18981
+ Update: {
18982
+ created_at?: string;
18983
+ updated_at?: string;
18984
+ user_id?: string;
18985
+ werkplek_id?: string;
18986
+ };
18987
+ Relationships: [
18988
+ {
18989
+ foreignKeyName: "print_gebruiker_werkplek_werkplek_id_fkey";
18990
+ columns: ["werkplek_id"];
18991
+ isOneToOne: false;
18992
+ referencedRelation: "print_werkplekken";
18993
+ referencedColumns: ["id"];
18994
+ }
18995
+ ];
18996
+ };
18730
18997
  print_genegeerde_computers: {
18731
18998
  Row: {
18732
18999
  computer_naam: string;
@@ -19293,6 +19560,103 @@ export type Database = {
19293
19560
  }
19294
19561
  ];
19295
19562
  };
19563
+ print_werkplek_afwijkingen: {
19564
+ Row: {
19565
+ created_at: string;
19566
+ documenttype: string;
19567
+ id: string;
19568
+ printer_id: string | null;
19569
+ updated_at: string;
19570
+ werkplek_id: string;
19571
+ };
19572
+ Insert: {
19573
+ created_at?: string;
19574
+ documenttype: string;
19575
+ id?: string;
19576
+ printer_id?: string | null;
19577
+ updated_at?: string;
19578
+ werkplek_id: string;
19579
+ };
19580
+ Update: {
19581
+ created_at?: string;
19582
+ documenttype?: string;
19583
+ id?: string;
19584
+ printer_id?: string | null;
19585
+ updated_at?: string;
19586
+ werkplek_id?: string;
19587
+ };
19588
+ Relationships: [
19589
+ {
19590
+ foreignKeyName: "print_werkplek_afwijkingen_printer_id_fkey";
19591
+ columns: ["printer_id"];
19592
+ isOneToOne: false;
19593
+ referencedRelation: "printers";
19594
+ referencedColumns: ["id"];
19595
+ },
19596
+ {
19597
+ foreignKeyName: "print_werkplek_afwijkingen_werkplek_id_fkey";
19598
+ columns: ["werkplek_id"];
19599
+ isOneToOne: false;
19600
+ referencedRelation: "print_werkplekken";
19601
+ referencedColumns: ["id"];
19602
+ }
19603
+ ];
19604
+ };
19605
+ print_werkplekken: {
19606
+ Row: {
19607
+ a4_printer_id: string | null;
19608
+ actief: boolean;
19609
+ created_at: string;
19610
+ id: string;
19611
+ label_printer_id: string | null;
19612
+ naam: string;
19613
+ print_plek_id: string | null;
19614
+ updated_at: string;
19615
+ };
19616
+ Insert: {
19617
+ a4_printer_id?: string | null;
19618
+ actief?: boolean;
19619
+ created_at?: string;
19620
+ id?: string;
19621
+ label_printer_id?: string | null;
19622
+ naam: string;
19623
+ print_plek_id?: string | null;
19624
+ updated_at?: string;
19625
+ };
19626
+ Update: {
19627
+ a4_printer_id?: string | null;
19628
+ actief?: boolean;
19629
+ created_at?: string;
19630
+ id?: string;
19631
+ label_printer_id?: string | null;
19632
+ naam?: string;
19633
+ print_plek_id?: string | null;
19634
+ updated_at?: string;
19635
+ };
19636
+ Relationships: [
19637
+ {
19638
+ foreignKeyName: "print_werkplekken_a4_printer_id_fkey";
19639
+ columns: ["a4_printer_id"];
19640
+ isOneToOne: false;
19641
+ referencedRelation: "printers";
19642
+ referencedColumns: ["id"];
19643
+ },
19644
+ {
19645
+ foreignKeyName: "print_werkplekken_label_printer_id_fkey";
19646
+ columns: ["label_printer_id"];
19647
+ isOneToOne: false;
19648
+ referencedRelation: "printers";
19649
+ referencedColumns: ["id"];
19650
+ },
19651
+ {
19652
+ foreignKeyName: "print_werkplekken_print_plek_id_fkey";
19653
+ columns: ["print_plek_id"];
19654
+ isOneToOne: false;
19655
+ referencedRelation: "print_plekken";
19656
+ referencedColumns: ["id"];
19657
+ }
19658
+ ];
19659
+ };
19296
19660
  printer_mappings: {
19297
19661
  Row: {
19298
19662
  created_at: string;
@@ -19400,6 +19764,47 @@ export type Database = {
19400
19764
  }
19401
19765
  ];
19402
19766
  };
19767
+ printer_routes: {
19768
+ Row: {
19769
+ computer_naam: string | null;
19770
+ created_at: string;
19771
+ extern_printer_id: string;
19772
+ geladen_etiket: Json | null;
19773
+ id: string;
19774
+ printer_id: string;
19775
+ prioriteit: number;
19776
+ updated_at: string;
19777
+ };
19778
+ Insert: {
19779
+ computer_naam?: string | null;
19780
+ created_at?: string;
19781
+ extern_printer_id: string;
19782
+ geladen_etiket?: Json | null;
19783
+ id?: string;
19784
+ printer_id: string;
19785
+ prioriteit?: number;
19786
+ updated_at?: string;
19787
+ };
19788
+ Update: {
19789
+ computer_naam?: string | null;
19790
+ created_at?: string;
19791
+ extern_printer_id?: string;
19792
+ geladen_etiket?: Json | null;
19793
+ id?: string;
19794
+ printer_id?: string;
19795
+ prioriteit?: number;
19796
+ updated_at?: string;
19797
+ };
19798
+ Relationships: [
19799
+ {
19800
+ foreignKeyName: "printer_routes_printer_id_fkey";
19801
+ columns: ["printer_id"];
19802
+ isOneToOne: false;
19803
+ referencedRelation: "printers";
19804
+ referencedColumns: ["id"];
19805
+ }
19806
+ ];
19807
+ };
19403
19808
  printers: {
19404
19809
  Row: {
19405
19810
  actief: boolean;
@@ -19409,8 +19814,10 @@ export type Database = {
19409
19814
  driver: string;
19410
19815
  extern_printer_id: string | null;
19411
19816
  formaten_bijgewerkt_op: string | null;
19817
+ geladen_etiket: Json | null;
19412
19818
  id: string;
19413
19819
  ip_adres: string | null;
19820
+ is_virtueel: boolean;
19414
19821
  laatst_gezien: string | null;
19415
19822
  locatie: string;
19416
19823
  merk: string;
@@ -19426,6 +19833,8 @@ export type Database = {
19426
19833
  systeemnaam: string;
19427
19834
  updated_at: string;
19428
19835
  verbinding: Database["public"]["Enums"]["printer_connection"];
19836
+ verborgen: boolean;
19837
+ weergavenaam: string | null;
19429
19838
  };
19430
19839
  Insert: {
19431
19840
  actief?: boolean;
@@ -19435,8 +19844,10 @@ export type Database = {
19435
19844
  driver?: string;
19436
19845
  extern_printer_id?: string | null;
19437
19846
  formaten_bijgewerkt_op?: string | null;
19847
+ geladen_etiket?: Json | null;
19438
19848
  id?: string;
19439
19849
  ip_adres?: string | null;
19850
+ is_virtueel?: boolean;
19440
19851
  laatst_gezien?: string | null;
19441
19852
  locatie?: string;
19442
19853
  merk?: string;
@@ -19452,6 +19863,8 @@ export type Database = {
19452
19863
  systeemnaam?: string;
19453
19864
  updated_at?: string;
19454
19865
  verbinding?: Database["public"]["Enums"]["printer_connection"];
19866
+ verborgen?: boolean;
19867
+ weergavenaam?: string | null;
19455
19868
  };
19456
19869
  Update: {
19457
19870
  actief?: boolean;
@@ -19461,8 +19874,10 @@ export type Database = {
19461
19874
  driver?: string;
19462
19875
  extern_printer_id?: string | null;
19463
19876
  formaten_bijgewerkt_op?: string | null;
19877
+ geladen_etiket?: Json | null;
19464
19878
  id?: string;
19465
19879
  ip_adres?: string | null;
19880
+ is_virtueel?: boolean;
19466
19881
  laatst_gezien?: string | null;
19467
19882
  locatie?: string;
19468
19883
  merk?: string;
@@ -19478,6 +19893,8 @@ export type Database = {
19478
19893
  systeemnaam?: string;
19479
19894
  updated_at?: string;
19480
19895
  verbinding?: Database["public"]["Enums"]["printer_connection"];
19896
+ verborgen?: boolean;
19897
+ weergavenaam?: string | null;
19481
19898
  };
19482
19899
  Relationships: [
19483
19900
  {
@@ -27945,6 +28362,14 @@ export type Database = {
27945
28362
  };
27946
28363
  Returns: number;
27947
28364
  };
28365
+ _jsonb_paden_met_waarde: {
28366
+ Args: {
28367
+ _j: Json;
28368
+ _pad?: string[];
28369
+ _w: string;
28370
+ };
28371
+ Returns: string[][];
28372
+ };
27948
28373
  _migrate_rewrite_stock_key: {
27949
28374
  Args: {
27950
28375
  _from_key: string;
@@ -28764,6 +29189,13 @@ export type Database = {
28764
29189
  table_name: string;
28765
29190
  }[];
28766
29191
  };
29192
+ dashboard_pit_tellingen: {
29193
+ Args: {
29194
+ _mail_connecties?: string[];
29195
+ _vandaag: string;
29196
+ };
29197
+ Returns: Json;
29198
+ };
28767
29199
  dashboard_werkbon_funnel: {
28768
29200
  Args: {
28769
29201
  _periode?: string;
@@ -29091,6 +29523,13 @@ export type Database = {
29091
29523
  stock: number;
29092
29524
  }[];
29093
29525
  };
29526
+ geladen_etiketten: {
29527
+ Args: {
29528
+ _print_plek_id?: string;
29529
+ _werkplek_id?: string;
29530
+ };
29531
+ Returns: Json;
29532
+ };
29094
29533
  get_active_floriday_connection_public: {
29095
29534
  Args: never;
29096
29535
  Returns: {
@@ -29797,6 +30236,13 @@ export type Database = {
29797
30236
  };
29798
30237
  Returns: Json;
29799
30238
  };
30239
+ invoice_register_send: {
30240
+ Args: {
30241
+ _invoice_id: string;
30242
+ _outbox_id: string;
30243
+ };
30244
+ Returns: Json;
30245
+ };
29800
30246
  invoice_resync_concept_from_work_order: {
29801
30247
  Args: {
29802
30248
  _werkbon_id: string;
@@ -29864,6 +30310,19 @@ export type Database = {
29864
30310
  Args: never;
29865
30311
  Returns: boolean;
29866
30312
  };
30313
+ itk_customer_stats: {
30314
+ Args: {
30315
+ _customer_ids: string[];
30316
+ };
30317
+ Returns: {
30318
+ afgerond: number;
30319
+ bezig: number;
30320
+ customer_id: string;
30321
+ klussen: number;
30322
+ omzet_cents: number;
30323
+ open: number;
30324
+ }[];
30325
+ };
29867
30326
  itk_offerte_naar_werkbon: {
29868
30327
  Args: {
29869
30328
  _offerte_id: string;
@@ -29877,6 +30336,16 @@ export type Database = {
29877
30336
  };
29878
30337
  Returns: number;
29879
30338
  };
30339
+ itk_top_customers_by_revenue: {
30340
+ Args: {
30341
+ _limit?: number;
30342
+ };
30343
+ Returns: {
30344
+ customer_id: string;
30345
+ name: string;
30346
+ omzet_cents: number;
30347
+ }[];
30348
+ };
29880
30349
  jwt_has_role: {
29881
30350
  Args: {
29882
30351
  _role: Database["public"]["Enums"]["app_role"];
@@ -29909,6 +30378,19 @@ export type Database = {
29909
30378
  status: string;
29910
30379
  }[];
29911
30380
  };
30381
+ layout_verwijzing_omzetten: {
30382
+ Args: {
30383
+ _nieuw: string;
30384
+ _oud: string;
30385
+ _rij_id: string;
30386
+ _tabel: string;
30387
+ };
30388
+ Returns: undefined;
30389
+ };
30390
+ layout_verwijzingen: {
30391
+ Args: never;
30392
+ Returns: Json;
30393
+ };
29912
30394
  list_medewerkers: {
29913
30395
  Args: never;
29914
30396
  Returns: {
@@ -30074,6 +30556,20 @@ export type Database = {
30074
30556
  };
30075
30557
  Returns: boolean;
30076
30558
  };
30559
+ logistics_archived_orders: {
30560
+ Args: never;
30561
+ Returns: {
30562
+ archived_at: string;
30563
+ attempts: number;
30564
+ delivery_date: string;
30565
+ last_error: string;
30566
+ order_id: string;
30567
+ order_ref: string;
30568
+ queue_id: string;
30569
+ reason: string;
30570
+ reason_code: string;
30571
+ }[];
30572
+ };
30077
30573
  logistics_backorder_allowed: {
30078
30574
  Args: {
30079
30575
  p_strategy_id?: string;
@@ -30122,6 +30618,13 @@ export type Database = {
30122
30618
  Args: never;
30123
30619
  Returns: Json;
30124
30620
  };
30621
+ logistics_brief_transport: {
30622
+ Args: {
30623
+ p_cart_id?: string;
30624
+ p_order_id: string;
30625
+ };
30626
+ Returns: Json;
30627
+ };
30125
30628
  logistics_buffer_criteria: {
30126
30629
  Args: {
30127
30630
  p_settings: Json;
@@ -30368,6 +30871,12 @@ export type Database = {
30368
30871
  };
30369
30872
  Returns: Json;
30370
30873
  };
30874
+ logistics_cart_sticker_state: {
30875
+ Args: {
30876
+ p_cart_id: string;
30877
+ };
30878
+ Returns: Json;
30879
+ };
30371
30880
  logistics_cart_units: {
30372
30881
  Args: {
30373
30882
  p_from?: string;
@@ -31206,6 +31715,12 @@ export type Database = {
31206
31715
  };
31207
31716
  Returns: string[];
31208
31717
  };
31718
+ logistics_order_definitively_blocked: {
31719
+ Args: {
31720
+ p_order_id: string;
31721
+ };
31722
+ Returns: Json;
31723
+ };
31209
31724
  logistics_order_documents_ready: {
31210
31725
  Args: {
31211
31726
  p_order_ref: string;
@@ -31274,6 +31789,12 @@ export type Database = {
31274
31789
  };
31275
31790
  Returns: boolean;
31276
31791
  };
31792
+ logistics_order_is_archived: {
31793
+ Args: {
31794
+ p_order_id: string;
31795
+ };
31796
+ Returns: Json;
31797
+ };
31277
31798
  logistics_order_is_backlog: {
31278
31799
  Args: {
31279
31800
  p_order_id: string;
@@ -31384,6 +31905,12 @@ export type Database = {
31384
31905
  };
31385
31906
  Returns: boolean;
31386
31907
  };
31908
+ logistics_order_sticker_meldingen: {
31909
+ Args: {
31910
+ p_order_id: string;
31911
+ };
31912
+ Returns: Json;
31913
+ };
31387
31914
  logistics_packing_autofix: {
31388
31915
  Args: {
31389
31916
  p_limit?: number;
@@ -31538,6 +32065,14 @@ export type Database = {
31538
32065
  order_id: string;
31539
32066
  }[];
31540
32067
  };
32068
+ logistics_plan_close_claim: {
32069
+ Args: {
32070
+ p_id: string;
32071
+ p_reason: string;
32072
+ p_reason_code?: string;
32073
+ };
32074
+ Returns: boolean;
32075
+ };
31541
32076
  logistics_plan_coverage_check: {
31542
32077
  Args: {
31543
32078
  p_limit?: number;
@@ -31593,6 +32128,10 @@ export type Database = {
31593
32128
  };
31594
32129
  Returns: number;
31595
32130
  };
32131
+ logistics_plan_housekeeping: {
32132
+ Args: never;
32133
+ Returns: Json;
32134
+ };
31596
32135
  logistics_plan_impact_orders: {
31597
32136
  Args: {
31598
32137
  p_order_id: string;
@@ -31704,6 +32243,12 @@ export type Database = {
31704
32243
  Args: never;
31705
32244
  Returns: number;
31706
32245
  };
32246
+ logistics_plan_unarchive: {
32247
+ Args: {
32248
+ p_order_ids: string[];
32249
+ };
32250
+ Returns: number;
32251
+ };
31707
32252
  logistics_plan_wachttijd: {
31708
32253
  Args: {
31709
32254
  p_order_id: string;
@@ -32283,10 +32828,54 @@ export type Database = {
32283
32828
  };
32284
32829
  Returns: Json;
32285
32830
  };
32831
+ logistics_sticker_cart_plek: {
32832
+ Args: {
32833
+ _cart: string;
32834
+ _fallback: string;
32835
+ };
32836
+ Returns: string;
32837
+ };
32286
32838
  logistics_sticker_follows_slip: {
32287
32839
  Args: never;
32288
32840
  Returns: boolean;
32289
32841
  };
32842
+ logistics_sticker_moment: {
32843
+ Args: {
32844
+ _cart: string;
32845
+ _hours: number;
32846
+ _order_number: string;
32847
+ _release: string;
32848
+ };
32849
+ Returns: boolean;
32850
+ };
32851
+ logistics_sticker_parse_size: {
32852
+ Args: {
32853
+ p: Json;
32854
+ };
32855
+ Returns: number[];
32856
+ };
32857
+ logistics_sticker_sync: {
32858
+ Args: {
32859
+ p_limit?: number;
32860
+ };
32861
+ Returns: Json;
32862
+ };
32863
+ logistics_sticker_upsert: {
32864
+ Args: {
32865
+ _bron: string;
32866
+ _cart: string;
32867
+ _fo: string;
32868
+ _kopieen: number;
32869
+ _order: string;
32870
+ _order_number: string;
32871
+ _plek: string;
32872
+ _reden: string;
32873
+ _size: number[];
32874
+ _soort: string;
32875
+ _status: string;
32876
+ };
32877
+ Returns: undefined;
32878
+ };
32290
32879
  logistics_subtract_working_minutes: {
32291
32880
  Args: {
32292
32881
  p_deadline: string;
@@ -33479,6 +34068,13 @@ export type Database = {
33479
34068
  };
33480
34069
  Returns: Json;
33481
34070
  };
34071
+ pickstation_cart_sticker_state: {
34072
+ Args: {
34073
+ p_cart_id: string;
34074
+ p_slug: string;
34075
+ };
34076
+ Returns: Json;
34077
+ };
33482
34078
  pickstation_get_orders_raw: {
33483
34079
  Args: never;
33484
34080
  Returns: Json;
@@ -33501,6 +34097,13 @@ export type Database = {
33501
34097
  };
33502
34098
  Returns: undefined;
33503
34099
  };
34100
+ pickstation_order_sticker_meldingen: {
34101
+ Args: {
34102
+ p_order_id: string;
34103
+ p_slug: string;
34104
+ };
34105
+ Returns: Json;
34106
+ };
33504
34107
  pickstation_resolve_delivery_orders: {
33505
34108
  Args: {
33506
34109
  p_sales_order_ids: string[];
@@ -33566,6 +34169,12 @@ export type Database = {
33566
34169
  };
33567
34170
  Returns: undefined;
33568
34171
  };
34172
+ planning_cleanup_old_logs: {
34173
+ Args: {
34174
+ _keep_days?: number;
34175
+ };
34176
+ Returns: number;
34177
+ };
33569
34178
  planning_html_escape: {
33570
34179
  Args: {
33571
34180
  t: string;
@@ -33632,6 +34241,12 @@ export type Database = {
33632
34241
  };
33633
34242
  Returns: string;
33634
34243
  };
34244
+ print_formaat_klasse: {
34245
+ Args: {
34246
+ _code: string;
34247
+ };
34248
+ Returns: string;
34249
+ };
33635
34250
  print_job_status_uitgebreid: {
33636
34251
  Args: {
33637
34252
  _job_id: string;
@@ -33661,6 +34276,14 @@ export type Database = {
33661
34276
  };
33662
34277
  Returns: undefined;
33663
34278
  };
34279
+ print_werkplek_keuze: {
34280
+ Args: {
34281
+ _documenttype: string;
34282
+ _klasse: string;
34283
+ _werkplek_id: string;
34284
+ };
34285
+ Returns: Json;
34286
+ };
33664
34287
  printer_gebruik: {
33665
34288
  Args: {
33666
34289
  _printer: string;
@@ -33674,6 +34297,7 @@ export type Database = {
33674
34297
  _papierformaat?: string;
33675
34298
  _print_plek_id?: string;
33676
34299
  _werkplek?: string;
34300
+ _werkplek_id?: string;
33677
34301
  };
33678
34302
  Returns: Json;
33679
34303
  };
@@ -34985,6 +35609,10 @@ export type Database = {
34985
35609
  };
34986
35610
  Returns: undefined;
34987
35611
  };
35612
+ uren_cao_settings_zorg: {
35613
+ Args: never;
35614
+ Returns: string;
35615
+ };
34988
35616
  uren_collega_agenda: {
34989
35617
  Args: {
34990
35618
  _monteur: string;
@@ -35145,10 +35773,22 @@ export type Database = {
35145
35773
  Args: never;
35146
35774
  Returns: number;
35147
35775
  };
35776
+ uren_module_gezondheid: {
35777
+ Args: never;
35778
+ Returns: Json;
35779
+ };
35780
+ uren_module_status: {
35781
+ Args: never;
35782
+ Returns: Json;
35783
+ };
35148
35784
  uren_my_monteur_id: {
35149
35785
  Args: never;
35150
35786
  Returns: string;
35151
35787
  };
35788
+ uren_opschonen_indien_nodig: {
35789
+ Args: never;
35790
+ Returns: boolean;
35791
+ };
35152
35792
  uren_overuren_indienen: {
35153
35793
  Args: {
35154
35794
  _datum: string;
@@ -35552,6 +36192,16 @@ export type Database = {
35552
36192
  total_minutes: number;
35553
36193
  }[];
35554
36194
  };
36195
+ werkplek_omzetting_toepassen: {
36196
+ Args: {
36197
+ _werkplekken: Json;
36198
+ };
36199
+ Returns: Json;
36200
+ };
36201
+ werkplek_omzetting_voorstel: {
36202
+ Args: never;
36203
+ Returns: Json;
36204
+ };
35555
36205
  wo_boek_standby_uren: {
35556
36206
  Args: {
35557
36207
  _datum: string;