@flowselections/floriday-voorraad 1.0.45 → 1.0.47

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 (144) hide show
  1. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +1 -1
  2. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts +1 -1
  4. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +1 -1
  6. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/ArtikelWizard.js +157 -9
  8. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +1 -1
  9. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/EditArtikelPage.js +2 -1
  11. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +1 -1
  12. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +1 -1
  14. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/FustenPage.d.ts +1 -1
  16. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  17. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts +1 -1
  18. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts.map +1 -1
  19. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts +1 -1
  20. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts.map +1 -1
  21. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts +1 -1
  22. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  23. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +1 -1
  24. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -1
  25. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +1 -1
  26. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  27. package/dist-lib/components/voorraad/PriceStatusBadge.js +1 -1
  28. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +1 -1
  29. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -1
  30. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +1 -1
  31. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -1
  32. package/dist-lib/components/voorraad/PublicatiesPage.d.ts +1 -1
  33. package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -1
  34. package/dist-lib/components/voorraad/PublishProgressCard.d.ts +1 -1
  35. package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -1
  36. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +1 -1
  37. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -1
  38. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +1 -1
  39. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -1
  40. package/dist-lib/components/voorraad/StockBulkButtons.d.ts +1 -1
  41. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  42. package/dist-lib/components/voorraad/StockHistoryChart.d.ts +1 -1
  43. package/dist-lib/components/voorraad/StockHistoryChart.d.ts.map +1 -1
  44. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts +1 -1
  45. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -1
  46. package/dist-lib/components/voorraad/StockPushMonitor.d.ts +1 -1
  47. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  48. package/dist-lib/components/voorraad/StockSyncStatus.d.ts +1 -1
  49. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -1
  50. package/dist-lib/components/voorraad/TrayStickerCard.d.ts +5 -0
  51. package/dist-lib/components/voorraad/TrayStickerCard.d.ts.map +1 -0
  52. package/dist-lib/components/voorraad/TrayStickerCard.js +100 -0
  53. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts +1 -1
  54. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  55. package/dist-lib/components/voorraad/ValidationPage.d.ts +1 -1
  56. package/dist-lib/components/voorraad/ValidationPage.d.ts.map +1 -1
  57. package/dist-lib/components/voorraad/VoorraadPage.d.ts +1 -1
  58. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  59. package/dist-lib/components/voorraad/VoorraadPagination.d.ts +1 -1
  60. package/dist-lib/components/voorraad/VoorraadPagination.d.ts.map +1 -1
  61. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  62. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  63. package/dist-lib/components/voorraad/VoorraadTable.d.ts +1 -1
  64. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  65. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +1 -1
  66. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -1
  67. package/dist-lib/hooks/useTradeItemSupplyLine.js +1 -1
  68. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3255 -199
  69. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  70. package/dist-lib/integrations/supabase/client.d.ts +3255 -199
  71. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  72. package/dist-lib/integrations/supabase/client.js +1 -1
  73. package/dist-lib/integrations/supabase/client.server.d.ts +3255 -199
  74. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  75. package/dist-lib/integrations/supabase/client.server.js +1 -1
  76. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  77. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  78. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  79. package/dist-lib/integrations/supabase/types.d.ts +3287 -192
  80. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  81. package/dist-lib/lib/floricode-required-features.functions.d.ts +3267 -217
  82. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/floricode-required-features.functions.js +1 -1
  84. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +3267 -211
  85. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/floriday-env.functions.d.ts +6126 -14
  87. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/floriday-gateway.functions.d.ts +18378 -42
  89. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +6126 -14
  91. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/floriday-warehouse.functions.d.ts +9189 -21
  93. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  94. package/dist-lib/lib/floriday-writes.functions.d.ts +6126 -14
  95. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/inventory-settings.functions.d.ts +6126 -14
  97. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  98. package/dist-lib/lib/inventory-settings.functions.js +3 -3
  99. package/dist-lib/lib/logistics-buffer-events.server.js +1 -1
  100. package/dist-lib/lib/logistics-tasks.server.js +2 -2
  101. package/dist-lib/lib/module-runtime.server.js +1 -1
  102. package/dist-lib/lib/product-packing.d.ts +28 -0
  103. package/dist-lib/lib/product-packing.d.ts.map +1 -0
  104. package/dist-lib/lib/product-packing.js +90 -0
  105. package/dist-lib/lib/stock-sync.functions.d.ts +6126 -14
  106. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  107. package/dist-lib/lib/stock-sync.functions.js +3 -3
  108. package/package.json +3 -3
  109. package/dist-lib/components/TemplatePage.d.ts +0 -2
  110. package/dist-lib/components/TemplatePage.d.ts.map +0 -1
  111. package/dist-lib/components/TemplatePage.js +0 -4
  112. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts +0 -2
  113. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts.map +0 -1
  114. package/dist-lib/components/settings/VoorraadSettingsCard.js +0 -39
  115. package/dist-lib/components/voorraad/ConnectionBadge.d.ts +0 -6
  116. package/dist-lib/components/voorraad/ConnectionBadge.d.ts.map +0 -1
  117. package/dist-lib/components/voorraad/ConnectionBadge.js +0 -12
  118. package/dist-lib/components/voorraad/ConnectionPicker.d.ts +0 -8
  119. package/dist-lib/components/voorraad/ConnectionPicker.d.ts.map +0 -1
  120. package/dist-lib/components/voorraad/ConnectionPicker.js +0 -8
  121. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts +0 -4
  122. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts.map +0 -1
  123. package/dist-lib/components/voorraad/FloridayStatusBadge.js +0 -8
  124. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts +0 -2
  125. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts.map +0 -1
  126. package/dist-lib/components/voorraad/ModuleHealthCard.js +0 -40
  127. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts +0 -10
  128. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +0 -1
  129. package/dist-lib/components/voorraad/VoorraadDashboard.js +0 -53
  130. package/dist-lib/lib/floriday-field-sources.d.ts +0 -18
  131. package/dist-lib/lib/floriday-field-sources.d.ts.map +0 -1
  132. package/dist-lib/lib/floriday-field-sources.js +0 -45
  133. package/dist-lib/lib/floriday-schema-to-zod.d.ts +0 -9
  134. package/dist-lib/lib/floriday-schema-to-zod.d.ts.map +0 -1
  135. package/dist-lib/lib/floriday-schema-to-zod.js +0 -53
  136. package/dist-lib/lib/merge-products.d.ts +0 -8
  137. package/dist-lib/lib/merge-products.d.ts.map +0 -1
  138. package/dist-lib/lib/merge-products.js +0 -17
  139. package/dist-lib/lib/module-health.functions.d.ts +0 -53497
  140. package/dist-lib/lib/module-health.functions.d.ts.map +0 -1
  141. package/dist-lib/lib/module-health.functions.js +0 -261
  142. package/dist-lib/lib/validationSchemas.d.ts +0 -15
  143. package/dist-lib/lib/validationSchemas.d.ts.map +0 -1
  144. package/dist-lib/lib/validationSchemas.js +0 -25
@@ -5,6 +5,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5
5
  Row: {
6
6
  auto_print_delivery_note: boolean;
7
7
  auto_process_paused: boolean;
8
+ control_bulk_max_carts: number;
8
9
  created_at: string;
9
10
  extra_pick_days_with_stickers: number;
10
11
  id: string;
@@ -22,6 +23,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22
23
  Insert: {
23
24
  auto_print_delivery_note?: boolean;
24
25
  auto_process_paused?: boolean;
26
+ control_bulk_max_carts?: number;
25
27
  created_at?: string;
26
28
  extra_pick_days_with_stickers?: number;
27
29
  id?: string;
@@ -39,6 +41,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
39
41
  Update: {
40
42
  auto_print_delivery_note?: boolean;
41
43
  auto_process_paused?: boolean;
44
+ control_bulk_max_carts?: number;
42
45
  created_at?: string;
43
46
  extra_pick_days_with_stickers?: number;
44
47
  id?: string;
@@ -1381,6 +1384,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1381
1384
  id: string;
1382
1385
  notes: string | null;
1383
1386
  performed_at: string;
1387
+ request_key: string | null;
1384
1388
  rescheduled_count: number;
1385
1389
  stock_consumed_at: string | null;
1386
1390
  total_carts: number;
@@ -1395,6 +1399,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1395
1399
  id?: string;
1396
1400
  notes?: string | null;
1397
1401
  performed_at?: string;
1402
+ request_key?: string | null;
1398
1403
  rescheduled_count?: number;
1399
1404
  stock_consumed_at?: string | null;
1400
1405
  total_carts?: number;
@@ -1409,6 +1414,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1409
1414
  id?: string;
1410
1415
  notes?: string | null;
1411
1416
  performed_at?: string;
1417
+ request_key?: string | null;
1412
1418
  rescheduled_count?: number;
1413
1419
  stock_consumed_at?: string | null;
1414
1420
  total_carts?: number;
@@ -1421,9 +1427,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1421
1427
  Row: {
1422
1428
  assigned_at: string;
1423
1429
  cart_index: number;
1424
- cart_number: string | null;
1430
+ cart_number: string;
1425
1431
  day_seq: number | null;
1426
1432
  delivered_at: string | null;
1433
+ engine_cart_label: string | null;
1427
1434
  id: string;
1428
1435
  order_id: string;
1429
1436
  order_source: string;
@@ -1433,9 +1440,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1433
1440
  Insert: {
1434
1441
  assigned_at?: string;
1435
1442
  cart_index: number;
1436
- cart_number?: string | null;
1443
+ cart_number: string;
1437
1444
  day_seq?: number | null;
1438
1445
  delivered_at?: string | null;
1446
+ engine_cart_label?: string | null;
1439
1447
  id?: string;
1440
1448
  order_id: string;
1441
1449
  order_source: string;
@@ -1445,9 +1453,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1445
1453
  Update: {
1446
1454
  assigned_at?: string;
1447
1455
  cart_index?: number;
1448
- cart_number?: string | null;
1456
+ cart_number?: string;
1449
1457
  day_seq?: number | null;
1450
1458
  delivered_at?: string | null;
1459
+ engine_cart_label?: string | null;
1451
1460
  id?: string;
1452
1461
  order_id?: string;
1453
1462
  order_source?: string;
@@ -3714,6 +3723,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3714
3723
  };
3715
3724
  email_auth_outbox: {
3716
3725
  Row: {
3726
+ attachments: import("./types").Json;
3717
3727
  attempts: number;
3718
3728
  bcc_addresses: string[];
3719
3729
  cc_addresses: string[];
@@ -3736,6 +3746,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3736
3746
  updated_at: string;
3737
3747
  };
3738
3748
  Insert: {
3749
+ attachments?: import("./types").Json;
3739
3750
  attempts?: number;
3740
3751
  bcc_addresses?: string[];
3741
3752
  cc_addresses?: string[];
@@ -3758,6 +3769,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3758
3769
  updated_at?: string;
3759
3770
  };
3760
3771
  Update: {
3772
+ attachments?: import("./types").Json;
3761
3773
  attempts?: number;
3762
3774
  bcc_addresses?: string[];
3763
3775
  cc_addresses?: string[];
@@ -7977,6 +7989,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7977
7989
  };
7978
7990
  fust_types: {
7979
7991
  Row: {
7992
+ capacity_units: number | null;
7980
7993
  connection_id: string | null;
7981
7994
  created_at: string;
7982
7995
  custom_package_id: string | null;
@@ -7997,6 +8010,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7997
8010
  width_mm: number | null;
7998
8011
  };
7999
8012
  Insert: {
8013
+ capacity_units?: number | null;
8000
8014
  connection_id?: string | null;
8001
8015
  created_at?: string;
8002
8016
  custom_package_id?: string | null;
@@ -8017,6 +8031,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8017
8031
  width_mm?: number | null;
8018
8032
  };
8019
8033
  Update: {
8034
+ capacity_units?: number | null;
8020
8035
  connection_id?: string | null;
8021
8036
  created_at?: string;
8022
8037
  custom_package_id?: string | null;
@@ -8534,13 +8549,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8534
8549
  Row: {
8535
8550
  created_at: string;
8536
8551
  created_by: string | null;
8552
+ customer_address: string | null;
8553
+ customer_attention: string | null;
8554
+ customer_city: string | null;
8537
8555
  customer_id: string | null;
8538
8556
  customer_name: string | null;
8557
+ customer_postal_code: string | null;
8558
+ customer_vat_number: string | null;
8559
+ debtor_number: string | null;
8539
8560
  due_date: string | null;
8561
+ execution_date: string | null;
8540
8562
  id: string;
8541
8563
  invoice_date: string;
8542
8564
  invoice_number: string | null;
8543
8565
  note: string | null;
8566
+ payment_term_days: number;
8567
+ reference: string | null;
8544
8568
  source_number: string | null;
8545
8569
  source_ref: string | null;
8546
8570
  source_type: string;
@@ -8550,17 +8574,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8550
8574
  updated_at: string;
8551
8575
  vat_cents: number;
8552
8576
  vat_rate: number;
8577
+ work_address: string | null;
8553
8578
  };
8554
8579
  Insert: {
8555
8580
  created_at?: string;
8556
8581
  created_by?: string | null;
8582
+ customer_address?: string | null;
8583
+ customer_attention?: string | null;
8584
+ customer_city?: string | null;
8557
8585
  customer_id?: string | null;
8558
8586
  customer_name?: string | null;
8587
+ customer_postal_code?: string | null;
8588
+ customer_vat_number?: string | null;
8589
+ debtor_number?: string | null;
8559
8590
  due_date?: string | null;
8591
+ execution_date?: string | null;
8560
8592
  id?: string;
8561
8593
  invoice_date?: string;
8562
8594
  invoice_number?: string | null;
8563
8595
  note?: string | null;
8596
+ payment_term_days?: number;
8597
+ reference?: string | null;
8564
8598
  source_number?: string | null;
8565
8599
  source_ref?: string | null;
8566
8600
  source_type?: string;
@@ -8570,17 +8604,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8570
8604
  updated_at?: string;
8571
8605
  vat_cents?: number;
8572
8606
  vat_rate?: number;
8607
+ work_address?: string | null;
8573
8608
  };
8574
8609
  Update: {
8575
8610
  created_at?: string;
8576
8611
  created_by?: string | null;
8612
+ customer_address?: string | null;
8613
+ customer_attention?: string | null;
8614
+ customer_city?: string | null;
8577
8615
  customer_id?: string | null;
8578
8616
  customer_name?: string | null;
8617
+ customer_postal_code?: string | null;
8618
+ customer_vat_number?: string | null;
8619
+ debtor_number?: string | null;
8579
8620
  due_date?: string | null;
8621
+ execution_date?: string | null;
8580
8622
  id?: string;
8581
8623
  invoice_date?: string;
8582
8624
  invoice_number?: string | null;
8583
8625
  note?: string | null;
8626
+ payment_term_days?: number;
8627
+ reference?: string | null;
8584
8628
  source_number?: string | null;
8585
8629
  source_ref?: string | null;
8586
8630
  source_type?: string;
@@ -8590,6 +8634,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8590
8634
  updated_at?: string;
8591
8635
  vat_cents?: number;
8592
8636
  vat_rate?: number;
8637
+ work_address?: string | null;
8593
8638
  };
8594
8639
  Relationships: [{
8595
8640
  foreignKeyName: "invoices_customer_id_fkey";
@@ -8794,8 +8839,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8794
8839
  };
8795
8840
  Relationships: [];
8796
8841
  };
8842
+ itk_handover_afspraken: {
8843
+ Row: {
8844
+ afgesproken_door: string | null;
8845
+ afgesproken_op: string;
8846
+ besluit: string;
8847
+ created_at: string;
8848
+ item: string;
8849
+ modules: string[];
8850
+ sleutel: string;
8851
+ soort: string;
8852
+ updated_at: string;
8853
+ versie_vingerafdruk: string;
8854
+ };
8855
+ Insert: {
8856
+ afgesproken_door?: string | null;
8857
+ afgesproken_op?: string;
8858
+ besluit?: string;
8859
+ created_at?: string;
8860
+ item?: string;
8861
+ modules?: string[];
8862
+ sleutel: string;
8863
+ soort?: string;
8864
+ updated_at?: string;
8865
+ versie_vingerafdruk?: string;
8866
+ };
8867
+ Update: {
8868
+ afgesproken_door?: string | null;
8869
+ afgesproken_op?: string;
8870
+ besluit?: string;
8871
+ created_at?: string;
8872
+ item?: string;
8873
+ modules?: string[];
8874
+ sleutel?: string;
8875
+ soort?: string;
8876
+ updated_at?: string;
8877
+ versie_vingerafdruk?: string;
8878
+ };
8879
+ Relationships: [];
8880
+ };
8797
8881
  itk_handover_github_scan: {
8798
8882
  Row: {
8883
+ genegeerd_op: string | null;
8799
8884
  gescand_op: string;
8800
8885
  gevonden: boolean;
8801
8886
  melding: string | null;
@@ -8803,6 +8888,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8803
8888
  repo: string;
8804
8889
  };
8805
8890
  Insert: {
8891
+ genegeerd_op?: string | null;
8806
8892
  gescand_op?: string;
8807
8893
  gevonden?: boolean;
8808
8894
  melding?: string | null;
@@ -8810,6 +8896,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8810
8896
  repo: string;
8811
8897
  };
8812
8898
  Update: {
8899
+ genegeerd_op?: string | null;
8813
8900
  gescand_op?: string;
8814
8901
  gevonden?: boolean;
8815
8902
  melding?: string | null;
@@ -8818,13 +8905,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8818
8905
  };
8819
8906
  Relationships: [];
8820
8907
  };
8908
+ itk_handover_github_voortgang: {
8909
+ Row: {
8910
+ bijgewerkt_op: string;
8911
+ huidige_repo: string | null;
8912
+ id: boolean;
8913
+ klaar: number;
8914
+ loopt: boolean;
8915
+ totaal: number;
8916
+ };
8917
+ Insert: {
8918
+ bijgewerkt_op?: string;
8919
+ huidige_repo?: string | null;
8920
+ id?: boolean;
8921
+ klaar?: number;
8922
+ loopt?: boolean;
8923
+ totaal?: number;
8924
+ };
8925
+ Update: {
8926
+ bijgewerkt_op?: string;
8927
+ huidige_repo?: string | null;
8928
+ id?: boolean;
8929
+ klaar?: number;
8930
+ loopt?: boolean;
8931
+ totaal?: number;
8932
+ };
8933
+ Relationships: [];
8934
+ };
8821
8935
  itk_handover_module_meta: {
8822
8936
  Row: {
8823
8937
  check_aangevraagd_op: string | null;
8824
8938
  check_nodig: boolean;
8825
8939
  check_reden: string | null;
8826
8940
  created_at: string;
8941
+ md_bron: boolean;
8942
+ md_bron_op: string | null;
8943
+ md_bron_pad: string | null;
8827
8944
  module_id: string;
8945
+ nieuw_gezien: boolean;
8946
+ nieuw_gezien_op: string | null;
8828
8947
  project_url: string | null;
8829
8948
  publicatie_url: string | null;
8830
8949
  updated_at: string;
@@ -8834,7 +8953,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8834
8953
  check_nodig?: boolean;
8835
8954
  check_reden?: string | null;
8836
8955
  created_at?: string;
8956
+ md_bron?: boolean;
8957
+ md_bron_op?: string | null;
8958
+ md_bron_pad?: string | null;
8837
8959
  module_id: string;
8960
+ nieuw_gezien?: boolean;
8961
+ nieuw_gezien_op?: string | null;
8838
8962
  project_url?: string | null;
8839
8963
  publicatie_url?: string | null;
8840
8964
  updated_at?: string;
@@ -8844,13 +8968,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8844
8968
  check_nodig?: boolean;
8845
8969
  check_reden?: string | null;
8846
8970
  created_at?: string;
8971
+ md_bron?: boolean;
8972
+ md_bron_op?: string | null;
8973
+ md_bron_pad?: string | null;
8847
8974
  module_id?: string;
8975
+ nieuw_gezien?: boolean;
8976
+ nieuw_gezien_op?: string | null;
8848
8977
  project_url?: string | null;
8849
8978
  publicatie_url?: string | null;
8850
8979
  updated_at?: string;
8851
8980
  };
8852
8981
  Relationships: [];
8853
8982
  };
8983
+ itk_handover_module_naam: {
8984
+ Row: {
8985
+ bron_repo: string;
8986
+ created_at: string;
8987
+ module_id: string;
8988
+ standaardnaam: string | null;
8989
+ updated_at: string;
8990
+ weergavenaam: string;
8991
+ };
8992
+ Insert: {
8993
+ bron_repo?: string;
8994
+ created_at?: string;
8995
+ module_id: string;
8996
+ standaardnaam?: string | null;
8997
+ updated_at?: string;
8998
+ weergavenaam: string;
8999
+ };
9000
+ Update: {
9001
+ bron_repo?: string;
9002
+ created_at?: string;
9003
+ module_id?: string;
9004
+ standaardnaam?: string | null;
9005
+ updated_at?: string;
9006
+ weergavenaam?: string;
9007
+ };
9008
+ Relationships: [];
9009
+ };
8854
9010
  itk_handover_project_modules: {
8855
9011
  Row: {
8856
9012
  created_at: string;
@@ -8964,6 +9120,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8964
9120
  };
8965
9121
  itk_module_handovers: {
8966
9122
  Row: {
9123
+ bekende_risicos: string[];
8967
9124
  bevindingen: string | null;
8968
9125
  bezit_tabellen: string[];
8969
9126
  bron_commit: string | null;
@@ -8982,6 +9139,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8982
9139
  inhoud_md: string;
8983
9140
  is_actueel: boolean;
8984
9141
  is_gearchiveerd: boolean;
9142
+ laatst_bevestigd_op: string | null;
8985
9143
  laatst_gecontroleerd_op: string | null;
8986
9144
  module_id: string;
8987
9145
  module_titel: string;
@@ -8991,6 +9149,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8991
9149
  versie: number;
8992
9150
  };
8993
9151
  Insert: {
9152
+ bekende_risicos?: string[];
8994
9153
  bevindingen?: string | null;
8995
9154
  bezit_tabellen?: string[];
8996
9155
  bron_commit?: string | null;
@@ -9009,6 +9168,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9009
9168
  inhoud_md: string;
9010
9169
  is_actueel?: boolean;
9011
9170
  is_gearchiveerd?: boolean;
9171
+ laatst_bevestigd_op?: string | null;
9012
9172
  laatst_gecontroleerd_op?: string | null;
9013
9173
  module_id: string;
9014
9174
  module_titel: string;
@@ -9018,6 +9178,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9018
9178
  versie?: number;
9019
9179
  };
9020
9180
  Update: {
9181
+ bekende_risicos?: string[];
9021
9182
  bevindingen?: string | null;
9022
9183
  bezit_tabellen?: string[];
9023
9184
  bron_commit?: string | null;
@@ -9036,6 +9197,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9036
9197
  inhoud_md?: string;
9037
9198
  is_actueel?: boolean;
9038
9199
  is_gearchiveerd?: boolean;
9200
+ laatst_bevestigd_op?: string | null;
9039
9201
  laatst_gecontroleerd_op?: string | null;
9040
9202
  module_id?: string;
9041
9203
  module_titel?: string;
@@ -9244,6 +9406,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9244
9406
  };
9245
9407
  Relationships: [];
9246
9408
  };
9409
+ itk_offerte_voorstel_status: {
9410
+ Row: {
9411
+ ai_concept: import("./types").Json | null;
9412
+ created_at: string;
9413
+ id: string;
9414
+ offerte_id: string | null;
9415
+ proposal_id: string;
9416
+ seen_at: string | null;
9417
+ updated_at: string;
9418
+ };
9419
+ Insert: {
9420
+ ai_concept?: import("./types").Json | null;
9421
+ created_at?: string;
9422
+ id?: string;
9423
+ offerte_id?: string | null;
9424
+ proposal_id: string;
9425
+ seen_at?: string | null;
9426
+ updated_at?: string;
9427
+ };
9428
+ Update: {
9429
+ ai_concept?: import("./types").Json | null;
9430
+ created_at?: string;
9431
+ id?: string;
9432
+ offerte_id?: string | null;
9433
+ proposal_id?: string;
9434
+ seen_at?: string | null;
9435
+ updated_at?: string;
9436
+ };
9437
+ Relationships: [{
9438
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9439
+ columns: ["offerte_id"];
9440
+ isOneToOne: false;
9441
+ referencedRelation: "itk_offertes";
9442
+ referencedColumns: ["id"];
9443
+ }];
9444
+ };
9445
+ itk_offerte_werkbon_queue: {
9446
+ Row: {
9447
+ bron_werkbon_id: string | null;
9448
+ created_at: string;
9449
+ foutmelding: string | null;
9450
+ id: string;
9451
+ offerte_id: string;
9452
+ payload: import("./types").Json;
9453
+ status: string;
9454
+ updated_at: string;
9455
+ verwerkt_op: string | null;
9456
+ werkbon_id: string | null;
9457
+ werkbon_nummer: string | null;
9458
+ };
9459
+ Insert: {
9460
+ bron_werkbon_id?: string | null;
9461
+ created_at?: string;
9462
+ foutmelding?: string | null;
9463
+ id?: string;
9464
+ offerte_id: string;
9465
+ payload?: import("./types").Json;
9466
+ status?: string;
9467
+ updated_at?: string;
9468
+ verwerkt_op?: string | null;
9469
+ werkbon_id?: string | null;
9470
+ werkbon_nummer?: string | null;
9471
+ };
9472
+ Update: {
9473
+ bron_werkbon_id?: string | null;
9474
+ created_at?: string;
9475
+ foutmelding?: string | null;
9476
+ id?: string;
9477
+ offerte_id?: string;
9478
+ payload?: import("./types").Json;
9479
+ status?: string;
9480
+ updated_at?: string;
9481
+ verwerkt_op?: string | null;
9482
+ werkbon_id?: string | null;
9483
+ werkbon_nummer?: string | null;
9484
+ };
9485
+ Relationships: [{
9486
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9487
+ columns: ["offerte_id"];
9488
+ isOneToOne: false;
9489
+ referencedRelation: "itk_offertes";
9490
+ referencedColumns: ["id"];
9491
+ }];
9492
+ };
9247
9493
  itk_offertes: {
9248
9494
  Row: {
9249
9495
  ai_generated: boolean;
@@ -9516,6 +9762,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9516
9762
  };
9517
9763
  leave_requests: {
9518
9764
  Row: {
9765
+ cancellation_requested_at: string | null;
9766
+ cancellation_status: string | null;
9519
9767
  created_at: string;
9520
9768
  decided_at: string | null;
9521
9769
  decided_by: string | null;
@@ -9526,6 +9774,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9526
9774
  leave_type: string;
9527
9775
  monteur_id: string | null;
9528
9776
  reason: string | null;
9777
+ reden_afkeur: string | null;
9529
9778
  start_date: string;
9530
9779
  start_time: string | null;
9531
9780
  status: string;
@@ -9533,6 +9782,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9533
9782
  user_id: string;
9534
9783
  };
9535
9784
  Insert: {
9785
+ cancellation_requested_at?: string | null;
9786
+ cancellation_status?: string | null;
9536
9787
  created_at?: string;
9537
9788
  decided_at?: string | null;
9538
9789
  decided_by?: string | null;
@@ -9543,6 +9794,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9543
9794
  leave_type?: string;
9544
9795
  monteur_id?: string | null;
9545
9796
  reason?: string | null;
9797
+ reden_afkeur?: string | null;
9546
9798
  start_date: string;
9547
9799
  start_time?: string | null;
9548
9800
  status?: string;
@@ -9550,6 +9802,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9550
9802
  user_id: string;
9551
9803
  };
9552
9804
  Update: {
9805
+ cancellation_requested_at?: string | null;
9806
+ cancellation_status?: string | null;
9553
9807
  created_at?: string;
9554
9808
  decided_at?: string | null;
9555
9809
  decided_by?: string | null;
@@ -9560,6 +9814,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9560
9814
  leave_type?: string;
9561
9815
  monteur_id?: string | null;
9562
9816
  reason?: string | null;
9817
+ reden_afkeur?: string | null;
9563
9818
  start_date?: string;
9564
9819
  start_time?: string | null;
9565
9820
  status?: string;
@@ -10702,6 +10957,156 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10702
10957
  };
10703
10958
  Relationships: [];
10704
10959
  };
10960
+ logistics_order_finalize_queue: {
10961
+ Row: {
10962
+ attempts: number;
10963
+ claimed_at: string | null;
10964
+ created_at: string;
10965
+ finished_at: string | null;
10966
+ last_error: string | null;
10967
+ lease_until: string | null;
10968
+ max_attempts: number;
10969
+ next_attempt_at: string;
10970
+ order_id: string;
10971
+ reason: string | null;
10972
+ requested_at: string;
10973
+ status: string;
10974
+ updated_at: string;
10975
+ };
10976
+ Insert: {
10977
+ attempts?: number;
10978
+ claimed_at?: string | null;
10979
+ created_at?: string;
10980
+ finished_at?: string | null;
10981
+ last_error?: string | null;
10982
+ lease_until?: string | null;
10983
+ max_attempts?: number;
10984
+ next_attempt_at?: string;
10985
+ order_id: string;
10986
+ reason?: string | null;
10987
+ requested_at?: string;
10988
+ status?: string;
10989
+ updated_at?: string;
10990
+ };
10991
+ Update: {
10992
+ attempts?: number;
10993
+ claimed_at?: string | null;
10994
+ created_at?: string;
10995
+ finished_at?: string | null;
10996
+ last_error?: string | null;
10997
+ lease_until?: string | null;
10998
+ max_attempts?: number;
10999
+ next_attempt_at?: string;
11000
+ order_id?: string;
11001
+ reason?: string | null;
11002
+ requested_at?: string;
11003
+ status?: string;
11004
+ updated_at?: string;
11005
+ };
11006
+ Relationships: [];
11007
+ };
11008
+ logistics_order_merges: {
11009
+ Row: {
11010
+ group_key: string;
11011
+ id: string;
11012
+ items_moved: number;
11013
+ kept_order_id: string;
11014
+ kept_order_number: string | null;
11015
+ merged_at: string;
11016
+ merged_order_id: string;
11017
+ merged_order_number: string | null;
11018
+ sales_order_id: string | null;
11019
+ };
11020
+ Insert: {
11021
+ group_key: string;
11022
+ id?: string;
11023
+ items_moved?: number;
11024
+ kept_order_id: string;
11025
+ kept_order_number?: string | null;
11026
+ merged_at?: string;
11027
+ merged_order_id: string;
11028
+ merged_order_number?: string | null;
11029
+ sales_order_id?: string | null;
11030
+ };
11031
+ Update: {
11032
+ group_key?: string;
11033
+ id?: string;
11034
+ items_moved?: number;
11035
+ kept_order_id?: string;
11036
+ kept_order_number?: string | null;
11037
+ merged_at?: string;
11038
+ merged_order_id?: string;
11039
+ merged_order_number?: string | null;
11040
+ sales_order_id?: string | null;
11041
+ };
11042
+ Relationships: [];
11043
+ };
11044
+ logistics_packing_deviations: {
11045
+ Row: {
11046
+ auto_fixed_at: string | null;
11047
+ created_at: string;
11048
+ dev_key: string;
11049
+ first_seen_at: string;
11050
+ floriday_packing: import("./types").Json;
11051
+ human_reason: string | null;
11052
+ id: string;
11053
+ last_seen_at: string;
11054
+ local_packing: import("./types").Json;
11055
+ needs_human: boolean;
11056
+ order_id: string | null;
11057
+ order_item_id: string | null;
11058
+ order_number: string | null;
11059
+ product_id: string | null;
11060
+ product_name: string | null;
11061
+ resolved_at: string | null;
11062
+ scope: string;
11063
+ trade_item_id: string | null;
11064
+ updated_at: string;
11065
+ };
11066
+ Insert: {
11067
+ auto_fixed_at?: string | null;
11068
+ created_at?: string;
11069
+ dev_key: string;
11070
+ first_seen_at?: string;
11071
+ floriday_packing?: import("./types").Json;
11072
+ human_reason?: string | null;
11073
+ id?: string;
11074
+ last_seen_at?: string;
11075
+ local_packing?: import("./types").Json;
11076
+ needs_human?: boolean;
11077
+ order_id?: string | null;
11078
+ order_item_id?: string | null;
11079
+ order_number?: string | null;
11080
+ product_id?: string | null;
11081
+ product_name?: string | null;
11082
+ resolved_at?: string | null;
11083
+ scope: string;
11084
+ trade_item_id?: string | null;
11085
+ updated_at?: string;
11086
+ };
11087
+ Update: {
11088
+ auto_fixed_at?: string | null;
11089
+ created_at?: string;
11090
+ dev_key?: string;
11091
+ first_seen_at?: string;
11092
+ floriday_packing?: import("./types").Json;
11093
+ human_reason?: string | null;
11094
+ id?: string;
11095
+ last_seen_at?: string;
11096
+ local_packing?: import("./types").Json;
11097
+ needs_human?: boolean;
11098
+ order_id?: string | null;
11099
+ order_item_id?: string | null;
11100
+ order_number?: string | null;
11101
+ product_id?: string | null;
11102
+ product_name?: string | null;
11103
+ resolved_at?: string | null;
11104
+ scope?: string;
11105
+ trade_item_id?: string | null;
11106
+ updated_at?: string;
11107
+ };
11108
+ Relationships: [];
11109
+ };
10705
11110
  logistics_pick_data_requests: {
10706
11111
  Row: {
10707
11112
  actions: import("./types").Json;
@@ -10780,6 +11185,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10780
11185
  };
10781
11186
  Relationships: [];
10782
11187
  };
11188
+ logistics_plan_locks: {
11189
+ Row: {
11190
+ created_at: string;
11191
+ lock_key: string;
11192
+ locked_until: string;
11193
+ owner: string | null;
11194
+ updated_at: string;
11195
+ };
11196
+ Insert: {
11197
+ created_at?: string;
11198
+ lock_key: string;
11199
+ locked_until: string;
11200
+ owner?: string | null;
11201
+ updated_at?: string;
11202
+ };
11203
+ Update: {
11204
+ created_at?: string;
11205
+ lock_key?: string;
11206
+ locked_until?: string;
11207
+ owner?: string | null;
11208
+ updated_at?: string;
11209
+ };
11210
+ Relationships: [];
11211
+ };
10783
11212
  logistics_plan_queue: {
10784
11213
  Row: {
10785
11214
  attempts: number;
@@ -10915,14 +11344,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10915
11344
  };
10916
11345
  Relationships: [];
10917
11346
  };
10918
- logistics_rebuffer_state: {
11347
+ logistics_planner_diff_runs: {
10919
11348
  Row: {
11349
+ after_snapshot: import("./types").Json | null;
11350
+ before_snapshot: import("./types").Json;
11351
+ buffer_id: string | null;
11352
+ carts_after: number | null;
11353
+ carts_before: number | null;
11354
+ compared_at: string | null;
10920
11355
  created_at: string;
10921
- id: boolean;
10922
- last_checked: number;
10923
- last_duration_ms: number;
10924
- last_run_at: string | null;
11356
+ differences: import("./types").Json | null;
11357
+ id: string;
11358
+ identical: boolean | null;
11359
+ mode: string;
11360
+ order_id: string;
11361
+ order_ref: string | null;
11362
+ reason: string | null;
11363
+ status: string;
11364
+ };
11365
+ Insert: {
11366
+ after_snapshot?: import("./types").Json | null;
11367
+ before_snapshot?: import("./types").Json;
11368
+ buffer_id?: string | null;
11369
+ carts_after?: number | null;
11370
+ carts_before?: number | null;
11371
+ compared_at?: string | null;
11372
+ created_at?: string;
11373
+ differences?: import("./types").Json | null;
11374
+ id?: string;
11375
+ identical?: boolean | null;
11376
+ mode: string;
11377
+ order_id: string;
11378
+ order_ref?: string | null;
11379
+ reason?: string | null;
11380
+ status?: string;
11381
+ };
11382
+ Update: {
11383
+ after_snapshot?: import("./types").Json | null;
11384
+ before_snapshot?: import("./types").Json;
11385
+ buffer_id?: string | null;
11386
+ carts_after?: number | null;
11387
+ carts_before?: number | null;
11388
+ compared_at?: string | null;
11389
+ created_at?: string;
11390
+ differences?: import("./types").Json | null;
11391
+ id?: string;
11392
+ identical?: boolean | null;
11393
+ mode?: string;
11394
+ order_id?: string;
11395
+ order_ref?: string | null;
11396
+ reason?: string | null;
11397
+ status?: string;
11398
+ };
11399
+ Relationships: [];
11400
+ };
11401
+ logistics_rebuffer_state: {
11402
+ Row: {
11403
+ created_at: string;
11404
+ id: boolean;
11405
+ last_checked: number;
11406
+ last_duration_ms: number;
11407
+ last_mode: string | null;
11408
+ last_run_at: string | null;
10925
11409
  last_updated: number;
11410
+ last_would_change: number | null;
10926
11411
  pending: boolean;
10927
11412
  requested_at: string | null;
10928
11413
  updated_at: string;
@@ -10932,8 +11417,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10932
11417
  id?: boolean;
10933
11418
  last_checked?: number;
10934
11419
  last_duration_ms?: number;
11420
+ last_mode?: string | null;
10935
11421
  last_run_at?: string | null;
10936
11422
  last_updated?: number;
11423
+ last_would_change?: number | null;
10937
11424
  pending?: boolean;
10938
11425
  requested_at?: string | null;
10939
11426
  updated_at?: string;
@@ -10943,8 +11430,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10943
11430
  id?: boolean;
10944
11431
  last_checked?: number;
10945
11432
  last_duration_ms?: number;
11433
+ last_mode?: string | null;
10946
11434
  last_run_at?: string | null;
10947
11435
  last_updated?: number;
11436
+ last_would_change?: number | null;
10948
11437
  pending?: boolean;
10949
11438
  requested_at?: string | null;
10950
11439
  updated_at?: string;
@@ -11734,6 +12223,129 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11734
12223
  };
11735
12224
  Relationships: [];
11736
12225
  };
12226
+ logistics_trace_events_archive: {
12227
+ Row: {
12228
+ actor: string | null;
12229
+ attempts: number;
12230
+ calc: import("./types").Json | null;
12231
+ cart_ref: string | null;
12232
+ created_at: string;
12233
+ db_action: string | null;
12234
+ db_new: import("./types").Json | null;
12235
+ db_old: import("./types").Json | null;
12236
+ db_record: string | null;
12237
+ db_table: string | null;
12238
+ decision: string | null;
12239
+ duration_ms: number | null;
12240
+ error: string | null;
12241
+ error_class: string | null;
12242
+ external_action: string | null;
12243
+ external_ref: string | null;
12244
+ external_response: import("./types").Json | null;
12245
+ external_status: string | null;
12246
+ external_system: string | null;
12247
+ id: string;
12248
+ input: import("./types").Json | null;
12249
+ next_attempt_at: string | null;
12250
+ next_step: string | null;
12251
+ node_id: string | null;
12252
+ order_ref: string | null;
12253
+ order_source: string | null;
12254
+ output: import("./types").Json | null;
12255
+ phase: string;
12256
+ reads: import("./types").Json | null;
12257
+ reason: string | null;
12258
+ rule: string | null;
12259
+ slip_ref: string | null;
12260
+ status: string;
12261
+ step: string;
12262
+ superseded_at: string;
12263
+ superseded_reason: string | null;
12264
+ trace_id: string;
12265
+ values_used: import("./types").Json | null;
12266
+ };
12267
+ Insert: {
12268
+ actor?: string | null;
12269
+ attempts?: number;
12270
+ calc?: import("./types").Json | null;
12271
+ cart_ref?: string | null;
12272
+ created_at?: string;
12273
+ db_action?: string | null;
12274
+ db_new?: import("./types").Json | null;
12275
+ db_old?: import("./types").Json | null;
12276
+ db_record?: string | null;
12277
+ db_table?: string | null;
12278
+ decision?: string | null;
12279
+ duration_ms?: number | null;
12280
+ error?: string | null;
12281
+ error_class?: string | null;
12282
+ external_action?: string | null;
12283
+ external_ref?: string | null;
12284
+ external_response?: import("./types").Json | null;
12285
+ external_status?: string | null;
12286
+ external_system?: string | null;
12287
+ id?: string;
12288
+ input?: import("./types").Json | null;
12289
+ next_attempt_at?: string | null;
12290
+ next_step?: string | null;
12291
+ node_id?: string | null;
12292
+ order_ref?: string | null;
12293
+ order_source?: string | null;
12294
+ output?: import("./types").Json | null;
12295
+ phase: string;
12296
+ reads?: import("./types").Json | null;
12297
+ reason?: string | null;
12298
+ rule?: string | null;
12299
+ slip_ref?: string | null;
12300
+ status: string;
12301
+ step: string;
12302
+ superseded_at?: string;
12303
+ superseded_reason?: string | null;
12304
+ trace_id?: string;
12305
+ values_used?: import("./types").Json | null;
12306
+ };
12307
+ Update: {
12308
+ actor?: string | null;
12309
+ attempts?: number;
12310
+ calc?: import("./types").Json | null;
12311
+ cart_ref?: string | null;
12312
+ created_at?: string;
12313
+ db_action?: string | null;
12314
+ db_new?: import("./types").Json | null;
12315
+ db_old?: import("./types").Json | null;
12316
+ db_record?: string | null;
12317
+ db_table?: string | null;
12318
+ decision?: string | null;
12319
+ duration_ms?: number | null;
12320
+ error?: string | null;
12321
+ error_class?: string | null;
12322
+ external_action?: string | null;
12323
+ external_ref?: string | null;
12324
+ external_response?: import("./types").Json | null;
12325
+ external_status?: string | null;
12326
+ external_system?: string | null;
12327
+ id?: string;
12328
+ input?: import("./types").Json | null;
12329
+ next_attempt_at?: string | null;
12330
+ next_step?: string | null;
12331
+ node_id?: string | null;
12332
+ order_ref?: string | null;
12333
+ order_source?: string | null;
12334
+ output?: import("./types").Json | null;
12335
+ phase?: string;
12336
+ reads?: import("./types").Json | null;
12337
+ reason?: string | null;
12338
+ rule?: string | null;
12339
+ slip_ref?: string | null;
12340
+ status?: string;
12341
+ step?: string;
12342
+ superseded_at?: string;
12343
+ superseded_reason?: string | null;
12344
+ trace_id?: string;
12345
+ values_used?: import("./types").Json | null;
12346
+ };
12347
+ Relationships: [];
12348
+ };
11737
12349
  logistics_variables: {
11738
12350
  Row: {
11739
12351
  created_at: string;
@@ -11881,6 +12493,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11881
12493
  has_attachments: boolean;
11882
12494
  id: string;
11883
12495
  message_id: string | null;
12496
+ preview: string | null;
11884
12497
  profile_id: string | null;
11885
12498
  raw_size: number | null;
11886
12499
  received_at: string | null;
@@ -11904,6 +12517,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11904
12517
  has_attachments?: boolean;
11905
12518
  id?: string;
11906
12519
  message_id?: string | null;
12520
+ preview?: string | null;
11907
12521
  profile_id?: string | null;
11908
12522
  raw_size?: number | null;
11909
12523
  received_at?: string | null;
@@ -11927,6 +12541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11927
12541
  has_attachments?: boolean;
11928
12542
  id?: string;
11929
12543
  message_id?: string | null;
12544
+ preview?: string | null;
11930
12545
  profile_id?: string | null;
11931
12546
  raw_size?: number | null;
11932
12547
  received_at?: string | null;
@@ -11958,6 +12573,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11958
12573
  };
11959
12574
  mailbox_order_proposals: {
11960
12575
  Row: {
12576
+ ai_ok: boolean | null;
11961
12577
  ai_validation: import("./types").Json | null;
11962
12578
  confidence: number | null;
11963
12579
  created_at: string;
@@ -11975,6 +12591,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11975
12591
  updated_at: string;
11976
12592
  };
11977
12593
  Insert: {
12594
+ ai_ok?: boolean | null;
11978
12595
  ai_validation?: import("./types").Json | null;
11979
12596
  confidence?: number | null;
11980
12597
  created_at?: string;
@@ -11992,6 +12609,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11992
12609
  updated_at?: string;
11993
12610
  };
11994
12611
  Update: {
12612
+ ai_ok?: boolean | null;
11995
12613
  ai_validation?: import("./types").Json | null;
11996
12614
  confidence?: number | null;
11997
12615
  created_at?: string;
@@ -12811,6 +13429,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12811
13429
  };
12812
13430
  Relationships: [];
12813
13431
  };
13432
+ monteur_contracten: {
13433
+ Row: {
13434
+ contract_type: string;
13435
+ created_at: string;
13436
+ days_per_week: number;
13437
+ hours_per_week: number;
13438
+ id: string;
13439
+ updated_at: string;
13440
+ user_id: string;
13441
+ vacation_day_hours: number;
13442
+ vacation_days_per_year: number;
13443
+ };
13444
+ Insert: {
13445
+ contract_type?: string;
13446
+ created_at?: string;
13447
+ days_per_week?: number;
13448
+ hours_per_week?: number;
13449
+ id?: string;
13450
+ updated_at?: string;
13451
+ user_id: string;
13452
+ vacation_day_hours?: number;
13453
+ vacation_days_per_year?: number;
13454
+ };
13455
+ Update: {
13456
+ contract_type?: string;
13457
+ created_at?: string;
13458
+ days_per_week?: number;
13459
+ hours_per_week?: number;
13460
+ id?: string;
13461
+ updated_at?: string;
13462
+ user_id?: string;
13463
+ vacation_day_hours?: number;
13464
+ vacation_days_per_year?: number;
13465
+ };
13466
+ Relationships: [];
13467
+ };
12814
13468
  nmbrs_component_mapping: {
12815
13469
  Row: {
12816
13470
  created_at: string;
@@ -13290,6 +13944,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13290
13944
  id: string;
13291
13945
  items: import("./types").Json;
13292
13946
  notes: string | null;
13947
+ order_creation_error: string | null;
13948
+ order_creation_failed_at: string | null;
13949
+ order_id: string | null;
13293
13950
  order_number: string | null;
13294
13951
  recipient_id: string;
13295
13952
  total_amount: number;
@@ -13304,6 +13961,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13304
13961
  id?: string;
13305
13962
  items?: import("./types").Json;
13306
13963
  notes?: string | null;
13964
+ order_creation_error?: string | null;
13965
+ order_creation_failed_at?: string | null;
13966
+ order_id?: string | null;
13307
13967
  order_number?: string | null;
13308
13968
  recipient_id: string;
13309
13969
  total_amount?: number;
@@ -13318,6 +13978,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13318
13978
  id?: string;
13319
13979
  items?: import("./types").Json;
13320
13980
  notes?: string | null;
13981
+ order_creation_error?: string | null;
13982
+ order_creation_failed_at?: string | null;
13983
+ order_id?: string | null;
13321
13984
  order_number?: string | null;
13322
13985
  recipient_id?: string;
13323
13986
  total_amount?: number;
@@ -13334,6 +13997,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13334
13997
  isOneToOne: false;
13335
13998
  referencedRelation: "customers";
13336
13999
  referencedColumns: ["id"];
14000
+ }, {
14001
+ foreignKeyName: "offer_orders_order_id_fkey";
14002
+ columns: ["order_id"];
14003
+ isOneToOne: false;
14004
+ referencedRelation: "orders";
14005
+ referencedColumns: ["id"];
13337
14006
  }, {
13338
14007
  foreignKeyName: "offer_orders_recipient_id_fkey";
13339
14008
  columns: ["recipient_id"];
@@ -13474,6 +14143,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13474
14143
  };
13475
14144
  Relationships: [];
13476
14145
  };
14146
+ order_block_notifications: {
14147
+ Row: {
14148
+ id: string;
14149
+ notified_at: string;
14150
+ order_id: string;
14151
+ reason: string | null;
14152
+ reason_key: string;
14153
+ };
14154
+ Insert: {
14155
+ id?: string;
14156
+ notified_at?: string;
14157
+ order_id: string;
14158
+ reason?: string | null;
14159
+ reason_key: string;
14160
+ };
14161
+ Update: {
14162
+ id?: string;
14163
+ notified_at?: string;
14164
+ order_id?: string;
14165
+ reason?: string | null;
14166
+ reason_key?: string;
14167
+ };
14168
+ Relationships: [];
14169
+ };
13477
14170
  order_buffers: {
13478
14171
  Row: {
13479
14172
  buffer_key: string;
@@ -13943,10 +14636,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13943
14636
  id: string;
13944
14637
  layers_per_cart: number | null;
13945
14638
  order_id: string;
14639
+ packing_locked_at: string | null;
14640
+ packing_locked_by: string | null;
13946
14641
  plants_per_crate: number | null;
13947
14642
  product_id: string | null;
13948
14643
  product_name: string;
13949
14644
  quantity: number;
14645
+ source_line_key: string | null;
13950
14646
  unit: string;
13951
14647
  unit_price: number | null;
13952
14648
  };
@@ -13956,10 +14652,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13956
14652
  id?: string;
13957
14653
  layers_per_cart?: number | null;
13958
14654
  order_id: string;
14655
+ packing_locked_at?: string | null;
14656
+ packing_locked_by?: string | null;
13959
14657
  plants_per_crate?: number | null;
13960
14658
  product_id?: string | null;
13961
14659
  product_name: string;
13962
14660
  quantity?: number;
14661
+ source_line_key?: string | null;
13963
14662
  unit?: string;
13964
14663
  unit_price?: number | null;
13965
14664
  };
@@ -13969,10 +14668,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13969
14668
  id?: string;
13970
14669
  layers_per_cart?: number | null;
13971
14670
  order_id?: string;
14671
+ packing_locked_at?: string | null;
14672
+ packing_locked_by?: string | null;
13972
14673
  plants_per_crate?: number | null;
13973
14674
  product_id?: string | null;
13974
14675
  product_name?: string;
13975
14676
  quantity?: number;
14677
+ source_line_key?: string | null;
13976
14678
  unit?: string;
13977
14679
  unit_price?: number | null;
13978
14680
  };
@@ -15481,79 +16183,385 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15481
16183
  referencedColumns: ["id"];
15482
16184
  }];
15483
16185
  };
15484
- print_agents: {
16186
+ planning_monteur_day_locations: {
15485
16187
  Row: {
15486
- actief: boolean;
15487
16188
  created_at: string;
15488
- gemelde_printers: import("./types").Json;
16189
+ day: string;
16190
+ end_at: string;
15489
16191
  id: string;
15490
- laatst_gezien: string | null;
15491
- locatie: string;
15492
- naam: string;
15493
- pairing_code_hash: string | null;
15494
- pairing_expires_at: string | null;
15495
- pairing_used_at: string | null;
15496
- token_hash: string;
16192
+ monteur_id: string;
16193
+ start_from: string;
15497
16194
  updated_at: string;
15498
- versie: string;
15499
16195
  };
15500
16196
  Insert: {
15501
- actief?: boolean;
15502
16197
  created_at?: string;
15503
- gemelde_printers?: import("./types").Json;
16198
+ day: string;
16199
+ end_at?: string;
15504
16200
  id?: string;
15505
- laatst_gezien?: string | null;
15506
- locatie?: string;
15507
- naam: string;
15508
- pairing_code_hash?: string | null;
15509
- pairing_expires_at?: string | null;
15510
- pairing_used_at?: string | null;
15511
- token_hash: string;
16201
+ monteur_id: string;
16202
+ start_from?: string;
15512
16203
  updated_at?: string;
15513
- versie?: string;
15514
16204
  };
15515
16205
  Update: {
15516
- actief?: boolean;
15517
16206
  created_at?: string;
15518
- gemelde_printers?: import("./types").Json;
16207
+ day?: string;
16208
+ end_at?: string;
15519
16209
  id?: string;
15520
- laatst_gezien?: string | null;
15521
- locatie?: string;
15522
- naam?: string;
15523
- pairing_code_hash?: string | null;
15524
- pairing_expires_at?: string | null;
15525
- pairing_used_at?: string | null;
15526
- token_hash?: string;
16210
+ monteur_id?: string;
16211
+ start_from?: string;
15527
16212
  updated_at?: string;
15528
- versie?: string;
15529
16213
  };
15530
16214
  Relationships: [];
15531
16215
  };
15532
- print_dedupe_events: {
16216
+ planning_monteur_locations: {
15533
16217
  Row: {
15534
- bestaande_job_id: string | null;
15535
16218
  created_at: string;
15536
- detail: string | null;
15537
- documentnaam: string | null;
15538
- documenttype: string | null;
16219
+ default_end: string;
16220
+ default_start: string;
16221
+ end_address: string | null;
16222
+ home_address: string | null;
15539
16223
  id: string;
15540
- idempotentie_sleutel: string;
15541
- reden: string;
16224
+ monteur_id: string;
16225
+ start_address: string | null;
16226
+ updated_at: string;
15542
16227
  };
15543
16228
  Insert: {
15544
- bestaande_job_id?: string | null;
15545
16229
  created_at?: string;
15546
- detail?: string | null;
15547
- documentnaam?: string | null;
15548
- documenttype?: string | null;
16230
+ default_end?: string;
16231
+ default_start?: string;
16232
+ end_address?: string | null;
16233
+ home_address?: string | null;
15549
16234
  id?: string;
15550
- idempotentie_sleutel: string;
15551
- reden: string;
16235
+ monteur_id: string;
16236
+ start_address?: string | null;
16237
+ updated_at?: string;
15552
16238
  };
15553
16239
  Update: {
15554
- bestaande_job_id?: string | null;
15555
16240
  created_at?: string;
15556
- detail?: string | null;
16241
+ default_end?: string;
16242
+ default_start?: string;
16243
+ end_address?: string | null;
16244
+ home_address?: string | null;
16245
+ id?: string;
16246
+ monteur_id?: string;
16247
+ start_address?: string | null;
16248
+ updated_at?: string;
16249
+ };
16250
+ Relationships: [];
16251
+ };
16252
+ planning_settings: {
16253
+ Row: {
16254
+ company_address: string | null;
16255
+ created_at: string;
16256
+ id: string;
16257
+ singleton: boolean;
16258
+ updated_at: string;
16259
+ };
16260
+ Insert: {
16261
+ company_address?: string | null;
16262
+ created_at?: string;
16263
+ id?: string;
16264
+ singleton?: boolean;
16265
+ updated_at?: string;
16266
+ };
16267
+ Update: {
16268
+ company_address?: string | null;
16269
+ created_at?: string;
16270
+ id?: string;
16271
+ singleton?: boolean;
16272
+ updated_at?: string;
16273
+ };
16274
+ Relationships: [];
16275
+ };
16276
+ planning_travel_legs: {
16277
+ Row: {
16278
+ after_min: number;
16279
+ after_reason: string | null;
16280
+ after_status: string;
16281
+ after_to_address: string | null;
16282
+ before_from_address: string | null;
16283
+ before_min: number;
16284
+ before_reason: string | null;
16285
+ before_status: string;
16286
+ computed_at: string;
16287
+ computed_end_at: string | null;
16288
+ computed_start_at: string | null;
16289
+ created_at: string;
16290
+ id: string;
16291
+ monteur_id: string;
16292
+ planning_item_id: string;
16293
+ shared_after_item_id: string | null;
16294
+ shared_before_item_id: string | null;
16295
+ updated_at: string;
16296
+ };
16297
+ Insert: {
16298
+ after_min?: number;
16299
+ after_reason?: string | null;
16300
+ after_status?: string;
16301
+ after_to_address?: string | null;
16302
+ before_from_address?: string | null;
16303
+ before_min?: number;
16304
+ before_reason?: string | null;
16305
+ before_status?: string;
16306
+ computed_at?: string;
16307
+ computed_end_at?: string | null;
16308
+ computed_start_at?: string | null;
16309
+ created_at?: string;
16310
+ id?: string;
16311
+ monteur_id: string;
16312
+ planning_item_id: string;
16313
+ shared_after_item_id?: string | null;
16314
+ shared_before_item_id?: string | null;
16315
+ updated_at?: string;
16316
+ };
16317
+ Update: {
16318
+ after_min?: number;
16319
+ after_reason?: string | null;
16320
+ after_status?: string;
16321
+ after_to_address?: string | null;
16322
+ before_from_address?: string | null;
16323
+ before_min?: number;
16324
+ before_reason?: string | null;
16325
+ before_status?: string;
16326
+ computed_at?: string;
16327
+ computed_end_at?: string | null;
16328
+ computed_start_at?: string | null;
16329
+ created_at?: string;
16330
+ id?: string;
16331
+ monteur_id?: string;
16332
+ planning_item_id?: string;
16333
+ shared_after_item_id?: string | null;
16334
+ shared_before_item_id?: string | null;
16335
+ updated_at?: string;
16336
+ };
16337
+ Relationships: [{
16338
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16339
+ columns: ["planning_item_id"];
16340
+ isOneToOne: false;
16341
+ referencedRelation: "planning_items";
16342
+ referencedColumns: ["id"];
16343
+ }, {
16344
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16345
+ columns: ["planning_item_id"];
16346
+ isOneToOne: false;
16347
+ referencedRelation: "planning_overview";
16348
+ referencedColumns: ["id"];
16349
+ }, {
16350
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16351
+ columns: ["shared_after_item_id"];
16352
+ isOneToOne: false;
16353
+ referencedRelation: "planning_items";
16354
+ referencedColumns: ["id"];
16355
+ }, {
16356
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16357
+ columns: ["shared_after_item_id"];
16358
+ isOneToOne: false;
16359
+ referencedRelation: "planning_overview";
16360
+ referencedColumns: ["id"];
16361
+ }, {
16362
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16363
+ columns: ["shared_before_item_id"];
16364
+ isOneToOne: false;
16365
+ referencedRelation: "planning_items";
16366
+ referencedColumns: ["id"];
16367
+ }, {
16368
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16369
+ columns: ["shared_before_item_id"];
16370
+ isOneToOne: false;
16371
+ referencedRelation: "planning_overview";
16372
+ referencedColumns: ["id"];
16373
+ }];
16374
+ };
16375
+ price_list_rows: {
16376
+ Row: {
16377
+ action: string;
16378
+ created_at: string;
16379
+ id: string;
16380
+ message: string | null;
16381
+ parsed: import("./types").Json;
16382
+ price_list_id: string;
16383
+ raw: import("./types").Json;
16384
+ row_number: number;
16385
+ supplier_product_id: string | null;
16386
+ };
16387
+ Insert: {
16388
+ action?: string;
16389
+ created_at?: string;
16390
+ id?: string;
16391
+ message?: string | null;
16392
+ parsed?: import("./types").Json;
16393
+ price_list_id: string;
16394
+ raw?: import("./types").Json;
16395
+ row_number: number;
16396
+ supplier_product_id?: string | null;
16397
+ };
16398
+ Update: {
16399
+ action?: string;
16400
+ created_at?: string;
16401
+ id?: string;
16402
+ message?: string | null;
16403
+ parsed?: import("./types").Json;
16404
+ price_list_id?: string;
16405
+ raw?: import("./types").Json;
16406
+ row_number?: number;
16407
+ supplier_product_id?: string | null;
16408
+ };
16409
+ Relationships: [{
16410
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
16411
+ columns: ["price_list_id"];
16412
+ isOneToOne: false;
16413
+ referencedRelation: "price_lists";
16414
+ referencedColumns: ["id"];
16415
+ }, {
16416
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
16417
+ columns: ["supplier_product_id"];
16418
+ isOneToOne: false;
16419
+ referencedRelation: "supplier_products";
16420
+ referencedColumns: ["id"];
16421
+ }];
16422
+ };
16423
+ price_lists: {
16424
+ Row: {
16425
+ created_at: string;
16426
+ created_by: string | null;
16427
+ file_hash: string | null;
16428
+ file_name: string;
16429
+ file_path: string | null;
16430
+ headers: string[];
16431
+ id: string;
16432
+ preview: import("./types").Json;
16433
+ processed_at: string | null;
16434
+ reason: string | null;
16435
+ row_count: number;
16436
+ sheet_name: string | null;
16437
+ source: string;
16438
+ stats: import("./types").Json;
16439
+ status: string;
16440
+ supplier_guess: string | null;
16441
+ supplier_id: string | null;
16442
+ updated_at: string;
16443
+ };
16444
+ Insert: {
16445
+ created_at?: string;
16446
+ created_by?: string | null;
16447
+ file_hash?: string | null;
16448
+ file_name: string;
16449
+ file_path?: string | null;
16450
+ headers?: string[];
16451
+ id?: string;
16452
+ preview?: import("./types").Json;
16453
+ processed_at?: string | null;
16454
+ reason?: string | null;
16455
+ row_count?: number;
16456
+ sheet_name?: string | null;
16457
+ source?: string;
16458
+ stats?: import("./types").Json;
16459
+ status?: string;
16460
+ supplier_guess?: string | null;
16461
+ supplier_id?: string | null;
16462
+ updated_at?: string;
16463
+ };
16464
+ Update: {
16465
+ created_at?: string;
16466
+ created_by?: string | null;
16467
+ file_hash?: string | null;
16468
+ file_name?: string;
16469
+ file_path?: string | null;
16470
+ headers?: string[];
16471
+ id?: string;
16472
+ preview?: import("./types").Json;
16473
+ processed_at?: string | null;
16474
+ reason?: string | null;
16475
+ row_count?: number;
16476
+ sheet_name?: string | null;
16477
+ source?: string;
16478
+ stats?: import("./types").Json;
16479
+ status?: string;
16480
+ supplier_guess?: string | null;
16481
+ supplier_id?: string | null;
16482
+ updated_at?: string;
16483
+ };
16484
+ Relationships: [{
16485
+ foreignKeyName: "price_lists_supplier_id_fkey";
16486
+ columns: ["supplier_id"];
16487
+ isOneToOne: false;
16488
+ referencedRelation: "suppliers";
16489
+ referencedColumns: ["id"];
16490
+ }];
16491
+ };
16492
+ print_agents: {
16493
+ Row: {
16494
+ actief: boolean;
16495
+ created_at: string;
16496
+ gemelde_printers: import("./types").Json;
16497
+ id: string;
16498
+ laatst_gezien: string | null;
16499
+ locatie: string;
16500
+ naam: string;
16501
+ pairing_code_hash: string | null;
16502
+ pairing_expires_at: string | null;
16503
+ pairing_used_at: string | null;
16504
+ token_hash: string;
16505
+ updated_at: string;
16506
+ versie: string;
16507
+ };
16508
+ Insert: {
16509
+ actief?: boolean;
16510
+ created_at?: string;
16511
+ gemelde_printers?: import("./types").Json;
16512
+ id?: string;
16513
+ laatst_gezien?: string | null;
16514
+ locatie?: string;
16515
+ naam: string;
16516
+ pairing_code_hash?: string | null;
16517
+ pairing_expires_at?: string | null;
16518
+ pairing_used_at?: string | null;
16519
+ token_hash: string;
16520
+ updated_at?: string;
16521
+ versie?: string;
16522
+ };
16523
+ Update: {
16524
+ actief?: boolean;
16525
+ created_at?: string;
16526
+ gemelde_printers?: import("./types").Json;
16527
+ id?: string;
16528
+ laatst_gezien?: string | null;
16529
+ locatie?: string;
16530
+ naam?: string;
16531
+ pairing_code_hash?: string | null;
16532
+ pairing_expires_at?: string | null;
16533
+ pairing_used_at?: string | null;
16534
+ token_hash?: string;
16535
+ updated_at?: string;
16536
+ versie?: string;
16537
+ };
16538
+ Relationships: [];
16539
+ };
16540
+ print_dedupe_events: {
16541
+ Row: {
16542
+ bestaande_job_id: string | null;
16543
+ created_at: string;
16544
+ detail: string | null;
16545
+ documentnaam: string | null;
16546
+ documenttype: string | null;
16547
+ id: string;
16548
+ idempotentie_sleutel: string;
16549
+ reden: string;
16550
+ };
16551
+ Insert: {
16552
+ bestaande_job_id?: string | null;
16553
+ created_at?: string;
16554
+ detail?: string | null;
16555
+ documentnaam?: string | null;
16556
+ documenttype?: string | null;
16557
+ id?: string;
16558
+ idempotentie_sleutel: string;
16559
+ reden: string;
16560
+ };
16561
+ Update: {
16562
+ bestaande_job_id?: string | null;
16563
+ created_at?: string;
16564
+ detail?: string | null;
15557
16565
  documentnaam?: string | null;
15558
16566
  documenttype?: string | null;
15559
16567
  id?: string;
@@ -16536,6 +17544,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16536
17544
  };
16537
17545
  product_load_settings: {
16538
17546
  Row: {
17547
+ build: import("./types").Json | null;
17548
+ build_status: string;
16539
17549
  created_at: string;
16540
17550
  id: string;
16541
17551
  is_package: boolean;
@@ -16553,6 +17563,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16553
17563
  updated_at: string;
16554
17564
  };
16555
17565
  Insert: {
17566
+ build?: import("./types").Json | null;
17567
+ build_status?: string;
16556
17568
  created_at?: string;
16557
17569
  id?: string;
16558
17570
  is_package?: boolean;
@@ -16570,6 +17582,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16570
17582
  updated_at?: string;
16571
17583
  };
16572
17584
  Update: {
17585
+ build?: import("./types").Json | null;
17586
+ build_status?: string;
16573
17587
  created_at?: string;
16574
17588
  id?: string;
16575
17589
  is_package?: boolean;
@@ -16639,42 +17653,88 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16639
17653
  };
16640
17654
  Relationships: [];
16641
17655
  };
16642
- products: {
17656
+ product_tray_stickers: {
16643
17657
  Row: {
16644
- article_number: string | null;
16645
- barcode: string | null;
16646
- batch: string;
16647
- crates_per_layer: number;
17658
+ bestand_url: string;
17659
+ bestandsgrootte: number | null;
17660
+ bestandsnaam: string | null;
17661
+ bestandspad: string | null;
16648
17662
  created_at: string;
16649
- custom_fields: import("./types").Json;
16650
- floriday_trade_item_id: string | null;
16651
- fust_type_id: string | null;
16652
- id: string;
16653
- image_url: string | null;
16654
- incoming_quantity: number;
16655
- is_layer: boolean;
16656
- layers_per_cart: number;
16657
- location: string;
16658
- min_quantity: number;
16659
- plant_height_cm: number | null;
16660
- plants_per_crate: number;
16661
- product: string;
16662
- product_type: string;
16663
- purchase_price: number | null;
16664
- quantity: number;
16665
- sale_price: number | null;
16666
- trade_item_key: string | null;
16667
- unit: string;
17663
+ product_id: string;
16668
17664
  updated_at: string;
16669
- weight: string | null;
16670
17665
  };
16671
17666
  Insert: {
16672
- article_number?: string | null;
16673
- barcode?: string | null;
17667
+ bestand_url: string;
17668
+ bestandsgrootte?: number | null;
17669
+ bestandsnaam?: string | null;
17670
+ bestandspad?: string | null;
17671
+ created_at?: string;
17672
+ product_id: string;
17673
+ updated_at?: string;
17674
+ };
17675
+ Update: {
17676
+ bestand_url?: string;
17677
+ bestandsgrootte?: number | null;
17678
+ bestandsnaam?: string | null;
17679
+ bestandspad?: string | null;
17680
+ created_at?: string;
17681
+ product_id?: string;
17682
+ updated_at?: string;
17683
+ };
17684
+ Relationships: [{
17685
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17686
+ columns: ["product_id"];
17687
+ isOneToOne: true;
17688
+ referencedRelation: "logistics_product_dimensions";
17689
+ referencedColumns: ["product_id"];
17690
+ }, {
17691
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17692
+ columns: ["product_id"];
17693
+ isOneToOne: true;
17694
+ referencedRelation: "products";
17695
+ referencedColumns: ["id"];
17696
+ }];
17697
+ };
17698
+ products: {
17699
+ Row: {
17700
+ article_number: string | null;
17701
+ barcode: string | null;
17702
+ batch: string;
17703
+ crates_per_layer: number;
17704
+ created_at: string;
17705
+ custom_fields: import("./types").Json;
17706
+ floriday_packing_confirmed_at: string | null;
17707
+ floriday_packing_source: string | null;
17708
+ floriday_trade_item_id: string | null;
17709
+ fust_type_id: string | null;
17710
+ id: string;
17711
+ image_url: string | null;
17712
+ incoming_quantity: number;
17713
+ is_layer: boolean;
17714
+ layers_per_cart: number;
17715
+ location: string;
17716
+ min_quantity: number;
17717
+ plant_height_cm: number | null;
17718
+ plants_per_crate: number;
17719
+ product: string;
17720
+ product_type: string;
17721
+ purchase_price: number | null;
17722
+ quantity: number;
17723
+ sale_price: number | null;
17724
+ trade_item_key: string | null;
17725
+ unit: string;
17726
+ updated_at: string;
17727
+ weight: string | null;
17728
+ };
17729
+ Insert: {
17730
+ article_number?: string | null;
17731
+ barcode?: string | null;
16674
17732
  batch: string;
16675
17733
  crates_per_layer?: number;
16676
17734
  created_at?: string;
16677
17735
  custom_fields?: import("./types").Json;
17736
+ floriday_packing_confirmed_at?: string | null;
17737
+ floriday_packing_source?: string | null;
16678
17738
  floriday_trade_item_id?: string | null;
16679
17739
  fust_type_id?: string | null;
16680
17740
  id?: string;
@@ -16703,6 +17763,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16703
17763
  crates_per_layer?: number;
16704
17764
  created_at?: string;
16705
17765
  custom_fields?: import("./types").Json;
17766
+ floriday_packing_confirmed_at?: string | null;
17767
+ floriday_packing_source?: string | null;
16706
17768
  floriday_trade_item_id?: string | null;
16707
17769
  fust_type_id?: string | null;
16708
17770
  id?: string;
@@ -16802,6 +17864,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16802
17864
  id: string;
16803
17865
  is_superadmin: boolean;
16804
17866
  notification_preferences: import("./types").Json;
17867
+ phone: string | null;
16805
17868
  tenant_id: string | null;
16806
17869
  updated_at: string;
16807
17870
  };
@@ -16814,6 +17877,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16814
17877
  id: string;
16815
17878
  is_superadmin?: boolean;
16816
17879
  notification_preferences?: import("./types").Json;
17880
+ phone?: string | null;
16817
17881
  tenant_id?: string | null;
16818
17882
  updated_at?: string;
16819
17883
  };
@@ -16826,6 +17890,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16826
17890
  id?: string;
16827
17891
  is_superadmin?: boolean;
16828
17892
  notification_preferences?: import("./types").Json;
17893
+ phone?: string | null;
16829
17894
  tenant_id?: string | null;
16830
17895
  updated_at?: string;
16831
17896
  };
@@ -17038,30 +18103,108 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17038
18103
  referencedColumns: ["id"];
17039
18104
  }];
17040
18105
  };
18106
+ purchase_order_dispatches: {
18107
+ Row: {
18108
+ created_at: string;
18109
+ id: string;
18110
+ last_error: string | null;
18111
+ outbox_id: string | null;
18112
+ purchase_order_id: string;
18113
+ status: string;
18114
+ supplier_id: string | null;
18115
+ supplier_name: string;
18116
+ to_address: string;
18117
+ updated_at: string;
18118
+ };
18119
+ Insert: {
18120
+ created_at?: string;
18121
+ id?: string;
18122
+ last_error?: string | null;
18123
+ outbox_id?: string | null;
18124
+ purchase_order_id: string;
18125
+ status?: string;
18126
+ supplier_id?: string | null;
18127
+ supplier_name?: string;
18128
+ to_address: string;
18129
+ updated_at?: string;
18130
+ };
18131
+ Update: {
18132
+ created_at?: string;
18133
+ id?: string;
18134
+ last_error?: string | null;
18135
+ outbox_id?: string | null;
18136
+ purchase_order_id?: string;
18137
+ status?: string;
18138
+ supplier_id?: string | null;
18139
+ supplier_name?: string;
18140
+ to_address?: string;
18141
+ updated_at?: string;
18142
+ };
18143
+ Relationships: [{
18144
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
18145
+ columns: ["purchase_order_id"];
18146
+ isOneToOne: false;
18147
+ referencedRelation: "purchase_orders";
18148
+ referencedColumns: ["id"];
18149
+ }, {
18150
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
18151
+ columns: ["supplier_id"];
18152
+ isOneToOne: false;
18153
+ referencedRelation: "suppliers";
18154
+ referencedColumns: ["id"];
18155
+ }];
18156
+ };
17041
18157
  purchase_order_items: {
17042
18158
  Row: {
18159
+ article_number: string | null;
17043
18160
  created_at: string;
18161
+ delivery_date: string | null;
17044
18162
  id: string;
18163
+ name: string;
18164
+ note: string | null;
18165
+ pot_size: string | null;
17045
18166
  product_id: string | null;
17046
18167
  product_type: string;
17047
18168
  purchase_order_id: string;
17048
18169
  quantity: number;
18170
+ supplier_id: string | null;
18171
+ supplier_product_id: string | null;
18172
+ unit_price_cents: number;
18173
+ updated_at: string;
17049
18174
  };
17050
18175
  Insert: {
18176
+ article_number?: string | null;
17051
18177
  created_at?: string;
18178
+ delivery_date?: string | null;
17052
18179
  id?: string;
18180
+ name?: string;
18181
+ note?: string | null;
18182
+ pot_size?: string | null;
17053
18183
  product_id?: string | null;
17054
18184
  product_type?: string;
17055
18185
  purchase_order_id: string;
17056
18186
  quantity?: number;
18187
+ supplier_id?: string | null;
18188
+ supplier_product_id?: string | null;
18189
+ unit_price_cents?: number;
18190
+ updated_at?: string;
17057
18191
  };
17058
18192
  Update: {
18193
+ article_number?: string | null;
17059
18194
  created_at?: string;
18195
+ delivery_date?: string | null;
17060
18196
  id?: string;
18197
+ name?: string;
18198
+ note?: string | null;
18199
+ pot_size?: string | null;
17061
18200
  product_id?: string | null;
17062
18201
  product_type?: string;
17063
18202
  purchase_order_id?: string;
17064
18203
  quantity?: number;
18204
+ supplier_id?: string | null;
18205
+ supplier_product_id?: string | null;
18206
+ unit_price_cents?: number;
18207
+ updated_at?: string;
17065
18208
  };
17066
18209
  Relationships: [{
17067
18210
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -17081,43 +18224,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17081
18224
  isOneToOne: false;
17082
18225
  referencedRelation: "purchase_orders";
17083
18226
  referencedColumns: ["id"];
18227
+ }, {
18228
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
18229
+ columns: ["supplier_id"];
18230
+ isOneToOne: false;
18231
+ referencedRelation: "suppliers";
18232
+ referencedColumns: ["id"];
18233
+ }, {
18234
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
18235
+ columns: ["supplier_product_id"];
18236
+ isOneToOne: false;
18237
+ referencedRelation: "supplier_products";
18238
+ referencedColumns: ["id"];
17084
18239
  }];
17085
18240
  };
17086
18241
  purchase_orders: {
17087
18242
  Row: {
18243
+ contact_person: string | null;
17088
18244
  created_at: string;
18245
+ created_by: string | null;
17089
18246
  expected_delivery_date: string;
17090
18247
  id: string;
17091
18248
  location_id: string | null;
17092
18249
  notes: string | null;
17093
18250
  order_number: string;
18251
+ reference: string | null;
18252
+ sent_at: string | null;
17094
18253
  status: string;
17095
18254
  supplier_id: string | null;
17096
18255
  supplier_name: string;
18256
+ total_cents: number;
17097
18257
  updated_at: string;
17098
18258
  };
17099
18259
  Insert: {
18260
+ contact_person?: string | null;
17100
18261
  created_at?: string;
17101
- expected_delivery_date: string;
18262
+ created_by?: string | null;
18263
+ expected_delivery_date?: string;
17102
18264
  id?: string;
17103
18265
  location_id?: string | null;
17104
18266
  notes?: string | null;
17105
- order_number: string;
18267
+ order_number?: string;
18268
+ reference?: string | null;
18269
+ sent_at?: string | null;
17106
18270
  status?: string;
17107
18271
  supplier_id?: string | null;
17108
18272
  supplier_name?: string;
18273
+ total_cents?: number;
17109
18274
  updated_at?: string;
17110
18275
  };
17111
18276
  Update: {
18277
+ contact_person?: string | null;
17112
18278
  created_at?: string;
18279
+ created_by?: string | null;
17113
18280
  expected_delivery_date?: string;
17114
18281
  id?: string;
17115
18282
  location_id?: string | null;
17116
18283
  notes?: string | null;
17117
18284
  order_number?: string;
18285
+ reference?: string | null;
18286
+ sent_at?: string | null;
17118
18287
  status?: string;
17119
18288
  supplier_id?: string | null;
17120
18289
  supplier_name?: string;
18290
+ total_cents?: number;
17121
18291
  updated_at?: string;
17122
18292
  };
17123
18293
  Relationships: [{
@@ -18004,15 +19174,160 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18004
19174
  };
18005
19175
  Relationships: [];
18006
19176
  };
19177
+ supplier_contacts: {
19178
+ Row: {
19179
+ created_at: string;
19180
+ email: string | null;
19181
+ id: string;
19182
+ is_primary: boolean;
19183
+ name: string;
19184
+ phone: string | null;
19185
+ role: string | null;
19186
+ supplier_id: string;
19187
+ updated_at: string;
19188
+ };
19189
+ Insert: {
19190
+ created_at?: string;
19191
+ email?: string | null;
19192
+ id?: string;
19193
+ is_primary?: boolean;
19194
+ name: string;
19195
+ phone?: string | null;
19196
+ role?: string | null;
19197
+ supplier_id: string;
19198
+ updated_at?: string;
19199
+ };
19200
+ Update: {
19201
+ created_at?: string;
19202
+ email?: string | null;
19203
+ id?: string;
19204
+ is_primary?: boolean;
19205
+ name?: string;
19206
+ phone?: string | null;
19207
+ role?: string | null;
19208
+ supplier_id?: string;
19209
+ updated_at?: string;
19210
+ };
19211
+ Relationships: [{
19212
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
19213
+ columns: ["supplier_id"];
19214
+ isOneToOne: false;
19215
+ referencedRelation: "suppliers";
19216
+ referencedColumns: ["id"];
19217
+ }];
19218
+ };
19219
+ supplier_price_history: {
19220
+ Row: {
19221
+ created_at: string;
19222
+ id: string;
19223
+ new_price_cents: number;
19224
+ old_price_cents: number | null;
19225
+ price_list_id: string | null;
19226
+ supplier_id: string | null;
19227
+ supplier_product_id: string;
19228
+ };
19229
+ Insert: {
19230
+ created_at?: string;
19231
+ id?: string;
19232
+ new_price_cents: number;
19233
+ old_price_cents?: number | null;
19234
+ price_list_id?: string | null;
19235
+ supplier_id?: string | null;
19236
+ supplier_product_id: string;
19237
+ };
19238
+ Update: {
19239
+ created_at?: string;
19240
+ id?: string;
19241
+ new_price_cents?: number;
19242
+ old_price_cents?: number | null;
19243
+ price_list_id?: string | null;
19244
+ supplier_id?: string | null;
19245
+ supplier_product_id?: string;
19246
+ };
19247
+ Relationships: [{
19248
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
19249
+ columns: ["price_list_id"];
19250
+ isOneToOne: false;
19251
+ referencedRelation: "price_lists";
19252
+ referencedColumns: ["id"];
19253
+ }, {
19254
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
19255
+ columns: ["supplier_product_id"];
19256
+ isOneToOne: false;
19257
+ referencedRelation: "supplier_products";
19258
+ referencedColumns: ["id"];
19259
+ }];
19260
+ };
19261
+ supplier_price_list_mappings: {
19262
+ Row: {
19263
+ column_map: import("./types").Json;
19264
+ created_at: string;
19265
+ deactivate_missing: boolean;
19266
+ decimal_separator: string;
19267
+ expected_headers: string[];
19268
+ extract_pot_from_name: boolean;
19269
+ header_row: number;
19270
+ id: string;
19271
+ max_error_ratio: number;
19272
+ price_is_cents: boolean;
19273
+ sheet_name: string | null;
19274
+ supplier_id: string;
19275
+ updated_at: string;
19276
+ };
19277
+ Insert: {
19278
+ column_map?: import("./types").Json;
19279
+ created_at?: string;
19280
+ deactivate_missing?: boolean;
19281
+ decimal_separator?: string;
19282
+ expected_headers?: string[];
19283
+ extract_pot_from_name?: boolean;
19284
+ header_row?: number;
19285
+ id?: string;
19286
+ max_error_ratio?: number;
19287
+ price_is_cents?: boolean;
19288
+ sheet_name?: string | null;
19289
+ supplier_id: string;
19290
+ updated_at?: string;
19291
+ };
19292
+ Update: {
19293
+ column_map?: import("./types").Json;
19294
+ created_at?: string;
19295
+ deactivate_missing?: boolean;
19296
+ decimal_separator?: string;
19297
+ expected_headers?: string[];
19298
+ extract_pot_from_name?: boolean;
19299
+ header_row?: number;
19300
+ id?: string;
19301
+ max_error_ratio?: number;
19302
+ price_is_cents?: boolean;
19303
+ sheet_name?: string | null;
19304
+ supplier_id?: string;
19305
+ updated_at?: string;
19306
+ };
19307
+ Relationships: [{
19308
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
19309
+ columns: ["supplier_id"];
19310
+ isOneToOne: true;
19311
+ referencedRelation: "suppliers";
19312
+ referencedColumns: ["id"];
19313
+ }];
19314
+ };
18007
19315
  supplier_products: {
18008
19316
  Row: {
18009
19317
  article_number: string | null;
19318
+ available_quantity: number;
18010
19319
  created_at: string;
19320
+ height: string | null;
18011
19321
  id: string;
19322
+ is_active: boolean;
19323
+ min_order: number;
18012
19324
  name: string;
18013
19325
  notes: string | null;
19326
+ order_unit: number;
18014
19327
  pot_size: string | null;
18015
19328
  price: number | null;
19329
+ price_cents: number;
19330
+ quality: string | null;
18016
19331
  quantity: number | null;
18017
19332
  supplier_id: string;
18018
19333
  unit: string;
@@ -18020,12 +19335,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18020
19335
  };
18021
19336
  Insert: {
18022
19337
  article_number?: string | null;
19338
+ available_quantity?: number;
18023
19339
  created_at?: string;
19340
+ height?: string | null;
18024
19341
  id?: string;
19342
+ is_active?: boolean;
19343
+ min_order?: number;
18025
19344
  name: string;
18026
19345
  notes?: string | null;
19346
+ order_unit?: number;
18027
19347
  pot_size?: string | null;
18028
19348
  price?: number | null;
19349
+ price_cents?: number;
19350
+ quality?: string | null;
18029
19351
  quantity?: number | null;
18030
19352
  supplier_id: string;
18031
19353
  unit?: string;
@@ -18033,12 +19355,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18033
19355
  };
18034
19356
  Update: {
18035
19357
  article_number?: string | null;
19358
+ available_quantity?: number;
18036
19359
  created_at?: string;
19360
+ height?: string | null;
18037
19361
  id?: string;
19362
+ is_active?: boolean;
19363
+ min_order?: number;
18038
19364
  name?: string;
18039
19365
  notes?: string | null;
19366
+ order_unit?: number;
18040
19367
  pot_size?: string | null;
18041
19368
  price?: number | null;
19369
+ price_cents?: number;
19370
+ quality?: string | null;
18042
19371
  quantity?: number | null;
18043
19372
  supplier_id?: string;
18044
19373
  unit?: string;
@@ -18055,6 +19384,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18055
19384
  suppliers: {
18056
19385
  Row: {
18057
19386
  address: string | null;
19387
+ category: string | null;
18058
19388
  column_mappings: import("./types").Json | null;
18059
19389
  contact_person: string | null;
18060
19390
  created_at: string;
@@ -18062,13 +19392,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18062
19392
  email: string | null;
18063
19393
  id: string;
18064
19394
  imported_file_name: string | null;
19395
+ is_preferred: boolean;
19396
+ kvk_number: string | null;
19397
+ lead_time_days: number | null;
19398
+ min_order_amount_cents: number;
18065
19399
  name: string;
18066
19400
  notes: string | null;
19401
+ order_days: string[];
19402
+ order_email: string | null;
19403
+ payment_terms_days: number | null;
18067
19404
  phone: string | null;
19405
+ status: string;
18068
19406
  updated_at: string;
19407
+ vat_number: string | null;
19408
+ website: string | null;
18069
19409
  };
18070
19410
  Insert: {
18071
19411
  address?: string | null;
19412
+ category?: string | null;
18072
19413
  column_mappings?: import("./types").Json | null;
18073
19414
  contact_person?: string | null;
18074
19415
  created_at?: string;
@@ -18076,13 +19417,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18076
19417
  email?: string | null;
18077
19418
  id?: string;
18078
19419
  imported_file_name?: string | null;
19420
+ is_preferred?: boolean;
19421
+ kvk_number?: string | null;
19422
+ lead_time_days?: number | null;
19423
+ min_order_amount_cents?: number;
18079
19424
  name: string;
18080
19425
  notes?: string | null;
19426
+ order_days?: string[];
19427
+ order_email?: string | null;
19428
+ payment_terms_days?: number | null;
18081
19429
  phone?: string | null;
19430
+ status?: string;
18082
19431
  updated_at?: string;
19432
+ vat_number?: string | null;
19433
+ website?: string | null;
18083
19434
  };
18084
19435
  Update: {
18085
19436
  address?: string | null;
19437
+ category?: string | null;
18086
19438
  column_mappings?: import("./types").Json | null;
18087
19439
  contact_person?: string | null;
18088
19440
  created_at?: string;
@@ -18090,10 +19442,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18090
19442
  email?: string | null;
18091
19443
  id?: string;
18092
19444
  imported_file_name?: string | null;
19445
+ is_preferred?: boolean;
19446
+ kvk_number?: string | null;
19447
+ lead_time_days?: number | null;
19448
+ min_order_amount_cents?: number;
18093
19449
  name?: string;
18094
19450
  notes?: string | null;
19451
+ order_days?: string[];
19452
+ order_email?: string | null;
19453
+ payment_terms_days?: number | null;
18095
19454
  phone?: string | null;
19455
+ status?: string;
18096
19456
  updated_at?: string;
19457
+ vat_number?: string | null;
19458
+ website?: string | null;
18097
19459
  };
18098
19460
  Relationships: [];
18099
19461
  };
@@ -18272,40 +19634,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18272
19634
  Row: {
18273
19635
  approved_at: string | null;
18274
19636
  approved_by: string | null;
19637
+ contract_hours: number;
18275
19638
  created_at: string;
18276
19639
  employee_id: string;
18277
19640
  id: string;
18278
19641
  locked: boolean;
19642
+ monteur_toelichting: string | null;
18279
19643
  notes: string | null;
19644
+ planned_hours: number;
18280
19645
  status: string;
18281
19646
  submitted_at: string | null;
18282
19647
  updated_at: string;
19648
+ variance_hours: number;
18283
19649
  week_start: string;
18284
19650
  };
18285
19651
  Insert: {
18286
19652
  approved_at?: string | null;
18287
19653
  approved_by?: string | null;
19654
+ contract_hours?: number;
18288
19655
  created_at?: string;
18289
19656
  employee_id: string;
18290
19657
  id?: string;
18291
19658
  locked?: boolean;
19659
+ monteur_toelichting?: string | null;
18292
19660
  notes?: string | null;
19661
+ planned_hours?: number;
18293
19662
  status?: string;
18294
19663
  submitted_at?: string | null;
18295
19664
  updated_at?: string;
19665
+ variance_hours?: number;
18296
19666
  week_start: string;
18297
19667
  };
18298
19668
  Update: {
18299
19669
  approved_at?: string | null;
18300
19670
  approved_by?: string | null;
19671
+ contract_hours?: number;
18301
19672
  created_at?: string;
18302
19673
  employee_id?: string;
18303
19674
  id?: string;
18304
19675
  locked?: boolean;
19676
+ monteur_toelichting?: string | null;
18305
19677
  notes?: string | null;
19678
+ planned_hours?: number;
18306
19679
  status?: string;
18307
19680
  submitted_at?: string | null;
18308
19681
  updated_at?: string;
19682
+ variance_hours?: number;
18309
19683
  week_start?: string;
18310
19684
  };
18311
19685
  Relationships: [{
@@ -19095,11 +20469,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19095
20469
  auto_invoice_trigger_statuses: string[];
19096
20470
  created_at: string;
19097
20471
  debtor_gl_account: string;
20472
+ default_article_code: string | null;
19098
20473
  default_credit_invoice_type: string | null;
19099
20474
  default_gl_account: string;
19100
20475
  default_invoice_type: string;
19101
20476
  default_payment_term_days: number;
19102
20477
  default_vat_code: string;
20478
+ email_purpose: string | null;
19103
20479
  home_country_code: string;
19104
20480
  invoice_enabled_ao: boolean;
19105
20481
  invoice_enabled_fo: boolean;
@@ -19121,11 +20497,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19121
20497
  auto_invoice_trigger_statuses?: string[];
19122
20498
  created_at?: string;
19123
20499
  debtor_gl_account?: string;
20500
+ default_article_code?: string | null;
19124
20501
  default_credit_invoice_type?: string | null;
19125
20502
  default_gl_account?: string;
19126
20503
  default_invoice_type?: string;
19127
20504
  default_payment_term_days?: number;
19128
20505
  default_vat_code?: string;
20506
+ email_purpose?: string | null;
19129
20507
  home_country_code?: string;
19130
20508
  invoice_enabled_ao?: boolean;
19131
20509
  invoice_enabled_fo?: boolean;
@@ -19147,11 +20525,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19147
20525
  auto_invoice_trigger_statuses?: string[];
19148
20526
  created_at?: string;
19149
20527
  debtor_gl_account?: string;
20528
+ default_article_code?: string | null;
19150
20529
  default_credit_invoice_type?: string | null;
19151
20530
  default_gl_account?: string;
19152
20531
  default_invoice_type?: string;
19153
20532
  default_payment_term_days?: number;
19154
20533
  default_vat_code?: string;
20534
+ email_purpose?: string | null;
19155
20535
  home_country_code?: string;
19156
20536
  invoice_enabled_ao?: boolean;
19157
20537
  invoice_enabled_fo?: boolean;
@@ -19633,6 +21013,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19633
21013
  referencedColumns: ["id"];
19634
21014
  }];
19635
21015
  };
21016
+ uren_beschikbare_dagen: {
21017
+ Row: {
21018
+ bron: string;
21019
+ created_at: string;
21020
+ datum: string;
21021
+ eind_tijd: string | null;
21022
+ half_hour_slots: number[];
21023
+ id: string;
21024
+ monteur_id: string;
21025
+ start_tijd: string | null;
21026
+ updated_at: string;
21027
+ uren: number;
21028
+ };
21029
+ Insert: {
21030
+ bron?: string;
21031
+ created_at?: string;
21032
+ datum: string;
21033
+ eind_tijd?: string | null;
21034
+ half_hour_slots?: number[];
21035
+ id?: string;
21036
+ monteur_id: string;
21037
+ start_tijd?: string | null;
21038
+ updated_at?: string;
21039
+ uren?: number;
21040
+ };
21041
+ Update: {
21042
+ bron?: string;
21043
+ created_at?: string;
21044
+ datum?: string;
21045
+ eind_tijd?: string | null;
21046
+ half_hour_slots?: number[];
21047
+ id?: string;
21048
+ monteur_id?: string;
21049
+ start_tijd?: string | null;
21050
+ updated_at?: string;
21051
+ uren?: number;
21052
+ };
21053
+ Relationships: [];
21054
+ };
19636
21055
  uren_cao_profiles: {
19637
21056
  Row: {
19638
21057
  break_minutes: number | null;
@@ -19771,6 +21190,123 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19771
21190
  };
19772
21191
  Relationships: [];
19773
21192
  };
21193
+ uren_maandafsluitingen: {
21194
+ Row: {
21195
+ afgesloten_at: string | null;
21196
+ afgesloten_door: string | null;
21197
+ contract_minuten: number;
21198
+ correctie_reden: string | null;
21199
+ created_at: string;
21200
+ gecorrigeerd_at: string | null;
21201
+ gecorrigeerd_door: string | null;
21202
+ gewerkte_minuten: number;
21203
+ id: string;
21204
+ maand: string;
21205
+ min_minuten: number;
21206
+ monteur_id: string;
21207
+ netto_verschil_minuten: number;
21208
+ normaal_uitbetaald_minuten: number;
21209
+ overuren_minuten: number;
21210
+ plus_minuten: number;
21211
+ status: string;
21212
+ totaal_uitbetaald_minuten: number;
21213
+ updated_at: string;
21214
+ };
21215
+ Insert: {
21216
+ afgesloten_at?: string | null;
21217
+ afgesloten_door?: string | null;
21218
+ contract_minuten?: number;
21219
+ correctie_reden?: string | null;
21220
+ created_at?: string;
21221
+ gecorrigeerd_at?: string | null;
21222
+ gecorrigeerd_door?: string | null;
21223
+ gewerkte_minuten?: number;
21224
+ id?: string;
21225
+ maand: string;
21226
+ min_minuten?: number;
21227
+ monteur_id: string;
21228
+ netto_verschil_minuten?: number;
21229
+ normaal_uitbetaald_minuten?: number;
21230
+ overuren_minuten?: number;
21231
+ plus_minuten?: number;
21232
+ status?: string;
21233
+ totaal_uitbetaald_minuten?: number;
21234
+ updated_at?: string;
21235
+ };
21236
+ Update: {
21237
+ afgesloten_at?: string | null;
21238
+ afgesloten_door?: string | null;
21239
+ contract_minuten?: number;
21240
+ correctie_reden?: string | null;
21241
+ created_at?: string;
21242
+ gecorrigeerd_at?: string | null;
21243
+ gecorrigeerd_door?: string | null;
21244
+ gewerkte_minuten?: number;
21245
+ id?: string;
21246
+ maand?: string;
21247
+ min_minuten?: number;
21248
+ monteur_id?: string;
21249
+ netto_verschil_minuten?: number;
21250
+ normaal_uitbetaald_minuten?: number;
21251
+ overuren_minuten?: number;
21252
+ plus_minuten?: number;
21253
+ status?: string;
21254
+ totaal_uitbetaald_minuten?: number;
21255
+ updated_at?: string;
21256
+ };
21257
+ Relationships: [];
21258
+ };
21259
+ uren_overuren_verklaringen: {
21260
+ Row: {
21261
+ beoordeeld_door: string | null;
21262
+ beoordeeld_op: string | null;
21263
+ created_at: string;
21264
+ datum: string;
21265
+ eind_tijd: string | null;
21266
+ id: string;
21267
+ ingediend_at: string;
21268
+ monteur_id: string;
21269
+ overuren: number;
21270
+ reden_afkeur: string | null;
21271
+ start_tijd: string | null;
21272
+ status: string;
21273
+ toelichting: string;
21274
+ updated_at: string;
21275
+ };
21276
+ Insert: {
21277
+ beoordeeld_door?: string | null;
21278
+ beoordeeld_op?: string | null;
21279
+ created_at?: string;
21280
+ datum: string;
21281
+ eind_tijd?: string | null;
21282
+ id?: string;
21283
+ ingediend_at?: string;
21284
+ monteur_id: string;
21285
+ overuren: number;
21286
+ reden_afkeur?: string | null;
21287
+ start_tijd?: string | null;
21288
+ status?: string;
21289
+ toelichting: string;
21290
+ updated_at?: string;
21291
+ };
21292
+ Update: {
21293
+ beoordeeld_door?: string | null;
21294
+ beoordeeld_op?: string | null;
21295
+ created_at?: string;
21296
+ datum?: string;
21297
+ eind_tijd?: string | null;
21298
+ id?: string;
21299
+ ingediend_at?: string;
21300
+ monteur_id?: string;
21301
+ overuren?: number;
21302
+ reden_afkeur?: string | null;
21303
+ start_tijd?: string | null;
21304
+ status?: string;
21305
+ toelichting?: string;
21306
+ updated_at?: string;
21307
+ };
21308
+ Relationships: [];
21309
+ };
19774
21310
  uren_settings: {
19775
21311
  Row: {
19776
21312
  break_minutes: number;
@@ -19816,6 +21352,75 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19816
21352
  };
19817
21353
  Relationships: [];
19818
21354
  };
21355
+ uren_standaardweek: {
21356
+ Row: {
21357
+ created_at: string;
21358
+ eind_slot: number;
21359
+ id: string;
21360
+ monteur_id: string;
21361
+ start_slot: number;
21362
+ updated_at: string;
21363
+ weekdag: number;
21364
+ };
21365
+ Insert: {
21366
+ created_at?: string;
21367
+ eind_slot: number;
21368
+ id?: string;
21369
+ monteur_id: string;
21370
+ start_slot: number;
21371
+ updated_at?: string;
21372
+ weekdag: number;
21373
+ };
21374
+ Update: {
21375
+ created_at?: string;
21376
+ eind_slot?: number;
21377
+ id?: string;
21378
+ monteur_id?: string;
21379
+ start_slot?: number;
21380
+ updated_at?: string;
21381
+ weekdag?: number;
21382
+ };
21383
+ Relationships: [];
21384
+ };
21385
+ uren_standaardweek_wijzigingen: {
21386
+ Row: {
21387
+ beoordeeld_door: string | null;
21388
+ beoordeeld_op: string | null;
21389
+ created_at: string;
21390
+ huidig: import("./types").Json;
21391
+ id: string;
21392
+ monteur_id: string;
21393
+ reden_afkeur: string | null;
21394
+ status: string;
21395
+ updated_at: string;
21396
+ voorstel: import("./types").Json;
21397
+ };
21398
+ Insert: {
21399
+ beoordeeld_door?: string | null;
21400
+ beoordeeld_op?: string | null;
21401
+ created_at?: string;
21402
+ huidig?: import("./types").Json;
21403
+ id?: string;
21404
+ monteur_id: string;
21405
+ reden_afkeur?: string | null;
21406
+ status?: string;
21407
+ updated_at?: string;
21408
+ voorstel: import("./types").Json;
21409
+ };
21410
+ Update: {
21411
+ beoordeeld_door?: string | null;
21412
+ beoordeeld_op?: string | null;
21413
+ created_at?: string;
21414
+ huidig?: import("./types").Json;
21415
+ id?: string;
21416
+ monteur_id?: string;
21417
+ reden_afkeur?: string | null;
21418
+ status?: string;
21419
+ updated_at?: string;
21420
+ voorstel?: import("./types").Json;
21421
+ };
21422
+ Relationships: [];
21423
+ };
19819
21424
  uren_tarieven: {
19820
21425
  Row: {
19821
21426
  created_at: string;
@@ -19900,6 +21505,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19900
21505
  };
19901
21506
  Relationships: [];
19902
21507
  };
21508
+ uren_tijd_spiegel: {
21509
+ Row: {
21510
+ created_at: string;
21511
+ id: string;
21512
+ time_log_id: string;
21513
+ werkbon_time_log_id: string;
21514
+ };
21515
+ Insert: {
21516
+ created_at?: string;
21517
+ id?: string;
21518
+ time_log_id: string;
21519
+ werkbon_time_log_id: string;
21520
+ };
21521
+ Update: {
21522
+ created_at?: string;
21523
+ id?: string;
21524
+ time_log_id?: string;
21525
+ werkbon_time_log_id?: string;
21526
+ };
21527
+ Relationships: [{
21528
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21529
+ columns: ["time_log_id"];
21530
+ isOneToOne: true;
21531
+ referencedRelation: "time_logs";
21532
+ referencedColumns: ["id"];
21533
+ }, {
21534
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21535
+ columns: ["werkbon_time_log_id"];
21536
+ isOneToOne: true;
21537
+ referencedRelation: "werkbon_time_logs";
21538
+ referencedColumns: ["id"];
21539
+ }];
21540
+ };
19903
21541
  uren_weekstaten: {
19904
21542
  Row: {
19905
21543
  approved_at: string | null;
@@ -19942,6 +21580,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19942
21580
  };
19943
21581
  Relationships: [];
19944
21582
  };
21583
+ uren_werktijd_voorkeuren: {
21584
+ Row: {
21585
+ created_at: string;
21586
+ eind_slot: number;
21587
+ id: string;
21588
+ monteur_id: string;
21589
+ start_slot: number;
21590
+ updated_at: string;
21591
+ };
21592
+ Insert: {
21593
+ created_at?: string;
21594
+ eind_slot?: number;
21595
+ id?: string;
21596
+ monteur_id: string;
21597
+ start_slot?: number;
21598
+ updated_at?: string;
21599
+ };
21600
+ Update: {
21601
+ created_at?: string;
21602
+ eind_slot?: number;
21603
+ id?: string;
21604
+ monteur_id?: string;
21605
+ start_slot?: number;
21606
+ updated_at?: string;
21607
+ };
21608
+ Relationships: [];
21609
+ };
19945
21610
  user_module_permissions: {
19946
21611
  Row: {
19947
21612
  created_at: string;
@@ -20413,6 +22078,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20413
22078
  referencedColumns: ["id"];
20414
22079
  }];
20415
22080
  };
22081
+ werkbon_email_state: {
22082
+ Row: {
22083
+ created_at: string;
22084
+ event_id: string;
22085
+ id: string;
22086
+ is_archived: boolean;
22087
+ is_read: boolean;
22088
+ updated_at: string;
22089
+ werkbon_id: string | null;
22090
+ };
22091
+ Insert: {
22092
+ created_at?: string;
22093
+ event_id: string;
22094
+ id?: string;
22095
+ is_archived?: boolean;
22096
+ is_read?: boolean;
22097
+ updated_at?: string;
22098
+ werkbon_id?: string | null;
22099
+ };
22100
+ Update: {
22101
+ created_at?: string;
22102
+ event_id?: string;
22103
+ id?: string;
22104
+ is_archived?: boolean;
22105
+ is_read?: boolean;
22106
+ updated_at?: string;
22107
+ werkbon_id?: string | null;
22108
+ };
22109
+ Relationships: [{
22110
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
22111
+ columns: ["event_id"];
22112
+ isOneToOne: true;
22113
+ referencedRelation: "email_auth_events";
22114
+ referencedColumns: ["id"];
22115
+ }];
22116
+ };
20416
22117
  werkbon_export_runs: {
20417
22118
  Row: {
20418
22119
  created_at: string;
@@ -20566,69 +22267,210 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20566
22267
  };
20567
22268
  Relationships: [];
20568
22269
  };
20569
- werkbon_materials: {
22270
+ werkbon_mail_ai_settings: {
20570
22271
  Row: {
20571
- article_number: string | null;
20572
22272
  created_at: string;
20573
- created_by: string | null;
20574
- description: string;
20575
- id: string;
20576
- quantity: number;
20577
- source: string;
20578
- unit: string;
20579
- unit_price_cents: number;
22273
+ id: boolean;
22274
+ required_fields: string[];
22275
+ system_prompt: string;
20580
22276
  updated_at: string;
20581
- werkbon_id: string;
22277
+ updated_by: string | null;
20582
22278
  };
20583
22279
  Insert: {
20584
- article_number?: string | null;
20585
22280
  created_at?: string;
20586
- created_by?: string | null;
20587
- description: string;
20588
- id?: string;
20589
- quantity?: number;
20590
- source?: string;
20591
- unit?: string;
20592
- unit_price_cents?: number;
22281
+ id?: boolean;
22282
+ required_fields?: string[];
22283
+ system_prompt?: string;
20593
22284
  updated_at?: string;
20594
- werkbon_id: string;
22285
+ updated_by?: string | null;
20595
22286
  };
20596
22287
  Update: {
20597
- article_number?: string | null;
20598
22288
  created_at?: string;
20599
- created_by?: string | null;
20600
- description?: string;
20601
- id?: string;
20602
- quantity?: number;
20603
- source?: string;
20604
- unit?: string;
20605
- unit_price_cents?: number;
22289
+ id?: boolean;
22290
+ required_fields?: string[];
22291
+ system_prompt?: string;
20606
22292
  updated_at?: string;
20607
- werkbon_id?: string;
22293
+ updated_by?: string | null;
20608
22294
  };
20609
- Relationships: [{
20610
- foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20611
- columns: ["werkbon_id"];
20612
- isOneToOne: false;
20613
- referencedRelation: "werkbonnen";
20614
- referencedColumns: ["id"];
20615
- }, {
20616
- foreignKeyName: "werkbon_materials_werkbon_id_fkey";
20617
- columns: ["werkbon_id"];
20618
- isOneToOne: false;
20619
- referencedRelation: "wo_overview";
20620
- referencedColumns: ["id"];
20621
- }];
22295
+ Relationships: [];
20622
22296
  };
20623
- werkbon_package_ai_rules: {
22297
+ werkbon_mail_bodies: {
20624
22298
  Row: {
20625
- active: boolean;
20626
- case_sensitive: boolean;
20627
22299
  created_at: string;
20628
- id: string;
20629
- package_id: string;
20630
- priority: number;
20631
- rule_type: string;
22300
+ event_id: string;
22301
+ fetch_error: string | null;
22302
+ fetched_at: string | null;
22303
+ html: string | null;
22304
+ updated_at: string;
22305
+ };
22306
+ Insert: {
22307
+ created_at?: string;
22308
+ event_id: string;
22309
+ fetch_error?: string | null;
22310
+ fetched_at?: string | null;
22311
+ html?: string | null;
22312
+ updated_at?: string;
22313
+ };
22314
+ Update: {
22315
+ created_at?: string;
22316
+ event_id?: string;
22317
+ fetch_error?: string | null;
22318
+ fetched_at?: string | null;
22319
+ html?: string | null;
22320
+ updated_at?: string;
22321
+ };
22322
+ Relationships: [];
22323
+ };
22324
+ werkbon_mail_inline_assets: {
22325
+ Row: {
22326
+ content_id: string | null;
22327
+ created_at: string;
22328
+ event_id: string;
22329
+ filename: string | null;
22330
+ id: string;
22331
+ is_inline: boolean;
22332
+ mime_type: string | null;
22333
+ size_bytes: number | null;
22334
+ storage_path: string;
22335
+ };
22336
+ Insert: {
22337
+ content_id?: string | null;
22338
+ created_at?: string;
22339
+ event_id: string;
22340
+ filename?: string | null;
22341
+ id?: string;
22342
+ is_inline?: boolean;
22343
+ mime_type?: string | null;
22344
+ size_bytes?: number | null;
22345
+ storage_path: string;
22346
+ };
22347
+ Update: {
22348
+ content_id?: string | null;
22349
+ created_at?: string;
22350
+ event_id?: string;
22351
+ filename?: string | null;
22352
+ id?: string;
22353
+ is_inline?: boolean;
22354
+ mime_type?: string | null;
22355
+ size_bytes?: number | null;
22356
+ storage_path?: string;
22357
+ };
22358
+ Relationships: [];
22359
+ };
22360
+ werkbon_mail_settings: {
22361
+ Row: {
22362
+ connection_id: string | null;
22363
+ connection_ids: string[];
22364
+ created_at: string;
22365
+ id: boolean;
22366
+ purposes: string[];
22367
+ source: string;
22368
+ updated_at: string;
22369
+ };
22370
+ Insert: {
22371
+ connection_id?: string | null;
22372
+ connection_ids?: string[];
22373
+ created_at?: string;
22374
+ id?: boolean;
22375
+ purposes?: string[];
22376
+ source?: string;
22377
+ updated_at?: string;
22378
+ };
22379
+ Update: {
22380
+ connection_id?: string | null;
22381
+ connection_ids?: string[];
22382
+ created_at?: string;
22383
+ id?: boolean;
22384
+ purposes?: string[];
22385
+ source?: string;
22386
+ updated_at?: string;
22387
+ };
22388
+ Relationships: [];
22389
+ };
22390
+ werkbon_mail_user_settings: {
22391
+ Row: {
22392
+ created_at: string;
22393
+ email_purpose: string | null;
22394
+ updated_at: string;
22395
+ user_id: string;
22396
+ };
22397
+ Insert: {
22398
+ created_at?: string;
22399
+ email_purpose?: string | null;
22400
+ updated_at?: string;
22401
+ user_id: string;
22402
+ };
22403
+ Update: {
22404
+ created_at?: string;
22405
+ email_purpose?: string | null;
22406
+ updated_at?: string;
22407
+ user_id?: string;
22408
+ };
22409
+ Relationships: [];
22410
+ };
22411
+ werkbon_materials: {
22412
+ Row: {
22413
+ article_number: string | null;
22414
+ created_at: string;
22415
+ created_by: string | null;
22416
+ description: string;
22417
+ id: string;
22418
+ quantity: number;
22419
+ source: string;
22420
+ unit: string;
22421
+ unit_price_cents: number;
22422
+ updated_at: string;
22423
+ werkbon_id: string;
22424
+ };
22425
+ Insert: {
22426
+ article_number?: string | null;
22427
+ created_at?: string;
22428
+ created_by?: string | null;
22429
+ description: string;
22430
+ id?: string;
22431
+ quantity?: number;
22432
+ source?: string;
22433
+ unit?: string;
22434
+ unit_price_cents?: number;
22435
+ updated_at?: string;
22436
+ werkbon_id: string;
22437
+ };
22438
+ Update: {
22439
+ article_number?: string | null;
22440
+ created_at?: string;
22441
+ created_by?: string | null;
22442
+ description?: string;
22443
+ id?: string;
22444
+ quantity?: number;
22445
+ source?: string;
22446
+ unit?: string;
22447
+ unit_price_cents?: number;
22448
+ updated_at?: string;
22449
+ werkbon_id?: string;
22450
+ };
22451
+ Relationships: [{
22452
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
22453
+ columns: ["werkbon_id"];
22454
+ isOneToOne: false;
22455
+ referencedRelation: "werkbonnen";
22456
+ referencedColumns: ["id"];
22457
+ }, {
22458
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
22459
+ columns: ["werkbon_id"];
22460
+ isOneToOne: false;
22461
+ referencedRelation: "wo_overview";
22462
+ referencedColumns: ["id"];
22463
+ }];
22464
+ };
22465
+ werkbon_package_ai_rules: {
22466
+ Row: {
22467
+ active: boolean;
22468
+ case_sensitive: boolean;
22469
+ created_at: string;
22470
+ id: string;
22471
+ package_id: string;
22472
+ priority: number;
22473
+ rule_type: string;
20632
22474
  updated_at: string;
20633
22475
  value: string;
20634
22476
  };
@@ -20696,10 +22538,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20696
22538
  Row: {
20697
22539
  article_number: string | null;
20698
22540
  artikel_id: string | null;
22541
+ cost_price_cents: number;
20699
22542
  created_at: string;
20700
22543
  gtin: string | null;
20701
22544
  id: string;
20702
22545
  manufacturer: string | null;
22546
+ margin_percent: number | null;
20703
22547
  omschrijving: string;
20704
22548
  package_id: string;
20705
22549
  price_synced_at: string | null;
@@ -20714,10 +22558,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20714
22558
  Insert: {
20715
22559
  article_number?: string | null;
20716
22560
  artikel_id?: string | null;
22561
+ cost_price_cents?: number;
20717
22562
  created_at?: string;
20718
22563
  gtin?: string | null;
20719
22564
  id?: string;
20720
22565
  manufacturer?: string | null;
22566
+ margin_percent?: number | null;
20721
22567
  omschrijving: string;
20722
22568
  package_id: string;
20723
22569
  price_synced_at?: string | null;
@@ -20732,10 +22578,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20732
22578
  Update: {
20733
22579
  article_number?: string | null;
20734
22580
  artikel_id?: string | null;
22581
+ cost_price_cents?: number;
20735
22582
  created_at?: string;
20736
22583
  gtin?: string | null;
20737
22584
  id?: string;
20738
22585
  manufacturer?: string | null;
22586
+ margin_percent?: number | null;
20739
22587
  omschrijving?: string;
20740
22588
  package_id?: string;
20741
22589
  price_synced_at?: string | null;
@@ -20905,119 +22753,276 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20905
22753
  referencedColumns: ["id"];
20906
22754
  }];
20907
22755
  };
20908
- werkbon_time_logs: {
22756
+ werkbon_proposal_lines: {
20909
22757
  Row: {
20910
- activity: string;
22758
+ article_number: string | null;
20911
22759
  created_at: string;
20912
- ended_at: string | null;
22760
+ description: string | null;
20913
22761
  id: string;
22762
+ line_type: string;
20914
22763
  note: string | null;
20915
- started_at: string;
20916
- user_id: string;
20917
- werkbon_id: string;
22764
+ package_id: string | null;
22765
+ proposal_id: string;
22766
+ quantity: number | null;
22767
+ sort_order: number;
22768
+ unit: string | null;
22769
+ updated_at: string;
20918
22770
  };
20919
22771
  Insert: {
20920
- activity: string;
22772
+ article_number?: string | null;
20921
22773
  created_at?: string;
20922
- ended_at?: string | null;
22774
+ description?: string | null;
20923
22775
  id?: string;
22776
+ line_type?: string;
20924
22777
  note?: string | null;
20925
- started_at?: string;
20926
- user_id: string;
20927
- werkbon_id: string;
22778
+ package_id?: string | null;
22779
+ proposal_id: string;
22780
+ quantity?: number | null;
22781
+ sort_order?: number;
22782
+ unit?: string | null;
22783
+ updated_at?: string;
20928
22784
  };
20929
22785
  Update: {
20930
- activity?: string;
22786
+ article_number?: string | null;
20931
22787
  created_at?: string;
20932
- ended_at?: string | null;
22788
+ description?: string | null;
20933
22789
  id?: string;
22790
+ line_type?: string;
20934
22791
  note?: string | null;
20935
- started_at?: string;
20936
- user_id?: string;
20937
- werkbon_id?: string;
22792
+ package_id?: string | null;
22793
+ proposal_id?: string;
22794
+ quantity?: number | null;
22795
+ sort_order?: number;
22796
+ unit?: string | null;
22797
+ updated_at?: string;
20938
22798
  };
20939
22799
  Relationships: [{
20940
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20941
- columns: ["werkbon_id"];
20942
- isOneToOne: false;
20943
- referencedRelation: "werkbonnen";
20944
- referencedColumns: ["id"];
20945
- }, {
20946
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20947
- columns: ["werkbon_id"];
22800
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
22801
+ columns: ["proposal_id"];
20948
22802
  isOneToOne: false;
20949
- referencedRelation: "wo_overview";
22803
+ referencedRelation: "werkbon_proposals";
20950
22804
  referencedColumns: ["id"];
20951
22805
  }];
20952
22806
  };
20953
- werkbonnen: {
22807
+ werkbon_proposals: {
20954
22808
  Row: {
20955
- assigned_user_id: string | null;
22809
+ analysed: boolean;
20956
22810
  budget_mandate_cents: number;
20957
22811
  complaint_description: string | null;
22812
+ contact_id: string | null;
20958
22813
  created_at: string;
20959
- created_by: string | null;
22814
+ created_werkbon_id: string | null;
20960
22815
  customer_id: string | null;
22816
+ deadline_date: string | null;
22817
+ estimated_days: number | null;
22818
+ estimated_duration_minutes: number | null;
22819
+ event_id: string;
22820
+ external_id: string | null;
20961
22821
  externe_referentie: string | null;
20962
- extra_costs_cents: number;
20963
- first_time_fix: boolean | null;
22822
+ from_email: string | null;
22823
+ from_name: string | null;
20964
22824
  id: string;
20965
22825
  internal_notes: string | null;
20966
- needs_detail_review: boolean;
20967
- parent_werkbon_id: string | null;
20968
- parsed_payload: import("./types").Json | null;
20969
- planning_status: string;
20970
- project_number: string | null;
20971
- review_reasons: string[];
22826
+ parsed_payload: import("./types").Json;
22827
+ received_at: string | null;
22828
+ reviewed_at: string | null;
22829
+ reviewed_by: string | null;
20972
22830
  room_number: string | null;
20973
22831
  scheduled_end_time: string | null;
20974
22832
  scheduled_start_time: string | null;
20975
- sequence_number: number;
20976
- signature_accepted_at: string | null;
20977
- signature_by_user_id: string | null;
20978
- signature_name: string | null;
20979
- source_email_meta: import("./types").Json | null;
20980
- source_mailbox_message_id: string | null;
20981
- source_pdf_path: string | null;
20982
- source_type: string;
20983
22833
  status: string;
22834
+ subject: string | null;
20984
22835
  technician_id: string | null;
20985
- technician_notes: string | null;
20986
- technician_notes_raw: string | null;
20987
22836
  technician_task_description: string | null;
20988
22837
  updated_at: string;
20989
- version: number;
20990
22838
  work_address: string | null;
20991
22839
  };
20992
22840
  Insert: {
20993
- assigned_user_id?: string | null;
22841
+ analysed?: boolean;
20994
22842
  budget_mandate_cents?: number;
20995
22843
  complaint_description?: string | null;
22844
+ contact_id?: string | null;
20996
22845
  created_at?: string;
20997
- created_by?: string | null;
22846
+ created_werkbon_id?: string | null;
20998
22847
  customer_id?: string | null;
22848
+ deadline_date?: string | null;
22849
+ estimated_days?: number | null;
22850
+ estimated_duration_minutes?: number | null;
22851
+ event_id: string;
22852
+ external_id?: string | null;
20999
22853
  externe_referentie?: string | null;
21000
- extra_costs_cents?: number;
21001
- first_time_fix?: boolean | null;
22854
+ from_email?: string | null;
22855
+ from_name?: string | null;
21002
22856
  id?: string;
21003
22857
  internal_notes?: string | null;
21004
- needs_detail_review?: boolean;
21005
- parent_werkbon_id?: string | null;
21006
- parsed_payload?: import("./types").Json | null;
21007
- planning_status?: string;
21008
- project_number?: string | null;
21009
- review_reasons?: string[];
22858
+ parsed_payload?: import("./types").Json;
22859
+ received_at?: string | null;
22860
+ reviewed_at?: string | null;
22861
+ reviewed_by?: string | null;
21010
22862
  room_number?: string | null;
21011
22863
  scheduled_end_time?: string | null;
21012
22864
  scheduled_start_time?: string | null;
21013
- sequence_number: number;
21014
- signature_accepted_at?: string | null;
21015
- signature_by_user_id?: string | null;
21016
- signature_name?: string | null;
21017
- source_email_meta?: import("./types").Json | null;
21018
- source_mailbox_message_id?: string | null;
21019
- source_pdf_path?: string | null;
21020
- source_type?: string;
22865
+ status?: string;
22866
+ subject?: string | null;
22867
+ technician_id?: string | null;
22868
+ technician_task_description?: string | null;
22869
+ updated_at?: string;
22870
+ work_address?: string | null;
22871
+ };
22872
+ Update: {
22873
+ analysed?: boolean;
22874
+ budget_mandate_cents?: number;
22875
+ complaint_description?: string | null;
22876
+ contact_id?: string | null;
22877
+ created_at?: string;
22878
+ created_werkbon_id?: string | null;
22879
+ customer_id?: string | null;
22880
+ deadline_date?: string | null;
22881
+ estimated_days?: number | null;
22882
+ estimated_duration_minutes?: number | null;
22883
+ event_id?: string;
22884
+ external_id?: string | null;
22885
+ externe_referentie?: string | null;
22886
+ from_email?: string | null;
22887
+ from_name?: string | null;
22888
+ id?: string;
22889
+ internal_notes?: string | null;
22890
+ parsed_payload?: import("./types").Json;
22891
+ received_at?: string | null;
22892
+ reviewed_at?: string | null;
22893
+ reviewed_by?: string | null;
22894
+ room_number?: string | null;
22895
+ scheduled_end_time?: string | null;
22896
+ scheduled_start_time?: string | null;
22897
+ status?: string;
22898
+ subject?: string | null;
22899
+ technician_id?: string | null;
22900
+ technician_task_description?: string | null;
22901
+ updated_at?: string;
22902
+ work_address?: string | null;
22903
+ };
22904
+ Relationships: [];
22905
+ };
22906
+ werkbon_time_logs: {
22907
+ Row: {
22908
+ activity: string;
22909
+ created_at: string;
22910
+ ended_at: string | null;
22911
+ id: string;
22912
+ note: string | null;
22913
+ started_at: string;
22914
+ user_id: string;
22915
+ werkbon_id: string;
22916
+ };
22917
+ Insert: {
22918
+ activity: string;
22919
+ created_at?: string;
22920
+ ended_at?: string | null;
22921
+ id?: string;
22922
+ note?: string | null;
22923
+ started_at?: string;
22924
+ user_id: string;
22925
+ werkbon_id: string;
22926
+ };
22927
+ Update: {
22928
+ activity?: string;
22929
+ created_at?: string;
22930
+ ended_at?: string | null;
22931
+ id?: string;
22932
+ note?: string | null;
22933
+ started_at?: string;
22934
+ user_id?: string;
22935
+ werkbon_id?: string;
22936
+ };
22937
+ Relationships: [{
22938
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22939
+ columns: ["werkbon_id"];
22940
+ isOneToOne: false;
22941
+ referencedRelation: "werkbonnen";
22942
+ referencedColumns: ["id"];
22943
+ }, {
22944
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22945
+ columns: ["werkbon_id"];
22946
+ isOneToOne: false;
22947
+ referencedRelation: "wo_overview";
22948
+ referencedColumns: ["id"];
22949
+ }];
22950
+ };
22951
+ werkbonnen: {
22952
+ Row: {
22953
+ assigned_user_id: string | null;
22954
+ budget_mandate_cents: number;
22955
+ complaint_description: string | null;
22956
+ created_at: string;
22957
+ created_by: string | null;
22958
+ customer_id: string | null;
22959
+ deadline_date: string | null;
22960
+ estimated_days: number | null;
22961
+ estimated_duration_minutes: number | null;
22962
+ externe_referentie: string | null;
22963
+ extra_costs_cents: number;
22964
+ first_time_fix: boolean | null;
22965
+ id: string;
22966
+ internal_notes: string | null;
22967
+ needs_detail_review: boolean;
22968
+ parent_werkbon_id: string | null;
22969
+ parsed_payload: import("./types").Json | null;
22970
+ planning_status: string;
22971
+ project_number: string | null;
22972
+ review_reasons: string[];
22973
+ room_number: string | null;
22974
+ scheduled_end_time: string | null;
22975
+ scheduled_start_time: string | null;
22976
+ sequence_number: number;
22977
+ signature_accepted_at: string | null;
22978
+ signature_by_user_id: string | null;
22979
+ signature_name: string | null;
22980
+ source_email_meta: import("./types").Json | null;
22981
+ source_mailbox_message_id: string | null;
22982
+ source_pdf_path: string | null;
22983
+ source_type: string;
22984
+ status: string;
22985
+ technician_id: string | null;
22986
+ technician_notes: string | null;
22987
+ technician_notes_raw: string | null;
22988
+ technician_task_description: string | null;
22989
+ updated_at: string;
22990
+ version: number;
22991
+ work_address: string | null;
22992
+ workday_hours: number | null;
22993
+ };
22994
+ Insert: {
22995
+ assigned_user_id?: string | null;
22996
+ budget_mandate_cents?: number;
22997
+ complaint_description?: string | null;
22998
+ created_at?: string;
22999
+ created_by?: string | null;
23000
+ customer_id?: string | null;
23001
+ deadline_date?: string | null;
23002
+ estimated_days?: number | null;
23003
+ estimated_duration_minutes?: number | null;
23004
+ externe_referentie?: string | null;
23005
+ extra_costs_cents?: number;
23006
+ first_time_fix?: boolean | null;
23007
+ id?: string;
23008
+ internal_notes?: string | null;
23009
+ needs_detail_review?: boolean;
23010
+ parent_werkbon_id?: string | null;
23011
+ parsed_payload?: import("./types").Json | null;
23012
+ planning_status?: string;
23013
+ project_number?: string | null;
23014
+ review_reasons?: string[];
23015
+ room_number?: string | null;
23016
+ scheduled_end_time?: string | null;
23017
+ scheduled_start_time?: string | null;
23018
+ sequence_number: number;
23019
+ signature_accepted_at?: string | null;
23020
+ signature_by_user_id?: string | null;
23021
+ signature_name?: string | null;
23022
+ source_email_meta?: import("./types").Json | null;
23023
+ source_mailbox_message_id?: string | null;
23024
+ source_pdf_path?: string | null;
23025
+ source_type?: string;
21021
23026
  status?: string;
21022
23027
  technician_id?: string | null;
21023
23028
  technician_notes?: string | null;
@@ -21026,6 +23031,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21026
23031
  updated_at?: string;
21027
23032
  version?: number;
21028
23033
  work_address?: string | null;
23034
+ workday_hours?: number | null;
21029
23035
  };
21030
23036
  Update: {
21031
23037
  assigned_user_id?: string | null;
@@ -21034,6 +23040,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21034
23040
  created_at?: string;
21035
23041
  created_by?: string | null;
21036
23042
  customer_id?: string | null;
23043
+ deadline_date?: string | null;
23044
+ estimated_days?: number | null;
23045
+ estimated_duration_minutes?: number | null;
21037
23046
  externe_referentie?: string | null;
21038
23047
  extra_costs_cents?: number;
21039
23048
  first_time_fix?: boolean | null;
@@ -21064,6 +23073,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21064
23073
  updated_at?: string;
21065
23074
  version?: number;
21066
23075
  work_address?: string | null;
23076
+ workday_hours?: number | null;
21067
23077
  };
21068
23078
  Relationships: [{
21069
23079
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21545,6 +23555,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21545
23555
  };
21546
23556
  Relationships: [];
21547
23557
  };
23558
+ logistics_packing_diff: {
23559
+ Row: {
23560
+ dev_key: string | null;
23561
+ floriday_packing: import("./types").Json | null;
23562
+ local_packing: import("./types").Json | null;
23563
+ order_id: string | null;
23564
+ order_item_id: string | null;
23565
+ order_number: string | null;
23566
+ product_id: string | null;
23567
+ product_name: string | null;
23568
+ scope: string | null;
23569
+ trade_item_id: string | null;
23570
+ };
23571
+ Relationships: [];
23572
+ };
21548
23573
  logistics_product_dimensions: {
21549
23574
  Row: {
21550
23575
  dimension_source: string | null;
@@ -22268,6 +24293,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22268
24293
  };
22269
24294
  Returns: string;
22270
24295
  };
24296
+ backfill_cart_numbers_day_seq: {
24297
+ Args: never;
24298
+ Returns: number;
24299
+ };
22271
24300
  backfill_open_order_reservations: {
22272
24301
  Args: never;
22273
24302
  Returns: {
@@ -22754,8 +24783,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22754
24783
  cart_index: number;
22755
24784
  cart_number: string;
22756
24785
  cart_number_id: string;
22757
- cart_seq: number;
22758
- cart_total: number;
22759
24786
  order_id: string;
22760
24787
  order_number: string;
22761
24788
  order_source: string;
@@ -22771,10 +24798,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22771
24798
  };
22772
24799
  Returns: number;
22773
24800
  };
24801
+ control_mark_carts_delivered_detail: {
24802
+ Args: {
24803
+ p_carts: import("./types").Json;
24804
+ };
24805
+ Returns: {
24806
+ cart_index: number;
24807
+ frozen: boolean;
24808
+ message: string;
24809
+ order_id: string;
24810
+ order_source: string;
24811
+ outcome: string;
24812
+ }[];
24813
+ };
22774
24814
  count_distinct_regulatory_products: {
22775
24815
  Args: never;
22776
24816
  Returns: number;
22777
24817
  };
24818
+ create_order_from_public_offer: {
24819
+ Args: {
24820
+ p_carrier_id?: string;
24821
+ p_delivery_date?: string;
24822
+ p_delivery_garden_id?: string;
24823
+ p_offer_order_id: string;
24824
+ };
24825
+ Returns: import("./types").Json;
24826
+ };
22778
24827
  current_monteur_id: {
22779
24828
  Args: never;
22780
24829
  Returns: string;
@@ -23276,6 +25325,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23276
25325
  Args: never;
23277
25326
  Returns: string;
23278
25327
  };
25328
+ handover_afspraak_intrekken: {
25329
+ Args: {
25330
+ _sleutel: string;
25331
+ };
25332
+ Returns: boolean;
25333
+ };
25334
+ handover_afspraak_zetten: {
25335
+ Args: {
25336
+ _besluit: string;
25337
+ _item: string;
25338
+ _modules: string[];
25339
+ _sleutel: string;
25340
+ _soort: string;
25341
+ _versie_vingerafdruk: string;
25342
+ };
25343
+ Returns: boolean;
25344
+ };
25345
+ handover_afspraken: {
25346
+ Args: never;
25347
+ Returns: import("./types").Json;
25348
+ };
23279
25349
  handover_archief_lijst: {
23280
25350
  Args: never;
23281
25351
  Returns: import("./types").Json;
@@ -23293,6 +25363,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23293
25363
  };
23294
25364
  Returns: boolean;
23295
25365
  };
25366
+ handover_check_afronden_na_scan: {
25367
+ Args: {
25368
+ _module_ids: string[];
25369
+ };
25370
+ Returns: number;
25371
+ };
23296
25372
  handover_check_markeren: {
23297
25373
  Args: {
23298
25374
  _module_ids: string[];
@@ -23336,6 +25412,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23336
25412
  };
23337
25413
  Returns: boolean;
23338
25414
  };
25415
+ handover_md_bron_zetten: {
25416
+ Args: {
25417
+ _md: boolean;
25418
+ _module_id: string;
25419
+ _pad?: string;
25420
+ };
25421
+ Returns: boolean;
25422
+ };
23339
25423
  handover_module_meta_zetten: {
23340
25424
  Args: {
23341
25425
  _module_id: string;
@@ -23344,6 +25428,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23344
25428
  };
23345
25429
  Returns: boolean;
23346
25430
  };
25431
+ handover_naam_zetten: {
25432
+ Args: {
25433
+ _bron_repo?: string;
25434
+ _module_id: string;
25435
+ _weergavenaam?: string;
25436
+ };
25437
+ Returns: boolean;
25438
+ };
25439
+ handover_namen: {
25440
+ Args: never;
25441
+ Returns: import("./types").Json;
25442
+ };
25443
+ handover_nieuw_gezien: {
25444
+ Args: {
25445
+ _module_id: string;
25446
+ };
25447
+ Returns: boolean;
25448
+ };
23347
25449
  handover_norm_naam: {
23348
25450
  Args: {
23349
25451
  _naam: string;
@@ -23380,6 +25482,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23380
25482
  _versie_label?: string;
23381
25483
  };
23382
25484
  Returns: import("./types").Json;
25485
+ } | {
25486
+ Args: {
25487
+ _bekende_risicos?: string[];
25488
+ _bezit_tabellen?: string[];
25489
+ _bron_soort?: string;
25490
+ _commit?: string;
25491
+ _contractfuncties?: string[];
25492
+ _inhoud_md: string;
25493
+ _laatst_bevestigd_op?: string;
25494
+ _module_id: string;
25495
+ _module_titel: string;
25496
+ _ontbrekende_contracten?: string[];
25497
+ _pad?: string;
25498
+ _repo?: string;
25499
+ _samenvatting?: string;
25500
+ _versie_label?: string;
25501
+ };
25502
+ Returns: import("./types").Json;
23383
25503
  };
23384
25504
  handover_publish_via_token: {
23385
25505
  Args: {
@@ -23477,6 +25597,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23477
25597
  Args: never;
23478
25598
  Returns: boolean;
23479
25599
  };
25600
+ inkoop_apply_price_list: {
25601
+ Args: {
25602
+ _price_list_id: string;
25603
+ _rows: import("./types").Json;
25604
+ };
25605
+ Returns: import("./types").Json;
25606
+ };
25607
+ inkoop_next_order_number: {
25608
+ Args: never;
25609
+ Returns: string;
25610
+ };
25611
+ inkoop_send_order: {
25612
+ Args: {
25613
+ _order_id: string;
25614
+ };
25615
+ Returns: {
25616
+ outbox_id: string;
25617
+ supplier_name: string;
25618
+ to_address: string;
25619
+ }[];
25620
+ };
23480
25621
  instructie_get: {
23481
25622
  Args: {
23482
25623
  _sleutel: string;
@@ -23530,12 +25671,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23530
25671
  };
23531
25672
  Returns: import("./types").Json;
23532
25673
  };
25674
+ invoice_ready_work_orders: {
25675
+ Args: {
25676
+ _limit?: number;
25677
+ };
25678
+ Returns: import("./types").Json;
25679
+ };
23533
25680
  invoice_recalc_totals: {
23534
25681
  Args: {
23535
25682
  _invoice_id: string;
23536
25683
  };
23537
25684
  Returns: import("./types").Json;
23538
25685
  };
25686
+ invoice_source_lines: {
25687
+ Args: {
25688
+ _source_id: string;
25689
+ _source_type: string;
25690
+ };
25691
+ Returns: import("./types").Json;
25692
+ };
23539
25693
  is_authenticated: {
23540
25694
  Args: never;
23541
25695
  Returns: boolean;
@@ -23768,6 +25922,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23768
25922
  };
23769
25923
  Returns: import("./types").Json;
23770
25924
  };
25925
+ logistics_buffer_decision_for_settings: {
25926
+ Args: {
25927
+ p_order: import("./types").Json;
25928
+ p_settings: import("./types").Json;
25929
+ p_user_id?: string;
25930
+ };
25931
+ Returns: import("./types").Json;
25932
+ };
23771
25933
  logistics_buffer_detach_late_orders: {
23772
25934
  Args: {
23773
25935
  p_buffer?: string;
@@ -23801,6 +25963,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23801
25963
  };
23802
25964
  Returns: string;
23803
25965
  };
25966
+ logistics_buffer_payload: {
25967
+ Args: {
25968
+ p_order_id: string;
25969
+ };
25970
+ Returns: import("./types").Json;
25971
+ };
23804
25972
  logistics_buffer_simulate: {
23805
25973
  Args: {
23806
25974
  p_orders?: import("./types").Json;
@@ -23859,6 +26027,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23859
26027
  };
23860
26028
  Returns: string;
23861
26029
  };
26030
+ logistics_cart_coverage_check: {
26031
+ Args: never;
26032
+ Returns: import("./types").Json;
26033
+ };
23862
26034
  logistics_cart_handled: {
23863
26035
  Args: {
23864
26036
  p_cart_index: number;
@@ -24102,10 +26274,29 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24102
26274
  isSetofReturn: false;
24103
26275
  };
24104
26276
  };
26277
+ logistics_cleanup_duplicate_order_lines: {
26278
+ Args: {
26279
+ p_limit?: number;
26280
+ p_order_id: string;
26281
+ };
26282
+ Returns: import("./types").Json;
26283
+ };
26284
+ logistics_cleanup_history: {
26285
+ Args: {
26286
+ p_limit?: number;
26287
+ };
26288
+ Returns: import("./types").Json;
26289
+ };
24105
26290
  logistics_cleanup_orphan_print_jobs: {
24106
26291
  Args: never;
24107
26292
  Returns: import("./types").Json;
24108
26293
  };
26294
+ logistics_cleanup_tasks: {
26295
+ Args: {
26296
+ p_limit?: number;
26297
+ };
26298
+ Returns: import("./types").Json;
26299
+ };
24109
26300
  logistics_complete_task: {
24110
26301
  Args: {
24111
26302
  p_result?: import("./types").Json;
@@ -24253,6 +26444,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24253
26444
  Args: never;
24254
26445
  Returns: import("./types").Json;
24255
26446
  };
26447
+ logistics_cron_health: {
26448
+ Args: never;
26449
+ Returns: import("./types").Json;
26450
+ };
24256
26451
  logistics_day_windows: {
24257
26452
  Args: {
24258
26453
  p_day: string;
@@ -24602,6 +26797,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24602
26797
  };
24603
26798
  Returns: number;
24604
26799
  };
26800
+ logistics_merge_decision: {
26801
+ Args: {
26802
+ p_lines: import("./types").Json;
26803
+ };
26804
+ Returns: import("./types").Json;
26805
+ };
26806
+ logistics_merge_floriday_lines: {
26807
+ Args: {
26808
+ p_order_id: string;
26809
+ };
26810
+ Returns: string;
26811
+ };
26812
+ logistics_merge_lines_enabled: {
26813
+ Args: never;
26814
+ Returns: boolean;
26815
+ };
24605
26816
  logistics_merge_partial_carts: {
24606
26817
  Args: {
24607
26818
  p_limit?: number;
@@ -24638,12 +26849,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24638
26849
  Args: never;
24639
26850
  Returns: string;
24640
26851
  };
26852
+ logistics_order_cart_approval: {
26853
+ Args: {
26854
+ _order_ref: string;
26855
+ };
26856
+ Returns: {
26857
+ approved: number;
26858
+ total: number;
26859
+ }[];
26860
+ };
24641
26861
  logistics_order_cart_count: {
24642
26862
  Args: {
24643
26863
  p_order_ref: string;
24644
26864
  };
24645
26865
  Returns: number;
24646
26866
  };
26867
+ logistics_order_changed: {
26868
+ Args: {
26869
+ p_order_id: string;
26870
+ p_reason?: string;
26871
+ };
26872
+ Returns: undefined;
26873
+ };
26874
+ logistics_order_documents_ready: {
26875
+ Args: {
26876
+ p_order_ref: string;
26877
+ };
26878
+ Returns: import("./types").Json;
26879
+ };
26880
+ logistics_order_documents_ready_bool: {
26881
+ Args: {
26882
+ p_order_ref: string;
26883
+ };
26884
+ Returns: boolean;
26885
+ };
26886
+ logistics_order_finalize_enqueue: {
26887
+ Args: {
26888
+ p_order_id: string;
26889
+ p_reason?: string;
26890
+ };
26891
+ Returns: undefined;
26892
+ };
26893
+ logistics_order_finalize_overview: {
26894
+ Args: never;
26895
+ Returns: {
26896
+ bezig: number;
26897
+ laatst_afgerond: string;
26898
+ laatste_fout: string;
26899
+ mislukt: number;
26900
+ oudste_wachttijd_seconden: number;
26901
+ wachtend: number;
26902
+ }[];
26903
+ };
26904
+ logistics_order_finalize_prune: {
26905
+ Args: {
26906
+ p_days?: number;
26907
+ };
26908
+ Returns: number;
26909
+ };
26910
+ logistics_order_finalize_reconcile: {
26911
+ Args: {
26912
+ p_days?: number;
26913
+ p_limit?: number;
26914
+ };
26915
+ Returns: number;
26916
+ };
26917
+ logistics_order_finalize_retry: {
26918
+ Args: {
26919
+ p_order_id: string;
26920
+ };
26921
+ Returns: boolean;
26922
+ };
26923
+ logistics_order_finalize_run: {
26924
+ Args: {
26925
+ p_lease_seconds?: number;
26926
+ p_limit?: number;
26927
+ };
26928
+ Returns: number;
26929
+ };
26930
+ logistics_order_frozen: {
26931
+ Args: {
26932
+ p_order_id: string;
26933
+ };
26934
+ Returns: boolean;
26935
+ };
24647
26936
  logistics_order_handled: {
24648
26937
  Args: {
24649
26938
  p_order_uuid: string;
@@ -24657,6 +26946,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24657
26946
  };
24658
26947
  Returns: boolean;
24659
26948
  };
26949
+ logistics_order_line_duplicates: {
26950
+ Args: {
26951
+ p_order_id: string;
26952
+ };
26953
+ Returns: import("./types").Json;
26954
+ };
26955
+ logistics_order_merge_key: {
26956
+ Args: {
26957
+ p_group_key: string;
26958
+ };
26959
+ Returns: string;
26960
+ };
26961
+ logistics_order_mergeable: {
26962
+ Args: {
26963
+ p_order_id: string;
26964
+ };
26965
+ Returns: boolean;
26966
+ };
24660
26967
  logistics_order_overview: {
24661
26968
  Args: {
24662
26969
  p_from?: string;
@@ -24688,6 +26995,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24688
26995
  };
24689
26996
  Returns: boolean;
24690
26997
  };
26998
+ logistics_packing_autofix: {
26999
+ Args: {
27000
+ p_limit?: number;
27001
+ };
27002
+ Returns: number;
27003
+ };
27004
+ logistics_packing_block_reason: {
27005
+ Args: {
27006
+ p_order_id: string;
27007
+ p_order_item_id: string;
27008
+ };
27009
+ Returns: string;
27010
+ };
27011
+ logistics_packing_dismiss: {
27012
+ Args: {
27013
+ p_id: string;
27014
+ p_note?: string;
27015
+ };
27016
+ Returns: boolean;
27017
+ };
27018
+ logistics_packing_overview: {
27019
+ Args: never;
27020
+ Returns: {
27021
+ beoordelen: number;
27022
+ herstelbaar: number;
27023
+ laatst_gemeten: string;
27024
+ laatst_hersteld: string;
27025
+ open_totaal: number;
27026
+ orders: number;
27027
+ oudste_seconden: number;
27028
+ producten: number;
27029
+ }[];
27030
+ };
27031
+ logistics_packing_reconcile: {
27032
+ Args: {
27033
+ p_fix_limit?: number;
27034
+ p_scan_limit?: number;
27035
+ };
27036
+ Returns: {
27037
+ beoordelen: number;
27038
+ gevonden: number;
27039
+ hersteld: number;
27040
+ }[];
27041
+ };
27042
+ logistics_packing_scan: {
27043
+ Args: {
27044
+ p_limit?: number;
27045
+ };
27046
+ Returns: number;
27047
+ };
27048
+ logistics_packing_set_manual: {
27049
+ Args: {
27050
+ p_manual?: boolean;
27051
+ p_order_item_id: string;
27052
+ };
27053
+ Returns: boolean;
27054
+ };
24691
27055
  logistics_parse_pickup: {
24692
27056
  Args: {
24693
27057
  p_value: string;
@@ -24781,6 +27145,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24781
27145
  order_id: string;
24782
27146
  }[];
24783
27147
  };
27148
+ logistics_plan_defer: {
27149
+ Args: {
27150
+ p_id: string;
27151
+ };
27152
+ Returns: undefined;
27153
+ };
24784
27154
  logistics_plan_enqueue: {
24785
27155
  Args: {
24786
27156
  p_order_id: string;
@@ -24794,6 +27164,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24794
27164
  };
24795
27165
  Returns: boolean;
24796
27166
  };
27167
+ logistics_plan_error_class: {
27168
+ Args: {
27169
+ p_error: string;
27170
+ };
27171
+ Returns: string;
27172
+ };
27173
+ logistics_plan_error_text: {
27174
+ Args: {
27175
+ p_error: string;
27176
+ };
27177
+ Returns: string;
27178
+ };
24797
27179
  logistics_plan_finish: {
24798
27180
  Args: {
24799
27181
  p_error?: string;
@@ -24822,6 +27204,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24822
27204
  Args: never;
24823
27205
  Returns: undefined;
24824
27206
  };
27207
+ logistics_plan_lock_acquire: {
27208
+ Args: {
27209
+ _key: string;
27210
+ _owner?: string;
27211
+ _ttl_seconds?: number;
27212
+ };
27213
+ Returns: boolean;
27214
+ };
27215
+ logistics_plan_lock_release: {
27216
+ Args: {
27217
+ _key: string;
27218
+ _owner?: string;
27219
+ };
27220
+ Returns: undefined;
27221
+ };
24825
27222
  logistics_plan_progress: {
24826
27223
  Args: {
24827
27224
  p_refs: string[];
@@ -24836,14 +27233,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24836
27233
  unit_ref: string;
24837
27234
  }[];
24838
27235
  };
27236
+ logistics_plan_progress_pct: {
27237
+ Args: {
27238
+ p_order_id: string;
27239
+ };
27240
+ Returns: number;
27241
+ };
24839
27242
  logistics_plan_prune: {
24840
27243
  Args: never;
24841
27244
  Returns: number;
24842
27245
  };
27246
+ logistics_plan_queue_list: {
27247
+ Args: {
27248
+ p_limit?: number;
27249
+ };
27250
+ Returns: {
27251
+ attempts: number;
27252
+ claimed_at: string;
27253
+ customer_name: string;
27254
+ enqueued_at: string;
27255
+ error_class: string;
27256
+ error_raw: string;
27257
+ error_text: string;
27258
+ id: string;
27259
+ max_attempts: number;
27260
+ next_attempt_at: string;
27261
+ order_created_at: string;
27262
+ order_id: string;
27263
+ order_number: string;
27264
+ progress_pct: number;
27265
+ reason: string;
27266
+ stand: string;
27267
+ status: string;
27268
+ updated_at: string;
27269
+ }[];
27270
+ };
24843
27271
  logistics_plan_release_stale: {
24844
27272
  Args: never;
24845
27273
  Returns: number;
24846
27274
  };
27275
+ logistics_plan_reset_queue: {
27276
+ Args: {
27277
+ p_scope?: string;
27278
+ };
27279
+ Returns: number;
27280
+ };
24847
27281
  logistics_plan_retry: {
24848
27282
  Args: {
24849
27283
  p_order_ids: string[];
@@ -24863,6 +27297,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24863
27297
  };
24864
27298
  Returns: import("./types").Json;
24865
27299
  };
27300
+ logistics_plan_timeout_running: {
27301
+ Args: never;
27302
+ Returns: number;
27303
+ };
27304
+ logistics_planner_cart_snapshot: {
27305
+ Args: {
27306
+ p_buffer_id: string;
27307
+ p_order_id: string;
27308
+ };
27309
+ Returns: import("./types").Json;
27310
+ };
27311
+ logistics_planner_diff_mode: {
27312
+ Args: never;
27313
+ Returns: string;
27314
+ };
27315
+ logistics_planner_diff_prune: {
27316
+ Args: never;
27317
+ Returns: number;
27318
+ };
24866
27319
  logistics_prepare_pick_documents: {
24867
27320
  Args: {
24868
27321
  p_limit?: number;
@@ -24873,6 +27326,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24873
27326
  Args: never;
24874
27327
  Returns: number;
24875
27328
  };
27329
+ logistics_prune_cron_history: {
27330
+ Args: {
27331
+ p_days?: number;
27332
+ };
27333
+ Returns: number;
27334
+ };
24876
27335
  logistics_prune_handled_pick_queue: {
24877
27336
  Args: never;
24878
27337
  Returns: number;
@@ -24909,6 +27368,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24909
27368
  Args: never;
24910
27369
  Returns: import("./types").Json;
24911
27370
  };
27371
+ logistics_recalc_tick_kick: {
27372
+ Args: never;
27373
+ Returns: number;
27374
+ };
27375
+ logistics_reconcile_missing_plan_queue: {
27376
+ Args: never;
27377
+ Returns: number;
27378
+ };
24912
27379
  logistics_refresh_pick_queue_status: {
24913
27380
  Args: {
24914
27381
  p_ref: string;
@@ -24939,6 +27406,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24939
27406
  };
24940
27407
  Returns: import("./types").Json;
24941
27408
  };
27409
+ logistics_replan_clear_foreign_cart_items: {
27410
+ Args: {
27411
+ p_order_id: string;
27412
+ p_reason: string;
27413
+ };
27414
+ Returns: import("./types").Json;
27415
+ };
27416
+ logistics_replan_order_journey: {
27417
+ Args: {
27418
+ p_order_ref: string;
27419
+ };
27420
+ Returns: import("./types").Json;
27421
+ } | {
27422
+ Args: {
27423
+ p_order_ref: string;
27424
+ p_reason: string;
27425
+ };
27426
+ Returns: import("./types").Json;
27427
+ };
24942
27428
  logistics_report_delay: {
24943
27429
  Args: {
24944
27430
  p_expected_date?: string;
@@ -24983,6 +27469,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24983
27469
  };
24984
27470
  Returns: import("./types").Json;
24985
27471
  };
27472
+ logistics_reserved_stock_nightly: {
27473
+ Args: never;
27474
+ Returns: undefined;
27475
+ };
24986
27476
  logistics_resolve_pick_document: {
24987
27477
  Args: {
24988
27478
  _is_herprint: boolean;
@@ -25006,7 +27496,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25006
27496
  };
25007
27497
  Returns: import("./types").Json;
25008
27498
  };
25009
- logistics_rule_bool: {
27499
+ logistics_retention_days: {
27500
+ Args: {
27501
+ p_key: string;
27502
+ };
27503
+ Returns: number;
27504
+ };
27505
+ logistics_rule_bool: {
25010
27506
  Args: {
25011
27507
  p_default: boolean;
25012
27508
  p_key: string;
@@ -25060,6 +27556,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25060
27556
  logistics_schedule_tasks: {
25061
27557
  Args: never;
25062
27558
  Returns: number;
27559
+ } | {
27560
+ Args: {
27561
+ p_order_ref?: string;
27562
+ };
27563
+ Returns: number;
25063
27564
  };
25064
27565
  logistics_set_order_priority: {
25065
27566
  Args: {
@@ -25083,6 +27584,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25083
27584
  };
25084
27585
  Returns: string;
25085
27586
  };
27587
+ logistics_shipping_note_diagnose: {
27588
+ Args: {
27589
+ p_order_number: string;
27590
+ };
27591
+ Returns: import("./types").Json;
27592
+ };
25086
27593
  logistics_shipping_note_follows_slip: {
25087
27594
  Args: never;
25088
27595
  Returns: boolean;
@@ -25207,6 +27714,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25207
27714
  };
25208
27715
  Returns: number;
25209
27716
  };
27717
+ logistics_task_retention_days: {
27718
+ Args: never;
27719
+ Returns: number;
27720
+ };
27721
+ logistics_tasks_prune: {
27722
+ Args: {
27723
+ p_days?: number;
27724
+ };
27725
+ Returns: number;
27726
+ };
27727
+ logistics_tick: {
27728
+ Args: never;
27729
+ Returns: import("./types").Json;
27730
+ };
25210
27731
  logistics_tick_ping: {
25211
27732
  Args: never;
25212
27733
  Returns: string;
@@ -25230,12 +27751,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25230
27751
  };
25231
27752
  Returns: import("./types").Json;
25232
27753
  };
27754
+ logistics_trace_archive_order: {
27755
+ Args: {
27756
+ p_order_ref: string;
27757
+ p_reason: string;
27758
+ };
27759
+ Returns: number;
27760
+ };
25233
27761
  logistics_trace_batch: {
25234
27762
  Args: {
25235
27763
  p: import("./types").Json;
25236
27764
  };
25237
27765
  Returns: number;
25238
27766
  };
27767
+ logistics_trace_derive: {
27768
+ Args: {
27769
+ p: import("./types").Json;
27770
+ };
27771
+ Returns: number;
27772
+ };
27773
+ logistics_trace_node: {
27774
+ Args: {
27775
+ p_op?: string;
27776
+ p_status?: string;
27777
+ p_table: string;
27778
+ };
27779
+ Returns: string;
27780
+ };
27781
+ logistics_trace_order_journey_start: {
27782
+ Args: {
27783
+ p_order_id: string;
27784
+ p_reason?: string;
27785
+ };
27786
+ Returns: string;
27787
+ };
27788
+ logistics_trace_order_origin: {
27789
+ Args: {
27790
+ p_order_id: string;
27791
+ };
27792
+ Returns: undefined;
27793
+ };
25239
27794
  logistics_trace_order_overview: {
25240
27795
  Args: {
25241
27796
  p_error_class?: string;
@@ -25254,6 +27809,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25254
27809
  };
25255
27810
  Returns: import("./types").Json;
25256
27811
  };
27812
+ logistics_trace_order_step: {
27813
+ Args: {
27814
+ p_class?: string;
27815
+ p_decision?: string;
27816
+ p_error?: string;
27817
+ p_next_step?: string;
27818
+ p_node: string;
27819
+ p_order_id: string;
27820
+ p_reason?: string;
27821
+ p_status: string;
27822
+ p_step: string;
27823
+ };
27824
+ Returns: undefined;
27825
+ };
25257
27826
  logistics_trace_orders: {
25258
27827
  Args: {
25259
27828
  p_limit?: number;
@@ -25263,12 +27832,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25263
27832
  };
25264
27833
  Returns: import("./types").Json;
25265
27834
  };
27835
+ logistics_trace_pick_state: {
27836
+ Args: {
27837
+ p_order_number: string;
27838
+ };
27839
+ Returns: undefined;
27840
+ };
27841
+ logistics_trace_progress: {
27842
+ Args: {
27843
+ p_limit?: number;
27844
+ };
27845
+ Returns: import("./types").Json;
27846
+ };
27847
+ logistics_trace_progress_order: {
27848
+ Args: {
27849
+ p_order_ref: string;
27850
+ };
27851
+ Returns: import("./types").Json;
27852
+ };
25266
27853
  logistics_trace_redact: {
25267
27854
  Args: {
25268
27855
  p: import("./types").Json;
25269
27856
  };
25270
27857
  Returns: import("./types").Json;
25271
27858
  };
27859
+ logistics_trace_source_node: {
27860
+ Args: {
27861
+ p_source: string;
27862
+ };
27863
+ Returns: string;
27864
+ };
27865
+ logistics_trace_step_once: {
27866
+ Args: {
27867
+ p_decision: string;
27868
+ p_next_step?: string;
27869
+ p_node: string;
27870
+ p_order_id: string;
27871
+ p_reason: string;
27872
+ p_status: string;
27873
+ p_step: string;
27874
+ };
27875
+ Returns: undefined;
27876
+ };
27877
+ logistics_trace_stock_check: {
27878
+ Args: {
27879
+ p_order_id: string;
27880
+ };
27881
+ Returns: undefined;
27882
+ };
25272
27883
  logistics_trace_timeline: {
25273
27884
  Args: {
25274
27885
  p_limit?: number;
@@ -25382,6 +27993,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25382
27993
  permission: string;
25383
27994
  }[];
25384
27995
  };
27996
+ next_cart_day_seq: {
27997
+ Args: {
27998
+ p_date: string;
27999
+ };
28000
+ Returns: number;
28001
+ };
25385
28002
  next_manufacture_partij: {
25386
28003
  Args: {
25387
28004
  _tenant_id: string;
@@ -25451,6 +28068,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25451
28068
  };
25452
28069
  Returns: boolean;
25453
28070
  };
28071
+ order_items_duplicate_report: {
28072
+ Args: {
28073
+ _order_ref?: string;
28074
+ };
28075
+ Returns: {
28076
+ distinct_products: number;
28077
+ duplicate_factor: number;
28078
+ lines: number;
28079
+ order_number: string;
28080
+ }[];
28081
+ };
25454
28082
  order_number_prefix: {
25455
28083
  Args: {
25456
28084
  p_custom_fields?: import("./types").Json;
@@ -26234,6 +28862,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26234
28862
  };
26235
28863
  Returns: undefined;
26236
28864
  };
28865
+ planning_apply_schedule_updates: {
28866
+ Args: {
28867
+ _updates: import("./types").Json;
28868
+ };
28869
+ Returns: undefined;
28870
+ };
28871
+ planning_assert_no_overlaps: {
28872
+ Args: never;
28873
+ Returns: undefined;
28874
+ };
28875
+ planning_assert_no_overlaps_for_items: {
28876
+ Args: {
28877
+ _item_ids: string[];
28878
+ };
28879
+ Returns: undefined;
28880
+ };
26237
28881
  planning_cancel_item: {
26238
28882
  Args: {
26239
28883
  _id: string;
@@ -26337,6 +28981,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26337
28981
  Args: never;
26338
28982
  Returns: number;
26339
28983
  };
28984
+ quote_ack_work_order: {
28985
+ Args: {
28986
+ _queue_id: string;
28987
+ _werkbon_id: string;
28988
+ _werkbon_nummer?: string;
28989
+ };
28990
+ Returns: boolean;
28991
+ };
26340
28992
  quote_create_from_source: {
26341
28993
  Args: {
26342
28994
  _payload?: import("./types").Json;
@@ -26345,6 +28997,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26345
28997
  };
26346
28998
  Returns: string;
26347
28999
  };
29000
+ quote_fail_work_order: {
29001
+ Args: {
29002
+ _foutmelding: string;
29003
+ _queue_id: string;
29004
+ };
29005
+ Returns: boolean;
29006
+ };
26348
29007
  quote_get_billable_lines: {
26349
29008
  Args: {
26350
29009
  _quotation_id: string;
@@ -26361,6 +29020,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26361
29020
  Args: never;
26362
29021
  Returns: import("./types").Json;
26363
29022
  };
29023
+ quote_list_pending_work_orders: {
29024
+ Args: {
29025
+ _limit?: number;
29026
+ };
29027
+ Returns: import("./types").Json;
29028
+ };
26364
29029
  quote_list_sources: {
26365
29030
  Args: {
26366
29031
  _limit?: number;
@@ -26368,6 +29033,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26368
29033
  };
26369
29034
  Returns: import("./types").Json;
26370
29035
  };
29036
+ quote_queue_follow_up: {
29037
+ Args: {
29038
+ _offerte_id: string;
29039
+ };
29040
+ Returns: string;
29041
+ };
26371
29042
  recompute_all_reserved_stock: {
26372
29043
  Args: never;
26373
29044
  Returns: undefined;
@@ -26561,6 +29232,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26561
29232
  Args: never;
26562
29233
  Returns: undefined;
26563
29234
  };
29235
+ run_order_auto_invoice_tick: {
29236
+ Args: never;
29237
+ Returns: number;
29238
+ };
26564
29239
  run_print_queue_ticks: {
26565
29240
  Args: never;
26566
29241
  Returns: number;
@@ -26938,6 +29613,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26938
29613
  };
26939
29614
  Returns: number;
26940
29615
  };
29616
+ schedule_floriday_trade_items_reconcile: {
29617
+ Args: {
29618
+ p_apikey: string;
29619
+ p_url: string;
29620
+ };
29621
+ Returns: number;
29622
+ };
26941
29623
  schedule_floriday_trade_items_sync: {
26942
29624
  Args: {
26943
29625
  p_apikey: string;
@@ -27049,6 +29731,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27049
29731
  p_end_time: string;
27050
29732
  };
27051
29733
  Returns: import("./types").Json;
29734
+ } | {
29735
+ Args: {
29736
+ p_end_lat?: number;
29737
+ p_end_lng?: number;
29738
+ p_log_id: string;
29739
+ };
29740
+ Returns: {
29741
+ auto_stop_reason: string | null;
29742
+ auto_stopped: boolean;
29743
+ created_at: string;
29744
+ current_latitude: number | null;
29745
+ current_longitude: number | null;
29746
+ current_position_updated_at: string | null;
29747
+ employee_id: string;
29748
+ end_latitude: number | null;
29749
+ end_longitude: number | null;
29750
+ end_time: string | null;
29751
+ eta_distance_km: number | null;
29752
+ eta_minutes: number | null;
29753
+ eta_updated_at: string | null;
29754
+ hour_category: string | null;
29755
+ id: string;
29756
+ last_reminder_at: string | null;
29757
+ notes: string | null;
29758
+ overtime_hours: number;
29759
+ overtime_type: string | null;
29760
+ regular_hours: number;
29761
+ reminder_count: number;
29762
+ requires_review: boolean;
29763
+ start_latitude: number | null;
29764
+ start_longitude: number | null;
29765
+ start_time: string;
29766
+ travel_cost: number | null;
29767
+ travel_distance_km: number | null;
29768
+ travel_duration_min: number | null;
29769
+ travel_time_minutes: number | null;
29770
+ type: string;
29771
+ updated_at: string;
29772
+ work_order_id: string | null;
29773
+ };
29774
+ SetofOptions: {
29775
+ from: "*";
29776
+ to: "time_logs";
29777
+ isOneToOne: true;
29778
+ isSetofReturn: false;
29779
+ };
27052
29780
  };
27053
29781
  swap_cart_layer_positions: {
27054
29782
  Args: {
@@ -27205,14 +29933,323 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27205
29933
  };
27206
29934
  Returns: undefined;
27207
29935
  };
29936
+ uren_employee_day_hours: {
29937
+ Args: {
29938
+ _day: string;
29939
+ _employee_id: string;
29940
+ };
29941
+ Returns: number;
29942
+ };
27208
29943
  uren_is_beheerder: {
27209
29944
  Args: never;
27210
29945
  Returns: boolean;
27211
29946
  };
29947
+ uren_is_werkdag: {
29948
+ Args: {
29949
+ _date: string;
29950
+ _monteur: string;
29951
+ };
29952
+ Returns: boolean;
29953
+ };
29954
+ uren_korte_afwezigheid_aanvragen: {
29955
+ Args: {
29956
+ _datum: string;
29957
+ _eind: string;
29958
+ _reden: string;
29959
+ _start: string;
29960
+ };
29961
+ Returns: string;
29962
+ };
29963
+ uren_list_medewerkers: {
29964
+ Args: never;
29965
+ Returns: {
29966
+ avatar_url: string;
29967
+ color: string;
29968
+ display_name: string;
29969
+ email: string;
29970
+ hours_fri: number;
29971
+ hours_mon: number;
29972
+ hours_thu: number;
29973
+ hours_tue: number;
29974
+ hours_wed: number;
29975
+ id: string;
29976
+ is_active: boolean;
29977
+ leave_balance_hours: number;
29978
+ persnr: string;
29979
+ phone: string;
29980
+ roles: string[];
29981
+ }[];
29982
+ };
29983
+ uren_list_planner_contacten: {
29984
+ Args: never;
29985
+ Returns: {
29986
+ display_name: string;
29987
+ id: string;
29988
+ phone: string;
29989
+ }[];
29990
+ };
29991
+ uren_maand_afsluiten: {
29992
+ Args: {
29993
+ _maand: string;
29994
+ _monteur: string;
29995
+ };
29996
+ Returns: undefined;
29997
+ };
29998
+ uren_maand_berekenen: {
29999
+ Args: {
30000
+ _maand: string;
30001
+ _monteur: string;
30002
+ };
30003
+ Returns: import("./types").Json;
30004
+ };
30005
+ uren_maand_corrigeren: {
30006
+ Args: {
30007
+ _maand: string;
30008
+ _monteur: string;
30009
+ _overuren_minuten: number;
30010
+ _reden: string;
30011
+ };
30012
+ Returns: undefined;
30013
+ };
30014
+ uren_mijn_contracturen: {
30015
+ Args: never;
30016
+ Returns: number;
30017
+ };
30018
+ uren_mijn_vakantiesaldo: {
30019
+ Args: never;
30020
+ Returns: number;
30021
+ };
27212
30022
  uren_my_monteur_id: {
27213
30023
  Args: never;
27214
30024
  Returns: string;
27215
30025
  };
30026
+ uren_planning_dagagenda: {
30027
+ Args: {
30028
+ _tot: string;
30029
+ _van: string;
30030
+ };
30031
+ Returns: {
30032
+ end_at: string;
30033
+ id: string;
30034
+ is_tweede_man: boolean;
30035
+ notes: string;
30036
+ start_at: string;
30037
+ status: Database["public"]["Enums"]["planning_item_status"];
30038
+ werkbon_id: string;
30039
+ }[];
30040
+ };
30041
+ uren_set_planning_item_status: {
30042
+ Args: {
30043
+ _id: string;
30044
+ _status: Database["public"]["Enums"]["planning_item_status"];
30045
+ };
30046
+ Returns: undefined;
30047
+ };
30048
+ uren_set_planning_status: {
30049
+ Args: {
30050
+ p_status: Database["public"]["Enums"]["planning_item_status"];
30051
+ p_werkbon_id: string;
30052
+ };
30053
+ Returns: number;
30054
+ };
30055
+ uren_spiegel_bezig: {
30056
+ Args: never;
30057
+ Returns: boolean;
30058
+ };
30059
+ uren_standaardweek_beoordelen: {
30060
+ Args: {
30061
+ _goedkeuren: boolean;
30062
+ _id: string;
30063
+ _reden?: string;
30064
+ };
30065
+ Returns: undefined;
30066
+ };
30067
+ uren_standaardweek_doorzetten: {
30068
+ Args: {
30069
+ _monteur: string;
30070
+ };
30071
+ Returns: undefined;
30072
+ };
30073
+ uren_standaardweek_instellen: {
30074
+ Args: {
30075
+ _dagen: import("./types").Json;
30076
+ };
30077
+ Returns: string;
30078
+ };
30079
+ uren_standaardweek_toepassen: {
30080
+ Args: {
30081
+ _dagen: import("./types").Json;
30082
+ _monteur: string;
30083
+ };
30084
+ Returns: undefined;
30085
+ };
30086
+ uren_stop_time_log: {
30087
+ Args: {
30088
+ p_employee_id: string;
30089
+ p_end_lat?: number;
30090
+ p_end_lng?: number;
30091
+ p_end_time: string;
30092
+ };
30093
+ Returns: import("./types").Json;
30094
+ };
30095
+ uren_switch_time_log: {
30096
+ Args: {
30097
+ p_employee_id: string;
30098
+ p_start_lat?: number;
30099
+ p_start_lng?: number;
30100
+ p_type: string;
30101
+ p_work_order_id?: string;
30102
+ };
30103
+ Returns: import("./types").Json;
30104
+ };
30105
+ uren_sync_sick_time_off: {
30106
+ Args: {
30107
+ _period_id: string;
30108
+ };
30109
+ Returns: number;
30110
+ };
30111
+ uren_vakantie_aanvragen: {
30112
+ Args: {
30113
+ _end_date: string;
30114
+ _hours?: number;
30115
+ _start_date: string;
30116
+ };
30117
+ Returns: string;
30118
+ };
30119
+ uren_vakantiedag_wijzigen: {
30120
+ Args: {
30121
+ _date: string;
30122
+ };
30123
+ Returns: string;
30124
+ };
30125
+ uren_vakantiesaldo_uren: {
30126
+ Args: {
30127
+ _monteur: string;
30128
+ };
30129
+ Returns: number;
30130
+ };
30131
+ uren_week_start: {
30132
+ Args: {
30133
+ _datum: string;
30134
+ };
30135
+ Returns: string;
30136
+ };
30137
+ uren_werkweek_opsturen: {
30138
+ Args: {
30139
+ _week_start: string;
30140
+ };
30141
+ Returns: {
30142
+ approved_at: string | null;
30143
+ approved_by: string | null;
30144
+ contract_hours: number;
30145
+ created_at: string;
30146
+ employee_id: string;
30147
+ id: string;
30148
+ locked: boolean;
30149
+ monteur_toelichting: string | null;
30150
+ notes: string | null;
30151
+ planned_hours: number;
30152
+ status: string;
30153
+ submitted_at: string | null;
30154
+ updated_at: string;
30155
+ variance_hours: number;
30156
+ week_start: string;
30157
+ };
30158
+ SetofOptions: {
30159
+ from: "*";
30160
+ to: "time_log_week_approvals";
30161
+ isOneToOne: true;
30162
+ isSetofReturn: false;
30163
+ };
30164
+ } | {
30165
+ Args: {
30166
+ _vrije_dagen?: string[];
30167
+ _week_start: string;
30168
+ };
30169
+ Returns: {
30170
+ approved_at: string | null;
30171
+ approved_by: string | null;
30172
+ contract_hours: number;
30173
+ created_at: string;
30174
+ employee_id: string;
30175
+ id: string;
30176
+ locked: boolean;
30177
+ monteur_toelichting: string | null;
30178
+ notes: string | null;
30179
+ planned_hours: number;
30180
+ status: string;
30181
+ submitted_at: string | null;
30182
+ updated_at: string;
30183
+ variance_hours: number;
30184
+ week_start: string;
30185
+ };
30186
+ SetofOptions: {
30187
+ from: "*";
30188
+ to: "time_log_week_approvals";
30189
+ isOneToOne: true;
30190
+ isSetofReturn: false;
30191
+ };
30192
+ } | {
30193
+ Args: {
30194
+ _toelichting?: string;
30195
+ _vrije_dagen?: string[];
30196
+ _week_start: string;
30197
+ };
30198
+ Returns: {
30199
+ approved_at: string | null;
30200
+ approved_by: string | null;
30201
+ contract_hours: number;
30202
+ created_at: string;
30203
+ employee_id: string;
30204
+ id: string;
30205
+ locked: boolean;
30206
+ monteur_toelichting: string | null;
30207
+ notes: string | null;
30208
+ planned_hours: number;
30209
+ status: string;
30210
+ submitted_at: string | null;
30211
+ updated_at: string;
30212
+ variance_hours: number;
30213
+ week_start: string;
30214
+ };
30215
+ SetofOptions: {
30216
+ from: "*";
30217
+ to: "time_log_week_approvals";
30218
+ isOneToOne: true;
30219
+ isSetofReturn: false;
30220
+ };
30221
+ };
30222
+ vakantie_dagen_gebruikt: {
30223
+ Args: {
30224
+ _user_id: string;
30225
+ _year: number;
30226
+ };
30227
+ Returns: number;
30228
+ };
30229
+ vakantie_saldo: {
30230
+ Args: {
30231
+ _user_id: string;
30232
+ _year?: number;
30233
+ };
30234
+ Returns: {
30235
+ day_hours: number;
30236
+ entitlement_days: number;
30237
+ remaining_days: number;
30238
+ used_days: number;
30239
+ }[];
30240
+ };
30241
+ vakantie_saldo_overzicht: {
30242
+ Args: {
30243
+ _year?: number;
30244
+ };
30245
+ Returns: {
30246
+ day_hours: number;
30247
+ entitlement_days: number;
30248
+ remaining_days: number;
30249
+ used_days: number;
30250
+ user_id: string;
30251
+ }[];
30252
+ };
27216
30253
  voorraad_cleanup_old_rows: {
27217
30254
  Args: never;
27218
30255
  Returns: import("./types").Json;
@@ -27255,6 +30292,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27255
30292
  };
27256
30293
  Returns: import("./types").Json;
27257
30294
  };
30295
+ wo_list_offerte_requests: {
30296
+ Args: {
30297
+ _status?: string;
30298
+ };
30299
+ Returns: import("./types").Json;
30300
+ };
30301
+ wo_process_offerte_request: {
30302
+ Args: {
30303
+ _queue_id: string;
30304
+ };
30305
+ Returns: import("./types").Json;
30306
+ };
30307
+ wo_reject_offerte_request: {
30308
+ Args: {
30309
+ _queue_id: string;
30310
+ _reden?: string;
30311
+ };
30312
+ Returns: import("./types").Json;
30313
+ };
27258
30314
  wo_set_status: {
27259
30315
  Args: {
27260
30316
  _reason?: string;