@flowselections/logistiek-engine 1.0.53 → 1.0.89

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