@flowselections/logistiek-engine 1.0.53 → 1.0.90

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 +12 -9
@@ -5,6 +5,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5
5
  Row: {
6
6
  auto_print_delivery_note: boolean;
7
7
  auto_process_paused: boolean;
8
+ control_bulk_max_carts: number;
8
9
  created_at: string;
9
10
  extra_pick_days_with_stickers: number;
10
11
  id: string;
@@ -22,6 +23,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22
23
  Insert: {
23
24
  auto_print_delivery_note?: boolean;
24
25
  auto_process_paused?: boolean;
26
+ control_bulk_max_carts?: number;
25
27
  created_at?: string;
26
28
  extra_pick_days_with_stickers?: number;
27
29
  id?: string;
@@ -39,6 +41,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
39
41
  Update: {
40
42
  auto_print_delivery_note?: boolean;
41
43
  auto_process_paused?: boolean;
44
+ control_bulk_max_carts?: number;
42
45
  created_at?: string;
43
46
  extra_pick_days_with_stickers?: number;
44
47
  id?: string;
@@ -1381,6 +1384,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1381
1384
  id: string;
1382
1385
  notes: string | null;
1383
1386
  performed_at: string;
1387
+ request_key: string | null;
1384
1388
  rescheduled_count: number;
1385
1389
  stock_consumed_at: string | null;
1386
1390
  total_carts: number;
@@ -1395,6 +1399,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1395
1399
  id?: string;
1396
1400
  notes?: string | null;
1397
1401
  performed_at?: string;
1402
+ request_key?: string | null;
1398
1403
  rescheduled_count?: number;
1399
1404
  stock_consumed_at?: string | null;
1400
1405
  total_carts?: number;
@@ -1409,6 +1414,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1409
1414
  id?: string;
1410
1415
  notes?: string | null;
1411
1416
  performed_at?: string;
1417
+ request_key?: string | null;
1412
1418
  rescheduled_count?: number;
1413
1419
  stock_consumed_at?: string | null;
1414
1420
  total_carts?: number;
@@ -1421,9 +1427,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1421
1427
  Row: {
1422
1428
  assigned_at: string;
1423
1429
  cart_index: number;
1424
- cart_number: string | null;
1430
+ cart_number: string;
1425
1431
  day_seq: number | null;
1426
1432
  delivered_at: string | null;
1433
+ engine_cart_label: string | null;
1427
1434
  id: string;
1428
1435
  order_id: string;
1429
1436
  order_source: string;
@@ -1433,9 +1440,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1433
1440
  Insert: {
1434
1441
  assigned_at?: string;
1435
1442
  cart_index: number;
1436
- cart_number?: string | null;
1443
+ cart_number: string;
1437
1444
  day_seq?: number | null;
1438
1445
  delivered_at?: string | null;
1446
+ engine_cart_label?: string | null;
1439
1447
  id?: string;
1440
1448
  order_id: string;
1441
1449
  order_source: string;
@@ -1445,9 +1453,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1445
1453
  Update: {
1446
1454
  assigned_at?: string;
1447
1455
  cart_index?: number;
1448
- cart_number?: string | null;
1456
+ cart_number?: string;
1449
1457
  day_seq?: number | null;
1450
1458
  delivered_at?: string | null;
1459
+ engine_cart_label?: string | null;
1451
1460
  id?: string;
1452
1461
  order_id?: string;
1453
1462
  order_source?: string;
@@ -7980,6 +7989,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7980
7989
  };
7981
7990
  fust_types: {
7982
7991
  Row: {
7992
+ capacity_units: number | null;
7983
7993
  connection_id: string | null;
7984
7994
  created_at: string;
7985
7995
  custom_package_id: string | null;
@@ -8000,6 +8010,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8000
8010
  width_mm: number | null;
8001
8011
  };
8002
8012
  Insert: {
8013
+ capacity_units?: number | null;
8003
8014
  connection_id?: string | null;
8004
8015
  created_at?: string;
8005
8016
  custom_package_id?: string | null;
@@ -8020,6 +8031,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8020
8031
  width_mm?: number | null;
8021
8032
  };
8022
8033
  Update: {
8034
+ capacity_units?: number | null;
8023
8035
  connection_id?: string | null;
8024
8036
  created_at?: string;
8025
8037
  custom_package_id?: string | null;
@@ -8251,6 +8263,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8251
8263
  };
8252
8264
  Relationships: [];
8253
8265
  };
8266
+ invoice_branding_settings: {
8267
+ Row: {
8268
+ address: string;
8269
+ chamber_of_commerce_number: string;
8270
+ city: string;
8271
+ company_name: string;
8272
+ created_at: string;
8273
+ email: string;
8274
+ email_purpose: string | null;
8275
+ iban: string;
8276
+ logo_path: string | null;
8277
+ payment_term_days: number;
8278
+ phone: string;
8279
+ postal_code: string;
8280
+ primary_color: string;
8281
+ secondary_color: string;
8282
+ show_company_name: boolean;
8283
+ singleton_key: boolean;
8284
+ updated_at: string;
8285
+ vat_identification_number: string;
8286
+ website: string;
8287
+ };
8288
+ Insert: {
8289
+ address?: string;
8290
+ chamber_of_commerce_number?: string;
8291
+ city?: string;
8292
+ company_name?: string;
8293
+ created_at?: string;
8294
+ email?: string;
8295
+ email_purpose?: string | null;
8296
+ iban?: string;
8297
+ logo_path?: string | null;
8298
+ payment_term_days?: number;
8299
+ phone?: string;
8300
+ postal_code?: string;
8301
+ primary_color?: string;
8302
+ secondary_color?: string;
8303
+ show_company_name?: boolean;
8304
+ singleton_key?: boolean;
8305
+ updated_at?: string;
8306
+ vat_identification_number?: string;
8307
+ website?: string;
8308
+ };
8309
+ Update: {
8310
+ address?: string;
8311
+ chamber_of_commerce_number?: string;
8312
+ city?: string;
8313
+ company_name?: string;
8314
+ created_at?: string;
8315
+ email?: string;
8316
+ email_purpose?: string | null;
8317
+ iban?: string;
8318
+ logo_path?: string | null;
8319
+ payment_term_days?: number;
8320
+ phone?: string;
8321
+ postal_code?: string;
8322
+ primary_color?: string;
8323
+ secondary_color?: string;
8324
+ show_company_name?: boolean;
8325
+ singleton_key?: boolean;
8326
+ updated_at?: string;
8327
+ vat_identification_number?: string;
8328
+ website?: string;
8329
+ };
8330
+ Relationships: [];
8331
+ };
8254
8332
  invoice_items: {
8255
8333
  Row: {
8256
8334
  created_at: string;
@@ -8264,6 +8342,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8264
8342
  total_cents: number;
8265
8343
  unit: string;
8266
8344
  unit_price_cents: number;
8345
+ vat_rate: number | null;
8267
8346
  };
8268
8347
  Insert: {
8269
8348
  created_at?: string;
@@ -8277,6 +8356,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8277
8356
  total_cents?: number;
8278
8357
  unit?: string;
8279
8358
  unit_price_cents?: number;
8359
+ vat_rate?: number | null;
8280
8360
  };
8281
8361
  Update: {
8282
8362
  created_at?: string;
@@ -8290,6 +8370,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8290
8370
  total_cents?: number;
8291
8371
  unit?: string;
8292
8372
  unit_price_cents?: number;
8373
+ vat_rate?: number | null;
8293
8374
  };
8294
8375
  Relationships: [{
8295
8376
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8535,15 +8616,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8535
8616
  };
8536
8617
  invoices: {
8537
8618
  Row: {
8619
+ branding_snapshot: import("./types").Json | null;
8538
8620
  created_at: string;
8539
8621
  created_by: string | null;
8622
+ customer_address: string | null;
8623
+ customer_attention: string | null;
8624
+ customer_city: string | null;
8540
8625
  customer_id: string | null;
8541
8626
  customer_name: string | null;
8627
+ customer_postal_code: string | null;
8628
+ customer_vat_number: string | null;
8629
+ debtor_number: string | null;
8542
8630
  due_date: string | null;
8631
+ execution_date: string | null;
8543
8632
  id: string;
8544
8633
  invoice_date: string;
8545
8634
  invoice_number: string | null;
8546
8635
  note: string | null;
8636
+ payment_term_days: number;
8637
+ reference: string | null;
8638
+ sent_at: string | null;
8639
+ sent_to: string | null;
8547
8640
  source_number: string | null;
8548
8641
  source_ref: string | null;
8549
8642
  source_type: string;
@@ -8553,17 +8646,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8553
8646
  updated_at: string;
8554
8647
  vat_cents: number;
8555
8648
  vat_rate: number;
8649
+ work_address: string | null;
8556
8650
  };
8557
8651
  Insert: {
8652
+ branding_snapshot?: import("./types").Json | null;
8558
8653
  created_at?: string;
8559
8654
  created_by?: string | null;
8655
+ customer_address?: string | null;
8656
+ customer_attention?: string | null;
8657
+ customer_city?: string | null;
8560
8658
  customer_id?: string | null;
8561
8659
  customer_name?: string | null;
8660
+ customer_postal_code?: string | null;
8661
+ customer_vat_number?: string | null;
8662
+ debtor_number?: string | null;
8562
8663
  due_date?: string | null;
8664
+ execution_date?: string | null;
8563
8665
  id?: string;
8564
8666
  invoice_date?: string;
8565
8667
  invoice_number?: string | null;
8566
8668
  note?: string | null;
8669
+ payment_term_days?: number;
8670
+ reference?: string | null;
8671
+ sent_at?: string | null;
8672
+ sent_to?: string | null;
8567
8673
  source_number?: string | null;
8568
8674
  source_ref?: string | null;
8569
8675
  source_type?: string;
@@ -8573,17 +8679,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8573
8679
  updated_at?: string;
8574
8680
  vat_cents?: number;
8575
8681
  vat_rate?: number;
8682
+ work_address?: string | null;
8576
8683
  };
8577
8684
  Update: {
8685
+ branding_snapshot?: import("./types").Json | null;
8578
8686
  created_at?: string;
8579
8687
  created_by?: string | null;
8688
+ customer_address?: string | null;
8689
+ customer_attention?: string | null;
8690
+ customer_city?: string | null;
8580
8691
  customer_id?: string | null;
8581
8692
  customer_name?: string | null;
8693
+ customer_postal_code?: string | null;
8694
+ customer_vat_number?: string | null;
8695
+ debtor_number?: string | null;
8582
8696
  due_date?: string | null;
8697
+ execution_date?: string | null;
8583
8698
  id?: string;
8584
8699
  invoice_date?: string;
8585
8700
  invoice_number?: string | null;
8586
8701
  note?: string | null;
8702
+ payment_term_days?: number;
8703
+ reference?: string | null;
8704
+ sent_at?: string | null;
8705
+ sent_to?: string | null;
8587
8706
  source_number?: string | null;
8588
8707
  source_ref?: string | null;
8589
8708
  source_type?: string;
@@ -8593,6 +8712,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8593
8712
  updated_at?: string;
8594
8713
  vat_cents?: number;
8595
8714
  vat_rate?: number;
8715
+ work_address?: string | null;
8596
8716
  };
8597
8717
  Relationships: [{
8598
8718
  foreignKeyName: "invoices_customer_id_fkey";
@@ -8797,8 +8917,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8797
8917
  };
8798
8918
  Relationships: [];
8799
8919
  };
8920
+ itk_handover_afspraken: {
8921
+ Row: {
8922
+ afgesproken_door: string | null;
8923
+ afgesproken_op: string;
8924
+ besluit: string;
8925
+ created_at: string;
8926
+ item: string;
8927
+ modules: string[];
8928
+ sleutel: string;
8929
+ soort: string;
8930
+ updated_at: string;
8931
+ versie_vingerafdruk: string;
8932
+ };
8933
+ Insert: {
8934
+ afgesproken_door?: string | null;
8935
+ afgesproken_op?: string;
8936
+ besluit?: string;
8937
+ created_at?: string;
8938
+ item?: string;
8939
+ modules?: string[];
8940
+ sleutel: string;
8941
+ soort?: string;
8942
+ updated_at?: string;
8943
+ versie_vingerafdruk?: string;
8944
+ };
8945
+ Update: {
8946
+ afgesproken_door?: string | null;
8947
+ afgesproken_op?: string;
8948
+ besluit?: string;
8949
+ created_at?: string;
8950
+ item?: string;
8951
+ modules?: string[];
8952
+ sleutel?: string;
8953
+ soort?: string;
8954
+ updated_at?: string;
8955
+ versie_vingerafdruk?: string;
8956
+ };
8957
+ Relationships: [];
8958
+ };
8800
8959
  itk_handover_github_scan: {
8801
8960
  Row: {
8961
+ genegeerd_op: string | null;
8802
8962
  gescand_op: string;
8803
8963
  gevonden: boolean;
8804
8964
  melding: string | null;
@@ -8806,6 +8966,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8806
8966
  repo: string;
8807
8967
  };
8808
8968
  Insert: {
8969
+ genegeerd_op?: string | null;
8809
8970
  gescand_op?: string;
8810
8971
  gevonden?: boolean;
8811
8972
  melding?: string | null;
@@ -8813,6 +8974,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8813
8974
  repo: string;
8814
8975
  };
8815
8976
  Update: {
8977
+ genegeerd_op?: string | null;
8816
8978
  gescand_op?: string;
8817
8979
  gevonden?: boolean;
8818
8980
  melding?: string | null;
@@ -8821,13 +8983,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8821
8983
  };
8822
8984
  Relationships: [];
8823
8985
  };
8986
+ itk_handover_github_voortgang: {
8987
+ Row: {
8988
+ bijgewerkt_op: string;
8989
+ huidige_repo: string | null;
8990
+ id: boolean;
8991
+ klaar: number;
8992
+ loopt: boolean;
8993
+ totaal: number;
8994
+ };
8995
+ Insert: {
8996
+ bijgewerkt_op?: string;
8997
+ huidige_repo?: string | null;
8998
+ id?: boolean;
8999
+ klaar?: number;
9000
+ loopt?: boolean;
9001
+ totaal?: number;
9002
+ };
9003
+ Update: {
9004
+ bijgewerkt_op?: string;
9005
+ huidige_repo?: string | null;
9006
+ id?: boolean;
9007
+ klaar?: number;
9008
+ loopt?: boolean;
9009
+ totaal?: number;
9010
+ };
9011
+ Relationships: [];
9012
+ };
8824
9013
  itk_handover_module_meta: {
8825
9014
  Row: {
8826
9015
  check_aangevraagd_op: string | null;
8827
9016
  check_nodig: boolean;
8828
9017
  check_reden: string | null;
8829
9018
  created_at: string;
9019
+ md_bron: boolean;
9020
+ md_bron_op: string | null;
9021
+ md_bron_pad: string | null;
8830
9022
  module_id: string;
9023
+ nieuw_gezien: boolean;
9024
+ nieuw_gezien_op: string | null;
8831
9025
  project_url: string | null;
8832
9026
  publicatie_url: string | null;
8833
9027
  updated_at: string;
@@ -8837,7 +9031,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8837
9031
  check_nodig?: boolean;
8838
9032
  check_reden?: string | null;
8839
9033
  created_at?: string;
9034
+ md_bron?: boolean;
9035
+ md_bron_op?: string | null;
9036
+ md_bron_pad?: string | null;
8840
9037
  module_id: string;
9038
+ nieuw_gezien?: boolean;
9039
+ nieuw_gezien_op?: string | null;
8841
9040
  project_url?: string | null;
8842
9041
  publicatie_url?: string | null;
8843
9042
  updated_at?: string;
@@ -8847,13 +9046,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8847
9046
  check_nodig?: boolean;
8848
9047
  check_reden?: string | null;
8849
9048
  created_at?: string;
9049
+ md_bron?: boolean;
9050
+ md_bron_op?: string | null;
9051
+ md_bron_pad?: string | null;
8850
9052
  module_id?: string;
9053
+ nieuw_gezien?: boolean;
9054
+ nieuw_gezien_op?: string | null;
8851
9055
  project_url?: string | null;
8852
9056
  publicatie_url?: string | null;
8853
9057
  updated_at?: string;
8854
9058
  };
8855
9059
  Relationships: [];
8856
9060
  };
9061
+ itk_handover_module_naam: {
9062
+ Row: {
9063
+ bron_repo: string;
9064
+ created_at: string;
9065
+ module_id: string;
9066
+ standaardnaam: string | null;
9067
+ updated_at: string;
9068
+ weergavenaam: string;
9069
+ };
9070
+ Insert: {
9071
+ bron_repo?: string;
9072
+ created_at?: string;
9073
+ module_id: string;
9074
+ standaardnaam?: string | null;
9075
+ updated_at?: string;
9076
+ weergavenaam: string;
9077
+ };
9078
+ Update: {
9079
+ bron_repo?: string;
9080
+ created_at?: string;
9081
+ module_id?: string;
9082
+ standaardnaam?: string | null;
9083
+ updated_at?: string;
9084
+ weergavenaam?: string;
9085
+ };
9086
+ Relationships: [];
9087
+ };
8857
9088
  itk_handover_project_modules: {
8858
9089
  Row: {
8859
9090
  created_at: string;
@@ -8967,6 +9198,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8967
9198
  };
8968
9199
  itk_module_handovers: {
8969
9200
  Row: {
9201
+ bekende_risicos: string[];
8970
9202
  bevindingen: string | null;
8971
9203
  bezit_tabellen: string[];
8972
9204
  bron_commit: string | null;
@@ -8985,6 +9217,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8985
9217
  inhoud_md: string;
8986
9218
  is_actueel: boolean;
8987
9219
  is_gearchiveerd: boolean;
9220
+ laatst_bevestigd_op: string | null;
8988
9221
  laatst_gecontroleerd_op: string | null;
8989
9222
  module_id: string;
8990
9223
  module_titel: string;
@@ -8994,6 +9227,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8994
9227
  versie: number;
8995
9228
  };
8996
9229
  Insert: {
9230
+ bekende_risicos?: string[];
8997
9231
  bevindingen?: string | null;
8998
9232
  bezit_tabellen?: string[];
8999
9233
  bron_commit?: string | null;
@@ -9012,6 +9246,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9012
9246
  inhoud_md: string;
9013
9247
  is_actueel?: boolean;
9014
9248
  is_gearchiveerd?: boolean;
9249
+ laatst_bevestigd_op?: string | null;
9015
9250
  laatst_gecontroleerd_op?: string | null;
9016
9251
  module_id: string;
9017
9252
  module_titel: string;
@@ -9021,6 +9256,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9021
9256
  versie?: number;
9022
9257
  };
9023
9258
  Update: {
9259
+ bekende_risicos?: string[];
9024
9260
  bevindingen?: string | null;
9025
9261
  bezit_tabellen?: string[];
9026
9262
  bron_commit?: string | null;
@@ -9039,6 +9275,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9039
9275
  inhoud_md?: string;
9040
9276
  is_actueel?: boolean;
9041
9277
  is_gearchiveerd?: boolean;
9278
+ laatst_bevestigd_op?: string | null;
9042
9279
  laatst_gecontroleerd_op?: string | null;
9043
9280
  module_id?: string;
9044
9281
  module_titel?: string;
@@ -9174,6 +9411,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9174
9411
  quantity: number;
9175
9412
  sort_order: number;
9176
9413
  source: string;
9414
+ unit: string | null;
9177
9415
  unit_price_cents: number;
9178
9416
  updated_at: string;
9179
9417
  };
@@ -9187,6 +9425,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9187
9425
  quantity?: number;
9188
9426
  sort_order?: number;
9189
9427
  source?: string;
9428
+ unit?: string | null;
9190
9429
  unit_price_cents?: number;
9191
9430
  updated_at?: string;
9192
9431
  };
@@ -9200,6 +9439,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9200
9439
  quantity?: number;
9201
9440
  sort_order?: number;
9202
9441
  source?: string;
9442
+ unit?: string | null;
9203
9443
  unit_price_cents?: number;
9204
9444
  updated_at?: string;
9205
9445
  };
@@ -9223,6 +9463,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9223
9463
  created_at: string;
9224
9464
  default_geldigheid_dagen: number;
9225
9465
  default_vat_rate: number;
9466
+ email_purpose: string | null;
9226
9467
  id: string;
9227
9468
  singleton: boolean;
9228
9469
  updated_at: string;
@@ -9232,6 +9473,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9232
9473
  created_at?: string;
9233
9474
  default_geldigheid_dagen?: number;
9234
9475
  default_vat_rate?: number;
9476
+ email_purpose?: string | null;
9235
9477
  id?: string;
9236
9478
  singleton?: boolean;
9237
9479
  updated_at?: string;
@@ -9241,14 +9483,100 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9241
9483
  created_at?: string;
9242
9484
  default_geldigheid_dagen?: number;
9243
9485
  default_vat_rate?: number;
9486
+ email_purpose?: string | null;
9244
9487
  id?: string;
9245
9488
  singleton?: boolean;
9246
9489
  updated_at?: string;
9247
9490
  };
9248
9491
  Relationships: [];
9249
9492
  };
9493
+ itk_offerte_voorstel_status: {
9494
+ Row: {
9495
+ ai_concept: import("./types").Json | null;
9496
+ created_at: string;
9497
+ id: string;
9498
+ offerte_id: string | null;
9499
+ proposal_id: string;
9500
+ seen_at: string | null;
9501
+ updated_at: string;
9502
+ };
9503
+ Insert: {
9504
+ ai_concept?: import("./types").Json | null;
9505
+ created_at?: string;
9506
+ id?: string;
9507
+ offerte_id?: string | null;
9508
+ proposal_id: string;
9509
+ seen_at?: string | null;
9510
+ updated_at?: string;
9511
+ };
9512
+ Update: {
9513
+ ai_concept?: import("./types").Json | null;
9514
+ created_at?: string;
9515
+ id?: string;
9516
+ offerte_id?: string | null;
9517
+ proposal_id?: string;
9518
+ seen_at?: string | null;
9519
+ updated_at?: string;
9520
+ };
9521
+ Relationships: [{
9522
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9523
+ columns: ["offerte_id"];
9524
+ isOneToOne: false;
9525
+ referencedRelation: "itk_offertes";
9526
+ referencedColumns: ["id"];
9527
+ }];
9528
+ };
9529
+ itk_offerte_werkbon_queue: {
9530
+ Row: {
9531
+ bron_werkbon_id: string | null;
9532
+ created_at: string;
9533
+ foutmelding: string | null;
9534
+ id: string;
9535
+ offerte_id: string;
9536
+ payload: import("./types").Json;
9537
+ status: string;
9538
+ updated_at: string;
9539
+ verwerkt_op: string | null;
9540
+ werkbon_id: string | null;
9541
+ werkbon_nummer: string | null;
9542
+ };
9543
+ Insert: {
9544
+ bron_werkbon_id?: string | null;
9545
+ created_at?: string;
9546
+ foutmelding?: string | null;
9547
+ id?: string;
9548
+ offerte_id: string;
9549
+ payload?: import("./types").Json;
9550
+ status?: string;
9551
+ updated_at?: string;
9552
+ verwerkt_op?: string | null;
9553
+ werkbon_id?: string | null;
9554
+ werkbon_nummer?: string | null;
9555
+ };
9556
+ Update: {
9557
+ bron_werkbon_id?: string | null;
9558
+ created_at?: string;
9559
+ foutmelding?: string | null;
9560
+ id?: string;
9561
+ offerte_id?: string;
9562
+ payload?: import("./types").Json;
9563
+ status?: string;
9564
+ updated_at?: string;
9565
+ verwerkt_op?: string | null;
9566
+ werkbon_id?: string | null;
9567
+ werkbon_nummer?: string | null;
9568
+ };
9569
+ Relationships: [{
9570
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9571
+ columns: ["offerte_id"];
9572
+ isOneToOne: false;
9573
+ referencedRelation: "itk_offertes";
9574
+ referencedColumns: ["id"];
9575
+ }];
9576
+ };
9250
9577
  itk_offertes: {
9251
9578
  Row: {
9579
+ aandachtspunten: string | null;
9252
9580
  ai_generated: boolean;
9253
9581
  approved_at: string | null;
9254
9582
  binnen_mandaat: boolean;
@@ -9264,6 +9592,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9264
9592
  notities: string | null;
9265
9593
  offerte_number: string | null;
9266
9594
  omschrijving: string;
9595
+ onderwerp: string | null;
9267
9596
  rejected_at: string | null;
9268
9597
  sent_at: string | null;
9269
9598
  source_number: string | null;
@@ -9276,12 +9605,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9276
9605
  valid_until: string | null;
9277
9606
  vat_cents: number;
9278
9607
  vat_rate: number;
9608
+ verzonden_naar: string | null;
9279
9609
  viewed_at: string | null;
9280
9610
  volgnummer: number | null;
9611
+ voorwaarden: string | null;
9281
9612
  werkbon_id: string | null;
9282
9613
  work_location_id: string | null;
9283
9614
  };
9284
9615
  Insert: {
9616
+ aandachtspunten?: string | null;
9285
9617
  ai_generated?: boolean;
9286
9618
  approved_at?: string | null;
9287
9619
  binnen_mandaat?: boolean;
@@ -9297,6 +9629,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9297
9629
  notities?: string | null;
9298
9630
  offerte_number?: string | null;
9299
9631
  omschrijving?: string;
9632
+ onderwerp?: string | null;
9300
9633
  rejected_at?: string | null;
9301
9634
  sent_at?: string | null;
9302
9635
  source_number?: string | null;
@@ -9309,12 +9642,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9309
9642
  valid_until?: string | null;
9310
9643
  vat_cents?: number;
9311
9644
  vat_rate?: number;
9645
+ verzonden_naar?: string | null;
9312
9646
  viewed_at?: string | null;
9313
9647
  volgnummer?: number | null;
9648
+ voorwaarden?: string | null;
9314
9649
  werkbon_id?: string | null;
9315
9650
  work_location_id?: string | null;
9316
9651
  };
9317
9652
  Update: {
9653
+ aandachtspunten?: string | null;
9318
9654
  ai_generated?: boolean;
9319
9655
  approved_at?: string | null;
9320
9656
  binnen_mandaat?: boolean;
@@ -9330,6 +9666,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9330
9666
  notities?: string | null;
9331
9667
  offerte_number?: string | null;
9332
9668
  omschrijving?: string;
9669
+ onderwerp?: string | null;
9333
9670
  rejected_at?: string | null;
9334
9671
  sent_at?: string | null;
9335
9672
  source_number?: string | null;
@@ -9342,8 +9679,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9342
9679
  valid_until?: string | null;
9343
9680
  vat_cents?: number;
9344
9681
  vat_rate?: number;
9682
+ verzonden_naar?: string | null;
9345
9683
  viewed_at?: string | null;
9346
9684
  volgnummer?: number | null;
9685
+ voorwaarden?: string | null;
9347
9686
  werkbon_id?: string | null;
9348
9687
  work_location_id?: string | null;
9349
9688
  };
@@ -9519,6 +9858,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9519
9858
  };
9520
9859
  leave_requests: {
9521
9860
  Row: {
9861
+ cancellation_requested_at: string | null;
9862
+ cancellation_status: string | null;
9522
9863
  created_at: string;
9523
9864
  decided_at: string | null;
9524
9865
  decided_by: string | null;
@@ -9529,6 +9870,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9529
9870
  leave_type: string;
9530
9871
  monteur_id: string | null;
9531
9872
  reason: string | null;
9873
+ reden_afkeur: string | null;
9532
9874
  start_date: string;
9533
9875
  start_time: string | null;
9534
9876
  status: string;
@@ -9536,6 +9878,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9536
9878
  user_id: string;
9537
9879
  };
9538
9880
  Insert: {
9881
+ cancellation_requested_at?: string | null;
9882
+ cancellation_status?: string | null;
9539
9883
  created_at?: string;
9540
9884
  decided_at?: string | null;
9541
9885
  decided_by?: string | null;
@@ -9546,6 +9890,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9546
9890
  leave_type?: string;
9547
9891
  monteur_id?: string | null;
9548
9892
  reason?: string | null;
9893
+ reden_afkeur?: string | null;
9549
9894
  start_date: string;
9550
9895
  start_time?: string | null;
9551
9896
  status?: string;
@@ -9553,6 +9898,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9553
9898
  user_id: string;
9554
9899
  };
9555
9900
  Update: {
9901
+ cancellation_requested_at?: string | null;
9902
+ cancellation_status?: string | null;
9556
9903
  created_at?: string;
9557
9904
  decided_at?: string | null;
9558
9905
  decided_by?: string | null;
@@ -9563,6 +9910,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9563
9910
  leave_type?: string;
9564
9911
  monteur_id?: string | null;
9565
9912
  reason?: string | null;
9913
+ reden_afkeur?: string | null;
9566
9914
  start_date?: string;
9567
9915
  start_time?: string | null;
9568
9916
  status?: string;
@@ -10705,6 +11053,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10705
11053
  };
10706
11054
  Relationships: [];
10707
11055
  };
11056
+ logistics_order_finalize_queue: {
11057
+ Row: {
11058
+ attempts: number;
11059
+ claimed_at: string | null;
11060
+ created_at: string;
11061
+ finished_at: string | null;
11062
+ last_error: string | null;
11063
+ lease_until: string | null;
11064
+ max_attempts: number;
11065
+ next_attempt_at: string;
11066
+ order_id: string;
11067
+ reason: string | null;
11068
+ requested_at: string;
11069
+ status: string;
11070
+ updated_at: string;
11071
+ };
11072
+ Insert: {
11073
+ attempts?: number;
11074
+ claimed_at?: string | null;
11075
+ created_at?: string;
11076
+ finished_at?: string | null;
11077
+ last_error?: string | null;
11078
+ lease_until?: string | null;
11079
+ max_attempts?: number;
11080
+ next_attempt_at?: string;
11081
+ order_id: string;
11082
+ reason?: string | null;
11083
+ requested_at?: string;
11084
+ status?: string;
11085
+ updated_at?: string;
11086
+ };
11087
+ Update: {
11088
+ attempts?: number;
11089
+ claimed_at?: string | null;
11090
+ created_at?: string;
11091
+ finished_at?: string | null;
11092
+ last_error?: string | null;
11093
+ lease_until?: string | null;
11094
+ max_attempts?: number;
11095
+ next_attempt_at?: string;
11096
+ order_id?: string;
11097
+ reason?: string | null;
11098
+ requested_at?: string;
11099
+ status?: string;
11100
+ updated_at?: string;
11101
+ };
11102
+ Relationships: [];
11103
+ };
10708
11104
  logistics_order_merges: {
10709
11105
  Row: {
10710
11106
  group_key: string;
@@ -10741,6 +11137,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10741
11137
  };
10742
11138
  Relationships: [];
10743
11139
  };
11140
+ logistics_packing_deviations: {
11141
+ Row: {
11142
+ auto_fixed_at: string | null;
11143
+ created_at: string;
11144
+ dev_key: string;
11145
+ first_seen_at: string;
11146
+ floriday_packing: import("./types").Json;
11147
+ human_reason: string | null;
11148
+ id: string;
11149
+ last_seen_at: string;
11150
+ local_packing: import("./types").Json;
11151
+ needs_human: boolean;
11152
+ order_id: string | null;
11153
+ order_item_id: string | null;
11154
+ order_number: string | null;
11155
+ product_id: string | null;
11156
+ product_name: string | null;
11157
+ resolved_at: string | null;
11158
+ scope: string;
11159
+ trade_item_id: string | null;
11160
+ updated_at: string;
11161
+ };
11162
+ Insert: {
11163
+ auto_fixed_at?: string | null;
11164
+ created_at?: string;
11165
+ dev_key: string;
11166
+ first_seen_at?: string;
11167
+ floriday_packing?: import("./types").Json;
11168
+ human_reason?: string | null;
11169
+ id?: string;
11170
+ last_seen_at?: string;
11171
+ local_packing?: import("./types").Json;
11172
+ needs_human?: boolean;
11173
+ order_id?: string | null;
11174
+ order_item_id?: string | null;
11175
+ order_number?: string | null;
11176
+ product_id?: string | null;
11177
+ product_name?: string | null;
11178
+ resolved_at?: string | null;
11179
+ scope: string;
11180
+ trade_item_id?: string | null;
11181
+ updated_at?: string;
11182
+ };
11183
+ Update: {
11184
+ auto_fixed_at?: string | null;
11185
+ created_at?: string;
11186
+ dev_key?: string;
11187
+ first_seen_at?: string;
11188
+ floriday_packing?: import("./types").Json;
11189
+ human_reason?: string | null;
11190
+ id?: string;
11191
+ last_seen_at?: string;
11192
+ local_packing?: import("./types").Json;
11193
+ needs_human?: boolean;
11194
+ order_id?: string | null;
11195
+ order_item_id?: string | null;
11196
+ order_number?: string | null;
11197
+ product_id?: string | null;
11198
+ product_name?: string | null;
11199
+ resolved_at?: string | null;
11200
+ scope?: string;
11201
+ trade_item_id?: string | null;
11202
+ updated_at?: string;
11203
+ };
11204
+ Relationships: [];
11205
+ };
10744
11206
  logistics_pick_data_requests: {
10745
11207
  Row: {
10746
11208
  actions: import("./types").Json;
@@ -10819,16 +11281,40 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10819
11281
  };
10820
11282
  Relationships: [];
10821
11283
  };
10822
- logistics_plan_queue: {
11284
+ logistics_plan_locks: {
10823
11285
  Row: {
10824
- attempts: number;
10825
- claimed_at: string | null;
10826
- enqueued_at: string;
10827
- error: string | null;
10828
- id: string;
10829
- next_attempt_at: string;
10830
- order_id: string;
10831
- reason: string;
11286
+ created_at: string;
11287
+ lock_key: string;
11288
+ locked_until: string;
11289
+ owner: string | null;
11290
+ updated_at: string;
11291
+ };
11292
+ Insert: {
11293
+ created_at?: string;
11294
+ lock_key: string;
11295
+ locked_until: string;
11296
+ owner?: string | null;
11297
+ updated_at?: string;
11298
+ };
11299
+ Update: {
11300
+ created_at?: string;
11301
+ lock_key?: string;
11302
+ locked_until?: string;
11303
+ owner?: string | null;
11304
+ updated_at?: string;
11305
+ };
11306
+ Relationships: [];
11307
+ };
11308
+ logistics_plan_queue: {
11309
+ Row: {
11310
+ attempts: number;
11311
+ claimed_at: string | null;
11312
+ enqueued_at: string;
11313
+ error: string | null;
11314
+ id: string;
11315
+ next_attempt_at: string;
11316
+ order_id: string;
11317
+ reason: string;
10832
11318
  reason_code: string | null;
10833
11319
  status: string;
10834
11320
  updated_at: string;
@@ -10954,14 +11440,70 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10954
11440
  };
10955
11441
  Relationships: [];
10956
11442
  };
11443
+ logistics_planner_diff_runs: {
11444
+ Row: {
11445
+ after_snapshot: import("./types").Json | null;
11446
+ before_snapshot: import("./types").Json;
11447
+ buffer_id: string | null;
11448
+ carts_after: number | null;
11449
+ carts_before: number | null;
11450
+ compared_at: string | null;
11451
+ created_at: string;
11452
+ differences: import("./types").Json | null;
11453
+ id: string;
11454
+ identical: boolean | null;
11455
+ mode: string;
11456
+ order_id: string;
11457
+ order_ref: string | null;
11458
+ reason: string | null;
11459
+ status: string;
11460
+ };
11461
+ Insert: {
11462
+ after_snapshot?: import("./types").Json | null;
11463
+ before_snapshot?: import("./types").Json;
11464
+ buffer_id?: string | null;
11465
+ carts_after?: number | null;
11466
+ carts_before?: number | null;
11467
+ compared_at?: string | null;
11468
+ created_at?: string;
11469
+ differences?: import("./types").Json | null;
11470
+ id?: string;
11471
+ identical?: boolean | null;
11472
+ mode: string;
11473
+ order_id: string;
11474
+ order_ref?: string | null;
11475
+ reason?: string | null;
11476
+ status?: string;
11477
+ };
11478
+ Update: {
11479
+ after_snapshot?: import("./types").Json | null;
11480
+ before_snapshot?: import("./types").Json;
11481
+ buffer_id?: string | null;
11482
+ carts_after?: number | null;
11483
+ carts_before?: number | null;
11484
+ compared_at?: string | null;
11485
+ created_at?: string;
11486
+ differences?: import("./types").Json | null;
11487
+ id?: string;
11488
+ identical?: boolean | null;
11489
+ mode?: string;
11490
+ order_id?: string;
11491
+ order_ref?: string | null;
11492
+ reason?: string | null;
11493
+ status?: string;
11494
+ };
11495
+ Relationships: [];
11496
+ };
10957
11497
  logistics_rebuffer_state: {
10958
11498
  Row: {
10959
11499
  created_at: string;
10960
11500
  id: boolean;
10961
11501
  last_checked: number;
10962
11502
  last_duration_ms: number;
11503
+ last_mode: string | null;
10963
11504
  last_run_at: string | null;
10964
11505
  last_updated: number;
11506
+ last_would_change: number | null;
10965
11507
  pending: boolean;
10966
11508
  requested_at: string | null;
10967
11509
  updated_at: string;
@@ -10971,8 +11513,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10971
11513
  id?: boolean;
10972
11514
  last_checked?: number;
10973
11515
  last_duration_ms?: number;
11516
+ last_mode?: string | null;
10974
11517
  last_run_at?: string | null;
10975
11518
  last_updated?: number;
11519
+ last_would_change?: number | null;
10976
11520
  pending?: boolean;
10977
11521
  requested_at?: string | null;
10978
11522
  updated_at?: string;
@@ -10982,8 +11526,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10982
11526
  id?: boolean;
10983
11527
  last_checked?: number;
10984
11528
  last_duration_ms?: number;
11529
+ last_mode?: string | null;
10985
11530
  last_run_at?: string | null;
10986
11531
  last_updated?: number;
11532
+ last_would_change?: number | null;
10987
11533
  pending?: boolean;
10988
11534
  requested_at?: string | null;
10989
11535
  updated_at?: string;
@@ -11773,6 +12319,129 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11773
12319
  };
11774
12320
  Relationships: [];
11775
12321
  };
12322
+ logistics_trace_events_archive: {
12323
+ Row: {
12324
+ actor: string | null;
12325
+ attempts: number;
12326
+ calc: import("./types").Json | null;
12327
+ cart_ref: string | null;
12328
+ created_at: string;
12329
+ db_action: string | null;
12330
+ db_new: import("./types").Json | null;
12331
+ db_old: import("./types").Json | null;
12332
+ db_record: string | null;
12333
+ db_table: string | null;
12334
+ decision: string | null;
12335
+ duration_ms: number | null;
12336
+ error: string | null;
12337
+ error_class: string | null;
12338
+ external_action: string | null;
12339
+ external_ref: string | null;
12340
+ external_response: import("./types").Json | null;
12341
+ external_status: string | null;
12342
+ external_system: string | null;
12343
+ id: string;
12344
+ input: import("./types").Json | null;
12345
+ next_attempt_at: string | null;
12346
+ next_step: string | null;
12347
+ node_id: string | null;
12348
+ order_ref: string | null;
12349
+ order_source: string | null;
12350
+ output: import("./types").Json | null;
12351
+ phase: string;
12352
+ reads: import("./types").Json | null;
12353
+ reason: string | null;
12354
+ rule: string | null;
12355
+ slip_ref: string | null;
12356
+ status: string;
12357
+ step: string;
12358
+ superseded_at: string;
12359
+ superseded_reason: string | null;
12360
+ trace_id: string;
12361
+ values_used: import("./types").Json | null;
12362
+ };
12363
+ Insert: {
12364
+ actor?: string | null;
12365
+ attempts?: number;
12366
+ calc?: import("./types").Json | null;
12367
+ cart_ref?: string | null;
12368
+ created_at?: string;
12369
+ db_action?: string | null;
12370
+ db_new?: import("./types").Json | null;
12371
+ db_old?: import("./types").Json | null;
12372
+ db_record?: string | null;
12373
+ db_table?: string | null;
12374
+ decision?: string | null;
12375
+ duration_ms?: number | null;
12376
+ error?: string | null;
12377
+ error_class?: string | null;
12378
+ external_action?: string | null;
12379
+ external_ref?: string | null;
12380
+ external_response?: import("./types").Json | null;
12381
+ external_status?: string | null;
12382
+ external_system?: string | null;
12383
+ id?: string;
12384
+ input?: import("./types").Json | null;
12385
+ next_attempt_at?: string | null;
12386
+ next_step?: string | null;
12387
+ node_id?: string | null;
12388
+ order_ref?: string | null;
12389
+ order_source?: string | null;
12390
+ output?: import("./types").Json | null;
12391
+ phase: string;
12392
+ reads?: import("./types").Json | null;
12393
+ reason?: string | null;
12394
+ rule?: string | null;
12395
+ slip_ref?: string | null;
12396
+ status: string;
12397
+ step: string;
12398
+ superseded_at?: string;
12399
+ superseded_reason?: string | null;
12400
+ trace_id?: string;
12401
+ values_used?: import("./types").Json | null;
12402
+ };
12403
+ Update: {
12404
+ actor?: string | null;
12405
+ attempts?: number;
12406
+ calc?: import("./types").Json | null;
12407
+ cart_ref?: string | null;
12408
+ created_at?: string;
12409
+ db_action?: string | null;
12410
+ db_new?: import("./types").Json | null;
12411
+ db_old?: import("./types").Json | null;
12412
+ db_record?: string | null;
12413
+ db_table?: string | null;
12414
+ decision?: string | null;
12415
+ duration_ms?: number | null;
12416
+ error?: string | null;
12417
+ error_class?: string | null;
12418
+ external_action?: string | null;
12419
+ external_ref?: string | null;
12420
+ external_response?: import("./types").Json | null;
12421
+ external_status?: string | null;
12422
+ external_system?: string | null;
12423
+ id?: string;
12424
+ input?: import("./types").Json | null;
12425
+ next_attempt_at?: string | null;
12426
+ next_step?: string | null;
12427
+ node_id?: string | null;
12428
+ order_ref?: string | null;
12429
+ order_source?: string | null;
12430
+ output?: import("./types").Json | null;
12431
+ phase?: string;
12432
+ reads?: import("./types").Json | null;
12433
+ reason?: string | null;
12434
+ rule?: string | null;
12435
+ slip_ref?: string | null;
12436
+ status?: string;
12437
+ step?: string;
12438
+ superseded_at?: string;
12439
+ superseded_reason?: string | null;
12440
+ trace_id?: string;
12441
+ values_used?: import("./types").Json | null;
12442
+ };
12443
+ Relationships: [];
12444
+ };
11776
12445
  logistics_variables: {
11777
12446
  Row: {
11778
12447
  created_at: string;
@@ -11920,6 +12589,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11920
12589
  has_attachments: boolean;
11921
12590
  id: string;
11922
12591
  message_id: string | null;
12592
+ preview: string | null;
11923
12593
  profile_id: string | null;
11924
12594
  raw_size: number | null;
11925
12595
  received_at: string | null;
@@ -11943,6 +12613,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11943
12613
  has_attachments?: boolean;
11944
12614
  id?: string;
11945
12615
  message_id?: string | null;
12616
+ preview?: string | null;
11946
12617
  profile_id?: string | null;
11947
12618
  raw_size?: number | null;
11948
12619
  received_at?: string | null;
@@ -11966,6 +12637,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11966
12637
  has_attachments?: boolean;
11967
12638
  id?: string;
11968
12639
  message_id?: string | null;
12640
+ preview?: string | null;
11969
12641
  profile_id?: string | null;
11970
12642
  raw_size?: number | null;
11971
12643
  received_at?: string | null;
@@ -11997,6 +12669,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11997
12669
  };
11998
12670
  mailbox_order_proposals: {
11999
12671
  Row: {
12672
+ ai_ok: boolean | null;
12000
12673
  ai_validation: import("./types").Json | null;
12001
12674
  confidence: number | null;
12002
12675
  created_at: string;
@@ -12014,6 +12687,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12014
12687
  updated_at: string;
12015
12688
  };
12016
12689
  Insert: {
12690
+ ai_ok?: boolean | null;
12017
12691
  ai_validation?: import("./types").Json | null;
12018
12692
  confidence?: number | null;
12019
12693
  created_at?: string;
@@ -12031,6 +12705,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12031
12705
  updated_at?: string;
12032
12706
  };
12033
12707
  Update: {
12708
+ ai_ok?: boolean | null;
12034
12709
  ai_validation?: import("./types").Json | null;
12035
12710
  confidence?: number | null;
12036
12711
  created_at?: string;
@@ -12850,6 +13525,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12850
13525
  };
12851
13526
  Relationships: [];
12852
13527
  };
13528
+ monteur_contracten: {
13529
+ Row: {
13530
+ contract_type: string;
13531
+ created_at: string;
13532
+ days_per_week: number;
13533
+ hours_per_week: number;
13534
+ id: string;
13535
+ updated_at: string;
13536
+ user_id: string;
13537
+ vacation_day_hours: number;
13538
+ vacation_days_per_year: number;
13539
+ };
13540
+ Insert: {
13541
+ contract_type?: string;
13542
+ created_at?: string;
13543
+ days_per_week?: number;
13544
+ hours_per_week?: number;
13545
+ id?: string;
13546
+ updated_at?: string;
13547
+ user_id: string;
13548
+ vacation_day_hours?: number;
13549
+ vacation_days_per_year?: number;
13550
+ };
13551
+ Update: {
13552
+ contract_type?: string;
13553
+ created_at?: string;
13554
+ days_per_week?: number;
13555
+ hours_per_week?: number;
13556
+ id?: string;
13557
+ updated_at?: string;
13558
+ user_id?: string;
13559
+ vacation_day_hours?: number;
13560
+ vacation_days_per_year?: number;
13561
+ };
13562
+ Relationships: [];
13563
+ };
12853
13564
  nmbrs_component_mapping: {
12854
13565
  Row: {
12855
13566
  created_at: string;
@@ -13329,6 +14040,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13329
14040
  id: string;
13330
14041
  items: import("./types").Json;
13331
14042
  notes: string | null;
14043
+ order_creation_error: string | null;
14044
+ order_creation_failed_at: string | null;
14045
+ order_id: string | null;
13332
14046
  order_number: string | null;
13333
14047
  recipient_id: string;
13334
14048
  total_amount: number;
@@ -13343,6 +14057,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13343
14057
  id?: string;
13344
14058
  items?: import("./types").Json;
13345
14059
  notes?: string | null;
14060
+ order_creation_error?: string | null;
14061
+ order_creation_failed_at?: string | null;
14062
+ order_id?: string | null;
13346
14063
  order_number?: string | null;
13347
14064
  recipient_id: string;
13348
14065
  total_amount?: number;
@@ -13357,6 +14074,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13357
14074
  id?: string;
13358
14075
  items?: import("./types").Json;
13359
14076
  notes?: string | null;
14077
+ order_creation_error?: string | null;
14078
+ order_creation_failed_at?: string | null;
14079
+ order_id?: string | null;
13360
14080
  order_number?: string | null;
13361
14081
  recipient_id?: string;
13362
14082
  total_amount?: number;
@@ -13373,6 +14093,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13373
14093
  isOneToOne: false;
13374
14094
  referencedRelation: "customers";
13375
14095
  referencedColumns: ["id"];
14096
+ }, {
14097
+ foreignKeyName: "offer_orders_order_id_fkey";
14098
+ columns: ["order_id"];
14099
+ isOneToOne: false;
14100
+ referencedRelation: "orders";
14101
+ referencedColumns: ["id"];
13376
14102
  }, {
13377
14103
  foreignKeyName: "offer_orders_recipient_id_fkey";
13378
14104
  columns: ["recipient_id"];
@@ -13513,6 +14239,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13513
14239
  };
13514
14240
  Relationships: [];
13515
14241
  };
14242
+ order_block_notifications: {
14243
+ Row: {
14244
+ id: string;
14245
+ notified_at: string;
14246
+ order_id: string;
14247
+ reason: string | null;
14248
+ reason_key: string;
14249
+ };
14250
+ Insert: {
14251
+ id?: string;
14252
+ notified_at?: string;
14253
+ order_id: string;
14254
+ reason?: string | null;
14255
+ reason_key: string;
14256
+ };
14257
+ Update: {
14258
+ id?: string;
14259
+ notified_at?: string;
14260
+ order_id?: string;
14261
+ reason?: string | null;
14262
+ reason_key?: string;
14263
+ };
14264
+ Relationships: [];
14265
+ };
13516
14266
  order_buffers: {
13517
14267
  Row: {
13518
14268
  buffer_key: string;
@@ -13982,10 +14732,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13982
14732
  id: string;
13983
14733
  layers_per_cart: number | null;
13984
14734
  order_id: string;
14735
+ packing_locked_at: string | null;
14736
+ packing_locked_by: string | null;
13985
14737
  plants_per_crate: number | null;
13986
14738
  product_id: string | null;
13987
14739
  product_name: string;
13988
14740
  quantity: number;
14741
+ source_line_key: string | null;
13989
14742
  unit: string;
13990
14743
  unit_price: number | null;
13991
14744
  };
@@ -13995,10 +14748,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13995
14748
  id?: string;
13996
14749
  layers_per_cart?: number | null;
13997
14750
  order_id: string;
14751
+ packing_locked_at?: string | null;
14752
+ packing_locked_by?: string | null;
13998
14753
  plants_per_crate?: number | null;
13999
14754
  product_id?: string | null;
14000
14755
  product_name: string;
14001
14756
  quantity?: number;
14757
+ source_line_key?: string | null;
14002
14758
  unit?: string;
14003
14759
  unit_price?: number | null;
14004
14760
  };
@@ -14008,10 +14764,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14008
14764
  id?: string;
14009
14765
  layers_per_cart?: number | null;
14010
14766
  order_id?: string;
14767
+ packing_locked_at?: string | null;
14768
+ packing_locked_by?: string | null;
14011
14769
  plants_per_crate?: number | null;
14012
14770
  product_id?: string | null;
14013
14771
  product_name?: string;
14014
14772
  quantity?: number;
14773
+ source_line_key?: string | null;
14015
14774
  unit?: string;
14016
14775
  unit_price?: number | null;
14017
14776
  };
@@ -15520,38 +16279,227 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15520
16279
  referencedColumns: ["id"];
15521
16280
  }];
15522
16281
  };
15523
- price_list_rows: {
16282
+ planning_monteur_day_locations: {
15524
16283
  Row: {
15525
- action: string;
15526
16284
  created_at: string;
16285
+ day: string;
16286
+ end_at: string;
15527
16287
  id: string;
15528
- message: string | null;
15529
- parsed: import("./types").Json;
15530
- price_list_id: string;
15531
- raw: import("./types").Json;
15532
- row_number: number;
15533
- supplier_product_id: string | null;
16288
+ monteur_id: string;
16289
+ start_from: string;
16290
+ updated_at: string;
15534
16291
  };
15535
16292
  Insert: {
15536
- action?: string;
15537
16293
  created_at?: string;
16294
+ day: string;
16295
+ end_at?: string;
15538
16296
  id?: string;
15539
- message?: string | null;
15540
- parsed?: import("./types").Json;
15541
- price_list_id: string;
15542
- raw?: import("./types").Json;
15543
- row_number: number;
15544
- supplier_product_id?: string | null;
16297
+ monteur_id: string;
16298
+ start_from?: string;
16299
+ updated_at?: string;
15545
16300
  };
15546
16301
  Update: {
15547
- action?: string;
15548
16302
  created_at?: string;
16303
+ day?: string;
16304
+ end_at?: string;
15549
16305
  id?: string;
15550
- message?: string | null;
15551
- parsed?: import("./types").Json;
15552
- price_list_id?: string;
15553
- raw?: import("./types").Json;
15554
- row_number?: number;
16306
+ monteur_id?: string;
16307
+ start_from?: string;
16308
+ updated_at?: string;
16309
+ };
16310
+ Relationships: [];
16311
+ };
16312
+ planning_monteur_locations: {
16313
+ Row: {
16314
+ created_at: string;
16315
+ default_end: string;
16316
+ default_start: string;
16317
+ end_address: string | null;
16318
+ home_address: string | null;
16319
+ id: string;
16320
+ monteur_id: string;
16321
+ start_address: string | null;
16322
+ updated_at: string;
16323
+ };
16324
+ Insert: {
16325
+ created_at?: string;
16326
+ default_end?: string;
16327
+ default_start?: string;
16328
+ end_address?: string | null;
16329
+ home_address?: string | null;
16330
+ id?: string;
16331
+ monteur_id: string;
16332
+ start_address?: string | null;
16333
+ updated_at?: string;
16334
+ };
16335
+ Update: {
16336
+ created_at?: string;
16337
+ default_end?: string;
16338
+ default_start?: string;
16339
+ end_address?: string | null;
16340
+ home_address?: string | null;
16341
+ id?: string;
16342
+ monteur_id?: string;
16343
+ start_address?: string | null;
16344
+ updated_at?: string;
16345
+ };
16346
+ Relationships: [];
16347
+ };
16348
+ planning_settings: {
16349
+ Row: {
16350
+ company_address: string | null;
16351
+ created_at: string;
16352
+ id: string;
16353
+ singleton: boolean;
16354
+ updated_at: string;
16355
+ };
16356
+ Insert: {
16357
+ company_address?: string | null;
16358
+ created_at?: string;
16359
+ id?: string;
16360
+ singleton?: boolean;
16361
+ updated_at?: string;
16362
+ };
16363
+ Update: {
16364
+ company_address?: string | null;
16365
+ created_at?: string;
16366
+ id?: string;
16367
+ singleton?: boolean;
16368
+ updated_at?: string;
16369
+ };
16370
+ Relationships: [];
16371
+ };
16372
+ planning_travel_legs: {
16373
+ Row: {
16374
+ after_min: number;
16375
+ after_reason: string | null;
16376
+ after_status: string;
16377
+ after_to_address: string | null;
16378
+ before_from_address: string | null;
16379
+ before_min: number;
16380
+ before_reason: string | null;
16381
+ before_status: string;
16382
+ computed_at: string;
16383
+ computed_end_at: string | null;
16384
+ computed_start_at: string | null;
16385
+ created_at: string;
16386
+ id: string;
16387
+ monteur_id: string;
16388
+ planning_item_id: string;
16389
+ shared_after_item_id: string | null;
16390
+ shared_before_item_id: string | null;
16391
+ updated_at: string;
16392
+ };
16393
+ Insert: {
16394
+ after_min?: number;
16395
+ after_reason?: string | null;
16396
+ after_status?: string;
16397
+ after_to_address?: string | null;
16398
+ before_from_address?: string | null;
16399
+ before_min?: number;
16400
+ before_reason?: string | null;
16401
+ before_status?: string;
16402
+ computed_at?: string;
16403
+ computed_end_at?: string | null;
16404
+ computed_start_at?: string | null;
16405
+ created_at?: string;
16406
+ id?: string;
16407
+ monteur_id: string;
16408
+ planning_item_id: string;
16409
+ shared_after_item_id?: string | null;
16410
+ shared_before_item_id?: string | null;
16411
+ updated_at?: string;
16412
+ };
16413
+ Update: {
16414
+ after_min?: number;
16415
+ after_reason?: string | null;
16416
+ after_status?: string;
16417
+ after_to_address?: string | null;
16418
+ before_from_address?: string | null;
16419
+ before_min?: number;
16420
+ before_reason?: string | null;
16421
+ before_status?: string;
16422
+ computed_at?: string;
16423
+ computed_end_at?: string | null;
16424
+ computed_start_at?: string | null;
16425
+ created_at?: string;
16426
+ id?: string;
16427
+ monteur_id?: string;
16428
+ planning_item_id?: string;
16429
+ shared_after_item_id?: string | null;
16430
+ shared_before_item_id?: string | null;
16431
+ updated_at?: string;
16432
+ };
16433
+ Relationships: [{
16434
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16435
+ columns: ["planning_item_id"];
16436
+ isOneToOne: false;
16437
+ referencedRelation: "planning_items";
16438
+ referencedColumns: ["id"];
16439
+ }, {
16440
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16441
+ columns: ["planning_item_id"];
16442
+ isOneToOne: false;
16443
+ referencedRelation: "planning_overview";
16444
+ referencedColumns: ["id"];
16445
+ }, {
16446
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16447
+ columns: ["shared_after_item_id"];
16448
+ isOneToOne: false;
16449
+ referencedRelation: "planning_items";
16450
+ referencedColumns: ["id"];
16451
+ }, {
16452
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16453
+ columns: ["shared_after_item_id"];
16454
+ isOneToOne: false;
16455
+ referencedRelation: "planning_overview";
16456
+ referencedColumns: ["id"];
16457
+ }, {
16458
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16459
+ columns: ["shared_before_item_id"];
16460
+ isOneToOne: false;
16461
+ referencedRelation: "planning_items";
16462
+ referencedColumns: ["id"];
16463
+ }, {
16464
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16465
+ columns: ["shared_before_item_id"];
16466
+ isOneToOne: false;
16467
+ referencedRelation: "planning_overview";
16468
+ referencedColumns: ["id"];
16469
+ }];
16470
+ };
16471
+ price_list_rows: {
16472
+ Row: {
16473
+ action: string;
16474
+ created_at: string;
16475
+ id: string;
16476
+ message: string | null;
16477
+ parsed: import("./types").Json;
16478
+ price_list_id: string;
16479
+ raw: import("./types").Json;
16480
+ row_number: number;
16481
+ supplier_product_id: string | null;
16482
+ };
16483
+ Insert: {
16484
+ action?: string;
16485
+ created_at?: string;
16486
+ id?: string;
16487
+ message?: string | null;
16488
+ parsed?: import("./types").Json;
16489
+ price_list_id: string;
16490
+ raw?: import("./types").Json;
16491
+ row_number: number;
16492
+ supplier_product_id?: string | null;
16493
+ };
16494
+ Update: {
16495
+ action?: string;
16496
+ created_at?: string;
16497
+ id?: string;
16498
+ message?: string | null;
16499
+ parsed?: import("./types").Json;
16500
+ price_list_id?: string;
16501
+ raw?: import("./types").Json;
16502
+ row_number?: number;
15555
16503
  supplier_product_id?: string | null;
15556
16504
  };
15557
16505
  Relationships: [{
@@ -16692,6 +17640,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16692
17640
  };
16693
17641
  product_load_settings: {
16694
17642
  Row: {
17643
+ build: import("./types").Json | null;
17644
+ build_status: string;
16695
17645
  created_at: string;
16696
17646
  id: string;
16697
17647
  is_package: boolean;
@@ -16709,6 +17659,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16709
17659
  updated_at: string;
16710
17660
  };
16711
17661
  Insert: {
17662
+ build?: import("./types").Json | null;
17663
+ build_status?: string;
16712
17664
  created_at?: string;
16713
17665
  id?: string;
16714
17666
  is_package?: boolean;
@@ -16726,6 +17678,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16726
17678
  updated_at?: string;
16727
17679
  };
16728
17680
  Update: {
17681
+ build?: import("./types").Json | null;
17682
+ build_status?: string;
16729
17683
  created_at?: string;
16730
17684
  id?: string;
16731
17685
  is_package?: boolean;
@@ -16795,6 +17749,108 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16795
17749
  };
16796
17750
  Relationships: [];
16797
17751
  };
17752
+ product_suppliers: {
17753
+ Row: {
17754
+ created_at: string;
17755
+ id: string;
17756
+ is_preferred: boolean;
17757
+ lead_time_days: number | null;
17758
+ min_order_quantity: number | null;
17759
+ notes: string | null;
17760
+ product_id: string;
17761
+ purchase_price_cents: number | null;
17762
+ supplier_article_number: string | null;
17763
+ supplier_id: string;
17764
+ updated_at: string;
17765
+ };
17766
+ Insert: {
17767
+ created_at?: string;
17768
+ id?: string;
17769
+ is_preferred?: boolean;
17770
+ lead_time_days?: number | null;
17771
+ min_order_quantity?: number | null;
17772
+ notes?: string | null;
17773
+ product_id: string;
17774
+ purchase_price_cents?: number | null;
17775
+ supplier_article_number?: string | null;
17776
+ supplier_id: string;
17777
+ updated_at?: string;
17778
+ };
17779
+ Update: {
17780
+ created_at?: string;
17781
+ id?: string;
17782
+ is_preferred?: boolean;
17783
+ lead_time_days?: number | null;
17784
+ min_order_quantity?: number | null;
17785
+ notes?: string | null;
17786
+ product_id?: string;
17787
+ purchase_price_cents?: number | null;
17788
+ supplier_article_number?: string | null;
17789
+ supplier_id?: string;
17790
+ updated_at?: string;
17791
+ };
17792
+ Relationships: [{
17793
+ foreignKeyName: "product_suppliers_product_id_fkey";
17794
+ columns: ["product_id"];
17795
+ isOneToOne: false;
17796
+ referencedRelation: "logistics_product_dimensions";
17797
+ referencedColumns: ["product_id"];
17798
+ }, {
17799
+ foreignKeyName: "product_suppliers_product_id_fkey";
17800
+ columns: ["product_id"];
17801
+ isOneToOne: false;
17802
+ referencedRelation: "products";
17803
+ referencedColumns: ["id"];
17804
+ }, {
17805
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17806
+ columns: ["supplier_id"];
17807
+ isOneToOne: false;
17808
+ referencedRelation: "suppliers";
17809
+ referencedColumns: ["id"];
17810
+ }];
17811
+ };
17812
+ product_tray_stickers: {
17813
+ Row: {
17814
+ bestand_url: string;
17815
+ bestandsgrootte: number | null;
17816
+ bestandsnaam: string | null;
17817
+ bestandspad: string | null;
17818
+ created_at: string;
17819
+ product_id: string;
17820
+ updated_at: string;
17821
+ };
17822
+ Insert: {
17823
+ bestand_url: string;
17824
+ bestandsgrootte?: number | null;
17825
+ bestandsnaam?: string | null;
17826
+ bestandspad?: string | null;
17827
+ created_at?: string;
17828
+ product_id: string;
17829
+ updated_at?: string;
17830
+ };
17831
+ Update: {
17832
+ bestand_url?: string;
17833
+ bestandsgrootte?: number | null;
17834
+ bestandsnaam?: string | null;
17835
+ bestandspad?: string | null;
17836
+ created_at?: string;
17837
+ product_id?: string;
17838
+ updated_at?: string;
17839
+ };
17840
+ Relationships: [{
17841
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17842
+ columns: ["product_id"];
17843
+ isOneToOne: true;
17844
+ referencedRelation: "logistics_product_dimensions";
17845
+ referencedColumns: ["product_id"];
17846
+ }, {
17847
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17848
+ columns: ["product_id"];
17849
+ isOneToOne: true;
17850
+ referencedRelation: "products";
17851
+ referencedColumns: ["id"];
17852
+ }];
17853
+ };
16798
17854
  products: {
16799
17855
  Row: {
16800
17856
  article_number: string | null;
@@ -16803,6 +17859,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16803
17859
  crates_per_layer: number;
16804
17860
  created_at: string;
16805
17861
  custom_fields: import("./types").Json;
17862
+ floriday_packing_confirmed_at: string | null;
17863
+ floriday_packing_source: string | null;
16806
17864
  floriday_trade_item_id: string | null;
16807
17865
  fust_type_id: string | null;
16808
17866
  id: string;
@@ -16831,6 +17889,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16831
17889
  crates_per_layer?: number;
16832
17890
  created_at?: string;
16833
17891
  custom_fields?: import("./types").Json;
17892
+ floriday_packing_confirmed_at?: string | null;
17893
+ floriday_packing_source?: string | null;
16834
17894
  floriday_trade_item_id?: string | null;
16835
17895
  fust_type_id?: string | null;
16836
17896
  id?: string;
@@ -16859,6 +17919,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16859
17919
  crates_per_layer?: number;
16860
17920
  created_at?: string;
16861
17921
  custom_fields?: import("./types").Json;
17922
+ floriday_packing_confirmed_at?: string | null;
17923
+ floriday_packing_source?: string | null;
16862
17924
  floriday_trade_item_id?: string | null;
16863
17925
  fust_type_id?: string | null;
16864
17926
  id?: string;
@@ -16958,6 +18020,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16958
18020
  id: string;
16959
18021
  is_superadmin: boolean;
16960
18022
  notification_preferences: import("./types").Json;
18023
+ phone: string | null;
16961
18024
  tenant_id: string | null;
16962
18025
  updated_at: string;
16963
18026
  };
@@ -16970,6 +18033,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16970
18033
  id: string;
16971
18034
  is_superadmin?: boolean;
16972
18035
  notification_preferences?: import("./types").Json;
18036
+ phone?: string | null;
16973
18037
  tenant_id?: string | null;
16974
18038
  updated_at?: string;
16975
18039
  };
@@ -16982,6 +18046,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16982
18046
  id?: string;
16983
18047
  is_superadmin?: boolean;
16984
18048
  notification_preferences?: import("./types").Json;
18049
+ phone?: string | null;
16985
18050
  tenant_id?: string | null;
16986
18051
  updated_at?: string;
16987
18052
  };
@@ -18725,40 +19790,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18725
19790
  Row: {
18726
19791
  approved_at: string | null;
18727
19792
  approved_by: string | null;
19793
+ contract_hours: number;
18728
19794
  created_at: string;
18729
19795
  employee_id: string;
18730
19796
  id: string;
18731
19797
  locked: boolean;
19798
+ monteur_toelichting: string | null;
18732
19799
  notes: string | null;
19800
+ planned_hours: number;
18733
19801
  status: string;
18734
19802
  submitted_at: string | null;
18735
19803
  updated_at: string;
19804
+ variance_hours: number;
18736
19805
  week_start: string;
18737
19806
  };
18738
19807
  Insert: {
18739
19808
  approved_at?: string | null;
18740
19809
  approved_by?: string | null;
19810
+ contract_hours?: number;
18741
19811
  created_at?: string;
18742
19812
  employee_id: string;
18743
19813
  id?: string;
18744
19814
  locked?: boolean;
19815
+ monteur_toelichting?: string | null;
18745
19816
  notes?: string | null;
19817
+ planned_hours?: number;
18746
19818
  status?: string;
18747
19819
  submitted_at?: string | null;
18748
19820
  updated_at?: string;
19821
+ variance_hours?: number;
18749
19822
  week_start: string;
18750
19823
  };
18751
19824
  Update: {
18752
19825
  approved_at?: string | null;
18753
19826
  approved_by?: string | null;
19827
+ contract_hours?: number;
18754
19828
  created_at?: string;
18755
19829
  employee_id?: string;
18756
19830
  id?: string;
18757
19831
  locked?: boolean;
19832
+ monteur_toelichting?: string | null;
18758
19833
  notes?: string | null;
19834
+ planned_hours?: number;
18759
19835
  status?: string;
18760
19836
  submitted_at?: string | null;
18761
19837
  updated_at?: string;
19838
+ variance_hours?: number;
18762
19839
  week_start?: string;
18763
19840
  };
18764
19841
  Relationships: [{
@@ -20045,16 +21122,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20045
21122
  Row: {
20046
21123
  active_environment: string;
20047
21124
  id: number;
21125
+ public_base_url: string | null;
20048
21126
  updated_at: string;
20049
21127
  };
20050
21128
  Insert: {
20051
21129
  active_environment?: string;
20052
21130
  id?: number;
21131
+ public_base_url?: string | null;
20053
21132
  updated_at?: string;
20054
21133
  };
20055
21134
  Update: {
20056
21135
  active_environment?: string;
20057
21136
  id?: number;
21137
+ public_base_url?: string | null;
20058
21138
  updated_at?: string;
20059
21139
  };
20060
21140
  Relationships: [];
@@ -20092,6 +21172,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20092
21172
  referencedColumns: ["id"];
20093
21173
  }];
20094
21174
  };
21175
+ uren_beschikbare_dagen: {
21176
+ Row: {
21177
+ bron: string;
21178
+ created_at: string;
21179
+ datum: string;
21180
+ eind_tijd: string | null;
21181
+ half_hour_slots: number[];
21182
+ id: string;
21183
+ monteur_id: string;
21184
+ start_tijd: string | null;
21185
+ updated_at: string;
21186
+ uren: number;
21187
+ };
21188
+ Insert: {
21189
+ bron?: string;
21190
+ created_at?: string;
21191
+ datum: string;
21192
+ eind_tijd?: string | null;
21193
+ half_hour_slots?: number[];
21194
+ id?: string;
21195
+ monteur_id: string;
21196
+ start_tijd?: string | null;
21197
+ updated_at?: string;
21198
+ uren?: number;
21199
+ };
21200
+ Update: {
21201
+ bron?: string;
21202
+ created_at?: string;
21203
+ datum?: string;
21204
+ eind_tijd?: string | null;
21205
+ half_hour_slots?: number[];
21206
+ id?: string;
21207
+ monteur_id?: string;
21208
+ start_tijd?: string | null;
21209
+ updated_at?: string;
21210
+ uren?: number;
21211
+ };
21212
+ Relationships: [];
21213
+ };
20095
21214
  uren_cao_profiles: {
20096
21215
  Row: {
20097
21216
  break_minutes: number | null;
@@ -20230,30 +21349,159 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20230
21349
  };
20231
21350
  Relationships: [];
20232
21351
  };
20233
- uren_settings: {
21352
+ uren_maandafsluitingen: {
20234
21353
  Row: {
20235
- break_minutes: number;
21354
+ afgesloten_at: string | null;
21355
+ afgesloten_door: string | null;
21356
+ contract_minuten: number;
21357
+ correctie_reden: string | null;
20236
21358
  created_at: string;
20237
- daily_threshold_hours: number;
20238
- id: boolean;
20239
- include_travel: boolean;
20240
- min_occupancy_monteurs: number;
20241
- ov02_percentage: number;
20242
- ov03_percentage: number;
21359
+ gecorrigeerd_at: string | null;
21360
+ gecorrigeerd_door: string | null;
21361
+ gewerkte_minuten: number;
21362
+ id: string;
21363
+ maand: string;
21364
+ min_minuten: number;
21365
+ monteur_id: string;
21366
+ netto_verschil_minuten: number;
21367
+ normaal_uitbetaald_minuten: number;
21368
+ omgezet_vakantie_minuten: number;
21369
+ overdracht_vorige_minuten: number;
21370
+ overuren_minuten: number;
21371
+ plus_minuten: number;
21372
+ rest_overuren_minuten: number;
21373
+ status: string;
21374
+ totaal_uitbetaald_minuten: number;
20243
21375
  updated_at: string;
20244
- weekly_threshold_hours: number;
20245
- workday_end: string;
20246
- workday_start: string;
21376
+ vakantie_uren_bijgeschreven: number;
20247
21377
  };
20248
21378
  Insert: {
20249
- break_minutes?: number;
21379
+ afgesloten_at?: string | null;
21380
+ afgesloten_door?: string | null;
21381
+ contract_minuten?: number;
21382
+ correctie_reden?: string | null;
20250
21383
  created_at?: string;
20251
- daily_threshold_hours?: number;
20252
- id?: boolean;
20253
- include_travel?: boolean;
20254
- min_occupancy_monteurs?: number;
20255
- ov02_percentage?: number;
20256
- ov03_percentage?: number;
21384
+ gecorrigeerd_at?: string | null;
21385
+ gecorrigeerd_door?: string | null;
21386
+ gewerkte_minuten?: number;
21387
+ id?: string;
21388
+ maand: string;
21389
+ min_minuten?: number;
21390
+ monteur_id: string;
21391
+ netto_verschil_minuten?: number;
21392
+ normaal_uitbetaald_minuten?: number;
21393
+ omgezet_vakantie_minuten?: number;
21394
+ overdracht_vorige_minuten?: number;
21395
+ overuren_minuten?: number;
21396
+ plus_minuten?: number;
21397
+ rest_overuren_minuten?: number;
21398
+ status?: string;
21399
+ totaal_uitbetaald_minuten?: number;
21400
+ updated_at?: string;
21401
+ vakantie_uren_bijgeschreven?: number;
21402
+ };
21403
+ Update: {
21404
+ afgesloten_at?: string | null;
21405
+ afgesloten_door?: string | null;
21406
+ contract_minuten?: number;
21407
+ correctie_reden?: string | null;
21408
+ created_at?: string;
21409
+ gecorrigeerd_at?: string | null;
21410
+ gecorrigeerd_door?: string | null;
21411
+ gewerkte_minuten?: number;
21412
+ id?: string;
21413
+ maand?: string;
21414
+ min_minuten?: number;
21415
+ monteur_id?: string;
21416
+ netto_verschil_minuten?: number;
21417
+ normaal_uitbetaald_minuten?: number;
21418
+ omgezet_vakantie_minuten?: number;
21419
+ overdracht_vorige_minuten?: number;
21420
+ overuren_minuten?: number;
21421
+ plus_minuten?: number;
21422
+ rest_overuren_minuten?: number;
21423
+ status?: string;
21424
+ totaal_uitbetaald_minuten?: number;
21425
+ updated_at?: string;
21426
+ vakantie_uren_bijgeschreven?: number;
21427
+ };
21428
+ Relationships: [];
21429
+ };
21430
+ uren_overuren_verklaringen: {
21431
+ Row: {
21432
+ beoordeeld_door: string | null;
21433
+ beoordeeld_op: string | null;
21434
+ created_at: string;
21435
+ datum: string;
21436
+ eind_tijd: string | null;
21437
+ id: string;
21438
+ ingediend_at: string;
21439
+ monteur_id: string;
21440
+ overuren: number;
21441
+ reden_afkeur: string | null;
21442
+ start_tijd: string | null;
21443
+ status: string;
21444
+ toelichting: string;
21445
+ updated_at: string;
21446
+ };
21447
+ Insert: {
21448
+ beoordeeld_door?: string | null;
21449
+ beoordeeld_op?: string | null;
21450
+ created_at?: string;
21451
+ datum: string;
21452
+ eind_tijd?: string | null;
21453
+ id?: string;
21454
+ ingediend_at?: string;
21455
+ monteur_id: string;
21456
+ overuren: number;
21457
+ reden_afkeur?: string | null;
21458
+ start_tijd?: string | null;
21459
+ status?: string;
21460
+ toelichting: string;
21461
+ updated_at?: string;
21462
+ };
21463
+ Update: {
21464
+ beoordeeld_door?: string | null;
21465
+ beoordeeld_op?: string | null;
21466
+ created_at?: string;
21467
+ datum?: string;
21468
+ eind_tijd?: string | null;
21469
+ id?: string;
21470
+ ingediend_at?: string;
21471
+ monteur_id?: string;
21472
+ overuren?: number;
21473
+ reden_afkeur?: string | null;
21474
+ start_tijd?: string | null;
21475
+ status?: string;
21476
+ toelichting?: string;
21477
+ updated_at?: string;
21478
+ };
21479
+ Relationships: [];
21480
+ };
21481
+ uren_settings: {
21482
+ Row: {
21483
+ break_minutes: number;
21484
+ created_at: string;
21485
+ daily_threshold_hours: number;
21486
+ id: boolean;
21487
+ include_travel: boolean;
21488
+ min_occupancy_monteurs: number;
21489
+ ov02_percentage: number;
21490
+ ov03_percentage: number;
21491
+ updated_at: string;
21492
+ weekly_threshold_hours: number;
21493
+ workday_end: string;
21494
+ workday_start: string;
21495
+ };
21496
+ Insert: {
21497
+ break_minutes?: number;
21498
+ created_at?: string;
21499
+ daily_threshold_hours?: number;
21500
+ id?: boolean;
21501
+ include_travel?: boolean;
21502
+ min_occupancy_monteurs?: number;
21503
+ ov02_percentage?: number;
21504
+ ov03_percentage?: number;
20257
21505
  updated_at?: string;
20258
21506
  weekly_threshold_hours?: number;
20259
21507
  workday_end?: string;
@@ -20275,6 +21523,75 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20275
21523
  };
20276
21524
  Relationships: [];
20277
21525
  };
21526
+ uren_standaardweek: {
21527
+ Row: {
21528
+ created_at: string;
21529
+ eind_slot: number;
21530
+ id: string;
21531
+ monteur_id: string;
21532
+ start_slot: number;
21533
+ updated_at: string;
21534
+ weekdag: number;
21535
+ };
21536
+ Insert: {
21537
+ created_at?: string;
21538
+ eind_slot: number;
21539
+ id?: string;
21540
+ monteur_id: string;
21541
+ start_slot: number;
21542
+ updated_at?: string;
21543
+ weekdag: number;
21544
+ };
21545
+ Update: {
21546
+ created_at?: string;
21547
+ eind_slot?: number;
21548
+ id?: string;
21549
+ monteur_id?: string;
21550
+ start_slot?: number;
21551
+ updated_at?: string;
21552
+ weekdag?: number;
21553
+ };
21554
+ Relationships: [];
21555
+ };
21556
+ uren_standaardweek_wijzigingen: {
21557
+ Row: {
21558
+ beoordeeld_door: string | null;
21559
+ beoordeeld_op: string | null;
21560
+ created_at: string;
21561
+ huidig: import("./types").Json;
21562
+ id: string;
21563
+ monteur_id: string;
21564
+ reden_afkeur: string | null;
21565
+ status: string;
21566
+ updated_at: string;
21567
+ voorstel: import("./types").Json;
21568
+ };
21569
+ Insert: {
21570
+ beoordeeld_door?: string | null;
21571
+ beoordeeld_op?: string | null;
21572
+ created_at?: string;
21573
+ huidig?: import("./types").Json;
21574
+ id?: string;
21575
+ monteur_id: string;
21576
+ reden_afkeur?: string | null;
21577
+ status?: string;
21578
+ updated_at?: string;
21579
+ voorstel: import("./types").Json;
21580
+ };
21581
+ Update: {
21582
+ beoordeeld_door?: string | null;
21583
+ beoordeeld_op?: string | null;
21584
+ created_at?: string;
21585
+ huidig?: import("./types").Json;
21586
+ id?: string;
21587
+ monteur_id?: string;
21588
+ reden_afkeur?: string | null;
21589
+ status?: string;
21590
+ updated_at?: string;
21591
+ voorstel?: import("./types").Json;
21592
+ };
21593
+ Relationships: [];
21594
+ };
20278
21595
  uren_tarieven: {
20279
21596
  Row: {
20280
21597
  created_at: string;
@@ -20359,6 +21676,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20359
21676
  };
20360
21677
  Relationships: [];
20361
21678
  };
21679
+ uren_tijd_spiegel: {
21680
+ Row: {
21681
+ created_at: string;
21682
+ id: string;
21683
+ time_log_id: string;
21684
+ werkbon_time_log_id: string;
21685
+ };
21686
+ Insert: {
21687
+ created_at?: string;
21688
+ id?: string;
21689
+ time_log_id: string;
21690
+ werkbon_time_log_id: string;
21691
+ };
21692
+ Update: {
21693
+ created_at?: string;
21694
+ id?: string;
21695
+ time_log_id?: string;
21696
+ werkbon_time_log_id?: string;
21697
+ };
21698
+ Relationships: [{
21699
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21700
+ columns: ["time_log_id"];
21701
+ isOneToOne: true;
21702
+ referencedRelation: "time_logs";
21703
+ referencedColumns: ["id"];
21704
+ }, {
21705
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21706
+ columns: ["werkbon_time_log_id"];
21707
+ isOneToOne: true;
21708
+ referencedRelation: "werkbon_time_logs";
21709
+ referencedColumns: ["id"];
21710
+ }];
21711
+ };
20362
21712
  uren_weekstaten: {
20363
21713
  Row: {
20364
21714
  approved_at: string | null;
@@ -20401,6 +21751,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20401
21751
  };
20402
21752
  Relationships: [];
20403
21753
  };
21754
+ uren_werktijd_voorkeuren: {
21755
+ Row: {
21756
+ created_at: string;
21757
+ eind_slot: number;
21758
+ id: string;
21759
+ monteur_id: string;
21760
+ start_slot: number;
21761
+ updated_at: string;
21762
+ };
21763
+ Insert: {
21764
+ created_at?: string;
21765
+ eind_slot?: number;
21766
+ id?: string;
21767
+ monteur_id: string;
21768
+ start_slot?: number;
21769
+ updated_at?: string;
21770
+ };
21771
+ Update: {
21772
+ created_at?: string;
21773
+ eind_slot?: number;
21774
+ id?: string;
21775
+ monteur_id?: string;
21776
+ start_slot?: number;
21777
+ updated_at?: string;
21778
+ };
21779
+ Relationships: [];
21780
+ };
20404
21781
  user_module_permissions: {
20405
21782
  Row: {
20406
21783
  created_at: string;
@@ -20458,6 +21835,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20458
21835
  referencedColumns: ["id"];
20459
21836
  }];
20460
21837
  };
21838
+ vakantie_uitbetalingen: {
21839
+ Row: {
21840
+ created_at: string;
21841
+ created_by: string | null;
21842
+ days: number;
21843
+ id: string;
21844
+ note: string | null;
21845
+ updated_at: string;
21846
+ user_id: string;
21847
+ year: number;
21848
+ };
21849
+ Insert: {
21850
+ created_at?: string;
21851
+ created_by?: string | null;
21852
+ days: number;
21853
+ id?: string;
21854
+ note?: string | null;
21855
+ updated_at?: string;
21856
+ user_id: string;
21857
+ year?: number;
21858
+ };
21859
+ Update: {
21860
+ created_at?: string;
21861
+ created_by?: string | null;
21862
+ days?: number;
21863
+ id?: string;
21864
+ note?: string | null;
21865
+ updated_at?: string;
21866
+ user_id?: string;
21867
+ year?: number;
21868
+ };
21869
+ Relationships: [{
21870
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21871
+ columns: ["created_by"];
21872
+ isOneToOne: false;
21873
+ referencedRelation: "profiles";
21874
+ referencedColumns: ["id"];
21875
+ }, {
21876
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21877
+ columns: ["user_id"];
21878
+ isOneToOne: false;
21879
+ referencedRelation: "profiles";
21880
+ referencedColumns: ["id"];
21881
+ }];
21882
+ };
20461
21883
  van_inventories: {
20462
21884
  Row: {
20463
21885
  barcode: string | null;
@@ -20872,6 +22294,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20872
22294
  referencedColumns: ["id"];
20873
22295
  }];
20874
22296
  };
22297
+ werkbon_email_state: {
22298
+ Row: {
22299
+ created_at: string;
22300
+ event_id: string;
22301
+ id: string;
22302
+ is_archived: boolean;
22303
+ is_read: boolean;
22304
+ updated_at: string;
22305
+ werkbon_id: string | null;
22306
+ };
22307
+ Insert: {
22308
+ created_at?: string;
22309
+ event_id: string;
22310
+ id?: string;
22311
+ is_archived?: boolean;
22312
+ is_read?: boolean;
22313
+ updated_at?: string;
22314
+ werkbon_id?: string | null;
22315
+ };
22316
+ Update: {
22317
+ created_at?: string;
22318
+ event_id?: string;
22319
+ id?: string;
22320
+ is_archived?: boolean;
22321
+ is_read?: boolean;
22322
+ updated_at?: string;
22323
+ werkbon_id?: string | null;
22324
+ };
22325
+ Relationships: [{
22326
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
22327
+ columns: ["event_id"];
22328
+ isOneToOne: true;
22329
+ referencedRelation: "email_auth_events";
22330
+ referencedColumns: ["id"];
22331
+ }];
22332
+ };
20875
22333
  werkbon_export_runs: {
20876
22334
  Row: {
20877
22335
  created_at: string;
@@ -21025,48 +22483,189 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21025
22483
  };
21026
22484
  Relationships: [];
21027
22485
  };
21028
- werkbon_materials: {
22486
+ werkbon_mail_ai_settings: {
21029
22487
  Row: {
21030
- article_number: string | null;
21031
22488
  created_at: string;
21032
- created_by: string | null;
21033
- description: string;
21034
- id: string;
21035
- quantity: number;
21036
- source: string;
21037
- unit: string;
21038
- unit_price_cents: number;
22489
+ id: boolean;
22490
+ required_fields: string[];
22491
+ system_prompt: string;
21039
22492
  updated_at: string;
21040
- werkbon_id: string;
22493
+ updated_by: string | null;
21041
22494
  };
21042
22495
  Insert: {
21043
- article_number?: string | null;
21044
22496
  created_at?: string;
21045
- created_by?: string | null;
21046
- description: string;
21047
- id?: string;
21048
- quantity?: number;
21049
- source?: string;
21050
- unit?: string;
21051
- unit_price_cents?: number;
22497
+ id?: boolean;
22498
+ required_fields?: string[];
22499
+ system_prompt?: string;
21052
22500
  updated_at?: string;
21053
- werkbon_id: string;
22501
+ updated_by?: string | null;
21054
22502
  };
21055
22503
  Update: {
21056
- article_number?: string | null;
21057
22504
  created_at?: string;
21058
- created_by?: string | null;
21059
- description?: string;
21060
- id?: string;
21061
- quantity?: number;
21062
- source?: string;
21063
- unit?: string;
21064
- unit_price_cents?: number;
22505
+ id?: boolean;
22506
+ required_fields?: string[];
22507
+ system_prompt?: string;
21065
22508
  updated_at?: string;
21066
- werkbon_id?: string;
22509
+ updated_by?: string | null;
21067
22510
  };
21068
- Relationships: [{
21069
- foreignKeyName: "werkbon_materials_werkbon_id_fkey";
22511
+ Relationships: [];
22512
+ };
22513
+ werkbon_mail_bodies: {
22514
+ Row: {
22515
+ created_at: string;
22516
+ event_id: string;
22517
+ fetch_error: string | null;
22518
+ fetched_at: string | null;
22519
+ html: string | null;
22520
+ updated_at: string;
22521
+ };
22522
+ Insert: {
22523
+ created_at?: string;
22524
+ event_id: string;
22525
+ fetch_error?: string | null;
22526
+ fetched_at?: string | null;
22527
+ html?: string | null;
22528
+ updated_at?: string;
22529
+ };
22530
+ Update: {
22531
+ created_at?: string;
22532
+ event_id?: string;
22533
+ fetch_error?: string | null;
22534
+ fetched_at?: string | null;
22535
+ html?: string | null;
22536
+ updated_at?: string;
22537
+ };
22538
+ Relationships: [];
22539
+ };
22540
+ werkbon_mail_inline_assets: {
22541
+ Row: {
22542
+ content_id: string | null;
22543
+ created_at: string;
22544
+ event_id: string;
22545
+ filename: string | null;
22546
+ id: string;
22547
+ is_inline: boolean;
22548
+ mime_type: string | null;
22549
+ size_bytes: number | null;
22550
+ storage_path: string;
22551
+ };
22552
+ Insert: {
22553
+ content_id?: string | null;
22554
+ created_at?: string;
22555
+ event_id: string;
22556
+ filename?: string | null;
22557
+ id?: string;
22558
+ is_inline?: boolean;
22559
+ mime_type?: string | null;
22560
+ size_bytes?: number | null;
22561
+ storage_path: string;
22562
+ };
22563
+ Update: {
22564
+ content_id?: string | null;
22565
+ created_at?: string;
22566
+ event_id?: string;
22567
+ filename?: string | null;
22568
+ id?: string;
22569
+ is_inline?: boolean;
22570
+ mime_type?: string | null;
22571
+ size_bytes?: number | null;
22572
+ storage_path?: string;
22573
+ };
22574
+ Relationships: [];
22575
+ };
22576
+ werkbon_mail_settings: {
22577
+ Row: {
22578
+ connection_id: string | null;
22579
+ connection_ids: string[];
22580
+ created_at: string;
22581
+ id: boolean;
22582
+ purposes: string[];
22583
+ source: string;
22584
+ updated_at: string;
22585
+ };
22586
+ Insert: {
22587
+ connection_id?: string | null;
22588
+ connection_ids?: string[];
22589
+ created_at?: string;
22590
+ id?: boolean;
22591
+ purposes?: string[];
22592
+ source?: string;
22593
+ updated_at?: string;
22594
+ };
22595
+ Update: {
22596
+ connection_id?: string | null;
22597
+ connection_ids?: string[];
22598
+ created_at?: string;
22599
+ id?: boolean;
22600
+ purposes?: string[];
22601
+ source?: string;
22602
+ updated_at?: string;
22603
+ };
22604
+ Relationships: [];
22605
+ };
22606
+ werkbon_mail_user_settings: {
22607
+ Row: {
22608
+ created_at: string;
22609
+ email_purpose: string | null;
22610
+ updated_at: string;
22611
+ user_id: string;
22612
+ };
22613
+ Insert: {
22614
+ created_at?: string;
22615
+ email_purpose?: string | null;
22616
+ updated_at?: string;
22617
+ user_id: string;
22618
+ };
22619
+ Update: {
22620
+ created_at?: string;
22621
+ email_purpose?: string | null;
22622
+ updated_at?: string;
22623
+ user_id?: string;
22624
+ };
22625
+ Relationships: [];
22626
+ };
22627
+ werkbon_materials: {
22628
+ Row: {
22629
+ article_number: string | null;
22630
+ created_at: string;
22631
+ created_by: string | null;
22632
+ description: string;
22633
+ id: string;
22634
+ quantity: number;
22635
+ source: string;
22636
+ unit: string;
22637
+ unit_price_cents: number;
22638
+ updated_at: string;
22639
+ werkbon_id: string;
22640
+ };
22641
+ Insert: {
22642
+ article_number?: string | null;
22643
+ created_at?: string;
22644
+ created_by?: string | null;
22645
+ description: string;
22646
+ id?: string;
22647
+ quantity?: number;
22648
+ source?: string;
22649
+ unit?: string;
22650
+ unit_price_cents?: number;
22651
+ updated_at?: string;
22652
+ werkbon_id: string;
22653
+ };
22654
+ Update: {
22655
+ article_number?: string | null;
22656
+ created_at?: string;
22657
+ created_by?: string | null;
22658
+ description?: string;
22659
+ id?: string;
22660
+ quantity?: number;
22661
+ source?: string;
22662
+ unit?: string;
22663
+ unit_price_cents?: number;
22664
+ updated_at?: string;
22665
+ werkbon_id?: string;
22666
+ };
22667
+ Relationships: [{
22668
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
21070
22669
  columns: ["werkbon_id"];
21071
22670
  isOneToOne: false;
21072
22671
  referencedRelation: "werkbonnen";
@@ -21155,10 +22754,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21155
22754
  Row: {
21156
22755
  article_number: string | null;
21157
22756
  artikel_id: string | null;
22757
+ cost_price_cents: number;
21158
22758
  created_at: string;
21159
22759
  gtin: string | null;
21160
22760
  id: string;
21161
22761
  manufacturer: string | null;
22762
+ margin_percent: number | null;
21162
22763
  omschrijving: string;
21163
22764
  package_id: string;
21164
22765
  price_synced_at: string | null;
@@ -21173,10 +22774,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21173
22774
  Insert: {
21174
22775
  article_number?: string | null;
21175
22776
  artikel_id?: string | null;
22777
+ cost_price_cents?: number;
21176
22778
  created_at?: string;
21177
22779
  gtin?: string | null;
21178
22780
  id?: string;
21179
22781
  manufacturer?: string | null;
22782
+ margin_percent?: number | null;
21180
22783
  omschrijving: string;
21181
22784
  package_id: string;
21182
22785
  price_synced_at?: string | null;
@@ -21191,10 +22794,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21191
22794
  Update: {
21192
22795
  article_number?: string | null;
21193
22796
  artikel_id?: string | null;
22797
+ cost_price_cents?: number;
21194
22798
  created_at?: string;
21195
22799
  gtin?: string | null;
21196
22800
  id?: string;
21197
22801
  manufacturer?: string | null;
22802
+ margin_percent?: number | null;
21198
22803
  omschrijving?: string;
21199
22804
  package_id?: string;
21200
22805
  price_synced_at?: string | null;
@@ -21364,138 +22969,371 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21364
22969
  referencedColumns: ["id"];
21365
22970
  }];
21366
22971
  };
21367
- werkbon_time_logs: {
22972
+ werkbon_proposal_lines: {
21368
22973
  Row: {
21369
- activity: string;
22974
+ article_number: string | null;
21370
22975
  created_at: string;
21371
- ended_at: string | null;
22976
+ description: string | null;
21372
22977
  id: string;
22978
+ line_type: string;
21373
22979
  note: string | null;
21374
- started_at: string;
21375
- user_id: string;
21376
- werkbon_id: string;
22980
+ package_id: string | null;
22981
+ proposal_id: string;
22982
+ quantity: number | null;
22983
+ sort_order: number;
22984
+ unit: string | null;
22985
+ updated_at: string;
21377
22986
  };
21378
22987
  Insert: {
21379
- activity: string;
22988
+ article_number?: string | null;
21380
22989
  created_at?: string;
21381
- ended_at?: string | null;
22990
+ description?: string | null;
21382
22991
  id?: string;
22992
+ line_type?: string;
21383
22993
  note?: string | null;
21384
- started_at?: string;
21385
- user_id: string;
21386
- werkbon_id: string;
22994
+ package_id?: string | null;
22995
+ proposal_id: string;
22996
+ quantity?: number | null;
22997
+ sort_order?: number;
22998
+ unit?: string | null;
22999
+ updated_at?: string;
21387
23000
  };
21388
23001
  Update: {
21389
- activity?: string;
23002
+ article_number?: string | null;
21390
23003
  created_at?: string;
21391
- ended_at?: string | null;
23004
+ description?: string | null;
21392
23005
  id?: string;
23006
+ line_type?: string;
21393
23007
  note?: string | null;
21394
- started_at?: string;
21395
- user_id?: string;
21396
- werkbon_id?: string;
23008
+ package_id?: string | null;
23009
+ proposal_id?: string;
23010
+ quantity?: number | null;
23011
+ sort_order?: number;
23012
+ unit?: string | null;
23013
+ updated_at?: string;
21397
23014
  };
21398
23015
  Relationships: [{
21399
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21400
- columns: ["werkbon_id"];
21401
- isOneToOne: false;
21402
- referencedRelation: "werkbonnen";
21403
- referencedColumns: ["id"];
21404
- }, {
21405
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
21406
- columns: ["werkbon_id"];
23016
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
23017
+ columns: ["proposal_id"];
21407
23018
  isOneToOne: false;
21408
- referencedRelation: "wo_overview";
23019
+ referencedRelation: "werkbon_proposals";
21409
23020
  referencedColumns: ["id"];
21410
23021
  }];
21411
23022
  };
21412
- werkbonnen: {
23023
+ werkbon_proposals: {
21413
23024
  Row: {
21414
- assigned_user_id: string | null;
23025
+ analysed: boolean;
21415
23026
  budget_mandate_cents: number;
21416
23027
  complaint_description: string | null;
23028
+ contact_id: string | null;
21417
23029
  created_at: string;
21418
- created_by: string | null;
23030
+ created_werkbon_id: string | null;
21419
23031
  customer_id: string | null;
23032
+ deadline_date: string | null;
23033
+ estimated_days: number | null;
23034
+ estimated_duration_minutes: number | null;
23035
+ event_id: string;
23036
+ external_id: string | null;
21420
23037
  externe_referentie: string | null;
21421
- extra_costs_cents: number;
21422
- first_time_fix: boolean | null;
23038
+ from_email: string | null;
23039
+ from_name: string | null;
21423
23040
  id: string;
21424
23041
  internal_notes: string | null;
21425
- needs_detail_review: boolean;
21426
- parent_werkbon_id: string | null;
21427
- parsed_payload: import("./types").Json | null;
21428
- planning_status: string;
21429
- project_number: string | null;
21430
- review_reasons: string[];
23042
+ parsed_payload: import("./types").Json;
23043
+ received_at: string | null;
23044
+ reviewed_at: string | null;
23045
+ reviewed_by: string | null;
21431
23046
  room_number: string | null;
21432
23047
  scheduled_end_time: string | null;
21433
23048
  scheduled_start_time: string | null;
21434
- sequence_number: number;
21435
- signature_accepted_at: string | null;
21436
- signature_by_user_id: string | null;
21437
- signature_name: string | null;
21438
- source_email_meta: import("./types").Json | null;
21439
- source_mailbox_message_id: string | null;
21440
- source_pdf_path: string | null;
21441
- source_type: string;
21442
23049
  status: string;
23050
+ subject: string | null;
21443
23051
  technician_id: string | null;
21444
- technician_notes: string | null;
21445
- technician_notes_raw: string | null;
21446
23052
  technician_task_description: string | null;
21447
23053
  updated_at: string;
21448
- version: number;
21449
23054
  work_address: string | null;
21450
23055
  };
21451
23056
  Insert: {
21452
- assigned_user_id?: string | null;
23057
+ analysed?: boolean;
21453
23058
  budget_mandate_cents?: number;
21454
23059
  complaint_description?: string | null;
23060
+ contact_id?: string | null;
21455
23061
  created_at?: string;
21456
- created_by?: string | null;
23062
+ created_werkbon_id?: string | null;
21457
23063
  customer_id?: string | null;
23064
+ deadline_date?: string | null;
23065
+ estimated_days?: number | null;
23066
+ estimated_duration_minutes?: number | null;
23067
+ event_id: string;
23068
+ external_id?: string | null;
21458
23069
  externe_referentie?: string | null;
21459
- extra_costs_cents?: number;
21460
- first_time_fix?: boolean | null;
23070
+ from_email?: string | null;
23071
+ from_name?: string | null;
21461
23072
  id?: string;
21462
23073
  internal_notes?: string | null;
21463
- needs_detail_review?: boolean;
21464
- parent_werkbon_id?: string | null;
21465
- parsed_payload?: import("./types").Json | null;
21466
- planning_status?: string;
21467
- project_number?: string | null;
21468
- review_reasons?: string[];
23074
+ parsed_payload?: import("./types").Json;
23075
+ received_at?: string | null;
23076
+ reviewed_at?: string | null;
23077
+ reviewed_by?: string | null;
21469
23078
  room_number?: string | null;
21470
23079
  scheduled_end_time?: string | null;
21471
23080
  scheduled_start_time?: string | null;
21472
- sequence_number: number;
21473
- signature_accepted_at?: string | null;
21474
- signature_by_user_id?: string | null;
21475
- signature_name?: string | null;
21476
- source_email_meta?: import("./types").Json | null;
21477
- source_mailbox_message_id?: string | null;
21478
- source_pdf_path?: string | null;
21479
- source_type?: string;
21480
23081
  status?: string;
23082
+ subject?: string | null;
21481
23083
  technician_id?: string | null;
21482
- technician_notes?: string | null;
21483
- technician_notes_raw?: string | null;
21484
23084
  technician_task_description?: string | null;
21485
23085
  updated_at?: string;
21486
- version?: number;
21487
23086
  work_address?: string | null;
21488
23087
  };
21489
23088
  Update: {
21490
- assigned_user_id?: string | null;
23089
+ analysed?: boolean;
21491
23090
  budget_mandate_cents?: number;
21492
23091
  complaint_description?: string | null;
23092
+ contact_id?: string | null;
21493
23093
  created_at?: string;
21494
- created_by?: string | null;
23094
+ created_werkbon_id?: string | null;
21495
23095
  customer_id?: string | null;
23096
+ deadline_date?: string | null;
23097
+ estimated_days?: number | null;
23098
+ estimated_duration_minutes?: number | null;
23099
+ event_id?: string;
23100
+ external_id?: string | null;
21496
23101
  externe_referentie?: string | null;
21497
- extra_costs_cents?: number;
21498
- first_time_fix?: boolean | null;
23102
+ from_email?: string | null;
23103
+ from_name?: string | null;
23104
+ id?: string;
23105
+ internal_notes?: string | null;
23106
+ parsed_payload?: import("./types").Json;
23107
+ received_at?: string | null;
23108
+ reviewed_at?: string | null;
23109
+ reviewed_by?: string | null;
23110
+ room_number?: string | null;
23111
+ scheduled_end_time?: string | null;
23112
+ scheduled_start_time?: string | null;
23113
+ status?: string;
23114
+ subject?: string | null;
23115
+ technician_id?: string | null;
23116
+ technician_task_description?: string | null;
23117
+ updated_at?: string;
23118
+ work_address?: string | null;
23119
+ };
23120
+ Relationships: [];
23121
+ };
23122
+ werkbon_time_logs: {
23123
+ Row: {
23124
+ activity: string;
23125
+ created_at: string;
23126
+ ended_at: string | null;
23127
+ id: string;
23128
+ note: string | null;
23129
+ started_at: string;
23130
+ user_id: string;
23131
+ werkbon_id: string;
23132
+ };
23133
+ Insert: {
23134
+ activity: string;
23135
+ created_at?: string;
23136
+ ended_at?: string | null;
23137
+ id?: string;
23138
+ note?: string | null;
23139
+ started_at?: string;
23140
+ user_id: string;
23141
+ werkbon_id: string;
23142
+ };
23143
+ Update: {
23144
+ activity?: string;
23145
+ created_at?: string;
23146
+ ended_at?: string | null;
23147
+ id?: string;
23148
+ note?: string | null;
23149
+ started_at?: string;
23150
+ user_id?: string;
23151
+ werkbon_id?: string;
23152
+ };
23153
+ Relationships: [{
23154
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23155
+ columns: ["werkbon_id"];
23156
+ isOneToOne: false;
23157
+ referencedRelation: "werkbonnen";
23158
+ referencedColumns: ["id"];
23159
+ }, {
23160
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
23161
+ columns: ["werkbon_id"];
23162
+ isOneToOne: false;
23163
+ referencedRelation: "wo_overview";
23164
+ referencedColumns: ["id"];
23165
+ }];
23166
+ };
23167
+ werkbon_voorstellen: {
23168
+ Row: {
23169
+ bron_werkbon_id: string;
23170
+ budget_mandate_cents: number;
23171
+ created_at: string;
23172
+ created_by: string;
23173
+ customer_id: string | null;
23174
+ id: string;
23175
+ payload: import("./types").Json;
23176
+ reden: string | null;
23177
+ status: string;
23178
+ updated_at: string;
23179
+ verwerkt_door: string | null;
23180
+ verwerkt_op: string | null;
23181
+ werkbon_id: string | null;
23182
+ };
23183
+ Insert: {
23184
+ bron_werkbon_id: string;
23185
+ budget_mandate_cents?: number;
23186
+ created_at?: string;
23187
+ created_by?: string;
23188
+ customer_id?: string | null;
23189
+ id?: string;
23190
+ payload?: import("./types").Json;
23191
+ reden?: string | null;
23192
+ status?: string;
23193
+ updated_at?: string;
23194
+ verwerkt_door?: string | null;
23195
+ verwerkt_op?: string | null;
23196
+ werkbon_id?: string | null;
23197
+ };
23198
+ Update: {
23199
+ bron_werkbon_id?: string;
23200
+ budget_mandate_cents?: number;
23201
+ created_at?: string;
23202
+ created_by?: string;
23203
+ customer_id?: string | null;
23204
+ id?: string;
23205
+ payload?: import("./types").Json;
23206
+ reden?: string | null;
23207
+ status?: string;
23208
+ updated_at?: string;
23209
+ verwerkt_door?: string | null;
23210
+ verwerkt_op?: string | null;
23211
+ werkbon_id?: string | null;
23212
+ };
23213
+ Relationships: [{
23214
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23215
+ columns: ["bron_werkbon_id"];
23216
+ isOneToOne: false;
23217
+ referencedRelation: "werkbonnen";
23218
+ referencedColumns: ["id"];
23219
+ }, {
23220
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23221
+ columns: ["bron_werkbon_id"];
23222
+ isOneToOne: false;
23223
+ referencedRelation: "wo_overview";
23224
+ referencedColumns: ["id"];
23225
+ }, {
23226
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23227
+ columns: ["werkbon_id"];
23228
+ isOneToOne: false;
23229
+ referencedRelation: "werkbonnen";
23230
+ referencedColumns: ["id"];
23231
+ }, {
23232
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23233
+ columns: ["werkbon_id"];
23234
+ isOneToOne: false;
23235
+ referencedRelation: "wo_overview";
23236
+ referencedColumns: ["id"];
23237
+ }];
23238
+ };
23239
+ werkbonnen: {
23240
+ Row: {
23241
+ assigned_user_id: string | null;
23242
+ budget_mandate_cents: number;
23243
+ complaint_description: string | null;
23244
+ created_at: string;
23245
+ created_by: string | null;
23246
+ customer_id: string | null;
23247
+ deadline_date: string | null;
23248
+ estimated_days: number | null;
23249
+ estimated_duration_minutes: number | null;
23250
+ externe_referentie: string | null;
23251
+ extra_costs_cents: number;
23252
+ first_time_fix: boolean | null;
23253
+ id: string;
23254
+ internal_notes: string | null;
23255
+ needs_detail_review: boolean;
23256
+ parent_werkbon_id: string | null;
23257
+ parsed_payload: import("./types").Json | null;
23258
+ planning_status: string;
23259
+ project_number: string | null;
23260
+ review_reasons: string[];
23261
+ room_number: string | null;
23262
+ scheduled_end_time: string | null;
23263
+ scheduled_start_time: string | null;
23264
+ sequence_number: number;
23265
+ signature_accepted_at: string | null;
23266
+ signature_by_user_id: string | null;
23267
+ signature_name: string | null;
23268
+ source_email_meta: import("./types").Json | null;
23269
+ source_mailbox_message_id: string | null;
23270
+ source_pdf_path: string | null;
23271
+ source_type: string;
23272
+ status: string;
23273
+ technician_id: string | null;
23274
+ technician_notes: string | null;
23275
+ technician_notes_raw: string | null;
23276
+ technician_task_description: string | null;
23277
+ updated_at: string;
23278
+ version: number;
23279
+ work_address: string | null;
23280
+ workday_hours: number | null;
23281
+ };
23282
+ Insert: {
23283
+ assigned_user_id?: string | null;
23284
+ budget_mandate_cents?: number;
23285
+ complaint_description?: string | null;
23286
+ created_at?: string;
23287
+ created_by?: string | null;
23288
+ customer_id?: string | null;
23289
+ deadline_date?: string | null;
23290
+ estimated_days?: number | null;
23291
+ estimated_duration_minutes?: number | null;
23292
+ externe_referentie?: string | null;
23293
+ extra_costs_cents?: number;
23294
+ first_time_fix?: boolean | null;
23295
+ id?: string;
23296
+ internal_notes?: string | null;
23297
+ needs_detail_review?: boolean;
23298
+ parent_werkbon_id?: string | null;
23299
+ parsed_payload?: import("./types").Json | null;
23300
+ planning_status?: string;
23301
+ project_number?: string | null;
23302
+ review_reasons?: string[];
23303
+ room_number?: string | null;
23304
+ scheduled_end_time?: string | null;
23305
+ scheduled_start_time?: string | null;
23306
+ sequence_number: number;
23307
+ signature_accepted_at?: string | null;
23308
+ signature_by_user_id?: string | null;
23309
+ signature_name?: string | null;
23310
+ source_email_meta?: import("./types").Json | null;
23311
+ source_mailbox_message_id?: string | null;
23312
+ source_pdf_path?: string | null;
23313
+ source_type?: string;
23314
+ status?: string;
23315
+ technician_id?: string | null;
23316
+ technician_notes?: string | null;
23317
+ technician_notes_raw?: string | null;
23318
+ technician_task_description?: string | null;
23319
+ updated_at?: string;
23320
+ version?: number;
23321
+ work_address?: string | null;
23322
+ workday_hours?: number | null;
23323
+ };
23324
+ Update: {
23325
+ assigned_user_id?: string | null;
23326
+ budget_mandate_cents?: number;
23327
+ complaint_description?: string | null;
23328
+ created_at?: string;
23329
+ created_by?: string | null;
23330
+ customer_id?: string | null;
23331
+ deadline_date?: string | null;
23332
+ estimated_days?: number | null;
23333
+ estimated_duration_minutes?: number | null;
23334
+ externe_referentie?: string | null;
23335
+ extra_costs_cents?: number;
23336
+ first_time_fix?: boolean | null;
21499
23337
  id?: string;
21500
23338
  internal_notes?: string | null;
21501
23339
  needs_detail_review?: boolean;
@@ -21523,6 +23361,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21523
23361
  updated_at?: string;
21524
23362
  version?: number;
21525
23363
  work_address?: string | null;
23364
+ workday_hours?: number | null;
21526
23365
  };
21527
23366
  Relationships: [{
21528
23367
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -22004,6 +23843,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22004
23843
  };
22005
23844
  Relationships: [];
22006
23845
  };
23846
+ logistics_packing_diff: {
23847
+ Row: {
23848
+ dev_key: string | null;
23849
+ floriday_packing: import("./types").Json | null;
23850
+ local_packing: import("./types").Json | null;
23851
+ order_id: string | null;
23852
+ order_item_id: string | null;
23853
+ order_number: string | null;
23854
+ product_id: string | null;
23855
+ product_name: string | null;
23856
+ scope: string | null;
23857
+ trade_item_id: string | null;
23858
+ };
23859
+ Relationships: [];
23860
+ };
22007
23861
  logistics_product_dimensions: {
22008
23862
  Row: {
22009
23863
  dimension_source: string | null;
@@ -22622,6 +24476,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22622
24476
  };
22623
24477
  Returns: undefined;
22624
24478
  };
24479
+ _wo_is_planner: {
24480
+ Args: never;
24481
+ Returns: boolean;
24482
+ };
22625
24483
  afh_city_code: {
22626
24484
  Args: {
22627
24485
  _city: string;
@@ -22727,6 +24585,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22727
24585
  };
22728
24586
  Returns: string;
22729
24587
  };
24588
+ backfill_cart_numbers_day_seq: {
24589
+ Args: never;
24590
+ Returns: number;
24591
+ };
22730
24592
  backfill_open_order_reservations: {
22731
24593
  Args: never;
22732
24594
  Returns: {
@@ -23213,8 +25075,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23213
25075
  cart_index: number;
23214
25076
  cart_number: string;
23215
25077
  cart_number_id: string;
23216
- cart_seq: number;
23217
- cart_total: number;
23218
25078
  order_id: string;
23219
25079
  order_number: string;
23220
25080
  order_source: string;
@@ -23230,10 +25090,32 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23230
25090
  };
23231
25091
  Returns: number;
23232
25092
  };
25093
+ control_mark_carts_delivered_detail: {
25094
+ Args: {
25095
+ p_carts: import("./types").Json;
25096
+ };
25097
+ Returns: {
25098
+ cart_index: number;
25099
+ frozen: boolean;
25100
+ message: string;
25101
+ order_id: string;
25102
+ order_source: string;
25103
+ outcome: string;
25104
+ }[];
25105
+ };
23233
25106
  count_distinct_regulatory_products: {
23234
25107
  Args: never;
23235
25108
  Returns: number;
23236
25109
  };
25110
+ create_order_from_public_offer: {
25111
+ Args: {
25112
+ p_carrier_id?: string;
25113
+ p_delivery_date?: string;
25114
+ p_delivery_garden_id?: string;
25115
+ p_offer_order_id: string;
25116
+ };
25117
+ Returns: import("./types").Json;
25118
+ };
23237
25119
  current_monteur_id: {
23238
25120
  Args: never;
23239
25121
  Returns: string;
@@ -23710,6 +25592,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23710
25592
  };
23711
25593
  Returns: number;
23712
25594
  };
25595
+ get_product_stock: {
25596
+ Args: {
25597
+ p_product_id: string;
25598
+ };
25599
+ Returns: {
25600
+ connection_id: string;
25601
+ incoming_stock: number;
25602
+ minimum_stock: number;
25603
+ notes: string;
25604
+ physical_stock: number;
25605
+ product_id: string;
25606
+ reserved_stock: number;
25607
+ trade_item_key: string;
25608
+ updated_at: string;
25609
+ }[];
25610
+ };
23713
25611
  get_room_busy_windows: {
23714
25612
  Args: {
23715
25613
  p_from: string;
@@ -23735,8 +25633,29 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23735
25633
  Args: never;
23736
25634
  Returns: string;
23737
25635
  };
23738
- handover_archief_lijst: {
23739
- Args: never;
25636
+ handover_afspraak_intrekken: {
25637
+ Args: {
25638
+ _sleutel: string;
25639
+ };
25640
+ Returns: boolean;
25641
+ };
25642
+ handover_afspraak_zetten: {
25643
+ Args: {
25644
+ _besluit: string;
25645
+ _item: string;
25646
+ _modules: string[];
25647
+ _sleutel: string;
25648
+ _soort: string;
25649
+ _versie_vingerafdruk: string;
25650
+ };
25651
+ Returns: boolean;
25652
+ };
25653
+ handover_afspraken: {
25654
+ Args: never;
25655
+ Returns: import("./types").Json;
25656
+ };
25657
+ handover_archief_lijst: {
25658
+ Args: never;
23740
25659
  Returns: import("./types").Json;
23741
25660
  };
23742
25661
  handover_archiveren: {
@@ -23752,6 +25671,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23752
25671
  };
23753
25672
  Returns: boolean;
23754
25673
  };
25674
+ handover_check_afronden_na_scan: {
25675
+ Args: {
25676
+ _module_ids: string[];
25677
+ };
25678
+ Returns: number;
25679
+ };
23755
25680
  handover_check_markeren: {
23756
25681
  Args: {
23757
25682
  _module_ids: string[];
@@ -23795,6 +25720,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23795
25720
  };
23796
25721
  Returns: boolean;
23797
25722
  };
25723
+ handover_md_bron_zetten: {
25724
+ Args: {
25725
+ _md: boolean;
25726
+ _module_id: string;
25727
+ _pad?: string;
25728
+ };
25729
+ Returns: boolean;
25730
+ };
23798
25731
  handover_module_meta_zetten: {
23799
25732
  Args: {
23800
25733
  _module_id: string;
@@ -23803,6 +25736,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23803
25736
  };
23804
25737
  Returns: boolean;
23805
25738
  };
25739
+ handover_naam_zetten: {
25740
+ Args: {
25741
+ _bron_repo?: string;
25742
+ _module_id: string;
25743
+ _weergavenaam?: string;
25744
+ };
25745
+ Returns: boolean;
25746
+ };
25747
+ handover_namen: {
25748
+ Args: never;
25749
+ Returns: import("./types").Json;
25750
+ };
25751
+ handover_nieuw_gezien: {
25752
+ Args: {
25753
+ _module_id: string;
25754
+ };
25755
+ Returns: boolean;
25756
+ };
23806
25757
  handover_norm_naam: {
23807
25758
  Args: {
23808
25759
  _naam: string;
@@ -23839,6 +25790,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23839
25790
  _versie_label?: string;
23840
25791
  };
23841
25792
  Returns: import("./types").Json;
25793
+ } | {
25794
+ Args: {
25795
+ _bekende_risicos?: string[];
25796
+ _bezit_tabellen?: string[];
25797
+ _bron_soort?: string;
25798
+ _commit?: string;
25799
+ _contractfuncties?: string[];
25800
+ _inhoud_md: string;
25801
+ _laatst_bevestigd_op?: string;
25802
+ _module_id: string;
25803
+ _module_titel: string;
25804
+ _ontbrekende_contracten?: string[];
25805
+ _pad?: string;
25806
+ _repo?: string;
25807
+ _samenvatting?: string;
25808
+ _versie_label?: string;
25809
+ };
25810
+ Returns: import("./types").Json;
23842
25811
  };
23843
25812
  handover_publish_via_token: {
23844
25813
  Args: {
@@ -23957,6 +25926,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23957
25926
  to_address: string;
23958
25927
  }[];
23959
25928
  };
25929
+ inkoop_set_preferred_supplier: {
25930
+ Args: {
25931
+ _product_id: string;
25932
+ _supplier_id: string;
25933
+ };
25934
+ Returns: undefined;
25935
+ };
23960
25936
  instructie_get: {
23961
25937
  Args: {
23962
25938
  _sleutel: string;
@@ -23976,6 +25952,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23976
25952
  };
23977
25953
  Returns: number;
23978
25954
  };
25955
+ invoice_branding_snapshot: {
25956
+ Args: never;
25957
+ Returns: import("./types").Json;
25958
+ };
23979
25959
  invoice_create_from_source: {
23980
25960
  Args: {
23981
25961
  _payload?: import("./types").Json;
@@ -24010,12 +25990,61 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24010
25990
  };
24011
25991
  Returns: import("./types").Json;
24012
25992
  };
25993
+ invoice_mark_sent: {
25994
+ Args: {
25995
+ _invoice_id: string;
25996
+ _to: string;
25997
+ };
25998
+ Returns: undefined;
25999
+ };
26000
+ invoice_peek_next_number: {
26001
+ Args: never;
26002
+ Returns: string;
26003
+ };
26004
+ invoice_ready_work_orders: {
26005
+ Args: {
26006
+ _limit?: number;
26007
+ };
26008
+ Returns: import("./types").Json;
26009
+ };
24013
26010
  invoice_recalc_totals: {
24014
26011
  Args: {
24015
26012
  _invoice_id: string;
24016
26013
  };
24017
26014
  Returns: import("./types").Json;
24018
26015
  };
26016
+ invoice_save_branding_settings: {
26017
+ Args: {
26018
+ _payload: import("./types").Json;
26019
+ };
26020
+ Returns: import("./types").Json;
26021
+ };
26022
+ invoice_set_email_purpose: {
26023
+ Args: {
26024
+ _purpose: string;
26025
+ };
26026
+ Returns: string;
26027
+ };
26028
+ invoice_source_lines: {
26029
+ Args: {
26030
+ _source_id: string;
26031
+ _source_type: string;
26032
+ };
26033
+ Returns: import("./types").Json;
26034
+ };
26035
+ invoice_update_full: {
26036
+ Args: {
26037
+ _invoice_id: string;
26038
+ _payload: import("./types").Json;
26039
+ };
26040
+ Returns: import("./types").Json;
26041
+ };
26042
+ invoice_work_order_locked: {
26043
+ Args: {
26044
+ _werkbon_id: string;
26045
+ };
26046
+ Returns: import("./types").Json;
26047
+ };
24019
26048
  is_authenticated: {
24020
26049
  Args: never;
24021
26050
  Returns: boolean;
@@ -24248,6 +26277,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24248
26277
  };
24249
26278
  Returns: import("./types").Json;
24250
26279
  };
26280
+ logistics_buffer_decision_for_settings: {
26281
+ Args: {
26282
+ p_order: import("./types").Json;
26283
+ p_settings: import("./types").Json;
26284
+ p_user_id?: string;
26285
+ };
26286
+ Returns: import("./types").Json;
26287
+ };
24251
26288
  logistics_buffer_detach_late_orders: {
24252
26289
  Args: {
24253
26290
  p_buffer?: string;
@@ -24281,6 +26318,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24281
26318
  };
24282
26319
  Returns: string;
24283
26320
  };
26321
+ logistics_buffer_payload: {
26322
+ Args: {
26323
+ p_order_id: string;
26324
+ };
26325
+ Returns: import("./types").Json;
26326
+ };
24284
26327
  logistics_buffer_simulate: {
24285
26328
  Args: {
24286
26329
  p_orders?: import("./types").Json;
@@ -24339,6 +26382,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24339
26382
  };
24340
26383
  Returns: string;
24341
26384
  };
26385
+ logistics_cart_coverage_check: {
26386
+ Args: never;
26387
+ Returns: import("./types").Json;
26388
+ };
24342
26389
  logistics_cart_handled: {
24343
26390
  Args: {
24344
26391
  p_cart_index: number;
@@ -24582,10 +26629,29 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24582
26629
  isSetofReturn: false;
24583
26630
  };
24584
26631
  };
26632
+ logistics_cleanup_duplicate_order_lines: {
26633
+ Args: {
26634
+ p_limit?: number;
26635
+ p_order_id: string;
26636
+ };
26637
+ Returns: import("./types").Json;
26638
+ };
26639
+ logistics_cleanup_history: {
26640
+ Args: {
26641
+ p_limit?: number;
26642
+ };
26643
+ Returns: import("./types").Json;
26644
+ };
24585
26645
  logistics_cleanup_orphan_print_jobs: {
24586
26646
  Args: never;
24587
26647
  Returns: import("./types").Json;
24588
26648
  };
26649
+ logistics_cleanup_tasks: {
26650
+ Args: {
26651
+ p_limit?: number;
26652
+ };
26653
+ Returns: import("./types").Json;
26654
+ };
24589
26655
  logistics_complete_task: {
24590
26656
  Args: {
24591
26657
  p_result?: import("./types").Json;
@@ -24733,6 +26799,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24733
26799
  Args: never;
24734
26800
  Returns: import("./types").Json;
24735
26801
  };
26802
+ logistics_cron_health: {
26803
+ Args: never;
26804
+ Returns: import("./types").Json;
26805
+ };
24736
26806
  logistics_day_windows: {
24737
26807
  Args: {
24738
26808
  p_day: string;
@@ -25082,6 +27152,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25082
27152
  };
25083
27153
  Returns: number;
25084
27154
  };
27155
+ logistics_merge_decision: {
27156
+ Args: {
27157
+ p_lines: import("./types").Json;
27158
+ };
27159
+ Returns: import("./types").Json;
27160
+ };
25085
27161
  logistics_merge_floriday_lines: {
25086
27162
  Args: {
25087
27163
  p_order_id: string;
@@ -25128,18 +27204,108 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25128
27204
  Args: never;
25129
27205
  Returns: string;
25130
27206
  };
27207
+ logistics_order_backlog_info: {
27208
+ Args: {
27209
+ p_order_id: string;
27210
+ };
27211
+ Returns: import("./types").Json;
27212
+ };
27213
+ logistics_order_cart_approval: {
27214
+ Args: {
27215
+ _order_ref: string;
27216
+ };
27217
+ Returns: {
27218
+ approved: number;
27219
+ total: number;
27220
+ }[];
27221
+ };
25131
27222
  logistics_order_cart_count: {
25132
27223
  Args: {
25133
27224
  p_order_ref: string;
25134
27225
  };
25135
27226
  Returns: number;
25136
27227
  };
27228
+ logistics_order_changed: {
27229
+ Args: {
27230
+ p_order_id: string;
27231
+ p_reason?: string;
27232
+ };
27233
+ Returns: undefined;
27234
+ };
27235
+ logistics_order_documents_ready: {
27236
+ Args: {
27237
+ p_order_ref: string;
27238
+ };
27239
+ Returns: import("./types").Json;
27240
+ };
27241
+ logistics_order_documents_ready_bool: {
27242
+ Args: {
27243
+ p_order_ref: string;
27244
+ };
27245
+ Returns: boolean;
27246
+ };
27247
+ logistics_order_finalize_enqueue: {
27248
+ Args: {
27249
+ p_order_id: string;
27250
+ p_reason?: string;
27251
+ };
27252
+ Returns: undefined;
27253
+ };
27254
+ logistics_order_finalize_overview: {
27255
+ Args: never;
27256
+ Returns: {
27257
+ bezig: number;
27258
+ laatst_afgerond: string;
27259
+ laatste_fout: string;
27260
+ mislukt: number;
27261
+ oudste_wachttijd_seconden: number;
27262
+ wachtend: number;
27263
+ }[];
27264
+ };
27265
+ logistics_order_finalize_prune: {
27266
+ Args: {
27267
+ p_days?: number;
27268
+ };
27269
+ Returns: number;
27270
+ };
27271
+ logistics_order_finalize_reconcile: {
27272
+ Args: {
27273
+ p_days?: number;
27274
+ p_limit?: number;
27275
+ };
27276
+ Returns: number;
27277
+ };
27278
+ logistics_order_finalize_retry: {
27279
+ Args: {
27280
+ p_order_id: string;
27281
+ };
27282
+ Returns: boolean;
27283
+ };
27284
+ logistics_order_finalize_run: {
27285
+ Args: {
27286
+ p_lease_seconds?: number;
27287
+ p_limit?: number;
27288
+ };
27289
+ Returns: number;
27290
+ };
27291
+ logistics_order_frozen: {
27292
+ Args: {
27293
+ p_order_id: string;
27294
+ };
27295
+ Returns: boolean;
27296
+ };
25137
27297
  logistics_order_handled: {
25138
27298
  Args: {
25139
27299
  p_order_uuid: string;
25140
27300
  };
25141
27301
  Returns: boolean;
25142
27302
  };
27303
+ logistics_order_is_backlog: {
27304
+ Args: {
27305
+ p_order_id: string;
27306
+ };
27307
+ Returns: boolean;
27308
+ };
25143
27309
  logistics_order_is_topick: {
25144
27310
  Args: {
25145
27311
  p_order_id: string;
@@ -25147,6 +27313,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25147
27313
  };
25148
27314
  Returns: boolean;
25149
27315
  };
27316
+ logistics_order_line_duplicates: {
27317
+ Args: {
27318
+ p_order_id: string;
27319
+ };
27320
+ Returns: import("./types").Json;
27321
+ };
25150
27322
  logistics_order_merge_key: {
25151
27323
  Args: {
25152
27324
  p_group_key: string;
@@ -25190,6 +27362,63 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25190
27362
  };
25191
27363
  Returns: boolean;
25192
27364
  };
27365
+ logistics_packing_autofix: {
27366
+ Args: {
27367
+ p_limit?: number;
27368
+ };
27369
+ Returns: number;
27370
+ };
27371
+ logistics_packing_block_reason: {
27372
+ Args: {
27373
+ p_order_id: string;
27374
+ p_order_item_id: string;
27375
+ };
27376
+ Returns: string;
27377
+ };
27378
+ logistics_packing_dismiss: {
27379
+ Args: {
27380
+ p_id: string;
27381
+ p_note?: string;
27382
+ };
27383
+ Returns: boolean;
27384
+ };
27385
+ logistics_packing_overview: {
27386
+ Args: never;
27387
+ Returns: {
27388
+ beoordelen: number;
27389
+ herstelbaar: number;
27390
+ laatst_gemeten: string;
27391
+ laatst_hersteld: string;
27392
+ open_totaal: number;
27393
+ orders: number;
27394
+ oudste_seconden: number;
27395
+ producten: number;
27396
+ }[];
27397
+ };
27398
+ logistics_packing_reconcile: {
27399
+ Args: {
27400
+ p_fix_limit?: number;
27401
+ p_scan_limit?: number;
27402
+ };
27403
+ Returns: {
27404
+ beoordelen: number;
27405
+ gevonden: number;
27406
+ hersteld: number;
27407
+ }[];
27408
+ };
27409
+ logistics_packing_scan: {
27410
+ Args: {
27411
+ p_limit?: number;
27412
+ };
27413
+ Returns: number;
27414
+ };
27415
+ logistics_packing_set_manual: {
27416
+ Args: {
27417
+ p_manual?: boolean;
27418
+ p_order_item_id: string;
27419
+ };
27420
+ Returns: boolean;
27421
+ };
25193
27422
  logistics_parse_pickup: {
25194
27423
  Args: {
25195
27424
  p_value: string;
@@ -25218,6 +27447,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25218
27447
  shifted_count: number;
25219
27448
  }[];
25220
27449
  };
27450
+ logistics_pick_backlog_max_days: {
27451
+ Args: never;
27452
+ Returns: number;
27453
+ };
25221
27454
  logistics_pick_barcode_enabled: {
25222
27455
  Args: never;
25223
27456
  Returns: boolean;
@@ -25283,6 +27516,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25283
27516
  order_id: string;
25284
27517
  }[];
25285
27518
  };
27519
+ logistics_plan_defer: {
27520
+ Args: {
27521
+ p_id: string;
27522
+ };
27523
+ Returns: undefined;
27524
+ };
25286
27525
  logistics_plan_enqueue: {
25287
27526
  Args: {
25288
27527
  p_order_id: string;
@@ -25296,6 +27535,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25296
27535
  };
25297
27536
  Returns: boolean;
25298
27537
  };
27538
+ logistics_plan_error_class: {
27539
+ Args: {
27540
+ p_error: string;
27541
+ };
27542
+ Returns: string;
27543
+ };
27544
+ logistics_plan_error_text: {
27545
+ Args: {
27546
+ p_error: string;
27547
+ };
27548
+ Returns: string;
27549
+ };
25299
27550
  logistics_plan_finish: {
25300
27551
  Args: {
25301
27552
  p_error?: string;
@@ -25324,6 +27575,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25324
27575
  Args: never;
25325
27576
  Returns: undefined;
25326
27577
  };
27578
+ logistics_plan_lock_acquire: {
27579
+ Args: {
27580
+ _key: string;
27581
+ _owner?: string;
27582
+ _ttl_seconds?: number;
27583
+ };
27584
+ Returns: boolean;
27585
+ };
27586
+ logistics_plan_lock_release: {
27587
+ Args: {
27588
+ _key: string;
27589
+ _owner?: string;
27590
+ };
27591
+ Returns: undefined;
27592
+ };
25327
27593
  logistics_plan_progress: {
25328
27594
  Args: {
25329
27595
  p_refs: string[];
@@ -25338,14 +27604,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25338
27604
  unit_ref: string;
25339
27605
  }[];
25340
27606
  };
27607
+ logistics_plan_progress_pct: {
27608
+ Args: {
27609
+ p_order_id: string;
27610
+ };
27611
+ Returns: number;
27612
+ };
25341
27613
  logistics_plan_prune: {
25342
27614
  Args: never;
25343
27615
  Returns: number;
25344
27616
  };
27617
+ logistics_plan_queue_list: {
27618
+ Args: {
27619
+ p_limit?: number;
27620
+ };
27621
+ Returns: {
27622
+ attempts: number;
27623
+ claimed_at: string;
27624
+ customer_name: string;
27625
+ enqueued_at: string;
27626
+ error_class: string;
27627
+ error_raw: string;
27628
+ error_text: string;
27629
+ id: string;
27630
+ max_attempts: number;
27631
+ next_attempt_at: string;
27632
+ order_created_at: string;
27633
+ order_id: string;
27634
+ order_number: string;
27635
+ progress_pct: number;
27636
+ reason: string;
27637
+ stand: string;
27638
+ status: string;
27639
+ updated_at: string;
27640
+ }[];
27641
+ };
25345
27642
  logistics_plan_release_stale: {
25346
27643
  Args: never;
25347
27644
  Returns: number;
25348
27645
  };
27646
+ logistics_plan_reset_queue: {
27647
+ Args: {
27648
+ p_scope?: string;
27649
+ };
27650
+ Returns: number;
27651
+ };
25349
27652
  logistics_plan_retry: {
25350
27653
  Args: {
25351
27654
  p_order_ids: string[];
@@ -25365,6 +27668,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25365
27668
  };
25366
27669
  Returns: import("./types").Json;
25367
27670
  };
27671
+ logistics_plan_timeout_running: {
27672
+ Args: never;
27673
+ Returns: number;
27674
+ };
27675
+ logistics_planner_cart_snapshot: {
27676
+ Args: {
27677
+ p_buffer_id: string;
27678
+ p_order_id: string;
27679
+ };
27680
+ Returns: import("./types").Json;
27681
+ };
27682
+ logistics_planner_diff_mode: {
27683
+ Args: never;
27684
+ Returns: string;
27685
+ };
27686
+ logistics_planner_diff_prune: {
27687
+ Args: never;
27688
+ Returns: number;
27689
+ };
25368
27690
  logistics_prepare_pick_documents: {
25369
27691
  Args: {
25370
27692
  p_limit?: number;
@@ -25375,6 +27697,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25375
27697
  Args: never;
25376
27698
  Returns: number;
25377
27699
  };
27700
+ logistics_prune_cron_history: {
27701
+ Args: {
27702
+ p_days?: number;
27703
+ };
27704
+ Returns: number;
27705
+ };
25378
27706
  logistics_prune_handled_pick_queue: {
25379
27707
  Args: never;
25380
27708
  Returns: number;
@@ -25411,6 +27739,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25411
27739
  Args: never;
25412
27740
  Returns: import("./types").Json;
25413
27741
  };
27742
+ logistics_recalc_tick_kick: {
27743
+ Args: never;
27744
+ Returns: number;
27745
+ };
27746
+ logistics_reconcile_missing_plan_queue: {
27747
+ Args: never;
27748
+ Returns: number;
27749
+ };
25414
27750
  logistics_refresh_pick_queue_status: {
25415
27751
  Args: {
25416
27752
  p_ref: string;
@@ -25441,6 +27777,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25441
27777
  };
25442
27778
  Returns: import("./types").Json;
25443
27779
  };
27780
+ logistics_replan_clear_foreign_cart_items: {
27781
+ Args: {
27782
+ p_order_id: string;
27783
+ p_reason: string;
27784
+ };
27785
+ Returns: import("./types").Json;
27786
+ };
27787
+ logistics_replan_order_journey: {
27788
+ Args: {
27789
+ p_order_ref: string;
27790
+ };
27791
+ Returns: import("./types").Json;
27792
+ } | {
27793
+ Args: {
27794
+ p_order_ref: string;
27795
+ p_reason: string;
27796
+ };
27797
+ Returns: import("./types").Json;
27798
+ };
25444
27799
  logistics_report_delay: {
25445
27800
  Args: {
25446
27801
  p_expected_date?: string;
@@ -25485,6 +27840,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25485
27840
  };
25486
27841
  Returns: import("./types").Json;
25487
27842
  };
27843
+ logistics_reserved_stock_nightly: {
27844
+ Args: never;
27845
+ Returns: undefined;
27846
+ };
25488
27847
  logistics_resolve_pick_document: {
25489
27848
  Args: {
25490
27849
  _is_herprint: boolean;
@@ -25508,6 +27867,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25508
27867
  };
25509
27868
  Returns: import("./types").Json;
25510
27869
  };
27870
+ logistics_retention_days: {
27871
+ Args: {
27872
+ p_key: string;
27873
+ };
27874
+ Returns: number;
27875
+ };
25511
27876
  logistics_rule_bool: {
25512
27877
  Args: {
25513
27878
  p_default: boolean;
@@ -25562,6 +27927,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25562
27927
  logistics_schedule_tasks: {
25563
27928
  Args: never;
25564
27929
  Returns: number;
27930
+ } | {
27931
+ Args: {
27932
+ p_order_ref?: string;
27933
+ };
27934
+ Returns: number;
25565
27935
  };
25566
27936
  logistics_set_order_priority: {
25567
27937
  Args: {
@@ -25585,6 +27955,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25585
27955
  };
25586
27956
  Returns: string;
25587
27957
  };
27958
+ logistics_shipping_note_diagnose: {
27959
+ Args: {
27960
+ p_order_number: string;
27961
+ };
27962
+ Returns: import("./types").Json;
27963
+ };
25588
27964
  logistics_shipping_note_follows_slip: {
25589
27965
  Args: never;
25590
27966
  Returns: boolean;
@@ -25690,12 +28066,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25690
28066
  Args: never;
25691
28067
  Returns: import("./types").Json;
25692
28068
  };
28069
+ logistics_sync_pick_queue_backlog: {
28070
+ Args: never;
28071
+ Returns: import("./types").Json;
28072
+ };
28073
+ logistics_sync_pick_queue_core: {
28074
+ Args: never;
28075
+ Returns: import("./types").Json;
28076
+ };
25693
28077
  logistics_sync_task_carriers: {
25694
28078
  Args: {
25695
28079
  p_order_ref?: string;
25696
28080
  };
25697
28081
  Returns: number;
25698
28082
  };
28083
+ logistics_task_open_counts: {
28084
+ Args: never;
28085
+ Returns: {
28086
+ open_count: number;
28087
+ owner_module: string;
28088
+ }[];
28089
+ };
25699
28090
  logistics_task_owner: {
25700
28091
  Args: {
25701
28092
  p_task_type: string;
@@ -25709,6 +28100,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25709
28100
  };
25710
28101
  Returns: number;
25711
28102
  };
28103
+ logistics_task_retention_days: {
28104
+ Args: never;
28105
+ Returns: number;
28106
+ };
28107
+ logistics_tasks_prune: {
28108
+ Args: {
28109
+ p_days?: number;
28110
+ };
28111
+ Returns: number;
28112
+ };
28113
+ logistics_tick: {
28114
+ Args: never;
28115
+ Returns: import("./types").Json;
28116
+ };
25712
28117
  logistics_tick_ping: {
25713
28118
  Args: never;
25714
28119
  Returns: string;
@@ -25732,12 +28137,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25732
28137
  };
25733
28138
  Returns: import("./types").Json;
25734
28139
  };
28140
+ logistics_trace_archive_order: {
28141
+ Args: {
28142
+ p_order_ref: string;
28143
+ p_reason: string;
28144
+ };
28145
+ Returns: number;
28146
+ };
25735
28147
  logistics_trace_batch: {
25736
28148
  Args: {
25737
28149
  p: import("./types").Json;
25738
28150
  };
25739
28151
  Returns: number;
25740
28152
  };
28153
+ logistics_trace_derive: {
28154
+ Args: {
28155
+ p: import("./types").Json;
28156
+ };
28157
+ Returns: number;
28158
+ };
25741
28159
  logistics_trace_node: {
25742
28160
  Args: {
25743
28161
  p_op?: string;
@@ -25746,6 +28164,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25746
28164
  };
25747
28165
  Returns: string;
25748
28166
  };
28167
+ logistics_trace_order_journey_start: {
28168
+ Args: {
28169
+ p_order_id: string;
28170
+ p_reason?: string;
28171
+ };
28172
+ Returns: string;
28173
+ };
28174
+ logistics_trace_order_origin: {
28175
+ Args: {
28176
+ p_order_id: string;
28177
+ };
28178
+ Returns: undefined;
28179
+ };
25749
28180
  logistics_trace_order_overview: {
25750
28181
  Args: {
25751
28182
  p_error_class?: string;
@@ -25787,12 +28218,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25787
28218
  };
25788
28219
  Returns: import("./types").Json;
25789
28220
  };
28221
+ logistics_trace_pick_state: {
28222
+ Args: {
28223
+ p_order_number: string;
28224
+ };
28225
+ Returns: undefined;
28226
+ };
28227
+ logistics_trace_progress: {
28228
+ Args: {
28229
+ p_limit?: number;
28230
+ };
28231
+ Returns: import("./types").Json;
28232
+ };
28233
+ logistics_trace_progress_order: {
28234
+ Args: {
28235
+ p_order_ref: string;
28236
+ };
28237
+ Returns: import("./types").Json;
28238
+ };
25790
28239
  logistics_trace_redact: {
25791
28240
  Args: {
25792
28241
  p: import("./types").Json;
25793
28242
  };
25794
28243
  Returns: import("./types").Json;
25795
28244
  };
28245
+ logistics_trace_source_node: {
28246
+ Args: {
28247
+ p_source: string;
28248
+ };
28249
+ Returns: string;
28250
+ };
28251
+ logistics_trace_step_once: {
28252
+ Args: {
28253
+ p_decision: string;
28254
+ p_next_step?: string;
28255
+ p_node: string;
28256
+ p_order_id: string;
28257
+ p_reason: string;
28258
+ p_status: string;
28259
+ p_step: string;
28260
+ };
28261
+ Returns: undefined;
28262
+ };
28263
+ logistics_trace_stock_check: {
28264
+ Args: {
28265
+ p_order_id: string;
28266
+ };
28267
+ Returns: undefined;
28268
+ };
25796
28269
  logistics_trace_timeline: {
25797
28270
  Args: {
25798
28271
  p_limit?: number;
@@ -25906,6 +28379,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25906
28379
  permission: string;
25907
28380
  }[];
25908
28381
  };
28382
+ next_cart_day_seq: {
28383
+ Args: {
28384
+ p_date: string;
28385
+ };
28386
+ Returns: number;
28387
+ };
25909
28388
  next_manufacture_partij: {
25910
28389
  Args: {
25911
28390
  _tenant_id: string;
@@ -25975,6 +28454,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25975
28454
  };
25976
28455
  Returns: boolean;
25977
28456
  };
28457
+ order_items_duplicate_report: {
28458
+ Args: {
28459
+ _order_ref?: string;
28460
+ };
28461
+ Returns: {
28462
+ distinct_products: number;
28463
+ duplicate_factor: number;
28464
+ lines: number;
28465
+ order_number: string;
28466
+ }[];
28467
+ };
25978
28468
  order_number_prefix: {
25979
28469
  Args: {
25980
28470
  p_custom_fields?: import("./types").Json;
@@ -26758,6 +29248,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26758
29248
  };
26759
29249
  Returns: undefined;
26760
29250
  };
29251
+ planning_apply_schedule_updates: {
29252
+ Args: {
29253
+ _updates: import("./types").Json;
29254
+ };
29255
+ Returns: undefined;
29256
+ };
29257
+ planning_assert_no_overlaps: {
29258
+ Args: never;
29259
+ Returns: undefined;
29260
+ };
29261
+ planning_assert_no_overlaps_for_items: {
29262
+ Args: {
29263
+ _item_ids: string[];
29264
+ };
29265
+ Returns: undefined;
29266
+ };
26761
29267
  planning_cancel_item: {
26762
29268
  Args: {
26763
29269
  _id: string;
@@ -26861,6 +29367,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26861
29367
  Args: never;
26862
29368
  Returns: number;
26863
29369
  };
29370
+ quote_ack_work_order: {
29371
+ Args: {
29372
+ _queue_id: string;
29373
+ _werkbon_id: string;
29374
+ _werkbon_nummer?: string;
29375
+ };
29376
+ Returns: boolean;
29377
+ };
29378
+ quote_assign_number: {
29379
+ Args: {
29380
+ _offerte_id: string;
29381
+ };
29382
+ Returns: string;
29383
+ };
29384
+ quote_create_follow_up_now: {
29385
+ Args: {
29386
+ _offerte_id: string;
29387
+ _payload?: import("./types").Json;
29388
+ };
29389
+ Returns: import("./types").Json;
29390
+ };
26864
29391
  quote_create_from_source: {
26865
29392
  Args: {
26866
29393
  _payload?: import("./types").Json;
@@ -26869,6 +29396,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26869
29396
  };
26870
29397
  Returns: string;
26871
29398
  };
29399
+ quote_fail_work_order: {
29400
+ Args: {
29401
+ _foutmelding: string;
29402
+ _queue_id: string;
29403
+ };
29404
+ Returns: boolean;
29405
+ };
26872
29406
  quote_get_billable_lines: {
26873
29407
  Args: {
26874
29408
  _quotation_id: string;
@@ -26885,6 +29419,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26885
29419
  Args: never;
26886
29420
  Returns: import("./types").Json;
26887
29421
  };
29422
+ quote_list_pending_work_orders: {
29423
+ Args: {
29424
+ _limit?: number;
29425
+ };
29426
+ Returns: import("./types").Json;
29427
+ };
26888
29428
  quote_list_sources: {
26889
29429
  Args: {
26890
29430
  _limit?: number;
@@ -26892,6 +29432,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26892
29432
  };
26893
29433
  Returns: import("./types").Json;
26894
29434
  };
29435
+ quote_queue_follow_up: {
29436
+ Args: {
29437
+ _offerte_id: string;
29438
+ };
29439
+ Returns: string;
29440
+ };
26895
29441
  recompute_all_reserved_stock: {
26896
29442
  Args: never;
26897
29443
  Returns: undefined;
@@ -27085,6 +29631,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27085
29631
  Args: never;
27086
29632
  Returns: undefined;
27087
29633
  };
29634
+ run_order_auto_invoice_tick: {
29635
+ Args: never;
29636
+ Returns: number;
29637
+ };
27088
29638
  run_print_queue_ticks: {
27089
29639
  Args: never;
27090
29640
  Returns: number;
@@ -27462,6 +30012,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27462
30012
  };
27463
30013
  Returns: number;
27464
30014
  };
30015
+ schedule_floriday_trade_items_reconcile: {
30016
+ Args: {
30017
+ p_apikey: string;
30018
+ p_url: string;
30019
+ };
30020
+ Returns: number;
30021
+ };
27465
30022
  schedule_floriday_trade_items_sync: {
27466
30023
  Args: {
27467
30024
  p_apikey: string;
@@ -27544,8 +30101,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27544
30101
  };
27545
30102
  Returns: undefined;
27546
30103
  };
27547
- show_limit: {
27548
- Args: never;
30104
+ set_product_stock: {
30105
+ Args: {
30106
+ p_incoming_stock?: number;
30107
+ p_minimum_stock?: number;
30108
+ p_notes?: string;
30109
+ p_physical_stock: number;
30110
+ p_product_id: string;
30111
+ };
30112
+ Returns: {
30113
+ connection_id: string;
30114
+ incoming_stock: number;
30115
+ minimum_stock: number;
30116
+ notes: string;
30117
+ physical_stock: number;
30118
+ product_id: string;
30119
+ reserved_stock: number;
30120
+ trade_item_key: string;
30121
+ updated_at: string;
30122
+ }[];
30123
+ };
30124
+ show_limit: {
30125
+ Args: never;
27549
30126
  Returns: number;
27550
30127
  };
27551
30128
  show_trgm: {
@@ -27573,6 +30150,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27573
30150
  p_end_time: string;
27574
30151
  };
27575
30152
  Returns: import("./types").Json;
30153
+ } | {
30154
+ Args: {
30155
+ p_end_lat?: number;
30156
+ p_end_lng?: number;
30157
+ p_log_id: string;
30158
+ };
30159
+ Returns: {
30160
+ auto_stop_reason: string | null;
30161
+ auto_stopped: boolean;
30162
+ created_at: string;
30163
+ current_latitude: number | null;
30164
+ current_longitude: number | null;
30165
+ current_position_updated_at: string | null;
30166
+ employee_id: string;
30167
+ end_latitude: number | null;
30168
+ end_longitude: number | null;
30169
+ end_time: string | null;
30170
+ eta_distance_km: number | null;
30171
+ eta_minutes: number | null;
30172
+ eta_updated_at: string | null;
30173
+ hour_category: string | null;
30174
+ id: string;
30175
+ last_reminder_at: string | null;
30176
+ notes: string | null;
30177
+ overtime_hours: number;
30178
+ overtime_type: string | null;
30179
+ regular_hours: number;
30180
+ reminder_count: number;
30181
+ requires_review: boolean;
30182
+ start_latitude: number | null;
30183
+ start_longitude: number | null;
30184
+ start_time: string;
30185
+ travel_cost: number | null;
30186
+ travel_distance_km: number | null;
30187
+ travel_duration_min: number | null;
30188
+ travel_time_minutes: number | null;
30189
+ type: string;
30190
+ updated_at: string;
30191
+ work_order_id: string | null;
30192
+ };
30193
+ SetofOptions: {
30194
+ from: "*";
30195
+ to: "time_logs";
30196
+ isOneToOne: true;
30197
+ isSetofReturn: false;
30198
+ };
27576
30199
  };
27577
30200
  swap_cart_layer_positions: {
27578
30201
  Args: {
@@ -27729,14 +30352,340 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27729
30352
  };
27730
30353
  Returns: undefined;
27731
30354
  };
30355
+ uren_employee_day_hours: {
30356
+ Args: {
30357
+ _day: string;
30358
+ _employee_id: string;
30359
+ };
30360
+ Returns: number;
30361
+ };
27732
30362
  uren_is_beheerder: {
27733
30363
  Args: never;
27734
30364
  Returns: boolean;
27735
30365
  };
30366
+ uren_is_werkdag: {
30367
+ Args: {
30368
+ _date: string;
30369
+ _monteur: string;
30370
+ };
30371
+ Returns: boolean;
30372
+ };
30373
+ uren_korte_afwezigheid_aanvragen: {
30374
+ Args: {
30375
+ _datum: string;
30376
+ _eind: string;
30377
+ _reden: string;
30378
+ _start: string;
30379
+ };
30380
+ Returns: string;
30381
+ };
30382
+ uren_list_medewerkers: {
30383
+ Args: never;
30384
+ Returns: {
30385
+ avatar_url: string;
30386
+ color: string;
30387
+ display_name: string;
30388
+ email: string;
30389
+ hours_fri: number;
30390
+ hours_mon: number;
30391
+ hours_thu: number;
30392
+ hours_tue: number;
30393
+ hours_wed: number;
30394
+ id: string;
30395
+ is_active: boolean;
30396
+ leave_balance_hours: number;
30397
+ persnr: string;
30398
+ phone: string;
30399
+ roles: string[];
30400
+ }[];
30401
+ };
30402
+ uren_list_planner_contacten: {
30403
+ Args: never;
30404
+ Returns: {
30405
+ display_name: string;
30406
+ id: string;
30407
+ phone: string;
30408
+ }[];
30409
+ };
30410
+ uren_maand_afsluiten: {
30411
+ Args: {
30412
+ _maand: string;
30413
+ _monteur: string;
30414
+ };
30415
+ Returns: undefined;
30416
+ };
30417
+ uren_maand_berekenen: {
30418
+ Args: {
30419
+ _maand: string;
30420
+ _monteur: string;
30421
+ };
30422
+ Returns: import("./types").Json;
30423
+ };
30424
+ uren_maand_corrigeren: {
30425
+ Args: {
30426
+ _maand: string;
30427
+ _monteur: string;
30428
+ _overuren_minuten: number;
30429
+ _reden: string;
30430
+ };
30431
+ Returns: undefined;
30432
+ };
30433
+ uren_mijn_contracturen: {
30434
+ Args: never;
30435
+ Returns: number;
30436
+ };
30437
+ uren_mijn_vakantiesaldo: {
30438
+ Args: never;
30439
+ Returns: number;
30440
+ };
27736
30441
  uren_my_monteur_id: {
27737
30442
  Args: never;
27738
30443
  Returns: string;
27739
30444
  };
30445
+ uren_planning_dagagenda: {
30446
+ Args: {
30447
+ _tot: string;
30448
+ _van: string;
30449
+ };
30450
+ Returns: {
30451
+ end_at: string;
30452
+ id: string;
30453
+ is_tweede_man: boolean;
30454
+ notes: string;
30455
+ start_at: string;
30456
+ status: Database["public"]["Enums"]["planning_item_status"];
30457
+ werkbon_id: string;
30458
+ }[];
30459
+ };
30460
+ uren_set_planning_item_status: {
30461
+ Args: {
30462
+ _id: string;
30463
+ _status: Database["public"]["Enums"]["planning_item_status"];
30464
+ };
30465
+ Returns: undefined;
30466
+ };
30467
+ uren_set_planning_status: {
30468
+ Args: {
30469
+ p_status: Database["public"]["Enums"]["planning_item_status"];
30470
+ p_werkbon_id: string;
30471
+ };
30472
+ Returns: number;
30473
+ };
30474
+ uren_spiegel_bezig: {
30475
+ Args: never;
30476
+ Returns: boolean;
30477
+ };
30478
+ uren_standaardweek_beoordelen: {
30479
+ Args: {
30480
+ _goedkeuren: boolean;
30481
+ _id: string;
30482
+ _reden?: string;
30483
+ };
30484
+ Returns: undefined;
30485
+ };
30486
+ uren_standaardweek_doorzetten: {
30487
+ Args: {
30488
+ _monteur: string;
30489
+ };
30490
+ Returns: undefined;
30491
+ };
30492
+ uren_standaardweek_instellen: {
30493
+ Args: {
30494
+ _dagen: import("./types").Json;
30495
+ };
30496
+ Returns: string;
30497
+ };
30498
+ uren_standaardweek_toepassen: {
30499
+ Args: {
30500
+ _dagen: import("./types").Json;
30501
+ _monteur: string;
30502
+ };
30503
+ Returns: undefined;
30504
+ };
30505
+ uren_stop_time_log: {
30506
+ Args: {
30507
+ p_employee_id: string;
30508
+ p_end_lat?: number;
30509
+ p_end_lng?: number;
30510
+ p_end_time: string;
30511
+ };
30512
+ Returns: import("./types").Json;
30513
+ };
30514
+ uren_switch_time_log: {
30515
+ Args: {
30516
+ p_employee_id: string;
30517
+ p_start_lat?: number;
30518
+ p_start_lng?: number;
30519
+ p_type: string;
30520
+ p_work_order_id?: string;
30521
+ };
30522
+ Returns: import("./types").Json;
30523
+ };
30524
+ uren_sync_sick_time_off: {
30525
+ Args: {
30526
+ _period_id: string;
30527
+ };
30528
+ Returns: number;
30529
+ };
30530
+ uren_vakantie_aanvragen: {
30531
+ Args: {
30532
+ _end_date: string;
30533
+ _hours?: number;
30534
+ _start_date: string;
30535
+ };
30536
+ Returns: string;
30537
+ };
30538
+ uren_vakantiedag_wijzigen: {
30539
+ Args: {
30540
+ _date: string;
30541
+ };
30542
+ Returns: string;
30543
+ };
30544
+ uren_vakantiesaldo_uren: {
30545
+ Args: {
30546
+ _monteur: string;
30547
+ };
30548
+ Returns: number;
30549
+ };
30550
+ uren_week_start: {
30551
+ Args: {
30552
+ _datum: string;
30553
+ };
30554
+ Returns: string;
30555
+ };
30556
+ uren_werkweek_opsturen: {
30557
+ Args: {
30558
+ _week_start: string;
30559
+ };
30560
+ Returns: {
30561
+ approved_at: string | null;
30562
+ approved_by: string | null;
30563
+ contract_hours: number;
30564
+ created_at: string;
30565
+ employee_id: string;
30566
+ id: string;
30567
+ locked: boolean;
30568
+ monteur_toelichting: string | null;
30569
+ notes: string | null;
30570
+ planned_hours: number;
30571
+ status: string;
30572
+ submitted_at: string | null;
30573
+ updated_at: string;
30574
+ variance_hours: number;
30575
+ week_start: string;
30576
+ };
30577
+ SetofOptions: {
30578
+ from: "*";
30579
+ to: "time_log_week_approvals";
30580
+ isOneToOne: true;
30581
+ isSetofReturn: false;
30582
+ };
30583
+ } | {
30584
+ Args: {
30585
+ _vrije_dagen?: string[];
30586
+ _week_start: string;
30587
+ };
30588
+ Returns: {
30589
+ approved_at: string | null;
30590
+ approved_by: string | null;
30591
+ contract_hours: number;
30592
+ created_at: string;
30593
+ employee_id: string;
30594
+ id: string;
30595
+ locked: boolean;
30596
+ monteur_toelichting: string | null;
30597
+ notes: string | null;
30598
+ planned_hours: number;
30599
+ status: string;
30600
+ submitted_at: string | null;
30601
+ updated_at: string;
30602
+ variance_hours: number;
30603
+ week_start: string;
30604
+ };
30605
+ SetofOptions: {
30606
+ from: "*";
30607
+ to: "time_log_week_approvals";
30608
+ isOneToOne: true;
30609
+ isSetofReturn: false;
30610
+ };
30611
+ } | {
30612
+ Args: {
30613
+ _toelichting?: string;
30614
+ _vrije_dagen?: string[];
30615
+ _week_start: string;
30616
+ };
30617
+ Returns: {
30618
+ approved_at: string | null;
30619
+ approved_by: string | null;
30620
+ contract_hours: number;
30621
+ created_at: string;
30622
+ employee_id: string;
30623
+ id: string;
30624
+ locked: boolean;
30625
+ monteur_toelichting: string | null;
30626
+ notes: string | null;
30627
+ planned_hours: number;
30628
+ status: string;
30629
+ submitted_at: string | null;
30630
+ updated_at: string;
30631
+ variance_hours: number;
30632
+ week_start: string;
30633
+ };
30634
+ SetofOptions: {
30635
+ from: "*";
30636
+ to: "time_log_week_approvals";
30637
+ isOneToOne: true;
30638
+ isSetofReturn: false;
30639
+ };
30640
+ };
30641
+ vakantie_dagen_gebruikt: {
30642
+ Args: {
30643
+ _user_id: string;
30644
+ _year: number;
30645
+ };
30646
+ Returns: number;
30647
+ };
30648
+ vakantie_overuren: {
30649
+ Args: {
30650
+ _user_id: string;
30651
+ _year?: number;
30652
+ };
30653
+ Returns: number;
30654
+ };
30655
+ vakantie_saldo: {
30656
+ Args: {
30657
+ _user_id: string;
30658
+ _year?: number;
30659
+ };
30660
+ Returns: {
30661
+ day_hours: number;
30662
+ earned_from_overtime_days: number;
30663
+ entitlement_days: number;
30664
+ hours_to_next_day: number;
30665
+ overtime_hours: number;
30666
+ overtime_remainder_hours: number;
30667
+ paid_out_days: number;
30668
+ remaining_days: number;
30669
+ used_days: number;
30670
+ }[];
30671
+ };
30672
+ vakantie_saldo_overzicht: {
30673
+ Args: {
30674
+ _year?: number;
30675
+ };
30676
+ Returns: {
30677
+ day_hours: number;
30678
+ earned_from_overtime_days: number;
30679
+ entitlement_days: number;
30680
+ hours_to_next_day: number;
30681
+ overtime_hours: number;
30682
+ overtime_remainder_hours: number;
30683
+ paid_out_days: number;
30684
+ remaining_days: number;
30685
+ used_days: number;
30686
+ user_id: string;
30687
+ }[];
30688
+ };
27740
30689
  voorraad_cleanup_old_rows: {
27741
30690
  Args: never;
27742
30691
  Returns: import("./types").Json;
@@ -27779,6 +30728,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27779
30728
  };
27780
30729
  Returns: import("./types").Json;
27781
30730
  };
30731
+ wo_list_offerte_requests: {
30732
+ Args: {
30733
+ _status?: string;
30734
+ };
30735
+ Returns: import("./types").Json;
30736
+ };
30737
+ wo_list_proposals: {
30738
+ Args: {
30739
+ _status?: string;
30740
+ };
30741
+ Returns: import("./types").Json;
30742
+ };
30743
+ wo_process_offerte_request: {
30744
+ Args: {
30745
+ _queue_id: string;
30746
+ };
30747
+ Returns: import("./types").Json;
30748
+ };
30749
+ wo_process_proposal: {
30750
+ Args: {
30751
+ _id: string;
30752
+ _overrides?: import("./types").Json;
30753
+ };
30754
+ Returns: import("./types").Json;
30755
+ };
30756
+ wo_reject_offerte_request: {
30757
+ Args: {
30758
+ _queue_id: string;
30759
+ _reden?: string;
30760
+ };
30761
+ Returns: import("./types").Json;
30762
+ };
30763
+ wo_reject_proposal: {
30764
+ Args: {
30765
+ _id: string;
30766
+ _reden?: string;
30767
+ };
30768
+ Returns: import("./types").Json;
30769
+ };
27782
30770
  wo_set_status: {
27783
30771
  Args: {
27784
30772
  _reason?: string;