@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
@@ -8002,6 +8002,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8002
8002
  };
8003
8003
  fust_types: {
8004
8004
  Row: {
8005
+ capacity_units: number | null;
8005
8006
  connection_id: string | null;
8006
8007
  created_at: string;
8007
8008
  custom_package_id: string | null;
@@ -8022,6 +8023,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8022
8023
  width_mm: number | null;
8023
8024
  };
8024
8025
  Insert: {
8026
+ capacity_units?: number | null;
8025
8027
  connection_id?: string | null;
8026
8028
  created_at?: string;
8027
8029
  custom_package_id?: string | null;
@@ -8042,6 +8044,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8042
8044
  width_mm?: number | null;
8043
8045
  };
8044
8046
  Update: {
8047
+ capacity_units?: number | null;
8045
8048
  connection_id?: string | null;
8046
8049
  created_at?: string;
8047
8050
  custom_package_id?: string | null;
@@ -8273,6 +8276,72 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8273
8276
  };
8274
8277
  Relationships: [];
8275
8278
  };
8279
+ invoice_branding_settings: {
8280
+ Row: {
8281
+ address: string;
8282
+ chamber_of_commerce_number: string;
8283
+ city: string;
8284
+ company_name: string;
8285
+ created_at: string;
8286
+ email: string;
8287
+ email_purpose: string | null;
8288
+ iban: string;
8289
+ logo_path: string | null;
8290
+ payment_term_days: number;
8291
+ phone: string;
8292
+ postal_code: string;
8293
+ primary_color: string;
8294
+ secondary_color: string;
8295
+ show_company_name: boolean;
8296
+ singleton_key: boolean;
8297
+ updated_at: string;
8298
+ vat_identification_number: string;
8299
+ website: string;
8300
+ };
8301
+ Insert: {
8302
+ address?: string;
8303
+ chamber_of_commerce_number?: string;
8304
+ city?: string;
8305
+ company_name?: string;
8306
+ created_at?: string;
8307
+ email?: string;
8308
+ email_purpose?: string | null;
8309
+ iban?: string;
8310
+ logo_path?: string | null;
8311
+ payment_term_days?: number;
8312
+ phone?: string;
8313
+ postal_code?: string;
8314
+ primary_color?: string;
8315
+ secondary_color?: string;
8316
+ show_company_name?: boolean;
8317
+ singleton_key?: boolean;
8318
+ updated_at?: string;
8319
+ vat_identification_number?: string;
8320
+ website?: string;
8321
+ };
8322
+ Update: {
8323
+ address?: string;
8324
+ chamber_of_commerce_number?: string;
8325
+ city?: string;
8326
+ company_name?: string;
8327
+ created_at?: string;
8328
+ email?: string;
8329
+ email_purpose?: string | null;
8330
+ iban?: string;
8331
+ logo_path?: string | null;
8332
+ payment_term_days?: number;
8333
+ phone?: string;
8334
+ postal_code?: string;
8335
+ primary_color?: string;
8336
+ secondary_color?: string;
8337
+ show_company_name?: boolean;
8338
+ singleton_key?: boolean;
8339
+ updated_at?: string;
8340
+ vat_identification_number?: string;
8341
+ website?: string;
8342
+ };
8343
+ Relationships: [];
8344
+ };
8276
8345
  invoice_items: {
8277
8346
  Row: {
8278
8347
  created_at: string;
@@ -8286,6 +8355,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8286
8355
  total_cents: number;
8287
8356
  unit: string;
8288
8357
  unit_price_cents: number;
8358
+ vat_rate: number | null;
8289
8359
  };
8290
8360
  Insert: {
8291
8361
  created_at?: string;
@@ -8299,6 +8369,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8299
8369
  total_cents?: number;
8300
8370
  unit?: string;
8301
8371
  unit_price_cents?: number;
8372
+ vat_rate?: number | null;
8302
8373
  };
8303
8374
  Update: {
8304
8375
  created_at?: string;
@@ -8312,6 +8383,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8312
8383
  total_cents?: number;
8313
8384
  unit?: string;
8314
8385
  unit_price_cents?: number;
8386
+ vat_rate?: number | null;
8315
8387
  };
8316
8388
  Relationships: [{
8317
8389
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8557,15 +8629,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8557
8629
  };
8558
8630
  invoices: {
8559
8631
  Row: {
8632
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8560
8633
  created_at: string;
8561
8634
  created_by: string | null;
8635
+ customer_address: string | null;
8636
+ customer_attention: string | null;
8637
+ customer_city: string | null;
8562
8638
  customer_id: string | null;
8563
8639
  customer_name: string | null;
8640
+ customer_postal_code: string | null;
8641
+ customer_vat_number: string | null;
8642
+ debtor_number: string | null;
8564
8643
  due_date: string | null;
8644
+ execution_date: string | null;
8565
8645
  id: string;
8566
8646
  invoice_date: string;
8567
8647
  invoice_number: string | null;
8568
8648
  note: string | null;
8649
+ payment_term_days: number;
8650
+ reference: string | null;
8651
+ sent_at: string | null;
8652
+ sent_to: string | null;
8569
8653
  source_number: string | null;
8570
8654
  source_ref: string | null;
8571
8655
  source_type: string;
@@ -8575,17 +8659,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8575
8659
  updated_at: string;
8576
8660
  vat_cents: number;
8577
8661
  vat_rate: number;
8662
+ work_address: string | null;
8578
8663
  };
8579
8664
  Insert: {
8665
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8580
8666
  created_at?: string;
8581
8667
  created_by?: string | null;
8668
+ customer_address?: string | null;
8669
+ customer_attention?: string | null;
8670
+ customer_city?: string | null;
8582
8671
  customer_id?: string | null;
8583
8672
  customer_name?: string | null;
8673
+ customer_postal_code?: string | null;
8674
+ customer_vat_number?: string | null;
8675
+ debtor_number?: string | null;
8584
8676
  due_date?: string | null;
8677
+ execution_date?: string | null;
8585
8678
  id?: string;
8586
8679
  invoice_date?: string;
8587
8680
  invoice_number?: string | null;
8588
8681
  note?: string | null;
8682
+ payment_term_days?: number;
8683
+ reference?: string | null;
8684
+ sent_at?: string | null;
8685
+ sent_to?: string | null;
8589
8686
  source_number?: string | null;
8590
8687
  source_ref?: string | null;
8591
8688
  source_type?: string;
@@ -8595,17 +8692,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8595
8692
  updated_at?: string;
8596
8693
  vat_cents?: number;
8597
8694
  vat_rate?: number;
8695
+ work_address?: string | null;
8598
8696
  };
8599
8697
  Update: {
8698
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8600
8699
  created_at?: string;
8601
8700
  created_by?: string | null;
8701
+ customer_address?: string | null;
8702
+ customer_attention?: string | null;
8703
+ customer_city?: string | null;
8602
8704
  customer_id?: string | null;
8603
8705
  customer_name?: string | null;
8706
+ customer_postal_code?: string | null;
8707
+ customer_vat_number?: string | null;
8708
+ debtor_number?: string | null;
8604
8709
  due_date?: string | null;
8710
+ execution_date?: string | null;
8605
8711
  id?: string;
8606
8712
  invoice_date?: string;
8607
8713
  invoice_number?: string | null;
8608
8714
  note?: string | null;
8715
+ payment_term_days?: number;
8716
+ reference?: string | null;
8717
+ sent_at?: string | null;
8718
+ sent_to?: string | null;
8609
8719
  source_number?: string | null;
8610
8720
  source_ref?: string | null;
8611
8721
  source_type?: string;
@@ -8615,6 +8725,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8615
8725
  updated_at?: string;
8616
8726
  vat_cents?: number;
8617
8727
  vat_rate?: number;
8728
+ work_address?: string | null;
8618
8729
  };
8619
8730
  Relationships: [{
8620
8731
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9313,6 +9424,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9313
9424
  quantity: number;
9314
9425
  sort_order: number;
9315
9426
  source: string;
9427
+ unit: string | null;
9316
9428
  unit_price_cents: number;
9317
9429
  updated_at: string;
9318
9430
  };
@@ -9326,6 +9438,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9326
9438
  quantity?: number;
9327
9439
  sort_order?: number;
9328
9440
  source?: string;
9441
+ unit?: string | null;
9329
9442
  unit_price_cents?: number;
9330
9443
  updated_at?: string;
9331
9444
  };
@@ -9339,6 +9452,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9339
9452
  quantity?: number;
9340
9453
  sort_order?: number;
9341
9454
  source?: string;
9455
+ unit?: string | null;
9342
9456
  unit_price_cents?: number;
9343
9457
  updated_at?: string;
9344
9458
  };
@@ -9362,6 +9476,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9362
9476
  created_at: string;
9363
9477
  default_geldigheid_dagen: number;
9364
9478
  default_vat_rate: number;
9479
+ email_purpose: string | null;
9365
9480
  id: string;
9366
9481
  singleton: boolean;
9367
9482
  updated_at: string;
@@ -9371,6 +9486,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9371
9486
  created_at?: string;
9372
9487
  default_geldigheid_dagen?: number;
9373
9488
  default_vat_rate?: number;
9489
+ email_purpose?: string | null;
9374
9490
  id?: string;
9375
9491
  singleton?: boolean;
9376
9492
  updated_at?: string;
@@ -9380,12 +9496,49 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9380
9496
  created_at?: string;
9381
9497
  default_geldigheid_dagen?: number;
9382
9498
  default_vat_rate?: number;
9499
+ email_purpose?: string | null;
9383
9500
  id?: string;
9384
9501
  singleton?: boolean;
9385
9502
  updated_at?: string;
9386
9503
  };
9387
9504
  Relationships: [];
9388
9505
  };
9506
+ itk_offerte_voorstel_status: {
9507
+ Row: {
9508
+ ai_concept: import("../integrations/supabase/types").Json | null;
9509
+ created_at: string;
9510
+ id: string;
9511
+ offerte_id: string | null;
9512
+ proposal_id: string;
9513
+ seen_at: string | null;
9514
+ updated_at: string;
9515
+ };
9516
+ Insert: {
9517
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9518
+ created_at?: string;
9519
+ id?: string;
9520
+ offerte_id?: string | null;
9521
+ proposal_id: string;
9522
+ seen_at?: string | null;
9523
+ updated_at?: string;
9524
+ };
9525
+ Update: {
9526
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9527
+ created_at?: string;
9528
+ id?: string;
9529
+ offerte_id?: string | null;
9530
+ proposal_id?: string;
9531
+ seen_at?: string | null;
9532
+ updated_at?: string;
9533
+ };
9534
+ Relationships: [{
9535
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9536
+ columns: ["offerte_id"];
9537
+ isOneToOne: false;
9538
+ referencedRelation: "itk_offertes";
9539
+ referencedColumns: ["id"];
9540
+ }];
9541
+ };
9389
9542
  itk_offerte_werkbon_queue: {
9390
9543
  Row: {
9391
9544
  bron_werkbon_id: string | null;
@@ -9436,6 +9589,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9436
9589
  };
9437
9590
  itk_offertes: {
9438
9591
  Row: {
9592
+ aandachtspunten: string | null;
9439
9593
  ai_generated: boolean;
9440
9594
  approved_at: string | null;
9441
9595
  binnen_mandaat: boolean;
@@ -9451,6 +9605,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9451
9605
  notities: string | null;
9452
9606
  offerte_number: string | null;
9453
9607
  omschrijving: string;
9608
+ onderwerp: string | null;
9454
9609
  rejected_at: string | null;
9455
9610
  sent_at: string | null;
9456
9611
  source_number: string | null;
@@ -9463,12 +9618,15 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9463
9618
  valid_until: string | null;
9464
9619
  vat_cents: number;
9465
9620
  vat_rate: number;
9621
+ verzonden_naar: string | null;
9466
9622
  viewed_at: string | null;
9467
9623
  volgnummer: number | null;
9624
+ voorwaarden: string | null;
9468
9625
  werkbon_id: string | null;
9469
9626
  work_location_id: string | null;
9470
9627
  };
9471
9628
  Insert: {
9629
+ aandachtspunten?: string | null;
9472
9630
  ai_generated?: boolean;
9473
9631
  approved_at?: string | null;
9474
9632
  binnen_mandaat?: boolean;
@@ -9484,6 +9642,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9484
9642
  notities?: string | null;
9485
9643
  offerte_number?: string | null;
9486
9644
  omschrijving?: string;
9645
+ onderwerp?: string | null;
9487
9646
  rejected_at?: string | null;
9488
9647
  sent_at?: string | null;
9489
9648
  source_number?: string | null;
@@ -9496,12 +9655,15 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9496
9655
  valid_until?: string | null;
9497
9656
  vat_cents?: number;
9498
9657
  vat_rate?: number;
9658
+ verzonden_naar?: string | null;
9499
9659
  viewed_at?: string | null;
9500
9660
  volgnummer?: number | null;
9661
+ voorwaarden?: string | null;
9501
9662
  werkbon_id?: string | null;
9502
9663
  work_location_id?: string | null;
9503
9664
  };
9504
9665
  Update: {
9666
+ aandachtspunten?: string | null;
9505
9667
  ai_generated?: boolean;
9506
9668
  approved_at?: string | null;
9507
9669
  binnen_mandaat?: boolean;
@@ -9517,6 +9679,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9517
9679
  notities?: string | null;
9518
9680
  offerte_number?: string | null;
9519
9681
  omschrijving?: string;
9682
+ onderwerp?: string | null;
9520
9683
  rejected_at?: string | null;
9521
9684
  sent_at?: string | null;
9522
9685
  source_number?: string | null;
@@ -9529,8 +9692,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9529
9692
  valid_until?: string | null;
9530
9693
  vat_cents?: number;
9531
9694
  vat_rate?: number;
9695
+ verzonden_naar?: string | null;
9532
9696
  viewed_at?: string | null;
9533
9697
  volgnummer?: number | null;
9698
+ voorwaarden?: string | null;
9534
9699
  werkbon_id?: string | null;
9535
9700
  work_location_id?: string | null;
9536
9701
  };
@@ -9706,6 +9871,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9706
9871
  };
9707
9872
  leave_requests: {
9708
9873
  Row: {
9874
+ cancellation_requested_at: string | null;
9875
+ cancellation_status: string | null;
9709
9876
  created_at: string;
9710
9877
  decided_at: string | null;
9711
9878
  decided_by: string | null;
@@ -9716,6 +9883,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9716
9883
  leave_type: string;
9717
9884
  monteur_id: string | null;
9718
9885
  reason: string | null;
9886
+ reden_afkeur: string | null;
9719
9887
  start_date: string;
9720
9888
  start_time: string | null;
9721
9889
  status: string;
@@ -9723,6 +9891,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9723
9891
  user_id: string;
9724
9892
  };
9725
9893
  Insert: {
9894
+ cancellation_requested_at?: string | null;
9895
+ cancellation_status?: string | null;
9726
9896
  created_at?: string;
9727
9897
  decided_at?: string | null;
9728
9898
  decided_by?: string | null;
@@ -9733,6 +9903,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9733
9903
  leave_type?: string;
9734
9904
  monteur_id?: string | null;
9735
9905
  reason?: string | null;
9906
+ reden_afkeur?: string | null;
9736
9907
  start_date: string;
9737
9908
  start_time?: string | null;
9738
9909
  status?: string;
@@ -9740,6 +9911,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9740
9911
  user_id: string;
9741
9912
  };
9742
9913
  Update: {
9914
+ cancellation_requested_at?: string | null;
9915
+ cancellation_status?: string | null;
9743
9916
  created_at?: string;
9744
9917
  decided_at?: string | null;
9745
9918
  decided_by?: string | null;
@@ -9750,6 +9923,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9750
9923
  leave_type?: string;
9751
9924
  monteur_id?: string | null;
9752
9925
  reason?: string | null;
9926
+ reden_afkeur?: string | null;
9753
9927
  start_date?: string;
9754
9928
  start_time?: string | null;
9755
9929
  status?: string;
@@ -10892,6 +11066,54 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
10892
11066
  };
10893
11067
  Relationships: [];
10894
11068
  };
11069
+ logistics_order_finalize_queue: {
11070
+ Row: {
11071
+ attempts: number;
11072
+ claimed_at: string | null;
11073
+ created_at: string;
11074
+ finished_at: string | null;
11075
+ last_error: string | null;
11076
+ lease_until: string | null;
11077
+ max_attempts: number;
11078
+ next_attempt_at: string;
11079
+ order_id: string;
11080
+ reason: string | null;
11081
+ requested_at: string;
11082
+ status: string;
11083
+ updated_at: string;
11084
+ };
11085
+ Insert: {
11086
+ attempts?: number;
11087
+ claimed_at?: string | null;
11088
+ created_at?: string;
11089
+ finished_at?: string | null;
11090
+ last_error?: string | null;
11091
+ lease_until?: string | null;
11092
+ max_attempts?: number;
11093
+ next_attempt_at?: string;
11094
+ order_id: string;
11095
+ reason?: string | null;
11096
+ requested_at?: string;
11097
+ status?: string;
11098
+ updated_at?: string;
11099
+ };
11100
+ Update: {
11101
+ attempts?: number;
11102
+ claimed_at?: string | null;
11103
+ created_at?: string;
11104
+ finished_at?: string | null;
11105
+ last_error?: string | null;
11106
+ lease_until?: string | null;
11107
+ max_attempts?: number;
11108
+ next_attempt_at?: string;
11109
+ order_id?: string;
11110
+ reason?: string | null;
11111
+ requested_at?: string;
11112
+ status?: string;
11113
+ updated_at?: string;
11114
+ };
11115
+ Relationships: [];
11116
+ };
10895
11117
  logistics_order_merges: {
10896
11118
  Row: {
10897
11119
  group_key: string;
@@ -10928,6 +11150,72 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
10928
11150
  };
10929
11151
  Relationships: [];
10930
11152
  };
11153
+ logistics_packing_deviations: {
11154
+ Row: {
11155
+ auto_fixed_at: string | null;
11156
+ created_at: string;
11157
+ dev_key: string;
11158
+ first_seen_at: string;
11159
+ floriday_packing: import("../integrations/supabase/types").Json;
11160
+ human_reason: string | null;
11161
+ id: string;
11162
+ last_seen_at: string;
11163
+ local_packing: import("../integrations/supabase/types").Json;
11164
+ needs_human: boolean;
11165
+ order_id: string | null;
11166
+ order_item_id: string | null;
11167
+ order_number: string | null;
11168
+ product_id: string | null;
11169
+ product_name: string | null;
11170
+ resolved_at: string | null;
11171
+ scope: string;
11172
+ trade_item_id: string | null;
11173
+ updated_at: string;
11174
+ };
11175
+ Insert: {
11176
+ auto_fixed_at?: string | null;
11177
+ created_at?: string;
11178
+ dev_key: string;
11179
+ first_seen_at?: string;
11180
+ floriday_packing?: import("../integrations/supabase/types").Json;
11181
+ human_reason?: string | null;
11182
+ id?: string;
11183
+ last_seen_at?: string;
11184
+ local_packing?: import("../integrations/supabase/types").Json;
11185
+ needs_human?: boolean;
11186
+ order_id?: string | null;
11187
+ order_item_id?: string | null;
11188
+ order_number?: string | null;
11189
+ product_id?: string | null;
11190
+ product_name?: string | null;
11191
+ resolved_at?: string | null;
11192
+ scope: string;
11193
+ trade_item_id?: string | null;
11194
+ updated_at?: string;
11195
+ };
11196
+ Update: {
11197
+ auto_fixed_at?: string | null;
11198
+ created_at?: string;
11199
+ dev_key?: string;
11200
+ first_seen_at?: string;
11201
+ floriday_packing?: import("../integrations/supabase/types").Json;
11202
+ human_reason?: string | null;
11203
+ id?: string;
11204
+ last_seen_at?: string;
11205
+ local_packing?: import("../integrations/supabase/types").Json;
11206
+ needs_human?: boolean;
11207
+ order_id?: string | null;
11208
+ order_item_id?: string | null;
11209
+ order_number?: string | null;
11210
+ product_id?: string | null;
11211
+ product_name?: string | null;
11212
+ resolved_at?: string | null;
11213
+ scope?: string;
11214
+ trade_item_id?: string | null;
11215
+ updated_at?: string;
11216
+ };
11217
+ Relationships: [];
11218
+ };
10931
11219
  logistics_pick_data_requests: {
10932
11220
  Row: {
10933
11221
  actions: import("../integrations/supabase/types").Json;
@@ -11165,14 +11453,70 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11165
11453
  };
11166
11454
  Relationships: [];
11167
11455
  };
11456
+ logistics_planner_diff_runs: {
11457
+ Row: {
11458
+ after_snapshot: import("../integrations/supabase/types").Json | null;
11459
+ before_snapshot: import("../integrations/supabase/types").Json;
11460
+ buffer_id: string | null;
11461
+ carts_after: number | null;
11462
+ carts_before: number | null;
11463
+ compared_at: string | null;
11464
+ created_at: string;
11465
+ differences: import("../integrations/supabase/types").Json | null;
11466
+ id: string;
11467
+ identical: boolean | null;
11468
+ mode: string;
11469
+ order_id: string;
11470
+ order_ref: string | null;
11471
+ reason: string | null;
11472
+ status: string;
11473
+ };
11474
+ Insert: {
11475
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11476
+ before_snapshot?: import("../integrations/supabase/types").Json;
11477
+ buffer_id?: string | null;
11478
+ carts_after?: number | null;
11479
+ carts_before?: number | null;
11480
+ compared_at?: string | null;
11481
+ created_at?: string;
11482
+ differences?: import("../integrations/supabase/types").Json | null;
11483
+ id?: string;
11484
+ identical?: boolean | null;
11485
+ mode: string;
11486
+ order_id: string;
11487
+ order_ref?: string | null;
11488
+ reason?: string | null;
11489
+ status?: string;
11490
+ };
11491
+ Update: {
11492
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11493
+ before_snapshot?: import("../integrations/supabase/types").Json;
11494
+ buffer_id?: string | null;
11495
+ carts_after?: number | null;
11496
+ carts_before?: number | null;
11497
+ compared_at?: string | null;
11498
+ created_at?: string;
11499
+ differences?: import("../integrations/supabase/types").Json | null;
11500
+ id?: string;
11501
+ identical?: boolean | null;
11502
+ mode?: string;
11503
+ order_id?: string;
11504
+ order_ref?: string | null;
11505
+ reason?: string | null;
11506
+ status?: string;
11507
+ };
11508
+ Relationships: [];
11509
+ };
11168
11510
  logistics_rebuffer_state: {
11169
11511
  Row: {
11170
11512
  created_at: string;
11171
11513
  id: boolean;
11172
11514
  last_checked: number;
11173
11515
  last_duration_ms: number;
11516
+ last_mode: string | null;
11174
11517
  last_run_at: string | null;
11175
11518
  last_updated: number;
11519
+ last_would_change: number | null;
11176
11520
  pending: boolean;
11177
11521
  requested_at: string | null;
11178
11522
  updated_at: string;
@@ -11182,8 +11526,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11182
11526
  id?: boolean;
11183
11527
  last_checked?: number;
11184
11528
  last_duration_ms?: number;
11529
+ last_mode?: string | null;
11185
11530
  last_run_at?: string | null;
11186
11531
  last_updated?: number;
11532
+ last_would_change?: number | null;
11187
11533
  pending?: boolean;
11188
11534
  requested_at?: string | null;
11189
11535
  updated_at?: string;
@@ -11193,8 +11539,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11193
11539
  id?: boolean;
11194
11540
  last_checked?: number;
11195
11541
  last_duration_ms?: number;
11542
+ last_mode?: string | null;
11196
11543
  last_run_at?: string | null;
11197
11544
  last_updated?: number;
11545
+ last_would_change?: number | null;
11198
11546
  pending?: boolean;
11199
11547
  requested_at?: string | null;
11200
11548
  updated_at?: string;
@@ -13190,6 +13538,42 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13190
13538
  };
13191
13539
  Relationships: [];
13192
13540
  };
13541
+ monteur_contracten: {
13542
+ Row: {
13543
+ contract_type: string;
13544
+ created_at: string;
13545
+ days_per_week: number;
13546
+ hours_per_week: number;
13547
+ id: string;
13548
+ updated_at: string;
13549
+ user_id: string;
13550
+ vacation_day_hours: number;
13551
+ vacation_days_per_year: number;
13552
+ };
13553
+ Insert: {
13554
+ contract_type?: string;
13555
+ created_at?: string;
13556
+ days_per_week?: number;
13557
+ hours_per_week?: number;
13558
+ id?: string;
13559
+ updated_at?: string;
13560
+ user_id: string;
13561
+ vacation_day_hours?: number;
13562
+ vacation_days_per_year?: number;
13563
+ };
13564
+ Update: {
13565
+ contract_type?: string;
13566
+ created_at?: string;
13567
+ days_per_week?: number;
13568
+ hours_per_week?: number;
13569
+ id?: string;
13570
+ updated_at?: string;
13571
+ user_id?: string;
13572
+ vacation_day_hours?: number;
13573
+ vacation_days_per_year?: number;
13574
+ };
13575
+ Relationships: [];
13576
+ };
13193
13577
  nmbrs_component_mapping: {
13194
13578
  Row: {
13195
13579
  created_at: string;
@@ -13669,6 +14053,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13669
14053
  id: string;
13670
14054
  items: import("../integrations/supabase/types").Json;
13671
14055
  notes: string | null;
14056
+ order_creation_error: string | null;
14057
+ order_creation_failed_at: string | null;
14058
+ order_id: string | null;
13672
14059
  order_number: string | null;
13673
14060
  recipient_id: string;
13674
14061
  total_amount: number;
@@ -13683,6 +14070,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13683
14070
  id?: string;
13684
14071
  items?: import("../integrations/supabase/types").Json;
13685
14072
  notes?: string | null;
14073
+ order_creation_error?: string | null;
14074
+ order_creation_failed_at?: string | null;
14075
+ order_id?: string | null;
13686
14076
  order_number?: string | null;
13687
14077
  recipient_id: string;
13688
14078
  total_amount?: number;
@@ -13697,6 +14087,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13697
14087
  id?: string;
13698
14088
  items?: import("../integrations/supabase/types").Json;
13699
14089
  notes?: string | null;
14090
+ order_creation_error?: string | null;
14091
+ order_creation_failed_at?: string | null;
14092
+ order_id?: string | null;
13700
14093
  order_number?: string | null;
13701
14094
  recipient_id?: string;
13702
14095
  total_amount?: number;
@@ -13713,6 +14106,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13713
14106
  isOneToOne: false;
13714
14107
  referencedRelation: "customers";
13715
14108
  referencedColumns: ["id"];
14109
+ }, {
14110
+ foreignKeyName: "offer_orders_order_id_fkey";
14111
+ columns: ["order_id"];
14112
+ isOneToOne: false;
14113
+ referencedRelation: "orders";
14114
+ referencedColumns: ["id"];
13716
14115
  }, {
13717
14116
  foreignKeyName: "offer_orders_recipient_id_fkey";
13718
14117
  columns: ["recipient_id"];
@@ -13853,6 +14252,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13853
14252
  };
13854
14253
  Relationships: [];
13855
14254
  };
14255
+ order_block_notifications: {
14256
+ Row: {
14257
+ id: string;
14258
+ notified_at: string;
14259
+ order_id: string;
14260
+ reason: string | null;
14261
+ reason_key: string;
14262
+ };
14263
+ Insert: {
14264
+ id?: string;
14265
+ notified_at?: string;
14266
+ order_id: string;
14267
+ reason?: string | null;
14268
+ reason_key: string;
14269
+ };
14270
+ Update: {
14271
+ id?: string;
14272
+ notified_at?: string;
14273
+ order_id?: string;
14274
+ reason?: string | null;
14275
+ reason_key?: string;
14276
+ };
14277
+ Relationships: [];
14278
+ };
13856
14279
  order_buffers: {
13857
14280
  Row: {
13858
14281
  buffer_key: string;
@@ -14322,10 +14745,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14322
14745
  id: string;
14323
14746
  layers_per_cart: number | null;
14324
14747
  order_id: string;
14748
+ packing_locked_at: string | null;
14749
+ packing_locked_by: string | null;
14325
14750
  plants_per_crate: number | null;
14326
14751
  product_id: string | null;
14327
14752
  product_name: string;
14328
14753
  quantity: number;
14754
+ source_line_key: string | null;
14329
14755
  unit: string;
14330
14756
  unit_price: number | null;
14331
14757
  };
@@ -14335,10 +14761,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14335
14761
  id?: string;
14336
14762
  layers_per_cart?: number | null;
14337
14763
  order_id: string;
14764
+ packing_locked_at?: string | null;
14765
+ packing_locked_by?: string | null;
14338
14766
  plants_per_crate?: number | null;
14339
14767
  product_id?: string | null;
14340
14768
  product_name: string;
14341
14769
  quantity?: number;
14770
+ source_line_key?: string | null;
14342
14771
  unit?: string;
14343
14772
  unit_price?: number | null;
14344
14773
  };
@@ -14348,10 +14777,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14348
14777
  id?: string;
14349
14778
  layers_per_cart?: number | null;
14350
14779
  order_id?: string;
14780
+ packing_locked_at?: string | null;
14781
+ packing_locked_by?: string | null;
14351
14782
  plants_per_crate?: number | null;
14352
14783
  product_id?: string | null;
14353
14784
  product_name?: string;
14354
14785
  quantity?: number;
14786
+ source_line_key?: string | null;
14355
14787
  unit?: string;
14356
14788
  unit_price?: number | null;
14357
14789
  };
@@ -15860,26 +16292,215 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
15860
16292
  referencedColumns: ["id"];
15861
16293
  }];
15862
16294
  };
15863
- price_list_rows: {
16295
+ planning_monteur_day_locations: {
15864
16296
  Row: {
15865
- action: string;
15866
16297
  created_at: string;
16298
+ day: string;
16299
+ end_at: string;
15867
16300
  id: string;
15868
- message: string | null;
15869
- parsed: import("../integrations/supabase/types").Json;
15870
- price_list_id: string;
15871
- raw: import("../integrations/supabase/types").Json;
15872
- row_number: number;
15873
- supplier_product_id: string | null;
16301
+ monteur_id: string;
16302
+ start_from: string;
16303
+ updated_at: string;
15874
16304
  };
15875
16305
  Insert: {
15876
- action?: string;
15877
16306
  created_at?: string;
16307
+ day: string;
16308
+ end_at?: string;
15878
16309
  id?: string;
15879
- message?: string | null;
15880
- parsed?: import("../integrations/supabase/types").Json;
15881
- price_list_id: string;
15882
- raw?: import("../integrations/supabase/types").Json;
16310
+ monteur_id: string;
16311
+ start_from?: string;
16312
+ updated_at?: string;
16313
+ };
16314
+ Update: {
16315
+ created_at?: string;
16316
+ day?: string;
16317
+ end_at?: string;
16318
+ id?: string;
16319
+ monteur_id?: string;
16320
+ start_from?: string;
16321
+ updated_at?: string;
16322
+ };
16323
+ Relationships: [];
16324
+ };
16325
+ planning_monteur_locations: {
16326
+ Row: {
16327
+ created_at: string;
16328
+ default_end: string;
16329
+ default_start: string;
16330
+ end_address: string | null;
16331
+ home_address: string | null;
16332
+ id: string;
16333
+ monteur_id: string;
16334
+ start_address: string | null;
16335
+ updated_at: string;
16336
+ };
16337
+ Insert: {
16338
+ created_at?: string;
16339
+ default_end?: string;
16340
+ default_start?: string;
16341
+ end_address?: string | null;
16342
+ home_address?: string | null;
16343
+ id?: string;
16344
+ monteur_id: string;
16345
+ start_address?: string | null;
16346
+ updated_at?: string;
16347
+ };
16348
+ Update: {
16349
+ created_at?: string;
16350
+ default_end?: string;
16351
+ default_start?: string;
16352
+ end_address?: string | null;
16353
+ home_address?: string | null;
16354
+ id?: string;
16355
+ monteur_id?: string;
16356
+ start_address?: string | null;
16357
+ updated_at?: string;
16358
+ };
16359
+ Relationships: [];
16360
+ };
16361
+ planning_settings: {
16362
+ Row: {
16363
+ company_address: string | null;
16364
+ created_at: string;
16365
+ id: string;
16366
+ singleton: boolean;
16367
+ updated_at: string;
16368
+ };
16369
+ Insert: {
16370
+ company_address?: string | null;
16371
+ created_at?: string;
16372
+ id?: string;
16373
+ singleton?: boolean;
16374
+ updated_at?: string;
16375
+ };
16376
+ Update: {
16377
+ company_address?: string | null;
16378
+ created_at?: string;
16379
+ id?: string;
16380
+ singleton?: boolean;
16381
+ updated_at?: string;
16382
+ };
16383
+ Relationships: [];
16384
+ };
16385
+ planning_travel_legs: {
16386
+ Row: {
16387
+ after_min: number;
16388
+ after_reason: string | null;
16389
+ after_status: string;
16390
+ after_to_address: string | null;
16391
+ before_from_address: string | null;
16392
+ before_min: number;
16393
+ before_reason: string | null;
16394
+ before_status: string;
16395
+ computed_at: string;
16396
+ computed_end_at: string | null;
16397
+ computed_start_at: string | null;
16398
+ created_at: string;
16399
+ id: string;
16400
+ monteur_id: string;
16401
+ planning_item_id: string;
16402
+ shared_after_item_id: string | null;
16403
+ shared_before_item_id: string | null;
16404
+ updated_at: string;
16405
+ };
16406
+ Insert: {
16407
+ after_min?: number;
16408
+ after_reason?: string | null;
16409
+ after_status?: string;
16410
+ after_to_address?: string | null;
16411
+ before_from_address?: string | null;
16412
+ before_min?: number;
16413
+ before_reason?: string | null;
16414
+ before_status?: string;
16415
+ computed_at?: string;
16416
+ computed_end_at?: string | null;
16417
+ computed_start_at?: string | null;
16418
+ created_at?: string;
16419
+ id?: string;
16420
+ monteur_id: string;
16421
+ planning_item_id: string;
16422
+ shared_after_item_id?: string | null;
16423
+ shared_before_item_id?: string | null;
16424
+ updated_at?: string;
16425
+ };
16426
+ Update: {
16427
+ after_min?: number;
16428
+ after_reason?: string | null;
16429
+ after_status?: string;
16430
+ after_to_address?: string | null;
16431
+ before_from_address?: string | null;
16432
+ before_min?: number;
16433
+ before_reason?: string | null;
16434
+ before_status?: string;
16435
+ computed_at?: string;
16436
+ computed_end_at?: string | null;
16437
+ computed_start_at?: string | null;
16438
+ created_at?: string;
16439
+ id?: string;
16440
+ monteur_id?: string;
16441
+ planning_item_id?: string;
16442
+ shared_after_item_id?: string | null;
16443
+ shared_before_item_id?: string | null;
16444
+ updated_at?: string;
16445
+ };
16446
+ Relationships: [{
16447
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16448
+ columns: ["planning_item_id"];
16449
+ isOneToOne: false;
16450
+ referencedRelation: "planning_items";
16451
+ referencedColumns: ["id"];
16452
+ }, {
16453
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16454
+ columns: ["planning_item_id"];
16455
+ isOneToOne: false;
16456
+ referencedRelation: "planning_overview";
16457
+ referencedColumns: ["id"];
16458
+ }, {
16459
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16460
+ columns: ["shared_after_item_id"];
16461
+ isOneToOne: false;
16462
+ referencedRelation: "planning_items";
16463
+ referencedColumns: ["id"];
16464
+ }, {
16465
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16466
+ columns: ["shared_after_item_id"];
16467
+ isOneToOne: false;
16468
+ referencedRelation: "planning_overview";
16469
+ referencedColumns: ["id"];
16470
+ }, {
16471
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16472
+ columns: ["shared_before_item_id"];
16473
+ isOneToOne: false;
16474
+ referencedRelation: "planning_items";
16475
+ referencedColumns: ["id"];
16476
+ }, {
16477
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16478
+ columns: ["shared_before_item_id"];
16479
+ isOneToOne: false;
16480
+ referencedRelation: "planning_overview";
16481
+ referencedColumns: ["id"];
16482
+ }];
16483
+ };
16484
+ price_list_rows: {
16485
+ Row: {
16486
+ action: string;
16487
+ created_at: string;
16488
+ id: string;
16489
+ message: string | null;
16490
+ parsed: import("../integrations/supabase/types").Json;
16491
+ price_list_id: string;
16492
+ raw: import("../integrations/supabase/types").Json;
16493
+ row_number: number;
16494
+ supplier_product_id: string | null;
16495
+ };
16496
+ Insert: {
16497
+ action?: string;
16498
+ created_at?: string;
16499
+ id?: string;
16500
+ message?: string | null;
16501
+ parsed?: import("../integrations/supabase/types").Json;
16502
+ price_list_id: string;
16503
+ raw?: import("../integrations/supabase/types").Json;
15883
16504
  row_number: number;
15884
16505
  supplier_product_id?: string | null;
15885
16506
  };
@@ -17032,6 +17653,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17032
17653
  };
17033
17654
  product_load_settings: {
17034
17655
  Row: {
17656
+ build: import("../integrations/supabase/types").Json | null;
17657
+ build_status: string;
17035
17658
  created_at: string;
17036
17659
  id: string;
17037
17660
  is_package: boolean;
@@ -17049,6 +17672,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17049
17672
  updated_at: string;
17050
17673
  };
17051
17674
  Insert: {
17675
+ build?: import("../integrations/supabase/types").Json | null;
17676
+ build_status?: string;
17052
17677
  created_at?: string;
17053
17678
  id?: string;
17054
17679
  is_package?: boolean;
@@ -17066,6 +17691,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17066
17691
  updated_at?: string;
17067
17692
  };
17068
17693
  Update: {
17694
+ build?: import("../integrations/supabase/types").Json | null;
17695
+ build_status?: string;
17069
17696
  created_at?: string;
17070
17697
  id?: string;
17071
17698
  is_package?: boolean;
@@ -17135,6 +17762,108 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17135
17762
  };
17136
17763
  Relationships: [];
17137
17764
  };
17765
+ product_suppliers: {
17766
+ Row: {
17767
+ created_at: string;
17768
+ id: string;
17769
+ is_preferred: boolean;
17770
+ lead_time_days: number | null;
17771
+ min_order_quantity: number | null;
17772
+ notes: string | null;
17773
+ product_id: string;
17774
+ purchase_price_cents: number | null;
17775
+ supplier_article_number: string | null;
17776
+ supplier_id: string;
17777
+ updated_at: string;
17778
+ };
17779
+ Insert: {
17780
+ created_at?: string;
17781
+ id?: string;
17782
+ is_preferred?: boolean;
17783
+ lead_time_days?: number | null;
17784
+ min_order_quantity?: number | null;
17785
+ notes?: string | null;
17786
+ product_id: string;
17787
+ purchase_price_cents?: number | null;
17788
+ supplier_article_number?: string | null;
17789
+ supplier_id: string;
17790
+ updated_at?: string;
17791
+ };
17792
+ Update: {
17793
+ created_at?: string;
17794
+ id?: string;
17795
+ is_preferred?: boolean;
17796
+ lead_time_days?: number | null;
17797
+ min_order_quantity?: number | null;
17798
+ notes?: string | null;
17799
+ product_id?: string;
17800
+ purchase_price_cents?: number | null;
17801
+ supplier_article_number?: string | null;
17802
+ supplier_id?: string;
17803
+ updated_at?: string;
17804
+ };
17805
+ Relationships: [{
17806
+ foreignKeyName: "product_suppliers_product_id_fkey";
17807
+ columns: ["product_id"];
17808
+ isOneToOne: false;
17809
+ referencedRelation: "logistics_product_dimensions";
17810
+ referencedColumns: ["product_id"];
17811
+ }, {
17812
+ foreignKeyName: "product_suppliers_product_id_fkey";
17813
+ columns: ["product_id"];
17814
+ isOneToOne: false;
17815
+ referencedRelation: "products";
17816
+ referencedColumns: ["id"];
17817
+ }, {
17818
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17819
+ columns: ["supplier_id"];
17820
+ isOneToOne: false;
17821
+ referencedRelation: "suppliers";
17822
+ referencedColumns: ["id"];
17823
+ }];
17824
+ };
17825
+ product_tray_stickers: {
17826
+ Row: {
17827
+ bestand_url: string;
17828
+ bestandsgrootte: number | null;
17829
+ bestandsnaam: string | null;
17830
+ bestandspad: string | null;
17831
+ created_at: string;
17832
+ product_id: string;
17833
+ updated_at: string;
17834
+ };
17835
+ Insert: {
17836
+ bestand_url: string;
17837
+ bestandsgrootte?: number | null;
17838
+ bestandsnaam?: string | null;
17839
+ bestandspad?: string | null;
17840
+ created_at?: string;
17841
+ product_id: string;
17842
+ updated_at?: string;
17843
+ };
17844
+ Update: {
17845
+ bestand_url?: string;
17846
+ bestandsgrootte?: number | null;
17847
+ bestandsnaam?: string | null;
17848
+ bestandspad?: string | null;
17849
+ created_at?: string;
17850
+ product_id?: string;
17851
+ updated_at?: string;
17852
+ };
17853
+ Relationships: [{
17854
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17855
+ columns: ["product_id"];
17856
+ isOneToOne: true;
17857
+ referencedRelation: "logistics_product_dimensions";
17858
+ referencedColumns: ["product_id"];
17859
+ }, {
17860
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17861
+ columns: ["product_id"];
17862
+ isOneToOne: true;
17863
+ referencedRelation: "products";
17864
+ referencedColumns: ["id"];
17865
+ }];
17866
+ };
17138
17867
  products: {
17139
17868
  Row: {
17140
17869
  article_number: string | null;
@@ -17143,6 +17872,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17143
17872
  crates_per_layer: number;
17144
17873
  created_at: string;
17145
17874
  custom_fields: import("../integrations/supabase/types").Json;
17875
+ floriday_packing_confirmed_at: string | null;
17876
+ floriday_packing_source: string | null;
17146
17877
  floriday_trade_item_id: string | null;
17147
17878
  fust_type_id: string | null;
17148
17879
  id: string;
@@ -17171,6 +17902,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17171
17902
  crates_per_layer?: number;
17172
17903
  created_at?: string;
17173
17904
  custom_fields?: import("../integrations/supabase/types").Json;
17905
+ floriday_packing_confirmed_at?: string | null;
17906
+ floriday_packing_source?: string | null;
17174
17907
  floriday_trade_item_id?: string | null;
17175
17908
  fust_type_id?: string | null;
17176
17909
  id?: string;
@@ -17199,6 +17932,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17199
17932
  crates_per_layer?: number;
17200
17933
  created_at?: string;
17201
17934
  custom_fields?: import("../integrations/supabase/types").Json;
17935
+ floriday_packing_confirmed_at?: string | null;
17936
+ floriday_packing_source?: string | null;
17202
17937
  floriday_trade_item_id?: string | null;
17203
17938
  fust_type_id?: string | null;
17204
17939
  id?: string;
@@ -17298,6 +18033,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17298
18033
  id: string;
17299
18034
  is_superadmin: boolean;
17300
18035
  notification_preferences: import("../integrations/supabase/types").Json;
18036
+ phone: string | null;
17301
18037
  tenant_id: string | null;
17302
18038
  updated_at: string;
17303
18039
  };
@@ -17310,6 +18046,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17310
18046
  id: string;
17311
18047
  is_superadmin?: boolean;
17312
18048
  notification_preferences?: import("../integrations/supabase/types").Json;
18049
+ phone?: string | null;
17313
18050
  tenant_id?: string | null;
17314
18051
  updated_at?: string;
17315
18052
  };
@@ -17322,6 +18059,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17322
18059
  id?: string;
17323
18060
  is_superadmin?: boolean;
17324
18061
  notification_preferences?: import("../integrations/supabase/types").Json;
18062
+ phone?: string | null;
17325
18063
  tenant_id?: string | null;
17326
18064
  updated_at?: string;
17327
18065
  };
@@ -19065,40 +19803,52 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
19065
19803
  Row: {
19066
19804
  approved_at: string | null;
19067
19805
  approved_by: string | null;
19806
+ contract_hours: number;
19068
19807
  created_at: string;
19069
19808
  employee_id: string;
19070
19809
  id: string;
19071
19810
  locked: boolean;
19811
+ monteur_toelichting: string | null;
19072
19812
  notes: string | null;
19813
+ planned_hours: number;
19073
19814
  status: string;
19074
19815
  submitted_at: string | null;
19075
19816
  updated_at: string;
19817
+ variance_hours: number;
19076
19818
  week_start: string;
19077
19819
  };
19078
19820
  Insert: {
19079
19821
  approved_at?: string | null;
19080
19822
  approved_by?: string | null;
19823
+ contract_hours?: number;
19081
19824
  created_at?: string;
19082
19825
  employee_id: string;
19083
19826
  id?: string;
19084
19827
  locked?: boolean;
19828
+ monteur_toelichting?: string | null;
19085
19829
  notes?: string | null;
19830
+ planned_hours?: number;
19086
19831
  status?: string;
19087
19832
  submitted_at?: string | null;
19088
19833
  updated_at?: string;
19834
+ variance_hours?: number;
19089
19835
  week_start: string;
19090
19836
  };
19091
19837
  Update: {
19092
19838
  approved_at?: string | null;
19093
19839
  approved_by?: string | null;
19840
+ contract_hours?: number;
19094
19841
  created_at?: string;
19095
19842
  employee_id?: string;
19096
19843
  id?: string;
19097
19844
  locked?: boolean;
19845
+ monteur_toelichting?: string | null;
19098
19846
  notes?: string | null;
19847
+ planned_hours?: number;
19099
19848
  status?: string;
19100
19849
  submitted_at?: string | null;
19101
19850
  updated_at?: string;
19851
+ variance_hours?: number;
19102
19852
  week_start?: string;
19103
19853
  };
19104
19854
  Relationships: [{
@@ -20385,16 +21135,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20385
21135
  Row: {
20386
21136
  active_environment: string;
20387
21137
  id: number;
21138
+ public_base_url: string | null;
20388
21139
  updated_at: string;
20389
21140
  };
20390
21141
  Insert: {
20391
21142
  active_environment?: string;
20392
21143
  id?: number;
21144
+ public_base_url?: string | null;
20393
21145
  updated_at?: string;
20394
21146
  };
20395
21147
  Update: {
20396
21148
  active_environment?: string;
20397
21149
  id?: number;
21150
+ public_base_url?: string | null;
20398
21151
  updated_at?: string;
20399
21152
  };
20400
21153
  Relationships: [];
@@ -20432,6 +21185,45 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20432
21185
  referencedColumns: ["id"];
20433
21186
  }];
20434
21187
  };
21188
+ uren_beschikbare_dagen: {
21189
+ Row: {
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
+ Insert: {
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
+ Update: {
21214
+ bron?: string;
21215
+ created_at?: string;
21216
+ datum?: string;
21217
+ eind_tijd?: string | null;
21218
+ half_hour_slots?: number[];
21219
+ id?: string;
21220
+ monteur_id?: string;
21221
+ start_tijd?: string | null;
21222
+ updated_at?: string;
21223
+ uren?: number;
21224
+ };
21225
+ Relationships: [];
21226
+ };
20435
21227
  uren_cao_profiles: {
20436
21228
  Row: {
20437
21229
  break_minutes: number | null;
@@ -20570,32 +21362,161 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20570
21362
  };
20571
21363
  Relationships: [];
20572
21364
  };
20573
- uren_settings: {
21365
+ uren_maandafsluitingen: {
20574
21366
  Row: {
20575
- break_minutes: number;
21367
+ afgesloten_at: string | null;
21368
+ afgesloten_door: string | null;
21369
+ contract_minuten: number;
21370
+ correctie_reden: string | null;
20576
21371
  created_at: string;
20577
- daily_threshold_hours: number;
20578
- id: boolean;
20579
- include_travel: boolean;
20580
- min_occupancy_monteurs: number;
20581
- ov02_percentage: number;
20582
- ov03_percentage: number;
21372
+ gecorrigeerd_at: string | null;
21373
+ gecorrigeerd_door: string | null;
21374
+ gewerkte_minuten: number;
21375
+ id: string;
21376
+ maand: string;
21377
+ min_minuten: number;
21378
+ monteur_id: string;
21379
+ netto_verschil_minuten: number;
21380
+ normaal_uitbetaald_minuten: number;
21381
+ omgezet_vakantie_minuten: number;
21382
+ overdracht_vorige_minuten: number;
21383
+ overuren_minuten: number;
21384
+ plus_minuten: number;
21385
+ rest_overuren_minuten: number;
21386
+ status: string;
21387
+ totaal_uitbetaald_minuten: number;
20583
21388
  updated_at: string;
20584
- weekly_threshold_hours: number;
20585
- workday_end: string;
20586
- workday_start: string;
21389
+ vakantie_uren_bijgeschreven: number;
20587
21390
  };
20588
21391
  Insert: {
20589
- break_minutes?: number;
21392
+ afgesloten_at?: string | null;
21393
+ afgesloten_door?: string | null;
21394
+ contract_minuten?: number;
21395
+ correctie_reden?: string | null;
20590
21396
  created_at?: string;
20591
- daily_threshold_hours?: number;
20592
- id?: boolean;
20593
- include_travel?: boolean;
20594
- min_occupancy_monteurs?: number;
20595
- ov02_percentage?: number;
20596
- ov03_percentage?: number;
21397
+ gecorrigeerd_at?: string | null;
21398
+ gecorrigeerd_door?: string | null;
21399
+ gewerkte_minuten?: number;
21400
+ id?: string;
21401
+ maand: string;
21402
+ min_minuten?: number;
21403
+ monteur_id: string;
21404
+ netto_verschil_minuten?: number;
21405
+ normaal_uitbetaald_minuten?: number;
21406
+ omgezet_vakantie_minuten?: number;
21407
+ overdracht_vorige_minuten?: number;
21408
+ overuren_minuten?: number;
21409
+ plus_minuten?: number;
21410
+ rest_overuren_minuten?: number;
21411
+ status?: string;
21412
+ totaal_uitbetaald_minuten?: number;
20597
21413
  updated_at?: string;
20598
- weekly_threshold_hours?: number;
21414
+ vakantie_uren_bijgeschreven?: number;
21415
+ };
21416
+ Update: {
21417
+ afgesloten_at?: string | null;
21418
+ afgesloten_door?: string | null;
21419
+ contract_minuten?: number;
21420
+ correctie_reden?: string | null;
21421
+ created_at?: string;
21422
+ gecorrigeerd_at?: string | null;
21423
+ gecorrigeerd_door?: string | null;
21424
+ gewerkte_minuten?: number;
21425
+ id?: string;
21426
+ maand?: string;
21427
+ min_minuten?: number;
21428
+ monteur_id?: string;
21429
+ netto_verschil_minuten?: number;
21430
+ normaal_uitbetaald_minuten?: number;
21431
+ omgezet_vakantie_minuten?: number;
21432
+ overdracht_vorige_minuten?: number;
21433
+ overuren_minuten?: number;
21434
+ plus_minuten?: number;
21435
+ rest_overuren_minuten?: number;
21436
+ status?: string;
21437
+ totaal_uitbetaald_minuten?: number;
21438
+ updated_at?: string;
21439
+ vakantie_uren_bijgeschreven?: number;
21440
+ };
21441
+ Relationships: [];
21442
+ };
21443
+ uren_overuren_verklaringen: {
21444
+ Row: {
21445
+ beoordeeld_door: string | null;
21446
+ beoordeeld_op: string | null;
21447
+ created_at: string;
21448
+ datum: string;
21449
+ eind_tijd: string | null;
21450
+ id: string;
21451
+ ingediend_at: string;
21452
+ monteur_id: string;
21453
+ overuren: number;
21454
+ reden_afkeur: string | null;
21455
+ start_tijd: string | null;
21456
+ status: string;
21457
+ toelichting: string;
21458
+ updated_at: string;
21459
+ };
21460
+ Insert: {
21461
+ beoordeeld_door?: string | null;
21462
+ beoordeeld_op?: string | null;
21463
+ created_at?: string;
21464
+ datum: string;
21465
+ eind_tijd?: string | null;
21466
+ id?: string;
21467
+ ingediend_at?: string;
21468
+ monteur_id: string;
21469
+ overuren: number;
21470
+ reden_afkeur?: string | null;
21471
+ start_tijd?: string | null;
21472
+ status?: string;
21473
+ toelichting: string;
21474
+ updated_at?: string;
21475
+ };
21476
+ Update: {
21477
+ beoordeeld_door?: string | null;
21478
+ beoordeeld_op?: string | null;
21479
+ created_at?: string;
21480
+ datum?: string;
21481
+ eind_tijd?: string | null;
21482
+ id?: string;
21483
+ ingediend_at?: string;
21484
+ monteur_id?: string;
21485
+ overuren?: number;
21486
+ reden_afkeur?: string | null;
21487
+ start_tijd?: string | null;
21488
+ status?: string;
21489
+ toelichting?: string;
21490
+ updated_at?: string;
21491
+ };
21492
+ Relationships: [];
21493
+ };
21494
+ uren_settings: {
21495
+ Row: {
21496
+ break_minutes: number;
21497
+ created_at: string;
21498
+ daily_threshold_hours: number;
21499
+ id: boolean;
21500
+ include_travel: boolean;
21501
+ min_occupancy_monteurs: number;
21502
+ ov02_percentage: number;
21503
+ ov03_percentage: number;
21504
+ updated_at: string;
21505
+ weekly_threshold_hours: number;
21506
+ workday_end: string;
21507
+ workday_start: string;
21508
+ };
21509
+ Insert: {
21510
+ break_minutes?: number;
21511
+ created_at?: string;
21512
+ daily_threshold_hours?: number;
21513
+ id?: boolean;
21514
+ include_travel?: boolean;
21515
+ min_occupancy_monteurs?: number;
21516
+ ov02_percentage?: number;
21517
+ ov03_percentage?: number;
21518
+ updated_at?: string;
21519
+ weekly_threshold_hours?: number;
20599
21520
  workday_end?: string;
20600
21521
  workday_start?: string;
20601
21522
  };
@@ -20615,6 +21536,75 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20615
21536
  };
20616
21537
  Relationships: [];
20617
21538
  };
21539
+ uren_standaardweek: {
21540
+ Row: {
21541
+ created_at: string;
21542
+ eind_slot: number;
21543
+ id: string;
21544
+ monteur_id: string;
21545
+ start_slot: number;
21546
+ updated_at: string;
21547
+ weekdag: number;
21548
+ };
21549
+ Insert: {
21550
+ created_at?: string;
21551
+ eind_slot: number;
21552
+ id?: string;
21553
+ monteur_id: string;
21554
+ start_slot: number;
21555
+ updated_at?: string;
21556
+ weekdag: number;
21557
+ };
21558
+ Update: {
21559
+ created_at?: string;
21560
+ eind_slot?: number;
21561
+ id?: string;
21562
+ monteur_id?: string;
21563
+ start_slot?: number;
21564
+ updated_at?: string;
21565
+ weekdag?: number;
21566
+ };
21567
+ Relationships: [];
21568
+ };
21569
+ uren_standaardweek_wijzigingen: {
21570
+ Row: {
21571
+ beoordeeld_door: string | null;
21572
+ beoordeeld_op: string | null;
21573
+ created_at: string;
21574
+ huidig: import("../integrations/supabase/types").Json;
21575
+ id: string;
21576
+ monteur_id: string;
21577
+ reden_afkeur: string | null;
21578
+ status: string;
21579
+ updated_at: string;
21580
+ voorstel: import("../integrations/supabase/types").Json;
21581
+ };
21582
+ Insert: {
21583
+ beoordeeld_door?: string | null;
21584
+ beoordeeld_op?: string | null;
21585
+ created_at?: string;
21586
+ huidig?: import("../integrations/supabase/types").Json;
21587
+ id?: string;
21588
+ monteur_id: string;
21589
+ reden_afkeur?: string | null;
21590
+ status?: string;
21591
+ updated_at?: string;
21592
+ voorstel: import("../integrations/supabase/types").Json;
21593
+ };
21594
+ Update: {
21595
+ beoordeeld_door?: string | null;
21596
+ beoordeeld_op?: string | null;
21597
+ created_at?: string;
21598
+ huidig?: import("../integrations/supabase/types").Json;
21599
+ id?: string;
21600
+ monteur_id?: string;
21601
+ reden_afkeur?: string | null;
21602
+ status?: string;
21603
+ updated_at?: string;
21604
+ voorstel?: import("../integrations/supabase/types").Json;
21605
+ };
21606
+ Relationships: [];
21607
+ };
20618
21608
  uren_tarieven: {
20619
21609
  Row: {
20620
21610
  created_at: string;
@@ -20699,6 +21689,39 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20699
21689
  };
20700
21690
  Relationships: [];
20701
21691
  };
21692
+ uren_tijd_spiegel: {
21693
+ Row: {
21694
+ created_at: string;
21695
+ id: string;
21696
+ time_log_id: string;
21697
+ werkbon_time_log_id: string;
21698
+ };
21699
+ Insert: {
21700
+ created_at?: string;
21701
+ id?: string;
21702
+ time_log_id: string;
21703
+ werkbon_time_log_id: string;
21704
+ };
21705
+ Update: {
21706
+ created_at?: string;
21707
+ id?: string;
21708
+ time_log_id?: string;
21709
+ werkbon_time_log_id?: string;
21710
+ };
21711
+ Relationships: [{
21712
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
21713
+ columns: ["time_log_id"];
21714
+ isOneToOne: true;
21715
+ referencedRelation: "time_logs";
21716
+ referencedColumns: ["id"];
21717
+ }, {
21718
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
21719
+ columns: ["werkbon_time_log_id"];
21720
+ isOneToOne: true;
21721
+ referencedRelation: "werkbon_time_logs";
21722
+ referencedColumns: ["id"];
21723
+ }];
21724
+ };
20702
21725
  uren_weekstaten: {
20703
21726
  Row: {
20704
21727
  approved_at: string | null;
@@ -20741,6 +21764,33 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20741
21764
  };
20742
21765
  Relationships: [];
20743
21766
  };
21767
+ uren_werktijd_voorkeuren: {
21768
+ Row: {
21769
+ created_at: string;
21770
+ eind_slot: number;
21771
+ id: string;
21772
+ monteur_id: string;
21773
+ start_slot: number;
21774
+ updated_at: string;
21775
+ };
21776
+ Insert: {
21777
+ created_at?: string;
21778
+ eind_slot?: number;
21779
+ id?: string;
21780
+ monteur_id: string;
21781
+ start_slot?: number;
21782
+ updated_at?: string;
21783
+ };
21784
+ Update: {
21785
+ created_at?: string;
21786
+ eind_slot?: number;
21787
+ id?: string;
21788
+ monteur_id?: string;
21789
+ start_slot?: number;
21790
+ updated_at?: string;
21791
+ };
21792
+ Relationships: [];
21793
+ };
20744
21794
  user_module_permissions: {
20745
21795
  Row: {
20746
21796
  created_at: string;
@@ -20798,6 +21848,51 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20798
21848
  referencedColumns: ["id"];
20799
21849
  }];
20800
21850
  };
21851
+ vakantie_uitbetalingen: {
21852
+ Row: {
21853
+ created_at: string;
21854
+ created_by: string | null;
21855
+ days: number;
21856
+ id: string;
21857
+ note: string | null;
21858
+ updated_at: string;
21859
+ user_id: string;
21860
+ year: number;
21861
+ };
21862
+ Insert: {
21863
+ created_at?: string;
21864
+ created_by?: string | null;
21865
+ days: number;
21866
+ id?: string;
21867
+ note?: string | null;
21868
+ updated_at?: string;
21869
+ user_id: string;
21870
+ year?: number;
21871
+ };
21872
+ Update: {
21873
+ created_at?: string;
21874
+ created_by?: string | null;
21875
+ days?: number;
21876
+ id?: string;
21877
+ note?: string | null;
21878
+ updated_at?: string;
21879
+ user_id?: string;
21880
+ year?: number;
21881
+ };
21882
+ Relationships: [{
21883
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21884
+ columns: ["created_by"];
21885
+ isOneToOne: false;
21886
+ referencedRelation: "profiles";
21887
+ referencedColumns: ["id"];
21888
+ }, {
21889
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21890
+ columns: ["user_id"];
21891
+ isOneToOne: false;
21892
+ referencedRelation: "profiles";
21893
+ referencedColumns: ["id"];
21894
+ }];
21895
+ };
20801
21896
  van_inventories: {
20802
21897
  Row: {
20803
21898
  barcode: string | null;
@@ -21672,10 +22767,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21672
22767
  Row: {
21673
22768
  article_number: string | null;
21674
22769
  artikel_id: string | null;
22770
+ cost_price_cents: number;
21675
22771
  created_at: string;
21676
22772
  gtin: string | null;
21677
22773
  id: string;
21678
22774
  manufacturer: string | null;
22775
+ margin_percent: number | null;
21679
22776
  omschrijving: string;
21680
22777
  package_id: string;
21681
22778
  price_synced_at: string | null;
@@ -21690,10 +22787,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21690
22787
  Insert: {
21691
22788
  article_number?: string | null;
21692
22789
  artikel_id?: string | null;
22790
+ cost_price_cents?: number;
21693
22791
  created_at?: string;
21694
22792
  gtin?: string | null;
21695
22793
  id?: string;
21696
22794
  manufacturer?: string | null;
22795
+ margin_percent?: number | null;
21697
22796
  omschrijving: string;
21698
22797
  package_id: string;
21699
22798
  price_synced_at?: string | null;
@@ -21708,10 +22807,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21708
22807
  Update: {
21709
22808
  article_number?: string | null;
21710
22809
  artikel_id?: string | null;
22810
+ cost_price_cents?: number;
21711
22811
  created_at?: string;
21712
22812
  gtin?: string | null;
21713
22813
  id?: string;
21714
22814
  manufacturer?: string | null;
22815
+ margin_percent?: number | null;
21715
22816
  omschrijving?: string;
21716
22817
  package_id?: string;
21717
22818
  price_synced_at?: string | null;
@@ -22076,6 +23177,78 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
22076
23177
  referencedColumns: ["id"];
22077
23178
  }];
22078
23179
  };
23180
+ werkbon_voorstellen: {
23181
+ Row: {
23182
+ bron_werkbon_id: string;
23183
+ budget_mandate_cents: number;
23184
+ created_at: string;
23185
+ created_by: string;
23186
+ customer_id: string | null;
23187
+ id: string;
23188
+ payload: import("../integrations/supabase/types").Json;
23189
+ reden: string | null;
23190
+ status: string;
23191
+ updated_at: string;
23192
+ verwerkt_door: string | null;
23193
+ verwerkt_op: string | null;
23194
+ werkbon_id: string | null;
23195
+ };
23196
+ Insert: {
23197
+ bron_werkbon_id: string;
23198
+ budget_mandate_cents?: number;
23199
+ created_at?: string;
23200
+ created_by?: string;
23201
+ customer_id?: string | null;
23202
+ id?: string;
23203
+ payload?: import("../integrations/supabase/types").Json;
23204
+ reden?: string | null;
23205
+ status?: string;
23206
+ updated_at?: string;
23207
+ verwerkt_door?: string | null;
23208
+ verwerkt_op?: string | null;
23209
+ werkbon_id?: string | null;
23210
+ };
23211
+ Update: {
23212
+ bron_werkbon_id?: string;
23213
+ budget_mandate_cents?: number;
23214
+ created_at?: string;
23215
+ created_by?: string;
23216
+ customer_id?: string | null;
23217
+ id?: string;
23218
+ payload?: import("../integrations/supabase/types").Json;
23219
+ reden?: string | null;
23220
+ status?: string;
23221
+ updated_at?: string;
23222
+ verwerkt_door?: string | null;
23223
+ verwerkt_op?: string | null;
23224
+ werkbon_id?: string | null;
23225
+ };
23226
+ Relationships: [{
23227
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23228
+ columns: ["bron_werkbon_id"];
23229
+ isOneToOne: false;
23230
+ referencedRelation: "werkbonnen";
23231
+ referencedColumns: ["id"];
23232
+ }, {
23233
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23234
+ columns: ["bron_werkbon_id"];
23235
+ isOneToOne: false;
23236
+ referencedRelation: "wo_overview";
23237
+ referencedColumns: ["id"];
23238
+ }, {
23239
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23240
+ columns: ["werkbon_id"];
23241
+ isOneToOne: false;
23242
+ referencedRelation: "werkbonnen";
23243
+ referencedColumns: ["id"];
23244
+ }, {
23245
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23246
+ columns: ["werkbon_id"];
23247
+ isOneToOne: false;
23248
+ referencedRelation: "wo_overview";
23249
+ referencedColumns: ["id"];
23250
+ }];
23251
+ };
22079
23252
  werkbonnen: {
22080
23253
  Row: {
22081
23254
  assigned_user_id: string | null;
@@ -22683,6 +23856,21 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
22683
23856
  };
22684
23857
  Relationships: [];
22685
23858
  };
23859
+ logistics_packing_diff: {
23860
+ Row: {
23861
+ dev_key: string | null;
23862
+ floriday_packing: import("../integrations/supabase/types").Json | null;
23863
+ local_packing: import("../integrations/supabase/types").Json | null;
23864
+ order_id: string | null;
23865
+ order_item_id: string | null;
23866
+ order_number: string | null;
23867
+ product_id: string | null;
23868
+ product_name: string | null;
23869
+ scope: string | null;
23870
+ trade_item_id: string | null;
23871
+ };
23872
+ Relationships: [];
23873
+ };
22686
23874
  logistics_product_dimensions: {
22687
23875
  Row: {
22688
23876
  dimension_source: string | null;
@@ -23301,6 +24489,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
23301
24489
  };
23302
24490
  Returns: undefined;
23303
24491
  };
24492
+ _wo_is_planner: {
24493
+ Args: never;
24494
+ Returns: boolean;
24495
+ };
23304
24496
  afh_city_code: {
23305
24497
  Args: {
23306
24498
  _city: string;
@@ -23911,10 +25103,32 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
23911
25103
  };
23912
25104
  Returns: number;
23913
25105
  };
25106
+ control_mark_carts_delivered_detail: {
25107
+ Args: {
25108
+ p_carts: import("../integrations/supabase/types").Json;
25109
+ };
25110
+ Returns: {
25111
+ cart_index: number;
25112
+ frozen: boolean;
25113
+ message: string;
25114
+ order_id: string;
25115
+ order_source: string;
25116
+ outcome: string;
25117
+ }[];
25118
+ };
23914
25119
  count_distinct_regulatory_products: {
23915
25120
  Args: never;
23916
25121
  Returns: number;
23917
25122
  };
25123
+ create_order_from_public_offer: {
25124
+ Args: {
25125
+ p_carrier_id?: string;
25126
+ p_delivery_date?: string;
25127
+ p_delivery_garden_id?: string;
25128
+ p_offer_order_id: string;
25129
+ };
25130
+ Returns: import("../integrations/supabase/types").Json;
25131
+ };
23918
25132
  current_monteur_id: {
23919
25133
  Args: never;
23920
25134
  Returns: string;
@@ -24391,6 +25605,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24391
25605
  };
24392
25606
  Returns: number;
24393
25607
  };
25608
+ get_product_stock: {
25609
+ Args: {
25610
+ p_product_id: string;
25611
+ };
25612
+ Returns: {
25613
+ connection_id: string;
25614
+ incoming_stock: number;
25615
+ minimum_stock: number;
25616
+ notes: string;
25617
+ physical_stock: number;
25618
+ product_id: string;
25619
+ reserved_stock: number;
25620
+ trade_item_key: string;
25621
+ updated_at: string;
25622
+ }[];
25623
+ };
24394
25624
  get_room_busy_windows: {
24395
25625
  Args: {
24396
25626
  p_from: string;
@@ -24695,6 +25925,26 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24695
25925
  };
24696
25926
  Returns: import("../integrations/supabase/types").Json;
24697
25927
  };
25928
+ inkoop_list_artikelen: {
25929
+ Args: never;
25930
+ Returns: {
25931
+ article_number: string;
25932
+ barcode: string;
25933
+ id: string;
25934
+ incoming_quantity: number;
25935
+ is_layer: boolean;
25936
+ location: string;
25937
+ min_quantity: number;
25938
+ preferred_supplier_name: string;
25939
+ product: string;
25940
+ product_type: string;
25941
+ purchase_price: number;
25942
+ quantity: number;
25943
+ sale_price: number;
25944
+ supplier_count: number;
25945
+ unit: string;
25946
+ }[];
25947
+ };
24698
25948
  inkoop_next_order_number: {
24699
25949
  Args: never;
24700
25950
  Returns: string;
@@ -24709,6 +25959,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24709
25959
  to_address: string;
24710
25960
  }[];
24711
25961
  };
25962
+ inkoop_set_preferred_supplier: {
25963
+ Args: {
25964
+ _product_id: string;
25965
+ _supplier_id: string;
25966
+ };
25967
+ Returns: undefined;
25968
+ };
24712
25969
  instructie_get: {
24713
25970
  Args: {
24714
25971
  _sleutel: string;
@@ -24728,6 +25985,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24728
25985
  };
24729
25986
  Returns: number;
24730
25987
  };
25988
+ invoice_branding_snapshot: {
25989
+ Args: never;
25990
+ Returns: import("../integrations/supabase/types").Json;
25991
+ };
24731
25992
  invoice_create_from_source: {
24732
25993
  Args: {
24733
25994
  _payload?: import("../integrations/supabase/types").Json;
@@ -24762,12 +26023,41 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24762
26023
  };
24763
26024
  Returns: import("../integrations/supabase/types").Json;
24764
26025
  };
26026
+ invoice_mark_sent: {
26027
+ Args: {
26028
+ _invoice_id: string;
26029
+ _to: string;
26030
+ };
26031
+ Returns: undefined;
26032
+ };
26033
+ invoice_peek_next_number: {
26034
+ Args: never;
26035
+ Returns: string;
26036
+ };
26037
+ invoice_ready_work_orders: {
26038
+ Args: {
26039
+ _limit?: number;
26040
+ };
26041
+ Returns: import("../integrations/supabase/types").Json;
26042
+ };
24765
26043
  invoice_recalc_totals: {
24766
26044
  Args: {
24767
26045
  _invoice_id: string;
24768
26046
  };
24769
26047
  Returns: import("../integrations/supabase/types").Json;
24770
26048
  };
26049
+ invoice_save_branding_settings: {
26050
+ Args: {
26051
+ _payload: import("../integrations/supabase/types").Json;
26052
+ };
26053
+ Returns: import("../integrations/supabase/types").Json;
26054
+ };
26055
+ invoice_set_email_purpose: {
26056
+ Args: {
26057
+ _purpose: string;
26058
+ };
26059
+ Returns: string;
26060
+ };
24771
26061
  invoice_source_lines: {
24772
26062
  Args: {
24773
26063
  _source_id: string;
@@ -24775,6 +26065,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24775
26065
  };
24776
26066
  Returns: import("../integrations/supabase/types").Json;
24777
26067
  };
26068
+ invoice_update_full: {
26069
+ Args: {
26070
+ _invoice_id: string;
26071
+ _payload: import("../integrations/supabase/types").Json;
26072
+ };
26073
+ Returns: import("../integrations/supabase/types").Json;
26074
+ };
26075
+ invoice_work_order_locked: {
26076
+ Args: {
26077
+ _werkbon_id: string;
26078
+ };
26079
+ Returns: import("../integrations/supabase/types").Json;
26080
+ };
24778
26081
  is_authenticated: {
24779
26082
  Args: never;
24780
26083
  Returns: boolean;
@@ -25007,6 +26310,14 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25007
26310
  };
25008
26311
  Returns: import("../integrations/supabase/types").Json;
25009
26312
  };
26313
+ logistics_buffer_decision_for_settings: {
26314
+ Args: {
26315
+ p_order: import("../integrations/supabase/types").Json;
26316
+ p_settings: import("../integrations/supabase/types").Json;
26317
+ p_user_id?: string;
26318
+ };
26319
+ Returns: import("../integrations/supabase/types").Json;
26320
+ };
25010
26321
  logistics_buffer_detach_late_orders: {
25011
26322
  Args: {
25012
26323
  p_buffer?: string;
@@ -25040,6 +26351,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25040
26351
  };
25041
26352
  Returns: string;
25042
26353
  };
26354
+ logistics_buffer_payload: {
26355
+ Args: {
26356
+ p_order_id: string;
26357
+ };
26358
+ Returns: import("../integrations/supabase/types").Json;
26359
+ };
25043
26360
  logistics_buffer_simulate: {
25044
26361
  Args: {
25045
26362
  p_orders?: import("../integrations/supabase/types").Json;
@@ -25098,6 +26415,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25098
26415
  };
25099
26416
  Returns: string;
25100
26417
  };
26418
+ logistics_cart_coverage_check: {
26419
+ Args: never;
26420
+ Returns: import("../integrations/supabase/types").Json;
26421
+ };
25101
26422
  logistics_cart_handled: {
25102
26423
  Args: {
25103
26424
  p_cart_index: number;
@@ -25341,6 +26662,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25341
26662
  isSetofReturn: false;
25342
26663
  };
25343
26664
  };
26665
+ logistics_cleanup_duplicate_order_lines: {
26666
+ Args: {
26667
+ p_limit?: number;
26668
+ p_order_id: string;
26669
+ };
26670
+ Returns: import("../integrations/supabase/types").Json;
26671
+ };
26672
+ logistics_cleanup_history: {
26673
+ Args: {
26674
+ p_limit?: number;
26675
+ };
26676
+ Returns: import("../integrations/supabase/types").Json;
26677
+ };
25344
26678
  logistics_cleanup_orphan_print_jobs: {
25345
26679
  Args: never;
25346
26680
  Returns: import("../integrations/supabase/types").Json;
@@ -25498,6 +26832,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25498
26832
  Args: never;
25499
26833
  Returns: import("../integrations/supabase/types").Json;
25500
26834
  };
26835
+ logistics_cron_health: {
26836
+ Args: never;
26837
+ Returns: import("../integrations/supabase/types").Json;
26838
+ };
25501
26839
  logistics_day_windows: {
25502
26840
  Args: {
25503
26841
  p_day: string;
@@ -25847,6 +27185,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25847
27185
  };
25848
27186
  Returns: number;
25849
27187
  };
27188
+ logistics_merge_decision: {
27189
+ Args: {
27190
+ p_lines: import("../integrations/supabase/types").Json;
27191
+ };
27192
+ Returns: import("../integrations/supabase/types").Json;
27193
+ };
25850
27194
  logistics_merge_floriday_lines: {
25851
27195
  Args: {
25852
27196
  p_order_id: string;
@@ -25893,6 +27237,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25893
27237
  Args: never;
25894
27238
  Returns: string;
25895
27239
  };
27240
+ logistics_order_backlog_info: {
27241
+ Args: {
27242
+ p_order_id: string;
27243
+ };
27244
+ Returns: import("../integrations/supabase/types").Json;
27245
+ };
25896
27246
  logistics_order_cart_approval: {
25897
27247
  Args: {
25898
27248
  _order_ref: string;
@@ -25927,6 +27277,50 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25927
27277
  };
25928
27278
  Returns: boolean;
25929
27279
  };
27280
+ logistics_order_finalize_enqueue: {
27281
+ Args: {
27282
+ p_order_id: string;
27283
+ p_reason?: string;
27284
+ };
27285
+ Returns: undefined;
27286
+ };
27287
+ logistics_order_finalize_overview: {
27288
+ Args: never;
27289
+ Returns: {
27290
+ bezig: number;
27291
+ laatst_afgerond: string;
27292
+ laatste_fout: string;
27293
+ mislukt: number;
27294
+ oudste_wachttijd_seconden: number;
27295
+ wachtend: number;
27296
+ }[];
27297
+ };
27298
+ logistics_order_finalize_prune: {
27299
+ Args: {
27300
+ p_days?: number;
27301
+ };
27302
+ Returns: number;
27303
+ };
27304
+ logistics_order_finalize_reconcile: {
27305
+ Args: {
27306
+ p_days?: number;
27307
+ p_limit?: number;
27308
+ };
27309
+ Returns: number;
27310
+ };
27311
+ logistics_order_finalize_retry: {
27312
+ Args: {
27313
+ p_order_id: string;
27314
+ };
27315
+ Returns: boolean;
27316
+ };
27317
+ logistics_order_finalize_run: {
27318
+ Args: {
27319
+ p_lease_seconds?: number;
27320
+ p_limit?: number;
27321
+ };
27322
+ Returns: number;
27323
+ };
25930
27324
  logistics_order_frozen: {
25931
27325
  Args: {
25932
27326
  p_order_id: string;
@@ -25939,6 +27333,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25939
27333
  };
25940
27334
  Returns: boolean;
25941
27335
  };
27336
+ logistics_order_is_backlog: {
27337
+ Args: {
27338
+ p_order_id: string;
27339
+ };
27340
+ Returns: boolean;
27341
+ };
25942
27342
  logistics_order_is_topick: {
25943
27343
  Args: {
25944
27344
  p_order_id: string;
@@ -25946,6 +27346,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25946
27346
  };
25947
27347
  Returns: boolean;
25948
27348
  };
27349
+ logistics_order_line_duplicates: {
27350
+ Args: {
27351
+ p_order_id: string;
27352
+ };
27353
+ Returns: import("../integrations/supabase/types").Json;
27354
+ };
25949
27355
  logistics_order_merge_key: {
25950
27356
  Args: {
25951
27357
  p_group_key: string;
@@ -25989,6 +27395,63 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25989
27395
  };
25990
27396
  Returns: boolean;
25991
27397
  };
27398
+ logistics_packing_autofix: {
27399
+ Args: {
27400
+ p_limit?: number;
27401
+ };
27402
+ Returns: number;
27403
+ };
27404
+ logistics_packing_block_reason: {
27405
+ Args: {
27406
+ p_order_id: string;
27407
+ p_order_item_id: string;
27408
+ };
27409
+ Returns: string;
27410
+ };
27411
+ logistics_packing_dismiss: {
27412
+ Args: {
27413
+ p_id: string;
27414
+ p_note?: string;
27415
+ };
27416
+ Returns: boolean;
27417
+ };
27418
+ logistics_packing_overview: {
27419
+ Args: never;
27420
+ Returns: {
27421
+ beoordelen: number;
27422
+ herstelbaar: number;
27423
+ laatst_gemeten: string;
27424
+ laatst_hersteld: string;
27425
+ open_totaal: number;
27426
+ orders: number;
27427
+ oudste_seconden: number;
27428
+ producten: number;
27429
+ }[];
27430
+ };
27431
+ logistics_packing_reconcile: {
27432
+ Args: {
27433
+ p_fix_limit?: number;
27434
+ p_scan_limit?: number;
27435
+ };
27436
+ Returns: {
27437
+ beoordelen: number;
27438
+ gevonden: number;
27439
+ hersteld: number;
27440
+ }[];
27441
+ };
27442
+ logistics_packing_scan: {
27443
+ Args: {
27444
+ p_limit?: number;
27445
+ };
27446
+ Returns: number;
27447
+ };
27448
+ logistics_packing_set_manual: {
27449
+ Args: {
27450
+ p_manual?: boolean;
27451
+ p_order_item_id: string;
27452
+ };
27453
+ Returns: boolean;
27454
+ };
25992
27455
  logistics_parse_pickup: {
25993
27456
  Args: {
25994
27457
  p_value: string;
@@ -26017,6 +27480,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26017
27480
  shifted_count: number;
26018
27481
  }[];
26019
27482
  };
27483
+ logistics_pick_backlog_max_days: {
27484
+ Args: never;
27485
+ Returns: number;
27486
+ };
26020
27487
  logistics_pick_barcode_enabled: {
26021
27488
  Args: never;
26022
27489
  Returns: boolean;
@@ -26238,6 +27705,21 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26238
27705
  Args: never;
26239
27706
  Returns: number;
26240
27707
  };
27708
+ logistics_planner_cart_snapshot: {
27709
+ Args: {
27710
+ p_buffer_id: string;
27711
+ p_order_id: string;
27712
+ };
27713
+ Returns: import("../integrations/supabase/types").Json;
27714
+ };
27715
+ logistics_planner_diff_mode: {
27716
+ Args: never;
27717
+ Returns: string;
27718
+ };
27719
+ logistics_planner_diff_prune: {
27720
+ Args: never;
27721
+ Returns: number;
27722
+ };
26241
27723
  logistics_prepare_pick_documents: {
26242
27724
  Args: {
26243
27725
  p_limit?: number;
@@ -26248,6 +27730,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26248
27730
  Args: never;
26249
27731
  Returns: number;
26250
27732
  };
27733
+ logistics_prune_cron_history: {
27734
+ Args: {
27735
+ p_days?: number;
27736
+ };
27737
+ Returns: number;
27738
+ };
26251
27739
  logistics_prune_handled_pick_queue: {
26252
27740
  Args: never;
26253
27741
  Returns: number;
@@ -26284,6 +27772,14 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26284
27772
  Args: never;
26285
27773
  Returns: import("../integrations/supabase/types").Json;
26286
27774
  };
27775
+ logistics_recalc_tick_kick: {
27776
+ Args: never;
27777
+ Returns: number;
27778
+ };
27779
+ logistics_reconcile_missing_plan_queue: {
27780
+ Args: never;
27781
+ Returns: number;
27782
+ };
26287
27783
  logistics_refresh_pick_queue_status: {
26288
27784
  Args: {
26289
27785
  p_ref: string;
@@ -26314,11 +27810,24 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26314
27810
  };
26315
27811
  Returns: import("../integrations/supabase/types").Json;
26316
27812
  };
27813
+ logistics_replan_clear_foreign_cart_items: {
27814
+ Args: {
27815
+ p_order_id: string;
27816
+ p_reason: string;
27817
+ };
27818
+ Returns: import("../integrations/supabase/types").Json;
27819
+ };
26317
27820
  logistics_replan_order_journey: {
26318
27821
  Args: {
26319
27822
  p_order_ref: string;
26320
27823
  };
26321
27824
  Returns: import("../integrations/supabase/types").Json;
27825
+ } | {
27826
+ Args: {
27827
+ p_order_ref: string;
27828
+ p_reason: string;
27829
+ };
27830
+ Returns: import("../integrations/supabase/types").Json;
26322
27831
  };
26323
27832
  logistics_report_delay: {
26324
27833
  Args: {
@@ -26364,6 +27873,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26364
27873
  };
26365
27874
  Returns: import("../integrations/supabase/types").Json;
26366
27875
  };
27876
+ logistics_reserved_stock_nightly: {
27877
+ Args: never;
27878
+ Returns: undefined;
27879
+ };
26367
27880
  logistics_resolve_pick_document: {
26368
27881
  Args: {
26369
27882
  _is_herprint: boolean;
@@ -26387,6 +27900,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26387
27900
  };
26388
27901
  Returns: import("../integrations/supabase/types").Json;
26389
27902
  };
27903
+ logistics_retention_days: {
27904
+ Args: {
27905
+ p_key: string;
27906
+ };
27907
+ Returns: number;
27908
+ };
26390
27909
  logistics_rule_bool: {
26391
27910
  Args: {
26392
27911
  p_default: boolean;
@@ -26580,12 +28099,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26580
28099
  Args: never;
26581
28100
  Returns: import("../integrations/supabase/types").Json;
26582
28101
  };
28102
+ logistics_sync_pick_queue_backlog: {
28103
+ Args: never;
28104
+ Returns: import("../integrations/supabase/types").Json;
28105
+ };
28106
+ logistics_sync_pick_queue_core: {
28107
+ Args: never;
28108
+ Returns: import("../integrations/supabase/types").Json;
28109
+ };
26583
28110
  logistics_sync_task_carriers: {
26584
28111
  Args: {
26585
28112
  p_order_ref?: string;
26586
28113
  };
26587
28114
  Returns: number;
26588
28115
  };
28116
+ logistics_task_open_counts: {
28117
+ Args: never;
28118
+ Returns: {
28119
+ open_count: number;
28120
+ owner_module: string;
28121
+ }[];
28122
+ };
26589
28123
  logistics_task_owner: {
26590
28124
  Args: {
26591
28125
  p_task_type: string;
@@ -26603,6 +28137,16 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26603
28137
  Args: never;
26604
28138
  Returns: number;
26605
28139
  };
28140
+ logistics_tasks_prune: {
28141
+ Args: {
28142
+ p_days?: number;
28143
+ };
28144
+ Returns: number;
28145
+ };
28146
+ logistics_tick: {
28147
+ Args: never;
28148
+ Returns: import("../integrations/supabase/types").Json;
28149
+ };
26606
28150
  logistics_tick_ping: {
26607
28151
  Args: never;
26608
28152
  Returns: string;
@@ -26943,6 +28487,17 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26943
28487
  };
26944
28488
  Returns: boolean;
26945
28489
  };
28490
+ order_items_duplicate_report: {
28491
+ Args: {
28492
+ _order_ref?: string;
28493
+ };
28494
+ Returns: {
28495
+ distinct_products: number;
28496
+ duplicate_factor: number;
28497
+ lines: number;
28498
+ order_number: string;
28499
+ }[];
28500
+ };
26946
28501
  order_number_prefix: {
26947
28502
  Args: {
26948
28503
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -27726,6 +29281,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
27726
29281
  };
27727
29282
  Returns: undefined;
27728
29283
  };
29284
+ planning_apply_schedule_updates: {
29285
+ Args: {
29286
+ _updates: import("../integrations/supabase/types").Json;
29287
+ };
29288
+ Returns: undefined;
29289
+ };
29290
+ planning_assert_no_overlaps: {
29291
+ Args: never;
29292
+ Returns: undefined;
29293
+ };
29294
+ planning_assert_no_overlaps_for_items: {
29295
+ Args: {
29296
+ _item_ids: string[];
29297
+ };
29298
+ Returns: undefined;
29299
+ };
27729
29300
  planning_cancel_item: {
27730
29301
  Args: {
27731
29302
  _id: string;
@@ -27837,6 +29408,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
27837
29408
  };
27838
29409
  Returns: boolean;
27839
29410
  };
29411
+ quote_assign_number: {
29412
+ Args: {
29413
+ _offerte_id: string;
29414
+ };
29415
+ Returns: string;
29416
+ };
29417
+ quote_create_follow_up_now: {
29418
+ Args: {
29419
+ _offerte_id: string;
29420
+ _payload?: import("../integrations/supabase/types").Json;
29421
+ };
29422
+ Returns: import("../integrations/supabase/types").Json;
29423
+ };
27840
29424
  quote_create_from_source: {
27841
29425
  Args: {
27842
29426
  _payload?: import("../integrations/supabase/types").Json;
@@ -28080,6 +29664,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28080
29664
  Args: never;
28081
29665
  Returns: undefined;
28082
29666
  };
29667
+ run_order_auto_invoice_tick: {
29668
+ Args: never;
29669
+ Returns: number;
29670
+ };
28083
29671
  run_print_queue_ticks: {
28084
29672
  Args: never;
28085
29673
  Returns: number;
@@ -28457,6 +30045,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28457
30045
  };
28458
30046
  Returns: number;
28459
30047
  };
30048
+ schedule_floriday_trade_items_reconcile: {
30049
+ Args: {
30050
+ p_apikey: string;
30051
+ p_url: string;
30052
+ };
30053
+ Returns: number;
30054
+ };
28460
30055
  schedule_floriday_trade_items_sync: {
28461
30056
  Args: {
28462
30057
  p_apikey: string;
@@ -28539,6 +30134,26 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28539
30134
  };
28540
30135
  Returns: undefined;
28541
30136
  };
30137
+ set_product_stock: {
30138
+ Args: {
30139
+ p_incoming_stock?: number;
30140
+ p_minimum_stock?: number;
30141
+ p_notes?: string;
30142
+ p_physical_stock: number;
30143
+ p_product_id: string;
30144
+ };
30145
+ Returns: {
30146
+ connection_id: string;
30147
+ incoming_stock: number;
30148
+ minimum_stock: number;
30149
+ notes: string;
30150
+ physical_stock: number;
30151
+ product_id: string;
30152
+ reserved_stock: number;
30153
+ trade_item_key: string;
30154
+ updated_at: string;
30155
+ }[];
30156
+ };
28542
30157
  show_limit: {
28543
30158
  Args: never;
28544
30159
  Returns: number;
@@ -28781,6 +30396,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28781
30396
  Args: never;
28782
30397
  Returns: boolean;
28783
30398
  };
30399
+ uren_is_werkdag: {
30400
+ Args: {
30401
+ _date: string;
30402
+ _monteur: string;
30403
+ };
30404
+ Returns: boolean;
30405
+ };
30406
+ uren_korte_afwezigheid_aanvragen: {
30407
+ Args: {
30408
+ _datum: string;
30409
+ _eind: string;
30410
+ _reden: string;
30411
+ _start: string;
30412
+ };
30413
+ Returns: string;
30414
+ };
28784
30415
  uren_list_medewerkers: {
28785
30416
  Args: never;
28786
30417
  Returns: {
@@ -28801,6 +30432,45 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28801
30432
  roles: string[];
28802
30433
  }[];
28803
30434
  };
30435
+ uren_list_planner_contacten: {
30436
+ Args: never;
30437
+ Returns: {
30438
+ display_name: string;
30439
+ id: string;
30440
+ phone: string;
30441
+ }[];
30442
+ };
30443
+ uren_maand_afsluiten: {
30444
+ Args: {
30445
+ _maand: string;
30446
+ _monteur: string;
30447
+ };
30448
+ Returns: undefined;
30449
+ };
30450
+ uren_maand_berekenen: {
30451
+ Args: {
30452
+ _maand: string;
30453
+ _monteur: string;
30454
+ };
30455
+ Returns: import("../integrations/supabase/types").Json;
30456
+ };
30457
+ uren_maand_corrigeren: {
30458
+ Args: {
30459
+ _maand: string;
30460
+ _monteur: string;
30461
+ _overuren_minuten: number;
30462
+ _reden: string;
30463
+ };
30464
+ Returns: undefined;
30465
+ };
30466
+ uren_mijn_contracturen: {
30467
+ Args: never;
30468
+ Returns: number;
30469
+ };
30470
+ uren_mijn_vakantiesaldo: {
30471
+ Args: never;
30472
+ Returns: number;
30473
+ };
28804
30474
  uren_my_monteur_id: {
28805
30475
  Args: never;
28806
30476
  Returns: string;
@@ -28834,6 +30504,37 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28834
30504
  };
28835
30505
  Returns: number;
28836
30506
  };
30507
+ uren_spiegel_bezig: {
30508
+ Args: never;
30509
+ Returns: boolean;
30510
+ };
30511
+ uren_standaardweek_beoordelen: {
30512
+ Args: {
30513
+ _goedkeuren: boolean;
30514
+ _id: string;
30515
+ _reden?: string;
30516
+ };
30517
+ Returns: undefined;
30518
+ };
30519
+ uren_standaardweek_doorzetten: {
30520
+ Args: {
30521
+ _monteur: string;
30522
+ };
30523
+ Returns: undefined;
30524
+ };
30525
+ uren_standaardweek_instellen: {
30526
+ Args: {
30527
+ _dagen: import("../integrations/supabase/types").Json;
30528
+ };
30529
+ Returns: string;
30530
+ };
30531
+ uren_standaardweek_toepassen: {
30532
+ Args: {
30533
+ _dagen: import("../integrations/supabase/types").Json;
30534
+ _monteur: string;
30535
+ };
30536
+ Returns: undefined;
30537
+ };
28837
30538
  uren_stop_time_log: {
28838
30539
  Args: {
28839
30540
  p_employee_id: string;
@@ -28859,6 +30560,165 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28859
30560
  };
28860
30561
  Returns: number;
28861
30562
  };
30563
+ uren_vakantie_aanvragen: {
30564
+ Args: {
30565
+ _end_date: string;
30566
+ _hours?: number;
30567
+ _start_date: string;
30568
+ };
30569
+ Returns: string;
30570
+ };
30571
+ uren_vakantiedag_wijzigen: {
30572
+ Args: {
30573
+ _date: string;
30574
+ };
30575
+ Returns: string;
30576
+ };
30577
+ uren_vakantiesaldo_uren: {
30578
+ Args: {
30579
+ _monteur: string;
30580
+ };
30581
+ Returns: number;
30582
+ };
30583
+ uren_week_start: {
30584
+ Args: {
30585
+ _datum: string;
30586
+ };
30587
+ Returns: string;
30588
+ };
30589
+ uren_werkweek_opsturen: {
30590
+ Args: {
30591
+ _week_start: string;
30592
+ };
30593
+ Returns: {
30594
+ approved_at: string | null;
30595
+ approved_by: string | null;
30596
+ contract_hours: number;
30597
+ created_at: string;
30598
+ employee_id: string;
30599
+ id: string;
30600
+ locked: boolean;
30601
+ monteur_toelichting: string | null;
30602
+ notes: string | null;
30603
+ planned_hours: number;
30604
+ status: string;
30605
+ submitted_at: string | null;
30606
+ updated_at: string;
30607
+ variance_hours: number;
30608
+ week_start: string;
30609
+ };
30610
+ SetofOptions: {
30611
+ from: "*";
30612
+ to: "time_log_week_approvals";
30613
+ isOneToOne: true;
30614
+ isSetofReturn: false;
30615
+ };
30616
+ } | {
30617
+ Args: {
30618
+ _vrije_dagen?: string[];
30619
+ _week_start: string;
30620
+ };
30621
+ Returns: {
30622
+ approved_at: string | null;
30623
+ approved_by: string | null;
30624
+ contract_hours: number;
30625
+ created_at: string;
30626
+ employee_id: string;
30627
+ id: string;
30628
+ locked: boolean;
30629
+ monteur_toelichting: string | null;
30630
+ notes: string | null;
30631
+ planned_hours: number;
30632
+ status: string;
30633
+ submitted_at: string | null;
30634
+ updated_at: string;
30635
+ variance_hours: number;
30636
+ week_start: string;
30637
+ };
30638
+ SetofOptions: {
30639
+ from: "*";
30640
+ to: "time_log_week_approvals";
30641
+ isOneToOne: true;
30642
+ isSetofReturn: false;
30643
+ };
30644
+ } | {
30645
+ Args: {
30646
+ _toelichting?: string;
30647
+ _vrije_dagen?: string[];
30648
+ _week_start: string;
30649
+ };
30650
+ Returns: {
30651
+ approved_at: string | null;
30652
+ approved_by: string | null;
30653
+ contract_hours: number;
30654
+ created_at: string;
30655
+ employee_id: string;
30656
+ id: string;
30657
+ locked: boolean;
30658
+ monteur_toelichting: string | null;
30659
+ notes: string | null;
30660
+ planned_hours: number;
30661
+ status: string;
30662
+ submitted_at: string | null;
30663
+ updated_at: string;
30664
+ variance_hours: number;
30665
+ week_start: string;
30666
+ };
30667
+ SetofOptions: {
30668
+ from: "*";
30669
+ to: "time_log_week_approvals";
30670
+ isOneToOne: true;
30671
+ isSetofReturn: false;
30672
+ };
30673
+ };
30674
+ vakantie_dagen_gebruikt: {
30675
+ Args: {
30676
+ _user_id: string;
30677
+ _year: number;
30678
+ };
30679
+ Returns: number;
30680
+ };
30681
+ vakantie_overuren: {
30682
+ Args: {
30683
+ _user_id: string;
30684
+ _year?: number;
30685
+ };
30686
+ Returns: number;
30687
+ };
30688
+ vakantie_saldo: {
30689
+ Args: {
30690
+ _user_id: string;
30691
+ _year?: number;
30692
+ };
30693
+ Returns: {
30694
+ day_hours: number;
30695
+ earned_from_overtime_days: number;
30696
+ entitlement_days: number;
30697
+ hours_to_next_day: number;
30698
+ overtime_hours: number;
30699
+ overtime_remainder_hours: number;
30700
+ paid_out_days: number;
30701
+ remaining_days: number;
30702
+ used_days: number;
30703
+ }[];
30704
+ };
30705
+ vakantie_saldo_overzicht: {
30706
+ Args: {
30707
+ _year?: number;
30708
+ };
30709
+ Returns: {
30710
+ day_hours: number;
30711
+ earned_from_overtime_days: number;
30712
+ entitlement_days: number;
30713
+ hours_to_next_day: number;
30714
+ overtime_hours: number;
30715
+ overtime_remainder_hours: number;
30716
+ paid_out_days: number;
30717
+ remaining_days: number;
30718
+ used_days: number;
30719
+ user_id: string;
30720
+ }[];
30721
+ };
28862
30722
  voorraad_cleanup_old_rows: {
28863
30723
  Args: never;
28864
30724
  Returns: import("../integrations/supabase/types").Json;
@@ -28907,12 +30767,25 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28907
30767
  };
28908
30768
  Returns: import("../integrations/supabase/types").Json;
28909
30769
  };
30770
+ wo_list_proposals: {
30771
+ Args: {
30772
+ _status?: string;
30773
+ };
30774
+ Returns: import("../integrations/supabase/types").Json;
30775
+ };
28910
30776
  wo_process_offerte_request: {
28911
30777
  Args: {
28912
30778
  _queue_id: string;
28913
30779
  };
28914
30780
  Returns: import("../integrations/supabase/types").Json;
28915
30781
  };
30782
+ wo_process_proposal: {
30783
+ Args: {
30784
+ _id: string;
30785
+ _overrides?: import("../integrations/supabase/types").Json;
30786
+ };
30787
+ Returns: import("../integrations/supabase/types").Json;
30788
+ };
28916
30789
  wo_reject_offerte_request: {
28917
30790
  Args: {
28918
30791
  _queue_id: string;
@@ -28920,6 +30793,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28920
30793
  };
28921
30794
  Returns: import("../integrations/supabase/types").Json;
28922
30795
  };
30796
+ wo_reject_proposal: {
30797
+ Args: {
30798
+ _id: string;
30799
+ _reden?: string;
30800
+ };
30801
+ Returns: import("../integrations/supabase/types").Json;
30802
+ };
28923
30803
  wo_set_status: {
28924
30804
  Args: {
28925
30805
  _reason?: string;