@flowselections/floriday-afhandeling-module 1.0.42 → 1.0.44

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 (96) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts +3 -1
  2. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/AutoProcessStatus.js +36 -3
  4. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/ControlePage.js +23 -25
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/DagDetailDialog.js +410 -121
  10. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/PickAgendaView.js +4 -4
  12. package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -1
  13. package/dist-lib/components/afhandeling/PickingPage.js +1 -1
  14. package/dist-lib/components/afhandeling/ScanControleView.d.ts +2 -0
  15. package/dist-lib/components/afhandeling/ScanControleView.d.ts.map +1 -0
  16. package/dist-lib/components/afhandeling/ScanControleView.js +158 -0
  17. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  18. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  19. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  20. package/dist-lib/components/afhandeling/WeekAgendaView.js +25 -2
  21. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  22. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -1
  23. package/dist-lib/hooks/useCartIndex.js +6 -1
  24. package/dist-lib/hooks/useEngineBufferEvents.d.ts +7 -0
  25. package/dist-lib/hooks/useEngineBufferEvents.d.ts.map +1 -0
  26. package/dist-lib/hooks/useEngineBufferEvents.js +47 -0
  27. package/dist-lib/hooks/useEngineTasks.js +1 -1
  28. package/dist-lib/hooks/useKnownOrders.d.ts +12 -0
  29. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -0
  30. package/dist-lib/hooks/useKnownOrders.js +79 -0
  31. package/dist-lib/hooks/useOrderBuffers.d.ts +17 -0
  32. package/dist-lib/hooks/useOrderBuffers.d.ts.map +1 -0
  33. package/dist-lib/hooks/useOrderBuffers.js +53 -0
  34. package/dist-lib/hooks/useOrderPickDates.d.ts +10 -0
  35. package/dist-lib/hooks/useOrderPickDates.d.ts.map +1 -0
  36. package/dist-lib/hooks/useOrderPickDates.js +62 -0
  37. package/dist-lib/hooks/useOrderPlanning.d.ts +1 -3
  38. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  39. package/dist-lib/hooks/useOrderPlanning.js +9 -13
  40. package/dist-lib/hooks/usePickAgenda.d.ts +4 -5
  41. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  42. package/dist-lib/hooks/usePickAgenda.js +65 -9
  43. package/dist-lib/hooks/usePickMode.d.ts +10 -0
  44. package/dist-lib/hooks/usePickMode.d.ts.map +1 -0
  45. package/dist-lib/hooks/usePickMode.js +31 -0
  46. package/dist-lib/index.d.ts +2 -0
  47. package/dist-lib/index.d.ts.map +1 -1
  48. package/dist-lib/index.js +19 -6
  49. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2174 -60
  50. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  51. package/dist-lib/integrations/supabase/client.server.d.ts +2174 -60
  52. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  53. package/dist-lib/integrations/supabase/client.server.js +1 -1
  54. package/dist-lib/integrations/supabase/moduleClient.d.ts +2174 -60
  55. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  56. package/dist-lib/integrations/supabase/types.d.ts +2381 -225
  57. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  58. package/dist-lib/integrations/supabase/types.js +1 -0
  59. package/dist-lib/lib/afhandelingSettings.functions.d.ts +4452 -228
  60. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  62. package/dist-lib/lib/carriers.functions.d.ts +11161 -591
  63. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/cartAssignments.functions.d.ts +11161 -591
  65. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/cartControl.functions.d.ts +48433 -1230
  67. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/cartControl.functions.js +134 -10
  69. package/dist-lib/lib/deliveryNote.functions.d.ts +26064 -0
  70. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -0
  71. package/dist-lib/lib/deliveryNote.functions.js +32 -0
  72. package/dist-lib/lib/engineLayouts.functions.d.ts +26062 -0
  73. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -0
  74. package/dist-lib/lib/engineLayouts.functions.js +42 -0
  75. package/dist-lib/lib/floriday.functions.d.ts +28367 -186
  76. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/floriday.functions.js +119 -343
  78. package/dist-lib/lib/logisticsEngine/reschedule.d.ts +17 -0
  79. package/dist-lib/lib/logisticsEngine/reschedule.d.ts.map +1 -1
  80. package/dist-lib/lib/logisticsEngine/reschedule.js +63 -0
  81. package/dist-lib/lib/orderFulfilment.functions.d.ts +26064 -0
  82. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -0
  83. package/dist-lib/lib/orderFulfilment.functions.js +35 -0
  84. package/dist-lib/lib/orderStatus.d.ts +10 -0
  85. package/dist-lib/lib/orderStatus.d.ts.map +1 -0
  86. package/dist-lib/lib/orderStatus.js +81 -0
  87. package/dist-lib/lib/pickDates.functions.d.ts +26069 -0
  88. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -0
  89. package/dist-lib/lib/pickDates.functions.js +56 -0
  90. package/dist-lib/lib/pickMode.d.ts +14 -0
  91. package/dist-lib/lib/pickMode.d.ts.map +1 -0
  92. package/dist-lib/lib/pickMode.js +103 -0
  93. package/dist-lib/lib/printing.d.ts +3 -1
  94. package/dist-lib/lib/printing.d.ts.map +1 -1
  95. package/dist-lib/lib/printing.js +1 -0
  96. 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"];
@@ -2189,6 +2202,8 @@ export type Database = {
2189
2202
  created_at: string;
2190
2203
  currency: string;
2191
2204
  distribute_over: string | null;
2205
+ external_id: string | null;
2206
+ external_synced_at: string | null;
2192
2207
  group_type: string;
2193
2208
  handling_fee: number | null;
2194
2209
  id: string;
@@ -2201,6 +2216,7 @@ export type Database = {
2201
2216
  rounding: string;
2202
2217
  rounding_step: number;
2203
2218
  sort_order: number;
2219
+ source: string;
2204
2220
  unit: string;
2205
2221
  updated_at: string;
2206
2222
  };
@@ -2211,6 +2227,8 @@ export type Database = {
2211
2227
  created_at?: string;
2212
2228
  currency?: string;
2213
2229
  distribute_over?: string | null;
2230
+ external_id?: string | null;
2231
+ external_synced_at?: string | null;
2214
2232
  group_type?: string;
2215
2233
  handling_fee?: number | null;
2216
2234
  id?: string;
@@ -2223,6 +2241,7 @@ export type Database = {
2223
2241
  rounding?: string;
2224
2242
  rounding_step?: number;
2225
2243
  sort_order?: number;
2244
+ source?: string;
2226
2245
  unit?: string;
2227
2246
  updated_at?: string;
2228
2247
  };
@@ -2233,6 +2252,8 @@ export type Database = {
2233
2252
  created_at?: string;
2234
2253
  currency?: string;
2235
2254
  distribute_over?: string | null;
2255
+ external_id?: string | null;
2256
+ external_synced_at?: string | null;
2236
2257
  group_type?: string;
2237
2258
  handling_fee?: number | null;
2238
2259
  id?: string;
@@ -2245,6 +2266,7 @@ export type Database = {
2245
2266
  rounding?: string;
2246
2267
  rounding_step?: number;
2247
2268
  sort_order?: number;
2269
+ source?: string;
2248
2270
  unit?: string;
2249
2271
  updated_at?: string;
2250
2272
  };
@@ -7247,6 +7269,53 @@ export type Database = {
7247
7269
  };
7248
7270
  Relationships: [];
7249
7271
  };
7272
+ floriday_status_sync_queue: {
7273
+ Row: {
7274
+ attempts: number;
7275
+ created_at: string;
7276
+ error: string | null;
7277
+ floriday_sales_order_id: string;
7278
+ order_id: string;
7279
+ processed_at: string | null;
7280
+ requested_at: string;
7281
+ state: string;
7282
+ target_status: string;
7283
+ updated_at: string;
7284
+ };
7285
+ Insert: {
7286
+ attempts?: number;
7287
+ created_at?: string;
7288
+ error?: string | null;
7289
+ floriday_sales_order_id: string;
7290
+ order_id: string;
7291
+ processed_at?: string | null;
7292
+ requested_at?: string;
7293
+ state?: string;
7294
+ target_status: string;
7295
+ updated_at?: string;
7296
+ };
7297
+ Update: {
7298
+ attempts?: number;
7299
+ created_at?: string;
7300
+ error?: string | null;
7301
+ floriday_sales_order_id?: string;
7302
+ order_id?: string;
7303
+ processed_at?: string | null;
7304
+ requested_at?: string;
7305
+ state?: string;
7306
+ target_status?: string;
7307
+ updated_at?: string;
7308
+ };
7309
+ Relationships: [
7310
+ {
7311
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7312
+ columns: ["order_id"];
7313
+ isOneToOne: true;
7314
+ referencedRelation: "orders";
7315
+ referencedColumns: ["id"];
7316
+ }
7317
+ ];
7318
+ };
7250
7319
  floriday_sync_cursors: {
7251
7320
  Row: {
7252
7321
  connection_id: string;
@@ -8523,10 +8592,12 @@ export type Database = {
8523
8592
  general_email: string | null;
8524
8593
  general_phone: string | null;
8525
8594
  id: string;
8595
+ kvk_number: string | null;
8526
8596
  legacy_customer_id: string | null;
8527
8597
  name: string;
8528
8598
  segment: Database["public"]["Enums"]["itk_customer_segment"];
8529
8599
  updated_at: string;
8600
+ vat_number: string | null;
8530
8601
  };
8531
8602
  Insert: {
8532
8603
  billing_city?: string | null;
@@ -8537,10 +8608,12 @@ export type Database = {
8537
8608
  general_email?: string | null;
8538
8609
  general_phone?: string | null;
8539
8610
  id?: string;
8611
+ kvk_number?: string | null;
8540
8612
  legacy_customer_id?: string | null;
8541
8613
  name: string;
8542
8614
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8543
8615
  updated_at?: string;
8616
+ vat_number?: string | null;
8544
8617
  };
8545
8618
  Update: {
8546
8619
  billing_city?: string | null;
@@ -8551,10 +8624,12 @@ export type Database = {
8551
8624
  general_email?: string | null;
8552
8625
  general_phone?: string | null;
8553
8626
  id?: string;
8627
+ kvk_number?: string | null;
8554
8628
  legacy_customer_id?: string | null;
8555
8629
  name?: string;
8556
8630
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8557
8631
  updated_at?: string;
8632
+ vat_number?: string | null;
8558
8633
  };
8559
8634
  Relationships: [];
8560
8635
  };
@@ -8588,6 +8663,119 @@ export type Database = {
8588
8663
  };
8589
8664
  Relationships: [];
8590
8665
  };
8666
+ itk_handover_github_scan: {
8667
+ Row: {
8668
+ gescand_op: string;
8669
+ gevonden: boolean;
8670
+ melding: string | null;
8671
+ module_id: string | null;
8672
+ repo: string;
8673
+ };
8674
+ Insert: {
8675
+ gescand_op?: string;
8676
+ gevonden?: boolean;
8677
+ melding?: string | null;
8678
+ module_id?: string | null;
8679
+ repo: string;
8680
+ };
8681
+ Update: {
8682
+ gescand_op?: string;
8683
+ gevonden?: boolean;
8684
+ melding?: string | null;
8685
+ module_id?: string | null;
8686
+ repo?: string;
8687
+ };
8688
+ Relationships: [];
8689
+ };
8690
+ itk_handover_module_meta: {
8691
+ Row: {
8692
+ check_aangevraagd_op: string | null;
8693
+ check_nodig: boolean;
8694
+ check_reden: string | null;
8695
+ created_at: string;
8696
+ module_id: string;
8697
+ project_url: string | null;
8698
+ publicatie_url: string | null;
8699
+ updated_at: string;
8700
+ };
8701
+ Insert: {
8702
+ check_aangevraagd_op?: string | null;
8703
+ check_nodig?: boolean;
8704
+ check_reden?: string | null;
8705
+ created_at?: string;
8706
+ module_id: string;
8707
+ project_url?: string | null;
8708
+ publicatie_url?: string | null;
8709
+ updated_at?: string;
8710
+ };
8711
+ Update: {
8712
+ check_aangevraagd_op?: string | null;
8713
+ check_nodig?: boolean;
8714
+ check_reden?: string | null;
8715
+ created_at?: string;
8716
+ module_id?: string;
8717
+ project_url?: string | null;
8718
+ publicatie_url?: string | null;
8719
+ updated_at?: string;
8720
+ };
8721
+ Relationships: [];
8722
+ };
8723
+ itk_handover_project_modules: {
8724
+ Row: {
8725
+ created_at: string;
8726
+ id: string;
8727
+ module_id: string;
8728
+ project_id: string;
8729
+ updated_at: string;
8730
+ };
8731
+ Insert: {
8732
+ created_at?: string;
8733
+ id?: string;
8734
+ module_id: string;
8735
+ project_id: string;
8736
+ updated_at?: string;
8737
+ };
8738
+ Update: {
8739
+ created_at?: string;
8740
+ id?: string;
8741
+ module_id?: string;
8742
+ project_id?: string;
8743
+ updated_at?: string;
8744
+ };
8745
+ Relationships: [
8746
+ {
8747
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8748
+ columns: ["project_id"];
8749
+ isOneToOne: false;
8750
+ referencedRelation: "itk_handover_projecten";
8751
+ referencedColumns: ["id"];
8752
+ }
8753
+ ];
8754
+ };
8755
+ itk_handover_projecten: {
8756
+ Row: {
8757
+ created_at: string;
8758
+ id: string;
8759
+ naam: string;
8760
+ omschrijving: string | null;
8761
+ updated_at: string;
8762
+ };
8763
+ Insert: {
8764
+ created_at?: string;
8765
+ id?: string;
8766
+ naam: string;
8767
+ omschrijving?: string | null;
8768
+ updated_at?: string;
8769
+ };
8770
+ Update: {
8771
+ created_at?: string;
8772
+ id?: string;
8773
+ naam?: string;
8774
+ omschrijving?: string | null;
8775
+ updated_at?: string;
8776
+ };
8777
+ Relationships: [];
8778
+ };
8591
8779
  itk_handover_rechten: {
8592
8780
  Row: {
8593
8781
  created_at: string;
@@ -8615,42 +8803,33 @@ export type Database = {
8615
8803
  };
8616
8804
  Relationships: [];
8617
8805
  };
8618
- itk_handover_tokens: {
8806
+ itk_module_fingerprints: {
8619
8807
  Row: {
8620
- aangemaakt_door: string | null;
8621
8808
  created_at: string;
8809
+ gemaakt_op: string;
8810
+ hash: string;
8622
8811
  id: string;
8623
- is_actief: boolean;
8624
- laatst_gebruikt_op: string | null;
8625
- label: string;
8626
8812
  module_id: string;
8627
- token_hash: string;
8813
+ payload: Json;
8628
8814
  updated_at: string;
8629
- verloopt_op: string | null;
8630
8815
  };
8631
8816
  Insert: {
8632
- aangemaakt_door?: string | null;
8633
8817
  created_at?: string;
8818
+ gemaakt_op?: string;
8819
+ hash: string;
8634
8820
  id?: string;
8635
- is_actief?: boolean;
8636
- laatst_gebruikt_op?: string | null;
8637
- label?: string;
8638
8821
  module_id: string;
8639
- token_hash: string;
8822
+ payload?: Json;
8640
8823
  updated_at?: string;
8641
- verloopt_op?: string | null;
8642
8824
  };
8643
8825
  Update: {
8644
- aangemaakt_door?: string | null;
8645
8826
  created_at?: string;
8827
+ gemaakt_op?: string;
8828
+ hash?: string;
8646
8829
  id?: string;
8647
- is_actief?: boolean;
8648
- laatst_gebruikt_op?: string | null;
8649
- label?: string;
8650
8830
  module_id?: string;
8651
- token_hash?: string;
8831
+ payload?: Json;
8652
8832
  updated_at?: string;
8653
- verloopt_op?: string | null;
8654
8833
  };
8655
8834
  Relationships: [];
8656
8835
  };
@@ -8658,6 +8837,11 @@ export type Database = {
8658
8837
  Row: {
8659
8838
  bevindingen: string | null;
8660
8839
  bezit_tabellen: string[];
8840
+ bron_commit: string | null;
8841
+ bron_pad: string | null;
8842
+ bron_repo: string | null;
8843
+ bron_soort: string | null;
8844
+ bron_versie: string | null;
8661
8845
  conflicten_snapshot: Json;
8662
8846
  contractfuncties: string[];
8663
8847
  created_at: string;
@@ -8668,6 +8852,8 @@ export type Database = {
8668
8852
  id: string;
8669
8853
  inhoud_md: string;
8670
8854
  is_actueel: boolean;
8855
+ is_gearchiveerd: boolean;
8856
+ laatst_gecontroleerd_op: string | null;
8671
8857
  module_id: string;
8672
8858
  module_titel: string;
8673
8859
  ontbrekende_contracten: string[];
@@ -8678,6 +8864,11 @@ export type Database = {
8678
8864
  Insert: {
8679
8865
  bevindingen?: string | null;
8680
8866
  bezit_tabellen?: string[];
8867
+ bron_commit?: string | null;
8868
+ bron_pad?: string | null;
8869
+ bron_repo?: string | null;
8870
+ bron_soort?: string | null;
8871
+ bron_versie?: string | null;
8681
8872
  conflicten_snapshot?: Json;
8682
8873
  contractfuncties?: string[];
8683
8874
  created_at?: string;
@@ -8688,6 +8879,8 @@ export type Database = {
8688
8879
  id?: string;
8689
8880
  inhoud_md: string;
8690
8881
  is_actueel?: boolean;
8882
+ is_gearchiveerd?: boolean;
8883
+ laatst_gecontroleerd_op?: string | null;
8691
8884
  module_id: string;
8692
8885
  module_titel: string;
8693
8886
  ontbrekende_contracten?: string[];
@@ -8698,6 +8891,11 @@ export type Database = {
8698
8891
  Update: {
8699
8892
  bevindingen?: string | null;
8700
8893
  bezit_tabellen?: string[];
8894
+ bron_commit?: string | null;
8895
+ bron_pad?: string | null;
8896
+ bron_repo?: string | null;
8897
+ bron_soort?: string | null;
8898
+ bron_versie?: string | null;
8701
8899
  conflicten_snapshot?: Json;
8702
8900
  contractfuncties?: string[];
8703
8901
  created_at?: string;
@@ -8708,6 +8906,8 @@ export type Database = {
8708
8906
  id?: string;
8709
8907
  inhoud_md?: string;
8710
8908
  is_actueel?: boolean;
8909
+ is_gearchiveerd?: boolean;
8910
+ laatst_gecontroleerd_op?: string | null;
8711
8911
  module_id?: string;
8712
8912
  module_titel?: string;
8713
8913
  ontbrekende_contracten?: string[];
@@ -8762,6 +8962,39 @@ export type Database = {
8762
8962
  };
8763
8963
  Relationships: [];
8764
8964
  };
8965
+ itk_module_wijzigingen: {
8966
+ Row: {
8967
+ created_at: string;
8968
+ geconstateerd_op: string;
8969
+ id: string;
8970
+ module_id: string;
8971
+ omschrijving: string;
8972
+ soort: string;
8973
+ updated_at: string;
8974
+ was_na_publicatie: boolean;
8975
+ };
8976
+ Insert: {
8977
+ created_at?: string;
8978
+ geconstateerd_op?: string;
8979
+ id?: string;
8980
+ module_id: string;
8981
+ omschrijving: string;
8982
+ soort: string;
8983
+ updated_at?: string;
8984
+ was_na_publicatie?: boolean;
8985
+ };
8986
+ Update: {
8987
+ created_at?: string;
8988
+ geconstateerd_op?: string;
8989
+ id?: string;
8990
+ module_id?: string;
8991
+ omschrijving?: string;
8992
+ soort?: string;
8993
+ updated_at?: string;
8994
+ was_na_publicatie?: boolean;
8995
+ };
8996
+ Relationships: [];
8997
+ };
8765
8998
  itk_offerte_events: {
8766
8999
  Row: {
8767
9000
  created_at: string;
@@ -9009,6 +9242,13 @@ export type Database = {
9009
9242
  referencedRelation: "werkbonnen";
9010
9243
  referencedColumns: ["id"];
9011
9244
  },
9245
+ {
9246
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9247
+ columns: ["follow_up_werkbon_id"];
9248
+ isOneToOne: false;
9249
+ referencedRelation: "wo_overview";
9250
+ referencedColumns: ["id"];
9251
+ },
9012
9252
  {
9013
9253
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
9014
9254
  columns: ["werkbon_id"];
@@ -9016,6 +9256,13 @@ export type Database = {
9016
9256
  referencedRelation: "werkbonnen";
9017
9257
  referencedColumns: ["id"];
9018
9258
  },
9259
+ {
9260
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9261
+ columns: ["werkbon_id"];
9262
+ isOneToOne: false;
9263
+ referencedRelation: "wo_overview";
9264
+ referencedColumns: ["id"];
9265
+ },
9019
9266
  {
9020
9267
  foreignKeyName: "itk_offertes_work_location_id_fkey";
9021
9268
  columns: ["work_location_id"];
@@ -9075,6 +9322,30 @@ export type Database = {
9075
9322
  }
9076
9323
  ];
9077
9324
  };
9325
+ job_locks: {
9326
+ Row: {
9327
+ created_at: string;
9328
+ lock_key: string;
9329
+ locked_until: string;
9330
+ owner: string | null;
9331
+ updated_at: string;
9332
+ };
9333
+ Insert: {
9334
+ created_at?: string;
9335
+ lock_key: string;
9336
+ locked_until: string;
9337
+ owner?: string | null;
9338
+ updated_at?: string;
9339
+ };
9340
+ Update: {
9341
+ created_at?: string;
9342
+ lock_key?: string;
9343
+ locked_until?: string;
9344
+ owner?: string | null;
9345
+ updated_at?: string;
9346
+ };
9347
+ Relationships: [];
9348
+ };
9078
9349
  layout_logos: {
9079
9350
  Row: {
9080
9351
  bestand_url: string;
@@ -9325,6 +9596,13 @@ export type Database = {
9325
9596
  referencedRelation: "product_categories";
9326
9597
  referencedColumns: ["id"];
9327
9598
  },
9599
+ {
9600
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9601
+ columns: ["product_id"];
9602
+ isOneToOne: false;
9603
+ referencedRelation: "logistics_product_dimensions";
9604
+ referencedColumns: ["product_id"];
9605
+ },
9328
9606
  {
9329
9607
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9330
9608
  columns: ["product_id"];
@@ -9395,6 +9673,13 @@ export type Database = {
9395
9673
  referencedRelation: "product_categories";
9396
9674
  referencedColumns: ["id"];
9397
9675
  },
9676
+ {
9677
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9678
+ columns: ["product_id"];
9679
+ isOneToOne: false;
9680
+ referencedRelation: "logistics_product_dimensions";
9681
+ referencedColumns: ["product_id"];
9682
+ },
9398
9683
  {
9399
9684
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9400
9685
  columns: ["product_id"];
@@ -9465,6 +9750,13 @@ export type Database = {
9465
9750
  referencedRelation: "product_categories";
9466
9751
  referencedColumns: ["id"];
9467
9752
  },
9753
+ {
9754
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9755
+ columns: ["product_id"];
9756
+ isOneToOne: false;
9757
+ referencedRelation: "logistics_product_dimensions";
9758
+ referencedColumns: ["product_id"];
9759
+ },
9468
9760
  {
9469
9761
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9470
9762
  columns: ["product_id"];
@@ -9671,30 +9963,99 @@ export type Database = {
9671
9963
  };
9672
9964
  Relationships: [];
9673
9965
  };
9674
- logistics_decisions: {
9966
+ logistics_control_scan: {
9675
9967
  Row: {
9968
+ approved_at: string | null;
9969
+ attempts: number;
9970
+ barcode: string;
9971
+ cart_id: string;
9676
9972
  created_at: string;
9677
- explanation: string | null;
9973
+ document_url: string | null;
9974
+ error: string | null;
9975
+ error_code: string | null;
9976
+ fulfillment_order_id: string | null;
9678
9977
  id: string;
9679
- input_snapshot: Json;
9680
- result: Json;
9681
- slot: string;
9682
- strategy_id: string | null;
9683
- subject_id: string;
9684
- subject_type: string;
9685
- user_id: string;
9978
+ is_floriday: boolean;
9979
+ locked_until: string | null;
9980
+ order_id: string | null;
9981
+ order_number: string | null;
9982
+ print_job_id: string | null;
9983
+ printed_at: string | null;
9984
+ printer_id: string | null;
9985
+ scanner_id: string | null;
9986
+ status: string;
9987
+ updated_at: string;
9686
9988
  };
9687
9989
  Insert: {
9990
+ approved_at?: string | null;
9991
+ attempts?: number;
9992
+ barcode: string;
9993
+ cart_id: string;
9688
9994
  created_at?: string;
9689
- explanation?: string | null;
9995
+ document_url?: string | null;
9996
+ error?: string | null;
9997
+ error_code?: string | null;
9998
+ fulfillment_order_id?: string | null;
9690
9999
  id?: string;
9691
- input_snapshot?: Json;
9692
- result?: Json;
9693
- slot: string;
9694
- strategy_id?: string | null;
9695
- subject_id: string;
9696
- subject_type: string;
9697
- user_id: string;
10000
+ is_floriday?: boolean;
10001
+ locked_until?: string | null;
10002
+ order_id?: string | null;
10003
+ order_number?: string | null;
10004
+ print_job_id?: string | null;
10005
+ printed_at?: string | null;
10006
+ printer_id?: string | null;
10007
+ scanner_id?: string | null;
10008
+ status?: string;
10009
+ updated_at?: string;
10010
+ };
10011
+ Update: {
10012
+ approved_at?: string | null;
10013
+ attempts?: number;
10014
+ barcode?: string;
10015
+ cart_id?: string;
10016
+ created_at?: string;
10017
+ document_url?: string | null;
10018
+ error?: string | null;
10019
+ error_code?: string | null;
10020
+ fulfillment_order_id?: string | null;
10021
+ id?: string;
10022
+ is_floriday?: boolean;
10023
+ locked_until?: string | null;
10024
+ order_id?: string | null;
10025
+ order_number?: string | null;
10026
+ print_job_id?: string | null;
10027
+ printed_at?: string | null;
10028
+ printer_id?: string | null;
10029
+ scanner_id?: string | null;
10030
+ status?: string;
10031
+ updated_at?: string;
10032
+ };
10033
+ Relationships: [];
10034
+ };
10035
+ logistics_decisions: {
10036
+ Row: {
10037
+ created_at: string;
10038
+ explanation: string | null;
10039
+ id: string;
10040
+ input_snapshot: Json;
10041
+ result: Json;
10042
+ slot: string;
10043
+ strategy_id: string | null;
10044
+ subject_id: string;
10045
+ subject_type: string;
10046
+ user_id: string;
10047
+ };
10048
+ Insert: {
10049
+ created_at?: string;
10050
+ explanation?: string | null;
10051
+ id?: string;
10052
+ input_snapshot?: Json;
10053
+ result?: Json;
10054
+ slot: string;
10055
+ strategy_id?: string | null;
10056
+ subject_id: string;
10057
+ subject_type: string;
10058
+ user_id: string;
9698
10059
  };
9699
10060
  Update: {
9700
10061
  created_at?: string;
@@ -9962,6 +10323,24 @@ export type Database = {
9962
10323
  };
9963
10324
  Relationships: [];
9964
10325
  };
10326
+ logistics_floriday_carrier_map: {
10327
+ Row: {
10328
+ carrier_code: string;
10329
+ created_at: string;
10330
+ floriday_code: string;
10331
+ };
10332
+ Insert: {
10333
+ carrier_code: string;
10334
+ created_at?: string;
10335
+ floriday_code: string;
10336
+ };
10337
+ Update: {
10338
+ carrier_code?: string;
10339
+ created_at?: string;
10340
+ floriday_code?: string;
10341
+ };
10342
+ Relationships: [];
10343
+ };
9965
10344
  logistics_floriday_pushes: {
9966
10345
  Row: {
9967
10346
  attempts: number;
@@ -10081,6 +10460,36 @@ export type Database = {
10081
10460
  }
10082
10461
  ];
10083
10462
  };
10463
+ logistics_layer_override_log: {
10464
+ Row: {
10465
+ cart_id: string;
10466
+ created_at: string;
10467
+ details: Json;
10468
+ id: string;
10469
+ keg_id: string | null;
10470
+ product_id: string | null;
10471
+ reason: string;
10472
+ };
10473
+ Insert: {
10474
+ cart_id: string;
10475
+ created_at?: string;
10476
+ details?: Json;
10477
+ id?: string;
10478
+ keg_id?: string | null;
10479
+ product_id?: string | null;
10480
+ reason: string;
10481
+ };
10482
+ Update: {
10483
+ cart_id?: string;
10484
+ created_at?: string;
10485
+ details?: Json;
10486
+ id?: string;
10487
+ keg_id?: string | null;
10488
+ product_id?: string | null;
10489
+ reason?: string;
10490
+ };
10491
+ Relationships: [];
10492
+ };
10084
10493
  logistics_pickup_moments: {
10085
10494
  Row: {
10086
10495
  carrier_ref: string | null;
@@ -10127,6 +10536,7 @@ export type Database = {
10127
10536
  next_attempt_at: string;
10128
10537
  order_id: string;
10129
10538
  reason: string;
10539
+ reason_code: string | null;
10130
10540
  status: string;
10131
10541
  updated_at: string;
10132
10542
  };
@@ -10139,6 +10549,7 @@ export type Database = {
10139
10549
  next_attempt_at?: string;
10140
10550
  order_id: string;
10141
10551
  reason?: string;
10552
+ reason_code?: string | null;
10142
10553
  status?: string;
10143
10554
  updated_at?: string;
10144
10555
  };
@@ -10151,6 +10562,7 @@ export type Database = {
10151
10562
  next_attempt_at?: string;
10152
10563
  order_id?: string;
10153
10564
  reason?: string;
10565
+ reason_code?: string | null;
10154
10566
  status?: string;
10155
10567
  updated_at?: string;
10156
10568
  };
@@ -10868,6 +11280,21 @@ export type Database = {
10868
11280
  }
10869
11281
  ];
10870
11282
  };
11283
+ logistics_tick_heartbeat: {
11284
+ Row: {
11285
+ id: boolean;
11286
+ last_tick_at: string;
11287
+ };
11288
+ Insert: {
11289
+ id?: boolean;
11290
+ last_tick_at?: string;
11291
+ };
11292
+ Update: {
11293
+ id?: boolean;
11294
+ last_tick_at?: string;
11295
+ };
11296
+ Relationships: [];
11297
+ };
10871
11298
  logistics_variables: {
10872
11299
  Row: {
10873
11300
  created_at: string;
@@ -11309,6 +11736,13 @@ export type Database = {
11309
11736
  updated_at?: string;
11310
11737
  };
11311
11738
  Relationships: [
11739
+ {
11740
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11741
+ columns: ["product_id"];
11742
+ isOneToOne: false;
11743
+ referencedRelation: "logistics_product_dimensions";
11744
+ referencedColumns: ["product_id"];
11745
+ },
11312
11746
  {
11313
11747
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11314
11748
  columns: ["product_id"];
@@ -12651,6 +13085,8 @@ export type Database = {
12651
13085
  order_buffers: {
12652
13086
  Row: {
12653
13087
  buffer_key: string;
13088
+ close_at: string | null;
13089
+ closed_at: string | null;
12654
13090
  created_at: string;
12655
13091
  customer_id: string | null;
12656
13092
  grouping_mode: string;
@@ -12662,6 +13098,8 @@ export type Database = {
12662
13098
  };
12663
13099
  Insert: {
12664
13100
  buffer_key: string;
13101
+ close_at?: string | null;
13102
+ closed_at?: string | null;
12665
13103
  created_at?: string;
12666
13104
  customer_id?: string | null;
12667
13105
  grouping_mode: string;
@@ -12673,6 +13111,8 @@ export type Database = {
12673
13111
  };
12674
13112
  Update: {
12675
13113
  buffer_key?: string;
13114
+ close_at?: string | null;
13115
+ closed_at?: string | null;
12676
13116
  created_at?: string;
12677
13117
  customer_id?: string | null;
12678
13118
  grouping_mode?: string;
@@ -12754,6 +13194,13 @@ export type Database = {
12754
13194
  referencedRelation: "order_items";
12755
13195
  referencedColumns: ["id"];
12756
13196
  },
13197
+ {
13198
+ foreignKeyName: "order_cart_items_product_id_fkey";
13199
+ columns: ["product_id"];
13200
+ isOneToOne: false;
13201
+ referencedRelation: "logistics_product_dimensions";
13202
+ referencedColumns: ["product_id"];
13203
+ },
12757
13204
  {
12758
13205
  foreignKeyName: "order_cart_items_product_id_fkey";
12759
13206
  columns: ["product_id"];
@@ -12763,6 +13210,95 @@ export type Database = {
12763
13210
  }
12764
13211
  ];
12765
13212
  };
13213
+ order_cart_layer_positions: {
13214
+ Row: {
13215
+ algorithm_version: number | null;
13216
+ cart_id: string;
13217
+ created_at: string;
13218
+ height: number;
13219
+ id: string;
13220
+ keg_id: string;
13221
+ label: string | null;
13222
+ layer: number;
13223
+ layer_height: number | null;
13224
+ layer_width: number | null;
13225
+ manual_overridden_at: string | null;
13226
+ manual_overridden_by: string | null;
13227
+ manual_override: boolean;
13228
+ order_item_id: string | null;
13229
+ original_layer: number | null;
13230
+ original_x: number | null;
13231
+ original_y: number | null;
13232
+ product_id: string | null;
13233
+ rotation: number;
13234
+ source: string | null;
13235
+ updated_at: string;
13236
+ width: number;
13237
+ x: number;
13238
+ y: number;
13239
+ };
13240
+ Insert: {
13241
+ algorithm_version?: number | null;
13242
+ cart_id: string;
13243
+ created_at?: string;
13244
+ height: number;
13245
+ id?: string;
13246
+ keg_id: string;
13247
+ label?: string | null;
13248
+ layer: number;
13249
+ layer_height?: number | null;
13250
+ layer_width?: number | null;
13251
+ manual_overridden_at?: string | null;
13252
+ manual_overridden_by?: string | null;
13253
+ manual_override?: boolean;
13254
+ order_item_id?: string | null;
13255
+ original_layer?: number | null;
13256
+ original_x?: number | null;
13257
+ original_y?: number | null;
13258
+ product_id?: string | null;
13259
+ rotation?: number;
13260
+ source?: string | null;
13261
+ updated_at?: string;
13262
+ width: number;
13263
+ x: number;
13264
+ y: number;
13265
+ };
13266
+ Update: {
13267
+ algorithm_version?: number | null;
13268
+ cart_id?: string;
13269
+ created_at?: string;
13270
+ height?: number;
13271
+ id?: string;
13272
+ keg_id?: string;
13273
+ label?: string | null;
13274
+ layer?: number;
13275
+ layer_height?: number | null;
13276
+ layer_width?: number | null;
13277
+ manual_overridden_at?: string | null;
13278
+ manual_overridden_by?: string | null;
13279
+ manual_override?: boolean;
13280
+ order_item_id?: string | null;
13281
+ original_layer?: number | null;
13282
+ original_x?: number | null;
13283
+ original_y?: number | null;
13284
+ product_id?: string | null;
13285
+ rotation?: number;
13286
+ source?: string | null;
13287
+ updated_at?: string;
13288
+ width?: number;
13289
+ x?: number;
13290
+ y?: number;
13291
+ };
13292
+ Relationships: [
13293
+ {
13294
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
13295
+ columns: ["cart_id"];
13296
+ isOneToOne: false;
13297
+ referencedRelation: "order_carts";
13298
+ referencedColumns: ["id"];
13299
+ }
13300
+ ];
13301
+ };
12766
13302
  order_carts: {
12767
13303
  Row: {
12768
13304
  algorithm_version: number;
@@ -12785,6 +13321,7 @@ export type Database = {
12785
13321
  pickup_locked: boolean;
12786
13322
  pickup_moment_id: string | null;
12787
13323
  source: string;
13324
+ total_carts: number | null;
12788
13325
  total_layers_used: number;
12789
13326
  updated_at: string;
12790
13327
  weight_kg: number | null;
@@ -12810,6 +13347,7 @@ export type Database = {
12810
13347
  pickup_locked?: boolean;
12811
13348
  pickup_moment_id?: string | null;
12812
13349
  source?: string;
13350
+ total_carts?: number | null;
12813
13351
  total_layers_used?: number;
12814
13352
  updated_at?: string;
12815
13353
  weight_kg?: number | null;
@@ -12835,6 +13373,7 @@ export type Database = {
12835
13373
  pickup_locked?: boolean;
12836
13374
  pickup_moment_id?: string | null;
12837
13375
  source?: string;
13376
+ total_carts?: number | null;
12838
13377
  total_layers_used?: number;
12839
13378
  updated_at?: string;
12840
13379
  weight_kg?: number | null;
@@ -12945,6 +13484,41 @@ export type Database = {
12945
13484
  };
12946
13485
  Relationships: [];
12947
13486
  };
13487
+ order_fust_bookings: {
13488
+ Row: {
13489
+ created_at: string;
13490
+ fust_type_id: string;
13491
+ id: string;
13492
+ order_item_id: string;
13493
+ quantity: number;
13494
+ updated_at: string;
13495
+ };
13496
+ Insert: {
13497
+ created_at?: string;
13498
+ fust_type_id: string;
13499
+ id?: string;
13500
+ order_item_id: string;
13501
+ quantity?: number;
13502
+ updated_at?: string;
13503
+ };
13504
+ Update: {
13505
+ created_at?: string;
13506
+ fust_type_id?: string;
13507
+ id?: string;
13508
+ order_item_id?: string;
13509
+ quantity?: number;
13510
+ updated_at?: string;
13511
+ };
13512
+ Relationships: [
13513
+ {
13514
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13515
+ columns: ["fust_type_id"];
13516
+ isOneToOne: false;
13517
+ referencedRelation: "fust_types";
13518
+ referencedColumns: ["id"];
13519
+ }
13520
+ ];
13521
+ };
12948
13522
  order_invoice_links: {
12949
13523
  Row: {
12950
13524
  administration_code: string | null;
@@ -13035,6 +13609,13 @@ export type Database = {
13035
13609
  referencedRelation: "orders";
13036
13610
  referencedColumns: ["id"];
13037
13611
  },
13612
+ {
13613
+ foreignKeyName: "order_items_product_id_fkey";
13614
+ columns: ["product_id"];
13615
+ isOneToOne: false;
13616
+ referencedRelation: "logistics_product_dimensions";
13617
+ referencedColumns: ["product_id"];
13618
+ },
13038
13619
  {
13039
13620
  foreignKeyName: "order_items_product_id_fkey";
13040
13621
  columns: ["product_id"];
@@ -13189,6 +13770,9 @@ export type Database = {
13189
13770
  plan_locked_at: string | null;
13190
13771
  plan_locked_ref: string | null;
13191
13772
  status: string;
13773
+ status_changed_at: string;
13774
+ status_origin: string;
13775
+ status_sync_token: string | null;
13192
13776
  total: string;
13193
13777
  updated_at: string;
13194
13778
  };
@@ -13213,6 +13797,9 @@ export type Database = {
13213
13797
  plan_locked_at?: string | null;
13214
13798
  plan_locked_ref?: string | null;
13215
13799
  status?: string;
13800
+ status_changed_at?: string;
13801
+ status_origin?: string;
13802
+ status_sync_token?: string | null;
13216
13803
  total?: string;
13217
13804
  updated_at?: string;
13218
13805
  };
@@ -13237,6 +13824,9 @@ export type Database = {
13237
13824
  plan_locked_at?: string | null;
13238
13825
  plan_locked_ref?: string | null;
13239
13826
  status?: string;
13827
+ status_changed_at?: string;
13828
+ status_origin?: string;
13829
+ status_sync_token?: string | null;
13240
13830
  total?: string;
13241
13831
  updated_at?: string;
13242
13832
  };
@@ -13293,6 +13883,132 @@ export type Database = {
13293
13883
  };
13294
13884
  Relationships: [];
13295
13885
  };
13886
+ pakbon_barcode_inhoud: {
13887
+ Row: {
13888
+ barcode: string;
13889
+ cart_id: string | null;
13890
+ cart_index: number | null;
13891
+ cart_label: string | null;
13892
+ cart_total: number | null;
13893
+ created_at: string;
13894
+ is_herprint: boolean;
13895
+ klant_naam: string | null;
13896
+ klant_nummer: string | null;
13897
+ layout_id: string | null;
13898
+ layout_variant: string | null;
13899
+ order_nummer: string | null;
13900
+ order_ref: string | null;
13901
+ print_job_id: string | null;
13902
+ regels: Json;
13903
+ updated_at: string;
13904
+ };
13905
+ Insert: {
13906
+ barcode: string;
13907
+ cart_id?: string | null;
13908
+ cart_index?: number | null;
13909
+ cart_label?: string | null;
13910
+ cart_total?: number | null;
13911
+ created_at?: string;
13912
+ is_herprint?: boolean;
13913
+ klant_naam?: string | null;
13914
+ klant_nummer?: string | null;
13915
+ layout_id?: string | null;
13916
+ layout_variant?: string | null;
13917
+ order_nummer?: string | null;
13918
+ order_ref?: string | null;
13919
+ print_job_id?: string | null;
13920
+ regels?: Json;
13921
+ updated_at?: string;
13922
+ };
13923
+ Update: {
13924
+ barcode?: string;
13925
+ cart_id?: string | null;
13926
+ cart_index?: number | null;
13927
+ cart_label?: string | null;
13928
+ cart_total?: number | null;
13929
+ created_at?: string;
13930
+ is_herprint?: boolean;
13931
+ klant_naam?: string | null;
13932
+ klant_nummer?: string | null;
13933
+ layout_id?: string | null;
13934
+ layout_variant?: string | null;
13935
+ order_nummer?: string | null;
13936
+ order_ref?: string | null;
13937
+ print_job_id?: string | null;
13938
+ regels?: Json;
13939
+ updated_at?: string;
13940
+ };
13941
+ Relationships: [];
13942
+ };
13943
+ pakbon_barcode_verzoeken: {
13944
+ Row: {
13945
+ aangevraagd_op: string;
13946
+ barcode: string | null;
13947
+ cart_id: string | null;
13948
+ cart_index: number | null;
13949
+ cart_label: string | null;
13950
+ cart_total: number | null;
13951
+ documentnaam: string | null;
13952
+ geleverd_op: string | null;
13953
+ id: string;
13954
+ is_herprint: boolean;
13955
+ klant_naam: string | null;
13956
+ klant_nummer: string | null;
13957
+ laatst_gevraagd_op: string;
13958
+ layout_id: string | null;
13959
+ layout_variant: string | null;
13960
+ order_nummer: string | null;
13961
+ order_ref: string | null;
13962
+ print_job_id: string;
13963
+ status: string;
13964
+ updated_at: string;
13965
+ };
13966
+ Insert: {
13967
+ aangevraagd_op?: string;
13968
+ barcode?: string | null;
13969
+ cart_id?: string | null;
13970
+ cart_index?: number | null;
13971
+ cart_label?: string | null;
13972
+ cart_total?: number | null;
13973
+ documentnaam?: string | null;
13974
+ geleverd_op?: string | null;
13975
+ id?: string;
13976
+ is_herprint?: boolean;
13977
+ klant_naam?: string | null;
13978
+ klant_nummer?: string | null;
13979
+ laatst_gevraagd_op?: string;
13980
+ layout_id?: string | null;
13981
+ layout_variant?: string | null;
13982
+ order_nummer?: string | null;
13983
+ order_ref?: string | null;
13984
+ print_job_id: string;
13985
+ status?: string;
13986
+ updated_at?: string;
13987
+ };
13988
+ Update: {
13989
+ aangevraagd_op?: string;
13990
+ barcode?: string | null;
13991
+ cart_id?: string | null;
13992
+ cart_index?: number | null;
13993
+ cart_label?: string | null;
13994
+ cart_total?: number | null;
13995
+ documentnaam?: string | null;
13996
+ geleverd_op?: string | null;
13997
+ id?: string;
13998
+ is_herprint?: boolean;
13999
+ klant_naam?: string | null;
14000
+ klant_nummer?: string | null;
14001
+ laatst_gevraagd_op?: string;
14002
+ layout_id?: string | null;
14003
+ layout_variant?: string | null;
14004
+ order_nummer?: string | null;
14005
+ order_ref?: string | null;
14006
+ print_job_id?: string;
14007
+ status?: string;
14008
+ updated_at?: string;
14009
+ };
14010
+ Relationships: [];
14011
+ };
13296
14012
  pick_countries: {
13297
14013
  Row: {
13298
14014
  active: boolean;
@@ -14410,6 +15126,13 @@ export type Database = {
14410
15126
  isOneToOne: false;
14411
15127
  referencedRelation: "werkbonnen";
14412
15128
  referencedColumns: ["id"];
15129
+ },
15130
+ {
15131
+ foreignKeyName: "planning_items_werkbon_id_fkey";
15132
+ columns: ["werkbon_id"];
15133
+ isOneToOne: false;
15134
+ referencedRelation: "wo_overview";
15135
+ referencedColumns: ["id"];
14413
15136
  }
14414
15137
  ];
14415
15138
  };
@@ -14528,12 +15251,21 @@ export type Database = {
14528
15251
  };
14529
15252
  print_jobs: {
14530
15253
  Row: {
15254
+ aflever_pogingen: number;
14531
15255
  agent_id: string | null;
15256
+ artefact_bytes: number | null;
15257
+ artefact_gereed_op: string | null;
15258
+ artefact_pad: string | null;
15259
+ artefact_sha256: string | null;
15260
+ batch_id: string | null;
14532
15261
  bron_job_id: string | null;
14533
15262
  created_at: string;
14534
15263
  documentnaam: string;
14535
15264
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14536
15265
  extern_job_id: string | null;
15266
+ fase_gestart_op: string | null;
15267
+ fase_voltooid_op: string | null;
15268
+ foutcode: string | null;
14537
15269
  foutmelding: string | null;
14538
15270
  gebruiker_id: string | null;
14539
15271
  gebruiker_naam: string;
@@ -14547,7 +15279,10 @@ export type Database = {
14547
15279
  kopieen: number;
14548
15280
  layout_id: string | null;
14549
15281
  lokaal_opgeslagen_op: string | null;
15282
+ lokale_pdf_claim_id: string | null;
15283
+ lokale_pdf_claim_tot: string | null;
14550
15284
  lokale_pdf_fout: string | null;
15285
+ lokale_pdf_print_plek_id: string | null;
14551
15286
  lokale_pdf_status: string | null;
14552
15287
  opgepakt_op: string | null;
14553
15288
  paginas: number;
@@ -14560,16 +15295,26 @@ export type Database = {
14560
15295
  resultaat_pdf_base64: string | null;
14561
15296
  status: Database["public"]["Enums"]["print_job_status"];
14562
15297
  updated_at: string;
15298
+ verwerkingsfase: string;
14563
15299
  volgende_poging: string | null;
14564
15300
  voltooid_op: string | null;
14565
15301
  };
14566
15302
  Insert: {
15303
+ aflever_pogingen?: number;
14567
15304
  agent_id?: string | null;
15305
+ artefact_bytes?: number | null;
15306
+ artefact_gereed_op?: string | null;
15307
+ artefact_pad?: string | null;
15308
+ artefact_sha256?: string | null;
15309
+ batch_id?: string | null;
14568
15310
  bron_job_id?: string | null;
14569
15311
  created_at?: string;
14570
15312
  documentnaam?: string;
14571
15313
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14572
15314
  extern_job_id?: string | null;
15315
+ fase_gestart_op?: string | null;
15316
+ fase_voltooid_op?: string | null;
15317
+ foutcode?: string | null;
14573
15318
  foutmelding?: string | null;
14574
15319
  gebruiker_id?: string | null;
14575
15320
  gebruiker_naam?: string;
@@ -14583,7 +15328,10 @@ export type Database = {
14583
15328
  kopieen?: number;
14584
15329
  layout_id?: string | null;
14585
15330
  lokaal_opgeslagen_op?: string | null;
15331
+ lokale_pdf_claim_id?: string | null;
15332
+ lokale_pdf_claim_tot?: string | null;
14586
15333
  lokale_pdf_fout?: string | null;
15334
+ lokale_pdf_print_plek_id?: string | null;
14587
15335
  lokale_pdf_status?: string | null;
14588
15336
  opgepakt_op?: string | null;
14589
15337
  paginas?: number;
@@ -14596,16 +15344,26 @@ export type Database = {
14596
15344
  resultaat_pdf_base64?: string | null;
14597
15345
  status?: Database["public"]["Enums"]["print_job_status"];
14598
15346
  updated_at?: string;
15347
+ verwerkingsfase?: string;
14599
15348
  volgende_poging?: string | null;
14600
15349
  voltooid_op?: string | null;
14601
15350
  };
14602
15351
  Update: {
15352
+ aflever_pogingen?: number;
14603
15353
  agent_id?: string | null;
15354
+ artefact_bytes?: number | null;
15355
+ artefact_gereed_op?: string | null;
15356
+ artefact_pad?: string | null;
15357
+ artefact_sha256?: string | null;
15358
+ batch_id?: string | null;
14604
15359
  bron_job_id?: string | null;
14605
15360
  created_at?: string;
14606
15361
  documentnaam?: string;
14607
15362
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14608
15363
  extern_job_id?: string | null;
15364
+ fase_gestart_op?: string | null;
15365
+ fase_voltooid_op?: string | null;
15366
+ foutcode?: string | null;
14609
15367
  foutmelding?: string | null;
14610
15368
  gebruiker_id?: string | null;
14611
15369
  gebruiker_naam?: string;
@@ -14619,7 +15377,10 @@ export type Database = {
14619
15377
  kopieen?: number;
14620
15378
  layout_id?: string | null;
14621
15379
  lokaal_opgeslagen_op?: string | null;
15380
+ lokale_pdf_claim_id?: string | null;
15381
+ lokale_pdf_claim_tot?: string | null;
14622
15382
  lokale_pdf_fout?: string | null;
15383
+ lokale_pdf_print_plek_id?: string | null;
14623
15384
  lokale_pdf_status?: string | null;
14624
15385
  opgepakt_op?: string | null;
14625
15386
  paginas?: number;
@@ -14632,6 +15393,7 @@ export type Database = {
14632
15393
  resultaat_pdf_base64?: string | null;
14633
15394
  status?: Database["public"]["Enums"]["print_job_status"];
14634
15395
  updated_at?: string;
15396
+ verwerkingsfase?: string;
14635
15397
  volgende_poging?: string | null;
14636
15398
  voltooid_op?: string | null;
14637
15399
  };
@@ -14650,6 +15412,13 @@ export type Database = {
14650
15412
  referencedRelation: "document_layouts";
14651
15413
  referencedColumns: ["id"];
14652
15414
  },
15415
+ {
15416
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
15417
+ columns: ["lokale_pdf_print_plek_id"];
15418
+ isOneToOne: false;
15419
+ referencedRelation: "print_plekken";
15420
+ referencedColumns: ["id"];
15421
+ },
14653
15422
  {
14654
15423
  foreignKeyName: "print_jobs_printer_id_fkey";
14655
15424
  columns: ["printer_id"];
@@ -14789,16 +15558,42 @@ export type Database = {
14789
15558
  };
14790
15559
  Relationships: [];
14791
15560
  };
14792
- print_queue_runners: {
15561
+ print_queue_leases: {
14793
15562
  Row: {
14794
- actief: boolean;
14795
- basis_url: string;
15563
+ created_at: string;
15564
+ houder: string;
15565
+ naam: string;
15566
+ updated_at: string;
15567
+ verloopt_op: string;
15568
+ };
15569
+ Insert: {
15570
+ created_at?: string;
15571
+ houder: string;
15572
+ naam: string;
15573
+ updated_at?: string;
15574
+ verloopt_op: string;
15575
+ };
15576
+ Update: {
15577
+ created_at?: string;
15578
+ houder?: string;
15579
+ naam?: string;
15580
+ updated_at?: string;
15581
+ verloopt_op?: string;
15582
+ };
15583
+ Relationships: [];
15584
+ };
15585
+ print_queue_runners: {
15586
+ Row: {
15587
+ actief: boolean;
15588
+ basis_url: string;
14796
15589
  created_at: string;
14797
15590
  id: string;
14798
15591
  laatst_gezien: string;
14799
15592
  laatste_fout: string | null;
14800
15593
  laatste_request_id: number | null;
15594
+ laatste_wakeup: string | null;
14801
15595
  mislukte_posts: number;
15596
+ mislukte_wakeups: number;
14802
15597
  tick_sleutel: string;
14803
15598
  updated_at: string;
14804
15599
  };
@@ -14810,7 +15605,9 @@ export type Database = {
14810
15605
  laatst_gezien?: string;
14811
15606
  laatste_fout?: string | null;
14812
15607
  laatste_request_id?: number | null;
15608
+ laatste_wakeup?: string | null;
14813
15609
  mislukte_posts?: number;
15610
+ mislukte_wakeups?: number;
14814
15611
  tick_sleutel?: string;
14815
15612
  updated_at?: string;
14816
15613
  };
@@ -14822,7 +15619,9 @@ export type Database = {
14822
15619
  laatst_gezien?: string;
14823
15620
  laatste_fout?: string | null;
14824
15621
  laatste_request_id?: number | null;
15622
+ laatste_wakeup?: string | null;
14825
15623
  mislukte_posts?: number;
15624
+ mislukte_wakeups?: number;
14826
15625
  tick_sleutel?: string;
14827
15626
  updated_at?: string;
14828
15627
  };
@@ -15146,6 +15945,13 @@ export type Database = {
15146
15945
  updated_at?: string;
15147
15946
  };
15148
15947
  Relationships: [
15948
+ {
15949
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15950
+ columns: ["parent_product_id"];
15951
+ isOneToOne: false;
15952
+ referencedRelation: "logistics_product_dimensions";
15953
+ referencedColumns: ["product_id"];
15954
+ },
15149
15955
  {
15150
15956
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15151
15957
  columns: ["parent_product_id"];
@@ -15202,6 +16008,13 @@ export type Database = {
15202
16008
  updated_at?: string;
15203
16009
  };
15204
16010
  Relationships: [
16011
+ {
16012
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
16013
+ columns: ["component_product_id"];
16014
+ isOneToOne: false;
16015
+ referencedRelation: "logistics_product_dimensions";
16016
+ referencedColumns: ["product_id"];
16017
+ },
15205
16018
  {
15206
16019
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15207
16020
  columns: ["component_product_id"];
@@ -15209,6 +16022,13 @@ export type Database = {
15209
16022
  referencedRelation: "products";
15210
16023
  referencedColumns: ["id"];
15211
16024
  },
16025
+ {
16026
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
16027
+ columns: ["parent_product_id"];
16028
+ isOneToOne: false;
16029
+ referencedRelation: "logistics_product_dimensions";
16030
+ referencedColumns: ["product_id"];
16031
+ },
15212
16032
  {
15213
16033
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15214
16034
  columns: ["parent_product_id"];
@@ -15389,6 +16209,13 @@ export type Database = {
15389
16209
  updated_at?: string;
15390
16210
  };
15391
16211
  Relationships: [
16212
+ {
16213
+ foreignKeyName: "product_groups_head_product_id_fkey";
16214
+ columns: ["head_product_id"];
16215
+ isOneToOne: false;
16216
+ referencedRelation: "logistics_product_dimensions";
16217
+ referencedColumns: ["product_id"];
16218
+ },
15392
16219
  {
15393
16220
  foreignKeyName: "product_groups_head_product_id_fkey";
15394
16221
  columns: ["head_product_id"];
@@ -15458,6 +16285,13 @@ export type Database = {
15458
16285
  referencedRelation: "packages";
15459
16286
  referencedColumns: ["id"];
15460
16287
  },
16288
+ {
16289
+ foreignKeyName: "product_load_settings_product_id_fkey";
16290
+ columns: ["product_id"];
16291
+ isOneToOne: false;
16292
+ referencedRelation: "logistics_product_dimensions";
16293
+ referencedColumns: ["product_id"];
16294
+ },
15461
16295
  {
15462
16296
  foreignKeyName: "product_load_settings_product_id_fkey";
15463
16297
  columns: ["product_id"];
@@ -15942,6 +16776,13 @@ export type Database = {
15942
16776
  quantity?: number;
15943
16777
  };
15944
16778
  Relationships: [
16779
+ {
16780
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16781
+ columns: ["product_id"];
16782
+ isOneToOne: false;
16783
+ referencedRelation: "logistics_product_dimensions";
16784
+ referencedColumns: ["product_id"];
16785
+ },
15945
16786
  {
15946
16787
  foreignKeyName: "purchase_order_items_product_id_fkey";
15947
16788
  columns: ["product_id"];
@@ -16280,6 +17121,106 @@ export type Database = {
16280
17121
  }
16281
17122
  ];
16282
17123
  };
17124
+ scan_kar_sessie_regels: {
17125
+ Row: {
17126
+ barcode: string;
17127
+ cart_id: string | null;
17128
+ created_at: string;
17129
+ id: string;
17130
+ order_id: string | null;
17131
+ order_number: string | null;
17132
+ regels: Json;
17133
+ sessie_id: string;
17134
+ volledig: boolean;
17135
+ };
17136
+ Insert: {
17137
+ barcode: string;
17138
+ cart_id?: string | null;
17139
+ created_at?: string;
17140
+ id?: string;
17141
+ order_id?: string | null;
17142
+ order_number?: string | null;
17143
+ regels?: Json;
17144
+ sessie_id: string;
17145
+ volledig?: boolean;
17146
+ };
17147
+ Update: {
17148
+ barcode?: string;
17149
+ cart_id?: string | null;
17150
+ created_at?: string;
17151
+ id?: string;
17152
+ order_id?: string | null;
17153
+ order_number?: string | null;
17154
+ regels?: Json;
17155
+ sessie_id?: string;
17156
+ volledig?: boolean;
17157
+ };
17158
+ Relationships: [
17159
+ {
17160
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
17161
+ columns: ["sessie_id"];
17162
+ isOneToOne: false;
17163
+ referencedRelation: "scan_kar_sessies";
17164
+ referencedColumns: ["id"];
17165
+ }
17166
+ ];
17167
+ };
17168
+ scan_kar_sessies: {
17169
+ Row: {
17170
+ afgerond_op: string | null;
17171
+ cart_id: string | null;
17172
+ cart_index: number | null;
17173
+ cart_total: number | null;
17174
+ created_at: string;
17175
+ id: string;
17176
+ klant_naam: string | null;
17177
+ medewerker_naam: string | null;
17178
+ order_id: string | null;
17179
+ order_number: string | null;
17180
+ scanner_id: string | null;
17181
+ status: string;
17182
+ updated_at: string;
17183
+ };
17184
+ Insert: {
17185
+ afgerond_op?: string | null;
17186
+ cart_id?: string | null;
17187
+ cart_index?: number | null;
17188
+ cart_total?: number | null;
17189
+ created_at?: string;
17190
+ id?: string;
17191
+ klant_naam?: string | null;
17192
+ medewerker_naam?: string | null;
17193
+ order_id?: string | null;
17194
+ order_number?: string | null;
17195
+ scanner_id?: string | null;
17196
+ status?: string;
17197
+ updated_at?: string;
17198
+ };
17199
+ Update: {
17200
+ afgerond_op?: string | null;
17201
+ cart_id?: string | null;
17202
+ cart_index?: number | null;
17203
+ cart_total?: number | null;
17204
+ created_at?: string;
17205
+ id?: string;
17206
+ klant_naam?: string | null;
17207
+ medewerker_naam?: string | null;
17208
+ order_id?: string | null;
17209
+ order_number?: string | null;
17210
+ scanner_id?: string | null;
17211
+ status?: string;
17212
+ updated_at?: string;
17213
+ };
17214
+ Relationships: [
17215
+ {
17216
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
17217
+ columns: ["scanner_id"];
17218
+ isOneToOne: false;
17219
+ referencedRelation: "scan_scanners";
17220
+ referencedColumns: ["id"];
17221
+ }
17222
+ ];
17223
+ };
16283
17224
  scan_karren: {
16284
17225
  Row: {
16285
17226
  afgerond_op: string | null;
@@ -16486,6 +17427,60 @@ export type Database = {
16486
17427
  };
16487
17428
  Relationships: [];
16488
17429
  };
17430
+ scan_restpakbonnen: {
17431
+ Row: {
17432
+ barcode: string;
17433
+ bron_barcode: string | null;
17434
+ cart_id: string | null;
17435
+ cart_index: number | null;
17436
+ cart_total: number | null;
17437
+ created_at: string;
17438
+ geprint_op: string | null;
17439
+ id: string;
17440
+ klant_naam: string | null;
17441
+ order_id: string | null;
17442
+ order_number: string | null;
17443
+ print_job_id: string | null;
17444
+ regels: Json;
17445
+ updated_at: string;
17446
+ verwerkt: boolean;
17447
+ };
17448
+ Insert: {
17449
+ barcode: string;
17450
+ bron_barcode?: string | null;
17451
+ cart_id?: string | null;
17452
+ cart_index?: number | null;
17453
+ cart_total?: number | null;
17454
+ created_at?: string;
17455
+ geprint_op?: string | null;
17456
+ id?: string;
17457
+ klant_naam?: string | null;
17458
+ order_id?: string | null;
17459
+ order_number?: string | null;
17460
+ print_job_id?: string | null;
17461
+ regels?: Json;
17462
+ updated_at?: string;
17463
+ verwerkt?: boolean;
17464
+ };
17465
+ Update: {
17466
+ barcode?: string;
17467
+ bron_barcode?: string | null;
17468
+ cart_id?: string | null;
17469
+ cart_index?: number | null;
17470
+ cart_total?: number | null;
17471
+ created_at?: string;
17472
+ geprint_op?: string | null;
17473
+ id?: string;
17474
+ klant_naam?: string | null;
17475
+ order_id?: string | null;
17476
+ order_number?: string | null;
17477
+ print_job_id?: string | null;
17478
+ regels?: Json;
17479
+ updated_at?: string;
17480
+ verwerkt?: boolean;
17481
+ };
17482
+ Relationships: [];
17483
+ };
16489
17484
  scan_scanners: {
16490
17485
  Row: {
16491
17486
  actief: boolean;
@@ -16495,6 +17490,7 @@ export type Database = {
16495
17490
  naam: string;
16496
17491
  omschrijving: string | null;
16497
17492
  pincode: string | null;
17493
+ printer_id: string | null;
16498
17494
  slug: string;
16499
17495
  type: string;
16500
17496
  updated_at: string;
@@ -16509,6 +17505,7 @@ export type Database = {
16509
17505
  naam: string;
16510
17506
  omschrijving?: string | null;
16511
17507
  pincode?: string | null;
17508
+ printer_id?: string | null;
16512
17509
  slug: string;
16513
17510
  type?: string;
16514
17511
  updated_at?: string;
@@ -16523,6 +17520,7 @@ export type Database = {
16523
17520
  naam?: string;
16524
17521
  omschrijving?: string | null;
16525
17522
  pincode?: string | null;
17523
+ printer_id?: string | null;
16526
17524
  slug?: string;
16527
17525
  type?: string;
16528
17526
  updated_at?: string;
@@ -16531,6 +17529,27 @@ export type Database = {
16531
17529
  };
16532
17530
  Relationships: [];
16533
17531
  };
17532
+ shell_settings: {
17533
+ Row: {
17534
+ created_at: string;
17535
+ default_path: string | null;
17536
+ shell_id: string;
17537
+ updated_at: string;
17538
+ };
17539
+ Insert: {
17540
+ created_at?: string;
17541
+ default_path?: string | null;
17542
+ shell_id: string;
17543
+ updated_at?: string;
17544
+ };
17545
+ Update: {
17546
+ created_at?: string;
17547
+ default_path?: string | null;
17548
+ shell_id?: string;
17549
+ updated_at?: string;
17550
+ };
17551
+ Relationships: [];
17552
+ };
16534
17553
  sick_periods: {
16535
17554
  Row: {
16536
17555
  created_at: string;
@@ -17160,6 +18179,13 @@ export type Database = {
17160
18179
  isOneToOne: false;
17161
18180
  referencedRelation: "werkbonnen";
17162
18181
  referencedColumns: ["id"];
18182
+ },
18183
+ {
18184
+ foreignKeyName: "time_logs_work_order_id_fkey";
18185
+ columns: ["work_order_id"];
18186
+ isOneToOne: false;
18187
+ referencedRelation: "wo_overview";
18188
+ referencedColumns: ["id"];
17163
18189
  }
17164
18190
  ];
17165
18191
  };
@@ -18474,6 +19500,13 @@ export type Database = {
18474
19500
  isOneToOne: false;
18475
19501
  referencedRelation: "werkbonnen";
18476
19502
  referencedColumns: ["id"];
19503
+ },
19504
+ {
19505
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
19506
+ columns: ["werkbon_id"];
19507
+ isOneToOne: false;
19508
+ referencedRelation: "wo_overview";
19509
+ referencedColumns: ["id"];
18477
19510
  }
18478
19511
  ];
18479
19512
  };
@@ -19207,6 +20240,13 @@ export type Database = {
19207
20240
  isOneToOne: true;
19208
20241
  referencedRelation: "werkbonnen";
19209
20242
  referencedColumns: ["id"];
20243
+ },
20244
+ {
20245
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
20246
+ columns: ["werkbon_id"];
20247
+ isOneToOne: true;
20248
+ referencedRelation: "wo_overview";
20249
+ referencedColumns: ["id"];
19210
20250
  }
19211
20251
  ];
19212
20252
  };
@@ -19296,6 +20336,13 @@ export type Database = {
19296
20336
  isOneToOne: false;
19297
20337
  referencedRelation: "werkbonnen";
19298
20338
  referencedColumns: ["id"];
20339
+ },
20340
+ {
20341
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20342
+ columns: ["werkbon_id"];
20343
+ isOneToOne: false;
20344
+ referencedRelation: "wo_overview";
20345
+ referencedColumns: ["id"];
19299
20346
  }
19300
20347
  ];
19301
20348
  };
@@ -19487,6 +20534,13 @@ export type Database = {
19487
20534
  isOneToOne: false;
19488
20535
  referencedRelation: "werkbonnen";
19489
20536
  referencedColumns: ["id"];
20537
+ },
20538
+ {
20539
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20540
+ columns: ["werkbon_id"];
20541
+ isOneToOne: false;
20542
+ referencedRelation: "wo_overview";
20543
+ referencedColumns: ["id"];
19490
20544
  }
19491
20545
  ];
19492
20546
  };
@@ -19581,6 +20635,13 @@ export type Database = {
19581
20635
  isOneToOne: false;
19582
20636
  referencedRelation: "werkbonnen";
19583
20637
  referencedColumns: ["id"];
20638
+ },
20639
+ {
20640
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20641
+ columns: ["werkbon_id"];
20642
+ isOneToOne: false;
20643
+ referencedRelation: "wo_overview";
20644
+ referencedColumns: ["id"];
19584
20645
  }
19585
20646
  ];
19586
20647
  };
@@ -19622,6 +20683,13 @@ export type Database = {
19622
20683
  isOneToOne: false;
19623
20684
  referencedRelation: "werkbonnen";
19624
20685
  referencedColumns: ["id"];
20686
+ },
20687
+ {
20688
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20689
+ columns: ["werkbon_id"];
20690
+ isOneToOne: false;
20691
+ referencedRelation: "wo_overview";
20692
+ referencedColumns: ["id"];
19625
20693
  }
19626
20694
  ];
19627
20695
  };
@@ -19748,6 +20816,13 @@ export type Database = {
19748
20816
  referencedRelation: "werkbonnen";
19749
20817
  referencedColumns: ["id"];
19750
20818
  },
20819
+ {
20820
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20821
+ columns: ["parent_werkbon_id"];
20822
+ isOneToOne: false;
20823
+ referencedRelation: "wo_overview";
20824
+ referencedColumns: ["id"];
20825
+ },
19751
20826
  {
19752
20827
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19753
20828
  columns: ["source_mailbox_message_id"];
@@ -20225,6 +21300,24 @@ export type Database = {
20225
21300
  };
20226
21301
  Relationships: [];
20227
21302
  };
21303
+ logistics_product_dimensions: {
21304
+ Row: {
21305
+ dimension_source: string | null;
21306
+ fust_height_mm: number | null;
21307
+ fust_length_mm: number | null;
21308
+ fust_name: string | null;
21309
+ fust_source: string | null;
21310
+ fust_type_id: string | null;
21311
+ fust_width_mm: number | null;
21312
+ height_source: string | null;
21313
+ missing_reason: string | null;
21314
+ plant_height_cm: number | null;
21315
+ plants_per_crate: number | null;
21316
+ product_id: string | null;
21317
+ product_name: string | null;
21318
+ };
21319
+ Relationships: [];
21320
+ };
20228
21321
  manufacture_product_possible_stock_view: {
20229
21322
  Row: {
20230
21323
  component_count: number | null;
@@ -20263,6 +21356,13 @@ export type Database = {
20263
21356
  isOneToOne: false;
20264
21357
  referencedRelation: "werkbonnen";
20265
21358
  referencedColumns: ["id"];
21359
+ },
21360
+ {
21361
+ foreignKeyName: "planning_items_werkbon_id_fkey";
21362
+ columns: ["werkbon_id"];
21363
+ isOneToOne: false;
21364
+ referencedRelation: "wo_overview";
21365
+ referencedColumns: ["id"];
20266
21366
  }
20267
21367
  ];
20268
21368
  };
@@ -20743,29 +21843,108 @@ export type Database = {
20743
21843
  isOneToOne: false;
20744
21844
  referencedRelation: "werkbonnen";
20745
21845
  referencedColumns: ["id"];
21846
+ },
21847
+ {
21848
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21849
+ columns: ["werkbon_id"];
21850
+ isOneToOne: false;
21851
+ referencedRelation: "wo_overview";
21852
+ referencedColumns: ["id"];
20746
21853
  }
20747
21854
  ];
20748
21855
  };
20749
- };
20750
- Functions: {
20751
- _floriday_schedule_job: {
20752
- Args: {
20753
- p_apikey: string;
20754
- p_jobname: string;
20755
- p_schedule: string;
20756
- p_timeout_ms: number;
20757
- p_url: string;
20758
- };
20759
- Returns: number;
20760
- };
20761
- _migrate_rewrite_stock_key: {
20762
- Args: {
20763
- _from_key: string;
20764
- _to_key: string;
20765
- };
20766
- Returns: undefined;
20767
- };
20768
- afh_city_code: {
21856
+ wo_overview: {
21857
+ Row: {
21858
+ assigned_user_id: string | null;
21859
+ budget_mandate_cents: number | null;
21860
+ created_at: string | null;
21861
+ customer_id: string | null;
21862
+ id: string | null;
21863
+ needs_detail_review: boolean | null;
21864
+ number: string | null;
21865
+ parent_werkbon_id: string | null;
21866
+ planning_status: string | null;
21867
+ scheduled_end_time: string | null;
21868
+ scheduled_start_time: string | null;
21869
+ source_type: string | null;
21870
+ status: string | null;
21871
+ technician_id: string | null;
21872
+ updated_at: string | null;
21873
+ work_address: string | null;
21874
+ };
21875
+ Insert: {
21876
+ assigned_user_id?: string | null;
21877
+ budget_mandate_cents?: number | null;
21878
+ created_at?: string | null;
21879
+ customer_id?: string | null;
21880
+ id?: string | null;
21881
+ needs_detail_review?: boolean | null;
21882
+ number?: string | null;
21883
+ parent_werkbon_id?: string | null;
21884
+ planning_status?: string | null;
21885
+ scheduled_end_time?: string | null;
21886
+ scheduled_start_time?: string | null;
21887
+ source_type?: string | null;
21888
+ status?: string | null;
21889
+ technician_id?: string | null;
21890
+ updated_at?: string | null;
21891
+ work_address?: string | null;
21892
+ };
21893
+ Update: {
21894
+ assigned_user_id?: string | null;
21895
+ budget_mandate_cents?: number | null;
21896
+ created_at?: string | null;
21897
+ customer_id?: string | null;
21898
+ id?: string | null;
21899
+ needs_detail_review?: boolean | null;
21900
+ number?: string | null;
21901
+ parent_werkbon_id?: string | null;
21902
+ planning_status?: string | null;
21903
+ scheduled_end_time?: string | null;
21904
+ scheduled_start_time?: string | null;
21905
+ source_type?: string | null;
21906
+ status?: string | null;
21907
+ technician_id?: string | null;
21908
+ updated_at?: string | null;
21909
+ work_address?: string | null;
21910
+ };
21911
+ Relationships: [
21912
+ {
21913
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21914
+ columns: ["parent_werkbon_id"];
21915
+ isOneToOne: false;
21916
+ referencedRelation: "werkbonnen";
21917
+ referencedColumns: ["id"];
21918
+ },
21919
+ {
21920
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21921
+ columns: ["parent_werkbon_id"];
21922
+ isOneToOne: false;
21923
+ referencedRelation: "wo_overview";
21924
+ referencedColumns: ["id"];
21925
+ }
21926
+ ];
21927
+ };
21928
+ };
21929
+ Functions: {
21930
+ _floriday_schedule_job: {
21931
+ Args: {
21932
+ p_apikey: string;
21933
+ p_jobname: string;
21934
+ p_schedule: string;
21935
+ p_timeout_ms: number;
21936
+ p_url: string;
21937
+ };
21938
+ Returns: number;
21939
+ };
21940
+ _migrate_rewrite_stock_key: {
21941
+ Args: {
21942
+ _from_key: string;
21943
+ _to_key: string;
21944
+ };
21945
+ Returns: undefined;
21946
+ };
21947
+ afh_city_code: {
20769
21948
  Args: {
20770
21949
  _city: string;
20771
21950
  _country: string;
@@ -20935,12 +22114,21 @@ export type Database = {
20935
22114
  _max?: number;
20936
22115
  };
20937
22116
  Returns: {
22117
+ aflever_pogingen: number;
20938
22118
  agent_id: string | null;
22119
+ artefact_bytes: number | null;
22120
+ artefact_gereed_op: string | null;
22121
+ artefact_pad: string | null;
22122
+ artefact_sha256: string | null;
22123
+ batch_id: string | null;
20939
22124
  bron_job_id: string | null;
20940
22125
  created_at: string;
20941
22126
  documentnaam: string;
20942
22127
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20943
22128
  extern_job_id: string | null;
22129
+ fase_gestart_op: string | null;
22130
+ fase_voltooid_op: string | null;
22131
+ foutcode: string | null;
20944
22132
  foutmelding: string | null;
20945
22133
  gebruiker_id: string | null;
20946
22134
  gebruiker_naam: string;
@@ -20954,7 +22142,10 @@ export type Database = {
20954
22142
  kopieen: number;
20955
22143
  layout_id: string | null;
20956
22144
  lokaal_opgeslagen_op: string | null;
22145
+ lokale_pdf_claim_id: string | null;
22146
+ lokale_pdf_claim_tot: string | null;
20957
22147
  lokale_pdf_fout: string | null;
22148
+ lokale_pdf_print_plek_id: string | null;
20958
22149
  lokale_pdf_status: string | null;
20959
22150
  opgepakt_op: string | null;
20960
22151
  paginas: number;
@@ -20967,6 +22158,7 @@ export type Database = {
20967
22158
  resultaat_pdf_base64: string | null;
20968
22159
  status: Database["public"]["Enums"]["print_job_status"];
20969
22160
  updated_at: string;
22161
+ verwerkingsfase: string;
20970
22162
  volgende_poging: string | null;
20971
22163
  voltooid_op: string | null;
20972
22164
  }[];
@@ -21013,6 +22205,25 @@ export type Database = {
21013
22205
  isSetofReturn: true;
21014
22206
  };
21015
22207
  };
22208
+ claim_local_pdf_jobs: {
22209
+ Args: {
22210
+ _max?: number;
22211
+ _print_plek_id: string;
22212
+ _writer_id: string;
22213
+ };
22214
+ Returns: {
22215
+ artefact_bytes: number;
22216
+ artefact_pad: string;
22217
+ artefact_sha256: string;
22218
+ documentnaam: string;
22219
+ id: string;
22220
+ lokale_pdf_print_plek_id: string;
22221
+ lokale_pdf_status: string;
22222
+ printer_id: string;
22223
+ resultaat_pdf_base64: string;
22224
+ status: string;
22225
+ }[];
22226
+ };
21016
22227
  claim_logistics_tasks: {
21017
22228
  Args: {
21018
22229
  _limit?: number;
@@ -21066,12 +22277,21 @@ export type Database = {
21066
22277
  _max?: number;
21067
22278
  };
21068
22279
  Returns: {
22280
+ aflever_pogingen: number;
21069
22281
  agent_id: string | null;
22282
+ artefact_bytes: number | null;
22283
+ artefact_gereed_op: string | null;
22284
+ artefact_pad: string | null;
22285
+ artefact_sha256: string | null;
22286
+ batch_id: string | null;
21070
22287
  bron_job_id: string | null;
21071
22288
  created_at: string;
21072
22289
  documentnaam: string;
21073
22290
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21074
22291
  extern_job_id: string | null;
22292
+ fase_gestart_op: string | null;
22293
+ fase_voltooid_op: string | null;
22294
+ foutcode: string | null;
21075
22295
  foutmelding: string | null;
21076
22296
  gebruiker_id: string | null;
21077
22297
  gebruiker_naam: string;
@@ -21085,7 +22305,10 @@ export type Database = {
21085
22305
  kopieen: number;
21086
22306
  layout_id: string | null;
21087
22307
  lokaal_opgeslagen_op: string | null;
22308
+ lokale_pdf_claim_id: string | null;
22309
+ lokale_pdf_claim_tot: string | null;
21088
22310
  lokale_pdf_fout: string | null;
22311
+ lokale_pdf_print_plek_id: string | null;
21089
22312
  lokale_pdf_status: string | null;
21090
22313
  opgepakt_op: string | null;
21091
22314
  paginas: number;
@@ -21098,6 +22321,7 @@ export type Database = {
21098
22321
  resultaat_pdf_base64: string | null;
21099
22322
  status: Database["public"]["Enums"]["print_job_status"];
21100
22323
  updated_at: string;
22324
+ verwerkingsfase: string;
21101
22325
  volgende_poging: string | null;
21102
22326
  voltooid_op: string | null;
21103
22327
  }[];
@@ -21114,12 +22338,21 @@ export type Database = {
21114
22338
  _max?: number;
21115
22339
  };
21116
22340
  Returns: {
22341
+ aflever_pogingen: number;
21117
22342
  agent_id: string | null;
22343
+ artefact_bytes: number | null;
22344
+ artefact_gereed_op: string | null;
22345
+ artefact_pad: string | null;
22346
+ artefact_sha256: string | null;
22347
+ batch_id: string | null;
21118
22348
  bron_job_id: string | null;
21119
22349
  created_at: string;
21120
22350
  documentnaam: string;
21121
22351
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21122
22352
  extern_job_id: string | null;
22353
+ fase_gestart_op: string | null;
22354
+ fase_voltooid_op: string | null;
22355
+ foutcode: string | null;
21123
22356
  foutmelding: string | null;
21124
22357
  gebruiker_id: string | null;
21125
22358
  gebruiker_naam: string;
@@ -21133,7 +22366,10 @@ export type Database = {
21133
22366
  kopieen: number;
21134
22367
  layout_id: string | null;
21135
22368
  lokaal_opgeslagen_op: string | null;
22369
+ lokale_pdf_claim_id: string | null;
22370
+ lokale_pdf_claim_tot: string | null;
21136
22371
  lokale_pdf_fout: string | null;
22372
+ lokale_pdf_print_plek_id: string | null;
21137
22373
  lokale_pdf_status: string | null;
21138
22374
  opgepakt_op: string | null;
21139
22375
  paginas: number;
@@ -21146,6 +22382,7 @@ export type Database = {
21146
22382
  resultaat_pdf_base64: string | null;
21147
22383
  status: Database["public"]["Enums"]["print_job_status"];
21148
22384
  updated_at: string;
22385
+ verwerkingsfase: string;
21149
22386
  volgende_poging: string | null;
21150
22387
  voltooid_op: string | null;
21151
22388
  }[];
@@ -21156,6 +22393,14 @@ export type Database = {
21156
22393
  isSetofReturn: true;
21157
22394
  };
21158
22395
  };
22396
+ claim_print_queue_lease: {
22397
+ Args: {
22398
+ _houder: string;
22399
+ _naam: string;
22400
+ _seconden?: number;
22401
+ };
22402
+ Returns: boolean;
22403
+ };
21159
22404
  claim_twinfield_push_batch: {
21160
22405
  Args: {
21161
22406
  _customer_id?: string;
@@ -21281,7 +22526,10 @@ export type Database = {
21281
22526
  cart_index: number;
21282
22527
  cart_number: string;
21283
22528
  cart_number_id: string;
22529
+ cart_seq: number;
22530
+ cart_total: number;
21284
22531
  order_id: string;
22532
+ order_number: string;
21285
22533
  order_source: string;
21286
22534
  pick_date: string;
21287
22535
  printed_at: string;
@@ -21289,6 +22537,12 @@ export type Database = {
21289
22537
  status: string;
21290
22538
  }[];
21291
22539
  };
22540
+ control_mark_carts_delivered: {
22541
+ Args: {
22542
+ p_carts: Json;
22543
+ };
22544
+ Returns: number;
22545
+ };
21292
22546
  count_distinct_regulatory_products: {
21293
22547
  Args: never;
21294
22548
  Returns: number;
@@ -21416,6 +22670,13 @@ export type Database = {
21416
22670
  };
21417
22671
  Returns: undefined;
21418
22672
  };
22673
+ ensure_system_roles: {
22674
+ Args: never;
22675
+ Returns: {
22676
+ action: string;
22677
+ role_key: string;
22678
+ }[];
22679
+ };
21419
22680
  ensure_trade_item_stock_row: {
21420
22681
  Args: {
21421
22682
  p_key: string;
@@ -21482,6 +22743,15 @@ export type Database = {
21482
22743
  };
21483
22744
  Returns: string;
21484
22745
  };
22746
+ finish_local_pdf_job: {
22747
+ Args: {
22748
+ _fout?: string;
22749
+ _job_id: string;
22750
+ _status: string;
22751
+ _writer_id: string;
22752
+ };
22753
+ Returns: boolean;
22754
+ };
21485
22755
  floriday_capture_stock_snapshot: {
21486
22756
  Args: never;
21487
22757
  Returns: number;
@@ -21761,6 +23031,36 @@ export type Database = {
21761
23031
  Args: never;
21762
23032
  Returns: string;
21763
23033
  };
23034
+ handover_archief_lijst: {
23035
+ Args: never;
23036
+ Returns: Json;
23037
+ };
23038
+ handover_archiveren: {
23039
+ Args: {
23040
+ _archief?: boolean;
23041
+ _module_id: string;
23042
+ };
23043
+ Returns: boolean;
23044
+ };
23045
+ handover_check_afronden: {
23046
+ Args: {
23047
+ _module_id: string;
23048
+ };
23049
+ Returns: boolean;
23050
+ };
23051
+ handover_check_markeren: {
23052
+ Args: {
23053
+ _module_ids: string[];
23054
+ _reden?: string;
23055
+ };
23056
+ Returns: number;
23057
+ };
23058
+ handover_fingerprint_maken: {
23059
+ Args: {
23060
+ _module_id?: string;
23061
+ };
23062
+ Returns: Json;
23063
+ };
21764
23064
  handover_get: {
21765
23065
  Args: {
21766
23066
  _module_id: string;
@@ -21791,6 +23091,14 @@ export type Database = {
21791
23091
  };
21792
23092
  Returns: boolean;
21793
23093
  };
23094
+ handover_module_meta_zetten: {
23095
+ Args: {
23096
+ _module_id: string;
23097
+ _project_url?: string;
23098
+ _publicatie_url?: string;
23099
+ };
23100
+ Returns: boolean;
23101
+ };
21794
23102
  handover_norm_naam: {
21795
23103
  Args: {
21796
23104
  _naam: string;
@@ -21811,6 +23119,23 @@ export type Database = {
21811
23119
  };
21812
23120
  Returns: number;
21813
23121
  };
23122
+ handover_publish_uit_github: {
23123
+ Args: {
23124
+ _bezit_tabellen?: string[];
23125
+ _bron_soort?: string;
23126
+ _commit?: string;
23127
+ _contractfuncties?: string[];
23128
+ _inhoud_md: string;
23129
+ _module_id: string;
23130
+ _module_titel: string;
23131
+ _ontbrekende_contracten?: string[];
23132
+ _pad?: string;
23133
+ _repo?: string;
23134
+ _samenvatting?: string;
23135
+ _versie_label?: string;
23136
+ };
23137
+ Returns: Json;
23138
+ };
21814
23139
  handover_publish_via_token: {
21815
23140
  Args: {
21816
23141
  _bevindingen?: string;
@@ -21824,7 +23149,7 @@ export type Database = {
21824
23149
  _samenvatting?: string;
21825
23150
  _token_hash: string;
21826
23151
  };
21827
- Returns: number;
23152
+ Returns: Json;
21828
23153
  };
21829
23154
  handover_status: {
21830
23155
  Args: never;
@@ -21836,23 +23161,6 @@ export type Database = {
21836
23161
  };
21837
23162
  Returns: string;
21838
23163
  };
21839
- handover_token_intrekken: {
21840
- Args: {
21841
- _id: string;
21842
- };
21843
- Returns: boolean;
21844
- };
21845
- handover_token_lijst: {
21846
- Args: never;
21847
- Returns: Json;
21848
- };
21849
- handover_token_maken: {
21850
- Args: {
21851
- _label?: string;
21852
- _module_id: string;
21853
- };
21854
- Returns: string;
21855
- };
21856
23164
  handover_update: {
21857
23165
  Args: {
21858
23166
  _bezit_tabellen?: string[];
@@ -21880,12 +23188,31 @@ export type Database = {
21880
23188
  };
21881
23189
  Returns: boolean;
21882
23190
  };
23191
+ handover_versie_verwijderen: {
23192
+ Args: {
23193
+ _module_id: string;
23194
+ _versie: number;
23195
+ };
23196
+ Returns: boolean;
23197
+ };
21883
23198
  handover_versies: {
21884
23199
  Args: {
21885
23200
  _module_id: string;
21886
23201
  };
21887
23202
  Returns: Json;
21888
23203
  };
23204
+ handover_verwijderen: {
23205
+ Args: {
23206
+ _module_id: string;
23207
+ };
23208
+ Returns: boolean;
23209
+ };
23210
+ handover_wijzigingen: {
23211
+ Args: {
23212
+ _module_id?: string;
23213
+ };
23214
+ Returns: Json;
23215
+ };
21889
23216
  has_module_permission: {
21890
23217
  Args: {
21891
23218
  _min: string;
@@ -22154,6 +23481,30 @@ export type Database = {
22154
23481
  };
22155
23482
  Returns: Json;
22156
23483
  };
23484
+ logistics_block_reason_code: {
23485
+ Args: {
23486
+ p_details?: Json;
23487
+ p_reason: string;
23488
+ };
23489
+ Returns: string;
23490
+ };
23491
+ logistics_blocked_orders: {
23492
+ Args: never;
23493
+ Returns: {
23494
+ attempts: number;
23495
+ blocked_since: string;
23496
+ delivery_date: string;
23497
+ order_id: string;
23498
+ order_ref: string;
23499
+ queue_id: string;
23500
+ reason: string;
23501
+ reason_code: string;
23502
+ }[];
23503
+ };
23504
+ logistics_blocked_overview: {
23505
+ Args: never;
23506
+ Returns: Json;
23507
+ };
22157
23508
  logistics_buffer_criteria: {
22158
23509
  Args: {
22159
23510
  p_settings: Json;
@@ -22168,6 +23519,39 @@ export type Database = {
22168
23519
  };
22169
23520
  Returns: Json;
22170
23521
  };
23522
+ logistics_buffer_detach_late_orders: {
23523
+ Args: {
23524
+ p_buffer?: string;
23525
+ };
23526
+ Returns: Json;
23527
+ };
23528
+ logistics_buffer_frozen_order: {
23529
+ Args: {
23530
+ p_order_id: string;
23531
+ };
23532
+ Returns: boolean;
23533
+ };
23534
+ logistics_buffer_handled: {
23535
+ Args: {
23536
+ p_buffer: string;
23537
+ };
23538
+ Returns: boolean;
23539
+ };
23540
+ logistics_buffer_notify: {
23541
+ Args: {
23542
+ p_event_type: string;
23543
+ p_idempotency_key: string;
23544
+ p_order_ref: string;
23545
+ p_payload: Json;
23546
+ };
23547
+ Returns: string;
23548
+ };
23549
+ logistics_buffer_open_key: {
23550
+ Args: {
23551
+ p_base_key: string;
23552
+ };
23553
+ Returns: string;
23554
+ };
22171
23555
  logistics_buffer_simulate: {
22172
23556
  Args: {
22173
23557
  p_orders?: Json;
@@ -22220,6 +23604,13 @@ export type Database = {
22220
23604
  };
22221
23605
  Returns: string;
22222
23606
  };
23607
+ logistics_cart_handled: {
23608
+ Args: {
23609
+ p_cart_index: number;
23610
+ p_order_id: string;
23611
+ };
23612
+ Returns: boolean;
23613
+ };
22223
23614
  logistics_cart_index: {
22224
23615
  Args: {
22225
23616
  p_from?: string;
@@ -22229,6 +23620,9 @@ export type Database = {
22229
23620
  cart_id: string;
22230
23621
  cart_index: number;
22231
23622
  cart_label: string;
23623
+ cart_number: string;
23624
+ cart_seq: number;
23625
+ cart_total: number;
22232
23626
  delivery_date: string;
22233
23627
  is_announced: boolean;
22234
23628
  is_controlled: boolean;
@@ -22243,36 +23637,103 @@ export type Database = {
22243
23637
  task_status: string;
22244
23638
  }[];
22245
23639
  };
22246
- logistics_cart_slip_plan: {
22247
- Args: {
22248
- p_order_id: string;
22249
- };
23640
+ logistics_cart_layout_method: {
23641
+ Args: never;
22250
23642
  Returns: Json;
22251
23643
  };
22252
- logistics_check_order_allowed: {
23644
+ logistics_cart_plan_overview: {
22253
23645
  Args: {
22254
- p_lines: Json;
22255
- p_strategy_id?: string;
23646
+ p_days?: number;
22256
23647
  };
22257
- Returns: Json;
23648
+ Returns: {
23649
+ cart_total: number;
23650
+ delivery_date: string;
23651
+ order_ref: string;
23652
+ plan_ready: boolean;
23653
+ reason: string;
23654
+ released: boolean;
23655
+ }[];
22258
23656
  };
22259
- logistics_check_order_stock: {
23657
+ logistics_cart_plan_status: {
22260
23658
  Args: {
22261
- p_event_id: string;
23659
+ p_ref: string;
22262
23660
  };
22263
- Returns: string;
23661
+ Returns: Json;
22264
23662
  };
22265
- logistics_claim_next_task: {
23663
+ logistics_cart_seq: {
22266
23664
  Args: {
22267
- p_owner_module: string;
22268
- p_worker?: string;
23665
+ p_order_uuid?: string;
22269
23666
  };
22270
23667
  Returns: {
22271
- attempt_log: Json;
22272
- attempts: number;
22273
- buffer_ref: string | null;
22274
- claimed_at: string | null;
22275
- claimed_by: string | null;
23668
+ cart_id: string;
23669
+ cart_index: number;
23670
+ cart_number: string;
23671
+ cart_seq: number;
23672
+ cart_total: number;
23673
+ order_uuid: string;
23674
+ }[];
23675
+ };
23676
+ logistics_cart_slip_plan: {
23677
+ Args: {
23678
+ p_order_id: string;
23679
+ };
23680
+ Returns: Json;
23681
+ };
23682
+ logistics_cart_units: {
23683
+ Args: {
23684
+ p_from?: string;
23685
+ p_to?: string;
23686
+ };
23687
+ Returns: {
23688
+ cart_id: string;
23689
+ cart_index: number;
23690
+ cart_label: string;
23691
+ cart_number: string;
23692
+ cart_seq: number;
23693
+ cart_total: number;
23694
+ delivery_date: string;
23695
+ is_announced: boolean;
23696
+ is_buffer: boolean;
23697
+ is_controlled: boolean;
23698
+ is_printed: boolean;
23699
+ is_shared: boolean;
23700
+ order_number: string;
23701
+ order_source: string;
23702
+ order_uuid: string;
23703
+ pick_date: string;
23704
+ printed_at: string;
23705
+ shifted: boolean;
23706
+ task_status: string;
23707
+ unit_buffer: string;
23708
+ unit_order_count: number;
23709
+ unit_orders: string[];
23710
+ unit_ref: string;
23711
+ }[];
23712
+ };
23713
+ logistics_check_order_allowed: {
23714
+ Args: {
23715
+ p_lines: Json;
23716
+ p_strategy_id?: string;
23717
+ };
23718
+ Returns: Json;
23719
+ };
23720
+ logistics_check_order_stock: {
23721
+ Args: {
23722
+ p_event_id: string;
23723
+ };
23724
+ Returns: string;
23725
+ };
23726
+ logistics_claim_next_task: {
23727
+ Args: {
23728
+ p_owner_module: string;
23729
+ p_worker?: string;
23730
+ };
23731
+ Returns: {
23732
+ attempt_log: Json;
23733
+ attempts: number;
23734
+ buffer_ref: string | null;
23735
+ claimed_at: string | null;
23736
+ claimed_by: string | null;
22276
23737
  completed_at: string | null;
22277
23738
  created_at: string;
22278
23739
  depends_on: string[];
@@ -22404,7 +23865,9 @@ export type Database = {
22404
23865
  announced_carts: number;
22405
23866
  control_carts: number;
22406
23867
  delivery_carts: number;
23868
+ duplicate_carts: number;
22407
23869
  ok: boolean;
23870
+ orphan_carts: number;
22408
23871
  orphan_tasks: number;
22409
23872
  pick_date: string;
22410
23873
  raw_carts: number;
@@ -22412,6 +23875,85 @@ export type Database = {
22412
23875
  station_carts: number;
22413
23876
  }[];
22414
23877
  };
23878
+ logistics_control_scan_approve: {
23879
+ Args: {
23880
+ p_allow_reprint?: boolean;
23881
+ p_barcode: string;
23882
+ p_printer_id?: string;
23883
+ p_scanner_id?: string;
23884
+ };
23885
+ Returns: Json;
23886
+ };
23887
+ logistics_control_scan_claim: {
23888
+ Args: {
23889
+ _lease_seconds?: number;
23890
+ _limit?: number;
23891
+ };
23892
+ Returns: {
23893
+ approved_at: string | null;
23894
+ attempts: number;
23895
+ barcode: string;
23896
+ cart_id: string;
23897
+ created_at: string;
23898
+ document_url: string | null;
23899
+ error: string | null;
23900
+ error_code: string | null;
23901
+ fulfillment_order_id: string | null;
23902
+ id: string;
23903
+ is_floriday: boolean;
23904
+ locked_until: string | null;
23905
+ order_id: string | null;
23906
+ order_number: string | null;
23907
+ print_job_id: string | null;
23908
+ printed_at: string | null;
23909
+ printer_id: string | null;
23910
+ scanner_id: string | null;
23911
+ status: string;
23912
+ updated_at: string;
23913
+ }[];
23914
+ SetofOptions: {
23915
+ from: "*";
23916
+ to: "logistics_control_scan";
23917
+ isOneToOne: false;
23918
+ isSetofReturn: true;
23919
+ };
23920
+ };
23921
+ logistics_control_scan_finish: {
23922
+ Args: {
23923
+ _document_url?: string;
23924
+ _error?: string;
23925
+ _error_code?: string;
23926
+ _fulfillment_order_id?: string;
23927
+ _id: string;
23928
+ _ok: boolean;
23929
+ _print_job_id?: string;
23930
+ _status?: string;
23931
+ };
23932
+ Returns: Json;
23933
+ };
23934
+ logistics_control_scan_lookup: {
23935
+ Args: {
23936
+ p_barcode: string;
23937
+ };
23938
+ Returns: Json;
23939
+ };
23940
+ logistics_control_scan_overview: {
23941
+ Args: {
23942
+ _date?: string;
23943
+ _scanner_id?: string;
23944
+ };
23945
+ Returns: Json;
23946
+ };
23947
+ logistics_control_scan_retry: {
23948
+ Args: {
23949
+ _id: string;
23950
+ };
23951
+ Returns: Json;
23952
+ };
23953
+ logistics_control_settings: {
23954
+ Args: never;
23955
+ Returns: Json;
23956
+ };
22415
23957
  logistics_delay_customer_email: {
22416
23958
  Args: {
22417
23959
  p_customer: string;
@@ -22479,6 +24021,17 @@ export type Database = {
22479
24021
  };
22480
24022
  Returns: Json;
22481
24023
  };
24024
+ logistics_enqueue_sticker_with_slip: {
24025
+ Args: {
24026
+ _cart_id: string;
24027
+ _is_herprint: boolean;
24028
+ _printer_id: string;
24029
+ _queue_item_id: string;
24030
+ _session_id: string;
24031
+ _slip_job_id: string;
24032
+ };
24033
+ Returns: string;
24034
+ };
22482
24035
  logistics_ensure_cart_barcode: {
22483
24036
  Args: {
22484
24037
  _cart_id: string;
@@ -22620,6 +24173,32 @@ export type Database = {
22620
24173
  };
22621
24174
  Returns: string;
22622
24175
  };
24176
+ logistics_fulfill_barcode_requests: {
24177
+ Args: {
24178
+ p_limit?: number;
24179
+ };
24180
+ Returns: Json;
24181
+ };
24182
+ logistics_full_cart_min_layers: {
24183
+ Args: never;
24184
+ Returns: number;
24185
+ };
24186
+ logistics_full_cart_min_percentage: {
24187
+ Args: never;
24188
+ Returns: number;
24189
+ };
24190
+ logistics_is_pick_workday: {
24191
+ Args: {
24192
+ p_date: string;
24193
+ };
24194
+ Returns: boolean;
24195
+ };
24196
+ logistics_link_order_items: {
24197
+ Args: {
24198
+ p_order?: string;
24199
+ };
24200
+ Returns: Json;
24201
+ };
22623
24202
  logistics_live_carriers: {
22624
24203
  Args: {
22625
24204
  p_order_ref: string;
@@ -22632,6 +24211,26 @@ export type Database = {
22632
24211
  };
22633
24212
  Returns: number;
22634
24213
  };
24214
+ logistics_next_workday_date: {
24215
+ Args: {
24216
+ p_date: string;
24217
+ p_days?: string[];
24218
+ };
24219
+ Returns: string;
24220
+ };
24221
+ logistics_next_workday_not_past: {
24222
+ Args: {
24223
+ p_days: string[];
24224
+ p_ts: string;
24225
+ };
24226
+ Returns: string;
24227
+ };
24228
+ logistics_normalize_product_label: {
24229
+ Args: {
24230
+ p_label: string;
24231
+ };
24232
+ Returns: string;
24233
+ };
22635
24234
  logistics_not_past: {
22636
24235
  Args: {
22637
24236
  p_ts: string;
@@ -22644,6 +24243,19 @@ export type Database = {
22644
24243
  };
22645
24244
  Returns: number;
22646
24245
  };
24246
+ logistics_order_handled: {
24247
+ Args: {
24248
+ p_order_uuid: string;
24249
+ };
24250
+ Returns: boolean;
24251
+ };
24252
+ logistics_order_is_topick: {
24253
+ Args: {
24254
+ p_order_id: string;
24255
+ p_order_number: string;
24256
+ };
24257
+ Returns: boolean;
24258
+ };
22647
24259
  logistics_order_overview: {
22648
24260
  Args: {
22649
24261
  p_from?: string;
@@ -22669,6 +24281,12 @@ export type Database = {
22669
24281
  };
22670
24282
  Returns: string;
22671
24283
  };
24284
+ logistics_order_released: {
24285
+ Args: {
24286
+ p_order_ref: string;
24287
+ };
24288
+ Returns: boolean;
24289
+ };
22672
24290
  logistics_parse_pickup: {
22673
24291
  Args: {
22674
24292
  p_value: string;
@@ -22691,10 +24309,37 @@ export type Database = {
22691
24309
  shifted_count: number;
22692
24310
  }[];
22693
24311
  };
24312
+ logistics_pick_barcode_enabled: {
24313
+ Args: never;
24314
+ Returns: boolean;
24315
+ };
22694
24316
  logistics_pick_email_purpose: {
22695
24317
  Args: never;
22696
24318
  Returns: string;
22697
24319
  };
24320
+ logistics_pick_mode: {
24321
+ Args: never;
24322
+ Returns: Json;
24323
+ };
24324
+ logistics_pick_start_estimate: {
24325
+ Args: {
24326
+ p_order: Json;
24327
+ s: Json;
24328
+ };
24329
+ Returns: string;
24330
+ };
24331
+ logistics_pick_units: {
24332
+ Args: never;
24333
+ Returns: {
24334
+ is_buffer: boolean;
24335
+ order_number: string;
24336
+ order_uuid: string;
24337
+ unit_buffer: string;
24338
+ unit_order_count: number;
24339
+ unit_orders: string[];
24340
+ unit_ref: string;
24341
+ }[];
24342
+ };
22698
24343
  logistics_plan_all: {
22699
24344
  Args: {
22700
24345
  p_user_id?: string;
@@ -22774,6 +24419,12 @@ export type Database = {
22774
24419
  Args: never;
22775
24420
  Returns: number;
22776
24421
  };
24422
+ logistics_plan_retry: {
24423
+ Args: {
24424
+ p_order_ids: string[];
24425
+ };
24426
+ Returns: number;
24427
+ };
22777
24428
  logistics_plan_setting: {
22778
24429
  Args: {
22779
24430
  p_default: number;
@@ -22781,6 +24432,14 @@ export type Database = {
22781
24432
  };
22782
24433
  Returns: number;
22783
24434
  };
24435
+ logistics_prune_buffer_member_queue: {
24436
+ Args: never;
24437
+ Returns: number;
24438
+ };
24439
+ logistics_prune_handled_pick_queue: {
24440
+ Args: never;
24441
+ Returns: number;
24442
+ };
22784
24443
  logistics_queue_capacity_email: {
22785
24444
  Args: {
22786
24445
  p_alert_id: string;
@@ -22813,6 +24472,12 @@ export type Database = {
22813
24472
  Args: never;
22814
24473
  Returns: Json;
22815
24474
  };
24475
+ logistics_refresh_pickup_moments: {
24476
+ Args: {
24477
+ p_weeks?: number;
24478
+ };
24479
+ Returns: Json;
24480
+ };
22816
24481
  logistics_report_delay: {
22817
24482
  Args: {
22818
24483
  p_expected_date?: string;
@@ -22866,6 +24531,12 @@ export type Database = {
22866
24531
  };
22867
24532
  Returns: Json;
22868
24533
  };
24534
+ logistics_resolve_product_id: {
24535
+ Args: {
24536
+ p_label: string;
24537
+ };
24538
+ Returns: string;
24539
+ };
22869
24540
  logistics_resolve_settings: {
22870
24541
  Args: {
22871
24542
  p_config_id: string;
@@ -22919,6 +24590,12 @@ export type Database = {
22919
24590
  };
22920
24591
  Returns: string;
22921
24592
  };
24593
+ logistics_scan_resolve: {
24594
+ Args: {
24595
+ p_code: string;
24596
+ };
24597
+ Returns: Json;
24598
+ };
22922
24599
  logistics_schedule_tasks: {
22923
24600
  Args: never;
22924
24601
  Returns: number;
@@ -22953,6 +24630,10 @@ export type Database = {
22953
24630
  };
22954
24631
  Returns: Json;
22955
24632
  };
24633
+ logistics_sticker_follows_slip: {
24634
+ Args: never;
24635
+ Returns: boolean;
24636
+ };
22956
24637
  logistics_supersede_stale_tasks: {
22957
24638
  Args: {
22958
24639
  p_keep: string[];
@@ -22985,6 +24666,10 @@ export type Database = {
22985
24666
  };
22986
24667
  Returns: number;
22987
24668
  };
24669
+ logistics_tick_ping: {
24670
+ Args: never;
24671
+ Returns: string;
24672
+ };
22988
24673
  logistics_upsert_task: {
22989
24674
  Args: {
22990
24675
  p_buffer_ref: string;
@@ -23004,6 +24689,18 @@ export type Database = {
23004
24689
  };
23005
24690
  Returns: string;
23006
24691
  };
24692
+ logistics_write_buffer_layer_positions: {
24693
+ Args: {
24694
+ p_buffer_id: string;
24695
+ };
24696
+ Returns: number;
24697
+ };
24698
+ logistics_write_cart_layer_positions: {
24699
+ Args: {
24700
+ p_cart_id: string;
24701
+ };
24702
+ Returns: number;
24703
+ };
23007
24704
  mark_offer_clicked: {
23008
24705
  Args: {
23009
24706
  p_code: string;
@@ -23036,6 +24733,15 @@ export type Database = {
23036
24733
  };
23037
24734
  Returns: undefined;
23038
24735
  };
24736
+ move_cart_layer_position: {
24737
+ Args: {
24738
+ p_id: string;
24739
+ p_layer: number;
24740
+ p_x: number;
24741
+ p_y: number;
24742
+ };
24743
+ Returns: undefined;
24744
+ };
23039
24745
  my_module_permissions: {
23040
24746
  Args: never;
23041
24747
  Returns: {
@@ -23107,6 +24813,12 @@ export type Database = {
23107
24813
  };
23108
24814
  Returns: Json;
23109
24815
  };
24816
+ order_heeft_bevestigde_karren: {
24817
+ Args: {
24818
+ p_order_id: string;
24819
+ };
24820
+ Returns: boolean;
24821
+ };
23110
24822
  order_number_prefix: {
23111
24823
  Args: {
23112
24824
  p_custom_fields?: Json;
@@ -23142,19 +24854,146 @@ export type Database = {
23142
24854
  online: boolean;
23143
24855
  }[];
23144
24856
  };
23145
- pick_claim_document: {
24857
+ pick_available_pick_days: {
23146
24858
  Args: {
23147
- _queue_item_id: string;
23148
- _screen_id: string;
23149
- _session_id: string;
23150
- _station_id: string;
23151
- _timeout_seconds?: number;
24859
+ _max_days?: number;
23152
24860
  };
23153
24861
  Returns: {
23154
- announced_at: string;
23155
- assigned_user_id: string | null;
23156
- barcode: string | null;
23157
- cancelled_at: string | null;
24862
+ orders: number;
24863
+ pick_day: string;
24864
+ }[];
24865
+ };
24866
+ pick_buffer_order_ids: {
24867
+ Args: {
24868
+ _order_id: string;
24869
+ };
24870
+ Returns: string[];
24871
+ };
24872
+ pick_cart_breakdown: {
24873
+ Args: {
24874
+ _order_id: string;
24875
+ };
24876
+ Returns: Json;
24877
+ };
24878
+ pick_claim_document: {
24879
+ Args: {
24880
+ _queue_item_id: string;
24881
+ _screen_id: string;
24882
+ _session_id: string;
24883
+ _station_id: string;
24884
+ _timeout_seconds?: number;
24885
+ };
24886
+ Returns: {
24887
+ announced_at: string;
24888
+ assigned_user_id: string | null;
24889
+ barcode: string | null;
24890
+ cancelled_at: string | null;
24891
+ cart_count: number;
24892
+ completed_at: string | null;
24893
+ country_code: string | null;
24894
+ created_at: string;
24895
+ customer_name: string | null;
24896
+ delivery_address: string | null;
24897
+ document_number: string | null;
24898
+ document_type_id: string | null;
24899
+ due_at: string | null;
24900
+ id: string;
24901
+ is_urgent: boolean;
24902
+ line_count: number;
24903
+ order_number: string | null;
24904
+ order_type: string | null;
24905
+ payload: Json;
24906
+ print_count: number;
24907
+ print_job_id: string | null;
24908
+ printed_at: string | null;
24909
+ printed_by: string | null;
24910
+ printed_cart_ids: Json;
24911
+ printer_id: string | null;
24912
+ priority: number;
24913
+ reference: string | null;
24914
+ route: string | null;
24915
+ screen_id: string | null;
24916
+ station_id: string | null;
24917
+ status_id: string | null;
24918
+ updated_at: string;
24919
+ warnings: Json;
24920
+ };
24921
+ SetofOptions: {
24922
+ from: "*";
24923
+ to: "pick_queue";
24924
+ isOneToOne: true;
24925
+ isSetofReturn: false;
24926
+ };
24927
+ };
24928
+ pick_claim_next_document: {
24929
+ Args: {
24930
+ _country_code: string;
24931
+ _pick_day?: string;
24932
+ _screen_id: string;
24933
+ _session_id: string;
24934
+ _station_id: string;
24935
+ _timeout_seconds?: number;
24936
+ };
24937
+ Returns: {
24938
+ announced_at: string;
24939
+ assigned_user_id: string | null;
24940
+ barcode: string | null;
24941
+ cancelled_at: string | null;
24942
+ cart_count: number;
24943
+ completed_at: string | null;
24944
+ country_code: string | null;
24945
+ created_at: string;
24946
+ customer_name: string | null;
24947
+ delivery_address: string | null;
24948
+ document_number: string | null;
24949
+ document_type_id: string | null;
24950
+ due_at: string | null;
24951
+ id: string;
24952
+ is_urgent: boolean;
24953
+ line_count: number;
24954
+ order_number: string | null;
24955
+ order_type: string | null;
24956
+ payload: Json;
24957
+ print_count: number;
24958
+ print_job_id: string | null;
24959
+ printed_at: string | null;
24960
+ printed_by: string | null;
24961
+ printed_cart_ids: Json;
24962
+ printer_id: string | null;
24963
+ priority: number;
24964
+ reference: string | null;
24965
+ route: string | null;
24966
+ screen_id: string | null;
24967
+ station_id: string | null;
24968
+ status_id: string | null;
24969
+ updated_at: string;
24970
+ warnings: Json;
24971
+ };
24972
+ SetofOptions: {
24973
+ from: "*";
24974
+ to: "pick_queue";
24975
+ isOneToOne: true;
24976
+ isSetofReturn: false;
24977
+ };
24978
+ };
24979
+ pick_cleanup_maintenance: {
24980
+ Args: {
24981
+ _heartbeat_hours?: number;
24982
+ _log_days?: number;
24983
+ };
24984
+ Returns: Json;
24985
+ };
24986
+ pick_complete_print: {
24987
+ Args: {
24988
+ _printer_id: string;
24989
+ _queue_item_id: string;
24990
+ _session_id: string;
24991
+ };
24992
+ Returns: {
24993
+ announced_at: string;
24994
+ assigned_user_id: string | null;
24995
+ barcode: string | null;
24996
+ cancelled_at: string | null;
23158
24997
  cart_count: number;
23159
24998
  completed_at: string | null;
23160
24999
  country_code: string | null;
@@ -23185,20 +25024,244 @@ export type Database = {
23185
25024
  updated_at: string;
23186
25025
  warnings: Json;
23187
25026
  };
23188
- SetofOptions: {
23189
- from: "*";
23190
- to: "pick_queue";
23191
- isOneToOne: true;
23192
- isSetofReturn: false;
25027
+ SetofOptions: {
25028
+ from: "*";
25029
+ to: "pick_queue";
25030
+ isOneToOne: true;
25031
+ isSetofReturn: false;
25032
+ };
25033
+ };
25034
+ pick_complete_print_cart: {
25035
+ Args: {
25036
+ _cart_id: string;
25037
+ _printer_id: string;
25038
+ _queue_item_id: string;
25039
+ _session_id: string;
25040
+ };
25041
+ Returns: {
25042
+ announced_at: string;
25043
+ assigned_user_id: string | null;
25044
+ barcode: string | null;
25045
+ cancelled_at: string | null;
25046
+ cart_count: number;
25047
+ completed_at: string | null;
25048
+ country_code: string | null;
25049
+ created_at: string;
25050
+ customer_name: string | null;
25051
+ delivery_address: string | null;
25052
+ document_number: string | null;
25053
+ document_type_id: string | null;
25054
+ due_at: string | null;
25055
+ id: string;
25056
+ is_urgent: boolean;
25057
+ line_count: number;
25058
+ order_number: string | null;
25059
+ order_type: string | null;
25060
+ payload: Json;
25061
+ print_count: number;
25062
+ print_job_id: string | null;
25063
+ printed_at: string | null;
25064
+ printed_by: string | null;
25065
+ printed_cart_ids: Json;
25066
+ printer_id: string | null;
25067
+ priority: number;
25068
+ reference: string | null;
25069
+ route: string | null;
25070
+ screen_id: string | null;
25071
+ station_id: string | null;
25072
+ status_id: string | null;
25073
+ updated_at: string;
25074
+ warnings: Json;
25075
+ };
25076
+ SetofOptions: {
25077
+ from: "*";
25078
+ to: "pick_queue";
25079
+ isOneToOne: true;
25080
+ isSetofReturn: false;
25081
+ };
25082
+ };
25083
+ pick_complete_print_carts: {
25084
+ Args: {
25085
+ _cart_ids: string[];
25086
+ _queue_item_id: string;
25087
+ _session_id: string;
25088
+ };
25089
+ Returns: Json;
25090
+ };
25091
+ pick_current_pick_day: {
25092
+ Args: never;
25093
+ Returns: string;
25094
+ };
25095
+ pick_day_counts: {
25096
+ Args: {
25097
+ _pick_day?: string;
25098
+ _screen_id?: string;
25099
+ _station_id?: string;
25100
+ };
25101
+ Returns: Json;
25102
+ };
25103
+ pick_document_layout_data: {
25104
+ Args: {
25105
+ _layout_id: string;
25106
+ };
25107
+ Returns: Json;
25108
+ };
25109
+ pick_enqueue_print_job: {
25110
+ Args: {
25111
+ _is_herprint?: boolean;
25112
+ _printer_id?: string;
25113
+ _queue_item_id: string;
25114
+ _session_id?: string;
25115
+ };
25116
+ Returns: string;
25117
+ } | {
25118
+ Args: {
25119
+ _cart_id: string;
25120
+ _is_herprint: boolean;
25121
+ _printer_id: string;
25122
+ _queue_item_id: string;
25123
+ _session_id: string;
25124
+ };
25125
+ Returns: string;
25126
+ };
25127
+ pick_enqueue_print_job_from_cart: {
25128
+ Args: {
25129
+ _cart_id: string;
25130
+ _is_herprint: boolean;
25131
+ _printer_id: string;
25132
+ _queue_item_id: string;
25133
+ _selected_cart: Json;
25134
+ _session_id: string;
25135
+ };
25136
+ Returns: string;
25137
+ };
25138
+ pick_mark_printed: {
25139
+ Args: {
25140
+ _queue_item_id: string;
25141
+ _reden?: string;
25142
+ _session_id: string;
25143
+ };
25144
+ Returns: {
25145
+ announced_at: string;
25146
+ assigned_user_id: string | null;
25147
+ barcode: string | null;
25148
+ cancelled_at: string | null;
25149
+ cart_count: number;
25150
+ completed_at: string | null;
25151
+ country_code: string | null;
25152
+ created_at: string;
25153
+ customer_name: string | null;
25154
+ delivery_address: string | null;
25155
+ document_number: string | null;
25156
+ document_type_id: string | null;
25157
+ due_at: string | null;
25158
+ id: string;
25159
+ is_urgent: boolean;
25160
+ line_count: number;
25161
+ order_number: string | null;
25162
+ order_type: string | null;
25163
+ payload: Json;
25164
+ print_count: number;
25165
+ print_job_id: string | null;
25166
+ printed_at: string | null;
25167
+ printed_by: string | null;
25168
+ printed_cart_ids: Json;
25169
+ printer_id: string | null;
25170
+ priority: number;
25171
+ reference: string | null;
25172
+ route: string | null;
25173
+ screen_id: string | null;
25174
+ station_id: string | null;
25175
+ status_id: string | null;
25176
+ updated_at: string;
25177
+ warnings: Json;
25178
+ };
25179
+ SetofOptions: {
25180
+ from: "*";
25181
+ to: "pick_queue";
25182
+ isOneToOne: true;
25183
+ isSetofReturn: false;
25184
+ };
25185
+ };
25186
+ pick_order_context: {
25187
+ Args: {
25188
+ _order_id?: string;
25189
+ _order_number?: string;
25190
+ };
25191
+ Returns: Json;
25192
+ };
25193
+ pick_preview_job: {
25194
+ Args: {
25195
+ _queue_item_id: string;
25196
+ _station_slug: string;
25197
+ };
25198
+ Returns: Json;
25199
+ };
25200
+ pick_print_job_status: {
25201
+ Args: {
25202
+ _job_id: string;
25203
+ };
25204
+ Returns: Json;
25205
+ };
25206
+ pick_print_jobs_status: {
25207
+ Args: {
25208
+ _job_ids: string[];
25209
+ };
25210
+ Returns: Json[];
25211
+ };
25212
+ pick_print_plekken: {
25213
+ Args: never;
25214
+ Returns: {
25215
+ id: string;
25216
+ naam: string;
25217
+ omschrijving: string;
25218
+ }[];
25219
+ };
25220
+ pick_queue_cart_plan: {
25221
+ Args: {
25222
+ _queue_item_id: string;
25223
+ };
25224
+ Returns: Json;
25225
+ };
25226
+ pick_reference_data_status: {
25227
+ Args: never;
25228
+ Returns: Json;
25229
+ };
25230
+ pick_release_expired_locks: {
25231
+ Args: never;
25232
+ Returns: number;
25233
+ };
25234
+ pick_release_lock: {
25235
+ Args: {
25236
+ _queue_item_id: string;
25237
+ };
25238
+ Returns: undefined;
25239
+ };
25240
+ pick_report_missing_cart_plan: {
25241
+ Args: never;
25242
+ Returns: Json;
25243
+ };
25244
+ pick_reprint_cart: {
25245
+ Args: {
25246
+ _cart_id: string;
25247
+ _queue_item_id: string;
25248
+ _session_id: string;
25249
+ _throttle_seconds?: number;
25250
+ };
25251
+ Returns: string;
25252
+ };
25253
+ pick_reprint_document: {
25254
+ Args: {
25255
+ _queue_item_id: string;
25256
+ _session_id: string;
25257
+ _throttle_seconds?: number;
23193
25258
  };
25259
+ Returns: string;
23194
25260
  };
23195
- pick_claim_next_document: {
25261
+ pick_reset_print: {
23196
25262
  Args: {
23197
- _country_code: string;
23198
- _screen_id: string;
25263
+ _queue_item_id: string;
23199
25264
  _session_id: string;
23200
- _station_id: string;
23201
- _timeout_seconds?: number;
23202
25265
  };
23203
25266
  Returns: {
23204
25267
  announced_at: string;
@@ -23241,17 +25304,9 @@ export type Database = {
23241
25304
  isOneToOne: true;
23242
25305
  isSetofReturn: false;
23243
25306
  };
23244
- };
23245
- pick_cleanup_maintenance: {
23246
- Args: {
23247
- _heartbeat_hours?: number;
23248
- _log_days?: number;
23249
- };
23250
- Returns: Json;
23251
- };
23252
- pick_complete_print: {
25307
+ } | {
23253
25308
  Args: {
23254
- _printer_id: string;
25309
+ _cart_id?: string;
23255
25310
  _queue_item_id: string;
23256
25311
  _session_id: string;
23257
25312
  };
@@ -23297,10 +25352,10 @@ export type Database = {
23297
25352
  isSetofReturn: false;
23298
25353
  };
23299
25354
  };
23300
- pick_complete_print_cart: {
25355
+ pick_reset_print_job: {
23301
25356
  Args: {
23302
25357
  _cart_id: string;
23303
- _printer_id: string;
25358
+ _job_id: string;
23304
25359
  _queue_item_id: string;
23305
25360
  _session_id: string;
23306
25361
  };
@@ -23346,94 +25401,10 @@ export type Database = {
23346
25401
  isSetofReturn: false;
23347
25402
  };
23348
25403
  };
23349
- pick_current_pick_day: {
23350
- Args: never;
23351
- Returns: string;
23352
- };
23353
- pick_day_counts: {
23354
- Args: {
23355
- _pick_day?: string;
23356
- _screen_id?: string;
23357
- _station_id?: string;
23358
- };
23359
- Returns: Json;
23360
- };
23361
- pick_document_layout_data: {
23362
- Args: {
23363
- _layout_id: string;
23364
- };
23365
- Returns: Json;
23366
- };
23367
- pick_enqueue_print_job: {
23368
- Args: {
23369
- _is_herprint?: boolean;
23370
- _printer_id?: string;
23371
- _queue_item_id: string;
23372
- _session_id?: string;
23373
- };
23374
- Returns: string;
23375
- } | {
23376
- Args: {
23377
- _cart_id: string;
23378
- _is_herprint: boolean;
23379
- _printer_id: string;
23380
- _queue_item_id: string;
23381
- _session_id: string;
23382
- };
23383
- Returns: string;
23384
- };
23385
- pick_order_context: {
23386
- Args: {
23387
- _order_id?: string;
23388
- _order_number?: string;
23389
- };
23390
- Returns: Json;
23391
- };
23392
- pick_preview_job: {
23393
- Args: {
23394
- _queue_item_id: string;
23395
- _station_slug: string;
23396
- };
23397
- Returns: Json;
23398
- };
23399
- pick_print_job_status: {
23400
- Args: {
23401
- _job_id: string;
23402
- };
23403
- Returns: Json;
23404
- };
23405
- pick_print_plekken: {
23406
- Args: never;
23407
- Returns: {
23408
- id: string;
23409
- naam: string;
23410
- omschrijving: string;
23411
- }[];
23412
- };
23413
- pick_reference_data_status: {
23414
- Args: never;
23415
- Returns: Json;
23416
- };
23417
- pick_release_expired_locks: {
23418
- Args: never;
23419
- Returns: number;
23420
- };
23421
- pick_release_lock: {
23422
- Args: {
23423
- _queue_item_id: string;
23424
- };
23425
- Returns: undefined;
23426
- };
23427
- pick_reprint_document: {
23428
- Args: {
23429
- _queue_item_id: string;
23430
- _session_id: string;
23431
- _throttle_seconds?: number;
23432
- };
23433
- Returns: string;
23434
- };
23435
- pick_reset_print: {
25404
+ pick_reset_print_jobs: {
23436
25405
  Args: {
25406
+ _cart_ids: string[];
25407
+ _job_ids: string[];
23437
25408
  _queue_item_id: string;
23438
25409
  _session_id: string;
23439
25410
  };
@@ -23478,9 +25449,9 @@ export type Database = {
23478
25449
  isOneToOne: true;
23479
25450
  isSetofReturn: false;
23480
25451
  };
23481
- } | {
25452
+ };
25453
+ pick_restore_to_queue: {
23482
25454
  Args: {
23483
- _cart_id?: string;
23484
25455
  _queue_item_id: string;
23485
25456
  _session_id: string;
23486
25457
  };
@@ -23575,6 +25546,12 @@ export type Database = {
23575
25546
  };
23576
25547
  Returns: string;
23577
25548
  };
25549
+ pick_sync_pick_day: {
25550
+ Args: {
25551
+ _day: string;
25552
+ };
25553
+ Returns: Json;
25554
+ };
23578
25555
  pick_sync_queue_throttled: {
23579
25556
  Args: {
23580
25557
  _min_seconds?: number;
@@ -23804,6 +25781,26 @@ export type Database = {
23804
25781
  };
23805
25782
  Returns: boolean;
23806
25783
  };
25784
+ release_job_lock: {
25785
+ Args: {
25786
+ _key: string;
25787
+ };
25788
+ Returns: undefined;
25789
+ };
25790
+ release_local_pdf_job: {
25791
+ Args: {
25792
+ _job_id: string;
25793
+ _writer_id: string;
25794
+ };
25795
+ Returns: boolean;
25796
+ };
25797
+ release_print_queue_lease: {
25798
+ Args: {
25799
+ _houder: string;
25800
+ _naam: string;
25801
+ };
25802
+ Returns: boolean;
25803
+ };
23807
25804
  release_stale_order_invoice_links: {
23808
25805
  Args: {
23809
25806
  _minutes?: number;
@@ -23824,6 +25821,12 @@ export type Database = {
23824
25821
  };
23825
25822
  Returns: Json;
23826
25823
  };
25824
+ reset_cart_layer_positions: {
25825
+ Args: {
25826
+ p_cart_id: string;
25827
+ };
25828
+ Returns: number;
25829
+ };
23827
25830
  reset_floriday_sync_cursor: {
23828
25831
  Args: {
23829
25832
  p_connection_id: string;
@@ -23887,6 +25890,15 @@ export type Database = {
23887
25890
  };
23888
25891
  Returns: Json;
23889
25892
  };
25893
+ roles_without_enum_mapping: {
25894
+ Args: never;
25895
+ Returns: {
25896
+ assignment_count: number;
25897
+ id: string;
25898
+ key: string;
25899
+ name: string;
25900
+ }[];
25901
+ };
23890
25902
  ruim_print_jobs_op: {
23891
25903
  Args: {
23892
25904
  _bewaar_dagen?: number;
@@ -23901,6 +25913,10 @@ export type Database = {
23901
25913
  Args: never;
23902
25914
  Returns: undefined;
23903
25915
  };
25916
+ run_floriday_stock_reconcile: {
25917
+ Args: never;
25918
+ Returns: undefined;
25919
+ };
23904
25920
  run_logistics_tasks_dispatch: {
23905
25921
  Args: never;
23906
25922
  Returns: undefined;
@@ -23919,18 +25935,98 @@ export type Database = {
23919
25935
  };
23920
25936
  Returns: Json;
23921
25937
  };
25938
+ scan_complete_cart: {
25939
+ Args: {
25940
+ p_allow_reprint?: boolean;
25941
+ p_cart_id: string;
25942
+ p_print?: boolean;
25943
+ p_scanner_id?: string;
25944
+ };
25945
+ Returns: Json;
25946
+ };
23922
25947
  scan_dashboard_stats: {
23923
25948
  Args: {
23924
25949
  p_dagen?: number;
23925
25950
  };
23926
25951
  Returns: Json;
23927
25952
  };
25953
+ scan_eindcontrole: {
25954
+ Args: {
25955
+ p_barcode: string;
25956
+ p_scanner_id?: string;
25957
+ };
25958
+ Returns: Json;
25959
+ };
23928
25960
  scan_finish_kar: {
23929
25961
  Args: {
23930
25962
  p_kar_id: string;
23931
25963
  };
23932
25964
  Returns: Json;
23933
25965
  };
25966
+ scan_kar_compleet: {
25967
+ Args: {
25968
+ p_allow_reprint?: boolean;
25969
+ p_sessie_id: string;
25970
+ };
25971
+ Returns: Json;
25972
+ };
25973
+ scan_kar_regels: {
25974
+ Args: {
25975
+ p_cart_id: string;
25976
+ };
25977
+ Returns: Json;
25978
+ };
25979
+ scan_log_code: {
25980
+ Args: {
25981
+ p_code: string;
25982
+ p_latency_ms?: number;
25983
+ p_message?: string;
25984
+ p_result: string;
25985
+ p_scanner_key?: string;
25986
+ };
25987
+ Returns: string;
25988
+ };
25989
+ scan_open_pakbonnen: {
25990
+ Args: {
25991
+ p_dagen?: number;
25992
+ };
25993
+ Returns: Json;
25994
+ };
25995
+ scan_pakbon_lookup: {
25996
+ Args: {
25997
+ p_barcode: string;
25998
+ };
25999
+ Returns: Json;
26000
+ };
26001
+ scan_pakbon_opnieuw: {
26002
+ Args: {
26003
+ p_barcode: string;
26004
+ p_scanner_id?: string;
26005
+ };
26006
+ Returns: Json;
26007
+ };
26008
+ scan_pakbon_toevoegen: {
26009
+ Args: {
26010
+ p_barcode: string;
26011
+ p_medewerker?: string;
26012
+ p_regels?: Json;
26013
+ p_scanner_id: string;
26014
+ };
26015
+ Returns: Json;
26016
+ };
26017
+ scan_print_restpakbon: {
26018
+ Args: {
26019
+ p_printer_id?: string;
26020
+ p_restpakbon_id: string;
26021
+ };
26022
+ Returns: Json;
26023
+ };
26024
+ scan_print_verzendbrief: {
26025
+ Args: {
26026
+ p_sessie_id: string;
26027
+ };
26028
+ Returns: Json;
26029
+ };
23934
26030
  scan_register_item: {
23935
26031
  Args: {
23936
26032
  p_kar_id: string;
@@ -23949,6 +26045,25 @@ export type Database = {
23949
26045
  };
23950
26046
  Returns: Json;
23951
26047
  };
26048
+ scan_restpakbon_geprint: {
26049
+ Args: {
26050
+ p_id: string;
26051
+ p_print_job_id?: string;
26052
+ };
26053
+ Returns: undefined;
26054
+ };
26055
+ scan_sessie_annuleren: {
26056
+ Args: {
26057
+ p_sessie_id: string;
26058
+ };
26059
+ Returns: undefined;
26060
+ };
26061
+ scan_sessie_open: {
26062
+ Args: {
26063
+ p_scanner_id: string;
26064
+ };
26065
+ Returns: Json;
26066
+ };
23952
26067
  scan_start_kar: {
23953
26068
  Args: {
23954
26069
  p_medewerker_id?: string;
@@ -23967,6 +26082,12 @@ export type Database = {
23967
26082
  };
23968
26083
  Returns: Json;
23969
26084
  };
26085
+ scan_verzendbrief_regels: {
26086
+ Args: {
26087
+ p_sessie_id: string;
26088
+ };
26089
+ Returns: Json;
26090
+ };
23970
26091
  schedule_floriday_additional_services_sync: {
23971
26092
  Args: {
23972
26093
  p_apikey: string;
@@ -24282,6 +26403,13 @@ export type Database = {
24282
26403
  };
24283
26404
  Returns: Json;
24284
26405
  };
26406
+ swap_cart_layer_positions: {
26407
+ Args: {
26408
+ p_a: string;
26409
+ p_b: string;
26410
+ };
26411
+ Returns: undefined;
26412
+ };
24285
26413
  switch_time_log: {
24286
26414
  Args: {
24287
26415
  p_employee_id: string;
@@ -24314,6 +26442,12 @@ export type Database = {
24314
26442
  };
24315
26443
  Returns: undefined;
24316
26444
  };
26445
+ sync_order_item_fusten: {
26446
+ Args: {
26447
+ _order_item_id: string;
26448
+ };
26449
+ Returns: undefined;
26450
+ };
24317
26451
  sync_product_group_belading: {
24318
26452
  Args: {
24319
26453
  _group_id: string;
@@ -24341,6 +26475,14 @@ export type Database = {
24341
26475
  row_count: number;
24342
26476
  }[];
24343
26477
  };
26478
+ try_acquire_job_lock: {
26479
+ Args: {
26480
+ _key: string;
26481
+ _owner?: string;
26482
+ _seconds?: number;
26483
+ };
26484
+ Returns: boolean;
26485
+ };
24344
26486
  try_debtor_lock: {
24345
26487
  Args: {
24346
26488
  _group_key: string;
@@ -24420,6 +26562,12 @@ export type Database = {
24420
26562
  Args: never;
24421
26563
  Returns: string;
24422
26564
  };
26565
+ wake_print_queue: {
26566
+ Args: {
26567
+ _min_interval_ms?: number;
26568
+ };
26569
+ Returns: number;
26570
+ };
24423
26571
  werkbon_totalen: {
24424
26572
  Args: {
24425
26573
  _werkbon_id: string;
@@ -24452,10 +26600,18 @@ export type Database = {
24452
26600
  };
24453
26601
  Returns: Json;
24454
26602
  };
26603
+ wo_set_status: {
26604
+ Args: {
26605
+ _reason?: string;
26606
+ _status: string;
26607
+ _work_order_id: string;
26608
+ };
26609
+ Returns: Json;
26610
+ };
24455
26611
  };
24456
26612
  Enums: {
24457
26613
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24458
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26614
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24459
26615
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24460
26616
  doc_orientation: "portrait" | "landscape";
24461
26617
  exact_env: "staging" | "live";
@@ -24526,7 +26682,7 @@ export declare const Constants: {
24526
26682
  readonly public: {
24527
26683
  readonly Enums: {
24528
26684
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
24529
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
26685
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24530
26686
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24531
26687
  readonly doc_orientation: readonly ["portrait", "landscape"];
24532
26688
  readonly exact_env: readonly ["staging", "live"];