@flowselections/floriday-afhandeling-module 1.0.45 → 1.0.46

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 (44) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.js +1 -1
  2. package/dist-lib/components/afhandeling/DagDetailDialog.js +1 -1
  3. package/dist-lib/components/afhandeling/ScanControleView.js +1 -1
  4. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  5. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  6. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +9 -9
  7. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -28
  8. package/dist-lib/components/ui/responsive-dialog.js +1 -1
  9. package/dist-lib/hooks/usePickMode.d.ts +1 -1
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1912 -32
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +1912 -32
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.js +1 -1
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts +1912 -32
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +1929 -21
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/lib/afhandelingSettings.functions.d.ts +3760 -0
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/carriers.functions.d.ts +9400 -0
  25. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartAssignments.functions.d.ts +9400 -0
  27. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/cartControl.functions.d.ts +20680 -0
  29. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/deliveryNote.functions.d.ts +1912 -32
  31. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/deliveryNotePrint.d.ts +33 -33
  33. package/dist-lib/lib/deliveryNotePrint.js +219 -219
  34. package/dist-lib/lib/engineLayouts.functions.d.ts +1912 -32
  35. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.d.ts +3760 -0
  37. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
  39. package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
  40. package/dist-lib/lib/orderFulfilment.functions.d.ts +1912 -32
  41. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/pickDates.functions.d.ts +1912 -32
  43. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  44. package/package.json +2 -2
@@ -7990,6 +7990,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7990
7990
  };
7991
7991
  fust_types: {
7992
7992
  Row: {
7993
+ capacity_units: number | null;
7993
7994
  connection_id: string | null;
7994
7995
  created_at: string;
7995
7996
  custom_package_id: string | null;
@@ -8010,6 +8011,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8010
8011
  width_mm: number | null;
8011
8012
  };
8012
8013
  Insert: {
8014
+ capacity_units?: number | null;
8013
8015
  connection_id?: string | null;
8014
8016
  created_at?: string;
8015
8017
  custom_package_id?: string | null;
@@ -8030,6 +8032,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8030
8032
  width_mm?: number | null;
8031
8033
  };
8032
8034
  Update: {
8035
+ capacity_units?: number | null;
8033
8036
  connection_id?: string | null;
8034
8037
  created_at?: string;
8035
8038
  custom_package_id?: string | null;
@@ -8261,6 +8264,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8261
8264
  };
8262
8265
  Relationships: [];
8263
8266
  };
8267
+ invoice_branding_settings: {
8268
+ Row: {
8269
+ address: string;
8270
+ chamber_of_commerce_number: string;
8271
+ city: string;
8272
+ company_name: string;
8273
+ created_at: string;
8274
+ email: string;
8275
+ email_purpose: string | null;
8276
+ iban: string;
8277
+ logo_path: string | null;
8278
+ payment_term_days: number;
8279
+ phone: string;
8280
+ postal_code: string;
8281
+ primary_color: string;
8282
+ secondary_color: string;
8283
+ show_company_name: boolean;
8284
+ singleton_key: boolean;
8285
+ updated_at: string;
8286
+ vat_identification_number: string;
8287
+ website: string;
8288
+ };
8289
+ Insert: {
8290
+ address?: string;
8291
+ chamber_of_commerce_number?: string;
8292
+ city?: string;
8293
+ company_name?: string;
8294
+ created_at?: string;
8295
+ email?: string;
8296
+ email_purpose?: string | null;
8297
+ iban?: string;
8298
+ logo_path?: string | null;
8299
+ payment_term_days?: number;
8300
+ phone?: string;
8301
+ postal_code?: string;
8302
+ primary_color?: string;
8303
+ secondary_color?: string;
8304
+ show_company_name?: boolean;
8305
+ singleton_key?: boolean;
8306
+ updated_at?: string;
8307
+ vat_identification_number?: string;
8308
+ website?: string;
8309
+ };
8310
+ Update: {
8311
+ address?: string;
8312
+ chamber_of_commerce_number?: string;
8313
+ city?: string;
8314
+ company_name?: string;
8315
+ created_at?: string;
8316
+ email?: string;
8317
+ email_purpose?: string | null;
8318
+ iban?: string;
8319
+ logo_path?: string | null;
8320
+ payment_term_days?: number;
8321
+ phone?: string;
8322
+ postal_code?: string;
8323
+ primary_color?: string;
8324
+ secondary_color?: string;
8325
+ show_company_name?: boolean;
8326
+ singleton_key?: boolean;
8327
+ updated_at?: string;
8328
+ vat_identification_number?: string;
8329
+ website?: string;
8330
+ };
8331
+ Relationships: [];
8332
+ };
8264
8333
  invoice_items: {
8265
8334
  Row: {
8266
8335
  created_at: string;
@@ -8274,6 +8343,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8274
8343
  total_cents: number;
8275
8344
  unit: string;
8276
8345
  unit_price_cents: number;
8346
+ vat_rate: number | null;
8277
8347
  };
8278
8348
  Insert: {
8279
8349
  created_at?: string;
@@ -8287,6 +8357,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8287
8357
  total_cents?: number;
8288
8358
  unit?: string;
8289
8359
  unit_price_cents?: number;
8360
+ vat_rate?: number | null;
8290
8361
  };
8291
8362
  Update: {
8292
8363
  created_at?: string;
@@ -8300,6 +8371,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8300
8371
  total_cents?: number;
8301
8372
  unit?: string;
8302
8373
  unit_price_cents?: number;
8374
+ vat_rate?: number | null;
8303
8375
  };
8304
8376
  Relationships: [{
8305
8377
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8545,15 +8617,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8545
8617
  };
8546
8618
  invoices: {
8547
8619
  Row: {
8620
+ branding_snapshot: import("./types").Json | null;
8548
8621
  created_at: string;
8549
8622
  created_by: string | null;
8623
+ customer_address: string | null;
8624
+ customer_attention: string | null;
8625
+ customer_city: string | null;
8550
8626
  customer_id: string | null;
8551
8627
  customer_name: string | null;
8628
+ customer_postal_code: string | null;
8629
+ customer_vat_number: string | null;
8630
+ debtor_number: string | null;
8552
8631
  due_date: string | null;
8632
+ execution_date: string | null;
8553
8633
  id: string;
8554
8634
  invoice_date: string;
8555
8635
  invoice_number: string | null;
8556
8636
  note: string | null;
8637
+ payment_term_days: number;
8638
+ reference: string | null;
8639
+ sent_at: string | null;
8640
+ sent_to: string | null;
8557
8641
  source_number: string | null;
8558
8642
  source_ref: string | null;
8559
8643
  source_type: string;
@@ -8563,17 +8647,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8563
8647
  updated_at: string;
8564
8648
  vat_cents: number;
8565
8649
  vat_rate: number;
8650
+ work_address: string | null;
8566
8651
  };
8567
8652
  Insert: {
8653
+ branding_snapshot?: import("./types").Json | null;
8568
8654
  created_at?: string;
8569
8655
  created_by?: string | null;
8656
+ customer_address?: string | null;
8657
+ customer_attention?: string | null;
8658
+ customer_city?: string | null;
8570
8659
  customer_id?: string | null;
8571
8660
  customer_name?: string | null;
8661
+ customer_postal_code?: string | null;
8662
+ customer_vat_number?: string | null;
8663
+ debtor_number?: string | null;
8572
8664
  due_date?: string | null;
8665
+ execution_date?: string | null;
8573
8666
  id?: string;
8574
8667
  invoice_date?: string;
8575
8668
  invoice_number?: string | null;
8576
8669
  note?: string | null;
8670
+ payment_term_days?: number;
8671
+ reference?: string | null;
8672
+ sent_at?: string | null;
8673
+ sent_to?: string | null;
8577
8674
  source_number?: string | null;
8578
8675
  source_ref?: string | null;
8579
8676
  source_type?: string;
@@ -8583,17 +8680,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8583
8680
  updated_at?: string;
8584
8681
  vat_cents?: number;
8585
8682
  vat_rate?: number;
8683
+ work_address?: string | null;
8586
8684
  };
8587
8685
  Update: {
8686
+ branding_snapshot?: import("./types").Json | null;
8588
8687
  created_at?: string;
8589
8688
  created_by?: string | null;
8689
+ customer_address?: string | null;
8690
+ customer_attention?: string | null;
8691
+ customer_city?: string | null;
8590
8692
  customer_id?: string | null;
8591
8693
  customer_name?: string | null;
8694
+ customer_postal_code?: string | null;
8695
+ customer_vat_number?: string | null;
8696
+ debtor_number?: string | null;
8592
8697
  due_date?: string | null;
8698
+ execution_date?: string | null;
8593
8699
  id?: string;
8594
8700
  invoice_date?: string;
8595
8701
  invoice_number?: string | null;
8596
8702
  note?: string | null;
8703
+ payment_term_days?: number;
8704
+ reference?: string | null;
8705
+ sent_at?: string | null;
8706
+ sent_to?: string | null;
8597
8707
  source_number?: string | null;
8598
8708
  source_ref?: string | null;
8599
8709
  source_type?: string;
@@ -8603,6 +8713,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8603
8713
  updated_at?: string;
8604
8714
  vat_cents?: number;
8605
8715
  vat_rate?: number;
8716
+ work_address?: string | null;
8606
8717
  };
8607
8718
  Relationships: [{
8608
8719
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9301,6 +9412,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9301
9412
  quantity: number;
9302
9413
  sort_order: number;
9303
9414
  source: string;
9415
+ unit: string | null;
9304
9416
  unit_price_cents: number;
9305
9417
  updated_at: string;
9306
9418
  };
@@ -9314,6 +9426,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9314
9426
  quantity?: number;
9315
9427
  sort_order?: number;
9316
9428
  source?: string;
9429
+ unit?: string | null;
9317
9430
  unit_price_cents?: number;
9318
9431
  updated_at?: string;
9319
9432
  };
@@ -9327,6 +9440,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9327
9440
  quantity?: number;
9328
9441
  sort_order?: number;
9329
9442
  source?: string;
9443
+ unit?: string | null;
9330
9444
  unit_price_cents?: number;
9331
9445
  updated_at?: string;
9332
9446
  };
@@ -9350,6 +9464,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9350
9464
  created_at: string;
9351
9465
  default_geldigheid_dagen: number;
9352
9466
  default_vat_rate: number;
9467
+ email_purpose: string | null;
9353
9468
  id: string;
9354
9469
  singleton: boolean;
9355
9470
  updated_at: string;
@@ -9359,6 +9474,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9359
9474
  created_at?: string;
9360
9475
  default_geldigheid_dagen?: number;
9361
9476
  default_vat_rate?: number;
9477
+ email_purpose?: string | null;
9362
9478
  id?: string;
9363
9479
  singleton?: boolean;
9364
9480
  updated_at?: string;
@@ -9368,12 +9484,49 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9368
9484
  created_at?: string;
9369
9485
  default_geldigheid_dagen?: number;
9370
9486
  default_vat_rate?: number;
9487
+ email_purpose?: string | null;
9371
9488
  id?: string;
9372
9489
  singleton?: boolean;
9373
9490
  updated_at?: string;
9374
9491
  };
9375
9492
  Relationships: [];
9376
9493
  };
9494
+ itk_offerte_voorstel_status: {
9495
+ Row: {
9496
+ ai_concept: import("./types").Json | null;
9497
+ created_at: string;
9498
+ id: string;
9499
+ offerte_id: string | null;
9500
+ proposal_id: string;
9501
+ seen_at: string | null;
9502
+ updated_at: string;
9503
+ };
9504
+ Insert: {
9505
+ ai_concept?: import("./types").Json | null;
9506
+ created_at?: string;
9507
+ id?: string;
9508
+ offerte_id?: string | null;
9509
+ proposal_id: string;
9510
+ seen_at?: string | null;
9511
+ updated_at?: string;
9512
+ };
9513
+ Update: {
9514
+ ai_concept?: import("./types").Json | null;
9515
+ created_at?: string;
9516
+ id?: string;
9517
+ offerte_id?: string | null;
9518
+ proposal_id?: string;
9519
+ seen_at?: string | null;
9520
+ updated_at?: string;
9521
+ };
9522
+ Relationships: [{
9523
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9524
+ columns: ["offerte_id"];
9525
+ isOneToOne: false;
9526
+ referencedRelation: "itk_offertes";
9527
+ referencedColumns: ["id"];
9528
+ }];
9529
+ };
9377
9530
  itk_offerte_werkbon_queue: {
9378
9531
  Row: {
9379
9532
  bron_werkbon_id: string | null;
@@ -9424,6 +9577,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9424
9577
  };
9425
9578
  itk_offertes: {
9426
9579
  Row: {
9580
+ aandachtspunten: string | null;
9427
9581
  ai_generated: boolean;
9428
9582
  approved_at: string | null;
9429
9583
  binnen_mandaat: boolean;
@@ -9439,6 +9593,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9439
9593
  notities: string | null;
9440
9594
  offerte_number: string | null;
9441
9595
  omschrijving: string;
9596
+ onderwerp: string | null;
9442
9597
  rejected_at: string | null;
9443
9598
  sent_at: string | null;
9444
9599
  source_number: string | null;
@@ -9451,12 +9606,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9451
9606
  valid_until: string | null;
9452
9607
  vat_cents: number;
9453
9608
  vat_rate: number;
9609
+ verzonden_naar: string | null;
9454
9610
  viewed_at: string | null;
9455
9611
  volgnummer: number | null;
9612
+ voorwaarden: string | null;
9456
9613
  werkbon_id: string | null;
9457
9614
  work_location_id: string | null;
9458
9615
  };
9459
9616
  Insert: {
9617
+ aandachtspunten?: string | null;
9460
9618
  ai_generated?: boolean;
9461
9619
  approved_at?: string | null;
9462
9620
  binnen_mandaat?: boolean;
@@ -9472,6 +9630,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9472
9630
  notities?: string | null;
9473
9631
  offerte_number?: string | null;
9474
9632
  omschrijving?: string;
9633
+ onderwerp?: string | null;
9475
9634
  rejected_at?: string | null;
9476
9635
  sent_at?: string | null;
9477
9636
  source_number?: string | null;
@@ -9484,12 +9643,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9484
9643
  valid_until?: string | null;
9485
9644
  vat_cents?: number;
9486
9645
  vat_rate?: number;
9646
+ verzonden_naar?: string | null;
9487
9647
  viewed_at?: string | null;
9488
9648
  volgnummer?: number | null;
9649
+ voorwaarden?: string | null;
9489
9650
  werkbon_id?: string | null;
9490
9651
  work_location_id?: string | null;
9491
9652
  };
9492
9653
  Update: {
9654
+ aandachtspunten?: string | null;
9493
9655
  ai_generated?: boolean;
9494
9656
  approved_at?: string | null;
9495
9657
  binnen_mandaat?: boolean;
@@ -9505,6 +9667,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9505
9667
  notities?: string | null;
9506
9668
  offerte_number?: string | null;
9507
9669
  omschrijving?: string;
9670
+ onderwerp?: string | null;
9508
9671
  rejected_at?: string | null;
9509
9672
  sent_at?: string | null;
9510
9673
  source_number?: string | null;
@@ -9517,8 +9680,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9517
9680
  valid_until?: string | null;
9518
9681
  vat_cents?: number;
9519
9682
  vat_rate?: number;
9683
+ verzonden_naar?: string | null;
9520
9684
  viewed_at?: string | null;
9521
9685
  volgnummer?: number | null;
9686
+ voorwaarden?: string | null;
9522
9687
  werkbon_id?: string | null;
9523
9688
  work_location_id?: string | null;
9524
9689
  };
@@ -9694,6 +9859,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9694
9859
  };
9695
9860
  leave_requests: {
9696
9861
  Row: {
9862
+ cancellation_requested_at: string | null;
9863
+ cancellation_status: string | null;
9697
9864
  created_at: string;
9698
9865
  decided_at: string | null;
9699
9866
  decided_by: string | null;
@@ -9704,6 +9871,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9704
9871
  leave_type: string;
9705
9872
  monteur_id: string | null;
9706
9873
  reason: string | null;
9874
+ reden_afkeur: string | null;
9707
9875
  start_date: string;
9708
9876
  start_time: string | null;
9709
9877
  status: string;
@@ -9711,6 +9879,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9711
9879
  user_id: string;
9712
9880
  };
9713
9881
  Insert: {
9882
+ cancellation_requested_at?: string | null;
9883
+ cancellation_status?: string | null;
9714
9884
  created_at?: string;
9715
9885
  decided_at?: string | null;
9716
9886
  decided_by?: string | null;
@@ -9721,6 +9891,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9721
9891
  leave_type?: string;
9722
9892
  monteur_id?: string | null;
9723
9893
  reason?: string | null;
9894
+ reden_afkeur?: string | null;
9724
9895
  start_date: string;
9725
9896
  start_time?: string | null;
9726
9897
  status?: string;
@@ -9728,6 +9899,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9728
9899
  user_id: string;
9729
9900
  };
9730
9901
  Update: {
9902
+ cancellation_requested_at?: string | null;
9903
+ cancellation_status?: string | null;
9731
9904
  created_at?: string;
9732
9905
  decided_at?: string | null;
9733
9906
  decided_by?: string | null;
@@ -9738,6 +9911,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9738
9911
  leave_type?: string;
9739
9912
  monteur_id?: string | null;
9740
9913
  reason?: string | null;
9914
+ reden_afkeur?: string | null;
9741
9915
  start_date?: string;
9742
9916
  start_time?: string | null;
9743
9917
  status?: string;
@@ -10880,6 +11054,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10880
11054
  };
10881
11055
  Relationships: [];
10882
11056
  };
11057
+ logistics_order_finalize_queue: {
11058
+ Row: {
11059
+ attempts: number;
11060
+ claimed_at: string | null;
11061
+ created_at: string;
11062
+ finished_at: string | null;
11063
+ last_error: string | null;
11064
+ lease_until: string | null;
11065
+ max_attempts: number;
11066
+ next_attempt_at: string;
11067
+ order_id: string;
11068
+ reason: string | null;
11069
+ requested_at: string;
11070
+ status: string;
11071
+ updated_at: string;
11072
+ };
11073
+ Insert: {
11074
+ attempts?: number;
11075
+ claimed_at?: string | null;
11076
+ created_at?: string;
11077
+ finished_at?: string | null;
11078
+ last_error?: string | null;
11079
+ lease_until?: string | null;
11080
+ max_attempts?: number;
11081
+ next_attempt_at?: string;
11082
+ order_id: string;
11083
+ reason?: string | null;
11084
+ requested_at?: string;
11085
+ status?: string;
11086
+ updated_at?: string;
11087
+ };
11088
+ Update: {
11089
+ attempts?: number;
11090
+ claimed_at?: string | null;
11091
+ created_at?: string;
11092
+ finished_at?: string | null;
11093
+ last_error?: string | null;
11094
+ lease_until?: string | null;
11095
+ max_attempts?: number;
11096
+ next_attempt_at?: string;
11097
+ order_id?: string;
11098
+ reason?: string | null;
11099
+ requested_at?: string;
11100
+ status?: string;
11101
+ updated_at?: string;
11102
+ };
11103
+ Relationships: [];
11104
+ };
10883
11105
  logistics_order_merges: {
10884
11106
  Row: {
10885
11107
  group_key: string;
@@ -10916,6 +11138,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10916
11138
  };
10917
11139
  Relationships: [];
10918
11140
  };
11141
+ logistics_packing_deviations: {
11142
+ Row: {
11143
+ auto_fixed_at: string | null;
11144
+ created_at: string;
11145
+ dev_key: string;
11146
+ first_seen_at: string;
11147
+ floriday_packing: import("./types").Json;
11148
+ human_reason: string | null;
11149
+ id: string;
11150
+ last_seen_at: string;
11151
+ local_packing: import("./types").Json;
11152
+ needs_human: boolean;
11153
+ order_id: string | null;
11154
+ order_item_id: string | null;
11155
+ order_number: string | null;
11156
+ product_id: string | null;
11157
+ product_name: string | null;
11158
+ resolved_at: string | null;
11159
+ scope: string;
11160
+ trade_item_id: string | null;
11161
+ updated_at: string;
11162
+ };
11163
+ Insert: {
11164
+ auto_fixed_at?: string | null;
11165
+ created_at?: string;
11166
+ dev_key: string;
11167
+ first_seen_at?: string;
11168
+ floriday_packing?: import("./types").Json;
11169
+ human_reason?: string | null;
11170
+ id?: string;
11171
+ last_seen_at?: string;
11172
+ local_packing?: import("./types").Json;
11173
+ needs_human?: boolean;
11174
+ order_id?: string | null;
11175
+ order_item_id?: string | null;
11176
+ order_number?: string | null;
11177
+ product_id?: string | null;
11178
+ product_name?: string | null;
11179
+ resolved_at?: string | null;
11180
+ scope: string;
11181
+ trade_item_id?: string | null;
11182
+ updated_at?: string;
11183
+ };
11184
+ Update: {
11185
+ auto_fixed_at?: string | null;
11186
+ created_at?: string;
11187
+ dev_key?: string;
11188
+ first_seen_at?: string;
11189
+ floriday_packing?: import("./types").Json;
11190
+ human_reason?: string | null;
11191
+ id?: string;
11192
+ last_seen_at?: string;
11193
+ local_packing?: import("./types").Json;
11194
+ needs_human?: boolean;
11195
+ order_id?: string | null;
11196
+ order_item_id?: string | null;
11197
+ order_number?: string | null;
11198
+ product_id?: string | null;
11199
+ product_name?: string | null;
11200
+ resolved_at?: string | null;
11201
+ scope?: string;
11202
+ trade_item_id?: string | null;
11203
+ updated_at?: string;
11204
+ };
11205
+ Relationships: [];
11206
+ };
10919
11207
  logistics_pick_data_requests: {
10920
11208
  Row: {
10921
11209
  actions: import("./types").Json;
@@ -11153,14 +11441,70 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11153
11441
  };
11154
11442
  Relationships: [];
11155
11443
  };
11444
+ logistics_planner_diff_runs: {
11445
+ Row: {
11446
+ after_snapshot: import("./types").Json | null;
11447
+ before_snapshot: import("./types").Json;
11448
+ buffer_id: string | null;
11449
+ carts_after: number | null;
11450
+ carts_before: number | null;
11451
+ compared_at: string | null;
11452
+ created_at: string;
11453
+ differences: import("./types").Json | null;
11454
+ id: string;
11455
+ identical: boolean | null;
11456
+ mode: string;
11457
+ order_id: string;
11458
+ order_ref: string | null;
11459
+ reason: string | null;
11460
+ status: string;
11461
+ };
11462
+ Insert: {
11463
+ after_snapshot?: import("./types").Json | null;
11464
+ before_snapshot?: import("./types").Json;
11465
+ buffer_id?: string | null;
11466
+ carts_after?: number | null;
11467
+ carts_before?: number | null;
11468
+ compared_at?: string | null;
11469
+ created_at?: string;
11470
+ differences?: import("./types").Json | null;
11471
+ id?: string;
11472
+ identical?: boolean | null;
11473
+ mode: string;
11474
+ order_id: string;
11475
+ order_ref?: string | null;
11476
+ reason?: string | null;
11477
+ status?: string;
11478
+ };
11479
+ Update: {
11480
+ after_snapshot?: import("./types").Json | null;
11481
+ before_snapshot?: import("./types").Json;
11482
+ buffer_id?: string | null;
11483
+ carts_after?: number | null;
11484
+ carts_before?: number | null;
11485
+ compared_at?: string | null;
11486
+ created_at?: string;
11487
+ differences?: import("./types").Json | null;
11488
+ id?: string;
11489
+ identical?: boolean | null;
11490
+ mode?: string;
11491
+ order_id?: string;
11492
+ order_ref?: string | null;
11493
+ reason?: string | null;
11494
+ status?: string;
11495
+ };
11496
+ Relationships: [];
11497
+ };
11156
11498
  logistics_rebuffer_state: {
11157
11499
  Row: {
11158
11500
  created_at: string;
11159
11501
  id: boolean;
11160
11502
  last_checked: number;
11161
11503
  last_duration_ms: number;
11504
+ last_mode: string | null;
11162
11505
  last_run_at: string | null;
11163
11506
  last_updated: number;
11507
+ last_would_change: number | null;
11164
11508
  pending: boolean;
11165
11509
  requested_at: string | null;
11166
11510
  updated_at: string;
@@ -11170,8 +11514,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11170
11514
  id?: boolean;
11171
11515
  last_checked?: number;
11172
11516
  last_duration_ms?: number;
11517
+ last_mode?: string | null;
11173
11518
  last_run_at?: string | null;
11174
11519
  last_updated?: number;
11520
+ last_would_change?: number | null;
11175
11521
  pending?: boolean;
11176
11522
  requested_at?: string | null;
11177
11523
  updated_at?: string;
@@ -11181,8 +11527,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11181
11527
  id?: boolean;
11182
11528
  last_checked?: number;
11183
11529
  last_duration_ms?: number;
11530
+ last_mode?: string | null;
11184
11531
  last_run_at?: string | null;
11185
11532
  last_updated?: number;
11533
+ last_would_change?: number | null;
11186
11534
  pending?: boolean;
11187
11535
  requested_at?: string | null;
11188
11536
  updated_at?: string;
@@ -13178,6 +13526,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13178
13526
  };
13179
13527
  Relationships: [];
13180
13528
  };
13529
+ monteur_contracten: {
13530
+ Row: {
13531
+ contract_type: string;
13532
+ created_at: string;
13533
+ days_per_week: number;
13534
+ hours_per_week: number;
13535
+ id: string;
13536
+ updated_at: string;
13537
+ user_id: string;
13538
+ vacation_day_hours: number;
13539
+ vacation_days_per_year: number;
13540
+ };
13541
+ Insert: {
13542
+ contract_type?: string;
13543
+ created_at?: string;
13544
+ days_per_week?: number;
13545
+ hours_per_week?: number;
13546
+ id?: string;
13547
+ updated_at?: string;
13548
+ user_id: string;
13549
+ vacation_day_hours?: number;
13550
+ vacation_days_per_year?: number;
13551
+ };
13552
+ Update: {
13553
+ contract_type?: string;
13554
+ created_at?: string;
13555
+ days_per_week?: number;
13556
+ hours_per_week?: number;
13557
+ id?: string;
13558
+ updated_at?: string;
13559
+ user_id?: string;
13560
+ vacation_day_hours?: number;
13561
+ vacation_days_per_year?: number;
13562
+ };
13563
+ Relationships: [];
13564
+ };
13181
13565
  nmbrs_component_mapping: {
13182
13566
  Row: {
13183
13567
  created_at: string;
@@ -13657,6 +14041,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13657
14041
  id: string;
13658
14042
  items: import("./types").Json;
13659
14043
  notes: string | null;
14044
+ order_creation_error: string | null;
14045
+ order_creation_failed_at: string | null;
14046
+ order_id: string | null;
13660
14047
  order_number: string | null;
13661
14048
  recipient_id: string;
13662
14049
  total_amount: number;
@@ -13671,6 +14058,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13671
14058
  id?: string;
13672
14059
  items?: import("./types").Json;
13673
14060
  notes?: string | null;
14061
+ order_creation_error?: string | null;
14062
+ order_creation_failed_at?: string | null;
14063
+ order_id?: string | null;
13674
14064
  order_number?: string | null;
13675
14065
  recipient_id: string;
13676
14066
  total_amount?: number;
@@ -13685,6 +14075,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13685
14075
  id?: string;
13686
14076
  items?: import("./types").Json;
13687
14077
  notes?: string | null;
14078
+ order_creation_error?: string | null;
14079
+ order_creation_failed_at?: string | null;
14080
+ order_id?: string | null;
13688
14081
  order_number?: string | null;
13689
14082
  recipient_id?: string;
13690
14083
  total_amount?: number;
@@ -13701,6 +14094,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13701
14094
  isOneToOne: false;
13702
14095
  referencedRelation: "customers";
13703
14096
  referencedColumns: ["id"];
14097
+ }, {
14098
+ foreignKeyName: "offer_orders_order_id_fkey";
14099
+ columns: ["order_id"];
14100
+ isOneToOne: false;
14101
+ referencedRelation: "orders";
14102
+ referencedColumns: ["id"];
13704
14103
  }, {
13705
14104
  foreignKeyName: "offer_orders_recipient_id_fkey";
13706
14105
  columns: ["recipient_id"];
@@ -13841,6 +14240,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13841
14240
  };
13842
14241
  Relationships: [];
13843
14242
  };
14243
+ order_block_notifications: {
14244
+ Row: {
14245
+ id: string;
14246
+ notified_at: string;
14247
+ order_id: string;
14248
+ reason: string | null;
14249
+ reason_key: string;
14250
+ };
14251
+ Insert: {
14252
+ id?: string;
14253
+ notified_at?: string;
14254
+ order_id: string;
14255
+ reason?: string | null;
14256
+ reason_key: string;
14257
+ };
14258
+ Update: {
14259
+ id?: string;
14260
+ notified_at?: string;
14261
+ order_id?: string;
14262
+ reason?: string | null;
14263
+ reason_key?: string;
14264
+ };
14265
+ Relationships: [];
14266
+ };
13844
14267
  order_buffers: {
13845
14268
  Row: {
13846
14269
  buffer_key: string;
@@ -14310,10 +14733,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14310
14733
  id: string;
14311
14734
  layers_per_cart: number | null;
14312
14735
  order_id: string;
14736
+ packing_locked_at: string | null;
14737
+ packing_locked_by: string | null;
14313
14738
  plants_per_crate: number | null;
14314
14739
  product_id: string | null;
14315
14740
  product_name: string;
14316
14741
  quantity: number;
14742
+ source_line_key: string | null;
14317
14743
  unit: string;
14318
14744
  unit_price: number | null;
14319
14745
  };
@@ -14323,10 +14749,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14323
14749
  id?: string;
14324
14750
  layers_per_cart?: number | null;
14325
14751
  order_id: string;
14752
+ packing_locked_at?: string | null;
14753
+ packing_locked_by?: string | null;
14326
14754
  plants_per_crate?: number | null;
14327
14755
  product_id?: string | null;
14328
14756
  product_name: string;
14329
14757
  quantity?: number;
14758
+ source_line_key?: string | null;
14330
14759
  unit?: string;
14331
14760
  unit_price?: number | null;
14332
14761
  };
@@ -14336,10 +14765,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14336
14765
  id?: string;
14337
14766
  layers_per_cart?: number | null;
14338
14767
  order_id?: string;
14768
+ packing_locked_at?: string | null;
14769
+ packing_locked_by?: string | null;
14339
14770
  plants_per_crate?: number | null;
14340
14771
  product_id?: string | null;
14341
14772
  product_name?: string;
14342
14773
  quantity?: number;
14774
+ source_line_key?: string | null;
14343
14775
  unit?: string;
14344
14776
  unit_price?: number | null;
14345
14777
  };
@@ -15848,26 +16280,215 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15848
16280
  referencedColumns: ["id"];
15849
16281
  }];
15850
16282
  };
15851
- price_list_rows: {
16283
+ planning_monteur_day_locations: {
15852
16284
  Row: {
15853
- action: string;
15854
16285
  created_at: string;
16286
+ day: string;
16287
+ end_at: string;
15855
16288
  id: string;
15856
- message: string | null;
15857
- parsed: import("./types").Json;
15858
- price_list_id: string;
15859
- raw: import("./types").Json;
15860
- row_number: number;
15861
- supplier_product_id: string | null;
16289
+ monteur_id: string;
16290
+ start_from: string;
16291
+ updated_at: string;
15862
16292
  };
15863
16293
  Insert: {
15864
- action?: string;
15865
16294
  created_at?: string;
16295
+ day: string;
16296
+ end_at?: string;
15866
16297
  id?: string;
15867
- message?: string | null;
15868
- parsed?: import("./types").Json;
15869
- price_list_id: string;
15870
- raw?: import("./types").Json;
16298
+ monteur_id: string;
16299
+ start_from?: string;
16300
+ updated_at?: string;
16301
+ };
16302
+ Update: {
16303
+ created_at?: string;
16304
+ day?: string;
16305
+ end_at?: string;
16306
+ id?: string;
16307
+ monteur_id?: string;
16308
+ start_from?: string;
16309
+ updated_at?: string;
16310
+ };
16311
+ Relationships: [];
16312
+ };
16313
+ planning_monteur_locations: {
16314
+ Row: {
16315
+ created_at: string;
16316
+ default_end: string;
16317
+ default_start: string;
16318
+ end_address: string | null;
16319
+ home_address: string | null;
16320
+ id: string;
16321
+ monteur_id: string;
16322
+ start_address: string | null;
16323
+ updated_at: string;
16324
+ };
16325
+ Insert: {
16326
+ created_at?: string;
16327
+ default_end?: string;
16328
+ default_start?: string;
16329
+ end_address?: string | null;
16330
+ home_address?: string | null;
16331
+ id?: string;
16332
+ monteur_id: string;
16333
+ start_address?: string | null;
16334
+ updated_at?: string;
16335
+ };
16336
+ Update: {
16337
+ created_at?: string;
16338
+ default_end?: string;
16339
+ default_start?: string;
16340
+ end_address?: string | null;
16341
+ home_address?: string | null;
16342
+ id?: string;
16343
+ monteur_id?: string;
16344
+ start_address?: string | null;
16345
+ updated_at?: string;
16346
+ };
16347
+ Relationships: [];
16348
+ };
16349
+ planning_settings: {
16350
+ Row: {
16351
+ company_address: string | null;
16352
+ created_at: string;
16353
+ id: string;
16354
+ singleton: boolean;
16355
+ updated_at: string;
16356
+ };
16357
+ Insert: {
16358
+ company_address?: string | null;
16359
+ created_at?: string;
16360
+ id?: string;
16361
+ singleton?: boolean;
16362
+ updated_at?: string;
16363
+ };
16364
+ Update: {
16365
+ company_address?: string | null;
16366
+ created_at?: string;
16367
+ id?: string;
16368
+ singleton?: boolean;
16369
+ updated_at?: string;
16370
+ };
16371
+ Relationships: [];
16372
+ };
16373
+ planning_travel_legs: {
16374
+ Row: {
16375
+ after_min: number;
16376
+ after_reason: string | null;
16377
+ after_status: string;
16378
+ after_to_address: string | null;
16379
+ before_from_address: string | null;
16380
+ before_min: number;
16381
+ before_reason: string | null;
16382
+ before_status: string;
16383
+ computed_at: string;
16384
+ computed_end_at: string | null;
16385
+ computed_start_at: string | null;
16386
+ created_at: string;
16387
+ id: string;
16388
+ monteur_id: string;
16389
+ planning_item_id: string;
16390
+ shared_after_item_id: string | null;
16391
+ shared_before_item_id: string | null;
16392
+ updated_at: string;
16393
+ };
16394
+ Insert: {
16395
+ after_min?: number;
16396
+ after_reason?: string | null;
16397
+ after_status?: string;
16398
+ after_to_address?: string | null;
16399
+ before_from_address?: string | null;
16400
+ before_min?: number;
16401
+ before_reason?: string | null;
16402
+ before_status?: string;
16403
+ computed_at?: string;
16404
+ computed_end_at?: string | null;
16405
+ computed_start_at?: string | null;
16406
+ created_at?: string;
16407
+ id?: string;
16408
+ monteur_id: string;
16409
+ planning_item_id: string;
16410
+ shared_after_item_id?: string | null;
16411
+ shared_before_item_id?: string | null;
16412
+ updated_at?: string;
16413
+ };
16414
+ Update: {
16415
+ after_min?: number;
16416
+ after_reason?: string | null;
16417
+ after_status?: string;
16418
+ after_to_address?: string | null;
16419
+ before_from_address?: string | null;
16420
+ before_min?: number;
16421
+ before_reason?: string | null;
16422
+ before_status?: string;
16423
+ computed_at?: string;
16424
+ computed_end_at?: string | null;
16425
+ computed_start_at?: string | null;
16426
+ created_at?: string;
16427
+ id?: string;
16428
+ monteur_id?: string;
16429
+ planning_item_id?: string;
16430
+ shared_after_item_id?: string | null;
16431
+ shared_before_item_id?: string | null;
16432
+ updated_at?: string;
16433
+ };
16434
+ Relationships: [{
16435
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16436
+ columns: ["planning_item_id"];
16437
+ isOneToOne: false;
16438
+ referencedRelation: "planning_items";
16439
+ referencedColumns: ["id"];
16440
+ }, {
16441
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16442
+ columns: ["planning_item_id"];
16443
+ isOneToOne: false;
16444
+ referencedRelation: "planning_overview";
16445
+ referencedColumns: ["id"];
16446
+ }, {
16447
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16448
+ columns: ["shared_after_item_id"];
16449
+ isOneToOne: false;
16450
+ referencedRelation: "planning_items";
16451
+ referencedColumns: ["id"];
16452
+ }, {
16453
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16454
+ columns: ["shared_after_item_id"];
16455
+ isOneToOne: false;
16456
+ referencedRelation: "planning_overview";
16457
+ referencedColumns: ["id"];
16458
+ }, {
16459
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16460
+ columns: ["shared_before_item_id"];
16461
+ isOneToOne: false;
16462
+ referencedRelation: "planning_items";
16463
+ referencedColumns: ["id"];
16464
+ }, {
16465
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16466
+ columns: ["shared_before_item_id"];
16467
+ isOneToOne: false;
16468
+ referencedRelation: "planning_overview";
16469
+ referencedColumns: ["id"];
16470
+ }];
16471
+ };
16472
+ price_list_rows: {
16473
+ Row: {
16474
+ action: string;
16475
+ created_at: string;
16476
+ id: string;
16477
+ message: string | null;
16478
+ parsed: import("./types").Json;
16479
+ price_list_id: string;
16480
+ raw: import("./types").Json;
16481
+ row_number: number;
16482
+ supplier_product_id: string | null;
16483
+ };
16484
+ Insert: {
16485
+ action?: string;
16486
+ created_at?: string;
16487
+ id?: string;
16488
+ message?: string | null;
16489
+ parsed?: import("./types").Json;
16490
+ price_list_id: string;
16491
+ raw?: import("./types").Json;
15871
16492
  row_number: number;
15872
16493
  supplier_product_id?: string | null;
15873
16494
  };
@@ -17020,6 +17641,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17020
17641
  };
17021
17642
  product_load_settings: {
17022
17643
  Row: {
17644
+ build: import("./types").Json | null;
17645
+ build_status: string;
17023
17646
  created_at: string;
17024
17647
  id: string;
17025
17648
  is_package: boolean;
@@ -17037,6 +17660,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17037
17660
  updated_at: string;
17038
17661
  };
17039
17662
  Insert: {
17663
+ build?: import("./types").Json | null;
17664
+ build_status?: string;
17040
17665
  created_at?: string;
17041
17666
  id?: string;
17042
17667
  is_package?: boolean;
@@ -17054,6 +17679,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17054
17679
  updated_at?: string;
17055
17680
  };
17056
17681
  Update: {
17682
+ build?: import("./types").Json | null;
17683
+ build_status?: string;
17057
17684
  created_at?: string;
17058
17685
  id?: string;
17059
17686
  is_package?: boolean;
@@ -17123,6 +17750,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17123
17750
  };
17124
17751
  Relationships: [];
17125
17752
  };
17753
+ product_suppliers: {
17754
+ Row: {
17755
+ created_at: string;
17756
+ id: string;
17757
+ is_preferred: boolean;
17758
+ lead_time_days: number | null;
17759
+ min_order_quantity: number | null;
17760
+ notes: string | null;
17761
+ product_id: string;
17762
+ purchase_price_cents: number | null;
17763
+ supplier_article_number: string | null;
17764
+ supplier_id: string;
17765
+ updated_at: string;
17766
+ };
17767
+ Insert: {
17768
+ created_at?: string;
17769
+ id?: string;
17770
+ is_preferred?: boolean;
17771
+ lead_time_days?: number | null;
17772
+ min_order_quantity?: number | null;
17773
+ notes?: string | null;
17774
+ product_id: string;
17775
+ purchase_price_cents?: number | null;
17776
+ supplier_article_number?: string | null;
17777
+ supplier_id: string;
17778
+ updated_at?: string;
17779
+ };
17780
+ Update: {
17781
+ created_at?: string;
17782
+ id?: string;
17783
+ is_preferred?: boolean;
17784
+ lead_time_days?: number | null;
17785
+ min_order_quantity?: number | null;
17786
+ notes?: string | null;
17787
+ product_id?: string;
17788
+ purchase_price_cents?: number | null;
17789
+ supplier_article_number?: string | null;
17790
+ supplier_id?: string;
17791
+ updated_at?: string;
17792
+ };
17793
+ Relationships: [{
17794
+ foreignKeyName: "product_suppliers_product_id_fkey";
17795
+ columns: ["product_id"];
17796
+ isOneToOne: false;
17797
+ referencedRelation: "logistics_product_dimensions";
17798
+ referencedColumns: ["product_id"];
17799
+ }, {
17800
+ foreignKeyName: "product_suppliers_product_id_fkey";
17801
+ columns: ["product_id"];
17802
+ isOneToOne: false;
17803
+ referencedRelation: "products";
17804
+ referencedColumns: ["id"];
17805
+ }, {
17806
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17807
+ columns: ["supplier_id"];
17808
+ isOneToOne: false;
17809
+ referencedRelation: "suppliers";
17810
+ referencedColumns: ["id"];
17811
+ }];
17812
+ };
17813
+ product_tray_stickers: {
17814
+ Row: {
17815
+ bestand_url: string;
17816
+ bestandsgrootte: number | null;
17817
+ bestandsnaam: string | null;
17818
+ bestandspad: string | null;
17819
+ created_at: string;
17820
+ product_id: string;
17821
+ updated_at: string;
17822
+ };
17823
+ Insert: {
17824
+ bestand_url: string;
17825
+ bestandsgrootte?: number | null;
17826
+ bestandsnaam?: string | null;
17827
+ bestandspad?: string | null;
17828
+ created_at?: string;
17829
+ product_id: string;
17830
+ updated_at?: string;
17831
+ };
17832
+ Update: {
17833
+ bestand_url?: string;
17834
+ bestandsgrootte?: number | null;
17835
+ bestandsnaam?: string | null;
17836
+ bestandspad?: string | null;
17837
+ created_at?: string;
17838
+ product_id?: string;
17839
+ updated_at?: string;
17840
+ };
17841
+ Relationships: [{
17842
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17843
+ columns: ["product_id"];
17844
+ isOneToOne: true;
17845
+ referencedRelation: "logistics_product_dimensions";
17846
+ referencedColumns: ["product_id"];
17847
+ }, {
17848
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17849
+ columns: ["product_id"];
17850
+ isOneToOne: true;
17851
+ referencedRelation: "products";
17852
+ referencedColumns: ["id"];
17853
+ }];
17854
+ };
17126
17855
  products: {
17127
17856
  Row: {
17128
17857
  article_number: string | null;
@@ -17131,6 +17860,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17131
17860
  crates_per_layer: number;
17132
17861
  created_at: string;
17133
17862
  custom_fields: import("./types").Json;
17863
+ floriday_packing_confirmed_at: string | null;
17864
+ floriday_packing_source: string | null;
17134
17865
  floriday_trade_item_id: string | null;
17135
17866
  fust_type_id: string | null;
17136
17867
  id: string;
@@ -17159,6 +17890,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17159
17890
  crates_per_layer?: number;
17160
17891
  created_at?: string;
17161
17892
  custom_fields?: import("./types").Json;
17893
+ floriday_packing_confirmed_at?: string | null;
17894
+ floriday_packing_source?: string | null;
17162
17895
  floriday_trade_item_id?: string | null;
17163
17896
  fust_type_id?: string | null;
17164
17897
  id?: string;
@@ -17187,6 +17920,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17187
17920
  crates_per_layer?: number;
17188
17921
  created_at?: string;
17189
17922
  custom_fields?: import("./types").Json;
17923
+ floriday_packing_confirmed_at?: string | null;
17924
+ floriday_packing_source?: string | null;
17190
17925
  floriday_trade_item_id?: string | null;
17191
17926
  fust_type_id?: string | null;
17192
17927
  id?: string;
@@ -17286,6 +18021,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17286
18021
  id: string;
17287
18022
  is_superadmin: boolean;
17288
18023
  notification_preferences: import("./types").Json;
18024
+ phone: string | null;
17289
18025
  tenant_id: string | null;
17290
18026
  updated_at: string;
17291
18027
  };
@@ -17298,6 +18034,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17298
18034
  id: string;
17299
18035
  is_superadmin?: boolean;
17300
18036
  notification_preferences?: import("./types").Json;
18037
+ phone?: string | null;
17301
18038
  tenant_id?: string | null;
17302
18039
  updated_at?: string;
17303
18040
  };
@@ -17310,6 +18047,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17310
18047
  id?: string;
17311
18048
  is_superadmin?: boolean;
17312
18049
  notification_preferences?: import("./types").Json;
18050
+ phone?: string | null;
17313
18051
  tenant_id?: string | null;
17314
18052
  updated_at?: string;
17315
18053
  };
@@ -19053,40 +19791,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19053
19791
  Row: {
19054
19792
  approved_at: string | null;
19055
19793
  approved_by: string | null;
19794
+ contract_hours: number;
19056
19795
  created_at: string;
19057
19796
  employee_id: string;
19058
19797
  id: string;
19059
19798
  locked: boolean;
19799
+ monteur_toelichting: string | null;
19060
19800
  notes: string | null;
19801
+ planned_hours: number;
19061
19802
  status: string;
19062
19803
  submitted_at: string | null;
19063
19804
  updated_at: string;
19805
+ variance_hours: number;
19064
19806
  week_start: string;
19065
19807
  };
19066
19808
  Insert: {
19067
19809
  approved_at?: string | null;
19068
19810
  approved_by?: string | null;
19811
+ contract_hours?: number;
19069
19812
  created_at?: string;
19070
19813
  employee_id: string;
19071
19814
  id?: string;
19072
19815
  locked?: boolean;
19816
+ monteur_toelichting?: string | null;
19073
19817
  notes?: string | null;
19818
+ planned_hours?: number;
19074
19819
  status?: string;
19075
19820
  submitted_at?: string | null;
19076
19821
  updated_at?: string;
19822
+ variance_hours?: number;
19077
19823
  week_start: string;
19078
19824
  };
19079
19825
  Update: {
19080
19826
  approved_at?: string | null;
19081
19827
  approved_by?: string | null;
19828
+ contract_hours?: number;
19082
19829
  created_at?: string;
19083
19830
  employee_id?: string;
19084
19831
  id?: string;
19085
19832
  locked?: boolean;
19833
+ monteur_toelichting?: string | null;
19086
19834
  notes?: string | null;
19835
+ planned_hours?: number;
19087
19836
  status?: string;
19088
19837
  submitted_at?: string | null;
19089
19838
  updated_at?: string;
19839
+ variance_hours?: number;
19090
19840
  week_start?: string;
19091
19841
  };
19092
19842
  Relationships: [{
@@ -20373,16 +21123,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20373
21123
  Row: {
20374
21124
  active_environment: string;
20375
21125
  id: number;
21126
+ public_base_url: string | null;
20376
21127
  updated_at: string;
20377
21128
  };
20378
21129
  Insert: {
20379
21130
  active_environment?: string;
20380
21131
  id?: number;
21132
+ public_base_url?: string | null;
20381
21133
  updated_at?: string;
20382
21134
  };
20383
21135
  Update: {
20384
21136
  active_environment?: string;
20385
21137
  id?: number;
21138
+ public_base_url?: string | null;
20386
21139
  updated_at?: string;
20387
21140
  };
20388
21141
  Relationships: [];
@@ -20420,6 +21173,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20420
21173
  referencedColumns: ["id"];
20421
21174
  }];
20422
21175
  };
21176
+ uren_beschikbare_dagen: {
21177
+ Row: {
21178
+ bron: string;
21179
+ created_at: string;
21180
+ datum: string;
21181
+ eind_tijd: string | null;
21182
+ half_hour_slots: number[];
21183
+ id: string;
21184
+ monteur_id: string;
21185
+ start_tijd: string | null;
21186
+ updated_at: string;
21187
+ uren: number;
21188
+ };
21189
+ Insert: {
21190
+ bron?: string;
21191
+ created_at?: string;
21192
+ datum: string;
21193
+ eind_tijd?: string | null;
21194
+ half_hour_slots?: number[];
21195
+ id?: string;
21196
+ monteur_id: string;
21197
+ start_tijd?: string | null;
21198
+ updated_at?: string;
21199
+ uren?: number;
21200
+ };
21201
+ Update: {
21202
+ bron?: string;
21203
+ created_at?: string;
21204
+ datum?: string;
21205
+ eind_tijd?: string | null;
21206
+ half_hour_slots?: number[];
21207
+ id?: string;
21208
+ monteur_id?: string;
21209
+ start_tijd?: string | null;
21210
+ updated_at?: string;
21211
+ uren?: number;
21212
+ };
21213
+ Relationships: [];
21214
+ };
20423
21215
  uren_cao_profiles: {
20424
21216
  Row: {
20425
21217
  break_minutes: number | null;
@@ -20558,32 +21350,161 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20558
21350
  };
20559
21351
  Relationships: [];
20560
21352
  };
20561
- uren_settings: {
21353
+ uren_maandafsluitingen: {
20562
21354
  Row: {
20563
- break_minutes: number;
21355
+ afgesloten_at: string | null;
21356
+ afgesloten_door: string | null;
21357
+ contract_minuten: number;
21358
+ correctie_reden: string | null;
20564
21359
  created_at: string;
20565
- daily_threshold_hours: number;
20566
- id: boolean;
20567
- include_travel: boolean;
20568
- min_occupancy_monteurs: number;
20569
- ov02_percentage: number;
20570
- ov03_percentage: number;
21360
+ gecorrigeerd_at: string | null;
21361
+ gecorrigeerd_door: string | null;
21362
+ gewerkte_minuten: number;
21363
+ id: string;
21364
+ maand: string;
21365
+ min_minuten: number;
21366
+ monteur_id: string;
21367
+ netto_verschil_minuten: number;
21368
+ normaal_uitbetaald_minuten: number;
21369
+ omgezet_vakantie_minuten: number;
21370
+ overdracht_vorige_minuten: number;
21371
+ overuren_minuten: number;
21372
+ plus_minuten: number;
21373
+ rest_overuren_minuten: number;
21374
+ status: string;
21375
+ totaal_uitbetaald_minuten: number;
20571
21376
  updated_at: string;
20572
- weekly_threshold_hours: number;
20573
- workday_end: string;
20574
- workday_start: string;
21377
+ vakantie_uren_bijgeschreven: number;
20575
21378
  };
20576
21379
  Insert: {
20577
- break_minutes?: number;
21380
+ afgesloten_at?: string | null;
21381
+ afgesloten_door?: string | null;
21382
+ contract_minuten?: number;
21383
+ correctie_reden?: string | null;
20578
21384
  created_at?: string;
20579
- daily_threshold_hours?: number;
20580
- id?: boolean;
20581
- include_travel?: boolean;
20582
- min_occupancy_monteurs?: number;
20583
- ov02_percentage?: number;
20584
- ov03_percentage?: number;
21385
+ gecorrigeerd_at?: string | null;
21386
+ gecorrigeerd_door?: string | null;
21387
+ gewerkte_minuten?: number;
21388
+ id?: string;
21389
+ maand: string;
21390
+ min_minuten?: number;
21391
+ monteur_id: string;
21392
+ netto_verschil_minuten?: number;
21393
+ normaal_uitbetaald_minuten?: number;
21394
+ omgezet_vakantie_minuten?: number;
21395
+ overdracht_vorige_minuten?: number;
21396
+ overuren_minuten?: number;
21397
+ plus_minuten?: number;
21398
+ rest_overuren_minuten?: number;
21399
+ status?: string;
21400
+ totaal_uitbetaald_minuten?: number;
20585
21401
  updated_at?: string;
20586
- weekly_threshold_hours?: number;
21402
+ vakantie_uren_bijgeschreven?: number;
21403
+ };
21404
+ Update: {
21405
+ afgesloten_at?: string | null;
21406
+ afgesloten_door?: string | null;
21407
+ contract_minuten?: number;
21408
+ correctie_reden?: string | null;
21409
+ created_at?: string;
21410
+ gecorrigeerd_at?: string | null;
21411
+ gecorrigeerd_door?: string | null;
21412
+ gewerkte_minuten?: number;
21413
+ id?: string;
21414
+ maand?: string;
21415
+ min_minuten?: number;
21416
+ monteur_id?: string;
21417
+ netto_verschil_minuten?: number;
21418
+ normaal_uitbetaald_minuten?: number;
21419
+ omgezet_vakantie_minuten?: number;
21420
+ overdracht_vorige_minuten?: number;
21421
+ overuren_minuten?: number;
21422
+ plus_minuten?: number;
21423
+ rest_overuren_minuten?: number;
21424
+ status?: string;
21425
+ totaal_uitbetaald_minuten?: number;
21426
+ updated_at?: string;
21427
+ vakantie_uren_bijgeschreven?: number;
21428
+ };
21429
+ Relationships: [];
21430
+ };
21431
+ uren_overuren_verklaringen: {
21432
+ Row: {
21433
+ beoordeeld_door: string | null;
21434
+ beoordeeld_op: string | null;
21435
+ created_at: string;
21436
+ datum: string;
21437
+ eind_tijd: string | null;
21438
+ id: string;
21439
+ ingediend_at: string;
21440
+ monteur_id: string;
21441
+ overuren: number;
21442
+ reden_afkeur: string | null;
21443
+ start_tijd: string | null;
21444
+ status: string;
21445
+ toelichting: string;
21446
+ updated_at: string;
21447
+ };
21448
+ Insert: {
21449
+ beoordeeld_door?: string | null;
21450
+ beoordeeld_op?: string | null;
21451
+ created_at?: string;
21452
+ datum: string;
21453
+ eind_tijd?: string | null;
21454
+ id?: string;
21455
+ ingediend_at?: string;
21456
+ monteur_id: string;
21457
+ overuren: number;
21458
+ reden_afkeur?: string | null;
21459
+ start_tijd?: string | null;
21460
+ status?: string;
21461
+ toelichting: string;
21462
+ updated_at?: string;
21463
+ };
21464
+ Update: {
21465
+ beoordeeld_door?: string | null;
21466
+ beoordeeld_op?: string | null;
21467
+ created_at?: string;
21468
+ datum?: string;
21469
+ eind_tijd?: string | null;
21470
+ id?: string;
21471
+ ingediend_at?: string;
21472
+ monteur_id?: string;
21473
+ overuren?: number;
21474
+ reden_afkeur?: string | null;
21475
+ start_tijd?: string | null;
21476
+ status?: string;
21477
+ toelichting?: string;
21478
+ updated_at?: string;
21479
+ };
21480
+ Relationships: [];
21481
+ };
21482
+ uren_settings: {
21483
+ Row: {
21484
+ break_minutes: number;
21485
+ created_at: string;
21486
+ daily_threshold_hours: number;
21487
+ id: boolean;
21488
+ include_travel: boolean;
21489
+ min_occupancy_monteurs: number;
21490
+ ov02_percentage: number;
21491
+ ov03_percentage: number;
21492
+ updated_at: string;
21493
+ weekly_threshold_hours: number;
21494
+ workday_end: string;
21495
+ workday_start: string;
21496
+ };
21497
+ Insert: {
21498
+ break_minutes?: number;
21499
+ created_at?: string;
21500
+ daily_threshold_hours?: number;
21501
+ id?: boolean;
21502
+ include_travel?: boolean;
21503
+ min_occupancy_monteurs?: number;
21504
+ ov02_percentage?: number;
21505
+ ov03_percentage?: number;
21506
+ updated_at?: string;
21507
+ weekly_threshold_hours?: number;
20587
21508
  workday_end?: string;
20588
21509
  workday_start?: string;
20589
21510
  };
@@ -20603,6 +21524,75 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20603
21524
  };
20604
21525
  Relationships: [];
20605
21526
  };
21527
+ uren_standaardweek: {
21528
+ Row: {
21529
+ created_at: string;
21530
+ eind_slot: number;
21531
+ id: string;
21532
+ monteur_id: string;
21533
+ start_slot: number;
21534
+ updated_at: string;
21535
+ weekdag: number;
21536
+ };
21537
+ Insert: {
21538
+ created_at?: string;
21539
+ eind_slot: number;
21540
+ id?: string;
21541
+ monteur_id: string;
21542
+ start_slot: number;
21543
+ updated_at?: string;
21544
+ weekdag: number;
21545
+ };
21546
+ Update: {
21547
+ created_at?: string;
21548
+ eind_slot?: number;
21549
+ id?: string;
21550
+ monteur_id?: string;
21551
+ start_slot?: number;
21552
+ updated_at?: string;
21553
+ weekdag?: number;
21554
+ };
21555
+ Relationships: [];
21556
+ };
21557
+ uren_standaardweek_wijzigingen: {
21558
+ Row: {
21559
+ beoordeeld_door: string | null;
21560
+ beoordeeld_op: string | null;
21561
+ created_at: string;
21562
+ huidig: import("./types").Json;
21563
+ id: string;
21564
+ monteur_id: string;
21565
+ reden_afkeur: string | null;
21566
+ status: string;
21567
+ updated_at: string;
21568
+ voorstel: import("./types").Json;
21569
+ };
21570
+ Insert: {
21571
+ beoordeeld_door?: string | null;
21572
+ beoordeeld_op?: string | null;
21573
+ created_at?: string;
21574
+ huidig?: import("./types").Json;
21575
+ id?: string;
21576
+ monteur_id: string;
21577
+ reden_afkeur?: string | null;
21578
+ status?: string;
21579
+ updated_at?: string;
21580
+ voorstel: import("./types").Json;
21581
+ };
21582
+ Update: {
21583
+ beoordeeld_door?: string | null;
21584
+ beoordeeld_op?: string | null;
21585
+ created_at?: string;
21586
+ huidig?: import("./types").Json;
21587
+ id?: string;
21588
+ monteur_id?: string;
21589
+ reden_afkeur?: string | null;
21590
+ status?: string;
21591
+ updated_at?: string;
21592
+ voorstel?: import("./types").Json;
21593
+ };
21594
+ Relationships: [];
21595
+ };
20606
21596
  uren_tarieven: {
20607
21597
  Row: {
20608
21598
  created_at: string;
@@ -20687,6 +21677,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20687
21677
  };
20688
21678
  Relationships: [];
20689
21679
  };
21680
+ uren_tijd_spiegel: {
21681
+ Row: {
21682
+ created_at: string;
21683
+ id: string;
21684
+ time_log_id: string;
21685
+ werkbon_time_log_id: string;
21686
+ };
21687
+ Insert: {
21688
+ created_at?: string;
21689
+ id?: string;
21690
+ time_log_id: string;
21691
+ werkbon_time_log_id: string;
21692
+ };
21693
+ Update: {
21694
+ created_at?: string;
21695
+ id?: string;
21696
+ time_log_id?: string;
21697
+ werkbon_time_log_id?: string;
21698
+ };
21699
+ Relationships: [{
21700
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21701
+ columns: ["time_log_id"];
21702
+ isOneToOne: true;
21703
+ referencedRelation: "time_logs";
21704
+ referencedColumns: ["id"];
21705
+ }, {
21706
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21707
+ columns: ["werkbon_time_log_id"];
21708
+ isOneToOne: true;
21709
+ referencedRelation: "werkbon_time_logs";
21710
+ referencedColumns: ["id"];
21711
+ }];
21712
+ };
20690
21713
  uren_weekstaten: {
20691
21714
  Row: {
20692
21715
  approved_at: string | null;
@@ -20729,6 +21752,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20729
21752
  };
20730
21753
  Relationships: [];
20731
21754
  };
21755
+ uren_werktijd_voorkeuren: {
21756
+ Row: {
21757
+ created_at: string;
21758
+ eind_slot: number;
21759
+ id: string;
21760
+ monteur_id: string;
21761
+ start_slot: number;
21762
+ updated_at: string;
21763
+ };
21764
+ Insert: {
21765
+ created_at?: string;
21766
+ eind_slot?: number;
21767
+ id?: string;
21768
+ monteur_id: string;
21769
+ start_slot?: number;
21770
+ updated_at?: string;
21771
+ };
21772
+ Update: {
21773
+ created_at?: string;
21774
+ eind_slot?: number;
21775
+ id?: string;
21776
+ monteur_id?: string;
21777
+ start_slot?: number;
21778
+ updated_at?: string;
21779
+ };
21780
+ Relationships: [];
21781
+ };
20732
21782
  user_module_permissions: {
20733
21783
  Row: {
20734
21784
  created_at: string;
@@ -20786,6 +21836,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20786
21836
  referencedColumns: ["id"];
20787
21837
  }];
20788
21838
  };
21839
+ vakantie_uitbetalingen: {
21840
+ Row: {
21841
+ created_at: string;
21842
+ created_by: string | null;
21843
+ days: number;
21844
+ id: string;
21845
+ note: string | null;
21846
+ updated_at: string;
21847
+ user_id: string;
21848
+ year: number;
21849
+ };
21850
+ Insert: {
21851
+ created_at?: string;
21852
+ created_by?: string | null;
21853
+ days: number;
21854
+ id?: string;
21855
+ note?: string | null;
21856
+ updated_at?: string;
21857
+ user_id: string;
21858
+ year?: number;
21859
+ };
21860
+ Update: {
21861
+ created_at?: string;
21862
+ created_by?: string | null;
21863
+ days?: number;
21864
+ id?: string;
21865
+ note?: string | null;
21866
+ updated_at?: string;
21867
+ user_id?: string;
21868
+ year?: number;
21869
+ };
21870
+ Relationships: [{
21871
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21872
+ columns: ["created_by"];
21873
+ isOneToOne: false;
21874
+ referencedRelation: "profiles";
21875
+ referencedColumns: ["id"];
21876
+ }, {
21877
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21878
+ columns: ["user_id"];
21879
+ isOneToOne: false;
21880
+ referencedRelation: "profiles";
21881
+ referencedColumns: ["id"];
21882
+ }];
21883
+ };
20789
21884
  van_inventories: {
20790
21885
  Row: {
20791
21886
  barcode: string | null;
@@ -21660,10 +22755,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21660
22755
  Row: {
21661
22756
  article_number: string | null;
21662
22757
  artikel_id: string | null;
22758
+ cost_price_cents: number;
21663
22759
  created_at: string;
21664
22760
  gtin: string | null;
21665
22761
  id: string;
21666
22762
  manufacturer: string | null;
22763
+ margin_percent: number | null;
21667
22764
  omschrijving: string;
21668
22765
  package_id: string;
21669
22766
  price_synced_at: string | null;
@@ -21678,10 +22775,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21678
22775
  Insert: {
21679
22776
  article_number?: string | null;
21680
22777
  artikel_id?: string | null;
22778
+ cost_price_cents?: number;
21681
22779
  created_at?: string;
21682
22780
  gtin?: string | null;
21683
22781
  id?: string;
21684
22782
  manufacturer?: string | null;
22783
+ margin_percent?: number | null;
21685
22784
  omschrijving: string;
21686
22785
  package_id: string;
21687
22786
  price_synced_at?: string | null;
@@ -21696,10 +22795,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21696
22795
  Update: {
21697
22796
  article_number?: string | null;
21698
22797
  artikel_id?: string | null;
22798
+ cost_price_cents?: number;
21699
22799
  created_at?: string;
21700
22800
  gtin?: string | null;
21701
22801
  id?: string;
21702
22802
  manufacturer?: string | null;
22803
+ margin_percent?: number | null;
21703
22804
  omschrijving?: string;
21704
22805
  package_id?: string;
21705
22806
  price_synced_at?: string | null;
@@ -22064,6 +23165,78 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22064
23165
  referencedColumns: ["id"];
22065
23166
  }];
22066
23167
  };
23168
+ werkbon_voorstellen: {
23169
+ Row: {
23170
+ bron_werkbon_id: string;
23171
+ budget_mandate_cents: number;
23172
+ created_at: string;
23173
+ created_by: string;
23174
+ customer_id: string | null;
23175
+ id: string;
23176
+ payload: import("./types").Json;
23177
+ reden: string | null;
23178
+ status: string;
23179
+ updated_at: string;
23180
+ verwerkt_door: string | null;
23181
+ verwerkt_op: string | null;
23182
+ werkbon_id: string | null;
23183
+ };
23184
+ Insert: {
23185
+ bron_werkbon_id: string;
23186
+ budget_mandate_cents?: number;
23187
+ created_at?: string;
23188
+ created_by?: string;
23189
+ customer_id?: string | null;
23190
+ id?: string;
23191
+ payload?: import("./types").Json;
23192
+ reden?: string | null;
23193
+ status?: string;
23194
+ updated_at?: string;
23195
+ verwerkt_door?: string | null;
23196
+ verwerkt_op?: string | null;
23197
+ werkbon_id?: string | null;
23198
+ };
23199
+ Update: {
23200
+ bron_werkbon_id?: string;
23201
+ budget_mandate_cents?: number;
23202
+ created_at?: string;
23203
+ created_by?: string;
23204
+ customer_id?: string | null;
23205
+ id?: string;
23206
+ payload?: import("./types").Json;
23207
+ reden?: string | null;
23208
+ status?: string;
23209
+ updated_at?: string;
23210
+ verwerkt_door?: string | null;
23211
+ verwerkt_op?: string | null;
23212
+ werkbon_id?: string | null;
23213
+ };
23214
+ Relationships: [{
23215
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23216
+ columns: ["bron_werkbon_id"];
23217
+ isOneToOne: false;
23218
+ referencedRelation: "werkbonnen";
23219
+ referencedColumns: ["id"];
23220
+ }, {
23221
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23222
+ columns: ["bron_werkbon_id"];
23223
+ isOneToOne: false;
23224
+ referencedRelation: "wo_overview";
23225
+ referencedColumns: ["id"];
23226
+ }, {
23227
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23228
+ columns: ["werkbon_id"];
23229
+ isOneToOne: false;
23230
+ referencedRelation: "werkbonnen";
23231
+ referencedColumns: ["id"];
23232
+ }, {
23233
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23234
+ columns: ["werkbon_id"];
23235
+ isOneToOne: false;
23236
+ referencedRelation: "wo_overview";
23237
+ referencedColumns: ["id"];
23238
+ }];
23239
+ };
22067
23240
  werkbonnen: {
22068
23241
  Row: {
22069
23242
  assigned_user_id: string | null;
@@ -22671,6 +23844,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22671
23844
  };
22672
23845
  Relationships: [];
22673
23846
  };
23847
+ logistics_packing_diff: {
23848
+ Row: {
23849
+ dev_key: string | null;
23850
+ floriday_packing: import("./types").Json | null;
23851
+ local_packing: import("./types").Json | null;
23852
+ order_id: string | null;
23853
+ order_item_id: string | null;
23854
+ order_number: string | null;
23855
+ product_id: string | null;
23856
+ product_name: string | null;
23857
+ scope: string | null;
23858
+ trade_item_id: string | null;
23859
+ };
23860
+ Relationships: [];
23861
+ };
22674
23862
  logistics_product_dimensions: {
22675
23863
  Row: {
22676
23864
  dimension_source: string | null;
@@ -23289,6 +24477,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23289
24477
  };
23290
24478
  Returns: undefined;
23291
24479
  };
24480
+ _wo_is_planner: {
24481
+ Args: never;
24482
+ Returns: boolean;
24483
+ };
23292
24484
  afh_city_code: {
23293
24485
  Args: {
23294
24486
  _city: string;
@@ -23899,10 +25091,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23899
25091
  };
23900
25092
  Returns: number;
23901
25093
  };
25094
+ control_mark_carts_delivered_detail: {
25095
+ Args: {
25096
+ p_carts: import("./types").Json;
25097
+ };
25098
+ Returns: {
25099
+ cart_index: number;
25100
+ frozen: boolean;
25101
+ message: string;
25102
+ order_id: string;
25103
+ order_source: string;
25104
+ outcome: string;
25105
+ }[];
25106
+ };
23902
25107
  count_distinct_regulatory_products: {
23903
25108
  Args: never;
23904
25109
  Returns: number;
23905
25110
  };
25111
+ create_order_from_public_offer: {
25112
+ Args: {
25113
+ p_carrier_id?: string;
25114
+ p_delivery_date?: string;
25115
+ p_delivery_garden_id?: string;
25116
+ p_offer_order_id: string;
25117
+ };
25118
+ Returns: import("./types").Json;
25119
+ };
23906
25120
  current_monteur_id: {
23907
25121
  Args: never;
23908
25122
  Returns: string;
@@ -24379,6 +25593,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24379
25593
  };
24380
25594
  Returns: number;
24381
25595
  };
25596
+ get_product_stock: {
25597
+ Args: {
25598
+ p_product_id: string;
25599
+ };
25600
+ Returns: {
25601
+ connection_id: string;
25602
+ incoming_stock: number;
25603
+ minimum_stock: number;
25604
+ notes: string;
25605
+ physical_stock: number;
25606
+ product_id: string;
25607
+ reserved_stock: number;
25608
+ trade_item_key: string;
25609
+ updated_at: string;
25610
+ }[];
25611
+ };
24382
25612
  get_room_busy_windows: {
24383
25613
  Args: {
24384
25614
  p_from: string;
@@ -24683,6 +25913,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24683
25913
  };
24684
25914
  Returns: import("./types").Json;
24685
25915
  };
25916
+ inkoop_list_artikelen: {
25917
+ Args: never;
25918
+ Returns: {
25919
+ article_number: string;
25920
+ barcode: string;
25921
+ id: string;
25922
+ incoming_quantity: number;
25923
+ is_layer: boolean;
25924
+ location: string;
25925
+ min_quantity: number;
25926
+ preferred_supplier_name: string;
25927
+ product: string;
25928
+ product_type: string;
25929
+ purchase_price: number;
25930
+ quantity: number;
25931
+ sale_price: number;
25932
+ supplier_count: number;
25933
+ unit: string;
25934
+ }[];
25935
+ };
24686
25936
  inkoop_next_order_number: {
24687
25937
  Args: never;
24688
25938
  Returns: string;
@@ -24697,6 +25947,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24697
25947
  to_address: string;
24698
25948
  }[];
24699
25949
  };
25950
+ inkoop_set_preferred_supplier: {
25951
+ Args: {
25952
+ _product_id: string;
25953
+ _supplier_id: string;
25954
+ };
25955
+ Returns: undefined;
25956
+ };
24700
25957
  instructie_get: {
24701
25958
  Args: {
24702
25959
  _sleutel: string;
@@ -24716,6 +25973,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24716
25973
  };
24717
25974
  Returns: number;
24718
25975
  };
25976
+ invoice_branding_snapshot: {
25977
+ Args: never;
25978
+ Returns: import("./types").Json;
25979
+ };
24719
25980
  invoice_create_from_source: {
24720
25981
  Args: {
24721
25982
  _payload?: import("./types").Json;
@@ -24750,12 +26011,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24750
26011
  };
24751
26012
  Returns: import("./types").Json;
24752
26013
  };
26014
+ invoice_mark_sent: {
26015
+ Args: {
26016
+ _invoice_id: string;
26017
+ _to: string;
26018
+ };
26019
+ Returns: undefined;
26020
+ };
26021
+ invoice_peek_next_number: {
26022
+ Args: never;
26023
+ Returns: string;
26024
+ };
26025
+ invoice_ready_work_orders: {
26026
+ Args: {
26027
+ _limit?: number;
26028
+ };
26029
+ Returns: import("./types").Json;
26030
+ };
24753
26031
  invoice_recalc_totals: {
24754
26032
  Args: {
24755
26033
  _invoice_id: string;
24756
26034
  };
24757
26035
  Returns: import("./types").Json;
24758
26036
  };
26037
+ invoice_save_branding_settings: {
26038
+ Args: {
26039
+ _payload: import("./types").Json;
26040
+ };
26041
+ Returns: import("./types").Json;
26042
+ };
26043
+ invoice_set_email_purpose: {
26044
+ Args: {
26045
+ _purpose: string;
26046
+ };
26047
+ Returns: string;
26048
+ };
24759
26049
  invoice_source_lines: {
24760
26050
  Args: {
24761
26051
  _source_id: string;
@@ -24763,6 +26053,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24763
26053
  };
24764
26054
  Returns: import("./types").Json;
24765
26055
  };
26056
+ invoice_update_full: {
26057
+ Args: {
26058
+ _invoice_id: string;
26059
+ _payload: import("./types").Json;
26060
+ };
26061
+ Returns: import("./types").Json;
26062
+ };
26063
+ invoice_work_order_locked: {
26064
+ Args: {
26065
+ _werkbon_id: string;
26066
+ };
26067
+ Returns: import("./types").Json;
26068
+ };
24766
26069
  is_authenticated: {
24767
26070
  Args: never;
24768
26071
  Returns: boolean;
@@ -24995,6 +26298,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24995
26298
  };
24996
26299
  Returns: import("./types").Json;
24997
26300
  };
26301
+ logistics_buffer_decision_for_settings: {
26302
+ Args: {
26303
+ p_order: import("./types").Json;
26304
+ p_settings: import("./types").Json;
26305
+ p_user_id?: string;
26306
+ };
26307
+ Returns: import("./types").Json;
26308
+ };
24998
26309
  logistics_buffer_detach_late_orders: {
24999
26310
  Args: {
25000
26311
  p_buffer?: string;
@@ -25028,6 +26339,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25028
26339
  };
25029
26340
  Returns: string;
25030
26341
  };
26342
+ logistics_buffer_payload: {
26343
+ Args: {
26344
+ p_order_id: string;
26345
+ };
26346
+ Returns: import("./types").Json;
26347
+ };
25031
26348
  logistics_buffer_simulate: {
25032
26349
  Args: {
25033
26350
  p_orders?: import("./types").Json;
@@ -25086,6 +26403,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25086
26403
  };
25087
26404
  Returns: string;
25088
26405
  };
26406
+ logistics_cart_coverage_check: {
26407
+ Args: never;
26408
+ Returns: import("./types").Json;
26409
+ };
25089
26410
  logistics_cart_handled: {
25090
26411
  Args: {
25091
26412
  p_cart_index: number;
@@ -25329,6 +26650,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25329
26650
  isSetofReturn: false;
25330
26651
  };
25331
26652
  };
26653
+ logistics_cleanup_duplicate_order_lines: {
26654
+ Args: {
26655
+ p_limit?: number;
26656
+ p_order_id: string;
26657
+ };
26658
+ Returns: import("./types").Json;
26659
+ };
26660
+ logistics_cleanup_history: {
26661
+ Args: {
26662
+ p_limit?: number;
26663
+ };
26664
+ Returns: import("./types").Json;
26665
+ };
25332
26666
  logistics_cleanup_orphan_print_jobs: {
25333
26667
  Args: never;
25334
26668
  Returns: import("./types").Json;
@@ -25486,6 +26820,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25486
26820
  Args: never;
25487
26821
  Returns: import("./types").Json;
25488
26822
  };
26823
+ logistics_cron_health: {
26824
+ Args: never;
26825
+ Returns: import("./types").Json;
26826
+ };
25489
26827
  logistics_day_windows: {
25490
26828
  Args: {
25491
26829
  p_day: string;
@@ -25835,6 +27173,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25835
27173
  };
25836
27174
  Returns: number;
25837
27175
  };
27176
+ logistics_merge_decision: {
27177
+ Args: {
27178
+ p_lines: import("./types").Json;
27179
+ };
27180
+ Returns: import("./types").Json;
27181
+ };
25838
27182
  logistics_merge_floriday_lines: {
25839
27183
  Args: {
25840
27184
  p_order_id: string;
@@ -25881,6 +27225,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25881
27225
  Args: never;
25882
27226
  Returns: string;
25883
27227
  };
27228
+ logistics_order_backlog_info: {
27229
+ Args: {
27230
+ p_order_id: string;
27231
+ };
27232
+ Returns: import("./types").Json;
27233
+ };
25884
27234
  logistics_order_cart_approval: {
25885
27235
  Args: {
25886
27236
  _order_ref: string;
@@ -25915,6 +27265,50 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25915
27265
  };
25916
27266
  Returns: boolean;
25917
27267
  };
27268
+ logistics_order_finalize_enqueue: {
27269
+ Args: {
27270
+ p_order_id: string;
27271
+ p_reason?: string;
27272
+ };
27273
+ Returns: undefined;
27274
+ };
27275
+ logistics_order_finalize_overview: {
27276
+ Args: never;
27277
+ Returns: {
27278
+ bezig: number;
27279
+ laatst_afgerond: string;
27280
+ laatste_fout: string;
27281
+ mislukt: number;
27282
+ oudste_wachttijd_seconden: number;
27283
+ wachtend: number;
27284
+ }[];
27285
+ };
27286
+ logistics_order_finalize_prune: {
27287
+ Args: {
27288
+ p_days?: number;
27289
+ };
27290
+ Returns: number;
27291
+ };
27292
+ logistics_order_finalize_reconcile: {
27293
+ Args: {
27294
+ p_days?: number;
27295
+ p_limit?: number;
27296
+ };
27297
+ Returns: number;
27298
+ };
27299
+ logistics_order_finalize_retry: {
27300
+ Args: {
27301
+ p_order_id: string;
27302
+ };
27303
+ Returns: boolean;
27304
+ };
27305
+ logistics_order_finalize_run: {
27306
+ Args: {
27307
+ p_lease_seconds?: number;
27308
+ p_limit?: number;
27309
+ };
27310
+ Returns: number;
27311
+ };
25918
27312
  logistics_order_frozen: {
25919
27313
  Args: {
25920
27314
  p_order_id: string;
@@ -25927,6 +27321,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25927
27321
  };
25928
27322
  Returns: boolean;
25929
27323
  };
27324
+ logistics_order_is_backlog: {
27325
+ Args: {
27326
+ p_order_id: string;
27327
+ };
27328
+ Returns: boolean;
27329
+ };
25930
27330
  logistics_order_is_topick: {
25931
27331
  Args: {
25932
27332
  p_order_id: string;
@@ -25934,6 +27334,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25934
27334
  };
25935
27335
  Returns: boolean;
25936
27336
  };
27337
+ logistics_order_line_duplicates: {
27338
+ Args: {
27339
+ p_order_id: string;
27340
+ };
27341
+ Returns: import("./types").Json;
27342
+ };
25937
27343
  logistics_order_merge_key: {
25938
27344
  Args: {
25939
27345
  p_group_key: string;
@@ -25977,6 +27383,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25977
27383
  };
25978
27384
  Returns: boolean;
25979
27385
  };
27386
+ logistics_packing_autofix: {
27387
+ Args: {
27388
+ p_limit?: number;
27389
+ };
27390
+ Returns: number;
27391
+ };
27392
+ logistics_packing_block_reason: {
27393
+ Args: {
27394
+ p_order_id: string;
27395
+ p_order_item_id: string;
27396
+ };
27397
+ Returns: string;
27398
+ };
27399
+ logistics_packing_dismiss: {
27400
+ Args: {
27401
+ p_id: string;
27402
+ p_note?: string;
27403
+ };
27404
+ Returns: boolean;
27405
+ };
27406
+ logistics_packing_overview: {
27407
+ Args: never;
27408
+ Returns: {
27409
+ beoordelen: number;
27410
+ herstelbaar: number;
27411
+ laatst_gemeten: string;
27412
+ laatst_hersteld: string;
27413
+ open_totaal: number;
27414
+ orders: number;
27415
+ oudste_seconden: number;
27416
+ producten: number;
27417
+ }[];
27418
+ };
27419
+ logistics_packing_reconcile: {
27420
+ Args: {
27421
+ p_fix_limit?: number;
27422
+ p_scan_limit?: number;
27423
+ };
27424
+ Returns: {
27425
+ beoordelen: number;
27426
+ gevonden: number;
27427
+ hersteld: number;
27428
+ }[];
27429
+ };
27430
+ logistics_packing_scan: {
27431
+ Args: {
27432
+ p_limit?: number;
27433
+ };
27434
+ Returns: number;
27435
+ };
27436
+ logistics_packing_set_manual: {
27437
+ Args: {
27438
+ p_manual?: boolean;
27439
+ p_order_item_id: string;
27440
+ };
27441
+ Returns: boolean;
27442
+ };
25980
27443
  logistics_parse_pickup: {
25981
27444
  Args: {
25982
27445
  p_value: string;
@@ -26005,6 +27468,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26005
27468
  shifted_count: number;
26006
27469
  }[];
26007
27470
  };
27471
+ logistics_pick_backlog_max_days: {
27472
+ Args: never;
27473
+ Returns: number;
27474
+ };
26008
27475
  logistics_pick_barcode_enabled: {
26009
27476
  Args: never;
26010
27477
  Returns: boolean;
@@ -26226,6 +27693,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26226
27693
  Args: never;
26227
27694
  Returns: number;
26228
27695
  };
27696
+ logistics_planner_cart_snapshot: {
27697
+ Args: {
27698
+ p_buffer_id: string;
27699
+ p_order_id: string;
27700
+ };
27701
+ Returns: import("./types").Json;
27702
+ };
27703
+ logistics_planner_diff_mode: {
27704
+ Args: never;
27705
+ Returns: string;
27706
+ };
27707
+ logistics_planner_diff_prune: {
27708
+ Args: never;
27709
+ Returns: number;
27710
+ };
26229
27711
  logistics_prepare_pick_documents: {
26230
27712
  Args: {
26231
27713
  p_limit?: number;
@@ -26236,6 +27718,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26236
27718
  Args: never;
26237
27719
  Returns: number;
26238
27720
  };
27721
+ logistics_prune_cron_history: {
27722
+ Args: {
27723
+ p_days?: number;
27724
+ };
27725
+ Returns: number;
27726
+ };
26239
27727
  logistics_prune_handled_pick_queue: {
26240
27728
  Args: never;
26241
27729
  Returns: number;
@@ -26272,6 +27760,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26272
27760
  Args: never;
26273
27761
  Returns: import("./types").Json;
26274
27762
  };
27763
+ logistics_recalc_tick_kick: {
27764
+ Args: never;
27765
+ Returns: number;
27766
+ };
27767
+ logistics_reconcile_missing_plan_queue: {
27768
+ Args: never;
27769
+ Returns: number;
27770
+ };
26275
27771
  logistics_refresh_pick_queue_status: {
26276
27772
  Args: {
26277
27773
  p_ref: string;
@@ -26302,11 +27798,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26302
27798
  };
26303
27799
  Returns: import("./types").Json;
26304
27800
  };
27801
+ logistics_replan_clear_foreign_cart_items: {
27802
+ Args: {
27803
+ p_order_id: string;
27804
+ p_reason: string;
27805
+ };
27806
+ Returns: import("./types").Json;
27807
+ };
26305
27808
  logistics_replan_order_journey: {
26306
27809
  Args: {
26307
27810
  p_order_ref: string;
26308
27811
  };
26309
27812
  Returns: import("./types").Json;
27813
+ } | {
27814
+ Args: {
27815
+ p_order_ref: string;
27816
+ p_reason: string;
27817
+ };
27818
+ Returns: import("./types").Json;
26310
27819
  };
26311
27820
  logistics_report_delay: {
26312
27821
  Args: {
@@ -26352,6 +27861,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26352
27861
  };
26353
27862
  Returns: import("./types").Json;
26354
27863
  };
27864
+ logistics_reserved_stock_nightly: {
27865
+ Args: never;
27866
+ Returns: undefined;
27867
+ };
26355
27868
  logistics_resolve_pick_document: {
26356
27869
  Args: {
26357
27870
  _is_herprint: boolean;
@@ -26375,6 +27888,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26375
27888
  };
26376
27889
  Returns: import("./types").Json;
26377
27890
  };
27891
+ logistics_retention_days: {
27892
+ Args: {
27893
+ p_key: string;
27894
+ };
27895
+ Returns: number;
27896
+ };
26378
27897
  logistics_rule_bool: {
26379
27898
  Args: {
26380
27899
  p_default: boolean;
@@ -26568,12 +28087,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26568
28087
  Args: never;
26569
28088
  Returns: import("./types").Json;
26570
28089
  };
28090
+ logistics_sync_pick_queue_backlog: {
28091
+ Args: never;
28092
+ Returns: import("./types").Json;
28093
+ };
28094
+ logistics_sync_pick_queue_core: {
28095
+ Args: never;
28096
+ Returns: import("./types").Json;
28097
+ };
26571
28098
  logistics_sync_task_carriers: {
26572
28099
  Args: {
26573
28100
  p_order_ref?: string;
26574
28101
  };
26575
28102
  Returns: number;
26576
28103
  };
28104
+ logistics_task_open_counts: {
28105
+ Args: never;
28106
+ Returns: {
28107
+ open_count: number;
28108
+ owner_module: string;
28109
+ }[];
28110
+ };
26577
28111
  logistics_task_owner: {
26578
28112
  Args: {
26579
28113
  p_task_type: string;
@@ -26591,6 +28125,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26591
28125
  Args: never;
26592
28126
  Returns: number;
26593
28127
  };
28128
+ logistics_tasks_prune: {
28129
+ Args: {
28130
+ p_days?: number;
28131
+ };
28132
+ Returns: number;
28133
+ };
28134
+ logistics_tick: {
28135
+ Args: never;
28136
+ Returns: import("./types").Json;
28137
+ };
26594
28138
  logistics_tick_ping: {
26595
28139
  Args: never;
26596
28140
  Returns: string;
@@ -26931,6 +28475,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26931
28475
  };
26932
28476
  Returns: boolean;
26933
28477
  };
28478
+ order_items_duplicate_report: {
28479
+ Args: {
28480
+ _order_ref?: string;
28481
+ };
28482
+ Returns: {
28483
+ distinct_products: number;
28484
+ duplicate_factor: number;
28485
+ lines: number;
28486
+ order_number: string;
28487
+ }[];
28488
+ };
26934
28489
  order_number_prefix: {
26935
28490
  Args: {
26936
28491
  p_custom_fields?: import("./types").Json;
@@ -27714,6 +29269,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
27714
29269
  };
27715
29270
  Returns: undefined;
27716
29271
  };
29272
+ planning_apply_schedule_updates: {
29273
+ Args: {
29274
+ _updates: import("./types").Json;
29275
+ };
29276
+ Returns: undefined;
29277
+ };
29278
+ planning_assert_no_overlaps: {
29279
+ Args: never;
29280
+ Returns: undefined;
29281
+ };
29282
+ planning_assert_no_overlaps_for_items: {
29283
+ Args: {
29284
+ _item_ids: string[];
29285
+ };
29286
+ Returns: undefined;
29287
+ };
27717
29288
  planning_cancel_item: {
27718
29289
  Args: {
27719
29290
  _id: string;
@@ -27825,6 +29396,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
27825
29396
  };
27826
29397
  Returns: boolean;
27827
29398
  };
29399
+ quote_assign_number: {
29400
+ Args: {
29401
+ _offerte_id: string;
29402
+ };
29403
+ Returns: string;
29404
+ };
29405
+ quote_create_follow_up_now: {
29406
+ Args: {
29407
+ _offerte_id: string;
29408
+ _payload?: import("./types").Json;
29409
+ };
29410
+ Returns: import("./types").Json;
29411
+ };
27828
29412
  quote_create_from_source: {
27829
29413
  Args: {
27830
29414
  _payload?: import("./types").Json;
@@ -28068,6 +29652,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28068
29652
  Args: never;
28069
29653
  Returns: undefined;
28070
29654
  };
29655
+ run_order_auto_invoice_tick: {
29656
+ Args: never;
29657
+ Returns: number;
29658
+ };
28071
29659
  run_print_queue_ticks: {
28072
29660
  Args: never;
28073
29661
  Returns: number;
@@ -28445,6 +30033,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28445
30033
  };
28446
30034
  Returns: number;
28447
30035
  };
30036
+ schedule_floriday_trade_items_reconcile: {
30037
+ Args: {
30038
+ p_apikey: string;
30039
+ p_url: string;
30040
+ };
30041
+ Returns: number;
30042
+ };
28448
30043
  schedule_floriday_trade_items_sync: {
28449
30044
  Args: {
28450
30045
  p_apikey: string;
@@ -28527,6 +30122,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28527
30122
  };
28528
30123
  Returns: undefined;
28529
30124
  };
30125
+ set_product_stock: {
30126
+ Args: {
30127
+ p_incoming_stock?: number;
30128
+ p_minimum_stock?: number;
30129
+ p_notes?: string;
30130
+ p_physical_stock: number;
30131
+ p_product_id: string;
30132
+ };
30133
+ Returns: {
30134
+ connection_id: string;
30135
+ incoming_stock: number;
30136
+ minimum_stock: number;
30137
+ notes: string;
30138
+ physical_stock: number;
30139
+ product_id: string;
30140
+ reserved_stock: number;
30141
+ trade_item_key: string;
30142
+ updated_at: string;
30143
+ }[];
30144
+ };
28530
30145
  show_limit: {
28531
30146
  Args: never;
28532
30147
  Returns: number;
@@ -28769,6 +30384,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28769
30384
  Args: never;
28770
30385
  Returns: boolean;
28771
30386
  };
30387
+ uren_is_werkdag: {
30388
+ Args: {
30389
+ _date: string;
30390
+ _monteur: string;
30391
+ };
30392
+ Returns: boolean;
30393
+ };
30394
+ uren_korte_afwezigheid_aanvragen: {
30395
+ Args: {
30396
+ _datum: string;
30397
+ _eind: string;
30398
+ _reden: string;
30399
+ _start: string;
30400
+ };
30401
+ Returns: string;
30402
+ };
28772
30403
  uren_list_medewerkers: {
28773
30404
  Args: never;
28774
30405
  Returns: {
@@ -28789,6 +30420,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28789
30420
  roles: string[];
28790
30421
  }[];
28791
30422
  };
30423
+ uren_list_planner_contacten: {
30424
+ Args: never;
30425
+ Returns: {
30426
+ display_name: string;
30427
+ id: string;
30428
+ phone: string;
30429
+ }[];
30430
+ };
30431
+ uren_maand_afsluiten: {
30432
+ Args: {
30433
+ _maand: string;
30434
+ _monteur: string;
30435
+ };
30436
+ Returns: undefined;
30437
+ };
30438
+ uren_maand_berekenen: {
30439
+ Args: {
30440
+ _maand: string;
30441
+ _monteur: string;
30442
+ };
30443
+ Returns: import("./types").Json;
30444
+ };
30445
+ uren_maand_corrigeren: {
30446
+ Args: {
30447
+ _maand: string;
30448
+ _monteur: string;
30449
+ _overuren_minuten: number;
30450
+ _reden: string;
30451
+ };
30452
+ Returns: undefined;
30453
+ };
30454
+ uren_mijn_contracturen: {
30455
+ Args: never;
30456
+ Returns: number;
30457
+ };
30458
+ uren_mijn_vakantiesaldo: {
30459
+ Args: never;
30460
+ Returns: number;
30461
+ };
28792
30462
  uren_my_monteur_id: {
28793
30463
  Args: never;
28794
30464
  Returns: string;
@@ -28822,6 +30492,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28822
30492
  };
28823
30493
  Returns: number;
28824
30494
  };
30495
+ uren_spiegel_bezig: {
30496
+ Args: never;
30497
+ Returns: boolean;
30498
+ };
30499
+ uren_standaardweek_beoordelen: {
30500
+ Args: {
30501
+ _goedkeuren: boolean;
30502
+ _id: string;
30503
+ _reden?: string;
30504
+ };
30505
+ Returns: undefined;
30506
+ };
30507
+ uren_standaardweek_doorzetten: {
30508
+ Args: {
30509
+ _monteur: string;
30510
+ };
30511
+ Returns: undefined;
30512
+ };
30513
+ uren_standaardweek_instellen: {
30514
+ Args: {
30515
+ _dagen: import("./types").Json;
30516
+ };
30517
+ Returns: string;
30518
+ };
30519
+ uren_standaardweek_toepassen: {
30520
+ Args: {
30521
+ _dagen: import("./types").Json;
30522
+ _monteur: string;
30523
+ };
30524
+ Returns: undefined;
30525
+ };
28825
30526
  uren_stop_time_log: {
28826
30527
  Args: {
28827
30528
  p_employee_id: string;
@@ -28847,6 +30548,165 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28847
30548
  };
28848
30549
  Returns: number;
28849
30550
  };
30551
+ uren_vakantie_aanvragen: {
30552
+ Args: {
30553
+ _end_date: string;
30554
+ _hours?: number;
30555
+ _start_date: string;
30556
+ };
30557
+ Returns: string;
30558
+ };
30559
+ uren_vakantiedag_wijzigen: {
30560
+ Args: {
30561
+ _date: string;
30562
+ };
30563
+ Returns: string;
30564
+ };
30565
+ uren_vakantiesaldo_uren: {
30566
+ Args: {
30567
+ _monteur: string;
30568
+ };
30569
+ Returns: number;
30570
+ };
30571
+ uren_week_start: {
30572
+ Args: {
30573
+ _datum: string;
30574
+ };
30575
+ Returns: string;
30576
+ };
30577
+ uren_werkweek_opsturen: {
30578
+ Args: {
30579
+ _week_start: string;
30580
+ };
30581
+ Returns: {
30582
+ approved_at: string | null;
30583
+ approved_by: string | null;
30584
+ contract_hours: number;
30585
+ created_at: string;
30586
+ employee_id: string;
30587
+ id: string;
30588
+ locked: boolean;
30589
+ monteur_toelichting: string | null;
30590
+ notes: string | null;
30591
+ planned_hours: number;
30592
+ status: string;
30593
+ submitted_at: string | null;
30594
+ updated_at: string;
30595
+ variance_hours: number;
30596
+ week_start: string;
30597
+ };
30598
+ SetofOptions: {
30599
+ from: "*";
30600
+ to: "time_log_week_approvals";
30601
+ isOneToOne: true;
30602
+ isSetofReturn: false;
30603
+ };
30604
+ } | {
30605
+ Args: {
30606
+ _vrije_dagen?: string[];
30607
+ _week_start: string;
30608
+ };
30609
+ Returns: {
30610
+ approved_at: string | null;
30611
+ approved_by: string | null;
30612
+ contract_hours: number;
30613
+ created_at: string;
30614
+ employee_id: string;
30615
+ id: string;
30616
+ locked: boolean;
30617
+ monteur_toelichting: string | null;
30618
+ notes: string | null;
30619
+ planned_hours: number;
30620
+ status: string;
30621
+ submitted_at: string | null;
30622
+ updated_at: string;
30623
+ variance_hours: number;
30624
+ week_start: string;
30625
+ };
30626
+ SetofOptions: {
30627
+ from: "*";
30628
+ to: "time_log_week_approvals";
30629
+ isOneToOne: true;
30630
+ isSetofReturn: false;
30631
+ };
30632
+ } | {
30633
+ Args: {
30634
+ _toelichting?: string;
30635
+ _vrije_dagen?: string[];
30636
+ _week_start: string;
30637
+ };
30638
+ Returns: {
30639
+ approved_at: string | null;
30640
+ approved_by: string | null;
30641
+ contract_hours: number;
30642
+ created_at: string;
30643
+ employee_id: string;
30644
+ id: string;
30645
+ locked: boolean;
30646
+ monteur_toelichting: string | null;
30647
+ notes: string | null;
30648
+ planned_hours: number;
30649
+ status: string;
30650
+ submitted_at: string | null;
30651
+ updated_at: string;
30652
+ variance_hours: number;
30653
+ week_start: string;
30654
+ };
30655
+ SetofOptions: {
30656
+ from: "*";
30657
+ to: "time_log_week_approvals";
30658
+ isOneToOne: true;
30659
+ isSetofReturn: false;
30660
+ };
30661
+ };
30662
+ vakantie_dagen_gebruikt: {
30663
+ Args: {
30664
+ _user_id: string;
30665
+ _year: number;
30666
+ };
30667
+ Returns: number;
30668
+ };
30669
+ vakantie_overuren: {
30670
+ Args: {
30671
+ _user_id: string;
30672
+ _year?: number;
30673
+ };
30674
+ Returns: number;
30675
+ };
30676
+ vakantie_saldo: {
30677
+ Args: {
30678
+ _user_id: string;
30679
+ _year?: number;
30680
+ };
30681
+ Returns: {
30682
+ day_hours: number;
30683
+ earned_from_overtime_days: number;
30684
+ entitlement_days: number;
30685
+ hours_to_next_day: number;
30686
+ overtime_hours: number;
30687
+ overtime_remainder_hours: number;
30688
+ paid_out_days: number;
30689
+ remaining_days: number;
30690
+ used_days: number;
30691
+ }[];
30692
+ };
30693
+ vakantie_saldo_overzicht: {
30694
+ Args: {
30695
+ _year?: number;
30696
+ };
30697
+ Returns: {
30698
+ day_hours: number;
30699
+ earned_from_overtime_days: number;
30700
+ entitlement_days: number;
30701
+ hours_to_next_day: number;
30702
+ overtime_hours: number;
30703
+ overtime_remainder_hours: number;
30704
+ paid_out_days: number;
30705
+ remaining_days: number;
30706
+ used_days: number;
30707
+ user_id: string;
30708
+ }[];
30709
+ };
28850
30710
  voorraad_cleanup_old_rows: {
28851
30711
  Args: never;
28852
30712
  Returns: import("./types").Json;
@@ -28895,12 +30755,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28895
30755
  };
28896
30756
  Returns: import("./types").Json;
28897
30757
  };
30758
+ wo_list_proposals: {
30759
+ Args: {
30760
+ _status?: string;
30761
+ };
30762
+ Returns: import("./types").Json;
30763
+ };
28898
30764
  wo_process_offerte_request: {
28899
30765
  Args: {
28900
30766
  _queue_id: string;
28901
30767
  };
28902
30768
  Returns: import("./types").Json;
28903
30769
  };
30770
+ wo_process_proposal: {
30771
+ Args: {
30772
+ _id: string;
30773
+ _overrides?: import("./types").Json;
30774
+ };
30775
+ Returns: import("./types").Json;
30776
+ };
28904
30777
  wo_reject_offerte_request: {
28905
30778
  Args: {
28906
30779
  _queue_id: string;
@@ -28908,6 +30781,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28908
30781
  };
28909
30782
  Returns: import("./types").Json;
28910
30783
  };
30784
+ wo_reject_proposal: {
30785
+ Args: {
30786
+ _id: string;
30787
+ _reden?: string;
30788
+ };
30789
+ Returns: import("./types").Json;
30790
+ };
28911
30791
  wo_set_status: {
28912
30792
  Args: {
28913
30793
  _reason?: string;