@flowselections/floriday-verkoop-module 1.0.66 → 1.0.67

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 (115) hide show
  1. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  2. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  4. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/CartAssignmentWizard.js +1 -1
  6. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  7. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  8. package/dist-lib/components/verkoop/CartLayersDialog.js +1 -1
  9. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.js +5 -5
  12. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  14. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  16. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  17. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  18. package/dist-lib/components/verkoop/EngineBufferCard.js +1 -1
  19. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  20. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/InvoiceTimingSettings.js +2 -2
  22. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  23. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  24. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +1 -1
  25. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  26. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/OrderCarrierPicker.js +1 -1
  28. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  29. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +2 -2
  31. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/OrderKarindelingCard.js +4 -4
  33. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts +1 -1
  34. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  36. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/OrderPickupMomentPicker.js +1 -1
  38. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +2 -2
  39. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/OrderShipmentsCard.js +2 -2
  41. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  42. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  43. package/dist-lib/components/verkoop/ProductDimensionsSettings.js +1 -1
  44. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  45. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +12 -12
  47. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  48. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  49. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  50. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  51. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  52. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  53. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  54. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  55. package/dist-lib/components/verkoop/SalesOrdersTable.js +3 -3
  56. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  57. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  58. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  59. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  60. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  61. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  62. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  63. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  64. package/dist-lib/integrations/supabase/client.js +1 -1
  65. package/dist-lib/integrations/supabase/client.server.js +1 -1
  66. package/dist-lib/lib/tradeitems.functions.d.ts +1117 -12
  67. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/useBufferEvents.d.ts +2 -2
  69. package/dist-lib/lib/useBufferEvents.d.ts.map +1 -1
  70. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts +2 -2
  71. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts.map +1 -1
  72. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
  73. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
  74. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
  75. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  76. package/package.json +131 -131
  77. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  78. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  80. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
  81. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
  82. package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
  83. package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
  84. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
  85. package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
  86. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  87. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  88. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  89. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +0 -4
  90. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +0 -1
  91. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +0 -95
  92. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  93. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  94. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  95. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts +0 -4
  96. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts.map +0 -1
  97. package/dist-lib/lib/cron/mirror-floriday-orders.js +0 -23
  98. package/dist-lib/lib/cron/push-order-statuses.d.ts +0 -4
  99. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +0 -1
  100. package/dist-lib/lib/cron/push-order-statuses.js +0 -23
  101. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  102. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  103. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  104. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  105. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  106. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
  107. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +0 -77581
  108. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +0 -1
  109. package/dist-lib/lib/floriday-auto-fulfillment.functions.js +0 -65
  110. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +0 -21
  111. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +0 -1
  112. package/dist-lib/lib/floriday-auto-fulfillment.server.js +0 -352
  113. package/dist-lib/lib/floriday-status-sync.server.d.ts +0 -14
  114. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +0 -1
  115. package/dist-lib/lib/floriday-status-sync.server.js +0 -130
@@ -8551,13 +8551,22 @@ 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;
8554
8557
  customer_id: string | null;
8555
8558
  customer_name: string | null;
8559
+ customer_postal_code: string | null;
8560
+ customer_vat_number: string | null;
8561
+ debtor_number: string | null;
8556
8562
  due_date: string | null;
8563
+ execution_date: string | null;
8557
8564
  id: string;
8558
8565
  invoice_date: string;
8559
8566
  invoice_number: string | null;
8560
8567
  note: string | null;
8568
+ payment_term_days: number;
8569
+ reference: string | null;
8561
8570
  source_number: string | null;
8562
8571
  source_ref: string | null;
8563
8572
  source_type: string;
@@ -8567,17 +8576,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8567
8576
  updated_at: string;
8568
8577
  vat_cents: number;
8569
8578
  vat_rate: number;
8579
+ work_address: string | null;
8570
8580
  };
8571
8581
  Insert: {
8572
8582
  created_at?: string;
8573
8583
  created_by?: string | null;
8584
+ customer_address?: string | null;
8585
+ customer_attention?: string | null;
8586
+ customer_city?: string | null;
8574
8587
  customer_id?: string | null;
8575
8588
  customer_name?: string | null;
8589
+ customer_postal_code?: string | null;
8590
+ customer_vat_number?: string | null;
8591
+ debtor_number?: string | null;
8576
8592
  due_date?: string | null;
8593
+ execution_date?: string | null;
8577
8594
  id?: string;
8578
8595
  invoice_date?: string;
8579
8596
  invoice_number?: string | null;
8580
8597
  note?: string | null;
8598
+ payment_term_days?: number;
8599
+ reference?: string | null;
8581
8600
  source_number?: string | null;
8582
8601
  source_ref?: string | null;
8583
8602
  source_type?: string;
@@ -8587,17 +8606,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8587
8606
  updated_at?: string;
8588
8607
  vat_cents?: number;
8589
8608
  vat_rate?: number;
8609
+ work_address?: string | null;
8590
8610
  };
8591
8611
  Update: {
8592
8612
  created_at?: string;
8593
8613
  created_by?: string | null;
8614
+ customer_address?: string | null;
8615
+ customer_attention?: string | null;
8616
+ customer_city?: string | null;
8594
8617
  customer_id?: string | null;
8595
8618
  customer_name?: string | null;
8619
+ customer_postal_code?: string | null;
8620
+ customer_vat_number?: string | null;
8621
+ debtor_number?: string | null;
8596
8622
  due_date?: string | null;
8623
+ execution_date?: string | null;
8597
8624
  id?: string;
8598
8625
  invoice_date?: string;
8599
8626
  invoice_number?: string | null;
8600
8627
  note?: string | null;
8628
+ payment_term_days?: number;
8629
+ reference?: string | null;
8601
8630
  source_number?: string | null;
8602
8631
  source_ref?: string | null;
8603
8632
  source_type?: string;
@@ -8607,6 +8636,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8607
8636
  updated_at?: string;
8608
8637
  vat_cents?: number;
8609
8638
  vat_rate?: number;
8639
+ work_address?: string | null;
8610
8640
  };
8611
8641
  Relationships: [{
8612
8642
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9378,6 +9408,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9378
9408
  };
9379
9409
  Relationships: [];
9380
9410
  };
9411
+ itk_offerte_voorstel_status: {
9412
+ Row: {
9413
+ ai_concept: import("../integrations/supabase/types").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").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").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
+ };
9381
9447
  itk_offerte_werkbon_queue: {
9382
9448
  Row: {
9383
9449
  bron_werkbon_id: string | null;
@@ -9698,6 +9764,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9698
9764
  };
9699
9765
  leave_requests: {
9700
9766
  Row: {
9767
+ cancellation_requested_at: string | null;
9768
+ cancellation_status: string | null;
9701
9769
  created_at: string;
9702
9770
  decided_at: string | null;
9703
9771
  decided_by: string | null;
@@ -9708,6 +9776,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9708
9776
  leave_type: string;
9709
9777
  monteur_id: string | null;
9710
9778
  reason: string | null;
9779
+ reden_afkeur: string | null;
9711
9780
  start_date: string;
9712
9781
  start_time: string | null;
9713
9782
  status: string;
@@ -9715,6 +9784,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9715
9784
  user_id: string;
9716
9785
  };
9717
9786
  Insert: {
9787
+ cancellation_requested_at?: string | null;
9788
+ cancellation_status?: string | null;
9718
9789
  created_at?: string;
9719
9790
  decided_at?: string | null;
9720
9791
  decided_by?: string | null;
@@ -9725,6 +9796,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9725
9796
  leave_type?: string;
9726
9797
  monteur_id?: string | null;
9727
9798
  reason?: string | null;
9799
+ reden_afkeur?: string | null;
9728
9800
  start_date: string;
9729
9801
  start_time?: string | null;
9730
9802
  status?: string;
@@ -9732,6 +9804,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9732
9804
  user_id: string;
9733
9805
  };
9734
9806
  Update: {
9807
+ cancellation_requested_at?: string | null;
9808
+ cancellation_status?: string | null;
9735
9809
  created_at?: string;
9736
9810
  decided_at?: string | null;
9737
9811
  decided_by?: string | null;
@@ -9742,6 +9816,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9742
9816
  leave_type?: string;
9743
9817
  monteur_id?: string | null;
9744
9818
  reason?: string | null;
9819
+ reden_afkeur?: string | null;
9745
9820
  start_date?: string;
9746
9821
  start_time?: string | null;
9747
9822
  status?: string;
@@ -10968,6 +11043,72 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10968
11043
  };
10969
11044
  Relationships: [];
10970
11045
  };
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").Json;
11053
+ human_reason: string | null;
11054
+ id: string;
11055
+ last_seen_at: string;
11056
+ local_packing: import("../integrations/supabase/types").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").Json;
11074
+ human_reason?: string | null;
11075
+ id?: string;
11076
+ last_seen_at?: string;
11077
+ local_packing?: import("../integrations/supabase/types").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").Json;
11095
+ human_reason?: string | null;
11096
+ id?: string;
11097
+ last_seen_at?: string;
11098
+ local_packing?: import("../integrations/supabase/types").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
+ };
10971
11112
  logistics_pick_data_requests: {
10972
11113
  Row: {
10973
11114
  actions: import("../integrations/supabase/types").Json;
@@ -11211,8 +11352,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11211
11352
  id: boolean;
11212
11353
  last_checked: number;
11213
11354
  last_duration_ms: number;
11355
+ last_mode: string | null;
11214
11356
  last_run_at: string | null;
11215
11357
  last_updated: number;
11358
+ last_would_change: number | null;
11216
11359
  pending: boolean;
11217
11360
  requested_at: string | null;
11218
11361
  updated_at: string;
@@ -11222,8 +11365,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11222
11365
  id?: boolean;
11223
11366
  last_checked?: number;
11224
11367
  last_duration_ms?: number;
11368
+ last_mode?: string | null;
11225
11369
  last_run_at?: string | null;
11226
11370
  last_updated?: number;
11371
+ last_would_change?: number | null;
11227
11372
  pending?: boolean;
11228
11373
  requested_at?: string | null;
11229
11374
  updated_at?: string;
@@ -11233,8 +11378,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11233
11378
  id?: boolean;
11234
11379
  last_checked?: number;
11235
11380
  last_duration_ms?: number;
11381
+ last_mode?: string | null;
11236
11382
  last_run_at?: string | null;
11237
11383
  last_updated?: number;
11384
+ last_would_change?: number | null;
11238
11385
  pending?: boolean;
11239
11386
  requested_at?: string | null;
11240
11387
  updated_at?: string;
@@ -13230,6 +13377,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13230
13377
  };
13231
13378
  Relationships: [];
13232
13379
  };
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
+ };
13233
13416
  nmbrs_component_mapping: {
13234
13417
  Row: {
13235
13418
  created_at: string;
@@ -13709,6 +13892,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13709
13892
  id: string;
13710
13893
  items: import("../integrations/supabase/types").Json;
13711
13894
  notes: string | null;
13895
+ order_creation_error: string | null;
13896
+ order_creation_failed_at: string | null;
13897
+ order_id: string | null;
13712
13898
  order_number: string | null;
13713
13899
  recipient_id: string;
13714
13900
  total_amount: number;
@@ -13723,6 +13909,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13723
13909
  id?: string;
13724
13910
  items?: import("../integrations/supabase/types").Json;
13725
13911
  notes?: string | null;
13912
+ order_creation_error?: string | null;
13913
+ order_creation_failed_at?: string | null;
13914
+ order_id?: string | null;
13726
13915
  order_number?: string | null;
13727
13916
  recipient_id: string;
13728
13917
  total_amount?: number;
@@ -13737,6 +13926,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13737
13926
  id?: string;
13738
13927
  items?: import("../integrations/supabase/types").Json;
13739
13928
  notes?: string | null;
13929
+ order_creation_error?: string | null;
13930
+ order_creation_failed_at?: string | null;
13931
+ order_id?: string | null;
13740
13932
  order_number?: string | null;
13741
13933
  recipient_id?: string;
13742
13934
  total_amount?: number;
@@ -13753,6 +13945,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13753
13945
  isOneToOne: false;
13754
13946
  referencedRelation: "customers";
13755
13947
  referencedColumns: ["id"];
13948
+ }, {
13949
+ foreignKeyName: "offer_orders_order_id_fkey";
13950
+ columns: ["order_id"];
13951
+ isOneToOne: false;
13952
+ referencedRelation: "orders";
13953
+ referencedColumns: ["id"];
13756
13954
  }, {
13757
13955
  foreignKeyName: "offer_orders_recipient_id_fkey";
13758
13956
  columns: ["recipient_id"];
@@ -13893,6 +14091,30 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13893
14091
  };
13894
14092
  Relationships: [];
13895
14093
  };
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
+ };
13896
14118
  order_buffers: {
13897
14119
  Row: {
13898
14120
  buffer_key: string;
@@ -14362,6 +14584,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14362
14584
  id: string;
14363
14585
  layers_per_cart: number | null;
14364
14586
  order_id: string;
14587
+ packing_locked_at: string | null;
14588
+ packing_locked_by: string | null;
14365
14589
  plants_per_crate: number | null;
14366
14590
  product_id: string | null;
14367
14591
  product_name: string;
@@ -14376,6 +14600,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14376
14600
  id?: string;
14377
14601
  layers_per_cart?: number | null;
14378
14602
  order_id: string;
14603
+ packing_locked_at?: string | null;
14604
+ packing_locked_by?: string | null;
14379
14605
  plants_per_crate?: number | null;
14380
14606
  product_id?: string | null;
14381
14607
  product_name: string;
@@ -14390,6 +14616,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14390
14616
  id?: string;
14391
14617
  layers_per_cart?: number | null;
14392
14618
  order_id?: string;
14619
+ packing_locked_at?: string | null;
14620
+ packing_locked_by?: string | null;
14393
14621
  plants_per_crate?: number | null;
14394
14622
  product_id?: string | null;
14395
14623
  product_name?: string;
@@ -15903,6 +16131,195 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15903
16131
  referencedColumns: ["id"];
15904
16132
  }];
15905
16133
  };
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
+ };
15906
16323
  price_list_rows: {
15907
16324
  Row: {
15908
16325
  action: string;
@@ -17186,6 +17603,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17186
17603
  crates_per_layer: number;
17187
17604
  created_at: string;
17188
17605
  custom_fields: import("../integrations/supabase/types").Json;
17606
+ floriday_packing_confirmed_at: string | null;
17607
+ floriday_packing_source: string | null;
17189
17608
  floriday_trade_item_id: string | null;
17190
17609
  fust_type_id: string | null;
17191
17610
  id: string;
@@ -17214,6 +17633,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17214
17633
  crates_per_layer?: number;
17215
17634
  created_at?: string;
17216
17635
  custom_fields?: import("../integrations/supabase/types").Json;
17636
+ floriday_packing_confirmed_at?: string | null;
17637
+ floriday_packing_source?: string | null;
17217
17638
  floriday_trade_item_id?: string | null;
17218
17639
  fust_type_id?: string | null;
17219
17640
  id?: string;
@@ -17242,6 +17663,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17242
17663
  crates_per_layer?: number;
17243
17664
  created_at?: string;
17244
17665
  custom_fields?: import("../integrations/supabase/types").Json;
17666
+ floriday_packing_confirmed_at?: string | null;
17667
+ floriday_packing_source?: string | null;
17245
17668
  floriday_trade_item_id?: string | null;
17246
17669
  fust_type_id?: string | null;
17247
17670
  id?: string;
@@ -17341,6 +17764,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17341
17764
  id: string;
17342
17765
  is_superadmin: boolean;
17343
17766
  notification_preferences: import("../integrations/supabase/types").Json;
17767
+ phone: string | null;
17344
17768
  tenant_id: string | null;
17345
17769
  updated_at: string;
17346
17770
  };
@@ -17353,6 +17777,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17353
17777
  id: string;
17354
17778
  is_superadmin?: boolean;
17355
17779
  notification_preferences?: import("../integrations/supabase/types").Json;
17780
+ phone?: string | null;
17356
17781
  tenant_id?: string | null;
17357
17782
  updated_at?: string;
17358
17783
  };
@@ -17365,6 +17790,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17365
17790
  id?: string;
17366
17791
  is_superadmin?: boolean;
17367
17792
  notification_preferences?: import("../integrations/supabase/types").Json;
17793
+ phone?: string | null;
17368
17794
  tenant_id?: string | null;
17369
17795
  updated_at?: string;
17370
17796
  };
@@ -19108,40 +19534,52 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19108
19534
  Row: {
19109
19535
  approved_at: string | null;
19110
19536
  approved_by: string | null;
19537
+ contract_hours: number;
19111
19538
  created_at: string;
19112
19539
  employee_id: string;
19113
19540
  id: string;
19114
19541
  locked: boolean;
19542
+ monteur_toelichting: string | null;
19115
19543
  notes: string | null;
19544
+ planned_hours: number;
19116
19545
  status: string;
19117
19546
  submitted_at: string | null;
19118
19547
  updated_at: string;
19548
+ variance_hours: number;
19119
19549
  week_start: string;
19120
19550
  };
19121
19551
  Insert: {
19122
19552
  approved_at?: string | null;
19123
19553
  approved_by?: string | null;
19554
+ contract_hours?: number;
19124
19555
  created_at?: string;
19125
19556
  employee_id: string;
19126
19557
  id?: string;
19127
19558
  locked?: boolean;
19559
+ monteur_toelichting?: string | null;
19128
19560
  notes?: string | null;
19561
+ planned_hours?: number;
19129
19562
  status?: string;
19130
19563
  submitted_at?: string | null;
19131
19564
  updated_at?: string;
19565
+ variance_hours?: number;
19132
19566
  week_start: string;
19133
19567
  };
19134
19568
  Update: {
19135
19569
  approved_at?: string | null;
19136
19570
  approved_by?: string | null;
19571
+ contract_hours?: number;
19137
19572
  created_at?: string;
19138
19573
  employee_id?: string;
19139
19574
  id?: string;
19140
19575
  locked?: boolean;
19576
+ monteur_toelichting?: string | null;
19141
19577
  notes?: string | null;
19578
+ planned_hours?: number;
19142
19579
  status?: string;
19143
19580
  submitted_at?: string | null;
19144
19581
  updated_at?: string;
19582
+ variance_hours?: number;
19145
19583
  week_start?: string;
19146
19584
  };
19147
19585
  Relationships: [{
@@ -20475,25 +20913,64 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20475
20913
  referencedColumns: ["id"];
20476
20914
  }];
20477
20915
  };
20478
- uren_cao_profiles: {
20916
+ uren_beschikbare_dagen: {
20479
20917
  Row: {
20480
- break_minutes: number | null;
20481
- contract_hours_per_week: number;
20918
+ bron: string;
20482
20919
  created_at: string;
20483
- daily_threshold_hours: number | null;
20920
+ datum: string;
20921
+ eind_tijd: string | null;
20922
+ half_hour_slots: number[];
20484
20923
  id: string;
20485
- include_travel: boolean | null;
20486
20924
  monteur_id: string;
20487
- ov02_percentage: number | null;
20488
- ov03_percentage: number | null;
20925
+ start_tijd: string | null;
20489
20926
  updated_at: string;
20490
- weekly_threshold_hours: number | null;
20491
- workday_end: string | null;
20492
- workday_start: string | null;
20927
+ uren: number;
20493
20928
  };
20494
20929
  Insert: {
20495
- break_minutes?: number | null;
20496
- contract_hours_per_week?: number;
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;
20497
20974
  created_at?: string;
20498
20975
  daily_threshold_hours?: number | null;
20499
20976
  id?: string;
@@ -20613,6 +21090,123 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20613
21090
  };
20614
21091
  Relationships: [];
20615
21092
  };
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
+ };
20616
21210
  uren_settings: {
20617
21211
  Row: {
20618
21212
  break_minutes: number;
@@ -20658,6 +21252,75 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20658
21252
  };
20659
21253
  Relationships: [];
20660
21254
  };
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").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").Json;
21297
+ };
21298
+ Insert: {
21299
+ beoordeeld_door?: string | null;
21300
+ beoordeeld_op?: string | null;
21301
+ created_at?: string;
21302
+ huidig?: import("../integrations/supabase/types").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").Json;
21309
+ };
21310
+ Update: {
21311
+ beoordeeld_door?: string | null;
21312
+ beoordeeld_op?: string | null;
21313
+ created_at?: string;
21314
+ huidig?: import("../integrations/supabase/types").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").Json;
21321
+ };
21322
+ Relationships: [];
21323
+ };
20661
21324
  uren_tarieven: {
20662
21325
  Row: {
20663
21326
  created_at: string;
@@ -20742,6 +21405,39 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20742
21405
  };
20743
21406
  Relationships: [];
20744
21407
  };
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
+ };
20745
21441
  uren_weekstaten: {
20746
21442
  Row: {
20747
21443
  approved_at: string | null;
@@ -20784,6 +21480,33 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20784
21480
  };
20785
21481
  Relationships: [];
20786
21482
  };
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
+ };
20787
21510
  user_module_permissions: {
20788
21511
  Row: {
20789
21512
  created_at: string;
@@ -21715,10 +22438,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21715
22438
  Row: {
21716
22439
  article_number: string | null;
21717
22440
  artikel_id: string | null;
22441
+ cost_price_cents: number;
21718
22442
  created_at: string;
21719
22443
  gtin: string | null;
21720
22444
  id: string;
21721
22445
  manufacturer: string | null;
22446
+ margin_percent: number | null;
21722
22447
  omschrijving: string;
21723
22448
  package_id: string;
21724
22449
  price_synced_at: string | null;
@@ -21733,10 +22458,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21733
22458
  Insert: {
21734
22459
  article_number?: string | null;
21735
22460
  artikel_id?: string | null;
22461
+ cost_price_cents?: number;
21736
22462
  created_at?: string;
21737
22463
  gtin?: string | null;
21738
22464
  id?: string;
21739
22465
  manufacturer?: string | null;
22466
+ margin_percent?: number | null;
21740
22467
  omschrijving: string;
21741
22468
  package_id: string;
21742
22469
  price_synced_at?: string | null;
@@ -21751,10 +22478,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21751
22478
  Update: {
21752
22479
  article_number?: string | null;
21753
22480
  artikel_id?: string | null;
22481
+ cost_price_cents?: number;
21754
22482
  created_at?: string;
21755
22483
  gtin?: string | null;
21756
22484
  id?: string;
21757
22485
  manufacturer?: string | null;
22486
+ margin_percent?: number | null;
21758
22487
  omschrijving?: string;
21759
22488
  package_id?: string;
21760
22489
  price_synced_at?: string | null;
@@ -22726,6 +23455,21 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
22726
23455
  };
22727
23456
  Relationships: [];
22728
23457
  };
23458
+ logistics_packing_diff: {
23459
+ Row: {
23460
+ dev_key: string | null;
23461
+ floriday_packing: import("../integrations/supabase/types").Json | null;
23462
+ local_packing: import("../integrations/supabase/types").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
+ };
22729
23473
  logistics_product_dimensions: {
22730
23474
  Row: {
22731
23475
  dimension_source: string | null;
@@ -23971,6 +24715,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
23971
24715
  Args: never;
23972
24716
  Returns: number;
23973
24717
  };
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").Json;
24726
+ };
23974
24727
  current_monteur_id: {
23975
24728
  Args: never;
23976
24729
  Returns: string;
@@ -24818,6 +25571,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
24818
25571
  };
24819
25572
  Returns: import("../integrations/supabase/types").Json;
24820
25573
  };
25574
+ invoice_ready_work_orders: {
25575
+ Args: {
25576
+ _limit?: number;
25577
+ };
25578
+ Returns: import("../integrations/supabase/types").Json;
25579
+ };
24821
25580
  invoice_recalc_totals: {
24822
25581
  Args: {
24823
25582
  _invoice_id: string;
@@ -25063,6 +25822,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25063
25822
  };
25064
25823
  Returns: import("../integrations/supabase/types").Json;
25065
25824
  };
25825
+ logistics_buffer_decision_for_settings: {
25826
+ Args: {
25827
+ p_order: import("../integrations/supabase/types").Json;
25828
+ p_settings: import("../integrations/supabase/types").Json;
25829
+ p_user_id?: string;
25830
+ };
25831
+ Returns: import("../integrations/supabase/types").Json;
25832
+ };
25066
25833
  logistics_buffer_detach_late_orders: {
25067
25834
  Args: {
25068
25835
  p_buffer?: string;
@@ -25096,6 +25863,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25096
25863
  };
25097
25864
  Returns: string;
25098
25865
  };
25866
+ logistics_buffer_payload: {
25867
+ Args: {
25868
+ p_order_id: string;
25869
+ };
25870
+ Returns: import("../integrations/supabase/types").Json;
25871
+ };
25099
25872
  logistics_buffer_simulate: {
25100
25873
  Args: {
25101
25874
  p_orders?: import("../integrations/supabase/types").Json;
@@ -25920,6 +26693,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
25920
26693
  };
25921
26694
  Returns: number;
25922
26695
  };
26696
+ logistics_merge_decision: {
26697
+ Args: {
26698
+ p_lines: import("../integrations/supabase/types").Json;
26699
+ };
26700
+ Returns: import("../integrations/supabase/types").Json;
26701
+ };
25923
26702
  logistics_merge_floriday_lines: {
25924
26703
  Args: {
25925
26704
  p_order_id: string;
@@ -26112,6 +26891,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26112
26891
  };
26113
26892
  Returns: boolean;
26114
26893
  };
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
+ };
26115
26951
  logistics_parse_pickup: {
26116
26952
  Args: {
26117
26953
  p_value: string;
@@ -26371,6 +27207,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26371
27207
  Args: never;
26372
27208
  Returns: number;
26373
27209
  };
27210
+ logistics_prune_cron_history: {
27211
+ Args: {
27212
+ p_days?: number;
27213
+ };
27214
+ Returns: number;
27215
+ };
26374
27216
  logistics_prune_handled_pick_queue: {
26375
27217
  Args: never;
26376
27218
  Returns: number;
@@ -26407,6 +27249,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
26407
27249
  Args: never;
26408
27250
  Returns: import("../integrations/supabase/types").Json;
26409
27251
  };
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
+ };
26410
27260
  logistics_refresh_pick_queue_status: {
26411
27261
  Args: {
26412
27262
  p_ref: string;
@@ -27880,6 +28730,22 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
27880
28730
  };
27881
28731
  Returns: undefined;
27882
28732
  };
28733
+ planning_apply_schedule_updates: {
28734
+ Args: {
28735
+ _updates: import("../integrations/supabase/types").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
+ };
27883
28749
  planning_cancel_item: {
27884
28750
  Args: {
27885
28751
  _id: string;
@@ -28234,6 +29100,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28234
29100
  Args: never;
28235
29101
  Returns: undefined;
28236
29102
  };
29103
+ run_order_auto_invoice_tick: {
29104
+ Args: never;
29105
+ Returns: number;
29106
+ };
28237
29107
  run_print_queue_ticks: {
28238
29108
  Args: never;
28239
29109
  Returns: number;
@@ -28611,6 +29481,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28611
29481
  };
28612
29482
  Returns: number;
28613
29483
  };
29484
+ schedule_floriday_trade_items_reconcile: {
29485
+ Args: {
29486
+ p_apikey: string;
29487
+ p_url: string;
29488
+ };
29489
+ Returns: number;
29490
+ };
28614
29491
  schedule_floriday_trade_items_sync: {
28615
29492
  Args: {
28616
29493
  p_apikey: string;
@@ -28935,6 +29812,22 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28935
29812
  Args: never;
28936
29813
  Returns: boolean;
28937
29814
  };
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
+ };
28938
29831
  uren_list_medewerkers: {
28939
29832
  Args: never;
28940
29833
  Returns: {
@@ -28955,6 +29848,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28955
29848
  roles: string[];
28956
29849
  }[];
28957
29850
  };
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").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
+ };
28958
29890
  uren_my_monteur_id: {
28959
29891
  Args: never;
28960
29892
  Returns: string;
@@ -28988,6 +29920,37 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
28988
29920
  };
28989
29921
  Returns: number;
28990
29922
  };
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").Json;
29944
+ };
29945
+ Returns: string;
29946
+ };
29947
+ uren_standaardweek_toepassen: {
29948
+ Args: {
29949
+ _dagen: import("../integrations/supabase/types").Json;
29950
+ _monteur: string;
29951
+ };
29952
+ Returns: undefined;
29953
+ };
28991
29954
  uren_stop_time_log: {
28992
29955
  Args: {
28993
29956
  p_employee_id: string;
@@ -29013,6 +29976,148 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
29013
29976
  };
29014
29977
  Returns: number;
29015
29978
  };
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
+ };
29016
30121
  voorraad_cleanup_old_rows: {
29017
30122
  Args: never;
29018
30123
  Returns: import("../integrations/supabase/types").Json;