@flowselections/floriday-afhandeling-module 1.0.42 → 1.0.43

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 (92) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts +3 -1
  2. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/AutoProcessStatus.js +36 -3
  4. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/ControlePage.js +23 -25
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/DagDetailDialog.js +410 -121
  10. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/PickAgendaView.js +4 -4
  12. package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -1
  13. package/dist-lib/components/afhandeling/PickingPage.js +1 -1
  14. package/dist-lib/components/afhandeling/ScanControleView.d.ts +2 -0
  15. package/dist-lib/components/afhandeling/ScanControleView.d.ts.map +1 -0
  16. package/dist-lib/components/afhandeling/ScanControleView.js +158 -0
  17. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  18. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  19. package/dist-lib/components/afhandeling/WeekAgendaView.js +1 -1
  20. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  21. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -1
  22. package/dist-lib/hooks/useCartIndex.js +6 -1
  23. package/dist-lib/hooks/useEngineTasks.js +1 -1
  24. package/dist-lib/hooks/useKnownOrders.d.ts +11 -0
  25. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -0
  26. package/dist-lib/hooks/useKnownOrders.js +54 -0
  27. package/dist-lib/hooks/useOrderBuffers.d.ts +17 -0
  28. package/dist-lib/hooks/useOrderBuffers.d.ts.map +1 -0
  29. package/dist-lib/hooks/useOrderBuffers.js +53 -0
  30. package/dist-lib/hooks/useOrderPickDates.d.ts +10 -0
  31. package/dist-lib/hooks/useOrderPickDates.d.ts.map +1 -0
  32. package/dist-lib/hooks/useOrderPickDates.js +62 -0
  33. package/dist-lib/hooks/useOrderPlanning.d.ts +1 -3
  34. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  35. package/dist-lib/hooks/useOrderPlanning.js +9 -13
  36. package/dist-lib/hooks/usePickAgenda.d.ts +0 -5
  37. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  38. package/dist-lib/hooks/usePickAgenda.js +62 -9
  39. package/dist-lib/hooks/usePickMode.d.ts +10 -0
  40. package/dist-lib/hooks/usePickMode.d.ts.map +1 -0
  41. package/dist-lib/hooks/usePickMode.js +31 -0
  42. package/dist-lib/index.d.ts +2 -0
  43. package/dist-lib/index.d.ts.map +1 -1
  44. package/dist-lib/index.js +19 -6
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2027 -86
  46. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/client.server.d.ts +2027 -86
  48. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  49. package/dist-lib/integrations/supabase/client.server.js +1 -1
  50. package/dist-lib/integrations/supabase/moduleClient.d.ts +2027 -86
  51. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  52. package/dist-lib/integrations/supabase/types.d.ts +2097 -114
  53. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  54. package/dist-lib/integrations/supabase/types.js +1 -0
  55. package/dist-lib/lib/afhandelingSettings.functions.d.ts +4018 -140
  56. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  58. package/dist-lib/lib/carriers.functions.d.ts +10072 -367
  59. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/cartAssignments.functions.d.ts +10072 -367
  61. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/cartControl.functions.d.ts +45879 -579
  63. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/cartControl.functions.js +134 -10
  65. package/dist-lib/lib/deliveryNote.functions.d.ts +25891 -0
  66. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -0
  67. package/dist-lib/lib/deliveryNote.functions.js +32 -0
  68. package/dist-lib/lib/engineLayouts.functions.d.ts +25889 -0
  69. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -0
  70. package/dist-lib/lib/engineLayouts.functions.js +42 -0
  71. package/dist-lib/lib/floriday.functions.d.ts +27885 -52
  72. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  73. package/dist-lib/lib/floriday.functions.js +118 -343
  74. package/dist-lib/lib/logisticsEngine/reschedule.d.ts +17 -0
  75. package/dist-lib/lib/logisticsEngine/reschedule.d.ts.map +1 -1
  76. package/dist-lib/lib/logisticsEngine/reschedule.js +63 -0
  77. package/dist-lib/lib/orderFulfilment.functions.d.ts +25891 -0
  78. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -0
  79. package/dist-lib/lib/orderFulfilment.functions.js +35 -0
  80. package/dist-lib/lib/orderStatus.d.ts +10 -0
  81. package/dist-lib/lib/orderStatus.d.ts.map +1 -0
  82. package/dist-lib/lib/orderStatus.js +81 -0
  83. package/dist-lib/lib/pickDates.functions.d.ts +25896 -0
  84. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -0
  85. package/dist-lib/lib/pickDates.functions.js +56 -0
  86. package/dist-lib/lib/pickMode.d.ts +14 -0
  87. package/dist-lib/lib/pickMode.d.ts.map +1 -0
  88. package/dist-lib/lib/pickMode.js +103 -0
  89. package/dist-lib/lib/printing.d.ts +3 -1
  90. package/dist-lib/lib/printing.d.ts.map +1 -1
  91. package/dist-lib/lib/printing.js +1 -0
  92. package/package.json +1 -1
@@ -709,6 +709,7 @@ export type Database = {
709
709
  raw: Json;
710
710
  updated_at: string;
711
711
  valuta: string;
712
+ velden: Json;
712
713
  };
713
714
  Insert: {
714
715
  artikelcode: string;
@@ -726,6 +727,7 @@ export type Database = {
726
727
  raw?: Json;
727
728
  updated_at?: string;
728
729
  valuta?: string;
730
+ velden?: Json;
729
731
  };
730
732
  Update: {
731
733
  artikelcode?: string;
@@ -743,6 +745,7 @@ export type Database = {
743
745
  raw?: Json;
744
746
  updated_at?: string;
745
747
  valuta?: string;
748
+ velden?: Json;
746
749
  };
747
750
  Relationships: [];
748
751
  };
@@ -1448,8 +1451,9 @@ export type Database = {
1448
1451
  Row: {
1449
1452
  assigned_at: string;
1450
1453
  cart_index: number;
1451
- cart_number: string;
1452
- day_seq: number;
1454
+ cart_number: string | null;
1455
+ day_seq: number | null;
1456
+ delivered_at: string | null;
1453
1457
  id: string;
1454
1458
  order_id: string;
1455
1459
  order_source: string;
@@ -1459,8 +1463,9 @@ export type Database = {
1459
1463
  Insert: {
1460
1464
  assigned_at?: string;
1461
1465
  cart_index: number;
1462
- cart_number: string;
1463
- day_seq: number;
1466
+ cart_number?: string | null;
1467
+ day_seq?: number | null;
1468
+ delivered_at?: string | null;
1464
1469
  id?: string;
1465
1470
  order_id: string;
1466
1471
  order_source: string;
@@ -1470,8 +1475,9 @@ export type Database = {
1470
1475
  Update: {
1471
1476
  assigned_at?: string;
1472
1477
  cart_index?: number;
1473
- cart_number?: string;
1474
- day_seq?: number;
1478
+ cart_number?: string | null;
1479
+ day_seq?: number | null;
1480
+ delivered_at?: string | null;
1475
1481
  id?: string;
1476
1482
  order_id?: string;
1477
1483
  order_source?: string;
@@ -1572,6 +1578,13 @@ export type Database = {
1572
1578
  updated_at?: string;
1573
1579
  };
1574
1580
  Relationships: [
1581
+ {
1582
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1583
+ columns: ["product_id"];
1584
+ isOneToOne: true;
1585
+ referencedRelation: "logistics_product_dimensions";
1586
+ referencedColumns: ["product_id"];
1587
+ },
1575
1588
  {
1576
1589
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1577
1590
  columns: ["product_id"];
@@ -7247,6 +7260,53 @@ export type Database = {
7247
7260
  };
7248
7261
  Relationships: [];
7249
7262
  };
7263
+ floriday_status_sync_queue: {
7264
+ Row: {
7265
+ attempts: number;
7266
+ created_at: string;
7267
+ error: string | null;
7268
+ floriday_sales_order_id: string;
7269
+ order_id: string;
7270
+ processed_at: string | null;
7271
+ requested_at: string;
7272
+ state: string;
7273
+ target_status: string;
7274
+ updated_at: string;
7275
+ };
7276
+ Insert: {
7277
+ attempts?: number;
7278
+ created_at?: string;
7279
+ error?: string | null;
7280
+ floriday_sales_order_id: string;
7281
+ order_id: string;
7282
+ processed_at?: string | null;
7283
+ requested_at?: string;
7284
+ state?: string;
7285
+ target_status: string;
7286
+ updated_at?: string;
7287
+ };
7288
+ Update: {
7289
+ attempts?: number;
7290
+ created_at?: string;
7291
+ error?: string | null;
7292
+ floriday_sales_order_id?: string;
7293
+ order_id?: string;
7294
+ processed_at?: string | null;
7295
+ requested_at?: string;
7296
+ state?: string;
7297
+ target_status?: string;
7298
+ updated_at?: string;
7299
+ };
7300
+ Relationships: [
7301
+ {
7302
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7303
+ columns: ["order_id"];
7304
+ isOneToOne: true;
7305
+ referencedRelation: "orders";
7306
+ referencedColumns: ["id"];
7307
+ }
7308
+ ];
7309
+ };
7250
7310
  floriday_sync_cursors: {
7251
7311
  Row: {
7252
7312
  connection_id: string;
@@ -8523,10 +8583,12 @@ export type Database = {
8523
8583
  general_email: string | null;
8524
8584
  general_phone: string | null;
8525
8585
  id: string;
8586
+ kvk_number: string | null;
8526
8587
  legacy_customer_id: string | null;
8527
8588
  name: string;
8528
8589
  segment: Database["public"]["Enums"]["itk_customer_segment"];
8529
8590
  updated_at: string;
8591
+ vat_number: string | null;
8530
8592
  };
8531
8593
  Insert: {
8532
8594
  billing_city?: string | null;
@@ -8537,10 +8599,12 @@ export type Database = {
8537
8599
  general_email?: string | null;
8538
8600
  general_phone?: string | null;
8539
8601
  id?: string;
8602
+ kvk_number?: string | null;
8540
8603
  legacy_customer_id?: string | null;
8541
8604
  name: string;
8542
8605
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8543
8606
  updated_at?: string;
8607
+ vat_number?: string | null;
8544
8608
  };
8545
8609
  Update: {
8546
8610
  billing_city?: string | null;
@@ -8551,10 +8615,12 @@ export type Database = {
8551
8615
  general_email?: string | null;
8552
8616
  general_phone?: string | null;
8553
8617
  id?: string;
8618
+ kvk_number?: string | null;
8554
8619
  legacy_customer_id?: string | null;
8555
8620
  name?: string;
8556
8621
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8557
8622
  updated_at?: string;
8623
+ vat_number?: string | null;
8558
8624
  };
8559
8625
  Relationships: [];
8560
8626
  };
@@ -8588,6 +8654,119 @@ export type Database = {
8588
8654
  };
8589
8655
  Relationships: [];
8590
8656
  };
8657
+ itk_handover_github_scan: {
8658
+ Row: {
8659
+ gescand_op: string;
8660
+ gevonden: boolean;
8661
+ melding: string | null;
8662
+ module_id: string | null;
8663
+ repo: string;
8664
+ };
8665
+ Insert: {
8666
+ gescand_op?: string;
8667
+ gevonden?: boolean;
8668
+ melding?: string | null;
8669
+ module_id?: string | null;
8670
+ repo: string;
8671
+ };
8672
+ Update: {
8673
+ gescand_op?: string;
8674
+ gevonden?: boolean;
8675
+ melding?: string | null;
8676
+ module_id?: string | null;
8677
+ repo?: string;
8678
+ };
8679
+ Relationships: [];
8680
+ };
8681
+ itk_handover_module_meta: {
8682
+ Row: {
8683
+ check_aangevraagd_op: string | null;
8684
+ check_nodig: boolean;
8685
+ check_reden: string | null;
8686
+ created_at: string;
8687
+ module_id: string;
8688
+ project_url: string | null;
8689
+ publicatie_url: string | null;
8690
+ updated_at: string;
8691
+ };
8692
+ Insert: {
8693
+ check_aangevraagd_op?: string | null;
8694
+ check_nodig?: boolean;
8695
+ check_reden?: string | null;
8696
+ created_at?: string;
8697
+ module_id: string;
8698
+ project_url?: string | null;
8699
+ publicatie_url?: string | null;
8700
+ updated_at?: string;
8701
+ };
8702
+ Update: {
8703
+ check_aangevraagd_op?: string | null;
8704
+ check_nodig?: boolean;
8705
+ check_reden?: string | null;
8706
+ created_at?: string;
8707
+ module_id?: string;
8708
+ project_url?: string | null;
8709
+ publicatie_url?: string | null;
8710
+ updated_at?: string;
8711
+ };
8712
+ Relationships: [];
8713
+ };
8714
+ itk_handover_project_modules: {
8715
+ Row: {
8716
+ created_at: string;
8717
+ id: string;
8718
+ module_id: string;
8719
+ project_id: string;
8720
+ updated_at: string;
8721
+ };
8722
+ Insert: {
8723
+ created_at?: string;
8724
+ id?: string;
8725
+ module_id: string;
8726
+ project_id: string;
8727
+ updated_at?: string;
8728
+ };
8729
+ Update: {
8730
+ created_at?: string;
8731
+ id?: string;
8732
+ module_id?: string;
8733
+ project_id?: string;
8734
+ updated_at?: string;
8735
+ };
8736
+ Relationships: [
8737
+ {
8738
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8739
+ columns: ["project_id"];
8740
+ isOneToOne: false;
8741
+ referencedRelation: "itk_handover_projecten";
8742
+ referencedColumns: ["id"];
8743
+ }
8744
+ ];
8745
+ };
8746
+ itk_handover_projecten: {
8747
+ Row: {
8748
+ created_at: string;
8749
+ id: string;
8750
+ naam: string;
8751
+ omschrijving: string | null;
8752
+ updated_at: string;
8753
+ };
8754
+ Insert: {
8755
+ created_at?: string;
8756
+ id?: string;
8757
+ naam: string;
8758
+ omschrijving?: string | null;
8759
+ updated_at?: string;
8760
+ };
8761
+ Update: {
8762
+ created_at?: string;
8763
+ id?: string;
8764
+ naam?: string;
8765
+ omschrijving?: string | null;
8766
+ updated_at?: string;
8767
+ };
8768
+ Relationships: [];
8769
+ };
8591
8770
  itk_handover_rechten: {
8592
8771
  Row: {
8593
8772
  created_at: string;
@@ -8615,42 +8794,33 @@ export type Database = {
8615
8794
  };
8616
8795
  Relationships: [];
8617
8796
  };
8618
- itk_handover_tokens: {
8797
+ itk_module_fingerprints: {
8619
8798
  Row: {
8620
- aangemaakt_door: string | null;
8621
8799
  created_at: string;
8800
+ gemaakt_op: string;
8801
+ hash: string;
8622
8802
  id: string;
8623
- is_actief: boolean;
8624
- laatst_gebruikt_op: string | null;
8625
- label: string;
8626
8803
  module_id: string;
8627
- token_hash: string;
8804
+ payload: Json;
8628
8805
  updated_at: string;
8629
- verloopt_op: string | null;
8630
8806
  };
8631
8807
  Insert: {
8632
- aangemaakt_door?: string | null;
8633
8808
  created_at?: string;
8809
+ gemaakt_op?: string;
8810
+ hash: string;
8634
8811
  id?: string;
8635
- is_actief?: boolean;
8636
- laatst_gebruikt_op?: string | null;
8637
- label?: string;
8638
8812
  module_id: string;
8639
- token_hash: string;
8813
+ payload?: Json;
8640
8814
  updated_at?: string;
8641
- verloopt_op?: string | null;
8642
8815
  };
8643
8816
  Update: {
8644
- aangemaakt_door?: string | null;
8645
8817
  created_at?: string;
8818
+ gemaakt_op?: string;
8819
+ hash?: string;
8646
8820
  id?: string;
8647
- is_actief?: boolean;
8648
- laatst_gebruikt_op?: string | null;
8649
- label?: string;
8650
8821
  module_id?: string;
8651
- token_hash?: string;
8822
+ payload?: Json;
8652
8823
  updated_at?: string;
8653
- verloopt_op?: string | null;
8654
8824
  };
8655
8825
  Relationships: [];
8656
8826
  };
@@ -8658,6 +8828,11 @@ export type Database = {
8658
8828
  Row: {
8659
8829
  bevindingen: string | null;
8660
8830
  bezit_tabellen: string[];
8831
+ bron_commit: string | null;
8832
+ bron_pad: string | null;
8833
+ bron_repo: string | null;
8834
+ bron_soort: string | null;
8835
+ bron_versie: string | null;
8661
8836
  conflicten_snapshot: Json;
8662
8837
  contractfuncties: string[];
8663
8838
  created_at: string;
@@ -8668,6 +8843,8 @@ export type Database = {
8668
8843
  id: string;
8669
8844
  inhoud_md: string;
8670
8845
  is_actueel: boolean;
8846
+ is_gearchiveerd: boolean;
8847
+ laatst_gecontroleerd_op: string | null;
8671
8848
  module_id: string;
8672
8849
  module_titel: string;
8673
8850
  ontbrekende_contracten: string[];
@@ -8678,6 +8855,11 @@ export type Database = {
8678
8855
  Insert: {
8679
8856
  bevindingen?: string | null;
8680
8857
  bezit_tabellen?: string[];
8858
+ bron_commit?: string | null;
8859
+ bron_pad?: string | null;
8860
+ bron_repo?: string | null;
8861
+ bron_soort?: string | null;
8862
+ bron_versie?: string | null;
8681
8863
  conflicten_snapshot?: Json;
8682
8864
  contractfuncties?: string[];
8683
8865
  created_at?: string;
@@ -8688,6 +8870,8 @@ export type Database = {
8688
8870
  id?: string;
8689
8871
  inhoud_md: string;
8690
8872
  is_actueel?: boolean;
8873
+ is_gearchiveerd?: boolean;
8874
+ laatst_gecontroleerd_op?: string | null;
8691
8875
  module_id: string;
8692
8876
  module_titel: string;
8693
8877
  ontbrekende_contracten?: string[];
@@ -8698,6 +8882,11 @@ export type Database = {
8698
8882
  Update: {
8699
8883
  bevindingen?: string | null;
8700
8884
  bezit_tabellen?: string[];
8885
+ bron_commit?: string | null;
8886
+ bron_pad?: string | null;
8887
+ bron_repo?: string | null;
8888
+ bron_soort?: string | null;
8889
+ bron_versie?: string | null;
8701
8890
  conflicten_snapshot?: Json;
8702
8891
  contractfuncties?: string[];
8703
8892
  created_at?: string;
@@ -8708,6 +8897,8 @@ export type Database = {
8708
8897
  id?: string;
8709
8898
  inhoud_md?: string;
8710
8899
  is_actueel?: boolean;
8900
+ is_gearchiveerd?: boolean;
8901
+ laatst_gecontroleerd_op?: string | null;
8711
8902
  module_id?: string;
8712
8903
  module_titel?: string;
8713
8904
  ontbrekende_contracten?: string[];
@@ -8762,6 +8953,39 @@ export type Database = {
8762
8953
  };
8763
8954
  Relationships: [];
8764
8955
  };
8956
+ itk_module_wijzigingen: {
8957
+ Row: {
8958
+ created_at: string;
8959
+ geconstateerd_op: string;
8960
+ id: string;
8961
+ module_id: string;
8962
+ omschrijving: string;
8963
+ soort: string;
8964
+ updated_at: string;
8965
+ was_na_publicatie: boolean;
8966
+ };
8967
+ Insert: {
8968
+ created_at?: string;
8969
+ geconstateerd_op?: string;
8970
+ id?: string;
8971
+ module_id: string;
8972
+ omschrijving: string;
8973
+ soort: string;
8974
+ updated_at?: string;
8975
+ was_na_publicatie?: boolean;
8976
+ };
8977
+ Update: {
8978
+ created_at?: string;
8979
+ geconstateerd_op?: string;
8980
+ id?: string;
8981
+ module_id?: string;
8982
+ omschrijving?: string;
8983
+ soort?: string;
8984
+ updated_at?: string;
8985
+ was_na_publicatie?: boolean;
8986
+ };
8987
+ Relationships: [];
8988
+ };
8765
8989
  itk_offerte_events: {
8766
8990
  Row: {
8767
8991
  created_at: string;
@@ -9009,6 +9233,13 @@ export type Database = {
9009
9233
  referencedRelation: "werkbonnen";
9010
9234
  referencedColumns: ["id"];
9011
9235
  },
9236
+ {
9237
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9238
+ columns: ["follow_up_werkbon_id"];
9239
+ isOneToOne: false;
9240
+ referencedRelation: "wo_overview";
9241
+ referencedColumns: ["id"];
9242
+ },
9012
9243
  {
9013
9244
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
9014
9245
  columns: ["werkbon_id"];
@@ -9016,6 +9247,13 @@ export type Database = {
9016
9247
  referencedRelation: "werkbonnen";
9017
9248
  referencedColumns: ["id"];
9018
9249
  },
9250
+ {
9251
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9252
+ columns: ["werkbon_id"];
9253
+ isOneToOne: false;
9254
+ referencedRelation: "wo_overview";
9255
+ referencedColumns: ["id"];
9256
+ },
9019
9257
  {
9020
9258
  foreignKeyName: "itk_offertes_work_location_id_fkey";
9021
9259
  columns: ["work_location_id"];
@@ -9325,6 +9563,13 @@ export type Database = {
9325
9563
  referencedRelation: "product_categories";
9326
9564
  referencedColumns: ["id"];
9327
9565
  },
9566
+ {
9567
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9568
+ columns: ["product_id"];
9569
+ isOneToOne: false;
9570
+ referencedRelation: "logistics_product_dimensions";
9571
+ referencedColumns: ["product_id"];
9572
+ },
9328
9573
  {
9329
9574
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9330
9575
  columns: ["product_id"];
@@ -9395,6 +9640,13 @@ export type Database = {
9395
9640
  referencedRelation: "product_categories";
9396
9641
  referencedColumns: ["id"];
9397
9642
  },
9643
+ {
9644
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9645
+ columns: ["product_id"];
9646
+ isOneToOne: false;
9647
+ referencedRelation: "logistics_product_dimensions";
9648
+ referencedColumns: ["product_id"];
9649
+ },
9398
9650
  {
9399
9651
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9400
9652
  columns: ["product_id"];
@@ -9465,6 +9717,13 @@ export type Database = {
9465
9717
  referencedRelation: "product_categories";
9466
9718
  referencedColumns: ["id"];
9467
9719
  },
9720
+ {
9721
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9722
+ columns: ["product_id"];
9723
+ isOneToOne: false;
9724
+ referencedRelation: "logistics_product_dimensions";
9725
+ referencedColumns: ["product_id"];
9726
+ },
9468
9727
  {
9469
9728
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9470
9729
  columns: ["product_id"];
@@ -9671,6 +9930,75 @@ export type Database = {
9671
9930
  };
9672
9931
  Relationships: [];
9673
9932
  };
9933
+ logistics_control_scan: {
9934
+ Row: {
9935
+ approved_at: string | null;
9936
+ attempts: number;
9937
+ barcode: string;
9938
+ cart_id: string;
9939
+ created_at: string;
9940
+ document_url: string | null;
9941
+ error: string | null;
9942
+ error_code: string | null;
9943
+ fulfillment_order_id: string | null;
9944
+ id: string;
9945
+ is_floriday: boolean;
9946
+ locked_until: string | null;
9947
+ order_id: string | null;
9948
+ order_number: string | null;
9949
+ print_job_id: string | null;
9950
+ printed_at: string | null;
9951
+ printer_id: string | null;
9952
+ scanner_id: string | null;
9953
+ status: string;
9954
+ updated_at: string;
9955
+ };
9956
+ Insert: {
9957
+ approved_at?: string | null;
9958
+ attempts?: number;
9959
+ barcode: string;
9960
+ cart_id: string;
9961
+ created_at?: string;
9962
+ document_url?: string | null;
9963
+ error?: string | null;
9964
+ error_code?: string | null;
9965
+ fulfillment_order_id?: string | null;
9966
+ id?: string;
9967
+ is_floriday?: boolean;
9968
+ locked_until?: string | null;
9969
+ order_id?: string | null;
9970
+ order_number?: string | null;
9971
+ print_job_id?: string | null;
9972
+ printed_at?: string | null;
9973
+ printer_id?: string | null;
9974
+ scanner_id?: string | null;
9975
+ status?: string;
9976
+ updated_at?: string;
9977
+ };
9978
+ Update: {
9979
+ approved_at?: string | null;
9980
+ attempts?: number;
9981
+ barcode?: string;
9982
+ cart_id?: string;
9983
+ created_at?: string;
9984
+ document_url?: string | null;
9985
+ error?: string | null;
9986
+ error_code?: string | null;
9987
+ fulfillment_order_id?: string | null;
9988
+ id?: string;
9989
+ is_floriday?: boolean;
9990
+ locked_until?: string | null;
9991
+ order_id?: string | null;
9992
+ order_number?: string | null;
9993
+ print_job_id?: string | null;
9994
+ printed_at?: string | null;
9995
+ printer_id?: string | null;
9996
+ scanner_id?: string | null;
9997
+ status?: string;
9998
+ updated_at?: string;
9999
+ };
10000
+ Relationships: [];
10001
+ };
9674
10002
  logistics_decisions: {
9675
10003
  Row: {
9676
10004
  created_at: string;
@@ -9962,6 +10290,24 @@ export type Database = {
9962
10290
  };
9963
10291
  Relationships: [];
9964
10292
  };
10293
+ logistics_floriday_carrier_map: {
10294
+ Row: {
10295
+ carrier_code: string;
10296
+ created_at: string;
10297
+ floriday_code: string;
10298
+ };
10299
+ Insert: {
10300
+ carrier_code: string;
10301
+ created_at?: string;
10302
+ floriday_code: string;
10303
+ };
10304
+ Update: {
10305
+ carrier_code?: string;
10306
+ created_at?: string;
10307
+ floriday_code?: string;
10308
+ };
10309
+ Relationships: [];
10310
+ };
9965
10311
  logistics_floriday_pushes: {
9966
10312
  Row: {
9967
10313
  attempts: number;
@@ -10081,9 +10427,39 @@ export type Database = {
10081
10427
  }
10082
10428
  ];
10083
10429
  };
10084
- logistics_pickup_moments: {
10430
+ logistics_layer_override_log: {
10085
10431
  Row: {
10086
- carrier_ref: string | null;
10432
+ cart_id: string;
10433
+ created_at: string;
10434
+ details: Json;
10435
+ id: string;
10436
+ keg_id: string | null;
10437
+ product_id: string | null;
10438
+ reason: string;
10439
+ };
10440
+ Insert: {
10441
+ cart_id: string;
10442
+ created_at?: string;
10443
+ details?: Json;
10444
+ id?: string;
10445
+ keg_id?: string | null;
10446
+ product_id?: string | null;
10447
+ reason: string;
10448
+ };
10449
+ Update: {
10450
+ cart_id?: string;
10451
+ created_at?: string;
10452
+ details?: Json;
10453
+ id?: string;
10454
+ keg_id?: string | null;
10455
+ product_id?: string | null;
10456
+ reason?: string;
10457
+ };
10458
+ Relationships: [];
10459
+ };
10460
+ logistics_pickup_moments: {
10461
+ Row: {
10462
+ carrier_ref: string | null;
10087
10463
  created_at: string;
10088
10464
  id: string;
10089
10465
  label: string | null;
@@ -11309,6 +11685,13 @@ export type Database = {
11309
11685
  updated_at?: string;
11310
11686
  };
11311
11687
  Relationships: [
11688
+ {
11689
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11690
+ columns: ["product_id"];
11691
+ isOneToOne: false;
11692
+ referencedRelation: "logistics_product_dimensions";
11693
+ referencedColumns: ["product_id"];
11694
+ },
11312
11695
  {
11313
11696
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11314
11697
  columns: ["product_id"];
@@ -12651,6 +13034,8 @@ export type Database = {
12651
13034
  order_buffers: {
12652
13035
  Row: {
12653
13036
  buffer_key: string;
13037
+ close_at: string | null;
13038
+ closed_at: string | null;
12654
13039
  created_at: string;
12655
13040
  customer_id: string | null;
12656
13041
  grouping_mode: string;
@@ -12662,6 +13047,8 @@ export type Database = {
12662
13047
  };
12663
13048
  Insert: {
12664
13049
  buffer_key: string;
13050
+ close_at?: string | null;
13051
+ closed_at?: string | null;
12665
13052
  created_at?: string;
12666
13053
  customer_id?: string | null;
12667
13054
  grouping_mode: string;
@@ -12673,6 +13060,8 @@ export type Database = {
12673
13060
  };
12674
13061
  Update: {
12675
13062
  buffer_key?: string;
13063
+ close_at?: string | null;
13064
+ closed_at?: string | null;
12676
13065
  created_at?: string;
12677
13066
  customer_id?: string | null;
12678
13067
  grouping_mode?: string;
@@ -12754,6 +13143,13 @@ export type Database = {
12754
13143
  referencedRelation: "order_items";
12755
13144
  referencedColumns: ["id"];
12756
13145
  },
13146
+ {
13147
+ foreignKeyName: "order_cart_items_product_id_fkey";
13148
+ columns: ["product_id"];
13149
+ isOneToOne: false;
13150
+ referencedRelation: "logistics_product_dimensions";
13151
+ referencedColumns: ["product_id"];
13152
+ },
12757
13153
  {
12758
13154
  foreignKeyName: "order_cart_items_product_id_fkey";
12759
13155
  columns: ["product_id"];
@@ -12763,6 +13159,95 @@ export type Database = {
12763
13159
  }
12764
13160
  ];
12765
13161
  };
13162
+ order_cart_layer_positions: {
13163
+ Row: {
13164
+ algorithm_version: number | null;
13165
+ cart_id: string;
13166
+ created_at: string;
13167
+ height: number;
13168
+ id: string;
13169
+ keg_id: string;
13170
+ label: string | null;
13171
+ layer: number;
13172
+ layer_height: number | null;
13173
+ layer_width: number | null;
13174
+ manual_overridden_at: string | null;
13175
+ manual_overridden_by: string | null;
13176
+ manual_override: boolean;
13177
+ order_item_id: string | null;
13178
+ original_layer: number | null;
13179
+ original_x: number | null;
13180
+ original_y: number | null;
13181
+ product_id: string | null;
13182
+ rotation: number;
13183
+ source: string | null;
13184
+ updated_at: string;
13185
+ width: number;
13186
+ x: number;
13187
+ y: number;
13188
+ };
13189
+ Insert: {
13190
+ algorithm_version?: number | null;
13191
+ cart_id: string;
13192
+ created_at?: string;
13193
+ height: number;
13194
+ id?: string;
13195
+ keg_id: string;
13196
+ label?: string | null;
13197
+ layer: number;
13198
+ layer_height?: number | null;
13199
+ layer_width?: number | null;
13200
+ manual_overridden_at?: string | null;
13201
+ manual_overridden_by?: string | null;
13202
+ manual_override?: boolean;
13203
+ order_item_id?: string | null;
13204
+ original_layer?: number | null;
13205
+ original_x?: number | null;
13206
+ original_y?: number | null;
13207
+ product_id?: string | null;
13208
+ rotation?: number;
13209
+ source?: string | null;
13210
+ updated_at?: string;
13211
+ width: number;
13212
+ x: number;
13213
+ y: number;
13214
+ };
13215
+ Update: {
13216
+ algorithm_version?: number | null;
13217
+ cart_id?: string;
13218
+ created_at?: string;
13219
+ height?: number;
13220
+ id?: string;
13221
+ keg_id?: string;
13222
+ label?: string | null;
13223
+ layer?: number;
13224
+ layer_height?: number | null;
13225
+ layer_width?: number | null;
13226
+ manual_overridden_at?: string | null;
13227
+ manual_overridden_by?: string | null;
13228
+ manual_override?: boolean;
13229
+ order_item_id?: string | null;
13230
+ original_layer?: number | null;
13231
+ original_x?: number | null;
13232
+ original_y?: number | null;
13233
+ product_id?: string | null;
13234
+ rotation?: number;
13235
+ source?: string | null;
13236
+ updated_at?: string;
13237
+ width?: number;
13238
+ x?: number;
13239
+ y?: number;
13240
+ };
13241
+ Relationships: [
13242
+ {
13243
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
13244
+ columns: ["cart_id"];
13245
+ isOneToOne: false;
13246
+ referencedRelation: "order_carts";
13247
+ referencedColumns: ["id"];
13248
+ }
13249
+ ];
13250
+ };
12766
13251
  order_carts: {
12767
13252
  Row: {
12768
13253
  algorithm_version: number;
@@ -12785,6 +13270,7 @@ export type Database = {
12785
13270
  pickup_locked: boolean;
12786
13271
  pickup_moment_id: string | null;
12787
13272
  source: string;
13273
+ total_carts: number | null;
12788
13274
  total_layers_used: number;
12789
13275
  updated_at: string;
12790
13276
  weight_kg: number | null;
@@ -12810,6 +13296,7 @@ export type Database = {
12810
13296
  pickup_locked?: boolean;
12811
13297
  pickup_moment_id?: string | null;
12812
13298
  source?: string;
13299
+ total_carts?: number | null;
12813
13300
  total_layers_used?: number;
12814
13301
  updated_at?: string;
12815
13302
  weight_kg?: number | null;
@@ -12835,6 +13322,7 @@ export type Database = {
12835
13322
  pickup_locked?: boolean;
12836
13323
  pickup_moment_id?: string | null;
12837
13324
  source?: string;
13325
+ total_carts?: number | null;
12838
13326
  total_layers_used?: number;
12839
13327
  updated_at?: string;
12840
13328
  weight_kg?: number | null;
@@ -12945,6 +13433,41 @@ export type Database = {
12945
13433
  };
12946
13434
  Relationships: [];
12947
13435
  };
13436
+ order_fust_bookings: {
13437
+ Row: {
13438
+ created_at: string;
13439
+ fust_type_id: string;
13440
+ id: string;
13441
+ order_item_id: string;
13442
+ quantity: number;
13443
+ updated_at: string;
13444
+ };
13445
+ Insert: {
13446
+ created_at?: string;
13447
+ fust_type_id: string;
13448
+ id?: string;
13449
+ order_item_id: string;
13450
+ quantity?: number;
13451
+ updated_at?: string;
13452
+ };
13453
+ Update: {
13454
+ created_at?: string;
13455
+ fust_type_id?: string;
13456
+ id?: string;
13457
+ order_item_id?: string;
13458
+ quantity?: number;
13459
+ updated_at?: string;
13460
+ };
13461
+ Relationships: [
13462
+ {
13463
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13464
+ columns: ["fust_type_id"];
13465
+ isOneToOne: false;
13466
+ referencedRelation: "fust_types";
13467
+ referencedColumns: ["id"];
13468
+ }
13469
+ ];
13470
+ };
12948
13471
  order_invoice_links: {
12949
13472
  Row: {
12950
13473
  administration_code: string | null;
@@ -13035,6 +13558,13 @@ export type Database = {
13035
13558
  referencedRelation: "orders";
13036
13559
  referencedColumns: ["id"];
13037
13560
  },
13561
+ {
13562
+ foreignKeyName: "order_items_product_id_fkey";
13563
+ columns: ["product_id"];
13564
+ isOneToOne: false;
13565
+ referencedRelation: "logistics_product_dimensions";
13566
+ referencedColumns: ["product_id"];
13567
+ },
13038
13568
  {
13039
13569
  foreignKeyName: "order_items_product_id_fkey";
13040
13570
  columns: ["product_id"];
@@ -13189,6 +13719,9 @@ export type Database = {
13189
13719
  plan_locked_at: string | null;
13190
13720
  plan_locked_ref: string | null;
13191
13721
  status: string;
13722
+ status_changed_at: string;
13723
+ status_origin: string;
13724
+ status_sync_token: string | null;
13192
13725
  total: string;
13193
13726
  updated_at: string;
13194
13727
  };
@@ -13213,6 +13746,9 @@ export type Database = {
13213
13746
  plan_locked_at?: string | null;
13214
13747
  plan_locked_ref?: string | null;
13215
13748
  status?: string;
13749
+ status_changed_at?: string;
13750
+ status_origin?: string;
13751
+ status_sync_token?: string | null;
13216
13752
  total?: string;
13217
13753
  updated_at?: string;
13218
13754
  };
@@ -13237,6 +13773,9 @@ export type Database = {
13237
13773
  plan_locked_at?: string | null;
13238
13774
  plan_locked_ref?: string | null;
13239
13775
  status?: string;
13776
+ status_changed_at?: string;
13777
+ status_origin?: string;
13778
+ status_sync_token?: string | null;
13240
13779
  total?: string;
13241
13780
  updated_at?: string;
13242
13781
  };
@@ -13293,6 +13832,132 @@ export type Database = {
13293
13832
  };
13294
13833
  Relationships: [];
13295
13834
  };
13835
+ pakbon_barcode_inhoud: {
13836
+ Row: {
13837
+ barcode: string;
13838
+ cart_id: string | null;
13839
+ cart_index: number | null;
13840
+ cart_label: string | null;
13841
+ cart_total: number | null;
13842
+ created_at: string;
13843
+ is_herprint: boolean;
13844
+ klant_naam: string | null;
13845
+ klant_nummer: string | null;
13846
+ layout_id: string | null;
13847
+ layout_variant: string | null;
13848
+ order_nummer: string | null;
13849
+ order_ref: string | null;
13850
+ print_job_id: string | null;
13851
+ regels: Json;
13852
+ updated_at: string;
13853
+ };
13854
+ Insert: {
13855
+ barcode: string;
13856
+ cart_id?: string | null;
13857
+ cart_index?: number | null;
13858
+ cart_label?: string | null;
13859
+ cart_total?: number | null;
13860
+ created_at?: string;
13861
+ is_herprint?: boolean;
13862
+ klant_naam?: string | null;
13863
+ klant_nummer?: string | null;
13864
+ layout_id?: string | null;
13865
+ layout_variant?: string | null;
13866
+ order_nummer?: string | null;
13867
+ order_ref?: string | null;
13868
+ print_job_id?: string | null;
13869
+ regels?: Json;
13870
+ updated_at?: string;
13871
+ };
13872
+ Update: {
13873
+ barcode?: string;
13874
+ cart_id?: string | null;
13875
+ cart_index?: number | null;
13876
+ cart_label?: string | null;
13877
+ cart_total?: number | null;
13878
+ created_at?: string;
13879
+ is_herprint?: boolean;
13880
+ klant_naam?: string | null;
13881
+ klant_nummer?: string | null;
13882
+ layout_id?: string | null;
13883
+ layout_variant?: string | null;
13884
+ order_nummer?: string | null;
13885
+ order_ref?: string | null;
13886
+ print_job_id?: string | null;
13887
+ regels?: Json;
13888
+ updated_at?: string;
13889
+ };
13890
+ Relationships: [];
13891
+ };
13892
+ pakbon_barcode_verzoeken: {
13893
+ Row: {
13894
+ aangevraagd_op: string;
13895
+ barcode: string | null;
13896
+ cart_id: string | null;
13897
+ cart_index: number | null;
13898
+ cart_label: string | null;
13899
+ cart_total: number | null;
13900
+ documentnaam: string | null;
13901
+ geleverd_op: string | null;
13902
+ id: string;
13903
+ is_herprint: boolean;
13904
+ klant_naam: string | null;
13905
+ klant_nummer: string | null;
13906
+ laatst_gevraagd_op: string;
13907
+ layout_id: string | null;
13908
+ layout_variant: string | null;
13909
+ order_nummer: string | null;
13910
+ order_ref: string | null;
13911
+ print_job_id: string;
13912
+ status: string;
13913
+ updated_at: string;
13914
+ };
13915
+ Insert: {
13916
+ aangevraagd_op?: string;
13917
+ barcode?: string | null;
13918
+ cart_id?: string | null;
13919
+ cart_index?: number | null;
13920
+ cart_label?: string | null;
13921
+ cart_total?: number | null;
13922
+ documentnaam?: string | null;
13923
+ geleverd_op?: string | null;
13924
+ id?: string;
13925
+ is_herprint?: boolean;
13926
+ klant_naam?: string | null;
13927
+ klant_nummer?: string | null;
13928
+ laatst_gevraagd_op?: string;
13929
+ layout_id?: string | null;
13930
+ layout_variant?: string | null;
13931
+ order_nummer?: string | null;
13932
+ order_ref?: string | null;
13933
+ print_job_id: string;
13934
+ status?: string;
13935
+ updated_at?: string;
13936
+ };
13937
+ Update: {
13938
+ aangevraagd_op?: string;
13939
+ barcode?: string | null;
13940
+ cart_id?: string | null;
13941
+ cart_index?: number | null;
13942
+ cart_label?: string | null;
13943
+ cart_total?: number | null;
13944
+ documentnaam?: string | null;
13945
+ geleverd_op?: string | null;
13946
+ id?: string;
13947
+ is_herprint?: boolean;
13948
+ klant_naam?: string | null;
13949
+ klant_nummer?: string | null;
13950
+ laatst_gevraagd_op?: string;
13951
+ layout_id?: string | null;
13952
+ layout_variant?: string | null;
13953
+ order_nummer?: string | null;
13954
+ order_ref?: string | null;
13955
+ print_job_id?: string;
13956
+ status?: string;
13957
+ updated_at?: string;
13958
+ };
13959
+ Relationships: [];
13960
+ };
13296
13961
  pick_countries: {
13297
13962
  Row: {
13298
13963
  active: boolean;
@@ -14410,6 +15075,13 @@ export type Database = {
14410
15075
  isOneToOne: false;
14411
15076
  referencedRelation: "werkbonnen";
14412
15077
  referencedColumns: ["id"];
15078
+ },
15079
+ {
15080
+ foreignKeyName: "planning_items_werkbon_id_fkey";
15081
+ columns: ["werkbon_id"];
15082
+ isOneToOne: false;
15083
+ referencedRelation: "wo_overview";
15084
+ referencedColumns: ["id"];
14413
15085
  }
14414
15086
  ];
14415
15087
  };
@@ -14528,12 +15200,21 @@ export type Database = {
14528
15200
  };
14529
15201
  print_jobs: {
14530
15202
  Row: {
15203
+ aflever_pogingen: number;
14531
15204
  agent_id: string | null;
15205
+ artefact_bytes: number | null;
15206
+ artefact_gereed_op: string | null;
15207
+ artefact_pad: string | null;
15208
+ artefact_sha256: string | null;
15209
+ batch_id: string | null;
14532
15210
  bron_job_id: string | null;
14533
15211
  created_at: string;
14534
15212
  documentnaam: string;
14535
15213
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14536
15214
  extern_job_id: string | null;
15215
+ fase_gestart_op: string | null;
15216
+ fase_voltooid_op: string | null;
15217
+ foutcode: string | null;
14537
15218
  foutmelding: string | null;
14538
15219
  gebruiker_id: string | null;
14539
15220
  gebruiker_naam: string;
@@ -14547,7 +15228,10 @@ export type Database = {
14547
15228
  kopieen: number;
14548
15229
  layout_id: string | null;
14549
15230
  lokaal_opgeslagen_op: string | null;
15231
+ lokale_pdf_claim_id: string | null;
15232
+ lokale_pdf_claim_tot: string | null;
14550
15233
  lokale_pdf_fout: string | null;
15234
+ lokale_pdf_print_plek_id: string | null;
14551
15235
  lokale_pdf_status: string | null;
14552
15236
  opgepakt_op: string | null;
14553
15237
  paginas: number;
@@ -14560,16 +15244,26 @@ export type Database = {
14560
15244
  resultaat_pdf_base64: string | null;
14561
15245
  status: Database["public"]["Enums"]["print_job_status"];
14562
15246
  updated_at: string;
15247
+ verwerkingsfase: string;
14563
15248
  volgende_poging: string | null;
14564
15249
  voltooid_op: string | null;
14565
15250
  };
14566
15251
  Insert: {
15252
+ aflever_pogingen?: number;
14567
15253
  agent_id?: string | null;
15254
+ artefact_bytes?: number | null;
15255
+ artefact_gereed_op?: string | null;
15256
+ artefact_pad?: string | null;
15257
+ artefact_sha256?: string | null;
15258
+ batch_id?: string | null;
14568
15259
  bron_job_id?: string | null;
14569
15260
  created_at?: string;
14570
15261
  documentnaam?: string;
14571
15262
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14572
15263
  extern_job_id?: string | null;
15264
+ fase_gestart_op?: string | null;
15265
+ fase_voltooid_op?: string | null;
15266
+ foutcode?: string | null;
14573
15267
  foutmelding?: string | null;
14574
15268
  gebruiker_id?: string | null;
14575
15269
  gebruiker_naam?: string;
@@ -14583,7 +15277,10 @@ export type Database = {
14583
15277
  kopieen?: number;
14584
15278
  layout_id?: string | null;
14585
15279
  lokaal_opgeslagen_op?: string | null;
15280
+ lokale_pdf_claim_id?: string | null;
15281
+ lokale_pdf_claim_tot?: string | null;
14586
15282
  lokale_pdf_fout?: string | null;
15283
+ lokale_pdf_print_plek_id?: string | null;
14587
15284
  lokale_pdf_status?: string | null;
14588
15285
  opgepakt_op?: string | null;
14589
15286
  paginas?: number;
@@ -14596,16 +15293,26 @@ export type Database = {
14596
15293
  resultaat_pdf_base64?: string | null;
14597
15294
  status?: Database["public"]["Enums"]["print_job_status"];
14598
15295
  updated_at?: string;
15296
+ verwerkingsfase?: string;
14599
15297
  volgende_poging?: string | null;
14600
15298
  voltooid_op?: string | null;
14601
15299
  };
14602
15300
  Update: {
15301
+ aflever_pogingen?: number;
14603
15302
  agent_id?: string | null;
15303
+ artefact_bytes?: number | null;
15304
+ artefact_gereed_op?: string | null;
15305
+ artefact_pad?: string | null;
15306
+ artefact_sha256?: string | null;
15307
+ batch_id?: string | null;
14604
15308
  bron_job_id?: string | null;
14605
15309
  created_at?: string;
14606
15310
  documentnaam?: string;
14607
15311
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14608
15312
  extern_job_id?: string | null;
15313
+ fase_gestart_op?: string | null;
15314
+ fase_voltooid_op?: string | null;
15315
+ foutcode?: string | null;
14609
15316
  foutmelding?: string | null;
14610
15317
  gebruiker_id?: string | null;
14611
15318
  gebruiker_naam?: string;
@@ -14619,7 +15326,10 @@ export type Database = {
14619
15326
  kopieen?: number;
14620
15327
  layout_id?: string | null;
14621
15328
  lokaal_opgeslagen_op?: string | null;
15329
+ lokale_pdf_claim_id?: string | null;
15330
+ lokale_pdf_claim_tot?: string | null;
14622
15331
  lokale_pdf_fout?: string | null;
15332
+ lokale_pdf_print_plek_id?: string | null;
14623
15333
  lokale_pdf_status?: string | null;
14624
15334
  opgepakt_op?: string | null;
14625
15335
  paginas?: number;
@@ -14632,6 +15342,7 @@ export type Database = {
14632
15342
  resultaat_pdf_base64?: string | null;
14633
15343
  status?: Database["public"]["Enums"]["print_job_status"];
14634
15344
  updated_at?: string;
15345
+ verwerkingsfase?: string;
14635
15346
  volgende_poging?: string | null;
14636
15347
  voltooid_op?: string | null;
14637
15348
  };
@@ -14650,6 +15361,13 @@ export type Database = {
14650
15361
  referencedRelation: "document_layouts";
14651
15362
  referencedColumns: ["id"];
14652
15363
  },
15364
+ {
15365
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
15366
+ columns: ["lokale_pdf_print_plek_id"];
15367
+ isOneToOne: false;
15368
+ referencedRelation: "print_plekken";
15369
+ referencedColumns: ["id"];
15370
+ },
14653
15371
  {
14654
15372
  foreignKeyName: "print_jobs_printer_id_fkey";
14655
15373
  columns: ["printer_id"];
@@ -14789,6 +15507,30 @@ export type Database = {
14789
15507
  };
14790
15508
  Relationships: [];
14791
15509
  };
15510
+ print_queue_leases: {
15511
+ Row: {
15512
+ created_at: string;
15513
+ houder: string;
15514
+ naam: string;
15515
+ updated_at: string;
15516
+ verloopt_op: string;
15517
+ };
15518
+ Insert: {
15519
+ created_at?: string;
15520
+ houder: string;
15521
+ naam: string;
15522
+ updated_at?: string;
15523
+ verloopt_op: string;
15524
+ };
15525
+ Update: {
15526
+ created_at?: string;
15527
+ houder?: string;
15528
+ naam?: string;
15529
+ updated_at?: string;
15530
+ verloopt_op?: string;
15531
+ };
15532
+ Relationships: [];
15533
+ };
14792
15534
  print_queue_runners: {
14793
15535
  Row: {
14794
15536
  actief: boolean;
@@ -14798,7 +15540,9 @@ export type Database = {
14798
15540
  laatst_gezien: string;
14799
15541
  laatste_fout: string | null;
14800
15542
  laatste_request_id: number | null;
15543
+ laatste_wakeup: string | null;
14801
15544
  mislukte_posts: number;
15545
+ mislukte_wakeups: number;
14802
15546
  tick_sleutel: string;
14803
15547
  updated_at: string;
14804
15548
  };
@@ -14810,7 +15554,9 @@ export type Database = {
14810
15554
  laatst_gezien?: string;
14811
15555
  laatste_fout?: string | null;
14812
15556
  laatste_request_id?: number | null;
15557
+ laatste_wakeup?: string | null;
14813
15558
  mislukte_posts?: number;
15559
+ mislukte_wakeups?: number;
14814
15560
  tick_sleutel?: string;
14815
15561
  updated_at?: string;
14816
15562
  };
@@ -14822,7 +15568,9 @@ export type Database = {
14822
15568
  laatst_gezien?: string;
14823
15569
  laatste_fout?: string | null;
14824
15570
  laatste_request_id?: number | null;
15571
+ laatste_wakeup?: string | null;
14825
15572
  mislukte_posts?: number;
15573
+ mislukte_wakeups?: number;
14826
15574
  tick_sleutel?: string;
14827
15575
  updated_at?: string;
14828
15576
  };
@@ -15146,6 +15894,13 @@ export type Database = {
15146
15894
  updated_at?: string;
15147
15895
  };
15148
15896
  Relationships: [
15897
+ {
15898
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15899
+ columns: ["parent_product_id"];
15900
+ isOneToOne: false;
15901
+ referencedRelation: "logistics_product_dimensions";
15902
+ referencedColumns: ["product_id"];
15903
+ },
15149
15904
  {
15150
15905
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15151
15906
  columns: ["parent_product_id"];
@@ -15202,6 +15957,13 @@ export type Database = {
15202
15957
  updated_at?: string;
15203
15958
  };
15204
15959
  Relationships: [
15960
+ {
15961
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15962
+ columns: ["component_product_id"];
15963
+ isOneToOne: false;
15964
+ referencedRelation: "logistics_product_dimensions";
15965
+ referencedColumns: ["product_id"];
15966
+ },
15205
15967
  {
15206
15968
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15207
15969
  columns: ["component_product_id"];
@@ -15209,6 +15971,13 @@ export type Database = {
15209
15971
  referencedRelation: "products";
15210
15972
  referencedColumns: ["id"];
15211
15973
  },
15974
+ {
15975
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15976
+ columns: ["parent_product_id"];
15977
+ isOneToOne: false;
15978
+ referencedRelation: "logistics_product_dimensions";
15979
+ referencedColumns: ["product_id"];
15980
+ },
15212
15981
  {
15213
15982
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15214
15983
  columns: ["parent_product_id"];
@@ -15389,6 +16158,13 @@ export type Database = {
15389
16158
  updated_at?: string;
15390
16159
  };
15391
16160
  Relationships: [
16161
+ {
16162
+ foreignKeyName: "product_groups_head_product_id_fkey";
16163
+ columns: ["head_product_id"];
16164
+ isOneToOne: false;
16165
+ referencedRelation: "logistics_product_dimensions";
16166
+ referencedColumns: ["product_id"];
16167
+ },
15392
16168
  {
15393
16169
  foreignKeyName: "product_groups_head_product_id_fkey";
15394
16170
  columns: ["head_product_id"];
@@ -15458,6 +16234,13 @@ export type Database = {
15458
16234
  referencedRelation: "packages";
15459
16235
  referencedColumns: ["id"];
15460
16236
  },
16237
+ {
16238
+ foreignKeyName: "product_load_settings_product_id_fkey";
16239
+ columns: ["product_id"];
16240
+ isOneToOne: false;
16241
+ referencedRelation: "logistics_product_dimensions";
16242
+ referencedColumns: ["product_id"];
16243
+ },
15461
16244
  {
15462
16245
  foreignKeyName: "product_load_settings_product_id_fkey";
15463
16246
  columns: ["product_id"];
@@ -15942,6 +16725,13 @@ export type Database = {
15942
16725
  quantity?: number;
15943
16726
  };
15944
16727
  Relationships: [
16728
+ {
16729
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16730
+ columns: ["product_id"];
16731
+ isOneToOne: false;
16732
+ referencedRelation: "logistics_product_dimensions";
16733
+ referencedColumns: ["product_id"];
16734
+ },
15945
16735
  {
15946
16736
  foreignKeyName: "purchase_order_items_product_id_fkey";
15947
16737
  columns: ["product_id"];
@@ -16280,30 +17070,130 @@ export type Database = {
16280
17070
  }
16281
17071
  ];
16282
17072
  };
16283
- scan_karren: {
17073
+ scan_kar_sessie_regels: {
16284
17074
  Row: {
16285
- afgerond_op: string | null;
16286
- buffer_key: string | null;
17075
+ barcode: string;
17076
+ cart_id: string | null;
16287
17077
  created_at: string;
16288
- customer_names: string[];
16289
- device_id: string | null;
16290
- geprint: boolean;
16291
- geprint_op: string | null;
16292
17078
  id: string;
16293
- kar_nummer: string;
16294
- medewerker_id: string | null;
16295
- medewerker_naam: string | null;
16296
- naar_pickstation: boolean;
16297
- naar_pickstation_op: string | null;
17079
+ order_id: string | null;
16298
17080
  order_number: string | null;
16299
- scanner_id: string | null;
16300
- scanner_key: string;
16301
- status: string;
16302
- totaal_producten: number;
16303
- updated_at: string;
17081
+ regels: Json;
17082
+ sessie_id: string;
17083
+ volledig: boolean;
16304
17084
  };
16305
17085
  Insert: {
16306
- afgerond_op?: string | null;
17086
+ barcode: string;
17087
+ cart_id?: string | null;
17088
+ created_at?: string;
17089
+ id?: string;
17090
+ order_id?: string | null;
17091
+ order_number?: string | null;
17092
+ regels?: Json;
17093
+ sessie_id: string;
17094
+ volledig?: boolean;
17095
+ };
17096
+ Update: {
17097
+ barcode?: string;
17098
+ cart_id?: string | null;
17099
+ created_at?: string;
17100
+ id?: string;
17101
+ order_id?: string | null;
17102
+ order_number?: string | null;
17103
+ regels?: Json;
17104
+ sessie_id?: string;
17105
+ volledig?: boolean;
17106
+ };
17107
+ Relationships: [
17108
+ {
17109
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
17110
+ columns: ["sessie_id"];
17111
+ isOneToOne: false;
17112
+ referencedRelation: "scan_kar_sessies";
17113
+ referencedColumns: ["id"];
17114
+ }
17115
+ ];
17116
+ };
17117
+ scan_kar_sessies: {
17118
+ Row: {
17119
+ afgerond_op: string | null;
17120
+ cart_id: string | null;
17121
+ cart_index: number | null;
17122
+ cart_total: number | null;
17123
+ created_at: string;
17124
+ id: string;
17125
+ klant_naam: string | null;
17126
+ medewerker_naam: string | null;
17127
+ order_id: string | null;
17128
+ order_number: string | null;
17129
+ scanner_id: string | null;
17130
+ status: string;
17131
+ updated_at: string;
17132
+ };
17133
+ Insert: {
17134
+ afgerond_op?: string | null;
17135
+ cart_id?: string | null;
17136
+ cart_index?: number | null;
17137
+ cart_total?: number | null;
17138
+ created_at?: string;
17139
+ id?: string;
17140
+ klant_naam?: string | null;
17141
+ medewerker_naam?: string | null;
17142
+ order_id?: string | null;
17143
+ order_number?: string | null;
17144
+ scanner_id?: string | null;
17145
+ status?: string;
17146
+ updated_at?: string;
17147
+ };
17148
+ Update: {
17149
+ afgerond_op?: string | null;
17150
+ cart_id?: string | null;
17151
+ cart_index?: number | null;
17152
+ cart_total?: number | null;
17153
+ created_at?: string;
17154
+ id?: string;
17155
+ klant_naam?: string | null;
17156
+ medewerker_naam?: string | null;
17157
+ order_id?: string | null;
17158
+ order_number?: string | null;
17159
+ scanner_id?: string | null;
17160
+ status?: string;
17161
+ updated_at?: string;
17162
+ };
17163
+ Relationships: [
17164
+ {
17165
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
17166
+ columns: ["scanner_id"];
17167
+ isOneToOne: false;
17168
+ referencedRelation: "scan_scanners";
17169
+ referencedColumns: ["id"];
17170
+ }
17171
+ ];
17172
+ };
17173
+ scan_karren: {
17174
+ Row: {
17175
+ afgerond_op: string | null;
17176
+ buffer_key: string | null;
17177
+ created_at: string;
17178
+ customer_names: string[];
17179
+ device_id: string | null;
17180
+ geprint: boolean;
17181
+ geprint_op: string | null;
17182
+ id: string;
17183
+ kar_nummer: string;
17184
+ medewerker_id: string | null;
17185
+ medewerker_naam: string | null;
17186
+ naar_pickstation: boolean;
17187
+ naar_pickstation_op: string | null;
17188
+ order_number: string | null;
17189
+ scanner_id: string | null;
17190
+ scanner_key: string;
17191
+ status: string;
17192
+ totaal_producten: number;
17193
+ updated_at: string;
17194
+ };
17195
+ Insert: {
17196
+ afgerond_op?: string | null;
16307
17197
  buffer_key?: string | null;
16308
17198
  created_at?: string;
16309
17199
  customer_names?: string[];
@@ -16486,6 +17376,60 @@ export type Database = {
16486
17376
  };
16487
17377
  Relationships: [];
16488
17378
  };
17379
+ scan_restpakbonnen: {
17380
+ Row: {
17381
+ barcode: string;
17382
+ bron_barcode: string | null;
17383
+ cart_id: string | null;
17384
+ cart_index: number | null;
17385
+ cart_total: number | null;
17386
+ created_at: string;
17387
+ geprint_op: string | null;
17388
+ id: string;
17389
+ klant_naam: string | null;
17390
+ order_id: string | null;
17391
+ order_number: string | null;
17392
+ print_job_id: string | null;
17393
+ regels: Json;
17394
+ updated_at: string;
17395
+ verwerkt: boolean;
17396
+ };
17397
+ Insert: {
17398
+ barcode: string;
17399
+ bron_barcode?: string | null;
17400
+ cart_id?: string | null;
17401
+ cart_index?: number | null;
17402
+ cart_total?: number | null;
17403
+ created_at?: string;
17404
+ geprint_op?: string | null;
17405
+ id?: string;
17406
+ klant_naam?: string | null;
17407
+ order_id?: string | null;
17408
+ order_number?: string | null;
17409
+ print_job_id?: string | null;
17410
+ regels?: Json;
17411
+ updated_at?: string;
17412
+ verwerkt?: boolean;
17413
+ };
17414
+ Update: {
17415
+ barcode?: string;
17416
+ bron_barcode?: string | null;
17417
+ cart_id?: string | null;
17418
+ cart_index?: number | null;
17419
+ cart_total?: number | null;
17420
+ created_at?: string;
17421
+ geprint_op?: string | null;
17422
+ id?: string;
17423
+ klant_naam?: string | null;
17424
+ order_id?: string | null;
17425
+ order_number?: string | null;
17426
+ print_job_id?: string | null;
17427
+ regels?: Json;
17428
+ updated_at?: string;
17429
+ verwerkt?: boolean;
17430
+ };
17431
+ Relationships: [];
17432
+ };
16489
17433
  scan_scanners: {
16490
17434
  Row: {
16491
17435
  actief: boolean;
@@ -16495,6 +17439,7 @@ export type Database = {
16495
17439
  naam: string;
16496
17440
  omschrijving: string | null;
16497
17441
  pincode: string | null;
17442
+ printer_id: string | null;
16498
17443
  slug: string;
16499
17444
  type: string;
16500
17445
  updated_at: string;
@@ -16509,6 +17454,7 @@ export type Database = {
16509
17454
  naam: string;
16510
17455
  omschrijving?: string | null;
16511
17456
  pincode?: string | null;
17457
+ printer_id?: string | null;
16512
17458
  slug: string;
16513
17459
  type?: string;
16514
17460
  updated_at?: string;
@@ -16523,6 +17469,7 @@ export type Database = {
16523
17469
  naam?: string;
16524
17470
  omschrijving?: string | null;
16525
17471
  pincode?: string | null;
17472
+ printer_id?: string | null;
16526
17473
  slug?: string;
16527
17474
  type?: string;
16528
17475
  updated_at?: string;
@@ -16531,6 +17478,27 @@ export type Database = {
16531
17478
  };
16532
17479
  Relationships: [];
16533
17480
  };
17481
+ shell_settings: {
17482
+ Row: {
17483
+ created_at: string;
17484
+ default_path: string | null;
17485
+ shell_id: string;
17486
+ updated_at: string;
17487
+ };
17488
+ Insert: {
17489
+ created_at?: string;
17490
+ default_path?: string | null;
17491
+ shell_id: string;
17492
+ updated_at?: string;
17493
+ };
17494
+ Update: {
17495
+ created_at?: string;
17496
+ default_path?: string | null;
17497
+ shell_id?: string;
17498
+ updated_at?: string;
17499
+ };
17500
+ Relationships: [];
17501
+ };
16534
17502
  sick_periods: {
16535
17503
  Row: {
16536
17504
  created_at: string;
@@ -17160,6 +18128,13 @@ export type Database = {
17160
18128
  isOneToOne: false;
17161
18129
  referencedRelation: "werkbonnen";
17162
18130
  referencedColumns: ["id"];
18131
+ },
18132
+ {
18133
+ foreignKeyName: "time_logs_work_order_id_fkey";
18134
+ columns: ["work_order_id"];
18135
+ isOneToOne: false;
18136
+ referencedRelation: "wo_overview";
18137
+ referencedColumns: ["id"];
17163
18138
  }
17164
18139
  ];
17165
18140
  };
@@ -18474,6 +19449,13 @@ export type Database = {
18474
19449
  isOneToOne: false;
18475
19450
  referencedRelation: "werkbonnen";
18476
19451
  referencedColumns: ["id"];
19452
+ },
19453
+ {
19454
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
19455
+ columns: ["werkbon_id"];
19456
+ isOneToOne: false;
19457
+ referencedRelation: "wo_overview";
19458
+ referencedColumns: ["id"];
18477
19459
  }
18478
19460
  ];
18479
19461
  };
@@ -19207,6 +20189,13 @@ export type Database = {
19207
20189
  isOneToOne: true;
19208
20190
  referencedRelation: "werkbonnen";
19209
20191
  referencedColumns: ["id"];
20192
+ },
20193
+ {
20194
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
20195
+ columns: ["werkbon_id"];
20196
+ isOneToOne: true;
20197
+ referencedRelation: "wo_overview";
20198
+ referencedColumns: ["id"];
19210
20199
  }
19211
20200
  ];
19212
20201
  };
@@ -19296,6 +20285,13 @@ export type Database = {
19296
20285
  isOneToOne: false;
19297
20286
  referencedRelation: "werkbonnen";
19298
20287
  referencedColumns: ["id"];
20288
+ },
20289
+ {
20290
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20291
+ columns: ["werkbon_id"];
20292
+ isOneToOne: false;
20293
+ referencedRelation: "wo_overview";
20294
+ referencedColumns: ["id"];
19299
20295
  }
19300
20296
  ];
19301
20297
  };
@@ -19487,6 +20483,13 @@ export type Database = {
19487
20483
  isOneToOne: false;
19488
20484
  referencedRelation: "werkbonnen";
19489
20485
  referencedColumns: ["id"];
20486
+ },
20487
+ {
20488
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20489
+ columns: ["werkbon_id"];
20490
+ isOneToOne: false;
20491
+ referencedRelation: "wo_overview";
20492
+ referencedColumns: ["id"];
19490
20493
  }
19491
20494
  ];
19492
20495
  };
@@ -19581,6 +20584,13 @@ export type Database = {
19581
20584
  isOneToOne: false;
19582
20585
  referencedRelation: "werkbonnen";
19583
20586
  referencedColumns: ["id"];
20587
+ },
20588
+ {
20589
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20590
+ columns: ["werkbon_id"];
20591
+ isOneToOne: false;
20592
+ referencedRelation: "wo_overview";
20593
+ referencedColumns: ["id"];
19584
20594
  }
19585
20595
  ];
19586
20596
  };
@@ -19622,6 +20632,13 @@ export type Database = {
19622
20632
  isOneToOne: false;
19623
20633
  referencedRelation: "werkbonnen";
19624
20634
  referencedColumns: ["id"];
20635
+ },
20636
+ {
20637
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20638
+ columns: ["werkbon_id"];
20639
+ isOneToOne: false;
20640
+ referencedRelation: "wo_overview";
20641
+ referencedColumns: ["id"];
19625
20642
  }
19626
20643
  ];
19627
20644
  };
@@ -19748,6 +20765,13 @@ export type Database = {
19748
20765
  referencedRelation: "werkbonnen";
19749
20766
  referencedColumns: ["id"];
19750
20767
  },
20768
+ {
20769
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20770
+ columns: ["parent_werkbon_id"];
20771
+ isOneToOne: false;
20772
+ referencedRelation: "wo_overview";
20773
+ referencedColumns: ["id"];
20774
+ },
19751
20775
  {
19752
20776
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19753
20777
  columns: ["source_mailbox_message_id"];
@@ -20225,6 +21249,24 @@ export type Database = {
20225
21249
  };
20226
21250
  Relationships: [];
20227
21251
  };
21252
+ logistics_product_dimensions: {
21253
+ Row: {
21254
+ dimension_source: string | null;
21255
+ fust_height_mm: number | null;
21256
+ fust_length_mm: number | null;
21257
+ fust_name: string | null;
21258
+ fust_source: string | null;
21259
+ fust_type_id: string | null;
21260
+ fust_width_mm: number | null;
21261
+ height_source: string | null;
21262
+ missing_reason: string | null;
21263
+ plant_height_cm: number | null;
21264
+ plants_per_crate: number | null;
21265
+ product_id: string | null;
21266
+ product_name: string | null;
21267
+ };
21268
+ Relationships: [];
21269
+ };
20228
21270
  manufacture_product_possible_stock_view: {
20229
21271
  Row: {
20230
21272
  component_count: number | null;
@@ -20263,6 +21305,13 @@ export type Database = {
20263
21305
  isOneToOne: false;
20264
21306
  referencedRelation: "werkbonnen";
20265
21307
  referencedColumns: ["id"];
21308
+ },
21309
+ {
21310
+ foreignKeyName: "planning_items_werkbon_id_fkey";
21311
+ columns: ["werkbon_id"];
21312
+ isOneToOne: false;
21313
+ referencedRelation: "wo_overview";
21314
+ referencedColumns: ["id"];
20266
21315
  }
20267
21316
  ];
20268
21317
  };
@@ -20743,37 +21792,116 @@ export type Database = {
20743
21792
  isOneToOne: false;
20744
21793
  referencedRelation: "werkbonnen";
20745
21794
  referencedColumns: ["id"];
21795
+ },
21796
+ {
21797
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21798
+ columns: ["werkbon_id"];
21799
+ isOneToOne: false;
21800
+ referencedRelation: "wo_overview";
21801
+ referencedColumns: ["id"];
20746
21802
  }
20747
21803
  ];
20748
21804
  };
20749
- };
20750
- Functions: {
20751
- _floriday_schedule_job: {
20752
- Args: {
20753
- p_apikey: string;
20754
- p_jobname: string;
20755
- p_schedule: string;
20756
- p_timeout_ms: number;
20757
- p_url: string;
20758
- };
20759
- Returns: number;
20760
- };
20761
- _migrate_rewrite_stock_key: {
20762
- Args: {
20763
- _from_key: string;
20764
- _to_key: string;
21805
+ wo_overview: {
21806
+ Row: {
21807
+ assigned_user_id: string | null;
21808
+ budget_mandate_cents: number | null;
21809
+ created_at: string | null;
21810
+ customer_id: string | null;
21811
+ id: string | null;
21812
+ needs_detail_review: boolean | null;
21813
+ number: string | null;
21814
+ parent_werkbon_id: string | null;
21815
+ planning_status: string | null;
21816
+ scheduled_end_time: string | null;
21817
+ scheduled_start_time: string | null;
21818
+ source_type: string | null;
21819
+ status: string | null;
21820
+ technician_id: string | null;
21821
+ updated_at: string | null;
21822
+ work_address: string | null;
20765
21823
  };
20766
- Returns: undefined;
20767
- };
20768
- afh_city_code: {
20769
- Args: {
20770
- _city: string;
20771
- _country: string;
21824
+ Insert: {
21825
+ assigned_user_id?: string | null;
21826
+ budget_mandate_cents?: number | null;
21827
+ created_at?: string | null;
21828
+ customer_id?: string | null;
21829
+ id?: string | null;
21830
+ needs_detail_review?: boolean | null;
21831
+ number?: string | null;
21832
+ parent_werkbon_id?: string | null;
21833
+ planning_status?: string | null;
21834
+ scheduled_end_time?: string | null;
21835
+ scheduled_start_time?: string | null;
21836
+ source_type?: string | null;
21837
+ status?: string | null;
21838
+ technician_id?: string | null;
21839
+ updated_at?: string | null;
21840
+ work_address?: string | null;
20772
21841
  };
20773
- Returns: string;
20774
- };
20775
- afh_normalize_country: {
20776
- Args: {
21842
+ Update: {
21843
+ assigned_user_id?: string | null;
21844
+ budget_mandate_cents?: number | null;
21845
+ created_at?: string | null;
21846
+ customer_id?: string | null;
21847
+ id?: string | null;
21848
+ needs_detail_review?: boolean | null;
21849
+ number?: string | null;
21850
+ parent_werkbon_id?: string | null;
21851
+ planning_status?: string | null;
21852
+ scheduled_end_time?: string | null;
21853
+ scheduled_start_time?: string | null;
21854
+ source_type?: string | null;
21855
+ status?: string | null;
21856
+ technician_id?: string | null;
21857
+ updated_at?: string | null;
21858
+ work_address?: string | null;
21859
+ };
21860
+ Relationships: [
21861
+ {
21862
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21863
+ columns: ["parent_werkbon_id"];
21864
+ isOneToOne: false;
21865
+ referencedRelation: "werkbonnen";
21866
+ referencedColumns: ["id"];
21867
+ },
21868
+ {
21869
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21870
+ columns: ["parent_werkbon_id"];
21871
+ isOneToOne: false;
21872
+ referencedRelation: "wo_overview";
21873
+ referencedColumns: ["id"];
21874
+ }
21875
+ ];
21876
+ };
21877
+ };
21878
+ Functions: {
21879
+ _floriday_schedule_job: {
21880
+ Args: {
21881
+ p_apikey: string;
21882
+ p_jobname: string;
21883
+ p_schedule: string;
21884
+ p_timeout_ms: number;
21885
+ p_url: string;
21886
+ };
21887
+ Returns: number;
21888
+ };
21889
+ _migrate_rewrite_stock_key: {
21890
+ Args: {
21891
+ _from_key: string;
21892
+ _to_key: string;
21893
+ };
21894
+ Returns: undefined;
21895
+ };
21896
+ afh_city_code: {
21897
+ Args: {
21898
+ _city: string;
21899
+ _country: string;
21900
+ };
21901
+ Returns: string;
21902
+ };
21903
+ afh_normalize_country: {
21904
+ Args: {
20777
21905
  _raw: string;
20778
21906
  };
20779
21907
  Returns: string;
@@ -20935,12 +22063,21 @@ export type Database = {
20935
22063
  _max?: number;
20936
22064
  };
20937
22065
  Returns: {
22066
+ aflever_pogingen: number;
20938
22067
  agent_id: string | null;
22068
+ artefact_bytes: number | null;
22069
+ artefact_gereed_op: string | null;
22070
+ artefact_pad: string | null;
22071
+ artefact_sha256: string | null;
22072
+ batch_id: string | null;
20939
22073
  bron_job_id: string | null;
20940
22074
  created_at: string;
20941
22075
  documentnaam: string;
20942
22076
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20943
22077
  extern_job_id: string | null;
22078
+ fase_gestart_op: string | null;
22079
+ fase_voltooid_op: string | null;
22080
+ foutcode: string | null;
20944
22081
  foutmelding: string | null;
20945
22082
  gebruiker_id: string | null;
20946
22083
  gebruiker_naam: string;
@@ -20954,7 +22091,10 @@ export type Database = {
20954
22091
  kopieen: number;
20955
22092
  layout_id: string | null;
20956
22093
  lokaal_opgeslagen_op: string | null;
22094
+ lokale_pdf_claim_id: string | null;
22095
+ lokale_pdf_claim_tot: string | null;
20957
22096
  lokale_pdf_fout: string | null;
22097
+ lokale_pdf_print_plek_id: string | null;
20958
22098
  lokale_pdf_status: string | null;
20959
22099
  opgepakt_op: string | null;
20960
22100
  paginas: number;
@@ -20967,6 +22107,7 @@ export type Database = {
20967
22107
  resultaat_pdf_base64: string | null;
20968
22108
  status: Database["public"]["Enums"]["print_job_status"];
20969
22109
  updated_at: string;
22110
+ verwerkingsfase: string;
20970
22111
  volgende_poging: string | null;
20971
22112
  voltooid_op: string | null;
20972
22113
  }[];
@@ -21013,6 +22154,25 @@ export type Database = {
21013
22154
  isSetofReturn: true;
21014
22155
  };
21015
22156
  };
22157
+ claim_local_pdf_jobs: {
22158
+ Args: {
22159
+ _max?: number;
22160
+ _print_plek_id: string;
22161
+ _writer_id: string;
22162
+ };
22163
+ Returns: {
22164
+ artefact_bytes: number;
22165
+ artefact_pad: string;
22166
+ artefact_sha256: string;
22167
+ documentnaam: string;
22168
+ id: string;
22169
+ lokale_pdf_print_plek_id: string;
22170
+ lokale_pdf_status: string;
22171
+ printer_id: string;
22172
+ resultaat_pdf_base64: string;
22173
+ status: string;
22174
+ }[];
22175
+ };
21016
22176
  claim_logistics_tasks: {
21017
22177
  Args: {
21018
22178
  _limit?: number;
@@ -21066,12 +22226,21 @@ export type Database = {
21066
22226
  _max?: number;
21067
22227
  };
21068
22228
  Returns: {
22229
+ aflever_pogingen: number;
21069
22230
  agent_id: string | null;
22231
+ artefact_bytes: number | null;
22232
+ artefact_gereed_op: string | null;
22233
+ artefact_pad: string | null;
22234
+ artefact_sha256: string | null;
22235
+ batch_id: string | null;
21070
22236
  bron_job_id: string | null;
21071
22237
  created_at: string;
21072
22238
  documentnaam: string;
21073
22239
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21074
22240
  extern_job_id: string | null;
22241
+ fase_gestart_op: string | null;
22242
+ fase_voltooid_op: string | null;
22243
+ foutcode: string | null;
21075
22244
  foutmelding: string | null;
21076
22245
  gebruiker_id: string | null;
21077
22246
  gebruiker_naam: string;
@@ -21085,7 +22254,10 @@ export type Database = {
21085
22254
  kopieen: number;
21086
22255
  layout_id: string | null;
21087
22256
  lokaal_opgeslagen_op: string | null;
22257
+ lokale_pdf_claim_id: string | null;
22258
+ lokale_pdf_claim_tot: string | null;
21088
22259
  lokale_pdf_fout: string | null;
22260
+ lokale_pdf_print_plek_id: string | null;
21089
22261
  lokale_pdf_status: string | null;
21090
22262
  opgepakt_op: string | null;
21091
22263
  paginas: number;
@@ -21098,6 +22270,7 @@ export type Database = {
21098
22270
  resultaat_pdf_base64: string | null;
21099
22271
  status: Database["public"]["Enums"]["print_job_status"];
21100
22272
  updated_at: string;
22273
+ verwerkingsfase: string;
21101
22274
  volgende_poging: string | null;
21102
22275
  voltooid_op: string | null;
21103
22276
  }[];
@@ -21114,12 +22287,21 @@ export type Database = {
21114
22287
  _max?: number;
21115
22288
  };
21116
22289
  Returns: {
22290
+ aflever_pogingen: number;
21117
22291
  agent_id: string | null;
22292
+ artefact_bytes: number | null;
22293
+ artefact_gereed_op: string | null;
22294
+ artefact_pad: string | null;
22295
+ artefact_sha256: string | null;
22296
+ batch_id: string | null;
21118
22297
  bron_job_id: string | null;
21119
22298
  created_at: string;
21120
22299
  documentnaam: string;
21121
22300
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21122
22301
  extern_job_id: string | null;
22302
+ fase_gestart_op: string | null;
22303
+ fase_voltooid_op: string | null;
22304
+ foutcode: string | null;
21123
22305
  foutmelding: string | null;
21124
22306
  gebruiker_id: string | null;
21125
22307
  gebruiker_naam: string;
@@ -21133,7 +22315,10 @@ export type Database = {
21133
22315
  kopieen: number;
21134
22316
  layout_id: string | null;
21135
22317
  lokaal_opgeslagen_op: string | null;
22318
+ lokale_pdf_claim_id: string | null;
22319
+ lokale_pdf_claim_tot: string | null;
21136
22320
  lokale_pdf_fout: string | null;
22321
+ lokale_pdf_print_plek_id: string | null;
21137
22322
  lokale_pdf_status: string | null;
21138
22323
  opgepakt_op: string | null;
21139
22324
  paginas: number;
@@ -21146,6 +22331,7 @@ export type Database = {
21146
22331
  resultaat_pdf_base64: string | null;
21147
22332
  status: Database["public"]["Enums"]["print_job_status"];
21148
22333
  updated_at: string;
22334
+ verwerkingsfase: string;
21149
22335
  volgende_poging: string | null;
21150
22336
  voltooid_op: string | null;
21151
22337
  }[];
@@ -21156,6 +22342,14 @@ export type Database = {
21156
22342
  isSetofReturn: true;
21157
22343
  };
21158
22344
  };
22345
+ claim_print_queue_lease: {
22346
+ Args: {
22347
+ _houder: string;
22348
+ _naam: string;
22349
+ _seconden?: number;
22350
+ };
22351
+ Returns: boolean;
22352
+ };
21159
22353
  claim_twinfield_push_batch: {
21160
22354
  Args: {
21161
22355
  _customer_id?: string;
@@ -21281,7 +22475,10 @@ export type Database = {
21281
22475
  cart_index: number;
21282
22476
  cart_number: string;
21283
22477
  cart_number_id: string;
22478
+ cart_seq: number;
22479
+ cart_total: number;
21284
22480
  order_id: string;
22481
+ order_number: string;
21285
22482
  order_source: string;
21286
22483
  pick_date: string;
21287
22484
  printed_at: string;
@@ -21289,6 +22486,12 @@ export type Database = {
21289
22486
  status: string;
21290
22487
  }[];
21291
22488
  };
22489
+ control_mark_carts_delivered: {
22490
+ Args: {
22491
+ p_carts: Json;
22492
+ };
22493
+ Returns: number;
22494
+ };
21292
22495
  count_distinct_regulatory_products: {
21293
22496
  Args: never;
21294
22497
  Returns: number;
@@ -21416,6 +22619,13 @@ export type Database = {
21416
22619
  };
21417
22620
  Returns: undefined;
21418
22621
  };
22622
+ ensure_system_roles: {
22623
+ Args: never;
22624
+ Returns: {
22625
+ action: string;
22626
+ role_key: string;
22627
+ }[];
22628
+ };
21419
22629
  ensure_trade_item_stock_row: {
21420
22630
  Args: {
21421
22631
  p_key: string;
@@ -21482,6 +22692,15 @@ export type Database = {
21482
22692
  };
21483
22693
  Returns: string;
21484
22694
  };
22695
+ finish_local_pdf_job: {
22696
+ Args: {
22697
+ _fout?: string;
22698
+ _job_id: string;
22699
+ _status: string;
22700
+ _writer_id: string;
22701
+ };
22702
+ Returns: boolean;
22703
+ };
21485
22704
  floriday_capture_stock_snapshot: {
21486
22705
  Args: never;
21487
22706
  Returns: number;
@@ -21761,6 +22980,36 @@ export type Database = {
21761
22980
  Args: never;
21762
22981
  Returns: string;
21763
22982
  };
22983
+ handover_archief_lijst: {
22984
+ Args: never;
22985
+ Returns: Json;
22986
+ };
22987
+ handover_archiveren: {
22988
+ Args: {
22989
+ _archief?: boolean;
22990
+ _module_id: string;
22991
+ };
22992
+ Returns: boolean;
22993
+ };
22994
+ handover_check_afronden: {
22995
+ Args: {
22996
+ _module_id: string;
22997
+ };
22998
+ Returns: boolean;
22999
+ };
23000
+ handover_check_markeren: {
23001
+ Args: {
23002
+ _module_ids: string[];
23003
+ _reden?: string;
23004
+ };
23005
+ Returns: number;
23006
+ };
23007
+ handover_fingerprint_maken: {
23008
+ Args: {
23009
+ _module_id?: string;
23010
+ };
23011
+ Returns: Json;
23012
+ };
21764
23013
  handover_get: {
21765
23014
  Args: {
21766
23015
  _module_id: string;
@@ -21791,6 +23040,14 @@ export type Database = {
21791
23040
  };
21792
23041
  Returns: boolean;
21793
23042
  };
23043
+ handover_module_meta_zetten: {
23044
+ Args: {
23045
+ _module_id: string;
23046
+ _project_url?: string;
23047
+ _publicatie_url?: string;
23048
+ };
23049
+ Returns: boolean;
23050
+ };
21794
23051
  handover_norm_naam: {
21795
23052
  Args: {
21796
23053
  _naam: string;
@@ -21811,6 +23068,23 @@ export type Database = {
21811
23068
  };
21812
23069
  Returns: number;
21813
23070
  };
23071
+ handover_publish_uit_github: {
23072
+ Args: {
23073
+ _bezit_tabellen?: string[];
23074
+ _bron_soort?: string;
23075
+ _commit?: string;
23076
+ _contractfuncties?: string[];
23077
+ _inhoud_md: string;
23078
+ _module_id: string;
23079
+ _module_titel: string;
23080
+ _ontbrekende_contracten?: string[];
23081
+ _pad?: string;
23082
+ _repo?: string;
23083
+ _samenvatting?: string;
23084
+ _versie_label?: string;
23085
+ };
23086
+ Returns: Json;
23087
+ };
21814
23088
  handover_publish_via_token: {
21815
23089
  Args: {
21816
23090
  _bevindingen?: string;
@@ -21824,7 +23098,7 @@ export type Database = {
21824
23098
  _samenvatting?: string;
21825
23099
  _token_hash: string;
21826
23100
  };
21827
- Returns: number;
23101
+ Returns: Json;
21828
23102
  };
21829
23103
  handover_status: {
21830
23104
  Args: never;
@@ -21836,23 +23110,6 @@ export type Database = {
21836
23110
  };
21837
23111
  Returns: string;
21838
23112
  };
21839
- handover_token_intrekken: {
21840
- Args: {
21841
- _id: string;
21842
- };
21843
- Returns: boolean;
21844
- };
21845
- handover_token_lijst: {
21846
- Args: never;
21847
- Returns: Json;
21848
- };
21849
- handover_token_maken: {
21850
- Args: {
21851
- _label?: string;
21852
- _module_id: string;
21853
- };
21854
- Returns: string;
21855
- };
21856
23113
  handover_update: {
21857
23114
  Args: {
21858
23115
  _bezit_tabellen?: string[];
@@ -21880,12 +23137,31 @@ export type Database = {
21880
23137
  };
21881
23138
  Returns: boolean;
21882
23139
  };
23140
+ handover_versie_verwijderen: {
23141
+ Args: {
23142
+ _module_id: string;
23143
+ _versie: number;
23144
+ };
23145
+ Returns: boolean;
23146
+ };
21883
23147
  handover_versies: {
21884
23148
  Args: {
21885
23149
  _module_id: string;
21886
23150
  };
21887
23151
  Returns: Json;
21888
23152
  };
23153
+ handover_verwijderen: {
23154
+ Args: {
23155
+ _module_id: string;
23156
+ };
23157
+ Returns: boolean;
23158
+ };
23159
+ handover_wijzigingen: {
23160
+ Args: {
23161
+ _module_id?: string;
23162
+ };
23163
+ Returns: Json;
23164
+ };
21889
23165
  has_module_permission: {
21890
23166
  Args: {
21891
23167
  _min: string;
@@ -22220,6 +23496,13 @@ export type Database = {
22220
23496
  };
22221
23497
  Returns: string;
22222
23498
  };
23499
+ logistics_cart_handled: {
23500
+ Args: {
23501
+ p_cart_index: number;
23502
+ p_order_id: string;
23503
+ };
23504
+ Returns: boolean;
23505
+ };
22223
23506
  logistics_cart_index: {
22224
23507
  Args: {
22225
23508
  p_from?: string;
@@ -22229,6 +23512,9 @@ export type Database = {
22229
23512
  cart_id: string;
22230
23513
  cart_index: number;
22231
23514
  cart_label: string;
23515
+ cart_number: string;
23516
+ cart_seq: number;
23517
+ cart_total: number;
22232
23518
  delivery_date: string;
22233
23519
  is_announced: boolean;
22234
23520
  is_controlled: boolean;
@@ -22243,12 +23529,60 @@ export type Database = {
22243
23529
  task_status: string;
22244
23530
  }[];
22245
23531
  };
23532
+ logistics_cart_layout_method: {
23533
+ Args: never;
23534
+ Returns: Json;
23535
+ };
23536
+ logistics_cart_seq: {
23537
+ Args: {
23538
+ p_order_uuid?: string;
23539
+ };
23540
+ Returns: {
23541
+ cart_id: string;
23542
+ cart_index: number;
23543
+ cart_number: string;
23544
+ cart_seq: number;
23545
+ cart_total: number;
23546
+ order_uuid: string;
23547
+ }[];
23548
+ };
22246
23549
  logistics_cart_slip_plan: {
22247
23550
  Args: {
22248
23551
  p_order_id: string;
22249
23552
  };
22250
23553
  Returns: Json;
22251
23554
  };
23555
+ logistics_cart_units: {
23556
+ Args: {
23557
+ p_from?: string;
23558
+ p_to?: string;
23559
+ };
23560
+ Returns: {
23561
+ cart_id: string;
23562
+ cart_index: number;
23563
+ cart_label: string;
23564
+ cart_number: string;
23565
+ cart_seq: number;
23566
+ cart_total: number;
23567
+ delivery_date: string;
23568
+ is_announced: boolean;
23569
+ is_buffer: boolean;
23570
+ is_controlled: boolean;
23571
+ is_printed: boolean;
23572
+ is_shared: boolean;
23573
+ order_number: string;
23574
+ order_source: string;
23575
+ order_uuid: string;
23576
+ pick_date: string;
23577
+ printed_at: string;
23578
+ shifted: boolean;
23579
+ task_status: string;
23580
+ unit_buffer: string;
23581
+ unit_order_count: number;
23582
+ unit_orders: string[];
23583
+ unit_ref: string;
23584
+ }[];
23585
+ };
22252
23586
  logistics_check_order_allowed: {
22253
23587
  Args: {
22254
23588
  p_lines: Json;
@@ -22404,7 +23738,9 @@ export type Database = {
22404
23738
  announced_carts: number;
22405
23739
  control_carts: number;
22406
23740
  delivery_carts: number;
23741
+ duplicate_carts: number;
22407
23742
  ok: boolean;
23743
+ orphan_carts: number;
22408
23744
  orphan_tasks: number;
22409
23745
  pick_date: string;
22410
23746
  raw_carts: number;
@@ -22412,38 +23748,117 @@ export type Database = {
22412
23748
  station_carts: number;
22413
23749
  }[];
22414
23750
  };
22415
- logistics_delay_customer_email: {
23751
+ logistics_control_scan_approve: {
22416
23752
  Args: {
22417
- p_customer: string;
22418
- p_lang: string;
22419
- p_new_date: string;
22420
- p_order: string;
22421
- p_partial?: boolean;
23753
+ p_allow_reprint?: boolean;
23754
+ p_barcode: string;
23755
+ p_printer_id?: string;
23756
+ p_scanner_id?: string;
22422
23757
  };
22423
- Returns: {
22424
- body: string;
22425
- subject: string;
22426
- }[];
23758
+ Returns: Json;
22427
23759
  };
22428
- logistics_delivery_agenda: {
23760
+ logistics_control_scan_claim: {
22429
23761
  Args: {
22430
- p_from?: string;
22431
- p_to?: string;
23762
+ _lease_seconds?: number;
23763
+ _limit?: number;
22432
23764
  };
22433
23765
  Returns: {
22434
- announced_count: number;
22435
- cart_count: number;
22436
- controlled_count: number;
22437
- delivery_date: string;
22438
- order_count: number;
22439
- orders: Json;
22440
- plant_count: number;
22441
- printed_count: number;
23766
+ approved_at: string | null;
23767
+ attempts: number;
23768
+ barcode: string;
23769
+ cart_id: string;
23770
+ created_at: string;
23771
+ document_url: string | null;
23772
+ error: string | null;
23773
+ error_code: string | null;
23774
+ fulfillment_order_id: string | null;
23775
+ id: string;
23776
+ is_floriday: boolean;
23777
+ locked_until: string | null;
23778
+ order_id: string | null;
23779
+ order_number: string | null;
23780
+ print_job_id: string | null;
23781
+ printed_at: string | null;
23782
+ printer_id: string | null;
23783
+ scanner_id: string | null;
23784
+ status: string;
23785
+ updated_at: string;
22442
23786
  }[];
23787
+ SetofOptions: {
23788
+ from: "*";
23789
+ to: "logistics_control_scan";
23790
+ isOneToOne: false;
23791
+ isSetofReturn: true;
23792
+ };
22443
23793
  };
22444
- logistics_document_layout: {
23794
+ logistics_control_scan_finish: {
22445
23795
  Args: {
22446
- _document_code: string;
23796
+ _document_url?: string;
23797
+ _error?: string;
23798
+ _error_code?: string;
23799
+ _fulfillment_order_id?: string;
23800
+ _id: string;
23801
+ _ok: boolean;
23802
+ _print_job_id?: string;
23803
+ _status?: string;
23804
+ };
23805
+ Returns: Json;
23806
+ };
23807
+ logistics_control_scan_lookup: {
23808
+ Args: {
23809
+ p_barcode: string;
23810
+ };
23811
+ Returns: Json;
23812
+ };
23813
+ logistics_control_scan_overview: {
23814
+ Args: {
23815
+ _date?: string;
23816
+ _scanner_id?: string;
23817
+ };
23818
+ Returns: Json;
23819
+ };
23820
+ logistics_control_scan_retry: {
23821
+ Args: {
23822
+ _id: string;
23823
+ };
23824
+ Returns: Json;
23825
+ };
23826
+ logistics_control_settings: {
23827
+ Args: never;
23828
+ Returns: Json;
23829
+ };
23830
+ logistics_delay_customer_email: {
23831
+ Args: {
23832
+ p_customer: string;
23833
+ p_lang: string;
23834
+ p_new_date: string;
23835
+ p_order: string;
23836
+ p_partial?: boolean;
23837
+ };
23838
+ Returns: {
23839
+ body: string;
23840
+ subject: string;
23841
+ }[];
23842
+ };
23843
+ logistics_delivery_agenda: {
23844
+ Args: {
23845
+ p_from?: string;
23846
+ p_to?: string;
23847
+ };
23848
+ Returns: {
23849
+ announced_count: number;
23850
+ cart_count: number;
23851
+ controlled_count: number;
23852
+ delivery_date: string;
23853
+ order_count: number;
23854
+ orders: Json;
23855
+ plant_count: number;
23856
+ printed_count: number;
23857
+ }[];
23858
+ };
23859
+ logistics_document_layout: {
23860
+ Args: {
23861
+ _document_code: string;
22447
23862
  };
22448
23863
  Returns: Json;
22449
23864
  };
@@ -22479,6 +23894,17 @@ export type Database = {
22479
23894
  };
22480
23895
  Returns: Json;
22481
23896
  };
23897
+ logistics_enqueue_sticker_with_slip: {
23898
+ Args: {
23899
+ _cart_id: string;
23900
+ _is_herprint: boolean;
23901
+ _printer_id: string;
23902
+ _queue_item_id: string;
23903
+ _session_id: string;
23904
+ _slip_job_id: string;
23905
+ };
23906
+ Returns: string;
23907
+ };
22482
23908
  logistics_ensure_cart_barcode: {
22483
23909
  Args: {
22484
23910
  _cart_id: string;
@@ -22620,6 +24046,26 @@ export type Database = {
22620
24046
  };
22621
24047
  Returns: string;
22622
24048
  };
24049
+ logistics_fulfill_barcode_requests: {
24050
+ Args: {
24051
+ p_limit?: number;
24052
+ };
24053
+ Returns: Json;
24054
+ };
24055
+ logistics_full_cart_min_layers: {
24056
+ Args: never;
24057
+ Returns: number;
24058
+ };
24059
+ logistics_full_cart_min_percentage: {
24060
+ Args: never;
24061
+ Returns: number;
24062
+ };
24063
+ logistics_is_pick_workday: {
24064
+ Args: {
24065
+ p_date: string;
24066
+ };
24067
+ Returns: boolean;
24068
+ };
22623
24069
  logistics_live_carriers: {
22624
24070
  Args: {
22625
24071
  p_order_ref: string;
@@ -22632,6 +24078,20 @@ export type Database = {
22632
24078
  };
22633
24079
  Returns: number;
22634
24080
  };
24081
+ logistics_next_workday_date: {
24082
+ Args: {
24083
+ p_date: string;
24084
+ p_days?: string[];
24085
+ };
24086
+ Returns: string;
24087
+ };
24088
+ logistics_next_workday_not_past: {
24089
+ Args: {
24090
+ p_days: string[];
24091
+ p_ts: string;
24092
+ };
24093
+ Returns: string;
24094
+ };
22635
24095
  logistics_not_past: {
22636
24096
  Args: {
22637
24097
  p_ts: string;
@@ -22644,6 +24104,19 @@ export type Database = {
22644
24104
  };
22645
24105
  Returns: number;
22646
24106
  };
24107
+ logistics_order_handled: {
24108
+ Args: {
24109
+ p_order_uuid: string;
24110
+ };
24111
+ Returns: boolean;
24112
+ };
24113
+ logistics_order_is_topick: {
24114
+ Args: {
24115
+ p_order_id: string;
24116
+ p_order_number: string;
24117
+ };
24118
+ Returns: boolean;
24119
+ };
22647
24120
  logistics_order_overview: {
22648
24121
  Args: {
22649
24122
  p_from?: string;
@@ -22669,6 +24142,12 @@ export type Database = {
22669
24142
  };
22670
24143
  Returns: string;
22671
24144
  };
24145
+ logistics_order_released: {
24146
+ Args: {
24147
+ p_order_ref: string;
24148
+ };
24149
+ Returns: boolean;
24150
+ };
22672
24151
  logistics_parse_pickup: {
22673
24152
  Args: {
22674
24153
  p_value: string;
@@ -22691,10 +24170,37 @@ export type Database = {
22691
24170
  shifted_count: number;
22692
24171
  }[];
22693
24172
  };
24173
+ logistics_pick_barcode_enabled: {
24174
+ Args: never;
24175
+ Returns: boolean;
24176
+ };
22694
24177
  logistics_pick_email_purpose: {
22695
24178
  Args: never;
22696
24179
  Returns: string;
22697
24180
  };
24181
+ logistics_pick_mode: {
24182
+ Args: never;
24183
+ Returns: Json;
24184
+ };
24185
+ logistics_pick_start_estimate: {
24186
+ Args: {
24187
+ p_order: Json;
24188
+ s: Json;
24189
+ };
24190
+ Returns: string;
24191
+ };
24192
+ logistics_pick_units: {
24193
+ Args: never;
24194
+ Returns: {
24195
+ is_buffer: boolean;
24196
+ order_number: string;
24197
+ order_uuid: string;
24198
+ unit_buffer: string;
24199
+ unit_order_count: number;
24200
+ unit_orders: string[];
24201
+ unit_ref: string;
24202
+ }[];
24203
+ };
22698
24204
  logistics_plan_all: {
22699
24205
  Args: {
22700
24206
  p_user_id?: string;
@@ -22781,6 +24287,14 @@ export type Database = {
22781
24287
  };
22782
24288
  Returns: number;
22783
24289
  };
24290
+ logistics_prune_buffer_member_queue: {
24291
+ Args: never;
24292
+ Returns: number;
24293
+ };
24294
+ logistics_prune_handled_pick_queue: {
24295
+ Args: never;
24296
+ Returns: number;
24297
+ };
22784
24298
  logistics_queue_capacity_email: {
22785
24299
  Args: {
22786
24300
  p_alert_id: string;
@@ -22813,6 +24327,12 @@ export type Database = {
22813
24327
  Args: never;
22814
24328
  Returns: Json;
22815
24329
  };
24330
+ logistics_refresh_pickup_moments: {
24331
+ Args: {
24332
+ p_weeks?: number;
24333
+ };
24334
+ Returns: Json;
24335
+ };
22816
24336
  logistics_report_delay: {
22817
24337
  Args: {
22818
24338
  p_expected_date?: string;
@@ -22919,6 +24439,12 @@ export type Database = {
22919
24439
  };
22920
24440
  Returns: string;
22921
24441
  };
24442
+ logistics_scan_resolve: {
24443
+ Args: {
24444
+ p_code: string;
24445
+ };
24446
+ Returns: Json;
24447
+ };
22922
24448
  logistics_schedule_tasks: {
22923
24449
  Args: never;
22924
24450
  Returns: number;
@@ -22953,6 +24479,10 @@ export type Database = {
22953
24479
  };
22954
24480
  Returns: Json;
22955
24481
  };
24482
+ logistics_sticker_follows_slip: {
24483
+ Args: never;
24484
+ Returns: boolean;
24485
+ };
22956
24486
  logistics_supersede_stale_tasks: {
22957
24487
  Args: {
22958
24488
  p_keep: string[];
@@ -23004,6 +24534,18 @@ export type Database = {
23004
24534
  };
23005
24535
  Returns: string;
23006
24536
  };
24537
+ logistics_write_buffer_layer_positions: {
24538
+ Args: {
24539
+ p_buffer_id: string;
24540
+ };
24541
+ Returns: number;
24542
+ };
24543
+ logistics_write_cart_layer_positions: {
24544
+ Args: {
24545
+ p_cart_id: string;
24546
+ };
24547
+ Returns: number;
24548
+ };
23007
24549
  mark_offer_clicked: {
23008
24550
  Args: {
23009
24551
  p_code: string;
@@ -23036,6 +24578,15 @@ export type Database = {
23036
24578
  };
23037
24579
  Returns: undefined;
23038
24580
  };
24581
+ move_cart_layer_position: {
24582
+ Args: {
24583
+ p_id: string;
24584
+ p_layer: number;
24585
+ p_x: number;
24586
+ p_y: number;
24587
+ };
24588
+ Returns: undefined;
24589
+ };
23039
24590
  my_module_permissions: {
23040
24591
  Args: never;
23041
24592
  Returns: {
@@ -23107,6 +24658,12 @@ export type Database = {
23107
24658
  };
23108
24659
  Returns: Json;
23109
24660
  };
24661
+ order_heeft_bevestigde_karren: {
24662
+ Args: {
24663
+ p_order_id: string;
24664
+ };
24665
+ Returns: boolean;
24666
+ };
23110
24667
  order_number_prefix: {
23111
24668
  Args: {
23112
24669
  p_custom_fields?: Json;
@@ -23142,6 +24699,27 @@ export type Database = {
23142
24699
  online: boolean;
23143
24700
  }[];
23144
24701
  };
24702
+ pick_available_pick_days: {
24703
+ Args: {
24704
+ _max_days?: number;
24705
+ };
24706
+ Returns: {
24707
+ orders: number;
24708
+ pick_day: string;
24709
+ }[];
24710
+ };
24711
+ pick_buffer_order_ids: {
24712
+ Args: {
24713
+ _order_id: string;
24714
+ };
24715
+ Returns: string[];
24716
+ };
24717
+ pick_cart_breakdown: {
24718
+ Args: {
24719
+ _order_id: string;
24720
+ };
24721
+ Returns: Json;
24722
+ };
23145
24723
  pick_claim_document: {
23146
24724
  Args: {
23147
24725
  _queue_item_id: string;
@@ -23195,6 +24773,7 @@ export type Database = {
23195
24773
  pick_claim_next_document: {
23196
24774
  Args: {
23197
24775
  _country_code: string;
24776
+ _pick_day?: string;
23198
24777
  _screen_id: string;
23199
24778
  _session_id: string;
23200
24779
  _station_id: string;
@@ -23346,6 +24925,14 @@ export type Database = {
23346
24925
  isSetofReturn: false;
23347
24926
  };
23348
24927
  };
24928
+ pick_complete_print_carts: {
24929
+ Args: {
24930
+ _cart_ids: string[];
24931
+ _queue_item_id: string;
24932
+ _session_id: string;
24933
+ };
24934
+ Returns: Json;
24935
+ };
23349
24936
  pick_current_pick_day: {
23350
24937
  Args: never;
23351
24938
  Returns: string;
@@ -23382,6 +24969,65 @@ export type Database = {
23382
24969
  };
23383
24970
  Returns: string;
23384
24971
  };
24972
+ pick_enqueue_print_job_from_cart: {
24973
+ Args: {
24974
+ _cart_id: string;
24975
+ _is_herprint: boolean;
24976
+ _printer_id: string;
24977
+ _queue_item_id: string;
24978
+ _selected_cart: Json;
24979
+ _session_id: string;
24980
+ };
24981
+ Returns: string;
24982
+ };
24983
+ pick_mark_printed: {
24984
+ Args: {
24985
+ _queue_item_id: string;
24986
+ _reden?: string;
24987
+ _session_id: string;
24988
+ };
24989
+ Returns: {
24990
+ announced_at: string;
24991
+ assigned_user_id: string | null;
24992
+ barcode: string | null;
24993
+ cancelled_at: string | null;
24994
+ cart_count: number;
24995
+ completed_at: string | null;
24996
+ country_code: string | null;
24997
+ created_at: string;
24998
+ customer_name: string | null;
24999
+ delivery_address: string | null;
25000
+ document_number: string | null;
25001
+ document_type_id: string | null;
25002
+ due_at: string | null;
25003
+ id: string;
25004
+ is_urgent: boolean;
25005
+ line_count: number;
25006
+ order_number: string | null;
25007
+ order_type: string | null;
25008
+ payload: Json;
25009
+ print_count: number;
25010
+ print_job_id: string | null;
25011
+ printed_at: string | null;
25012
+ printed_by: string | null;
25013
+ printed_cart_ids: Json;
25014
+ printer_id: string | null;
25015
+ priority: number;
25016
+ reference: string | null;
25017
+ route: string | null;
25018
+ screen_id: string | null;
25019
+ station_id: string | null;
25020
+ status_id: string | null;
25021
+ updated_at: string;
25022
+ warnings: Json;
25023
+ };
25024
+ SetofOptions: {
25025
+ from: "*";
25026
+ to: "pick_queue";
25027
+ isOneToOne: true;
25028
+ isSetofReturn: false;
25029
+ };
25030
+ };
23385
25031
  pick_order_context: {
23386
25032
  Args: {
23387
25033
  _order_id?: string;
@@ -23402,6 +25048,12 @@ export type Database = {
23402
25048
  };
23403
25049
  Returns: Json;
23404
25050
  };
25051
+ pick_print_jobs_status: {
25052
+ Args: {
25053
+ _job_ids: string[];
25054
+ };
25055
+ Returns: Json[];
25056
+ };
23405
25057
  pick_print_plekken: {
23406
25058
  Args: never;
23407
25059
  Returns: {
@@ -23410,6 +25062,12 @@ export type Database = {
23410
25062
  omschrijving: string;
23411
25063
  }[];
23412
25064
  };
25065
+ pick_queue_cart_plan: {
25066
+ Args: {
25067
+ _queue_item_id: string;
25068
+ };
25069
+ Returns: Json;
25070
+ };
23413
25071
  pick_reference_data_status: {
23414
25072
  Args: never;
23415
25073
  Returns: Json;
@@ -23424,6 +25082,15 @@ export type Database = {
23424
25082
  };
23425
25083
  Returns: undefined;
23426
25084
  };
25085
+ pick_reprint_cart: {
25086
+ Args: {
25087
+ _cart_id: string;
25088
+ _queue_item_id: string;
25089
+ _session_id: string;
25090
+ _throttle_seconds?: number;
25091
+ };
25092
+ Returns: string;
25093
+ };
23427
25094
  pick_reprint_document: {
23428
25095
  Args: {
23429
25096
  _queue_item_id: string;
@@ -23526,6 +25193,151 @@ export type Database = {
23526
25193
  isSetofReturn: false;
23527
25194
  };
23528
25195
  };
25196
+ pick_reset_print_job: {
25197
+ Args: {
25198
+ _cart_id: string;
25199
+ _job_id: string;
25200
+ _queue_item_id: string;
25201
+ _session_id: string;
25202
+ };
25203
+ Returns: {
25204
+ announced_at: string;
25205
+ assigned_user_id: string | null;
25206
+ barcode: string | null;
25207
+ cancelled_at: string | null;
25208
+ cart_count: number;
25209
+ completed_at: string | null;
25210
+ country_code: string | null;
25211
+ created_at: string;
25212
+ customer_name: string | null;
25213
+ delivery_address: string | null;
25214
+ document_number: string | null;
25215
+ document_type_id: string | null;
25216
+ due_at: string | null;
25217
+ id: string;
25218
+ is_urgent: boolean;
25219
+ line_count: number;
25220
+ order_number: string | null;
25221
+ order_type: string | null;
25222
+ payload: Json;
25223
+ print_count: number;
25224
+ print_job_id: string | null;
25225
+ printed_at: string | null;
25226
+ printed_by: string | null;
25227
+ printed_cart_ids: Json;
25228
+ printer_id: string | null;
25229
+ priority: number;
25230
+ reference: string | null;
25231
+ route: string | null;
25232
+ screen_id: string | null;
25233
+ station_id: string | null;
25234
+ status_id: string | null;
25235
+ updated_at: string;
25236
+ warnings: Json;
25237
+ };
25238
+ SetofOptions: {
25239
+ from: "*";
25240
+ to: "pick_queue";
25241
+ isOneToOne: true;
25242
+ isSetofReturn: false;
25243
+ };
25244
+ };
25245
+ pick_reset_print_jobs: {
25246
+ Args: {
25247
+ _cart_ids: string[];
25248
+ _job_ids: string[];
25249
+ _queue_item_id: string;
25250
+ _session_id: string;
25251
+ };
25252
+ Returns: {
25253
+ announced_at: string;
25254
+ assigned_user_id: string | null;
25255
+ barcode: string | null;
25256
+ cancelled_at: string | null;
25257
+ cart_count: number;
25258
+ completed_at: string | null;
25259
+ country_code: string | null;
25260
+ created_at: string;
25261
+ customer_name: string | null;
25262
+ delivery_address: string | null;
25263
+ document_number: string | null;
25264
+ document_type_id: string | null;
25265
+ due_at: string | null;
25266
+ id: string;
25267
+ is_urgent: boolean;
25268
+ line_count: number;
25269
+ order_number: string | null;
25270
+ order_type: string | null;
25271
+ payload: Json;
25272
+ print_count: number;
25273
+ print_job_id: string | null;
25274
+ printed_at: string | null;
25275
+ printed_by: string | null;
25276
+ printed_cart_ids: Json;
25277
+ printer_id: string | null;
25278
+ priority: number;
25279
+ reference: string | null;
25280
+ route: string | null;
25281
+ screen_id: string | null;
25282
+ station_id: string | null;
25283
+ status_id: string | null;
25284
+ updated_at: string;
25285
+ warnings: Json;
25286
+ };
25287
+ SetofOptions: {
25288
+ from: "*";
25289
+ to: "pick_queue";
25290
+ isOneToOne: true;
25291
+ isSetofReturn: false;
25292
+ };
25293
+ };
25294
+ pick_restore_to_queue: {
25295
+ Args: {
25296
+ _queue_item_id: string;
25297
+ _session_id: string;
25298
+ };
25299
+ Returns: {
25300
+ announced_at: string;
25301
+ assigned_user_id: string | null;
25302
+ barcode: string | null;
25303
+ cancelled_at: string | null;
25304
+ cart_count: number;
25305
+ completed_at: string | null;
25306
+ country_code: string | null;
25307
+ created_at: string;
25308
+ customer_name: string | null;
25309
+ delivery_address: string | null;
25310
+ document_number: string | null;
25311
+ document_type_id: string | null;
25312
+ due_at: string | null;
25313
+ id: string;
25314
+ is_urgent: boolean;
25315
+ line_count: number;
25316
+ order_number: string | null;
25317
+ order_type: string | null;
25318
+ payload: Json;
25319
+ print_count: number;
25320
+ print_job_id: string | null;
25321
+ printed_at: string | null;
25322
+ printed_by: string | null;
25323
+ printed_cart_ids: Json;
25324
+ printer_id: string | null;
25325
+ priority: number;
25326
+ reference: string | null;
25327
+ route: string | null;
25328
+ screen_id: string | null;
25329
+ station_id: string | null;
25330
+ status_id: string | null;
25331
+ updated_at: string;
25332
+ warnings: Json;
25333
+ };
25334
+ SetofOptions: {
25335
+ from: "*";
25336
+ to: "pick_queue";
25337
+ isOneToOne: true;
25338
+ isSetofReturn: false;
25339
+ };
25340
+ };
23529
25341
  pick_seed_reference_data: {
23530
25342
  Args: never;
23531
25343
  Returns: Json;
@@ -23575,6 +25387,12 @@ export type Database = {
23575
25387
  };
23576
25388
  Returns: string;
23577
25389
  };
25390
+ pick_sync_pick_day: {
25391
+ Args: {
25392
+ _day: string;
25393
+ };
25394
+ Returns: Json;
25395
+ };
23578
25396
  pick_sync_queue_throttled: {
23579
25397
  Args: {
23580
25398
  _min_seconds?: number;
@@ -23804,6 +25622,20 @@ export type Database = {
23804
25622
  };
23805
25623
  Returns: boolean;
23806
25624
  };
25625
+ release_local_pdf_job: {
25626
+ Args: {
25627
+ _job_id: string;
25628
+ _writer_id: string;
25629
+ };
25630
+ Returns: boolean;
25631
+ };
25632
+ release_print_queue_lease: {
25633
+ Args: {
25634
+ _houder: string;
25635
+ _naam: string;
25636
+ };
25637
+ Returns: boolean;
25638
+ };
23807
25639
  release_stale_order_invoice_links: {
23808
25640
  Args: {
23809
25641
  _minutes?: number;
@@ -23824,6 +25656,12 @@ export type Database = {
23824
25656
  };
23825
25657
  Returns: Json;
23826
25658
  };
25659
+ reset_cart_layer_positions: {
25660
+ Args: {
25661
+ p_cart_id: string;
25662
+ };
25663
+ Returns: number;
25664
+ };
23827
25665
  reset_floriday_sync_cursor: {
23828
25666
  Args: {
23829
25667
  p_connection_id: string;
@@ -23887,6 +25725,15 @@ export type Database = {
23887
25725
  };
23888
25726
  Returns: Json;
23889
25727
  };
25728
+ roles_without_enum_mapping: {
25729
+ Args: never;
25730
+ Returns: {
25731
+ assignment_count: number;
25732
+ id: string;
25733
+ key: string;
25734
+ name: string;
25735
+ }[];
25736
+ };
23890
25737
  ruim_print_jobs_op: {
23891
25738
  Args: {
23892
25739
  _bewaar_dagen?: number;
@@ -23901,6 +25748,10 @@ export type Database = {
23901
25748
  Args: never;
23902
25749
  Returns: undefined;
23903
25750
  };
25751
+ run_floriday_stock_reconcile: {
25752
+ Args: never;
25753
+ Returns: undefined;
25754
+ };
23904
25755
  run_logistics_tasks_dispatch: {
23905
25756
  Args: never;
23906
25757
  Returns: undefined;
@@ -23919,18 +25770,98 @@ export type Database = {
23919
25770
  };
23920
25771
  Returns: Json;
23921
25772
  };
25773
+ scan_complete_cart: {
25774
+ Args: {
25775
+ p_allow_reprint?: boolean;
25776
+ p_cart_id: string;
25777
+ p_print?: boolean;
25778
+ p_scanner_id?: string;
25779
+ };
25780
+ Returns: Json;
25781
+ };
23922
25782
  scan_dashboard_stats: {
23923
25783
  Args: {
23924
25784
  p_dagen?: number;
23925
25785
  };
23926
25786
  Returns: Json;
23927
25787
  };
25788
+ scan_eindcontrole: {
25789
+ Args: {
25790
+ p_barcode: string;
25791
+ p_scanner_id?: string;
25792
+ };
25793
+ Returns: Json;
25794
+ };
23928
25795
  scan_finish_kar: {
23929
25796
  Args: {
23930
25797
  p_kar_id: string;
23931
25798
  };
23932
25799
  Returns: Json;
23933
25800
  };
25801
+ scan_kar_compleet: {
25802
+ Args: {
25803
+ p_allow_reprint?: boolean;
25804
+ p_sessie_id: string;
25805
+ };
25806
+ Returns: Json;
25807
+ };
25808
+ scan_kar_regels: {
25809
+ Args: {
25810
+ p_cart_id: string;
25811
+ };
25812
+ Returns: Json;
25813
+ };
25814
+ scan_log_code: {
25815
+ Args: {
25816
+ p_code: string;
25817
+ p_latency_ms?: number;
25818
+ p_message?: string;
25819
+ p_result: string;
25820
+ p_scanner_key?: string;
25821
+ };
25822
+ Returns: string;
25823
+ };
25824
+ scan_open_pakbonnen: {
25825
+ Args: {
25826
+ p_dagen?: number;
25827
+ };
25828
+ Returns: Json;
25829
+ };
25830
+ scan_pakbon_lookup: {
25831
+ Args: {
25832
+ p_barcode: string;
25833
+ };
25834
+ Returns: Json;
25835
+ };
25836
+ scan_pakbon_opnieuw: {
25837
+ Args: {
25838
+ p_barcode: string;
25839
+ p_scanner_id?: string;
25840
+ };
25841
+ Returns: Json;
25842
+ };
25843
+ scan_pakbon_toevoegen: {
25844
+ Args: {
25845
+ p_barcode: string;
25846
+ p_medewerker?: string;
25847
+ p_regels?: Json;
25848
+ p_scanner_id: string;
25849
+ };
25850
+ Returns: Json;
25851
+ };
25852
+ scan_print_restpakbon: {
25853
+ Args: {
25854
+ p_printer_id?: string;
25855
+ p_restpakbon_id: string;
25856
+ };
25857
+ Returns: Json;
25858
+ };
25859
+ scan_print_verzendbrief: {
25860
+ Args: {
25861
+ p_sessie_id: string;
25862
+ };
25863
+ Returns: Json;
25864
+ };
23934
25865
  scan_register_item: {
23935
25866
  Args: {
23936
25867
  p_kar_id: string;
@@ -23949,6 +25880,25 @@ export type Database = {
23949
25880
  };
23950
25881
  Returns: Json;
23951
25882
  };
25883
+ scan_restpakbon_geprint: {
25884
+ Args: {
25885
+ p_id: string;
25886
+ p_print_job_id?: string;
25887
+ };
25888
+ Returns: undefined;
25889
+ };
25890
+ scan_sessie_annuleren: {
25891
+ Args: {
25892
+ p_sessie_id: string;
25893
+ };
25894
+ Returns: undefined;
25895
+ };
25896
+ scan_sessie_open: {
25897
+ Args: {
25898
+ p_scanner_id: string;
25899
+ };
25900
+ Returns: Json;
25901
+ };
23952
25902
  scan_start_kar: {
23953
25903
  Args: {
23954
25904
  p_medewerker_id?: string;
@@ -23967,6 +25917,12 @@ export type Database = {
23967
25917
  };
23968
25918
  Returns: Json;
23969
25919
  };
25920
+ scan_verzendbrief_regels: {
25921
+ Args: {
25922
+ p_sessie_id: string;
25923
+ };
25924
+ Returns: Json;
25925
+ };
23970
25926
  schedule_floriday_additional_services_sync: {
23971
25927
  Args: {
23972
25928
  p_apikey: string;
@@ -24282,6 +26238,13 @@ export type Database = {
24282
26238
  };
24283
26239
  Returns: Json;
24284
26240
  };
26241
+ swap_cart_layer_positions: {
26242
+ Args: {
26243
+ p_a: string;
26244
+ p_b: string;
26245
+ };
26246
+ Returns: undefined;
26247
+ };
24285
26248
  switch_time_log: {
24286
26249
  Args: {
24287
26250
  p_employee_id: string;
@@ -24314,6 +26277,12 @@ export type Database = {
24314
26277
  };
24315
26278
  Returns: undefined;
24316
26279
  };
26280
+ sync_order_item_fusten: {
26281
+ Args: {
26282
+ _order_item_id: string;
26283
+ };
26284
+ Returns: undefined;
26285
+ };
24317
26286
  sync_product_group_belading: {
24318
26287
  Args: {
24319
26288
  _group_id: string;
@@ -24420,6 +26389,12 @@ export type Database = {
24420
26389
  Args: never;
24421
26390
  Returns: string;
24422
26391
  };
26392
+ wake_print_queue: {
26393
+ Args: {
26394
+ _min_interval_ms?: number;
26395
+ };
26396
+ Returns: number;
26397
+ };
24423
26398
  werkbon_totalen: {
24424
26399
  Args: {
24425
26400
  _werkbon_id: string;
@@ -24452,10 +26427,18 @@ export type Database = {
24452
26427
  };
24453
26428
  Returns: Json;
24454
26429
  };
26430
+ wo_set_status: {
26431
+ Args: {
26432
+ _reason?: string;
26433
+ _status: string;
26434
+ _work_order_id: string;
26435
+ };
26436
+ Returns: Json;
26437
+ };
24455
26438
  };
24456
26439
  Enums: {
24457
26440
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24458
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26441
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24459
26442
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24460
26443
  doc_orientation: "portrait" | "landscape";
24461
26444
  exact_env: "staging" | "live";
@@ -24526,7 +26509,7 @@ export declare const Constants: {
24526
26509
  readonly public: {
24527
26510
  readonly Enums: {
24528
26511
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
24529
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
26512
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24530
26513
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24531
26514
  readonly doc_orientation: readonly ["portrait", "landscape"];
24532
26515
  readonly exact_env: readonly ["staging", "live"];