@flowselections/layout-maker 1.38.4 → 1.45.9

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 (110) hide show
  1. package/dist-lib/components/AfleverbriefBuilderPage.d.ts +10 -0
  2. package/dist-lib/components/AfleverbriefBuilderPage.d.ts.map +1 -0
  3. package/dist-lib/components/AfleverbriefBuilderPage.js +101 -0
  4. package/dist-lib/components/BlokOntwerperPage.d.ts.map +1 -1
  5. package/dist-lib/components/BlokOntwerperPage.js +8 -3
  6. package/dist-lib/components/ComputersLijst.d.ts.map +1 -1
  7. package/dist-lib/components/ComputersLijst.js +1 -1
  8. package/dist-lib/components/FustKolomVolgorde.d.ts +11 -0
  9. package/dist-lib/components/FustKolomVolgorde.d.ts.map +1 -0
  10. package/dist-lib/components/FustKolomVolgorde.js +52 -0
  11. package/dist-lib/components/LayoutsPage.d.ts.map +1 -1
  12. package/dist-lib/components/LayoutsPage.js +10 -9
  13. package/dist-lib/components/PakbonBuilderPage.d.ts.map +1 -1
  14. package/dist-lib/components/PakbonBuilderPage.js +32 -14
  15. package/dist-lib/components/PakbonPreview.d.ts.map +1 -1
  16. package/dist-lib/components/PakbonPreview.js +21 -14
  17. package/dist-lib/components/PakbonSectiesPanel.d.ts +4 -2
  18. package/dist-lib/components/PakbonSectiesPanel.d.ts.map +1 -1
  19. package/dist-lib/components/PakbonSectiesPanel.js +5 -3
  20. package/dist-lib/components/PdfMapToestemmingBanner.d.ts +2 -1
  21. package/dist-lib/components/PdfMapToestemmingBanner.d.ts.map +1 -1
  22. package/dist-lib/components/PdfMapToestemmingBanner.js +124 -18
  23. package/dist-lib/components/PdfVoorbeeld.d.ts +20 -0
  24. package/dist-lib/components/PdfVoorbeeld.d.ts.map +1 -0
  25. package/dist-lib/components/PdfVoorbeeld.js +95 -0
  26. package/dist-lib/components/PrintProgrammaUitleg.d.ts.map +1 -1
  27. package/dist-lib/components/PrintProgrammaUitleg.js +1 -1
  28. package/dist-lib/components/PrintQueuePage.d.ts.map +1 -1
  29. package/dist-lib/components/PrintQueuePage.js +81 -43
  30. package/dist-lib/components/PrintplekDetailPage.d.ts.map +1 -1
  31. package/dist-lib/components/PrintplekDetailPage.js +2 -2
  32. package/dist-lib/components/PrintplekWizard.d.ts.map +1 -1
  33. package/dist-lib/components/PrintplekWizard.js +6 -2
  34. package/dist-lib/components/ProductiebonBuilderPage.d.ts.map +1 -1
  35. package/dist-lib/components/ProductiebonBuilderPage.js +13 -7
  36. package/dist-lib/index.d.ts +13 -5
  37. package/dist-lib/index.d.ts.map +1 -1
  38. package/dist-lib/index.js +10 -5
  39. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2280 -198
  40. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  41. package/dist-lib/integrations/supabase/client.server.d.ts +2280 -198
  42. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  43. package/dist-lib/integrations/supabase/client.server.js +1 -1
  44. package/dist-lib/integrations/supabase/moduleClient.d.ts +2280 -198
  45. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/types.d.ts +2306 -182
  47. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/types.js +1 -0
  49. package/dist-lib/lib/aiLayout.functions.d.ts +2280 -198
  50. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/documentVoorbeeld.functions.d.ts +23 -0
  52. package/dist-lib/lib/documentVoorbeeld.functions.d.ts.map +1 -0
  53. package/dist-lib/lib/documentVoorbeeld.functions.js +37 -0
  54. package/dist-lib/lib/fontMetrics.d.ts +15 -0
  55. package/dist-lib/lib/fontMetrics.d.ts.map +1 -0
  56. package/dist-lib/lib/fontMetrics.js +118 -0
  57. package/dist-lib/lib/htmlNaarPdf.server.d.ts +2 -2
  58. package/dist-lib/lib/htmlNaarPdf.server.d.ts.map +1 -1
  59. package/dist-lib/lib/htmlNaarPdf.server.js +2 -1
  60. package/dist-lib/lib/htmlPdf.server.d.ts +11 -0
  61. package/dist-lib/lib/htmlPdf.server.d.ts.map +1 -1
  62. package/dist-lib/lib/htmlPdf.server.js +118 -15
  63. package/dist-lib/lib/orderData.server.d.ts.map +1 -1
  64. package/dist-lib/lib/orderData.server.js +43 -16
  65. package/dist-lib/lib/pakbonBarcodeVerzoek.d.ts +39 -0
  66. package/dist-lib/lib/pakbonBarcodeVerzoek.d.ts.map +1 -0
  67. package/dist-lib/lib/pakbonBarcodeVerzoek.js +80 -0
  68. package/dist-lib/lib/pakbonBuilder.d.ts +62 -3
  69. package/dist-lib/lib/pakbonBuilder.d.ts.map +1 -1
  70. package/dist-lib/lib/pakbonBuilder.js +386 -50
  71. package/dist-lib/lib/pakbonContent.d.ts +41 -0
  72. package/dist-lib/lib/pakbonContent.d.ts.map +1 -0
  73. package/dist-lib/lib/pakbonContent.js +668 -0
  74. package/dist-lib/lib/pakbonDocument.d.ts +199 -0
  75. package/dist-lib/lib/pakbonDocument.d.ts.map +1 -0
  76. package/dist-lib/lib/pakbonDocument.js +735 -0
  77. package/dist-lib/lib/pakbonHtml.d.ts +7 -0
  78. package/dist-lib/lib/pakbonHtml.d.ts.map +1 -1
  79. package/dist-lib/lib/pakbonHtml.js +89 -73
  80. package/dist-lib/lib/pakbonPresentation.d.ts +8 -0
  81. package/dist-lib/lib/pakbonPresentation.d.ts.map +1 -0
  82. package/dist-lib/lib/pakbonPresentation.js +31 -0
  83. package/dist-lib/lib/pakbonScan.d.ts.map +1 -1
  84. package/dist-lib/lib/pakbonScan.js +20 -38
  85. package/dist-lib/lib/pdfJobSaver.d.ts +10 -6
  86. package/dist-lib/lib/pdfJobSaver.d.ts.map +1 -1
  87. package/dist-lib/lib/pdfJobSaver.js +302 -99
  88. package/dist-lib/lib/pdfMap.d.ts +37 -2
  89. package/dist-lib/lib/pdfMap.d.ts.map +1 -1
  90. package/dist-lib/lib/pdfMap.js +120 -7
  91. package/dist-lib/lib/pdfOpslagStatus.d.ts +23 -0
  92. package/dist-lib/lib/pdfOpslagStatus.d.ts.map +1 -0
  93. package/dist-lib/lib/pdfOpslagStatus.js +74 -0
  94. package/dist-lib/lib/printApi.d.ts +31 -0
  95. package/dist-lib/lib/printApi.d.ts.map +1 -1
  96. package/dist-lib/lib/printApi.js +62 -1
  97. package/dist-lib/lib/printQueue.server.d.ts +6 -0
  98. package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
  99. package/dist-lib/lib/printQueue.server.js +450 -94
  100. package/dist-lib/lib/printService.functions.d.ts +8857 -529
  101. package/dist-lib/lib/printService.functions.d.ts.map +1 -1
  102. package/dist-lib/lib/profielHtml.d.ts.map +1 -1
  103. package/dist-lib/lib/profielHtml.js +8 -1
  104. package/dist-lib/lib/useDocumentData.d.ts +8 -0
  105. package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
  106. package/dist-lib/lib/useDocumentData.js +1 -1
  107. package/dist-lib/lib/voorbeeldPrint.d.ts +3 -0
  108. package/dist-lib/lib/voorbeeldPrint.d.ts.map +1 -1
  109. package/dist-lib/lib/voorbeeldPrint.js +65 -17
  110. package/package.json +9 -2
@@ -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"];
@@ -12760,6 +13194,13 @@ export type Database = {
12760
13194
  referencedRelation: "order_items";
12761
13195
  referencedColumns: ["id"];
12762
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
+ },
12763
13204
  {
12764
13205
  foreignKeyName: "order_cart_items_product_id_fkey";
12765
13206
  columns: ["product_id"];
@@ -12769,6 +13210,95 @@ export type Database = {
12769
13210
  }
12770
13211
  ];
12771
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
+ };
12772
13302
  order_carts: {
12773
13303
  Row: {
12774
13304
  algorithm_version: number;
@@ -12791,6 +13321,7 @@ export type Database = {
12791
13321
  pickup_locked: boolean;
12792
13322
  pickup_moment_id: string | null;
12793
13323
  source: string;
13324
+ total_carts: number | null;
12794
13325
  total_layers_used: number;
12795
13326
  updated_at: string;
12796
13327
  weight_kg: number | null;
@@ -12816,6 +13347,7 @@ export type Database = {
12816
13347
  pickup_locked?: boolean;
12817
13348
  pickup_moment_id?: string | null;
12818
13349
  source?: string;
13350
+ total_carts?: number | null;
12819
13351
  total_layers_used?: number;
12820
13352
  updated_at?: string;
12821
13353
  weight_kg?: number | null;
@@ -12841,6 +13373,7 @@ export type Database = {
12841
13373
  pickup_locked?: boolean;
12842
13374
  pickup_moment_id?: string | null;
12843
13375
  source?: string;
13376
+ total_carts?: number | null;
12844
13377
  total_layers_used?: number;
12845
13378
  updated_at?: string;
12846
13379
  weight_kg?: number | null;
@@ -12951,6 +13484,41 @@ export type Database = {
12951
13484
  };
12952
13485
  Relationships: [];
12953
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
+ };
12954
13522
  order_invoice_links: {
12955
13523
  Row: {
12956
13524
  administration_code: string | null;
@@ -13041,6 +13609,13 @@ export type Database = {
13041
13609
  referencedRelation: "orders";
13042
13610
  referencedColumns: ["id"];
13043
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
+ },
13044
13619
  {
13045
13620
  foreignKeyName: "order_items_product_id_fkey";
13046
13621
  columns: ["product_id"];
@@ -13195,6 +13770,9 @@ export type Database = {
13195
13770
  plan_locked_at: string | null;
13196
13771
  plan_locked_ref: string | null;
13197
13772
  status: string;
13773
+ status_changed_at: string;
13774
+ status_origin: string;
13775
+ status_sync_token: string | null;
13198
13776
  total: string;
13199
13777
  updated_at: string;
13200
13778
  };
@@ -13219,6 +13797,9 @@ export type Database = {
13219
13797
  plan_locked_at?: string | null;
13220
13798
  plan_locked_ref?: string | null;
13221
13799
  status?: string;
13800
+ status_changed_at?: string;
13801
+ status_origin?: string;
13802
+ status_sync_token?: string | null;
13222
13803
  total?: string;
13223
13804
  updated_at?: string;
13224
13805
  };
@@ -13243,6 +13824,9 @@ export type Database = {
13243
13824
  plan_locked_at?: string | null;
13244
13825
  plan_locked_ref?: string | null;
13245
13826
  status?: string;
13827
+ status_changed_at?: string;
13828
+ status_origin?: string;
13829
+ status_sync_token?: string | null;
13246
13830
  total?: string;
13247
13831
  updated_at?: string;
13248
13832
  };
@@ -13356,6 +13940,96 @@ export type Database = {
13356
13940
  };
13357
13941
  Relationships: [];
13358
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
+ };
14012
+ pick_buffer_event_cursor: {
14013
+ Row: {
14014
+ created_at: string;
14015
+ id: boolean;
14016
+ last_event_at: string;
14017
+ updated_at: string;
14018
+ };
14019
+ Insert: {
14020
+ created_at?: string;
14021
+ id?: boolean;
14022
+ last_event_at?: string;
14023
+ updated_at?: string;
14024
+ };
14025
+ Update: {
14026
+ created_at?: string;
14027
+ id?: boolean;
14028
+ last_event_at?: string;
14029
+ updated_at?: string;
14030
+ };
14031
+ Relationships: [];
14032
+ };
13359
14033
  pick_countries: {
13360
14034
  Row: {
13361
14035
  active: boolean;
@@ -14473,8 +15147,15 @@ export type Database = {
14473
15147
  isOneToOne: false;
14474
15148
  referencedRelation: "werkbonnen";
14475
15149
  referencedColumns: ["id"];
14476
- }
14477
- ];
15150
+ },
15151
+ {
15152
+ foreignKeyName: "planning_items_werkbon_id_fkey";
15153
+ columns: ["werkbon_id"];
15154
+ isOneToOne: false;
15155
+ referencedRelation: "wo_overview";
15156
+ referencedColumns: ["id"];
15157
+ }
15158
+ ];
14478
15159
  };
14479
15160
  print_agents: {
14480
15161
  Row: {
@@ -14591,12 +15272,21 @@ export type Database = {
14591
15272
  };
14592
15273
  print_jobs: {
14593
15274
  Row: {
15275
+ aflever_pogingen: number;
14594
15276
  agent_id: string | null;
15277
+ artefact_bytes: number | null;
15278
+ artefact_gereed_op: string | null;
15279
+ artefact_pad: string | null;
15280
+ artefact_sha256: string | null;
15281
+ batch_id: string | null;
14595
15282
  bron_job_id: string | null;
14596
15283
  created_at: string;
14597
15284
  documentnaam: string;
14598
15285
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14599
15286
  extern_job_id: string | null;
15287
+ fase_gestart_op: string | null;
15288
+ fase_voltooid_op: string | null;
15289
+ foutcode: string | null;
14600
15290
  foutmelding: string | null;
14601
15291
  gebruiker_id: string | null;
14602
15292
  gebruiker_naam: string;
@@ -14610,7 +15300,10 @@ export type Database = {
14610
15300
  kopieen: number;
14611
15301
  layout_id: string | null;
14612
15302
  lokaal_opgeslagen_op: string | null;
15303
+ lokale_pdf_claim_id: string | null;
15304
+ lokale_pdf_claim_tot: string | null;
14613
15305
  lokale_pdf_fout: string | null;
15306
+ lokale_pdf_print_plek_id: string | null;
14614
15307
  lokale_pdf_status: string | null;
14615
15308
  opgepakt_op: string | null;
14616
15309
  paginas: number;
@@ -14623,16 +15316,26 @@ export type Database = {
14623
15316
  resultaat_pdf_base64: string | null;
14624
15317
  status: Database["public"]["Enums"]["print_job_status"];
14625
15318
  updated_at: string;
15319
+ verwerkingsfase: string;
14626
15320
  volgende_poging: string | null;
14627
15321
  voltooid_op: string | null;
14628
15322
  };
14629
15323
  Insert: {
15324
+ aflever_pogingen?: number;
14630
15325
  agent_id?: string | null;
15326
+ artefact_bytes?: number | null;
15327
+ artefact_gereed_op?: string | null;
15328
+ artefact_pad?: string | null;
15329
+ artefact_sha256?: string | null;
15330
+ batch_id?: string | null;
14631
15331
  bron_job_id?: string | null;
14632
15332
  created_at?: string;
14633
15333
  documentnaam?: string;
14634
15334
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14635
15335
  extern_job_id?: string | null;
15336
+ fase_gestart_op?: string | null;
15337
+ fase_voltooid_op?: string | null;
15338
+ foutcode?: string | null;
14636
15339
  foutmelding?: string | null;
14637
15340
  gebruiker_id?: string | null;
14638
15341
  gebruiker_naam?: string;
@@ -14646,7 +15349,10 @@ export type Database = {
14646
15349
  kopieen?: number;
14647
15350
  layout_id?: string | null;
14648
15351
  lokaal_opgeslagen_op?: string | null;
15352
+ lokale_pdf_claim_id?: string | null;
15353
+ lokale_pdf_claim_tot?: string | null;
14649
15354
  lokale_pdf_fout?: string | null;
15355
+ lokale_pdf_print_plek_id?: string | null;
14650
15356
  lokale_pdf_status?: string | null;
14651
15357
  opgepakt_op?: string | null;
14652
15358
  paginas?: number;
@@ -14659,16 +15365,26 @@ export type Database = {
14659
15365
  resultaat_pdf_base64?: string | null;
14660
15366
  status?: Database["public"]["Enums"]["print_job_status"];
14661
15367
  updated_at?: string;
15368
+ verwerkingsfase?: string;
14662
15369
  volgende_poging?: string | null;
14663
15370
  voltooid_op?: string | null;
14664
15371
  };
14665
15372
  Update: {
15373
+ aflever_pogingen?: number;
14666
15374
  agent_id?: string | null;
15375
+ artefact_bytes?: number | null;
15376
+ artefact_gereed_op?: string | null;
15377
+ artefact_pad?: string | null;
15378
+ artefact_sha256?: string | null;
15379
+ batch_id?: string | null;
14667
15380
  bron_job_id?: string | null;
14668
15381
  created_at?: string;
14669
15382
  documentnaam?: string;
14670
15383
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14671
15384
  extern_job_id?: string | null;
15385
+ fase_gestart_op?: string | null;
15386
+ fase_voltooid_op?: string | null;
15387
+ foutcode?: string | null;
14672
15388
  foutmelding?: string | null;
14673
15389
  gebruiker_id?: string | null;
14674
15390
  gebruiker_naam?: string;
@@ -14682,7 +15398,10 @@ export type Database = {
14682
15398
  kopieen?: number;
14683
15399
  layout_id?: string | null;
14684
15400
  lokaal_opgeslagen_op?: string | null;
15401
+ lokale_pdf_claim_id?: string | null;
15402
+ lokale_pdf_claim_tot?: string | null;
14685
15403
  lokale_pdf_fout?: string | null;
15404
+ lokale_pdf_print_plek_id?: string | null;
14686
15405
  lokale_pdf_status?: string | null;
14687
15406
  opgepakt_op?: string | null;
14688
15407
  paginas?: number;
@@ -14695,6 +15414,7 @@ export type Database = {
14695
15414
  resultaat_pdf_base64?: string | null;
14696
15415
  status?: Database["public"]["Enums"]["print_job_status"];
14697
15416
  updated_at?: string;
15417
+ verwerkingsfase?: string;
14698
15418
  volgende_poging?: string | null;
14699
15419
  voltooid_op?: string | null;
14700
15420
  };
@@ -14713,6 +15433,13 @@ export type Database = {
14713
15433
  referencedRelation: "document_layouts";
14714
15434
  referencedColumns: ["id"];
14715
15435
  },
15436
+ {
15437
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
15438
+ columns: ["lokale_pdf_print_plek_id"];
15439
+ isOneToOne: false;
15440
+ referencedRelation: "print_plekken";
15441
+ referencedColumns: ["id"];
15442
+ },
14716
15443
  {
14717
15444
  foreignKeyName: "print_jobs_printer_id_fkey";
14718
15445
  columns: ["printer_id"];
@@ -14852,6 +15579,30 @@ export type Database = {
14852
15579
  };
14853
15580
  Relationships: [];
14854
15581
  };
15582
+ print_queue_leases: {
15583
+ Row: {
15584
+ created_at: string;
15585
+ houder: string;
15586
+ naam: string;
15587
+ updated_at: string;
15588
+ verloopt_op: string;
15589
+ };
15590
+ Insert: {
15591
+ created_at?: string;
15592
+ houder: string;
15593
+ naam: string;
15594
+ updated_at?: string;
15595
+ verloopt_op: string;
15596
+ };
15597
+ Update: {
15598
+ created_at?: string;
15599
+ houder?: string;
15600
+ naam?: string;
15601
+ updated_at?: string;
15602
+ verloopt_op?: string;
15603
+ };
15604
+ Relationships: [];
15605
+ };
14855
15606
  print_queue_runners: {
14856
15607
  Row: {
14857
15608
  actief: boolean;
@@ -14861,7 +15612,9 @@ export type Database = {
14861
15612
  laatst_gezien: string;
14862
15613
  laatste_fout: string | null;
14863
15614
  laatste_request_id: number | null;
15615
+ laatste_wakeup: string | null;
14864
15616
  mislukte_posts: number;
15617
+ mislukte_wakeups: number;
14865
15618
  tick_sleutel: string;
14866
15619
  updated_at: string;
14867
15620
  };
@@ -14873,7 +15626,9 @@ export type Database = {
14873
15626
  laatst_gezien?: string;
14874
15627
  laatste_fout?: string | null;
14875
15628
  laatste_request_id?: number | null;
15629
+ laatste_wakeup?: string | null;
14876
15630
  mislukte_posts?: number;
15631
+ mislukte_wakeups?: number;
14877
15632
  tick_sleutel?: string;
14878
15633
  updated_at?: string;
14879
15634
  };
@@ -14885,7 +15640,9 @@ export type Database = {
14885
15640
  laatst_gezien?: string;
14886
15641
  laatste_fout?: string | null;
14887
15642
  laatste_request_id?: number | null;
15643
+ laatste_wakeup?: string | null;
14888
15644
  mislukte_posts?: number;
15645
+ mislukte_wakeups?: number;
14889
15646
  tick_sleutel?: string;
14890
15647
  updated_at?: string;
14891
15648
  };
@@ -15209,6 +15966,13 @@ export type Database = {
15209
15966
  updated_at?: string;
15210
15967
  };
15211
15968
  Relationships: [
15969
+ {
15970
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15971
+ columns: ["parent_product_id"];
15972
+ isOneToOne: false;
15973
+ referencedRelation: "logistics_product_dimensions";
15974
+ referencedColumns: ["product_id"];
15975
+ },
15212
15976
  {
15213
15977
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15214
15978
  columns: ["parent_product_id"];
@@ -15265,6 +16029,13 @@ export type Database = {
15265
16029
  updated_at?: string;
15266
16030
  };
15267
16031
  Relationships: [
16032
+ {
16033
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
16034
+ columns: ["component_product_id"];
16035
+ isOneToOne: false;
16036
+ referencedRelation: "logistics_product_dimensions";
16037
+ referencedColumns: ["product_id"];
16038
+ },
15268
16039
  {
15269
16040
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15270
16041
  columns: ["component_product_id"];
@@ -15272,6 +16043,13 @@ export type Database = {
15272
16043
  referencedRelation: "products";
15273
16044
  referencedColumns: ["id"];
15274
16045
  },
16046
+ {
16047
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
16048
+ columns: ["parent_product_id"];
16049
+ isOneToOne: false;
16050
+ referencedRelation: "logistics_product_dimensions";
16051
+ referencedColumns: ["product_id"];
16052
+ },
15275
16053
  {
15276
16054
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15277
16055
  columns: ["parent_product_id"];
@@ -15452,6 +16230,13 @@ export type Database = {
15452
16230
  updated_at?: string;
15453
16231
  };
15454
16232
  Relationships: [
16233
+ {
16234
+ foreignKeyName: "product_groups_head_product_id_fkey";
16235
+ columns: ["head_product_id"];
16236
+ isOneToOne: false;
16237
+ referencedRelation: "logistics_product_dimensions";
16238
+ referencedColumns: ["product_id"];
16239
+ },
15455
16240
  {
15456
16241
  foreignKeyName: "product_groups_head_product_id_fkey";
15457
16242
  columns: ["head_product_id"];
@@ -15521,6 +16306,13 @@ export type Database = {
15521
16306
  referencedRelation: "packages";
15522
16307
  referencedColumns: ["id"];
15523
16308
  },
16309
+ {
16310
+ foreignKeyName: "product_load_settings_product_id_fkey";
16311
+ columns: ["product_id"];
16312
+ isOneToOne: false;
16313
+ referencedRelation: "logistics_product_dimensions";
16314
+ referencedColumns: ["product_id"];
16315
+ },
15524
16316
  {
15525
16317
  foreignKeyName: "product_load_settings_product_id_fkey";
15526
16318
  columns: ["product_id"];
@@ -16005,6 +16797,13 @@ export type Database = {
16005
16797
  quantity?: number;
16006
16798
  };
16007
16799
  Relationships: [
16800
+ {
16801
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16802
+ columns: ["product_id"];
16803
+ isOneToOne: false;
16804
+ referencedRelation: "logistics_product_dimensions";
16805
+ referencedColumns: ["product_id"];
16806
+ },
16008
16807
  {
16009
16808
  foreignKeyName: "purchase_order_items_product_id_fkey";
16010
16809
  columns: ["product_id"];
@@ -16343,6 +17142,106 @@ export type Database = {
16343
17142
  }
16344
17143
  ];
16345
17144
  };
17145
+ scan_kar_sessie_regels: {
17146
+ Row: {
17147
+ barcode: string;
17148
+ cart_id: string | null;
17149
+ created_at: string;
17150
+ id: string;
17151
+ order_id: string | null;
17152
+ order_number: string | null;
17153
+ regels: Json;
17154
+ sessie_id: string;
17155
+ volledig: boolean;
17156
+ };
17157
+ Insert: {
17158
+ barcode: string;
17159
+ cart_id?: string | null;
17160
+ created_at?: string;
17161
+ id?: string;
17162
+ order_id?: string | null;
17163
+ order_number?: string | null;
17164
+ regels?: Json;
17165
+ sessie_id: string;
17166
+ volledig?: boolean;
17167
+ };
17168
+ Update: {
17169
+ barcode?: string;
17170
+ cart_id?: string | null;
17171
+ created_at?: string;
17172
+ id?: string;
17173
+ order_id?: string | null;
17174
+ order_number?: string | null;
17175
+ regels?: Json;
17176
+ sessie_id?: string;
17177
+ volledig?: boolean;
17178
+ };
17179
+ Relationships: [
17180
+ {
17181
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
17182
+ columns: ["sessie_id"];
17183
+ isOneToOne: false;
17184
+ referencedRelation: "scan_kar_sessies";
17185
+ referencedColumns: ["id"];
17186
+ }
17187
+ ];
17188
+ };
17189
+ scan_kar_sessies: {
17190
+ Row: {
17191
+ afgerond_op: string | null;
17192
+ cart_id: string | null;
17193
+ cart_index: number | null;
17194
+ cart_total: number | null;
17195
+ created_at: string;
17196
+ id: string;
17197
+ klant_naam: string | null;
17198
+ medewerker_naam: string | null;
17199
+ order_id: string | null;
17200
+ order_number: string | null;
17201
+ scanner_id: string | null;
17202
+ status: string;
17203
+ updated_at: string;
17204
+ };
17205
+ Insert: {
17206
+ afgerond_op?: string | null;
17207
+ cart_id?: string | null;
17208
+ cart_index?: number | null;
17209
+ cart_total?: number | null;
17210
+ created_at?: string;
17211
+ id?: string;
17212
+ klant_naam?: string | null;
17213
+ medewerker_naam?: string | null;
17214
+ order_id?: string | null;
17215
+ order_number?: string | null;
17216
+ scanner_id?: string | null;
17217
+ status?: string;
17218
+ updated_at?: string;
17219
+ };
17220
+ Update: {
17221
+ afgerond_op?: string | null;
17222
+ cart_id?: string | null;
17223
+ cart_index?: number | null;
17224
+ cart_total?: number | null;
17225
+ created_at?: string;
17226
+ id?: string;
17227
+ klant_naam?: string | null;
17228
+ medewerker_naam?: string | null;
17229
+ order_id?: string | null;
17230
+ order_number?: string | null;
17231
+ scanner_id?: string | null;
17232
+ status?: string;
17233
+ updated_at?: string;
17234
+ };
17235
+ Relationships: [
17236
+ {
17237
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
17238
+ columns: ["scanner_id"];
17239
+ isOneToOne: false;
17240
+ referencedRelation: "scan_scanners";
17241
+ referencedColumns: ["id"];
17242
+ }
17243
+ ];
17244
+ };
16346
17245
  scan_karren: {
16347
17246
  Row: {
16348
17247
  afgerond_op: string | null;
@@ -16549,6 +17448,60 @@ export type Database = {
16549
17448
  };
16550
17449
  Relationships: [];
16551
17450
  };
17451
+ scan_restpakbonnen: {
17452
+ Row: {
17453
+ barcode: string;
17454
+ bron_barcode: string | null;
17455
+ cart_id: string | null;
17456
+ cart_index: number | null;
17457
+ cart_total: number | null;
17458
+ created_at: string;
17459
+ geprint_op: string | null;
17460
+ id: string;
17461
+ klant_naam: string | null;
17462
+ order_id: string | null;
17463
+ order_number: string | null;
17464
+ print_job_id: string | null;
17465
+ regels: Json;
17466
+ updated_at: string;
17467
+ verwerkt: boolean;
17468
+ };
17469
+ Insert: {
17470
+ barcode: string;
17471
+ bron_barcode?: string | null;
17472
+ cart_id?: string | null;
17473
+ cart_index?: number | null;
17474
+ cart_total?: number | null;
17475
+ created_at?: string;
17476
+ geprint_op?: string | null;
17477
+ id?: string;
17478
+ klant_naam?: string | null;
17479
+ order_id?: string | null;
17480
+ order_number?: string | null;
17481
+ print_job_id?: string | null;
17482
+ regels?: Json;
17483
+ updated_at?: string;
17484
+ verwerkt?: boolean;
17485
+ };
17486
+ Update: {
17487
+ barcode?: string;
17488
+ bron_barcode?: string | null;
17489
+ cart_id?: string | null;
17490
+ cart_index?: number | null;
17491
+ cart_total?: number | null;
17492
+ created_at?: string;
17493
+ geprint_op?: string | null;
17494
+ id?: string;
17495
+ klant_naam?: string | null;
17496
+ order_id?: string | null;
17497
+ order_number?: string | null;
17498
+ print_job_id?: string | null;
17499
+ regels?: Json;
17500
+ updated_at?: string;
17501
+ verwerkt?: boolean;
17502
+ };
17503
+ Relationships: [];
17504
+ };
16552
17505
  scan_scanners: {
16553
17506
  Row: {
16554
17507
  actief: boolean;
@@ -16558,6 +17511,7 @@ export type Database = {
16558
17511
  naam: string;
16559
17512
  omschrijving: string | null;
16560
17513
  pincode: string | null;
17514
+ printer_id: string | null;
16561
17515
  slug: string;
16562
17516
  type: string;
16563
17517
  updated_at: string;
@@ -16572,6 +17526,7 @@ export type Database = {
16572
17526
  naam: string;
16573
17527
  omschrijving?: string | null;
16574
17528
  pincode?: string | null;
17529
+ printer_id?: string | null;
16575
17530
  slug: string;
16576
17531
  type?: string;
16577
17532
  updated_at?: string;
@@ -16586,6 +17541,7 @@ export type Database = {
16586
17541
  naam?: string;
16587
17542
  omschrijving?: string | null;
16588
17543
  pincode?: string | null;
17544
+ printer_id?: string | null;
16589
17545
  slug?: string;
16590
17546
  type?: string;
16591
17547
  updated_at?: string;
@@ -16594,6 +17550,27 @@ export type Database = {
16594
17550
  };
16595
17551
  Relationships: [];
16596
17552
  };
17553
+ shell_settings: {
17554
+ Row: {
17555
+ created_at: string;
17556
+ default_path: string | null;
17557
+ shell_id: string;
17558
+ updated_at: string;
17559
+ };
17560
+ Insert: {
17561
+ created_at?: string;
17562
+ default_path?: string | null;
17563
+ shell_id: string;
17564
+ updated_at?: string;
17565
+ };
17566
+ Update: {
17567
+ created_at?: string;
17568
+ default_path?: string | null;
17569
+ shell_id?: string;
17570
+ updated_at?: string;
17571
+ };
17572
+ Relationships: [];
17573
+ };
16597
17574
  sick_periods: {
16598
17575
  Row: {
16599
17576
  created_at: string;
@@ -17223,6 +18200,13 @@ export type Database = {
17223
18200
  isOneToOne: false;
17224
18201
  referencedRelation: "werkbonnen";
17225
18202
  referencedColumns: ["id"];
18203
+ },
18204
+ {
18205
+ foreignKeyName: "time_logs_work_order_id_fkey";
18206
+ columns: ["work_order_id"];
18207
+ isOneToOne: false;
18208
+ referencedRelation: "wo_overview";
18209
+ referencedColumns: ["id"];
17226
18210
  }
17227
18211
  ];
17228
18212
  };
@@ -18537,6 +19521,13 @@ export type Database = {
18537
19521
  isOneToOne: false;
18538
19522
  referencedRelation: "werkbonnen";
18539
19523
  referencedColumns: ["id"];
19524
+ },
19525
+ {
19526
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
19527
+ columns: ["werkbon_id"];
19528
+ isOneToOne: false;
19529
+ referencedRelation: "wo_overview";
19530
+ referencedColumns: ["id"];
18540
19531
  }
18541
19532
  ];
18542
19533
  };
@@ -19270,6 +20261,13 @@ export type Database = {
19270
20261
  isOneToOne: true;
19271
20262
  referencedRelation: "werkbonnen";
19272
20263
  referencedColumns: ["id"];
20264
+ },
20265
+ {
20266
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
20267
+ columns: ["werkbon_id"];
20268
+ isOneToOne: true;
20269
+ referencedRelation: "wo_overview";
20270
+ referencedColumns: ["id"];
19273
20271
  }
19274
20272
  ];
19275
20273
  };
@@ -19359,6 +20357,13 @@ export type Database = {
19359
20357
  isOneToOne: false;
19360
20358
  referencedRelation: "werkbonnen";
19361
20359
  referencedColumns: ["id"];
20360
+ },
20361
+ {
20362
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20363
+ columns: ["werkbon_id"];
20364
+ isOneToOne: false;
20365
+ referencedRelation: "wo_overview";
20366
+ referencedColumns: ["id"];
19362
20367
  }
19363
20368
  ];
19364
20369
  };
@@ -19550,6 +20555,13 @@ export type Database = {
19550
20555
  isOneToOne: false;
19551
20556
  referencedRelation: "werkbonnen";
19552
20557
  referencedColumns: ["id"];
20558
+ },
20559
+ {
20560
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20561
+ columns: ["werkbon_id"];
20562
+ isOneToOne: false;
20563
+ referencedRelation: "wo_overview";
20564
+ referencedColumns: ["id"];
19553
20565
  }
19554
20566
  ];
19555
20567
  };
@@ -19644,6 +20656,13 @@ export type Database = {
19644
20656
  isOneToOne: false;
19645
20657
  referencedRelation: "werkbonnen";
19646
20658
  referencedColumns: ["id"];
20659
+ },
20660
+ {
20661
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20662
+ columns: ["werkbon_id"];
20663
+ isOneToOne: false;
20664
+ referencedRelation: "wo_overview";
20665
+ referencedColumns: ["id"];
19647
20666
  }
19648
20667
  ];
19649
20668
  };
@@ -19685,6 +20704,13 @@ export type Database = {
19685
20704
  isOneToOne: false;
19686
20705
  referencedRelation: "werkbonnen";
19687
20706
  referencedColumns: ["id"];
20707
+ },
20708
+ {
20709
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20710
+ columns: ["werkbon_id"];
20711
+ isOneToOne: false;
20712
+ referencedRelation: "wo_overview";
20713
+ referencedColumns: ["id"];
19688
20714
  }
19689
20715
  ];
19690
20716
  };
@@ -19812,8 +20838,15 @@ export type Database = {
19812
20838
  referencedColumns: ["id"];
19813
20839
  },
19814
20840
  {
19815
- foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19816
- columns: ["source_mailbox_message_id"];
20841
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20842
+ columns: ["parent_werkbon_id"];
20843
+ isOneToOne: false;
20844
+ referencedRelation: "wo_overview";
20845
+ referencedColumns: ["id"];
20846
+ },
20847
+ {
20848
+ foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
20849
+ columns: ["source_mailbox_message_id"];
19817
20850
  isOneToOne: false;
19818
20851
  referencedRelation: "mailbox_messages";
19819
20852
  referencedColumns: ["id"];
@@ -20288,6 +21321,24 @@ export type Database = {
20288
21321
  };
20289
21322
  Relationships: [];
20290
21323
  };
21324
+ logistics_product_dimensions: {
21325
+ Row: {
21326
+ dimension_source: string | null;
21327
+ fust_height_mm: number | null;
21328
+ fust_length_mm: number | null;
21329
+ fust_name: string | null;
21330
+ fust_source: string | null;
21331
+ fust_type_id: string | null;
21332
+ fust_width_mm: number | null;
21333
+ height_source: string | null;
21334
+ missing_reason: string | null;
21335
+ plant_height_cm: number | null;
21336
+ plants_per_crate: number | null;
21337
+ product_id: string | null;
21338
+ product_name: string | null;
21339
+ };
21340
+ Relationships: [];
21341
+ };
20291
21342
  manufacture_product_possible_stock_view: {
20292
21343
  Row: {
20293
21344
  component_count: number | null;
@@ -20326,6 +21377,13 @@ export type Database = {
20326
21377
  isOneToOne: false;
20327
21378
  referencedRelation: "werkbonnen";
20328
21379
  referencedColumns: ["id"];
21380
+ },
21381
+ {
21382
+ foreignKeyName: "planning_items_werkbon_id_fkey";
21383
+ columns: ["werkbon_id"];
21384
+ isOneToOne: false;
21385
+ referencedRelation: "wo_overview";
21386
+ referencedColumns: ["id"];
20329
21387
  }
20330
21388
  ];
20331
21389
  };
@@ -20806,6 +21864,85 @@ export type Database = {
20806
21864
  isOneToOne: false;
20807
21865
  referencedRelation: "werkbonnen";
20808
21866
  referencedColumns: ["id"];
21867
+ },
21868
+ {
21869
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21870
+ columns: ["werkbon_id"];
21871
+ isOneToOne: false;
21872
+ referencedRelation: "wo_overview";
21873
+ referencedColumns: ["id"];
21874
+ }
21875
+ ];
21876
+ };
21877
+ wo_overview: {
21878
+ Row: {
21879
+ assigned_user_id: string | null;
21880
+ budget_mandate_cents: number | null;
21881
+ created_at: string | null;
21882
+ customer_id: string | null;
21883
+ id: string | null;
21884
+ needs_detail_review: boolean | null;
21885
+ number: string | null;
21886
+ parent_werkbon_id: string | null;
21887
+ planning_status: string | null;
21888
+ scheduled_end_time: string | null;
21889
+ scheduled_start_time: string | null;
21890
+ source_type: string | null;
21891
+ status: string | null;
21892
+ technician_id: string | null;
21893
+ updated_at: string | null;
21894
+ work_address: string | null;
21895
+ };
21896
+ Insert: {
21897
+ assigned_user_id?: string | null;
21898
+ budget_mandate_cents?: number | null;
21899
+ created_at?: string | null;
21900
+ customer_id?: string | null;
21901
+ id?: string | null;
21902
+ needs_detail_review?: boolean | null;
21903
+ number?: string | null;
21904
+ parent_werkbon_id?: string | null;
21905
+ planning_status?: string | null;
21906
+ scheduled_end_time?: string | null;
21907
+ scheduled_start_time?: string | null;
21908
+ source_type?: string | null;
21909
+ status?: string | null;
21910
+ technician_id?: string | null;
21911
+ updated_at?: string | null;
21912
+ work_address?: string | null;
21913
+ };
21914
+ Update: {
21915
+ assigned_user_id?: string | null;
21916
+ budget_mandate_cents?: number | null;
21917
+ created_at?: string | null;
21918
+ customer_id?: string | null;
21919
+ id?: string | null;
21920
+ needs_detail_review?: boolean | null;
21921
+ number?: string | null;
21922
+ parent_werkbon_id?: string | null;
21923
+ planning_status?: string | null;
21924
+ scheduled_end_time?: string | null;
21925
+ scheduled_start_time?: string | null;
21926
+ source_type?: string | null;
21927
+ status?: string | null;
21928
+ technician_id?: string | null;
21929
+ updated_at?: string | null;
21930
+ work_address?: string | null;
21931
+ };
21932
+ Relationships: [
21933
+ {
21934
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21935
+ columns: ["parent_werkbon_id"];
21936
+ isOneToOne: false;
21937
+ referencedRelation: "werkbonnen";
21938
+ referencedColumns: ["id"];
21939
+ },
21940
+ {
21941
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21942
+ columns: ["parent_werkbon_id"];
21943
+ isOneToOne: false;
21944
+ referencedRelation: "wo_overview";
21945
+ referencedColumns: ["id"];
20809
21946
  }
20810
21947
  ];
20811
21948
  };
@@ -20998,12 +22135,21 @@ export type Database = {
20998
22135
  _max?: number;
20999
22136
  };
21000
22137
  Returns: {
22138
+ aflever_pogingen: number;
21001
22139
  agent_id: string | null;
22140
+ artefact_bytes: number | null;
22141
+ artefact_gereed_op: string | null;
22142
+ artefact_pad: string | null;
22143
+ artefact_sha256: string | null;
22144
+ batch_id: string | null;
21002
22145
  bron_job_id: string | null;
21003
22146
  created_at: string;
21004
22147
  documentnaam: string;
21005
22148
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21006
22149
  extern_job_id: string | null;
22150
+ fase_gestart_op: string | null;
22151
+ fase_voltooid_op: string | null;
22152
+ foutcode: string | null;
21007
22153
  foutmelding: string | null;
21008
22154
  gebruiker_id: string | null;
21009
22155
  gebruiker_naam: string;
@@ -21017,7 +22163,10 @@ export type Database = {
21017
22163
  kopieen: number;
21018
22164
  layout_id: string | null;
21019
22165
  lokaal_opgeslagen_op: string | null;
22166
+ lokale_pdf_claim_id: string | null;
22167
+ lokale_pdf_claim_tot: string | null;
21020
22168
  lokale_pdf_fout: string | null;
22169
+ lokale_pdf_print_plek_id: string | null;
21021
22170
  lokale_pdf_status: string | null;
21022
22171
  opgepakt_op: string | null;
21023
22172
  paginas: number;
@@ -21030,6 +22179,7 @@ export type Database = {
21030
22179
  resultaat_pdf_base64: string | null;
21031
22180
  status: Database["public"]["Enums"]["print_job_status"];
21032
22181
  updated_at: string;
22182
+ verwerkingsfase: string;
21033
22183
  volgende_poging: string | null;
21034
22184
  voltooid_op: string | null;
21035
22185
  }[];
@@ -21076,6 +22226,25 @@ export type Database = {
21076
22226
  isSetofReturn: true;
21077
22227
  };
21078
22228
  };
22229
+ claim_local_pdf_jobs: {
22230
+ Args: {
22231
+ _max?: number;
22232
+ _print_plek_id: string;
22233
+ _writer_id: string;
22234
+ };
22235
+ Returns: {
22236
+ artefact_bytes: number;
22237
+ artefact_pad: string;
22238
+ artefact_sha256: string;
22239
+ documentnaam: string;
22240
+ id: string;
22241
+ lokale_pdf_print_plek_id: string;
22242
+ lokale_pdf_status: string;
22243
+ printer_id: string;
22244
+ resultaat_pdf_base64: string;
22245
+ status: string;
22246
+ }[];
22247
+ };
21079
22248
  claim_logistics_tasks: {
21080
22249
  Args: {
21081
22250
  _limit?: number;
@@ -21129,12 +22298,21 @@ export type Database = {
21129
22298
  _max?: number;
21130
22299
  };
21131
22300
  Returns: {
22301
+ aflever_pogingen: number;
21132
22302
  agent_id: string | null;
22303
+ artefact_bytes: number | null;
22304
+ artefact_gereed_op: string | null;
22305
+ artefact_pad: string | null;
22306
+ artefact_sha256: string | null;
22307
+ batch_id: string | null;
21133
22308
  bron_job_id: string | null;
21134
22309
  created_at: string;
21135
22310
  documentnaam: string;
21136
22311
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21137
22312
  extern_job_id: string | null;
22313
+ fase_gestart_op: string | null;
22314
+ fase_voltooid_op: string | null;
22315
+ foutcode: string | null;
21138
22316
  foutmelding: string | null;
21139
22317
  gebruiker_id: string | null;
21140
22318
  gebruiker_naam: string;
@@ -21148,7 +22326,10 @@ export type Database = {
21148
22326
  kopieen: number;
21149
22327
  layout_id: string | null;
21150
22328
  lokaal_opgeslagen_op: string | null;
22329
+ lokale_pdf_claim_id: string | null;
22330
+ lokale_pdf_claim_tot: string | null;
21151
22331
  lokale_pdf_fout: string | null;
22332
+ lokale_pdf_print_plek_id: string | null;
21152
22333
  lokale_pdf_status: string | null;
21153
22334
  opgepakt_op: string | null;
21154
22335
  paginas: number;
@@ -21161,6 +22342,7 @@ export type Database = {
21161
22342
  resultaat_pdf_base64: string | null;
21162
22343
  status: Database["public"]["Enums"]["print_job_status"];
21163
22344
  updated_at: string;
22345
+ verwerkingsfase: string;
21164
22346
  volgende_poging: string | null;
21165
22347
  voltooid_op: string | null;
21166
22348
  }[];
@@ -21177,12 +22359,21 @@ export type Database = {
21177
22359
  _max?: number;
21178
22360
  };
21179
22361
  Returns: {
22362
+ aflever_pogingen: number;
21180
22363
  agent_id: string | null;
22364
+ artefact_bytes: number | null;
22365
+ artefact_gereed_op: string | null;
22366
+ artefact_pad: string | null;
22367
+ artefact_sha256: string | null;
22368
+ batch_id: string | null;
21181
22369
  bron_job_id: string | null;
21182
22370
  created_at: string;
21183
22371
  documentnaam: string;
21184
22372
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21185
22373
  extern_job_id: string | null;
22374
+ fase_gestart_op: string | null;
22375
+ fase_voltooid_op: string | null;
22376
+ foutcode: string | null;
21186
22377
  foutmelding: string | null;
21187
22378
  gebruiker_id: string | null;
21188
22379
  gebruiker_naam: string;
@@ -21196,7 +22387,10 @@ export type Database = {
21196
22387
  kopieen: number;
21197
22388
  layout_id: string | null;
21198
22389
  lokaal_opgeslagen_op: string | null;
22390
+ lokale_pdf_claim_id: string | null;
22391
+ lokale_pdf_claim_tot: string | null;
21199
22392
  lokale_pdf_fout: string | null;
22393
+ lokale_pdf_print_plek_id: string | null;
21200
22394
  lokale_pdf_status: string | null;
21201
22395
  opgepakt_op: string | null;
21202
22396
  paginas: number;
@@ -21209,6 +22403,7 @@ export type Database = {
21209
22403
  resultaat_pdf_base64: string | null;
21210
22404
  status: Database["public"]["Enums"]["print_job_status"];
21211
22405
  updated_at: string;
22406
+ verwerkingsfase: string;
21212
22407
  volgende_poging: string | null;
21213
22408
  voltooid_op: string | null;
21214
22409
  }[];
@@ -21219,6 +22414,14 @@ export type Database = {
21219
22414
  isSetofReturn: true;
21220
22415
  };
21221
22416
  };
22417
+ claim_print_queue_lease: {
22418
+ Args: {
22419
+ _houder: string;
22420
+ _naam: string;
22421
+ _seconden?: number;
22422
+ };
22423
+ Returns: boolean;
22424
+ };
21222
22425
  claim_twinfield_push_batch: {
21223
22426
  Args: {
21224
22427
  _customer_id?: string;
@@ -21344,7 +22547,10 @@ export type Database = {
21344
22547
  cart_index: number;
21345
22548
  cart_number: string;
21346
22549
  cart_number_id: string;
22550
+ cart_seq: number;
22551
+ cart_total: number;
21347
22552
  order_id: string;
22553
+ order_number: string;
21348
22554
  order_source: string;
21349
22555
  pick_date: string;
21350
22556
  printed_at: string;
@@ -21352,6 +22558,12 @@ export type Database = {
21352
22558
  status: string;
21353
22559
  }[];
21354
22560
  };
22561
+ control_mark_carts_delivered: {
22562
+ Args: {
22563
+ p_carts: Json;
22564
+ };
22565
+ Returns: number;
22566
+ };
21355
22567
  count_distinct_regulatory_products: {
21356
22568
  Args: never;
21357
22569
  Returns: number;
@@ -21479,6 +22691,13 @@ export type Database = {
21479
22691
  };
21480
22692
  Returns: undefined;
21481
22693
  };
22694
+ ensure_system_roles: {
22695
+ Args: never;
22696
+ Returns: {
22697
+ action: string;
22698
+ role_key: string;
22699
+ }[];
22700
+ };
21482
22701
  ensure_trade_item_stock_row: {
21483
22702
  Args: {
21484
22703
  p_key: string;
@@ -21545,6 +22764,26 @@ export type Database = {
21545
22764
  };
21546
22765
  Returns: string;
21547
22766
  };
22767
+ finish_local_pdf_job: {
22768
+ Args: {
22769
+ _fout?: string;
22770
+ _job_id: string;
22771
+ _status: string;
22772
+ _writer_id: string;
22773
+ };
22774
+ Returns: boolean;
22775
+ };
22776
+ floriday_adopt_connection: {
22777
+ Args: {
22778
+ p_new: string;
22779
+ p_old: string;
22780
+ };
22781
+ Returns: Json;
22782
+ };
22783
+ floriday_autoheal_connections: {
22784
+ Args: never;
22785
+ Returns: Json;
22786
+ };
21548
22787
  floriday_capture_stock_snapshot: {
21549
22788
  Args: never;
21550
22789
  Returns: number;
@@ -21602,6 +22841,12 @@ export type Database = {
21602
22841
  };
21603
22842
  Returns: undefined;
21604
22843
  };
22844
+ floriday_relink_products: {
22845
+ Args: {
22846
+ p_connection_id?: string;
22847
+ };
22848
+ Returns: Json;
22849
+ };
21605
22850
  floriday_requeue_dead_letters: {
21606
22851
  Args: {
21607
22852
  p_connection_id?: string;
@@ -21824,6 +23069,36 @@ export type Database = {
21824
23069
  Args: never;
21825
23070
  Returns: string;
21826
23071
  };
23072
+ handover_archief_lijst: {
23073
+ Args: never;
23074
+ Returns: Json;
23075
+ };
23076
+ handover_archiveren: {
23077
+ Args: {
23078
+ _archief?: boolean;
23079
+ _module_id: string;
23080
+ };
23081
+ Returns: boolean;
23082
+ };
23083
+ handover_check_afronden: {
23084
+ Args: {
23085
+ _module_id: string;
23086
+ };
23087
+ Returns: boolean;
23088
+ };
23089
+ handover_check_markeren: {
23090
+ Args: {
23091
+ _module_ids: string[];
23092
+ _reden?: string;
23093
+ };
23094
+ Returns: number;
23095
+ };
23096
+ handover_fingerprint_maken: {
23097
+ Args: {
23098
+ _module_id?: string;
23099
+ };
23100
+ Returns: Json;
23101
+ };
21827
23102
  handover_get: {
21828
23103
  Args: {
21829
23104
  _module_id: string;
@@ -21854,6 +23129,14 @@ export type Database = {
21854
23129
  };
21855
23130
  Returns: boolean;
21856
23131
  };
23132
+ handover_module_meta_zetten: {
23133
+ Args: {
23134
+ _module_id: string;
23135
+ _project_url?: string;
23136
+ _publicatie_url?: string;
23137
+ };
23138
+ Returns: boolean;
23139
+ };
21857
23140
  handover_norm_naam: {
21858
23141
  Args: {
21859
23142
  _naam: string;
@@ -21874,6 +23157,23 @@ export type Database = {
21874
23157
  };
21875
23158
  Returns: number;
21876
23159
  };
23160
+ handover_publish_uit_github: {
23161
+ Args: {
23162
+ _bezit_tabellen?: string[];
23163
+ _bron_soort?: string;
23164
+ _commit?: string;
23165
+ _contractfuncties?: string[];
23166
+ _inhoud_md: string;
23167
+ _module_id: string;
23168
+ _module_titel: string;
23169
+ _ontbrekende_contracten?: string[];
23170
+ _pad?: string;
23171
+ _repo?: string;
23172
+ _samenvatting?: string;
23173
+ _versie_label?: string;
23174
+ };
23175
+ Returns: Json;
23176
+ };
21877
23177
  handover_publish_via_token: {
21878
23178
  Args: {
21879
23179
  _bevindingen?: string;
@@ -21887,7 +23187,7 @@ export type Database = {
21887
23187
  _samenvatting?: string;
21888
23188
  _token_hash: string;
21889
23189
  };
21890
- Returns: number;
23190
+ Returns: Json;
21891
23191
  };
21892
23192
  handover_status: {
21893
23193
  Args: never;
@@ -21899,23 +23199,6 @@ export type Database = {
21899
23199
  };
21900
23200
  Returns: string;
21901
23201
  };
21902
- handover_token_intrekken: {
21903
- Args: {
21904
- _id: string;
21905
- };
21906
- Returns: boolean;
21907
- };
21908
- handover_token_lijst: {
21909
- Args: never;
21910
- Returns: Json;
21911
- };
21912
- handover_token_maken: {
21913
- Args: {
21914
- _label?: string;
21915
- _module_id: string;
21916
- };
21917
- Returns: string;
21918
- };
21919
23202
  handover_update: {
21920
23203
  Args: {
21921
23204
  _bezit_tabellen?: string[];
@@ -21943,12 +23226,31 @@ export type Database = {
21943
23226
  };
21944
23227
  Returns: boolean;
21945
23228
  };
23229
+ handover_versie_verwijderen: {
23230
+ Args: {
23231
+ _module_id: string;
23232
+ _versie: number;
23233
+ };
23234
+ Returns: boolean;
23235
+ };
21946
23236
  handover_versies: {
21947
23237
  Args: {
21948
23238
  _module_id: string;
21949
23239
  };
21950
23240
  Returns: Json;
21951
23241
  };
23242
+ handover_verwijderen: {
23243
+ Args: {
23244
+ _module_id: string;
23245
+ };
23246
+ Returns: boolean;
23247
+ };
23248
+ handover_wijzigingen: {
23249
+ Args: {
23250
+ _module_id?: string;
23251
+ };
23252
+ Returns: Json;
23253
+ };
21952
23254
  has_module_permission: {
21953
23255
  Args: {
21954
23256
  _min: string;
@@ -22217,6 +23519,30 @@ export type Database = {
22217
23519
  };
22218
23520
  Returns: Json;
22219
23521
  };
23522
+ logistics_block_reason_code: {
23523
+ Args: {
23524
+ p_details?: Json;
23525
+ p_reason: string;
23526
+ };
23527
+ Returns: string;
23528
+ };
23529
+ logistics_blocked_orders: {
23530
+ Args: never;
23531
+ Returns: {
23532
+ attempts: number;
23533
+ blocked_since: string;
23534
+ delivery_date: string;
23535
+ order_id: string;
23536
+ order_ref: string;
23537
+ queue_id: string;
23538
+ reason: string;
23539
+ reason_code: string;
23540
+ }[];
23541
+ };
23542
+ logistics_blocked_overview: {
23543
+ Args: never;
23544
+ Returns: Json;
23545
+ };
22220
23546
  logistics_buffer_criteria: {
22221
23547
  Args: {
22222
23548
  p_settings: Json;
@@ -22231,6 +23557,39 @@ export type Database = {
22231
23557
  };
22232
23558
  Returns: Json;
22233
23559
  };
23560
+ logistics_buffer_detach_late_orders: {
23561
+ Args: {
23562
+ p_buffer?: string;
23563
+ };
23564
+ Returns: Json;
23565
+ };
23566
+ logistics_buffer_frozen_order: {
23567
+ Args: {
23568
+ p_order_id: string;
23569
+ };
23570
+ Returns: boolean;
23571
+ };
23572
+ logistics_buffer_handled: {
23573
+ Args: {
23574
+ p_buffer: string;
23575
+ };
23576
+ Returns: boolean;
23577
+ };
23578
+ logistics_buffer_notify: {
23579
+ Args: {
23580
+ p_event_type: string;
23581
+ p_idempotency_key: string;
23582
+ p_order_ref: string;
23583
+ p_payload: Json;
23584
+ };
23585
+ Returns: string;
23586
+ };
23587
+ logistics_buffer_open_key: {
23588
+ Args: {
23589
+ p_base_key: string;
23590
+ };
23591
+ Returns: string;
23592
+ };
22234
23593
  logistics_buffer_simulate: {
22235
23594
  Args: {
22236
23595
  p_orders?: Json;
@@ -22283,6 +23642,13 @@ export type Database = {
22283
23642
  };
22284
23643
  Returns: string;
22285
23644
  };
23645
+ logistics_cart_handled: {
23646
+ Args: {
23647
+ p_cart_index: number;
23648
+ p_order_id: string;
23649
+ };
23650
+ Returns: boolean;
23651
+ };
22286
23652
  logistics_cart_index: {
22287
23653
  Args: {
22288
23654
  p_from?: string;
@@ -22292,6 +23658,9 @@ export type Database = {
22292
23658
  cart_id: string;
22293
23659
  cart_index: number;
22294
23660
  cart_label: string;
23661
+ cart_number: string;
23662
+ cart_seq: number;
23663
+ cart_total: number;
22295
23664
  delivery_date: string;
22296
23665
  is_announced: boolean;
22297
23666
  is_controlled: boolean;
@@ -22306,13 +23675,80 @@ export type Database = {
22306
23675
  task_status: string;
22307
23676
  }[];
22308
23677
  };
22309
- logistics_cart_slip_plan: {
22310
- Args: {
22311
- p_order_id: string;
22312
- };
23678
+ logistics_cart_layout_method: {
23679
+ Args: never;
22313
23680
  Returns: Json;
22314
23681
  };
22315
- logistics_check_order_allowed: {
23682
+ logistics_cart_plan_overview: {
23683
+ Args: {
23684
+ p_days?: number;
23685
+ };
23686
+ Returns: {
23687
+ cart_total: number;
23688
+ delivery_date: string;
23689
+ order_ref: string;
23690
+ plan_ready: boolean;
23691
+ reason: string;
23692
+ released: boolean;
23693
+ }[];
23694
+ };
23695
+ logistics_cart_plan_status: {
23696
+ Args: {
23697
+ p_ref: string;
23698
+ };
23699
+ Returns: Json;
23700
+ };
23701
+ logistics_cart_seq: {
23702
+ Args: {
23703
+ p_order_uuid?: string;
23704
+ };
23705
+ Returns: {
23706
+ cart_id: string;
23707
+ cart_index: number;
23708
+ cart_number: string;
23709
+ cart_seq: number;
23710
+ cart_total: number;
23711
+ order_uuid: string;
23712
+ }[];
23713
+ };
23714
+ logistics_cart_slip_plan: {
23715
+ Args: {
23716
+ p_order_id: string;
23717
+ };
23718
+ Returns: Json;
23719
+ };
23720
+ logistics_cart_units: {
23721
+ Args: {
23722
+ p_from?: string;
23723
+ p_to?: string;
23724
+ };
23725
+ Returns: {
23726
+ cart_id: string;
23727
+ cart_index: number;
23728
+ cart_label: string;
23729
+ cart_number: string;
23730
+ cart_seq: number;
23731
+ cart_total: number;
23732
+ delivery_date: string;
23733
+ is_announced: boolean;
23734
+ is_buffer: boolean;
23735
+ is_controlled: boolean;
23736
+ is_printed: boolean;
23737
+ is_shared: boolean;
23738
+ order_number: string;
23739
+ order_source: string;
23740
+ order_uuid: string;
23741
+ pick_date: string;
23742
+ printed_at: string;
23743
+ shifted: boolean;
23744
+ task_status: string;
23745
+ unit_buffer: string;
23746
+ unit_order_count: number;
23747
+ unit_orders: string[];
23748
+ unit_ref: string;
23749
+ }[];
23750
+ };
23751
+ logistics_check_order_allowed: {
22316
23752
  Args: {
22317
23753
  p_lines: Json;
22318
23754
  p_strategy_id?: string;
@@ -22467,7 +23903,9 @@ export type Database = {
22467
23903
  announced_carts: number;
22468
23904
  control_carts: number;
22469
23905
  delivery_carts: number;
23906
+ duplicate_carts: number;
22470
23907
  ok: boolean;
23908
+ orphan_carts: number;
22471
23909
  orphan_tasks: number;
22472
23910
  pick_date: string;
22473
23911
  raw_carts: number;
@@ -22475,6 +23913,85 @@ export type Database = {
22475
23913
  station_carts: number;
22476
23914
  }[];
22477
23915
  };
23916
+ logistics_control_scan_approve: {
23917
+ Args: {
23918
+ p_allow_reprint?: boolean;
23919
+ p_barcode: string;
23920
+ p_printer_id?: string;
23921
+ p_scanner_id?: string;
23922
+ };
23923
+ Returns: Json;
23924
+ };
23925
+ logistics_control_scan_claim: {
23926
+ Args: {
23927
+ _lease_seconds?: number;
23928
+ _limit?: number;
23929
+ };
23930
+ Returns: {
23931
+ approved_at: string | null;
23932
+ attempts: number;
23933
+ barcode: string;
23934
+ cart_id: string;
23935
+ created_at: string;
23936
+ document_url: string | null;
23937
+ error: string | null;
23938
+ error_code: string | null;
23939
+ fulfillment_order_id: string | null;
23940
+ id: string;
23941
+ is_floriday: boolean;
23942
+ locked_until: string | null;
23943
+ order_id: string | null;
23944
+ order_number: string | null;
23945
+ print_job_id: string | null;
23946
+ printed_at: string | null;
23947
+ printer_id: string | null;
23948
+ scanner_id: string | null;
23949
+ status: string;
23950
+ updated_at: string;
23951
+ }[];
23952
+ SetofOptions: {
23953
+ from: "*";
23954
+ to: "logistics_control_scan";
23955
+ isOneToOne: false;
23956
+ isSetofReturn: true;
23957
+ };
23958
+ };
23959
+ logistics_control_scan_finish: {
23960
+ Args: {
23961
+ _document_url?: string;
23962
+ _error?: string;
23963
+ _error_code?: string;
23964
+ _fulfillment_order_id?: string;
23965
+ _id: string;
23966
+ _ok: boolean;
23967
+ _print_job_id?: string;
23968
+ _status?: string;
23969
+ };
23970
+ Returns: Json;
23971
+ };
23972
+ logistics_control_scan_lookup: {
23973
+ Args: {
23974
+ p_barcode: string;
23975
+ };
23976
+ Returns: Json;
23977
+ };
23978
+ logistics_control_scan_overview: {
23979
+ Args: {
23980
+ _date?: string;
23981
+ _scanner_id?: string;
23982
+ };
23983
+ Returns: Json;
23984
+ };
23985
+ logistics_control_scan_retry: {
23986
+ Args: {
23987
+ _id: string;
23988
+ };
23989
+ Returns: Json;
23990
+ };
23991
+ logistics_control_settings: {
23992
+ Args: never;
23993
+ Returns: Json;
23994
+ };
22478
23995
  logistics_delay_customer_email: {
22479
23996
  Args: {
22480
23997
  p_customer: string;
@@ -22542,6 +24059,17 @@ export type Database = {
22542
24059
  };
22543
24060
  Returns: Json;
22544
24061
  };
24062
+ logistics_enqueue_sticker_with_slip: {
24063
+ Args: {
24064
+ _cart_id: string;
24065
+ _is_herprint: boolean;
24066
+ _printer_id: string;
24067
+ _queue_item_id: string;
24068
+ _session_id: string;
24069
+ _slip_job_id: string;
24070
+ };
24071
+ Returns: string;
24072
+ };
22545
24073
  logistics_ensure_cart_barcode: {
22546
24074
  Args: {
22547
24075
  _cart_id: string;
@@ -22683,6 +24211,32 @@ export type Database = {
22683
24211
  };
22684
24212
  Returns: string;
22685
24213
  };
24214
+ logistics_fulfill_barcode_requests: {
24215
+ Args: {
24216
+ p_limit?: number;
24217
+ };
24218
+ Returns: Json;
24219
+ };
24220
+ logistics_full_cart_min_layers: {
24221
+ Args: never;
24222
+ Returns: number;
24223
+ };
24224
+ logistics_full_cart_min_percentage: {
24225
+ Args: never;
24226
+ Returns: number;
24227
+ };
24228
+ logistics_is_pick_workday: {
24229
+ Args: {
24230
+ p_date: string;
24231
+ };
24232
+ Returns: boolean;
24233
+ };
24234
+ logistics_link_order_items: {
24235
+ Args: {
24236
+ p_order?: string;
24237
+ };
24238
+ Returns: Json;
24239
+ };
22686
24240
  logistics_live_carriers: {
22687
24241
  Args: {
22688
24242
  p_order_ref: string;
@@ -22695,6 +24249,26 @@ export type Database = {
22695
24249
  };
22696
24250
  Returns: number;
22697
24251
  };
24252
+ logistics_next_workday_date: {
24253
+ Args: {
24254
+ p_date: string;
24255
+ p_days?: string[];
24256
+ };
24257
+ Returns: string;
24258
+ };
24259
+ logistics_next_workday_not_past: {
24260
+ Args: {
24261
+ p_days: string[];
24262
+ p_ts: string;
24263
+ };
24264
+ Returns: string;
24265
+ };
24266
+ logistics_normalize_product_label: {
24267
+ Args: {
24268
+ p_label: string;
24269
+ };
24270
+ Returns: string;
24271
+ };
22698
24272
  logistics_not_past: {
22699
24273
  Args: {
22700
24274
  p_ts: string;
@@ -22707,6 +24281,19 @@ export type Database = {
22707
24281
  };
22708
24282
  Returns: number;
22709
24283
  };
24284
+ logistics_order_handled: {
24285
+ Args: {
24286
+ p_order_uuid: string;
24287
+ };
24288
+ Returns: boolean;
24289
+ };
24290
+ logistics_order_is_topick: {
24291
+ Args: {
24292
+ p_order_id: string;
24293
+ p_order_number: string;
24294
+ };
24295
+ Returns: boolean;
24296
+ };
22710
24297
  logistics_order_overview: {
22711
24298
  Args: {
22712
24299
  p_from?: string;
@@ -22732,6 +24319,12 @@ export type Database = {
22732
24319
  };
22733
24320
  Returns: string;
22734
24321
  };
24322
+ logistics_order_released: {
24323
+ Args: {
24324
+ p_order_ref: string;
24325
+ };
24326
+ Returns: boolean;
24327
+ };
22735
24328
  logistics_parse_pickup: {
22736
24329
  Args: {
22737
24330
  p_value: string;
@@ -22762,6 +24355,10 @@ export type Database = {
22762
24355
  Args: never;
22763
24356
  Returns: string;
22764
24357
  };
24358
+ logistics_pick_mode: {
24359
+ Args: never;
24360
+ Returns: Json;
24361
+ };
22765
24362
  logistics_pick_start_estimate: {
22766
24363
  Args: {
22767
24364
  p_order: Json;
@@ -22769,6 +24366,18 @@ export type Database = {
22769
24366
  };
22770
24367
  Returns: string;
22771
24368
  };
24369
+ logistics_pick_units: {
24370
+ Args: never;
24371
+ Returns: {
24372
+ is_buffer: boolean;
24373
+ order_number: string;
24374
+ order_uuid: string;
24375
+ unit_buffer: string;
24376
+ unit_order_count: number;
24377
+ unit_orders: string[];
24378
+ unit_ref: string;
24379
+ }[];
24380
+ };
22772
24381
  logistics_plan_all: {
22773
24382
  Args: {
22774
24383
  p_user_id?: string;
@@ -22848,6 +24457,12 @@ export type Database = {
22848
24457
  Args: never;
22849
24458
  Returns: number;
22850
24459
  };
24460
+ logistics_plan_retry: {
24461
+ Args: {
24462
+ p_order_ids: string[];
24463
+ };
24464
+ Returns: number;
24465
+ };
22851
24466
  logistics_plan_setting: {
22852
24467
  Args: {
22853
24468
  p_default: number;
@@ -22855,6 +24470,14 @@ export type Database = {
22855
24470
  };
22856
24471
  Returns: number;
22857
24472
  };
24473
+ logistics_prune_buffer_member_queue: {
24474
+ Args: never;
24475
+ Returns: number;
24476
+ };
24477
+ logistics_prune_handled_pick_queue: {
24478
+ Args: never;
24479
+ Returns: number;
24480
+ };
22858
24481
  logistics_queue_capacity_email: {
22859
24482
  Args: {
22860
24483
  p_alert_id: string;
@@ -22887,6 +24510,12 @@ export type Database = {
22887
24510
  Args: never;
22888
24511
  Returns: Json;
22889
24512
  };
24513
+ logistics_refresh_pickup_moments: {
24514
+ Args: {
24515
+ p_weeks?: number;
24516
+ };
24517
+ Returns: Json;
24518
+ };
22890
24519
  logistics_report_delay: {
22891
24520
  Args: {
22892
24521
  p_expected_date?: string;
@@ -22940,6 +24569,12 @@ export type Database = {
22940
24569
  };
22941
24570
  Returns: Json;
22942
24571
  };
24572
+ logistics_resolve_product_id: {
24573
+ Args: {
24574
+ p_label: string;
24575
+ };
24576
+ Returns: string;
24577
+ };
22943
24578
  logistics_resolve_settings: {
22944
24579
  Args: {
22945
24580
  p_config_id: string;
@@ -22993,6 +24628,12 @@ export type Database = {
22993
24628
  };
22994
24629
  Returns: string;
22995
24630
  };
24631
+ logistics_scan_resolve: {
24632
+ Args: {
24633
+ p_code: string;
24634
+ };
24635
+ Returns: Json;
24636
+ };
22996
24637
  logistics_schedule_tasks: {
22997
24638
  Args: never;
22998
24639
  Returns: number;
@@ -23027,6 +24668,10 @@ export type Database = {
23027
24668
  };
23028
24669
  Returns: Json;
23029
24670
  };
24671
+ logistics_sticker_follows_slip: {
24672
+ Args: never;
24673
+ Returns: boolean;
24674
+ };
23030
24675
  logistics_supersede_stale_tasks: {
23031
24676
  Args: {
23032
24677
  p_keep: string[];
@@ -23059,6 +24704,10 @@ export type Database = {
23059
24704
  };
23060
24705
  Returns: number;
23061
24706
  };
24707
+ logistics_tick_ping: {
24708
+ Args: never;
24709
+ Returns: string;
24710
+ };
23062
24711
  logistics_upsert_task: {
23063
24712
  Args: {
23064
24713
  p_buffer_ref: string;
@@ -23078,6 +24727,18 @@ export type Database = {
23078
24727
  };
23079
24728
  Returns: string;
23080
24729
  };
24730
+ logistics_write_buffer_layer_positions: {
24731
+ Args: {
24732
+ p_buffer_id: string;
24733
+ };
24734
+ Returns: number;
24735
+ };
24736
+ logistics_write_cart_layer_positions: {
24737
+ Args: {
24738
+ p_cart_id: string;
24739
+ };
24740
+ Returns: number;
24741
+ };
23081
24742
  mark_offer_clicked: {
23082
24743
  Args: {
23083
24744
  p_code: string;
@@ -23110,6 +24771,15 @@ export type Database = {
23110
24771
  };
23111
24772
  Returns: undefined;
23112
24773
  };
24774
+ move_cart_layer_position: {
24775
+ Args: {
24776
+ p_id: string;
24777
+ p_layer: number;
24778
+ p_x: number;
24779
+ p_y: number;
24780
+ };
24781
+ Returns: undefined;
24782
+ };
23113
24783
  my_module_permissions: {
23114
24784
  Args: never;
23115
24785
  Returns: {
@@ -23181,6 +24851,12 @@ export type Database = {
23181
24851
  };
23182
24852
  Returns: Json;
23183
24853
  };
24854
+ order_heeft_bevestigde_karren: {
24855
+ Args: {
24856
+ p_order_id: string;
24857
+ };
24858
+ Returns: boolean;
24859
+ };
23184
24860
  order_number_prefix: {
23185
24861
  Args: {
23186
24862
  p_custom_fields?: Json;
@@ -23216,6 +24892,31 @@ export type Database = {
23216
24892
  online: boolean;
23217
24893
  }[];
23218
24894
  };
24895
+ pick_apply_buffer_events: {
24896
+ Args: never;
24897
+ Returns: Json;
24898
+ };
24899
+ pick_available_pick_days: {
24900
+ Args: {
24901
+ _max_days?: number;
24902
+ };
24903
+ Returns: {
24904
+ orders: number;
24905
+ pick_day: string;
24906
+ }[];
24907
+ };
24908
+ pick_buffer_order_ids: {
24909
+ Args: {
24910
+ _order_id: string;
24911
+ };
24912
+ Returns: string[];
24913
+ };
24914
+ pick_cart_breakdown: {
24915
+ Args: {
24916
+ _order_id: string;
24917
+ };
24918
+ Returns: Json;
24919
+ };
23219
24920
  pick_claim_document: {
23220
24921
  Args: {
23221
24922
  _queue_item_id: string;
@@ -23259,20 +24960,350 @@ export type Database = {
23259
24960
  updated_at: string;
23260
24961
  warnings: Json;
23261
24962
  };
23262
- SetofOptions: {
23263
- from: "*";
23264
- to: "pick_queue";
23265
- isOneToOne: true;
23266
- isSetofReturn: false;
24963
+ SetofOptions: {
24964
+ from: "*";
24965
+ to: "pick_queue";
24966
+ isOneToOne: true;
24967
+ isSetofReturn: false;
24968
+ };
24969
+ };
24970
+ pick_claim_next_document: {
24971
+ Args: {
24972
+ _country_code: string;
24973
+ _pick_day?: string;
24974
+ _screen_id: string;
24975
+ _session_id: string;
24976
+ _station_id: string;
24977
+ _timeout_seconds?: number;
24978
+ };
24979
+ Returns: {
24980
+ announced_at: string;
24981
+ assigned_user_id: string | null;
24982
+ barcode: string | null;
24983
+ cancelled_at: string | null;
24984
+ cart_count: number;
24985
+ completed_at: string | null;
24986
+ country_code: string | null;
24987
+ created_at: string;
24988
+ customer_name: string | null;
24989
+ delivery_address: string | null;
24990
+ document_number: string | null;
24991
+ document_type_id: string | null;
24992
+ due_at: string | null;
24993
+ id: string;
24994
+ is_urgent: boolean;
24995
+ line_count: number;
24996
+ order_number: string | null;
24997
+ order_type: string | null;
24998
+ payload: Json;
24999
+ print_count: number;
25000
+ print_job_id: string | null;
25001
+ printed_at: string | null;
25002
+ printed_by: string | null;
25003
+ printed_cart_ids: Json;
25004
+ printer_id: string | null;
25005
+ priority: number;
25006
+ reference: string | null;
25007
+ route: string | null;
25008
+ screen_id: string | null;
25009
+ station_id: string | null;
25010
+ status_id: string | null;
25011
+ updated_at: string;
25012
+ warnings: Json;
25013
+ };
25014
+ SetofOptions: {
25015
+ from: "*";
25016
+ to: "pick_queue";
25017
+ isOneToOne: true;
25018
+ isSetofReturn: false;
25019
+ };
25020
+ };
25021
+ pick_cleanup_maintenance: {
25022
+ Args: {
25023
+ _heartbeat_hours?: number;
25024
+ _log_days?: number;
25025
+ };
25026
+ Returns: Json;
25027
+ };
25028
+ pick_complete_print: {
25029
+ Args: {
25030
+ _printer_id: string;
25031
+ _queue_item_id: string;
25032
+ _session_id: string;
25033
+ };
25034
+ Returns: {
25035
+ announced_at: string;
25036
+ assigned_user_id: string | null;
25037
+ barcode: string | null;
25038
+ cancelled_at: string | null;
25039
+ cart_count: number;
25040
+ completed_at: string | null;
25041
+ country_code: string | null;
25042
+ created_at: string;
25043
+ customer_name: string | null;
25044
+ delivery_address: string | null;
25045
+ document_number: string | null;
25046
+ document_type_id: string | null;
25047
+ due_at: string | null;
25048
+ id: string;
25049
+ is_urgent: boolean;
25050
+ line_count: number;
25051
+ order_number: string | null;
25052
+ order_type: string | null;
25053
+ payload: Json;
25054
+ print_count: number;
25055
+ print_job_id: string | null;
25056
+ printed_at: string | null;
25057
+ printed_by: string | null;
25058
+ printed_cart_ids: Json;
25059
+ printer_id: string | null;
25060
+ priority: number;
25061
+ reference: string | null;
25062
+ route: string | null;
25063
+ screen_id: string | null;
25064
+ station_id: string | null;
25065
+ status_id: string | null;
25066
+ updated_at: string;
25067
+ warnings: Json;
25068
+ };
25069
+ SetofOptions: {
25070
+ from: "*";
25071
+ to: "pick_queue";
25072
+ isOneToOne: true;
25073
+ isSetofReturn: false;
25074
+ };
25075
+ };
25076
+ pick_complete_print_cart: {
25077
+ Args: {
25078
+ _cart_id: string;
25079
+ _printer_id: string;
25080
+ _queue_item_id: string;
25081
+ _session_id: string;
25082
+ };
25083
+ Returns: {
25084
+ announced_at: string;
25085
+ assigned_user_id: string | null;
25086
+ barcode: string | null;
25087
+ cancelled_at: string | null;
25088
+ cart_count: number;
25089
+ completed_at: string | null;
25090
+ country_code: string | null;
25091
+ created_at: string;
25092
+ customer_name: string | null;
25093
+ delivery_address: string | null;
25094
+ document_number: string | null;
25095
+ document_type_id: string | null;
25096
+ due_at: string | null;
25097
+ id: string;
25098
+ is_urgent: boolean;
25099
+ line_count: number;
25100
+ order_number: string | null;
25101
+ order_type: string | null;
25102
+ payload: Json;
25103
+ print_count: number;
25104
+ print_job_id: string | null;
25105
+ printed_at: string | null;
25106
+ printed_by: string | null;
25107
+ printed_cart_ids: Json;
25108
+ printer_id: string | null;
25109
+ priority: number;
25110
+ reference: string | null;
25111
+ route: string | null;
25112
+ screen_id: string | null;
25113
+ station_id: string | null;
25114
+ status_id: string | null;
25115
+ updated_at: string;
25116
+ warnings: Json;
25117
+ };
25118
+ SetofOptions: {
25119
+ from: "*";
25120
+ to: "pick_queue";
25121
+ isOneToOne: true;
25122
+ isSetofReturn: false;
25123
+ };
25124
+ };
25125
+ pick_complete_print_carts: {
25126
+ Args: {
25127
+ _cart_ids: string[];
25128
+ _queue_item_id: string;
25129
+ _session_id: string;
25130
+ };
25131
+ Returns: Json;
25132
+ };
25133
+ pick_current_pick_day: {
25134
+ Args: never;
25135
+ Returns: string;
25136
+ };
25137
+ pick_day_counts: {
25138
+ Args: {
25139
+ _pick_day?: string;
25140
+ _screen_id?: string;
25141
+ _station_id?: string;
25142
+ };
25143
+ Returns: Json;
25144
+ };
25145
+ pick_document_layout_data: {
25146
+ Args: {
25147
+ _layout_id: string;
25148
+ };
25149
+ Returns: Json;
25150
+ };
25151
+ pick_enqueue_print_job: {
25152
+ Args: {
25153
+ _is_herprint?: boolean;
25154
+ _printer_id?: string;
25155
+ _queue_item_id: string;
25156
+ _session_id?: string;
25157
+ };
25158
+ Returns: string;
25159
+ } | {
25160
+ Args: {
25161
+ _cart_id: string;
25162
+ _is_herprint: boolean;
25163
+ _printer_id: string;
25164
+ _queue_item_id: string;
25165
+ _session_id: string;
25166
+ };
25167
+ Returns: string;
25168
+ };
25169
+ pick_enqueue_print_job_from_cart: {
25170
+ Args: {
25171
+ _cart_id: string;
25172
+ _is_herprint: boolean;
25173
+ _printer_id: string;
25174
+ _queue_item_id: string;
25175
+ _selected_cart: Json;
25176
+ _session_id: string;
25177
+ };
25178
+ Returns: string;
25179
+ };
25180
+ pick_mark_printed: {
25181
+ Args: {
25182
+ _queue_item_id: string;
25183
+ _reden?: string;
25184
+ _session_id: string;
25185
+ };
25186
+ Returns: {
25187
+ announced_at: string;
25188
+ assigned_user_id: string | null;
25189
+ barcode: string | null;
25190
+ cancelled_at: string | null;
25191
+ cart_count: number;
25192
+ completed_at: string | null;
25193
+ country_code: string | null;
25194
+ created_at: string;
25195
+ customer_name: string | null;
25196
+ delivery_address: string | null;
25197
+ document_number: string | null;
25198
+ document_type_id: string | null;
25199
+ due_at: string | null;
25200
+ id: string;
25201
+ is_urgent: boolean;
25202
+ line_count: number;
25203
+ order_number: string | null;
25204
+ order_type: string | null;
25205
+ payload: Json;
25206
+ print_count: number;
25207
+ print_job_id: string | null;
25208
+ printed_at: string | null;
25209
+ printed_by: string | null;
25210
+ printed_cart_ids: Json;
25211
+ printer_id: string | null;
25212
+ priority: number;
25213
+ reference: string | null;
25214
+ route: string | null;
25215
+ screen_id: string | null;
25216
+ station_id: string | null;
25217
+ status_id: string | null;
25218
+ updated_at: string;
25219
+ warnings: Json;
25220
+ };
25221
+ SetofOptions: {
25222
+ from: "*";
25223
+ to: "pick_queue";
25224
+ isOneToOne: true;
25225
+ isSetofReturn: false;
25226
+ };
25227
+ };
25228
+ pick_order_context: {
25229
+ Args: {
25230
+ _order_id?: string;
25231
+ _order_number?: string;
25232
+ };
25233
+ Returns: Json;
25234
+ };
25235
+ pick_preview_job: {
25236
+ Args: {
25237
+ _queue_item_id: string;
25238
+ _station_slug: string;
25239
+ };
25240
+ Returns: Json;
25241
+ };
25242
+ pick_print_job_status: {
25243
+ Args: {
25244
+ _job_id: string;
25245
+ };
25246
+ Returns: Json;
25247
+ };
25248
+ pick_print_jobs_status: {
25249
+ Args: {
25250
+ _job_ids: string[];
25251
+ };
25252
+ Returns: Json[];
25253
+ };
25254
+ pick_print_plekken: {
25255
+ Args: never;
25256
+ Returns: {
25257
+ id: string;
25258
+ naam: string;
25259
+ omschrijving: string;
25260
+ }[];
25261
+ };
25262
+ pick_queue_cart_plan: {
25263
+ Args: {
25264
+ _queue_item_id: string;
25265
+ };
25266
+ Returns: Json;
25267
+ };
25268
+ pick_reference_data_status: {
25269
+ Args: never;
25270
+ Returns: Json;
25271
+ };
25272
+ pick_release_expired_locks: {
25273
+ Args: never;
25274
+ Returns: number;
25275
+ };
25276
+ pick_release_lock: {
25277
+ Args: {
25278
+ _queue_item_id: string;
25279
+ };
25280
+ Returns: undefined;
25281
+ };
25282
+ pick_report_missing_cart_plan: {
25283
+ Args: never;
25284
+ Returns: Json;
25285
+ };
25286
+ pick_reprint_cart: {
25287
+ Args: {
25288
+ _cart_id: string;
25289
+ _queue_item_id: string;
25290
+ _session_id: string;
25291
+ _throttle_seconds?: number;
25292
+ };
25293
+ Returns: string;
25294
+ };
25295
+ pick_reprint_document: {
25296
+ Args: {
25297
+ _queue_item_id: string;
25298
+ _session_id: string;
25299
+ _throttle_seconds?: number;
23267
25300
  };
25301
+ Returns: string;
23268
25302
  };
23269
- pick_claim_next_document: {
25303
+ pick_reset_print: {
23270
25304
  Args: {
23271
- _country_code: string;
23272
- _screen_id: string;
25305
+ _queue_item_id: string;
23273
25306
  _session_id: string;
23274
- _station_id: string;
23275
- _timeout_seconds?: number;
23276
25307
  };
23277
25308
  Returns: {
23278
25309
  announced_at: string;
@@ -23315,17 +25346,9 @@ export type Database = {
23315
25346
  isOneToOne: true;
23316
25347
  isSetofReturn: false;
23317
25348
  };
23318
- };
23319
- pick_cleanup_maintenance: {
23320
- Args: {
23321
- _heartbeat_hours?: number;
23322
- _log_days?: number;
23323
- };
23324
- Returns: Json;
23325
- };
23326
- pick_complete_print: {
25349
+ } | {
23327
25350
  Args: {
23328
- _printer_id: string;
25351
+ _cart_id?: string;
23329
25352
  _queue_item_id: string;
23330
25353
  _session_id: string;
23331
25354
  };
@@ -23371,10 +25394,10 @@ export type Database = {
23371
25394
  isSetofReturn: false;
23372
25395
  };
23373
25396
  };
23374
- pick_complete_print_cart: {
25397
+ pick_reset_print_job: {
23375
25398
  Args: {
23376
25399
  _cart_id: string;
23377
- _printer_id: string;
25400
+ _job_id: string;
23378
25401
  _queue_item_id: string;
23379
25402
  _session_id: string;
23380
25403
  };
@@ -23420,94 +25443,10 @@ export type Database = {
23420
25443
  isSetofReturn: false;
23421
25444
  };
23422
25445
  };
23423
- pick_current_pick_day: {
23424
- Args: never;
23425
- Returns: string;
23426
- };
23427
- pick_day_counts: {
23428
- Args: {
23429
- _pick_day?: string;
23430
- _screen_id?: string;
23431
- _station_id?: string;
23432
- };
23433
- Returns: Json;
23434
- };
23435
- pick_document_layout_data: {
23436
- Args: {
23437
- _layout_id: string;
23438
- };
23439
- Returns: Json;
23440
- };
23441
- pick_enqueue_print_job: {
23442
- Args: {
23443
- _is_herprint?: boolean;
23444
- _printer_id?: string;
23445
- _queue_item_id: string;
23446
- _session_id?: string;
23447
- };
23448
- Returns: string;
23449
- } | {
23450
- Args: {
23451
- _cart_id: string;
23452
- _is_herprint: boolean;
23453
- _printer_id: string;
23454
- _queue_item_id: string;
23455
- _session_id: string;
23456
- };
23457
- Returns: string;
23458
- };
23459
- pick_order_context: {
23460
- Args: {
23461
- _order_id?: string;
23462
- _order_number?: string;
23463
- };
23464
- Returns: Json;
23465
- };
23466
- pick_preview_job: {
23467
- Args: {
23468
- _queue_item_id: string;
23469
- _station_slug: string;
23470
- };
23471
- Returns: Json;
23472
- };
23473
- pick_print_job_status: {
23474
- Args: {
23475
- _job_id: string;
23476
- };
23477
- Returns: Json;
23478
- };
23479
- pick_print_plekken: {
23480
- Args: never;
23481
- Returns: {
23482
- id: string;
23483
- naam: string;
23484
- omschrijving: string;
23485
- }[];
23486
- };
23487
- pick_reference_data_status: {
23488
- Args: never;
23489
- Returns: Json;
23490
- };
23491
- pick_release_expired_locks: {
23492
- Args: never;
23493
- Returns: number;
23494
- };
23495
- pick_release_lock: {
23496
- Args: {
23497
- _queue_item_id: string;
23498
- };
23499
- Returns: undefined;
23500
- };
23501
- pick_reprint_document: {
23502
- Args: {
23503
- _queue_item_id: string;
23504
- _session_id: string;
23505
- _throttle_seconds?: number;
23506
- };
23507
- Returns: string;
23508
- };
23509
- pick_reset_print: {
25446
+ pick_reset_print_jobs: {
23510
25447
  Args: {
25448
+ _cart_ids: string[];
25449
+ _job_ids: string[];
23511
25450
  _queue_item_id: string;
23512
25451
  _session_id: string;
23513
25452
  };
@@ -23552,9 +25491,9 @@ export type Database = {
23552
25491
  isOneToOne: true;
23553
25492
  isSetofReturn: false;
23554
25493
  };
23555
- } | {
25494
+ };
25495
+ pick_restore_to_queue: {
23556
25496
  Args: {
23557
- _cart_id?: string;
23558
25497
  _queue_item_id: string;
23559
25498
  _session_id: string;
23560
25499
  };
@@ -23649,6 +25588,12 @@ export type Database = {
23649
25588
  };
23650
25589
  Returns: string;
23651
25590
  };
25591
+ pick_sync_pick_day: {
25592
+ Args: {
25593
+ _day: string;
25594
+ };
25595
+ Returns: Json;
25596
+ };
23652
25597
  pick_sync_queue_throttled: {
23653
25598
  Args: {
23654
25599
  _min_seconds?: number;
@@ -23878,6 +25823,26 @@ export type Database = {
23878
25823
  };
23879
25824
  Returns: boolean;
23880
25825
  };
25826
+ release_job_lock: {
25827
+ Args: {
25828
+ _key: string;
25829
+ };
25830
+ Returns: undefined;
25831
+ };
25832
+ release_local_pdf_job: {
25833
+ Args: {
25834
+ _job_id: string;
25835
+ _writer_id: string;
25836
+ };
25837
+ Returns: boolean;
25838
+ };
25839
+ release_print_queue_lease: {
25840
+ Args: {
25841
+ _houder: string;
25842
+ _naam: string;
25843
+ };
25844
+ Returns: boolean;
25845
+ };
23881
25846
  release_stale_order_invoice_links: {
23882
25847
  Args: {
23883
25848
  _minutes?: number;
@@ -23898,6 +25863,12 @@ export type Database = {
23898
25863
  };
23899
25864
  Returns: Json;
23900
25865
  };
25866
+ reset_cart_layer_positions: {
25867
+ Args: {
25868
+ p_cart_id: string;
25869
+ };
25870
+ Returns: number;
25871
+ };
23901
25872
  reset_floriday_sync_cursor: {
23902
25873
  Args: {
23903
25874
  p_connection_id: string;
@@ -23961,6 +25932,15 @@ export type Database = {
23961
25932
  };
23962
25933
  Returns: Json;
23963
25934
  };
25935
+ roles_without_enum_mapping: {
25936
+ Args: never;
25937
+ Returns: {
25938
+ assignment_count: number;
25939
+ id: string;
25940
+ key: string;
25941
+ name: string;
25942
+ }[];
25943
+ };
23964
25944
  ruim_print_jobs_op: {
23965
25945
  Args: {
23966
25946
  _bewaar_dagen?: number;
@@ -23975,6 +25955,10 @@ export type Database = {
23975
25955
  Args: never;
23976
25956
  Returns: undefined;
23977
25957
  };
25958
+ run_floriday_stock_reconcile: {
25959
+ Args: never;
25960
+ Returns: undefined;
25961
+ };
23978
25962
  run_logistics_tasks_dispatch: {
23979
25963
  Args: never;
23980
25964
  Returns: undefined;
@@ -23993,18 +25977,98 @@ export type Database = {
23993
25977
  };
23994
25978
  Returns: Json;
23995
25979
  };
25980
+ scan_complete_cart: {
25981
+ Args: {
25982
+ p_allow_reprint?: boolean;
25983
+ p_cart_id: string;
25984
+ p_print?: boolean;
25985
+ p_scanner_id?: string;
25986
+ };
25987
+ Returns: Json;
25988
+ };
23996
25989
  scan_dashboard_stats: {
23997
25990
  Args: {
23998
25991
  p_dagen?: number;
23999
25992
  };
24000
25993
  Returns: Json;
24001
25994
  };
25995
+ scan_eindcontrole: {
25996
+ Args: {
25997
+ p_barcode: string;
25998
+ p_scanner_id?: string;
25999
+ };
26000
+ Returns: Json;
26001
+ };
24002
26002
  scan_finish_kar: {
24003
26003
  Args: {
24004
26004
  p_kar_id: string;
24005
26005
  };
24006
26006
  Returns: Json;
24007
26007
  };
26008
+ scan_kar_compleet: {
26009
+ Args: {
26010
+ p_allow_reprint?: boolean;
26011
+ p_sessie_id: string;
26012
+ };
26013
+ Returns: Json;
26014
+ };
26015
+ scan_kar_regels: {
26016
+ Args: {
26017
+ p_cart_id: string;
26018
+ };
26019
+ Returns: Json;
26020
+ };
26021
+ scan_log_code: {
26022
+ Args: {
26023
+ p_code: string;
26024
+ p_latency_ms?: number;
26025
+ p_message?: string;
26026
+ p_result: string;
26027
+ p_scanner_key?: string;
26028
+ };
26029
+ Returns: string;
26030
+ };
26031
+ scan_open_pakbonnen: {
26032
+ Args: {
26033
+ p_dagen?: number;
26034
+ };
26035
+ Returns: Json;
26036
+ };
26037
+ scan_pakbon_lookup: {
26038
+ Args: {
26039
+ p_barcode: string;
26040
+ };
26041
+ Returns: Json;
26042
+ };
26043
+ scan_pakbon_opnieuw: {
26044
+ Args: {
26045
+ p_barcode: string;
26046
+ p_scanner_id?: string;
26047
+ };
26048
+ Returns: Json;
26049
+ };
26050
+ scan_pakbon_toevoegen: {
26051
+ Args: {
26052
+ p_barcode: string;
26053
+ p_medewerker?: string;
26054
+ p_regels?: Json;
26055
+ p_scanner_id: string;
26056
+ };
26057
+ Returns: Json;
26058
+ };
26059
+ scan_print_restpakbon: {
26060
+ Args: {
26061
+ p_printer_id?: string;
26062
+ p_restpakbon_id: string;
26063
+ };
26064
+ Returns: Json;
26065
+ };
26066
+ scan_print_verzendbrief: {
26067
+ Args: {
26068
+ p_sessie_id: string;
26069
+ };
26070
+ Returns: Json;
26071
+ };
24008
26072
  scan_register_item: {
24009
26073
  Args: {
24010
26074
  p_kar_id: string;
@@ -24023,6 +26087,25 @@ export type Database = {
24023
26087
  };
24024
26088
  Returns: Json;
24025
26089
  };
26090
+ scan_restpakbon_geprint: {
26091
+ Args: {
26092
+ p_id: string;
26093
+ p_print_job_id?: string;
26094
+ };
26095
+ Returns: undefined;
26096
+ };
26097
+ scan_sessie_annuleren: {
26098
+ Args: {
26099
+ p_sessie_id: string;
26100
+ };
26101
+ Returns: undefined;
26102
+ };
26103
+ scan_sessie_open: {
26104
+ Args: {
26105
+ p_scanner_id: string;
26106
+ };
26107
+ Returns: Json;
26108
+ };
24026
26109
  scan_start_kar: {
24027
26110
  Args: {
24028
26111
  p_medewerker_id?: string;
@@ -24041,6 +26124,12 @@ export type Database = {
24041
26124
  };
24042
26125
  Returns: Json;
24043
26126
  };
26127
+ scan_verzendbrief_regels: {
26128
+ Args: {
26129
+ p_sessie_id: string;
26130
+ };
26131
+ Returns: Json;
26132
+ };
24044
26133
  schedule_floriday_additional_services_sync: {
24045
26134
  Args: {
24046
26135
  p_apikey: string;
@@ -24356,6 +26445,13 @@ export type Database = {
24356
26445
  };
24357
26446
  Returns: Json;
24358
26447
  };
26448
+ swap_cart_layer_positions: {
26449
+ Args: {
26450
+ p_a: string;
26451
+ p_b: string;
26452
+ };
26453
+ Returns: undefined;
26454
+ };
24359
26455
  switch_time_log: {
24360
26456
  Args: {
24361
26457
  p_employee_id: string;
@@ -24388,6 +26484,12 @@ export type Database = {
24388
26484
  };
24389
26485
  Returns: undefined;
24390
26486
  };
26487
+ sync_order_item_fusten: {
26488
+ Args: {
26489
+ _order_item_id: string;
26490
+ };
26491
+ Returns: undefined;
26492
+ };
24391
26493
  sync_product_group_belading: {
24392
26494
  Args: {
24393
26495
  _group_id: string;
@@ -24415,6 +26517,14 @@ export type Database = {
24415
26517
  row_count: number;
24416
26518
  }[];
24417
26519
  };
26520
+ try_acquire_job_lock: {
26521
+ Args: {
26522
+ _key: string;
26523
+ _owner?: string;
26524
+ _seconds?: number;
26525
+ };
26526
+ Returns: boolean;
26527
+ };
24418
26528
  try_debtor_lock: {
24419
26529
  Args: {
24420
26530
  _group_key: string;
@@ -24494,6 +26604,12 @@ export type Database = {
24494
26604
  Args: never;
24495
26605
  Returns: string;
24496
26606
  };
26607
+ wake_print_queue: {
26608
+ Args: {
26609
+ _min_interval_ms?: number;
26610
+ };
26611
+ Returns: number;
26612
+ };
24497
26613
  werkbon_totalen: {
24498
26614
  Args: {
24499
26615
  _werkbon_id: string;
@@ -24526,10 +26642,18 @@ export type Database = {
24526
26642
  };
24527
26643
  Returns: Json;
24528
26644
  };
26645
+ wo_set_status: {
26646
+ Args: {
26647
+ _reason?: string;
26648
+ _status: string;
26649
+ _work_order_id: string;
26650
+ };
26651
+ Returns: Json;
26652
+ };
24529
26653
  };
24530
26654
  Enums: {
24531
26655
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24532
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26656
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24533
26657
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24534
26658
  doc_orientation: "portrait" | "landscape";
24535
26659
  exact_env: "staging" | "live";
@@ -24600,7 +26724,7 @@ export declare const Constants: {
24600
26724
  readonly public: {
24601
26725
  readonly Enums: {
24602
26726
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
24603
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
26727
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24604
26728
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24605
26729
  readonly doc_orientation: readonly ["portrait", "landscape"];
24606
26730
  readonly exact_env: readonly ["staging", "live"];