@flowselections/logistiek-engine 1.0.27 → 1.0.29

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 (101) 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/GeblokkeerdeOrdersCard.d.ts +2 -0
  10. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
  11. package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
  12. package/dist-lib/components/KarplanStatusCard.d.ts +2 -0
  13. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  14. package/dist-lib/components/KarplanStatusCard.js +31 -0
  15. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  16. package/dist-lib/components/RegiePage.js +4 -1
  17. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  18. package/dist-lib/components/RuleEnginePage.js +7 -4
  19. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  20. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  21. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  22. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  23. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  24. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
  25. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
  26. package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
  27. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  28. package/dist-lib/hooks/useRecalcJob.js +26 -1
  29. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  30. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  31. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  32. package/dist-lib/index.d.ts +3 -0
  33. package/dist-lib/index.d.ts.map +1 -1
  34. package/dist-lib/index.js +3 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2105 -68
  36. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  38. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  39. package/dist-lib/integrations/supabase/client.js +13 -0
  40. package/dist-lib/integrations/supabase/client.server.d.ts +2105 -68
  41. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/client.server.js +1 -1
  43. package/dist-lib/integrations/supabase/moduleClient.d.ts +2105 -68
  44. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  45. package/dist-lib/integrations/supabase/types.d.ts +2135 -54
  46. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/types.js +1 -0
  48. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  49. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  50. package/dist-lib/lib/attachAuthToken.js +50 -0
  51. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  52. package/dist-lib/lib/bufferMatching.js +1 -0
  53. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  54. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  55. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  56. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  57. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  58. package/dist-lib/lib/controlScan.server.js +197 -0
  59. package/dist-lib/lib/dimensionData.server.d.ts +11 -1
  60. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -1
  61. package/dist-lib/lib/dimensionData.server.js +58 -48
  62. package/dist-lib/lib/dimensionPlanner.d.ts +26 -1
  63. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -1
  64. package/dist-lib/lib/dimensionPlanner.js +37 -6
  65. package/dist-lib/lib/floridayDocuments.functions.d.ts +6314 -203
  66. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  68. package/dist-lib/lib/floridayPush.functions.d.ts +2106 -69
  69. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floridayPush.functions.js +2 -1
  71. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  72. package/dist-lib/lib/handlers/logistics-tick.server.js +64 -0
  73. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10480 -295
  74. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  76. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +42 -0
  77. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  78. package/dist-lib/lib/loadCarrierPlanning.server.js +583 -31
  79. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  80. package/dist-lib/lib/logisticsPlanner.js +24 -9
  81. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4231 -157
  82. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  84. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  85. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  86. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2106 -69
  87. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  89. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  90. package/dist-lib/lib/modulePrompts.js +2560 -1586
  91. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  92. package/dist-lib/lib/planQueue.server.js +6 -0
  93. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  94. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  95. package/dist-lib/lib/readableServerErrors.js +36 -0
  96. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  97. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  98. package/dist-lib/lib/ruleEngineSchema.js +72 -51
  99. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  100. package/dist-lib/lib/ruleEngineWizard.js +5 -6
  101. 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;
@@ -10127,6 +10503,7 @@ export type Database = {
10127
10503
  next_attempt_at: string;
10128
10504
  order_id: string;
10129
10505
  reason: string;
10506
+ reason_code: string | null;
10130
10507
  status: string;
10131
10508
  updated_at: string;
10132
10509
  };
@@ -10139,6 +10516,7 @@ export type Database = {
10139
10516
  next_attempt_at?: string;
10140
10517
  order_id: string;
10141
10518
  reason?: string;
10519
+ reason_code?: string | null;
10142
10520
  status?: string;
10143
10521
  updated_at?: string;
10144
10522
  };
@@ -10151,6 +10529,7 @@ export type Database = {
10151
10529
  next_attempt_at?: string;
10152
10530
  order_id?: string;
10153
10531
  reason?: string;
10532
+ reason_code?: string | null;
10154
10533
  status?: string;
10155
10534
  updated_at?: string;
10156
10535
  };
@@ -10868,6 +11247,21 @@ export type Database = {
10868
11247
  }
10869
11248
  ];
10870
11249
  };
11250
+ logistics_tick_heartbeat: {
11251
+ Row: {
11252
+ id: boolean;
11253
+ last_tick_at: string;
11254
+ };
11255
+ Insert: {
11256
+ id?: boolean;
11257
+ last_tick_at?: string;
11258
+ };
11259
+ Update: {
11260
+ id?: boolean;
11261
+ last_tick_at?: string;
11262
+ };
11263
+ Relationships: [];
11264
+ };
10871
11265
  logistics_variables: {
10872
11266
  Row: {
10873
11267
  created_at: string;
@@ -11309,6 +11703,13 @@ export type Database = {
11309
11703
  updated_at?: string;
11310
11704
  };
11311
11705
  Relationships: [
11706
+ {
11707
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11708
+ columns: ["product_id"];
11709
+ isOneToOne: false;
11710
+ referencedRelation: "logistics_product_dimensions";
11711
+ referencedColumns: ["product_id"];
11712
+ },
11312
11713
  {
11313
11714
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11314
11715
  columns: ["product_id"];
@@ -12651,6 +13052,8 @@ export type Database = {
12651
13052
  order_buffers: {
12652
13053
  Row: {
12653
13054
  buffer_key: string;
13055
+ close_at: string | null;
13056
+ closed_at: string | null;
12654
13057
  created_at: string;
12655
13058
  customer_id: string | null;
12656
13059
  grouping_mode: string;
@@ -12662,6 +13065,8 @@ export type Database = {
12662
13065
  };
12663
13066
  Insert: {
12664
13067
  buffer_key: string;
13068
+ close_at?: string | null;
13069
+ closed_at?: string | null;
12665
13070
  created_at?: string;
12666
13071
  customer_id?: string | null;
12667
13072
  grouping_mode: string;
@@ -12673,6 +13078,8 @@ export type Database = {
12673
13078
  };
12674
13079
  Update: {
12675
13080
  buffer_key?: string;
13081
+ close_at?: string | null;
13082
+ closed_at?: string | null;
12676
13083
  created_at?: string;
12677
13084
  customer_id?: string | null;
12678
13085
  grouping_mode?: string;
@@ -12689,10 +13096,12 @@ export type Database = {
12689
13096
  boxes: number | null;
12690
13097
  cart_id: string;
12691
13098
  crates: number;
13099
+ crates_in_layer: number | null;
12692
13100
  crates_per_layer: number;
12693
13101
  created_at: string;
12694
13102
  id: string;
12695
13103
  layer_fraction: number;
13104
+ layer_index: number | null;
12696
13105
  layer_share_pct: number;
12697
13106
  layers_per_cart: number;
12698
13107
  order_item_id: string | null;
@@ -12705,10 +13114,12 @@ export type Database = {
12705
13114
  boxes?: number | null;
12706
13115
  cart_id: string;
12707
13116
  crates: number;
13117
+ crates_in_layer?: number | null;
12708
13118
  crates_per_layer?: number;
12709
13119
  created_at?: string;
12710
13120
  id?: string;
12711
13121
  layer_fraction?: number;
13122
+ layer_index?: number | null;
12712
13123
  layer_share_pct?: number;
12713
13124
  layers_per_cart?: number;
12714
13125
  order_item_id?: string | null;
@@ -12721,10 +13132,12 @@ export type Database = {
12721
13132
  boxes?: number | null;
12722
13133
  cart_id?: string;
12723
13134
  crates?: number;
13135
+ crates_in_layer?: number | null;
12724
13136
  crates_per_layer?: number;
12725
13137
  created_at?: string;
12726
13138
  id?: string;
12727
13139
  layer_fraction?: number;
13140
+ layer_index?: number | null;
12728
13141
  layer_share_pct?: number;
12729
13142
  layers_per_cart?: number;
12730
13143
  order_item_id?: string | null;
@@ -12748,6 +13161,13 @@ export type Database = {
12748
13161
  referencedRelation: "order_items";
12749
13162
  referencedColumns: ["id"];
12750
13163
  },
13164
+ {
13165
+ foreignKeyName: "order_cart_items_product_id_fkey";
13166
+ columns: ["product_id"];
13167
+ isOneToOne: false;
13168
+ referencedRelation: "logistics_product_dimensions";
13169
+ referencedColumns: ["product_id"];
13170
+ },
12751
13171
  {
12752
13172
  foreignKeyName: "order_cart_items_product_id_fkey";
12753
13173
  columns: ["product_id"];
@@ -12757,6 +13177,95 @@ export type Database = {
12757
13177
  }
12758
13178
  ];
12759
13179
  };
13180
+ order_cart_layer_positions: {
13181
+ Row: {
13182
+ algorithm_version: number | null;
13183
+ cart_id: string;
13184
+ created_at: string;
13185
+ height: number;
13186
+ id: string;
13187
+ keg_id: string;
13188
+ label: string | null;
13189
+ layer: number;
13190
+ layer_height: number | null;
13191
+ layer_width: number | null;
13192
+ manual_overridden_at: string | null;
13193
+ manual_overridden_by: string | null;
13194
+ manual_override: boolean;
13195
+ order_item_id: string | null;
13196
+ original_layer: number | null;
13197
+ original_x: number | null;
13198
+ original_y: number | null;
13199
+ product_id: string | null;
13200
+ rotation: number;
13201
+ source: string | null;
13202
+ updated_at: string;
13203
+ width: number;
13204
+ x: number;
13205
+ y: number;
13206
+ };
13207
+ Insert: {
13208
+ algorithm_version?: number | null;
13209
+ cart_id: string;
13210
+ created_at?: string;
13211
+ height: number;
13212
+ id?: string;
13213
+ keg_id: string;
13214
+ label?: string | null;
13215
+ layer: number;
13216
+ layer_height?: number | null;
13217
+ layer_width?: number | null;
13218
+ manual_overridden_at?: string | null;
13219
+ manual_overridden_by?: string | null;
13220
+ manual_override?: boolean;
13221
+ order_item_id?: string | null;
13222
+ original_layer?: number | null;
13223
+ original_x?: number | null;
13224
+ original_y?: number | null;
13225
+ product_id?: string | null;
13226
+ rotation?: number;
13227
+ source?: string | null;
13228
+ updated_at?: string;
13229
+ width: number;
13230
+ x: number;
13231
+ y: number;
13232
+ };
13233
+ Update: {
13234
+ algorithm_version?: number | null;
13235
+ cart_id?: string;
13236
+ created_at?: string;
13237
+ height?: number;
13238
+ id?: string;
13239
+ keg_id?: string;
13240
+ label?: string | null;
13241
+ layer?: number;
13242
+ layer_height?: number | null;
13243
+ layer_width?: number | null;
13244
+ manual_overridden_at?: string | null;
13245
+ manual_overridden_by?: string | null;
13246
+ manual_override?: boolean;
13247
+ order_item_id?: string | null;
13248
+ original_layer?: number | null;
13249
+ original_x?: number | null;
13250
+ original_y?: number | null;
13251
+ product_id?: string | null;
13252
+ rotation?: number;
13253
+ source?: string | null;
13254
+ updated_at?: string;
13255
+ width?: number;
13256
+ x?: number;
13257
+ y?: number;
13258
+ };
13259
+ Relationships: [
13260
+ {
13261
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
13262
+ columns: ["cart_id"];
13263
+ isOneToOne: false;
13264
+ referencedRelation: "order_carts";
13265
+ referencedColumns: ["id"];
13266
+ }
13267
+ ];
13268
+ };
12760
13269
  order_carts: {
12761
13270
  Row: {
12762
13271
  algorithm_version: number;
@@ -12768,6 +13277,7 @@ export type Database = {
12768
13277
  id: string;
12769
13278
  is_auto: boolean;
12770
13279
  is_complete: boolean;
13280
+ layout_method: string | null;
12771
13281
  max_layers: number | null;
12772
13282
  moved_at: string | null;
12773
13283
  moved_from_moment_id: string | null;
@@ -12778,6 +13288,7 @@ export type Database = {
12778
13288
  pickup_locked: boolean;
12779
13289
  pickup_moment_id: string | null;
12780
13290
  source: string;
13291
+ total_carts: number | null;
12781
13292
  total_layers_used: number;
12782
13293
  updated_at: string;
12783
13294
  weight_kg: number | null;
@@ -12792,6 +13303,7 @@ export type Database = {
12792
13303
  id?: string;
12793
13304
  is_auto?: boolean;
12794
13305
  is_complete?: boolean;
13306
+ layout_method?: string | null;
12795
13307
  max_layers?: number | null;
12796
13308
  moved_at?: string | null;
12797
13309
  moved_from_moment_id?: string | null;
@@ -12802,6 +13314,7 @@ export type Database = {
12802
13314
  pickup_locked?: boolean;
12803
13315
  pickup_moment_id?: string | null;
12804
13316
  source?: string;
13317
+ total_carts?: number | null;
12805
13318
  total_layers_used?: number;
12806
13319
  updated_at?: string;
12807
13320
  weight_kg?: number | null;
@@ -12816,6 +13329,7 @@ export type Database = {
12816
13329
  id?: string;
12817
13330
  is_auto?: boolean;
12818
13331
  is_complete?: boolean;
13332
+ layout_method?: string | null;
12819
13333
  max_layers?: number | null;
12820
13334
  moved_at?: string | null;
12821
13335
  moved_from_moment_id?: string | null;
@@ -12826,6 +13340,7 @@ export type Database = {
12826
13340
  pickup_locked?: boolean;
12827
13341
  pickup_moment_id?: string | null;
12828
13342
  source?: string;
13343
+ total_carts?: number | null;
12829
13344
  total_layers_used?: number;
12830
13345
  updated_at?: string;
12831
13346
  weight_kg?: number | null;
@@ -12936,6 +13451,41 @@ export type Database = {
12936
13451
  };
12937
13452
  Relationships: [];
12938
13453
  };
13454
+ order_fust_bookings: {
13455
+ Row: {
13456
+ created_at: string;
13457
+ fust_type_id: string;
13458
+ id: string;
13459
+ order_item_id: string;
13460
+ quantity: number;
13461
+ updated_at: string;
13462
+ };
13463
+ Insert: {
13464
+ created_at?: string;
13465
+ fust_type_id: string;
13466
+ id?: string;
13467
+ order_item_id: string;
13468
+ quantity?: number;
13469
+ updated_at?: string;
13470
+ };
13471
+ Update: {
13472
+ created_at?: string;
13473
+ fust_type_id?: string;
13474
+ id?: string;
13475
+ order_item_id?: string;
13476
+ quantity?: number;
13477
+ updated_at?: string;
13478
+ };
13479
+ Relationships: [
13480
+ {
13481
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13482
+ columns: ["fust_type_id"];
13483
+ isOneToOne: false;
13484
+ referencedRelation: "fust_types";
13485
+ referencedColumns: ["id"];
13486
+ }
13487
+ ];
13488
+ };
12939
13489
  order_invoice_links: {
12940
13490
  Row: {
12941
13491
  administration_code: string | null;
@@ -13026,6 +13576,13 @@ export type Database = {
13026
13576
  referencedRelation: "orders";
13027
13577
  referencedColumns: ["id"];
13028
13578
  },
13579
+ {
13580
+ foreignKeyName: "order_items_product_id_fkey";
13581
+ columns: ["product_id"];
13582
+ isOneToOne: false;
13583
+ referencedRelation: "logistics_product_dimensions";
13584
+ referencedColumns: ["product_id"];
13585
+ },
13029
13586
  {
13030
13587
  foreignKeyName: "order_items_product_id_fkey";
13031
13588
  columns: ["product_id"];
@@ -13180,6 +13737,9 @@ export type Database = {
13180
13737
  plan_locked_at: string | null;
13181
13738
  plan_locked_ref: string | null;
13182
13739
  status: string;
13740
+ status_changed_at: string;
13741
+ status_origin: string;
13742
+ status_sync_token: string | null;
13183
13743
  total: string;
13184
13744
  updated_at: string;
13185
13745
  };
@@ -13204,6 +13764,9 @@ export type Database = {
13204
13764
  plan_locked_at?: string | null;
13205
13765
  plan_locked_ref?: string | null;
13206
13766
  status?: string;
13767
+ status_changed_at?: string;
13768
+ status_origin?: string;
13769
+ status_sync_token?: string | null;
13207
13770
  total?: string;
13208
13771
  updated_at?: string;
13209
13772
  };
@@ -13228,6 +13791,9 @@ export type Database = {
13228
13791
  plan_locked_at?: string | null;
13229
13792
  plan_locked_ref?: string | null;
13230
13793
  status?: string;
13794
+ status_changed_at?: string;
13795
+ status_origin?: string;
13796
+ status_sync_token?: string | null;
13231
13797
  total?: string;
13232
13798
  updated_at?: string;
13233
13799
  };
@@ -13284,6 +13850,132 @@ export type Database = {
13284
13850
  };
13285
13851
  Relationships: [];
13286
13852
  };
13853
+ pakbon_barcode_inhoud: {
13854
+ Row: {
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
+ Insert: {
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
+ Update: {
13891
+ barcode?: string;
13892
+ cart_id?: string | null;
13893
+ cart_index?: number | null;
13894
+ cart_label?: string | null;
13895
+ cart_total?: number | null;
13896
+ created_at?: string;
13897
+ is_herprint?: boolean;
13898
+ klant_naam?: string | null;
13899
+ klant_nummer?: string | null;
13900
+ layout_id?: string | null;
13901
+ layout_variant?: string | null;
13902
+ order_nummer?: string | null;
13903
+ order_ref?: string | null;
13904
+ print_job_id?: string | null;
13905
+ regels?: Json;
13906
+ updated_at?: string;
13907
+ };
13908
+ Relationships: [];
13909
+ };
13910
+ pakbon_barcode_verzoeken: {
13911
+ Row: {
13912
+ aangevraagd_op: string;
13913
+ barcode: string | null;
13914
+ cart_id: string | null;
13915
+ cart_index: number | null;
13916
+ cart_label: string | null;
13917
+ cart_total: number | null;
13918
+ documentnaam: string | null;
13919
+ geleverd_op: string | null;
13920
+ id: string;
13921
+ is_herprint: boolean;
13922
+ klant_naam: string | null;
13923
+ klant_nummer: string | null;
13924
+ laatst_gevraagd_op: string;
13925
+ layout_id: string | null;
13926
+ layout_variant: string | null;
13927
+ order_nummer: string | null;
13928
+ order_ref: string | null;
13929
+ print_job_id: string;
13930
+ status: string;
13931
+ updated_at: string;
13932
+ };
13933
+ Insert: {
13934
+ aangevraagd_op?: string;
13935
+ barcode?: string | null;
13936
+ cart_id?: string | null;
13937
+ cart_index?: number | null;
13938
+ cart_label?: string | null;
13939
+ cart_total?: number | null;
13940
+ documentnaam?: string | null;
13941
+ geleverd_op?: string | null;
13942
+ id?: string;
13943
+ is_herprint?: boolean;
13944
+ klant_naam?: string | null;
13945
+ klant_nummer?: string | null;
13946
+ laatst_gevraagd_op?: string;
13947
+ layout_id?: string | null;
13948
+ layout_variant?: string | null;
13949
+ order_nummer?: string | null;
13950
+ order_ref?: string | null;
13951
+ print_job_id: string;
13952
+ status?: string;
13953
+ updated_at?: string;
13954
+ };
13955
+ Update: {
13956
+ aangevraagd_op?: string;
13957
+ barcode?: string | null;
13958
+ cart_id?: string | null;
13959
+ cart_index?: number | null;
13960
+ cart_label?: string | null;
13961
+ cart_total?: number | null;
13962
+ documentnaam?: string | null;
13963
+ geleverd_op?: string | null;
13964
+ id?: string;
13965
+ is_herprint?: boolean;
13966
+ klant_naam?: string | null;
13967
+ klant_nummer?: string | null;
13968
+ laatst_gevraagd_op?: string;
13969
+ layout_id?: string | null;
13970
+ layout_variant?: string | null;
13971
+ order_nummer?: string | null;
13972
+ order_ref?: string | null;
13973
+ print_job_id?: string;
13974
+ status?: string;
13975
+ updated_at?: string;
13976
+ };
13977
+ Relationships: [];
13978
+ };
13287
13979
  pick_countries: {
13288
13980
  Row: {
13289
13981
  active: boolean;
@@ -14401,6 +15093,13 @@ export type Database = {
14401
15093
  isOneToOne: false;
14402
15094
  referencedRelation: "werkbonnen";
14403
15095
  referencedColumns: ["id"];
15096
+ },
15097
+ {
15098
+ foreignKeyName: "planning_items_werkbon_id_fkey";
15099
+ columns: ["werkbon_id"];
15100
+ isOneToOne: false;
15101
+ referencedRelation: "wo_overview";
15102
+ referencedColumns: ["id"];
14404
15103
  }
14405
15104
  ];
14406
15105
  };
@@ -14519,12 +15218,21 @@ export type Database = {
14519
15218
  };
14520
15219
  print_jobs: {
14521
15220
  Row: {
15221
+ aflever_pogingen: number;
14522
15222
  agent_id: string | null;
15223
+ artefact_bytes: number | null;
15224
+ artefact_gereed_op: string | null;
15225
+ artefact_pad: string | null;
15226
+ artefact_sha256: string | null;
15227
+ batch_id: string | null;
14523
15228
  bron_job_id: string | null;
14524
15229
  created_at: string;
14525
15230
  documentnaam: string;
14526
15231
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14527
15232
  extern_job_id: string | null;
15233
+ fase_gestart_op: string | null;
15234
+ fase_voltooid_op: string | null;
15235
+ foutcode: string | null;
14528
15236
  foutmelding: string | null;
14529
15237
  gebruiker_id: string | null;
14530
15238
  gebruiker_naam: string;
@@ -14538,7 +15246,10 @@ export type Database = {
14538
15246
  kopieen: number;
14539
15247
  layout_id: string | null;
14540
15248
  lokaal_opgeslagen_op: string | null;
15249
+ lokale_pdf_claim_id: string | null;
15250
+ lokale_pdf_claim_tot: string | null;
14541
15251
  lokale_pdf_fout: string | null;
15252
+ lokale_pdf_print_plek_id: string | null;
14542
15253
  lokale_pdf_status: string | null;
14543
15254
  opgepakt_op: string | null;
14544
15255
  paginas: number;
@@ -14551,16 +15262,26 @@ export type Database = {
14551
15262
  resultaat_pdf_base64: string | null;
14552
15263
  status: Database["public"]["Enums"]["print_job_status"];
14553
15264
  updated_at: string;
15265
+ verwerkingsfase: string;
14554
15266
  volgende_poging: string | null;
14555
15267
  voltooid_op: string | null;
14556
15268
  };
14557
15269
  Insert: {
15270
+ aflever_pogingen?: number;
14558
15271
  agent_id?: string | null;
15272
+ artefact_bytes?: number | null;
15273
+ artefact_gereed_op?: string | null;
15274
+ artefact_pad?: string | null;
15275
+ artefact_sha256?: string | null;
15276
+ batch_id?: string | null;
14559
15277
  bron_job_id?: string | null;
14560
15278
  created_at?: string;
14561
15279
  documentnaam?: string;
14562
15280
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14563
15281
  extern_job_id?: string | null;
15282
+ fase_gestart_op?: string | null;
15283
+ fase_voltooid_op?: string | null;
15284
+ foutcode?: string | null;
14564
15285
  foutmelding?: string | null;
14565
15286
  gebruiker_id?: string | null;
14566
15287
  gebruiker_naam?: string;
@@ -14574,7 +15295,10 @@ export type Database = {
14574
15295
  kopieen?: number;
14575
15296
  layout_id?: string | null;
14576
15297
  lokaal_opgeslagen_op?: string | null;
15298
+ lokale_pdf_claim_id?: string | null;
15299
+ lokale_pdf_claim_tot?: string | null;
14577
15300
  lokale_pdf_fout?: string | null;
15301
+ lokale_pdf_print_plek_id?: string | null;
14578
15302
  lokale_pdf_status?: string | null;
14579
15303
  opgepakt_op?: string | null;
14580
15304
  paginas?: number;
@@ -14587,16 +15311,26 @@ export type Database = {
14587
15311
  resultaat_pdf_base64?: string | null;
14588
15312
  status?: Database["public"]["Enums"]["print_job_status"];
14589
15313
  updated_at?: string;
15314
+ verwerkingsfase?: string;
14590
15315
  volgende_poging?: string | null;
14591
15316
  voltooid_op?: string | null;
14592
15317
  };
14593
15318
  Update: {
15319
+ aflever_pogingen?: number;
14594
15320
  agent_id?: string | null;
15321
+ artefact_bytes?: number | null;
15322
+ artefact_gereed_op?: string | null;
15323
+ artefact_pad?: string | null;
15324
+ artefact_sha256?: string | null;
15325
+ batch_id?: string | null;
14595
15326
  bron_job_id?: string | null;
14596
15327
  created_at?: string;
14597
15328
  documentnaam?: string;
14598
15329
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14599
15330
  extern_job_id?: string | null;
15331
+ fase_gestart_op?: string | null;
15332
+ fase_voltooid_op?: string | null;
15333
+ foutcode?: string | null;
14600
15334
  foutmelding?: string | null;
14601
15335
  gebruiker_id?: string | null;
14602
15336
  gebruiker_naam?: string;
@@ -14610,7 +15344,10 @@ export type Database = {
14610
15344
  kopieen?: number;
14611
15345
  layout_id?: string | null;
14612
15346
  lokaal_opgeslagen_op?: string | null;
15347
+ lokale_pdf_claim_id?: string | null;
15348
+ lokale_pdf_claim_tot?: string | null;
14613
15349
  lokale_pdf_fout?: string | null;
15350
+ lokale_pdf_print_plek_id?: string | null;
14614
15351
  lokale_pdf_status?: string | null;
14615
15352
  opgepakt_op?: string | null;
14616
15353
  paginas?: number;
@@ -14623,6 +15360,7 @@ export type Database = {
14623
15360
  resultaat_pdf_base64?: string | null;
14624
15361
  status?: Database["public"]["Enums"]["print_job_status"];
14625
15362
  updated_at?: string;
15363
+ verwerkingsfase?: string;
14626
15364
  volgende_poging?: string | null;
14627
15365
  voltooid_op?: string | null;
14628
15366
  };
@@ -14641,6 +15379,13 @@ export type Database = {
14641
15379
  referencedRelation: "document_layouts";
14642
15380
  referencedColumns: ["id"];
14643
15381
  },
15382
+ {
15383
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
15384
+ columns: ["lokale_pdf_print_plek_id"];
15385
+ isOneToOne: false;
15386
+ referencedRelation: "print_plekken";
15387
+ referencedColumns: ["id"];
15388
+ },
14644
15389
  {
14645
15390
  foreignKeyName: "print_jobs_printer_id_fkey";
14646
15391
  columns: ["printer_id"];
@@ -14780,6 +15525,30 @@ export type Database = {
14780
15525
  };
14781
15526
  Relationships: [];
14782
15527
  };
15528
+ print_queue_leases: {
15529
+ Row: {
15530
+ created_at: string;
15531
+ houder: string;
15532
+ naam: string;
15533
+ updated_at: string;
15534
+ verloopt_op: string;
15535
+ };
15536
+ Insert: {
15537
+ created_at?: string;
15538
+ houder: string;
15539
+ naam: string;
15540
+ updated_at?: string;
15541
+ verloopt_op: string;
15542
+ };
15543
+ Update: {
15544
+ created_at?: string;
15545
+ houder?: string;
15546
+ naam?: string;
15547
+ updated_at?: string;
15548
+ verloopt_op?: string;
15549
+ };
15550
+ Relationships: [];
15551
+ };
14783
15552
  print_queue_runners: {
14784
15553
  Row: {
14785
15554
  actief: boolean;
@@ -14789,7 +15558,9 @@ export type Database = {
14789
15558
  laatst_gezien: string;
14790
15559
  laatste_fout: string | null;
14791
15560
  laatste_request_id: number | null;
15561
+ laatste_wakeup: string | null;
14792
15562
  mislukte_posts: number;
15563
+ mislukte_wakeups: number;
14793
15564
  tick_sleutel: string;
14794
15565
  updated_at: string;
14795
15566
  };
@@ -14801,7 +15572,9 @@ export type Database = {
14801
15572
  laatst_gezien?: string;
14802
15573
  laatste_fout?: string | null;
14803
15574
  laatste_request_id?: number | null;
15575
+ laatste_wakeup?: string | null;
14804
15576
  mislukte_posts?: number;
15577
+ mislukte_wakeups?: number;
14805
15578
  tick_sleutel?: string;
14806
15579
  updated_at?: string;
14807
15580
  };
@@ -14813,7 +15586,9 @@ export type Database = {
14813
15586
  laatst_gezien?: string;
14814
15587
  laatste_fout?: string | null;
14815
15588
  laatste_request_id?: number | null;
15589
+ laatste_wakeup?: string | null;
14816
15590
  mislukte_posts?: number;
15591
+ mislukte_wakeups?: number;
14817
15592
  tick_sleutel?: string;
14818
15593
  updated_at?: string;
14819
15594
  };
@@ -15137,6 +15912,13 @@ export type Database = {
15137
15912
  updated_at?: string;
15138
15913
  };
15139
15914
  Relationships: [
15915
+ {
15916
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15917
+ columns: ["parent_product_id"];
15918
+ isOneToOne: false;
15919
+ referencedRelation: "logistics_product_dimensions";
15920
+ referencedColumns: ["product_id"];
15921
+ },
15140
15922
  {
15141
15923
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15142
15924
  columns: ["parent_product_id"];
@@ -15193,6 +15975,13 @@ export type Database = {
15193
15975
  updated_at?: string;
15194
15976
  };
15195
15977
  Relationships: [
15978
+ {
15979
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15980
+ columns: ["component_product_id"];
15981
+ isOneToOne: false;
15982
+ referencedRelation: "logistics_product_dimensions";
15983
+ referencedColumns: ["product_id"];
15984
+ },
15196
15985
  {
15197
15986
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15198
15987
  columns: ["component_product_id"];
@@ -15200,6 +15989,13 @@ export type Database = {
15200
15989
  referencedRelation: "products";
15201
15990
  referencedColumns: ["id"];
15202
15991
  },
15992
+ {
15993
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15994
+ columns: ["parent_product_id"];
15995
+ isOneToOne: false;
15996
+ referencedRelation: "logistics_product_dimensions";
15997
+ referencedColumns: ["product_id"];
15998
+ },
15203
15999
  {
15204
16000
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15205
16001
  columns: ["parent_product_id"];
@@ -15380,6 +16176,13 @@ export type Database = {
15380
16176
  updated_at?: string;
15381
16177
  };
15382
16178
  Relationships: [
16179
+ {
16180
+ foreignKeyName: "product_groups_head_product_id_fkey";
16181
+ columns: ["head_product_id"];
16182
+ isOneToOne: false;
16183
+ referencedRelation: "logistics_product_dimensions";
16184
+ referencedColumns: ["product_id"];
16185
+ },
15383
16186
  {
15384
16187
  foreignKeyName: "product_groups_head_product_id_fkey";
15385
16188
  columns: ["head_product_id"];
@@ -15449,6 +16252,13 @@ export type Database = {
15449
16252
  referencedRelation: "packages";
15450
16253
  referencedColumns: ["id"];
15451
16254
  },
16255
+ {
16256
+ foreignKeyName: "product_load_settings_product_id_fkey";
16257
+ columns: ["product_id"];
16258
+ isOneToOne: false;
16259
+ referencedRelation: "logistics_product_dimensions";
16260
+ referencedColumns: ["product_id"];
16261
+ },
15452
16262
  {
15453
16263
  foreignKeyName: "product_load_settings_product_id_fkey";
15454
16264
  columns: ["product_id"];
@@ -15500,6 +16310,7 @@ export type Database = {
15500
16310
  created_at: string;
15501
16311
  custom_fields: Json;
15502
16312
  floriday_trade_item_id: string | null;
16313
+ fust_type_id: string | null;
15503
16314
  id: string;
15504
16315
  image_url: string | null;
15505
16316
  incoming_quantity: number;
@@ -15507,6 +16318,7 @@ export type Database = {
15507
16318
  layers_per_cart: number;
15508
16319
  location: string;
15509
16320
  min_quantity: number;
16321
+ plant_height_cm: number | null;
15510
16322
  plants_per_crate: number;
15511
16323
  product: string;
15512
16324
  product_type: string;
@@ -15526,6 +16338,7 @@ export type Database = {
15526
16338
  created_at?: string;
15527
16339
  custom_fields?: Json;
15528
16340
  floriday_trade_item_id?: string | null;
16341
+ fust_type_id?: string | null;
15529
16342
  id?: string;
15530
16343
  image_url?: string | null;
15531
16344
  incoming_quantity?: number;
@@ -15533,6 +16346,7 @@ export type Database = {
15533
16346
  layers_per_cart?: number;
15534
16347
  location: string;
15535
16348
  min_quantity?: number;
16349
+ plant_height_cm?: number | null;
15536
16350
  plants_per_crate?: number;
15537
16351
  product: string;
15538
16352
  product_type?: string;
@@ -15552,6 +16366,7 @@ export type Database = {
15552
16366
  created_at?: string;
15553
16367
  custom_fields?: Json;
15554
16368
  floriday_trade_item_id?: string | null;
16369
+ fust_type_id?: string | null;
15555
16370
  id?: string;
15556
16371
  image_url?: string | null;
15557
16372
  incoming_quantity?: number;
@@ -15559,6 +16374,7 @@ export type Database = {
15559
16374
  layers_per_cart?: number;
15560
16375
  location?: string;
15561
16376
  min_quantity?: number;
16377
+ plant_height_cm?: number | null;
15562
16378
  plants_per_crate?: number;
15563
16379
  product?: string;
15564
16380
  product_type?: string;
@@ -15570,7 +16386,15 @@ export type Database = {
15570
16386
  updated_at?: string;
15571
16387
  weight?: string | null;
15572
16388
  };
15573
- Relationships: [];
16389
+ Relationships: [
16390
+ {
16391
+ foreignKeyName: "products_fust_type_id_fkey";
16392
+ columns: ["fust_type_id"];
16393
+ isOneToOne: false;
16394
+ referencedRelation: "fust_types";
16395
+ referencedColumns: ["id"];
16396
+ }
16397
+ ];
15574
16398
  };
15575
16399
  profile_modules: {
15576
16400
  Row: {
@@ -15919,6 +16743,13 @@ export type Database = {
15919
16743
  quantity?: number;
15920
16744
  };
15921
16745
  Relationships: [
16746
+ {
16747
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16748
+ columns: ["product_id"];
16749
+ isOneToOne: false;
16750
+ referencedRelation: "logistics_product_dimensions";
16751
+ referencedColumns: ["product_id"];
16752
+ },
15922
16753
  {
15923
16754
  foreignKeyName: "purchase_order_items_product_id_fkey";
15924
16755
  columns: ["product_id"];
@@ -16257,6 +17088,106 @@ export type Database = {
16257
17088
  }
16258
17089
  ];
16259
17090
  };
17091
+ scan_kar_sessie_regels: {
17092
+ Row: {
17093
+ barcode: string;
17094
+ cart_id: string | null;
17095
+ created_at: string;
17096
+ id: string;
17097
+ order_id: string | null;
17098
+ order_number: string | null;
17099
+ regels: Json;
17100
+ sessie_id: string;
17101
+ volledig: boolean;
17102
+ };
17103
+ Insert: {
17104
+ barcode: string;
17105
+ cart_id?: string | null;
17106
+ created_at?: string;
17107
+ id?: string;
17108
+ order_id?: string | null;
17109
+ order_number?: string | null;
17110
+ regels?: Json;
17111
+ sessie_id: string;
17112
+ volledig?: boolean;
17113
+ };
17114
+ Update: {
17115
+ barcode?: string;
17116
+ cart_id?: string | null;
17117
+ created_at?: string;
17118
+ id?: string;
17119
+ order_id?: string | null;
17120
+ order_number?: string | null;
17121
+ regels?: Json;
17122
+ sessie_id?: string;
17123
+ volledig?: boolean;
17124
+ };
17125
+ Relationships: [
17126
+ {
17127
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
17128
+ columns: ["sessie_id"];
17129
+ isOneToOne: false;
17130
+ referencedRelation: "scan_kar_sessies";
17131
+ referencedColumns: ["id"];
17132
+ }
17133
+ ];
17134
+ };
17135
+ scan_kar_sessies: {
17136
+ Row: {
17137
+ afgerond_op: string | null;
17138
+ cart_id: string | null;
17139
+ cart_index: number | null;
17140
+ cart_total: number | null;
17141
+ created_at: string;
17142
+ id: string;
17143
+ klant_naam: string | null;
17144
+ medewerker_naam: string | null;
17145
+ order_id: string | null;
17146
+ order_number: string | null;
17147
+ scanner_id: string | null;
17148
+ status: string;
17149
+ updated_at: string;
17150
+ };
17151
+ Insert: {
17152
+ afgerond_op?: string | null;
17153
+ cart_id?: string | null;
17154
+ cart_index?: number | null;
17155
+ cart_total?: number | null;
17156
+ created_at?: string;
17157
+ id?: string;
17158
+ klant_naam?: string | null;
17159
+ medewerker_naam?: string | null;
17160
+ order_id?: string | null;
17161
+ order_number?: string | null;
17162
+ scanner_id?: string | null;
17163
+ status?: string;
17164
+ updated_at?: string;
17165
+ };
17166
+ Update: {
17167
+ afgerond_op?: string | null;
17168
+ cart_id?: string | null;
17169
+ cart_index?: number | null;
17170
+ cart_total?: number | null;
17171
+ created_at?: string;
17172
+ id?: string;
17173
+ klant_naam?: string | null;
17174
+ medewerker_naam?: string | null;
17175
+ order_id?: string | null;
17176
+ order_number?: string | null;
17177
+ scanner_id?: string | null;
17178
+ status?: string;
17179
+ updated_at?: string;
17180
+ };
17181
+ Relationships: [
17182
+ {
17183
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
17184
+ columns: ["scanner_id"];
17185
+ isOneToOne: false;
17186
+ referencedRelation: "scan_scanners";
17187
+ referencedColumns: ["id"];
17188
+ }
17189
+ ];
17190
+ };
16260
17191
  scan_karren: {
16261
17192
  Row: {
16262
17193
  afgerond_op: string | null;
@@ -16463,6 +17394,60 @@ export type Database = {
16463
17394
  };
16464
17395
  Relationships: [];
16465
17396
  };
17397
+ scan_restpakbonnen: {
17398
+ Row: {
17399
+ barcode: string;
17400
+ bron_barcode: string | null;
17401
+ cart_id: string | null;
17402
+ cart_index: number | null;
17403
+ cart_total: number | null;
17404
+ created_at: string;
17405
+ geprint_op: string | null;
17406
+ id: string;
17407
+ klant_naam: string | null;
17408
+ order_id: string | null;
17409
+ order_number: string | null;
17410
+ print_job_id: string | null;
17411
+ regels: Json;
17412
+ updated_at: string;
17413
+ verwerkt: boolean;
17414
+ };
17415
+ Insert: {
17416
+ barcode: string;
17417
+ bron_barcode?: string | null;
17418
+ cart_id?: string | null;
17419
+ cart_index?: number | null;
17420
+ cart_total?: number | null;
17421
+ created_at?: string;
17422
+ geprint_op?: string | null;
17423
+ id?: string;
17424
+ klant_naam?: string | null;
17425
+ order_id?: string | null;
17426
+ order_number?: string | null;
17427
+ print_job_id?: string | null;
17428
+ regels?: Json;
17429
+ updated_at?: string;
17430
+ verwerkt?: boolean;
17431
+ };
17432
+ Update: {
17433
+ barcode?: string;
17434
+ bron_barcode?: string | null;
17435
+ cart_id?: string | null;
17436
+ cart_index?: number | null;
17437
+ cart_total?: number | null;
17438
+ created_at?: string;
17439
+ geprint_op?: string | null;
17440
+ id?: string;
17441
+ klant_naam?: string | null;
17442
+ order_id?: string | null;
17443
+ order_number?: string | null;
17444
+ print_job_id?: string | null;
17445
+ regels?: Json;
17446
+ updated_at?: string;
17447
+ verwerkt?: boolean;
17448
+ };
17449
+ Relationships: [];
17450
+ };
16466
17451
  scan_scanners: {
16467
17452
  Row: {
16468
17453
  actief: boolean;
@@ -16472,6 +17457,7 @@ export type Database = {
16472
17457
  naam: string;
16473
17458
  omschrijving: string | null;
16474
17459
  pincode: string | null;
17460
+ printer_id: string | null;
16475
17461
  slug: string;
16476
17462
  type: string;
16477
17463
  updated_at: string;
@@ -16486,6 +17472,7 @@ export type Database = {
16486
17472
  naam: string;
16487
17473
  omschrijving?: string | null;
16488
17474
  pincode?: string | null;
17475
+ printer_id?: string | null;
16489
17476
  slug: string;
16490
17477
  type?: string;
16491
17478
  updated_at?: string;
@@ -16500,6 +17487,7 @@ export type Database = {
16500
17487
  naam?: string;
16501
17488
  omschrijving?: string | null;
16502
17489
  pincode?: string | null;
17490
+ printer_id?: string | null;
16503
17491
  slug?: string;
16504
17492
  type?: string;
16505
17493
  updated_at?: string;
@@ -16508,6 +17496,27 @@ export type Database = {
16508
17496
  };
16509
17497
  Relationships: [];
16510
17498
  };
17499
+ shell_settings: {
17500
+ Row: {
17501
+ created_at: string;
17502
+ default_path: string | null;
17503
+ shell_id: string;
17504
+ updated_at: string;
17505
+ };
17506
+ Insert: {
17507
+ created_at?: string;
17508
+ default_path?: string | null;
17509
+ shell_id: string;
17510
+ updated_at?: string;
17511
+ };
17512
+ Update: {
17513
+ created_at?: string;
17514
+ default_path?: string | null;
17515
+ shell_id?: string;
17516
+ updated_at?: string;
17517
+ };
17518
+ Relationships: [];
17519
+ };
16511
17520
  sick_periods: {
16512
17521
  Row: {
16513
17522
  created_at: string;
@@ -17137,6 +18146,13 @@ export type Database = {
17137
18146
  isOneToOne: false;
17138
18147
  referencedRelation: "werkbonnen";
17139
18148
  referencedColumns: ["id"];
18149
+ },
18150
+ {
18151
+ foreignKeyName: "time_logs_work_order_id_fkey";
18152
+ columns: ["work_order_id"];
18153
+ isOneToOne: false;
18154
+ referencedRelation: "wo_overview";
18155
+ referencedColumns: ["id"];
17140
18156
  }
17141
18157
  ];
17142
18158
  };
@@ -18451,6 +19467,13 @@ export type Database = {
18451
19467
  isOneToOne: false;
18452
19468
  referencedRelation: "werkbonnen";
18453
19469
  referencedColumns: ["id"];
19470
+ },
19471
+ {
19472
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
19473
+ columns: ["werkbon_id"];
19474
+ isOneToOne: false;
19475
+ referencedRelation: "wo_overview";
19476
+ referencedColumns: ["id"];
18454
19477
  }
18455
19478
  ];
18456
19479
  };
@@ -19184,6 +20207,13 @@ export type Database = {
19184
20207
  isOneToOne: true;
19185
20208
  referencedRelation: "werkbonnen";
19186
20209
  referencedColumns: ["id"];
20210
+ },
20211
+ {
20212
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
20213
+ columns: ["werkbon_id"];
20214
+ isOneToOne: true;
20215
+ referencedRelation: "wo_overview";
20216
+ referencedColumns: ["id"];
19187
20217
  }
19188
20218
  ];
19189
20219
  };
@@ -19273,6 +20303,13 @@ export type Database = {
19273
20303
  isOneToOne: false;
19274
20304
  referencedRelation: "werkbonnen";
19275
20305
  referencedColumns: ["id"];
20306
+ },
20307
+ {
20308
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20309
+ columns: ["werkbon_id"];
20310
+ isOneToOne: false;
20311
+ referencedRelation: "wo_overview";
20312
+ referencedColumns: ["id"];
19276
20313
  }
19277
20314
  ];
19278
20315
  };
@@ -19464,6 +20501,13 @@ export type Database = {
19464
20501
  isOneToOne: false;
19465
20502
  referencedRelation: "werkbonnen";
19466
20503
  referencedColumns: ["id"];
20504
+ },
20505
+ {
20506
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20507
+ columns: ["werkbon_id"];
20508
+ isOneToOne: false;
20509
+ referencedRelation: "wo_overview";
20510
+ referencedColumns: ["id"];
19467
20511
  }
19468
20512
  ];
19469
20513
  };
@@ -19558,6 +20602,13 @@ export type Database = {
19558
20602
  isOneToOne: false;
19559
20603
  referencedRelation: "werkbonnen";
19560
20604
  referencedColumns: ["id"];
20605
+ },
20606
+ {
20607
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20608
+ columns: ["werkbon_id"];
20609
+ isOneToOne: false;
20610
+ referencedRelation: "wo_overview";
20611
+ referencedColumns: ["id"];
19561
20612
  }
19562
20613
  ];
19563
20614
  };
@@ -19599,6 +20650,13 @@ export type Database = {
19599
20650
  isOneToOne: false;
19600
20651
  referencedRelation: "werkbonnen";
19601
20652
  referencedColumns: ["id"];
20653
+ },
20654
+ {
20655
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20656
+ columns: ["werkbon_id"];
20657
+ isOneToOne: false;
20658
+ referencedRelation: "wo_overview";
20659
+ referencedColumns: ["id"];
19602
20660
  }
19603
20661
  ];
19604
20662
  };
@@ -19725,6 +20783,13 @@ export type Database = {
19725
20783
  referencedRelation: "werkbonnen";
19726
20784
  referencedColumns: ["id"];
19727
20785
  },
20786
+ {
20787
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20788
+ columns: ["parent_werkbon_id"];
20789
+ isOneToOne: false;
20790
+ referencedRelation: "wo_overview";
20791
+ referencedColumns: ["id"];
20792
+ },
19728
20793
  {
19729
20794
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19730
20795
  columns: ["source_mailbox_message_id"];
@@ -20202,6 +21267,24 @@ export type Database = {
20202
21267
  };
20203
21268
  Relationships: [];
20204
21269
  };
21270
+ logistics_product_dimensions: {
21271
+ Row: {
21272
+ dimension_source: string | null;
21273
+ fust_height_mm: number | null;
21274
+ fust_length_mm: number | null;
21275
+ fust_name: string | null;
21276
+ fust_source: string | null;
21277
+ fust_type_id: string | null;
21278
+ fust_width_mm: number | null;
21279
+ height_source: string | null;
21280
+ missing_reason: string | null;
21281
+ plant_height_cm: number | null;
21282
+ plants_per_crate: number | null;
21283
+ product_id: string | null;
21284
+ product_name: string | null;
21285
+ };
21286
+ Relationships: [];
21287
+ };
20205
21288
  manufacture_product_possible_stock_view: {
20206
21289
  Row: {
20207
21290
  component_count: number | null;
@@ -20240,6 +21323,13 @@ export type Database = {
20240
21323
  isOneToOne: false;
20241
21324
  referencedRelation: "werkbonnen";
20242
21325
  referencedColumns: ["id"];
21326
+ },
21327
+ {
21328
+ foreignKeyName: "planning_items_werkbon_id_fkey";
21329
+ columns: ["werkbon_id"];
21330
+ isOneToOne: false;
21331
+ referencedRelation: "wo_overview";
21332
+ referencedColumns: ["id"];
20243
21333
  }
20244
21334
  ];
20245
21335
  };
@@ -20720,6 +21810,85 @@ export type Database = {
20720
21810
  isOneToOne: false;
20721
21811
  referencedRelation: "werkbonnen";
20722
21812
  referencedColumns: ["id"];
21813
+ },
21814
+ {
21815
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21816
+ columns: ["werkbon_id"];
21817
+ isOneToOne: false;
21818
+ referencedRelation: "wo_overview";
21819
+ referencedColumns: ["id"];
21820
+ }
21821
+ ];
21822
+ };
21823
+ wo_overview: {
21824
+ Row: {
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
+ Insert: {
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
+ Update: {
21861
+ assigned_user_id?: string | null;
21862
+ budget_mandate_cents?: number | null;
21863
+ created_at?: string | null;
21864
+ customer_id?: string | null;
21865
+ id?: string | null;
21866
+ needs_detail_review?: boolean | null;
21867
+ number?: string | null;
21868
+ parent_werkbon_id?: string | null;
21869
+ planning_status?: string | null;
21870
+ scheduled_end_time?: string | null;
21871
+ scheduled_start_time?: string | null;
21872
+ source_type?: string | null;
21873
+ status?: string | null;
21874
+ technician_id?: string | null;
21875
+ updated_at?: string | null;
21876
+ work_address?: string | null;
21877
+ };
21878
+ Relationships: [
21879
+ {
21880
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21881
+ columns: ["parent_werkbon_id"];
21882
+ isOneToOne: false;
21883
+ referencedRelation: "werkbonnen";
21884
+ referencedColumns: ["id"];
21885
+ },
21886
+ {
21887
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21888
+ columns: ["parent_werkbon_id"];
21889
+ isOneToOne: false;
21890
+ referencedRelation: "wo_overview";
21891
+ referencedColumns: ["id"];
20723
21892
  }
20724
21893
  ];
20725
21894
  };
@@ -20912,12 +22081,21 @@ export type Database = {
20912
22081
  _max?: number;
20913
22082
  };
20914
22083
  Returns: {
22084
+ aflever_pogingen: number;
20915
22085
  agent_id: string | null;
22086
+ artefact_bytes: number | null;
22087
+ artefact_gereed_op: string | null;
22088
+ artefact_pad: string | null;
22089
+ artefact_sha256: string | null;
22090
+ batch_id: string | null;
20916
22091
  bron_job_id: string | null;
20917
22092
  created_at: string;
20918
22093
  documentnaam: string;
20919
22094
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20920
22095
  extern_job_id: string | null;
22096
+ fase_gestart_op: string | null;
22097
+ fase_voltooid_op: string | null;
22098
+ foutcode: string | null;
20921
22099
  foutmelding: string | null;
20922
22100
  gebruiker_id: string | null;
20923
22101
  gebruiker_naam: string;
@@ -20931,7 +22109,10 @@ export type Database = {
20931
22109
  kopieen: number;
20932
22110
  layout_id: string | null;
20933
22111
  lokaal_opgeslagen_op: string | null;
22112
+ lokale_pdf_claim_id: string | null;
22113
+ lokale_pdf_claim_tot: string | null;
20934
22114
  lokale_pdf_fout: string | null;
22115
+ lokale_pdf_print_plek_id: string | null;
20935
22116
  lokale_pdf_status: string | null;
20936
22117
  opgepakt_op: string | null;
20937
22118
  paginas: number;
@@ -20944,6 +22125,7 @@ export type Database = {
20944
22125
  resultaat_pdf_base64: string | null;
20945
22126
  status: Database["public"]["Enums"]["print_job_status"];
20946
22127
  updated_at: string;
22128
+ verwerkingsfase: string;
20947
22129
  volgende_poging: string | null;
20948
22130
  voltooid_op: string | null;
20949
22131
  }[];
@@ -20990,6 +22172,25 @@ export type Database = {
20990
22172
  isSetofReturn: true;
20991
22173
  };
20992
22174
  };
22175
+ claim_local_pdf_jobs: {
22176
+ Args: {
22177
+ _max?: number;
22178
+ _print_plek_id: string;
22179
+ _writer_id: string;
22180
+ };
22181
+ Returns: {
22182
+ artefact_bytes: number;
22183
+ artefact_pad: string;
22184
+ artefact_sha256: string;
22185
+ documentnaam: string;
22186
+ id: string;
22187
+ lokale_pdf_print_plek_id: string;
22188
+ lokale_pdf_status: string;
22189
+ printer_id: string;
22190
+ resultaat_pdf_base64: string;
22191
+ status: string;
22192
+ }[];
22193
+ };
20993
22194
  claim_logistics_tasks: {
20994
22195
  Args: {
20995
22196
  _limit?: number;
@@ -21043,12 +22244,21 @@ export type Database = {
21043
22244
  _max?: number;
21044
22245
  };
21045
22246
  Returns: {
22247
+ aflever_pogingen: number;
21046
22248
  agent_id: string | null;
22249
+ artefact_bytes: number | null;
22250
+ artefact_gereed_op: string | null;
22251
+ artefact_pad: string | null;
22252
+ artefact_sha256: string | null;
22253
+ batch_id: string | null;
21047
22254
  bron_job_id: string | null;
21048
22255
  created_at: string;
21049
22256
  documentnaam: string;
21050
22257
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21051
22258
  extern_job_id: string | null;
22259
+ fase_gestart_op: string | null;
22260
+ fase_voltooid_op: string | null;
22261
+ foutcode: string | null;
21052
22262
  foutmelding: string | null;
21053
22263
  gebruiker_id: string | null;
21054
22264
  gebruiker_naam: string;
@@ -21062,7 +22272,10 @@ export type Database = {
21062
22272
  kopieen: number;
21063
22273
  layout_id: string | null;
21064
22274
  lokaal_opgeslagen_op: string | null;
22275
+ lokale_pdf_claim_id: string | null;
22276
+ lokale_pdf_claim_tot: string | null;
21065
22277
  lokale_pdf_fout: string | null;
22278
+ lokale_pdf_print_plek_id: string | null;
21066
22279
  lokale_pdf_status: string | null;
21067
22280
  opgepakt_op: string | null;
21068
22281
  paginas: number;
@@ -21075,6 +22288,7 @@ export type Database = {
21075
22288
  resultaat_pdf_base64: string | null;
21076
22289
  status: Database["public"]["Enums"]["print_job_status"];
21077
22290
  updated_at: string;
22291
+ verwerkingsfase: string;
21078
22292
  volgende_poging: string | null;
21079
22293
  voltooid_op: string | null;
21080
22294
  }[];
@@ -21091,12 +22305,21 @@ export type Database = {
21091
22305
  _max?: number;
21092
22306
  };
21093
22307
  Returns: {
22308
+ aflever_pogingen: number;
21094
22309
  agent_id: string | null;
22310
+ artefact_bytes: number | null;
22311
+ artefact_gereed_op: string | null;
22312
+ artefact_pad: string | null;
22313
+ artefact_sha256: string | null;
22314
+ batch_id: string | null;
21095
22315
  bron_job_id: string | null;
21096
22316
  created_at: string;
21097
22317
  documentnaam: string;
21098
22318
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21099
22319
  extern_job_id: string | null;
22320
+ fase_gestart_op: string | null;
22321
+ fase_voltooid_op: string | null;
22322
+ foutcode: string | null;
21100
22323
  foutmelding: string | null;
21101
22324
  gebruiker_id: string | null;
21102
22325
  gebruiker_naam: string;
@@ -21110,7 +22333,10 @@ export type Database = {
21110
22333
  kopieen: number;
21111
22334
  layout_id: string | null;
21112
22335
  lokaal_opgeslagen_op: string | null;
22336
+ lokale_pdf_claim_id: string | null;
22337
+ lokale_pdf_claim_tot: string | null;
21113
22338
  lokale_pdf_fout: string | null;
22339
+ lokale_pdf_print_plek_id: string | null;
21114
22340
  lokale_pdf_status: string | null;
21115
22341
  opgepakt_op: string | null;
21116
22342
  paginas: number;
@@ -21123,6 +22349,7 @@ export type Database = {
21123
22349
  resultaat_pdf_base64: string | null;
21124
22350
  status: Database["public"]["Enums"]["print_job_status"];
21125
22351
  updated_at: string;
22352
+ verwerkingsfase: string;
21126
22353
  volgende_poging: string | null;
21127
22354
  voltooid_op: string | null;
21128
22355
  }[];
@@ -21133,9 +22360,17 @@ export type Database = {
21133
22360
  isSetofReturn: true;
21134
22361
  };
21135
22362
  };
21136
- claim_twinfield_push_batch: {
22363
+ claim_print_queue_lease: {
21137
22364
  Args: {
21138
- _customer_id?: string;
22365
+ _houder: string;
22366
+ _naam: string;
22367
+ _seconden?: number;
22368
+ };
22369
+ Returns: boolean;
22370
+ };
22371
+ claim_twinfield_push_batch: {
22372
+ Args: {
22373
+ _customer_id?: string;
21139
22374
  _limit?: number;
21140
22375
  };
21141
22376
  Returns: {
@@ -21258,7 +22493,10 @@ export type Database = {
21258
22493
  cart_index: number;
21259
22494
  cart_number: string;
21260
22495
  cart_number_id: string;
22496
+ cart_seq: number;
22497
+ cart_total: number;
21261
22498
  order_id: string;
22499
+ order_number: string;
21262
22500
  order_source: string;
21263
22501
  pick_date: string;
21264
22502
  printed_at: string;
@@ -21266,6 +22504,12 @@ export type Database = {
21266
22504
  status: string;
21267
22505
  }[];
21268
22506
  };
22507
+ control_mark_carts_delivered: {
22508
+ Args: {
22509
+ p_carts: Json;
22510
+ };
22511
+ Returns: number;
22512
+ };
21269
22513
  count_distinct_regulatory_products: {
21270
22514
  Args: never;
21271
22515
  Returns: number;
@@ -21393,6 +22637,13 @@ export type Database = {
21393
22637
  };
21394
22638
  Returns: undefined;
21395
22639
  };
22640
+ ensure_system_roles: {
22641
+ Args: never;
22642
+ Returns: {
22643
+ action: string;
22644
+ role_key: string;
22645
+ }[];
22646
+ };
21396
22647
  ensure_trade_item_stock_row: {
21397
22648
  Args: {
21398
22649
  p_key: string;
@@ -21459,6 +22710,15 @@ export type Database = {
21459
22710
  };
21460
22711
  Returns: string;
21461
22712
  };
22713
+ finish_local_pdf_job: {
22714
+ Args: {
22715
+ _fout?: string;
22716
+ _job_id: string;
22717
+ _status: string;
22718
+ _writer_id: string;
22719
+ };
22720
+ Returns: boolean;
22721
+ };
21462
22722
  floriday_capture_stock_snapshot: {
21463
22723
  Args: never;
21464
22724
  Returns: number;
@@ -21738,6 +22998,36 @@ export type Database = {
21738
22998
  Args: never;
21739
22999
  Returns: string;
21740
23000
  };
23001
+ handover_archief_lijst: {
23002
+ Args: never;
23003
+ Returns: Json;
23004
+ };
23005
+ handover_archiveren: {
23006
+ Args: {
23007
+ _archief?: boolean;
23008
+ _module_id: string;
23009
+ };
23010
+ Returns: boolean;
23011
+ };
23012
+ handover_check_afronden: {
23013
+ Args: {
23014
+ _module_id: string;
23015
+ };
23016
+ Returns: boolean;
23017
+ };
23018
+ handover_check_markeren: {
23019
+ Args: {
23020
+ _module_ids: string[];
23021
+ _reden?: string;
23022
+ };
23023
+ Returns: number;
23024
+ };
23025
+ handover_fingerprint_maken: {
23026
+ Args: {
23027
+ _module_id?: string;
23028
+ };
23029
+ Returns: Json;
23030
+ };
21741
23031
  handover_get: {
21742
23032
  Args: {
21743
23033
  _module_id: string;
@@ -21768,6 +23058,14 @@ export type Database = {
21768
23058
  };
21769
23059
  Returns: boolean;
21770
23060
  };
23061
+ handover_module_meta_zetten: {
23062
+ Args: {
23063
+ _module_id: string;
23064
+ _project_url?: string;
23065
+ _publicatie_url?: string;
23066
+ };
23067
+ Returns: boolean;
23068
+ };
21771
23069
  handover_norm_naam: {
21772
23070
  Args: {
21773
23071
  _naam: string;
@@ -21788,6 +23086,23 @@ export type Database = {
21788
23086
  };
21789
23087
  Returns: number;
21790
23088
  };
23089
+ handover_publish_uit_github: {
23090
+ Args: {
23091
+ _bezit_tabellen?: string[];
23092
+ _bron_soort?: string;
23093
+ _commit?: string;
23094
+ _contractfuncties?: string[];
23095
+ _inhoud_md: string;
23096
+ _module_id: string;
23097
+ _module_titel: string;
23098
+ _ontbrekende_contracten?: string[];
23099
+ _pad?: string;
23100
+ _repo?: string;
23101
+ _samenvatting?: string;
23102
+ _versie_label?: string;
23103
+ };
23104
+ Returns: Json;
23105
+ };
21791
23106
  handover_publish_via_token: {
21792
23107
  Args: {
21793
23108
  _bevindingen?: string;
@@ -21801,7 +23116,7 @@ export type Database = {
21801
23116
  _samenvatting?: string;
21802
23117
  _token_hash: string;
21803
23118
  };
21804
- Returns: number;
23119
+ Returns: Json;
21805
23120
  };
21806
23121
  handover_status: {
21807
23122
  Args: never;
@@ -21813,23 +23128,6 @@ export type Database = {
21813
23128
  };
21814
23129
  Returns: string;
21815
23130
  };
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
23131
  handover_update: {
21834
23132
  Args: {
21835
23133
  _bezit_tabellen?: string[];
@@ -21857,12 +23155,31 @@ export type Database = {
21857
23155
  };
21858
23156
  Returns: boolean;
21859
23157
  };
23158
+ handover_versie_verwijderen: {
23159
+ Args: {
23160
+ _module_id: string;
23161
+ _versie: number;
23162
+ };
23163
+ Returns: boolean;
23164
+ };
21860
23165
  handover_versies: {
21861
23166
  Args: {
21862
23167
  _module_id: string;
21863
23168
  };
21864
23169
  Returns: Json;
21865
23170
  };
23171
+ handover_verwijderen: {
23172
+ Args: {
23173
+ _module_id: string;
23174
+ };
23175
+ Returns: boolean;
23176
+ };
23177
+ handover_wijzigingen: {
23178
+ Args: {
23179
+ _module_id?: string;
23180
+ };
23181
+ Returns: Json;
23182
+ };
21866
23183
  has_module_permission: {
21867
23184
  Args: {
21868
23185
  _min: string;
@@ -22131,6 +23448,30 @@ export type Database = {
22131
23448
  };
22132
23449
  Returns: Json;
22133
23450
  };
23451
+ logistics_block_reason_code: {
23452
+ Args: {
23453
+ p_details?: Json;
23454
+ p_reason: string;
23455
+ };
23456
+ Returns: string;
23457
+ };
23458
+ logistics_blocked_orders: {
23459
+ Args: never;
23460
+ Returns: {
23461
+ attempts: number;
23462
+ blocked_since: string;
23463
+ delivery_date: string;
23464
+ order_id: string;
23465
+ order_ref: string;
23466
+ queue_id: string;
23467
+ reason: string;
23468
+ reason_code: string;
23469
+ }[];
23470
+ };
23471
+ logistics_blocked_overview: {
23472
+ Args: never;
23473
+ Returns: Json;
23474
+ };
22134
23475
  logistics_buffer_criteria: {
22135
23476
  Args: {
22136
23477
  p_settings: Json;
@@ -22197,6 +23538,13 @@ export type Database = {
22197
23538
  };
22198
23539
  Returns: string;
22199
23540
  };
23541
+ logistics_cart_handled: {
23542
+ Args: {
23543
+ p_cart_index: number;
23544
+ p_order_id: string;
23545
+ };
23546
+ Returns: boolean;
23547
+ };
22200
23548
  logistics_cart_index: {
22201
23549
  Args: {
22202
23550
  p_from?: string;
@@ -22206,6 +23554,9 @@ export type Database = {
22206
23554
  cart_id: string;
22207
23555
  cart_index: number;
22208
23556
  cart_label: string;
23557
+ cart_number: string;
23558
+ cart_seq: number;
23559
+ cart_total: number;
22209
23560
  delivery_date: string;
22210
23561
  is_announced: boolean;
22211
23562
  is_controlled: boolean;
@@ -22220,12 +23571,79 @@ export type Database = {
22220
23571
  task_status: string;
22221
23572
  }[];
22222
23573
  };
23574
+ logistics_cart_layout_method: {
23575
+ Args: never;
23576
+ Returns: Json;
23577
+ };
23578
+ logistics_cart_plan_overview: {
23579
+ Args: {
23580
+ p_days?: number;
23581
+ };
23582
+ Returns: {
23583
+ cart_total: number;
23584
+ delivery_date: string;
23585
+ order_ref: string;
23586
+ plan_ready: boolean;
23587
+ reason: string;
23588
+ released: boolean;
23589
+ }[];
23590
+ };
23591
+ logistics_cart_plan_status: {
23592
+ Args: {
23593
+ p_ref: string;
23594
+ };
23595
+ Returns: Json;
23596
+ };
23597
+ logistics_cart_seq: {
23598
+ Args: {
23599
+ p_order_uuid?: string;
23600
+ };
23601
+ Returns: {
23602
+ cart_id: string;
23603
+ cart_index: number;
23604
+ cart_number: string;
23605
+ cart_seq: number;
23606
+ cart_total: number;
23607
+ order_uuid: string;
23608
+ }[];
23609
+ };
22223
23610
  logistics_cart_slip_plan: {
22224
23611
  Args: {
22225
23612
  p_order_id: string;
22226
23613
  };
22227
23614
  Returns: Json;
22228
23615
  };
23616
+ logistics_cart_units: {
23617
+ Args: {
23618
+ p_from?: string;
23619
+ p_to?: string;
23620
+ };
23621
+ Returns: {
23622
+ cart_id: string;
23623
+ cart_index: number;
23624
+ cart_label: string;
23625
+ cart_number: string;
23626
+ cart_seq: number;
23627
+ cart_total: number;
23628
+ delivery_date: string;
23629
+ is_announced: boolean;
23630
+ is_buffer: boolean;
23631
+ is_controlled: boolean;
23632
+ is_printed: boolean;
23633
+ is_shared: boolean;
23634
+ order_number: string;
23635
+ order_source: string;
23636
+ order_uuid: string;
23637
+ pick_date: string;
23638
+ printed_at: string;
23639
+ shifted: boolean;
23640
+ task_status: string;
23641
+ unit_buffer: string;
23642
+ unit_order_count: number;
23643
+ unit_orders: string[];
23644
+ unit_ref: string;
23645
+ }[];
23646
+ };
22229
23647
  logistics_check_order_allowed: {
22230
23648
  Args: {
22231
23649
  p_lines: Json;
@@ -22381,7 +23799,9 @@ export type Database = {
22381
23799
  announced_carts: number;
22382
23800
  control_carts: number;
22383
23801
  delivery_carts: number;
23802
+ duplicate_carts: number;
22384
23803
  ok: boolean;
23804
+ orphan_carts: number;
22385
23805
  orphan_tasks: number;
22386
23806
  pick_date: string;
22387
23807
  raw_carts: number;
@@ -22389,6 +23809,85 @@ export type Database = {
22389
23809
  station_carts: number;
22390
23810
  }[];
22391
23811
  };
23812
+ logistics_control_scan_approve: {
23813
+ Args: {
23814
+ p_allow_reprint?: boolean;
23815
+ p_barcode: string;
23816
+ p_printer_id?: string;
23817
+ p_scanner_id?: string;
23818
+ };
23819
+ Returns: Json;
23820
+ };
23821
+ logistics_control_scan_claim: {
23822
+ Args: {
23823
+ _lease_seconds?: number;
23824
+ _limit?: number;
23825
+ };
23826
+ Returns: {
23827
+ approved_at: string | null;
23828
+ attempts: number;
23829
+ barcode: string;
23830
+ cart_id: string;
23831
+ created_at: string;
23832
+ document_url: string | null;
23833
+ error: string | null;
23834
+ error_code: string | null;
23835
+ fulfillment_order_id: string | null;
23836
+ id: string;
23837
+ is_floriday: boolean;
23838
+ locked_until: string | null;
23839
+ order_id: string | null;
23840
+ order_number: string | null;
23841
+ print_job_id: string | null;
23842
+ printed_at: string | null;
23843
+ printer_id: string | null;
23844
+ scanner_id: string | null;
23845
+ status: string;
23846
+ updated_at: string;
23847
+ }[];
23848
+ SetofOptions: {
23849
+ from: "*";
23850
+ to: "logistics_control_scan";
23851
+ isOneToOne: false;
23852
+ isSetofReturn: true;
23853
+ };
23854
+ };
23855
+ logistics_control_scan_finish: {
23856
+ Args: {
23857
+ _document_url?: string;
23858
+ _error?: string;
23859
+ _error_code?: string;
23860
+ _fulfillment_order_id?: string;
23861
+ _id: string;
23862
+ _ok: boolean;
23863
+ _print_job_id?: string;
23864
+ _status?: string;
23865
+ };
23866
+ Returns: Json;
23867
+ };
23868
+ logistics_control_scan_lookup: {
23869
+ Args: {
23870
+ p_barcode: string;
23871
+ };
23872
+ Returns: Json;
23873
+ };
23874
+ logistics_control_scan_overview: {
23875
+ Args: {
23876
+ _date?: string;
23877
+ _scanner_id?: string;
23878
+ };
23879
+ Returns: Json;
23880
+ };
23881
+ logistics_control_scan_retry: {
23882
+ Args: {
23883
+ _id: string;
23884
+ };
23885
+ Returns: Json;
23886
+ };
23887
+ logistics_control_settings: {
23888
+ Args: never;
23889
+ Returns: Json;
23890
+ };
22392
23891
  logistics_delay_customer_email: {
22393
23892
  Args: {
22394
23893
  p_customer: string;
@@ -22456,6 +23955,17 @@ export type Database = {
22456
23955
  };
22457
23956
  Returns: Json;
22458
23957
  };
23958
+ logistics_enqueue_sticker_with_slip: {
23959
+ Args: {
23960
+ _cart_id: string;
23961
+ _is_herprint: boolean;
23962
+ _printer_id: string;
23963
+ _queue_item_id: string;
23964
+ _session_id: string;
23965
+ _slip_job_id: string;
23966
+ };
23967
+ Returns: string;
23968
+ };
22459
23969
  logistics_ensure_cart_barcode: {
22460
23970
  Args: {
22461
23971
  _cart_id: string;
@@ -22597,6 +24107,26 @@ export type Database = {
22597
24107
  };
22598
24108
  Returns: string;
22599
24109
  };
24110
+ logistics_fulfill_barcode_requests: {
24111
+ Args: {
24112
+ p_limit?: number;
24113
+ };
24114
+ Returns: Json;
24115
+ };
24116
+ logistics_full_cart_min_layers: {
24117
+ Args: never;
24118
+ Returns: number;
24119
+ };
24120
+ logistics_full_cart_min_percentage: {
24121
+ Args: never;
24122
+ Returns: number;
24123
+ };
24124
+ logistics_is_pick_workday: {
24125
+ Args: {
24126
+ p_date: string;
24127
+ };
24128
+ Returns: boolean;
24129
+ };
22600
24130
  logistics_live_carriers: {
22601
24131
  Args: {
22602
24132
  p_order_ref: string;
@@ -22609,18 +24139,45 @@ export type Database = {
22609
24139
  };
22610
24140
  Returns: number;
22611
24141
  };
22612
- logistics_not_past: {
24142
+ logistics_next_workday_date: {
22613
24143
  Args: {
22614
- p_ts: string;
24144
+ p_date: string;
24145
+ p_days?: string[];
22615
24146
  };
22616
24147
  Returns: string;
22617
24148
  };
22618
- logistics_order_cart_count: {
24149
+ logistics_next_workday_not_past: {
22619
24150
  Args: {
22620
- p_order_ref: string;
24151
+ p_days: string[];
24152
+ p_ts: string;
24153
+ };
24154
+ Returns: string;
24155
+ };
24156
+ logistics_not_past: {
24157
+ Args: {
24158
+ p_ts: string;
24159
+ };
24160
+ Returns: string;
24161
+ };
24162
+ logistics_order_cart_count: {
24163
+ Args: {
24164
+ p_order_ref: string;
22621
24165
  };
22622
24166
  Returns: number;
22623
24167
  };
24168
+ logistics_order_handled: {
24169
+ Args: {
24170
+ p_order_uuid: string;
24171
+ };
24172
+ Returns: boolean;
24173
+ };
24174
+ logistics_order_is_topick: {
24175
+ Args: {
24176
+ p_order_id: string;
24177
+ p_order_number: string;
24178
+ };
24179
+ Returns: boolean;
24180
+ };
22624
24181
  logistics_order_overview: {
22625
24182
  Args: {
22626
24183
  p_from?: string;
@@ -22646,6 +24203,12 @@ export type Database = {
22646
24203
  };
22647
24204
  Returns: string;
22648
24205
  };
24206
+ logistics_order_released: {
24207
+ Args: {
24208
+ p_order_ref: string;
24209
+ };
24210
+ Returns: boolean;
24211
+ };
22649
24212
  logistics_parse_pickup: {
22650
24213
  Args: {
22651
24214
  p_value: string;
@@ -22668,10 +24231,37 @@ export type Database = {
22668
24231
  shifted_count: number;
22669
24232
  }[];
22670
24233
  };
24234
+ logistics_pick_barcode_enabled: {
24235
+ Args: never;
24236
+ Returns: boolean;
24237
+ };
22671
24238
  logistics_pick_email_purpose: {
22672
24239
  Args: never;
22673
24240
  Returns: string;
22674
24241
  };
24242
+ logistics_pick_mode: {
24243
+ Args: never;
24244
+ Returns: Json;
24245
+ };
24246
+ logistics_pick_start_estimate: {
24247
+ Args: {
24248
+ p_order: Json;
24249
+ s: Json;
24250
+ };
24251
+ Returns: string;
24252
+ };
24253
+ logistics_pick_units: {
24254
+ Args: never;
24255
+ Returns: {
24256
+ is_buffer: boolean;
24257
+ order_number: string;
24258
+ order_uuid: string;
24259
+ unit_buffer: string;
24260
+ unit_order_count: number;
24261
+ unit_orders: string[];
24262
+ unit_ref: string;
24263
+ }[];
24264
+ };
22675
24265
  logistics_plan_all: {
22676
24266
  Args: {
22677
24267
  p_user_id?: string;
@@ -22751,6 +24341,12 @@ export type Database = {
22751
24341
  Args: never;
22752
24342
  Returns: number;
22753
24343
  };
24344
+ logistics_plan_retry: {
24345
+ Args: {
24346
+ p_order_ids: string[];
24347
+ };
24348
+ Returns: number;
24349
+ };
22754
24350
  logistics_plan_setting: {
22755
24351
  Args: {
22756
24352
  p_default: number;
@@ -22758,6 +24354,14 @@ export type Database = {
22758
24354
  };
22759
24355
  Returns: number;
22760
24356
  };
24357
+ logistics_prune_buffer_member_queue: {
24358
+ Args: never;
24359
+ Returns: number;
24360
+ };
24361
+ logistics_prune_handled_pick_queue: {
24362
+ Args: never;
24363
+ Returns: number;
24364
+ };
22761
24365
  logistics_queue_capacity_email: {
22762
24366
  Args: {
22763
24367
  p_alert_id: string;
@@ -22790,6 +24394,12 @@ export type Database = {
22790
24394
  Args: never;
22791
24395
  Returns: Json;
22792
24396
  };
24397
+ logistics_refresh_pickup_moments: {
24398
+ Args: {
24399
+ p_weeks?: number;
24400
+ };
24401
+ Returns: Json;
24402
+ };
22793
24403
  logistics_report_delay: {
22794
24404
  Args: {
22795
24405
  p_expected_date?: string;
@@ -22896,6 +24506,12 @@ export type Database = {
22896
24506
  };
22897
24507
  Returns: string;
22898
24508
  };
24509
+ logistics_scan_resolve: {
24510
+ Args: {
24511
+ p_code: string;
24512
+ };
24513
+ Returns: Json;
24514
+ };
22899
24515
  logistics_schedule_tasks: {
22900
24516
  Args: never;
22901
24517
  Returns: number;
@@ -22930,6 +24546,10 @@ export type Database = {
22930
24546
  };
22931
24547
  Returns: Json;
22932
24548
  };
24549
+ logistics_sticker_follows_slip: {
24550
+ Args: never;
24551
+ Returns: boolean;
24552
+ };
22933
24553
  logistics_supersede_stale_tasks: {
22934
24554
  Args: {
22935
24555
  p_keep: string[];
@@ -22962,6 +24582,10 @@ export type Database = {
22962
24582
  };
22963
24583
  Returns: number;
22964
24584
  };
24585
+ logistics_tick_ping: {
24586
+ Args: never;
24587
+ Returns: string;
24588
+ };
22965
24589
  logistics_upsert_task: {
22966
24590
  Args: {
22967
24591
  p_buffer_ref: string;
@@ -22981,6 +24605,18 @@ export type Database = {
22981
24605
  };
22982
24606
  Returns: string;
22983
24607
  };
24608
+ logistics_write_buffer_layer_positions: {
24609
+ Args: {
24610
+ p_buffer_id: string;
24611
+ };
24612
+ Returns: number;
24613
+ };
24614
+ logistics_write_cart_layer_positions: {
24615
+ Args: {
24616
+ p_cart_id: string;
24617
+ };
24618
+ Returns: number;
24619
+ };
22984
24620
  mark_offer_clicked: {
22985
24621
  Args: {
22986
24622
  p_code: string;
@@ -23013,6 +24649,15 @@ export type Database = {
23013
24649
  };
23014
24650
  Returns: undefined;
23015
24651
  };
24652
+ move_cart_layer_position: {
24653
+ Args: {
24654
+ p_id: string;
24655
+ p_layer: number;
24656
+ p_x: number;
24657
+ p_y: number;
24658
+ };
24659
+ Returns: undefined;
24660
+ };
23016
24661
  my_module_permissions: {
23017
24662
  Args: never;
23018
24663
  Returns: {
@@ -23084,6 +24729,12 @@ export type Database = {
23084
24729
  };
23085
24730
  Returns: Json;
23086
24731
  };
24732
+ order_heeft_bevestigde_karren: {
24733
+ Args: {
24734
+ p_order_id: string;
24735
+ };
24736
+ Returns: boolean;
24737
+ };
23087
24738
  order_number_prefix: {
23088
24739
  Args: {
23089
24740
  p_custom_fields?: Json;
@@ -23119,6 +24770,27 @@ export type Database = {
23119
24770
  online: boolean;
23120
24771
  }[];
23121
24772
  };
24773
+ pick_available_pick_days: {
24774
+ Args: {
24775
+ _max_days?: number;
24776
+ };
24777
+ Returns: {
24778
+ orders: number;
24779
+ pick_day: string;
24780
+ }[];
24781
+ };
24782
+ pick_buffer_order_ids: {
24783
+ Args: {
24784
+ _order_id: string;
24785
+ };
24786
+ Returns: string[];
24787
+ };
24788
+ pick_cart_breakdown: {
24789
+ Args: {
24790
+ _order_id: string;
24791
+ };
24792
+ Returns: Json;
24793
+ };
23122
24794
  pick_claim_document: {
23123
24795
  Args: {
23124
24796
  _queue_item_id: string;
@@ -23172,6 +24844,7 @@ export type Database = {
23172
24844
  pick_claim_next_document: {
23173
24845
  Args: {
23174
24846
  _country_code: string;
24847
+ _pick_day?: string;
23175
24848
  _screen_id: string;
23176
24849
  _session_id: string;
23177
24850
  _station_id: string;
@@ -23323,6 +24996,14 @@ export type Database = {
23323
24996
  isSetofReturn: false;
23324
24997
  };
23325
24998
  };
24999
+ pick_complete_print_carts: {
25000
+ Args: {
25001
+ _cart_ids: string[];
25002
+ _queue_item_id: string;
25003
+ _session_id: string;
25004
+ };
25005
+ Returns: Json;
25006
+ };
23326
25007
  pick_current_pick_day: {
23327
25008
  Args: never;
23328
25009
  Returns: string;
@@ -23359,6 +25040,65 @@ export type Database = {
23359
25040
  };
23360
25041
  Returns: string;
23361
25042
  };
25043
+ pick_enqueue_print_job_from_cart: {
25044
+ Args: {
25045
+ _cart_id: string;
25046
+ _is_herprint: boolean;
25047
+ _printer_id: string;
25048
+ _queue_item_id: string;
25049
+ _selected_cart: Json;
25050
+ _session_id: string;
25051
+ };
25052
+ Returns: string;
25053
+ };
25054
+ pick_mark_printed: {
25055
+ Args: {
25056
+ _queue_item_id: string;
25057
+ _reden?: string;
25058
+ _session_id: string;
25059
+ };
25060
+ Returns: {
25061
+ announced_at: string;
25062
+ assigned_user_id: string | null;
25063
+ barcode: string | null;
25064
+ cancelled_at: string | null;
25065
+ cart_count: number;
25066
+ completed_at: string | null;
25067
+ country_code: string | null;
25068
+ created_at: string;
25069
+ customer_name: string | null;
25070
+ delivery_address: string | null;
25071
+ document_number: string | null;
25072
+ document_type_id: string | null;
25073
+ due_at: string | null;
25074
+ id: string;
25075
+ is_urgent: boolean;
25076
+ line_count: number;
25077
+ order_number: string | null;
25078
+ order_type: string | null;
25079
+ payload: Json;
25080
+ print_count: number;
25081
+ print_job_id: string | null;
25082
+ printed_at: string | null;
25083
+ printed_by: string | null;
25084
+ printed_cart_ids: Json;
25085
+ printer_id: string | null;
25086
+ priority: number;
25087
+ reference: string | null;
25088
+ route: string | null;
25089
+ screen_id: string | null;
25090
+ station_id: string | null;
25091
+ status_id: string | null;
25092
+ updated_at: string;
25093
+ warnings: Json;
25094
+ };
25095
+ SetofOptions: {
25096
+ from: "*";
25097
+ to: "pick_queue";
25098
+ isOneToOne: true;
25099
+ isSetofReturn: false;
25100
+ };
25101
+ };
23362
25102
  pick_order_context: {
23363
25103
  Args: {
23364
25104
  _order_id?: string;
@@ -23379,6 +25119,12 @@ export type Database = {
23379
25119
  };
23380
25120
  Returns: Json;
23381
25121
  };
25122
+ pick_print_jobs_status: {
25123
+ Args: {
25124
+ _job_ids: string[];
25125
+ };
25126
+ Returns: Json[];
25127
+ };
23382
25128
  pick_print_plekken: {
23383
25129
  Args: never;
23384
25130
  Returns: {
@@ -23387,6 +25133,12 @@ export type Database = {
23387
25133
  omschrijving: string;
23388
25134
  }[];
23389
25135
  };
25136
+ pick_queue_cart_plan: {
25137
+ Args: {
25138
+ _queue_item_id: string;
25139
+ };
25140
+ Returns: Json;
25141
+ };
23390
25142
  pick_reference_data_status: {
23391
25143
  Args: never;
23392
25144
  Returns: Json;
@@ -23401,6 +25153,19 @@ export type Database = {
23401
25153
  };
23402
25154
  Returns: undefined;
23403
25155
  };
25156
+ pick_report_missing_cart_plan: {
25157
+ Args: never;
25158
+ Returns: Json;
25159
+ };
25160
+ pick_reprint_cart: {
25161
+ Args: {
25162
+ _cart_id: string;
25163
+ _queue_item_id: string;
25164
+ _session_id: string;
25165
+ _throttle_seconds?: number;
25166
+ };
25167
+ Returns: string;
25168
+ };
23404
25169
  pick_reprint_document: {
23405
25170
  Args: {
23406
25171
  _queue_item_id: string;
@@ -23503,6 +25268,151 @@ export type Database = {
23503
25268
  isSetofReturn: false;
23504
25269
  };
23505
25270
  };
25271
+ pick_reset_print_job: {
25272
+ Args: {
25273
+ _cart_id: string;
25274
+ _job_id: string;
25275
+ _queue_item_id: string;
25276
+ _session_id: string;
25277
+ };
25278
+ Returns: {
25279
+ announced_at: string;
25280
+ assigned_user_id: string | null;
25281
+ barcode: string | null;
25282
+ cancelled_at: string | null;
25283
+ cart_count: number;
25284
+ completed_at: string | null;
25285
+ country_code: string | null;
25286
+ created_at: string;
25287
+ customer_name: string | null;
25288
+ delivery_address: string | null;
25289
+ document_number: string | null;
25290
+ document_type_id: string | null;
25291
+ due_at: string | null;
25292
+ id: string;
25293
+ is_urgent: boolean;
25294
+ line_count: number;
25295
+ order_number: string | null;
25296
+ order_type: string | null;
25297
+ payload: Json;
25298
+ print_count: number;
25299
+ print_job_id: string | null;
25300
+ printed_at: string | null;
25301
+ printed_by: string | null;
25302
+ printed_cart_ids: Json;
25303
+ printer_id: string | null;
25304
+ priority: number;
25305
+ reference: string | null;
25306
+ route: string | null;
25307
+ screen_id: string | null;
25308
+ station_id: string | null;
25309
+ status_id: string | null;
25310
+ updated_at: string;
25311
+ warnings: Json;
25312
+ };
25313
+ SetofOptions: {
25314
+ from: "*";
25315
+ to: "pick_queue";
25316
+ isOneToOne: true;
25317
+ isSetofReturn: false;
25318
+ };
25319
+ };
25320
+ pick_reset_print_jobs: {
25321
+ Args: {
25322
+ _cart_ids: string[];
25323
+ _job_ids: string[];
25324
+ _queue_item_id: string;
25325
+ _session_id: string;
25326
+ };
25327
+ Returns: {
25328
+ announced_at: string;
25329
+ assigned_user_id: string | null;
25330
+ barcode: string | null;
25331
+ cancelled_at: string | null;
25332
+ cart_count: number;
25333
+ completed_at: string | null;
25334
+ country_code: string | null;
25335
+ created_at: string;
25336
+ customer_name: string | null;
25337
+ delivery_address: string | null;
25338
+ document_number: string | null;
25339
+ document_type_id: string | null;
25340
+ due_at: string | null;
25341
+ id: string;
25342
+ is_urgent: boolean;
25343
+ line_count: number;
25344
+ order_number: string | null;
25345
+ order_type: string | null;
25346
+ payload: Json;
25347
+ print_count: number;
25348
+ print_job_id: string | null;
25349
+ printed_at: string | null;
25350
+ printed_by: string | null;
25351
+ printed_cart_ids: Json;
25352
+ printer_id: string | null;
25353
+ priority: number;
25354
+ reference: string | null;
25355
+ route: string | null;
25356
+ screen_id: string | null;
25357
+ station_id: string | null;
25358
+ status_id: string | null;
25359
+ updated_at: string;
25360
+ warnings: Json;
25361
+ };
25362
+ SetofOptions: {
25363
+ from: "*";
25364
+ to: "pick_queue";
25365
+ isOneToOne: true;
25366
+ isSetofReturn: false;
25367
+ };
25368
+ };
25369
+ pick_restore_to_queue: {
25370
+ Args: {
25371
+ _queue_item_id: string;
25372
+ _session_id: string;
25373
+ };
25374
+ Returns: {
25375
+ announced_at: string;
25376
+ assigned_user_id: string | null;
25377
+ barcode: string | null;
25378
+ cancelled_at: string | null;
25379
+ cart_count: number;
25380
+ completed_at: string | null;
25381
+ country_code: string | null;
25382
+ created_at: string;
25383
+ customer_name: string | null;
25384
+ delivery_address: string | null;
25385
+ document_number: string | null;
25386
+ document_type_id: string | null;
25387
+ due_at: string | null;
25388
+ id: string;
25389
+ is_urgent: boolean;
25390
+ line_count: number;
25391
+ order_number: string | null;
25392
+ order_type: string | null;
25393
+ payload: Json;
25394
+ print_count: number;
25395
+ print_job_id: string | null;
25396
+ printed_at: string | null;
25397
+ printed_by: string | null;
25398
+ printed_cart_ids: Json;
25399
+ printer_id: string | null;
25400
+ priority: number;
25401
+ reference: string | null;
25402
+ route: string | null;
25403
+ screen_id: string | null;
25404
+ station_id: string | null;
25405
+ status_id: string | null;
25406
+ updated_at: string;
25407
+ warnings: Json;
25408
+ };
25409
+ SetofOptions: {
25410
+ from: "*";
25411
+ to: "pick_queue";
25412
+ isOneToOne: true;
25413
+ isSetofReturn: false;
25414
+ };
25415
+ };
23506
25416
  pick_seed_reference_data: {
23507
25417
  Args: never;
23508
25418
  Returns: Json;
@@ -23552,6 +25462,12 @@ export type Database = {
23552
25462
  };
23553
25463
  Returns: string;
23554
25464
  };
25465
+ pick_sync_pick_day: {
25466
+ Args: {
25467
+ _day: string;
25468
+ };
25469
+ Returns: Json;
25470
+ };
23555
25471
  pick_sync_queue_throttled: {
23556
25472
  Args: {
23557
25473
  _min_seconds?: number;
@@ -23781,6 +25697,20 @@ export type Database = {
23781
25697
  };
23782
25698
  Returns: boolean;
23783
25699
  };
25700
+ release_local_pdf_job: {
25701
+ Args: {
25702
+ _job_id: string;
25703
+ _writer_id: string;
25704
+ };
25705
+ Returns: boolean;
25706
+ };
25707
+ release_print_queue_lease: {
25708
+ Args: {
25709
+ _houder: string;
25710
+ _naam: string;
25711
+ };
25712
+ Returns: boolean;
25713
+ };
23784
25714
  release_stale_order_invoice_links: {
23785
25715
  Args: {
23786
25716
  _minutes?: number;
@@ -23801,6 +25731,12 @@ export type Database = {
23801
25731
  };
23802
25732
  Returns: Json;
23803
25733
  };
25734
+ reset_cart_layer_positions: {
25735
+ Args: {
25736
+ p_cart_id: string;
25737
+ };
25738
+ Returns: number;
25739
+ };
23804
25740
  reset_floriday_sync_cursor: {
23805
25741
  Args: {
23806
25742
  p_connection_id: string;
@@ -23864,6 +25800,15 @@ export type Database = {
23864
25800
  };
23865
25801
  Returns: Json;
23866
25802
  };
25803
+ roles_without_enum_mapping: {
25804
+ Args: never;
25805
+ Returns: {
25806
+ assignment_count: number;
25807
+ id: string;
25808
+ key: string;
25809
+ name: string;
25810
+ }[];
25811
+ };
23867
25812
  ruim_print_jobs_op: {
23868
25813
  Args: {
23869
25814
  _bewaar_dagen?: number;
@@ -23878,6 +25823,10 @@ export type Database = {
23878
25823
  Args: never;
23879
25824
  Returns: undefined;
23880
25825
  };
25826
+ run_floriday_stock_reconcile: {
25827
+ Args: never;
25828
+ Returns: undefined;
25829
+ };
23881
25830
  run_logistics_tasks_dispatch: {
23882
25831
  Args: never;
23883
25832
  Returns: undefined;
@@ -23896,18 +25845,98 @@ export type Database = {
23896
25845
  };
23897
25846
  Returns: Json;
23898
25847
  };
25848
+ scan_complete_cart: {
25849
+ Args: {
25850
+ p_allow_reprint?: boolean;
25851
+ p_cart_id: string;
25852
+ p_print?: boolean;
25853
+ p_scanner_id?: string;
25854
+ };
25855
+ Returns: Json;
25856
+ };
23899
25857
  scan_dashboard_stats: {
23900
25858
  Args: {
23901
25859
  p_dagen?: number;
23902
25860
  };
23903
25861
  Returns: Json;
23904
25862
  };
25863
+ scan_eindcontrole: {
25864
+ Args: {
25865
+ p_barcode: string;
25866
+ p_scanner_id?: string;
25867
+ };
25868
+ Returns: Json;
25869
+ };
23905
25870
  scan_finish_kar: {
23906
25871
  Args: {
23907
25872
  p_kar_id: string;
23908
25873
  };
23909
25874
  Returns: Json;
23910
25875
  };
25876
+ scan_kar_compleet: {
25877
+ Args: {
25878
+ p_allow_reprint?: boolean;
25879
+ p_sessie_id: string;
25880
+ };
25881
+ Returns: Json;
25882
+ };
25883
+ scan_kar_regels: {
25884
+ Args: {
25885
+ p_cart_id: string;
25886
+ };
25887
+ Returns: Json;
25888
+ };
25889
+ scan_log_code: {
25890
+ Args: {
25891
+ p_code: string;
25892
+ p_latency_ms?: number;
25893
+ p_message?: string;
25894
+ p_result: string;
25895
+ p_scanner_key?: string;
25896
+ };
25897
+ Returns: string;
25898
+ };
25899
+ scan_open_pakbonnen: {
25900
+ Args: {
25901
+ p_dagen?: number;
25902
+ };
25903
+ Returns: Json;
25904
+ };
25905
+ scan_pakbon_lookup: {
25906
+ Args: {
25907
+ p_barcode: string;
25908
+ };
25909
+ Returns: Json;
25910
+ };
25911
+ scan_pakbon_opnieuw: {
25912
+ Args: {
25913
+ p_barcode: string;
25914
+ p_scanner_id?: string;
25915
+ };
25916
+ Returns: Json;
25917
+ };
25918
+ scan_pakbon_toevoegen: {
25919
+ Args: {
25920
+ p_barcode: string;
25921
+ p_medewerker?: string;
25922
+ p_regels?: Json;
25923
+ p_scanner_id: string;
25924
+ };
25925
+ Returns: Json;
25926
+ };
25927
+ scan_print_restpakbon: {
25928
+ Args: {
25929
+ p_printer_id?: string;
25930
+ p_restpakbon_id: string;
25931
+ };
25932
+ Returns: Json;
25933
+ };
25934
+ scan_print_verzendbrief: {
25935
+ Args: {
25936
+ p_sessie_id: string;
25937
+ };
25938
+ Returns: Json;
25939
+ };
23911
25940
  scan_register_item: {
23912
25941
  Args: {
23913
25942
  p_kar_id: string;
@@ -23926,6 +25955,25 @@ export type Database = {
23926
25955
  };
23927
25956
  Returns: Json;
23928
25957
  };
25958
+ scan_restpakbon_geprint: {
25959
+ Args: {
25960
+ p_id: string;
25961
+ p_print_job_id?: string;
25962
+ };
25963
+ Returns: undefined;
25964
+ };
25965
+ scan_sessie_annuleren: {
25966
+ Args: {
25967
+ p_sessie_id: string;
25968
+ };
25969
+ Returns: undefined;
25970
+ };
25971
+ scan_sessie_open: {
25972
+ Args: {
25973
+ p_scanner_id: string;
25974
+ };
25975
+ Returns: Json;
25976
+ };
23929
25977
  scan_start_kar: {
23930
25978
  Args: {
23931
25979
  p_medewerker_id?: string;
@@ -23944,6 +25992,12 @@ export type Database = {
23944
25992
  };
23945
25993
  Returns: Json;
23946
25994
  };
25995
+ scan_verzendbrief_regels: {
25996
+ Args: {
25997
+ p_sessie_id: string;
25998
+ };
25999
+ Returns: Json;
26000
+ };
23947
26001
  schedule_floriday_additional_services_sync: {
23948
26002
  Args: {
23949
26003
  p_apikey: string;
@@ -24259,6 +26313,13 @@ export type Database = {
24259
26313
  };
24260
26314
  Returns: Json;
24261
26315
  };
26316
+ swap_cart_layer_positions: {
26317
+ Args: {
26318
+ p_a: string;
26319
+ p_b: string;
26320
+ };
26321
+ Returns: undefined;
26322
+ };
24262
26323
  switch_time_log: {
24263
26324
  Args: {
24264
26325
  p_employee_id: string;
@@ -24291,6 +26352,12 @@ export type Database = {
24291
26352
  };
24292
26353
  Returns: undefined;
24293
26354
  };
26355
+ sync_order_item_fusten: {
26356
+ Args: {
26357
+ _order_item_id: string;
26358
+ };
26359
+ Returns: undefined;
26360
+ };
24294
26361
  sync_product_group_belading: {
24295
26362
  Args: {
24296
26363
  _group_id: string;
@@ -24397,6 +26464,12 @@ export type Database = {
24397
26464
  Args: never;
24398
26465
  Returns: string;
24399
26466
  };
26467
+ wake_print_queue: {
26468
+ Args: {
26469
+ _min_interval_ms?: number;
26470
+ };
26471
+ Returns: number;
26472
+ };
24400
26473
  werkbon_totalen: {
24401
26474
  Args: {
24402
26475
  _werkbon_id: string;
@@ -24429,10 +26502,18 @@ export type Database = {
24429
26502
  };
24430
26503
  Returns: Json;
24431
26504
  };
26505
+ wo_set_status: {
26506
+ Args: {
26507
+ _reason?: string;
26508
+ _status: string;
26509
+ _work_order_id: string;
26510
+ };
26511
+ Returns: Json;
26512
+ };
24432
26513
  };
24433
26514
  Enums: {
24434
26515
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24435
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26516
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24436
26517
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24437
26518
  doc_orientation: "portrait" | "landscape";
24438
26519
  exact_env: "staging" | "live";
@@ -24503,7 +26584,7 @@ export declare const Constants: {
24503
26584
  readonly public: {
24504
26585
  readonly Enums: {
24505
26586
  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"];
26587
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24507
26588
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24508
26589
  readonly doc_orientation: readonly ["portrait", "landscape"];
24509
26590
  readonly exact_env: readonly ["staging", "live"];