@flowselections/logistiek-engine 1.0.53 → 1.0.89

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 (168) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfrondWachtrijCard.d.ts +2 -0
  3. package/dist-lib/components/AfrondWachtrijCard.d.ts.map +1 -0
  4. package/dist-lib/components/AfrondWachtrijCard.js +27 -0
  5. package/dist-lib/components/BeladingsafwijkingenCard.d.ts +2 -0
  6. package/dist-lib/components/BeladingsafwijkingenCard.d.ts.map +1 -0
  7. package/dist-lib/components/BeladingsafwijkingenCard.js +44 -0
  8. package/dist-lib/components/FlowCanvas.d.ts +6 -0
  9. package/dist-lib/components/FlowCanvas.d.ts.map +1 -1
  10. package/dist-lib/components/FlowCanvas.js +79 -18
  11. package/dist-lib/components/FlowOrders.d.ts.map +1 -1
  12. package/dist-lib/components/FlowOrders.js +59 -13
  13. package/dist-lib/components/FlowPage.d.ts.map +1 -1
  14. package/dist-lib/components/FlowPage.js +175 -6
  15. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -1
  16. package/dist-lib/components/GeblokkeerdeOrdersCard.js +21 -2
  17. package/dist-lib/components/KardekkingCard.d.ts +2 -0
  18. package/dist-lib/components/KardekkingCard.d.ts.map +1 -0
  19. package/dist-lib/components/KardekkingCard.js +29 -0
  20. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  21. package/dist-lib/components/LogistiekEnginePage.js +7 -1
  22. package/dist-lib/components/LogistiekEngineQueuePage.d.ts.map +1 -1
  23. package/dist-lib/components/LogistiekEngineQueuePage.js +4 -2
  24. package/dist-lib/components/NodeTracePanel.d.ts +4 -1
  25. package/dist-lib/components/NodeTracePanel.d.ts.map +1 -1
  26. package/dist-lib/components/NodeTracePanel.js +8 -2
  27. package/dist-lib/components/OrderStopBanner.d.ts +9 -2
  28. package/dist-lib/components/OrderStopBanner.d.ts.map +1 -1
  29. package/dist-lib/components/OrderStopBanner.js +27 -13
  30. package/dist-lib/components/OrderTraceDetails.d.ts.map +1 -1
  31. package/dist-lib/components/OrderTraceDetails.js +2 -1
  32. package/dist-lib/components/PlanWachtrijPage.d.ts +2 -0
  33. package/dist-lib/components/PlanWachtrijPage.d.ts.map +1 -0
  34. package/dist-lib/components/PlanWachtrijPage.js +99 -0
  35. package/dist-lib/components/PlannerDiffCard.d.ts +2 -0
  36. package/dist-lib/components/PlannerDiffCard.d.ts.map +1 -0
  37. package/dist-lib/components/PlannerDiffCard.js +25 -0
  38. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  39. package/dist-lib/components/RegiePage.js +21 -13
  40. package/dist-lib/components/TaakGezondheidCard.d.ts +2 -0
  41. package/dist-lib/components/TaakGezondheidCard.d.ts.map +1 -0
  42. package/dist-lib/components/TaakGezondheidCard.js +31 -0
  43. package/dist-lib/hooks/useAfrondWachtrij.d.ts +28 -0
  44. package/dist-lib/hooks/useAfrondWachtrij.d.ts.map +1 -0
  45. package/dist-lib/hooks/useAfrondWachtrij.js +88 -0
  46. package/dist-lib/hooks/useBeladingsafwijkingen.d.ts +39 -0
  47. package/dist-lib/hooks/useBeladingsafwijkingen.d.ts.map +1 -0
  48. package/dist-lib/hooks/useBeladingsafwijkingen.js +119 -0
  49. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +7 -0
  50. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -1
  51. package/dist-lib/hooks/useGeblokkeerdeOrders.js +28 -2
  52. package/dist-lib/hooks/useLogisticsTrace.js +1 -1
  53. package/dist-lib/hooks/useOrderTrace.js +1 -1
  54. package/dist-lib/hooks/useOrderVersies.d.ts.map +1 -1
  55. package/dist-lib/hooks/useOrderVersies.js +17 -3
  56. package/dist-lib/hooks/usePlanWachtrij.d.ts +33 -0
  57. package/dist-lib/hooks/usePlanWachtrij.d.ts.map +1 -0
  58. package/dist-lib/hooks/usePlanWachtrij.js +104 -0
  59. package/dist-lib/hooks/useRecalcJob.js +1 -1
  60. package/dist-lib/hooks/useShippingNoteDiagnose.d.ts +20 -0
  61. package/dist-lib/hooks/useShippingNoteDiagnose.d.ts.map +1 -0
  62. package/dist-lib/hooks/useShippingNoteDiagnose.js +52 -0
  63. package/dist-lib/hooks/useTaakGezondheid.d.ts +16 -0
  64. package/dist-lib/hooks/useTaakGezondheid.d.ts.map +1 -0
  65. package/dist-lib/hooks/useTaakGezondheid.js +43 -0
  66. package/dist-lib/hooks/useWerktijden.js +1 -1
  67. package/dist-lib/hooks/useWerkwijzeStatus.js +1 -1
  68. package/dist-lib/index.d.ts +10 -0
  69. package/dist-lib/index.d.ts.map +1 -1
  70. package/dist-lib/index.js +10 -0
  71. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3147 -159
  72. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  73. package/dist-lib/integrations/supabase/client.server.d.ts +3147 -159
  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/moduleClient.d.ts +3147 -159
  77. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  78. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  79. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  80. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  81. package/dist-lib/integrations/supabase/types.d.ts +3183 -161
  82. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  83. package/dist-lib/lib/attachAuthToken.js +1 -1
  84. package/dist-lib/lib/bufferDecision.test.d.ts +2 -0
  85. package/dist-lib/lib/bufferDecision.test.d.ts.map +1 -0
  86. package/dist-lib/lib/bufferDecision.test.js +104 -0
  87. package/dist-lib/lib/cartCoverage.functions.d.ts +30820 -0
  88. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -0
  89. package/dist-lib/lib/cartCoverage.functions.js +20 -0
  90. package/dist-lib/lib/floridayDocuments.functions.d.ts +8979 -15
  91. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/floridayDocuments.functions.js +5 -5
  93. package/dist-lib/lib/floridayPush.functions.d.ts +3147 -159
  94. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  95. package/dist-lib/lib/floridayPush.functions.js +3 -3
  96. package/dist-lib/lib/flowJourney.d.ts +40 -0
  97. package/dist-lib/lib/flowJourney.d.ts.map +1 -0
  98. package/dist-lib/lib/flowJourney.js +156 -0
  99. package/dist-lib/lib/flowNodes.d.ts +3 -0
  100. package/dist-lib/lib/flowNodes.d.ts.map +1 -1
  101. package/dist-lib/lib/flowNodes.js +6 -0
  102. package/dist-lib/lib/flowRoute.d.ts +11 -1
  103. package/dist-lib/lib/flowRoute.d.ts.map +1 -1
  104. package/dist-lib/lib/flowRoute.js +343 -40
  105. package/dist-lib/lib/flowTree.d.ts +86 -1
  106. package/dist-lib/lib/flowTree.d.ts.map +1 -1
  107. package/dist-lib/lib/flowTree.js +391 -2
  108. package/dist-lib/lib/foutTekst.d.ts +4 -0
  109. package/dist-lib/lib/foutTekst.d.ts.map +1 -0
  110. package/dist-lib/lib/foutTekst.js +43 -0
  111. package/dist-lib/lib/handlers/logistics-tick.server.d.ts +2 -0
  112. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  113. package/dist-lib/lib/handlers/logistics-tick.server.js +56 -0
  114. package/dist-lib/lib/handlers/logistics-tick.test.d.ts +2 -0
  115. package/dist-lib/lib/handlers/logistics-tick.test.d.ts.map +1 -0
  116. package/dist-lib/lib/handlers/logistics-tick.test.js +63 -0
  117. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +14965 -25
  118. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  119. package/dist-lib/lib/loadCarrierPlanning.functions.js +7 -7
  120. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +24 -12
  121. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  122. package/dist-lib/lib/loadCarrierPlanning.server.js +490 -211
  123. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +5986 -10
  124. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -4
  126. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  127. package/dist-lib/lib/logisticsRecalcJob.server.js +17 -2
  128. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +3147 -159
  129. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  130. package/dist-lib/lib/logisticsRecalculate.functions.js +2 -2
  131. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  132. package/dist-lib/lib/modulePrompts.js +3436 -3325
  133. package/dist-lib/lib/nodeTrace.d.ts +4 -0
  134. package/dist-lib/lib/nodeTrace.d.ts.map +1 -1
  135. package/dist-lib/lib/nodeTrace.js +6 -15
  136. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  137. package/dist-lib/lib/planQueue.server.js +24 -3
  138. package/dist-lib/lib/plannerDiff.d.ts +37 -0
  139. package/dist-lib/lib/plannerDiff.d.ts.map +1 -0
  140. package/dist-lib/lib/plannerDiff.functions.d.ts +30821 -0
  141. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -0
  142. package/dist-lib/lib/plannerDiff.functions.js +21 -0
  143. package/dist-lib/lib/plannerDiff.js +74 -0
  144. package/dist-lib/lib/plannerDiff.server.d.ts +5 -0
  145. package/dist-lib/lib/plannerDiff.server.d.ts.map +1 -0
  146. package/dist-lib/lib/plannerDiff.server.js +60 -0
  147. package/dist-lib/lib/plannerDiff.test.d.ts +2 -0
  148. package/dist-lib/lib/plannerDiff.test.d.ts.map +1 -0
  149. package/dist-lib/lib/plannerDiff.test.js +41 -0
  150. package/dist-lib/lib/resolveBuffer.test.d.ts +2 -0
  151. package/dist-lib/lib/resolveBuffer.test.d.ts.map +1 -0
  152. package/dist-lib/lib/resolveBuffer.test.js +38 -0
  153. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  154. package/dist-lib/lib/ruleEngineSchema.js +52 -0
  155. package/dist-lib/lib/stopReden.d.ts +43 -0
  156. package/dist-lib/lib/stopReden.d.ts.map +1 -0
  157. package/dist-lib/lib/stopReden.js +197 -0
  158. package/dist-lib/lib/taskCounts.d.ts +2 -0
  159. package/dist-lib/lib/taskCounts.d.ts.map +1 -0
  160. package/dist-lib/lib/taskCounts.js +15 -0
  161. package/dist-lib/lib/taskCounts.test.d.ts +2 -0
  162. package/dist-lib/lib/taskCounts.test.d.ts.map +1 -0
  163. package/dist-lib/lib/taskCounts.test.js +12 -0
  164. package/dist-lib/lib/trace.server.d.ts.map +1 -1
  165. package/dist-lib/lib/trace.server.js +3 -0
  166. package/dist-lib/lib/vakUitleg.d.ts.map +1 -1
  167. package/dist-lib/lib/vakUitleg.js +2 -1
  168. package/package.json +158 -155
@@ -11,6 +11,7 @@ export type Database = {
11
11
  Row: {
12
12
  auto_print_delivery_note: boolean;
13
13
  auto_process_paused: boolean;
14
+ control_bulk_max_carts: number;
14
15
  created_at: string;
15
16
  extra_pick_days_with_stickers: number;
16
17
  id: string;
@@ -28,6 +29,7 @@ export type Database = {
28
29
  Insert: {
29
30
  auto_print_delivery_note?: boolean;
30
31
  auto_process_paused?: boolean;
32
+ control_bulk_max_carts?: number;
31
33
  created_at?: string;
32
34
  extra_pick_days_with_stickers?: number;
33
35
  id?: string;
@@ -45,6 +47,7 @@ export type Database = {
45
47
  Update: {
46
48
  auto_print_delivery_note?: boolean;
47
49
  auto_process_paused?: boolean;
50
+ control_bulk_max_carts?: number;
48
51
  created_at?: string;
49
52
  extra_pick_days_with_stickers?: number;
50
53
  id?: string;
@@ -1411,6 +1414,7 @@ export type Database = {
1411
1414
  id: string;
1412
1415
  notes: string | null;
1413
1416
  performed_at: string;
1417
+ request_key: string | null;
1414
1418
  rescheduled_count: number;
1415
1419
  stock_consumed_at: string | null;
1416
1420
  total_carts: number;
@@ -1425,6 +1429,7 @@ export type Database = {
1425
1429
  id?: string;
1426
1430
  notes?: string | null;
1427
1431
  performed_at?: string;
1432
+ request_key?: string | null;
1428
1433
  rescheduled_count?: number;
1429
1434
  stock_consumed_at?: string | null;
1430
1435
  total_carts?: number;
@@ -1439,6 +1444,7 @@ export type Database = {
1439
1444
  id?: string;
1440
1445
  notes?: string | null;
1441
1446
  performed_at?: string;
1447
+ request_key?: string | null;
1442
1448
  rescheduled_count?: number;
1443
1449
  stock_consumed_at?: string | null;
1444
1450
  total_carts?: number;
@@ -1451,9 +1457,10 @@ export type Database = {
1451
1457
  Row: {
1452
1458
  assigned_at: string;
1453
1459
  cart_index: number;
1454
- cart_number: string | null;
1460
+ cart_number: string;
1455
1461
  day_seq: number | null;
1456
1462
  delivered_at: string | null;
1463
+ engine_cart_label: string | null;
1457
1464
  id: string;
1458
1465
  order_id: string;
1459
1466
  order_source: string;
@@ -1463,9 +1470,10 @@ export type Database = {
1463
1470
  Insert: {
1464
1471
  assigned_at?: string;
1465
1472
  cart_index: number;
1466
- cart_number?: string | null;
1473
+ cart_number: string;
1467
1474
  day_seq?: number | null;
1468
1475
  delivered_at?: string | null;
1476
+ engine_cart_label?: string | null;
1469
1477
  id?: string;
1470
1478
  order_id: string;
1471
1479
  order_source: string;
@@ -1475,9 +1483,10 @@ export type Database = {
1475
1483
  Update: {
1476
1484
  assigned_at?: string;
1477
1485
  cart_index?: number;
1478
- cart_number?: string | null;
1486
+ cart_number?: string;
1479
1487
  day_seq?: number | null;
1480
1488
  delivered_at?: string | null;
1489
+ engine_cart_label?: string | null;
1481
1490
  id?: string;
1482
1491
  order_id?: string;
1483
1492
  order_source?: string;
@@ -8186,6 +8195,7 @@ export type Database = {
8186
8195
  };
8187
8196
  fust_types: {
8188
8197
  Row: {
8198
+ capacity_units: number | null;
8189
8199
  connection_id: string | null;
8190
8200
  created_at: string;
8191
8201
  custom_package_id: string | null;
@@ -8206,6 +8216,7 @@ export type Database = {
8206
8216
  width_mm: number | null;
8207
8217
  };
8208
8218
  Insert: {
8219
+ capacity_units?: number | null;
8209
8220
  connection_id?: string | null;
8210
8221
  created_at?: string;
8211
8222
  custom_package_id?: string | null;
@@ -8226,6 +8237,7 @@ export type Database = {
8226
8237
  width_mm?: number | null;
8227
8238
  };
8228
8239
  Update: {
8240
+ capacity_units?: number | null;
8229
8241
  connection_id?: string | null;
8230
8242
  created_at?: string;
8231
8243
  custom_package_id?: string | null;
@@ -8462,6 +8474,72 @@ export type Database = {
8462
8474
  };
8463
8475
  Relationships: [];
8464
8476
  };
8477
+ invoice_branding_settings: {
8478
+ Row: {
8479
+ address: string;
8480
+ chamber_of_commerce_number: string;
8481
+ city: string;
8482
+ company_name: string;
8483
+ created_at: string;
8484
+ email: string;
8485
+ email_purpose: string | null;
8486
+ iban: string;
8487
+ logo_path: string | null;
8488
+ payment_term_days: number;
8489
+ phone: string;
8490
+ postal_code: string;
8491
+ primary_color: string;
8492
+ secondary_color: string;
8493
+ show_company_name: boolean;
8494
+ singleton_key: boolean;
8495
+ updated_at: string;
8496
+ vat_identification_number: string;
8497
+ website: string;
8498
+ };
8499
+ Insert: {
8500
+ address?: string;
8501
+ chamber_of_commerce_number?: string;
8502
+ city?: string;
8503
+ company_name?: string;
8504
+ created_at?: string;
8505
+ email?: string;
8506
+ email_purpose?: string | null;
8507
+ iban?: string;
8508
+ logo_path?: string | null;
8509
+ payment_term_days?: number;
8510
+ phone?: string;
8511
+ postal_code?: string;
8512
+ primary_color?: string;
8513
+ secondary_color?: string;
8514
+ show_company_name?: boolean;
8515
+ singleton_key?: boolean;
8516
+ updated_at?: string;
8517
+ vat_identification_number?: string;
8518
+ website?: string;
8519
+ };
8520
+ Update: {
8521
+ address?: string;
8522
+ chamber_of_commerce_number?: string;
8523
+ city?: string;
8524
+ company_name?: string;
8525
+ created_at?: string;
8526
+ email?: string;
8527
+ email_purpose?: string | null;
8528
+ iban?: string;
8529
+ logo_path?: string | null;
8530
+ payment_term_days?: number;
8531
+ phone?: string;
8532
+ postal_code?: string;
8533
+ primary_color?: string;
8534
+ secondary_color?: string;
8535
+ show_company_name?: boolean;
8536
+ singleton_key?: boolean;
8537
+ updated_at?: string;
8538
+ vat_identification_number?: string;
8539
+ website?: string;
8540
+ };
8541
+ Relationships: [];
8542
+ };
8465
8543
  invoice_items: {
8466
8544
  Row: {
8467
8545
  created_at: string;
@@ -8475,6 +8553,7 @@ export type Database = {
8475
8553
  total_cents: number;
8476
8554
  unit: string;
8477
8555
  unit_price_cents: number;
8556
+ vat_rate: number | null;
8478
8557
  };
8479
8558
  Insert: {
8480
8559
  created_at?: string;
@@ -8488,6 +8567,7 @@ export type Database = {
8488
8567
  total_cents?: number;
8489
8568
  unit?: string;
8490
8569
  unit_price_cents?: number;
8570
+ vat_rate?: number | null;
8491
8571
  };
8492
8572
  Update: {
8493
8573
  created_at?: string;
@@ -8501,6 +8581,7 @@ export type Database = {
8501
8581
  total_cents?: number;
8502
8582
  unit?: string;
8503
8583
  unit_price_cents?: number;
8584
+ vat_rate?: number | null;
8504
8585
  };
8505
8586
  Relationships: [
8506
8587
  {
@@ -8754,15 +8835,27 @@ export type Database = {
8754
8835
  };
8755
8836
  invoices: {
8756
8837
  Row: {
8838
+ branding_snapshot: Json | null;
8757
8839
  created_at: string;
8758
8840
  created_by: string | null;
8841
+ customer_address: string | null;
8842
+ customer_attention: string | null;
8843
+ customer_city: string | null;
8759
8844
  customer_id: string | null;
8760
8845
  customer_name: string | null;
8846
+ customer_postal_code: string | null;
8847
+ customer_vat_number: string | null;
8848
+ debtor_number: string | null;
8761
8849
  due_date: string | null;
8850
+ execution_date: string | null;
8762
8851
  id: string;
8763
8852
  invoice_date: string;
8764
8853
  invoice_number: string | null;
8765
8854
  note: string | null;
8855
+ payment_term_days: number;
8856
+ reference: string | null;
8857
+ sent_at: string | null;
8858
+ sent_to: string | null;
8766
8859
  source_number: string | null;
8767
8860
  source_ref: string | null;
8768
8861
  source_type: string;
@@ -8772,17 +8865,30 @@ export type Database = {
8772
8865
  updated_at: string;
8773
8866
  vat_cents: number;
8774
8867
  vat_rate: number;
8868
+ work_address: string | null;
8775
8869
  };
8776
8870
  Insert: {
8871
+ branding_snapshot?: Json | null;
8777
8872
  created_at?: string;
8778
8873
  created_by?: string | null;
8874
+ customer_address?: string | null;
8875
+ customer_attention?: string | null;
8876
+ customer_city?: string | null;
8779
8877
  customer_id?: string | null;
8780
8878
  customer_name?: string | null;
8879
+ customer_postal_code?: string | null;
8880
+ customer_vat_number?: string | null;
8881
+ debtor_number?: string | null;
8781
8882
  due_date?: string | null;
8883
+ execution_date?: string | null;
8782
8884
  id?: string;
8783
8885
  invoice_date?: string;
8784
8886
  invoice_number?: string | null;
8785
8887
  note?: string | null;
8888
+ payment_term_days?: number;
8889
+ reference?: string | null;
8890
+ sent_at?: string | null;
8891
+ sent_to?: string | null;
8786
8892
  source_number?: string | null;
8787
8893
  source_ref?: string | null;
8788
8894
  source_type?: string;
@@ -8792,17 +8898,30 @@ export type Database = {
8792
8898
  updated_at?: string;
8793
8899
  vat_cents?: number;
8794
8900
  vat_rate?: number;
8901
+ work_address?: string | null;
8795
8902
  };
8796
8903
  Update: {
8904
+ branding_snapshot?: Json | null;
8797
8905
  created_at?: string;
8798
8906
  created_by?: string | null;
8907
+ customer_address?: string | null;
8908
+ customer_attention?: string | null;
8909
+ customer_city?: string | null;
8799
8910
  customer_id?: string | null;
8800
8911
  customer_name?: string | null;
8912
+ customer_postal_code?: string | null;
8913
+ customer_vat_number?: string | null;
8914
+ debtor_number?: string | null;
8801
8915
  due_date?: string | null;
8916
+ execution_date?: string | null;
8802
8917
  id?: string;
8803
8918
  invoice_date?: string;
8804
8919
  invoice_number?: string | null;
8805
8920
  note?: string | null;
8921
+ payment_term_days?: number;
8922
+ reference?: string | null;
8923
+ sent_at?: string | null;
8924
+ sent_to?: string | null;
8806
8925
  source_number?: string | null;
8807
8926
  source_ref?: string | null;
8808
8927
  source_type?: string;
@@ -8812,6 +8931,7 @@ export type Database = {
8812
8931
  updated_at?: string;
8813
8932
  vat_cents?: number;
8814
8933
  vat_rate?: number;
8934
+ work_address?: string | null;
8815
8935
  };
8816
8936
  Relationships: [
8817
8937
  {
@@ -9025,8 +9145,48 @@ export type Database = {
9025
9145
  };
9026
9146
  Relationships: [];
9027
9147
  };
9148
+ itk_handover_afspraken: {
9149
+ Row: {
9150
+ afgesproken_door: string | null;
9151
+ afgesproken_op: string;
9152
+ besluit: string;
9153
+ created_at: string;
9154
+ item: string;
9155
+ modules: string[];
9156
+ sleutel: string;
9157
+ soort: string;
9158
+ updated_at: string;
9159
+ versie_vingerafdruk: string;
9160
+ };
9161
+ Insert: {
9162
+ afgesproken_door?: string | null;
9163
+ afgesproken_op?: string;
9164
+ besluit?: string;
9165
+ created_at?: string;
9166
+ item?: string;
9167
+ modules?: string[];
9168
+ sleutel: string;
9169
+ soort?: string;
9170
+ updated_at?: string;
9171
+ versie_vingerafdruk?: string;
9172
+ };
9173
+ Update: {
9174
+ afgesproken_door?: string | null;
9175
+ afgesproken_op?: string;
9176
+ besluit?: string;
9177
+ created_at?: string;
9178
+ item?: string;
9179
+ modules?: string[];
9180
+ sleutel?: string;
9181
+ soort?: string;
9182
+ updated_at?: string;
9183
+ versie_vingerafdruk?: string;
9184
+ };
9185
+ Relationships: [];
9186
+ };
9028
9187
  itk_handover_github_scan: {
9029
9188
  Row: {
9189
+ genegeerd_op: string | null;
9030
9190
  gescand_op: string;
9031
9191
  gevonden: boolean;
9032
9192
  melding: string | null;
@@ -9034,6 +9194,7 @@ export type Database = {
9034
9194
  repo: string;
9035
9195
  };
9036
9196
  Insert: {
9197
+ genegeerd_op?: string | null;
9037
9198
  gescand_op?: string;
9038
9199
  gevonden?: boolean;
9039
9200
  melding?: string | null;
@@ -9041,6 +9202,7 @@ export type Database = {
9041
9202
  repo: string;
9042
9203
  };
9043
9204
  Update: {
9205
+ genegeerd_op?: string | null;
9044
9206
  gescand_op?: string;
9045
9207
  gevonden?: boolean;
9046
9208
  melding?: string | null;
@@ -9049,13 +9211,45 @@ export type Database = {
9049
9211
  };
9050
9212
  Relationships: [];
9051
9213
  };
9214
+ itk_handover_github_voortgang: {
9215
+ Row: {
9216
+ bijgewerkt_op: string;
9217
+ huidige_repo: string | null;
9218
+ id: boolean;
9219
+ klaar: number;
9220
+ loopt: boolean;
9221
+ totaal: number;
9222
+ };
9223
+ Insert: {
9224
+ bijgewerkt_op?: string;
9225
+ huidige_repo?: string | null;
9226
+ id?: boolean;
9227
+ klaar?: number;
9228
+ loopt?: boolean;
9229
+ totaal?: number;
9230
+ };
9231
+ Update: {
9232
+ bijgewerkt_op?: string;
9233
+ huidige_repo?: string | null;
9234
+ id?: boolean;
9235
+ klaar?: number;
9236
+ loopt?: boolean;
9237
+ totaal?: number;
9238
+ };
9239
+ Relationships: [];
9240
+ };
9052
9241
  itk_handover_module_meta: {
9053
9242
  Row: {
9054
9243
  check_aangevraagd_op: string | null;
9055
9244
  check_nodig: boolean;
9056
9245
  check_reden: string | null;
9057
9246
  created_at: string;
9247
+ md_bron: boolean;
9248
+ md_bron_op: string | null;
9249
+ md_bron_pad: string | null;
9058
9250
  module_id: string;
9251
+ nieuw_gezien: boolean;
9252
+ nieuw_gezien_op: string | null;
9059
9253
  project_url: string | null;
9060
9254
  publicatie_url: string | null;
9061
9255
  updated_at: string;
@@ -9065,7 +9259,12 @@ export type Database = {
9065
9259
  check_nodig?: boolean;
9066
9260
  check_reden?: string | null;
9067
9261
  created_at?: string;
9262
+ md_bron?: boolean;
9263
+ md_bron_op?: string | null;
9264
+ md_bron_pad?: string | null;
9068
9265
  module_id: string;
9266
+ nieuw_gezien?: boolean;
9267
+ nieuw_gezien_op?: string | null;
9069
9268
  project_url?: string | null;
9070
9269
  publicatie_url?: string | null;
9071
9270
  updated_at?: string;
@@ -9075,13 +9274,45 @@ export type Database = {
9075
9274
  check_nodig?: boolean;
9076
9275
  check_reden?: string | null;
9077
9276
  created_at?: string;
9277
+ md_bron?: boolean;
9278
+ md_bron_op?: string | null;
9279
+ md_bron_pad?: string | null;
9078
9280
  module_id?: string;
9281
+ nieuw_gezien?: boolean;
9282
+ nieuw_gezien_op?: string | null;
9079
9283
  project_url?: string | null;
9080
9284
  publicatie_url?: string | null;
9081
9285
  updated_at?: string;
9082
9286
  };
9083
9287
  Relationships: [];
9084
9288
  };
9289
+ itk_handover_module_naam: {
9290
+ Row: {
9291
+ bron_repo: string;
9292
+ created_at: string;
9293
+ module_id: string;
9294
+ standaardnaam: string | null;
9295
+ updated_at: string;
9296
+ weergavenaam: string;
9297
+ };
9298
+ Insert: {
9299
+ bron_repo?: string;
9300
+ created_at?: string;
9301
+ module_id: string;
9302
+ standaardnaam?: string | null;
9303
+ updated_at?: string;
9304
+ weergavenaam: string;
9305
+ };
9306
+ Update: {
9307
+ bron_repo?: string;
9308
+ created_at?: string;
9309
+ module_id?: string;
9310
+ standaardnaam?: string | null;
9311
+ updated_at?: string;
9312
+ weergavenaam?: string;
9313
+ };
9314
+ Relationships: [];
9315
+ };
9085
9316
  itk_handover_project_modules: {
9086
9317
  Row: {
9087
9318
  created_at: string;
@@ -9197,6 +9428,7 @@ export type Database = {
9197
9428
  };
9198
9429
  itk_module_handovers: {
9199
9430
  Row: {
9431
+ bekende_risicos: string[];
9200
9432
  bevindingen: string | null;
9201
9433
  bezit_tabellen: string[];
9202
9434
  bron_commit: string | null;
@@ -9215,6 +9447,7 @@ export type Database = {
9215
9447
  inhoud_md: string;
9216
9448
  is_actueel: boolean;
9217
9449
  is_gearchiveerd: boolean;
9450
+ laatst_bevestigd_op: string | null;
9218
9451
  laatst_gecontroleerd_op: string | null;
9219
9452
  module_id: string;
9220
9453
  module_titel: string;
@@ -9224,6 +9457,7 @@ export type Database = {
9224
9457
  versie: number;
9225
9458
  };
9226
9459
  Insert: {
9460
+ bekende_risicos?: string[];
9227
9461
  bevindingen?: string | null;
9228
9462
  bezit_tabellen?: string[];
9229
9463
  bron_commit?: string | null;
@@ -9242,6 +9476,7 @@ export type Database = {
9242
9476
  inhoud_md: string;
9243
9477
  is_actueel?: boolean;
9244
9478
  is_gearchiveerd?: boolean;
9479
+ laatst_bevestigd_op?: string | null;
9245
9480
  laatst_gecontroleerd_op?: string | null;
9246
9481
  module_id: string;
9247
9482
  module_titel: string;
@@ -9251,6 +9486,7 @@ export type Database = {
9251
9486
  versie?: number;
9252
9487
  };
9253
9488
  Update: {
9489
+ bekende_risicos?: string[];
9254
9490
  bevindingen?: string | null;
9255
9491
  bezit_tabellen?: string[];
9256
9492
  bron_commit?: string | null;
@@ -9269,6 +9505,7 @@ export type Database = {
9269
9505
  inhoud_md?: string;
9270
9506
  is_actueel?: boolean;
9271
9507
  is_gearchiveerd?: boolean;
9508
+ laatst_bevestigd_op?: string | null;
9272
9509
  laatst_gecontroleerd_op?: string | null;
9273
9510
  module_id?: string;
9274
9511
  module_titel?: string;
@@ -9406,6 +9643,7 @@ export type Database = {
9406
9643
  quantity: number;
9407
9644
  sort_order: number;
9408
9645
  source: string;
9646
+ unit: string | null;
9409
9647
  unit_price_cents: number;
9410
9648
  updated_at: string;
9411
9649
  };
@@ -9419,6 +9657,7 @@ export type Database = {
9419
9657
  quantity?: number;
9420
9658
  sort_order?: number;
9421
9659
  source?: string;
9660
+ unit?: string | null;
9422
9661
  unit_price_cents?: number;
9423
9662
  updated_at?: string;
9424
9663
  };
@@ -9432,6 +9671,7 @@ export type Database = {
9432
9671
  quantity?: number;
9433
9672
  sort_order?: number;
9434
9673
  source?: string;
9674
+ unit?: string | null;
9435
9675
  unit_price_cents?: number;
9436
9676
  updated_at?: string;
9437
9677
  };
@@ -9458,6 +9698,7 @@ export type Database = {
9458
9698
  created_at: string;
9459
9699
  default_geldigheid_dagen: number;
9460
9700
  default_vat_rate: number;
9701
+ email_purpose: string | null;
9461
9702
  id: string;
9462
9703
  singleton: boolean;
9463
9704
  updated_at: string;
@@ -9467,6 +9708,7 @@ export type Database = {
9467
9708
  created_at?: string;
9468
9709
  default_geldigheid_dagen?: number;
9469
9710
  default_vat_rate?: number;
9711
+ email_purpose?: string | null;
9470
9712
  id?: string;
9471
9713
  singleton?: boolean;
9472
9714
  updated_at?: string;
@@ -9476,14 +9718,104 @@ export type Database = {
9476
9718
  created_at?: string;
9477
9719
  default_geldigheid_dagen?: number;
9478
9720
  default_vat_rate?: number;
9721
+ email_purpose?: string | null;
9479
9722
  id?: string;
9480
9723
  singleton?: boolean;
9481
9724
  updated_at?: string;
9482
9725
  };
9483
9726
  Relationships: [];
9484
9727
  };
9728
+ itk_offerte_voorstel_status: {
9729
+ Row: {
9730
+ ai_concept: Json | null;
9731
+ created_at: string;
9732
+ id: string;
9733
+ offerte_id: string | null;
9734
+ proposal_id: string;
9735
+ seen_at: string | null;
9736
+ updated_at: string;
9737
+ };
9738
+ Insert: {
9739
+ ai_concept?: Json | null;
9740
+ created_at?: string;
9741
+ id?: string;
9742
+ offerte_id?: string | null;
9743
+ proposal_id: string;
9744
+ seen_at?: string | null;
9745
+ updated_at?: string;
9746
+ };
9747
+ Update: {
9748
+ ai_concept?: Json | null;
9749
+ created_at?: string;
9750
+ id?: string;
9751
+ offerte_id?: string | null;
9752
+ proposal_id?: string;
9753
+ seen_at?: string | null;
9754
+ updated_at?: string;
9755
+ };
9756
+ Relationships: [
9757
+ {
9758
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9759
+ columns: ["offerte_id"];
9760
+ isOneToOne: false;
9761
+ referencedRelation: "itk_offertes";
9762
+ referencedColumns: ["id"];
9763
+ }
9764
+ ];
9765
+ };
9766
+ itk_offerte_werkbon_queue: {
9767
+ Row: {
9768
+ bron_werkbon_id: string | null;
9769
+ created_at: string;
9770
+ foutmelding: string | null;
9771
+ id: string;
9772
+ offerte_id: string;
9773
+ payload: Json;
9774
+ status: string;
9775
+ updated_at: string;
9776
+ verwerkt_op: string | null;
9777
+ werkbon_id: string | null;
9778
+ werkbon_nummer: string | null;
9779
+ };
9780
+ Insert: {
9781
+ bron_werkbon_id?: string | null;
9782
+ created_at?: string;
9783
+ foutmelding?: string | null;
9784
+ id?: string;
9785
+ offerte_id: string;
9786
+ payload?: Json;
9787
+ status?: string;
9788
+ updated_at?: string;
9789
+ verwerkt_op?: string | null;
9790
+ werkbon_id?: string | null;
9791
+ werkbon_nummer?: string | null;
9792
+ };
9793
+ Update: {
9794
+ bron_werkbon_id?: string | null;
9795
+ created_at?: string;
9796
+ foutmelding?: string | null;
9797
+ id?: string;
9798
+ offerte_id?: string;
9799
+ payload?: Json;
9800
+ status?: string;
9801
+ updated_at?: string;
9802
+ verwerkt_op?: string | null;
9803
+ werkbon_id?: string | null;
9804
+ werkbon_nummer?: string | null;
9805
+ };
9806
+ Relationships: [
9807
+ {
9808
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9809
+ columns: ["offerte_id"];
9810
+ isOneToOne: false;
9811
+ referencedRelation: "itk_offertes";
9812
+ referencedColumns: ["id"];
9813
+ }
9814
+ ];
9815
+ };
9485
9816
  itk_offertes: {
9486
9817
  Row: {
9818
+ aandachtspunten: string | null;
9487
9819
  ai_generated: boolean;
9488
9820
  approved_at: string | null;
9489
9821
  binnen_mandaat: boolean;
@@ -9499,6 +9831,7 @@ export type Database = {
9499
9831
  notities: string | null;
9500
9832
  offerte_number: string | null;
9501
9833
  omschrijving: string;
9834
+ onderwerp: string | null;
9502
9835
  rejected_at: string | null;
9503
9836
  sent_at: string | null;
9504
9837
  source_number: string | null;
@@ -9511,12 +9844,15 @@ export type Database = {
9511
9844
  valid_until: string | null;
9512
9845
  vat_cents: number;
9513
9846
  vat_rate: number;
9847
+ verzonden_naar: string | null;
9514
9848
  viewed_at: string | null;
9515
9849
  volgnummer: number | null;
9850
+ voorwaarden: string | null;
9516
9851
  werkbon_id: string | null;
9517
9852
  work_location_id: string | null;
9518
9853
  };
9519
9854
  Insert: {
9855
+ aandachtspunten?: string | null;
9520
9856
  ai_generated?: boolean;
9521
9857
  approved_at?: string | null;
9522
9858
  binnen_mandaat?: boolean;
@@ -9532,6 +9868,7 @@ export type Database = {
9532
9868
  notities?: string | null;
9533
9869
  offerte_number?: string | null;
9534
9870
  omschrijving?: string;
9871
+ onderwerp?: string | null;
9535
9872
  rejected_at?: string | null;
9536
9873
  sent_at?: string | null;
9537
9874
  source_number?: string | null;
@@ -9544,12 +9881,15 @@ export type Database = {
9544
9881
  valid_until?: string | null;
9545
9882
  vat_cents?: number;
9546
9883
  vat_rate?: number;
9884
+ verzonden_naar?: string | null;
9547
9885
  viewed_at?: string | null;
9548
9886
  volgnummer?: number | null;
9887
+ voorwaarden?: string | null;
9549
9888
  werkbon_id?: string | null;
9550
9889
  work_location_id?: string | null;
9551
9890
  };
9552
9891
  Update: {
9892
+ aandachtspunten?: string | null;
9553
9893
  ai_generated?: boolean;
9554
9894
  approved_at?: string | null;
9555
9895
  binnen_mandaat?: boolean;
@@ -9565,6 +9905,7 @@ export type Database = {
9565
9905
  notities?: string | null;
9566
9906
  offerte_number?: string | null;
9567
9907
  omschrijving?: string;
9908
+ onderwerp?: string | null;
9568
9909
  rejected_at?: string | null;
9569
9910
  sent_at?: string | null;
9570
9911
  source_number?: string | null;
@@ -9577,8 +9918,10 @@ export type Database = {
9577
9918
  valid_until?: string | null;
9578
9919
  vat_cents?: number;
9579
9920
  vat_rate?: number;
9921
+ verzonden_naar?: string | null;
9580
9922
  viewed_at?: string | null;
9581
9923
  volgnummer?: number | null;
9924
+ voorwaarden?: string | null;
9582
9925
  werkbon_id?: string | null;
9583
9926
  work_location_id?: string | null;
9584
9927
  };
@@ -9764,6 +10107,8 @@ export type Database = {
9764
10107
  };
9765
10108
  leave_requests: {
9766
10109
  Row: {
10110
+ cancellation_requested_at: string | null;
10111
+ cancellation_status: string | null;
9767
10112
  created_at: string;
9768
10113
  decided_at: string | null;
9769
10114
  decided_by: string | null;
@@ -9774,6 +10119,7 @@ export type Database = {
9774
10119
  leave_type: string;
9775
10120
  monteur_id: string | null;
9776
10121
  reason: string | null;
10122
+ reden_afkeur: string | null;
9777
10123
  start_date: string;
9778
10124
  start_time: string | null;
9779
10125
  status: string;
@@ -9781,6 +10127,8 @@ export type Database = {
9781
10127
  user_id: string;
9782
10128
  };
9783
10129
  Insert: {
10130
+ cancellation_requested_at?: string | null;
10131
+ cancellation_status?: string | null;
9784
10132
  created_at?: string;
9785
10133
  decided_at?: string | null;
9786
10134
  decided_by?: string | null;
@@ -9791,6 +10139,7 @@ export type Database = {
9791
10139
  leave_type?: string;
9792
10140
  monteur_id?: string | null;
9793
10141
  reason?: string | null;
10142
+ reden_afkeur?: string | null;
9794
10143
  start_date: string;
9795
10144
  start_time?: string | null;
9796
10145
  status?: string;
@@ -9798,6 +10147,8 @@ export type Database = {
9798
10147
  user_id: string;
9799
10148
  };
9800
10149
  Update: {
10150
+ cancellation_requested_at?: string | null;
10151
+ cancellation_status?: string | null;
9801
10152
  created_at?: string;
9802
10153
  decided_at?: string | null;
9803
10154
  decided_by?: string | null;
@@ -9808,6 +10159,7 @@ export type Database = {
9808
10159
  leave_type?: string;
9809
10160
  monteur_id?: string | null;
9810
10161
  reason?: string | null;
10162
+ reden_afkeur?: string | null;
9811
10163
  start_date?: string;
9812
10164
  start_time?: string | null;
9813
10165
  status?: string;
@@ -10978,6 +11330,54 @@ export type Database = {
10978
11330
  };
10979
11331
  Relationships: [];
10980
11332
  };
11333
+ logistics_order_finalize_queue: {
11334
+ Row: {
11335
+ attempts: number;
11336
+ claimed_at: string | null;
11337
+ created_at: string;
11338
+ finished_at: string | null;
11339
+ last_error: string | null;
11340
+ lease_until: string | null;
11341
+ max_attempts: number;
11342
+ next_attempt_at: string;
11343
+ order_id: string;
11344
+ reason: string | null;
11345
+ requested_at: string;
11346
+ status: string;
11347
+ updated_at: string;
11348
+ };
11349
+ Insert: {
11350
+ attempts?: number;
11351
+ claimed_at?: string | null;
11352
+ created_at?: string;
11353
+ finished_at?: string | null;
11354
+ last_error?: string | null;
11355
+ lease_until?: string | null;
11356
+ max_attempts?: number;
11357
+ next_attempt_at?: string;
11358
+ order_id: string;
11359
+ reason?: string | null;
11360
+ requested_at?: string;
11361
+ status?: string;
11362
+ updated_at?: string;
11363
+ };
11364
+ Update: {
11365
+ attempts?: number;
11366
+ claimed_at?: string | null;
11367
+ created_at?: string;
11368
+ finished_at?: string | null;
11369
+ last_error?: string | null;
11370
+ lease_until?: string | null;
11371
+ max_attempts?: number;
11372
+ next_attempt_at?: string;
11373
+ order_id?: string;
11374
+ reason?: string | null;
11375
+ requested_at?: string;
11376
+ status?: string;
11377
+ updated_at?: string;
11378
+ };
11379
+ Relationships: [];
11380
+ };
10981
11381
  logistics_order_merges: {
10982
11382
  Row: {
10983
11383
  group_key: string;
@@ -11014,6 +11414,72 @@ export type Database = {
11014
11414
  };
11015
11415
  Relationships: [];
11016
11416
  };
11417
+ logistics_packing_deviations: {
11418
+ Row: {
11419
+ auto_fixed_at: string | null;
11420
+ created_at: string;
11421
+ dev_key: string;
11422
+ first_seen_at: string;
11423
+ floriday_packing: Json;
11424
+ human_reason: string | null;
11425
+ id: string;
11426
+ last_seen_at: string;
11427
+ local_packing: Json;
11428
+ needs_human: boolean;
11429
+ order_id: string | null;
11430
+ order_item_id: string | null;
11431
+ order_number: string | null;
11432
+ product_id: string | null;
11433
+ product_name: string | null;
11434
+ resolved_at: string | null;
11435
+ scope: string;
11436
+ trade_item_id: string | null;
11437
+ updated_at: string;
11438
+ };
11439
+ Insert: {
11440
+ auto_fixed_at?: string | null;
11441
+ created_at?: string;
11442
+ dev_key: string;
11443
+ first_seen_at?: string;
11444
+ floriday_packing?: Json;
11445
+ human_reason?: string | null;
11446
+ id?: string;
11447
+ last_seen_at?: string;
11448
+ local_packing?: Json;
11449
+ needs_human?: boolean;
11450
+ order_id?: string | null;
11451
+ order_item_id?: string | null;
11452
+ order_number?: string | null;
11453
+ product_id?: string | null;
11454
+ product_name?: string | null;
11455
+ resolved_at?: string | null;
11456
+ scope: string;
11457
+ trade_item_id?: string | null;
11458
+ updated_at?: string;
11459
+ };
11460
+ Update: {
11461
+ auto_fixed_at?: string | null;
11462
+ created_at?: string;
11463
+ dev_key?: string;
11464
+ first_seen_at?: string;
11465
+ floriday_packing?: Json;
11466
+ human_reason?: string | null;
11467
+ id?: string;
11468
+ last_seen_at?: string;
11469
+ local_packing?: Json;
11470
+ needs_human?: boolean;
11471
+ order_id?: string | null;
11472
+ order_item_id?: string | null;
11473
+ order_number?: string | null;
11474
+ product_id?: string | null;
11475
+ product_name?: string | null;
11476
+ resolved_at?: string | null;
11477
+ scope?: string;
11478
+ trade_item_id?: string | null;
11479
+ updated_at?: string;
11480
+ };
11481
+ Relationships: [];
11482
+ };
11017
11483
  logistics_pick_data_requests: {
11018
11484
  Row: {
11019
11485
  actions: Json;
@@ -11092,12 +11558,36 @@ export type Database = {
11092
11558
  };
11093
11559
  Relationships: [];
11094
11560
  };
11095
- logistics_plan_queue: {
11561
+ logistics_plan_locks: {
11096
11562
  Row: {
11097
- attempts: number;
11098
- claimed_at: string | null;
11099
- enqueued_at: string;
11100
- error: string | null;
11563
+ created_at: string;
11564
+ lock_key: string;
11565
+ locked_until: string;
11566
+ owner: string | null;
11567
+ updated_at: string;
11568
+ };
11569
+ Insert: {
11570
+ created_at?: string;
11571
+ lock_key: string;
11572
+ locked_until: string;
11573
+ owner?: string | null;
11574
+ updated_at?: string;
11575
+ };
11576
+ Update: {
11577
+ created_at?: string;
11578
+ lock_key?: string;
11579
+ locked_until?: string;
11580
+ owner?: string | null;
11581
+ updated_at?: string;
11582
+ };
11583
+ Relationships: [];
11584
+ };
11585
+ logistics_plan_queue: {
11586
+ Row: {
11587
+ attempts: number;
11588
+ claimed_at: string | null;
11589
+ enqueued_at: string;
11590
+ error: string | null;
11101
11591
  id: string;
11102
11592
  next_attempt_at: string;
11103
11593
  order_id: string;
@@ -11230,14 +11720,70 @@ export type Database = {
11230
11720
  };
11231
11721
  Relationships: [];
11232
11722
  };
11723
+ logistics_planner_diff_runs: {
11724
+ Row: {
11725
+ after_snapshot: Json | null;
11726
+ before_snapshot: Json;
11727
+ buffer_id: string | null;
11728
+ carts_after: number | null;
11729
+ carts_before: number | null;
11730
+ compared_at: string | null;
11731
+ created_at: string;
11732
+ differences: Json | null;
11733
+ id: string;
11734
+ identical: boolean | null;
11735
+ mode: string;
11736
+ order_id: string;
11737
+ order_ref: string | null;
11738
+ reason: string | null;
11739
+ status: string;
11740
+ };
11741
+ Insert: {
11742
+ after_snapshot?: Json | null;
11743
+ before_snapshot?: Json;
11744
+ buffer_id?: string | null;
11745
+ carts_after?: number | null;
11746
+ carts_before?: number | null;
11747
+ compared_at?: string | null;
11748
+ created_at?: string;
11749
+ differences?: Json | null;
11750
+ id?: string;
11751
+ identical?: boolean | null;
11752
+ mode: string;
11753
+ order_id: string;
11754
+ order_ref?: string | null;
11755
+ reason?: string | null;
11756
+ status?: string;
11757
+ };
11758
+ Update: {
11759
+ after_snapshot?: Json | null;
11760
+ before_snapshot?: Json;
11761
+ buffer_id?: string | null;
11762
+ carts_after?: number | null;
11763
+ carts_before?: number | null;
11764
+ compared_at?: string | null;
11765
+ created_at?: string;
11766
+ differences?: Json | null;
11767
+ id?: string;
11768
+ identical?: boolean | null;
11769
+ mode?: string;
11770
+ order_id?: string;
11771
+ order_ref?: string | null;
11772
+ reason?: string | null;
11773
+ status?: string;
11774
+ };
11775
+ Relationships: [];
11776
+ };
11233
11777
  logistics_rebuffer_state: {
11234
11778
  Row: {
11235
11779
  created_at: string;
11236
11780
  id: boolean;
11237
11781
  last_checked: number;
11238
11782
  last_duration_ms: number;
11783
+ last_mode: string | null;
11239
11784
  last_run_at: string | null;
11240
11785
  last_updated: number;
11786
+ last_would_change: number | null;
11241
11787
  pending: boolean;
11242
11788
  requested_at: string | null;
11243
11789
  updated_at: string;
@@ -11247,8 +11793,10 @@ export type Database = {
11247
11793
  id?: boolean;
11248
11794
  last_checked?: number;
11249
11795
  last_duration_ms?: number;
11796
+ last_mode?: string | null;
11250
11797
  last_run_at?: string | null;
11251
11798
  last_updated?: number;
11799
+ last_would_change?: number | null;
11252
11800
  pending?: boolean;
11253
11801
  requested_at?: string | null;
11254
11802
  updated_at?: string;
@@ -11258,8 +11806,10 @@ export type Database = {
11258
11806
  id?: boolean;
11259
11807
  last_checked?: number;
11260
11808
  last_duration_ms?: number;
11809
+ last_mode?: string | null;
11261
11810
  last_run_at?: string | null;
11262
11811
  last_updated?: number;
11812
+ last_would_change?: number | null;
11263
11813
  pending?: boolean;
11264
11814
  requested_at?: string | null;
11265
11815
  updated_at?: string;
@@ -12059,6 +12609,129 @@ export type Database = {
12059
12609
  };
12060
12610
  Relationships: [];
12061
12611
  };
12612
+ logistics_trace_events_archive: {
12613
+ Row: {
12614
+ actor: string | null;
12615
+ attempts: number;
12616
+ calc: Json | null;
12617
+ cart_ref: string | null;
12618
+ created_at: string;
12619
+ db_action: string | null;
12620
+ db_new: Json | null;
12621
+ db_old: Json | null;
12622
+ db_record: string | null;
12623
+ db_table: string | null;
12624
+ decision: string | null;
12625
+ duration_ms: number | null;
12626
+ error: string | null;
12627
+ error_class: string | null;
12628
+ external_action: string | null;
12629
+ external_ref: string | null;
12630
+ external_response: Json | null;
12631
+ external_status: string | null;
12632
+ external_system: string | null;
12633
+ id: string;
12634
+ input: Json | null;
12635
+ next_attempt_at: string | null;
12636
+ next_step: string | null;
12637
+ node_id: string | null;
12638
+ order_ref: string | null;
12639
+ order_source: string | null;
12640
+ output: Json | null;
12641
+ phase: string;
12642
+ reads: Json | null;
12643
+ reason: string | null;
12644
+ rule: string | null;
12645
+ slip_ref: string | null;
12646
+ status: string;
12647
+ step: string;
12648
+ superseded_at: string;
12649
+ superseded_reason: string | null;
12650
+ trace_id: string;
12651
+ values_used: Json | null;
12652
+ };
12653
+ Insert: {
12654
+ actor?: string | null;
12655
+ attempts?: number;
12656
+ calc?: Json | null;
12657
+ cart_ref?: string | null;
12658
+ created_at?: string;
12659
+ db_action?: string | null;
12660
+ db_new?: Json | null;
12661
+ db_old?: Json | null;
12662
+ db_record?: string | null;
12663
+ db_table?: string | null;
12664
+ decision?: string | null;
12665
+ duration_ms?: number | null;
12666
+ error?: string | null;
12667
+ error_class?: string | null;
12668
+ external_action?: string | null;
12669
+ external_ref?: string | null;
12670
+ external_response?: Json | null;
12671
+ external_status?: string | null;
12672
+ external_system?: string | null;
12673
+ id?: string;
12674
+ input?: Json | null;
12675
+ next_attempt_at?: string | null;
12676
+ next_step?: string | null;
12677
+ node_id?: string | null;
12678
+ order_ref?: string | null;
12679
+ order_source?: string | null;
12680
+ output?: Json | null;
12681
+ phase: string;
12682
+ reads?: Json | null;
12683
+ reason?: string | null;
12684
+ rule?: string | null;
12685
+ slip_ref?: string | null;
12686
+ status: string;
12687
+ step: string;
12688
+ superseded_at?: string;
12689
+ superseded_reason?: string | null;
12690
+ trace_id?: string;
12691
+ values_used?: Json | null;
12692
+ };
12693
+ Update: {
12694
+ actor?: string | null;
12695
+ attempts?: number;
12696
+ calc?: Json | null;
12697
+ cart_ref?: string | null;
12698
+ created_at?: string;
12699
+ db_action?: string | null;
12700
+ db_new?: Json | null;
12701
+ db_old?: Json | null;
12702
+ db_record?: string | null;
12703
+ db_table?: string | null;
12704
+ decision?: string | null;
12705
+ duration_ms?: number | null;
12706
+ error?: string | null;
12707
+ error_class?: string | null;
12708
+ external_action?: string | null;
12709
+ external_ref?: string | null;
12710
+ external_response?: Json | null;
12711
+ external_status?: string | null;
12712
+ external_system?: string | null;
12713
+ id?: string;
12714
+ input?: Json | null;
12715
+ next_attempt_at?: string | null;
12716
+ next_step?: string | null;
12717
+ node_id?: string | null;
12718
+ order_ref?: string | null;
12719
+ order_source?: string | null;
12720
+ output?: Json | null;
12721
+ phase?: string;
12722
+ reads?: Json | null;
12723
+ reason?: string | null;
12724
+ rule?: string | null;
12725
+ slip_ref?: string | null;
12726
+ status?: string;
12727
+ step?: string;
12728
+ superseded_at?: string;
12729
+ superseded_reason?: string | null;
12730
+ trace_id?: string;
12731
+ values_used?: Json | null;
12732
+ };
12733
+ Relationships: [];
12734
+ };
12062
12735
  logistics_variables: {
12063
12736
  Row: {
12064
12737
  created_at: string;
@@ -12206,6 +12879,7 @@ export type Database = {
12206
12879
  has_attachments: boolean;
12207
12880
  id: string;
12208
12881
  message_id: string | null;
12882
+ preview: string | null;
12209
12883
  profile_id: string | null;
12210
12884
  raw_size: number | null;
12211
12885
  received_at: string | null;
@@ -12229,6 +12903,7 @@ export type Database = {
12229
12903
  has_attachments?: boolean;
12230
12904
  id?: string;
12231
12905
  message_id?: string | null;
12906
+ preview?: string | null;
12232
12907
  profile_id?: string | null;
12233
12908
  raw_size?: number | null;
12234
12909
  received_at?: string | null;
@@ -12252,6 +12927,7 @@ export type Database = {
12252
12927
  has_attachments?: boolean;
12253
12928
  id?: string;
12254
12929
  message_id?: string | null;
12930
+ preview?: string | null;
12255
12931
  profile_id?: string | null;
12256
12932
  raw_size?: number | null;
12257
12933
  received_at?: string | null;
@@ -12287,6 +12963,7 @@ export type Database = {
12287
12963
  };
12288
12964
  mailbox_order_proposals: {
12289
12965
  Row: {
12966
+ ai_ok: boolean | null;
12290
12967
  ai_validation: Json | null;
12291
12968
  confidence: number | null;
12292
12969
  created_at: string;
@@ -12304,6 +12981,7 @@ export type Database = {
12304
12981
  updated_at: string;
12305
12982
  };
12306
12983
  Insert: {
12984
+ ai_ok?: boolean | null;
12307
12985
  ai_validation?: Json | null;
12308
12986
  confidence?: number | null;
12309
12987
  created_at?: string;
@@ -12321,6 +12999,7 @@ export type Database = {
12321
12999
  updated_at?: string;
12322
13000
  };
12323
13001
  Update: {
13002
+ ai_ok?: boolean | null;
12324
13003
  ai_validation?: Json | null;
12325
13004
  confidence?: number | null;
12326
13005
  created_at?: string;
@@ -13163,6 +13842,42 @@ export type Database = {
13163
13842
  };
13164
13843
  Relationships: [];
13165
13844
  };
13845
+ monteur_contracten: {
13846
+ Row: {
13847
+ contract_type: string;
13848
+ created_at: string;
13849
+ days_per_week: number;
13850
+ hours_per_week: number;
13851
+ id: string;
13852
+ updated_at: string;
13853
+ user_id: string;
13854
+ vacation_day_hours: number;
13855
+ vacation_days_per_year: number;
13856
+ };
13857
+ Insert: {
13858
+ contract_type?: string;
13859
+ created_at?: string;
13860
+ days_per_week?: number;
13861
+ hours_per_week?: number;
13862
+ id?: string;
13863
+ updated_at?: string;
13864
+ user_id: string;
13865
+ vacation_day_hours?: number;
13866
+ vacation_days_per_year?: number;
13867
+ };
13868
+ Update: {
13869
+ contract_type?: string;
13870
+ created_at?: string;
13871
+ days_per_week?: number;
13872
+ hours_per_week?: number;
13873
+ id?: string;
13874
+ updated_at?: string;
13875
+ user_id?: string;
13876
+ vacation_day_hours?: number;
13877
+ vacation_days_per_year?: number;
13878
+ };
13879
+ Relationships: [];
13880
+ };
13166
13881
  nmbrs_component_mapping: {
13167
13882
  Row: {
13168
13883
  created_at: string;
@@ -13654,6 +14369,9 @@ export type Database = {
13654
14369
  id: string;
13655
14370
  items: Json;
13656
14371
  notes: string | null;
14372
+ order_creation_error: string | null;
14373
+ order_creation_failed_at: string | null;
14374
+ order_id: string | null;
13657
14375
  order_number: string | null;
13658
14376
  recipient_id: string;
13659
14377
  total_amount: number;
@@ -13668,6 +14386,9 @@ export type Database = {
13668
14386
  id?: string;
13669
14387
  items?: Json;
13670
14388
  notes?: string | null;
14389
+ order_creation_error?: string | null;
14390
+ order_creation_failed_at?: string | null;
14391
+ order_id?: string | null;
13671
14392
  order_number?: string | null;
13672
14393
  recipient_id: string;
13673
14394
  total_amount?: number;
@@ -13682,6 +14403,9 @@ export type Database = {
13682
14403
  id?: string;
13683
14404
  items?: Json;
13684
14405
  notes?: string | null;
14406
+ order_creation_error?: string | null;
14407
+ order_creation_failed_at?: string | null;
14408
+ order_id?: string | null;
13685
14409
  order_number?: string | null;
13686
14410
  recipient_id?: string;
13687
14411
  total_amount?: number;
@@ -13701,6 +14425,13 @@ export type Database = {
13701
14425
  referencedRelation: "customers";
13702
14426
  referencedColumns: ["id"];
13703
14427
  },
14428
+ {
14429
+ foreignKeyName: "offer_orders_order_id_fkey";
14430
+ columns: ["order_id"];
14431
+ isOneToOne: false;
14432
+ referencedRelation: "orders";
14433
+ referencedColumns: ["id"];
14434
+ },
13704
14435
  {
13705
14436
  foreignKeyName: "offer_orders_recipient_id_fkey";
13706
14437
  columns: ["recipient_id"];
@@ -13846,6 +14577,30 @@ export type Database = {
13846
14577
  };
13847
14578
  Relationships: [];
13848
14579
  };
14580
+ order_block_notifications: {
14581
+ Row: {
14582
+ id: string;
14583
+ notified_at: string;
14584
+ order_id: string;
14585
+ reason: string | null;
14586
+ reason_key: string;
14587
+ };
14588
+ Insert: {
14589
+ id?: string;
14590
+ notified_at?: string;
14591
+ order_id: string;
14592
+ reason?: string | null;
14593
+ reason_key: string;
14594
+ };
14595
+ Update: {
14596
+ id?: string;
14597
+ notified_at?: string;
14598
+ order_id?: string;
14599
+ reason?: string | null;
14600
+ reason_key?: string;
14601
+ };
14602
+ Relationships: [];
14603
+ };
13849
14604
  order_buffers: {
13850
14605
  Row: {
13851
14606
  buffer_key: string;
@@ -14332,10 +15087,13 @@ export type Database = {
14332
15087
  id: string;
14333
15088
  layers_per_cart: number | null;
14334
15089
  order_id: string;
15090
+ packing_locked_at: string | null;
15091
+ packing_locked_by: string | null;
14335
15092
  plants_per_crate: number | null;
14336
15093
  product_id: string | null;
14337
15094
  product_name: string;
14338
15095
  quantity: number;
15096
+ source_line_key: string | null;
14339
15097
  unit: string;
14340
15098
  unit_price: number | null;
14341
15099
  };
@@ -14345,10 +15103,13 @@ export type Database = {
14345
15103
  id?: string;
14346
15104
  layers_per_cart?: number | null;
14347
15105
  order_id: string;
15106
+ packing_locked_at?: string | null;
15107
+ packing_locked_by?: string | null;
14348
15108
  plants_per_crate?: number | null;
14349
15109
  product_id?: string | null;
14350
15110
  product_name: string;
14351
15111
  quantity?: number;
15112
+ source_line_key?: string | null;
14352
15113
  unit?: string;
14353
15114
  unit_price?: number | null;
14354
15115
  };
@@ -14358,10 +15119,13 @@ export type Database = {
14358
15119
  id?: string;
14359
15120
  layers_per_cart?: number | null;
14360
15121
  order_id?: string;
15122
+ packing_locked_at?: string | null;
15123
+ packing_locked_by?: string | null;
14361
15124
  plants_per_crate?: number | null;
14362
15125
  product_id?: string | null;
14363
15126
  product_name?: string;
14364
15127
  quantity?: number;
15128
+ source_line_key?: string | null;
14365
15129
  unit?: string;
14366
15130
  unit_price?: number | null;
14367
15131
  };
@@ -15924,39 +16688,235 @@ export type Database = {
15924
16688
  }
15925
16689
  ];
15926
16690
  };
15927
- price_list_rows: {
16691
+ planning_monteur_day_locations: {
15928
16692
  Row: {
15929
- action: string;
15930
16693
  created_at: string;
16694
+ day: string;
16695
+ end_at: string;
15931
16696
  id: string;
15932
- message: string | null;
15933
- parsed: Json;
15934
- price_list_id: string;
15935
- raw: Json;
15936
- row_number: number;
15937
- supplier_product_id: string | null;
16697
+ monteur_id: string;
16698
+ start_from: string;
16699
+ updated_at: string;
15938
16700
  };
15939
16701
  Insert: {
15940
- action?: string;
15941
16702
  created_at?: string;
16703
+ day: string;
16704
+ end_at?: string;
15942
16705
  id?: string;
15943
- message?: string | null;
15944
- parsed?: Json;
15945
- price_list_id: string;
15946
- raw?: Json;
15947
- row_number: number;
15948
- supplier_product_id?: string | null;
16706
+ monteur_id: string;
16707
+ start_from?: string;
16708
+ updated_at?: string;
15949
16709
  };
15950
16710
  Update: {
15951
- action?: string;
15952
16711
  created_at?: string;
16712
+ day?: string;
16713
+ end_at?: string;
15953
16714
  id?: string;
15954
- message?: string | null;
15955
- parsed?: Json;
15956
- price_list_id?: string;
15957
- raw?: Json;
15958
- row_number?: number;
15959
- supplier_product_id?: string | null;
16715
+ monteur_id?: string;
16716
+ start_from?: string;
16717
+ updated_at?: string;
16718
+ };
16719
+ Relationships: [];
16720
+ };
16721
+ planning_monteur_locations: {
16722
+ Row: {
16723
+ created_at: string;
16724
+ default_end: string;
16725
+ default_start: string;
16726
+ end_address: string | null;
16727
+ home_address: string | null;
16728
+ id: string;
16729
+ monteur_id: string;
16730
+ start_address: string | null;
16731
+ updated_at: string;
16732
+ };
16733
+ Insert: {
16734
+ created_at?: string;
16735
+ default_end?: string;
16736
+ default_start?: string;
16737
+ end_address?: string | null;
16738
+ home_address?: string | null;
16739
+ id?: string;
16740
+ monteur_id: string;
16741
+ start_address?: string | null;
16742
+ updated_at?: string;
16743
+ };
16744
+ Update: {
16745
+ created_at?: string;
16746
+ default_end?: string;
16747
+ default_start?: string;
16748
+ end_address?: string | null;
16749
+ home_address?: string | null;
16750
+ id?: string;
16751
+ monteur_id?: string;
16752
+ start_address?: string | null;
16753
+ updated_at?: string;
16754
+ };
16755
+ Relationships: [];
16756
+ };
16757
+ planning_settings: {
16758
+ Row: {
16759
+ company_address: string | null;
16760
+ created_at: string;
16761
+ id: string;
16762
+ singleton: boolean;
16763
+ updated_at: string;
16764
+ };
16765
+ Insert: {
16766
+ company_address?: string | null;
16767
+ created_at?: string;
16768
+ id?: string;
16769
+ singleton?: boolean;
16770
+ updated_at?: string;
16771
+ };
16772
+ Update: {
16773
+ company_address?: string | null;
16774
+ created_at?: string;
16775
+ id?: string;
16776
+ singleton?: boolean;
16777
+ updated_at?: string;
16778
+ };
16779
+ Relationships: [];
16780
+ };
16781
+ planning_travel_legs: {
16782
+ Row: {
16783
+ after_min: number;
16784
+ after_reason: string | null;
16785
+ after_status: string;
16786
+ after_to_address: string | null;
16787
+ before_from_address: string | null;
16788
+ before_min: number;
16789
+ before_reason: string | null;
16790
+ before_status: string;
16791
+ computed_at: string;
16792
+ computed_end_at: string | null;
16793
+ computed_start_at: string | null;
16794
+ created_at: string;
16795
+ id: string;
16796
+ monteur_id: string;
16797
+ planning_item_id: string;
16798
+ shared_after_item_id: string | null;
16799
+ shared_before_item_id: string | null;
16800
+ updated_at: string;
16801
+ };
16802
+ Insert: {
16803
+ after_min?: number;
16804
+ after_reason?: string | null;
16805
+ after_status?: string;
16806
+ after_to_address?: string | null;
16807
+ before_from_address?: string | null;
16808
+ before_min?: number;
16809
+ before_reason?: string | null;
16810
+ before_status?: string;
16811
+ computed_at?: string;
16812
+ computed_end_at?: string | null;
16813
+ computed_start_at?: string | null;
16814
+ created_at?: string;
16815
+ id?: string;
16816
+ monteur_id: string;
16817
+ planning_item_id: string;
16818
+ shared_after_item_id?: string | null;
16819
+ shared_before_item_id?: string | null;
16820
+ updated_at?: string;
16821
+ };
16822
+ Update: {
16823
+ after_min?: number;
16824
+ after_reason?: string | null;
16825
+ after_status?: string;
16826
+ after_to_address?: string | null;
16827
+ before_from_address?: string | null;
16828
+ before_min?: number;
16829
+ before_reason?: string | null;
16830
+ before_status?: string;
16831
+ computed_at?: string;
16832
+ computed_end_at?: string | null;
16833
+ computed_start_at?: string | null;
16834
+ created_at?: string;
16835
+ id?: string;
16836
+ monteur_id?: string;
16837
+ planning_item_id?: string;
16838
+ shared_after_item_id?: string | null;
16839
+ shared_before_item_id?: string | null;
16840
+ updated_at?: string;
16841
+ };
16842
+ Relationships: [
16843
+ {
16844
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16845
+ columns: ["planning_item_id"];
16846
+ isOneToOne: false;
16847
+ referencedRelation: "planning_items";
16848
+ referencedColumns: ["id"];
16849
+ },
16850
+ {
16851
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16852
+ columns: ["planning_item_id"];
16853
+ isOneToOne: false;
16854
+ referencedRelation: "planning_overview";
16855
+ referencedColumns: ["id"];
16856
+ },
16857
+ {
16858
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16859
+ columns: ["shared_after_item_id"];
16860
+ isOneToOne: false;
16861
+ referencedRelation: "planning_items";
16862
+ referencedColumns: ["id"];
16863
+ },
16864
+ {
16865
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16866
+ columns: ["shared_after_item_id"];
16867
+ isOneToOne: false;
16868
+ referencedRelation: "planning_overview";
16869
+ referencedColumns: ["id"];
16870
+ },
16871
+ {
16872
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16873
+ columns: ["shared_before_item_id"];
16874
+ isOneToOne: false;
16875
+ referencedRelation: "planning_items";
16876
+ referencedColumns: ["id"];
16877
+ },
16878
+ {
16879
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16880
+ columns: ["shared_before_item_id"];
16881
+ isOneToOne: false;
16882
+ referencedRelation: "planning_overview";
16883
+ referencedColumns: ["id"];
16884
+ }
16885
+ ];
16886
+ };
16887
+ price_list_rows: {
16888
+ Row: {
16889
+ action: string;
16890
+ created_at: string;
16891
+ id: string;
16892
+ message: string | null;
16893
+ parsed: Json;
16894
+ price_list_id: string;
16895
+ raw: Json;
16896
+ row_number: number;
16897
+ supplier_product_id: string | null;
16898
+ };
16899
+ Insert: {
16900
+ action?: string;
16901
+ created_at?: string;
16902
+ id?: string;
16903
+ message?: string | null;
16904
+ parsed?: Json;
16905
+ price_list_id: string;
16906
+ raw?: Json;
16907
+ row_number: number;
16908
+ supplier_product_id?: string | null;
16909
+ };
16910
+ Update: {
16911
+ action?: string;
16912
+ created_at?: string;
16913
+ id?: string;
16914
+ message?: string | null;
16915
+ parsed?: Json;
16916
+ price_list_id?: string;
16917
+ raw?: Json;
16918
+ row_number?: number;
16919
+ supplier_product_id?: string | null;
15960
16920
  };
15961
16921
  Relationships: [
15962
16922
  {
@@ -17137,6 +18097,8 @@ export type Database = {
17137
18097
  };
17138
18098
  product_load_settings: {
17139
18099
  Row: {
18100
+ build: Json | null;
18101
+ build_status: string;
17140
18102
  created_at: string;
17141
18103
  id: string;
17142
18104
  is_package: boolean;
@@ -17154,6 +18116,8 @@ export type Database = {
17154
18116
  updated_at: string;
17155
18117
  };
17156
18118
  Insert: {
18119
+ build?: Json | null;
18120
+ build_status?: string;
17157
18121
  created_at?: string;
17158
18122
  id?: string;
17159
18123
  is_package?: boolean;
@@ -17171,6 +18135,8 @@ export type Database = {
17171
18135
  updated_at?: string;
17172
18136
  };
17173
18137
  Update: {
18138
+ build?: Json | null;
18139
+ build_status?: string;
17174
18140
  created_at?: string;
17175
18141
  id?: string;
17176
18142
  is_package?: boolean;
@@ -17244,6 +18210,115 @@ export type Database = {
17244
18210
  };
17245
18211
  Relationships: [];
17246
18212
  };
18213
+ product_suppliers: {
18214
+ Row: {
18215
+ created_at: string;
18216
+ id: string;
18217
+ is_preferred: boolean;
18218
+ lead_time_days: number | null;
18219
+ min_order_quantity: number | null;
18220
+ notes: string | null;
18221
+ product_id: string;
18222
+ purchase_price_cents: number | null;
18223
+ supplier_article_number: string | null;
18224
+ supplier_id: string;
18225
+ updated_at: string;
18226
+ };
18227
+ Insert: {
18228
+ created_at?: string;
18229
+ id?: string;
18230
+ is_preferred?: boolean;
18231
+ lead_time_days?: number | null;
18232
+ min_order_quantity?: number | null;
18233
+ notes?: string | null;
18234
+ product_id: string;
18235
+ purchase_price_cents?: number | null;
18236
+ supplier_article_number?: string | null;
18237
+ supplier_id: string;
18238
+ updated_at?: string;
18239
+ };
18240
+ Update: {
18241
+ created_at?: string;
18242
+ id?: string;
18243
+ is_preferred?: boolean;
18244
+ lead_time_days?: number | null;
18245
+ min_order_quantity?: number | null;
18246
+ notes?: string | null;
18247
+ product_id?: string;
18248
+ purchase_price_cents?: number | null;
18249
+ supplier_article_number?: string | null;
18250
+ supplier_id?: string;
18251
+ updated_at?: string;
18252
+ };
18253
+ Relationships: [
18254
+ {
18255
+ foreignKeyName: "product_suppliers_product_id_fkey";
18256
+ columns: ["product_id"];
18257
+ isOneToOne: false;
18258
+ referencedRelation: "logistics_product_dimensions";
18259
+ referencedColumns: ["product_id"];
18260
+ },
18261
+ {
18262
+ foreignKeyName: "product_suppliers_product_id_fkey";
18263
+ columns: ["product_id"];
18264
+ isOneToOne: false;
18265
+ referencedRelation: "products";
18266
+ referencedColumns: ["id"];
18267
+ },
18268
+ {
18269
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
18270
+ columns: ["supplier_id"];
18271
+ isOneToOne: false;
18272
+ referencedRelation: "suppliers";
18273
+ referencedColumns: ["id"];
18274
+ }
18275
+ ];
18276
+ };
18277
+ product_tray_stickers: {
18278
+ Row: {
18279
+ bestand_url: string;
18280
+ bestandsgrootte: number | null;
18281
+ bestandsnaam: string | null;
18282
+ bestandspad: string | null;
18283
+ created_at: string;
18284
+ product_id: string;
18285
+ updated_at: string;
18286
+ };
18287
+ Insert: {
18288
+ bestand_url: string;
18289
+ bestandsgrootte?: number | null;
18290
+ bestandsnaam?: string | null;
18291
+ bestandspad?: string | null;
18292
+ created_at?: string;
18293
+ product_id: string;
18294
+ updated_at?: string;
18295
+ };
18296
+ Update: {
18297
+ bestand_url?: string;
18298
+ bestandsgrootte?: number | null;
18299
+ bestandsnaam?: string | null;
18300
+ bestandspad?: string | null;
18301
+ created_at?: string;
18302
+ product_id?: string;
18303
+ updated_at?: string;
18304
+ };
18305
+ Relationships: [
18306
+ {
18307
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18308
+ columns: ["product_id"];
18309
+ isOneToOne: true;
18310
+ referencedRelation: "logistics_product_dimensions";
18311
+ referencedColumns: ["product_id"];
18312
+ },
18313
+ {
18314
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18315
+ columns: ["product_id"];
18316
+ isOneToOne: true;
18317
+ referencedRelation: "products";
18318
+ referencedColumns: ["id"];
18319
+ }
18320
+ ];
18321
+ };
17247
18322
  products: {
17248
18323
  Row: {
17249
18324
  article_number: string | null;
@@ -17252,6 +18327,8 @@ export type Database = {
17252
18327
  crates_per_layer: number;
17253
18328
  created_at: string;
17254
18329
  custom_fields: Json;
18330
+ floriday_packing_confirmed_at: string | null;
18331
+ floriday_packing_source: string | null;
17255
18332
  floriday_trade_item_id: string | null;
17256
18333
  fust_type_id: string | null;
17257
18334
  id: string;
@@ -17280,6 +18357,8 @@ export type Database = {
17280
18357
  crates_per_layer?: number;
17281
18358
  created_at?: string;
17282
18359
  custom_fields?: Json;
18360
+ floriday_packing_confirmed_at?: string | null;
18361
+ floriday_packing_source?: string | null;
17283
18362
  floriday_trade_item_id?: string | null;
17284
18363
  fust_type_id?: string | null;
17285
18364
  id?: string;
@@ -17308,6 +18387,8 @@ export type Database = {
17308
18387
  crates_per_layer?: number;
17309
18388
  created_at?: string;
17310
18389
  custom_fields?: Json;
18390
+ floriday_packing_confirmed_at?: string | null;
18391
+ floriday_packing_source?: string | null;
17311
18392
  floriday_trade_item_id?: string | null;
17312
18393
  fust_type_id?: string | null;
17313
18394
  id?: string;
@@ -17414,6 +18495,7 @@ export type Database = {
17414
18495
  id: string;
17415
18496
  is_superadmin: boolean;
17416
18497
  notification_preferences: Json;
18498
+ phone: string | null;
17417
18499
  tenant_id: string | null;
17418
18500
  updated_at: string;
17419
18501
  };
@@ -17426,6 +18508,7 @@ export type Database = {
17426
18508
  id: string;
17427
18509
  is_superadmin?: boolean;
17428
18510
  notification_preferences?: Json;
18511
+ phone?: string | null;
17429
18512
  tenant_id?: string | null;
17430
18513
  updated_at?: string;
17431
18514
  };
@@ -17438,6 +18521,7 @@ export type Database = {
17438
18521
  id?: string;
17439
18522
  is_superadmin?: boolean;
17440
18523
  notification_preferences?: Json;
18524
+ phone?: string | null;
17441
18525
  tenant_id?: string | null;
17442
18526
  updated_at?: string;
17443
18527
  };
@@ -19235,40 +20319,52 @@ export type Database = {
19235
20319
  Row: {
19236
20320
  approved_at: string | null;
19237
20321
  approved_by: string | null;
20322
+ contract_hours: number;
19238
20323
  created_at: string;
19239
20324
  employee_id: string;
19240
20325
  id: string;
19241
20326
  locked: boolean;
20327
+ monteur_toelichting: string | null;
19242
20328
  notes: string | null;
20329
+ planned_hours: number;
19243
20330
  status: string;
19244
20331
  submitted_at: string | null;
19245
20332
  updated_at: string;
20333
+ variance_hours: number;
19246
20334
  week_start: string;
19247
20335
  };
19248
20336
  Insert: {
19249
20337
  approved_at?: string | null;
19250
20338
  approved_by?: string | null;
20339
+ contract_hours?: number;
19251
20340
  created_at?: string;
19252
20341
  employee_id: string;
19253
20342
  id?: string;
19254
20343
  locked?: boolean;
20344
+ monteur_toelichting?: string | null;
19255
20345
  notes?: string | null;
20346
+ planned_hours?: number;
19256
20347
  status?: string;
19257
20348
  submitted_at?: string | null;
19258
20349
  updated_at?: string;
20350
+ variance_hours?: number;
19259
20351
  week_start: string;
19260
20352
  };
19261
20353
  Update: {
19262
20354
  approved_at?: string | null;
19263
20355
  approved_by?: string | null;
20356
+ contract_hours?: number;
19264
20357
  created_at?: string;
19265
20358
  employee_id?: string;
19266
20359
  id?: string;
19267
20360
  locked?: boolean;
20361
+ monteur_toelichting?: string | null;
19268
20362
  notes?: string | null;
20363
+ planned_hours?: number;
19269
20364
  status?: string;
19270
20365
  submitted_at?: string | null;
19271
20366
  updated_at?: string;
20367
+ variance_hours?: number;
19272
20368
  week_start?: string;
19273
20369
  };
19274
20370
  Relationships: [
@@ -20578,16 +21674,19 @@ export type Database = {
20578
21674
  Row: {
20579
21675
  active_environment: string;
20580
21676
  id: number;
21677
+ public_base_url: string | null;
20581
21678
  updated_at: string;
20582
21679
  };
20583
21680
  Insert: {
20584
21681
  active_environment?: string;
20585
21682
  id?: number;
21683
+ public_base_url?: string | null;
20586
21684
  updated_at?: string;
20587
21685
  };
20588
21686
  Update: {
20589
21687
  active_environment?: string;
20590
21688
  id?: number;
21689
+ public_base_url?: string | null;
20591
21690
  updated_at?: string;
20592
21691
  };
20593
21692
  Relationships: [];
@@ -20627,6 +21726,45 @@ export type Database = {
20627
21726
  }
20628
21727
  ];
20629
21728
  };
21729
+ uren_beschikbare_dagen: {
21730
+ Row: {
21731
+ bron: string;
21732
+ created_at: string;
21733
+ datum: string;
21734
+ eind_tijd: string | null;
21735
+ half_hour_slots: number[];
21736
+ id: string;
21737
+ monteur_id: string;
21738
+ start_tijd: string | null;
21739
+ updated_at: string;
21740
+ uren: number;
21741
+ };
21742
+ Insert: {
21743
+ bron?: string;
21744
+ created_at?: string;
21745
+ datum: string;
21746
+ eind_tijd?: string | null;
21747
+ half_hour_slots?: number[];
21748
+ id?: string;
21749
+ monteur_id: string;
21750
+ start_tijd?: string | null;
21751
+ updated_at?: string;
21752
+ uren?: number;
21753
+ };
21754
+ Update: {
21755
+ bron?: string;
21756
+ created_at?: string;
21757
+ datum?: string;
21758
+ eind_tijd?: string | null;
21759
+ half_hour_slots?: number[];
21760
+ id?: string;
21761
+ monteur_id?: string;
21762
+ start_tijd?: string | null;
21763
+ updated_at?: string;
21764
+ uren?: number;
21765
+ };
21766
+ Relationships: [];
21767
+ };
20630
21768
  uren_cao_profiles: {
20631
21769
  Row: {
20632
21770
  break_minutes: number | null;
@@ -20768,16 +21906,145 @@ export type Database = {
20768
21906
  };
20769
21907
  Relationships: [];
20770
21908
  };
20771
- uren_settings: {
21909
+ uren_maandafsluitingen: {
20772
21910
  Row: {
20773
- break_minutes: number;
21911
+ afgesloten_at: string | null;
21912
+ afgesloten_door: string | null;
21913
+ contract_minuten: number;
21914
+ correctie_reden: string | null;
20774
21915
  created_at: string;
20775
- daily_threshold_hours: number;
20776
- id: boolean;
20777
- include_travel: boolean;
20778
- min_occupancy_monteurs: number;
20779
- ov02_percentage: number;
20780
- ov03_percentage: number;
21916
+ gecorrigeerd_at: string | null;
21917
+ gecorrigeerd_door: string | null;
21918
+ gewerkte_minuten: number;
21919
+ id: string;
21920
+ maand: string;
21921
+ min_minuten: number;
21922
+ monteur_id: string;
21923
+ netto_verschil_minuten: number;
21924
+ normaal_uitbetaald_minuten: number;
21925
+ omgezet_vakantie_minuten: number;
21926
+ overdracht_vorige_minuten: number;
21927
+ overuren_minuten: number;
21928
+ plus_minuten: number;
21929
+ rest_overuren_minuten: number;
21930
+ status: string;
21931
+ totaal_uitbetaald_minuten: number;
21932
+ updated_at: string;
21933
+ vakantie_uren_bijgeschreven: number;
21934
+ };
21935
+ Insert: {
21936
+ afgesloten_at?: string | null;
21937
+ afgesloten_door?: string | null;
21938
+ contract_minuten?: number;
21939
+ correctie_reden?: string | null;
21940
+ created_at?: string;
21941
+ gecorrigeerd_at?: string | null;
21942
+ gecorrigeerd_door?: string | null;
21943
+ gewerkte_minuten?: number;
21944
+ id?: string;
21945
+ maand: string;
21946
+ min_minuten?: number;
21947
+ monteur_id: string;
21948
+ netto_verschil_minuten?: number;
21949
+ normaal_uitbetaald_minuten?: number;
21950
+ omgezet_vakantie_minuten?: number;
21951
+ overdracht_vorige_minuten?: number;
21952
+ overuren_minuten?: number;
21953
+ plus_minuten?: number;
21954
+ rest_overuren_minuten?: number;
21955
+ status?: string;
21956
+ totaal_uitbetaald_minuten?: number;
21957
+ updated_at?: string;
21958
+ vakantie_uren_bijgeschreven?: number;
21959
+ };
21960
+ Update: {
21961
+ afgesloten_at?: string | null;
21962
+ afgesloten_door?: string | null;
21963
+ contract_minuten?: number;
21964
+ correctie_reden?: string | null;
21965
+ created_at?: string;
21966
+ gecorrigeerd_at?: string | null;
21967
+ gecorrigeerd_door?: string | null;
21968
+ gewerkte_minuten?: number;
21969
+ id?: string;
21970
+ maand?: string;
21971
+ min_minuten?: number;
21972
+ monteur_id?: string;
21973
+ netto_verschil_minuten?: number;
21974
+ normaal_uitbetaald_minuten?: number;
21975
+ omgezet_vakantie_minuten?: number;
21976
+ overdracht_vorige_minuten?: number;
21977
+ overuren_minuten?: number;
21978
+ plus_minuten?: number;
21979
+ rest_overuren_minuten?: number;
21980
+ status?: string;
21981
+ totaal_uitbetaald_minuten?: number;
21982
+ updated_at?: string;
21983
+ vakantie_uren_bijgeschreven?: number;
21984
+ };
21985
+ Relationships: [];
21986
+ };
21987
+ uren_overuren_verklaringen: {
21988
+ Row: {
21989
+ beoordeeld_door: string | null;
21990
+ beoordeeld_op: string | null;
21991
+ created_at: string;
21992
+ datum: string;
21993
+ eind_tijd: string | null;
21994
+ id: string;
21995
+ ingediend_at: string;
21996
+ monteur_id: string;
21997
+ overuren: number;
21998
+ reden_afkeur: string | null;
21999
+ start_tijd: string | null;
22000
+ status: string;
22001
+ toelichting: string;
22002
+ updated_at: string;
22003
+ };
22004
+ Insert: {
22005
+ beoordeeld_door?: string | null;
22006
+ beoordeeld_op?: string | null;
22007
+ created_at?: string;
22008
+ datum: string;
22009
+ eind_tijd?: string | null;
22010
+ id?: string;
22011
+ ingediend_at?: string;
22012
+ monteur_id: string;
22013
+ overuren: number;
22014
+ reden_afkeur?: string | null;
22015
+ start_tijd?: string | null;
22016
+ status?: string;
22017
+ toelichting: string;
22018
+ updated_at?: string;
22019
+ };
22020
+ Update: {
22021
+ beoordeeld_door?: string | null;
22022
+ beoordeeld_op?: string | null;
22023
+ created_at?: string;
22024
+ datum?: string;
22025
+ eind_tijd?: string | null;
22026
+ id?: string;
22027
+ ingediend_at?: string;
22028
+ monteur_id?: string;
22029
+ overuren?: number;
22030
+ reden_afkeur?: string | null;
22031
+ start_tijd?: string | null;
22032
+ status?: string;
22033
+ toelichting?: string;
22034
+ updated_at?: string;
22035
+ };
22036
+ Relationships: [];
22037
+ };
22038
+ uren_settings: {
22039
+ Row: {
22040
+ break_minutes: number;
22041
+ created_at: string;
22042
+ daily_threshold_hours: number;
22043
+ id: boolean;
22044
+ include_travel: boolean;
22045
+ min_occupancy_monteurs: number;
22046
+ ov02_percentage: number;
22047
+ ov03_percentage: number;
20781
22048
  updated_at: string;
20782
22049
  weekly_threshold_hours: number;
20783
22050
  workday_end: string;
@@ -20813,6 +22080,75 @@ export type Database = {
20813
22080
  };
20814
22081
  Relationships: [];
20815
22082
  };
22083
+ uren_standaardweek: {
22084
+ Row: {
22085
+ created_at: string;
22086
+ eind_slot: number;
22087
+ id: string;
22088
+ monteur_id: string;
22089
+ start_slot: number;
22090
+ updated_at: string;
22091
+ weekdag: number;
22092
+ };
22093
+ Insert: {
22094
+ created_at?: string;
22095
+ eind_slot: number;
22096
+ id?: string;
22097
+ monteur_id: string;
22098
+ start_slot: number;
22099
+ updated_at?: string;
22100
+ weekdag: number;
22101
+ };
22102
+ Update: {
22103
+ created_at?: string;
22104
+ eind_slot?: number;
22105
+ id?: string;
22106
+ monteur_id?: string;
22107
+ start_slot?: number;
22108
+ updated_at?: string;
22109
+ weekdag?: number;
22110
+ };
22111
+ Relationships: [];
22112
+ };
22113
+ uren_standaardweek_wijzigingen: {
22114
+ Row: {
22115
+ beoordeeld_door: string | null;
22116
+ beoordeeld_op: string | null;
22117
+ created_at: string;
22118
+ huidig: Json;
22119
+ id: string;
22120
+ monteur_id: string;
22121
+ reden_afkeur: string | null;
22122
+ status: string;
22123
+ updated_at: string;
22124
+ voorstel: Json;
22125
+ };
22126
+ Insert: {
22127
+ beoordeeld_door?: string | null;
22128
+ beoordeeld_op?: string | null;
22129
+ created_at?: string;
22130
+ huidig?: Json;
22131
+ id?: string;
22132
+ monteur_id: string;
22133
+ reden_afkeur?: string | null;
22134
+ status?: string;
22135
+ updated_at?: string;
22136
+ voorstel: Json;
22137
+ };
22138
+ Update: {
22139
+ beoordeeld_door?: string | null;
22140
+ beoordeeld_op?: string | null;
22141
+ created_at?: string;
22142
+ huidig?: Json;
22143
+ id?: string;
22144
+ monteur_id?: string;
22145
+ reden_afkeur?: string | null;
22146
+ status?: string;
22147
+ updated_at?: string;
22148
+ voorstel?: Json;
22149
+ };
22150
+ Relationships: [];
22151
+ };
20816
22152
  uren_tarieven: {
20817
22153
  Row: {
20818
22154
  created_at: string;
@@ -20899,6 +22235,42 @@ export type Database = {
20899
22235
  };
20900
22236
  Relationships: [];
20901
22237
  };
22238
+ uren_tijd_spiegel: {
22239
+ Row: {
22240
+ created_at: string;
22241
+ id: string;
22242
+ time_log_id: string;
22243
+ werkbon_time_log_id: string;
22244
+ };
22245
+ Insert: {
22246
+ created_at?: string;
22247
+ id?: string;
22248
+ time_log_id: string;
22249
+ werkbon_time_log_id: string;
22250
+ };
22251
+ Update: {
22252
+ created_at?: string;
22253
+ id?: string;
22254
+ time_log_id?: string;
22255
+ werkbon_time_log_id?: string;
22256
+ };
22257
+ Relationships: [
22258
+ {
22259
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22260
+ columns: ["time_log_id"];
22261
+ isOneToOne: true;
22262
+ referencedRelation: "time_logs";
22263
+ referencedColumns: ["id"];
22264
+ },
22265
+ {
22266
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22267
+ columns: ["werkbon_time_log_id"];
22268
+ isOneToOne: true;
22269
+ referencedRelation: "werkbon_time_logs";
22270
+ referencedColumns: ["id"];
22271
+ }
22272
+ ];
22273
+ };
20902
22274
  uren_weekstaten: {
20903
22275
  Row: {
20904
22276
  approved_at: string | null;
@@ -20941,6 +22313,33 @@ export type Database = {
20941
22313
  };
20942
22314
  Relationships: [];
20943
22315
  };
22316
+ uren_werktijd_voorkeuren: {
22317
+ Row: {
22318
+ created_at: string;
22319
+ eind_slot: number;
22320
+ id: string;
22321
+ monteur_id: string;
22322
+ start_slot: number;
22323
+ updated_at: string;
22324
+ };
22325
+ Insert: {
22326
+ created_at?: string;
22327
+ eind_slot?: number;
22328
+ id?: string;
22329
+ monteur_id: string;
22330
+ start_slot?: number;
22331
+ updated_at?: string;
22332
+ };
22333
+ Update: {
22334
+ created_at?: string;
22335
+ eind_slot?: number;
22336
+ id?: string;
22337
+ monteur_id?: string;
22338
+ start_slot?: number;
22339
+ updated_at?: string;
22340
+ };
22341
+ Relationships: [];
22342
+ };
20944
22343
  user_module_permissions: {
20945
22344
  Row: {
20946
22345
  created_at: string;
@@ -21000,6 +22399,54 @@ export type Database = {
21000
22399
  }
21001
22400
  ];
21002
22401
  };
22402
+ vakantie_uitbetalingen: {
22403
+ Row: {
22404
+ created_at: string;
22405
+ created_by: string | null;
22406
+ days: number;
22407
+ id: string;
22408
+ note: string | null;
22409
+ updated_at: string;
22410
+ user_id: string;
22411
+ year: number;
22412
+ };
22413
+ Insert: {
22414
+ created_at?: string;
22415
+ created_by?: string | null;
22416
+ days: number;
22417
+ id?: string;
22418
+ note?: string | null;
22419
+ updated_at?: string;
22420
+ user_id: string;
22421
+ year?: number;
22422
+ };
22423
+ Update: {
22424
+ created_at?: string;
22425
+ created_by?: string | null;
22426
+ days?: number;
22427
+ id?: string;
22428
+ note?: string | null;
22429
+ updated_at?: string;
22430
+ user_id?: string;
22431
+ year?: number;
22432
+ };
22433
+ Relationships: [
22434
+ {
22435
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22436
+ columns: ["created_by"];
22437
+ isOneToOne: false;
22438
+ referencedRelation: "profiles";
22439
+ referencedColumns: ["id"];
22440
+ },
22441
+ {
22442
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22443
+ columns: ["user_id"];
22444
+ isOneToOne: false;
22445
+ referencedRelation: "profiles";
22446
+ referencedColumns: ["id"];
22447
+ }
22448
+ ];
22449
+ };
21003
22450
  van_inventories: {
21004
22451
  Row: {
21005
22452
  barcode: string | null;
@@ -21418,6 +22865,44 @@ export type Database = {
21418
22865
  }
21419
22866
  ];
21420
22867
  };
22868
+ werkbon_email_state: {
22869
+ Row: {
22870
+ created_at: string;
22871
+ event_id: string;
22872
+ id: string;
22873
+ is_archived: boolean;
22874
+ is_read: boolean;
22875
+ updated_at: string;
22876
+ werkbon_id: string | null;
22877
+ };
22878
+ Insert: {
22879
+ created_at?: string;
22880
+ event_id: string;
22881
+ id?: string;
22882
+ is_archived?: boolean;
22883
+ is_read?: boolean;
22884
+ updated_at?: string;
22885
+ werkbon_id?: string | null;
22886
+ };
22887
+ Update: {
22888
+ created_at?: string;
22889
+ event_id?: string;
22890
+ id?: string;
22891
+ is_archived?: boolean;
22892
+ is_read?: boolean;
22893
+ updated_at?: string;
22894
+ werkbon_id?: string | null;
22895
+ };
22896
+ Relationships: [
22897
+ {
22898
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
22899
+ columns: ["event_id"];
22900
+ isOneToOne: true;
22901
+ referencedRelation: "email_auth_events";
22902
+ referencedColumns: ["id"];
22903
+ }
22904
+ ];
22905
+ };
21421
22906
  werkbon_export_runs: {
21422
22907
  Row: {
21423
22908
  created_at: string;
@@ -21574,47 +23059,188 @@ export type Database = {
21574
23059
  };
21575
23060
  Relationships: [];
21576
23061
  };
21577
- werkbon_materials: {
23062
+ werkbon_mail_ai_settings: {
21578
23063
  Row: {
21579
- article_number: string | null;
21580
23064
  created_at: string;
21581
- created_by: string | null;
21582
- description: string;
21583
- id: string;
21584
- quantity: number;
21585
- source: string;
21586
- unit: string;
21587
- unit_price_cents: number;
23065
+ id: boolean;
23066
+ required_fields: string[];
23067
+ system_prompt: string;
21588
23068
  updated_at: string;
21589
- werkbon_id: string;
23069
+ updated_by: string | null;
21590
23070
  };
21591
23071
  Insert: {
21592
- article_number?: string | null;
21593
23072
  created_at?: string;
21594
- created_by?: string | null;
21595
- description: string;
21596
- id?: string;
21597
- quantity?: number;
21598
- source?: string;
21599
- unit?: string;
21600
- unit_price_cents?: number;
23073
+ id?: boolean;
23074
+ required_fields?: string[];
23075
+ system_prompt?: string;
21601
23076
  updated_at?: string;
21602
- werkbon_id: string;
23077
+ updated_by?: string | null;
21603
23078
  };
21604
23079
  Update: {
21605
- article_number?: string | null;
21606
23080
  created_at?: string;
21607
- created_by?: string | null;
21608
- description?: string;
21609
- id?: string;
21610
- quantity?: number;
21611
- source?: string;
21612
- unit?: string;
21613
- unit_price_cents?: number;
23081
+ id?: boolean;
23082
+ required_fields?: string[];
23083
+ system_prompt?: string;
21614
23084
  updated_at?: string;
21615
- werkbon_id?: string;
23085
+ updated_by?: string | null;
21616
23086
  };
21617
- Relationships: [
23087
+ Relationships: [];
23088
+ };
23089
+ werkbon_mail_bodies: {
23090
+ Row: {
23091
+ created_at: string;
23092
+ event_id: string;
23093
+ fetch_error: string | null;
23094
+ fetched_at: string | null;
23095
+ html: string | null;
23096
+ updated_at: string;
23097
+ };
23098
+ Insert: {
23099
+ created_at?: string;
23100
+ event_id: string;
23101
+ fetch_error?: string | null;
23102
+ fetched_at?: string | null;
23103
+ html?: string | null;
23104
+ updated_at?: string;
23105
+ };
23106
+ Update: {
23107
+ created_at?: string;
23108
+ event_id?: string;
23109
+ fetch_error?: string | null;
23110
+ fetched_at?: string | null;
23111
+ html?: string | null;
23112
+ updated_at?: string;
23113
+ };
23114
+ Relationships: [];
23115
+ };
23116
+ werkbon_mail_inline_assets: {
23117
+ Row: {
23118
+ content_id: string | null;
23119
+ created_at: string;
23120
+ event_id: string;
23121
+ filename: string | null;
23122
+ id: string;
23123
+ is_inline: boolean;
23124
+ mime_type: string | null;
23125
+ size_bytes: number | null;
23126
+ storage_path: string;
23127
+ };
23128
+ Insert: {
23129
+ content_id?: string | null;
23130
+ created_at?: string;
23131
+ event_id: string;
23132
+ filename?: string | null;
23133
+ id?: string;
23134
+ is_inline?: boolean;
23135
+ mime_type?: string | null;
23136
+ size_bytes?: number | null;
23137
+ storage_path: string;
23138
+ };
23139
+ Update: {
23140
+ content_id?: string | null;
23141
+ created_at?: string;
23142
+ event_id?: string;
23143
+ filename?: string | null;
23144
+ id?: string;
23145
+ is_inline?: boolean;
23146
+ mime_type?: string | null;
23147
+ size_bytes?: number | null;
23148
+ storage_path?: string;
23149
+ };
23150
+ Relationships: [];
23151
+ };
23152
+ werkbon_mail_settings: {
23153
+ Row: {
23154
+ connection_id: string | null;
23155
+ connection_ids: string[];
23156
+ created_at: string;
23157
+ id: boolean;
23158
+ purposes: string[];
23159
+ source: string;
23160
+ updated_at: string;
23161
+ };
23162
+ Insert: {
23163
+ connection_id?: string | null;
23164
+ connection_ids?: string[];
23165
+ created_at?: string;
23166
+ id?: boolean;
23167
+ purposes?: string[];
23168
+ source?: string;
23169
+ updated_at?: string;
23170
+ };
23171
+ Update: {
23172
+ connection_id?: string | null;
23173
+ connection_ids?: string[];
23174
+ created_at?: string;
23175
+ id?: boolean;
23176
+ purposes?: string[];
23177
+ source?: string;
23178
+ updated_at?: string;
23179
+ };
23180
+ Relationships: [];
23181
+ };
23182
+ werkbon_mail_user_settings: {
23183
+ Row: {
23184
+ created_at: string;
23185
+ email_purpose: string | null;
23186
+ updated_at: string;
23187
+ user_id: string;
23188
+ };
23189
+ Insert: {
23190
+ created_at?: string;
23191
+ email_purpose?: string | null;
23192
+ updated_at?: string;
23193
+ user_id: string;
23194
+ };
23195
+ Update: {
23196
+ created_at?: string;
23197
+ email_purpose?: string | null;
23198
+ updated_at?: string;
23199
+ user_id?: string;
23200
+ };
23201
+ Relationships: [];
23202
+ };
23203
+ werkbon_materials: {
23204
+ Row: {
23205
+ article_number: string | null;
23206
+ created_at: string;
23207
+ created_by: string | null;
23208
+ description: string;
23209
+ id: string;
23210
+ quantity: number;
23211
+ source: string;
23212
+ unit: string;
23213
+ unit_price_cents: number;
23214
+ updated_at: string;
23215
+ werkbon_id: string;
23216
+ };
23217
+ Insert: {
23218
+ article_number?: string | null;
23219
+ created_at?: string;
23220
+ created_by?: string | null;
23221
+ description: string;
23222
+ id?: string;
23223
+ quantity?: number;
23224
+ source?: string;
23225
+ unit?: string;
23226
+ unit_price_cents?: number;
23227
+ updated_at?: string;
23228
+ werkbon_id: string;
23229
+ };
23230
+ Update: {
23231
+ article_number?: string | null;
23232
+ created_at?: string;
23233
+ created_by?: string | null;
23234
+ description?: string;
23235
+ id?: string;
23236
+ quantity?: number;
23237
+ source?: string;
23238
+ unit?: string;
23239
+ unit_price_cents?: number;
23240
+ updated_at?: string;
23241
+ werkbon_id?: string;
23242
+ };
23243
+ Relationships: [
21618
23244
  {
21619
23245
  foreignKeyName: "werkbon_materials_werkbon_id_fkey";
21620
23246
  columns: ["werkbon_id"];
@@ -21709,10 +23335,12 @@ export type Database = {
21709
23335
  Row: {
21710
23336
  article_number: string | null;
21711
23337
  artikel_id: string | null;
23338
+ cost_price_cents: number;
21712
23339
  created_at: string;
21713
23340
  gtin: string | null;
21714
23341
  id: string;
21715
23342
  manufacturer: string | null;
23343
+ margin_percent: number | null;
21716
23344
  omschrijving: string;
21717
23345
  package_id: string;
21718
23346
  price_synced_at: string | null;
@@ -21727,10 +23355,12 @@ export type Database = {
21727
23355
  Insert: {
21728
23356
  article_number?: string | null;
21729
23357
  artikel_id?: string | null;
23358
+ cost_price_cents?: number;
21730
23359
  created_at?: string;
21731
23360
  gtin?: string | null;
21732
23361
  id?: string;
21733
23362
  manufacturer?: string | null;
23363
+ margin_percent?: number | null;
21734
23364
  omschrijving: string;
21735
23365
  package_id: string;
21736
23366
  price_synced_at?: string | null;
@@ -21745,10 +23375,12 @@ export type Database = {
21745
23375
  Update: {
21746
23376
  article_number?: string | null;
21747
23377
  artikel_id?: string | null;
23378
+ cost_price_cents?: number;
21748
23379
  created_at?: string;
21749
23380
  gtin?: string | null;
21750
23381
  id?: string;
21751
23382
  manufacturer?: string | null;
23383
+ margin_percent?: number | null;
21752
23384
  omschrijving?: string;
21753
23385
  package_id?: string;
21754
23386
  price_synced_at?: string | null;
@@ -21930,141 +23562,381 @@ export type Database = {
21930
23562
  }
21931
23563
  ];
21932
23564
  };
21933
- werkbon_time_logs: {
23565
+ werkbon_proposal_lines: {
21934
23566
  Row: {
21935
- activity: string;
23567
+ article_number: string | null;
21936
23568
  created_at: string;
21937
- ended_at: string | null;
23569
+ description: string | null;
21938
23570
  id: string;
23571
+ line_type: string;
21939
23572
  note: string | null;
21940
- started_at: string;
21941
- user_id: string;
21942
- werkbon_id: string;
23573
+ package_id: string | null;
23574
+ proposal_id: string;
23575
+ quantity: number | null;
23576
+ sort_order: number;
23577
+ unit: string | null;
23578
+ updated_at: string;
21943
23579
  };
21944
23580
  Insert: {
21945
- activity: string;
23581
+ article_number?: string | null;
21946
23582
  created_at?: string;
21947
- ended_at?: string | null;
23583
+ description?: string | null;
21948
23584
  id?: string;
23585
+ line_type?: string;
21949
23586
  note?: string | null;
21950
- started_at?: string;
21951
- user_id: string;
21952
- werkbon_id: string;
23587
+ package_id?: string | null;
23588
+ proposal_id: string;
23589
+ quantity?: number | null;
23590
+ sort_order?: number;
23591
+ unit?: string | null;
23592
+ updated_at?: string;
21953
23593
  };
21954
23594
  Update: {
21955
- activity?: string;
23595
+ article_number?: string | null;
21956
23596
  created_at?: string;
21957
- ended_at?: string | null;
23597
+ description?: string | null;
21958
23598
  id?: string;
23599
+ line_type?: string;
21959
23600
  note?: string | null;
21960
- started_at?: string;
21961
- user_id?: string;
21962
- werkbon_id?: string;
23601
+ package_id?: string | null;
23602
+ proposal_id?: string;
23603
+ quantity?: number | null;
23604
+ sort_order?: number;
23605
+ unit?: string | null;
23606
+ updated_at?: string;
21963
23607
  };
21964
23608
  Relationships: [
21965
23609
  {
21966
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21967
- columns: ["werkbon_id"];
21968
- isOneToOne: false;
21969
- referencedRelation: "werkbonnen";
21970
- referencedColumns: ["id"];
21971
- },
21972
- {
21973
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21974
- columns: ["werkbon_id"];
23610
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
23611
+ columns: ["proposal_id"];
21975
23612
  isOneToOne: false;
21976
- referencedRelation: "wo_overview";
23613
+ referencedRelation: "werkbon_proposals";
21977
23614
  referencedColumns: ["id"];
21978
23615
  }
21979
23616
  ];
21980
23617
  };
21981
- werkbonnen: {
23618
+ werkbon_proposals: {
21982
23619
  Row: {
21983
- assigned_user_id: string | null;
23620
+ analysed: boolean;
21984
23621
  budget_mandate_cents: number;
21985
23622
  complaint_description: string | null;
23623
+ contact_id: string | null;
21986
23624
  created_at: string;
21987
- created_by: string | null;
23625
+ created_werkbon_id: string | null;
21988
23626
  customer_id: string | null;
23627
+ deadline_date: string | null;
23628
+ estimated_days: number | null;
23629
+ estimated_duration_minutes: number | null;
23630
+ event_id: string;
23631
+ external_id: string | null;
21989
23632
  externe_referentie: string | null;
21990
- extra_costs_cents: number;
21991
- first_time_fix: boolean | null;
23633
+ from_email: string | null;
23634
+ from_name: string | null;
21992
23635
  id: string;
21993
23636
  internal_notes: string | null;
21994
- needs_detail_review: boolean;
21995
- parent_werkbon_id: string | null;
21996
- parsed_payload: Json | null;
21997
- planning_status: string;
21998
- project_number: string | null;
21999
- review_reasons: string[];
23637
+ parsed_payload: Json;
23638
+ received_at: string | null;
23639
+ reviewed_at: string | null;
23640
+ reviewed_by: string | null;
22000
23641
  room_number: string | null;
22001
23642
  scheduled_end_time: string | null;
22002
23643
  scheduled_start_time: string | null;
22003
- sequence_number: number;
22004
- signature_accepted_at: string | null;
22005
- signature_by_user_id: string | null;
22006
- signature_name: string | null;
22007
- source_email_meta: Json | null;
22008
- source_mailbox_message_id: string | null;
22009
- source_pdf_path: string | null;
22010
- source_type: string;
22011
23644
  status: string;
23645
+ subject: string | null;
22012
23646
  technician_id: string | null;
22013
- technician_notes: string | null;
22014
- technician_notes_raw: string | null;
22015
23647
  technician_task_description: string | null;
22016
23648
  updated_at: string;
22017
- version: number;
22018
23649
  work_address: string | null;
22019
23650
  };
22020
23651
  Insert: {
22021
- assigned_user_id?: string | null;
23652
+ analysed?: boolean;
22022
23653
  budget_mandate_cents?: number;
22023
23654
  complaint_description?: string | null;
23655
+ contact_id?: string | null;
22024
23656
  created_at?: string;
22025
- created_by?: string | null;
23657
+ created_werkbon_id?: string | null;
22026
23658
  customer_id?: string | null;
23659
+ deadline_date?: string | null;
23660
+ estimated_days?: number | null;
23661
+ estimated_duration_minutes?: number | null;
23662
+ event_id: string;
23663
+ external_id?: string | null;
22027
23664
  externe_referentie?: string | null;
22028
- extra_costs_cents?: number;
22029
- first_time_fix?: boolean | null;
23665
+ from_email?: string | null;
23666
+ from_name?: string | null;
22030
23667
  id?: string;
22031
23668
  internal_notes?: string | null;
22032
- needs_detail_review?: boolean;
22033
- parent_werkbon_id?: string | null;
22034
- parsed_payload?: Json | null;
22035
- planning_status?: string;
22036
- project_number?: string | null;
22037
- review_reasons?: string[];
23669
+ parsed_payload?: Json;
23670
+ received_at?: string | null;
23671
+ reviewed_at?: string | null;
23672
+ reviewed_by?: string | null;
22038
23673
  room_number?: string | null;
22039
23674
  scheduled_end_time?: string | null;
22040
23675
  scheduled_start_time?: string | null;
22041
- sequence_number: number;
22042
- signature_accepted_at?: string | null;
22043
- signature_by_user_id?: string | null;
22044
- signature_name?: string | null;
22045
- source_email_meta?: Json | null;
22046
- source_mailbox_message_id?: string | null;
22047
- source_pdf_path?: string | null;
22048
- source_type?: string;
22049
23676
  status?: string;
23677
+ subject?: string | null;
22050
23678
  technician_id?: string | null;
22051
- technician_notes?: string | null;
22052
- technician_notes_raw?: string | null;
22053
23679
  technician_task_description?: string | null;
22054
23680
  updated_at?: string;
22055
- version?: number;
22056
23681
  work_address?: string | null;
22057
23682
  };
22058
23683
  Update: {
22059
- assigned_user_id?: string | null;
23684
+ analysed?: boolean;
22060
23685
  budget_mandate_cents?: number;
22061
23686
  complaint_description?: string | null;
23687
+ contact_id?: string | null;
22062
23688
  created_at?: string;
22063
- created_by?: string | null;
23689
+ created_werkbon_id?: string | null;
22064
23690
  customer_id?: string | null;
23691
+ deadline_date?: string | null;
23692
+ estimated_days?: number | null;
23693
+ estimated_duration_minutes?: number | null;
23694
+ event_id?: string;
23695
+ external_id?: string | null;
22065
23696
  externe_referentie?: string | null;
22066
- extra_costs_cents?: number;
22067
- first_time_fix?: boolean | null;
23697
+ from_email?: string | null;
23698
+ from_name?: string | null;
23699
+ id?: string;
23700
+ internal_notes?: string | null;
23701
+ parsed_payload?: Json;
23702
+ received_at?: string | null;
23703
+ reviewed_at?: string | null;
23704
+ reviewed_by?: string | null;
23705
+ room_number?: string | null;
23706
+ scheduled_end_time?: string | null;
23707
+ scheduled_start_time?: string | null;
23708
+ status?: string;
23709
+ subject?: string | null;
23710
+ technician_id?: string | null;
23711
+ technician_task_description?: string | null;
23712
+ updated_at?: string;
23713
+ work_address?: string | null;
23714
+ };
23715
+ Relationships: [];
23716
+ };
23717
+ werkbon_time_logs: {
23718
+ Row: {
23719
+ activity: string;
23720
+ created_at: string;
23721
+ ended_at: string | null;
23722
+ id: string;
23723
+ note: string | null;
23724
+ started_at: string;
23725
+ user_id: string;
23726
+ werkbon_id: string;
23727
+ };
23728
+ Insert: {
23729
+ activity: string;
23730
+ created_at?: string;
23731
+ ended_at?: string | null;
23732
+ id?: string;
23733
+ note?: string | null;
23734
+ started_at?: string;
23735
+ user_id: string;
23736
+ werkbon_id: string;
23737
+ };
23738
+ Update: {
23739
+ activity?: string;
23740
+ created_at?: string;
23741
+ ended_at?: string | null;
23742
+ id?: string;
23743
+ note?: string | null;
23744
+ started_at?: string;
23745
+ user_id?: string;
23746
+ werkbon_id?: string;
23747
+ };
23748
+ Relationships: [
23749
+ {
23750
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23751
+ columns: ["werkbon_id"];
23752
+ isOneToOne: false;
23753
+ referencedRelation: "werkbonnen";
23754
+ referencedColumns: ["id"];
23755
+ },
23756
+ {
23757
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23758
+ columns: ["werkbon_id"];
23759
+ isOneToOne: false;
23760
+ referencedRelation: "wo_overview";
23761
+ referencedColumns: ["id"];
23762
+ }
23763
+ ];
23764
+ };
23765
+ werkbon_voorstellen: {
23766
+ Row: {
23767
+ bron_werkbon_id: string;
23768
+ budget_mandate_cents: number;
23769
+ created_at: string;
23770
+ created_by: string;
23771
+ customer_id: string | null;
23772
+ id: string;
23773
+ payload: Json;
23774
+ reden: string | null;
23775
+ status: string;
23776
+ updated_at: string;
23777
+ verwerkt_door: string | null;
23778
+ verwerkt_op: string | null;
23779
+ werkbon_id: string | null;
23780
+ };
23781
+ Insert: {
23782
+ bron_werkbon_id: string;
23783
+ budget_mandate_cents?: number;
23784
+ created_at?: string;
23785
+ created_by?: string;
23786
+ customer_id?: string | null;
23787
+ id?: string;
23788
+ payload?: Json;
23789
+ reden?: string | null;
23790
+ status?: string;
23791
+ updated_at?: string;
23792
+ verwerkt_door?: string | null;
23793
+ verwerkt_op?: string | null;
23794
+ werkbon_id?: string | null;
23795
+ };
23796
+ Update: {
23797
+ bron_werkbon_id?: string;
23798
+ budget_mandate_cents?: number;
23799
+ created_at?: string;
23800
+ created_by?: string;
23801
+ customer_id?: string | null;
23802
+ id?: string;
23803
+ payload?: Json;
23804
+ reden?: string | null;
23805
+ status?: string;
23806
+ updated_at?: string;
23807
+ verwerkt_door?: string | null;
23808
+ verwerkt_op?: string | null;
23809
+ werkbon_id?: string | null;
23810
+ };
23811
+ Relationships: [
23812
+ {
23813
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23814
+ columns: ["bron_werkbon_id"];
23815
+ isOneToOne: false;
23816
+ referencedRelation: "werkbonnen";
23817
+ referencedColumns: ["id"];
23818
+ },
23819
+ {
23820
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23821
+ columns: ["bron_werkbon_id"];
23822
+ isOneToOne: false;
23823
+ referencedRelation: "wo_overview";
23824
+ referencedColumns: ["id"];
23825
+ },
23826
+ {
23827
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23828
+ columns: ["werkbon_id"];
23829
+ isOneToOne: false;
23830
+ referencedRelation: "werkbonnen";
23831
+ referencedColumns: ["id"];
23832
+ },
23833
+ {
23834
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23835
+ columns: ["werkbon_id"];
23836
+ isOneToOne: false;
23837
+ referencedRelation: "wo_overview";
23838
+ referencedColumns: ["id"];
23839
+ }
23840
+ ];
23841
+ };
23842
+ werkbonnen: {
23843
+ Row: {
23844
+ assigned_user_id: string | null;
23845
+ budget_mandate_cents: number;
23846
+ complaint_description: string | null;
23847
+ created_at: string;
23848
+ created_by: string | null;
23849
+ customer_id: string | null;
23850
+ deadline_date: string | null;
23851
+ estimated_days: number | null;
23852
+ estimated_duration_minutes: number | null;
23853
+ externe_referentie: string | null;
23854
+ extra_costs_cents: number;
23855
+ first_time_fix: boolean | null;
23856
+ id: string;
23857
+ internal_notes: string | null;
23858
+ needs_detail_review: boolean;
23859
+ parent_werkbon_id: string | null;
23860
+ parsed_payload: Json | null;
23861
+ planning_status: string;
23862
+ project_number: string | null;
23863
+ review_reasons: string[];
23864
+ room_number: string | null;
23865
+ scheduled_end_time: string | null;
23866
+ scheduled_start_time: string | null;
23867
+ sequence_number: number;
23868
+ signature_accepted_at: string | null;
23869
+ signature_by_user_id: string | null;
23870
+ signature_name: string | null;
23871
+ source_email_meta: Json | null;
23872
+ source_mailbox_message_id: string | null;
23873
+ source_pdf_path: string | null;
23874
+ source_type: string;
23875
+ status: string;
23876
+ technician_id: string | null;
23877
+ technician_notes: string | null;
23878
+ technician_notes_raw: string | null;
23879
+ technician_task_description: string | null;
23880
+ updated_at: string;
23881
+ version: number;
23882
+ work_address: string | null;
23883
+ workday_hours: number | null;
23884
+ };
23885
+ Insert: {
23886
+ assigned_user_id?: string | null;
23887
+ budget_mandate_cents?: number;
23888
+ complaint_description?: string | null;
23889
+ created_at?: string;
23890
+ created_by?: string | null;
23891
+ customer_id?: string | null;
23892
+ deadline_date?: string | null;
23893
+ estimated_days?: number | null;
23894
+ estimated_duration_minutes?: number | null;
23895
+ externe_referentie?: string | null;
23896
+ extra_costs_cents?: number;
23897
+ first_time_fix?: boolean | null;
23898
+ id?: string;
23899
+ internal_notes?: string | null;
23900
+ needs_detail_review?: boolean;
23901
+ parent_werkbon_id?: string | null;
23902
+ parsed_payload?: Json | null;
23903
+ planning_status?: string;
23904
+ project_number?: string | null;
23905
+ review_reasons?: string[];
23906
+ room_number?: string | null;
23907
+ scheduled_end_time?: string | null;
23908
+ scheduled_start_time?: string | null;
23909
+ sequence_number: number;
23910
+ signature_accepted_at?: string | null;
23911
+ signature_by_user_id?: string | null;
23912
+ signature_name?: string | null;
23913
+ source_email_meta?: Json | null;
23914
+ source_mailbox_message_id?: string | null;
23915
+ source_pdf_path?: string | null;
23916
+ source_type?: string;
23917
+ status?: string;
23918
+ technician_id?: string | null;
23919
+ technician_notes?: string | null;
23920
+ technician_notes_raw?: string | null;
23921
+ technician_task_description?: string | null;
23922
+ updated_at?: string;
23923
+ version?: number;
23924
+ work_address?: string | null;
23925
+ workday_hours?: number | null;
23926
+ };
23927
+ Update: {
23928
+ assigned_user_id?: string | null;
23929
+ budget_mandate_cents?: number;
23930
+ complaint_description?: string | null;
23931
+ created_at?: string;
23932
+ created_by?: string | null;
23933
+ customer_id?: string | null;
23934
+ deadline_date?: string | null;
23935
+ estimated_days?: number | null;
23936
+ estimated_duration_minutes?: number | null;
23937
+ externe_referentie?: string | null;
23938
+ extra_costs_cents?: number;
23939
+ first_time_fix?: boolean | null;
22068
23940
  id?: string;
22069
23941
  internal_notes?: string | null;
22070
23942
  needs_detail_review?: boolean;
@@ -22092,6 +23964,7 @@ export type Database = {
22092
23964
  updated_at?: string;
22093
23965
  version?: number;
22094
23966
  work_address?: string | null;
23967
+ workday_hours?: number | null;
22095
23968
  };
22096
23969
  Relationships: [
22097
23970
  {
@@ -22585,6 +24458,21 @@ export type Database = {
22585
24458
  };
22586
24459
  Relationships: [];
22587
24460
  };
24461
+ logistics_packing_diff: {
24462
+ Row: {
24463
+ dev_key: string | null;
24464
+ floriday_packing: Json | null;
24465
+ local_packing: Json | null;
24466
+ order_id: string | null;
24467
+ order_item_id: string | null;
24468
+ order_number: string | null;
24469
+ product_id: string | null;
24470
+ product_name: string | null;
24471
+ scope: string | null;
24472
+ trade_item_id: string | null;
24473
+ };
24474
+ Relationships: [];
24475
+ };
22588
24476
  logistics_product_dimensions: {
22589
24477
  Row: {
22590
24478
  dimension_source: string | null;
@@ -23229,6 +25117,10 @@ export type Database = {
23229
25117
  };
23230
25118
  Returns: undefined;
23231
25119
  };
25120
+ _wo_is_planner: {
25121
+ Args: never;
25122
+ Returns: boolean;
25123
+ };
23232
25124
  afh_city_code: {
23233
25125
  Args: {
23234
25126
  _city: string;
@@ -23334,6 +25226,10 @@ export type Database = {
23334
25226
  };
23335
25227
  Returns: string;
23336
25228
  };
25229
+ backfill_cart_numbers_day_seq: {
25230
+ Args: never;
25231
+ Returns: number;
25232
+ };
23337
25233
  backfill_open_order_reservations: {
23338
25234
  Args: never;
23339
25235
  Returns: {
@@ -23820,8 +25716,6 @@ export type Database = {
23820
25716
  cart_index: number;
23821
25717
  cart_number: string;
23822
25718
  cart_number_id: string;
23823
- cart_seq: number;
23824
- cart_total: number;
23825
25719
  order_id: string;
23826
25720
  order_number: string;
23827
25721
  order_source: string;
@@ -23837,10 +25731,32 @@ export type Database = {
23837
25731
  };
23838
25732
  Returns: number;
23839
25733
  };
25734
+ control_mark_carts_delivered_detail: {
25735
+ Args: {
25736
+ p_carts: Json;
25737
+ };
25738
+ Returns: {
25739
+ cart_index: number;
25740
+ frozen: boolean;
25741
+ message: string;
25742
+ order_id: string;
25743
+ order_source: string;
25744
+ outcome: string;
25745
+ }[];
25746
+ };
23840
25747
  count_distinct_regulatory_products: {
23841
25748
  Args: never;
23842
25749
  Returns: number;
23843
25750
  };
25751
+ create_order_from_public_offer: {
25752
+ Args: {
25753
+ p_carrier_id?: string;
25754
+ p_delivery_date?: string;
25755
+ p_delivery_garden_id?: string;
25756
+ p_offer_order_id: string;
25757
+ };
25758
+ Returns: Json;
25759
+ };
23844
25760
  current_monteur_id: {
23845
25761
  Args: never;
23846
25762
  Returns: string;
@@ -24317,17 +26233,33 @@ export type Database = {
24317
26233
  };
24318
26234
  Returns: number;
24319
26235
  };
24320
- get_room_busy_windows: {
26236
+ get_product_stock: {
24321
26237
  Args: {
24322
- p_from: string;
24323
- p_to: string;
26238
+ p_product_id: string;
24324
26239
  };
24325
26240
  Returns: {
24326
- end_time: string;
24327
- room_id: string;
24328
- start_time: string;
24329
- status: string;
24330
- }[];
26241
+ connection_id: string;
26242
+ incoming_stock: number;
26243
+ minimum_stock: number;
26244
+ notes: string;
26245
+ physical_stock: number;
26246
+ product_id: string;
26247
+ reserved_stock: number;
26248
+ trade_item_key: string;
26249
+ updated_at: string;
26250
+ }[];
26251
+ };
26252
+ get_room_busy_windows: {
26253
+ Args: {
26254
+ p_from: string;
26255
+ p_to: string;
26256
+ };
26257
+ Returns: {
26258
+ end_time: string;
26259
+ room_id: string;
26260
+ start_time: string;
26261
+ status: string;
26262
+ }[];
24331
26263
  };
24332
26264
  get_twinfield_cron_jobs: {
24333
26265
  Args: never;
@@ -24342,6 +26274,27 @@ export type Database = {
24342
26274
  Args: never;
24343
26275
  Returns: string;
24344
26276
  };
26277
+ handover_afspraak_intrekken: {
26278
+ Args: {
26279
+ _sleutel: string;
26280
+ };
26281
+ Returns: boolean;
26282
+ };
26283
+ handover_afspraak_zetten: {
26284
+ Args: {
26285
+ _besluit: string;
26286
+ _item: string;
26287
+ _modules: string[];
26288
+ _sleutel: string;
26289
+ _soort: string;
26290
+ _versie_vingerafdruk: string;
26291
+ };
26292
+ Returns: boolean;
26293
+ };
26294
+ handover_afspraken: {
26295
+ Args: never;
26296
+ Returns: Json;
26297
+ };
24345
26298
  handover_archief_lijst: {
24346
26299
  Args: never;
24347
26300
  Returns: Json;
@@ -24359,6 +26312,12 @@ export type Database = {
24359
26312
  };
24360
26313
  Returns: boolean;
24361
26314
  };
26315
+ handover_check_afronden_na_scan: {
26316
+ Args: {
26317
+ _module_ids: string[];
26318
+ };
26319
+ Returns: number;
26320
+ };
24362
26321
  handover_check_markeren: {
24363
26322
  Args: {
24364
26323
  _module_ids: string[];
@@ -24402,6 +26361,14 @@ export type Database = {
24402
26361
  };
24403
26362
  Returns: boolean;
24404
26363
  };
26364
+ handover_md_bron_zetten: {
26365
+ Args: {
26366
+ _md: boolean;
26367
+ _module_id: string;
26368
+ _pad?: string;
26369
+ };
26370
+ Returns: boolean;
26371
+ };
24405
26372
  handover_module_meta_zetten: {
24406
26373
  Args: {
24407
26374
  _module_id: string;
@@ -24410,6 +26377,24 @@ export type Database = {
24410
26377
  };
24411
26378
  Returns: boolean;
24412
26379
  };
26380
+ handover_naam_zetten: {
26381
+ Args: {
26382
+ _bron_repo?: string;
26383
+ _module_id: string;
26384
+ _weergavenaam?: string;
26385
+ };
26386
+ Returns: boolean;
26387
+ };
26388
+ handover_namen: {
26389
+ Args: never;
26390
+ Returns: Json;
26391
+ };
26392
+ handover_nieuw_gezien: {
26393
+ Args: {
26394
+ _module_id: string;
26395
+ };
26396
+ Returns: boolean;
26397
+ };
24413
26398
  handover_norm_naam: {
24414
26399
  Args: {
24415
26400
  _naam: string;
@@ -24446,6 +26431,24 @@ export type Database = {
24446
26431
  _versie_label?: string;
24447
26432
  };
24448
26433
  Returns: Json;
26434
+ } | {
26435
+ Args: {
26436
+ _bekende_risicos?: string[];
26437
+ _bezit_tabellen?: string[];
26438
+ _bron_soort?: string;
26439
+ _commit?: string;
26440
+ _contractfuncties?: string[];
26441
+ _inhoud_md: string;
26442
+ _laatst_bevestigd_op?: string;
26443
+ _module_id: string;
26444
+ _module_titel: string;
26445
+ _ontbrekende_contracten?: string[];
26446
+ _pad?: string;
26447
+ _repo?: string;
26448
+ _samenvatting?: string;
26449
+ _versie_label?: string;
26450
+ };
26451
+ Returns: Json;
24449
26452
  };
24450
26453
  handover_publish_via_token: {
24451
26454
  Args: {
@@ -24564,6 +26567,13 @@ export type Database = {
24564
26567
  to_address: string;
24565
26568
  }[];
24566
26569
  };
26570
+ inkoop_set_preferred_supplier: {
26571
+ Args: {
26572
+ _product_id: string;
26573
+ _supplier_id: string;
26574
+ };
26575
+ Returns: undefined;
26576
+ };
24567
26577
  instructie_get: {
24568
26578
  Args: {
24569
26579
  _sleutel: string;
@@ -24583,6 +26593,10 @@ export type Database = {
24583
26593
  };
24584
26594
  Returns: number;
24585
26595
  };
26596
+ invoice_branding_snapshot: {
26597
+ Args: never;
26598
+ Returns: Json;
26599
+ };
24586
26600
  invoice_create_from_source: {
24587
26601
  Args: {
24588
26602
  _payload?: Json;
@@ -24617,12 +26631,61 @@ export type Database = {
24617
26631
  };
24618
26632
  Returns: Json;
24619
26633
  };
26634
+ invoice_mark_sent: {
26635
+ Args: {
26636
+ _invoice_id: string;
26637
+ _to: string;
26638
+ };
26639
+ Returns: undefined;
26640
+ };
26641
+ invoice_peek_next_number: {
26642
+ Args: never;
26643
+ Returns: string;
26644
+ };
26645
+ invoice_ready_work_orders: {
26646
+ Args: {
26647
+ _limit?: number;
26648
+ };
26649
+ Returns: Json;
26650
+ };
24620
26651
  invoice_recalc_totals: {
24621
26652
  Args: {
24622
26653
  _invoice_id: string;
24623
26654
  };
24624
26655
  Returns: Json;
24625
26656
  };
26657
+ invoice_save_branding_settings: {
26658
+ Args: {
26659
+ _payload: Json;
26660
+ };
26661
+ Returns: Json;
26662
+ };
26663
+ invoice_set_email_purpose: {
26664
+ Args: {
26665
+ _purpose: string;
26666
+ };
26667
+ Returns: string;
26668
+ };
26669
+ invoice_source_lines: {
26670
+ Args: {
26671
+ _source_id: string;
26672
+ _source_type: string;
26673
+ };
26674
+ Returns: Json;
26675
+ };
26676
+ invoice_update_full: {
26677
+ Args: {
26678
+ _invoice_id: string;
26679
+ _payload: Json;
26680
+ };
26681
+ Returns: Json;
26682
+ };
26683
+ invoice_work_order_locked: {
26684
+ Args: {
26685
+ _werkbon_id: string;
26686
+ };
26687
+ Returns: Json;
26688
+ };
24626
26689
  is_authenticated: {
24627
26690
  Args: never;
24628
26691
  Returns: boolean;
@@ -24855,6 +26918,14 @@ export type Database = {
24855
26918
  };
24856
26919
  Returns: Json;
24857
26920
  };
26921
+ logistics_buffer_decision_for_settings: {
26922
+ Args: {
26923
+ p_order: Json;
26924
+ p_settings: Json;
26925
+ p_user_id?: string;
26926
+ };
26927
+ Returns: Json;
26928
+ };
24858
26929
  logistics_buffer_detach_late_orders: {
24859
26930
  Args: {
24860
26931
  p_buffer?: string;
@@ -24888,6 +26959,12 @@ export type Database = {
24888
26959
  };
24889
26960
  Returns: string;
24890
26961
  };
26962
+ logistics_buffer_payload: {
26963
+ Args: {
26964
+ p_order_id: string;
26965
+ };
26966
+ Returns: Json;
26967
+ };
24891
26968
  logistics_buffer_simulate: {
24892
26969
  Args: {
24893
26970
  p_orders?: Json;
@@ -24946,6 +27023,10 @@ export type Database = {
24946
27023
  };
24947
27024
  Returns: string;
24948
27025
  };
27026
+ logistics_cart_coverage_check: {
27027
+ Args: never;
27028
+ Returns: Json;
27029
+ };
24949
27030
  logistics_cart_handled: {
24950
27031
  Args: {
24951
27032
  p_cart_index: number;
@@ -25189,10 +27270,29 @@ export type Database = {
25189
27270
  isSetofReturn: false;
25190
27271
  };
25191
27272
  };
27273
+ logistics_cleanup_duplicate_order_lines: {
27274
+ Args: {
27275
+ p_limit?: number;
27276
+ p_order_id: string;
27277
+ };
27278
+ Returns: Json;
27279
+ };
27280
+ logistics_cleanup_history: {
27281
+ Args: {
27282
+ p_limit?: number;
27283
+ };
27284
+ Returns: Json;
27285
+ };
25192
27286
  logistics_cleanup_orphan_print_jobs: {
25193
27287
  Args: never;
25194
27288
  Returns: Json;
25195
27289
  };
27290
+ logistics_cleanup_tasks: {
27291
+ Args: {
27292
+ p_limit?: number;
27293
+ };
27294
+ Returns: Json;
27295
+ };
25196
27296
  logistics_complete_task: {
25197
27297
  Args: {
25198
27298
  p_result?: Json;
@@ -25340,6 +27440,10 @@ export type Database = {
25340
27440
  Args: never;
25341
27441
  Returns: Json;
25342
27442
  };
27443
+ logistics_cron_health: {
27444
+ Args: never;
27445
+ Returns: Json;
27446
+ };
25343
27447
  logistics_day_windows: {
25344
27448
  Args: {
25345
27449
  p_day: string;
@@ -25689,6 +27793,12 @@ export type Database = {
25689
27793
  };
25690
27794
  Returns: number;
25691
27795
  };
27796
+ logistics_merge_decision: {
27797
+ Args: {
27798
+ p_lines: Json;
27799
+ };
27800
+ Returns: Json;
27801
+ };
25692
27802
  logistics_merge_floriday_lines: {
25693
27803
  Args: {
25694
27804
  p_order_id: string;
@@ -25735,18 +27845,108 @@ export type Database = {
25735
27845
  Args: never;
25736
27846
  Returns: string;
25737
27847
  };
27848
+ logistics_order_backlog_info: {
27849
+ Args: {
27850
+ p_order_id: string;
27851
+ };
27852
+ Returns: Json;
27853
+ };
27854
+ logistics_order_cart_approval: {
27855
+ Args: {
27856
+ _order_ref: string;
27857
+ };
27858
+ Returns: {
27859
+ approved: number;
27860
+ total: number;
27861
+ }[];
27862
+ };
25738
27863
  logistics_order_cart_count: {
25739
27864
  Args: {
25740
27865
  p_order_ref: string;
25741
27866
  };
25742
27867
  Returns: number;
25743
27868
  };
27869
+ logistics_order_changed: {
27870
+ Args: {
27871
+ p_order_id: string;
27872
+ p_reason?: string;
27873
+ };
27874
+ Returns: undefined;
27875
+ };
27876
+ logistics_order_documents_ready: {
27877
+ Args: {
27878
+ p_order_ref: string;
27879
+ };
27880
+ Returns: Json;
27881
+ };
27882
+ logistics_order_documents_ready_bool: {
27883
+ Args: {
27884
+ p_order_ref: string;
27885
+ };
27886
+ Returns: boolean;
27887
+ };
27888
+ logistics_order_finalize_enqueue: {
27889
+ Args: {
27890
+ p_order_id: string;
27891
+ p_reason?: string;
27892
+ };
27893
+ Returns: undefined;
27894
+ };
27895
+ logistics_order_finalize_overview: {
27896
+ Args: never;
27897
+ Returns: {
27898
+ bezig: number;
27899
+ laatst_afgerond: string;
27900
+ laatste_fout: string;
27901
+ mislukt: number;
27902
+ oudste_wachttijd_seconden: number;
27903
+ wachtend: number;
27904
+ }[];
27905
+ };
27906
+ logistics_order_finalize_prune: {
27907
+ Args: {
27908
+ p_days?: number;
27909
+ };
27910
+ Returns: number;
27911
+ };
27912
+ logistics_order_finalize_reconcile: {
27913
+ Args: {
27914
+ p_days?: number;
27915
+ p_limit?: number;
27916
+ };
27917
+ Returns: number;
27918
+ };
27919
+ logistics_order_finalize_retry: {
27920
+ Args: {
27921
+ p_order_id: string;
27922
+ };
27923
+ Returns: boolean;
27924
+ };
27925
+ logistics_order_finalize_run: {
27926
+ Args: {
27927
+ p_lease_seconds?: number;
27928
+ p_limit?: number;
27929
+ };
27930
+ Returns: number;
27931
+ };
27932
+ logistics_order_frozen: {
27933
+ Args: {
27934
+ p_order_id: string;
27935
+ };
27936
+ Returns: boolean;
27937
+ };
25744
27938
  logistics_order_handled: {
25745
27939
  Args: {
25746
27940
  p_order_uuid: string;
25747
27941
  };
25748
27942
  Returns: boolean;
25749
27943
  };
27944
+ logistics_order_is_backlog: {
27945
+ Args: {
27946
+ p_order_id: string;
27947
+ };
27948
+ Returns: boolean;
27949
+ };
25750
27950
  logistics_order_is_topick: {
25751
27951
  Args: {
25752
27952
  p_order_id: string;
@@ -25754,6 +27954,12 @@ export type Database = {
25754
27954
  };
25755
27955
  Returns: boolean;
25756
27956
  };
27957
+ logistics_order_line_duplicates: {
27958
+ Args: {
27959
+ p_order_id: string;
27960
+ };
27961
+ Returns: Json;
27962
+ };
25757
27963
  logistics_order_merge_key: {
25758
27964
  Args: {
25759
27965
  p_group_key: string;
@@ -25797,25 +28003,82 @@ export type Database = {
25797
28003
  };
25798
28004
  Returns: boolean;
25799
28005
  };
25800
- logistics_parse_pickup: {
28006
+ logistics_packing_autofix: {
25801
28007
  Args: {
25802
- p_value: string;
28008
+ p_limit?: number;
25803
28009
  };
25804
- Returns: string;
28010
+ Returns: number;
25805
28011
  };
25806
- logistics_payload_is_floriday: {
28012
+ logistics_packing_block_reason: {
25807
28013
  Args: {
25808
- _payload: Json;
28014
+ p_order_id: string;
28015
+ p_order_item_id: string;
25809
28016
  };
25810
- Returns: boolean;
28017
+ Returns: string;
25811
28018
  };
25812
- logistics_pick_agenda: {
28019
+ logistics_packing_dismiss: {
25813
28020
  Args: {
25814
- p_from?: string;
25815
- p_to?: string;
28021
+ p_id: string;
28022
+ p_note?: string;
25816
28023
  };
28024
+ Returns: boolean;
28025
+ };
28026
+ logistics_packing_overview: {
28027
+ Args: never;
25817
28028
  Returns: {
25818
- cart_count: number;
28029
+ beoordelen: number;
28030
+ herstelbaar: number;
28031
+ laatst_gemeten: string;
28032
+ laatst_hersteld: string;
28033
+ open_totaal: number;
28034
+ orders: number;
28035
+ oudste_seconden: number;
28036
+ producten: number;
28037
+ }[];
28038
+ };
28039
+ logistics_packing_reconcile: {
28040
+ Args: {
28041
+ p_fix_limit?: number;
28042
+ p_scan_limit?: number;
28043
+ };
28044
+ Returns: {
28045
+ beoordelen: number;
28046
+ gevonden: number;
28047
+ hersteld: number;
28048
+ }[];
28049
+ };
28050
+ logistics_packing_scan: {
28051
+ Args: {
28052
+ p_limit?: number;
28053
+ };
28054
+ Returns: number;
28055
+ };
28056
+ logistics_packing_set_manual: {
28057
+ Args: {
28058
+ p_manual?: boolean;
28059
+ p_order_item_id: string;
28060
+ };
28061
+ Returns: boolean;
28062
+ };
28063
+ logistics_parse_pickup: {
28064
+ Args: {
28065
+ p_value: string;
28066
+ };
28067
+ Returns: string;
28068
+ };
28069
+ logistics_payload_is_floriday: {
28070
+ Args: {
28071
+ _payload: Json;
28072
+ };
28073
+ Returns: boolean;
28074
+ };
28075
+ logistics_pick_agenda: {
28076
+ Args: {
28077
+ p_from?: string;
28078
+ p_to?: string;
28079
+ };
28080
+ Returns: {
28081
+ cart_count: number;
25819
28082
  in_preparation: number;
25820
28083
  order_count: number;
25821
28084
  orders: Json;
@@ -25825,6 +28088,10 @@ export type Database = {
25825
28088
  shifted_count: number;
25826
28089
  }[];
25827
28090
  };
28091
+ logistics_pick_backlog_max_days: {
28092
+ Args: never;
28093
+ Returns: number;
28094
+ };
25828
28095
  logistics_pick_barcode_enabled: {
25829
28096
  Args: never;
25830
28097
  Returns: boolean;
@@ -25890,6 +28157,12 @@ export type Database = {
25890
28157
  order_id: string;
25891
28158
  }[];
25892
28159
  };
28160
+ logistics_plan_defer: {
28161
+ Args: {
28162
+ p_id: string;
28163
+ };
28164
+ Returns: undefined;
28165
+ };
25893
28166
  logistics_plan_enqueue: {
25894
28167
  Args: {
25895
28168
  p_order_id: string;
@@ -25903,6 +28176,18 @@ export type Database = {
25903
28176
  };
25904
28177
  Returns: boolean;
25905
28178
  };
28179
+ logistics_plan_error_class: {
28180
+ Args: {
28181
+ p_error: string;
28182
+ };
28183
+ Returns: string;
28184
+ };
28185
+ logistics_plan_error_text: {
28186
+ Args: {
28187
+ p_error: string;
28188
+ };
28189
+ Returns: string;
28190
+ };
25906
28191
  logistics_plan_finish: {
25907
28192
  Args: {
25908
28193
  p_error?: string;
@@ -25931,6 +28216,21 @@ export type Database = {
25931
28216
  Args: never;
25932
28217
  Returns: undefined;
25933
28218
  };
28219
+ logistics_plan_lock_acquire: {
28220
+ Args: {
28221
+ _key: string;
28222
+ _owner?: string;
28223
+ _ttl_seconds?: number;
28224
+ };
28225
+ Returns: boolean;
28226
+ };
28227
+ logistics_plan_lock_release: {
28228
+ Args: {
28229
+ _key: string;
28230
+ _owner?: string;
28231
+ };
28232
+ Returns: undefined;
28233
+ };
25934
28234
  logistics_plan_progress: {
25935
28235
  Args: {
25936
28236
  p_refs: string[];
@@ -25945,14 +28245,51 @@ export type Database = {
25945
28245
  unit_ref: string;
25946
28246
  }[];
25947
28247
  };
28248
+ logistics_plan_progress_pct: {
28249
+ Args: {
28250
+ p_order_id: string;
28251
+ };
28252
+ Returns: number;
28253
+ };
25948
28254
  logistics_plan_prune: {
25949
28255
  Args: never;
25950
28256
  Returns: number;
25951
28257
  };
28258
+ logistics_plan_queue_list: {
28259
+ Args: {
28260
+ p_limit?: number;
28261
+ };
28262
+ Returns: {
28263
+ attempts: number;
28264
+ claimed_at: string;
28265
+ customer_name: string;
28266
+ enqueued_at: string;
28267
+ error_class: string;
28268
+ error_raw: string;
28269
+ error_text: string;
28270
+ id: string;
28271
+ max_attempts: number;
28272
+ next_attempt_at: string;
28273
+ order_created_at: string;
28274
+ order_id: string;
28275
+ order_number: string;
28276
+ progress_pct: number;
28277
+ reason: string;
28278
+ stand: string;
28279
+ status: string;
28280
+ updated_at: string;
28281
+ }[];
28282
+ };
25952
28283
  logistics_plan_release_stale: {
25953
28284
  Args: never;
25954
28285
  Returns: number;
25955
28286
  };
28287
+ logistics_plan_reset_queue: {
28288
+ Args: {
28289
+ p_scope?: string;
28290
+ };
28291
+ Returns: number;
28292
+ };
25956
28293
  logistics_plan_retry: {
25957
28294
  Args: {
25958
28295
  p_order_ids: string[];
@@ -25972,6 +28309,25 @@ export type Database = {
25972
28309
  };
25973
28310
  Returns: Json;
25974
28311
  };
28312
+ logistics_plan_timeout_running: {
28313
+ Args: never;
28314
+ Returns: number;
28315
+ };
28316
+ logistics_planner_cart_snapshot: {
28317
+ Args: {
28318
+ p_buffer_id: string;
28319
+ p_order_id: string;
28320
+ };
28321
+ Returns: Json;
28322
+ };
28323
+ logistics_planner_diff_mode: {
28324
+ Args: never;
28325
+ Returns: string;
28326
+ };
28327
+ logistics_planner_diff_prune: {
28328
+ Args: never;
28329
+ Returns: number;
28330
+ };
25975
28331
  logistics_prepare_pick_documents: {
25976
28332
  Args: {
25977
28333
  p_limit?: number;
@@ -25982,6 +28338,12 @@ export type Database = {
25982
28338
  Args: never;
25983
28339
  Returns: number;
25984
28340
  };
28341
+ logistics_prune_cron_history: {
28342
+ Args: {
28343
+ p_days?: number;
28344
+ };
28345
+ Returns: number;
28346
+ };
25985
28347
  logistics_prune_handled_pick_queue: {
25986
28348
  Args: never;
25987
28349
  Returns: number;
@@ -26018,6 +28380,14 @@ export type Database = {
26018
28380
  Args: never;
26019
28381
  Returns: Json;
26020
28382
  };
28383
+ logistics_recalc_tick_kick: {
28384
+ Args: never;
28385
+ Returns: number;
28386
+ };
28387
+ logistics_reconcile_missing_plan_queue: {
28388
+ Args: never;
28389
+ Returns: number;
28390
+ };
26021
28391
  logistics_refresh_pick_queue_status: {
26022
28392
  Args: {
26023
28393
  p_ref: string;
@@ -26048,6 +28418,25 @@ export type Database = {
26048
28418
  };
26049
28419
  Returns: Json;
26050
28420
  };
28421
+ logistics_replan_clear_foreign_cart_items: {
28422
+ Args: {
28423
+ p_order_id: string;
28424
+ p_reason: string;
28425
+ };
28426
+ Returns: Json;
28427
+ };
28428
+ logistics_replan_order_journey: {
28429
+ Args: {
28430
+ p_order_ref: string;
28431
+ };
28432
+ Returns: Json;
28433
+ } | {
28434
+ Args: {
28435
+ p_order_ref: string;
28436
+ p_reason: string;
28437
+ };
28438
+ Returns: Json;
28439
+ };
26051
28440
  logistics_report_delay: {
26052
28441
  Args: {
26053
28442
  p_expected_date?: string;
@@ -26092,6 +28481,10 @@ export type Database = {
26092
28481
  };
26093
28482
  Returns: Json;
26094
28483
  };
28484
+ logistics_reserved_stock_nightly: {
28485
+ Args: never;
28486
+ Returns: undefined;
28487
+ };
26095
28488
  logistics_resolve_pick_document: {
26096
28489
  Args: {
26097
28490
  _is_herprint: boolean;
@@ -26115,6 +28508,12 @@ export type Database = {
26115
28508
  };
26116
28509
  Returns: Json;
26117
28510
  };
28511
+ logistics_retention_days: {
28512
+ Args: {
28513
+ p_key: string;
28514
+ };
28515
+ Returns: number;
28516
+ };
26118
28517
  logistics_rule_bool: {
26119
28518
  Args: {
26120
28519
  p_default: boolean;
@@ -26169,6 +28568,11 @@ export type Database = {
26169
28568
  logistics_schedule_tasks: {
26170
28569
  Args: never;
26171
28570
  Returns: number;
28571
+ } | {
28572
+ Args: {
28573
+ p_order_ref?: string;
28574
+ };
28575
+ Returns: number;
26172
28576
  };
26173
28577
  logistics_set_order_priority: {
26174
28578
  Args: {
@@ -26192,6 +28596,12 @@ export type Database = {
26192
28596
  };
26193
28597
  Returns: string;
26194
28598
  };
28599
+ logistics_shipping_note_diagnose: {
28600
+ Args: {
28601
+ p_order_number: string;
28602
+ };
28603
+ Returns: Json;
28604
+ };
26195
28605
  logistics_shipping_note_follows_slip: {
26196
28606
  Args: never;
26197
28607
  Returns: boolean;
@@ -26297,12 +28707,27 @@ export type Database = {
26297
28707
  Args: never;
26298
28708
  Returns: Json;
26299
28709
  };
28710
+ logistics_sync_pick_queue_backlog: {
28711
+ Args: never;
28712
+ Returns: Json;
28713
+ };
28714
+ logistics_sync_pick_queue_core: {
28715
+ Args: never;
28716
+ Returns: Json;
28717
+ };
26300
28718
  logistics_sync_task_carriers: {
26301
28719
  Args: {
26302
28720
  p_order_ref?: string;
26303
28721
  };
26304
28722
  Returns: number;
26305
28723
  };
28724
+ logistics_task_open_counts: {
28725
+ Args: never;
28726
+ Returns: {
28727
+ open_count: number;
28728
+ owner_module: string;
28729
+ }[];
28730
+ };
26306
28731
  logistics_task_owner: {
26307
28732
  Args: {
26308
28733
  p_task_type: string;
@@ -26316,6 +28741,20 @@ export type Database = {
26316
28741
  };
26317
28742
  Returns: number;
26318
28743
  };
28744
+ logistics_task_retention_days: {
28745
+ Args: never;
28746
+ Returns: number;
28747
+ };
28748
+ logistics_tasks_prune: {
28749
+ Args: {
28750
+ p_days?: number;
28751
+ };
28752
+ Returns: number;
28753
+ };
28754
+ logistics_tick: {
28755
+ Args: never;
28756
+ Returns: Json;
28757
+ };
26319
28758
  logistics_tick_ping: {
26320
28759
  Args: never;
26321
28760
  Returns: string;
@@ -26339,12 +28778,25 @@ export type Database = {
26339
28778
  };
26340
28779
  Returns: Json;
26341
28780
  };
28781
+ logistics_trace_archive_order: {
28782
+ Args: {
28783
+ p_order_ref: string;
28784
+ p_reason: string;
28785
+ };
28786
+ Returns: number;
28787
+ };
26342
28788
  logistics_trace_batch: {
26343
28789
  Args: {
26344
28790
  p: Json;
26345
28791
  };
26346
28792
  Returns: number;
26347
28793
  };
28794
+ logistics_trace_derive: {
28795
+ Args: {
28796
+ p: Json;
28797
+ };
28798
+ Returns: number;
28799
+ };
26348
28800
  logistics_trace_node: {
26349
28801
  Args: {
26350
28802
  p_op?: string;
@@ -26353,6 +28805,19 @@ export type Database = {
26353
28805
  };
26354
28806
  Returns: string;
26355
28807
  };
28808
+ logistics_trace_order_journey_start: {
28809
+ Args: {
28810
+ p_order_id: string;
28811
+ p_reason?: string;
28812
+ };
28813
+ Returns: string;
28814
+ };
28815
+ logistics_trace_order_origin: {
28816
+ Args: {
28817
+ p_order_id: string;
28818
+ };
28819
+ Returns: undefined;
28820
+ };
26356
28821
  logistics_trace_order_overview: {
26357
28822
  Args: {
26358
28823
  p_error_class?: string;
@@ -26394,12 +28859,54 @@ export type Database = {
26394
28859
  };
26395
28860
  Returns: Json;
26396
28861
  };
28862
+ logistics_trace_pick_state: {
28863
+ Args: {
28864
+ p_order_number: string;
28865
+ };
28866
+ Returns: undefined;
28867
+ };
28868
+ logistics_trace_progress: {
28869
+ Args: {
28870
+ p_limit?: number;
28871
+ };
28872
+ Returns: Json;
28873
+ };
28874
+ logistics_trace_progress_order: {
28875
+ Args: {
28876
+ p_order_ref: string;
28877
+ };
28878
+ Returns: Json;
28879
+ };
26397
28880
  logistics_trace_redact: {
26398
28881
  Args: {
26399
28882
  p: Json;
26400
28883
  };
26401
28884
  Returns: Json;
26402
28885
  };
28886
+ logistics_trace_source_node: {
28887
+ Args: {
28888
+ p_source: string;
28889
+ };
28890
+ Returns: string;
28891
+ };
28892
+ logistics_trace_step_once: {
28893
+ Args: {
28894
+ p_decision: string;
28895
+ p_next_step?: string;
28896
+ p_node: string;
28897
+ p_order_id: string;
28898
+ p_reason: string;
28899
+ p_status: string;
28900
+ p_step: string;
28901
+ };
28902
+ Returns: undefined;
28903
+ };
28904
+ logistics_trace_stock_check: {
28905
+ Args: {
28906
+ p_order_id: string;
28907
+ };
28908
+ Returns: undefined;
28909
+ };
26403
28910
  logistics_trace_timeline: {
26404
28911
  Args: {
26405
28912
  p_limit?: number;
@@ -26513,6 +29020,12 @@ export type Database = {
26513
29020
  permission: string;
26514
29021
  }[];
26515
29022
  };
29023
+ next_cart_day_seq: {
29024
+ Args: {
29025
+ p_date: string;
29026
+ };
29027
+ Returns: number;
29028
+ };
26516
29029
  next_manufacture_partij: {
26517
29030
  Args: {
26518
29031
  _tenant_id: string;
@@ -26582,6 +29095,17 @@ export type Database = {
26582
29095
  };
26583
29096
  Returns: boolean;
26584
29097
  };
29098
+ order_items_duplicate_report: {
29099
+ Args: {
29100
+ _order_ref?: string;
29101
+ };
29102
+ Returns: {
29103
+ distinct_products: number;
29104
+ duplicate_factor: number;
29105
+ lines: number;
29106
+ order_number: string;
29107
+ }[];
29108
+ };
26585
29109
  order_number_prefix: {
26586
29110
  Args: {
26587
29111
  p_custom_fields?: Json;
@@ -27365,6 +29889,22 @@ export type Database = {
27365
29889
  };
27366
29890
  Returns: undefined;
27367
29891
  };
29892
+ planning_apply_schedule_updates: {
29893
+ Args: {
29894
+ _updates: Json;
29895
+ };
29896
+ Returns: undefined;
29897
+ };
29898
+ planning_assert_no_overlaps: {
29899
+ Args: never;
29900
+ Returns: undefined;
29901
+ };
29902
+ planning_assert_no_overlaps_for_items: {
29903
+ Args: {
29904
+ _item_ids: string[];
29905
+ };
29906
+ Returns: undefined;
29907
+ };
27368
29908
  planning_cancel_item: {
27369
29909
  Args: {
27370
29910
  _id: string;
@@ -27468,7 +30008,28 @@ export type Database = {
27468
30008
  Args: never;
27469
30009
  Returns: number;
27470
30010
  };
27471
- quote_create_from_source: {
30011
+ quote_ack_work_order: {
30012
+ Args: {
30013
+ _queue_id: string;
30014
+ _werkbon_id: string;
30015
+ _werkbon_nummer?: string;
30016
+ };
30017
+ Returns: boolean;
30018
+ };
30019
+ quote_assign_number: {
30020
+ Args: {
30021
+ _offerte_id: string;
30022
+ };
30023
+ Returns: string;
30024
+ };
30025
+ quote_create_follow_up_now: {
30026
+ Args: {
30027
+ _offerte_id: string;
30028
+ _payload?: Json;
30029
+ };
30030
+ Returns: Json;
30031
+ };
30032
+ quote_create_from_source: {
27472
30033
  Args: {
27473
30034
  _payload?: Json;
27474
30035
  _source_id: string;
@@ -27476,6 +30037,13 @@ export type Database = {
27476
30037
  };
27477
30038
  Returns: string;
27478
30039
  };
30040
+ quote_fail_work_order: {
30041
+ Args: {
30042
+ _foutmelding: string;
30043
+ _queue_id: string;
30044
+ };
30045
+ Returns: boolean;
30046
+ };
27479
30047
  quote_get_billable_lines: {
27480
30048
  Args: {
27481
30049
  _quotation_id: string;
@@ -27492,6 +30060,12 @@ export type Database = {
27492
30060
  Args: never;
27493
30061
  Returns: Json;
27494
30062
  };
30063
+ quote_list_pending_work_orders: {
30064
+ Args: {
30065
+ _limit?: number;
30066
+ };
30067
+ Returns: Json;
30068
+ };
27495
30069
  quote_list_sources: {
27496
30070
  Args: {
27497
30071
  _limit?: number;
@@ -27499,6 +30073,12 @@ export type Database = {
27499
30073
  };
27500
30074
  Returns: Json;
27501
30075
  };
30076
+ quote_queue_follow_up: {
30077
+ Args: {
30078
+ _offerte_id: string;
30079
+ };
30080
+ Returns: string;
30081
+ };
27502
30082
  recompute_all_reserved_stock: {
27503
30083
  Args: never;
27504
30084
  Returns: undefined;
@@ -27692,6 +30272,10 @@ export type Database = {
27692
30272
  Args: never;
27693
30273
  Returns: undefined;
27694
30274
  };
30275
+ run_order_auto_invoice_tick: {
30276
+ Args: never;
30277
+ Returns: number;
30278
+ };
27695
30279
  run_print_queue_ticks: {
27696
30280
  Args: never;
27697
30281
  Returns: number;
@@ -28069,6 +30653,13 @@ export type Database = {
28069
30653
  };
28070
30654
  Returns: number;
28071
30655
  };
30656
+ schedule_floriday_trade_items_reconcile: {
30657
+ Args: {
30658
+ p_apikey: string;
30659
+ p_url: string;
30660
+ };
30661
+ Returns: number;
30662
+ };
28072
30663
  schedule_floriday_trade_items_sync: {
28073
30664
  Args: {
28074
30665
  p_apikey: string;
@@ -28151,6 +30742,26 @@ export type Database = {
28151
30742
  };
28152
30743
  Returns: undefined;
28153
30744
  };
30745
+ set_product_stock: {
30746
+ Args: {
30747
+ p_incoming_stock?: number;
30748
+ p_minimum_stock?: number;
30749
+ p_notes?: string;
30750
+ p_physical_stock: number;
30751
+ p_product_id: string;
30752
+ };
30753
+ Returns: {
30754
+ connection_id: string;
30755
+ incoming_stock: number;
30756
+ minimum_stock: number;
30757
+ notes: string;
30758
+ physical_stock: number;
30759
+ product_id: string;
30760
+ reserved_stock: number;
30761
+ trade_item_key: string;
30762
+ updated_at: string;
30763
+ }[];
30764
+ };
28154
30765
  show_limit: {
28155
30766
  Args: never;
28156
30767
  Returns: number;
@@ -28180,6 +30791,52 @@ export type Database = {
28180
30791
  p_end_time: string;
28181
30792
  };
28182
30793
  Returns: Json;
30794
+ } | {
30795
+ Args: {
30796
+ p_end_lat?: number;
30797
+ p_end_lng?: number;
30798
+ p_log_id: string;
30799
+ };
30800
+ Returns: {
30801
+ auto_stop_reason: string | null;
30802
+ auto_stopped: boolean;
30803
+ created_at: string;
30804
+ current_latitude: number | null;
30805
+ current_longitude: number | null;
30806
+ current_position_updated_at: string | null;
30807
+ employee_id: string;
30808
+ end_latitude: number | null;
30809
+ end_longitude: number | null;
30810
+ end_time: string | null;
30811
+ eta_distance_km: number | null;
30812
+ eta_minutes: number | null;
30813
+ eta_updated_at: string | null;
30814
+ hour_category: string | null;
30815
+ id: string;
30816
+ last_reminder_at: string | null;
30817
+ notes: string | null;
30818
+ overtime_hours: number;
30819
+ overtime_type: string | null;
30820
+ regular_hours: number;
30821
+ reminder_count: number;
30822
+ requires_review: boolean;
30823
+ start_latitude: number | null;
30824
+ start_longitude: number | null;
30825
+ start_time: string;
30826
+ travel_cost: number | null;
30827
+ travel_distance_km: number | null;
30828
+ travel_duration_min: number | null;
30829
+ travel_time_minutes: number | null;
30830
+ type: string;
30831
+ updated_at: string;
30832
+ work_order_id: string | null;
30833
+ };
30834
+ SetofOptions: {
30835
+ from: "*";
30836
+ to: "time_logs";
30837
+ isOneToOne: true;
30838
+ isSetofReturn: false;
30839
+ };
28183
30840
  };
28184
30841
  swap_cart_layer_positions: {
28185
30842
  Args: {
@@ -28336,14 +30993,340 @@ export type Database = {
28336
30993
  };
28337
30994
  Returns: undefined;
28338
30995
  };
30996
+ uren_employee_day_hours: {
30997
+ Args: {
30998
+ _day: string;
30999
+ _employee_id: string;
31000
+ };
31001
+ Returns: number;
31002
+ };
28339
31003
  uren_is_beheerder: {
28340
31004
  Args: never;
28341
31005
  Returns: boolean;
28342
31006
  };
31007
+ uren_is_werkdag: {
31008
+ Args: {
31009
+ _date: string;
31010
+ _monteur: string;
31011
+ };
31012
+ Returns: boolean;
31013
+ };
31014
+ uren_korte_afwezigheid_aanvragen: {
31015
+ Args: {
31016
+ _datum: string;
31017
+ _eind: string;
31018
+ _reden: string;
31019
+ _start: string;
31020
+ };
31021
+ Returns: string;
31022
+ };
31023
+ uren_list_medewerkers: {
31024
+ Args: never;
31025
+ Returns: {
31026
+ avatar_url: string;
31027
+ color: string;
31028
+ display_name: string;
31029
+ email: string;
31030
+ hours_fri: number;
31031
+ hours_mon: number;
31032
+ hours_thu: number;
31033
+ hours_tue: number;
31034
+ hours_wed: number;
31035
+ id: string;
31036
+ is_active: boolean;
31037
+ leave_balance_hours: number;
31038
+ persnr: string;
31039
+ phone: string;
31040
+ roles: string[];
31041
+ }[];
31042
+ };
31043
+ uren_list_planner_contacten: {
31044
+ Args: never;
31045
+ Returns: {
31046
+ display_name: string;
31047
+ id: string;
31048
+ phone: string;
31049
+ }[];
31050
+ };
31051
+ uren_maand_afsluiten: {
31052
+ Args: {
31053
+ _maand: string;
31054
+ _monteur: string;
31055
+ };
31056
+ Returns: undefined;
31057
+ };
31058
+ uren_maand_berekenen: {
31059
+ Args: {
31060
+ _maand: string;
31061
+ _monteur: string;
31062
+ };
31063
+ Returns: Json;
31064
+ };
31065
+ uren_maand_corrigeren: {
31066
+ Args: {
31067
+ _maand: string;
31068
+ _monteur: string;
31069
+ _overuren_minuten: number;
31070
+ _reden: string;
31071
+ };
31072
+ Returns: undefined;
31073
+ };
31074
+ uren_mijn_contracturen: {
31075
+ Args: never;
31076
+ Returns: number;
31077
+ };
31078
+ uren_mijn_vakantiesaldo: {
31079
+ Args: never;
31080
+ Returns: number;
31081
+ };
28343
31082
  uren_my_monteur_id: {
28344
31083
  Args: never;
28345
31084
  Returns: string;
28346
31085
  };
31086
+ uren_planning_dagagenda: {
31087
+ Args: {
31088
+ _tot: string;
31089
+ _van: string;
31090
+ };
31091
+ Returns: {
31092
+ end_at: string;
31093
+ id: string;
31094
+ is_tweede_man: boolean;
31095
+ notes: string;
31096
+ start_at: string;
31097
+ status: Database["public"]["Enums"]["planning_item_status"];
31098
+ werkbon_id: string;
31099
+ }[];
31100
+ };
31101
+ uren_set_planning_item_status: {
31102
+ Args: {
31103
+ _id: string;
31104
+ _status: Database["public"]["Enums"]["planning_item_status"];
31105
+ };
31106
+ Returns: undefined;
31107
+ };
31108
+ uren_set_planning_status: {
31109
+ Args: {
31110
+ p_status: Database["public"]["Enums"]["planning_item_status"];
31111
+ p_werkbon_id: string;
31112
+ };
31113
+ Returns: number;
31114
+ };
31115
+ uren_spiegel_bezig: {
31116
+ Args: never;
31117
+ Returns: boolean;
31118
+ };
31119
+ uren_standaardweek_beoordelen: {
31120
+ Args: {
31121
+ _goedkeuren: boolean;
31122
+ _id: string;
31123
+ _reden?: string;
31124
+ };
31125
+ Returns: undefined;
31126
+ };
31127
+ uren_standaardweek_doorzetten: {
31128
+ Args: {
31129
+ _monteur: string;
31130
+ };
31131
+ Returns: undefined;
31132
+ };
31133
+ uren_standaardweek_instellen: {
31134
+ Args: {
31135
+ _dagen: Json;
31136
+ };
31137
+ Returns: string;
31138
+ };
31139
+ uren_standaardweek_toepassen: {
31140
+ Args: {
31141
+ _dagen: Json;
31142
+ _monteur: string;
31143
+ };
31144
+ Returns: undefined;
31145
+ };
31146
+ uren_stop_time_log: {
31147
+ Args: {
31148
+ p_employee_id: string;
31149
+ p_end_lat?: number;
31150
+ p_end_lng?: number;
31151
+ p_end_time: string;
31152
+ };
31153
+ Returns: Json;
31154
+ };
31155
+ uren_switch_time_log: {
31156
+ Args: {
31157
+ p_employee_id: string;
31158
+ p_start_lat?: number;
31159
+ p_start_lng?: number;
31160
+ p_type: string;
31161
+ p_work_order_id?: string;
31162
+ };
31163
+ Returns: Json;
31164
+ };
31165
+ uren_sync_sick_time_off: {
31166
+ Args: {
31167
+ _period_id: string;
31168
+ };
31169
+ Returns: number;
31170
+ };
31171
+ uren_vakantie_aanvragen: {
31172
+ Args: {
31173
+ _end_date: string;
31174
+ _hours?: number;
31175
+ _start_date: string;
31176
+ };
31177
+ Returns: string;
31178
+ };
31179
+ uren_vakantiedag_wijzigen: {
31180
+ Args: {
31181
+ _date: string;
31182
+ };
31183
+ Returns: string;
31184
+ };
31185
+ uren_vakantiesaldo_uren: {
31186
+ Args: {
31187
+ _monteur: string;
31188
+ };
31189
+ Returns: number;
31190
+ };
31191
+ uren_week_start: {
31192
+ Args: {
31193
+ _datum: string;
31194
+ };
31195
+ Returns: string;
31196
+ };
31197
+ uren_werkweek_opsturen: {
31198
+ Args: {
31199
+ _week_start: string;
31200
+ };
31201
+ Returns: {
31202
+ approved_at: string | null;
31203
+ approved_by: string | null;
31204
+ contract_hours: number;
31205
+ created_at: string;
31206
+ employee_id: string;
31207
+ id: string;
31208
+ locked: boolean;
31209
+ monteur_toelichting: string | null;
31210
+ notes: string | null;
31211
+ planned_hours: number;
31212
+ status: string;
31213
+ submitted_at: string | null;
31214
+ updated_at: string;
31215
+ variance_hours: number;
31216
+ week_start: string;
31217
+ };
31218
+ SetofOptions: {
31219
+ from: "*";
31220
+ to: "time_log_week_approvals";
31221
+ isOneToOne: true;
31222
+ isSetofReturn: false;
31223
+ };
31224
+ } | {
31225
+ Args: {
31226
+ _vrije_dagen?: string[];
31227
+ _week_start: string;
31228
+ };
31229
+ Returns: {
31230
+ approved_at: string | null;
31231
+ approved_by: string | null;
31232
+ contract_hours: number;
31233
+ created_at: string;
31234
+ employee_id: string;
31235
+ id: string;
31236
+ locked: boolean;
31237
+ monteur_toelichting: string | null;
31238
+ notes: string | null;
31239
+ planned_hours: number;
31240
+ status: string;
31241
+ submitted_at: string | null;
31242
+ updated_at: string;
31243
+ variance_hours: number;
31244
+ week_start: string;
31245
+ };
31246
+ SetofOptions: {
31247
+ from: "*";
31248
+ to: "time_log_week_approvals";
31249
+ isOneToOne: true;
31250
+ isSetofReturn: false;
31251
+ };
31252
+ } | {
31253
+ Args: {
31254
+ _toelichting?: string;
31255
+ _vrije_dagen?: string[];
31256
+ _week_start: string;
31257
+ };
31258
+ Returns: {
31259
+ approved_at: string | null;
31260
+ approved_by: string | null;
31261
+ contract_hours: number;
31262
+ created_at: string;
31263
+ employee_id: string;
31264
+ id: string;
31265
+ locked: boolean;
31266
+ monteur_toelichting: string | null;
31267
+ notes: string | null;
31268
+ planned_hours: number;
31269
+ status: string;
31270
+ submitted_at: string | null;
31271
+ updated_at: string;
31272
+ variance_hours: number;
31273
+ week_start: string;
31274
+ };
31275
+ SetofOptions: {
31276
+ from: "*";
31277
+ to: "time_log_week_approvals";
31278
+ isOneToOne: true;
31279
+ isSetofReturn: false;
31280
+ };
31281
+ };
31282
+ vakantie_dagen_gebruikt: {
31283
+ Args: {
31284
+ _user_id: string;
31285
+ _year: number;
31286
+ };
31287
+ Returns: number;
31288
+ };
31289
+ vakantie_overuren: {
31290
+ Args: {
31291
+ _user_id: string;
31292
+ _year?: number;
31293
+ };
31294
+ Returns: number;
31295
+ };
31296
+ vakantie_saldo: {
31297
+ Args: {
31298
+ _user_id: string;
31299
+ _year?: number;
31300
+ };
31301
+ Returns: {
31302
+ day_hours: number;
31303
+ earned_from_overtime_days: number;
31304
+ entitlement_days: number;
31305
+ hours_to_next_day: number;
31306
+ overtime_hours: number;
31307
+ overtime_remainder_hours: number;
31308
+ paid_out_days: number;
31309
+ remaining_days: number;
31310
+ used_days: number;
31311
+ }[];
31312
+ };
31313
+ vakantie_saldo_overzicht: {
31314
+ Args: {
31315
+ _year?: number;
31316
+ };
31317
+ Returns: {
31318
+ day_hours: number;
31319
+ earned_from_overtime_days: number;
31320
+ entitlement_days: number;
31321
+ hours_to_next_day: number;
31322
+ overtime_hours: number;
31323
+ overtime_remainder_hours: number;
31324
+ paid_out_days: number;
31325
+ remaining_days: number;
31326
+ used_days: number;
31327
+ user_id: string;
31328
+ }[];
31329
+ };
28347
31330
  voorraad_cleanup_old_rows: {
28348
31331
  Args: never;
28349
31332
  Returns: Json;
@@ -28386,6 +31369,45 @@ export type Database = {
28386
31369
  };
28387
31370
  Returns: Json;
28388
31371
  };
31372
+ wo_list_offerte_requests: {
31373
+ Args: {
31374
+ _status?: string;
31375
+ };
31376
+ Returns: Json;
31377
+ };
31378
+ wo_list_proposals: {
31379
+ Args: {
31380
+ _status?: string;
31381
+ };
31382
+ Returns: Json;
31383
+ };
31384
+ wo_process_offerte_request: {
31385
+ Args: {
31386
+ _queue_id: string;
31387
+ };
31388
+ Returns: Json;
31389
+ };
31390
+ wo_process_proposal: {
31391
+ Args: {
31392
+ _id: string;
31393
+ _overrides?: Json;
31394
+ };
31395
+ Returns: Json;
31396
+ };
31397
+ wo_reject_offerte_request: {
31398
+ Args: {
31399
+ _queue_id: string;
31400
+ _reden?: string;
31401
+ };
31402
+ Returns: Json;
31403
+ };
31404
+ wo_reject_proposal: {
31405
+ Args: {
31406
+ _id: string;
31407
+ _reden?: string;
31408
+ };
31409
+ Returns: Json;
31410
+ };
28389
31411
  wo_set_status: {
28390
31412
  Args: {
28391
31413
  _reason?: string;