@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
@@ -10,6 +10,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10
10
  Row: {
11
11
  auto_print_delivery_note: boolean;
12
12
  auto_process_paused: boolean;
13
+ control_bulk_max_carts: number;
13
14
  created_at: string;
14
15
  extra_pick_days_with_stickers: number;
15
16
  id: string;
@@ -27,6 +28,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27
28
  Insert: {
28
29
  auto_print_delivery_note?: boolean;
29
30
  auto_process_paused?: boolean;
31
+ control_bulk_max_carts?: number;
30
32
  created_at?: string;
31
33
  extra_pick_days_with_stickers?: number;
32
34
  id?: string;
@@ -44,6 +46,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
44
46
  Update: {
45
47
  auto_print_delivery_note?: boolean;
46
48
  auto_process_paused?: boolean;
49
+ control_bulk_max_carts?: number;
47
50
  created_at?: string;
48
51
  extra_pick_days_with_stickers?: number;
49
52
  id?: string;
@@ -1386,6 +1389,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1386
1389
  id: string;
1387
1390
  notes: string | null;
1388
1391
  performed_at: string;
1392
+ request_key: string | null;
1389
1393
  rescheduled_count: number;
1390
1394
  stock_consumed_at: string | null;
1391
1395
  total_carts: number;
@@ -1400,6 +1404,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1400
1404
  id?: string;
1401
1405
  notes?: string | null;
1402
1406
  performed_at?: string;
1407
+ request_key?: string | null;
1403
1408
  rescheduled_count?: number;
1404
1409
  stock_consumed_at?: string | null;
1405
1410
  total_carts?: number;
@@ -1414,6 +1419,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1414
1419
  id?: string;
1415
1420
  notes?: string | null;
1416
1421
  performed_at?: string;
1422
+ request_key?: string | null;
1417
1423
  rescheduled_count?: number;
1418
1424
  stock_consumed_at?: string | null;
1419
1425
  total_carts?: number;
@@ -1426,9 +1432,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1426
1432
  Row: {
1427
1433
  assigned_at: string;
1428
1434
  cart_index: number;
1429
- cart_number: string | null;
1435
+ cart_number: string;
1430
1436
  day_seq: number | null;
1431
1437
  delivered_at: string | null;
1438
+ engine_cart_label: string | null;
1432
1439
  id: string;
1433
1440
  order_id: string;
1434
1441
  order_source: string;
@@ -1438,9 +1445,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1438
1445
  Insert: {
1439
1446
  assigned_at?: string;
1440
1447
  cart_index: number;
1441
- cart_number?: string | null;
1448
+ cart_number: string;
1442
1449
  day_seq?: number | null;
1443
1450
  delivered_at?: string | null;
1451
+ engine_cart_label?: string | null;
1444
1452
  id?: string;
1445
1453
  order_id: string;
1446
1454
  order_source: string;
@@ -1450,9 +1458,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1450
1458
  Update: {
1451
1459
  assigned_at?: string;
1452
1460
  cart_index?: number;
1453
- cart_number?: string | null;
1461
+ cart_number?: string;
1454
1462
  day_seq?: number | null;
1455
1463
  delivered_at?: string | null;
1464
+ engine_cart_label?: string | null;
1456
1465
  id?: string;
1457
1466
  order_id?: string;
1458
1467
  order_source?: string;
@@ -7985,6 +7994,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7985
7994
  };
7986
7995
  fust_types: {
7987
7996
  Row: {
7997
+ capacity_units: number | null;
7988
7998
  connection_id: string | null;
7989
7999
  created_at: string;
7990
8000
  custom_package_id: string | null;
@@ -8005,6 +8015,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8005
8015
  width_mm: number | null;
8006
8016
  };
8007
8017
  Insert: {
8018
+ capacity_units?: number | null;
8008
8019
  connection_id?: string | null;
8009
8020
  created_at?: string;
8010
8021
  custom_package_id?: string | null;
@@ -8025,6 +8036,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8025
8036
  width_mm?: number | null;
8026
8037
  };
8027
8038
  Update: {
8039
+ capacity_units?: number | null;
8028
8040
  connection_id?: string | null;
8029
8041
  created_at?: string;
8030
8042
  custom_package_id?: string | null;
@@ -8256,6 +8268,72 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8256
8268
  };
8257
8269
  Relationships: [];
8258
8270
  };
8271
+ invoice_branding_settings: {
8272
+ Row: {
8273
+ address: string;
8274
+ chamber_of_commerce_number: string;
8275
+ city: string;
8276
+ company_name: string;
8277
+ created_at: string;
8278
+ email: string;
8279
+ email_purpose: string | null;
8280
+ iban: string;
8281
+ logo_path: string | null;
8282
+ payment_term_days: number;
8283
+ phone: string;
8284
+ postal_code: string;
8285
+ primary_color: string;
8286
+ secondary_color: string;
8287
+ show_company_name: boolean;
8288
+ singleton_key: boolean;
8289
+ updated_at: string;
8290
+ vat_identification_number: string;
8291
+ website: string;
8292
+ };
8293
+ Insert: {
8294
+ address?: string;
8295
+ chamber_of_commerce_number?: string;
8296
+ city?: string;
8297
+ company_name?: string;
8298
+ created_at?: string;
8299
+ email?: string;
8300
+ email_purpose?: string | null;
8301
+ iban?: string;
8302
+ logo_path?: string | null;
8303
+ payment_term_days?: number;
8304
+ phone?: string;
8305
+ postal_code?: string;
8306
+ primary_color?: string;
8307
+ secondary_color?: string;
8308
+ show_company_name?: boolean;
8309
+ singleton_key?: boolean;
8310
+ updated_at?: string;
8311
+ vat_identification_number?: string;
8312
+ website?: string;
8313
+ };
8314
+ Update: {
8315
+ address?: string;
8316
+ chamber_of_commerce_number?: string;
8317
+ city?: string;
8318
+ company_name?: string;
8319
+ created_at?: string;
8320
+ email?: string;
8321
+ email_purpose?: string | null;
8322
+ iban?: string;
8323
+ logo_path?: string | null;
8324
+ payment_term_days?: number;
8325
+ phone?: string;
8326
+ postal_code?: string;
8327
+ primary_color?: string;
8328
+ secondary_color?: string;
8329
+ show_company_name?: boolean;
8330
+ singleton_key?: boolean;
8331
+ updated_at?: string;
8332
+ vat_identification_number?: string;
8333
+ website?: string;
8334
+ };
8335
+ Relationships: [];
8336
+ };
8259
8337
  invoice_items: {
8260
8338
  Row: {
8261
8339
  created_at: string;
@@ -8269,6 +8347,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8269
8347
  total_cents: number;
8270
8348
  unit: string;
8271
8349
  unit_price_cents: number;
8350
+ vat_rate: number | null;
8272
8351
  };
8273
8352
  Insert: {
8274
8353
  created_at?: string;
@@ -8282,6 +8361,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8282
8361
  total_cents?: number;
8283
8362
  unit?: string;
8284
8363
  unit_price_cents?: number;
8364
+ vat_rate?: number | null;
8285
8365
  };
8286
8366
  Update: {
8287
8367
  created_at?: string;
@@ -8295,6 +8375,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8295
8375
  total_cents?: number;
8296
8376
  unit?: string;
8297
8377
  unit_price_cents?: number;
8378
+ vat_rate?: number | null;
8298
8379
  };
8299
8380
  Relationships: [{
8300
8381
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8540,15 +8621,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8540
8621
  };
8541
8622
  invoices: {
8542
8623
  Row: {
8624
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8543
8625
  created_at: string;
8544
8626
  created_by: string | null;
8627
+ customer_address: string | null;
8628
+ customer_attention: string | null;
8629
+ customer_city: string | null;
8545
8630
  customer_id: string | null;
8546
8631
  customer_name: string | null;
8632
+ customer_postal_code: string | null;
8633
+ customer_vat_number: string | null;
8634
+ debtor_number: string | null;
8547
8635
  due_date: string | null;
8636
+ execution_date: string | null;
8548
8637
  id: string;
8549
8638
  invoice_date: string;
8550
8639
  invoice_number: string | null;
8551
8640
  note: string | null;
8641
+ payment_term_days: number;
8642
+ reference: string | null;
8643
+ sent_at: string | null;
8644
+ sent_to: string | null;
8552
8645
  source_number: string | null;
8553
8646
  source_ref: string | null;
8554
8647
  source_type: string;
@@ -8558,17 +8651,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8558
8651
  updated_at: string;
8559
8652
  vat_cents: number;
8560
8653
  vat_rate: number;
8654
+ work_address: string | null;
8561
8655
  };
8562
8656
  Insert: {
8657
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8563
8658
  created_at?: string;
8564
8659
  created_by?: string | null;
8660
+ customer_address?: string | null;
8661
+ customer_attention?: string | null;
8662
+ customer_city?: string | null;
8565
8663
  customer_id?: string | null;
8566
8664
  customer_name?: string | null;
8665
+ customer_postal_code?: string | null;
8666
+ customer_vat_number?: string | null;
8667
+ debtor_number?: string | null;
8567
8668
  due_date?: string | null;
8669
+ execution_date?: string | null;
8568
8670
  id?: string;
8569
8671
  invoice_date?: string;
8570
8672
  invoice_number?: string | null;
8571
8673
  note?: string | null;
8674
+ payment_term_days?: number;
8675
+ reference?: string | null;
8676
+ sent_at?: string | null;
8677
+ sent_to?: string | null;
8572
8678
  source_number?: string | null;
8573
8679
  source_ref?: string | null;
8574
8680
  source_type?: string;
@@ -8578,17 +8684,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8578
8684
  updated_at?: string;
8579
8685
  vat_cents?: number;
8580
8686
  vat_rate?: number;
8687
+ work_address?: string | null;
8581
8688
  };
8582
8689
  Update: {
8690
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8583
8691
  created_at?: string;
8584
8692
  created_by?: string | null;
8693
+ customer_address?: string | null;
8694
+ customer_attention?: string | null;
8695
+ customer_city?: string | null;
8585
8696
  customer_id?: string | null;
8586
8697
  customer_name?: string | null;
8698
+ customer_postal_code?: string | null;
8699
+ customer_vat_number?: string | null;
8700
+ debtor_number?: string | null;
8587
8701
  due_date?: string | null;
8702
+ execution_date?: string | null;
8588
8703
  id?: string;
8589
8704
  invoice_date?: string;
8590
8705
  invoice_number?: string | null;
8591
8706
  note?: string | null;
8707
+ payment_term_days?: number;
8708
+ reference?: string | null;
8709
+ sent_at?: string | null;
8710
+ sent_to?: string | null;
8592
8711
  source_number?: string | null;
8593
8712
  source_ref?: string | null;
8594
8713
  source_type?: string;
@@ -8598,6 +8717,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8598
8717
  updated_at?: string;
8599
8718
  vat_cents?: number;
8600
8719
  vat_rate?: number;
8720
+ work_address?: string | null;
8601
8721
  };
8602
8722
  Relationships: [{
8603
8723
  foreignKeyName: "invoices_customer_id_fkey";
@@ -8802,8 +8922,48 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8802
8922
  };
8803
8923
  Relationships: [];
8804
8924
  };
8925
+ itk_handover_afspraken: {
8926
+ Row: {
8927
+ afgesproken_door: string | null;
8928
+ afgesproken_op: string;
8929
+ besluit: string;
8930
+ created_at: string;
8931
+ item: string;
8932
+ modules: string[];
8933
+ sleutel: string;
8934
+ soort: string;
8935
+ updated_at: string;
8936
+ versie_vingerafdruk: string;
8937
+ };
8938
+ Insert: {
8939
+ afgesproken_door?: string | null;
8940
+ afgesproken_op?: string;
8941
+ besluit?: string;
8942
+ created_at?: string;
8943
+ item?: string;
8944
+ modules?: string[];
8945
+ sleutel: string;
8946
+ soort?: string;
8947
+ updated_at?: string;
8948
+ versie_vingerafdruk?: string;
8949
+ };
8950
+ Update: {
8951
+ afgesproken_door?: string | null;
8952
+ afgesproken_op?: string;
8953
+ besluit?: string;
8954
+ created_at?: string;
8955
+ item?: string;
8956
+ modules?: string[];
8957
+ sleutel?: string;
8958
+ soort?: string;
8959
+ updated_at?: string;
8960
+ versie_vingerafdruk?: string;
8961
+ };
8962
+ Relationships: [];
8963
+ };
8805
8964
  itk_handover_github_scan: {
8806
8965
  Row: {
8966
+ genegeerd_op: string | null;
8807
8967
  gescand_op: string;
8808
8968
  gevonden: boolean;
8809
8969
  melding: string | null;
@@ -8811,6 +8971,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8811
8971
  repo: string;
8812
8972
  };
8813
8973
  Insert: {
8974
+ genegeerd_op?: string | null;
8814
8975
  gescand_op?: string;
8815
8976
  gevonden?: boolean;
8816
8977
  melding?: string | null;
@@ -8818,6 +8979,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8818
8979
  repo: string;
8819
8980
  };
8820
8981
  Update: {
8982
+ genegeerd_op?: string | null;
8821
8983
  gescand_op?: string;
8822
8984
  gevonden?: boolean;
8823
8985
  melding?: string | null;
@@ -8826,13 +8988,45 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8826
8988
  };
8827
8989
  Relationships: [];
8828
8990
  };
8991
+ itk_handover_github_voortgang: {
8992
+ Row: {
8993
+ bijgewerkt_op: string;
8994
+ huidige_repo: string | null;
8995
+ id: boolean;
8996
+ klaar: number;
8997
+ loopt: boolean;
8998
+ totaal: number;
8999
+ };
9000
+ Insert: {
9001
+ bijgewerkt_op?: string;
9002
+ huidige_repo?: string | null;
9003
+ id?: boolean;
9004
+ klaar?: number;
9005
+ loopt?: boolean;
9006
+ totaal?: number;
9007
+ };
9008
+ Update: {
9009
+ bijgewerkt_op?: string;
9010
+ huidige_repo?: string | null;
9011
+ id?: boolean;
9012
+ klaar?: number;
9013
+ loopt?: boolean;
9014
+ totaal?: number;
9015
+ };
9016
+ Relationships: [];
9017
+ };
8829
9018
  itk_handover_module_meta: {
8830
9019
  Row: {
8831
9020
  check_aangevraagd_op: string | null;
8832
9021
  check_nodig: boolean;
8833
9022
  check_reden: string | null;
8834
9023
  created_at: string;
9024
+ md_bron: boolean;
9025
+ md_bron_op: string | null;
9026
+ md_bron_pad: string | null;
8835
9027
  module_id: string;
9028
+ nieuw_gezien: boolean;
9029
+ nieuw_gezien_op: string | null;
8836
9030
  project_url: string | null;
8837
9031
  publicatie_url: string | null;
8838
9032
  updated_at: string;
@@ -8842,7 +9036,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8842
9036
  check_nodig?: boolean;
8843
9037
  check_reden?: string | null;
8844
9038
  created_at?: string;
9039
+ md_bron?: boolean;
9040
+ md_bron_op?: string | null;
9041
+ md_bron_pad?: string | null;
8845
9042
  module_id: string;
9043
+ nieuw_gezien?: boolean;
9044
+ nieuw_gezien_op?: string | null;
8846
9045
  project_url?: string | null;
8847
9046
  publicatie_url?: string | null;
8848
9047
  updated_at?: string;
@@ -8852,13 +9051,45 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8852
9051
  check_nodig?: boolean;
8853
9052
  check_reden?: string | null;
8854
9053
  created_at?: string;
9054
+ md_bron?: boolean;
9055
+ md_bron_op?: string | null;
9056
+ md_bron_pad?: string | null;
8855
9057
  module_id?: string;
9058
+ nieuw_gezien?: boolean;
9059
+ nieuw_gezien_op?: string | null;
8856
9060
  project_url?: string | null;
8857
9061
  publicatie_url?: string | null;
8858
9062
  updated_at?: string;
8859
9063
  };
8860
9064
  Relationships: [];
8861
9065
  };
9066
+ itk_handover_module_naam: {
9067
+ Row: {
9068
+ bron_repo: string;
9069
+ created_at: string;
9070
+ module_id: string;
9071
+ standaardnaam: string | null;
9072
+ updated_at: string;
9073
+ weergavenaam: string;
9074
+ };
9075
+ Insert: {
9076
+ bron_repo?: string;
9077
+ created_at?: string;
9078
+ module_id: string;
9079
+ standaardnaam?: string | null;
9080
+ updated_at?: string;
9081
+ weergavenaam: string;
9082
+ };
9083
+ Update: {
9084
+ bron_repo?: string;
9085
+ created_at?: string;
9086
+ module_id?: string;
9087
+ standaardnaam?: string | null;
9088
+ updated_at?: string;
9089
+ weergavenaam?: string;
9090
+ };
9091
+ Relationships: [];
9092
+ };
8862
9093
  itk_handover_project_modules: {
8863
9094
  Row: {
8864
9095
  created_at: string;
@@ -8972,6 +9203,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8972
9203
  };
8973
9204
  itk_module_handovers: {
8974
9205
  Row: {
9206
+ bekende_risicos: string[];
8975
9207
  bevindingen: string | null;
8976
9208
  bezit_tabellen: string[];
8977
9209
  bron_commit: string | null;
@@ -8990,6 +9222,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8990
9222
  inhoud_md: string;
8991
9223
  is_actueel: boolean;
8992
9224
  is_gearchiveerd: boolean;
9225
+ laatst_bevestigd_op: string | null;
8993
9226
  laatst_gecontroleerd_op: string | null;
8994
9227
  module_id: string;
8995
9228
  module_titel: string;
@@ -8999,6 +9232,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8999
9232
  versie: number;
9000
9233
  };
9001
9234
  Insert: {
9235
+ bekende_risicos?: string[];
9002
9236
  bevindingen?: string | null;
9003
9237
  bezit_tabellen?: string[];
9004
9238
  bron_commit?: string | null;
@@ -9017,6 +9251,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9017
9251
  inhoud_md: string;
9018
9252
  is_actueel?: boolean;
9019
9253
  is_gearchiveerd?: boolean;
9254
+ laatst_bevestigd_op?: string | null;
9020
9255
  laatst_gecontroleerd_op?: string | null;
9021
9256
  module_id: string;
9022
9257
  module_titel: string;
@@ -9026,6 +9261,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9026
9261
  versie?: number;
9027
9262
  };
9028
9263
  Update: {
9264
+ bekende_risicos?: string[];
9029
9265
  bevindingen?: string | null;
9030
9266
  bezit_tabellen?: string[];
9031
9267
  bron_commit?: string | null;
@@ -9044,6 +9280,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9044
9280
  inhoud_md?: string;
9045
9281
  is_actueel?: boolean;
9046
9282
  is_gearchiveerd?: boolean;
9283
+ laatst_bevestigd_op?: string | null;
9047
9284
  laatst_gecontroleerd_op?: string | null;
9048
9285
  module_id?: string;
9049
9286
  module_titel?: string;
@@ -9179,6 +9416,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9179
9416
  quantity: number;
9180
9417
  sort_order: number;
9181
9418
  source: string;
9419
+ unit: string | null;
9182
9420
  unit_price_cents: number;
9183
9421
  updated_at: string;
9184
9422
  };
@@ -9192,6 +9430,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9192
9430
  quantity?: number;
9193
9431
  sort_order?: number;
9194
9432
  source?: string;
9433
+ unit?: string | null;
9195
9434
  unit_price_cents?: number;
9196
9435
  updated_at?: string;
9197
9436
  };
@@ -9205,6 +9444,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9205
9444
  quantity?: number;
9206
9445
  sort_order?: number;
9207
9446
  source?: string;
9447
+ unit?: string | null;
9208
9448
  unit_price_cents?: number;
9209
9449
  updated_at?: string;
9210
9450
  };
@@ -9228,6 +9468,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9228
9468
  created_at: string;
9229
9469
  default_geldigheid_dagen: number;
9230
9470
  default_vat_rate: number;
9471
+ email_purpose: string | null;
9231
9472
  id: string;
9232
9473
  singleton: boolean;
9233
9474
  updated_at: string;
@@ -9237,6 +9478,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9237
9478
  created_at?: string;
9238
9479
  default_geldigheid_dagen?: number;
9239
9480
  default_vat_rate?: number;
9481
+ email_purpose?: string | null;
9240
9482
  id?: string;
9241
9483
  singleton?: boolean;
9242
9484
  updated_at?: string;
@@ -9246,14 +9488,100 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9246
9488
  created_at?: string;
9247
9489
  default_geldigheid_dagen?: number;
9248
9490
  default_vat_rate?: number;
9491
+ email_purpose?: string | null;
9249
9492
  id?: string;
9250
9493
  singleton?: boolean;
9251
9494
  updated_at?: string;
9252
9495
  };
9253
9496
  Relationships: [];
9254
9497
  };
9498
+ itk_offerte_voorstel_status: {
9499
+ Row: {
9500
+ ai_concept: import("../integrations/supabase/types").Json | null;
9501
+ created_at: string;
9502
+ id: string;
9503
+ offerte_id: string | null;
9504
+ proposal_id: string;
9505
+ seen_at: string | null;
9506
+ updated_at: string;
9507
+ };
9508
+ Insert: {
9509
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9510
+ created_at?: string;
9511
+ id?: string;
9512
+ offerte_id?: string | null;
9513
+ proposal_id: string;
9514
+ seen_at?: string | null;
9515
+ updated_at?: string;
9516
+ };
9517
+ Update: {
9518
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9519
+ created_at?: string;
9520
+ id?: string;
9521
+ offerte_id?: string | null;
9522
+ proposal_id?: string;
9523
+ seen_at?: string | null;
9524
+ updated_at?: string;
9525
+ };
9526
+ Relationships: [{
9527
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9528
+ columns: ["offerte_id"];
9529
+ isOneToOne: false;
9530
+ referencedRelation: "itk_offertes";
9531
+ referencedColumns: ["id"];
9532
+ }];
9533
+ };
9534
+ itk_offerte_werkbon_queue: {
9535
+ Row: {
9536
+ bron_werkbon_id: string | null;
9537
+ created_at: string;
9538
+ foutmelding: string | null;
9539
+ id: string;
9540
+ offerte_id: string;
9541
+ payload: import("../integrations/supabase/types").Json;
9542
+ status: string;
9543
+ updated_at: string;
9544
+ verwerkt_op: string | null;
9545
+ werkbon_id: string | null;
9546
+ werkbon_nummer: string | null;
9547
+ };
9548
+ Insert: {
9549
+ bron_werkbon_id?: string | null;
9550
+ created_at?: string;
9551
+ foutmelding?: string | null;
9552
+ id?: string;
9553
+ offerte_id: string;
9554
+ payload?: import("../integrations/supabase/types").Json;
9555
+ status?: string;
9556
+ updated_at?: string;
9557
+ verwerkt_op?: string | null;
9558
+ werkbon_id?: string | null;
9559
+ werkbon_nummer?: string | null;
9560
+ };
9561
+ Update: {
9562
+ bron_werkbon_id?: string | null;
9563
+ created_at?: string;
9564
+ foutmelding?: string | null;
9565
+ id?: string;
9566
+ offerte_id?: string;
9567
+ payload?: import("../integrations/supabase/types").Json;
9568
+ status?: string;
9569
+ updated_at?: string;
9570
+ verwerkt_op?: string | null;
9571
+ werkbon_id?: string | null;
9572
+ werkbon_nummer?: string | null;
9573
+ };
9574
+ Relationships: [{
9575
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9576
+ columns: ["offerte_id"];
9577
+ isOneToOne: false;
9578
+ referencedRelation: "itk_offertes";
9579
+ referencedColumns: ["id"];
9580
+ }];
9581
+ };
9255
9582
  itk_offertes: {
9256
9583
  Row: {
9584
+ aandachtspunten: string | null;
9257
9585
  ai_generated: boolean;
9258
9586
  approved_at: string | null;
9259
9587
  binnen_mandaat: boolean;
@@ -9269,6 +9597,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9269
9597
  notities: string | null;
9270
9598
  offerte_number: string | null;
9271
9599
  omschrijving: string;
9600
+ onderwerp: string | null;
9272
9601
  rejected_at: string | null;
9273
9602
  sent_at: string | null;
9274
9603
  source_number: string | null;
@@ -9281,12 +9610,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9281
9610
  valid_until: string | null;
9282
9611
  vat_cents: number;
9283
9612
  vat_rate: number;
9613
+ verzonden_naar: string | null;
9284
9614
  viewed_at: string | null;
9285
9615
  volgnummer: number | null;
9616
+ voorwaarden: string | null;
9286
9617
  werkbon_id: string | null;
9287
9618
  work_location_id: string | null;
9288
9619
  };
9289
9620
  Insert: {
9621
+ aandachtspunten?: string | null;
9290
9622
  ai_generated?: boolean;
9291
9623
  approved_at?: string | null;
9292
9624
  binnen_mandaat?: boolean;
@@ -9302,6 +9634,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9302
9634
  notities?: string | null;
9303
9635
  offerte_number?: string | null;
9304
9636
  omschrijving?: string;
9637
+ onderwerp?: string | null;
9305
9638
  rejected_at?: string | null;
9306
9639
  sent_at?: string | null;
9307
9640
  source_number?: string | null;
@@ -9314,12 +9647,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9314
9647
  valid_until?: string | null;
9315
9648
  vat_cents?: number;
9316
9649
  vat_rate?: number;
9650
+ verzonden_naar?: string | null;
9317
9651
  viewed_at?: string | null;
9318
9652
  volgnummer?: number | null;
9653
+ voorwaarden?: string | null;
9319
9654
  werkbon_id?: string | null;
9320
9655
  work_location_id?: string | null;
9321
9656
  };
9322
9657
  Update: {
9658
+ aandachtspunten?: string | null;
9323
9659
  ai_generated?: boolean;
9324
9660
  approved_at?: string | null;
9325
9661
  binnen_mandaat?: boolean;
@@ -9335,6 +9671,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9335
9671
  notities?: string | null;
9336
9672
  offerte_number?: string | null;
9337
9673
  omschrijving?: string;
9674
+ onderwerp?: string | null;
9338
9675
  rejected_at?: string | null;
9339
9676
  sent_at?: string | null;
9340
9677
  source_number?: string | null;
@@ -9347,8 +9684,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9347
9684
  valid_until?: string | null;
9348
9685
  vat_cents?: number;
9349
9686
  vat_rate?: number;
9687
+ verzonden_naar?: string | null;
9350
9688
  viewed_at?: string | null;
9351
9689
  volgnummer?: number | null;
9690
+ voorwaarden?: string | null;
9352
9691
  werkbon_id?: string | null;
9353
9692
  work_location_id?: string | null;
9354
9693
  };
@@ -9524,6 +9863,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9524
9863
  };
9525
9864
  leave_requests: {
9526
9865
  Row: {
9866
+ cancellation_requested_at: string | null;
9867
+ cancellation_status: string | null;
9527
9868
  created_at: string;
9528
9869
  decided_at: string | null;
9529
9870
  decided_by: string | null;
@@ -9534,6 +9875,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9534
9875
  leave_type: string;
9535
9876
  monteur_id: string | null;
9536
9877
  reason: string | null;
9878
+ reden_afkeur: string | null;
9537
9879
  start_date: string;
9538
9880
  start_time: string | null;
9539
9881
  status: string;
@@ -9541,6 +9883,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9541
9883
  user_id: string;
9542
9884
  };
9543
9885
  Insert: {
9886
+ cancellation_requested_at?: string | null;
9887
+ cancellation_status?: string | null;
9544
9888
  created_at?: string;
9545
9889
  decided_at?: string | null;
9546
9890
  decided_by?: string | null;
@@ -9551,6 +9895,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9551
9895
  leave_type?: string;
9552
9896
  monteur_id?: string | null;
9553
9897
  reason?: string | null;
9898
+ reden_afkeur?: string | null;
9554
9899
  start_date: string;
9555
9900
  start_time?: string | null;
9556
9901
  status?: string;
@@ -9558,6 +9903,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9558
9903
  user_id: string;
9559
9904
  };
9560
9905
  Update: {
9906
+ cancellation_requested_at?: string | null;
9907
+ cancellation_status?: string | null;
9561
9908
  created_at?: string;
9562
9909
  decided_at?: string | null;
9563
9910
  decided_by?: string | null;
@@ -9568,6 +9915,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9568
9915
  leave_type?: string;
9569
9916
  monteur_id?: string | null;
9570
9917
  reason?: string | null;
9918
+ reden_afkeur?: string | null;
9571
9919
  start_date?: string;
9572
9920
  start_time?: string | null;
9573
9921
  status?: string;
@@ -10710,6 +11058,54 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10710
11058
  };
10711
11059
  Relationships: [];
10712
11060
  };
11061
+ logistics_order_finalize_queue: {
11062
+ Row: {
11063
+ attempts: number;
11064
+ claimed_at: string | null;
11065
+ created_at: string;
11066
+ finished_at: string | null;
11067
+ last_error: string | null;
11068
+ lease_until: string | null;
11069
+ max_attempts: number;
11070
+ next_attempt_at: string;
11071
+ order_id: string;
11072
+ reason: string | null;
11073
+ requested_at: string;
11074
+ status: string;
11075
+ updated_at: string;
11076
+ };
11077
+ Insert: {
11078
+ attempts?: number;
11079
+ claimed_at?: string | null;
11080
+ created_at?: string;
11081
+ finished_at?: string | null;
11082
+ last_error?: string | null;
11083
+ lease_until?: string | null;
11084
+ max_attempts?: number;
11085
+ next_attempt_at?: string;
11086
+ order_id: string;
11087
+ reason?: string | null;
11088
+ requested_at?: string;
11089
+ status?: string;
11090
+ updated_at?: string;
11091
+ };
11092
+ Update: {
11093
+ attempts?: number;
11094
+ claimed_at?: string | null;
11095
+ created_at?: string;
11096
+ finished_at?: string | null;
11097
+ last_error?: string | null;
11098
+ lease_until?: string | null;
11099
+ max_attempts?: number;
11100
+ next_attempt_at?: string;
11101
+ order_id?: string;
11102
+ reason?: string | null;
11103
+ requested_at?: string;
11104
+ status?: string;
11105
+ updated_at?: string;
11106
+ };
11107
+ Relationships: [];
11108
+ };
10713
11109
  logistics_order_merges: {
10714
11110
  Row: {
10715
11111
  group_key: string;
@@ -10746,6 +11142,72 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10746
11142
  };
10747
11143
  Relationships: [];
10748
11144
  };
11145
+ logistics_packing_deviations: {
11146
+ Row: {
11147
+ auto_fixed_at: string | null;
11148
+ created_at: string;
11149
+ dev_key: string;
11150
+ first_seen_at: string;
11151
+ floriday_packing: import("../integrations/supabase/types").Json;
11152
+ human_reason: string | null;
11153
+ id: string;
11154
+ last_seen_at: string;
11155
+ local_packing: import("../integrations/supabase/types").Json;
11156
+ needs_human: boolean;
11157
+ order_id: string | null;
11158
+ order_item_id: string | null;
11159
+ order_number: string | null;
11160
+ product_id: string | null;
11161
+ product_name: string | null;
11162
+ resolved_at: string | null;
11163
+ scope: string;
11164
+ trade_item_id: string | null;
11165
+ updated_at: string;
11166
+ };
11167
+ Insert: {
11168
+ auto_fixed_at?: string | null;
11169
+ created_at?: string;
11170
+ dev_key: string;
11171
+ first_seen_at?: string;
11172
+ floriday_packing?: import("../integrations/supabase/types").Json;
11173
+ human_reason?: string | null;
11174
+ id?: string;
11175
+ last_seen_at?: string;
11176
+ local_packing?: import("../integrations/supabase/types").Json;
11177
+ needs_human?: boolean;
11178
+ order_id?: string | null;
11179
+ order_item_id?: string | null;
11180
+ order_number?: string | null;
11181
+ product_id?: string | null;
11182
+ product_name?: string | null;
11183
+ resolved_at?: string | null;
11184
+ scope: string;
11185
+ trade_item_id?: string | null;
11186
+ updated_at?: string;
11187
+ };
11188
+ Update: {
11189
+ auto_fixed_at?: string | null;
11190
+ created_at?: string;
11191
+ dev_key?: string;
11192
+ first_seen_at?: string;
11193
+ floriday_packing?: import("../integrations/supabase/types").Json;
11194
+ human_reason?: string | null;
11195
+ id?: string;
11196
+ last_seen_at?: string;
11197
+ local_packing?: import("../integrations/supabase/types").Json;
11198
+ needs_human?: boolean;
11199
+ order_id?: string | null;
11200
+ order_item_id?: string | null;
11201
+ order_number?: string | null;
11202
+ product_id?: string | null;
11203
+ product_name?: string | null;
11204
+ resolved_at?: string | null;
11205
+ scope?: string;
11206
+ trade_item_id?: string | null;
11207
+ updated_at?: string;
11208
+ };
11209
+ Relationships: [];
11210
+ };
10749
11211
  logistics_pick_data_requests: {
10750
11212
  Row: {
10751
11213
  actions: import("../integrations/supabase/types").Json;
@@ -10824,16 +11286,40 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10824
11286
  };
10825
11287
  Relationships: [];
10826
11288
  };
10827
- logistics_plan_queue: {
11289
+ logistics_plan_locks: {
10828
11290
  Row: {
10829
- attempts: number;
10830
- claimed_at: string | null;
10831
- enqueued_at: string;
10832
- error: string | null;
10833
- id: string;
10834
- next_attempt_at: string;
10835
- order_id: string;
10836
- reason: string;
11291
+ created_at: string;
11292
+ lock_key: string;
11293
+ locked_until: string;
11294
+ owner: string | null;
11295
+ updated_at: string;
11296
+ };
11297
+ Insert: {
11298
+ created_at?: string;
11299
+ lock_key: string;
11300
+ locked_until: string;
11301
+ owner?: string | null;
11302
+ updated_at?: string;
11303
+ };
11304
+ Update: {
11305
+ created_at?: string;
11306
+ lock_key?: string;
11307
+ locked_until?: string;
11308
+ owner?: string | null;
11309
+ updated_at?: string;
11310
+ };
11311
+ Relationships: [];
11312
+ };
11313
+ logistics_plan_queue: {
11314
+ Row: {
11315
+ attempts: number;
11316
+ claimed_at: string | null;
11317
+ enqueued_at: string;
11318
+ error: string | null;
11319
+ id: string;
11320
+ next_attempt_at: string;
11321
+ order_id: string;
11322
+ reason: string;
10837
11323
  reason_code: string | null;
10838
11324
  status: string;
10839
11325
  updated_at: string;
@@ -10959,14 +11445,70 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10959
11445
  };
10960
11446
  Relationships: [];
10961
11447
  };
11448
+ logistics_planner_diff_runs: {
11449
+ Row: {
11450
+ after_snapshot: import("../integrations/supabase/types").Json | null;
11451
+ before_snapshot: import("../integrations/supabase/types").Json;
11452
+ buffer_id: string | null;
11453
+ carts_after: number | null;
11454
+ carts_before: number | null;
11455
+ compared_at: string | null;
11456
+ created_at: string;
11457
+ differences: import("../integrations/supabase/types").Json | null;
11458
+ id: string;
11459
+ identical: boolean | null;
11460
+ mode: string;
11461
+ order_id: string;
11462
+ order_ref: string | null;
11463
+ reason: string | null;
11464
+ status: string;
11465
+ };
11466
+ Insert: {
11467
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11468
+ before_snapshot?: import("../integrations/supabase/types").Json;
11469
+ buffer_id?: string | null;
11470
+ carts_after?: number | null;
11471
+ carts_before?: number | null;
11472
+ compared_at?: string | null;
11473
+ created_at?: string;
11474
+ differences?: import("../integrations/supabase/types").Json | null;
11475
+ id?: string;
11476
+ identical?: boolean | null;
11477
+ mode: string;
11478
+ order_id: string;
11479
+ order_ref?: string | null;
11480
+ reason?: string | null;
11481
+ status?: string;
11482
+ };
11483
+ Update: {
11484
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11485
+ before_snapshot?: import("../integrations/supabase/types").Json;
11486
+ buffer_id?: string | null;
11487
+ carts_after?: number | null;
11488
+ carts_before?: number | null;
11489
+ compared_at?: string | null;
11490
+ created_at?: string;
11491
+ differences?: import("../integrations/supabase/types").Json | null;
11492
+ id?: string;
11493
+ identical?: boolean | null;
11494
+ mode?: string;
11495
+ order_id?: string;
11496
+ order_ref?: string | null;
11497
+ reason?: string | null;
11498
+ status?: string;
11499
+ };
11500
+ Relationships: [];
11501
+ };
10962
11502
  logistics_rebuffer_state: {
10963
11503
  Row: {
10964
11504
  created_at: string;
10965
11505
  id: boolean;
10966
11506
  last_checked: number;
10967
11507
  last_duration_ms: number;
11508
+ last_mode: string | null;
10968
11509
  last_run_at: string | null;
10969
11510
  last_updated: number;
11511
+ last_would_change: number | null;
10970
11512
  pending: boolean;
10971
11513
  requested_at: string | null;
10972
11514
  updated_at: string;
@@ -10976,8 +11518,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10976
11518
  id?: boolean;
10977
11519
  last_checked?: number;
10978
11520
  last_duration_ms?: number;
11521
+ last_mode?: string | null;
10979
11522
  last_run_at?: string | null;
10980
11523
  last_updated?: number;
11524
+ last_would_change?: number | null;
10981
11525
  pending?: boolean;
10982
11526
  requested_at?: string | null;
10983
11527
  updated_at?: string;
@@ -10987,8 +11531,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10987
11531
  id?: boolean;
10988
11532
  last_checked?: number;
10989
11533
  last_duration_ms?: number;
11534
+ last_mode?: string | null;
10990
11535
  last_run_at?: string | null;
10991
11536
  last_updated?: number;
11537
+ last_would_change?: number | null;
10992
11538
  pending?: boolean;
10993
11539
  requested_at?: string | null;
10994
11540
  updated_at?: string;
@@ -11778,6 +12324,129 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11778
12324
  };
11779
12325
  Relationships: [];
11780
12326
  };
12327
+ logistics_trace_events_archive: {
12328
+ Row: {
12329
+ actor: string | null;
12330
+ attempts: number;
12331
+ calc: import("../integrations/supabase/types").Json | null;
12332
+ cart_ref: string | null;
12333
+ created_at: string;
12334
+ db_action: string | null;
12335
+ db_new: import("../integrations/supabase/types").Json | null;
12336
+ db_old: import("../integrations/supabase/types").Json | null;
12337
+ db_record: string | null;
12338
+ db_table: string | null;
12339
+ decision: string | null;
12340
+ duration_ms: number | null;
12341
+ error: string | null;
12342
+ error_class: string | null;
12343
+ external_action: string | null;
12344
+ external_ref: string | null;
12345
+ external_response: import("../integrations/supabase/types").Json | null;
12346
+ external_status: string | null;
12347
+ external_system: string | null;
12348
+ id: string;
12349
+ input: import("../integrations/supabase/types").Json | null;
12350
+ next_attempt_at: string | null;
12351
+ next_step: string | null;
12352
+ node_id: string | null;
12353
+ order_ref: string | null;
12354
+ order_source: string | null;
12355
+ output: import("../integrations/supabase/types").Json | null;
12356
+ phase: string;
12357
+ reads: import("../integrations/supabase/types").Json | null;
12358
+ reason: string | null;
12359
+ rule: string | null;
12360
+ slip_ref: string | null;
12361
+ status: string;
12362
+ step: string;
12363
+ superseded_at: string;
12364
+ superseded_reason: string | null;
12365
+ trace_id: string;
12366
+ values_used: import("../integrations/supabase/types").Json | null;
12367
+ };
12368
+ Insert: {
12369
+ actor?: string | null;
12370
+ attempts?: number;
12371
+ calc?: import("../integrations/supabase/types").Json | null;
12372
+ cart_ref?: string | null;
12373
+ created_at?: string;
12374
+ db_action?: string | null;
12375
+ db_new?: import("../integrations/supabase/types").Json | null;
12376
+ db_old?: import("../integrations/supabase/types").Json | null;
12377
+ db_record?: string | null;
12378
+ db_table?: string | null;
12379
+ decision?: string | null;
12380
+ duration_ms?: number | null;
12381
+ error?: string | null;
12382
+ error_class?: string | null;
12383
+ external_action?: string | null;
12384
+ external_ref?: string | null;
12385
+ external_response?: import("../integrations/supabase/types").Json | null;
12386
+ external_status?: string | null;
12387
+ external_system?: string | null;
12388
+ id?: string;
12389
+ input?: import("../integrations/supabase/types").Json | null;
12390
+ next_attempt_at?: string | null;
12391
+ next_step?: string | null;
12392
+ node_id?: string | null;
12393
+ order_ref?: string | null;
12394
+ order_source?: string | null;
12395
+ output?: import("../integrations/supabase/types").Json | null;
12396
+ phase: string;
12397
+ reads?: import("../integrations/supabase/types").Json | null;
12398
+ reason?: string | null;
12399
+ rule?: string | null;
12400
+ slip_ref?: string | null;
12401
+ status: string;
12402
+ step: string;
12403
+ superseded_at?: string;
12404
+ superseded_reason?: string | null;
12405
+ trace_id?: string;
12406
+ values_used?: import("../integrations/supabase/types").Json | null;
12407
+ };
12408
+ Update: {
12409
+ actor?: string | null;
12410
+ attempts?: number;
12411
+ calc?: import("../integrations/supabase/types").Json | null;
12412
+ cart_ref?: string | null;
12413
+ created_at?: string;
12414
+ db_action?: string | null;
12415
+ db_new?: import("../integrations/supabase/types").Json | null;
12416
+ db_old?: import("../integrations/supabase/types").Json | null;
12417
+ db_record?: string | null;
12418
+ db_table?: string | null;
12419
+ decision?: string | null;
12420
+ duration_ms?: number | null;
12421
+ error?: string | null;
12422
+ error_class?: string | null;
12423
+ external_action?: string | null;
12424
+ external_ref?: string | null;
12425
+ external_response?: import("../integrations/supabase/types").Json | null;
12426
+ external_status?: string | null;
12427
+ external_system?: string | null;
12428
+ id?: string;
12429
+ input?: import("../integrations/supabase/types").Json | null;
12430
+ next_attempt_at?: string | null;
12431
+ next_step?: string | null;
12432
+ node_id?: string | null;
12433
+ order_ref?: string | null;
12434
+ order_source?: string | null;
12435
+ output?: import("../integrations/supabase/types").Json | null;
12436
+ phase?: string;
12437
+ reads?: import("../integrations/supabase/types").Json | null;
12438
+ reason?: string | null;
12439
+ rule?: string | null;
12440
+ slip_ref?: string | null;
12441
+ status?: string;
12442
+ step?: string;
12443
+ superseded_at?: string;
12444
+ superseded_reason?: string | null;
12445
+ trace_id?: string;
12446
+ values_used?: import("../integrations/supabase/types").Json | null;
12447
+ };
12448
+ Relationships: [];
12449
+ };
11781
12450
  logistics_variables: {
11782
12451
  Row: {
11783
12452
  created_at: string;
@@ -11925,6 +12594,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11925
12594
  has_attachments: boolean;
11926
12595
  id: string;
11927
12596
  message_id: string | null;
12597
+ preview: string | null;
11928
12598
  profile_id: string | null;
11929
12599
  raw_size: number | null;
11930
12600
  received_at: string | null;
@@ -11948,6 +12618,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11948
12618
  has_attachments?: boolean;
11949
12619
  id?: string;
11950
12620
  message_id?: string | null;
12621
+ preview?: string | null;
11951
12622
  profile_id?: string | null;
11952
12623
  raw_size?: number | null;
11953
12624
  received_at?: string | null;
@@ -11971,6 +12642,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11971
12642
  has_attachments?: boolean;
11972
12643
  id?: string;
11973
12644
  message_id?: string | null;
12645
+ preview?: string | null;
11974
12646
  profile_id?: string | null;
11975
12647
  raw_size?: number | null;
11976
12648
  received_at?: string | null;
@@ -12002,6 +12674,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12002
12674
  };
12003
12675
  mailbox_order_proposals: {
12004
12676
  Row: {
12677
+ ai_ok: boolean | null;
12005
12678
  ai_validation: import("../integrations/supabase/types").Json | null;
12006
12679
  confidence: number | null;
12007
12680
  created_at: string;
@@ -12019,6 +12692,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12019
12692
  updated_at: string;
12020
12693
  };
12021
12694
  Insert: {
12695
+ ai_ok?: boolean | null;
12022
12696
  ai_validation?: import("../integrations/supabase/types").Json | null;
12023
12697
  confidence?: number | null;
12024
12698
  created_at?: string;
@@ -12036,6 +12710,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12036
12710
  updated_at?: string;
12037
12711
  };
12038
12712
  Update: {
12713
+ ai_ok?: boolean | null;
12039
12714
  ai_validation?: import("../integrations/supabase/types").Json | null;
12040
12715
  confidence?: number | null;
12041
12716
  created_at?: string;
@@ -12855,6 +13530,42 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12855
13530
  };
12856
13531
  Relationships: [];
12857
13532
  };
13533
+ monteur_contracten: {
13534
+ Row: {
13535
+ contract_type: string;
13536
+ created_at: string;
13537
+ days_per_week: number;
13538
+ hours_per_week: number;
13539
+ id: string;
13540
+ updated_at: string;
13541
+ user_id: string;
13542
+ vacation_day_hours: number;
13543
+ vacation_days_per_year: number;
13544
+ };
13545
+ Insert: {
13546
+ contract_type?: string;
13547
+ created_at?: string;
13548
+ days_per_week?: number;
13549
+ hours_per_week?: number;
13550
+ id?: string;
13551
+ updated_at?: string;
13552
+ user_id: string;
13553
+ vacation_day_hours?: number;
13554
+ vacation_days_per_year?: number;
13555
+ };
13556
+ Update: {
13557
+ contract_type?: string;
13558
+ created_at?: string;
13559
+ days_per_week?: number;
13560
+ hours_per_week?: number;
13561
+ id?: string;
13562
+ updated_at?: string;
13563
+ user_id?: string;
13564
+ vacation_day_hours?: number;
13565
+ vacation_days_per_year?: number;
13566
+ };
13567
+ Relationships: [];
13568
+ };
12858
13569
  nmbrs_component_mapping: {
12859
13570
  Row: {
12860
13571
  created_at: string;
@@ -13334,6 +14045,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13334
14045
  id: string;
13335
14046
  items: import("../integrations/supabase/types").Json;
13336
14047
  notes: string | null;
14048
+ order_creation_error: string | null;
14049
+ order_creation_failed_at: string | null;
14050
+ order_id: string | null;
13337
14051
  order_number: string | null;
13338
14052
  recipient_id: string;
13339
14053
  total_amount: number;
@@ -13348,6 +14062,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13348
14062
  id?: string;
13349
14063
  items?: import("../integrations/supabase/types").Json;
13350
14064
  notes?: string | null;
14065
+ order_creation_error?: string | null;
14066
+ order_creation_failed_at?: string | null;
14067
+ order_id?: string | null;
13351
14068
  order_number?: string | null;
13352
14069
  recipient_id: string;
13353
14070
  total_amount?: number;
@@ -13362,6 +14079,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13362
14079
  id?: string;
13363
14080
  items?: import("../integrations/supabase/types").Json;
13364
14081
  notes?: string | null;
14082
+ order_creation_error?: string | null;
14083
+ order_creation_failed_at?: string | null;
14084
+ order_id?: string | null;
13365
14085
  order_number?: string | null;
13366
14086
  recipient_id?: string;
13367
14087
  total_amount?: number;
@@ -13378,6 +14098,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13378
14098
  isOneToOne: false;
13379
14099
  referencedRelation: "customers";
13380
14100
  referencedColumns: ["id"];
14101
+ }, {
14102
+ foreignKeyName: "offer_orders_order_id_fkey";
14103
+ columns: ["order_id"];
14104
+ isOneToOne: false;
14105
+ referencedRelation: "orders";
14106
+ referencedColumns: ["id"];
13381
14107
  }, {
13382
14108
  foreignKeyName: "offer_orders_recipient_id_fkey";
13383
14109
  columns: ["recipient_id"];
@@ -13518,6 +14244,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13518
14244
  };
13519
14245
  Relationships: [];
13520
14246
  };
14247
+ order_block_notifications: {
14248
+ Row: {
14249
+ id: string;
14250
+ notified_at: string;
14251
+ order_id: string;
14252
+ reason: string | null;
14253
+ reason_key: string;
14254
+ };
14255
+ Insert: {
14256
+ id?: string;
14257
+ notified_at?: string;
14258
+ order_id: string;
14259
+ reason?: string | null;
14260
+ reason_key: string;
14261
+ };
14262
+ Update: {
14263
+ id?: string;
14264
+ notified_at?: string;
14265
+ order_id?: string;
14266
+ reason?: string | null;
14267
+ reason_key?: string;
14268
+ };
14269
+ Relationships: [];
14270
+ };
13521
14271
  order_buffers: {
13522
14272
  Row: {
13523
14273
  buffer_key: string;
@@ -13987,10 +14737,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13987
14737
  id: string;
13988
14738
  layers_per_cart: number | null;
13989
14739
  order_id: string;
14740
+ packing_locked_at: string | null;
14741
+ packing_locked_by: string | null;
13990
14742
  plants_per_crate: number | null;
13991
14743
  product_id: string | null;
13992
14744
  product_name: string;
13993
14745
  quantity: number;
14746
+ source_line_key: string | null;
13994
14747
  unit: string;
13995
14748
  unit_price: number | null;
13996
14749
  };
@@ -14000,10 +14753,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14000
14753
  id?: string;
14001
14754
  layers_per_cart?: number | null;
14002
14755
  order_id: string;
14756
+ packing_locked_at?: string | null;
14757
+ packing_locked_by?: string | null;
14003
14758
  plants_per_crate?: number | null;
14004
14759
  product_id?: string | null;
14005
14760
  product_name: string;
14006
14761
  quantity?: number;
14762
+ source_line_key?: string | null;
14007
14763
  unit?: string;
14008
14764
  unit_price?: number | null;
14009
14765
  };
@@ -14013,10 +14769,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14013
14769
  id?: string;
14014
14770
  layers_per_cart?: number | null;
14015
14771
  order_id?: string;
14772
+ packing_locked_at?: string | null;
14773
+ packing_locked_by?: string | null;
14016
14774
  plants_per_crate?: number | null;
14017
14775
  product_id?: string | null;
14018
14776
  product_name?: string;
14019
14777
  quantity?: number;
14778
+ source_line_key?: string | null;
14020
14779
  unit?: string;
14021
14780
  unit_price?: number | null;
14022
14781
  };
@@ -15525,38 +16284,227 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15525
16284
  referencedColumns: ["id"];
15526
16285
  }];
15527
16286
  };
15528
- price_list_rows: {
16287
+ planning_monteur_day_locations: {
15529
16288
  Row: {
15530
- action: string;
15531
16289
  created_at: string;
16290
+ day: string;
16291
+ end_at: string;
15532
16292
  id: string;
15533
- message: string | null;
15534
- parsed: import("../integrations/supabase/types").Json;
15535
- price_list_id: string;
15536
- raw: import("../integrations/supabase/types").Json;
15537
- row_number: number;
15538
- supplier_product_id: string | null;
16293
+ monteur_id: string;
16294
+ start_from: string;
16295
+ updated_at: string;
15539
16296
  };
15540
16297
  Insert: {
15541
- action?: string;
15542
16298
  created_at?: string;
16299
+ day: string;
16300
+ end_at?: string;
15543
16301
  id?: string;
15544
- message?: string | null;
15545
- parsed?: import("../integrations/supabase/types").Json;
15546
- price_list_id: string;
15547
- raw?: import("../integrations/supabase/types").Json;
15548
- row_number: number;
15549
- supplier_product_id?: string | null;
16302
+ monteur_id: string;
16303
+ start_from?: string;
16304
+ updated_at?: string;
15550
16305
  };
15551
16306
  Update: {
15552
- action?: string;
15553
16307
  created_at?: string;
16308
+ day?: string;
16309
+ end_at?: string;
15554
16310
  id?: string;
15555
- message?: string | null;
15556
- parsed?: import("../integrations/supabase/types").Json;
15557
- price_list_id?: string;
15558
- raw?: import("../integrations/supabase/types").Json;
15559
- row_number?: number;
16311
+ monteur_id?: string;
16312
+ start_from?: string;
16313
+ updated_at?: string;
16314
+ };
16315
+ Relationships: [];
16316
+ };
16317
+ planning_monteur_locations: {
16318
+ Row: {
16319
+ created_at: string;
16320
+ default_end: string;
16321
+ default_start: string;
16322
+ end_address: string | null;
16323
+ home_address: string | null;
16324
+ id: string;
16325
+ monteur_id: string;
16326
+ start_address: string | null;
16327
+ updated_at: string;
16328
+ };
16329
+ Insert: {
16330
+ created_at?: string;
16331
+ default_end?: string;
16332
+ default_start?: string;
16333
+ end_address?: string | null;
16334
+ home_address?: string | null;
16335
+ id?: string;
16336
+ monteur_id: string;
16337
+ start_address?: string | null;
16338
+ updated_at?: string;
16339
+ };
16340
+ Update: {
16341
+ created_at?: string;
16342
+ default_end?: string;
16343
+ default_start?: string;
16344
+ end_address?: string | null;
16345
+ home_address?: string | null;
16346
+ id?: string;
16347
+ monteur_id?: string;
16348
+ start_address?: string | null;
16349
+ updated_at?: string;
16350
+ };
16351
+ Relationships: [];
16352
+ };
16353
+ planning_settings: {
16354
+ Row: {
16355
+ company_address: string | null;
16356
+ created_at: string;
16357
+ id: string;
16358
+ singleton: boolean;
16359
+ updated_at: string;
16360
+ };
16361
+ Insert: {
16362
+ company_address?: string | null;
16363
+ created_at?: string;
16364
+ id?: string;
16365
+ singleton?: boolean;
16366
+ updated_at?: string;
16367
+ };
16368
+ Update: {
16369
+ company_address?: string | null;
16370
+ created_at?: string;
16371
+ id?: string;
16372
+ singleton?: boolean;
16373
+ updated_at?: string;
16374
+ };
16375
+ Relationships: [];
16376
+ };
16377
+ planning_travel_legs: {
16378
+ Row: {
16379
+ after_min: number;
16380
+ after_reason: string | null;
16381
+ after_status: string;
16382
+ after_to_address: string | null;
16383
+ before_from_address: string | null;
16384
+ before_min: number;
16385
+ before_reason: string | null;
16386
+ before_status: string;
16387
+ computed_at: string;
16388
+ computed_end_at: string | null;
16389
+ computed_start_at: string | null;
16390
+ created_at: string;
16391
+ id: string;
16392
+ monteur_id: string;
16393
+ planning_item_id: string;
16394
+ shared_after_item_id: string | null;
16395
+ shared_before_item_id: string | null;
16396
+ updated_at: string;
16397
+ };
16398
+ Insert: {
16399
+ after_min?: number;
16400
+ after_reason?: string | null;
16401
+ after_status?: string;
16402
+ after_to_address?: string | null;
16403
+ before_from_address?: string | null;
16404
+ before_min?: number;
16405
+ before_reason?: string | null;
16406
+ before_status?: string;
16407
+ computed_at?: string;
16408
+ computed_end_at?: string | null;
16409
+ computed_start_at?: string | null;
16410
+ created_at?: string;
16411
+ id?: string;
16412
+ monteur_id: string;
16413
+ planning_item_id: string;
16414
+ shared_after_item_id?: string | null;
16415
+ shared_before_item_id?: string | null;
16416
+ updated_at?: string;
16417
+ };
16418
+ Update: {
16419
+ after_min?: number;
16420
+ after_reason?: string | null;
16421
+ after_status?: string;
16422
+ after_to_address?: string | null;
16423
+ before_from_address?: string | null;
16424
+ before_min?: number;
16425
+ before_reason?: string | null;
16426
+ before_status?: string;
16427
+ computed_at?: string;
16428
+ computed_end_at?: string | null;
16429
+ computed_start_at?: string | null;
16430
+ created_at?: string;
16431
+ id?: string;
16432
+ monteur_id?: string;
16433
+ planning_item_id?: string;
16434
+ shared_after_item_id?: string | null;
16435
+ shared_before_item_id?: string | null;
16436
+ updated_at?: string;
16437
+ };
16438
+ Relationships: [{
16439
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16440
+ columns: ["planning_item_id"];
16441
+ isOneToOne: false;
16442
+ referencedRelation: "planning_items";
16443
+ referencedColumns: ["id"];
16444
+ }, {
16445
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16446
+ columns: ["planning_item_id"];
16447
+ isOneToOne: false;
16448
+ referencedRelation: "planning_overview";
16449
+ referencedColumns: ["id"];
16450
+ }, {
16451
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16452
+ columns: ["shared_after_item_id"];
16453
+ isOneToOne: false;
16454
+ referencedRelation: "planning_items";
16455
+ referencedColumns: ["id"];
16456
+ }, {
16457
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16458
+ columns: ["shared_after_item_id"];
16459
+ isOneToOne: false;
16460
+ referencedRelation: "planning_overview";
16461
+ referencedColumns: ["id"];
16462
+ }, {
16463
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16464
+ columns: ["shared_before_item_id"];
16465
+ isOneToOne: false;
16466
+ referencedRelation: "planning_items";
16467
+ referencedColumns: ["id"];
16468
+ }, {
16469
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16470
+ columns: ["shared_before_item_id"];
16471
+ isOneToOne: false;
16472
+ referencedRelation: "planning_overview";
16473
+ referencedColumns: ["id"];
16474
+ }];
16475
+ };
16476
+ price_list_rows: {
16477
+ Row: {
16478
+ action: string;
16479
+ created_at: string;
16480
+ id: string;
16481
+ message: string | null;
16482
+ parsed: import("../integrations/supabase/types").Json;
16483
+ price_list_id: string;
16484
+ raw: import("../integrations/supabase/types").Json;
16485
+ row_number: number;
16486
+ supplier_product_id: string | null;
16487
+ };
16488
+ Insert: {
16489
+ action?: string;
16490
+ created_at?: string;
16491
+ id?: string;
16492
+ message?: string | null;
16493
+ parsed?: import("../integrations/supabase/types").Json;
16494
+ price_list_id: string;
16495
+ raw?: import("../integrations/supabase/types").Json;
16496
+ row_number: number;
16497
+ supplier_product_id?: string | null;
16498
+ };
16499
+ Update: {
16500
+ action?: string;
16501
+ created_at?: string;
16502
+ id?: string;
16503
+ message?: string | null;
16504
+ parsed?: import("../integrations/supabase/types").Json;
16505
+ price_list_id?: string;
16506
+ raw?: import("../integrations/supabase/types").Json;
16507
+ row_number?: number;
15560
16508
  supplier_product_id?: string | null;
15561
16509
  };
15562
16510
  Relationships: [{
@@ -16697,6 +17645,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16697
17645
  };
16698
17646
  product_load_settings: {
16699
17647
  Row: {
17648
+ build: import("../integrations/supabase/types").Json | null;
17649
+ build_status: string;
16700
17650
  created_at: string;
16701
17651
  id: string;
16702
17652
  is_package: boolean;
@@ -16714,6 +17664,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16714
17664
  updated_at: string;
16715
17665
  };
16716
17666
  Insert: {
17667
+ build?: import("../integrations/supabase/types").Json | null;
17668
+ build_status?: string;
16717
17669
  created_at?: string;
16718
17670
  id?: string;
16719
17671
  is_package?: boolean;
@@ -16731,6 +17683,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16731
17683
  updated_at?: string;
16732
17684
  };
16733
17685
  Update: {
17686
+ build?: import("../integrations/supabase/types").Json | null;
17687
+ build_status?: string;
16734
17688
  created_at?: string;
16735
17689
  id?: string;
16736
17690
  is_package?: boolean;
@@ -16800,6 +17754,108 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16800
17754
  };
16801
17755
  Relationships: [];
16802
17756
  };
17757
+ product_suppliers: {
17758
+ Row: {
17759
+ created_at: string;
17760
+ id: string;
17761
+ is_preferred: boolean;
17762
+ lead_time_days: number | null;
17763
+ min_order_quantity: number | null;
17764
+ notes: string | null;
17765
+ product_id: string;
17766
+ purchase_price_cents: number | null;
17767
+ supplier_article_number: string | null;
17768
+ supplier_id: string;
17769
+ updated_at: string;
17770
+ };
17771
+ Insert: {
17772
+ created_at?: string;
17773
+ id?: string;
17774
+ is_preferred?: boolean;
17775
+ lead_time_days?: number | null;
17776
+ min_order_quantity?: number | null;
17777
+ notes?: string | null;
17778
+ product_id: string;
17779
+ purchase_price_cents?: number | null;
17780
+ supplier_article_number?: string | null;
17781
+ supplier_id: string;
17782
+ updated_at?: string;
17783
+ };
17784
+ Update: {
17785
+ created_at?: string;
17786
+ id?: string;
17787
+ is_preferred?: boolean;
17788
+ lead_time_days?: number | null;
17789
+ min_order_quantity?: number | null;
17790
+ notes?: string | null;
17791
+ product_id?: string;
17792
+ purchase_price_cents?: number | null;
17793
+ supplier_article_number?: string | null;
17794
+ supplier_id?: string;
17795
+ updated_at?: string;
17796
+ };
17797
+ Relationships: [{
17798
+ foreignKeyName: "product_suppliers_product_id_fkey";
17799
+ columns: ["product_id"];
17800
+ isOneToOne: false;
17801
+ referencedRelation: "logistics_product_dimensions";
17802
+ referencedColumns: ["product_id"];
17803
+ }, {
17804
+ foreignKeyName: "product_suppliers_product_id_fkey";
17805
+ columns: ["product_id"];
17806
+ isOneToOne: false;
17807
+ referencedRelation: "products";
17808
+ referencedColumns: ["id"];
17809
+ }, {
17810
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17811
+ columns: ["supplier_id"];
17812
+ isOneToOne: false;
17813
+ referencedRelation: "suppliers";
17814
+ referencedColumns: ["id"];
17815
+ }];
17816
+ };
17817
+ product_tray_stickers: {
17818
+ Row: {
17819
+ bestand_url: string;
17820
+ bestandsgrootte: number | null;
17821
+ bestandsnaam: string | null;
17822
+ bestandspad: string | null;
17823
+ created_at: string;
17824
+ product_id: string;
17825
+ updated_at: string;
17826
+ };
17827
+ Insert: {
17828
+ bestand_url: string;
17829
+ bestandsgrootte?: number | null;
17830
+ bestandsnaam?: string | null;
17831
+ bestandspad?: string | null;
17832
+ created_at?: string;
17833
+ product_id: string;
17834
+ updated_at?: string;
17835
+ };
17836
+ Update: {
17837
+ bestand_url?: string;
17838
+ bestandsgrootte?: number | null;
17839
+ bestandsnaam?: string | null;
17840
+ bestandspad?: string | null;
17841
+ created_at?: string;
17842
+ product_id?: string;
17843
+ updated_at?: string;
17844
+ };
17845
+ Relationships: [{
17846
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17847
+ columns: ["product_id"];
17848
+ isOneToOne: true;
17849
+ referencedRelation: "logistics_product_dimensions";
17850
+ referencedColumns: ["product_id"];
17851
+ }, {
17852
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17853
+ columns: ["product_id"];
17854
+ isOneToOne: true;
17855
+ referencedRelation: "products";
17856
+ referencedColumns: ["id"];
17857
+ }];
17858
+ };
16803
17859
  products: {
16804
17860
  Row: {
16805
17861
  article_number: string | null;
@@ -16808,6 +17864,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16808
17864
  crates_per_layer: number;
16809
17865
  created_at: string;
16810
17866
  custom_fields: import("../integrations/supabase/types").Json;
17867
+ floriday_packing_confirmed_at: string | null;
17868
+ floriday_packing_source: string | null;
16811
17869
  floriday_trade_item_id: string | null;
16812
17870
  fust_type_id: string | null;
16813
17871
  id: string;
@@ -16836,6 +17894,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16836
17894
  crates_per_layer?: number;
16837
17895
  created_at?: string;
16838
17896
  custom_fields?: import("../integrations/supabase/types").Json;
17897
+ floriday_packing_confirmed_at?: string | null;
17898
+ floriday_packing_source?: string | null;
16839
17899
  floriday_trade_item_id?: string | null;
16840
17900
  fust_type_id?: string | null;
16841
17901
  id?: string;
@@ -16864,6 +17924,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16864
17924
  crates_per_layer?: number;
16865
17925
  created_at?: string;
16866
17926
  custom_fields?: import("../integrations/supabase/types").Json;
17927
+ floriday_packing_confirmed_at?: string | null;
17928
+ floriday_packing_source?: string | null;
16867
17929
  floriday_trade_item_id?: string | null;
16868
17930
  fust_type_id?: string | null;
16869
17931
  id?: string;
@@ -16963,6 +18025,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16963
18025
  id: string;
16964
18026
  is_superadmin: boolean;
16965
18027
  notification_preferences: import("../integrations/supabase/types").Json;
18028
+ phone: string | null;
16966
18029
  tenant_id: string | null;
16967
18030
  updated_at: string;
16968
18031
  };
@@ -16975,6 +18038,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16975
18038
  id: string;
16976
18039
  is_superadmin?: boolean;
16977
18040
  notification_preferences?: import("../integrations/supabase/types").Json;
18041
+ phone?: string | null;
16978
18042
  tenant_id?: string | null;
16979
18043
  updated_at?: string;
16980
18044
  };
@@ -16987,6 +18051,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16987
18051
  id?: string;
16988
18052
  is_superadmin?: boolean;
16989
18053
  notification_preferences?: import("../integrations/supabase/types").Json;
18054
+ phone?: string | null;
16990
18055
  tenant_id?: string | null;
16991
18056
  updated_at?: string;
16992
18057
  };
@@ -18730,40 +19795,52 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18730
19795
  Row: {
18731
19796
  approved_at: string | null;
18732
19797
  approved_by: string | null;
19798
+ contract_hours: number;
18733
19799
  created_at: string;
18734
19800
  employee_id: string;
18735
19801
  id: string;
18736
19802
  locked: boolean;
19803
+ monteur_toelichting: string | null;
18737
19804
  notes: string | null;
19805
+ planned_hours: number;
18738
19806
  status: string;
18739
19807
  submitted_at: string | null;
18740
19808
  updated_at: string;
19809
+ variance_hours: number;
18741
19810
  week_start: string;
18742
19811
  };
18743
19812
  Insert: {
18744
19813
  approved_at?: string | null;
18745
19814
  approved_by?: string | null;
19815
+ contract_hours?: number;
18746
19816
  created_at?: string;
18747
19817
  employee_id: string;
18748
19818
  id?: string;
18749
19819
  locked?: boolean;
19820
+ monteur_toelichting?: string | null;
18750
19821
  notes?: string | null;
19822
+ planned_hours?: number;
18751
19823
  status?: string;
18752
19824
  submitted_at?: string | null;
18753
19825
  updated_at?: string;
19826
+ variance_hours?: number;
18754
19827
  week_start: string;
18755
19828
  };
18756
19829
  Update: {
18757
19830
  approved_at?: string | null;
18758
19831
  approved_by?: string | null;
19832
+ contract_hours?: number;
18759
19833
  created_at?: string;
18760
19834
  employee_id?: string;
18761
19835
  id?: string;
18762
19836
  locked?: boolean;
19837
+ monteur_toelichting?: string | null;
18763
19838
  notes?: string | null;
19839
+ planned_hours?: number;
18764
19840
  status?: string;
18765
19841
  submitted_at?: string | null;
18766
19842
  updated_at?: string;
19843
+ variance_hours?: number;
18767
19844
  week_start?: string;
18768
19845
  };
18769
19846
  Relationships: [{
@@ -20050,16 +21127,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20050
21127
  Row: {
20051
21128
  active_environment: string;
20052
21129
  id: number;
21130
+ public_base_url: string | null;
20053
21131
  updated_at: string;
20054
21132
  };
20055
21133
  Insert: {
20056
21134
  active_environment?: string;
20057
21135
  id?: number;
21136
+ public_base_url?: string | null;
20058
21137
  updated_at?: string;
20059
21138
  };
20060
21139
  Update: {
20061
21140
  active_environment?: string;
20062
21141
  id?: number;
21142
+ public_base_url?: string | null;
20063
21143
  updated_at?: string;
20064
21144
  };
20065
21145
  Relationships: [];
@@ -20097,6 +21177,45 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20097
21177
  referencedColumns: ["id"];
20098
21178
  }];
20099
21179
  };
21180
+ uren_beschikbare_dagen: {
21181
+ Row: {
21182
+ bron: string;
21183
+ created_at: string;
21184
+ datum: string;
21185
+ eind_tijd: string | null;
21186
+ half_hour_slots: number[];
21187
+ id: string;
21188
+ monteur_id: string;
21189
+ start_tijd: string | null;
21190
+ updated_at: string;
21191
+ uren: number;
21192
+ };
21193
+ Insert: {
21194
+ bron?: string;
21195
+ created_at?: string;
21196
+ datum: string;
21197
+ eind_tijd?: string | null;
21198
+ half_hour_slots?: number[];
21199
+ id?: string;
21200
+ monteur_id: string;
21201
+ start_tijd?: string | null;
21202
+ updated_at?: string;
21203
+ uren?: number;
21204
+ };
21205
+ Update: {
21206
+ bron?: string;
21207
+ created_at?: string;
21208
+ datum?: string;
21209
+ eind_tijd?: string | null;
21210
+ half_hour_slots?: number[];
21211
+ id?: string;
21212
+ monteur_id?: string;
21213
+ start_tijd?: string | null;
21214
+ updated_at?: string;
21215
+ uren?: number;
21216
+ };
21217
+ Relationships: [];
21218
+ };
20100
21219
  uren_cao_profiles: {
20101
21220
  Row: {
20102
21221
  break_minutes: number | null;
@@ -20235,30 +21354,159 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20235
21354
  };
20236
21355
  Relationships: [];
20237
21356
  };
20238
- uren_settings: {
21357
+ uren_maandafsluitingen: {
20239
21358
  Row: {
20240
- break_minutes: number;
21359
+ afgesloten_at: string | null;
21360
+ afgesloten_door: string | null;
21361
+ contract_minuten: number;
21362
+ correctie_reden: string | null;
20241
21363
  created_at: string;
20242
- daily_threshold_hours: number;
20243
- id: boolean;
20244
- include_travel: boolean;
20245
- min_occupancy_monteurs: number;
20246
- ov02_percentage: number;
20247
- ov03_percentage: number;
21364
+ gecorrigeerd_at: string | null;
21365
+ gecorrigeerd_door: string | null;
21366
+ gewerkte_minuten: number;
21367
+ id: string;
21368
+ maand: string;
21369
+ min_minuten: number;
21370
+ monteur_id: string;
21371
+ netto_verschil_minuten: number;
21372
+ normaal_uitbetaald_minuten: number;
21373
+ omgezet_vakantie_minuten: number;
21374
+ overdracht_vorige_minuten: number;
21375
+ overuren_minuten: number;
21376
+ plus_minuten: number;
21377
+ rest_overuren_minuten: number;
21378
+ status: string;
21379
+ totaal_uitbetaald_minuten: number;
20248
21380
  updated_at: string;
20249
- weekly_threshold_hours: number;
20250
- workday_end: string;
20251
- workday_start: string;
21381
+ vakantie_uren_bijgeschreven: number;
20252
21382
  };
20253
21383
  Insert: {
20254
- break_minutes?: number;
21384
+ afgesloten_at?: string | null;
21385
+ afgesloten_door?: string | null;
21386
+ contract_minuten?: number;
21387
+ correctie_reden?: string | null;
20255
21388
  created_at?: string;
20256
- daily_threshold_hours?: number;
20257
- id?: boolean;
20258
- include_travel?: boolean;
20259
- min_occupancy_monteurs?: number;
20260
- ov02_percentage?: number;
20261
- ov03_percentage?: number;
21389
+ gecorrigeerd_at?: string | null;
21390
+ gecorrigeerd_door?: string | null;
21391
+ gewerkte_minuten?: number;
21392
+ id?: string;
21393
+ maand: string;
21394
+ min_minuten?: number;
21395
+ monteur_id: string;
21396
+ netto_verschil_minuten?: number;
21397
+ normaal_uitbetaald_minuten?: number;
21398
+ omgezet_vakantie_minuten?: number;
21399
+ overdracht_vorige_minuten?: number;
21400
+ overuren_minuten?: number;
21401
+ plus_minuten?: number;
21402
+ rest_overuren_minuten?: number;
21403
+ status?: string;
21404
+ totaal_uitbetaald_minuten?: number;
21405
+ updated_at?: string;
21406
+ vakantie_uren_bijgeschreven?: number;
21407
+ };
21408
+ Update: {
21409
+ afgesloten_at?: string | null;
21410
+ afgesloten_door?: string | null;
21411
+ contract_minuten?: number;
21412
+ correctie_reden?: string | null;
21413
+ created_at?: string;
21414
+ gecorrigeerd_at?: string | null;
21415
+ gecorrigeerd_door?: string | null;
21416
+ gewerkte_minuten?: number;
21417
+ id?: string;
21418
+ maand?: string;
21419
+ min_minuten?: number;
21420
+ monteur_id?: string;
21421
+ netto_verschil_minuten?: number;
21422
+ normaal_uitbetaald_minuten?: number;
21423
+ omgezet_vakantie_minuten?: number;
21424
+ overdracht_vorige_minuten?: number;
21425
+ overuren_minuten?: number;
21426
+ plus_minuten?: number;
21427
+ rest_overuren_minuten?: number;
21428
+ status?: string;
21429
+ totaal_uitbetaald_minuten?: number;
21430
+ updated_at?: string;
21431
+ vakantie_uren_bijgeschreven?: number;
21432
+ };
21433
+ Relationships: [];
21434
+ };
21435
+ uren_overuren_verklaringen: {
21436
+ Row: {
21437
+ beoordeeld_door: string | null;
21438
+ beoordeeld_op: string | null;
21439
+ created_at: string;
21440
+ datum: string;
21441
+ eind_tijd: string | null;
21442
+ id: string;
21443
+ ingediend_at: string;
21444
+ monteur_id: string;
21445
+ overuren: number;
21446
+ reden_afkeur: string | null;
21447
+ start_tijd: string | null;
21448
+ status: string;
21449
+ toelichting: string;
21450
+ updated_at: string;
21451
+ };
21452
+ Insert: {
21453
+ beoordeeld_door?: string | null;
21454
+ beoordeeld_op?: string | null;
21455
+ created_at?: string;
21456
+ datum: string;
21457
+ eind_tijd?: string | null;
21458
+ id?: string;
21459
+ ingediend_at?: string;
21460
+ monteur_id: string;
21461
+ overuren: number;
21462
+ reden_afkeur?: string | null;
21463
+ start_tijd?: string | null;
21464
+ status?: string;
21465
+ toelichting: string;
21466
+ updated_at?: string;
21467
+ };
21468
+ Update: {
21469
+ beoordeeld_door?: string | null;
21470
+ beoordeeld_op?: string | null;
21471
+ created_at?: string;
21472
+ datum?: string;
21473
+ eind_tijd?: string | null;
21474
+ id?: string;
21475
+ ingediend_at?: string;
21476
+ monteur_id?: string;
21477
+ overuren?: number;
21478
+ reden_afkeur?: string | null;
21479
+ start_tijd?: string | null;
21480
+ status?: string;
21481
+ toelichting?: string;
21482
+ updated_at?: string;
21483
+ };
21484
+ Relationships: [];
21485
+ };
21486
+ uren_settings: {
21487
+ Row: {
21488
+ break_minutes: number;
21489
+ created_at: string;
21490
+ daily_threshold_hours: number;
21491
+ id: boolean;
21492
+ include_travel: boolean;
21493
+ min_occupancy_monteurs: number;
21494
+ ov02_percentage: number;
21495
+ ov03_percentage: number;
21496
+ updated_at: string;
21497
+ weekly_threshold_hours: number;
21498
+ workday_end: string;
21499
+ workday_start: string;
21500
+ };
21501
+ Insert: {
21502
+ break_minutes?: number;
21503
+ created_at?: string;
21504
+ daily_threshold_hours?: number;
21505
+ id?: boolean;
21506
+ include_travel?: boolean;
21507
+ min_occupancy_monteurs?: number;
21508
+ ov02_percentage?: number;
21509
+ ov03_percentage?: number;
20262
21510
  updated_at?: string;
20263
21511
  weekly_threshold_hours?: number;
20264
21512
  workday_end?: string;
@@ -20280,6 +21528,75 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20280
21528
  };
20281
21529
  Relationships: [];
20282
21530
  };
21531
+ uren_standaardweek: {
21532
+ Row: {
21533
+ created_at: string;
21534
+ eind_slot: number;
21535
+ id: string;
21536
+ monteur_id: string;
21537
+ start_slot: number;
21538
+ updated_at: string;
21539
+ weekdag: number;
21540
+ };
21541
+ Insert: {
21542
+ created_at?: string;
21543
+ eind_slot: number;
21544
+ id?: string;
21545
+ monteur_id: string;
21546
+ start_slot: number;
21547
+ updated_at?: string;
21548
+ weekdag: number;
21549
+ };
21550
+ Update: {
21551
+ created_at?: string;
21552
+ eind_slot?: number;
21553
+ id?: string;
21554
+ monteur_id?: string;
21555
+ start_slot?: number;
21556
+ updated_at?: string;
21557
+ weekdag?: number;
21558
+ };
21559
+ Relationships: [];
21560
+ };
21561
+ uren_standaardweek_wijzigingen: {
21562
+ Row: {
21563
+ beoordeeld_door: string | null;
21564
+ beoordeeld_op: string | null;
21565
+ created_at: string;
21566
+ huidig: import("../integrations/supabase/types").Json;
21567
+ id: string;
21568
+ monteur_id: string;
21569
+ reden_afkeur: string | null;
21570
+ status: string;
21571
+ updated_at: string;
21572
+ voorstel: import("../integrations/supabase/types").Json;
21573
+ };
21574
+ Insert: {
21575
+ beoordeeld_door?: string | null;
21576
+ beoordeeld_op?: string | null;
21577
+ created_at?: string;
21578
+ huidig?: import("../integrations/supabase/types").Json;
21579
+ id?: string;
21580
+ monteur_id: string;
21581
+ reden_afkeur?: string | null;
21582
+ status?: string;
21583
+ updated_at?: string;
21584
+ voorstel: import("../integrations/supabase/types").Json;
21585
+ };
21586
+ Update: {
21587
+ beoordeeld_door?: string | null;
21588
+ beoordeeld_op?: string | null;
21589
+ created_at?: string;
21590
+ huidig?: import("../integrations/supabase/types").Json;
21591
+ id?: string;
21592
+ monteur_id?: string;
21593
+ reden_afkeur?: string | null;
21594
+ status?: string;
21595
+ updated_at?: string;
21596
+ voorstel?: import("../integrations/supabase/types").Json;
21597
+ };
21598
+ Relationships: [];
21599
+ };
20283
21600
  uren_tarieven: {
20284
21601
  Row: {
20285
21602
  created_at: string;
@@ -20364,6 +21681,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20364
21681
  };
20365
21682
  Relationships: [];
20366
21683
  };
21684
+ uren_tijd_spiegel: {
21685
+ Row: {
21686
+ created_at: string;
21687
+ id: string;
21688
+ time_log_id: string;
21689
+ werkbon_time_log_id: string;
21690
+ };
21691
+ Insert: {
21692
+ created_at?: string;
21693
+ id?: string;
21694
+ time_log_id: string;
21695
+ werkbon_time_log_id: string;
21696
+ };
21697
+ Update: {
21698
+ created_at?: string;
21699
+ id?: string;
21700
+ time_log_id?: string;
21701
+ werkbon_time_log_id?: string;
21702
+ };
21703
+ Relationships: [{
21704
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21705
+ columns: ["time_log_id"];
21706
+ isOneToOne: true;
21707
+ referencedRelation: "time_logs";
21708
+ referencedColumns: ["id"];
21709
+ }, {
21710
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21711
+ columns: ["werkbon_time_log_id"];
21712
+ isOneToOne: true;
21713
+ referencedRelation: "werkbon_time_logs";
21714
+ referencedColumns: ["id"];
21715
+ }];
21716
+ };
20367
21717
  uren_weekstaten: {
20368
21718
  Row: {
20369
21719
  approved_at: string | null;
@@ -20406,6 +21756,33 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20406
21756
  };
20407
21757
  Relationships: [];
20408
21758
  };
21759
+ uren_werktijd_voorkeuren: {
21760
+ Row: {
21761
+ created_at: string;
21762
+ eind_slot: number;
21763
+ id: string;
21764
+ monteur_id: string;
21765
+ start_slot: number;
21766
+ updated_at: string;
21767
+ };
21768
+ Insert: {
21769
+ created_at?: string;
21770
+ eind_slot?: number;
21771
+ id?: string;
21772
+ monteur_id: string;
21773
+ start_slot?: number;
21774
+ updated_at?: string;
21775
+ };
21776
+ Update: {
21777
+ created_at?: string;
21778
+ eind_slot?: number;
21779
+ id?: string;
21780
+ monteur_id?: string;
21781
+ start_slot?: number;
21782
+ updated_at?: string;
21783
+ };
21784
+ Relationships: [];
21785
+ };
20409
21786
  user_module_permissions: {
20410
21787
  Row: {
20411
21788
  created_at: string;
@@ -20463,6 +21840,51 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20463
21840
  referencedColumns: ["id"];
20464
21841
  }];
20465
21842
  };
21843
+ vakantie_uitbetalingen: {
21844
+ Row: {
21845
+ created_at: string;
21846
+ created_by: string | null;
21847
+ days: number;
21848
+ id: string;
21849
+ note: string | null;
21850
+ updated_at: string;
21851
+ user_id: string;
21852
+ year: number;
21853
+ };
21854
+ Insert: {
21855
+ created_at?: string;
21856
+ created_by?: string | null;
21857
+ days: number;
21858
+ id?: string;
21859
+ note?: string | null;
21860
+ updated_at?: string;
21861
+ user_id: string;
21862
+ year?: number;
21863
+ };
21864
+ Update: {
21865
+ created_at?: string;
21866
+ created_by?: string | null;
21867
+ days?: number;
21868
+ id?: string;
21869
+ note?: string | null;
21870
+ updated_at?: string;
21871
+ user_id?: string;
21872
+ year?: number;
21873
+ };
21874
+ Relationships: [{
21875
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21876
+ columns: ["created_by"];
21877
+ isOneToOne: false;
21878
+ referencedRelation: "profiles";
21879
+ referencedColumns: ["id"];
21880
+ }, {
21881
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21882
+ columns: ["user_id"];
21883
+ isOneToOne: false;
21884
+ referencedRelation: "profiles";
21885
+ referencedColumns: ["id"];
21886
+ }];
21887
+ };
20466
21888
  van_inventories: {
20467
21889
  Row: {
20468
21890
  barcode: string | null;
@@ -20877,6 +22299,42 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20877
22299
  referencedColumns: ["id"];
20878
22300
  }];
20879
22301
  };
22302
+ werkbon_email_state: {
22303
+ Row: {
22304
+ created_at: string;
22305
+ event_id: string;
22306
+ id: string;
22307
+ is_archived: boolean;
22308
+ is_read: boolean;
22309
+ updated_at: string;
22310
+ werkbon_id: string | null;
22311
+ };
22312
+ Insert: {
22313
+ created_at?: string;
22314
+ event_id: string;
22315
+ id?: string;
22316
+ is_archived?: boolean;
22317
+ is_read?: boolean;
22318
+ updated_at?: string;
22319
+ werkbon_id?: string | null;
22320
+ };
22321
+ Update: {
22322
+ created_at?: string;
22323
+ event_id?: string;
22324
+ id?: string;
22325
+ is_archived?: boolean;
22326
+ is_read?: boolean;
22327
+ updated_at?: string;
22328
+ werkbon_id?: string | null;
22329
+ };
22330
+ Relationships: [{
22331
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
22332
+ columns: ["event_id"];
22333
+ isOneToOne: true;
22334
+ referencedRelation: "email_auth_events";
22335
+ referencedColumns: ["id"];
22336
+ }];
22337
+ };
20880
22338
  werkbon_export_runs: {
20881
22339
  Row: {
20882
22340
  created_at: string;
@@ -21030,48 +22488,189 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21030
22488
  };
21031
22489
  Relationships: [];
21032
22490
  };
21033
- werkbon_materials: {
22491
+ werkbon_mail_ai_settings: {
21034
22492
  Row: {
21035
- article_number: string | null;
21036
22493
  created_at: string;
21037
- created_by: string | null;
21038
- description: string;
21039
- id: string;
21040
- quantity: number;
21041
- source: string;
21042
- unit: string;
21043
- unit_price_cents: number;
22494
+ id: boolean;
22495
+ required_fields: string[];
22496
+ system_prompt: string;
21044
22497
  updated_at: string;
21045
- werkbon_id: string;
22498
+ updated_by: string | null;
21046
22499
  };
21047
22500
  Insert: {
21048
- article_number?: string | null;
21049
22501
  created_at?: string;
21050
- created_by?: string | null;
21051
- description: string;
21052
- id?: string;
21053
- quantity?: number;
21054
- source?: string;
21055
- unit?: string;
21056
- unit_price_cents?: number;
22502
+ id?: boolean;
22503
+ required_fields?: string[];
22504
+ system_prompt?: string;
21057
22505
  updated_at?: string;
21058
- werkbon_id: string;
22506
+ updated_by?: string | null;
21059
22507
  };
21060
22508
  Update: {
21061
- article_number?: string | null;
21062
22509
  created_at?: string;
21063
- created_by?: string | null;
21064
- description?: string;
21065
- id?: string;
21066
- quantity?: number;
21067
- source?: string;
21068
- unit?: string;
21069
- unit_price_cents?: number;
22510
+ id?: boolean;
22511
+ required_fields?: string[];
22512
+ system_prompt?: string;
21070
22513
  updated_at?: string;
21071
- werkbon_id?: string;
22514
+ updated_by?: string | null;
21072
22515
  };
21073
- Relationships: [{
21074
- foreignKeyName: "werkbon_materials_werkbon_id_fkey";
22516
+ Relationships: [];
22517
+ };
22518
+ werkbon_mail_bodies: {
22519
+ Row: {
22520
+ created_at: string;
22521
+ event_id: string;
22522
+ fetch_error: string | null;
22523
+ fetched_at: string | null;
22524
+ html: string | null;
22525
+ updated_at: string;
22526
+ };
22527
+ Insert: {
22528
+ created_at?: string;
22529
+ event_id: string;
22530
+ fetch_error?: string | null;
22531
+ fetched_at?: string | null;
22532
+ html?: string | null;
22533
+ updated_at?: string;
22534
+ };
22535
+ Update: {
22536
+ created_at?: string;
22537
+ event_id?: string;
22538
+ fetch_error?: string | null;
22539
+ fetched_at?: string | null;
22540
+ html?: string | null;
22541
+ updated_at?: string;
22542
+ };
22543
+ Relationships: [];
22544
+ };
22545
+ werkbon_mail_inline_assets: {
22546
+ Row: {
22547
+ content_id: string | null;
22548
+ created_at: string;
22549
+ event_id: string;
22550
+ filename: string | null;
22551
+ id: string;
22552
+ is_inline: boolean;
22553
+ mime_type: string | null;
22554
+ size_bytes: number | null;
22555
+ storage_path: string;
22556
+ };
22557
+ Insert: {
22558
+ content_id?: string | null;
22559
+ created_at?: string;
22560
+ event_id: string;
22561
+ filename?: string | null;
22562
+ id?: string;
22563
+ is_inline?: boolean;
22564
+ mime_type?: string | null;
22565
+ size_bytes?: number | null;
22566
+ storage_path: string;
22567
+ };
22568
+ Update: {
22569
+ content_id?: string | null;
22570
+ created_at?: string;
22571
+ event_id?: string;
22572
+ filename?: string | null;
22573
+ id?: string;
22574
+ is_inline?: boolean;
22575
+ mime_type?: string | null;
22576
+ size_bytes?: number | null;
22577
+ storage_path?: string;
22578
+ };
22579
+ Relationships: [];
22580
+ };
22581
+ werkbon_mail_settings: {
22582
+ Row: {
22583
+ connection_id: string | null;
22584
+ connection_ids: string[];
22585
+ created_at: string;
22586
+ id: boolean;
22587
+ purposes: string[];
22588
+ source: string;
22589
+ updated_at: string;
22590
+ };
22591
+ Insert: {
22592
+ connection_id?: string | null;
22593
+ connection_ids?: string[];
22594
+ created_at?: string;
22595
+ id?: boolean;
22596
+ purposes?: string[];
22597
+ source?: string;
22598
+ updated_at?: string;
22599
+ };
22600
+ Update: {
22601
+ connection_id?: string | null;
22602
+ connection_ids?: string[];
22603
+ created_at?: string;
22604
+ id?: boolean;
22605
+ purposes?: string[];
22606
+ source?: string;
22607
+ updated_at?: string;
22608
+ };
22609
+ Relationships: [];
22610
+ };
22611
+ werkbon_mail_user_settings: {
22612
+ Row: {
22613
+ created_at: string;
22614
+ email_purpose: string | null;
22615
+ updated_at: string;
22616
+ user_id: string;
22617
+ };
22618
+ Insert: {
22619
+ created_at?: string;
22620
+ email_purpose?: string | null;
22621
+ updated_at?: string;
22622
+ user_id: string;
22623
+ };
22624
+ Update: {
22625
+ created_at?: string;
22626
+ email_purpose?: string | null;
22627
+ updated_at?: string;
22628
+ user_id?: string;
22629
+ };
22630
+ Relationships: [];
22631
+ };
22632
+ werkbon_materials: {
22633
+ Row: {
22634
+ article_number: string | null;
22635
+ created_at: string;
22636
+ created_by: string | null;
22637
+ description: string;
22638
+ id: string;
22639
+ quantity: number;
22640
+ source: string;
22641
+ unit: string;
22642
+ unit_price_cents: number;
22643
+ updated_at: string;
22644
+ werkbon_id: string;
22645
+ };
22646
+ Insert: {
22647
+ article_number?: string | null;
22648
+ created_at?: string;
22649
+ created_by?: string | null;
22650
+ description: string;
22651
+ id?: string;
22652
+ quantity?: number;
22653
+ source?: string;
22654
+ unit?: string;
22655
+ unit_price_cents?: number;
22656
+ updated_at?: string;
22657
+ werkbon_id: string;
22658
+ };
22659
+ Update: {
22660
+ article_number?: string | null;
22661
+ created_at?: string;
22662
+ created_by?: string | null;
22663
+ description?: string;
22664
+ id?: string;
22665
+ quantity?: number;
22666
+ source?: string;
22667
+ unit?: string;
22668
+ unit_price_cents?: number;
22669
+ updated_at?: string;
22670
+ werkbon_id?: string;
22671
+ };
22672
+ Relationships: [{
22673
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
21075
22674
  columns: ["werkbon_id"];
21076
22675
  isOneToOne: false;
21077
22676
  referencedRelation: "werkbonnen";
@@ -21160,10 +22759,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21160
22759
  Row: {
21161
22760
  article_number: string | null;
21162
22761
  artikel_id: string | null;
22762
+ cost_price_cents: number;
21163
22763
  created_at: string;
21164
22764
  gtin: string | null;
21165
22765
  id: string;
21166
22766
  manufacturer: string | null;
22767
+ margin_percent: number | null;
21167
22768
  omschrijving: string;
21168
22769
  package_id: string;
21169
22770
  price_synced_at: string | null;
@@ -21178,10 +22779,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21178
22779
  Insert: {
21179
22780
  article_number?: string | null;
21180
22781
  artikel_id?: string | null;
22782
+ cost_price_cents?: number;
21181
22783
  created_at?: string;
21182
22784
  gtin?: string | null;
21183
22785
  id?: string;
21184
22786
  manufacturer?: string | null;
22787
+ margin_percent?: number | null;
21185
22788
  omschrijving: string;
21186
22789
  package_id: string;
21187
22790
  price_synced_at?: string | null;
@@ -21196,10 +22799,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21196
22799
  Update: {
21197
22800
  article_number?: string | null;
21198
22801
  artikel_id?: string | null;
22802
+ cost_price_cents?: number;
21199
22803
  created_at?: string;
21200
22804
  gtin?: string | null;
21201
22805
  id?: string;
21202
22806
  manufacturer?: string | null;
22807
+ margin_percent?: number | null;
21203
22808
  omschrijving?: string;
21204
22809
  package_id?: string;
21205
22810
  price_synced_at?: string | null;
@@ -21369,138 +22974,371 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21369
22974
  referencedColumns: ["id"];
21370
22975
  }];
21371
22976
  };
21372
- werkbon_time_logs: {
22977
+ werkbon_proposal_lines: {
21373
22978
  Row: {
21374
- activity: string;
22979
+ article_number: string | null;
21375
22980
  created_at: string;
21376
- ended_at: string | null;
22981
+ description: string | null;
21377
22982
  id: string;
22983
+ line_type: string;
21378
22984
  note: string | null;
21379
- started_at: string;
21380
- user_id: string;
21381
- werkbon_id: string;
22985
+ package_id: string | null;
22986
+ proposal_id: string;
22987
+ quantity: number | null;
22988
+ sort_order: number;
22989
+ unit: string | null;
22990
+ updated_at: string;
21382
22991
  };
21383
22992
  Insert: {
21384
- activity: string;
22993
+ article_number?: string | null;
21385
22994
  created_at?: string;
21386
- ended_at?: string | null;
22995
+ description?: string | null;
21387
22996
  id?: string;
22997
+ line_type?: string;
21388
22998
  note?: string | null;
21389
- started_at?: string;
21390
- user_id: string;
21391
- werkbon_id: string;
22999
+ package_id?: string | null;
23000
+ proposal_id: string;
23001
+ quantity?: number | null;
23002
+ sort_order?: number;
23003
+ unit?: string | null;
23004
+ updated_at?: string;
21392
23005
  };
21393
23006
  Update: {
21394
- activity?: string;
23007
+ article_number?: string | null;
21395
23008
  created_at?: string;
21396
- ended_at?: string | null;
23009
+ description?: string | null;
21397
23010
  id?: string;
23011
+ line_type?: string;
21398
23012
  note?: string | null;
21399
- started_at?: string;
21400
- user_id?: string;
21401
- werkbon_id?: string;
23013
+ package_id?: string | null;
23014
+ proposal_id?: string;
23015
+ quantity?: number | null;
23016
+ sort_order?: number;
23017
+ unit?: string | null;
23018
+ updated_at?: string;
21402
23019
  };
21403
23020
  Relationships: [{
21404
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21405
- columns: ["werkbon_id"];
21406
- isOneToOne: false;
21407
- referencedRelation: "werkbonnen";
21408
- referencedColumns: ["id"];
21409
- }, {
21410
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21411
- columns: ["werkbon_id"];
23021
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
23022
+ columns: ["proposal_id"];
21412
23023
  isOneToOne: false;
21413
- referencedRelation: "wo_overview";
23024
+ referencedRelation: "werkbon_proposals";
21414
23025
  referencedColumns: ["id"];
21415
23026
  }];
21416
23027
  };
21417
- werkbonnen: {
23028
+ werkbon_proposals: {
21418
23029
  Row: {
21419
- assigned_user_id: string | null;
23030
+ analysed: boolean;
21420
23031
  budget_mandate_cents: number;
21421
23032
  complaint_description: string | null;
23033
+ contact_id: string | null;
21422
23034
  created_at: string;
21423
- created_by: string | null;
23035
+ created_werkbon_id: string | null;
21424
23036
  customer_id: string | null;
23037
+ deadline_date: string | null;
23038
+ estimated_days: number | null;
23039
+ estimated_duration_minutes: number | null;
23040
+ event_id: string;
23041
+ external_id: string | null;
21425
23042
  externe_referentie: string | null;
21426
- extra_costs_cents: number;
21427
- first_time_fix: boolean | null;
23043
+ from_email: string | null;
23044
+ from_name: string | null;
21428
23045
  id: string;
21429
23046
  internal_notes: string | null;
21430
- needs_detail_review: boolean;
21431
- parent_werkbon_id: string | null;
21432
- parsed_payload: import("../integrations/supabase/types").Json | null;
21433
- planning_status: string;
21434
- project_number: string | null;
21435
- review_reasons: string[];
23047
+ parsed_payload: import("../integrations/supabase/types").Json;
23048
+ received_at: string | null;
23049
+ reviewed_at: string | null;
23050
+ reviewed_by: string | null;
21436
23051
  room_number: string | null;
21437
23052
  scheduled_end_time: string | null;
21438
23053
  scheduled_start_time: string | null;
21439
- sequence_number: number;
21440
- signature_accepted_at: string | null;
21441
- signature_by_user_id: string | null;
21442
- signature_name: string | null;
21443
- source_email_meta: import("../integrations/supabase/types").Json | null;
21444
- source_mailbox_message_id: string | null;
21445
- source_pdf_path: string | null;
21446
- source_type: string;
21447
23054
  status: string;
23055
+ subject: string | null;
21448
23056
  technician_id: string | null;
21449
- technician_notes: string | null;
21450
- technician_notes_raw: string | null;
21451
23057
  technician_task_description: string | null;
21452
23058
  updated_at: string;
21453
- version: number;
21454
23059
  work_address: string | null;
21455
23060
  };
21456
23061
  Insert: {
21457
- assigned_user_id?: string | null;
23062
+ analysed?: boolean;
21458
23063
  budget_mandate_cents?: number;
21459
23064
  complaint_description?: string | null;
23065
+ contact_id?: string | null;
21460
23066
  created_at?: string;
21461
- created_by?: string | null;
23067
+ created_werkbon_id?: string | null;
21462
23068
  customer_id?: string | null;
23069
+ deadline_date?: string | null;
23070
+ estimated_days?: number | null;
23071
+ estimated_duration_minutes?: number | null;
23072
+ event_id: string;
23073
+ external_id?: string | null;
21463
23074
  externe_referentie?: string | null;
21464
- extra_costs_cents?: number;
21465
- first_time_fix?: boolean | null;
23075
+ from_email?: string | null;
23076
+ from_name?: string | null;
21466
23077
  id?: string;
21467
23078
  internal_notes?: string | null;
21468
- needs_detail_review?: boolean;
21469
- parent_werkbon_id?: string | null;
21470
- parsed_payload?: import("../integrations/supabase/types").Json | null;
21471
- planning_status?: string;
21472
- project_number?: string | null;
21473
- review_reasons?: string[];
23079
+ parsed_payload?: import("../integrations/supabase/types").Json;
23080
+ received_at?: string | null;
23081
+ reviewed_at?: string | null;
23082
+ reviewed_by?: string | null;
21474
23083
  room_number?: string | null;
21475
23084
  scheduled_end_time?: string | null;
21476
23085
  scheduled_start_time?: string | null;
21477
- sequence_number: number;
21478
- signature_accepted_at?: string | null;
21479
- signature_by_user_id?: string | null;
21480
- signature_name?: string | null;
21481
- source_email_meta?: import("../integrations/supabase/types").Json | null;
21482
- source_mailbox_message_id?: string | null;
21483
- source_pdf_path?: string | null;
21484
- source_type?: string;
21485
23086
  status?: string;
23087
+ subject?: string | null;
21486
23088
  technician_id?: string | null;
21487
- technician_notes?: string | null;
21488
- technician_notes_raw?: string | null;
21489
23089
  technician_task_description?: string | null;
21490
23090
  updated_at?: string;
21491
- version?: number;
21492
23091
  work_address?: string | null;
21493
23092
  };
21494
23093
  Update: {
21495
- assigned_user_id?: string | null;
23094
+ analysed?: boolean;
21496
23095
  budget_mandate_cents?: number;
21497
23096
  complaint_description?: string | null;
23097
+ contact_id?: string | null;
21498
23098
  created_at?: string;
21499
- created_by?: string | null;
23099
+ created_werkbon_id?: string | null;
21500
23100
  customer_id?: string | null;
23101
+ deadline_date?: string | null;
23102
+ estimated_days?: number | null;
23103
+ estimated_duration_minutes?: number | null;
23104
+ event_id?: string;
23105
+ external_id?: string | null;
21501
23106
  externe_referentie?: string | null;
21502
- extra_costs_cents?: number;
21503
- first_time_fix?: boolean | null;
23107
+ from_email?: string | null;
23108
+ from_name?: string | null;
23109
+ id?: string;
23110
+ internal_notes?: string | null;
23111
+ parsed_payload?: import("../integrations/supabase/types").Json;
23112
+ received_at?: string | null;
23113
+ reviewed_at?: string | null;
23114
+ reviewed_by?: string | null;
23115
+ room_number?: string | null;
23116
+ scheduled_end_time?: string | null;
23117
+ scheduled_start_time?: string | null;
23118
+ status?: string;
23119
+ subject?: string | null;
23120
+ technician_id?: string | null;
23121
+ technician_task_description?: string | null;
23122
+ updated_at?: string;
23123
+ work_address?: string | null;
23124
+ };
23125
+ Relationships: [];
23126
+ };
23127
+ werkbon_time_logs: {
23128
+ Row: {
23129
+ activity: string;
23130
+ created_at: string;
23131
+ ended_at: string | null;
23132
+ id: string;
23133
+ note: string | null;
23134
+ started_at: string;
23135
+ user_id: string;
23136
+ werkbon_id: string;
23137
+ };
23138
+ Insert: {
23139
+ activity: string;
23140
+ created_at?: string;
23141
+ ended_at?: string | null;
23142
+ id?: string;
23143
+ note?: string | null;
23144
+ started_at?: string;
23145
+ user_id: string;
23146
+ werkbon_id: string;
23147
+ };
23148
+ Update: {
23149
+ activity?: string;
23150
+ created_at?: string;
23151
+ ended_at?: string | null;
23152
+ id?: string;
23153
+ note?: string | null;
23154
+ started_at?: string;
23155
+ user_id?: string;
23156
+ werkbon_id?: string;
23157
+ };
23158
+ Relationships: [{
23159
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23160
+ columns: ["werkbon_id"];
23161
+ isOneToOne: false;
23162
+ referencedRelation: "werkbonnen";
23163
+ referencedColumns: ["id"];
23164
+ }, {
23165
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23166
+ columns: ["werkbon_id"];
23167
+ isOneToOne: false;
23168
+ referencedRelation: "wo_overview";
23169
+ referencedColumns: ["id"];
23170
+ }];
23171
+ };
23172
+ werkbon_voorstellen: {
23173
+ Row: {
23174
+ bron_werkbon_id: string;
23175
+ budget_mandate_cents: number;
23176
+ created_at: string;
23177
+ created_by: string;
23178
+ customer_id: string | null;
23179
+ id: string;
23180
+ payload: import("../integrations/supabase/types").Json;
23181
+ reden: string | null;
23182
+ status: string;
23183
+ updated_at: string;
23184
+ verwerkt_door: string | null;
23185
+ verwerkt_op: string | null;
23186
+ werkbon_id: string | null;
23187
+ };
23188
+ Insert: {
23189
+ bron_werkbon_id: string;
23190
+ budget_mandate_cents?: number;
23191
+ created_at?: string;
23192
+ created_by?: string;
23193
+ customer_id?: string | null;
23194
+ id?: string;
23195
+ payload?: import("../integrations/supabase/types").Json;
23196
+ reden?: string | null;
23197
+ status?: string;
23198
+ updated_at?: string;
23199
+ verwerkt_door?: string | null;
23200
+ verwerkt_op?: string | null;
23201
+ werkbon_id?: string | null;
23202
+ };
23203
+ Update: {
23204
+ bron_werkbon_id?: string;
23205
+ budget_mandate_cents?: number;
23206
+ created_at?: string;
23207
+ created_by?: string;
23208
+ customer_id?: string | null;
23209
+ id?: string;
23210
+ payload?: import("../integrations/supabase/types").Json;
23211
+ reden?: string | null;
23212
+ status?: string;
23213
+ updated_at?: string;
23214
+ verwerkt_door?: string | null;
23215
+ verwerkt_op?: string | null;
23216
+ werkbon_id?: string | null;
23217
+ };
23218
+ Relationships: [{
23219
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23220
+ columns: ["bron_werkbon_id"];
23221
+ isOneToOne: false;
23222
+ referencedRelation: "werkbonnen";
23223
+ referencedColumns: ["id"];
23224
+ }, {
23225
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23226
+ columns: ["bron_werkbon_id"];
23227
+ isOneToOne: false;
23228
+ referencedRelation: "wo_overview";
23229
+ referencedColumns: ["id"];
23230
+ }, {
23231
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23232
+ columns: ["werkbon_id"];
23233
+ isOneToOne: false;
23234
+ referencedRelation: "werkbonnen";
23235
+ referencedColumns: ["id"];
23236
+ }, {
23237
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23238
+ columns: ["werkbon_id"];
23239
+ isOneToOne: false;
23240
+ referencedRelation: "wo_overview";
23241
+ referencedColumns: ["id"];
23242
+ }];
23243
+ };
23244
+ werkbonnen: {
23245
+ Row: {
23246
+ assigned_user_id: string | null;
23247
+ budget_mandate_cents: number;
23248
+ complaint_description: string | null;
23249
+ created_at: string;
23250
+ created_by: string | null;
23251
+ customer_id: string | null;
23252
+ deadline_date: string | null;
23253
+ estimated_days: number | null;
23254
+ estimated_duration_minutes: number | null;
23255
+ externe_referentie: string | null;
23256
+ extra_costs_cents: number;
23257
+ first_time_fix: boolean | null;
23258
+ id: string;
23259
+ internal_notes: string | null;
23260
+ needs_detail_review: boolean;
23261
+ parent_werkbon_id: string | null;
23262
+ parsed_payload: import("../integrations/supabase/types").Json | null;
23263
+ planning_status: string;
23264
+ project_number: string | null;
23265
+ review_reasons: string[];
23266
+ room_number: string | null;
23267
+ scheduled_end_time: string | null;
23268
+ scheduled_start_time: string | null;
23269
+ sequence_number: number;
23270
+ signature_accepted_at: string | null;
23271
+ signature_by_user_id: string | null;
23272
+ signature_name: string | null;
23273
+ source_email_meta: import("../integrations/supabase/types").Json | null;
23274
+ source_mailbox_message_id: string | null;
23275
+ source_pdf_path: string | null;
23276
+ source_type: string;
23277
+ status: string;
23278
+ technician_id: string | null;
23279
+ technician_notes: string | null;
23280
+ technician_notes_raw: string | null;
23281
+ technician_task_description: string | null;
23282
+ updated_at: string;
23283
+ version: number;
23284
+ work_address: string | null;
23285
+ workday_hours: number | null;
23286
+ };
23287
+ Insert: {
23288
+ assigned_user_id?: string | null;
23289
+ budget_mandate_cents?: number;
23290
+ complaint_description?: string | null;
23291
+ created_at?: string;
23292
+ created_by?: string | null;
23293
+ customer_id?: string | null;
23294
+ deadline_date?: string | null;
23295
+ estimated_days?: number | null;
23296
+ estimated_duration_minutes?: number | null;
23297
+ externe_referentie?: string | null;
23298
+ extra_costs_cents?: number;
23299
+ first_time_fix?: boolean | null;
23300
+ id?: string;
23301
+ internal_notes?: string | null;
23302
+ needs_detail_review?: boolean;
23303
+ parent_werkbon_id?: string | null;
23304
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
23305
+ planning_status?: string;
23306
+ project_number?: string | null;
23307
+ review_reasons?: string[];
23308
+ room_number?: string | null;
23309
+ scheduled_end_time?: string | null;
23310
+ scheduled_start_time?: string | null;
23311
+ sequence_number: number;
23312
+ signature_accepted_at?: string | null;
23313
+ signature_by_user_id?: string | null;
23314
+ signature_name?: string | null;
23315
+ source_email_meta?: import("../integrations/supabase/types").Json | null;
23316
+ source_mailbox_message_id?: string | null;
23317
+ source_pdf_path?: string | null;
23318
+ source_type?: string;
23319
+ status?: string;
23320
+ technician_id?: string | null;
23321
+ technician_notes?: string | null;
23322
+ technician_notes_raw?: string | null;
23323
+ technician_task_description?: string | null;
23324
+ updated_at?: string;
23325
+ version?: number;
23326
+ work_address?: string | null;
23327
+ workday_hours?: number | null;
23328
+ };
23329
+ Update: {
23330
+ assigned_user_id?: string | null;
23331
+ budget_mandate_cents?: number;
23332
+ complaint_description?: string | null;
23333
+ created_at?: string;
23334
+ created_by?: string | null;
23335
+ customer_id?: string | null;
23336
+ deadline_date?: string | null;
23337
+ estimated_days?: number | null;
23338
+ estimated_duration_minutes?: number | null;
23339
+ externe_referentie?: string | null;
23340
+ extra_costs_cents?: number;
23341
+ first_time_fix?: boolean | null;
21504
23342
  id?: string;
21505
23343
  internal_notes?: string | null;
21506
23344
  needs_detail_review?: boolean;
@@ -21528,6 +23366,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21528
23366
  updated_at?: string;
21529
23367
  version?: number;
21530
23368
  work_address?: string | null;
23369
+ workday_hours?: number | null;
21531
23370
  };
21532
23371
  Relationships: [{
21533
23372
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -22009,6 +23848,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22009
23848
  };
22010
23849
  Relationships: [];
22011
23850
  };
23851
+ logistics_packing_diff: {
23852
+ Row: {
23853
+ dev_key: string | null;
23854
+ floriday_packing: import("../integrations/supabase/types").Json | null;
23855
+ local_packing: import("../integrations/supabase/types").Json | null;
23856
+ order_id: string | null;
23857
+ order_item_id: string | null;
23858
+ order_number: string | null;
23859
+ product_id: string | null;
23860
+ product_name: string | null;
23861
+ scope: string | null;
23862
+ trade_item_id: string | null;
23863
+ };
23864
+ Relationships: [];
23865
+ };
22012
23866
  logistics_product_dimensions: {
22013
23867
  Row: {
22014
23868
  dimension_source: string | null;
@@ -22627,6 +24481,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22627
24481
  };
22628
24482
  Returns: undefined;
22629
24483
  };
24484
+ _wo_is_planner: {
24485
+ Args: never;
24486
+ Returns: boolean;
24487
+ };
22630
24488
  afh_city_code: {
22631
24489
  Args: {
22632
24490
  _city: string;
@@ -22732,6 +24590,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22732
24590
  };
22733
24591
  Returns: string;
22734
24592
  };
24593
+ backfill_cart_numbers_day_seq: {
24594
+ Args: never;
24595
+ Returns: number;
24596
+ };
22735
24597
  backfill_open_order_reservations: {
22736
24598
  Args: never;
22737
24599
  Returns: {
@@ -23218,8 +25080,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23218
25080
  cart_index: number;
23219
25081
  cart_number: string;
23220
25082
  cart_number_id: string;
23221
- cart_seq: number;
23222
- cart_total: number;
23223
25083
  order_id: string;
23224
25084
  order_number: string;
23225
25085
  order_source: string;
@@ -23235,10 +25095,32 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23235
25095
  };
23236
25096
  Returns: number;
23237
25097
  };
25098
+ control_mark_carts_delivered_detail: {
25099
+ Args: {
25100
+ p_carts: import("../integrations/supabase/types").Json;
25101
+ };
25102
+ Returns: {
25103
+ cart_index: number;
25104
+ frozen: boolean;
25105
+ message: string;
25106
+ order_id: string;
25107
+ order_source: string;
25108
+ outcome: string;
25109
+ }[];
25110
+ };
23238
25111
  count_distinct_regulatory_products: {
23239
25112
  Args: never;
23240
25113
  Returns: number;
23241
25114
  };
25115
+ create_order_from_public_offer: {
25116
+ Args: {
25117
+ p_carrier_id?: string;
25118
+ p_delivery_date?: string;
25119
+ p_delivery_garden_id?: string;
25120
+ p_offer_order_id: string;
25121
+ };
25122
+ Returns: import("../integrations/supabase/types").Json;
25123
+ };
23242
25124
  current_monteur_id: {
23243
25125
  Args: never;
23244
25126
  Returns: string;
@@ -23715,6 +25597,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23715
25597
  };
23716
25598
  Returns: number;
23717
25599
  };
25600
+ get_product_stock: {
25601
+ Args: {
25602
+ p_product_id: string;
25603
+ };
25604
+ Returns: {
25605
+ connection_id: string;
25606
+ incoming_stock: number;
25607
+ minimum_stock: number;
25608
+ notes: string;
25609
+ physical_stock: number;
25610
+ product_id: string;
25611
+ reserved_stock: number;
25612
+ trade_item_key: string;
25613
+ updated_at: string;
25614
+ }[];
25615
+ };
23718
25616
  get_room_busy_windows: {
23719
25617
  Args: {
23720
25618
  p_from: string;
@@ -23740,8 +25638,29 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23740
25638
  Args: never;
23741
25639
  Returns: string;
23742
25640
  };
23743
- handover_archief_lijst: {
23744
- Args: never;
25641
+ handover_afspraak_intrekken: {
25642
+ Args: {
25643
+ _sleutel: string;
25644
+ };
25645
+ Returns: boolean;
25646
+ };
25647
+ handover_afspraak_zetten: {
25648
+ Args: {
25649
+ _besluit: string;
25650
+ _item: string;
25651
+ _modules: string[];
25652
+ _sleutel: string;
25653
+ _soort: string;
25654
+ _versie_vingerafdruk: string;
25655
+ };
25656
+ Returns: boolean;
25657
+ };
25658
+ handover_afspraken: {
25659
+ Args: never;
25660
+ Returns: import("../integrations/supabase/types").Json;
25661
+ };
25662
+ handover_archief_lijst: {
25663
+ Args: never;
23745
25664
  Returns: import("../integrations/supabase/types").Json;
23746
25665
  };
23747
25666
  handover_archiveren: {
@@ -23757,6 +25676,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23757
25676
  };
23758
25677
  Returns: boolean;
23759
25678
  };
25679
+ handover_check_afronden_na_scan: {
25680
+ Args: {
25681
+ _module_ids: string[];
25682
+ };
25683
+ Returns: number;
25684
+ };
23760
25685
  handover_check_markeren: {
23761
25686
  Args: {
23762
25687
  _module_ids: string[];
@@ -23800,6 +25725,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23800
25725
  };
23801
25726
  Returns: boolean;
23802
25727
  };
25728
+ handover_md_bron_zetten: {
25729
+ Args: {
25730
+ _md: boolean;
25731
+ _module_id: string;
25732
+ _pad?: string;
25733
+ };
25734
+ Returns: boolean;
25735
+ };
23803
25736
  handover_module_meta_zetten: {
23804
25737
  Args: {
23805
25738
  _module_id: string;
@@ -23808,6 +25741,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23808
25741
  };
23809
25742
  Returns: boolean;
23810
25743
  };
25744
+ handover_naam_zetten: {
25745
+ Args: {
25746
+ _bron_repo?: string;
25747
+ _module_id: string;
25748
+ _weergavenaam?: string;
25749
+ };
25750
+ Returns: boolean;
25751
+ };
25752
+ handover_namen: {
25753
+ Args: never;
25754
+ Returns: import("../integrations/supabase/types").Json;
25755
+ };
25756
+ handover_nieuw_gezien: {
25757
+ Args: {
25758
+ _module_id: string;
25759
+ };
25760
+ Returns: boolean;
25761
+ };
23811
25762
  handover_norm_naam: {
23812
25763
  Args: {
23813
25764
  _naam: string;
@@ -23844,6 +25795,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23844
25795
  _versie_label?: string;
23845
25796
  };
23846
25797
  Returns: import("../integrations/supabase/types").Json;
25798
+ } | {
25799
+ Args: {
25800
+ _bekende_risicos?: string[];
25801
+ _bezit_tabellen?: string[];
25802
+ _bron_soort?: string;
25803
+ _commit?: string;
25804
+ _contractfuncties?: string[];
25805
+ _inhoud_md: string;
25806
+ _laatst_bevestigd_op?: string;
25807
+ _module_id: string;
25808
+ _module_titel: string;
25809
+ _ontbrekende_contracten?: string[];
25810
+ _pad?: string;
25811
+ _repo?: string;
25812
+ _samenvatting?: string;
25813
+ _versie_label?: string;
25814
+ };
25815
+ Returns: import("../integrations/supabase/types").Json;
23847
25816
  };
23848
25817
  handover_publish_via_token: {
23849
25818
  Args: {
@@ -23962,6 +25931,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23962
25931
  to_address: string;
23963
25932
  }[];
23964
25933
  };
25934
+ inkoop_set_preferred_supplier: {
25935
+ Args: {
25936
+ _product_id: string;
25937
+ _supplier_id: string;
25938
+ };
25939
+ Returns: undefined;
25940
+ };
23965
25941
  instructie_get: {
23966
25942
  Args: {
23967
25943
  _sleutel: string;
@@ -23981,6 +25957,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23981
25957
  };
23982
25958
  Returns: number;
23983
25959
  };
25960
+ invoice_branding_snapshot: {
25961
+ Args: never;
25962
+ Returns: import("../integrations/supabase/types").Json;
25963
+ };
23984
25964
  invoice_create_from_source: {
23985
25965
  Args: {
23986
25966
  _payload?: import("../integrations/supabase/types").Json;
@@ -24015,12 +25995,61 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24015
25995
  };
24016
25996
  Returns: import("../integrations/supabase/types").Json;
24017
25997
  };
25998
+ invoice_mark_sent: {
25999
+ Args: {
26000
+ _invoice_id: string;
26001
+ _to: string;
26002
+ };
26003
+ Returns: undefined;
26004
+ };
26005
+ invoice_peek_next_number: {
26006
+ Args: never;
26007
+ Returns: string;
26008
+ };
26009
+ invoice_ready_work_orders: {
26010
+ Args: {
26011
+ _limit?: number;
26012
+ };
26013
+ Returns: import("../integrations/supabase/types").Json;
26014
+ };
24018
26015
  invoice_recalc_totals: {
24019
26016
  Args: {
24020
26017
  _invoice_id: string;
24021
26018
  };
24022
26019
  Returns: import("../integrations/supabase/types").Json;
24023
26020
  };
26021
+ invoice_save_branding_settings: {
26022
+ Args: {
26023
+ _payload: import("../integrations/supabase/types").Json;
26024
+ };
26025
+ Returns: import("../integrations/supabase/types").Json;
26026
+ };
26027
+ invoice_set_email_purpose: {
26028
+ Args: {
26029
+ _purpose: string;
26030
+ };
26031
+ Returns: string;
26032
+ };
26033
+ invoice_source_lines: {
26034
+ Args: {
26035
+ _source_id: string;
26036
+ _source_type: string;
26037
+ };
26038
+ Returns: import("../integrations/supabase/types").Json;
26039
+ };
26040
+ invoice_update_full: {
26041
+ Args: {
26042
+ _invoice_id: string;
26043
+ _payload: import("../integrations/supabase/types").Json;
26044
+ };
26045
+ Returns: import("../integrations/supabase/types").Json;
26046
+ };
26047
+ invoice_work_order_locked: {
26048
+ Args: {
26049
+ _werkbon_id: string;
26050
+ };
26051
+ Returns: import("../integrations/supabase/types").Json;
26052
+ };
24024
26053
  is_authenticated: {
24025
26054
  Args: never;
24026
26055
  Returns: boolean;
@@ -24253,6 +26282,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24253
26282
  };
24254
26283
  Returns: import("../integrations/supabase/types").Json;
24255
26284
  };
26285
+ logistics_buffer_decision_for_settings: {
26286
+ Args: {
26287
+ p_order: import("../integrations/supabase/types").Json;
26288
+ p_settings: import("../integrations/supabase/types").Json;
26289
+ p_user_id?: string;
26290
+ };
26291
+ Returns: import("../integrations/supabase/types").Json;
26292
+ };
24256
26293
  logistics_buffer_detach_late_orders: {
24257
26294
  Args: {
24258
26295
  p_buffer?: string;
@@ -24286,6 +26323,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24286
26323
  };
24287
26324
  Returns: string;
24288
26325
  };
26326
+ logistics_buffer_payload: {
26327
+ Args: {
26328
+ p_order_id: string;
26329
+ };
26330
+ Returns: import("../integrations/supabase/types").Json;
26331
+ };
24289
26332
  logistics_buffer_simulate: {
24290
26333
  Args: {
24291
26334
  p_orders?: import("../integrations/supabase/types").Json;
@@ -24344,6 +26387,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24344
26387
  };
24345
26388
  Returns: string;
24346
26389
  };
26390
+ logistics_cart_coverage_check: {
26391
+ Args: never;
26392
+ Returns: import("../integrations/supabase/types").Json;
26393
+ };
24347
26394
  logistics_cart_handled: {
24348
26395
  Args: {
24349
26396
  p_cart_index: number;
@@ -24587,10 +26634,29 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24587
26634
  isSetofReturn: false;
24588
26635
  };
24589
26636
  };
26637
+ logistics_cleanup_duplicate_order_lines: {
26638
+ Args: {
26639
+ p_limit?: number;
26640
+ p_order_id: string;
26641
+ };
26642
+ Returns: import("../integrations/supabase/types").Json;
26643
+ };
26644
+ logistics_cleanup_history: {
26645
+ Args: {
26646
+ p_limit?: number;
26647
+ };
26648
+ Returns: import("../integrations/supabase/types").Json;
26649
+ };
24590
26650
  logistics_cleanup_orphan_print_jobs: {
24591
26651
  Args: never;
24592
26652
  Returns: import("../integrations/supabase/types").Json;
24593
26653
  };
26654
+ logistics_cleanup_tasks: {
26655
+ Args: {
26656
+ p_limit?: number;
26657
+ };
26658
+ Returns: import("../integrations/supabase/types").Json;
26659
+ };
24594
26660
  logistics_complete_task: {
24595
26661
  Args: {
24596
26662
  p_result?: import("../integrations/supabase/types").Json;
@@ -24738,6 +26804,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24738
26804
  Args: never;
24739
26805
  Returns: import("../integrations/supabase/types").Json;
24740
26806
  };
26807
+ logistics_cron_health: {
26808
+ Args: never;
26809
+ Returns: import("../integrations/supabase/types").Json;
26810
+ };
24741
26811
  logistics_day_windows: {
24742
26812
  Args: {
24743
26813
  p_day: string;
@@ -25087,6 +27157,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25087
27157
  };
25088
27158
  Returns: number;
25089
27159
  };
27160
+ logistics_merge_decision: {
27161
+ Args: {
27162
+ p_lines: import("../integrations/supabase/types").Json;
27163
+ };
27164
+ Returns: import("../integrations/supabase/types").Json;
27165
+ };
25090
27166
  logistics_merge_floriday_lines: {
25091
27167
  Args: {
25092
27168
  p_order_id: string;
@@ -25133,18 +27209,108 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25133
27209
  Args: never;
25134
27210
  Returns: string;
25135
27211
  };
27212
+ logistics_order_backlog_info: {
27213
+ Args: {
27214
+ p_order_id: string;
27215
+ };
27216
+ Returns: import("../integrations/supabase/types").Json;
27217
+ };
27218
+ logistics_order_cart_approval: {
27219
+ Args: {
27220
+ _order_ref: string;
27221
+ };
27222
+ Returns: {
27223
+ approved: number;
27224
+ total: number;
27225
+ }[];
27226
+ };
25136
27227
  logistics_order_cart_count: {
25137
27228
  Args: {
25138
27229
  p_order_ref: string;
25139
27230
  };
25140
27231
  Returns: number;
25141
27232
  };
27233
+ logistics_order_changed: {
27234
+ Args: {
27235
+ p_order_id: string;
27236
+ p_reason?: string;
27237
+ };
27238
+ Returns: undefined;
27239
+ };
27240
+ logistics_order_documents_ready: {
27241
+ Args: {
27242
+ p_order_ref: string;
27243
+ };
27244
+ Returns: import("../integrations/supabase/types").Json;
27245
+ };
27246
+ logistics_order_documents_ready_bool: {
27247
+ Args: {
27248
+ p_order_ref: string;
27249
+ };
27250
+ Returns: boolean;
27251
+ };
27252
+ logistics_order_finalize_enqueue: {
27253
+ Args: {
27254
+ p_order_id: string;
27255
+ p_reason?: string;
27256
+ };
27257
+ Returns: undefined;
27258
+ };
27259
+ logistics_order_finalize_overview: {
27260
+ Args: never;
27261
+ Returns: {
27262
+ bezig: number;
27263
+ laatst_afgerond: string;
27264
+ laatste_fout: string;
27265
+ mislukt: number;
27266
+ oudste_wachttijd_seconden: number;
27267
+ wachtend: number;
27268
+ }[];
27269
+ };
27270
+ logistics_order_finalize_prune: {
27271
+ Args: {
27272
+ p_days?: number;
27273
+ };
27274
+ Returns: number;
27275
+ };
27276
+ logistics_order_finalize_reconcile: {
27277
+ Args: {
27278
+ p_days?: number;
27279
+ p_limit?: number;
27280
+ };
27281
+ Returns: number;
27282
+ };
27283
+ logistics_order_finalize_retry: {
27284
+ Args: {
27285
+ p_order_id: string;
27286
+ };
27287
+ Returns: boolean;
27288
+ };
27289
+ logistics_order_finalize_run: {
27290
+ Args: {
27291
+ p_lease_seconds?: number;
27292
+ p_limit?: number;
27293
+ };
27294
+ Returns: number;
27295
+ };
27296
+ logistics_order_frozen: {
27297
+ Args: {
27298
+ p_order_id: string;
27299
+ };
27300
+ Returns: boolean;
27301
+ };
25142
27302
  logistics_order_handled: {
25143
27303
  Args: {
25144
27304
  p_order_uuid: string;
25145
27305
  };
25146
27306
  Returns: boolean;
25147
27307
  };
27308
+ logistics_order_is_backlog: {
27309
+ Args: {
27310
+ p_order_id: string;
27311
+ };
27312
+ Returns: boolean;
27313
+ };
25148
27314
  logistics_order_is_topick: {
25149
27315
  Args: {
25150
27316
  p_order_id: string;
@@ -25152,6 +27318,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25152
27318
  };
25153
27319
  Returns: boolean;
25154
27320
  };
27321
+ logistics_order_line_duplicates: {
27322
+ Args: {
27323
+ p_order_id: string;
27324
+ };
27325
+ Returns: import("../integrations/supabase/types").Json;
27326
+ };
25155
27327
  logistics_order_merge_key: {
25156
27328
  Args: {
25157
27329
  p_group_key: string;
@@ -25195,6 +27367,63 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25195
27367
  };
25196
27368
  Returns: boolean;
25197
27369
  };
27370
+ logistics_packing_autofix: {
27371
+ Args: {
27372
+ p_limit?: number;
27373
+ };
27374
+ Returns: number;
27375
+ };
27376
+ logistics_packing_block_reason: {
27377
+ Args: {
27378
+ p_order_id: string;
27379
+ p_order_item_id: string;
27380
+ };
27381
+ Returns: string;
27382
+ };
27383
+ logistics_packing_dismiss: {
27384
+ Args: {
27385
+ p_id: string;
27386
+ p_note?: string;
27387
+ };
27388
+ Returns: boolean;
27389
+ };
27390
+ logistics_packing_overview: {
27391
+ Args: never;
27392
+ Returns: {
27393
+ beoordelen: number;
27394
+ herstelbaar: number;
27395
+ laatst_gemeten: string;
27396
+ laatst_hersteld: string;
27397
+ open_totaal: number;
27398
+ orders: number;
27399
+ oudste_seconden: number;
27400
+ producten: number;
27401
+ }[];
27402
+ };
27403
+ logistics_packing_reconcile: {
27404
+ Args: {
27405
+ p_fix_limit?: number;
27406
+ p_scan_limit?: number;
27407
+ };
27408
+ Returns: {
27409
+ beoordelen: number;
27410
+ gevonden: number;
27411
+ hersteld: number;
27412
+ }[];
27413
+ };
27414
+ logistics_packing_scan: {
27415
+ Args: {
27416
+ p_limit?: number;
27417
+ };
27418
+ Returns: number;
27419
+ };
27420
+ logistics_packing_set_manual: {
27421
+ Args: {
27422
+ p_manual?: boolean;
27423
+ p_order_item_id: string;
27424
+ };
27425
+ Returns: boolean;
27426
+ };
25198
27427
  logistics_parse_pickup: {
25199
27428
  Args: {
25200
27429
  p_value: string;
@@ -25223,6 +27452,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25223
27452
  shifted_count: number;
25224
27453
  }[];
25225
27454
  };
27455
+ logistics_pick_backlog_max_days: {
27456
+ Args: never;
27457
+ Returns: number;
27458
+ };
25226
27459
  logistics_pick_barcode_enabled: {
25227
27460
  Args: never;
25228
27461
  Returns: boolean;
@@ -25288,6 +27521,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25288
27521
  order_id: string;
25289
27522
  }[];
25290
27523
  };
27524
+ logistics_plan_defer: {
27525
+ Args: {
27526
+ p_id: string;
27527
+ };
27528
+ Returns: undefined;
27529
+ };
25291
27530
  logistics_plan_enqueue: {
25292
27531
  Args: {
25293
27532
  p_order_id: string;
@@ -25301,6 +27540,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25301
27540
  };
25302
27541
  Returns: boolean;
25303
27542
  };
27543
+ logistics_plan_error_class: {
27544
+ Args: {
27545
+ p_error: string;
27546
+ };
27547
+ Returns: string;
27548
+ };
27549
+ logistics_plan_error_text: {
27550
+ Args: {
27551
+ p_error: string;
27552
+ };
27553
+ Returns: string;
27554
+ };
25304
27555
  logistics_plan_finish: {
25305
27556
  Args: {
25306
27557
  p_error?: string;
@@ -25329,6 +27580,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25329
27580
  Args: never;
25330
27581
  Returns: undefined;
25331
27582
  };
27583
+ logistics_plan_lock_acquire: {
27584
+ Args: {
27585
+ _key: string;
27586
+ _owner?: string;
27587
+ _ttl_seconds?: number;
27588
+ };
27589
+ Returns: boolean;
27590
+ };
27591
+ logistics_plan_lock_release: {
27592
+ Args: {
27593
+ _key: string;
27594
+ _owner?: string;
27595
+ };
27596
+ Returns: undefined;
27597
+ };
25332
27598
  logistics_plan_progress: {
25333
27599
  Args: {
25334
27600
  p_refs: string[];
@@ -25343,14 +27609,51 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25343
27609
  unit_ref: string;
25344
27610
  }[];
25345
27611
  };
27612
+ logistics_plan_progress_pct: {
27613
+ Args: {
27614
+ p_order_id: string;
27615
+ };
27616
+ Returns: number;
27617
+ };
25346
27618
  logistics_plan_prune: {
25347
27619
  Args: never;
25348
27620
  Returns: number;
25349
27621
  };
27622
+ logistics_plan_queue_list: {
27623
+ Args: {
27624
+ p_limit?: number;
27625
+ };
27626
+ Returns: {
27627
+ attempts: number;
27628
+ claimed_at: string;
27629
+ customer_name: string;
27630
+ enqueued_at: string;
27631
+ error_class: string;
27632
+ error_raw: string;
27633
+ error_text: string;
27634
+ id: string;
27635
+ max_attempts: number;
27636
+ next_attempt_at: string;
27637
+ order_created_at: string;
27638
+ order_id: string;
27639
+ order_number: string;
27640
+ progress_pct: number;
27641
+ reason: string;
27642
+ stand: string;
27643
+ status: string;
27644
+ updated_at: string;
27645
+ }[];
27646
+ };
25350
27647
  logistics_plan_release_stale: {
25351
27648
  Args: never;
25352
27649
  Returns: number;
25353
27650
  };
27651
+ logistics_plan_reset_queue: {
27652
+ Args: {
27653
+ p_scope?: string;
27654
+ };
27655
+ Returns: number;
27656
+ };
25354
27657
  logistics_plan_retry: {
25355
27658
  Args: {
25356
27659
  p_order_ids: string[];
@@ -25370,6 +27673,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25370
27673
  };
25371
27674
  Returns: import("../integrations/supabase/types").Json;
25372
27675
  };
27676
+ logistics_plan_timeout_running: {
27677
+ Args: never;
27678
+ Returns: number;
27679
+ };
27680
+ logistics_planner_cart_snapshot: {
27681
+ Args: {
27682
+ p_buffer_id: string;
27683
+ p_order_id: string;
27684
+ };
27685
+ Returns: import("../integrations/supabase/types").Json;
27686
+ };
27687
+ logistics_planner_diff_mode: {
27688
+ Args: never;
27689
+ Returns: string;
27690
+ };
27691
+ logistics_planner_diff_prune: {
27692
+ Args: never;
27693
+ Returns: number;
27694
+ };
25373
27695
  logistics_prepare_pick_documents: {
25374
27696
  Args: {
25375
27697
  p_limit?: number;
@@ -25380,6 +27702,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25380
27702
  Args: never;
25381
27703
  Returns: number;
25382
27704
  };
27705
+ logistics_prune_cron_history: {
27706
+ Args: {
27707
+ p_days?: number;
27708
+ };
27709
+ Returns: number;
27710
+ };
25383
27711
  logistics_prune_handled_pick_queue: {
25384
27712
  Args: never;
25385
27713
  Returns: number;
@@ -25416,6 +27744,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25416
27744
  Args: never;
25417
27745
  Returns: import("../integrations/supabase/types").Json;
25418
27746
  };
27747
+ logistics_recalc_tick_kick: {
27748
+ Args: never;
27749
+ Returns: number;
27750
+ };
27751
+ logistics_reconcile_missing_plan_queue: {
27752
+ Args: never;
27753
+ Returns: number;
27754
+ };
25419
27755
  logistics_refresh_pick_queue_status: {
25420
27756
  Args: {
25421
27757
  p_ref: string;
@@ -25446,6 +27782,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25446
27782
  };
25447
27783
  Returns: import("../integrations/supabase/types").Json;
25448
27784
  };
27785
+ logistics_replan_clear_foreign_cart_items: {
27786
+ Args: {
27787
+ p_order_id: string;
27788
+ p_reason: string;
27789
+ };
27790
+ Returns: import("../integrations/supabase/types").Json;
27791
+ };
27792
+ logistics_replan_order_journey: {
27793
+ Args: {
27794
+ p_order_ref: string;
27795
+ };
27796
+ Returns: import("../integrations/supabase/types").Json;
27797
+ } | {
27798
+ Args: {
27799
+ p_order_ref: string;
27800
+ p_reason: string;
27801
+ };
27802
+ Returns: import("../integrations/supabase/types").Json;
27803
+ };
25449
27804
  logistics_report_delay: {
25450
27805
  Args: {
25451
27806
  p_expected_date?: string;
@@ -25490,6 +27845,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25490
27845
  };
25491
27846
  Returns: import("../integrations/supabase/types").Json;
25492
27847
  };
27848
+ logistics_reserved_stock_nightly: {
27849
+ Args: never;
27850
+ Returns: undefined;
27851
+ };
25493
27852
  logistics_resolve_pick_document: {
25494
27853
  Args: {
25495
27854
  _is_herprint: boolean;
@@ -25513,6 +27872,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25513
27872
  };
25514
27873
  Returns: import("../integrations/supabase/types").Json;
25515
27874
  };
27875
+ logistics_retention_days: {
27876
+ Args: {
27877
+ p_key: string;
27878
+ };
27879
+ Returns: number;
27880
+ };
25516
27881
  logistics_rule_bool: {
25517
27882
  Args: {
25518
27883
  p_default: boolean;
@@ -25567,6 +27932,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25567
27932
  logistics_schedule_tasks: {
25568
27933
  Args: never;
25569
27934
  Returns: number;
27935
+ } | {
27936
+ Args: {
27937
+ p_order_ref?: string;
27938
+ };
27939
+ Returns: number;
25570
27940
  };
25571
27941
  logistics_set_order_priority: {
25572
27942
  Args: {
@@ -25590,6 +27960,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25590
27960
  };
25591
27961
  Returns: string;
25592
27962
  };
27963
+ logistics_shipping_note_diagnose: {
27964
+ Args: {
27965
+ p_order_number: string;
27966
+ };
27967
+ Returns: import("../integrations/supabase/types").Json;
27968
+ };
25593
27969
  logistics_shipping_note_follows_slip: {
25594
27970
  Args: never;
25595
27971
  Returns: boolean;
@@ -25695,12 +28071,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25695
28071
  Args: never;
25696
28072
  Returns: import("../integrations/supabase/types").Json;
25697
28073
  };
28074
+ logistics_sync_pick_queue_backlog: {
28075
+ Args: never;
28076
+ Returns: import("../integrations/supabase/types").Json;
28077
+ };
28078
+ logistics_sync_pick_queue_core: {
28079
+ Args: never;
28080
+ Returns: import("../integrations/supabase/types").Json;
28081
+ };
25698
28082
  logistics_sync_task_carriers: {
25699
28083
  Args: {
25700
28084
  p_order_ref?: string;
25701
28085
  };
25702
28086
  Returns: number;
25703
28087
  };
28088
+ logistics_task_open_counts: {
28089
+ Args: never;
28090
+ Returns: {
28091
+ open_count: number;
28092
+ owner_module: string;
28093
+ }[];
28094
+ };
25704
28095
  logistics_task_owner: {
25705
28096
  Args: {
25706
28097
  p_task_type: string;
@@ -25714,6 +28105,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25714
28105
  };
25715
28106
  Returns: number;
25716
28107
  };
28108
+ logistics_task_retention_days: {
28109
+ Args: never;
28110
+ Returns: number;
28111
+ };
28112
+ logistics_tasks_prune: {
28113
+ Args: {
28114
+ p_days?: number;
28115
+ };
28116
+ Returns: number;
28117
+ };
28118
+ logistics_tick: {
28119
+ Args: never;
28120
+ Returns: import("../integrations/supabase/types").Json;
28121
+ };
25717
28122
  logistics_tick_ping: {
25718
28123
  Args: never;
25719
28124
  Returns: string;
@@ -25737,12 +28142,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25737
28142
  };
25738
28143
  Returns: import("../integrations/supabase/types").Json;
25739
28144
  };
28145
+ logistics_trace_archive_order: {
28146
+ Args: {
28147
+ p_order_ref: string;
28148
+ p_reason: string;
28149
+ };
28150
+ Returns: number;
28151
+ };
25740
28152
  logistics_trace_batch: {
25741
28153
  Args: {
25742
28154
  p: import("../integrations/supabase/types").Json;
25743
28155
  };
25744
28156
  Returns: number;
25745
28157
  };
28158
+ logistics_trace_derive: {
28159
+ Args: {
28160
+ p: import("../integrations/supabase/types").Json;
28161
+ };
28162
+ Returns: number;
28163
+ };
25746
28164
  logistics_trace_node: {
25747
28165
  Args: {
25748
28166
  p_op?: string;
@@ -25751,6 +28169,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25751
28169
  };
25752
28170
  Returns: string;
25753
28171
  };
28172
+ logistics_trace_order_journey_start: {
28173
+ Args: {
28174
+ p_order_id: string;
28175
+ p_reason?: string;
28176
+ };
28177
+ Returns: string;
28178
+ };
28179
+ logistics_trace_order_origin: {
28180
+ Args: {
28181
+ p_order_id: string;
28182
+ };
28183
+ Returns: undefined;
28184
+ };
25754
28185
  logistics_trace_order_overview: {
25755
28186
  Args: {
25756
28187
  p_error_class?: string;
@@ -25792,12 +28223,54 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25792
28223
  };
25793
28224
  Returns: import("../integrations/supabase/types").Json;
25794
28225
  };
28226
+ logistics_trace_pick_state: {
28227
+ Args: {
28228
+ p_order_number: string;
28229
+ };
28230
+ Returns: undefined;
28231
+ };
28232
+ logistics_trace_progress: {
28233
+ Args: {
28234
+ p_limit?: number;
28235
+ };
28236
+ Returns: import("../integrations/supabase/types").Json;
28237
+ };
28238
+ logistics_trace_progress_order: {
28239
+ Args: {
28240
+ p_order_ref: string;
28241
+ };
28242
+ Returns: import("../integrations/supabase/types").Json;
28243
+ };
25795
28244
  logistics_trace_redact: {
25796
28245
  Args: {
25797
28246
  p: import("../integrations/supabase/types").Json;
25798
28247
  };
25799
28248
  Returns: import("../integrations/supabase/types").Json;
25800
28249
  };
28250
+ logistics_trace_source_node: {
28251
+ Args: {
28252
+ p_source: string;
28253
+ };
28254
+ Returns: string;
28255
+ };
28256
+ logistics_trace_step_once: {
28257
+ Args: {
28258
+ p_decision: string;
28259
+ p_next_step?: string;
28260
+ p_node: string;
28261
+ p_order_id: string;
28262
+ p_reason: string;
28263
+ p_status: string;
28264
+ p_step: string;
28265
+ };
28266
+ Returns: undefined;
28267
+ };
28268
+ logistics_trace_stock_check: {
28269
+ Args: {
28270
+ p_order_id: string;
28271
+ };
28272
+ Returns: undefined;
28273
+ };
25801
28274
  logistics_trace_timeline: {
25802
28275
  Args: {
25803
28276
  p_limit?: number;
@@ -25911,6 +28384,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25911
28384
  permission: string;
25912
28385
  }[];
25913
28386
  };
28387
+ next_cart_day_seq: {
28388
+ Args: {
28389
+ p_date: string;
28390
+ };
28391
+ Returns: number;
28392
+ };
25914
28393
  next_manufacture_partij: {
25915
28394
  Args: {
25916
28395
  _tenant_id: string;
@@ -25980,6 +28459,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25980
28459
  };
25981
28460
  Returns: boolean;
25982
28461
  };
28462
+ order_items_duplicate_report: {
28463
+ Args: {
28464
+ _order_ref?: string;
28465
+ };
28466
+ Returns: {
28467
+ distinct_products: number;
28468
+ duplicate_factor: number;
28469
+ lines: number;
28470
+ order_number: string;
28471
+ }[];
28472
+ };
25983
28473
  order_number_prefix: {
25984
28474
  Args: {
25985
28475
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -26763,6 +29253,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26763
29253
  };
26764
29254
  Returns: undefined;
26765
29255
  };
29256
+ planning_apply_schedule_updates: {
29257
+ Args: {
29258
+ _updates: import("../integrations/supabase/types").Json;
29259
+ };
29260
+ Returns: undefined;
29261
+ };
29262
+ planning_assert_no_overlaps: {
29263
+ Args: never;
29264
+ Returns: undefined;
29265
+ };
29266
+ planning_assert_no_overlaps_for_items: {
29267
+ Args: {
29268
+ _item_ids: string[];
29269
+ };
29270
+ Returns: undefined;
29271
+ };
26766
29272
  planning_cancel_item: {
26767
29273
  Args: {
26768
29274
  _id: string;
@@ -26866,6 +29372,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26866
29372
  Args: never;
26867
29373
  Returns: number;
26868
29374
  };
29375
+ quote_ack_work_order: {
29376
+ Args: {
29377
+ _queue_id: string;
29378
+ _werkbon_id: string;
29379
+ _werkbon_nummer?: string;
29380
+ };
29381
+ Returns: boolean;
29382
+ };
29383
+ quote_assign_number: {
29384
+ Args: {
29385
+ _offerte_id: string;
29386
+ };
29387
+ Returns: string;
29388
+ };
29389
+ quote_create_follow_up_now: {
29390
+ Args: {
29391
+ _offerte_id: string;
29392
+ _payload?: import("../integrations/supabase/types").Json;
29393
+ };
29394
+ Returns: import("../integrations/supabase/types").Json;
29395
+ };
26869
29396
  quote_create_from_source: {
26870
29397
  Args: {
26871
29398
  _payload?: import("../integrations/supabase/types").Json;
@@ -26874,6 +29401,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26874
29401
  };
26875
29402
  Returns: string;
26876
29403
  };
29404
+ quote_fail_work_order: {
29405
+ Args: {
29406
+ _foutmelding: string;
29407
+ _queue_id: string;
29408
+ };
29409
+ Returns: boolean;
29410
+ };
26877
29411
  quote_get_billable_lines: {
26878
29412
  Args: {
26879
29413
  _quotation_id: string;
@@ -26890,6 +29424,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26890
29424
  Args: never;
26891
29425
  Returns: import("../integrations/supabase/types").Json;
26892
29426
  };
29427
+ quote_list_pending_work_orders: {
29428
+ Args: {
29429
+ _limit?: number;
29430
+ };
29431
+ Returns: import("../integrations/supabase/types").Json;
29432
+ };
26893
29433
  quote_list_sources: {
26894
29434
  Args: {
26895
29435
  _limit?: number;
@@ -26897,6 +29437,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26897
29437
  };
26898
29438
  Returns: import("../integrations/supabase/types").Json;
26899
29439
  };
29440
+ quote_queue_follow_up: {
29441
+ Args: {
29442
+ _offerte_id: string;
29443
+ };
29444
+ Returns: string;
29445
+ };
26900
29446
  recompute_all_reserved_stock: {
26901
29447
  Args: never;
26902
29448
  Returns: undefined;
@@ -27090,6 +29636,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27090
29636
  Args: never;
27091
29637
  Returns: undefined;
27092
29638
  };
29639
+ run_order_auto_invoice_tick: {
29640
+ Args: never;
29641
+ Returns: number;
29642
+ };
27093
29643
  run_print_queue_ticks: {
27094
29644
  Args: never;
27095
29645
  Returns: number;
@@ -27467,6 +30017,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27467
30017
  };
27468
30018
  Returns: number;
27469
30019
  };
30020
+ schedule_floriday_trade_items_reconcile: {
30021
+ Args: {
30022
+ p_apikey: string;
30023
+ p_url: string;
30024
+ };
30025
+ Returns: number;
30026
+ };
27470
30027
  schedule_floriday_trade_items_sync: {
27471
30028
  Args: {
27472
30029
  p_apikey: string;
@@ -27549,8 +30106,28 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27549
30106
  };
27550
30107
  Returns: undefined;
27551
30108
  };
27552
- show_limit: {
27553
- Args: never;
30109
+ set_product_stock: {
30110
+ Args: {
30111
+ p_incoming_stock?: number;
30112
+ p_minimum_stock?: number;
30113
+ p_notes?: string;
30114
+ p_physical_stock: number;
30115
+ p_product_id: string;
30116
+ };
30117
+ Returns: {
30118
+ connection_id: string;
30119
+ incoming_stock: number;
30120
+ minimum_stock: number;
30121
+ notes: string;
30122
+ physical_stock: number;
30123
+ product_id: string;
30124
+ reserved_stock: number;
30125
+ trade_item_key: string;
30126
+ updated_at: string;
30127
+ }[];
30128
+ };
30129
+ show_limit: {
30130
+ Args: never;
27554
30131
  Returns: number;
27555
30132
  };
27556
30133
  show_trgm: {
@@ -27578,6 +30155,52 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27578
30155
  p_end_time: string;
27579
30156
  };
27580
30157
  Returns: import("../integrations/supabase/types").Json;
30158
+ } | {
30159
+ Args: {
30160
+ p_end_lat?: number;
30161
+ p_end_lng?: number;
30162
+ p_log_id: string;
30163
+ };
30164
+ Returns: {
30165
+ auto_stop_reason: string | null;
30166
+ auto_stopped: boolean;
30167
+ created_at: string;
30168
+ current_latitude: number | null;
30169
+ current_longitude: number | null;
30170
+ current_position_updated_at: string | null;
30171
+ employee_id: string;
30172
+ end_latitude: number | null;
30173
+ end_longitude: number | null;
30174
+ end_time: string | null;
30175
+ eta_distance_km: number | null;
30176
+ eta_minutes: number | null;
30177
+ eta_updated_at: string | null;
30178
+ hour_category: string | null;
30179
+ id: string;
30180
+ last_reminder_at: string | null;
30181
+ notes: string | null;
30182
+ overtime_hours: number;
30183
+ overtime_type: string | null;
30184
+ regular_hours: number;
30185
+ reminder_count: number;
30186
+ requires_review: boolean;
30187
+ start_latitude: number | null;
30188
+ start_longitude: number | null;
30189
+ start_time: string;
30190
+ travel_cost: number | null;
30191
+ travel_distance_km: number | null;
30192
+ travel_duration_min: number | null;
30193
+ travel_time_minutes: number | null;
30194
+ type: string;
30195
+ updated_at: string;
30196
+ work_order_id: string | null;
30197
+ };
30198
+ SetofOptions: {
30199
+ from: "*";
30200
+ to: "time_logs";
30201
+ isOneToOne: true;
30202
+ isSetofReturn: false;
30203
+ };
27581
30204
  };
27582
30205
  swap_cart_layer_positions: {
27583
30206
  Args: {
@@ -27734,14 +30357,340 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27734
30357
  };
27735
30358
  Returns: undefined;
27736
30359
  };
30360
+ uren_employee_day_hours: {
30361
+ Args: {
30362
+ _day: string;
30363
+ _employee_id: string;
30364
+ };
30365
+ Returns: number;
30366
+ };
27737
30367
  uren_is_beheerder: {
27738
30368
  Args: never;
27739
30369
  Returns: boolean;
27740
30370
  };
30371
+ uren_is_werkdag: {
30372
+ Args: {
30373
+ _date: string;
30374
+ _monteur: string;
30375
+ };
30376
+ Returns: boolean;
30377
+ };
30378
+ uren_korte_afwezigheid_aanvragen: {
30379
+ Args: {
30380
+ _datum: string;
30381
+ _eind: string;
30382
+ _reden: string;
30383
+ _start: string;
30384
+ };
30385
+ Returns: string;
30386
+ };
30387
+ uren_list_medewerkers: {
30388
+ Args: never;
30389
+ Returns: {
30390
+ avatar_url: string;
30391
+ color: string;
30392
+ display_name: string;
30393
+ email: string;
30394
+ hours_fri: number;
30395
+ hours_mon: number;
30396
+ hours_thu: number;
30397
+ hours_tue: number;
30398
+ hours_wed: number;
30399
+ id: string;
30400
+ is_active: boolean;
30401
+ leave_balance_hours: number;
30402
+ persnr: string;
30403
+ phone: string;
30404
+ roles: string[];
30405
+ }[];
30406
+ };
30407
+ uren_list_planner_contacten: {
30408
+ Args: never;
30409
+ Returns: {
30410
+ display_name: string;
30411
+ id: string;
30412
+ phone: string;
30413
+ }[];
30414
+ };
30415
+ uren_maand_afsluiten: {
30416
+ Args: {
30417
+ _maand: string;
30418
+ _monteur: string;
30419
+ };
30420
+ Returns: undefined;
30421
+ };
30422
+ uren_maand_berekenen: {
30423
+ Args: {
30424
+ _maand: string;
30425
+ _monteur: string;
30426
+ };
30427
+ Returns: import("../integrations/supabase/types").Json;
30428
+ };
30429
+ uren_maand_corrigeren: {
30430
+ Args: {
30431
+ _maand: string;
30432
+ _monteur: string;
30433
+ _overuren_minuten: number;
30434
+ _reden: string;
30435
+ };
30436
+ Returns: undefined;
30437
+ };
30438
+ uren_mijn_contracturen: {
30439
+ Args: never;
30440
+ Returns: number;
30441
+ };
30442
+ uren_mijn_vakantiesaldo: {
30443
+ Args: never;
30444
+ Returns: number;
30445
+ };
27741
30446
  uren_my_monteur_id: {
27742
30447
  Args: never;
27743
30448
  Returns: string;
27744
30449
  };
30450
+ uren_planning_dagagenda: {
30451
+ Args: {
30452
+ _tot: string;
30453
+ _van: string;
30454
+ };
30455
+ Returns: {
30456
+ end_at: string;
30457
+ id: string;
30458
+ is_tweede_man: boolean;
30459
+ notes: string;
30460
+ start_at: string;
30461
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
30462
+ werkbon_id: string;
30463
+ }[];
30464
+ };
30465
+ uren_set_planning_item_status: {
30466
+ Args: {
30467
+ _id: string;
30468
+ _status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
30469
+ };
30470
+ Returns: undefined;
30471
+ };
30472
+ uren_set_planning_status: {
30473
+ Args: {
30474
+ p_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
30475
+ p_werkbon_id: string;
30476
+ };
30477
+ Returns: number;
30478
+ };
30479
+ uren_spiegel_bezig: {
30480
+ Args: never;
30481
+ Returns: boolean;
30482
+ };
30483
+ uren_standaardweek_beoordelen: {
30484
+ Args: {
30485
+ _goedkeuren: boolean;
30486
+ _id: string;
30487
+ _reden?: string;
30488
+ };
30489
+ Returns: undefined;
30490
+ };
30491
+ uren_standaardweek_doorzetten: {
30492
+ Args: {
30493
+ _monteur: string;
30494
+ };
30495
+ Returns: undefined;
30496
+ };
30497
+ uren_standaardweek_instellen: {
30498
+ Args: {
30499
+ _dagen: import("../integrations/supabase/types").Json;
30500
+ };
30501
+ Returns: string;
30502
+ };
30503
+ uren_standaardweek_toepassen: {
30504
+ Args: {
30505
+ _dagen: import("../integrations/supabase/types").Json;
30506
+ _monteur: string;
30507
+ };
30508
+ Returns: undefined;
30509
+ };
30510
+ uren_stop_time_log: {
30511
+ Args: {
30512
+ p_employee_id: string;
30513
+ p_end_lat?: number;
30514
+ p_end_lng?: number;
30515
+ p_end_time: string;
30516
+ };
30517
+ Returns: import("../integrations/supabase/types").Json;
30518
+ };
30519
+ uren_switch_time_log: {
30520
+ Args: {
30521
+ p_employee_id: string;
30522
+ p_start_lat?: number;
30523
+ p_start_lng?: number;
30524
+ p_type: string;
30525
+ p_work_order_id?: string;
30526
+ };
30527
+ Returns: import("../integrations/supabase/types").Json;
30528
+ };
30529
+ uren_sync_sick_time_off: {
30530
+ Args: {
30531
+ _period_id: string;
30532
+ };
30533
+ Returns: number;
30534
+ };
30535
+ uren_vakantie_aanvragen: {
30536
+ Args: {
30537
+ _end_date: string;
30538
+ _hours?: number;
30539
+ _start_date: string;
30540
+ };
30541
+ Returns: string;
30542
+ };
30543
+ uren_vakantiedag_wijzigen: {
30544
+ Args: {
30545
+ _date: string;
30546
+ };
30547
+ Returns: string;
30548
+ };
30549
+ uren_vakantiesaldo_uren: {
30550
+ Args: {
30551
+ _monteur: string;
30552
+ };
30553
+ Returns: number;
30554
+ };
30555
+ uren_week_start: {
30556
+ Args: {
30557
+ _datum: string;
30558
+ };
30559
+ Returns: string;
30560
+ };
30561
+ uren_werkweek_opsturen: {
30562
+ Args: {
30563
+ _week_start: string;
30564
+ };
30565
+ Returns: {
30566
+ approved_at: string | null;
30567
+ approved_by: string | null;
30568
+ contract_hours: number;
30569
+ created_at: string;
30570
+ employee_id: string;
30571
+ id: string;
30572
+ locked: boolean;
30573
+ monteur_toelichting: string | null;
30574
+ notes: string | null;
30575
+ planned_hours: number;
30576
+ status: string;
30577
+ submitted_at: string | null;
30578
+ updated_at: string;
30579
+ variance_hours: number;
30580
+ week_start: string;
30581
+ };
30582
+ SetofOptions: {
30583
+ from: "*";
30584
+ to: "time_log_week_approvals";
30585
+ isOneToOne: true;
30586
+ isSetofReturn: false;
30587
+ };
30588
+ } | {
30589
+ Args: {
30590
+ _vrije_dagen?: string[];
30591
+ _week_start: string;
30592
+ };
30593
+ Returns: {
30594
+ approved_at: string | null;
30595
+ approved_by: string | null;
30596
+ contract_hours: number;
30597
+ created_at: string;
30598
+ employee_id: string;
30599
+ id: string;
30600
+ locked: boolean;
30601
+ monteur_toelichting: string | null;
30602
+ notes: string | null;
30603
+ planned_hours: number;
30604
+ status: string;
30605
+ submitted_at: string | null;
30606
+ updated_at: string;
30607
+ variance_hours: number;
30608
+ week_start: string;
30609
+ };
30610
+ SetofOptions: {
30611
+ from: "*";
30612
+ to: "time_log_week_approvals";
30613
+ isOneToOne: true;
30614
+ isSetofReturn: false;
30615
+ };
30616
+ } | {
30617
+ Args: {
30618
+ _toelichting?: string;
30619
+ _vrije_dagen?: string[];
30620
+ _week_start: string;
30621
+ };
30622
+ Returns: {
30623
+ approved_at: string | null;
30624
+ approved_by: string | null;
30625
+ contract_hours: number;
30626
+ created_at: string;
30627
+ employee_id: string;
30628
+ id: string;
30629
+ locked: boolean;
30630
+ monteur_toelichting: string | null;
30631
+ notes: string | null;
30632
+ planned_hours: number;
30633
+ status: string;
30634
+ submitted_at: string | null;
30635
+ updated_at: string;
30636
+ variance_hours: number;
30637
+ week_start: string;
30638
+ };
30639
+ SetofOptions: {
30640
+ from: "*";
30641
+ to: "time_log_week_approvals";
30642
+ isOneToOne: true;
30643
+ isSetofReturn: false;
30644
+ };
30645
+ };
30646
+ vakantie_dagen_gebruikt: {
30647
+ Args: {
30648
+ _user_id: string;
30649
+ _year: number;
30650
+ };
30651
+ Returns: number;
30652
+ };
30653
+ vakantie_overuren: {
30654
+ Args: {
30655
+ _user_id: string;
30656
+ _year?: number;
30657
+ };
30658
+ Returns: number;
30659
+ };
30660
+ vakantie_saldo: {
30661
+ Args: {
30662
+ _user_id: string;
30663
+ _year?: number;
30664
+ };
30665
+ Returns: {
30666
+ day_hours: number;
30667
+ earned_from_overtime_days: number;
30668
+ entitlement_days: number;
30669
+ hours_to_next_day: number;
30670
+ overtime_hours: number;
30671
+ overtime_remainder_hours: number;
30672
+ paid_out_days: number;
30673
+ remaining_days: number;
30674
+ used_days: number;
30675
+ }[];
30676
+ };
30677
+ vakantie_saldo_overzicht: {
30678
+ Args: {
30679
+ _year?: number;
30680
+ };
30681
+ Returns: {
30682
+ day_hours: number;
30683
+ earned_from_overtime_days: number;
30684
+ entitlement_days: number;
30685
+ hours_to_next_day: number;
30686
+ overtime_hours: number;
30687
+ overtime_remainder_hours: number;
30688
+ paid_out_days: number;
30689
+ remaining_days: number;
30690
+ used_days: number;
30691
+ user_id: string;
30692
+ }[];
30693
+ };
27745
30694
  voorraad_cleanup_old_rows: {
27746
30695
  Args: never;
27747
30696
  Returns: import("../integrations/supabase/types").Json;
@@ -27784,6 +30733,45 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27784
30733
  };
27785
30734
  Returns: import("../integrations/supabase/types").Json;
27786
30735
  };
30736
+ wo_list_offerte_requests: {
30737
+ Args: {
30738
+ _status?: string;
30739
+ };
30740
+ Returns: import("../integrations/supabase/types").Json;
30741
+ };
30742
+ wo_list_proposals: {
30743
+ Args: {
30744
+ _status?: string;
30745
+ };
30746
+ Returns: import("../integrations/supabase/types").Json;
30747
+ };
30748
+ wo_process_offerte_request: {
30749
+ Args: {
30750
+ _queue_id: string;
30751
+ };
30752
+ Returns: import("../integrations/supabase/types").Json;
30753
+ };
30754
+ wo_process_proposal: {
30755
+ Args: {
30756
+ _id: string;
30757
+ _overrides?: import("../integrations/supabase/types").Json;
30758
+ };
30759
+ Returns: import("../integrations/supabase/types").Json;
30760
+ };
30761
+ wo_reject_offerte_request: {
30762
+ Args: {
30763
+ _queue_id: string;
30764
+ _reden?: string;
30765
+ };
30766
+ Returns: import("../integrations/supabase/types").Json;
30767
+ };
30768
+ wo_reject_proposal: {
30769
+ Args: {
30770
+ _id: string;
30771
+ _reden?: string;
30772
+ };
30773
+ Returns: import("../integrations/supabase/types").Json;
30774
+ };
27787
30775
  wo_set_status: {
27788
30776
  Args: {
27789
30777
  _reason?: string;