@flowselections/floriday-verkoop-module 1.0.93 → 1.0.94

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 (112) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  5. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  7. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  8. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  9. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  10. package/dist-lib/components/ui/dropdown-menu.d.ts +9 -0
  11. package/dist-lib/components/ui/dropdown-menu.d.ts.map +1 -0
  12. package/dist-lib/components/ui/dropdown-menu.js +14 -0
  13. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  14. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +4 -0
  16. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -0
  17. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +95 -0
  18. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  19. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  20. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  21. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  22. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +5 -0
  23. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +1 -0
  24. package/dist-lib/components/verkoop/CreateOrderDialog.js +33 -0
  25. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  28. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  30. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  32. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/FloridayStageLine.d.ts +2 -2
  34. package/dist-lib/components/verkoop/FloridayStageLine.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  36. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  38. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  40. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  41. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  42. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  43. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  44. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  45. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts +1 -1
  46. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts.map +1 -1
  47. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  48. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  49. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  50. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  51. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts +1 -1
  52. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts.map +1 -1
  53. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  54. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  55. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  56. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  57. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +6 -6
  58. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  59. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  60. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  61. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  62. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  63. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  64. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -2
  65. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  66. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  67. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  68. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  69. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  70. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  71. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  72. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  73. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  74. package/dist-lib/integrations/supabase/client.js +1 -1
  75. package/dist-lib/integrations/supabase/client.server.js +1 -1
  76. package/dist-lib/integrations/supabase/types.d.ts +74 -0
  77. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  78. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts +4 -0
  79. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts.map +1 -0
  80. package/dist-lib/lib/cron/mirror-floriday-orders.js +23 -0
  81. package/dist-lib/lib/cron/push-order-statuses.d.ts +4 -0
  82. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +1 -0
  83. package/dist-lib/lib/cron/push-order-statuses.js +23 -0
  84. package/dist-lib/lib/floriday/floriday.server.d.ts +14 -0
  85. package/dist-lib/lib/floriday/floriday.server.d.ts.map +1 -0
  86. package/dist-lib/lib/floriday/floriday.server.js +92 -0
  87. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +4736 -0
  88. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +1 -0
  89. package/dist-lib/lib/floriday/sales-orders.functions.js +193 -0
  90. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +77581 -0
  91. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -0
  92. package/dist-lib/lib/floriday-auto-fulfillment.functions.js +65 -0
  93. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +21 -0
  94. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +1 -0
  95. package/dist-lib/lib/floriday-auto-fulfillment.server.js +352 -0
  96. package/dist-lib/lib/floriday-status-sync.server.d.ts +14 -0
  97. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +1 -0
  98. package/dist-lib/lib/floriday-status-sync.server.js +130 -0
  99. package/dist-lib/lib/tradeitems.functions.d.ts +12 -1117
  100. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  101. package/dist-lib/lib/useBufferEvents.d.ts +2 -2
  102. package/dist-lib/lib/useBufferEvents.d.ts.map +1 -1
  103. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts +2 -2
  104. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts.map +1 -1
  105. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
  106. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
  107. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
  108. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  109. package/package.json +2 -2
  110. package/dist-lib/lib/order-cart-count.server.d.ts +0 -8
  111. package/dist-lib/lib/order-cart-count.server.d.ts.map +0 -1
  112. package/dist-lib/lib/order-cart-count.server.js +0 -69
@@ -8551,22 +8551,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8551
8551
  Row: {
8552
8552
  created_at: string;
8553
8553
  created_by: string | null;
8554
- customer_address: string | null;
8555
- customer_attention: string | null;
8556
- customer_city: string | null;
8557
8554
  customer_id: string | null;
8558
8555
  customer_name: string | null;
8559
- customer_postal_code: string | null;
8560
- customer_vat_number: string | null;
8561
- debtor_number: string | null;
8562
8556
  due_date: string | null;
8563
- execution_date: string | null;
8564
8557
  id: string;
8565
8558
  invoice_date: string;
8566
8559
  invoice_number: string | null;
8567
8560
  note: string | null;
8568
- payment_term_days: number;
8569
- reference: string | null;
8570
8561
  source_number: string | null;
8571
8562
  source_ref: string | null;
8572
8563
  source_type: string;
@@ -8576,27 +8567,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8576
8567
  updated_at: string;
8577
8568
  vat_cents: number;
8578
8569
  vat_rate: number;
8579
- work_address: string | null;
8580
8570
  };
8581
8571
  Insert: {
8582
8572
  created_at?: string;
8583
8573
  created_by?: string | null;
8584
- customer_address?: string | null;
8585
- customer_attention?: string | null;
8586
- customer_city?: string | null;
8587
8574
  customer_id?: string | null;
8588
8575
  customer_name?: string | null;
8589
- customer_postal_code?: string | null;
8590
- customer_vat_number?: string | null;
8591
- debtor_number?: string | null;
8592
8576
  due_date?: string | null;
8593
- execution_date?: string | null;
8594
8577
  id?: string;
8595
8578
  invoice_date?: string;
8596
8579
  invoice_number?: string | null;
8597
8580
  note?: string | null;
8598
- payment_term_days?: number;
8599
- reference?: string | null;
8600
8581
  source_number?: string | null;
8601
8582
  source_ref?: string | null;
8602
8583
  source_type?: string;
@@ -8606,27 +8587,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8606
8587
  updated_at?: string;
8607
8588
  vat_cents?: number;
8608
8589
  vat_rate?: number;
8609
- work_address?: string | null;
8610
8590
  };
8611
8591
  Update: {
8612
8592
  created_at?: string;
8613
8593
  created_by?: string | null;
8614
- customer_address?: string | null;
8615
- customer_attention?: string | null;
8616
- customer_city?: string | null;
8617
8594
  customer_id?: string | null;
8618
8595
  customer_name?: string | null;
8619
- customer_postal_code?: string | null;
8620
- customer_vat_number?: string | null;
8621
- debtor_number?: string | null;
8622
8596
  due_date?: string | null;
8623
- execution_date?: string | null;
8624
8597
  id?: string;
8625
8598
  invoice_date?: string;
8626
8599
  invoice_number?: string | null;
8627
8600
  note?: string | null;
8628
- payment_term_days?: number;
8629
- reference?: string | null;
8630
8601
  source_number?: string | null;
8631
8602
  source_ref?: string | null;
8632
8603
  source_type?: string;
@@ -8636,7 +8607,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8636
8607
  updated_at?: string;
8637
8608
  vat_cents?: number;
8638
8609
  vat_rate?: number;
8639
- work_address?: string | null;
8640
8610
  };
8641
8611
  Relationships: [{
8642
8612
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9408,42 +9378,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9408
9378
  };
9409
9379
  Relationships: [];
9410
9380
  };
9411
- itk_offerte_voorstel_status: {
9412
- Row: {
9413
- ai_concept: import("../integrations/supabase/types.js").Json | null;
9414
- created_at: string;
9415
- id: string;
9416
- offerte_id: string | null;
9417
- proposal_id: string;
9418
- seen_at: string | null;
9419
- updated_at: string;
9420
- };
9421
- Insert: {
9422
- ai_concept?: import("../integrations/supabase/types.js").Json | null;
9423
- created_at?: string;
9424
- id?: string;
9425
- offerte_id?: string | null;
9426
- proposal_id: string;
9427
- seen_at?: string | null;
9428
- updated_at?: string;
9429
- };
9430
- Update: {
9431
- ai_concept?: import("../integrations/supabase/types.js").Json | null;
9432
- created_at?: string;
9433
- id?: string;
9434
- offerte_id?: string | null;
9435
- proposal_id?: string;
9436
- seen_at?: string | null;
9437
- updated_at?: string;
9438
- };
9439
- Relationships: [{
9440
- foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9441
- columns: ["offerte_id"];
9442
- isOneToOne: false;
9443
- referencedRelation: "itk_offertes";
9444
- referencedColumns: ["id"];
9445
- }];
9446
- };
9447
9381
  itk_offerte_werkbon_queue: {
9448
9382
  Row: {
9449
9383
  bron_werkbon_id: string | null;
@@ -9764,8 +9698,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9764
9698
  };
9765
9699
  leave_requests: {
9766
9700
  Row: {
9767
- cancellation_requested_at: string | null;
9768
- cancellation_status: string | null;
9769
9701
  created_at: string;
9770
9702
  decided_at: string | null;
9771
9703
  decided_by: string | null;
@@ -9776,7 +9708,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9776
9708
  leave_type: string;
9777
9709
  monteur_id: string | null;
9778
9710
  reason: string | null;
9779
- reden_afkeur: string | null;
9780
9711
  start_date: string;
9781
9712
  start_time: string | null;
9782
9713
  status: string;
@@ -9784,8 +9715,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9784
9715
  user_id: string;
9785
9716
  };
9786
9717
  Insert: {
9787
- cancellation_requested_at?: string | null;
9788
- cancellation_status?: string | null;
9789
9718
  created_at?: string;
9790
9719
  decided_at?: string | null;
9791
9720
  decided_by?: string | null;
@@ -9796,7 +9725,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9796
9725
  leave_type?: string;
9797
9726
  monteur_id?: string | null;
9798
9727
  reason?: string | null;
9799
- reden_afkeur?: string | null;
9800
9728
  start_date: string;
9801
9729
  start_time?: string | null;
9802
9730
  status?: string;
@@ -9804,8 +9732,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9804
9732
  user_id: string;
9805
9733
  };
9806
9734
  Update: {
9807
- cancellation_requested_at?: string | null;
9808
- cancellation_status?: string | null;
9809
9735
  created_at?: string;
9810
9736
  decided_at?: string | null;
9811
9737
  decided_by?: string | null;
@@ -9816,7 +9742,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9816
9742
  leave_type?: string;
9817
9743
  monteur_id?: string | null;
9818
9744
  reason?: string | null;
9819
- reden_afkeur?: string | null;
9820
9745
  start_date?: string;
9821
9746
  start_time?: string | null;
9822
9747
  status?: string;
@@ -11043,72 +10968,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11043
10968
  };
11044
10969
  Relationships: [];
11045
10970
  };
11046
- logistics_packing_deviations: {
11047
- Row: {
11048
- auto_fixed_at: string | null;
11049
- created_at: string;
11050
- dev_key: string;
11051
- first_seen_at: string;
11052
- floriday_packing: import("../integrations/supabase/types.js").Json;
11053
- human_reason: string | null;
11054
- id: string;
11055
- last_seen_at: string;
11056
- local_packing: import("../integrations/supabase/types.js").Json;
11057
- needs_human: boolean;
11058
- order_id: string | null;
11059
- order_item_id: string | null;
11060
- order_number: string | null;
11061
- product_id: string | null;
11062
- product_name: string | null;
11063
- resolved_at: string | null;
11064
- scope: string;
11065
- trade_item_id: string | null;
11066
- updated_at: string;
11067
- };
11068
- Insert: {
11069
- auto_fixed_at?: string | null;
11070
- created_at?: string;
11071
- dev_key: string;
11072
- first_seen_at?: string;
11073
- floriday_packing?: import("../integrations/supabase/types.js").Json;
11074
- human_reason?: string | null;
11075
- id?: string;
11076
- last_seen_at?: string;
11077
- local_packing?: import("../integrations/supabase/types.js").Json;
11078
- needs_human?: boolean;
11079
- order_id?: string | null;
11080
- order_item_id?: string | null;
11081
- order_number?: string | null;
11082
- product_id?: string | null;
11083
- product_name?: string | null;
11084
- resolved_at?: string | null;
11085
- scope: string;
11086
- trade_item_id?: string | null;
11087
- updated_at?: string;
11088
- };
11089
- Update: {
11090
- auto_fixed_at?: string | null;
11091
- created_at?: string;
11092
- dev_key?: string;
11093
- first_seen_at?: string;
11094
- floriday_packing?: import("../integrations/supabase/types.js").Json;
11095
- human_reason?: string | null;
11096
- id?: string;
11097
- last_seen_at?: string;
11098
- local_packing?: import("../integrations/supabase/types.js").Json;
11099
- needs_human?: boolean;
11100
- order_id?: string | null;
11101
- order_item_id?: string | null;
11102
- order_number?: string | null;
11103
- product_id?: string | null;
11104
- product_name?: string | null;
11105
- resolved_at?: string | null;
11106
- scope?: string;
11107
- trade_item_id?: string | null;
11108
- updated_at?: string;
11109
- };
11110
- Relationships: [];
11111
- };
11112
10971
  logistics_pick_data_requests: {
11113
10972
  Row: {
11114
10973
  actions: import("../integrations/supabase/types.js").Json;
@@ -11352,10 +11211,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11352
11211
  id: boolean;
11353
11212
  last_checked: number;
11354
11213
  last_duration_ms: number;
11355
- last_mode: string | null;
11356
11214
  last_run_at: string | null;
11357
11215
  last_updated: number;
11358
- last_would_change: number | null;
11359
11216
  pending: boolean;
11360
11217
  requested_at: string | null;
11361
11218
  updated_at: string;
@@ -11365,10 +11222,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11365
11222
  id?: boolean;
11366
11223
  last_checked?: number;
11367
11224
  last_duration_ms?: number;
11368
- last_mode?: string | null;
11369
11225
  last_run_at?: string | null;
11370
11226
  last_updated?: number;
11371
- last_would_change?: number | null;
11372
11227
  pending?: boolean;
11373
11228
  requested_at?: string | null;
11374
11229
  updated_at?: string;
@@ -11378,10 +11233,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11378
11233
  id?: boolean;
11379
11234
  last_checked?: number;
11380
11235
  last_duration_ms?: number;
11381
- last_mode?: string | null;
11382
11236
  last_run_at?: string | null;
11383
11237
  last_updated?: number;
11384
- last_would_change?: number | null;
11385
11238
  pending?: boolean;
11386
11239
  requested_at?: string | null;
11387
11240
  updated_at?: string;
@@ -13377,42 +13230,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13377
13230
  };
13378
13231
  Relationships: [];
13379
13232
  };
13380
- monteur_contracten: {
13381
- Row: {
13382
- contract_type: string;
13383
- created_at: string;
13384
- days_per_week: number;
13385
- hours_per_week: number;
13386
- id: string;
13387
- updated_at: string;
13388
- user_id: string;
13389
- vacation_day_hours: number;
13390
- vacation_days_per_year: number;
13391
- };
13392
- Insert: {
13393
- contract_type?: string;
13394
- created_at?: string;
13395
- days_per_week?: number;
13396
- hours_per_week?: number;
13397
- id?: string;
13398
- updated_at?: string;
13399
- user_id: string;
13400
- vacation_day_hours?: number;
13401
- vacation_days_per_year?: number;
13402
- };
13403
- Update: {
13404
- contract_type?: string;
13405
- created_at?: string;
13406
- days_per_week?: number;
13407
- hours_per_week?: number;
13408
- id?: string;
13409
- updated_at?: string;
13410
- user_id?: string;
13411
- vacation_day_hours?: number;
13412
- vacation_days_per_year?: number;
13413
- };
13414
- Relationships: [];
13415
- };
13416
13233
  nmbrs_component_mapping: {
13417
13234
  Row: {
13418
13235
  created_at: string;
@@ -13892,9 +13709,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13892
13709
  id: string;
13893
13710
  items: import("../integrations/supabase/types.js").Json;
13894
13711
  notes: string | null;
13895
- order_creation_error: string | null;
13896
- order_creation_failed_at: string | null;
13897
- order_id: string | null;
13898
13712
  order_number: string | null;
13899
13713
  recipient_id: string;
13900
13714
  total_amount: number;
@@ -13909,9 +13723,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13909
13723
  id?: string;
13910
13724
  items?: import("../integrations/supabase/types.js").Json;
13911
13725
  notes?: string | null;
13912
- order_creation_error?: string | null;
13913
- order_creation_failed_at?: string | null;
13914
- order_id?: string | null;
13915
13726
  order_number?: string | null;
13916
13727
  recipient_id: string;
13917
13728
  total_amount?: number;
@@ -13926,9 +13737,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13926
13737
  id?: string;
13927
13738
  items?: import("../integrations/supabase/types.js").Json;
13928
13739
  notes?: string | null;
13929
- order_creation_error?: string | null;
13930
- order_creation_failed_at?: string | null;
13931
- order_id?: string | null;
13932
13740
  order_number?: string | null;
13933
13741
  recipient_id?: string;
13934
13742
  total_amount?: number;
@@ -13945,12 +13753,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13945
13753
  isOneToOne: false;
13946
13754
  referencedRelation: "customers";
13947
13755
  referencedColumns: ["id"];
13948
- }, {
13949
- foreignKeyName: "offer_orders_order_id_fkey";
13950
- columns: ["order_id"];
13951
- isOneToOne: false;
13952
- referencedRelation: "orders";
13953
- referencedColumns: ["id"];
13954
13756
  }, {
13955
13757
  foreignKeyName: "offer_orders_recipient_id_fkey";
13956
13758
  columns: ["recipient_id"];
@@ -14091,30 +13893,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14091
13893
  };
14092
13894
  Relationships: [];
14093
13895
  };
14094
- order_block_notifications: {
14095
- Row: {
14096
- id: string;
14097
- notified_at: string;
14098
- order_id: string;
14099
- reason: string | null;
14100
- reason_key: string;
14101
- };
14102
- Insert: {
14103
- id?: string;
14104
- notified_at?: string;
14105
- order_id: string;
14106
- reason?: string | null;
14107
- reason_key: string;
14108
- };
14109
- Update: {
14110
- id?: string;
14111
- notified_at?: string;
14112
- order_id?: string;
14113
- reason?: string | null;
14114
- reason_key?: string;
14115
- };
14116
- Relationships: [];
14117
- };
14118
13896
  order_buffers: {
14119
13897
  Row: {
14120
13898
  buffer_key: string;
@@ -14584,8 +14362,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14584
14362
  id: string;
14585
14363
  layers_per_cart: number | null;
14586
14364
  order_id: string;
14587
- packing_locked_at: string | null;
14588
- packing_locked_by: string | null;
14589
14365
  plants_per_crate: number | null;
14590
14366
  product_id: string | null;
14591
14367
  product_name: string;
@@ -14600,8 +14376,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14600
14376
  id?: string;
14601
14377
  layers_per_cart?: number | null;
14602
14378
  order_id: string;
14603
- packing_locked_at?: string | null;
14604
- packing_locked_by?: string | null;
14605
14379
  plants_per_crate?: number | null;
14606
14380
  product_id?: string | null;
14607
14381
  product_name: string;
@@ -14616,8 +14390,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14616
14390
  id?: string;
14617
14391
  layers_per_cart?: number | null;
14618
14392
  order_id?: string;
14619
- packing_locked_at?: string | null;
14620
- packing_locked_by?: string | null;
14621
14393
  plants_per_crate?: number | null;
14622
14394
  product_id?: string | null;
14623
14395
  product_name?: string;
@@ -16131,195 +15903,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16131
15903
  referencedColumns: ["id"];
16132
15904
  }];
16133
15905
  };
16134
- planning_monteur_day_locations: {
16135
- Row: {
16136
- created_at: string;
16137
- day: string;
16138
- end_at: string;
16139
- id: string;
16140
- monteur_id: string;
16141
- start_from: string;
16142
- updated_at: string;
16143
- };
16144
- Insert: {
16145
- created_at?: string;
16146
- day: string;
16147
- end_at?: string;
16148
- id?: string;
16149
- monteur_id: string;
16150
- start_from?: string;
16151
- updated_at?: string;
16152
- };
16153
- Update: {
16154
- created_at?: string;
16155
- day?: string;
16156
- end_at?: string;
16157
- id?: string;
16158
- monteur_id?: string;
16159
- start_from?: string;
16160
- updated_at?: string;
16161
- };
16162
- Relationships: [];
16163
- };
16164
- planning_monteur_locations: {
16165
- Row: {
16166
- created_at: string;
16167
- default_end: string;
16168
- default_start: string;
16169
- end_address: string | null;
16170
- home_address: string | null;
16171
- id: string;
16172
- monteur_id: string;
16173
- start_address: string | null;
16174
- updated_at: string;
16175
- };
16176
- Insert: {
16177
- created_at?: string;
16178
- default_end?: string;
16179
- default_start?: string;
16180
- end_address?: string | null;
16181
- home_address?: string | null;
16182
- id?: string;
16183
- monteur_id: string;
16184
- start_address?: string | null;
16185
- updated_at?: string;
16186
- };
16187
- Update: {
16188
- created_at?: string;
16189
- default_end?: string;
16190
- default_start?: string;
16191
- end_address?: string | null;
16192
- home_address?: string | null;
16193
- id?: string;
16194
- monteur_id?: string;
16195
- start_address?: string | null;
16196
- updated_at?: string;
16197
- };
16198
- Relationships: [];
16199
- };
16200
- planning_settings: {
16201
- Row: {
16202
- company_address: string | null;
16203
- created_at: string;
16204
- id: string;
16205
- singleton: boolean;
16206
- updated_at: string;
16207
- };
16208
- Insert: {
16209
- company_address?: string | null;
16210
- created_at?: string;
16211
- id?: string;
16212
- singleton?: boolean;
16213
- updated_at?: string;
16214
- };
16215
- Update: {
16216
- company_address?: string | null;
16217
- created_at?: string;
16218
- id?: string;
16219
- singleton?: boolean;
16220
- updated_at?: string;
16221
- };
16222
- Relationships: [];
16223
- };
16224
- planning_travel_legs: {
16225
- Row: {
16226
- after_min: number;
16227
- after_reason: string | null;
16228
- after_status: string;
16229
- after_to_address: string | null;
16230
- before_from_address: string | null;
16231
- before_min: number;
16232
- before_reason: string | null;
16233
- before_status: string;
16234
- computed_at: string;
16235
- computed_end_at: string | null;
16236
- computed_start_at: string | null;
16237
- created_at: string;
16238
- id: string;
16239
- monteur_id: string;
16240
- planning_item_id: string;
16241
- shared_after_item_id: string | null;
16242
- shared_before_item_id: string | null;
16243
- updated_at: string;
16244
- };
16245
- Insert: {
16246
- after_min?: number;
16247
- after_reason?: string | null;
16248
- after_status?: string;
16249
- after_to_address?: string | null;
16250
- before_from_address?: string | null;
16251
- before_min?: number;
16252
- before_reason?: string | null;
16253
- before_status?: string;
16254
- computed_at?: string;
16255
- computed_end_at?: string | null;
16256
- computed_start_at?: string | null;
16257
- created_at?: string;
16258
- id?: string;
16259
- monteur_id: string;
16260
- planning_item_id: string;
16261
- shared_after_item_id?: string | null;
16262
- shared_before_item_id?: string | null;
16263
- updated_at?: string;
16264
- };
16265
- Update: {
16266
- after_min?: number;
16267
- after_reason?: string | null;
16268
- after_status?: string;
16269
- after_to_address?: string | null;
16270
- before_from_address?: string | null;
16271
- before_min?: number;
16272
- before_reason?: string | null;
16273
- before_status?: string;
16274
- computed_at?: string;
16275
- computed_end_at?: string | null;
16276
- computed_start_at?: string | null;
16277
- created_at?: string;
16278
- id?: string;
16279
- monteur_id?: string;
16280
- planning_item_id?: string;
16281
- shared_after_item_id?: string | null;
16282
- shared_before_item_id?: string | null;
16283
- updated_at?: string;
16284
- };
16285
- Relationships: [{
16286
- foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16287
- columns: ["planning_item_id"];
16288
- isOneToOne: false;
16289
- referencedRelation: "planning_items";
16290
- referencedColumns: ["id"];
16291
- }, {
16292
- foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16293
- columns: ["planning_item_id"];
16294
- isOneToOne: false;
16295
- referencedRelation: "planning_overview";
16296
- referencedColumns: ["id"];
16297
- }, {
16298
- foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16299
- columns: ["shared_after_item_id"];
16300
- isOneToOne: false;
16301
- referencedRelation: "planning_items";
16302
- referencedColumns: ["id"];
16303
- }, {
16304
- foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16305
- columns: ["shared_after_item_id"];
16306
- isOneToOne: false;
16307
- referencedRelation: "planning_overview";
16308
- referencedColumns: ["id"];
16309
- }, {
16310
- foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16311
- columns: ["shared_before_item_id"];
16312
- isOneToOne: false;
16313
- referencedRelation: "planning_items";
16314
- referencedColumns: ["id"];
16315
- }, {
16316
- foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16317
- columns: ["shared_before_item_id"];
16318
- isOneToOne: false;
16319
- referencedRelation: "planning_overview";
16320
- referencedColumns: ["id"];
16321
- }];
16322
- };
16323
15906
  price_list_rows: {
16324
15907
  Row: {
16325
15908
  action: string;
@@ -17603,8 +17186,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17603
17186
  crates_per_layer: number;
17604
17187
  created_at: string;
17605
17188
  custom_fields: import("../integrations/supabase/types.js").Json;
17606
- floriday_packing_confirmed_at: string | null;
17607
- floriday_packing_source: string | null;
17608
17189
  floriday_trade_item_id: string | null;
17609
17190
  fust_type_id: string | null;
17610
17191
  id: string;
@@ -17633,8 +17214,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17633
17214
  crates_per_layer?: number;
17634
17215
  created_at?: string;
17635
17216
  custom_fields?: import("../integrations/supabase/types.js").Json;
17636
- floriday_packing_confirmed_at?: string | null;
17637
- floriday_packing_source?: string | null;
17638
17217
  floriday_trade_item_id?: string | null;
17639
17218
  fust_type_id?: string | null;
17640
17219
  id?: string;
@@ -17663,8 +17242,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17663
17242
  crates_per_layer?: number;
17664
17243
  created_at?: string;
17665
17244
  custom_fields?: import("../integrations/supabase/types.js").Json;
17666
- floriday_packing_confirmed_at?: string | null;
17667
- floriday_packing_source?: string | null;
17668
17245
  floriday_trade_item_id?: string | null;
17669
17246
  fust_type_id?: string | null;
17670
17247
  id?: string;
@@ -17764,7 +17341,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17764
17341
  id: string;
17765
17342
  is_superadmin: boolean;
17766
17343
  notification_preferences: import("../integrations/supabase/types.js").Json;
17767
- phone: string | null;
17768
17344
  tenant_id: string | null;
17769
17345
  updated_at: string;
17770
17346
  };
@@ -17777,7 +17353,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17777
17353
  id: string;
17778
17354
  is_superadmin?: boolean;
17779
17355
  notification_preferences?: import("../integrations/supabase/types.js").Json;
17780
- phone?: string | null;
17781
17356
  tenant_id?: string | null;
17782
17357
  updated_at?: string;
17783
17358
  };
@@ -17790,7 +17365,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17790
17365
  id?: string;
17791
17366
  is_superadmin?: boolean;
17792
17367
  notification_preferences?: import("../integrations/supabase/types.js").Json;
17793
- phone?: string | null;
17794
17368
  tenant_id?: string | null;
17795
17369
  updated_at?: string;
17796
17370
  };
@@ -19534,52 +19108,40 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19534
19108
  Row: {
19535
19109
  approved_at: string | null;
19536
19110
  approved_by: string | null;
19537
- contract_hours: number;
19538
19111
  created_at: string;
19539
19112
  employee_id: string;
19540
19113
  id: string;
19541
19114
  locked: boolean;
19542
- monteur_toelichting: string | null;
19543
19115
  notes: string | null;
19544
- planned_hours: number;
19545
19116
  status: string;
19546
19117
  submitted_at: string | null;
19547
19118
  updated_at: string;
19548
- variance_hours: number;
19549
19119
  week_start: string;
19550
19120
  };
19551
19121
  Insert: {
19552
19122
  approved_at?: string | null;
19553
19123
  approved_by?: string | null;
19554
- contract_hours?: number;
19555
19124
  created_at?: string;
19556
19125
  employee_id: string;
19557
19126
  id?: string;
19558
19127
  locked?: boolean;
19559
- monteur_toelichting?: string | null;
19560
19128
  notes?: string | null;
19561
- planned_hours?: number;
19562
19129
  status?: string;
19563
19130
  submitted_at?: string | null;
19564
19131
  updated_at?: string;
19565
- variance_hours?: number;
19566
19132
  week_start: string;
19567
19133
  };
19568
19134
  Update: {
19569
19135
  approved_at?: string | null;
19570
19136
  approved_by?: string | null;
19571
- contract_hours?: number;
19572
19137
  created_at?: string;
19573
19138
  employee_id?: string;
19574
19139
  id?: string;
19575
19140
  locked?: boolean;
19576
- monteur_toelichting?: string | null;
19577
19141
  notes?: string | null;
19578
- planned_hours?: number;
19579
19142
  status?: string;
19580
19143
  submitted_at?: string | null;
19581
19144
  updated_at?: string;
19582
- variance_hours?: number;
19583
19145
  week_start?: string;
19584
19146
  };
19585
19147
  Relationships: [{
@@ -20913,64 +20475,25 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20913
20475
  referencedColumns: ["id"];
20914
20476
  }];
20915
20477
  };
20916
- uren_beschikbare_dagen: {
20478
+ uren_cao_profiles: {
20917
20479
  Row: {
20918
- bron: string;
20480
+ break_minutes: number | null;
20481
+ contract_hours_per_week: number;
20919
20482
  created_at: string;
20920
- datum: string;
20921
- eind_tijd: string | null;
20922
- half_hour_slots: number[];
20483
+ daily_threshold_hours: number | null;
20923
20484
  id: string;
20485
+ include_travel: boolean | null;
20924
20486
  monteur_id: string;
20925
- start_tijd: string | null;
20487
+ ov02_percentage: number | null;
20488
+ ov03_percentage: number | null;
20926
20489
  updated_at: string;
20927
- uren: number;
20490
+ weekly_threshold_hours: number | null;
20491
+ workday_end: string | null;
20492
+ workday_start: string | null;
20928
20493
  };
20929
20494
  Insert: {
20930
- bron?: string;
20931
- created_at?: string;
20932
- datum: string;
20933
- eind_tijd?: string | null;
20934
- half_hour_slots?: number[];
20935
- id?: string;
20936
- monteur_id: string;
20937
- start_tijd?: string | null;
20938
- updated_at?: string;
20939
- uren?: number;
20940
- };
20941
- Update: {
20942
- bron?: string;
20943
- created_at?: string;
20944
- datum?: string;
20945
- eind_tijd?: string | null;
20946
- half_hour_slots?: number[];
20947
- id?: string;
20948
- monteur_id?: string;
20949
- start_tijd?: string | null;
20950
- updated_at?: string;
20951
- uren?: number;
20952
- };
20953
- Relationships: [];
20954
- };
20955
- uren_cao_profiles: {
20956
- Row: {
20957
- break_minutes: number | null;
20958
- contract_hours_per_week: number;
20959
- created_at: string;
20960
- daily_threshold_hours: number | null;
20961
- id: string;
20962
- include_travel: boolean | null;
20963
- monteur_id: string;
20964
- ov02_percentage: number | null;
20965
- ov03_percentage: number | null;
20966
- updated_at: string;
20967
- weekly_threshold_hours: number | null;
20968
- workday_end: string | null;
20969
- workday_start: string | null;
20970
- };
20971
- Insert: {
20972
- break_minutes?: number | null;
20973
- contract_hours_per_week?: number;
20495
+ break_minutes?: number | null;
20496
+ contract_hours_per_week?: number;
20974
20497
  created_at?: string;
20975
20498
  daily_threshold_hours?: number | null;
20976
20499
  id?: string;
@@ -21090,123 +20613,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21090
20613
  };
21091
20614
  Relationships: [];
21092
20615
  };
21093
- uren_maandafsluitingen: {
21094
- Row: {
21095
- afgesloten_at: string | null;
21096
- afgesloten_door: string | null;
21097
- contract_minuten: number;
21098
- correctie_reden: string | null;
21099
- created_at: string;
21100
- gecorrigeerd_at: string | null;
21101
- gecorrigeerd_door: string | null;
21102
- gewerkte_minuten: number;
21103
- id: string;
21104
- maand: string;
21105
- min_minuten: number;
21106
- monteur_id: string;
21107
- netto_verschil_minuten: number;
21108
- normaal_uitbetaald_minuten: number;
21109
- overuren_minuten: number;
21110
- plus_minuten: number;
21111
- status: string;
21112
- totaal_uitbetaald_minuten: number;
21113
- updated_at: string;
21114
- };
21115
- Insert: {
21116
- afgesloten_at?: string | null;
21117
- afgesloten_door?: string | null;
21118
- contract_minuten?: number;
21119
- correctie_reden?: string | null;
21120
- created_at?: string;
21121
- gecorrigeerd_at?: string | null;
21122
- gecorrigeerd_door?: string | null;
21123
- gewerkte_minuten?: number;
21124
- id?: string;
21125
- maand: string;
21126
- min_minuten?: number;
21127
- monteur_id: string;
21128
- netto_verschil_minuten?: number;
21129
- normaal_uitbetaald_minuten?: number;
21130
- overuren_minuten?: number;
21131
- plus_minuten?: number;
21132
- status?: string;
21133
- totaal_uitbetaald_minuten?: number;
21134
- updated_at?: string;
21135
- };
21136
- Update: {
21137
- afgesloten_at?: string | null;
21138
- afgesloten_door?: string | null;
21139
- contract_minuten?: number;
21140
- correctie_reden?: string | null;
21141
- created_at?: string;
21142
- gecorrigeerd_at?: string | null;
21143
- gecorrigeerd_door?: string | null;
21144
- gewerkte_minuten?: number;
21145
- id?: string;
21146
- maand?: string;
21147
- min_minuten?: number;
21148
- monteur_id?: string;
21149
- netto_verschil_minuten?: number;
21150
- normaal_uitbetaald_minuten?: number;
21151
- overuren_minuten?: number;
21152
- plus_minuten?: number;
21153
- status?: string;
21154
- totaal_uitbetaald_minuten?: number;
21155
- updated_at?: string;
21156
- };
21157
- Relationships: [];
21158
- };
21159
- uren_overuren_verklaringen: {
21160
- Row: {
21161
- beoordeeld_door: string | null;
21162
- beoordeeld_op: string | null;
21163
- created_at: string;
21164
- datum: string;
21165
- eind_tijd: string | null;
21166
- id: string;
21167
- ingediend_at: string;
21168
- monteur_id: string;
21169
- overuren: number;
21170
- reden_afkeur: string | null;
21171
- start_tijd: string | null;
21172
- status: string;
21173
- toelichting: string;
21174
- updated_at: string;
21175
- };
21176
- Insert: {
21177
- beoordeeld_door?: string | null;
21178
- beoordeeld_op?: string | null;
21179
- created_at?: string;
21180
- datum: string;
21181
- eind_tijd?: string | null;
21182
- id?: string;
21183
- ingediend_at?: string;
21184
- monteur_id: string;
21185
- overuren: number;
21186
- reden_afkeur?: string | null;
21187
- start_tijd?: string | null;
21188
- status?: string;
21189
- toelichting: string;
21190
- updated_at?: string;
21191
- };
21192
- Update: {
21193
- beoordeeld_door?: string | null;
21194
- beoordeeld_op?: string | null;
21195
- created_at?: string;
21196
- datum?: string;
21197
- eind_tijd?: string | null;
21198
- id?: string;
21199
- ingediend_at?: string;
21200
- monteur_id?: string;
21201
- overuren?: number;
21202
- reden_afkeur?: string | null;
21203
- start_tijd?: string | null;
21204
- status?: string;
21205
- toelichting?: string;
21206
- updated_at?: string;
21207
- };
21208
- Relationships: [];
21209
- };
21210
20616
  uren_settings: {
21211
20617
  Row: {
21212
20618
  break_minutes: number;
@@ -21252,75 +20658,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21252
20658
  };
21253
20659
  Relationships: [];
21254
20660
  };
21255
- uren_standaardweek: {
21256
- Row: {
21257
- created_at: string;
21258
- eind_slot: number;
21259
- id: string;
21260
- monteur_id: string;
21261
- start_slot: number;
21262
- updated_at: string;
21263
- weekdag: number;
21264
- };
21265
- Insert: {
21266
- created_at?: string;
21267
- eind_slot: number;
21268
- id?: string;
21269
- monteur_id: string;
21270
- start_slot: number;
21271
- updated_at?: string;
21272
- weekdag: number;
21273
- };
21274
- Update: {
21275
- created_at?: string;
21276
- eind_slot?: number;
21277
- id?: string;
21278
- monteur_id?: string;
21279
- start_slot?: number;
21280
- updated_at?: string;
21281
- weekdag?: number;
21282
- };
21283
- Relationships: [];
21284
- };
21285
- uren_standaardweek_wijzigingen: {
21286
- Row: {
21287
- beoordeeld_door: string | null;
21288
- beoordeeld_op: string | null;
21289
- created_at: string;
21290
- huidig: import("../integrations/supabase/types.js").Json;
21291
- id: string;
21292
- monteur_id: string;
21293
- reden_afkeur: string | null;
21294
- status: string;
21295
- updated_at: string;
21296
- voorstel: import("../integrations/supabase/types.js").Json;
21297
- };
21298
- Insert: {
21299
- beoordeeld_door?: string | null;
21300
- beoordeeld_op?: string | null;
21301
- created_at?: string;
21302
- huidig?: import("../integrations/supabase/types.js").Json;
21303
- id?: string;
21304
- monteur_id: string;
21305
- reden_afkeur?: string | null;
21306
- status?: string;
21307
- updated_at?: string;
21308
- voorstel: import("../integrations/supabase/types.js").Json;
21309
- };
21310
- Update: {
21311
- beoordeeld_door?: string | null;
21312
- beoordeeld_op?: string | null;
21313
- created_at?: string;
21314
- huidig?: import("../integrations/supabase/types.js").Json;
21315
- id?: string;
21316
- monteur_id?: string;
21317
- reden_afkeur?: string | null;
21318
- status?: string;
21319
- updated_at?: string;
21320
- voorstel?: import("../integrations/supabase/types.js").Json;
21321
- };
21322
- Relationships: [];
21323
- };
21324
20661
  uren_tarieven: {
21325
20662
  Row: {
21326
20663
  created_at: string;
@@ -21405,39 +20742,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21405
20742
  };
21406
20743
  Relationships: [];
21407
20744
  };
21408
- uren_tijd_spiegel: {
21409
- Row: {
21410
- created_at: string;
21411
- id: string;
21412
- time_log_id: string;
21413
- werkbon_time_log_id: string;
21414
- };
21415
- Insert: {
21416
- created_at?: string;
21417
- id?: string;
21418
- time_log_id: string;
21419
- werkbon_time_log_id: string;
21420
- };
21421
- Update: {
21422
- created_at?: string;
21423
- id?: string;
21424
- time_log_id?: string;
21425
- werkbon_time_log_id?: string;
21426
- };
21427
- Relationships: [{
21428
- foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21429
- columns: ["time_log_id"];
21430
- isOneToOne: true;
21431
- referencedRelation: "time_logs";
21432
- referencedColumns: ["id"];
21433
- }, {
21434
- foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21435
- columns: ["werkbon_time_log_id"];
21436
- isOneToOne: true;
21437
- referencedRelation: "werkbon_time_logs";
21438
- referencedColumns: ["id"];
21439
- }];
21440
- };
21441
20745
  uren_weekstaten: {
21442
20746
  Row: {
21443
20747
  approved_at: string | null;
@@ -21480,33 +20784,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21480
20784
  };
21481
20785
  Relationships: [];
21482
20786
  };
21483
- uren_werktijd_voorkeuren: {
21484
- Row: {
21485
- created_at: string;
21486
- eind_slot: number;
21487
- id: string;
21488
- monteur_id: string;
21489
- start_slot: number;
21490
- updated_at: string;
21491
- };
21492
- Insert: {
21493
- created_at?: string;
21494
- eind_slot?: number;
21495
- id?: string;
21496
- monteur_id: string;
21497
- start_slot?: number;
21498
- updated_at?: string;
21499
- };
21500
- Update: {
21501
- created_at?: string;
21502
- eind_slot?: number;
21503
- id?: string;
21504
- monteur_id?: string;
21505
- start_slot?: number;
21506
- updated_at?: string;
21507
- };
21508
- Relationships: [];
21509
- };
21510
20787
  user_module_permissions: {
21511
20788
  Row: {
21512
20789
  created_at: string;
@@ -22438,12 +21715,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22438
21715
  Row: {
22439
21716
  article_number: string | null;
22440
21717
  artikel_id: string | null;
22441
- cost_price_cents: number;
22442
21718
  created_at: string;
22443
21719
  gtin: string | null;
22444
21720
  id: string;
22445
21721
  manufacturer: string | null;
22446
- margin_percent: number | null;
22447
21722
  omschrijving: string;
22448
21723
  package_id: string;
22449
21724
  price_synced_at: string | null;
@@ -22458,12 +21733,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22458
21733
  Insert: {
22459
21734
  article_number?: string | null;
22460
21735
  artikel_id?: string | null;
22461
- cost_price_cents?: number;
22462
21736
  created_at?: string;
22463
21737
  gtin?: string | null;
22464
21738
  id?: string;
22465
21739
  manufacturer?: string | null;
22466
- margin_percent?: number | null;
22467
21740
  omschrijving: string;
22468
21741
  package_id: string;
22469
21742
  price_synced_at?: string | null;
@@ -22478,12 +21751,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22478
21751
  Update: {
22479
21752
  article_number?: string | null;
22480
21753
  artikel_id?: string | null;
22481
- cost_price_cents?: number;
22482
21754
  created_at?: string;
22483
21755
  gtin?: string | null;
22484
21756
  id?: string;
22485
21757
  manufacturer?: string | null;
22486
- margin_percent?: number | null;
22487
21758
  omschrijving?: string;
22488
21759
  package_id?: string;
22489
21760
  price_synced_at?: string | null;
@@ -23455,21 +22726,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23455
22726
  };
23456
22727
  Relationships: [];
23457
22728
  };
23458
- logistics_packing_diff: {
23459
- Row: {
23460
- dev_key: string | null;
23461
- floriday_packing: import("../integrations/supabase/types.js").Json | null;
23462
- local_packing: import("../integrations/supabase/types.js").Json | null;
23463
- order_id: string | null;
23464
- order_item_id: string | null;
23465
- order_number: string | null;
23466
- product_id: string | null;
23467
- product_name: string | null;
23468
- scope: string | null;
23469
- trade_item_id: string | null;
23470
- };
23471
- Relationships: [];
23472
- };
23473
22729
  logistics_product_dimensions: {
23474
22730
  Row: {
23475
22731
  dimension_source: string | null;
@@ -24715,15 +23971,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24715
23971
  Args: never;
24716
23972
  Returns: number;
24717
23973
  };
24718
- create_order_from_public_offer: {
24719
- Args: {
24720
- p_carrier_id?: string;
24721
- p_delivery_date?: string;
24722
- p_delivery_garden_id?: string;
24723
- p_offer_order_id: string;
24724
- };
24725
- Returns: import("../integrations/supabase/types.js").Json;
24726
- };
24727
23974
  current_monteur_id: {
24728
23975
  Args: never;
24729
23976
  Returns: string;
@@ -25571,12 +24818,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25571
24818
  };
25572
24819
  Returns: import("../integrations/supabase/types.js").Json;
25573
24820
  };
25574
- invoice_ready_work_orders: {
25575
- Args: {
25576
- _limit?: number;
25577
- };
25578
- Returns: import("../integrations/supabase/types.js").Json;
25579
- };
25580
24821
  invoice_recalc_totals: {
25581
24822
  Args: {
25582
24823
  _invoice_id: string;
@@ -25822,14 +25063,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25822
25063
  };
25823
25064
  Returns: import("../integrations/supabase/types.js").Json;
25824
25065
  };
25825
- logistics_buffer_decision_for_settings: {
25826
- Args: {
25827
- p_order: import("../integrations/supabase/types.js").Json;
25828
- p_settings: import("../integrations/supabase/types.js").Json;
25829
- p_user_id?: string;
25830
- };
25831
- Returns: import("../integrations/supabase/types.js").Json;
25832
- };
25833
25066
  logistics_buffer_detach_late_orders: {
25834
25067
  Args: {
25835
25068
  p_buffer?: string;
@@ -25863,12 +25096,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25863
25096
  };
25864
25097
  Returns: string;
25865
25098
  };
25866
- logistics_buffer_payload: {
25867
- Args: {
25868
- p_order_id: string;
25869
- };
25870
- Returns: import("../integrations/supabase/types.js").Json;
25871
- };
25872
25099
  logistics_buffer_simulate: {
25873
25100
  Args: {
25874
25101
  p_orders?: import("../integrations/supabase/types.js").Json;
@@ -26693,12 +25920,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26693
25920
  };
26694
25921
  Returns: number;
26695
25922
  };
26696
- logistics_merge_decision: {
26697
- Args: {
26698
- p_lines: import("../integrations/supabase/types.js").Json;
26699
- };
26700
- Returns: import("../integrations/supabase/types.js").Json;
26701
- };
26702
25923
  logistics_merge_floriday_lines: {
26703
25924
  Args: {
26704
25925
  p_order_id: string;
@@ -26891,63 +26112,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26891
26112
  };
26892
26113
  Returns: boolean;
26893
26114
  };
26894
- logistics_packing_autofix: {
26895
- Args: {
26896
- p_limit?: number;
26897
- };
26898
- Returns: number;
26899
- };
26900
- logistics_packing_block_reason: {
26901
- Args: {
26902
- p_order_id: string;
26903
- p_order_item_id: string;
26904
- };
26905
- Returns: string;
26906
- };
26907
- logistics_packing_dismiss: {
26908
- Args: {
26909
- p_id: string;
26910
- p_note?: string;
26911
- };
26912
- Returns: boolean;
26913
- };
26914
- logistics_packing_overview: {
26915
- Args: never;
26916
- Returns: {
26917
- beoordelen: number;
26918
- herstelbaar: number;
26919
- laatst_gemeten: string;
26920
- laatst_hersteld: string;
26921
- open_totaal: number;
26922
- orders: number;
26923
- oudste_seconden: number;
26924
- producten: number;
26925
- }[];
26926
- };
26927
- logistics_packing_reconcile: {
26928
- Args: {
26929
- p_fix_limit?: number;
26930
- p_scan_limit?: number;
26931
- };
26932
- Returns: {
26933
- beoordelen: number;
26934
- gevonden: number;
26935
- hersteld: number;
26936
- }[];
26937
- };
26938
- logistics_packing_scan: {
26939
- Args: {
26940
- p_limit?: number;
26941
- };
26942
- Returns: number;
26943
- };
26944
- logistics_packing_set_manual: {
26945
- Args: {
26946
- p_manual?: boolean;
26947
- p_order_item_id: string;
26948
- };
26949
- Returns: boolean;
26950
- };
26951
26115
  logistics_parse_pickup: {
26952
26116
  Args: {
26953
26117
  p_value: string;
@@ -27207,12 +26371,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
27207
26371
  Args: never;
27208
26372
  Returns: number;
27209
26373
  };
27210
- logistics_prune_cron_history: {
27211
- Args: {
27212
- p_days?: number;
27213
- };
27214
- Returns: number;
27215
- };
27216
26374
  logistics_prune_handled_pick_queue: {
27217
26375
  Args: never;
27218
26376
  Returns: number;
@@ -27249,14 +26407,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
27249
26407
  Args: never;
27250
26408
  Returns: import("../integrations/supabase/types.js").Json;
27251
26409
  };
27252
- logistics_recalc_tick_kick: {
27253
- Args: never;
27254
- Returns: number;
27255
- };
27256
- logistics_reconcile_missing_plan_queue: {
27257
- Args: never;
27258
- Returns: number;
27259
- };
27260
26410
  logistics_refresh_pick_queue_status: {
27261
26411
  Args: {
27262
26412
  p_ref: string;
@@ -28730,22 +27880,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28730
27880
  };
28731
27881
  Returns: undefined;
28732
27882
  };
28733
- planning_apply_schedule_updates: {
28734
- Args: {
28735
- _updates: import("../integrations/supabase/types.js").Json;
28736
- };
28737
- Returns: undefined;
28738
- };
28739
- planning_assert_no_overlaps: {
28740
- Args: never;
28741
- Returns: undefined;
28742
- };
28743
- planning_assert_no_overlaps_for_items: {
28744
- Args: {
28745
- _item_ids: string[];
28746
- };
28747
- Returns: undefined;
28748
- };
28749
27883
  planning_cancel_item: {
28750
27884
  Args: {
28751
27885
  _id: string;
@@ -29100,10 +28234,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29100
28234
  Args: never;
29101
28235
  Returns: undefined;
29102
28236
  };
29103
- run_order_auto_invoice_tick: {
29104
- Args: never;
29105
- Returns: number;
29106
- };
29107
28237
  run_print_queue_ticks: {
29108
28238
  Args: never;
29109
28239
  Returns: number;
@@ -29481,13 +28611,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29481
28611
  };
29482
28612
  Returns: number;
29483
28613
  };
29484
- schedule_floriday_trade_items_reconcile: {
29485
- Args: {
29486
- p_apikey: string;
29487
- p_url: string;
29488
- };
29489
- Returns: number;
29490
- };
29491
28614
  schedule_floriday_trade_items_sync: {
29492
28615
  Args: {
29493
28616
  p_apikey: string;
@@ -29812,22 +28935,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29812
28935
  Args: never;
29813
28936
  Returns: boolean;
29814
28937
  };
29815
- uren_is_werkdag: {
29816
- Args: {
29817
- _date: string;
29818
- _monteur: string;
29819
- };
29820
- Returns: boolean;
29821
- };
29822
- uren_korte_afwezigheid_aanvragen: {
29823
- Args: {
29824
- _datum: string;
29825
- _eind: string;
29826
- _reden: string;
29827
- _start: string;
29828
- };
29829
- Returns: string;
29830
- };
29831
28938
  uren_list_medewerkers: {
29832
28939
  Args: never;
29833
28940
  Returns: {
@@ -29848,45 +28955,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29848
28955
  roles: string[];
29849
28956
  }[];
29850
28957
  };
29851
- uren_list_planner_contacten: {
29852
- Args: never;
29853
- Returns: {
29854
- display_name: string;
29855
- id: string;
29856
- phone: string;
29857
- }[];
29858
- };
29859
- uren_maand_afsluiten: {
29860
- Args: {
29861
- _maand: string;
29862
- _monteur: string;
29863
- };
29864
- Returns: undefined;
29865
- };
29866
- uren_maand_berekenen: {
29867
- Args: {
29868
- _maand: string;
29869
- _monteur: string;
29870
- };
29871
- Returns: import("../integrations/supabase/types.js").Json;
29872
- };
29873
- uren_maand_corrigeren: {
29874
- Args: {
29875
- _maand: string;
29876
- _monteur: string;
29877
- _overuren_minuten: number;
29878
- _reden: string;
29879
- };
29880
- Returns: undefined;
29881
- };
29882
- uren_mijn_contracturen: {
29883
- Args: never;
29884
- Returns: number;
29885
- };
29886
- uren_mijn_vakantiesaldo: {
29887
- Args: never;
29888
- Returns: number;
29889
- };
29890
28958
  uren_my_monteur_id: {
29891
28959
  Args: never;
29892
28960
  Returns: string;
@@ -29920,37 +28988,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29920
28988
  };
29921
28989
  Returns: number;
29922
28990
  };
29923
- uren_spiegel_bezig: {
29924
- Args: never;
29925
- Returns: boolean;
29926
- };
29927
- uren_standaardweek_beoordelen: {
29928
- Args: {
29929
- _goedkeuren: boolean;
29930
- _id: string;
29931
- _reden?: string;
29932
- };
29933
- Returns: undefined;
29934
- };
29935
- uren_standaardweek_doorzetten: {
29936
- Args: {
29937
- _monteur: string;
29938
- };
29939
- Returns: undefined;
29940
- };
29941
- uren_standaardweek_instellen: {
29942
- Args: {
29943
- _dagen: import("../integrations/supabase/types.js").Json;
29944
- };
29945
- Returns: string;
29946
- };
29947
- uren_standaardweek_toepassen: {
29948
- Args: {
29949
- _dagen: import("../integrations/supabase/types.js").Json;
29950
- _monteur: string;
29951
- };
29952
- Returns: undefined;
29953
- };
29954
28991
  uren_stop_time_log: {
29955
28992
  Args: {
29956
28993
  p_employee_id: string;
@@ -29976,148 +29013,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29976
29013
  };
29977
29014
  Returns: number;
29978
29015
  };
29979
- uren_vakantie_aanvragen: {
29980
- Args: {
29981
- _end_date: string;
29982
- _hours?: number;
29983
- _start_date: string;
29984
- };
29985
- Returns: string;
29986
- };
29987
- uren_vakantiedag_wijzigen: {
29988
- Args: {
29989
- _date: string;
29990
- };
29991
- Returns: string;
29992
- };
29993
- uren_vakantiesaldo_uren: {
29994
- Args: {
29995
- _monteur: string;
29996
- };
29997
- Returns: number;
29998
- };
29999
- uren_week_start: {
30000
- Args: {
30001
- _datum: string;
30002
- };
30003
- Returns: string;
30004
- };
30005
- uren_werkweek_opsturen: {
30006
- Args: {
30007
- _week_start: string;
30008
- };
30009
- Returns: {
30010
- approved_at: string | null;
30011
- approved_by: string | null;
30012
- contract_hours: number;
30013
- created_at: string;
30014
- employee_id: string;
30015
- id: string;
30016
- locked: boolean;
30017
- monteur_toelichting: string | null;
30018
- notes: string | null;
30019
- planned_hours: number;
30020
- status: string;
30021
- submitted_at: string | null;
30022
- updated_at: string;
30023
- variance_hours: number;
30024
- week_start: string;
30025
- };
30026
- SetofOptions: {
30027
- from: "*";
30028
- to: "time_log_week_approvals";
30029
- isOneToOne: true;
30030
- isSetofReturn: false;
30031
- };
30032
- } | {
30033
- Args: {
30034
- _vrije_dagen?: string[];
30035
- _week_start: string;
30036
- };
30037
- Returns: {
30038
- approved_at: string | null;
30039
- approved_by: string | null;
30040
- contract_hours: number;
30041
- created_at: string;
30042
- employee_id: string;
30043
- id: string;
30044
- locked: boolean;
30045
- monteur_toelichting: string | null;
30046
- notes: string | null;
30047
- planned_hours: number;
30048
- status: string;
30049
- submitted_at: string | null;
30050
- updated_at: string;
30051
- variance_hours: number;
30052
- week_start: string;
30053
- };
30054
- SetofOptions: {
30055
- from: "*";
30056
- to: "time_log_week_approvals";
30057
- isOneToOne: true;
30058
- isSetofReturn: false;
30059
- };
30060
- } | {
30061
- Args: {
30062
- _toelichting?: string;
30063
- _vrije_dagen?: string[];
30064
- _week_start: string;
30065
- };
30066
- Returns: {
30067
- approved_at: string | null;
30068
- approved_by: string | null;
30069
- contract_hours: number;
30070
- created_at: string;
30071
- employee_id: string;
30072
- id: string;
30073
- locked: boolean;
30074
- monteur_toelichting: string | null;
30075
- notes: string | null;
30076
- planned_hours: number;
30077
- status: string;
30078
- submitted_at: string | null;
30079
- updated_at: string;
30080
- variance_hours: number;
30081
- week_start: string;
30082
- };
30083
- SetofOptions: {
30084
- from: "*";
30085
- to: "time_log_week_approvals";
30086
- isOneToOne: true;
30087
- isSetofReturn: false;
30088
- };
30089
- };
30090
- vakantie_dagen_gebruikt: {
30091
- Args: {
30092
- _user_id: string;
30093
- _year: number;
30094
- };
30095
- Returns: number;
30096
- };
30097
- vakantie_saldo: {
30098
- Args: {
30099
- _user_id: string;
30100
- _year?: number;
30101
- };
30102
- Returns: {
30103
- day_hours: number;
30104
- entitlement_days: number;
30105
- remaining_days: number;
30106
- used_days: number;
30107
- }[];
30108
- };
30109
- vakantie_saldo_overzicht: {
30110
- Args: {
30111
- _year?: number;
30112
- };
30113
- Returns: {
30114
- day_hours: number;
30115
- entitlement_days: number;
30116
- remaining_days: number;
30117
- used_days: number;
30118
- user_id: string;
30119
- }[];
30120
- };
30121
29016
  voorraad_cleanup_old_rows: {
30122
29017
  Args: never;
30123
29018
  Returns: import("../integrations/supabase/types.js").Json;