@flowselections/logistiek-engine 1.0.138 → 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 +728 -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 +16 -1
  23. package/dist-lib/lib/handlers/logistics-tick.server.js +21 -0
  24. package/dist-lib/lib/layoutPrint.server.d.ts +18 -0
  25. package/dist-lib/lib/layoutPrint.server.d.ts.map +1 -1
  26. package/dist-lib/lib/layoutPrint.server.js +32 -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 +338 -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 +18 -1
  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
  {
@@ -19491,6 +19908,7 @@ export type Database = {
19491
19908
  };
19492
19909
  printnode_webhook_koppeling: {
19493
19910
  Row: {
19911
+ bereikbaar: string | null;
19494
19912
  created_at: string;
19495
19913
  fout: string | null;
19496
19914
  geheim: string | null;
@@ -19499,13 +19917,23 @@ export type Database = {
19499
19917
  laatst_ontvangen_op: string | null;
19500
19918
  laatste_poging_op: string | null;
19501
19919
  melding: string | null;
19920
+ pn_geslaagd: number | null;
19921
+ pn_geslaagd_vorig: number | null;
19922
+ pn_mislukt: number | null;
19923
+ pn_ontvangen: number | null;
19924
+ pn_opgehaald_op: string | null;
19925
+ pn_url: string | null;
19926
+ pn_weggegooid: number | null;
19502
19927
  secret_veld: string | null;
19503
19928
  status: string;
19504
19929
  updated_at: string;
19505
19930
  url: string | null;
19506
19931
  webhook_id: number | null;
19932
+ zelftest_fout: string | null;
19933
+ zelftest_op: string | null;
19507
19934
  };
19508
19935
  Insert: {
19936
+ bereikbaar?: string | null;
19509
19937
  created_at?: string;
19510
19938
  fout?: string | null;
19511
19939
  geheim?: string | null;
@@ -19514,13 +19942,23 @@ export type Database = {
19514
19942
  laatst_ontvangen_op?: string | null;
19515
19943
  laatste_poging_op?: string | null;
19516
19944
  melding?: string | null;
19945
+ pn_geslaagd?: number | null;
19946
+ pn_geslaagd_vorig?: number | null;
19947
+ pn_mislukt?: number | null;
19948
+ pn_ontvangen?: number | null;
19949
+ pn_opgehaald_op?: string | null;
19950
+ pn_url?: string | null;
19951
+ pn_weggegooid?: number | null;
19517
19952
  secret_veld?: string | null;
19518
19953
  status?: string;
19519
19954
  updated_at?: string;
19520
19955
  url?: string | null;
19521
19956
  webhook_id?: number | null;
19957
+ zelftest_fout?: string | null;
19958
+ zelftest_op?: string | null;
19522
19959
  };
19523
19960
  Update: {
19961
+ bereikbaar?: string | null;
19524
19962
  created_at?: string;
19525
19963
  fout?: string | null;
19526
19964
  geheim?: string | null;
@@ -19529,11 +19967,53 @@ export type Database = {
19529
19967
  laatst_ontvangen_op?: string | null;
19530
19968
  laatste_poging_op?: string | null;
19531
19969
  melding?: string | null;
19970
+ pn_geslaagd?: number | null;
19971
+ pn_geslaagd_vorig?: number | null;
19972
+ pn_mislukt?: number | null;
19973
+ pn_ontvangen?: number | null;
19974
+ pn_opgehaald_op?: string | null;
19975
+ pn_url?: string | null;
19976
+ pn_weggegooid?: number | null;
19532
19977
  secret_veld?: string | null;
19533
19978
  status?: string;
19534
19979
  updated_at?: string;
19535
19980
  url?: string | null;
19536
19981
  webhook_id?: number | null;
19982
+ zelftest_fout?: string | null;
19983
+ zelftest_op?: string | null;
19984
+ };
19985
+ Relationships: [];
19986
+ };
19987
+ printnode_webhook_meldingen: {
19988
+ Row: {
19989
+ antwoord: Json | null;
19990
+ gematcht: number;
19991
+ http_status: number;
19992
+ id: number;
19993
+ niet_gematcht: string[];
19994
+ ontvangen_op: string;
19995
+ printnode_ids: string[];
19996
+ soorten: string[];
19997
+ };
19998
+ Insert: {
19999
+ antwoord?: Json | null;
20000
+ gematcht?: number;
20001
+ http_status: number;
20002
+ id?: never;
20003
+ niet_gematcht?: string[];
20004
+ ontvangen_op?: string;
20005
+ printnode_ids?: string[];
20006
+ soorten?: string[];
20007
+ };
20008
+ Update: {
20009
+ antwoord?: Json | null;
20010
+ gematcht?: number;
20011
+ http_status?: number;
20012
+ id?: never;
20013
+ niet_gematcht?: string[];
20014
+ ontvangen_op?: string;
20015
+ printnode_ids?: string[];
20016
+ soorten?: string[];
19537
20017
  };
19538
20018
  Relationships: [];
19539
20019
  };
@@ -27882,6 +28362,14 @@ export type Database = {
27882
28362
  };
27883
28363
  Returns: number;
27884
28364
  };
28365
+ _jsonb_paden_met_waarde: {
28366
+ Args: {
28367
+ _j: Json;
28368
+ _pad?: string[];
28369
+ _w: string;
28370
+ };
28371
+ Returns: string[][];
28372
+ };
27885
28373
  _migrate_rewrite_stock_key: {
27886
28374
  Args: {
27887
28375
  _from_key: string;
@@ -28701,6 +29189,13 @@ export type Database = {
28701
29189
  table_name: string;
28702
29190
  }[];
28703
29191
  };
29192
+ dashboard_pit_tellingen: {
29193
+ Args: {
29194
+ _mail_connecties?: string[];
29195
+ _vandaag: string;
29196
+ };
29197
+ Returns: Json;
29198
+ };
28704
29199
  dashboard_werkbon_funnel: {
28705
29200
  Args: {
28706
29201
  _periode?: string;
@@ -29028,6 +29523,13 @@ export type Database = {
29028
29523
  stock: number;
29029
29524
  }[];
29030
29525
  };
29526
+ geladen_etiketten: {
29527
+ Args: {
29528
+ _print_plek_id?: string;
29529
+ _werkplek_id?: string;
29530
+ };
29531
+ Returns: Json;
29532
+ };
29031
29533
  get_active_floriday_connection_public: {
29032
29534
  Args: never;
29033
29535
  Returns: {
@@ -29734,6 +30236,13 @@ export type Database = {
29734
30236
  };
29735
30237
  Returns: Json;
29736
30238
  };
30239
+ invoice_register_send: {
30240
+ Args: {
30241
+ _invoice_id: string;
30242
+ _outbox_id: string;
30243
+ };
30244
+ Returns: Json;
30245
+ };
29737
30246
  invoice_resync_concept_from_work_order: {
29738
30247
  Args: {
29739
30248
  _werkbon_id: string;
@@ -29801,6 +30310,19 @@ export type Database = {
29801
30310
  Args: never;
29802
30311
  Returns: boolean;
29803
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
+ };
29804
30326
  itk_offerte_naar_werkbon: {
29805
30327
  Args: {
29806
30328
  _offerte_id: string;
@@ -29814,6 +30336,16 @@ export type Database = {
29814
30336
  };
29815
30337
  Returns: number;
29816
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
+ };
29817
30349
  jwt_has_role: {
29818
30350
  Args: {
29819
30351
  _role: Database["public"]["Enums"]["app_role"];
@@ -29838,10 +30370,27 @@ export type Database = {
29838
30370
  };
29839
30371
  Returns: {
29840
30372
  bestaand: boolean;
30373
+ fout_bericht: string;
30374
+ fout_code: string;
29841
30375
  job_id: string;
30376
+ mislukt: boolean;
29842
30377
  printer_id: string;
30378
+ status: string;
29843
30379
  }[];
29844
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
+ };
29845
30394
  list_medewerkers: {
29846
30395
  Args: never;
29847
30396
  Returns: {
@@ -30007,6 +30556,20 @@ export type Database = {
30007
30556
  };
30008
30557
  Returns: boolean;
30009
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
+ };
30010
30573
  logistics_backorder_allowed: {
30011
30574
  Args: {
30012
30575
  p_strategy_id?: string;
@@ -30055,6 +30618,13 @@ export type Database = {
30055
30618
  Args: never;
30056
30619
  Returns: Json;
30057
30620
  };
30621
+ logistics_brief_transport: {
30622
+ Args: {
30623
+ p_cart_id?: string;
30624
+ p_order_id: string;
30625
+ };
30626
+ Returns: Json;
30627
+ };
30058
30628
  logistics_buffer_criteria: {
30059
30629
  Args: {
30060
30630
  p_settings: Json;
@@ -30301,6 +30871,12 @@ export type Database = {
30301
30871
  };
30302
30872
  Returns: Json;
30303
30873
  };
30874
+ logistics_cart_sticker_state: {
30875
+ Args: {
30876
+ p_cart_id: string;
30877
+ };
30878
+ Returns: Json;
30879
+ };
30304
30880
  logistics_cart_units: {
30305
30881
  Args: {
30306
30882
  p_from?: string;
@@ -31139,6 +31715,12 @@ export type Database = {
31139
31715
  };
31140
31716
  Returns: string[];
31141
31717
  };
31718
+ logistics_order_definitively_blocked: {
31719
+ Args: {
31720
+ p_order_id: string;
31721
+ };
31722
+ Returns: Json;
31723
+ };
31142
31724
  logistics_order_documents_ready: {
31143
31725
  Args: {
31144
31726
  p_order_ref: string;
@@ -31207,6 +31789,12 @@ export type Database = {
31207
31789
  };
31208
31790
  Returns: boolean;
31209
31791
  };
31792
+ logistics_order_is_archived: {
31793
+ Args: {
31794
+ p_order_id: string;
31795
+ };
31796
+ Returns: Json;
31797
+ };
31210
31798
  logistics_order_is_backlog: {
31211
31799
  Args: {
31212
31800
  p_order_id: string;
@@ -31317,6 +31905,12 @@ export type Database = {
31317
31905
  };
31318
31906
  Returns: boolean;
31319
31907
  };
31908
+ logistics_order_sticker_meldingen: {
31909
+ Args: {
31910
+ p_order_id: string;
31911
+ };
31912
+ Returns: Json;
31913
+ };
31320
31914
  logistics_packing_autofix: {
31321
31915
  Args: {
31322
31916
  p_limit?: number;
@@ -31471,6 +32065,14 @@ export type Database = {
31471
32065
  order_id: string;
31472
32066
  }[];
31473
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
+ };
31474
32076
  logistics_plan_coverage_check: {
31475
32077
  Args: {
31476
32078
  p_limit?: number;
@@ -31526,6 +32128,10 @@ export type Database = {
31526
32128
  };
31527
32129
  Returns: number;
31528
32130
  };
32131
+ logistics_plan_housekeeping: {
32132
+ Args: never;
32133
+ Returns: Json;
32134
+ };
31529
32135
  logistics_plan_impact_orders: {
31530
32136
  Args: {
31531
32137
  p_order_id: string;
@@ -31637,6 +32243,12 @@ export type Database = {
31637
32243
  Args: never;
31638
32244
  Returns: number;
31639
32245
  };
32246
+ logistics_plan_unarchive: {
32247
+ Args: {
32248
+ p_order_ids: string[];
32249
+ };
32250
+ Returns: number;
32251
+ };
31640
32252
  logistics_plan_wachttijd: {
31641
32253
  Args: {
31642
32254
  p_order_id: string;
@@ -32216,10 +32828,54 @@ export type Database = {
32216
32828
  };
32217
32829
  Returns: Json;
32218
32830
  };
32831
+ logistics_sticker_cart_plek: {
32832
+ Args: {
32833
+ _cart: string;
32834
+ _fallback: string;
32835
+ };
32836
+ Returns: string;
32837
+ };
32219
32838
  logistics_sticker_follows_slip: {
32220
32839
  Args: never;
32221
32840
  Returns: boolean;
32222
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
+ };
32223
32879
  logistics_subtract_working_minutes: {
32224
32880
  Args: {
32225
32881
  p_deadline: string;
@@ -33412,6 +34068,13 @@ export type Database = {
33412
34068
  };
33413
34069
  Returns: Json;
33414
34070
  };
34071
+ pickstation_cart_sticker_state: {
34072
+ Args: {
34073
+ p_cart_id: string;
34074
+ p_slug: string;
34075
+ };
34076
+ Returns: Json;
34077
+ };
33415
34078
  pickstation_get_orders_raw: {
33416
34079
  Args: never;
33417
34080
  Returns: Json;
@@ -33434,6 +34097,13 @@ export type Database = {
33434
34097
  };
33435
34098
  Returns: undefined;
33436
34099
  };
34100
+ pickstation_order_sticker_meldingen: {
34101
+ Args: {
34102
+ p_order_id: string;
34103
+ p_slug: string;
34104
+ };
34105
+ Returns: Json;
34106
+ };
33437
34107
  pickstation_resolve_delivery_orders: {
33438
34108
  Args: {
33439
34109
  p_sales_order_ids: string[];
@@ -33499,6 +34169,12 @@ export type Database = {
33499
34169
  };
33500
34170
  Returns: undefined;
33501
34171
  };
34172
+ planning_cleanup_old_logs: {
34173
+ Args: {
34174
+ _keep_days?: number;
34175
+ };
34176
+ Returns: number;
34177
+ };
33502
34178
  planning_html_escape: {
33503
34179
  Args: {
33504
34180
  t: string;
@@ -33565,6 +34241,23 @@ export type Database = {
33565
34241
  };
33566
34242
  Returns: string;
33567
34243
  };
34244
+ print_formaat_klasse: {
34245
+ Args: {
34246
+ _code: string;
34247
+ };
34248
+ Returns: string;
34249
+ };
34250
+ print_job_status_uitgebreid: {
34251
+ Args: {
34252
+ _job_id: string;
34253
+ };
34254
+ Returns: {
34255
+ fout_bericht: string;
34256
+ fout_code: string;
34257
+ mislukt: boolean;
34258
+ status: string;
34259
+ }[];
34260
+ };
33568
34261
  print_preview_toestaan: {
33569
34262
  Args: {
33570
34263
  _max?: number;
@@ -33583,6 +34276,14 @@ export type Database = {
33583
34276
  };
33584
34277
  Returns: undefined;
33585
34278
  };
34279
+ print_werkplek_keuze: {
34280
+ Args: {
34281
+ _documenttype: string;
34282
+ _klasse: string;
34283
+ _werkplek_id: string;
34284
+ };
34285
+ Returns: Json;
34286
+ };
33586
34287
  printer_gebruik: {
33587
34288
  Args: {
33588
34289
  _printer: string;
@@ -33596,6 +34297,7 @@ export type Database = {
33596
34297
  _papierformaat?: string;
33597
34298
  _print_plek_id?: string;
33598
34299
  _werkplek?: string;
34300
+ _werkplek_id?: string;
33599
34301
  };
33600
34302
  Returns: Json;
33601
34303
  };
@@ -34907,6 +35609,10 @@ export type Database = {
34907
35609
  };
34908
35610
  Returns: undefined;
34909
35611
  };
35612
+ uren_cao_settings_zorg: {
35613
+ Args: never;
35614
+ Returns: string;
35615
+ };
34910
35616
  uren_collega_agenda: {
34911
35617
  Args: {
34912
35618
  _monteur: string;
@@ -35067,10 +35773,22 @@ export type Database = {
35067
35773
  Args: never;
35068
35774
  Returns: number;
35069
35775
  };
35776
+ uren_module_gezondheid: {
35777
+ Args: never;
35778
+ Returns: Json;
35779
+ };
35780
+ uren_module_status: {
35781
+ Args: never;
35782
+ Returns: Json;
35783
+ };
35070
35784
  uren_my_monteur_id: {
35071
35785
  Args: never;
35072
35786
  Returns: string;
35073
35787
  };
35788
+ uren_opschonen_indien_nodig: {
35789
+ Args: never;
35790
+ Returns: boolean;
35791
+ };
35074
35792
  uren_overuren_indienen: {
35075
35793
  Args: {
35076
35794
  _datum: string;
@@ -35474,6 +36192,16 @@ export type Database = {
35474
36192
  total_minutes: number;
35475
36193
  }[];
35476
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
+ };
35477
36205
  wo_boek_standby_uren: {
35478
36206
  Args: {
35479
36207
  _datum: string;