@flowselections/floriday-voorraad 1.0.39 → 1.0.41

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 (124) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts +2 -0
  4. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts.map +1 -0
  5. package/dist-lib/components/settings/VoorraadSettingsCard.js +39 -0
  6. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +1 -1
  7. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -1
  8. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts +1 -1
  9. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +1 -1
  11. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  12. package/dist-lib/components/voorraad/ArtikelWizard.js +34 -3
  13. package/dist-lib/components/voorraad/ConnectionBadge.d.ts +1 -1
  14. package/dist-lib/components/voorraad/ConnectionBadge.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/ConnectionPicker.d.ts +8 -0
  16. package/dist-lib/components/voorraad/ConnectionPicker.d.ts.map +1 -0
  17. package/dist-lib/components/voorraad/ConnectionPicker.js +8 -0
  18. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +1 -1
  19. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  20. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +1 -1
  21. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  22. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +1 -1
  23. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -1
  24. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts +1 -1
  25. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts.map +1 -1
  26. package/dist-lib/components/voorraad/FustenPage.d.ts +1 -1
  27. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  28. package/dist-lib/components/voorraad/FustenPage.js +7 -1
  29. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts +1 -1
  30. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts.map +1 -1
  31. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts +1 -1
  32. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts.map +1 -1
  33. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts +1 -1
  34. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts.map +1 -1
  35. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts +1 -1
  36. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  37. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +1 -1
  38. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -1
  39. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +1 -1
  40. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  41. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +1 -1
  42. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -1
  43. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +1 -1
  44. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -1
  45. package/dist-lib/components/voorraad/PublicatiesPage.d.ts +1 -1
  46. package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -1
  47. package/dist-lib/components/voorraad/PublishProgressCard.d.ts +1 -1
  48. package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -1
  49. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +1 -1
  50. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -1
  51. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +1 -1
  52. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -1
  53. package/dist-lib/components/voorraad/StockBulkButtons.d.ts +1 -1
  54. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  55. package/dist-lib/components/voorraad/StockHistoryChart.d.ts +1 -1
  56. package/dist-lib/components/voorraad/StockHistoryChart.d.ts.map +1 -1
  57. package/dist-lib/components/voorraad/StockPushMonitor.d.ts +1 -1
  58. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  59. package/dist-lib/components/voorraad/StockSyncStatus.d.ts +1 -1
  60. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -1
  61. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts +1 -1
  62. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  63. package/dist-lib/components/voorraad/ValidationOverviewTable.js +45 -14
  64. package/dist-lib/components/voorraad/ValidationPage.d.ts +1 -1
  65. package/dist-lib/components/voorraad/ValidationPage.d.ts.map +1 -1
  66. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts +1 -1
  67. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +1 -1
  68. package/dist-lib/components/voorraad/VoorraadPage.d.ts +1 -1
  69. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  70. package/dist-lib/components/voorraad/VoorraadPagination.d.ts +1 -1
  71. package/dist-lib/components/voorraad/VoorraadPagination.d.ts.map +1 -1
  72. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  73. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  74. package/dist-lib/components/voorraad/VoorraadTable.d.ts +1 -1
  75. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  76. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +1 -1
  77. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -1
  78. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  79. package/dist-lib/hooks/useTradeItemStock.js +1 -0
  80. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2768 -260
  81. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  82. package/dist-lib/integrations/supabase/client.d.ts +2768 -260
  83. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  84. package/dist-lib/integrations/supabase/client.js +1 -1
  85. package/dist-lib/integrations/supabase/client.server.d.ts +2768 -260
  86. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  87. package/dist-lib/integrations/supabase/client.server.js +1 -1
  88. package/dist-lib/integrations/supabase/types.d.ts +2751 -199
  89. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  90. package/dist-lib/integrations/supabase/types.js +1 -0
  91. package/dist-lib/lib/floricode-required-features.functions.d.ts +2775 -261
  92. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  93. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2769 -263
  94. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  95. package/dist-lib/lib/floriday-env.functions.d.ts +5280 -264
  96. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  97. package/dist-lib/lib/floriday-gateway.functions.d.ts +16058 -1010
  98. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  99. package/dist-lib/lib/floriday-relink.d.ts +16 -0
  100. package/dist-lib/lib/floriday-relink.d.ts.map +1 -0
  101. package/dist-lib/lib/floriday-relink.js +14 -0
  102. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +5280 -264
  103. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  104. package/dist-lib/lib/floriday-warehouse.functions.d.ts +8021 -497
  105. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  106. package/dist-lib/lib/floriday-writes.functions.d.ts +5280 -264
  107. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  108. package/dist-lib/lib/fusten.d.ts +1 -0
  109. package/dist-lib/lib/fusten.d.ts.map +1 -1
  110. package/dist-lib/lib/fusten.js +1 -1
  111. package/dist-lib/lib/inventory-settings.functions.d.ts +5280 -264
  112. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  113. package/dist-lib/lib/logistics-buffer-events.server.d.ts +13 -0
  114. package/dist-lib/lib/logistics-buffer-events.server.d.ts.map +1 -0
  115. package/dist-lib/lib/logistics-buffer-events.server.js +365 -0
  116. package/dist-lib/lib/logistics-events.d.ts.map +1 -1
  117. package/dist-lib/lib/logistics-events.js +36 -7
  118. package/dist-lib/lib/logistics-tasks.server.d.ts.map +1 -1
  119. package/dist-lib/lib/logistics-tasks.server.js +38 -6
  120. package/dist-lib/lib/module-health.functions.d.ts +5280 -264
  121. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  122. package/dist-lib/lib/stock-sync.functions.d.ts +5280 -264
  123. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  124. package/package.json +1 -1
@@ -709,6 +709,7 @@ export type Database = {
709
709
  raw: Json;
710
710
  updated_at: string;
711
711
  valuta: string;
712
+ velden: Json;
712
713
  };
713
714
  Insert: {
714
715
  artikelcode: string;
@@ -726,6 +727,7 @@ export type Database = {
726
727
  raw?: Json;
727
728
  updated_at?: string;
728
729
  valuta?: string;
730
+ velden?: Json;
729
731
  };
730
732
  Update: {
731
733
  artikelcode?: string;
@@ -743,6 +745,7 @@ export type Database = {
743
745
  raw?: Json;
744
746
  updated_at?: string;
745
747
  valuta?: string;
748
+ velden?: Json;
746
749
  };
747
750
  Relationships: [];
748
751
  };
@@ -1448,8 +1451,9 @@ export type Database = {
1448
1451
  Row: {
1449
1452
  assigned_at: string;
1450
1453
  cart_index: number;
1451
- cart_number: string;
1452
- day_seq: number;
1454
+ cart_number: string | null;
1455
+ day_seq: number | null;
1456
+ delivered_at: string | null;
1453
1457
  id: string;
1454
1458
  order_id: string;
1455
1459
  order_source: string;
@@ -1459,8 +1463,9 @@ export type Database = {
1459
1463
  Insert: {
1460
1464
  assigned_at?: string;
1461
1465
  cart_index: number;
1462
- cart_number: string;
1463
- day_seq: number;
1466
+ cart_number?: string | null;
1467
+ day_seq?: number | null;
1468
+ delivered_at?: string | null;
1464
1469
  id?: string;
1465
1470
  order_id: string;
1466
1471
  order_source: string;
@@ -1470,8 +1475,9 @@ export type Database = {
1470
1475
  Update: {
1471
1476
  assigned_at?: string;
1472
1477
  cart_index?: number;
1473
- cart_number?: string;
1474
- day_seq?: number;
1478
+ cart_number?: string | null;
1479
+ day_seq?: number | null;
1480
+ delivered_at?: string | null;
1475
1481
  id?: string;
1476
1482
  order_id?: string;
1477
1483
  order_source?: string;
@@ -1572,6 +1578,13 @@ export type Database = {
1572
1578
  updated_at?: string;
1573
1579
  };
1574
1580
  Relationships: [
1581
+ {
1582
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1583
+ columns: ["product_id"];
1584
+ isOneToOne: true;
1585
+ referencedRelation: "logistics_product_dimensions";
1586
+ referencedColumns: ["product_id"];
1587
+ },
1575
1588
  {
1576
1589
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1577
1590
  columns: ["product_id"];
@@ -2189,6 +2202,8 @@ export type Database = {
2189
2202
  created_at: string;
2190
2203
  currency: string;
2191
2204
  distribute_over: string | null;
2205
+ external_id: string | null;
2206
+ external_synced_at: string | null;
2192
2207
  group_type: string;
2193
2208
  handling_fee: number | null;
2194
2209
  id: string;
@@ -2201,6 +2216,7 @@ export type Database = {
2201
2216
  rounding: string;
2202
2217
  rounding_step: number;
2203
2218
  sort_order: number;
2219
+ source: string;
2204
2220
  unit: string;
2205
2221
  updated_at: string;
2206
2222
  };
@@ -2211,6 +2227,8 @@ export type Database = {
2211
2227
  created_at?: string;
2212
2228
  currency?: string;
2213
2229
  distribute_over?: string | null;
2230
+ external_id?: string | null;
2231
+ external_synced_at?: string | null;
2214
2232
  group_type?: string;
2215
2233
  handling_fee?: number | null;
2216
2234
  id?: string;
@@ -2223,6 +2241,7 @@ export type Database = {
2223
2241
  rounding?: string;
2224
2242
  rounding_step?: number;
2225
2243
  sort_order?: number;
2244
+ source?: string;
2226
2245
  unit?: string;
2227
2246
  updated_at?: string;
2228
2247
  };
@@ -2233,6 +2252,8 @@ export type Database = {
2233
2252
  created_at?: string;
2234
2253
  currency?: string;
2235
2254
  distribute_over?: string | null;
2255
+ external_id?: string | null;
2256
+ external_synced_at?: string | null;
2236
2257
  group_type?: string;
2237
2258
  handling_fee?: number | null;
2238
2259
  id?: string;
@@ -2245,6 +2266,7 @@ export type Database = {
2245
2266
  rounding?: string;
2246
2267
  rounding_step?: number;
2247
2268
  sort_order?: number;
2269
+ source?: string;
2248
2270
  unit?: string;
2249
2271
  updated_at?: string;
2250
2272
  };
@@ -7247,6 +7269,53 @@ export type Database = {
7247
7269
  };
7248
7270
  Relationships: [];
7249
7271
  };
7272
+ floriday_status_sync_queue: {
7273
+ Row: {
7274
+ attempts: number;
7275
+ created_at: string;
7276
+ error: string | null;
7277
+ floriday_sales_order_id: string;
7278
+ order_id: string;
7279
+ processed_at: string | null;
7280
+ requested_at: string;
7281
+ state: string;
7282
+ target_status: string;
7283
+ updated_at: string;
7284
+ };
7285
+ Insert: {
7286
+ attempts?: number;
7287
+ created_at?: string;
7288
+ error?: string | null;
7289
+ floriday_sales_order_id: string;
7290
+ order_id: string;
7291
+ processed_at?: string | null;
7292
+ requested_at?: string;
7293
+ state?: string;
7294
+ target_status: string;
7295
+ updated_at?: string;
7296
+ };
7297
+ Update: {
7298
+ attempts?: number;
7299
+ created_at?: string;
7300
+ error?: string | null;
7301
+ floriday_sales_order_id?: string;
7302
+ order_id?: string;
7303
+ processed_at?: string | null;
7304
+ requested_at?: string;
7305
+ state?: string;
7306
+ target_status?: string;
7307
+ updated_at?: string;
7308
+ };
7309
+ Relationships: [
7310
+ {
7311
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7312
+ columns: ["order_id"];
7313
+ isOneToOne: true;
7314
+ referencedRelation: "orders";
7315
+ referencedColumns: ["id"];
7316
+ }
7317
+ ];
7318
+ };
7250
7319
  floriday_sync_cursors: {
7251
7320
  Row: {
7252
7321
  connection_id: string;
@@ -8523,10 +8592,12 @@ export type Database = {
8523
8592
  general_email: string | null;
8524
8593
  general_phone: string | null;
8525
8594
  id: string;
8595
+ kvk_number: string | null;
8526
8596
  legacy_customer_id: string | null;
8527
8597
  name: string;
8528
8598
  segment: Database["public"]["Enums"]["itk_customer_segment"];
8529
8599
  updated_at: string;
8600
+ vat_number: string | null;
8530
8601
  };
8531
8602
  Insert: {
8532
8603
  billing_city?: string | null;
@@ -8537,10 +8608,12 @@ export type Database = {
8537
8608
  general_email?: string | null;
8538
8609
  general_phone?: string | null;
8539
8610
  id?: string;
8611
+ kvk_number?: string | null;
8540
8612
  legacy_customer_id?: string | null;
8541
8613
  name: string;
8542
8614
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8543
8615
  updated_at?: string;
8616
+ vat_number?: string | null;
8544
8617
  };
8545
8618
  Update: {
8546
8619
  billing_city?: string | null;
@@ -8551,10 +8624,12 @@ export type Database = {
8551
8624
  general_email?: string | null;
8552
8625
  general_phone?: string | null;
8553
8626
  id?: string;
8627
+ kvk_number?: string | null;
8554
8628
  legacy_customer_id?: string | null;
8555
8629
  name?: string;
8556
8630
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8557
8631
  updated_at?: string;
8632
+ vat_number?: string | null;
8558
8633
  };
8559
8634
  Relationships: [];
8560
8635
  };
@@ -8588,6 +8663,119 @@ export type Database = {
8588
8663
  };
8589
8664
  Relationships: [];
8590
8665
  };
8666
+ itk_handover_github_scan: {
8667
+ Row: {
8668
+ gescand_op: string;
8669
+ gevonden: boolean;
8670
+ melding: string | null;
8671
+ module_id: string | null;
8672
+ repo: string;
8673
+ };
8674
+ Insert: {
8675
+ gescand_op?: string;
8676
+ gevonden?: boolean;
8677
+ melding?: string | null;
8678
+ module_id?: string | null;
8679
+ repo: string;
8680
+ };
8681
+ Update: {
8682
+ gescand_op?: string;
8683
+ gevonden?: boolean;
8684
+ melding?: string | null;
8685
+ module_id?: string | null;
8686
+ repo?: string;
8687
+ };
8688
+ Relationships: [];
8689
+ };
8690
+ itk_handover_module_meta: {
8691
+ Row: {
8692
+ check_aangevraagd_op: string | null;
8693
+ check_nodig: boolean;
8694
+ check_reden: string | null;
8695
+ created_at: string;
8696
+ module_id: string;
8697
+ project_url: string | null;
8698
+ publicatie_url: string | null;
8699
+ updated_at: string;
8700
+ };
8701
+ Insert: {
8702
+ check_aangevraagd_op?: string | null;
8703
+ check_nodig?: boolean;
8704
+ check_reden?: string | null;
8705
+ created_at?: string;
8706
+ module_id: string;
8707
+ project_url?: string | null;
8708
+ publicatie_url?: string | null;
8709
+ updated_at?: string;
8710
+ };
8711
+ Update: {
8712
+ check_aangevraagd_op?: string | null;
8713
+ check_nodig?: boolean;
8714
+ check_reden?: string | null;
8715
+ created_at?: string;
8716
+ module_id?: string;
8717
+ project_url?: string | null;
8718
+ publicatie_url?: string | null;
8719
+ updated_at?: string;
8720
+ };
8721
+ Relationships: [];
8722
+ };
8723
+ itk_handover_project_modules: {
8724
+ Row: {
8725
+ created_at: string;
8726
+ id: string;
8727
+ module_id: string;
8728
+ project_id: string;
8729
+ updated_at: string;
8730
+ };
8731
+ Insert: {
8732
+ created_at?: string;
8733
+ id?: string;
8734
+ module_id: string;
8735
+ project_id: string;
8736
+ updated_at?: string;
8737
+ };
8738
+ Update: {
8739
+ created_at?: string;
8740
+ id?: string;
8741
+ module_id?: string;
8742
+ project_id?: string;
8743
+ updated_at?: string;
8744
+ };
8745
+ Relationships: [
8746
+ {
8747
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8748
+ columns: ["project_id"];
8749
+ isOneToOne: false;
8750
+ referencedRelation: "itk_handover_projecten";
8751
+ referencedColumns: ["id"];
8752
+ }
8753
+ ];
8754
+ };
8755
+ itk_handover_projecten: {
8756
+ Row: {
8757
+ created_at: string;
8758
+ id: string;
8759
+ naam: string;
8760
+ omschrijving: string | null;
8761
+ updated_at: string;
8762
+ };
8763
+ Insert: {
8764
+ created_at?: string;
8765
+ id?: string;
8766
+ naam: string;
8767
+ omschrijving?: string | null;
8768
+ updated_at?: string;
8769
+ };
8770
+ Update: {
8771
+ created_at?: string;
8772
+ id?: string;
8773
+ naam?: string;
8774
+ omschrijving?: string | null;
8775
+ updated_at?: string;
8776
+ };
8777
+ Relationships: [];
8778
+ };
8591
8779
  itk_handover_rechten: {
8592
8780
  Row: {
8593
8781
  created_at: string;
@@ -8615,42 +8803,33 @@ export type Database = {
8615
8803
  };
8616
8804
  Relationships: [];
8617
8805
  };
8618
- itk_handover_tokens: {
8806
+ itk_module_fingerprints: {
8619
8807
  Row: {
8620
- aangemaakt_door: string | null;
8621
8808
  created_at: string;
8809
+ gemaakt_op: string;
8810
+ hash: string;
8622
8811
  id: string;
8623
- is_actief: boolean;
8624
- laatst_gebruikt_op: string | null;
8625
- label: string;
8626
8812
  module_id: string;
8627
- token_hash: string;
8813
+ payload: Json;
8628
8814
  updated_at: string;
8629
- verloopt_op: string | null;
8630
8815
  };
8631
8816
  Insert: {
8632
- aangemaakt_door?: string | null;
8633
8817
  created_at?: string;
8818
+ gemaakt_op?: string;
8819
+ hash: string;
8634
8820
  id?: string;
8635
- is_actief?: boolean;
8636
- laatst_gebruikt_op?: string | null;
8637
- label?: string;
8638
8821
  module_id: string;
8639
- token_hash: string;
8822
+ payload?: Json;
8640
8823
  updated_at?: string;
8641
- verloopt_op?: string | null;
8642
8824
  };
8643
8825
  Update: {
8644
- aangemaakt_door?: string | null;
8645
8826
  created_at?: string;
8827
+ gemaakt_op?: string;
8828
+ hash?: string;
8646
8829
  id?: string;
8647
- is_actief?: boolean;
8648
- laatst_gebruikt_op?: string | null;
8649
- label?: string;
8650
8830
  module_id?: string;
8651
- token_hash?: string;
8831
+ payload?: Json;
8652
8832
  updated_at?: string;
8653
- verloopt_op?: string | null;
8654
8833
  };
8655
8834
  Relationships: [];
8656
8835
  };
@@ -8658,6 +8837,11 @@ export type Database = {
8658
8837
  Row: {
8659
8838
  bevindingen: string | null;
8660
8839
  bezit_tabellen: string[];
8840
+ bron_commit: string | null;
8841
+ bron_pad: string | null;
8842
+ bron_repo: string | null;
8843
+ bron_soort: string | null;
8844
+ bron_versie: string | null;
8661
8845
  conflicten_snapshot: Json;
8662
8846
  contractfuncties: string[];
8663
8847
  created_at: string;
@@ -8668,6 +8852,8 @@ export type Database = {
8668
8852
  id: string;
8669
8853
  inhoud_md: string;
8670
8854
  is_actueel: boolean;
8855
+ is_gearchiveerd: boolean;
8856
+ laatst_gecontroleerd_op: string | null;
8671
8857
  module_id: string;
8672
8858
  module_titel: string;
8673
8859
  ontbrekende_contracten: string[];
@@ -8678,6 +8864,11 @@ export type Database = {
8678
8864
  Insert: {
8679
8865
  bevindingen?: string | null;
8680
8866
  bezit_tabellen?: string[];
8867
+ bron_commit?: string | null;
8868
+ bron_pad?: string | null;
8869
+ bron_repo?: string | null;
8870
+ bron_soort?: string | null;
8871
+ bron_versie?: string | null;
8681
8872
  conflicten_snapshot?: Json;
8682
8873
  contractfuncties?: string[];
8683
8874
  created_at?: string;
@@ -8688,6 +8879,8 @@ export type Database = {
8688
8879
  id?: string;
8689
8880
  inhoud_md: string;
8690
8881
  is_actueel?: boolean;
8882
+ is_gearchiveerd?: boolean;
8883
+ laatst_gecontroleerd_op?: string | null;
8691
8884
  module_id: string;
8692
8885
  module_titel: string;
8693
8886
  ontbrekende_contracten?: string[];
@@ -8698,6 +8891,11 @@ export type Database = {
8698
8891
  Update: {
8699
8892
  bevindingen?: string | null;
8700
8893
  bezit_tabellen?: string[];
8894
+ bron_commit?: string | null;
8895
+ bron_pad?: string | null;
8896
+ bron_repo?: string | null;
8897
+ bron_soort?: string | null;
8898
+ bron_versie?: string | null;
8701
8899
  conflicten_snapshot?: Json;
8702
8900
  contractfuncties?: string[];
8703
8901
  created_at?: string;
@@ -8708,6 +8906,8 @@ export type Database = {
8708
8906
  id?: string;
8709
8907
  inhoud_md?: string;
8710
8908
  is_actueel?: boolean;
8909
+ is_gearchiveerd?: boolean;
8910
+ laatst_gecontroleerd_op?: string | null;
8711
8911
  module_id?: string;
8712
8912
  module_titel?: string;
8713
8913
  ontbrekende_contracten?: string[];
@@ -8762,6 +8962,39 @@ export type Database = {
8762
8962
  };
8763
8963
  Relationships: [];
8764
8964
  };
8965
+ itk_module_wijzigingen: {
8966
+ Row: {
8967
+ created_at: string;
8968
+ geconstateerd_op: string;
8969
+ id: string;
8970
+ module_id: string;
8971
+ omschrijving: string;
8972
+ soort: string;
8973
+ updated_at: string;
8974
+ was_na_publicatie: boolean;
8975
+ };
8976
+ Insert: {
8977
+ created_at?: string;
8978
+ geconstateerd_op?: string;
8979
+ id?: string;
8980
+ module_id: string;
8981
+ omschrijving: string;
8982
+ soort: string;
8983
+ updated_at?: string;
8984
+ was_na_publicatie?: boolean;
8985
+ };
8986
+ Update: {
8987
+ created_at?: string;
8988
+ geconstateerd_op?: string;
8989
+ id?: string;
8990
+ module_id?: string;
8991
+ omschrijving?: string;
8992
+ soort?: string;
8993
+ updated_at?: string;
8994
+ was_na_publicatie?: boolean;
8995
+ };
8996
+ Relationships: [];
8997
+ };
8765
8998
  itk_offerte_events: {
8766
8999
  Row: {
8767
9000
  created_at: string;
@@ -9009,6 +9242,13 @@ export type Database = {
9009
9242
  referencedRelation: "werkbonnen";
9010
9243
  referencedColumns: ["id"];
9011
9244
  },
9245
+ {
9246
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9247
+ columns: ["follow_up_werkbon_id"];
9248
+ isOneToOne: false;
9249
+ referencedRelation: "wo_overview";
9250
+ referencedColumns: ["id"];
9251
+ },
9012
9252
  {
9013
9253
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
9014
9254
  columns: ["werkbon_id"];
@@ -9016,6 +9256,13 @@ export type Database = {
9016
9256
  referencedRelation: "werkbonnen";
9017
9257
  referencedColumns: ["id"];
9018
9258
  },
9259
+ {
9260
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9261
+ columns: ["werkbon_id"];
9262
+ isOneToOne: false;
9263
+ referencedRelation: "wo_overview";
9264
+ referencedColumns: ["id"];
9265
+ },
9019
9266
  {
9020
9267
  foreignKeyName: "itk_offertes_work_location_id_fkey";
9021
9268
  columns: ["work_location_id"];
@@ -9075,6 +9322,30 @@ export type Database = {
9075
9322
  }
9076
9323
  ];
9077
9324
  };
9325
+ job_locks: {
9326
+ Row: {
9327
+ created_at: string;
9328
+ lock_key: string;
9329
+ locked_until: string;
9330
+ owner: string | null;
9331
+ updated_at: string;
9332
+ };
9333
+ Insert: {
9334
+ created_at?: string;
9335
+ lock_key: string;
9336
+ locked_until: string;
9337
+ owner?: string | null;
9338
+ updated_at?: string;
9339
+ };
9340
+ Update: {
9341
+ created_at?: string;
9342
+ lock_key?: string;
9343
+ locked_until?: string;
9344
+ owner?: string | null;
9345
+ updated_at?: string;
9346
+ };
9347
+ Relationships: [];
9348
+ };
9078
9349
  layout_logos: {
9079
9350
  Row: {
9080
9351
  bestand_url: string;
@@ -9325,6 +9596,13 @@ export type Database = {
9325
9596
  referencedRelation: "product_categories";
9326
9597
  referencedColumns: ["id"];
9327
9598
  },
9599
+ {
9600
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9601
+ columns: ["product_id"];
9602
+ isOneToOne: false;
9603
+ referencedRelation: "logistics_product_dimensions";
9604
+ referencedColumns: ["product_id"];
9605
+ },
9328
9606
  {
9329
9607
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9330
9608
  columns: ["product_id"];
@@ -9395,6 +9673,13 @@ export type Database = {
9395
9673
  referencedRelation: "product_categories";
9396
9674
  referencedColumns: ["id"];
9397
9675
  },
9676
+ {
9677
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9678
+ columns: ["product_id"];
9679
+ isOneToOne: false;
9680
+ referencedRelation: "logistics_product_dimensions";
9681
+ referencedColumns: ["product_id"];
9682
+ },
9398
9683
  {
9399
9684
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9400
9685
  columns: ["product_id"];
@@ -9465,6 +9750,13 @@ export type Database = {
9465
9750
  referencedRelation: "product_categories";
9466
9751
  referencedColumns: ["id"];
9467
9752
  },
9753
+ {
9754
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9755
+ columns: ["product_id"];
9756
+ isOneToOne: false;
9757
+ referencedRelation: "logistics_product_dimensions";
9758
+ referencedColumns: ["product_id"];
9759
+ },
9468
9760
  {
9469
9761
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9470
9762
  columns: ["product_id"];
@@ -9650,56 +9942,146 @@ export type Database = {
9650
9942
  };
9651
9943
  Relationships: [];
9652
9944
  };
9653
- logistics_decisions: {
9945
+ logistics_cart_barcode: {
9654
9946
  Row: {
9947
+ barcode: string;
9948
+ cart_id: string;
9655
9949
  created_at: string;
9656
- explanation: string | null;
9657
- id: string;
9658
- input_snapshot: Json;
9659
- result: Json;
9660
- slot: string;
9661
- strategy_id: string | null;
9662
- subject_id: string;
9663
- subject_type: string;
9664
- user_id: string;
9950
+ order_id: string | null;
9665
9951
  };
9666
9952
  Insert: {
9953
+ barcode: string;
9954
+ cart_id: string;
9667
9955
  created_at?: string;
9668
- explanation?: string | null;
9669
- id?: string;
9670
- input_snapshot?: Json;
9671
- result?: Json;
9672
- slot: string;
9673
- strategy_id?: string | null;
9674
- subject_id: string;
9675
- subject_type: string;
9676
- user_id: string;
9956
+ order_id?: string | null;
9677
9957
  };
9678
9958
  Update: {
9959
+ barcode?: string;
9960
+ cart_id?: string;
9679
9961
  created_at?: string;
9680
- explanation?: string | null;
9681
- id?: string;
9682
- input_snapshot?: Json;
9683
- result?: Json;
9684
- slot?: string;
9685
- strategy_id?: string | null;
9686
- subject_id?: string;
9687
- subject_type?: string;
9688
- user_id?: string;
9962
+ order_id?: string | null;
9689
9963
  };
9690
- Relationships: [
9691
- {
9692
- foreignKeyName: "logistics_decisions_strategy_id_fkey";
9693
- columns: ["strategy_id"];
9694
- isOneToOne: false;
9695
- referencedRelation: "logistics_strategies";
9696
- referencedColumns: ["id"];
9697
- }
9698
- ];
9964
+ Relationships: [];
9699
9965
  };
9700
- logistics_delay_alerts: {
9966
+ logistics_control_scan: {
9701
9967
  Row: {
9702
- approved_by: string | null;
9968
+ approved_at: string | null;
9969
+ attempts: number;
9970
+ barcode: string;
9971
+ cart_id: string;
9972
+ created_at: string;
9973
+ document_url: string | null;
9974
+ error: string | null;
9975
+ error_code: string | null;
9976
+ fulfillment_order_id: string | null;
9977
+ 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;
9988
+ };
9989
+ Insert: {
9990
+ approved_at?: string | null;
9991
+ attempts?: number;
9992
+ barcode: string;
9993
+ cart_id: string;
9994
+ created_at?: string;
9995
+ document_url?: string | null;
9996
+ error?: string | null;
9997
+ error_code?: string | null;
9998
+ fulfillment_order_id?: string | null;
9999
+ 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;
10059
+ };
10060
+ Update: {
10061
+ created_at?: string;
10062
+ explanation?: string | null;
10063
+ id?: string;
10064
+ input_snapshot?: Json;
10065
+ result?: Json;
10066
+ slot?: string;
10067
+ strategy_id?: string | null;
10068
+ subject_id?: string;
10069
+ subject_type?: string;
10070
+ user_id?: string;
10071
+ };
10072
+ Relationships: [
10073
+ {
10074
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
10075
+ columns: ["strategy_id"];
10076
+ isOneToOne: false;
10077
+ referencedRelation: "logistics_strategies";
10078
+ referencedColumns: ["id"];
10079
+ }
10080
+ ];
10081
+ };
10082
+ logistics_delay_alerts: {
10083
+ Row: {
10084
+ approved_by: string | null;
9703
10085
  created_at: string;
9704
10086
  current_status: string | null;
9705
10087
  customer_name: string | null;
@@ -9941,6 +10323,45 @@ export type Database = {
9941
10323
  };
9942
10324
  Relationships: [];
9943
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
+ };
10344
+ logistics_floriday_push_refusals: {
10345
+ Row: {
10346
+ created_at: string;
10347
+ id: string;
10348
+ order_ref: string;
10349
+ reason: string;
10350
+ };
10351
+ Insert: {
10352
+ created_at?: string;
10353
+ id?: string;
10354
+ order_ref: string;
10355
+ reason: string;
10356
+ };
10357
+ Update: {
10358
+ created_at?: string;
10359
+ id?: string;
10360
+ order_ref?: string;
10361
+ reason?: string;
10362
+ };
10363
+ Relationships: [];
10364
+ };
9944
10365
  logistics_floriday_pushes: {
9945
10366
  Row: {
9946
10367
  attempts: number;
@@ -10060,6 +10481,36 @@ export type Database = {
10060
10481
  }
10061
10482
  ];
10062
10483
  };
10484
+ logistics_layer_override_log: {
10485
+ Row: {
10486
+ cart_id: string;
10487
+ created_at: string;
10488
+ details: Json;
10489
+ id: string;
10490
+ keg_id: string | null;
10491
+ product_id: string | null;
10492
+ reason: string;
10493
+ };
10494
+ Insert: {
10495
+ cart_id: string;
10496
+ created_at?: string;
10497
+ details?: Json;
10498
+ id?: string;
10499
+ keg_id?: string | null;
10500
+ product_id?: string | null;
10501
+ reason: string;
10502
+ };
10503
+ Update: {
10504
+ cart_id?: string;
10505
+ created_at?: string;
10506
+ details?: Json;
10507
+ id?: string;
10508
+ keg_id?: string | null;
10509
+ product_id?: string | null;
10510
+ reason?: string;
10511
+ };
10512
+ Relationships: [];
10513
+ };
10063
10514
  logistics_pickup_moments: {
10064
10515
  Row: {
10065
10516
  carrier_ref: string | null;
@@ -10106,6 +10557,7 @@ export type Database = {
10106
10557
  next_attempt_at: string;
10107
10558
  order_id: string;
10108
10559
  reason: string;
10560
+ reason_code: string | null;
10109
10561
  status: string;
10110
10562
  updated_at: string;
10111
10563
  };
@@ -10118,6 +10570,7 @@ export type Database = {
10118
10570
  next_attempt_at?: string;
10119
10571
  order_id: string;
10120
10572
  reason?: string;
10573
+ reason_code?: string | null;
10121
10574
  status?: string;
10122
10575
  updated_at?: string;
10123
10576
  };
@@ -10130,6 +10583,7 @@ export type Database = {
10130
10583
  next_attempt_at?: string;
10131
10584
  order_id?: string;
10132
10585
  reason?: string;
10586
+ reason_code?: string | null;
10133
10587
  status?: string;
10134
10588
  updated_at?: string;
10135
10589
  };
@@ -10493,6 +10947,36 @@ export type Database = {
10493
10947
  }
10494
10948
  ];
10495
10949
  };
10950
+ logistics_shipping_note_scan: {
10951
+ Row: {
10952
+ barcode: string;
10953
+ cart_id: string;
10954
+ id: string;
10955
+ is_reprint: boolean;
10956
+ order_id: string | null;
10957
+ print_job_id: string | null;
10958
+ scanned_at: string;
10959
+ };
10960
+ Insert: {
10961
+ barcode: string;
10962
+ cart_id: string;
10963
+ id?: string;
10964
+ is_reprint?: boolean;
10965
+ order_id?: string | null;
10966
+ print_job_id?: string | null;
10967
+ scanned_at?: string;
10968
+ };
10969
+ Update: {
10970
+ barcode?: string;
10971
+ cart_id?: string;
10972
+ id?: string;
10973
+ is_reprint?: boolean;
10974
+ order_id?: string | null;
10975
+ print_job_id?: string | null;
10976
+ scanned_at?: string;
10977
+ };
10978
+ Relationships: [];
10979
+ };
10496
10980
  logistics_staff_planning: {
10497
10981
  Row: {
10498
10982
  created_at: string;
@@ -10817,6 +11301,21 @@ export type Database = {
10817
11301
  }
10818
11302
  ];
10819
11303
  };
11304
+ logistics_tick_heartbeat: {
11305
+ Row: {
11306
+ id: boolean;
11307
+ last_tick_at: string;
11308
+ };
11309
+ Insert: {
11310
+ id?: boolean;
11311
+ last_tick_at?: string;
11312
+ };
11313
+ Update: {
11314
+ id?: boolean;
11315
+ last_tick_at?: string;
11316
+ };
11317
+ Relationships: [];
11318
+ };
10820
11319
  logistics_variables: {
10821
11320
  Row: {
10822
11321
  created_at: string;
@@ -11258,6 +11757,13 @@ export type Database = {
11258
11757
  updated_at?: string;
11259
11758
  };
11260
11759
  Relationships: [
11760
+ {
11761
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11762
+ columns: ["product_id"];
11763
+ isOneToOne: false;
11764
+ referencedRelation: "logistics_product_dimensions";
11765
+ referencedColumns: ["product_id"];
11766
+ },
11261
11767
  {
11262
11768
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11263
11769
  columns: ["product_id"];
@@ -12600,6 +13106,8 @@ export type Database = {
12600
13106
  order_buffers: {
12601
13107
  Row: {
12602
13108
  buffer_key: string;
13109
+ close_at: string | null;
13110
+ closed_at: string | null;
12603
13111
  created_at: string;
12604
13112
  customer_id: string | null;
12605
13113
  grouping_mode: string;
@@ -12611,6 +13119,8 @@ export type Database = {
12611
13119
  };
12612
13120
  Insert: {
12613
13121
  buffer_key: string;
13122
+ close_at?: string | null;
13123
+ closed_at?: string | null;
12614
13124
  created_at?: string;
12615
13125
  customer_id?: string | null;
12616
13126
  grouping_mode: string;
@@ -12622,6 +13132,8 @@ export type Database = {
12622
13132
  };
12623
13133
  Update: {
12624
13134
  buffer_key?: string;
13135
+ close_at?: string | null;
13136
+ closed_at?: string | null;
12625
13137
  created_at?: string;
12626
13138
  customer_id?: string | null;
12627
13139
  grouping_mode?: string;
@@ -12638,10 +13150,12 @@ export type Database = {
12638
13150
  boxes: number | null;
12639
13151
  cart_id: string;
12640
13152
  crates: number;
13153
+ crates_in_layer: number | null;
12641
13154
  crates_per_layer: number;
12642
13155
  created_at: string;
12643
13156
  id: string;
12644
13157
  layer_fraction: number;
13158
+ layer_index: number | null;
12645
13159
  layer_share_pct: number;
12646
13160
  layers_per_cart: number;
12647
13161
  order_item_id: string | null;
@@ -12654,10 +13168,12 @@ export type Database = {
12654
13168
  boxes?: number | null;
12655
13169
  cart_id: string;
12656
13170
  crates: number;
13171
+ crates_in_layer?: number | null;
12657
13172
  crates_per_layer?: number;
12658
13173
  created_at?: string;
12659
13174
  id?: string;
12660
13175
  layer_fraction?: number;
13176
+ layer_index?: number | null;
12661
13177
  layer_share_pct?: number;
12662
13178
  layers_per_cart?: number;
12663
13179
  order_item_id?: string | null;
@@ -12670,10 +13186,12 @@ export type Database = {
12670
13186
  boxes?: number | null;
12671
13187
  cart_id?: string;
12672
13188
  crates?: number;
13189
+ crates_in_layer?: number | null;
12673
13190
  crates_per_layer?: number;
12674
13191
  created_at?: string;
12675
13192
  id?: string;
12676
13193
  layer_fraction?: number;
13194
+ layer_index?: number | null;
12677
13195
  layer_share_pct?: number;
12678
13196
  layers_per_cart?: number;
12679
13197
  order_item_id?: string | null;
@@ -12697,6 +13215,13 @@ export type Database = {
12697
13215
  referencedRelation: "order_items";
12698
13216
  referencedColumns: ["id"];
12699
13217
  },
13218
+ {
13219
+ foreignKeyName: "order_cart_items_product_id_fkey";
13220
+ columns: ["product_id"];
13221
+ isOneToOne: false;
13222
+ referencedRelation: "logistics_product_dimensions";
13223
+ referencedColumns: ["product_id"];
13224
+ },
12700
13225
  {
12701
13226
  foreignKeyName: "order_cart_items_product_id_fkey";
12702
13227
  columns: ["product_id"];
@@ -12706,6 +13231,95 @@ export type Database = {
12706
13231
  }
12707
13232
  ];
12708
13233
  };
13234
+ order_cart_layer_positions: {
13235
+ Row: {
13236
+ algorithm_version: number | null;
13237
+ cart_id: string;
13238
+ created_at: string;
13239
+ height: number;
13240
+ id: string;
13241
+ keg_id: string;
13242
+ label: string | null;
13243
+ layer: number;
13244
+ layer_height: number | null;
13245
+ layer_width: number | null;
13246
+ manual_overridden_at: string | null;
13247
+ manual_overridden_by: string | null;
13248
+ manual_override: boolean;
13249
+ order_item_id: string | null;
13250
+ original_layer: number | null;
13251
+ original_x: number | null;
13252
+ original_y: number | null;
13253
+ product_id: string | null;
13254
+ rotation: number;
13255
+ source: string | null;
13256
+ updated_at: string;
13257
+ width: number;
13258
+ x: number;
13259
+ y: number;
13260
+ };
13261
+ Insert: {
13262
+ algorithm_version?: number | null;
13263
+ cart_id: string;
13264
+ created_at?: string;
13265
+ height: number;
13266
+ id?: string;
13267
+ keg_id: string;
13268
+ label?: string | null;
13269
+ layer: number;
13270
+ layer_height?: number | null;
13271
+ layer_width?: number | null;
13272
+ manual_overridden_at?: string | null;
13273
+ manual_overridden_by?: string | null;
13274
+ manual_override?: boolean;
13275
+ order_item_id?: string | null;
13276
+ original_layer?: number | null;
13277
+ original_x?: number | null;
13278
+ original_y?: number | null;
13279
+ product_id?: string | null;
13280
+ rotation?: number;
13281
+ source?: string | null;
13282
+ updated_at?: string;
13283
+ width: number;
13284
+ x: number;
13285
+ y: number;
13286
+ };
13287
+ Update: {
13288
+ algorithm_version?: number | null;
13289
+ cart_id?: string;
13290
+ created_at?: string;
13291
+ height?: number;
13292
+ id?: string;
13293
+ keg_id?: string;
13294
+ label?: string | null;
13295
+ layer?: number;
13296
+ layer_height?: number | null;
13297
+ layer_width?: number | null;
13298
+ manual_overridden_at?: string | null;
13299
+ manual_overridden_by?: string | null;
13300
+ manual_override?: boolean;
13301
+ order_item_id?: string | null;
13302
+ original_layer?: number | null;
13303
+ original_x?: number | null;
13304
+ original_y?: number | null;
13305
+ product_id?: string | null;
13306
+ rotation?: number;
13307
+ source?: string | null;
13308
+ updated_at?: string;
13309
+ width?: number;
13310
+ x?: number;
13311
+ y?: number;
13312
+ };
13313
+ Relationships: [
13314
+ {
13315
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
13316
+ columns: ["cart_id"];
13317
+ isOneToOne: false;
13318
+ referencedRelation: "order_carts";
13319
+ referencedColumns: ["id"];
13320
+ }
13321
+ ];
13322
+ };
12709
13323
  order_carts: {
12710
13324
  Row: {
12711
13325
  algorithm_version: number;
@@ -12717,6 +13331,7 @@ export type Database = {
12717
13331
  id: string;
12718
13332
  is_auto: boolean;
12719
13333
  is_complete: boolean;
13334
+ layout_method: string | null;
12720
13335
  max_layers: number | null;
12721
13336
  moved_at: string | null;
12722
13337
  moved_from_moment_id: string | null;
@@ -12727,6 +13342,7 @@ export type Database = {
12727
13342
  pickup_locked: boolean;
12728
13343
  pickup_moment_id: string | null;
12729
13344
  source: string;
13345
+ total_carts: number | null;
12730
13346
  total_layers_used: number;
12731
13347
  updated_at: string;
12732
13348
  weight_kg: number | null;
@@ -12741,6 +13357,7 @@ export type Database = {
12741
13357
  id?: string;
12742
13358
  is_auto?: boolean;
12743
13359
  is_complete?: boolean;
13360
+ layout_method?: string | null;
12744
13361
  max_layers?: number | null;
12745
13362
  moved_at?: string | null;
12746
13363
  moved_from_moment_id?: string | null;
@@ -12751,6 +13368,7 @@ export type Database = {
12751
13368
  pickup_locked?: boolean;
12752
13369
  pickup_moment_id?: string | null;
12753
13370
  source?: string;
13371
+ total_carts?: number | null;
12754
13372
  total_layers_used?: number;
12755
13373
  updated_at?: string;
12756
13374
  weight_kg?: number | null;
@@ -12765,6 +13383,7 @@ export type Database = {
12765
13383
  id?: string;
12766
13384
  is_auto?: boolean;
12767
13385
  is_complete?: boolean;
13386
+ layout_method?: string | null;
12768
13387
  max_layers?: number | null;
12769
13388
  moved_at?: string | null;
12770
13389
  moved_from_moment_id?: string | null;
@@ -12775,6 +13394,7 @@ export type Database = {
12775
13394
  pickup_locked?: boolean;
12776
13395
  pickup_moment_id?: string | null;
12777
13396
  source?: string;
13397
+ total_carts?: number | null;
12778
13398
  total_layers_used?: number;
12779
13399
  updated_at?: string;
12780
13400
  weight_kg?: number | null;
@@ -12885,10 +13505,45 @@ export type Database = {
12885
13505
  };
12886
13506
  Relationships: [];
12887
13507
  };
12888
- order_invoice_links: {
13508
+ order_fust_bookings: {
12889
13509
  Row: {
12890
- administration_code: string | null;
12891
- attempts: number;
13510
+ created_at: string;
13511
+ fust_type_id: string;
13512
+ id: string;
13513
+ order_item_id: string;
13514
+ quantity: number;
13515
+ updated_at: string;
13516
+ };
13517
+ Insert: {
13518
+ created_at?: string;
13519
+ fust_type_id: string;
13520
+ id?: string;
13521
+ order_item_id: string;
13522
+ quantity?: number;
13523
+ updated_at?: string;
13524
+ };
13525
+ Update: {
13526
+ created_at?: string;
13527
+ fust_type_id?: string;
13528
+ id?: string;
13529
+ order_item_id?: string;
13530
+ quantity?: number;
13531
+ updated_at?: string;
13532
+ };
13533
+ Relationships: [
13534
+ {
13535
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13536
+ columns: ["fust_type_id"];
13537
+ isOneToOne: false;
13538
+ referencedRelation: "fust_types";
13539
+ referencedColumns: ["id"];
13540
+ }
13541
+ ];
13542
+ };
13543
+ order_invoice_links: {
13544
+ Row: {
13545
+ administration_code: string | null;
13546
+ attempts: number;
12892
13547
  created_at: string;
12893
13548
  error_message: string | null;
12894
13549
  id: string;
@@ -12975,6 +13630,13 @@ export type Database = {
12975
13630
  referencedRelation: "orders";
12976
13631
  referencedColumns: ["id"];
12977
13632
  },
13633
+ {
13634
+ foreignKeyName: "order_items_product_id_fkey";
13635
+ columns: ["product_id"];
13636
+ isOneToOne: false;
13637
+ referencedRelation: "logistics_product_dimensions";
13638
+ referencedColumns: ["product_id"];
13639
+ },
12978
13640
  {
12979
13641
  foreignKeyName: "order_items_product_id_fkey";
12980
13642
  columns: ["product_id"];
@@ -13129,6 +13791,9 @@ export type Database = {
13129
13791
  plan_locked_at: string | null;
13130
13792
  plan_locked_ref: string | null;
13131
13793
  status: string;
13794
+ status_changed_at: string;
13795
+ status_origin: string;
13796
+ status_sync_token: string | null;
13132
13797
  total: string;
13133
13798
  updated_at: string;
13134
13799
  };
@@ -13153,6 +13818,9 @@ export type Database = {
13153
13818
  plan_locked_at?: string | null;
13154
13819
  plan_locked_ref?: string | null;
13155
13820
  status?: string;
13821
+ status_changed_at?: string;
13822
+ status_origin?: string;
13823
+ status_sync_token?: string | null;
13156
13824
  total?: string;
13157
13825
  updated_at?: string;
13158
13826
  };
@@ -13177,6 +13845,9 @@ export type Database = {
13177
13845
  plan_locked_at?: string | null;
13178
13846
  plan_locked_ref?: string | null;
13179
13847
  status?: string;
13848
+ status_changed_at?: string;
13849
+ status_origin?: string;
13850
+ status_sync_token?: string | null;
13180
13851
  total?: string;
13181
13852
  updated_at?: string;
13182
13853
  };
@@ -13233,6 +13904,153 @@ export type Database = {
13233
13904
  };
13234
13905
  Relationships: [];
13235
13906
  };
13907
+ pakbon_barcode_inhoud: {
13908
+ Row: {
13909
+ barcode: string;
13910
+ cart_id: string | null;
13911
+ cart_index: number | null;
13912
+ cart_label: string | null;
13913
+ cart_total: number | null;
13914
+ created_at: string;
13915
+ is_herprint: boolean;
13916
+ klant_naam: string | null;
13917
+ klant_nummer: string | null;
13918
+ layout_id: string | null;
13919
+ layout_variant: string | null;
13920
+ order_nummer: string | null;
13921
+ order_ref: string | null;
13922
+ print_job_id: string | null;
13923
+ regels: Json;
13924
+ updated_at: string;
13925
+ };
13926
+ Insert: {
13927
+ barcode: string;
13928
+ cart_id?: string | null;
13929
+ cart_index?: number | null;
13930
+ cart_label?: string | null;
13931
+ cart_total?: number | null;
13932
+ created_at?: string;
13933
+ is_herprint?: boolean;
13934
+ klant_naam?: string | null;
13935
+ klant_nummer?: string | null;
13936
+ layout_id?: string | null;
13937
+ layout_variant?: string | null;
13938
+ order_nummer?: string | null;
13939
+ order_ref?: string | null;
13940
+ print_job_id?: string | null;
13941
+ regels?: Json;
13942
+ updated_at?: string;
13943
+ };
13944
+ Update: {
13945
+ barcode?: string;
13946
+ cart_id?: string | null;
13947
+ cart_index?: number | null;
13948
+ cart_label?: string | null;
13949
+ cart_total?: number | null;
13950
+ created_at?: string;
13951
+ is_herprint?: boolean;
13952
+ klant_naam?: string | null;
13953
+ klant_nummer?: string | null;
13954
+ layout_id?: string | null;
13955
+ layout_variant?: string | null;
13956
+ order_nummer?: string | null;
13957
+ order_ref?: string | null;
13958
+ print_job_id?: string | null;
13959
+ regels?: Json;
13960
+ updated_at?: string;
13961
+ };
13962
+ Relationships: [];
13963
+ };
13964
+ pakbon_barcode_verzoeken: {
13965
+ Row: {
13966
+ aangevraagd_op: string;
13967
+ barcode: string | null;
13968
+ cart_id: string | null;
13969
+ cart_index: number | null;
13970
+ cart_label: string | null;
13971
+ cart_total: number | null;
13972
+ documentnaam: string | null;
13973
+ geleverd_op: string | null;
13974
+ id: string;
13975
+ is_herprint: boolean;
13976
+ klant_naam: string | null;
13977
+ klant_nummer: string | null;
13978
+ laatst_gevraagd_op: string;
13979
+ layout_id: string | null;
13980
+ layout_variant: string | null;
13981
+ order_nummer: string | null;
13982
+ order_ref: string | null;
13983
+ print_job_id: string;
13984
+ status: string;
13985
+ updated_at: string;
13986
+ };
13987
+ Insert: {
13988
+ aangevraagd_op?: string;
13989
+ barcode?: string | null;
13990
+ cart_id?: string | null;
13991
+ cart_index?: number | null;
13992
+ cart_label?: string | null;
13993
+ cart_total?: number | null;
13994
+ documentnaam?: string | null;
13995
+ geleverd_op?: string | null;
13996
+ id?: string;
13997
+ is_herprint?: boolean;
13998
+ klant_naam?: string | null;
13999
+ klant_nummer?: string | null;
14000
+ laatst_gevraagd_op?: string;
14001
+ layout_id?: string | null;
14002
+ layout_variant?: string | null;
14003
+ order_nummer?: string | null;
14004
+ order_ref?: string | null;
14005
+ print_job_id: string;
14006
+ status?: string;
14007
+ updated_at?: string;
14008
+ };
14009
+ Update: {
14010
+ aangevraagd_op?: string;
14011
+ barcode?: string | null;
14012
+ cart_id?: string | null;
14013
+ cart_index?: number | null;
14014
+ cart_label?: string | null;
14015
+ cart_total?: number | null;
14016
+ documentnaam?: string | null;
14017
+ geleverd_op?: string | null;
14018
+ id?: string;
14019
+ is_herprint?: boolean;
14020
+ klant_naam?: string | null;
14021
+ klant_nummer?: string | null;
14022
+ laatst_gevraagd_op?: string;
14023
+ layout_id?: string | null;
14024
+ layout_variant?: string | null;
14025
+ order_nummer?: string | null;
14026
+ order_ref?: string | null;
14027
+ print_job_id?: string;
14028
+ status?: string;
14029
+ updated_at?: string;
14030
+ };
14031
+ Relationships: [];
14032
+ };
14033
+ pick_buffer_event_cursor: {
14034
+ Row: {
14035
+ created_at: string;
14036
+ id: boolean;
14037
+ last_event_at: string;
14038
+ updated_at: string;
14039
+ };
14040
+ Insert: {
14041
+ created_at?: string;
14042
+ id?: boolean;
14043
+ last_event_at?: string;
14044
+ updated_at?: string;
14045
+ };
14046
+ Update: {
14047
+ created_at?: string;
14048
+ id?: boolean;
14049
+ last_event_at?: string;
14050
+ updated_at?: string;
14051
+ };
14052
+ Relationships: [];
14053
+ };
13236
14054
  pick_countries: {
13237
14055
  Row: {
13238
14056
  active: boolean;
@@ -13392,6 +14210,7 @@ export type Database = {
13392
14210
  print_job_id: string | null;
13393
14211
  printed_at: string | null;
13394
14212
  printed_by: string | null;
14213
+ printed_cart_ids: Json;
13395
14214
  printer_id: string | null;
13396
14215
  priority: number;
13397
14216
  reference: string | null;
@@ -13426,6 +14245,7 @@ export type Database = {
13426
14245
  print_job_id?: string | null;
13427
14246
  printed_at?: string | null;
13428
14247
  printed_by?: string | null;
14248
+ printed_cart_ids?: Json;
13429
14249
  printer_id?: string | null;
13430
14250
  priority?: number;
13431
14251
  reference?: string | null;
@@ -13460,6 +14280,7 @@ export type Database = {
13460
14280
  print_job_id?: string | null;
13461
14281
  printed_at?: string | null;
13462
14282
  printed_by?: string | null;
14283
+ printed_cart_ids?: Json;
13463
14284
  printer_id?: string | null;
13464
14285
  priority?: number;
13465
14286
  reference?: string | null;
@@ -14347,6 +15168,13 @@ export type Database = {
14347
15168
  isOneToOne: false;
14348
15169
  referencedRelation: "werkbonnen";
14349
15170
  referencedColumns: ["id"];
15171
+ },
15172
+ {
15173
+ foreignKeyName: "planning_items_werkbon_id_fkey";
15174
+ columns: ["werkbon_id"];
15175
+ isOneToOne: false;
15176
+ referencedRelation: "wo_overview";
15177
+ referencedColumns: ["id"];
14350
15178
  }
14351
15179
  ];
14352
15180
  };
@@ -14465,12 +15293,21 @@ export type Database = {
14465
15293
  };
14466
15294
  print_jobs: {
14467
15295
  Row: {
15296
+ aflever_pogingen: number;
14468
15297
  agent_id: string | null;
15298
+ artefact_bytes: number | null;
15299
+ artefact_gereed_op: string | null;
15300
+ artefact_pad: string | null;
15301
+ artefact_sha256: string | null;
15302
+ batch_id: string | null;
14469
15303
  bron_job_id: string | null;
14470
15304
  created_at: string;
14471
15305
  documentnaam: string;
14472
15306
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14473
15307
  extern_job_id: string | null;
15308
+ fase_gestart_op: string | null;
15309
+ fase_voltooid_op: string | null;
15310
+ foutcode: string | null;
14474
15311
  foutmelding: string | null;
14475
15312
  gebruiker_id: string | null;
14476
15313
  gebruiker_naam: string;
@@ -14484,7 +15321,10 @@ export type Database = {
14484
15321
  kopieen: number;
14485
15322
  layout_id: string | null;
14486
15323
  lokaal_opgeslagen_op: string | null;
15324
+ lokale_pdf_claim_id: string | null;
15325
+ lokale_pdf_claim_tot: string | null;
14487
15326
  lokale_pdf_fout: string | null;
15327
+ lokale_pdf_print_plek_id: string | null;
14488
15328
  lokale_pdf_status: string | null;
14489
15329
  opgepakt_op: string | null;
14490
15330
  paginas: number;
@@ -14497,16 +15337,26 @@ export type Database = {
14497
15337
  resultaat_pdf_base64: string | null;
14498
15338
  status: Database["public"]["Enums"]["print_job_status"];
14499
15339
  updated_at: string;
15340
+ verwerkingsfase: string;
14500
15341
  volgende_poging: string | null;
14501
15342
  voltooid_op: string | null;
14502
15343
  };
14503
15344
  Insert: {
15345
+ aflever_pogingen?: number;
14504
15346
  agent_id?: string | null;
15347
+ artefact_bytes?: number | null;
15348
+ artefact_gereed_op?: string | null;
15349
+ artefact_pad?: string | null;
15350
+ artefact_sha256?: string | null;
15351
+ batch_id?: string | null;
14505
15352
  bron_job_id?: string | null;
14506
15353
  created_at?: string;
14507
15354
  documentnaam?: string;
14508
15355
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14509
15356
  extern_job_id?: string | null;
15357
+ fase_gestart_op?: string | null;
15358
+ fase_voltooid_op?: string | null;
15359
+ foutcode?: string | null;
14510
15360
  foutmelding?: string | null;
14511
15361
  gebruiker_id?: string | null;
14512
15362
  gebruiker_naam?: string;
@@ -14520,7 +15370,10 @@ export type Database = {
14520
15370
  kopieen?: number;
14521
15371
  layout_id?: string | null;
14522
15372
  lokaal_opgeslagen_op?: string | null;
15373
+ lokale_pdf_claim_id?: string | null;
15374
+ lokale_pdf_claim_tot?: string | null;
14523
15375
  lokale_pdf_fout?: string | null;
15376
+ lokale_pdf_print_plek_id?: string | null;
14524
15377
  lokale_pdf_status?: string | null;
14525
15378
  opgepakt_op?: string | null;
14526
15379
  paginas?: number;
@@ -14533,16 +15386,26 @@ export type Database = {
14533
15386
  resultaat_pdf_base64?: string | null;
14534
15387
  status?: Database["public"]["Enums"]["print_job_status"];
14535
15388
  updated_at?: string;
15389
+ verwerkingsfase?: string;
14536
15390
  volgende_poging?: string | null;
14537
15391
  voltooid_op?: string | null;
14538
15392
  };
14539
15393
  Update: {
15394
+ aflever_pogingen?: number;
14540
15395
  agent_id?: string | null;
15396
+ artefact_bytes?: number | null;
15397
+ artefact_gereed_op?: string | null;
15398
+ artefact_pad?: string | null;
15399
+ artefact_sha256?: string | null;
15400
+ batch_id?: string | null;
14541
15401
  bron_job_id?: string | null;
14542
15402
  created_at?: string;
14543
15403
  documentnaam?: string;
14544
15404
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14545
15405
  extern_job_id?: string | null;
15406
+ fase_gestart_op?: string | null;
15407
+ fase_voltooid_op?: string | null;
15408
+ foutcode?: string | null;
14546
15409
  foutmelding?: string | null;
14547
15410
  gebruiker_id?: string | null;
14548
15411
  gebruiker_naam?: string;
@@ -14556,7 +15419,10 @@ export type Database = {
14556
15419
  kopieen?: number;
14557
15420
  layout_id?: string | null;
14558
15421
  lokaal_opgeslagen_op?: string | null;
15422
+ lokale_pdf_claim_id?: string | null;
15423
+ lokale_pdf_claim_tot?: string | null;
14559
15424
  lokale_pdf_fout?: string | null;
15425
+ lokale_pdf_print_plek_id?: string | null;
14560
15426
  lokale_pdf_status?: string | null;
14561
15427
  opgepakt_op?: string | null;
14562
15428
  paginas?: number;
@@ -14569,6 +15435,7 @@ export type Database = {
14569
15435
  resultaat_pdf_base64?: string | null;
14570
15436
  status?: Database["public"]["Enums"]["print_job_status"];
14571
15437
  updated_at?: string;
15438
+ verwerkingsfase?: string;
14572
15439
  volgende_poging?: string | null;
14573
15440
  voltooid_op?: string | null;
14574
15441
  };
@@ -14587,6 +15454,13 @@ export type Database = {
14587
15454
  referencedRelation: "document_layouts";
14588
15455
  referencedColumns: ["id"];
14589
15456
  },
15457
+ {
15458
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
15459
+ columns: ["lokale_pdf_print_plek_id"];
15460
+ isOneToOne: false;
15461
+ referencedRelation: "print_plekken";
15462
+ referencedColumns: ["id"];
15463
+ },
14590
15464
  {
14591
15465
  foreignKeyName: "print_jobs_printer_id_fkey";
14592
15466
  columns: ["printer_id"];
@@ -14726,6 +15600,30 @@ export type Database = {
14726
15600
  };
14727
15601
  Relationships: [];
14728
15602
  };
15603
+ print_queue_leases: {
15604
+ Row: {
15605
+ created_at: string;
15606
+ houder: string;
15607
+ naam: string;
15608
+ updated_at: string;
15609
+ verloopt_op: string;
15610
+ };
15611
+ Insert: {
15612
+ created_at?: string;
15613
+ houder: string;
15614
+ naam: string;
15615
+ updated_at?: string;
15616
+ verloopt_op: string;
15617
+ };
15618
+ Update: {
15619
+ created_at?: string;
15620
+ houder?: string;
15621
+ naam?: string;
15622
+ updated_at?: string;
15623
+ verloopt_op?: string;
15624
+ };
15625
+ Relationships: [];
15626
+ };
14729
15627
  print_queue_runners: {
14730
15628
  Row: {
14731
15629
  actief: boolean;
@@ -14735,7 +15633,9 @@ export type Database = {
14735
15633
  laatst_gezien: string;
14736
15634
  laatste_fout: string | null;
14737
15635
  laatste_request_id: number | null;
15636
+ laatste_wakeup: string | null;
14738
15637
  mislukte_posts: number;
15638
+ mislukte_wakeups: number;
14739
15639
  tick_sleutel: string;
14740
15640
  updated_at: string;
14741
15641
  };
@@ -14747,7 +15647,9 @@ export type Database = {
14747
15647
  laatst_gezien?: string;
14748
15648
  laatste_fout?: string | null;
14749
15649
  laatste_request_id?: number | null;
15650
+ laatste_wakeup?: string | null;
14750
15651
  mislukte_posts?: number;
15652
+ mislukte_wakeups?: number;
14751
15653
  tick_sleutel?: string;
14752
15654
  updated_at?: string;
14753
15655
  };
@@ -14759,7 +15661,9 @@ export type Database = {
14759
15661
  laatst_gezien?: string;
14760
15662
  laatste_fout?: string | null;
14761
15663
  laatste_request_id?: number | null;
15664
+ laatste_wakeup?: string | null;
14762
15665
  mislukte_posts?: number;
15666
+ mislukte_wakeups?: number;
14763
15667
  tick_sleutel?: string;
14764
15668
  updated_at?: string;
14765
15669
  };
@@ -15083,6 +15987,13 @@ export type Database = {
15083
15987
  updated_at?: string;
15084
15988
  };
15085
15989
  Relationships: [
15990
+ {
15991
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15992
+ columns: ["parent_product_id"];
15993
+ isOneToOne: false;
15994
+ referencedRelation: "logistics_product_dimensions";
15995
+ referencedColumns: ["product_id"];
15996
+ },
15086
15997
  {
15087
15998
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15088
15999
  columns: ["parent_product_id"];
@@ -15139,6 +16050,13 @@ export type Database = {
15139
16050
  updated_at?: string;
15140
16051
  };
15141
16052
  Relationships: [
16053
+ {
16054
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
16055
+ columns: ["component_product_id"];
16056
+ isOneToOne: false;
16057
+ referencedRelation: "logistics_product_dimensions";
16058
+ referencedColumns: ["product_id"];
16059
+ },
15142
16060
  {
15143
16061
  foreignKeyName: "product_bom_items_component_product_id_fkey";
15144
16062
  columns: ["component_product_id"];
@@ -15146,6 +16064,13 @@ export type Database = {
15146
16064
  referencedRelation: "products";
15147
16065
  referencedColumns: ["id"];
15148
16066
  },
16067
+ {
16068
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
16069
+ columns: ["parent_product_id"];
16070
+ isOneToOne: false;
16071
+ referencedRelation: "logistics_product_dimensions";
16072
+ referencedColumns: ["product_id"];
16073
+ },
15149
16074
  {
15150
16075
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
15151
16076
  columns: ["parent_product_id"];
@@ -15326,6 +16251,13 @@ export type Database = {
15326
16251
  updated_at?: string;
15327
16252
  };
15328
16253
  Relationships: [
16254
+ {
16255
+ foreignKeyName: "product_groups_head_product_id_fkey";
16256
+ columns: ["head_product_id"];
16257
+ isOneToOne: false;
16258
+ referencedRelation: "logistics_product_dimensions";
16259
+ referencedColumns: ["product_id"];
16260
+ },
15329
16261
  {
15330
16262
  foreignKeyName: "product_groups_head_product_id_fkey";
15331
16263
  columns: ["head_product_id"];
@@ -15395,6 +16327,13 @@ export type Database = {
15395
16327
  referencedRelation: "packages";
15396
16328
  referencedColumns: ["id"];
15397
16329
  },
16330
+ {
16331
+ foreignKeyName: "product_load_settings_product_id_fkey";
16332
+ columns: ["product_id"];
16333
+ isOneToOne: false;
16334
+ referencedRelation: "logistics_product_dimensions";
16335
+ referencedColumns: ["product_id"];
16336
+ },
15398
16337
  {
15399
16338
  foreignKeyName: "product_load_settings_product_id_fkey";
15400
16339
  columns: ["product_id"];
@@ -15446,6 +16385,7 @@ export type Database = {
15446
16385
  created_at: string;
15447
16386
  custom_fields: Json;
15448
16387
  floriday_trade_item_id: string | null;
16388
+ fust_type_id: string | null;
15449
16389
  id: string;
15450
16390
  image_url: string | null;
15451
16391
  incoming_quantity: number;
@@ -15453,6 +16393,7 @@ export type Database = {
15453
16393
  layers_per_cart: number;
15454
16394
  location: string;
15455
16395
  min_quantity: number;
16396
+ plant_height_cm: number | null;
15456
16397
  plants_per_crate: number;
15457
16398
  product: string;
15458
16399
  product_type: string;
@@ -15472,6 +16413,7 @@ export type Database = {
15472
16413
  created_at?: string;
15473
16414
  custom_fields?: Json;
15474
16415
  floriday_trade_item_id?: string | null;
16416
+ fust_type_id?: string | null;
15475
16417
  id?: string;
15476
16418
  image_url?: string | null;
15477
16419
  incoming_quantity?: number;
@@ -15479,6 +16421,7 @@ export type Database = {
15479
16421
  layers_per_cart?: number;
15480
16422
  location: string;
15481
16423
  min_quantity?: number;
16424
+ plant_height_cm?: number | null;
15482
16425
  plants_per_crate?: number;
15483
16426
  product: string;
15484
16427
  product_type?: string;
@@ -15498,6 +16441,7 @@ export type Database = {
15498
16441
  created_at?: string;
15499
16442
  custom_fields?: Json;
15500
16443
  floriday_trade_item_id?: string | null;
16444
+ fust_type_id?: string | null;
15501
16445
  id?: string;
15502
16446
  image_url?: string | null;
15503
16447
  incoming_quantity?: number;
@@ -15505,6 +16449,7 @@ export type Database = {
15505
16449
  layers_per_cart?: number;
15506
16450
  location?: string;
15507
16451
  min_quantity?: number;
16452
+ plant_height_cm?: number | null;
15508
16453
  plants_per_crate?: number;
15509
16454
  product?: string;
15510
16455
  product_type?: string;
@@ -15516,7 +16461,15 @@ export type Database = {
15516
16461
  updated_at?: string;
15517
16462
  weight?: string | null;
15518
16463
  };
15519
- Relationships: [];
16464
+ Relationships: [
16465
+ {
16466
+ foreignKeyName: "products_fust_type_id_fkey";
16467
+ columns: ["fust_type_id"];
16468
+ isOneToOne: false;
16469
+ referencedRelation: "fust_types";
16470
+ referencedColumns: ["id"];
16471
+ }
16472
+ ];
15520
16473
  };
15521
16474
  profile_modules: {
15522
16475
  Row: {
@@ -15865,6 +16818,13 @@ export type Database = {
15865
16818
  quantity?: number;
15866
16819
  };
15867
16820
  Relationships: [
16821
+ {
16822
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16823
+ columns: ["product_id"];
16824
+ isOneToOne: false;
16825
+ referencedRelation: "logistics_product_dimensions";
16826
+ referencedColumns: ["product_id"];
16827
+ },
15868
16828
  {
15869
16829
  foreignKeyName: "purchase_order_items_product_id_fkey";
15870
16830
  columns: ["product_id"];
@@ -16203,6 +17163,106 @@ export type Database = {
16203
17163
  }
16204
17164
  ];
16205
17165
  };
17166
+ scan_kar_sessie_regels: {
17167
+ Row: {
17168
+ barcode: string;
17169
+ cart_id: string | null;
17170
+ created_at: string;
17171
+ id: string;
17172
+ order_id: string | null;
17173
+ order_number: string | null;
17174
+ regels: Json;
17175
+ sessie_id: string;
17176
+ volledig: boolean;
17177
+ };
17178
+ Insert: {
17179
+ barcode: string;
17180
+ cart_id?: string | null;
17181
+ created_at?: string;
17182
+ id?: string;
17183
+ order_id?: string | null;
17184
+ order_number?: string | null;
17185
+ regels?: Json;
17186
+ sessie_id: string;
17187
+ volledig?: boolean;
17188
+ };
17189
+ Update: {
17190
+ barcode?: string;
17191
+ cart_id?: string | null;
17192
+ created_at?: string;
17193
+ id?: string;
17194
+ order_id?: string | null;
17195
+ order_number?: string | null;
17196
+ regels?: Json;
17197
+ sessie_id?: string;
17198
+ volledig?: boolean;
17199
+ };
17200
+ Relationships: [
17201
+ {
17202
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
17203
+ columns: ["sessie_id"];
17204
+ isOneToOne: false;
17205
+ referencedRelation: "scan_kar_sessies";
17206
+ referencedColumns: ["id"];
17207
+ }
17208
+ ];
17209
+ };
17210
+ scan_kar_sessies: {
17211
+ Row: {
17212
+ afgerond_op: string | null;
17213
+ cart_id: string | null;
17214
+ cart_index: number | null;
17215
+ cart_total: number | null;
17216
+ created_at: string;
17217
+ id: string;
17218
+ klant_naam: string | null;
17219
+ medewerker_naam: string | null;
17220
+ order_id: string | null;
17221
+ order_number: string | null;
17222
+ scanner_id: string | null;
17223
+ status: string;
17224
+ updated_at: string;
17225
+ };
17226
+ Insert: {
17227
+ afgerond_op?: string | null;
17228
+ cart_id?: string | null;
17229
+ cart_index?: number | null;
17230
+ cart_total?: number | null;
17231
+ created_at?: string;
17232
+ id?: string;
17233
+ klant_naam?: string | null;
17234
+ medewerker_naam?: string | null;
17235
+ order_id?: string | null;
17236
+ order_number?: string | null;
17237
+ scanner_id?: string | null;
17238
+ status?: string;
17239
+ updated_at?: string;
17240
+ };
17241
+ Update: {
17242
+ afgerond_op?: string | null;
17243
+ cart_id?: string | null;
17244
+ cart_index?: number | null;
17245
+ cart_total?: number | null;
17246
+ created_at?: string;
17247
+ id?: string;
17248
+ klant_naam?: string | null;
17249
+ medewerker_naam?: string | null;
17250
+ order_id?: string | null;
17251
+ order_number?: string | null;
17252
+ scanner_id?: string | null;
17253
+ status?: string;
17254
+ updated_at?: string;
17255
+ };
17256
+ Relationships: [
17257
+ {
17258
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
17259
+ columns: ["scanner_id"];
17260
+ isOneToOne: false;
17261
+ referencedRelation: "scan_scanners";
17262
+ referencedColumns: ["id"];
17263
+ }
17264
+ ];
17265
+ };
16206
17266
  scan_karren: {
16207
17267
  Row: {
16208
17268
  afgerond_op: string | null;
@@ -16409,15 +17469,70 @@ export type Database = {
16409
17469
  };
16410
17470
  Relationships: [];
16411
17471
  };
16412
- scan_scanners: {
17472
+ scan_restpakbonnen: {
16413
17473
  Row: {
16414
- actief: boolean;
17474
+ barcode: string;
17475
+ bron_barcode: string | null;
17476
+ cart_id: string | null;
17477
+ cart_index: number | null;
17478
+ cart_total: number | null;
17479
+ created_at: string;
17480
+ geprint_op: string | null;
17481
+ id: string;
17482
+ klant_naam: string | null;
17483
+ order_id: string | null;
17484
+ order_number: string | null;
17485
+ print_job_id: string | null;
17486
+ regels: Json;
17487
+ updated_at: string;
17488
+ verwerkt: boolean;
17489
+ };
17490
+ Insert: {
17491
+ barcode: string;
17492
+ bron_barcode?: string | null;
17493
+ cart_id?: string | null;
17494
+ cart_index?: number | null;
17495
+ cart_total?: number | null;
17496
+ created_at?: string;
17497
+ geprint_op?: string | null;
17498
+ id?: string;
17499
+ klant_naam?: string | null;
17500
+ order_id?: string | null;
17501
+ order_number?: string | null;
17502
+ print_job_id?: string | null;
17503
+ regels?: Json;
17504
+ updated_at?: string;
17505
+ verwerkt?: boolean;
17506
+ };
17507
+ Update: {
17508
+ barcode?: string;
17509
+ bron_barcode?: string | null;
17510
+ cart_id?: string | null;
17511
+ cart_index?: number | null;
17512
+ cart_total?: number | null;
17513
+ created_at?: string;
17514
+ geprint_op?: string | null;
17515
+ id?: string;
17516
+ klant_naam?: string | null;
17517
+ order_id?: string | null;
17518
+ order_number?: string | null;
17519
+ print_job_id?: string | null;
17520
+ regels?: Json;
17521
+ updated_at?: string;
17522
+ verwerkt?: boolean;
17523
+ };
17524
+ Relationships: [];
17525
+ };
17526
+ scan_scanners: {
17527
+ Row: {
17528
+ actief: boolean;
16415
17529
  created_at: string;
16416
17530
  id: string;
16417
17531
  max_producten_per_kar: number | null;
16418
17532
  naam: string;
16419
17533
  omschrijving: string | null;
16420
17534
  pincode: string | null;
17535
+ printer_id: string | null;
16421
17536
  slug: string;
16422
17537
  type: string;
16423
17538
  updated_at: string;
@@ -16432,6 +17547,7 @@ export type Database = {
16432
17547
  naam: string;
16433
17548
  omschrijving?: string | null;
16434
17549
  pincode?: string | null;
17550
+ printer_id?: string | null;
16435
17551
  slug: string;
16436
17552
  type?: string;
16437
17553
  updated_at?: string;
@@ -16446,6 +17562,7 @@ export type Database = {
16446
17562
  naam?: string;
16447
17563
  omschrijving?: string | null;
16448
17564
  pincode?: string | null;
17565
+ printer_id?: string | null;
16449
17566
  slug?: string;
16450
17567
  type?: string;
16451
17568
  updated_at?: string;
@@ -16454,6 +17571,27 @@ export type Database = {
16454
17571
  };
16455
17572
  Relationships: [];
16456
17573
  };
17574
+ shell_settings: {
17575
+ Row: {
17576
+ created_at: string;
17577
+ default_path: string | null;
17578
+ shell_id: string;
17579
+ updated_at: string;
17580
+ };
17581
+ Insert: {
17582
+ created_at?: string;
17583
+ default_path?: string | null;
17584
+ shell_id: string;
17585
+ updated_at?: string;
17586
+ };
17587
+ Update: {
17588
+ created_at?: string;
17589
+ default_path?: string | null;
17590
+ shell_id?: string;
17591
+ updated_at?: string;
17592
+ };
17593
+ Relationships: [];
17594
+ };
16457
17595
  sick_periods: {
16458
17596
  Row: {
16459
17597
  created_at: string;
@@ -17083,6 +18221,13 @@ export type Database = {
17083
18221
  isOneToOne: false;
17084
18222
  referencedRelation: "werkbonnen";
17085
18223
  referencedColumns: ["id"];
18224
+ },
18225
+ {
18226
+ foreignKeyName: "time_logs_work_order_id_fkey";
18227
+ columns: ["work_order_id"];
18228
+ isOneToOne: false;
18229
+ referencedRelation: "wo_overview";
18230
+ referencedColumns: ["id"];
17086
18231
  }
17087
18232
  ];
17088
18233
  };
@@ -18397,6 +19542,13 @@ export type Database = {
18397
19542
  isOneToOne: false;
18398
19543
  referencedRelation: "werkbonnen";
18399
19544
  referencedColumns: ["id"];
19545
+ },
19546
+ {
19547
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
19548
+ columns: ["werkbon_id"];
19549
+ isOneToOne: false;
19550
+ referencedRelation: "wo_overview";
19551
+ referencedColumns: ["id"];
18400
19552
  }
18401
19553
  ];
18402
19554
  };
@@ -18712,6 +19864,36 @@ export type Database = {
18712
19864
  }
18713
19865
  ];
18714
19866
  };
19867
+ voorraad_buffer_state: {
19868
+ Row: {
19869
+ buffer_id: string;
19870
+ buffer_key: string | null;
19871
+ closed_at: string | null;
19872
+ created_at: string;
19873
+ detached_orders: Json;
19874
+ reason: string | null;
19875
+ updated_at: string;
19876
+ };
19877
+ Insert: {
19878
+ buffer_id: string;
19879
+ buffer_key?: string | null;
19880
+ closed_at?: string | null;
19881
+ created_at?: string;
19882
+ detached_orders?: Json;
19883
+ reason?: string | null;
19884
+ updated_at?: string;
19885
+ };
19886
+ Update: {
19887
+ buffer_id?: string;
19888
+ buffer_key?: string | null;
19889
+ closed_at?: string | null;
19890
+ created_at?: string;
19891
+ detached_orders?: Json;
19892
+ reason?: string | null;
19893
+ updated_at?: string;
19894
+ };
19895
+ Relationships: [];
19896
+ };
18715
19897
  voorraad_custom_fields: {
18716
19898
  Row: {
18717
19899
  created_at: string;
@@ -18754,6 +19936,36 @@ export type Database = {
18754
19936
  };
18755
19937
  Relationships: [];
18756
19938
  };
19939
+ voorraad_logistics_event_log: {
19940
+ Row: {
19941
+ created_at: string;
19942
+ event_id: string;
19943
+ event_type: string;
19944
+ order_ref: string | null;
19945
+ processed_at: string;
19946
+ result: Json;
19947
+ updated_at: string;
19948
+ };
19949
+ Insert: {
19950
+ created_at?: string;
19951
+ event_id: string;
19952
+ event_type: string;
19953
+ order_ref?: string | null;
19954
+ processed_at?: string;
19955
+ result?: Json;
19956
+ updated_at?: string;
19957
+ };
19958
+ Update: {
19959
+ created_at?: string;
19960
+ event_id?: string;
19961
+ event_type?: string;
19962
+ order_ref?: string | null;
19963
+ processed_at?: string;
19964
+ result?: Json;
19965
+ updated_at?: string;
19966
+ };
19967
+ Relationships: [];
19968
+ };
18757
19969
  voorraad_media_upload_failures: {
18758
19970
  Row: {
18759
19971
  action: string;
@@ -19130,6 +20342,13 @@ export type Database = {
19130
20342
  isOneToOne: true;
19131
20343
  referencedRelation: "werkbonnen";
19132
20344
  referencedColumns: ["id"];
20345
+ },
20346
+ {
20347
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
20348
+ columns: ["werkbon_id"];
20349
+ isOneToOne: true;
20350
+ referencedRelation: "wo_overview";
20351
+ referencedColumns: ["id"];
19133
20352
  }
19134
20353
  ];
19135
20354
  };
@@ -19219,6 +20438,13 @@ export type Database = {
19219
20438
  isOneToOne: false;
19220
20439
  referencedRelation: "werkbonnen";
19221
20440
  referencedColumns: ["id"];
20441
+ },
20442
+ {
20443
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20444
+ columns: ["werkbon_id"];
20445
+ isOneToOne: false;
20446
+ referencedRelation: "wo_overview";
20447
+ referencedColumns: ["id"];
19222
20448
  }
19223
20449
  ];
19224
20450
  };
@@ -19410,6 +20636,13 @@ export type Database = {
19410
20636
  isOneToOne: false;
19411
20637
  referencedRelation: "werkbonnen";
19412
20638
  referencedColumns: ["id"];
20639
+ },
20640
+ {
20641
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20642
+ columns: ["werkbon_id"];
20643
+ isOneToOne: false;
20644
+ referencedRelation: "wo_overview";
20645
+ referencedColumns: ["id"];
19413
20646
  }
19414
20647
  ];
19415
20648
  };
@@ -19504,6 +20737,13 @@ export type Database = {
19504
20737
  isOneToOne: false;
19505
20738
  referencedRelation: "werkbonnen";
19506
20739
  referencedColumns: ["id"];
20740
+ },
20741
+ {
20742
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20743
+ columns: ["werkbon_id"];
20744
+ isOneToOne: false;
20745
+ referencedRelation: "wo_overview";
20746
+ referencedColumns: ["id"];
19507
20747
  }
19508
20748
  ];
19509
20749
  };
@@ -19545,6 +20785,13 @@ export type Database = {
19545
20785
  isOneToOne: false;
19546
20786
  referencedRelation: "werkbonnen";
19547
20787
  referencedColumns: ["id"];
20788
+ },
20789
+ {
20790
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20791
+ columns: ["werkbon_id"];
20792
+ isOneToOne: false;
20793
+ referencedRelation: "wo_overview";
20794
+ referencedColumns: ["id"];
19548
20795
  }
19549
20796
  ];
19550
20797
  };
@@ -19671,6 +20918,13 @@ export type Database = {
19671
20918
  referencedRelation: "werkbonnen";
19672
20919
  referencedColumns: ["id"];
19673
20920
  },
20921
+ {
20922
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20923
+ columns: ["parent_werkbon_id"];
20924
+ isOneToOne: false;
20925
+ referencedRelation: "wo_overview";
20926
+ referencedColumns: ["id"];
20927
+ },
19674
20928
  {
19675
20929
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19676
20930
  columns: ["source_mailbox_message_id"];
@@ -20148,6 +21402,24 @@ export type Database = {
20148
21402
  };
20149
21403
  Relationships: [];
20150
21404
  };
21405
+ logistics_product_dimensions: {
21406
+ Row: {
21407
+ dimension_source: string | null;
21408
+ fust_height_mm: number | null;
21409
+ fust_length_mm: number | null;
21410
+ fust_name: string | null;
21411
+ fust_source: string | null;
21412
+ fust_type_id: string | null;
21413
+ fust_width_mm: number | null;
21414
+ height_source: string | null;
21415
+ missing_reason: string | null;
21416
+ plant_height_cm: number | null;
21417
+ plants_per_crate: number | null;
21418
+ product_id: string | null;
21419
+ product_name: string | null;
21420
+ };
21421
+ Relationships: [];
21422
+ };
20151
21423
  manufacture_product_possible_stock_view: {
20152
21424
  Row: {
20153
21425
  component_count: number | null;
@@ -20186,6 +21458,13 @@ export type Database = {
20186
21458
  isOneToOne: false;
20187
21459
  referencedRelation: "werkbonnen";
20188
21460
  referencedColumns: ["id"];
21461
+ },
21462
+ {
21463
+ foreignKeyName: "planning_items_werkbon_id_fkey";
21464
+ columns: ["werkbon_id"];
21465
+ isOneToOne: false;
21466
+ referencedRelation: "wo_overview";
21467
+ referencedColumns: ["id"];
20189
21468
  }
20190
21469
  ];
20191
21470
  };
@@ -20666,6 +21945,85 @@ export type Database = {
20666
21945
  isOneToOne: false;
20667
21946
  referencedRelation: "werkbonnen";
20668
21947
  referencedColumns: ["id"];
21948
+ },
21949
+ {
21950
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21951
+ columns: ["werkbon_id"];
21952
+ isOneToOne: false;
21953
+ referencedRelation: "wo_overview";
21954
+ referencedColumns: ["id"];
21955
+ }
21956
+ ];
21957
+ };
21958
+ wo_overview: {
21959
+ Row: {
21960
+ assigned_user_id: string | null;
21961
+ budget_mandate_cents: number | null;
21962
+ created_at: string | null;
21963
+ customer_id: string | null;
21964
+ id: string | null;
21965
+ needs_detail_review: boolean | null;
21966
+ number: string | null;
21967
+ parent_werkbon_id: string | null;
21968
+ planning_status: string | null;
21969
+ scheduled_end_time: string | null;
21970
+ scheduled_start_time: string | null;
21971
+ source_type: string | null;
21972
+ status: string | null;
21973
+ technician_id: string | null;
21974
+ updated_at: string | null;
21975
+ work_address: string | null;
21976
+ };
21977
+ Insert: {
21978
+ assigned_user_id?: string | null;
21979
+ budget_mandate_cents?: number | null;
21980
+ created_at?: string | null;
21981
+ customer_id?: string | null;
21982
+ id?: string | null;
21983
+ needs_detail_review?: boolean | null;
21984
+ number?: string | null;
21985
+ parent_werkbon_id?: string | null;
21986
+ planning_status?: string | null;
21987
+ scheduled_end_time?: string | null;
21988
+ scheduled_start_time?: string | null;
21989
+ source_type?: string | null;
21990
+ status?: string | null;
21991
+ technician_id?: string | null;
21992
+ updated_at?: string | null;
21993
+ work_address?: string | null;
21994
+ };
21995
+ Update: {
21996
+ assigned_user_id?: string | null;
21997
+ budget_mandate_cents?: number | null;
21998
+ created_at?: string | null;
21999
+ customer_id?: string | null;
22000
+ id?: string | null;
22001
+ needs_detail_review?: boolean | null;
22002
+ number?: string | null;
22003
+ parent_werkbon_id?: string | null;
22004
+ planning_status?: string | null;
22005
+ scheduled_end_time?: string | null;
22006
+ scheduled_start_time?: string | null;
22007
+ source_type?: string | null;
22008
+ status?: string | null;
22009
+ technician_id?: string | null;
22010
+ updated_at?: string | null;
22011
+ work_address?: string | null;
22012
+ };
22013
+ Relationships: [
22014
+ {
22015
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
22016
+ columns: ["parent_werkbon_id"];
22017
+ isOneToOne: false;
22018
+ referencedRelation: "werkbonnen";
22019
+ referencedColumns: ["id"];
22020
+ },
22021
+ {
22022
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
22023
+ columns: ["parent_werkbon_id"];
22024
+ isOneToOne: false;
22025
+ referencedRelation: "wo_overview";
22026
+ referencedColumns: ["id"];
20669
22027
  }
20670
22028
  ];
20671
22029
  };
@@ -20858,12 +22216,21 @@ export type Database = {
20858
22216
  _max?: number;
20859
22217
  };
20860
22218
  Returns: {
22219
+ aflever_pogingen: number;
20861
22220
  agent_id: string | null;
22221
+ artefact_bytes: number | null;
22222
+ artefact_gereed_op: string | null;
22223
+ artefact_pad: string | null;
22224
+ artefact_sha256: string | null;
22225
+ batch_id: string | null;
20862
22226
  bron_job_id: string | null;
20863
22227
  created_at: string;
20864
22228
  documentnaam: string;
20865
22229
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20866
22230
  extern_job_id: string | null;
22231
+ fase_gestart_op: string | null;
22232
+ fase_voltooid_op: string | null;
22233
+ foutcode: string | null;
20867
22234
  foutmelding: string | null;
20868
22235
  gebruiker_id: string | null;
20869
22236
  gebruiker_naam: string;
@@ -20877,7 +22244,10 @@ export type Database = {
20877
22244
  kopieen: number;
20878
22245
  layout_id: string | null;
20879
22246
  lokaal_opgeslagen_op: string | null;
22247
+ lokale_pdf_claim_id: string | null;
22248
+ lokale_pdf_claim_tot: string | null;
20880
22249
  lokale_pdf_fout: string | null;
22250
+ lokale_pdf_print_plek_id: string | null;
20881
22251
  lokale_pdf_status: string | null;
20882
22252
  opgepakt_op: string | null;
20883
22253
  paginas: number;
@@ -20890,6 +22260,7 @@ export type Database = {
20890
22260
  resultaat_pdf_base64: string | null;
20891
22261
  status: Database["public"]["Enums"]["print_job_status"];
20892
22262
  updated_at: string;
22263
+ verwerkingsfase: string;
20893
22264
  volgende_poging: string | null;
20894
22265
  voltooid_op: string | null;
20895
22266
  }[];
@@ -20936,6 +22307,25 @@ export type Database = {
20936
22307
  isSetofReturn: true;
20937
22308
  };
20938
22309
  };
22310
+ claim_local_pdf_jobs: {
22311
+ Args: {
22312
+ _max?: number;
22313
+ _print_plek_id: string;
22314
+ _writer_id: string;
22315
+ };
22316
+ Returns: {
22317
+ artefact_bytes: number;
22318
+ artefact_pad: string;
22319
+ artefact_sha256: string;
22320
+ documentnaam: string;
22321
+ id: string;
22322
+ lokale_pdf_print_plek_id: string;
22323
+ lokale_pdf_status: string;
22324
+ printer_id: string;
22325
+ resultaat_pdf_base64: string;
22326
+ status: string;
22327
+ }[];
22328
+ };
20939
22329
  claim_logistics_tasks: {
20940
22330
  Args: {
20941
22331
  _limit?: number;
@@ -20989,12 +22379,21 @@ export type Database = {
20989
22379
  _max?: number;
20990
22380
  };
20991
22381
  Returns: {
22382
+ aflever_pogingen: number;
20992
22383
  agent_id: string | null;
22384
+ artefact_bytes: number | null;
22385
+ artefact_gereed_op: string | null;
22386
+ artefact_pad: string | null;
22387
+ artefact_sha256: string | null;
22388
+ batch_id: string | null;
20993
22389
  bron_job_id: string | null;
20994
22390
  created_at: string;
20995
22391
  documentnaam: string;
20996
22392
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20997
22393
  extern_job_id: string | null;
22394
+ fase_gestart_op: string | null;
22395
+ fase_voltooid_op: string | null;
22396
+ foutcode: string | null;
20998
22397
  foutmelding: string | null;
20999
22398
  gebruiker_id: string | null;
21000
22399
  gebruiker_naam: string;
@@ -21008,7 +22407,10 @@ export type Database = {
21008
22407
  kopieen: number;
21009
22408
  layout_id: string | null;
21010
22409
  lokaal_opgeslagen_op: string | null;
22410
+ lokale_pdf_claim_id: string | null;
22411
+ lokale_pdf_claim_tot: string | null;
21011
22412
  lokale_pdf_fout: string | null;
22413
+ lokale_pdf_print_plek_id: string | null;
21012
22414
  lokale_pdf_status: string | null;
21013
22415
  opgepakt_op: string | null;
21014
22416
  paginas: number;
@@ -21021,6 +22423,7 @@ export type Database = {
21021
22423
  resultaat_pdf_base64: string | null;
21022
22424
  status: Database["public"]["Enums"]["print_job_status"];
21023
22425
  updated_at: string;
22426
+ verwerkingsfase: string;
21024
22427
  volgende_poging: string | null;
21025
22428
  voltooid_op: string | null;
21026
22429
  }[];
@@ -21037,12 +22440,21 @@ export type Database = {
21037
22440
  _max?: number;
21038
22441
  };
21039
22442
  Returns: {
22443
+ aflever_pogingen: number;
21040
22444
  agent_id: string | null;
22445
+ artefact_bytes: number | null;
22446
+ artefact_gereed_op: string | null;
22447
+ artefact_pad: string | null;
22448
+ artefact_sha256: string | null;
22449
+ batch_id: string | null;
21041
22450
  bron_job_id: string | null;
21042
22451
  created_at: string;
21043
22452
  documentnaam: string;
21044
22453
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
21045
22454
  extern_job_id: string | null;
22455
+ fase_gestart_op: string | null;
22456
+ fase_voltooid_op: string | null;
22457
+ foutcode: string | null;
21046
22458
  foutmelding: string | null;
21047
22459
  gebruiker_id: string | null;
21048
22460
  gebruiker_naam: string;
@@ -21056,7 +22468,10 @@ export type Database = {
21056
22468
  kopieen: number;
21057
22469
  layout_id: string | null;
21058
22470
  lokaal_opgeslagen_op: string | null;
22471
+ lokale_pdf_claim_id: string | null;
22472
+ lokale_pdf_claim_tot: string | null;
21059
22473
  lokale_pdf_fout: string | null;
22474
+ lokale_pdf_print_plek_id: string | null;
21060
22475
  lokale_pdf_status: string | null;
21061
22476
  opgepakt_op: string | null;
21062
22477
  paginas: number;
@@ -21069,6 +22484,7 @@ export type Database = {
21069
22484
  resultaat_pdf_base64: string | null;
21070
22485
  status: Database["public"]["Enums"]["print_job_status"];
21071
22486
  updated_at: string;
22487
+ verwerkingsfase: string;
21072
22488
  volgende_poging: string | null;
21073
22489
  voltooid_op: string | null;
21074
22490
  }[];
@@ -21079,6 +22495,14 @@ export type Database = {
21079
22495
  isSetofReturn: true;
21080
22496
  };
21081
22497
  };
22498
+ claim_print_queue_lease: {
22499
+ Args: {
22500
+ _houder: string;
22501
+ _naam: string;
22502
+ _seconden?: number;
22503
+ };
22504
+ Returns: boolean;
22505
+ };
21082
22506
  claim_twinfield_push_batch: {
21083
22507
  Args: {
21084
22508
  _customer_id?: string;
@@ -21204,7 +22628,10 @@ export type Database = {
21204
22628
  cart_index: number;
21205
22629
  cart_number: string;
21206
22630
  cart_number_id: string;
22631
+ cart_seq: number;
22632
+ cart_total: number;
21207
22633
  order_id: string;
22634
+ order_number: string;
21208
22635
  order_source: string;
21209
22636
  pick_date: string;
21210
22637
  printed_at: string;
@@ -21212,6 +22639,12 @@ export type Database = {
21212
22639
  status: string;
21213
22640
  }[];
21214
22641
  };
22642
+ control_mark_carts_delivered: {
22643
+ Args: {
22644
+ p_carts: Json;
22645
+ };
22646
+ Returns: number;
22647
+ };
21215
22648
  count_distinct_regulatory_products: {
21216
22649
  Args: never;
21217
22650
  Returns: number;
@@ -21339,6 +22772,13 @@ export type Database = {
21339
22772
  };
21340
22773
  Returns: undefined;
21341
22774
  };
22775
+ ensure_system_roles: {
22776
+ Args: never;
22777
+ Returns: {
22778
+ action: string;
22779
+ role_key: string;
22780
+ }[];
22781
+ };
21342
22782
  ensure_trade_item_stock_row: {
21343
22783
  Args: {
21344
22784
  p_key: string;
@@ -21405,10 +22845,30 @@ export type Database = {
21405
22845
  };
21406
22846
  Returns: string;
21407
22847
  };
21408
- floriday_capture_stock_snapshot: {
21409
- Args: never;
21410
- Returns: number;
21411
- };
22848
+ finish_local_pdf_job: {
22849
+ Args: {
22850
+ _fout?: string;
22851
+ _job_id: string;
22852
+ _status: string;
22853
+ _writer_id: string;
22854
+ };
22855
+ Returns: boolean;
22856
+ };
22857
+ floriday_adopt_connection: {
22858
+ Args: {
22859
+ p_new: string;
22860
+ p_old: string;
22861
+ };
22862
+ Returns: Json;
22863
+ };
22864
+ floriday_autoheal_connections: {
22865
+ Args: never;
22866
+ Returns: Json;
22867
+ };
22868
+ floriday_capture_stock_snapshot: {
22869
+ Args: never;
22870
+ Returns: number;
22871
+ };
21412
22872
  floriday_cleanup_stock_queue_v2: {
21413
22873
  Args: never;
21414
22874
  Returns: undefined;
@@ -21462,6 +22922,12 @@ export type Database = {
21462
22922
  };
21463
22923
  Returns: undefined;
21464
22924
  };
22925
+ floriday_relink_products: {
22926
+ Args: {
22927
+ p_connection_id?: string;
22928
+ };
22929
+ Returns: Json;
22930
+ };
21465
22931
  floriday_requeue_dead_letters: {
21466
22932
  Args: {
21467
22933
  p_connection_id?: string;
@@ -21684,6 +23150,36 @@ export type Database = {
21684
23150
  Args: never;
21685
23151
  Returns: string;
21686
23152
  };
23153
+ handover_archief_lijst: {
23154
+ Args: never;
23155
+ Returns: Json;
23156
+ };
23157
+ handover_archiveren: {
23158
+ Args: {
23159
+ _archief?: boolean;
23160
+ _module_id: string;
23161
+ };
23162
+ Returns: boolean;
23163
+ };
23164
+ handover_check_afronden: {
23165
+ Args: {
23166
+ _module_id: string;
23167
+ };
23168
+ Returns: boolean;
23169
+ };
23170
+ handover_check_markeren: {
23171
+ Args: {
23172
+ _module_ids: string[];
23173
+ _reden?: string;
23174
+ };
23175
+ Returns: number;
23176
+ };
23177
+ handover_fingerprint_maken: {
23178
+ Args: {
23179
+ _module_id?: string;
23180
+ };
23181
+ Returns: Json;
23182
+ };
21687
23183
  handover_get: {
21688
23184
  Args: {
21689
23185
  _module_id: string;
@@ -21714,6 +23210,14 @@ export type Database = {
21714
23210
  };
21715
23211
  Returns: boolean;
21716
23212
  };
23213
+ handover_module_meta_zetten: {
23214
+ Args: {
23215
+ _module_id: string;
23216
+ _project_url?: string;
23217
+ _publicatie_url?: string;
23218
+ };
23219
+ Returns: boolean;
23220
+ };
21717
23221
  handover_norm_naam: {
21718
23222
  Args: {
21719
23223
  _naam: string;
@@ -21734,6 +23238,23 @@ export type Database = {
21734
23238
  };
21735
23239
  Returns: number;
21736
23240
  };
23241
+ handover_publish_uit_github: {
23242
+ Args: {
23243
+ _bezit_tabellen?: string[];
23244
+ _bron_soort?: string;
23245
+ _commit?: string;
23246
+ _contractfuncties?: string[];
23247
+ _inhoud_md: string;
23248
+ _module_id: string;
23249
+ _module_titel: string;
23250
+ _ontbrekende_contracten?: string[];
23251
+ _pad?: string;
23252
+ _repo?: string;
23253
+ _samenvatting?: string;
23254
+ _versie_label?: string;
23255
+ };
23256
+ Returns: Json;
23257
+ };
21737
23258
  handover_publish_via_token: {
21738
23259
  Args: {
21739
23260
  _bevindingen?: string;
@@ -21747,7 +23268,7 @@ export type Database = {
21747
23268
  _samenvatting?: string;
21748
23269
  _token_hash: string;
21749
23270
  };
21750
- Returns: number;
23271
+ Returns: Json;
21751
23272
  };
21752
23273
  handover_status: {
21753
23274
  Args: never;
@@ -21759,23 +23280,6 @@ export type Database = {
21759
23280
  };
21760
23281
  Returns: string;
21761
23282
  };
21762
- handover_token_intrekken: {
21763
- Args: {
21764
- _id: string;
21765
- };
21766
- Returns: boolean;
21767
- };
21768
- handover_token_lijst: {
21769
- Args: never;
21770
- Returns: Json;
21771
- };
21772
- handover_token_maken: {
21773
- Args: {
21774
- _label?: string;
21775
- _module_id: string;
21776
- };
21777
- Returns: string;
21778
- };
21779
23283
  handover_update: {
21780
23284
  Args: {
21781
23285
  _bezit_tabellen?: string[];
@@ -21803,12 +23307,31 @@ export type Database = {
21803
23307
  };
21804
23308
  Returns: boolean;
21805
23309
  };
23310
+ handover_versie_verwijderen: {
23311
+ Args: {
23312
+ _module_id: string;
23313
+ _versie: number;
23314
+ };
23315
+ Returns: boolean;
23316
+ };
21806
23317
  handover_versies: {
21807
23318
  Args: {
21808
23319
  _module_id: string;
21809
23320
  };
21810
23321
  Returns: Json;
21811
23322
  };
23323
+ handover_verwijderen: {
23324
+ Args: {
23325
+ _module_id: string;
23326
+ };
23327
+ Returns: boolean;
23328
+ };
23329
+ handover_wijzigingen: {
23330
+ Args: {
23331
+ _module_id?: string;
23332
+ };
23333
+ Returns: Json;
23334
+ };
21812
23335
  has_module_permission: {
21813
23336
  Args: {
21814
23337
  _min: string;
@@ -22026,6 +23549,10 @@ export type Database = {
22026
23549
  };
22027
23550
  Returns: string;
22028
23551
  };
23552
+ logistics_active_layout_method: {
23553
+ Args: never;
23554
+ Returns: string;
23555
+ };
22029
23556
  logistics_active_pick_workdays: {
22030
23557
  Args: never;
22031
23558
  Returns: string[];
@@ -22071,6 +23598,36 @@ export type Database = {
22071
23598
  };
22072
23599
  Returns: boolean;
22073
23600
  };
23601
+ logistics_barcode_lookup: {
23602
+ Args: {
23603
+ p_barcode: string;
23604
+ };
23605
+ Returns: Json;
23606
+ };
23607
+ logistics_block_reason_code: {
23608
+ Args: {
23609
+ p_details?: Json;
23610
+ p_reason: string;
23611
+ };
23612
+ Returns: string;
23613
+ };
23614
+ logistics_blocked_orders: {
23615
+ Args: never;
23616
+ Returns: {
23617
+ attempts: number;
23618
+ blocked_since: string;
23619
+ delivery_date: string;
23620
+ order_id: string;
23621
+ order_ref: string;
23622
+ queue_id: string;
23623
+ reason: string;
23624
+ reason_code: string;
23625
+ }[];
23626
+ };
23627
+ logistics_blocked_overview: {
23628
+ Args: never;
23629
+ Returns: Json;
23630
+ };
22074
23631
  logistics_buffer_criteria: {
22075
23632
  Args: {
22076
23633
  p_settings: Json;
@@ -22085,6 +23642,39 @@ export type Database = {
22085
23642
  };
22086
23643
  Returns: Json;
22087
23644
  };
23645
+ logistics_buffer_detach_late_orders: {
23646
+ Args: {
23647
+ p_buffer?: string;
23648
+ };
23649
+ Returns: Json;
23650
+ };
23651
+ logistics_buffer_frozen_order: {
23652
+ Args: {
23653
+ p_order_id: string;
23654
+ };
23655
+ Returns: boolean;
23656
+ };
23657
+ logistics_buffer_handled: {
23658
+ Args: {
23659
+ p_buffer: string;
23660
+ };
23661
+ Returns: boolean;
23662
+ };
23663
+ logistics_buffer_notify: {
23664
+ Args: {
23665
+ p_event_type: string;
23666
+ p_idempotency_key: string;
23667
+ p_order_ref: string;
23668
+ p_payload: Json;
23669
+ };
23670
+ Returns: string;
23671
+ };
23672
+ logistics_buffer_open_key: {
23673
+ Args: {
23674
+ p_base_key: string;
23675
+ };
23676
+ Returns: string;
23677
+ };
22088
23678
  logistics_buffer_simulate: {
22089
23679
  Args: {
22090
23680
  p_orders?: Json;
@@ -22131,6 +23721,19 @@ export type Database = {
22131
23721
  };
22132
23722
  Returns: number;
22133
23723
  };
23724
+ logistics_cart_barcode_value: {
23725
+ Args: {
23726
+ _cart_id: string;
23727
+ };
23728
+ Returns: string;
23729
+ };
23730
+ logistics_cart_handled: {
23731
+ Args: {
23732
+ p_cart_index: number;
23733
+ p_order_id: string;
23734
+ };
23735
+ Returns: boolean;
23736
+ };
22134
23737
  logistics_cart_index: {
22135
23738
  Args: {
22136
23739
  p_from?: string;
@@ -22140,6 +23743,82 @@ export type Database = {
22140
23743
  cart_id: string;
22141
23744
  cart_index: number;
22142
23745
  cart_label: string;
23746
+ cart_number: string;
23747
+ cart_seq: number;
23748
+ cart_total: number;
23749
+ delivery_date: string;
23750
+ is_announced: boolean;
23751
+ is_controlled: boolean;
23752
+ is_printed: boolean;
23753
+ is_shared: boolean;
23754
+ order_number: string;
23755
+ order_source: string;
23756
+ order_uuid: string;
23757
+ pick_date: string;
23758
+ printed_at: string;
23759
+ shifted: boolean;
23760
+ task_status: string;
23761
+ }[];
23762
+ };
23763
+ logistics_cart_layout_method: {
23764
+ Args: never;
23765
+ Returns: Json;
23766
+ };
23767
+ logistics_cart_plan_overview: {
23768
+ Args: {
23769
+ p_days?: number;
23770
+ };
23771
+ Returns: {
23772
+ cart_total: number;
23773
+ delivery_date: string;
23774
+ order_ref: string;
23775
+ plan_ready: boolean;
23776
+ reason: string;
23777
+ released: boolean;
23778
+ }[];
23779
+ };
23780
+ logistics_cart_plan_status: {
23781
+ Args: {
23782
+ p_ref: string;
23783
+ };
23784
+ Returns: Json;
23785
+ };
23786
+ logistics_cart_seq: {
23787
+ Args: {
23788
+ p_order_uuid?: string;
23789
+ };
23790
+ Returns: {
23791
+ cart_id: string;
23792
+ cart_index: number;
23793
+ cart_number: string;
23794
+ cart_seq: number;
23795
+ cart_total: number;
23796
+ order_uuid: string;
23797
+ }[];
23798
+ };
23799
+ logistics_cart_slip_plan: {
23800
+ Args: {
23801
+ p_order_id: string;
23802
+ };
23803
+ Returns: Json;
23804
+ };
23805
+ logistics_cart_units: {
23806
+ Args: {
23807
+ p_from?: string;
23808
+ p_to?: string;
23809
+ };
23810
+ Returns: {
23811
+ cart_id: string;
23812
+ cart_index: number;
23813
+ cart_label: string;
23814
+ cart_number: string;
23815
+ cart_seq: number;
23816
+ cart_total: number;
23817
+ delivery_date: string;
23818
+ is_announced: boolean;
23819
+ is_buffer: boolean;
23820
+ is_controlled: boolean;
23821
+ is_printed: boolean;
22143
23822
  is_shared: boolean;
22144
23823
  order_number: string;
22145
23824
  order_source: string;
@@ -22148,6 +23827,10 @@ export type Database = {
22148
23827
  printed_at: string;
22149
23828
  shifted: boolean;
22150
23829
  task_status: string;
23830
+ unit_buffer: string;
23831
+ unit_order_count: number;
23832
+ unit_orders: string[];
23833
+ unit_ref: string;
22151
23834
  }[];
22152
23835
  };
22153
23836
  logistics_check_order_allowed: {
@@ -22302,43 +23985,151 @@ export type Database = {
22302
23985
  Args: never;
22303
23986
  Returns: {
22304
23987
  agenda_carts: number;
23988
+ announced_carts: number;
22305
23989
  control_carts: number;
23990
+ delivery_carts: number;
23991
+ duplicate_carts: number;
22306
23992
  ok: boolean;
23993
+ orphan_carts: number;
22307
23994
  orphan_tasks: number;
22308
23995
  pick_date: string;
22309
23996
  raw_carts: number;
23997
+ sales_carts: number;
23998
+ station_carts: number;
22310
23999
  }[];
22311
24000
  };
22312
- logistics_delay_customer_email: {
24001
+ logistics_control_scan_approve: {
22313
24002
  Args: {
22314
- p_customer: string;
22315
- p_lang: string;
22316
- p_new_date: string;
22317
- p_order: string;
22318
- p_partial?: boolean;
24003
+ p_allow_reprint?: boolean;
24004
+ p_barcode: string;
24005
+ p_printer_id?: string;
24006
+ p_scanner_id?: string;
24007
+ };
24008
+ Returns: Json;
24009
+ };
24010
+ logistics_control_scan_claim: {
24011
+ Args: {
24012
+ _lease_seconds?: number;
24013
+ _limit?: number;
22319
24014
  };
22320
24015
  Returns: {
22321
- body: string;
22322
- subject: string;
24016
+ approved_at: string | null;
24017
+ attempts: number;
24018
+ barcode: string;
24019
+ cart_id: string;
24020
+ created_at: string;
24021
+ document_url: string | null;
24022
+ error: string | null;
24023
+ error_code: string | null;
24024
+ fulfillment_order_id: string | null;
24025
+ id: string;
24026
+ is_floriday: boolean;
24027
+ locked_until: string | null;
24028
+ order_id: string | null;
24029
+ order_number: string | null;
24030
+ print_job_id: string | null;
24031
+ printed_at: string | null;
24032
+ printer_id: string | null;
24033
+ scanner_id: string | null;
24034
+ status: string;
24035
+ updated_at: string;
22323
24036
  }[];
24037
+ SetofOptions: {
24038
+ from: "*";
24039
+ to: "logistics_control_scan";
24040
+ isOneToOne: false;
24041
+ isSetofReturn: true;
24042
+ };
22324
24043
  };
22325
- logistics_document_layout: {
24044
+ logistics_control_scan_finish: {
22326
24045
  Args: {
22327
- _document_code: string;
24046
+ _document_url?: string;
24047
+ _error?: string;
24048
+ _error_code?: string;
24049
+ _fulfillment_order_id?: string;
24050
+ _id: string;
24051
+ _ok: boolean;
24052
+ _print_job_id?: string;
24053
+ _status?: string;
22328
24054
  };
22329
24055
  Returns: Json;
22330
24056
  };
22331
- logistics_document_station: {
24057
+ logistics_control_scan_lookup: {
22332
24058
  Args: {
22333
- _document_code: string;
24059
+ p_barcode: string;
22334
24060
  };
22335
- Returns: string;
24061
+ Returns: Json;
22336
24062
  };
22337
- logistics_document_type_map: {
24063
+ logistics_control_scan_overview: {
22338
24064
  Args: {
22339
- _document_code: string;
24065
+ _date?: string;
24066
+ _scanner_id?: string;
22340
24067
  };
22341
- Returns: Database["public"]["Enums"]["doc_layout_type"][];
24068
+ Returns: Json;
24069
+ };
24070
+ logistics_control_scan_retry: {
24071
+ Args: {
24072
+ _id: string;
24073
+ };
24074
+ Returns: Json;
24075
+ };
24076
+ logistics_control_settings: {
24077
+ Args: never;
24078
+ Returns: Json;
24079
+ };
24080
+ logistics_delay_customer_email: {
24081
+ Args: {
24082
+ p_customer: string;
24083
+ p_lang: string;
24084
+ p_new_date: string;
24085
+ p_order: string;
24086
+ p_partial?: boolean;
24087
+ };
24088
+ Returns: {
24089
+ body: string;
24090
+ subject: string;
24091
+ }[];
24092
+ };
24093
+ logistics_delivery_agenda: {
24094
+ Args: {
24095
+ p_from?: string;
24096
+ p_to?: string;
24097
+ };
24098
+ Returns: {
24099
+ announced_count: number;
24100
+ cart_count: number;
24101
+ controlled_count: number;
24102
+ delivery_date: string;
24103
+ order_count: number;
24104
+ orders: Json;
24105
+ plant_count: number;
24106
+ printed_count: number;
24107
+ }[];
24108
+ };
24109
+ logistics_document_layout: {
24110
+ Args: {
24111
+ _document_code: string;
24112
+ };
24113
+ Returns: Json;
24114
+ };
24115
+ logistics_document_layout_v2: {
24116
+ Args: {
24117
+ _document_code: string;
24118
+ _is_partial?: boolean;
24119
+ };
24120
+ Returns: Json;
24121
+ };
24122
+ logistics_document_station: {
24123
+ Args: {
24124
+ _document_code: string;
24125
+ };
24126
+ Returns: string;
24127
+ };
24128
+ logistics_document_type_map: {
24129
+ Args: {
24130
+ _document_code: string;
24131
+ };
24132
+ Returns: Database["public"]["Enums"]["doc_layout_type"][];
22342
24133
  };
22343
24134
  logistics_emit_event: {
22344
24135
  Args: {
@@ -22353,6 +24144,23 @@ export type Database = {
22353
24144
  };
22354
24145
  Returns: Json;
22355
24146
  };
24147
+ logistics_enqueue_sticker_with_slip: {
24148
+ Args: {
24149
+ _cart_id: string;
24150
+ _is_herprint: boolean;
24151
+ _printer_id: string;
24152
+ _queue_item_id: string;
24153
+ _session_id: string;
24154
+ _slip_job_id: string;
24155
+ };
24156
+ Returns: string;
24157
+ };
24158
+ logistics_ensure_cart_barcode: {
24159
+ Args: {
24160
+ _cart_id: string;
24161
+ };
24162
+ Returns: string;
24163
+ };
22356
24164
  logistics_fail_task: {
22357
24165
  Args: {
22358
24166
  p_error: string;
@@ -22474,6 +24282,12 @@ export type Database = {
22474
24282
  };
22475
24283
  Returns: string;
22476
24284
  };
24285
+ logistics_floriday_order_approved: {
24286
+ Args: {
24287
+ _order_ref: string;
24288
+ };
24289
+ Returns: boolean;
24290
+ };
22477
24291
  logistics_floriday_prune_pushes: {
22478
24292
  Args: {
22479
24293
  _days?: number;
@@ -22488,6 +24302,40 @@ export type Database = {
22488
24302
  };
22489
24303
  Returns: string;
22490
24304
  };
24305
+ logistics_floriday_status_updates_enabled: {
24306
+ Args: never;
24307
+ Returns: boolean;
24308
+ };
24309
+ logistics_fulfill_barcode_requests: {
24310
+ Args: {
24311
+ p_limit?: number;
24312
+ };
24313
+ Returns: Json;
24314
+ };
24315
+ logistics_full_cart_min_layers: {
24316
+ Args: never;
24317
+ Returns: number;
24318
+ };
24319
+ logistics_full_cart_min_percentage: {
24320
+ Args: never;
24321
+ Returns: number;
24322
+ };
24323
+ logistics_is_pick_workday: {
24324
+ Args: {
24325
+ p_date: string;
24326
+ };
24327
+ Returns: boolean;
24328
+ };
24329
+ logistics_layout_method_status: {
24330
+ Args: never;
24331
+ Returns: Json;
24332
+ };
24333
+ logistics_link_order_items: {
24334
+ Args: {
24335
+ p_order?: string;
24336
+ };
24337
+ Returns: Json;
24338
+ };
22491
24339
  logistics_live_carriers: {
22492
24340
  Args: {
22493
24341
  p_order_ref: string;
@@ -22500,6 +24348,26 @@ export type Database = {
22500
24348
  };
22501
24349
  Returns: number;
22502
24350
  };
24351
+ logistics_next_workday_date: {
24352
+ Args: {
24353
+ p_date: string;
24354
+ p_days?: string[];
24355
+ };
24356
+ Returns: string;
24357
+ };
24358
+ logistics_next_workday_not_past: {
24359
+ Args: {
24360
+ p_days: string[];
24361
+ p_ts: string;
24362
+ };
24363
+ Returns: string;
24364
+ };
24365
+ logistics_normalize_product_label: {
24366
+ Args: {
24367
+ p_label: string;
24368
+ };
24369
+ Returns: string;
24370
+ };
22503
24371
  logistics_not_past: {
22504
24372
  Args: {
22505
24373
  p_ts: string;
@@ -22512,6 +24380,19 @@ export type Database = {
22512
24380
  };
22513
24381
  Returns: number;
22514
24382
  };
24383
+ logistics_order_handled: {
24384
+ Args: {
24385
+ p_order_uuid: string;
24386
+ };
24387
+ Returns: boolean;
24388
+ };
24389
+ logistics_order_is_topick: {
24390
+ Args: {
24391
+ p_order_id: string;
24392
+ p_order_number: string;
24393
+ };
24394
+ Returns: boolean;
24395
+ };
22515
24396
  logistics_order_overview: {
22516
24397
  Args: {
22517
24398
  p_from?: string;
@@ -22537,6 +24418,12 @@ export type Database = {
22537
24418
  };
22538
24419
  Returns: string;
22539
24420
  };
24421
+ logistics_order_released: {
24422
+ Args: {
24423
+ p_order_ref: string;
24424
+ };
24425
+ Returns: boolean;
24426
+ };
22540
24427
  logistics_parse_pickup: {
22541
24428
  Args: {
22542
24429
  p_value: string;
@@ -22559,10 +24446,37 @@ export type Database = {
22559
24446
  shifted_count: number;
22560
24447
  }[];
22561
24448
  };
24449
+ logistics_pick_barcode_enabled: {
24450
+ Args: never;
24451
+ Returns: boolean;
24452
+ };
22562
24453
  logistics_pick_email_purpose: {
22563
24454
  Args: never;
22564
24455
  Returns: string;
22565
24456
  };
24457
+ logistics_pick_mode: {
24458
+ Args: never;
24459
+ Returns: Json;
24460
+ };
24461
+ logistics_pick_start_estimate: {
24462
+ Args: {
24463
+ p_order: Json;
24464
+ s: Json;
24465
+ };
24466
+ Returns: string;
24467
+ };
24468
+ logistics_pick_units: {
24469
+ Args: never;
24470
+ Returns: {
24471
+ is_buffer: boolean;
24472
+ order_number: string;
24473
+ order_uuid: string;
24474
+ unit_buffer: string;
24475
+ unit_order_count: number;
24476
+ unit_orders: string[];
24477
+ unit_ref: string;
24478
+ }[];
24479
+ };
22566
24480
  logistics_plan_all: {
22567
24481
  Args: {
22568
24482
  p_user_id?: string;
@@ -22642,6 +24556,12 @@ export type Database = {
22642
24556
  Args: never;
22643
24557
  Returns: number;
22644
24558
  };
24559
+ logistics_plan_retry: {
24560
+ Args: {
24561
+ p_order_ids: string[];
24562
+ };
24563
+ Returns: number;
24564
+ };
22645
24565
  logistics_plan_setting: {
22646
24566
  Args: {
22647
24567
  p_default: number;
@@ -22649,6 +24569,14 @@ export type Database = {
22649
24569
  };
22650
24570
  Returns: number;
22651
24571
  };
24572
+ logistics_prune_buffer_member_queue: {
24573
+ Args: never;
24574
+ Returns: number;
24575
+ };
24576
+ logistics_prune_handled_pick_queue: {
24577
+ Args: never;
24578
+ Returns: number;
24579
+ };
22652
24580
  logistics_queue_capacity_email: {
22653
24581
  Args: {
22654
24582
  p_alert_id: string;
@@ -22681,6 +24609,18 @@ export type Database = {
22681
24609
  Args: never;
22682
24610
  Returns: Json;
22683
24611
  };
24612
+ logistics_refresh_pickup_moments: {
24613
+ Args: {
24614
+ p_weeks?: number;
24615
+ };
24616
+ Returns: Json;
24617
+ };
24618
+ logistics_replan_all: {
24619
+ Args: {
24620
+ p_reason?: string;
24621
+ };
24622
+ Returns: Json;
24623
+ };
22684
24624
  logistics_report_delay: {
22685
24625
  Args: {
22686
24626
  p_expected_date?: string;
@@ -22734,6 +24674,12 @@ export type Database = {
22734
24674
  };
22735
24675
  Returns: Json;
22736
24676
  };
24677
+ logistics_resolve_product_id: {
24678
+ Args: {
24679
+ p_label: string;
24680
+ };
24681
+ Returns: string;
24682
+ };
22737
24683
  logistics_resolve_settings: {
22738
24684
  Args: {
22739
24685
  p_config_id: string;
@@ -22787,6 +24733,12 @@ export type Database = {
22787
24733
  };
22788
24734
  Returns: string;
22789
24735
  };
24736
+ logistics_scan_resolve: {
24737
+ Args: {
24738
+ p_code: string;
24739
+ };
24740
+ Returns: Json;
24741
+ };
22790
24742
  logistics_schedule_tasks: {
22791
24743
  Args: never;
22792
24744
  Returns: number;
@@ -22813,6 +24765,18 @@ export type Database = {
22813
24765
  };
22814
24766
  Returns: string;
22815
24767
  };
24768
+ logistics_shipping_note_from_barcode: {
24769
+ Args: {
24770
+ p_allow_reprint?: boolean;
24771
+ p_barcode: string;
24772
+ p_station_id?: string;
24773
+ };
24774
+ Returns: Json;
24775
+ };
24776
+ logistics_sticker_follows_slip: {
24777
+ Args: never;
24778
+ Returns: boolean;
24779
+ };
22816
24780
  logistics_supersede_stale_tasks: {
22817
24781
  Args: {
22818
24782
  p_keep: string[];
@@ -22845,6 +24809,10 @@ export type Database = {
22845
24809
  };
22846
24810
  Returns: number;
22847
24811
  };
24812
+ logistics_tick_ping: {
24813
+ Args: never;
24814
+ Returns: string;
24815
+ };
22848
24816
  logistics_upsert_task: {
22849
24817
  Args: {
22850
24818
  p_buffer_ref: string;
@@ -22864,6 +24832,18 @@ export type Database = {
22864
24832
  };
22865
24833
  Returns: string;
22866
24834
  };
24835
+ logistics_write_buffer_layer_positions: {
24836
+ Args: {
24837
+ p_buffer_id: string;
24838
+ };
24839
+ Returns: number;
24840
+ };
24841
+ logistics_write_cart_layer_positions: {
24842
+ Args: {
24843
+ p_cart_id: string;
24844
+ };
24845
+ Returns: number;
24846
+ };
22867
24847
  mark_offer_clicked: {
22868
24848
  Args: {
22869
24849
  p_code: string;
@@ -22896,6 +24876,15 @@ export type Database = {
22896
24876
  };
22897
24877
  Returns: undefined;
22898
24878
  };
24879
+ move_cart_layer_position: {
24880
+ Args: {
24881
+ p_id: string;
24882
+ p_layer: number;
24883
+ p_x: number;
24884
+ p_y: number;
24885
+ };
24886
+ Returns: undefined;
24887
+ };
22899
24888
  my_module_permissions: {
22900
24889
  Args: never;
22901
24890
  Returns: {
@@ -22967,6 +24956,12 @@ export type Database = {
22967
24956
  };
22968
24957
  Returns: Json;
22969
24958
  };
24959
+ order_heeft_bevestigde_karren: {
24960
+ Args: {
24961
+ p_order_id: string;
24962
+ };
24963
+ Returns: boolean;
24964
+ };
22970
24965
  order_number_prefix: {
22971
24966
  Args: {
22972
24967
  p_custom_fields?: Json;
@@ -23002,13 +24997,418 @@ export type Database = {
23002
24997
  online: boolean;
23003
24998
  }[];
23004
24999
  };
23005
- pick_claim_document: {
25000
+ pick_apply_buffer_events: {
25001
+ Args: never;
25002
+ Returns: Json;
25003
+ };
25004
+ pick_available_pick_days: {
25005
+ Args: {
25006
+ _max_days?: number;
25007
+ };
25008
+ Returns: {
25009
+ orders: number;
25010
+ pick_day: string;
25011
+ }[];
25012
+ };
25013
+ pick_buffer_order_ids: {
25014
+ Args: {
25015
+ _order_id: string;
25016
+ };
25017
+ Returns: string[];
25018
+ };
25019
+ pick_cart_breakdown: {
25020
+ Args: {
25021
+ _order_id: string;
25022
+ };
25023
+ Returns: Json;
25024
+ };
25025
+ pick_claim_document: {
25026
+ Args: {
25027
+ _queue_item_id: string;
25028
+ _screen_id: string;
25029
+ _session_id: string;
25030
+ _station_id: string;
25031
+ _timeout_seconds?: number;
25032
+ };
25033
+ Returns: {
25034
+ announced_at: string;
25035
+ assigned_user_id: string | null;
25036
+ barcode: string | null;
25037
+ cancelled_at: string | null;
25038
+ cart_count: number;
25039
+ completed_at: string | null;
25040
+ country_code: string | null;
25041
+ created_at: string;
25042
+ customer_name: string | null;
25043
+ delivery_address: string | null;
25044
+ document_number: string | null;
25045
+ document_type_id: string | null;
25046
+ due_at: string | null;
25047
+ id: string;
25048
+ is_urgent: boolean;
25049
+ line_count: number;
25050
+ order_number: string | null;
25051
+ order_type: string | null;
25052
+ payload: Json;
25053
+ print_count: number;
25054
+ print_job_id: string | null;
25055
+ printed_at: string | null;
25056
+ printed_by: string | null;
25057
+ printed_cart_ids: Json;
25058
+ printer_id: string | null;
25059
+ priority: number;
25060
+ reference: string | null;
25061
+ route: string | null;
25062
+ screen_id: string | null;
25063
+ station_id: string | null;
25064
+ status_id: string | null;
25065
+ updated_at: string;
25066
+ warnings: Json;
25067
+ };
25068
+ SetofOptions: {
25069
+ from: "*";
25070
+ to: "pick_queue";
25071
+ isOneToOne: true;
25072
+ isSetofReturn: false;
25073
+ };
25074
+ };
25075
+ pick_claim_next_document: {
25076
+ Args: {
25077
+ _country_code: string;
25078
+ _pick_day?: string;
25079
+ _screen_id: string;
25080
+ _session_id: string;
25081
+ _station_id: string;
25082
+ _timeout_seconds?: number;
25083
+ };
25084
+ Returns: {
25085
+ announced_at: string;
25086
+ assigned_user_id: string | null;
25087
+ barcode: string | null;
25088
+ cancelled_at: string | null;
25089
+ cart_count: number;
25090
+ completed_at: string | null;
25091
+ country_code: string | null;
25092
+ created_at: string;
25093
+ customer_name: string | null;
25094
+ delivery_address: string | null;
25095
+ document_number: string | null;
25096
+ document_type_id: string | null;
25097
+ due_at: string | null;
25098
+ id: string;
25099
+ is_urgent: boolean;
25100
+ line_count: number;
25101
+ order_number: string | null;
25102
+ order_type: string | null;
25103
+ payload: Json;
25104
+ print_count: number;
25105
+ print_job_id: string | null;
25106
+ printed_at: string | null;
25107
+ printed_by: string | null;
25108
+ printed_cart_ids: Json;
25109
+ printer_id: string | null;
25110
+ priority: number;
25111
+ reference: string | null;
25112
+ route: string | null;
25113
+ screen_id: string | null;
25114
+ station_id: string | null;
25115
+ status_id: string | null;
25116
+ updated_at: string;
25117
+ warnings: Json;
25118
+ };
25119
+ SetofOptions: {
25120
+ from: "*";
25121
+ to: "pick_queue";
25122
+ isOneToOne: true;
25123
+ isSetofReturn: false;
25124
+ };
25125
+ };
25126
+ pick_cleanup_maintenance: {
25127
+ Args: {
25128
+ _heartbeat_hours?: number;
25129
+ _log_days?: number;
25130
+ };
25131
+ Returns: Json;
25132
+ };
25133
+ pick_complete_print: {
25134
+ Args: {
25135
+ _printer_id: string;
25136
+ _queue_item_id: string;
25137
+ _session_id: string;
25138
+ };
25139
+ Returns: {
25140
+ announced_at: string;
25141
+ assigned_user_id: string | null;
25142
+ barcode: string | null;
25143
+ cancelled_at: string | null;
25144
+ cart_count: number;
25145
+ completed_at: string | null;
25146
+ country_code: string | null;
25147
+ created_at: string;
25148
+ customer_name: string | null;
25149
+ delivery_address: string | null;
25150
+ document_number: string | null;
25151
+ document_type_id: string | null;
25152
+ due_at: string | null;
25153
+ id: string;
25154
+ is_urgent: boolean;
25155
+ line_count: number;
25156
+ order_number: string | null;
25157
+ order_type: string | null;
25158
+ payload: Json;
25159
+ print_count: number;
25160
+ print_job_id: string | null;
25161
+ printed_at: string | null;
25162
+ printed_by: string | null;
25163
+ printed_cart_ids: Json;
25164
+ printer_id: string | null;
25165
+ priority: number;
25166
+ reference: string | null;
25167
+ route: string | null;
25168
+ screen_id: string | null;
25169
+ station_id: string | null;
25170
+ status_id: string | null;
25171
+ updated_at: string;
25172
+ warnings: Json;
25173
+ };
25174
+ SetofOptions: {
25175
+ from: "*";
25176
+ to: "pick_queue";
25177
+ isOneToOne: true;
25178
+ isSetofReturn: false;
25179
+ };
25180
+ };
25181
+ pick_complete_print_cart: {
25182
+ Args: {
25183
+ _cart_id: string;
25184
+ _printer_id: string;
25185
+ _queue_item_id: string;
25186
+ _session_id: string;
25187
+ };
25188
+ Returns: {
25189
+ announced_at: string;
25190
+ assigned_user_id: string | null;
25191
+ barcode: string | null;
25192
+ cancelled_at: string | null;
25193
+ cart_count: number;
25194
+ completed_at: string | null;
25195
+ country_code: string | null;
25196
+ created_at: string;
25197
+ customer_name: string | null;
25198
+ delivery_address: string | null;
25199
+ document_number: string | null;
25200
+ document_type_id: string | null;
25201
+ due_at: string | null;
25202
+ id: string;
25203
+ is_urgent: boolean;
25204
+ line_count: number;
25205
+ order_number: string | null;
25206
+ order_type: string | null;
25207
+ payload: Json;
25208
+ print_count: number;
25209
+ print_job_id: string | null;
25210
+ printed_at: string | null;
25211
+ printed_by: string | null;
25212
+ printed_cart_ids: Json;
25213
+ printer_id: string | null;
25214
+ priority: number;
25215
+ reference: string | null;
25216
+ route: string | null;
25217
+ screen_id: string | null;
25218
+ station_id: string | null;
25219
+ status_id: string | null;
25220
+ updated_at: string;
25221
+ warnings: Json;
25222
+ };
25223
+ SetofOptions: {
25224
+ from: "*";
25225
+ to: "pick_queue";
25226
+ isOneToOne: true;
25227
+ isSetofReturn: false;
25228
+ };
25229
+ };
25230
+ pick_complete_print_carts: {
25231
+ Args: {
25232
+ _cart_ids: string[];
25233
+ _queue_item_id: string;
25234
+ _session_id: string;
25235
+ };
25236
+ Returns: Json;
25237
+ };
25238
+ pick_current_pick_day: {
25239
+ Args: never;
25240
+ Returns: string;
25241
+ };
25242
+ pick_day_counts: {
25243
+ Args: {
25244
+ _pick_day?: string;
25245
+ _screen_id?: string;
25246
+ _station_id?: string;
25247
+ };
25248
+ Returns: Json;
25249
+ };
25250
+ pick_document_layout_data: {
25251
+ Args: {
25252
+ _layout_id: string;
25253
+ };
25254
+ Returns: Json;
25255
+ };
25256
+ pick_enqueue_print_job: {
25257
+ Args: {
25258
+ _is_herprint?: boolean;
25259
+ _printer_id?: string;
25260
+ _queue_item_id: string;
25261
+ _session_id?: string;
25262
+ };
25263
+ Returns: string;
25264
+ } | {
25265
+ Args: {
25266
+ _cart_id: string;
25267
+ _is_herprint: boolean;
25268
+ _printer_id: string;
25269
+ _queue_item_id: string;
25270
+ _session_id: string;
25271
+ };
25272
+ Returns: string;
25273
+ };
25274
+ pick_enqueue_print_job_from_cart: {
25275
+ Args: {
25276
+ _cart_id: string;
25277
+ _is_herprint: boolean;
25278
+ _printer_id: string;
25279
+ _queue_item_id: string;
25280
+ _selected_cart: Json;
25281
+ _session_id: string;
25282
+ };
25283
+ Returns: string;
25284
+ };
25285
+ pick_mark_printed: {
25286
+ Args: {
25287
+ _queue_item_id: string;
25288
+ _reden?: string;
25289
+ _session_id: string;
25290
+ };
25291
+ Returns: {
25292
+ announced_at: string;
25293
+ assigned_user_id: string | null;
25294
+ barcode: string | null;
25295
+ cancelled_at: string | null;
25296
+ cart_count: number;
25297
+ completed_at: string | null;
25298
+ country_code: string | null;
25299
+ created_at: string;
25300
+ customer_name: string | null;
25301
+ delivery_address: string | null;
25302
+ document_number: string | null;
25303
+ document_type_id: string | null;
25304
+ due_at: string | null;
25305
+ id: string;
25306
+ is_urgent: boolean;
25307
+ line_count: number;
25308
+ order_number: string | null;
25309
+ order_type: string | null;
25310
+ payload: Json;
25311
+ print_count: number;
25312
+ print_job_id: string | null;
25313
+ printed_at: string | null;
25314
+ printed_by: string | null;
25315
+ printed_cart_ids: Json;
25316
+ printer_id: string | null;
25317
+ priority: number;
25318
+ reference: string | null;
25319
+ route: string | null;
25320
+ screen_id: string | null;
25321
+ station_id: string | null;
25322
+ status_id: string | null;
25323
+ updated_at: string;
25324
+ warnings: Json;
25325
+ };
25326
+ SetofOptions: {
25327
+ from: "*";
25328
+ to: "pick_queue";
25329
+ isOneToOne: true;
25330
+ isSetofReturn: false;
25331
+ };
25332
+ };
25333
+ pick_order_context: {
25334
+ Args: {
25335
+ _order_id?: string;
25336
+ _order_number?: string;
25337
+ };
25338
+ Returns: Json;
25339
+ };
25340
+ pick_preview_job: {
25341
+ Args: {
25342
+ _queue_item_id: string;
25343
+ _station_slug: string;
25344
+ };
25345
+ Returns: Json;
25346
+ };
25347
+ pick_print_job_status: {
25348
+ Args: {
25349
+ _job_id: string;
25350
+ };
25351
+ Returns: Json;
25352
+ };
25353
+ pick_print_jobs_status: {
25354
+ Args: {
25355
+ _job_ids: string[];
25356
+ };
25357
+ Returns: Json[];
25358
+ };
25359
+ pick_print_plekken: {
25360
+ Args: never;
25361
+ Returns: {
25362
+ id: string;
25363
+ naam: string;
25364
+ omschrijving: string;
25365
+ }[];
25366
+ };
25367
+ pick_queue_cart_plan: {
25368
+ Args: {
25369
+ _queue_item_id: string;
25370
+ };
25371
+ Returns: Json;
25372
+ };
25373
+ pick_reference_data_status: {
25374
+ Args: never;
25375
+ Returns: Json;
25376
+ };
25377
+ pick_release_expired_locks: {
25378
+ Args: never;
25379
+ Returns: number;
25380
+ };
25381
+ pick_release_lock: {
25382
+ Args: {
25383
+ _queue_item_id: string;
25384
+ };
25385
+ Returns: undefined;
25386
+ };
25387
+ pick_report_missing_cart_plan: {
25388
+ Args: never;
25389
+ Returns: Json;
25390
+ };
25391
+ pick_reprint_cart: {
25392
+ Args: {
25393
+ _cart_id: string;
25394
+ _queue_item_id: string;
25395
+ _session_id: string;
25396
+ _throttle_seconds?: number;
25397
+ };
25398
+ Returns: string;
25399
+ };
25400
+ pick_reprint_document: {
25401
+ Args: {
25402
+ _queue_item_id: string;
25403
+ _session_id: string;
25404
+ _throttle_seconds?: number;
25405
+ };
25406
+ Returns: string;
25407
+ };
25408
+ pick_reset_print: {
23006
25409
  Args: {
23007
25410
  _queue_item_id: string;
23008
- _screen_id: string;
23009
25411
  _session_id: string;
23010
- _station_id: string;
23011
- _timeout_seconds?: number;
23012
25412
  };
23013
25413
  Returns: {
23014
25414
  announced_at: string;
@@ -23034,6 +25434,7 @@ export type Database = {
23034
25434
  print_job_id: string | null;
23035
25435
  printed_at: string | null;
23036
25436
  printed_by: string | null;
25437
+ printed_cart_ids: Json;
23037
25438
  printer_id: string | null;
23038
25439
  priority: number;
23039
25440
  reference: string | null;
@@ -23050,14 +25451,11 @@ export type Database = {
23050
25451
  isOneToOne: true;
23051
25452
  isSetofReturn: false;
23052
25453
  };
23053
- };
23054
- pick_claim_next_document: {
25454
+ } | {
23055
25455
  Args: {
23056
- _country_code: string;
23057
- _screen_id: string;
25456
+ _cart_id?: string;
25457
+ _queue_item_id: string;
23058
25458
  _session_id: string;
23059
- _station_id: string;
23060
- _timeout_seconds?: number;
23061
25459
  };
23062
25460
  Returns: {
23063
25461
  announced_at: string;
@@ -23083,6 +25481,7 @@ export type Database = {
23083
25481
  print_job_id: string | null;
23084
25482
  printed_at: string | null;
23085
25483
  printed_by: string | null;
25484
+ printed_cart_ids: Json;
23086
25485
  printer_id: string | null;
23087
25486
  priority: number;
23088
25487
  reference: string | null;
@@ -23100,16 +25499,10 @@ export type Database = {
23100
25499
  isSetofReturn: false;
23101
25500
  };
23102
25501
  };
23103
- pick_cleanup_maintenance: {
23104
- Args: {
23105
- _heartbeat_hours?: number;
23106
- _log_days?: number;
23107
- };
23108
- Returns: Json;
23109
- };
23110
- pick_complete_print: {
25502
+ pick_reset_print_job: {
23111
25503
  Args: {
23112
- _printer_id: string;
25504
+ _cart_id: string;
25505
+ _job_id: string;
23113
25506
  _queue_item_id: string;
23114
25507
  _session_id: string;
23115
25508
  };
@@ -23137,6 +25530,7 @@ export type Database = {
23137
25530
  print_job_id: string | null;
23138
25531
  printed_at: string | null;
23139
25532
  printed_by: string | null;
25533
+ printed_cart_ids: Json;
23140
25534
  printer_id: string | null;
23141
25535
  priority: number;
23142
25536
  reference: string | null;
@@ -23154,84 +25548,56 @@ export type Database = {
23154
25548
  isSetofReturn: false;
23155
25549
  };
23156
25550
  };
23157
- pick_current_pick_day: {
23158
- Args: never;
23159
- Returns: string;
23160
- };
23161
- pick_day_counts: {
23162
- Args: {
23163
- _pick_day?: string;
23164
- _screen_id?: string;
23165
- _station_id?: string;
23166
- };
23167
- Returns: Json;
23168
- };
23169
- pick_document_layout_data: {
23170
- Args: {
23171
- _layout_id: string;
23172
- };
23173
- Returns: Json;
23174
- };
23175
- pick_enqueue_print_job: {
23176
- Args: {
23177
- _is_herprint?: boolean;
23178
- _printer_id?: string;
23179
- _queue_item_id: string;
23180
- _session_id?: string;
23181
- };
23182
- Returns: string;
23183
- };
23184
- pick_order_context: {
23185
- Args: {
23186
- _order_id?: string;
23187
- _order_number?: string;
23188
- };
23189
- Returns: Json;
23190
- };
23191
- pick_preview_job: {
25551
+ pick_reset_print_jobs: {
23192
25552
  Args: {
25553
+ _cart_ids: string[];
25554
+ _job_ids: string[];
23193
25555
  _queue_item_id: string;
23194
- _station_slug: string;
23195
- };
23196
- Returns: Json;
23197
- };
23198
- pick_print_job_status: {
23199
- Args: {
23200
- _job_id: string;
25556
+ _session_id: string;
23201
25557
  };
23202
- Returns: Json;
23203
- };
23204
- pick_print_plekken: {
23205
- Args: never;
23206
25558
  Returns: {
25559
+ announced_at: string;
25560
+ assigned_user_id: string | null;
25561
+ barcode: string | null;
25562
+ cancelled_at: string | null;
25563
+ cart_count: number;
25564
+ completed_at: string | null;
25565
+ country_code: string | null;
25566
+ created_at: string;
25567
+ customer_name: string | null;
25568
+ delivery_address: string | null;
25569
+ document_number: string | null;
25570
+ document_type_id: string | null;
25571
+ due_at: string | null;
23207
25572
  id: string;
23208
- naam: string;
23209
- omschrijving: string;
23210
- }[];
23211
- };
23212
- pick_reference_data_status: {
23213
- Args: never;
23214
- Returns: Json;
23215
- };
23216
- pick_release_expired_locks: {
23217
- Args: never;
23218
- Returns: number;
23219
- };
23220
- pick_release_lock: {
23221
- Args: {
23222
- _queue_item_id: string;
25573
+ is_urgent: boolean;
25574
+ line_count: number;
25575
+ order_number: string | null;
25576
+ order_type: string | null;
25577
+ payload: Json;
25578
+ print_count: number;
25579
+ print_job_id: string | null;
25580
+ printed_at: string | null;
25581
+ printed_by: string | null;
25582
+ printed_cart_ids: Json;
25583
+ printer_id: string | null;
25584
+ priority: number;
25585
+ reference: string | null;
25586
+ route: string | null;
25587
+ screen_id: string | null;
25588
+ station_id: string | null;
25589
+ status_id: string | null;
25590
+ updated_at: string;
25591
+ warnings: Json;
23223
25592
  };
23224
- Returns: undefined;
23225
- };
23226
- pick_reprint_document: {
23227
- Args: {
23228
- _queue_item_id: string;
23229
- _session_id: string;
23230
- _throttle_seconds?: number;
25593
+ SetofOptions: {
25594
+ from: "*";
25595
+ to: "pick_queue";
25596
+ isOneToOne: true;
25597
+ isSetofReturn: false;
23231
25598
  };
23232
- Returns: string;
23233
25599
  };
23234
- pick_reset_print: {
25600
+ pick_restore_to_queue: {
23235
25601
  Args: {
23236
25602
  _queue_item_id: string;
23237
25603
  _session_id: string;
@@ -23260,6 +25626,7 @@ export type Database = {
23260
25626
  print_job_id: string | null;
23261
25627
  printed_at: string | null;
23262
25628
  printed_by: string | null;
25629
+ printed_cart_ids: Json;
23263
25630
  printer_id: string | null;
23264
25631
  priority: number;
23265
25632
  reference: string | null;
@@ -23326,6 +25693,12 @@ export type Database = {
23326
25693
  };
23327
25694
  Returns: string;
23328
25695
  };
25696
+ pick_sync_pick_day: {
25697
+ Args: {
25698
+ _day: string;
25699
+ };
25700
+ Returns: Json;
25701
+ };
23329
25702
  pick_sync_queue_throttled: {
23330
25703
  Args: {
23331
25704
  _min_seconds?: number;
@@ -23555,6 +25928,26 @@ export type Database = {
23555
25928
  };
23556
25929
  Returns: boolean;
23557
25930
  };
25931
+ release_job_lock: {
25932
+ Args: {
25933
+ _key: string;
25934
+ };
25935
+ Returns: undefined;
25936
+ };
25937
+ release_local_pdf_job: {
25938
+ Args: {
25939
+ _job_id: string;
25940
+ _writer_id: string;
25941
+ };
25942
+ Returns: boolean;
25943
+ };
25944
+ release_print_queue_lease: {
25945
+ Args: {
25946
+ _houder: string;
25947
+ _naam: string;
25948
+ };
25949
+ Returns: boolean;
25950
+ };
23558
25951
  release_stale_order_invoice_links: {
23559
25952
  Args: {
23560
25953
  _minutes?: number;
@@ -23575,6 +25968,12 @@ export type Database = {
23575
25968
  };
23576
25969
  Returns: Json;
23577
25970
  };
25971
+ reset_cart_layer_positions: {
25972
+ Args: {
25973
+ p_cart_id: string;
25974
+ };
25975
+ Returns: number;
25976
+ };
23578
25977
  reset_floriday_sync_cursor: {
23579
25978
  Args: {
23580
25979
  p_connection_id: string;
@@ -23638,6 +26037,15 @@ export type Database = {
23638
26037
  };
23639
26038
  Returns: Json;
23640
26039
  };
26040
+ roles_without_enum_mapping: {
26041
+ Args: never;
26042
+ Returns: {
26043
+ assignment_count: number;
26044
+ id: string;
26045
+ key: string;
26046
+ name: string;
26047
+ }[];
26048
+ };
23641
26049
  ruim_print_jobs_op: {
23642
26050
  Args: {
23643
26051
  _bewaar_dagen?: number;
@@ -23652,6 +26060,10 @@ export type Database = {
23652
26060
  Args: never;
23653
26061
  Returns: undefined;
23654
26062
  };
26063
+ run_floriday_stock_reconcile: {
26064
+ Args: never;
26065
+ Returns: undefined;
26066
+ };
23655
26067
  run_logistics_tasks_dispatch: {
23656
26068
  Args: never;
23657
26069
  Returns: undefined;
@@ -23670,18 +26082,98 @@ export type Database = {
23670
26082
  };
23671
26083
  Returns: Json;
23672
26084
  };
26085
+ scan_complete_cart: {
26086
+ Args: {
26087
+ p_allow_reprint?: boolean;
26088
+ p_cart_id: string;
26089
+ p_print?: boolean;
26090
+ p_scanner_id?: string;
26091
+ };
26092
+ Returns: Json;
26093
+ };
23673
26094
  scan_dashboard_stats: {
23674
26095
  Args: {
23675
26096
  p_dagen?: number;
23676
26097
  };
23677
26098
  Returns: Json;
23678
26099
  };
26100
+ scan_eindcontrole: {
26101
+ Args: {
26102
+ p_barcode: string;
26103
+ p_scanner_id?: string;
26104
+ };
26105
+ Returns: Json;
26106
+ };
23679
26107
  scan_finish_kar: {
23680
26108
  Args: {
23681
26109
  p_kar_id: string;
23682
26110
  };
23683
26111
  Returns: Json;
23684
26112
  };
26113
+ scan_kar_compleet: {
26114
+ Args: {
26115
+ p_allow_reprint?: boolean;
26116
+ p_sessie_id: string;
26117
+ };
26118
+ Returns: Json;
26119
+ };
26120
+ scan_kar_regels: {
26121
+ Args: {
26122
+ p_cart_id: string;
26123
+ };
26124
+ Returns: Json;
26125
+ };
26126
+ scan_log_code: {
26127
+ Args: {
26128
+ p_code: string;
26129
+ p_latency_ms?: number;
26130
+ p_message?: string;
26131
+ p_result: string;
26132
+ p_scanner_key?: string;
26133
+ };
26134
+ Returns: string;
26135
+ };
26136
+ scan_open_pakbonnen: {
26137
+ Args: {
26138
+ p_dagen?: number;
26139
+ };
26140
+ Returns: Json;
26141
+ };
26142
+ scan_pakbon_lookup: {
26143
+ Args: {
26144
+ p_barcode: string;
26145
+ };
26146
+ Returns: Json;
26147
+ };
26148
+ scan_pakbon_opnieuw: {
26149
+ Args: {
26150
+ p_barcode: string;
26151
+ p_scanner_id?: string;
26152
+ };
26153
+ Returns: Json;
26154
+ };
26155
+ scan_pakbon_toevoegen: {
26156
+ Args: {
26157
+ p_barcode: string;
26158
+ p_medewerker?: string;
26159
+ p_regels?: Json;
26160
+ p_scanner_id: string;
26161
+ };
26162
+ Returns: Json;
26163
+ };
26164
+ scan_print_restpakbon: {
26165
+ Args: {
26166
+ p_printer_id?: string;
26167
+ p_restpakbon_id: string;
26168
+ };
26169
+ Returns: Json;
26170
+ };
26171
+ scan_print_verzendbrief: {
26172
+ Args: {
26173
+ p_sessie_id: string;
26174
+ };
26175
+ Returns: Json;
26176
+ };
23685
26177
  scan_register_item: {
23686
26178
  Args: {
23687
26179
  p_kar_id: string;
@@ -23700,6 +26192,25 @@ export type Database = {
23700
26192
  };
23701
26193
  Returns: Json;
23702
26194
  };
26195
+ scan_restpakbon_geprint: {
26196
+ Args: {
26197
+ p_id: string;
26198
+ p_print_job_id?: string;
26199
+ };
26200
+ Returns: undefined;
26201
+ };
26202
+ scan_sessie_annuleren: {
26203
+ Args: {
26204
+ p_sessie_id: string;
26205
+ };
26206
+ Returns: undefined;
26207
+ };
26208
+ scan_sessie_open: {
26209
+ Args: {
26210
+ p_scanner_id: string;
26211
+ };
26212
+ Returns: Json;
26213
+ };
23703
26214
  scan_start_kar: {
23704
26215
  Args: {
23705
26216
  p_medewerker_id?: string;
@@ -23718,6 +26229,12 @@ export type Database = {
23718
26229
  };
23719
26230
  Returns: Json;
23720
26231
  };
26232
+ scan_verzendbrief_regels: {
26233
+ Args: {
26234
+ p_sessie_id: string;
26235
+ };
26236
+ Returns: Json;
26237
+ };
23721
26238
  schedule_floriday_additional_services_sync: {
23722
26239
  Args: {
23723
26240
  p_apikey: string;
@@ -24033,6 +26550,13 @@ export type Database = {
24033
26550
  };
24034
26551
  Returns: Json;
24035
26552
  };
26553
+ swap_cart_layer_positions: {
26554
+ Args: {
26555
+ p_a: string;
26556
+ p_b: string;
26557
+ };
26558
+ Returns: undefined;
26559
+ };
24036
26560
  switch_time_log: {
24037
26561
  Args: {
24038
26562
  p_employee_id: string;
@@ -24065,6 +26589,12 @@ export type Database = {
24065
26589
  };
24066
26590
  Returns: undefined;
24067
26591
  };
26592
+ sync_order_item_fusten: {
26593
+ Args: {
26594
+ _order_item_id: string;
26595
+ };
26596
+ Returns: undefined;
26597
+ };
24068
26598
  sync_product_group_belading: {
24069
26599
  Args: {
24070
26600
  _group_id: string;
@@ -24092,6 +26622,14 @@ export type Database = {
24092
26622
  row_count: number;
24093
26623
  }[];
24094
26624
  };
26625
+ try_acquire_job_lock: {
26626
+ Args: {
26627
+ _key: string;
26628
+ _owner?: string;
26629
+ _seconds?: number;
26630
+ };
26631
+ Returns: boolean;
26632
+ };
24095
26633
  try_debtor_lock: {
24096
26634
  Args: {
24097
26635
  _group_key: string;
@@ -24171,6 +26709,12 @@ export type Database = {
24171
26709
  Args: never;
24172
26710
  Returns: string;
24173
26711
  };
26712
+ wake_print_queue: {
26713
+ Args: {
26714
+ _min_interval_ms?: number;
26715
+ };
26716
+ Returns: number;
26717
+ };
24174
26718
  werkbon_totalen: {
24175
26719
  Args: {
24176
26720
  _werkbon_id: string;
@@ -24203,10 +26747,18 @@ export type Database = {
24203
26747
  };
24204
26748
  Returns: Json;
24205
26749
  };
26750
+ wo_set_status: {
26751
+ Args: {
26752
+ _reason?: string;
26753
+ _status: string;
26754
+ _work_order_id: string;
26755
+ };
26756
+ Returns: Json;
26757
+ };
24206
26758
  };
24207
26759
  Enums: {
24208
26760
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
24209
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
26761
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
24210
26762
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
24211
26763
  doc_orientation: "portrait" | "landscape";
24212
26764
  exact_env: "staging" | "live";
@@ -24277,7 +26829,7 @@ export declare const Constants: {
24277
26829
  readonly public: {
24278
26830
  readonly Enums: {
24279
26831
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
24280
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
26832
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
24281
26833
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
24282
26834
  readonly doc_orientation: readonly ["portrait", "landscape"];
24283
26835
  readonly exact_env: readonly ["staging", "live"];