@flowselections/logistiek-engine 1.0.26 → 1.0.28

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 (97) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfmetingenBronnenCard.d.ts +2 -0
  3. package/dist-lib/components/AfmetingenBronnenCard.d.ts.map +1 -0
  4. package/dist-lib/components/AfmetingenBronnenCard.js +46 -0
  5. package/dist-lib/components/BufferDebugCard.d.ts.map +1 -1
  6. package/dist-lib/components/BufferDebugCard.js +6 -1
  7. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -1
  8. package/dist-lib/components/ConsistentieCard.js +1 -1
  9. package/dist-lib/components/KarplanStatusCard.d.ts +2 -0
  10. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  11. package/dist-lib/components/KarplanStatusCard.js +31 -0
  12. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  13. package/dist-lib/components/RegiePage.js +3 -1
  14. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  15. package/dist-lib/components/RuleEnginePage.js +7 -4
  16. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  17. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  18. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  19. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  20. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  21. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  22. package/dist-lib/hooks/useRecalcJob.js +26 -1
  23. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  24. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  25. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  26. package/dist-lib/index.d.ts +2 -0
  27. package/dist-lib/index.d.ts.map +1 -1
  28. package/dist-lib/index.js +2 -0
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2063 -78
  30. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  33. package/dist-lib/integrations/supabase/client.js +13 -0
  34. package/dist-lib/integrations/supabase/client.server.d.ts +2063 -78
  35. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.server.js +1 -1
  37. package/dist-lib/integrations/supabase/moduleClient.d.ts +2063 -78
  38. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  39. package/dist-lib/integrations/supabase/types.d.ts +2097 -68
  40. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  41. package/dist-lib/integrations/supabase/types.js +1 -0
  42. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  43. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  44. package/dist-lib/lib/attachAuthToken.js +50 -0
  45. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  46. package/dist-lib/lib/bufferMatching.js +1 -0
  47. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  48. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  49. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  50. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  51. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  52. package/dist-lib/lib/controlScan.server.js +197 -0
  53. package/dist-lib/lib/dimensionData.server.d.ts +37 -0
  54. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -0
  55. package/dist-lib/lib/dimensionData.server.js +167 -0
  56. package/dist-lib/lib/dimensionPlanner.d.ts +95 -0
  57. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -0
  58. package/dist-lib/lib/dimensionPlanner.js +248 -0
  59. package/dist-lib/lib/floridayDocuments.functions.d.ts +6240 -285
  60. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  62. package/dist-lib/lib/floridayPush.functions.d.ts +2064 -79
  63. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floridayPush.functions.js +2 -1
  65. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  66. package/dist-lib/lib/handlers/logistics-tick.server.js +57 -0
  67. package/dist-lib/lib/loadCarrierPlanner.d.ts +3 -0
  68. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  69. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10302 -377
  70. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  71. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  72. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +46 -0
  73. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  74. package/dist-lib/lib/loadCarrierPlanning.server.js +673 -31
  75. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  76. package/dist-lib/lib/logisticsPlanner.js +24 -9
  77. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4163 -193
  78. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  80. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  81. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  82. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2064 -79
  83. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  85. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  86. package/dist-lib/lib/modulePrompts.js +2567 -1563
  87. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  88. package/dist-lib/lib/planQueue.server.js +6 -0
  89. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  90. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  91. package/dist-lib/lib/readableServerErrors.js +36 -0
  92. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  93. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  94. package/dist-lib/lib/ruleEngineSchema.js +83 -51
  95. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  96. package/dist-lib/lib/ruleEngineWizard.js +6 -6
  97. 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;
@@ -12689,10 +13078,12 @@ export type Database = {
12689
13078
  boxes: number | null;
12690
13079
  cart_id: string;
12691
13080
  crates: number;
13081
+ crates_in_layer: number | null;
12692
13082
  crates_per_layer: number;
12693
13083
  created_at: string;
12694
13084
  id: string;
12695
13085
  layer_fraction: number;
13086
+ layer_index: number | null;
12696
13087
  layer_share_pct: number;
12697
13088
  layers_per_cart: number;
12698
13089
  order_item_id: string | null;
@@ -12705,10 +13096,12 @@ export type Database = {
12705
13096
  boxes?: number | null;
12706
13097
  cart_id: string;
12707
13098
  crates: number;
13099
+ crates_in_layer?: number | null;
12708
13100
  crates_per_layer?: number;
12709
13101
  created_at?: string;
12710
13102
  id?: string;
12711
13103
  layer_fraction?: number;
13104
+ layer_index?: number | null;
12712
13105
  layer_share_pct?: number;
12713
13106
  layers_per_cart?: number;
12714
13107
  order_item_id?: string | null;
@@ -12721,10 +13114,12 @@ export type Database = {
12721
13114
  boxes?: number | null;
12722
13115
  cart_id?: string;
12723
13116
  crates?: number;
13117
+ crates_in_layer?: number | null;
12724
13118
  crates_per_layer?: number;
12725
13119
  created_at?: string;
12726
13120
  id?: string;
12727
13121
  layer_fraction?: number;
13122
+ layer_index?: number | null;
12728
13123
  layer_share_pct?: number;
12729
13124
  layers_per_cart?: number;
12730
13125
  order_item_id?: string | null;
@@ -12748,6 +13143,13 @@ export type Database = {
12748
13143
  referencedRelation: "order_items";
12749
13144
  referencedColumns: ["id"];
12750
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
+ },
12751
13153
  {
12752
13154
  foreignKeyName: "order_cart_items_product_id_fkey";
12753
13155
  columns: ["product_id"];
@@ -12757,6 +13159,95 @@ export type Database = {
12757
13159
  }
12758
13160
  ];
12759
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
+ };
12760
13251
  order_carts: {
12761
13252
  Row: {
12762
13253
  algorithm_version: number;
@@ -12768,6 +13259,7 @@ export type Database = {
12768
13259
  id: string;
12769
13260
  is_auto: boolean;
12770
13261
  is_complete: boolean;
13262
+ layout_method: string | null;
12771
13263
  max_layers: number | null;
12772
13264
  moved_at: string | null;
12773
13265
  moved_from_moment_id: string | null;
@@ -12778,6 +13270,7 @@ export type Database = {
12778
13270
  pickup_locked: boolean;
12779
13271
  pickup_moment_id: string | null;
12780
13272
  source: string;
13273
+ total_carts: number | null;
12781
13274
  total_layers_used: number;
12782
13275
  updated_at: string;
12783
13276
  weight_kg: number | null;
@@ -12792,6 +13285,7 @@ export type Database = {
12792
13285
  id?: string;
12793
13286
  is_auto?: boolean;
12794
13287
  is_complete?: boolean;
13288
+ layout_method?: string | null;
12795
13289
  max_layers?: number | null;
12796
13290
  moved_at?: string | null;
12797
13291
  moved_from_moment_id?: string | null;
@@ -12802,6 +13296,7 @@ export type Database = {
12802
13296
  pickup_locked?: boolean;
12803
13297
  pickup_moment_id?: string | null;
12804
13298
  source?: string;
13299
+ total_carts?: number | null;
12805
13300
  total_layers_used?: number;
12806
13301
  updated_at?: string;
12807
13302
  weight_kg?: number | null;
@@ -12816,6 +13311,7 @@ export type Database = {
12816
13311
  id?: string;
12817
13312
  is_auto?: boolean;
12818
13313
  is_complete?: boolean;
13314
+ layout_method?: string | null;
12819
13315
  max_layers?: number | null;
12820
13316
  moved_at?: string | null;
12821
13317
  moved_from_moment_id?: string | null;
@@ -12826,6 +13322,7 @@ export type Database = {
12826
13322
  pickup_locked?: boolean;
12827
13323
  pickup_moment_id?: string | null;
12828
13324
  source?: string;
13325
+ total_carts?: number | null;
12829
13326
  total_layers_used?: number;
12830
13327
  updated_at?: string;
12831
13328
  weight_kg?: number | null;
@@ -12936,6 +13433,41 @@ export type Database = {
12936
13433
  };
12937
13434
  Relationships: [];
12938
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
+ };
12939
13471
  order_invoice_links: {
12940
13472
  Row: {
12941
13473
  administration_code: string | null;
@@ -13026,6 +13558,13 @@ export type Database = {
13026
13558
  referencedRelation: "orders";
13027
13559
  referencedColumns: ["id"];
13028
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
+ },
13029
13568
  {
13030
13569
  foreignKeyName: "order_items_product_id_fkey";
13031
13570
  columns: ["product_id"];
@@ -13180,6 +13719,9 @@ export type Database = {
13180
13719
  plan_locked_at: string | null;
13181
13720
  plan_locked_ref: string | null;
13182
13721
  status: string;
13722
+ status_changed_at: string;
13723
+ status_origin: string;
13724
+ status_sync_token: string | null;
13183
13725
  total: string;
13184
13726
  updated_at: string;
13185
13727
  };
@@ -13204,6 +13746,9 @@ export type Database = {
13204
13746
  plan_locked_at?: string | null;
13205
13747
  plan_locked_ref?: string | null;
13206
13748
  status?: string;
13749
+ status_changed_at?: string;
13750
+ status_origin?: string;
13751
+ status_sync_token?: string | null;
13207
13752
  total?: string;
13208
13753
  updated_at?: string;
13209
13754
  };
@@ -13228,6 +13773,9 @@ export type Database = {
13228
13773
  plan_locked_at?: string | null;
13229
13774
  plan_locked_ref?: string | null;
13230
13775
  status?: string;
13776
+ status_changed_at?: string;
13777
+ status_origin?: string;
13778
+ status_sync_token?: string | null;
13231
13779
  total?: string;
13232
13780
  updated_at?: string;
13233
13781
  };
@@ -13284,6 +13832,132 @@ export type Database = {
13284
13832
  };
13285
13833
  Relationships: [];
13286
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
+ };
13287
13961
  pick_countries: {
13288
13962
  Row: {
13289
13963
  active: boolean;
@@ -14401,6 +15075,13 @@ export type Database = {
14401
15075
  isOneToOne: false;
14402
15076
  referencedRelation: "werkbonnen";
14403
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"];
14404
15085
  }
14405
15086
  ];
14406
15087
  };
@@ -14519,12 +15200,21 @@ export type Database = {
14519
15200
  };
14520
15201
  print_jobs: {
14521
15202
  Row: {
15203
+ aflever_pogingen: number;
14522
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;
14523
15210
  bron_job_id: string | null;
14524
15211
  created_at: string;
14525
15212
  documentnaam: string;
14526
15213
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14527
15214
  extern_job_id: string | null;
15215
+ fase_gestart_op: string | null;
15216
+ fase_voltooid_op: string | null;
15217
+ foutcode: string | null;
14528
15218
  foutmelding: string | null;
14529
15219
  gebruiker_id: string | null;
14530
15220
  gebruiker_naam: string;
@@ -14538,7 +15228,10 @@ export type Database = {
14538
15228
  kopieen: number;
14539
15229
  layout_id: string | null;
14540
15230
  lokaal_opgeslagen_op: string | null;
15231
+ lokale_pdf_claim_id: string | null;
15232
+ lokale_pdf_claim_tot: string | null;
14541
15233
  lokale_pdf_fout: string | null;
15234
+ lokale_pdf_print_plek_id: string | null;
14542
15235
  lokale_pdf_status: string | null;
14543
15236
  opgepakt_op: string | null;
14544
15237
  paginas: number;
@@ -14551,16 +15244,26 @@ export type Database = {
14551
15244
  resultaat_pdf_base64: string | null;
14552
15245
  status: Database["public"]["Enums"]["print_job_status"];
14553
15246
  updated_at: string;
15247
+ verwerkingsfase: string;
14554
15248
  volgende_poging: string | null;
14555
15249
  voltooid_op: string | null;
14556
15250
  };
14557
15251
  Insert: {
15252
+ aflever_pogingen?: number;
14558
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;
14559
15259
  bron_job_id?: string | null;
14560
15260
  created_at?: string;
14561
15261
  documentnaam?: string;
14562
15262
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14563
15263
  extern_job_id?: string | null;
15264
+ fase_gestart_op?: string | null;
15265
+ fase_voltooid_op?: string | null;
15266
+ foutcode?: string | null;
14564
15267
  foutmelding?: string | null;
14565
15268
  gebruiker_id?: string | null;
14566
15269
  gebruiker_naam?: string;
@@ -14574,7 +15277,10 @@ export type Database = {
14574
15277
  kopieen?: number;
14575
15278
  layout_id?: string | null;
14576
15279
  lokaal_opgeslagen_op?: string | null;
15280
+ lokale_pdf_claim_id?: string | null;
15281
+ lokale_pdf_claim_tot?: string | null;
14577
15282
  lokale_pdf_fout?: string | null;
15283
+ lokale_pdf_print_plek_id?: string | null;
14578
15284
  lokale_pdf_status?: string | null;
14579
15285
  opgepakt_op?: string | null;
14580
15286
  paginas?: number;
@@ -14587,16 +15293,26 @@ export type Database = {
14587
15293
  resultaat_pdf_base64?: string | null;
14588
15294
  status?: Database["public"]["Enums"]["print_job_status"];
14589
15295
  updated_at?: string;
15296
+ verwerkingsfase?: string;
14590
15297
  volgende_poging?: string | null;
14591
15298
  voltooid_op?: string | null;
14592
15299
  };
14593
15300
  Update: {
15301
+ aflever_pogingen?: number;
14594
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;
14595
15308
  bron_job_id?: string | null;
14596
15309
  created_at?: string;
14597
15310
  documentnaam?: string;
14598
15311
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14599
15312
  extern_job_id?: string | null;
15313
+ fase_gestart_op?: string | null;
15314
+ fase_voltooid_op?: string | null;
15315
+ foutcode?: string | null;
14600
15316
  foutmelding?: string | null;
14601
15317
  gebruiker_id?: string | null;
14602
15318
  gebruiker_naam?: string;
@@ -14610,7 +15326,10 @@ export type Database = {
14610
15326
  kopieen?: number;
14611
15327
  layout_id?: string | null;
14612
15328
  lokaal_opgeslagen_op?: string | null;
15329
+ lokale_pdf_claim_id?: string | null;
15330
+ lokale_pdf_claim_tot?: string | null;
14613
15331
  lokale_pdf_fout?: string | null;
15332
+ lokale_pdf_print_plek_id?: string | null;
14614
15333
  lokale_pdf_status?: string | null;
14615
15334
  opgepakt_op?: string | null;
14616
15335
  paginas?: number;
@@ -14623,6 +15342,7 @@ export type Database = {
14623
15342
  resultaat_pdf_base64?: string | null;
14624
15343
  status?: Database["public"]["Enums"]["print_job_status"];
14625
15344
  updated_at?: string;
15345
+ verwerkingsfase?: string;
14626
15346
  volgende_poging?: string | null;
14627
15347
  voltooid_op?: string | null;
14628
15348
  };
@@ -14641,6 +15361,13 @@ export type Database = {
14641
15361
  referencedRelation: "document_layouts";
14642
15362
  referencedColumns: ["id"];
14643
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
+ },
14644
15371
  {
14645
15372
  foreignKeyName: "print_jobs_printer_id_fkey";
14646
15373
  columns: ["printer_id"];
@@ -14780,6 +15507,30 @@ export type Database = {
14780
15507
  };
14781
15508
  Relationships: [];
14782
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
+ };
14783
15534
  print_queue_runners: {
14784
15535
  Row: {
14785
15536
  actief: boolean;
@@ -14789,7 +15540,9 @@ export type Database = {
14789
15540
  laatst_gezien: string;
14790
15541
  laatste_fout: string | null;
14791
15542
  laatste_request_id: number | null;
15543
+ laatste_wakeup: string | null;
14792
15544
  mislukte_posts: number;
15545
+ mislukte_wakeups: number;
14793
15546
  tick_sleutel: string;
14794
15547
  updated_at: string;
14795
15548
  };
@@ -14801,7 +15554,9 @@ export type Database = {
14801
15554
  laatst_gezien?: string;
14802
15555
  laatste_fout?: string | null;
14803
15556
  laatste_request_id?: number | null;
15557
+ laatste_wakeup?: string | null;
14804
15558
  mislukte_posts?: number;
15559
+ mislukte_wakeups?: number;
14805
15560
  tick_sleutel?: string;
14806
15561
  updated_at?: string;
14807
15562
  };
@@ -14813,7 +15568,9 @@ export type Database = {
14813
15568
  laatst_gezien?: string;
14814
15569
  laatste_fout?: string | null;
14815
15570
  laatste_request_id?: number | null;
15571
+ laatste_wakeup?: string | null;
14816
15572
  mislukte_posts?: number;
15573
+ mislukte_wakeups?: number;
14817
15574
  tick_sleutel?: string;
14818
15575
  updated_at?: string;
14819
15576
  };
@@ -15137,6 +15894,13 @@ export type Database = {
15137
15894
  updated_at?: string;
15138
15895
  };
15139
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
+ },
15140
15904
  {
15141
15905
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15142
15906
  columns: ["parent_product_id"];
@@ -15193,6 +15957,13 @@ export type Database = {
15193
15957
  updated_at?: string;
15194
15958
  };
15195
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
+ },
15196
15967
  {
15197
15968
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15198
15969
  columns: ["component_product_id"];
@@ -15200,6 +15971,13 @@ export type Database = {
15200
15971
  referencedRelation: "products";
15201
15972
  referencedColumns: ["id"];
15202
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
+ },
15203
15981
  {
15204
15982
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15205
15983
  columns: ["parent_product_id"];
@@ -15380,6 +16158,13 @@ export type Database = {
15380
16158
  updated_at?: string;
15381
16159
  };
15382
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
+ },
15383
16168
  {
15384
16169
  foreignKeyName: "product_groups_head_product_id_fkey";
15385
16170
  columns: ["head_product_id"];
@@ -15449,6 +16234,13 @@ export type Database = {
15449
16234
  referencedRelation: "packages";
15450
16235
  referencedColumns: ["id"];
15451
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
+ },
15452
16244
  {
15453
16245
  foreignKeyName: "product_load_settings_product_id_fkey";
15454
16246
  columns: ["product_id"];
@@ -15500,6 +16292,7 @@ export type Database = {
15500
16292
  created_at: string;
15501
16293
  custom_fields: Json;
15502
16294
  floriday_trade_item_id: string | null;
16295
+ fust_type_id: string | null;
15503
16296
  id: string;
15504
16297
  image_url: string | null;
15505
16298
  incoming_quantity: number;
@@ -15507,6 +16300,7 @@ export type Database = {
15507
16300
  layers_per_cart: number;
15508
16301
  location: string;
15509
16302
  min_quantity: number;
16303
+ plant_height_cm: number | null;
15510
16304
  plants_per_crate: number;
15511
16305
  product: string;
15512
16306
  product_type: string;
@@ -15526,6 +16320,7 @@ export type Database = {
15526
16320
  created_at?: string;
15527
16321
  custom_fields?: Json;
15528
16322
  floriday_trade_item_id?: string | null;
16323
+ fust_type_id?: string | null;
15529
16324
  id?: string;
15530
16325
  image_url?: string | null;
15531
16326
  incoming_quantity?: number;
@@ -15533,6 +16328,7 @@ export type Database = {
15533
16328
  layers_per_cart?: number;
15534
16329
  location: string;
15535
16330
  min_quantity?: number;
16331
+ plant_height_cm?: number | null;
15536
16332
  plants_per_crate?: number;
15537
16333
  product: string;
15538
16334
  product_type?: string;
@@ -15552,6 +16348,7 @@ export type Database = {
15552
16348
  created_at?: string;
15553
16349
  custom_fields?: Json;
15554
16350
  floriday_trade_item_id?: string | null;
16351
+ fust_type_id?: string | null;
15555
16352
  id?: string;
15556
16353
  image_url?: string | null;
15557
16354
  incoming_quantity?: number;
@@ -15559,6 +16356,7 @@ export type Database = {
15559
16356
  layers_per_cart?: number;
15560
16357
  location?: string;
15561
16358
  min_quantity?: number;
16359
+ plant_height_cm?: number | null;
15562
16360
  plants_per_crate?: number;
15563
16361
  product?: string;
15564
16362
  product_type?: string;
@@ -15570,7 +16368,15 @@ export type Database = {
15570
16368
  updated_at?: string;
15571
16369
  weight?: string | null;
15572
16370
  };
15573
- Relationships: [];
16371
+ Relationships: [
16372
+ {
16373
+ foreignKeyName: "products_fust_type_id_fkey";
16374
+ columns: ["fust_type_id"];
16375
+ isOneToOne: false;
16376
+ referencedRelation: "fust_types";
16377
+ referencedColumns: ["id"];
16378
+ }
16379
+ ];
15574
16380
  };
15575
16381
  profile_modules: {
15576
16382
  Row: {
@@ -15919,6 +16725,13 @@ export type Database = {
15919
16725
  quantity?: number;
15920
16726
  };
15921
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
+ },
15922
16735
  {
15923
16736
  foreignKeyName: "purchase_order_items_product_id_fkey";
15924
16737
  columns: ["product_id"];
@@ -16257,19 +17070,119 @@ export type Database = {
16257
17070
  }
16258
17071
  ];
16259
17072
  };
16260
- scan_karren: {
17073
+ scan_kar_sessie_regels: {
16261
17074
  Row: {
16262
- afgerond_op: string | null;
16263
- buffer_key: string | null;
17075
+ barcode: string;
17076
+ cart_id: string | null;
16264
17077
  created_at: string;
16265
- customer_names: string[];
16266
- device_id: string | null;
16267
- geprint: boolean;
16268
- geprint_op: string | null;
16269
17078
  id: string;
16270
- kar_nummer: string;
16271
- medewerker_id: string | null;
16272
- medewerker_naam: string | null;
17079
+ order_id: string | null;
17080
+ order_number: string | null;
17081
+ regels: Json;
17082
+ sessie_id: string;
17083
+ volledig: boolean;
17084
+ };
17085
+ Insert: {
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;
16273
17186
  naar_pickstation: boolean;
16274
17187
  naar_pickstation_op: string | null;
16275
17188
  order_number: string | null;
@@ -16463,6 +17376,60 @@ export type Database = {
16463
17376
  };
16464
17377
  Relationships: [];
16465
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
+ };
16466
17433
  scan_scanners: {
16467
17434
  Row: {
16468
17435
  actief: boolean;
@@ -16472,6 +17439,7 @@ export type Database = {
16472
17439
  naam: string;
16473
17440
  omschrijving: string | null;
16474
17441
  pincode: string | null;
17442
+ printer_id: string | null;
16475
17443
  slug: string;
16476
17444
  type: string;
16477
17445
  updated_at: string;
@@ -16486,6 +17454,7 @@ export type Database = {
16486
17454
  naam: string;
16487
17455
  omschrijving?: string | null;
16488
17456
  pincode?: string | null;
17457
+ printer_id?: string | null;
16489
17458
  slug: string;
16490
17459
  type?: string;
16491
17460
  updated_at?: string;
@@ -16500,6 +17469,7 @@ export type Database = {
16500
17469
  naam?: string;
16501
17470
  omschrijving?: string | null;
16502
17471
  pincode?: string | null;
17472
+ printer_id?: string | null;
16503
17473
  slug?: string;
16504
17474
  type?: string;
16505
17475
  updated_at?: string;
@@ -16508,6 +17478,27 @@ export type Database = {
16508
17478
  };
16509
17479
  Relationships: [];
16510
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
+ };
16511
17502
  sick_periods: {
16512
17503
  Row: {
16513
17504
  created_at: string;
@@ -17137,6 +18128,13 @@ export type Database = {
17137
18128
  isOneToOne: false;
17138
18129
  referencedRelation: "werkbonnen";
17139
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"];
17140
18138
  }
17141
18139
  ];
17142
18140
  };
@@ -18451,6 +19449,13 @@ export type Database = {
18451
19449
  isOneToOne: false;
18452
19450
  referencedRelation: "werkbonnen";
18453
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"];
18454
19459
  }
18455
19460
  ];
18456
19461
  };
@@ -19184,6 +20189,13 @@ export type Database = {
19184
20189
  isOneToOne: true;
19185
20190
  referencedRelation: "werkbonnen";
19186
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"];
19187
20199
  }
19188
20200
  ];
19189
20201
  };
@@ -19273,6 +20285,13 @@ export type Database = {
19273
20285
  isOneToOne: false;
19274
20286
  referencedRelation: "werkbonnen";
19275
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"];
19276
20295
  }
19277
20296
  ];
19278
20297
  };
@@ -19464,6 +20483,13 @@ export type Database = {
19464
20483
  isOneToOne: false;
19465
20484
  referencedRelation: "werkbonnen";
19466
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"];
19467
20493
  }
19468
20494
  ];
19469
20495
  };
@@ -19558,6 +20584,13 @@ export type Database = {
19558
20584
  isOneToOne: false;
19559
20585
  referencedRelation: "werkbonnen";
19560
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"];
19561
20594
  }
19562
20595
  ];
19563
20596
  };
@@ -19599,6 +20632,13 @@ export type Database = {
19599
20632
  isOneToOne: false;
19600
20633
  referencedRelation: "werkbonnen";
19601
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"];
19602
20642
  }
19603
20643
  ];
19604
20644
  };
@@ -19725,6 +20765,13 @@ export type Database = {
19725
20765
  referencedRelation: "werkbonnen";
19726
20766
  referencedColumns: ["id"];
19727
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
+ },
19728
20775
  {
19729
20776
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19730
20777
  columns: ["source_mailbox_message_id"];
@@ -20202,6 +21249,24 @@ export type Database = {
20202
21249
  };
20203
21250
  Relationships: [];
20204
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
+ };
20205
21270
  manufacture_product_possible_stock_view: {
20206
21271
  Row: {
20207
21272
  component_count: number | null;
@@ -20240,6 +21305,13 @@ export type Database = {
20240
21305
  isOneToOne: false;
20241
21306
  referencedRelation: "werkbonnen";
20242
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"];
20243
21315
  }
20244
21316
  ];
20245
21317
  };
@@ -20720,6 +21792,85 @@ export type Database = {
20720
21792
  isOneToOne: false;
20721
21793
  referencedRelation: "werkbonnen";
20722
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"];
21802
+ }
21803
+ ];
21804
+ };
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;
21823
+ };
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;
21841
+ };
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"];
20723
21874
  }
20724
21875
  ];
20725
21876
  };
@@ -20912,12 +22063,21 @@ export type Database = {
20912
22063
  _max?: number;
20913
22064
  };
20914
22065
  Returns: {
22066
+ aflever_pogingen: number;
20915
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;
20916
22073
  bron_job_id: string | null;
20917
22074
  created_at: string;
20918
22075
  documentnaam: string;
20919
22076
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20920
22077
  extern_job_id: string | null;
22078
+ fase_gestart_op: string | null;
22079
+ fase_voltooid_op: string | null;
22080
+ foutcode: string | null;
20921
22081
  foutmelding: string | null;
20922
22082
  gebruiker_id: string | null;
20923
22083
  gebruiker_naam: string;
@@ -20931,7 +22091,10 @@ export type Database = {
20931
22091
  kopieen: number;
20932
22092
  layout_id: string | null;
20933
22093
  lokaal_opgeslagen_op: string | null;
22094
+ lokale_pdf_claim_id: string | null;
22095
+ lokale_pdf_claim_tot: string | null;
20934
22096
  lokale_pdf_fout: string | null;
22097
+ lokale_pdf_print_plek_id: string | null;
20935
22098
  lokale_pdf_status: string | null;
20936
22099
  opgepakt_op: string | null;
20937
22100
  paginas: number;
@@ -20944,6 +22107,7 @@ export type Database = {
20944
22107
  resultaat_pdf_base64: string | null;
20945
22108
  status: Database["public"]["Enums"]["print_job_status"];
20946
22109
  updated_at: string;
22110
+ verwerkingsfase: string;
20947
22111
  volgende_poging: string | null;
20948
22112
  voltooid_op: string | null;
20949
22113
  }[];
@@ -20990,11 +22154,30 @@ export type Database = {
20990
22154
  isSetofReturn: true;
20991
22155
  };
20992
22156
  };
20993
- claim_logistics_tasks: {
22157
+ claim_local_pdf_jobs: {
20994
22158
  Args: {
20995
- _limit?: number;
20996
- _owner_module: string;
20997
- _stale_minutes?: number;
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
+ };
22176
+ claim_logistics_tasks: {
22177
+ Args: {
22178
+ _limit?: number;
22179
+ _owner_module: string;
22180
+ _stale_minutes?: number;
20998
22181
  _task_type: string;
20999
22182
  _worker: string;
21000
22183
  };
@@ -21043,12 +22226,21 @@ export type Database = {
21043
22226
  _max?: number;
21044
22227
  };
21045
22228
  Returns: {
22229
+ aflever_pogingen: number;
21046
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;
21047
22236
  bron_job_id: string | null;
21048
22237
  created_at: string;
21049
22238
  documentnaam: string;
21050
22239
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21051
22240
  extern_job_id: string | null;
22241
+ fase_gestart_op: string | null;
22242
+ fase_voltooid_op: string | null;
22243
+ foutcode: string | null;
21052
22244
  foutmelding: string | null;
21053
22245
  gebruiker_id: string | null;
21054
22246
  gebruiker_naam: string;
@@ -21062,7 +22254,10 @@ export type Database = {
21062
22254
  kopieen: number;
21063
22255
  layout_id: string | null;
21064
22256
  lokaal_opgeslagen_op: string | null;
22257
+ lokale_pdf_claim_id: string | null;
22258
+ lokale_pdf_claim_tot: string | null;
21065
22259
  lokale_pdf_fout: string | null;
22260
+ lokale_pdf_print_plek_id: string | null;
21066
22261
  lokale_pdf_status: string | null;
21067
22262
  opgepakt_op: string | null;
21068
22263
  paginas: number;
@@ -21075,6 +22270,7 @@ export type Database = {
21075
22270
  resultaat_pdf_base64: string | null;
21076
22271
  status: Database["public"]["Enums"]["print_job_status"];
21077
22272
  updated_at: string;
22273
+ verwerkingsfase: string;
21078
22274
  volgende_poging: string | null;
21079
22275
  voltooid_op: string | null;
21080
22276
  }[];
@@ -21091,12 +22287,21 @@ export type Database = {
21091
22287
  _max?: number;
21092
22288
  };
21093
22289
  Returns: {
22290
+ aflever_pogingen: number;
21094
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;
21095
22297
  bron_job_id: string | null;
21096
22298
  created_at: string;
21097
22299
  documentnaam: string;
21098
22300
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21099
22301
  extern_job_id: string | null;
22302
+ fase_gestart_op: string | null;
22303
+ fase_voltooid_op: string | null;
22304
+ foutcode: string | null;
21100
22305
  foutmelding: string | null;
21101
22306
  gebruiker_id: string | null;
21102
22307
  gebruiker_naam: string;
@@ -21110,7 +22315,10 @@ export type Database = {
21110
22315
  kopieen: number;
21111
22316
  layout_id: string | null;
21112
22317
  lokaal_opgeslagen_op: string | null;
22318
+ lokale_pdf_claim_id: string | null;
22319
+ lokale_pdf_claim_tot: string | null;
21113
22320
  lokale_pdf_fout: string | null;
22321
+ lokale_pdf_print_plek_id: string | null;
21114
22322
  lokale_pdf_status: string | null;
21115
22323
  opgepakt_op: string | null;
21116
22324
  paginas: number;
@@ -21123,6 +22331,7 @@ export type Database = {
21123
22331
  resultaat_pdf_base64: string | null;
21124
22332
  status: Database["public"]["Enums"]["print_job_status"];
21125
22333
  updated_at: string;
22334
+ verwerkingsfase: string;
21126
22335
  volgende_poging: string | null;
21127
22336
  voltooid_op: string | null;
21128
22337
  }[];
@@ -21133,6 +22342,14 @@ export type Database = {
21133
22342
  isSetofReturn: true;
21134
22343
  };
21135
22344
  };
22345
+ claim_print_queue_lease: {
22346
+ Args: {
22347
+ _houder: string;
22348
+ _naam: string;
22349
+ _seconden?: number;
22350
+ };
22351
+ Returns: boolean;
22352
+ };
21136
22353
  claim_twinfield_push_batch: {
21137
22354
  Args: {
21138
22355
  _customer_id?: string;
@@ -21258,7 +22475,10 @@ export type Database = {
21258
22475
  cart_index: number;
21259
22476
  cart_number: string;
21260
22477
  cart_number_id: string;
22478
+ cart_seq: number;
22479
+ cart_total: number;
21261
22480
  order_id: string;
22481
+ order_number: string;
21262
22482
  order_source: string;
21263
22483
  pick_date: string;
21264
22484
  printed_at: string;
@@ -21266,6 +22486,12 @@ export type Database = {
21266
22486
  status: string;
21267
22487
  }[];
21268
22488
  };
22489
+ control_mark_carts_delivered: {
22490
+ Args: {
22491
+ p_carts: Json;
22492
+ };
22493
+ Returns: number;
22494
+ };
21269
22495
  count_distinct_regulatory_products: {
21270
22496
  Args: never;
21271
22497
  Returns: number;
@@ -21393,6 +22619,13 @@ export type Database = {
21393
22619
  };
21394
22620
  Returns: undefined;
21395
22621
  };
22622
+ ensure_system_roles: {
22623
+ Args: never;
22624
+ Returns: {
22625
+ action: string;
22626
+ role_key: string;
22627
+ }[];
22628
+ };
21396
22629
  ensure_trade_item_stock_row: {
21397
22630
  Args: {
21398
22631
  p_key: string;
@@ -21459,6 +22692,15 @@ export type Database = {
21459
22692
  };
21460
22693
  Returns: string;
21461
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
+ };
21462
22704
  floriday_capture_stock_snapshot: {
21463
22705
  Args: never;
21464
22706
  Returns: number;
@@ -21738,6 +22980,36 @@ export type Database = {
21738
22980
  Args: never;
21739
22981
  Returns: string;
21740
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
+ };
21741
23013
  handover_get: {
21742
23014
  Args: {
21743
23015
  _module_id: string;
@@ -21768,6 +23040,14 @@ export type Database = {
21768
23040
  };
21769
23041
  Returns: boolean;
21770
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
+ };
21771
23051
  handover_norm_naam: {
21772
23052
  Args: {
21773
23053
  _naam: string;
@@ -21788,6 +23068,23 @@ export type Database = {
21788
23068
  };
21789
23069
  Returns: number;
21790
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
+ };
21791
23088
  handover_publish_via_token: {
21792
23089
  Args: {
21793
23090
  _bevindingen?: string;
@@ -21801,7 +23098,7 @@ export type Database = {
21801
23098
  _samenvatting?: string;
21802
23099
  _token_hash: string;
21803
23100
  };
21804
- Returns: number;
23101
+ Returns: Json;
21805
23102
  };
21806
23103
  handover_status: {
21807
23104
  Args: never;
@@ -21813,23 +23110,6 @@ export type Database = {
21813
23110
  };
21814
23111
  Returns: string;
21815
23112
  };
21816
- handover_token_intrekken: {
21817
- Args: {
21818
- _id: string;
21819
- };
21820
- Returns: boolean;
21821
- };
21822
- handover_token_lijst: {
21823
- Args: never;
21824
- Returns: Json;
21825
- };
21826
- handover_token_maken: {
21827
- Args: {
21828
- _label?: string;
21829
- _module_id: string;
21830
- };
21831
- Returns: string;
21832
- };
21833
23113
  handover_update: {
21834
23114
  Args: {
21835
23115
  _bezit_tabellen?: string[];
@@ -21857,12 +23137,31 @@ export type Database = {
21857
23137
  };
21858
23138
  Returns: boolean;
21859
23139
  };
23140
+ handover_versie_verwijderen: {
23141
+ Args: {
23142
+ _module_id: string;
23143
+ _versie: number;
23144
+ };
23145
+ Returns: boolean;
23146
+ };
21860
23147
  handover_versies: {
21861
23148
  Args: {
21862
23149
  _module_id: string;
21863
23150
  };
21864
23151
  Returns: Json;
21865
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
+ };
21866
23165
  has_module_permission: {
21867
23166
  Args: {
21868
23167
  _min: string;
@@ -22197,6 +23496,13 @@ export type Database = {
22197
23496
  };
22198
23497
  Returns: string;
22199
23498
  };
23499
+ logistics_cart_handled: {
23500
+ Args: {
23501
+ p_cart_index: number;
23502
+ p_order_id: string;
23503
+ };
23504
+ Returns: boolean;
23505
+ };
22200
23506
  logistics_cart_index: {
22201
23507
  Args: {
22202
23508
  p_from?: string;
@@ -22206,6 +23512,9 @@ export type Database = {
22206
23512
  cart_id: string;
22207
23513
  cart_index: number;
22208
23514
  cart_label: string;
23515
+ cart_number: string;
23516
+ cart_seq: number;
23517
+ cart_total: number;
22209
23518
  delivery_date: string;
22210
23519
  is_announced: boolean;
22211
23520
  is_controlled: boolean;
@@ -22220,12 +23529,79 @@ export type Database = {
22220
23529
  task_status: string;
22221
23530
  }[];
22222
23531
  };
23532
+ logistics_cart_layout_method: {
23533
+ Args: never;
23534
+ Returns: Json;
23535
+ };
23536
+ logistics_cart_plan_overview: {
23537
+ Args: {
23538
+ p_days?: number;
23539
+ };
23540
+ Returns: {
23541
+ cart_total: number;
23542
+ delivery_date: string;
23543
+ order_ref: string;
23544
+ plan_ready: boolean;
23545
+ reason: string;
23546
+ released: boolean;
23547
+ }[];
23548
+ };
23549
+ logistics_cart_plan_status: {
23550
+ Args: {
23551
+ p_ref: string;
23552
+ };
23553
+ Returns: Json;
23554
+ };
23555
+ logistics_cart_seq: {
23556
+ Args: {
23557
+ p_order_uuid?: string;
23558
+ };
23559
+ Returns: {
23560
+ cart_id: string;
23561
+ cart_index: number;
23562
+ cart_number: string;
23563
+ cart_seq: number;
23564
+ cart_total: number;
23565
+ order_uuid: string;
23566
+ }[];
23567
+ };
22223
23568
  logistics_cart_slip_plan: {
22224
23569
  Args: {
22225
23570
  p_order_id: string;
22226
23571
  };
22227
23572
  Returns: Json;
22228
23573
  };
23574
+ logistics_cart_units: {
23575
+ Args: {
23576
+ p_from?: string;
23577
+ p_to?: string;
23578
+ };
23579
+ Returns: {
23580
+ cart_id: string;
23581
+ cart_index: number;
23582
+ cart_label: string;
23583
+ cart_number: string;
23584
+ cart_seq: number;
23585
+ cart_total: number;
23586
+ delivery_date: string;
23587
+ is_announced: boolean;
23588
+ is_buffer: boolean;
23589
+ is_controlled: boolean;
23590
+ is_printed: boolean;
23591
+ is_shared: boolean;
23592
+ order_number: string;
23593
+ order_source: string;
23594
+ order_uuid: string;
23595
+ pick_date: string;
23596
+ printed_at: string;
23597
+ shifted: boolean;
23598
+ task_status: string;
23599
+ unit_buffer: string;
23600
+ unit_order_count: number;
23601
+ unit_orders: string[];
23602
+ unit_ref: string;
23603
+ }[];
23604
+ };
22229
23605
  logistics_check_order_allowed: {
22230
23606
  Args: {
22231
23607
  p_lines: Json;
@@ -22381,7 +23757,9 @@ export type Database = {
22381
23757
  announced_carts: number;
22382
23758
  control_carts: number;
22383
23759
  delivery_carts: number;
23760
+ duplicate_carts: number;
22384
23761
  ok: boolean;
23762
+ orphan_carts: number;
22385
23763
  orphan_tasks: number;
22386
23764
  pick_date: string;
22387
23765
  raw_carts: number;
@@ -22389,6 +23767,85 @@ export type Database = {
22389
23767
  station_carts: number;
22390
23768
  }[];
22391
23769
  };
23770
+ logistics_control_scan_approve: {
23771
+ Args: {
23772
+ p_allow_reprint?: boolean;
23773
+ p_barcode: string;
23774
+ p_printer_id?: string;
23775
+ p_scanner_id?: string;
23776
+ };
23777
+ Returns: Json;
23778
+ };
23779
+ logistics_control_scan_claim: {
23780
+ Args: {
23781
+ _lease_seconds?: number;
23782
+ _limit?: number;
23783
+ };
23784
+ Returns: {
23785
+ approved_at: string | null;
23786
+ attempts: number;
23787
+ barcode: string;
23788
+ cart_id: string;
23789
+ created_at: string;
23790
+ document_url: string | null;
23791
+ error: string | null;
23792
+ error_code: string | null;
23793
+ fulfillment_order_id: string | null;
23794
+ id: string;
23795
+ is_floriday: boolean;
23796
+ locked_until: string | null;
23797
+ order_id: string | null;
23798
+ order_number: string | null;
23799
+ print_job_id: string | null;
23800
+ printed_at: string | null;
23801
+ printer_id: string | null;
23802
+ scanner_id: string | null;
23803
+ status: string;
23804
+ updated_at: string;
23805
+ }[];
23806
+ SetofOptions: {
23807
+ from: "*";
23808
+ to: "logistics_control_scan";
23809
+ isOneToOne: false;
23810
+ isSetofReturn: true;
23811
+ };
23812
+ };
23813
+ logistics_control_scan_finish: {
23814
+ Args: {
23815
+ _document_url?: string;
23816
+ _error?: string;
23817
+ _error_code?: string;
23818
+ _fulfillment_order_id?: string;
23819
+ _id: string;
23820
+ _ok: boolean;
23821
+ _print_job_id?: string;
23822
+ _status?: string;
23823
+ };
23824
+ Returns: Json;
23825
+ };
23826
+ logistics_control_scan_lookup: {
23827
+ Args: {
23828
+ p_barcode: string;
23829
+ };
23830
+ Returns: Json;
23831
+ };
23832
+ logistics_control_scan_overview: {
23833
+ Args: {
23834
+ _date?: string;
23835
+ _scanner_id?: string;
23836
+ };
23837
+ Returns: Json;
23838
+ };
23839
+ logistics_control_scan_retry: {
23840
+ Args: {
23841
+ _id: string;
23842
+ };
23843
+ Returns: Json;
23844
+ };
23845
+ logistics_control_settings: {
23846
+ Args: never;
23847
+ Returns: Json;
23848
+ };
22392
23849
  logistics_delay_customer_email: {
22393
23850
  Args: {
22394
23851
  p_customer: string;
@@ -22456,6 +23913,17 @@ export type Database = {
22456
23913
  };
22457
23914
  Returns: Json;
22458
23915
  };
23916
+ logistics_enqueue_sticker_with_slip: {
23917
+ Args: {
23918
+ _cart_id: string;
23919
+ _is_herprint: boolean;
23920
+ _printer_id: string;
23921
+ _queue_item_id: string;
23922
+ _session_id: string;
23923
+ _slip_job_id: string;
23924
+ };
23925
+ Returns: string;
23926
+ };
22459
23927
  logistics_ensure_cart_barcode: {
22460
23928
  Args: {
22461
23929
  _cart_id: string;
@@ -22597,6 +24065,26 @@ export type Database = {
22597
24065
  };
22598
24066
  Returns: string;
22599
24067
  };
24068
+ logistics_fulfill_barcode_requests: {
24069
+ Args: {
24070
+ p_limit?: number;
24071
+ };
24072
+ Returns: Json;
24073
+ };
24074
+ logistics_full_cart_min_layers: {
24075
+ Args: never;
24076
+ Returns: number;
24077
+ };
24078
+ logistics_full_cart_min_percentage: {
24079
+ Args: never;
24080
+ Returns: number;
24081
+ };
24082
+ logistics_is_pick_workday: {
24083
+ Args: {
24084
+ p_date: string;
24085
+ };
24086
+ Returns: boolean;
24087
+ };
22600
24088
  logistics_live_carriers: {
22601
24089
  Args: {
22602
24090
  p_order_ref: string;
@@ -22609,19 +24097,46 @@ export type Database = {
22609
24097
  };
22610
24098
  Returns: number;
22611
24099
  };
22612
- logistics_not_past: {
24100
+ logistics_next_workday_date: {
22613
24101
  Args: {
22614
- p_ts: string;
24102
+ p_date: string;
24103
+ p_days?: string[];
22615
24104
  };
22616
24105
  Returns: string;
22617
24106
  };
22618
- logistics_order_cart_count: {
24107
+ logistics_next_workday_not_past: {
22619
24108
  Args: {
22620
- p_order_ref: string;
24109
+ p_days: string[];
24110
+ p_ts: string;
22621
24111
  };
22622
- Returns: number;
24112
+ Returns: string;
22623
24113
  };
22624
- logistics_order_overview: {
24114
+ logistics_not_past: {
24115
+ Args: {
24116
+ p_ts: string;
24117
+ };
24118
+ Returns: string;
24119
+ };
24120
+ logistics_order_cart_count: {
24121
+ Args: {
24122
+ p_order_ref: string;
24123
+ };
24124
+ Returns: number;
24125
+ };
24126
+ logistics_order_handled: {
24127
+ Args: {
24128
+ p_order_uuid: string;
24129
+ };
24130
+ Returns: boolean;
24131
+ };
24132
+ logistics_order_is_topick: {
24133
+ Args: {
24134
+ p_order_id: string;
24135
+ p_order_number: string;
24136
+ };
24137
+ Returns: boolean;
24138
+ };
24139
+ logistics_order_overview: {
22625
24140
  Args: {
22626
24141
  p_from?: string;
22627
24142
  p_to?: string;
@@ -22646,6 +24161,12 @@ export type Database = {
22646
24161
  };
22647
24162
  Returns: string;
22648
24163
  };
24164
+ logistics_order_released: {
24165
+ Args: {
24166
+ p_order_ref: string;
24167
+ };
24168
+ Returns: boolean;
24169
+ };
22649
24170
  logistics_parse_pickup: {
22650
24171
  Args: {
22651
24172
  p_value: string;
@@ -22668,10 +24189,37 @@ export type Database = {
22668
24189
  shifted_count: number;
22669
24190
  }[];
22670
24191
  };
24192
+ logistics_pick_barcode_enabled: {
24193
+ Args: never;
24194
+ Returns: boolean;
24195
+ };
22671
24196
  logistics_pick_email_purpose: {
22672
24197
  Args: never;
22673
24198
  Returns: string;
22674
24199
  };
24200
+ logistics_pick_mode: {
24201
+ Args: never;
24202
+ Returns: Json;
24203
+ };
24204
+ logistics_pick_start_estimate: {
24205
+ Args: {
24206
+ p_order: Json;
24207
+ s: Json;
24208
+ };
24209
+ Returns: string;
24210
+ };
24211
+ logistics_pick_units: {
24212
+ Args: never;
24213
+ Returns: {
24214
+ is_buffer: boolean;
24215
+ order_number: string;
24216
+ order_uuid: string;
24217
+ unit_buffer: string;
24218
+ unit_order_count: number;
24219
+ unit_orders: string[];
24220
+ unit_ref: string;
24221
+ }[];
24222
+ };
22675
24223
  logistics_plan_all: {
22676
24224
  Args: {
22677
24225
  p_user_id?: string;
@@ -22758,6 +24306,14 @@ export type Database = {
22758
24306
  };
22759
24307
  Returns: number;
22760
24308
  };
24309
+ logistics_prune_buffer_member_queue: {
24310
+ Args: never;
24311
+ Returns: number;
24312
+ };
24313
+ logistics_prune_handled_pick_queue: {
24314
+ Args: never;
24315
+ Returns: number;
24316
+ };
22761
24317
  logistics_queue_capacity_email: {
22762
24318
  Args: {
22763
24319
  p_alert_id: string;
@@ -22790,6 +24346,12 @@ export type Database = {
22790
24346
  Args: never;
22791
24347
  Returns: Json;
22792
24348
  };
24349
+ logistics_refresh_pickup_moments: {
24350
+ Args: {
24351
+ p_weeks?: number;
24352
+ };
24353
+ Returns: Json;
24354
+ };
22793
24355
  logistics_report_delay: {
22794
24356
  Args: {
22795
24357
  p_expected_date?: string;
@@ -22896,6 +24458,12 @@ export type Database = {
22896
24458
  };
22897
24459
  Returns: string;
22898
24460
  };
24461
+ logistics_scan_resolve: {
24462
+ Args: {
24463
+ p_code: string;
24464
+ };
24465
+ Returns: Json;
24466
+ };
22899
24467
  logistics_schedule_tasks: {
22900
24468
  Args: never;
22901
24469
  Returns: number;
@@ -22930,6 +24498,10 @@ export type Database = {
22930
24498
  };
22931
24499
  Returns: Json;
22932
24500
  };
24501
+ logistics_sticker_follows_slip: {
24502
+ Args: never;
24503
+ Returns: boolean;
24504
+ };
22933
24505
  logistics_supersede_stale_tasks: {
22934
24506
  Args: {
22935
24507
  p_keep: string[];
@@ -22981,6 +24553,18 @@ export type Database = {
22981
24553
  };
22982
24554
  Returns: string;
22983
24555
  };
24556
+ logistics_write_buffer_layer_positions: {
24557
+ Args: {
24558
+ p_buffer_id: string;
24559
+ };
24560
+ Returns: number;
24561
+ };
24562
+ logistics_write_cart_layer_positions: {
24563
+ Args: {
24564
+ p_cart_id: string;
24565
+ };
24566
+ Returns: number;
24567
+ };
22984
24568
  mark_offer_clicked: {
22985
24569
  Args: {
22986
24570
  p_code: string;
@@ -23013,6 +24597,15 @@ export type Database = {
23013
24597
  };
23014
24598
  Returns: undefined;
23015
24599
  };
24600
+ move_cart_layer_position: {
24601
+ Args: {
24602
+ p_id: string;
24603
+ p_layer: number;
24604
+ p_x: number;
24605
+ p_y: number;
24606
+ };
24607
+ Returns: undefined;
24608
+ };
23016
24609
  my_module_permissions: {
23017
24610
  Args: never;
23018
24611
  Returns: {
@@ -23084,6 +24677,12 @@ export type Database = {
23084
24677
  };
23085
24678
  Returns: Json;
23086
24679
  };
24680
+ order_heeft_bevestigde_karren: {
24681
+ Args: {
24682
+ p_order_id: string;
24683
+ };
24684
+ Returns: boolean;
24685
+ };
23087
24686
  order_number_prefix: {
23088
24687
  Args: {
23089
24688
  p_custom_fields?: Json;
@@ -23119,6 +24718,27 @@ export type Database = {
23119
24718
  online: boolean;
23120
24719
  }[];
23121
24720
  };
24721
+ pick_available_pick_days: {
24722
+ Args: {
24723
+ _max_days?: number;
24724
+ };
24725
+ Returns: {
24726
+ orders: number;
24727
+ pick_day: string;
24728
+ }[];
24729
+ };
24730
+ pick_buffer_order_ids: {
24731
+ Args: {
24732
+ _order_id: string;
24733
+ };
24734
+ Returns: string[];
24735
+ };
24736
+ pick_cart_breakdown: {
24737
+ Args: {
24738
+ _order_id: string;
24739
+ };
24740
+ Returns: Json;
24741
+ };
23122
24742
  pick_claim_document: {
23123
24743
  Args: {
23124
24744
  _queue_item_id: string;
@@ -23172,6 +24792,7 @@ export type Database = {
23172
24792
  pick_claim_next_document: {
23173
24793
  Args: {
23174
24794
  _country_code: string;
24795
+ _pick_day?: string;
23175
24796
  _screen_id: string;
23176
24797
  _session_id: string;
23177
24798
  _station_id: string;
@@ -23323,6 +24944,14 @@ export type Database = {
23323
24944
  isSetofReturn: false;
23324
24945
  };
23325
24946
  };
24947
+ pick_complete_print_carts: {
24948
+ Args: {
24949
+ _cart_ids: string[];
24950
+ _queue_item_id: string;
24951
+ _session_id: string;
24952
+ };
24953
+ Returns: Json;
24954
+ };
23326
24955
  pick_current_pick_day: {
23327
24956
  Args: never;
23328
24957
  Returns: string;
@@ -23359,6 +24988,65 @@ export type Database = {
23359
24988
  };
23360
24989
  Returns: string;
23361
24990
  };
24991
+ pick_enqueue_print_job_from_cart: {
24992
+ Args: {
24993
+ _cart_id: string;
24994
+ _is_herprint: boolean;
24995
+ _printer_id: string;
24996
+ _queue_item_id: string;
24997
+ _selected_cart: Json;
24998
+ _session_id: string;
24999
+ };
25000
+ Returns: string;
25001
+ };
25002
+ pick_mark_printed: {
25003
+ Args: {
25004
+ _queue_item_id: string;
25005
+ _reden?: string;
25006
+ _session_id: string;
25007
+ };
25008
+ Returns: {
25009
+ announced_at: string;
25010
+ assigned_user_id: string | null;
25011
+ barcode: string | null;
25012
+ cancelled_at: string | null;
25013
+ cart_count: number;
25014
+ completed_at: string | null;
25015
+ country_code: string | null;
25016
+ created_at: string;
25017
+ customer_name: string | null;
25018
+ delivery_address: string | null;
25019
+ document_number: string | null;
25020
+ document_type_id: string | null;
25021
+ due_at: string | null;
25022
+ id: string;
25023
+ is_urgent: boolean;
25024
+ line_count: number;
25025
+ order_number: string | null;
25026
+ order_type: string | null;
25027
+ payload: Json;
25028
+ print_count: number;
25029
+ print_job_id: string | null;
25030
+ printed_at: string | null;
25031
+ printed_by: string | null;
25032
+ printed_cart_ids: Json;
25033
+ printer_id: string | null;
25034
+ priority: number;
25035
+ reference: string | null;
25036
+ route: string | null;
25037
+ screen_id: string | null;
25038
+ station_id: string | null;
25039
+ status_id: string | null;
25040
+ updated_at: string;
25041
+ warnings: Json;
25042
+ };
25043
+ SetofOptions: {
25044
+ from: "*";
25045
+ to: "pick_queue";
25046
+ isOneToOne: true;
25047
+ isSetofReturn: false;
25048
+ };
25049
+ };
23362
25050
  pick_order_context: {
23363
25051
  Args: {
23364
25052
  _order_id?: string;
@@ -23379,6 +25067,12 @@ export type Database = {
23379
25067
  };
23380
25068
  Returns: Json;
23381
25069
  };
25070
+ pick_print_jobs_status: {
25071
+ Args: {
25072
+ _job_ids: string[];
25073
+ };
25074
+ Returns: Json[];
25075
+ };
23382
25076
  pick_print_plekken: {
23383
25077
  Args: never;
23384
25078
  Returns: {
@@ -23387,6 +25081,12 @@ export type Database = {
23387
25081
  omschrijving: string;
23388
25082
  }[];
23389
25083
  };
25084
+ pick_queue_cart_plan: {
25085
+ Args: {
25086
+ _queue_item_id: string;
25087
+ };
25088
+ Returns: Json;
25089
+ };
23390
25090
  pick_reference_data_status: {
23391
25091
  Args: never;
23392
25092
  Returns: Json;
@@ -23401,6 +25101,19 @@ export type Database = {
23401
25101
  };
23402
25102
  Returns: undefined;
23403
25103
  };
25104
+ pick_report_missing_cart_plan: {
25105
+ Args: never;
25106
+ Returns: Json;
25107
+ };
25108
+ pick_reprint_cart: {
25109
+ Args: {
25110
+ _cart_id: string;
25111
+ _queue_item_id: string;
25112
+ _session_id: string;
25113
+ _throttle_seconds?: number;
25114
+ };
25115
+ Returns: string;
25116
+ };
23404
25117
  pick_reprint_document: {
23405
25118
  Args: {
23406
25119
  _queue_item_id: string;
@@ -23503,6 +25216,151 @@ export type Database = {
23503
25216
  isSetofReturn: false;
23504
25217
  };
23505
25218
  };
25219
+ pick_reset_print_job: {
25220
+ Args: {
25221
+ _cart_id: string;
25222
+ _job_id: string;
25223
+ _queue_item_id: string;
25224
+ _session_id: string;
25225
+ };
25226
+ Returns: {
25227
+ announced_at: string;
25228
+ assigned_user_id: string | null;
25229
+ barcode: string | null;
25230
+ cancelled_at: string | null;
25231
+ cart_count: number;
25232
+ completed_at: string | null;
25233
+ country_code: string | null;
25234
+ created_at: string;
25235
+ customer_name: string | null;
25236
+ delivery_address: string | null;
25237
+ document_number: string | null;
25238
+ document_type_id: string | null;
25239
+ due_at: string | null;
25240
+ id: string;
25241
+ is_urgent: boolean;
25242
+ line_count: number;
25243
+ order_number: string | null;
25244
+ order_type: string | null;
25245
+ payload: Json;
25246
+ print_count: number;
25247
+ print_job_id: string | null;
25248
+ printed_at: string | null;
25249
+ printed_by: string | null;
25250
+ printed_cart_ids: Json;
25251
+ printer_id: string | null;
25252
+ priority: number;
25253
+ reference: string | null;
25254
+ route: string | null;
25255
+ screen_id: string | null;
25256
+ station_id: string | null;
25257
+ status_id: string | null;
25258
+ updated_at: string;
25259
+ warnings: Json;
25260
+ };
25261
+ SetofOptions: {
25262
+ from: "*";
25263
+ to: "pick_queue";
25264
+ isOneToOne: true;
25265
+ isSetofReturn: false;
25266
+ };
25267
+ };
25268
+ pick_reset_print_jobs: {
25269
+ Args: {
25270
+ _cart_ids: string[];
25271
+ _job_ids: string[];
25272
+ _queue_item_id: string;
25273
+ _session_id: string;
25274
+ };
25275
+ Returns: {
25276
+ announced_at: string;
25277
+ assigned_user_id: string | null;
25278
+ barcode: string | null;
25279
+ cancelled_at: string | null;
25280
+ cart_count: number;
25281
+ completed_at: string | null;
25282
+ country_code: string | null;
25283
+ created_at: string;
25284
+ customer_name: string | null;
25285
+ delivery_address: string | null;
25286
+ document_number: string | null;
25287
+ document_type_id: string | null;
25288
+ due_at: string | null;
25289
+ id: string;
25290
+ is_urgent: boolean;
25291
+ line_count: number;
25292
+ order_number: string | null;
25293
+ order_type: string | null;
25294
+ payload: Json;
25295
+ print_count: number;
25296
+ print_job_id: string | null;
25297
+ printed_at: string | null;
25298
+ printed_by: string | null;
25299
+ printed_cart_ids: Json;
25300
+ printer_id: string | null;
25301
+ priority: number;
25302
+ reference: string | null;
25303
+ route: string | null;
25304
+ screen_id: string | null;
25305
+ station_id: string | null;
25306
+ status_id: string | null;
25307
+ updated_at: string;
25308
+ warnings: Json;
25309
+ };
25310
+ SetofOptions: {
25311
+ from: "*";
25312
+ to: "pick_queue";
25313
+ isOneToOne: true;
25314
+ isSetofReturn: false;
25315
+ };
25316
+ };
25317
+ pick_restore_to_queue: {
25318
+ Args: {
25319
+ _queue_item_id: string;
25320
+ _session_id: string;
25321
+ };
25322
+ Returns: {
25323
+ announced_at: string;
25324
+ assigned_user_id: string | null;
25325
+ barcode: string | null;
25326
+ cancelled_at: string | null;
25327
+ cart_count: number;
25328
+ completed_at: string | null;
25329
+ country_code: string | null;
25330
+ created_at: string;
25331
+ customer_name: string | null;
25332
+ delivery_address: string | null;
25333
+ document_number: string | null;
25334
+ document_type_id: string | null;
25335
+ due_at: string | null;
25336
+ id: string;
25337
+ is_urgent: boolean;
25338
+ line_count: number;
25339
+ order_number: string | null;
25340
+ order_type: string | null;
25341
+ payload: Json;
25342
+ print_count: number;
25343
+ print_job_id: string | null;
25344
+ printed_at: string | null;
25345
+ printed_by: string | null;
25346
+ printed_cart_ids: Json;
25347
+ printer_id: string | null;
25348
+ priority: number;
25349
+ reference: string | null;
25350
+ route: string | null;
25351
+ screen_id: string | null;
25352
+ station_id: string | null;
25353
+ status_id: string | null;
25354
+ updated_at: string;
25355
+ warnings: Json;
25356
+ };
25357
+ SetofOptions: {
25358
+ from: "*";
25359
+ to: "pick_queue";
25360
+ isOneToOne: true;
25361
+ isSetofReturn: false;
25362
+ };
25363
+ };
23506
25364
  pick_seed_reference_data: {
23507
25365
  Args: never;
23508
25366
  Returns: Json;
@@ -23552,6 +25410,12 @@ export type Database = {
23552
25410
  };
23553
25411
  Returns: string;
23554
25412
  };
25413
+ pick_sync_pick_day: {
25414
+ Args: {
25415
+ _day: string;
25416
+ };
25417
+ Returns: Json;
25418
+ };
23555
25419
  pick_sync_queue_throttled: {
23556
25420
  Args: {
23557
25421
  _min_seconds?: number;
@@ -23781,6 +25645,20 @@ export type Database = {
23781
25645
  };
23782
25646
  Returns: boolean;
23783
25647
  };
25648
+ release_local_pdf_job: {
25649
+ Args: {
25650
+ _job_id: string;
25651
+ _writer_id: string;
25652
+ };
25653
+ Returns: boolean;
25654
+ };
25655
+ release_print_queue_lease: {
25656
+ Args: {
25657
+ _houder: string;
25658
+ _naam: string;
25659
+ };
25660
+ Returns: boolean;
25661
+ };
23784
25662
  release_stale_order_invoice_links: {
23785
25663
  Args: {
23786
25664
  _minutes?: number;
@@ -23801,6 +25679,12 @@ export type Database = {
23801
25679
  };
23802
25680
  Returns: Json;
23803
25681
  };
25682
+ reset_cart_layer_positions: {
25683
+ Args: {
25684
+ p_cart_id: string;
25685
+ };
25686
+ Returns: number;
25687
+ };
23804
25688
  reset_floriday_sync_cursor: {
23805
25689
  Args: {
23806
25690
  p_connection_id: string;
@@ -23864,6 +25748,15 @@ export type Database = {
23864
25748
  };
23865
25749
  Returns: Json;
23866
25750
  };
25751
+ roles_without_enum_mapping: {
25752
+ Args: never;
25753
+ Returns: {
25754
+ assignment_count: number;
25755
+ id: string;
25756
+ key: string;
25757
+ name: string;
25758
+ }[];
25759
+ };
23867
25760
  ruim_print_jobs_op: {
23868
25761
  Args: {
23869
25762
  _bewaar_dagen?: number;
@@ -23878,6 +25771,10 @@ export type Database = {
23878
25771
  Args: never;
23879
25772
  Returns: undefined;
23880
25773
  };
25774
+ run_floriday_stock_reconcile: {
25775
+ Args: never;
25776
+ Returns: undefined;
25777
+ };
23881
25778
  run_logistics_tasks_dispatch: {
23882
25779
  Args: never;
23883
25780
  Returns: undefined;
@@ -23896,18 +25793,98 @@ export type Database = {
23896
25793
  };
23897
25794
  Returns: Json;
23898
25795
  };
25796
+ scan_complete_cart: {
25797
+ Args: {
25798
+ p_allow_reprint?: boolean;
25799
+ p_cart_id: string;
25800
+ p_print?: boolean;
25801
+ p_scanner_id?: string;
25802
+ };
25803
+ Returns: Json;
25804
+ };
23899
25805
  scan_dashboard_stats: {
23900
25806
  Args: {
23901
25807
  p_dagen?: number;
23902
25808
  };
23903
25809
  Returns: Json;
23904
25810
  };
25811
+ scan_eindcontrole: {
25812
+ Args: {
25813
+ p_barcode: string;
25814
+ p_scanner_id?: string;
25815
+ };
25816
+ Returns: Json;
25817
+ };
23905
25818
  scan_finish_kar: {
23906
25819
  Args: {
23907
25820
  p_kar_id: string;
23908
25821
  };
23909
25822
  Returns: Json;
23910
25823
  };
25824
+ scan_kar_compleet: {
25825
+ Args: {
25826
+ p_allow_reprint?: boolean;
25827
+ p_sessie_id: string;
25828
+ };
25829
+ Returns: Json;
25830
+ };
25831
+ scan_kar_regels: {
25832
+ Args: {
25833
+ p_cart_id: string;
25834
+ };
25835
+ Returns: Json;
25836
+ };
25837
+ scan_log_code: {
25838
+ Args: {
25839
+ p_code: string;
25840
+ p_latency_ms?: number;
25841
+ p_message?: string;
25842
+ p_result: string;
25843
+ p_scanner_key?: string;
25844
+ };
25845
+ Returns: string;
25846
+ };
25847
+ scan_open_pakbonnen: {
25848
+ Args: {
25849
+ p_dagen?: number;
25850
+ };
25851
+ Returns: Json;
25852
+ };
25853
+ scan_pakbon_lookup: {
25854
+ Args: {
25855
+ p_barcode: string;
25856
+ };
25857
+ Returns: Json;
25858
+ };
25859
+ scan_pakbon_opnieuw: {
25860
+ Args: {
25861
+ p_barcode: string;
25862
+ p_scanner_id?: string;
25863
+ };
25864
+ Returns: Json;
25865
+ };
25866
+ scan_pakbon_toevoegen: {
25867
+ Args: {
25868
+ p_barcode: string;
25869
+ p_medewerker?: string;
25870
+ p_regels?: Json;
25871
+ p_scanner_id: string;
25872
+ };
25873
+ Returns: Json;
25874
+ };
25875
+ scan_print_restpakbon: {
25876
+ Args: {
25877
+ p_printer_id?: string;
25878
+ p_restpakbon_id: string;
25879
+ };
25880
+ Returns: Json;
25881
+ };
25882
+ scan_print_verzendbrief: {
25883
+ Args: {
25884
+ p_sessie_id: string;
25885
+ };
25886
+ Returns: Json;
25887
+ };
23911
25888
  scan_register_item: {
23912
25889
  Args: {
23913
25890
  p_kar_id: string;
@@ -23926,6 +25903,25 @@ export type Database = {
23926
25903
  };
23927
25904
  Returns: Json;
23928
25905
  };
25906
+ scan_restpakbon_geprint: {
25907
+ Args: {
25908
+ p_id: string;
25909
+ p_print_job_id?: string;
25910
+ };
25911
+ Returns: undefined;
25912
+ };
25913
+ scan_sessie_annuleren: {
25914
+ Args: {
25915
+ p_sessie_id: string;
25916
+ };
25917
+ Returns: undefined;
25918
+ };
25919
+ scan_sessie_open: {
25920
+ Args: {
25921
+ p_scanner_id: string;
25922
+ };
25923
+ Returns: Json;
25924
+ };
23929
25925
  scan_start_kar: {
23930
25926
  Args: {
23931
25927
  p_medewerker_id?: string;
@@ -23944,6 +25940,12 @@ export type Database = {
23944
25940
  };
23945
25941
  Returns: Json;
23946
25942
  };
25943
+ scan_verzendbrief_regels: {
25944
+ Args: {
25945
+ p_sessie_id: string;
25946
+ };
25947
+ Returns: Json;
25948
+ };
23947
25949
  schedule_floriday_additional_services_sync: {
23948
25950
  Args: {
23949
25951
  p_apikey: string;
@@ -24259,6 +26261,13 @@ export type Database = {
24259
26261
  };
24260
26262
  Returns: Json;
24261
26263
  };
26264
+ swap_cart_layer_positions: {
26265
+ Args: {
26266
+ p_a: string;
26267
+ p_b: string;
26268
+ };
26269
+ Returns: undefined;
26270
+ };
24262
26271
  switch_time_log: {
24263
26272
  Args: {
24264
26273
  p_employee_id: string;
@@ -24291,6 +26300,12 @@ export type Database = {
24291
26300
  };
24292
26301
  Returns: undefined;
24293
26302
  };
26303
+ sync_order_item_fusten: {
26304
+ Args: {
26305
+ _order_item_id: string;
26306
+ };
26307
+ Returns: undefined;
26308
+ };
24294
26309
  sync_product_group_belading: {
24295
26310
  Args: {
24296
26311
  _group_id: string;
@@ -24397,6 +26412,12 @@ export type Database = {
24397
26412
  Args: never;
24398
26413
  Returns: string;
24399
26414
  };
26415
+ wake_print_queue: {
26416
+ Args: {
26417
+ _min_interval_ms?: number;
26418
+ };
26419
+ Returns: number;
26420
+ };
24400
26421
  werkbon_totalen: {
24401
26422
  Args: {
24402
26423
  _werkbon_id: string;
@@ -24429,10 +26450,18 @@ export type Database = {
24429
26450
  };
24430
26451
  Returns: Json;
24431
26452
  };
26453
+ wo_set_status: {
26454
+ Args: {
26455
+ _reason?: string;
26456
+ _status: string;
26457
+ _work_order_id: string;
26458
+ };
26459
+ Returns: Json;
26460
+ };
24432
26461
  };
24433
26462
  Enums: {
24434
26463
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24435
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26464
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24436
26465
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24437
26466
  doc_orientation: "portrait" | "landscape";
24438
26467
  exact_env: "staging" | "live";
@@ -24503,7 +26532,7 @@ export declare const Constants: {
24503
26532
  readonly public: {
24504
26533
  readonly Enums: {
24505
26534
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
24506
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
26535
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24507
26536
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24508
26537
  readonly doc_orientation: readonly ["portrait", "landscape"];
24509
26538
  readonly exact_env: readonly ["staging", "live"];