@flowselections/floriday-afhandeling-module 1.0.45 → 1.0.47

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 (46) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.js +1 -1
  2. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/DagDetailDialog.js +32 -9
  4. package/dist-lib/components/afhandeling/ScanControleView.js +1 -1
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  6. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  7. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +9 -9
  8. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -28
  9. package/dist-lib/components/ui/responsive-dialog.js +1 -1
  10. package/dist-lib/hooks/usePickMode.d.ts +1 -1
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2422 -45
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.d.ts +2422 -45
  14. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.js +1 -1
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts +2422 -45
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  19. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +2461 -42
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts +4760 -6
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/carriers.functions.d.ts +11900 -15
  26. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/cartAssignments.functions.d.ts +43261 -42
  28. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/cartAssignments.functions.js +69 -0
  30. package/dist-lib/lib/cartControl.functions.d.ts +26180 -33
  31. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/deliveryNote.functions.d.ts +2422 -45
  33. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/deliveryNotePrint.d.ts +33 -33
  35. package/dist-lib/lib/deliveryNotePrint.js +219 -219
  36. package/dist-lib/lib/engineLayouts.functions.d.ts +2422 -45
  37. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday.functions.d.ts +4760 -6
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
  41. package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
  42. package/dist-lib/lib/orderFulfilment.functions.d.ts +2422 -45
  43. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/pickDates.functions.d.ts +2422 -45
  45. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  46. package/package.json +3 -3
@@ -746,6 +746,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
746
746
  };
747
747
  Relationships: [];
748
748
  };
749
+ artikelen_instellingen: {
750
+ Row: {
751
+ created_at: string;
752
+ id: number;
753
+ marge_procent: number;
754
+ updated_at: string;
755
+ };
756
+ Insert: {
757
+ created_at?: string;
758
+ id?: number;
759
+ marge_procent?: number;
760
+ updated_at?: string;
761
+ };
762
+ Update: {
763
+ created_at?: string;
764
+ id?: number;
765
+ marge_procent?: number;
766
+ updated_at?: string;
767
+ };
768
+ Relationships: [];
769
+ };
749
770
  artikelen_veldconfig: {
750
771
  Row: {
751
772
  bron_pad: string;
@@ -8002,6 +8023,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8002
8023
  };
8003
8024
  fust_types: {
8004
8025
  Row: {
8026
+ capacity_units: number | null;
8005
8027
  connection_id: string | null;
8006
8028
  created_at: string;
8007
8029
  custom_package_id: string | null;
@@ -8022,6 +8044,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8022
8044
  width_mm: number | null;
8023
8045
  };
8024
8046
  Insert: {
8047
+ capacity_units?: number | null;
8025
8048
  connection_id?: string | null;
8026
8049
  created_at?: string;
8027
8050
  custom_package_id?: string | null;
@@ -8042,6 +8065,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8042
8065
  width_mm?: number | null;
8043
8066
  };
8044
8067
  Update: {
8068
+ capacity_units?: number | null;
8045
8069
  connection_id?: string | null;
8046
8070
  created_at?: string;
8047
8071
  custom_package_id?: string | null;
@@ -8273,6 +8297,72 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8273
8297
  };
8274
8298
  Relationships: [];
8275
8299
  };
8300
+ invoice_branding_settings: {
8301
+ Row: {
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
+ Insert: {
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
+ Update: {
8344
+ address?: string;
8345
+ chamber_of_commerce_number?: string;
8346
+ city?: string;
8347
+ company_name?: string;
8348
+ created_at?: string;
8349
+ email?: string;
8350
+ email_purpose?: string | null;
8351
+ iban?: string;
8352
+ logo_path?: string | null;
8353
+ payment_term_days?: number;
8354
+ phone?: string;
8355
+ postal_code?: string;
8356
+ primary_color?: string;
8357
+ secondary_color?: string;
8358
+ show_company_name?: boolean;
8359
+ singleton_key?: boolean;
8360
+ updated_at?: string;
8361
+ vat_identification_number?: string;
8362
+ website?: string;
8363
+ };
8364
+ Relationships: [];
8365
+ };
8276
8366
  invoice_items: {
8277
8367
  Row: {
8278
8368
  created_at: string;
@@ -8286,6 +8376,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8286
8376
  total_cents: number;
8287
8377
  unit: string;
8288
8378
  unit_price_cents: number;
8379
+ vat_rate: number | null;
8289
8380
  };
8290
8381
  Insert: {
8291
8382
  created_at?: string;
@@ -8299,6 +8390,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8299
8390
  total_cents?: number;
8300
8391
  unit?: string;
8301
8392
  unit_price_cents?: number;
8393
+ vat_rate?: number | null;
8302
8394
  };
8303
8395
  Update: {
8304
8396
  created_at?: string;
@@ -8312,6 +8404,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8312
8404
  total_cents?: number;
8313
8405
  unit?: string;
8314
8406
  unit_price_cents?: number;
8407
+ vat_rate?: number | null;
8315
8408
  };
8316
8409
  Relationships: [{
8317
8410
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8557,15 +8650,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8557
8650
  };
8558
8651
  invoices: {
8559
8652
  Row: {
8653
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8560
8654
  created_at: string;
8561
8655
  created_by: string | null;
8656
+ customer_address: string | null;
8657
+ customer_attention: string | null;
8658
+ customer_city: string | null;
8562
8659
  customer_id: string | null;
8563
8660
  customer_name: string | null;
8661
+ customer_postal_code: string | null;
8662
+ customer_vat_number: string | null;
8663
+ debtor_number: string | null;
8564
8664
  due_date: string | null;
8665
+ execution_date: string | null;
8565
8666
  id: string;
8566
8667
  invoice_date: string;
8567
8668
  invoice_number: string | null;
8568
8669
  note: string | null;
8670
+ payment_term_days: number;
8671
+ reference: string | null;
8672
+ sent_at: string | null;
8673
+ sent_to: string | null;
8569
8674
  source_number: string | null;
8570
8675
  source_ref: string | null;
8571
8676
  source_type: string;
@@ -8575,17 +8680,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8575
8680
  updated_at: string;
8576
8681
  vat_cents: number;
8577
8682
  vat_rate: number;
8683
+ work_address: string | null;
8578
8684
  };
8579
8685
  Insert: {
8686
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8580
8687
  created_at?: string;
8581
8688
  created_by?: string | null;
8689
+ customer_address?: string | null;
8690
+ customer_attention?: string | null;
8691
+ customer_city?: string | null;
8582
8692
  customer_id?: string | null;
8583
8693
  customer_name?: string | null;
8694
+ customer_postal_code?: string | null;
8695
+ customer_vat_number?: string | null;
8696
+ debtor_number?: string | null;
8584
8697
  due_date?: string | null;
8698
+ execution_date?: string | null;
8585
8699
  id?: string;
8586
8700
  invoice_date?: string;
8587
8701
  invoice_number?: string | null;
8588
8702
  note?: string | null;
8703
+ payment_term_days?: number;
8704
+ reference?: string | null;
8705
+ sent_at?: string | null;
8706
+ sent_to?: string | null;
8589
8707
  source_number?: string | null;
8590
8708
  source_ref?: string | null;
8591
8709
  source_type?: string;
@@ -8595,17 +8713,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8595
8713
  updated_at?: string;
8596
8714
  vat_cents?: number;
8597
8715
  vat_rate?: number;
8716
+ work_address?: string | null;
8598
8717
  };
8599
8718
  Update: {
8719
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8600
8720
  created_at?: string;
8601
8721
  created_by?: string | null;
8722
+ customer_address?: string | null;
8723
+ customer_attention?: string | null;
8724
+ customer_city?: string | null;
8602
8725
  customer_id?: string | null;
8603
8726
  customer_name?: string | null;
8727
+ customer_postal_code?: string | null;
8728
+ customer_vat_number?: string | null;
8729
+ debtor_number?: string | null;
8604
8730
  due_date?: string | null;
8731
+ execution_date?: string | null;
8605
8732
  id?: string;
8606
8733
  invoice_date?: string;
8607
8734
  invoice_number?: string | null;
8608
8735
  note?: string | null;
8736
+ payment_term_days?: number;
8737
+ reference?: string | null;
8738
+ sent_at?: string | null;
8739
+ sent_to?: string | null;
8609
8740
  source_number?: string | null;
8610
8741
  source_ref?: string | null;
8611
8742
  source_type?: string;
@@ -8615,6 +8746,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
8615
8746
  updated_at?: string;
8616
8747
  vat_cents?: number;
8617
8748
  vat_rate?: number;
8749
+ work_address?: string | null;
8618
8750
  };
8619
8751
  Relationships: [{
8620
8752
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9313,6 +9445,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9313
9445
  quantity: number;
9314
9446
  sort_order: number;
9315
9447
  source: string;
9448
+ unit: string | null;
9316
9449
  unit_price_cents: number;
9317
9450
  updated_at: string;
9318
9451
  };
@@ -9326,6 +9459,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9326
9459
  quantity?: number;
9327
9460
  sort_order?: number;
9328
9461
  source?: string;
9462
+ unit?: string | null;
9329
9463
  unit_price_cents?: number;
9330
9464
  updated_at?: string;
9331
9465
  };
@@ -9339,6 +9473,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9339
9473
  quantity?: number;
9340
9474
  sort_order?: number;
9341
9475
  source?: string;
9476
+ unit?: string | null;
9342
9477
  unit_price_cents?: number;
9343
9478
  updated_at?: string;
9344
9479
  };
@@ -9362,6 +9497,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9362
9497
  created_at: string;
9363
9498
  default_geldigheid_dagen: number;
9364
9499
  default_vat_rate: number;
9500
+ email_purpose: string | null;
9365
9501
  id: string;
9366
9502
  singleton: boolean;
9367
9503
  updated_at: string;
@@ -9371,6 +9507,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9371
9507
  created_at?: string;
9372
9508
  default_geldigheid_dagen?: number;
9373
9509
  default_vat_rate?: number;
9510
+ email_purpose?: string | null;
9374
9511
  id?: string;
9375
9512
  singleton?: boolean;
9376
9513
  updated_at?: string;
@@ -9380,12 +9517,49 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9380
9517
  created_at?: string;
9381
9518
  default_geldigheid_dagen?: number;
9382
9519
  default_vat_rate?: number;
9520
+ email_purpose?: string | null;
9383
9521
  id?: string;
9384
9522
  singleton?: boolean;
9385
9523
  updated_at?: string;
9386
9524
  };
9387
9525
  Relationships: [];
9388
9526
  };
9527
+ itk_offerte_voorstel_status: {
9528
+ Row: {
9529
+ ai_concept: import("../integrations/supabase/types").Json | null;
9530
+ created_at: string;
9531
+ id: string;
9532
+ offerte_id: string | null;
9533
+ proposal_id: string;
9534
+ seen_at: string | null;
9535
+ updated_at: string;
9536
+ };
9537
+ Insert: {
9538
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9539
+ created_at?: string;
9540
+ id?: string;
9541
+ offerte_id?: string | null;
9542
+ proposal_id: string;
9543
+ seen_at?: string | null;
9544
+ updated_at?: string;
9545
+ };
9546
+ Update: {
9547
+ ai_concept?: import("../integrations/supabase/types").Json | null;
9548
+ created_at?: string;
9549
+ id?: string;
9550
+ offerte_id?: string | null;
9551
+ proposal_id?: string;
9552
+ seen_at?: string | null;
9553
+ updated_at?: string;
9554
+ };
9555
+ Relationships: [{
9556
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9557
+ columns: ["offerte_id"];
9558
+ isOneToOne: false;
9559
+ referencedRelation: "itk_offertes";
9560
+ referencedColumns: ["id"];
9561
+ }];
9562
+ };
9389
9563
  itk_offerte_werkbon_queue: {
9390
9564
  Row: {
9391
9565
  bron_werkbon_id: string | null;
@@ -9436,6 +9610,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9436
9610
  };
9437
9611
  itk_offertes: {
9438
9612
  Row: {
9613
+ aandachtspunten: string | null;
9439
9614
  ai_generated: boolean;
9440
9615
  approved_at: string | null;
9441
9616
  binnen_mandaat: boolean;
@@ -9451,6 +9626,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9451
9626
  notities: string | null;
9452
9627
  offerte_number: string | null;
9453
9628
  omschrijving: string;
9629
+ onderwerp: string | null;
9454
9630
  rejected_at: string | null;
9455
9631
  sent_at: string | null;
9456
9632
  source_number: string | null;
@@ -9463,12 +9639,15 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9463
9639
  valid_until: string | null;
9464
9640
  vat_cents: number;
9465
9641
  vat_rate: number;
9642
+ verzonden_naar: string | null;
9466
9643
  viewed_at: string | null;
9467
9644
  volgnummer: number | null;
9645
+ voorwaarden: string | null;
9468
9646
  werkbon_id: string | null;
9469
9647
  work_location_id: string | null;
9470
9648
  };
9471
9649
  Insert: {
9650
+ aandachtspunten?: string | null;
9472
9651
  ai_generated?: boolean;
9473
9652
  approved_at?: string | null;
9474
9653
  binnen_mandaat?: boolean;
@@ -9484,6 +9663,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9484
9663
  notities?: string | null;
9485
9664
  offerte_number?: string | null;
9486
9665
  omschrijving?: string;
9666
+ onderwerp?: string | null;
9487
9667
  rejected_at?: string | null;
9488
9668
  sent_at?: string | null;
9489
9669
  source_number?: string | null;
@@ -9496,12 +9676,15 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9496
9676
  valid_until?: string | null;
9497
9677
  vat_cents?: number;
9498
9678
  vat_rate?: number;
9679
+ verzonden_naar?: string | null;
9499
9680
  viewed_at?: string | null;
9500
9681
  volgnummer?: number | null;
9682
+ voorwaarden?: string | null;
9501
9683
  werkbon_id?: string | null;
9502
9684
  work_location_id?: string | null;
9503
9685
  };
9504
9686
  Update: {
9687
+ aandachtspunten?: string | null;
9505
9688
  ai_generated?: boolean;
9506
9689
  approved_at?: string | null;
9507
9690
  binnen_mandaat?: boolean;
@@ -9517,6 +9700,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9517
9700
  notities?: string | null;
9518
9701
  offerte_number?: string | null;
9519
9702
  omschrijving?: string;
9703
+ onderwerp?: string | null;
9520
9704
  rejected_at?: string | null;
9521
9705
  sent_at?: string | null;
9522
9706
  source_number?: string | null;
@@ -9529,8 +9713,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9529
9713
  valid_until?: string | null;
9530
9714
  vat_cents?: number;
9531
9715
  vat_rate?: number;
9716
+ verzonden_naar?: string | null;
9532
9717
  viewed_at?: string | null;
9533
9718
  volgnummer?: number | null;
9719
+ voorwaarden?: string | null;
9534
9720
  werkbon_id?: string | null;
9535
9721
  work_location_id?: string | null;
9536
9722
  };
@@ -9706,6 +9892,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9706
9892
  };
9707
9893
  leave_requests: {
9708
9894
  Row: {
9895
+ cancellation_requested_at: string | null;
9896
+ cancellation_status: string | null;
9709
9897
  created_at: string;
9710
9898
  decided_at: string | null;
9711
9899
  decided_by: string | null;
@@ -9716,6 +9904,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9716
9904
  leave_type: string;
9717
9905
  monteur_id: string | null;
9718
9906
  reason: string | null;
9907
+ reden_afkeur: string | null;
9719
9908
  start_date: string;
9720
9909
  start_time: string | null;
9721
9910
  status: string;
@@ -9723,6 +9912,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9723
9912
  user_id: string;
9724
9913
  };
9725
9914
  Insert: {
9915
+ cancellation_requested_at?: string | null;
9916
+ cancellation_status?: string | null;
9726
9917
  created_at?: string;
9727
9918
  decided_at?: string | null;
9728
9919
  decided_by?: string | null;
@@ -9733,6 +9924,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9733
9924
  leave_type?: string;
9734
9925
  monteur_id?: string | null;
9735
9926
  reason?: string | null;
9927
+ reden_afkeur?: string | null;
9736
9928
  start_date: string;
9737
9929
  start_time?: string | null;
9738
9930
  status?: string;
@@ -9740,6 +9932,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9740
9932
  user_id: string;
9741
9933
  };
9742
9934
  Update: {
9935
+ cancellation_requested_at?: string | null;
9936
+ cancellation_status?: string | null;
9743
9937
  created_at?: string;
9744
9938
  decided_at?: string | null;
9745
9939
  decided_by?: string | null;
@@ -9750,6 +9944,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
9750
9944
  leave_type?: string;
9751
9945
  monteur_id?: string | null;
9752
9946
  reason?: string | null;
9947
+ reden_afkeur?: string | null;
9753
9948
  start_date?: string;
9754
9949
  start_time?: string | null;
9755
9950
  status?: string;
@@ -10247,6 +10442,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
10247
10442
  };
10248
10443
  Relationships: [];
10249
10444
  };
10445
+ logistics_cart_barcode_archief: {
10446
+ Row: {
10447
+ barcode: string;
10448
+ cart_id: string;
10449
+ created_at: string | null;
10450
+ gearchiveerd_op: string;
10451
+ order_id: string | null;
10452
+ };
10453
+ Insert: {
10454
+ barcode: string;
10455
+ cart_id: string;
10456
+ created_at?: string | null;
10457
+ gearchiveerd_op?: string;
10458
+ order_id?: string | null;
10459
+ };
10460
+ Update: {
10461
+ barcode?: string;
10462
+ cart_id?: string;
10463
+ created_at?: string | null;
10464
+ gearchiveerd_op?: string;
10465
+ order_id?: string | null;
10466
+ };
10467
+ Relationships: [];
10468
+ };
10250
10469
  logistics_control_scan: {
10251
10470
  Row: {
10252
10471
  approved_at: string | null;
@@ -10892,6 +11111,54 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
10892
11111
  };
10893
11112
  Relationships: [];
10894
11113
  };
11114
+ logistics_order_finalize_queue: {
11115
+ Row: {
11116
+ attempts: number;
11117
+ claimed_at: string | null;
11118
+ created_at: string;
11119
+ finished_at: string | null;
11120
+ last_error: string | null;
11121
+ lease_until: string | null;
11122
+ max_attempts: number;
11123
+ next_attempt_at: string;
11124
+ order_id: string;
11125
+ reason: string | null;
11126
+ requested_at: string;
11127
+ status: string;
11128
+ updated_at: string;
11129
+ };
11130
+ Insert: {
11131
+ attempts?: number;
11132
+ claimed_at?: string | null;
11133
+ created_at?: string;
11134
+ finished_at?: string | null;
11135
+ last_error?: string | null;
11136
+ lease_until?: string | null;
11137
+ max_attempts?: number;
11138
+ next_attempt_at?: string;
11139
+ order_id: string;
11140
+ reason?: string | null;
11141
+ requested_at?: string;
11142
+ status?: string;
11143
+ updated_at?: string;
11144
+ };
11145
+ Update: {
11146
+ attempts?: number;
11147
+ claimed_at?: string | null;
11148
+ created_at?: string;
11149
+ finished_at?: string | null;
11150
+ last_error?: string | null;
11151
+ lease_until?: string | null;
11152
+ max_attempts?: number;
11153
+ next_attempt_at?: string;
11154
+ order_id?: string;
11155
+ reason?: string | null;
11156
+ requested_at?: string;
11157
+ status?: string;
11158
+ updated_at?: string;
11159
+ };
11160
+ Relationships: [];
11161
+ };
10895
11162
  logistics_order_merges: {
10896
11163
  Row: {
10897
11164
  group_key: string;
@@ -10928,6 +11195,72 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
10928
11195
  };
10929
11196
  Relationships: [];
10930
11197
  };
11198
+ logistics_packing_deviations: {
11199
+ Row: {
11200
+ auto_fixed_at: string | null;
11201
+ created_at: string;
11202
+ dev_key: string;
11203
+ first_seen_at: string;
11204
+ floriday_packing: import("../integrations/supabase/types").Json;
11205
+ human_reason: string | null;
11206
+ id: string;
11207
+ last_seen_at: string;
11208
+ local_packing: import("../integrations/supabase/types").Json;
11209
+ needs_human: boolean;
11210
+ order_id: string | null;
11211
+ order_item_id: string | null;
11212
+ order_number: string | null;
11213
+ product_id: string | null;
11214
+ product_name: string | null;
11215
+ resolved_at: string | null;
11216
+ scope: string;
11217
+ trade_item_id: string | null;
11218
+ updated_at: string;
11219
+ };
11220
+ Insert: {
11221
+ auto_fixed_at?: string | null;
11222
+ created_at?: string;
11223
+ dev_key: string;
11224
+ first_seen_at?: string;
11225
+ floriday_packing?: import("../integrations/supabase/types").Json;
11226
+ human_reason?: string | null;
11227
+ id?: string;
11228
+ last_seen_at?: string;
11229
+ local_packing?: import("../integrations/supabase/types").Json;
11230
+ needs_human?: boolean;
11231
+ order_id?: string | null;
11232
+ order_item_id?: string | null;
11233
+ order_number?: string | null;
11234
+ product_id?: string | null;
11235
+ product_name?: string | null;
11236
+ resolved_at?: string | null;
11237
+ scope: string;
11238
+ trade_item_id?: string | null;
11239
+ updated_at?: string;
11240
+ };
11241
+ Update: {
11242
+ auto_fixed_at?: string | null;
11243
+ created_at?: string;
11244
+ dev_key?: string;
11245
+ first_seen_at?: string;
11246
+ floriday_packing?: import("../integrations/supabase/types").Json;
11247
+ human_reason?: string | null;
11248
+ id?: string;
11249
+ last_seen_at?: string;
11250
+ local_packing?: import("../integrations/supabase/types").Json;
11251
+ needs_human?: boolean;
11252
+ order_id?: string | null;
11253
+ order_item_id?: string | null;
11254
+ order_number?: string | null;
11255
+ product_id?: string | null;
11256
+ product_name?: string | null;
11257
+ resolved_at?: string | null;
11258
+ scope?: string;
11259
+ trade_item_id?: string | null;
11260
+ updated_at?: string;
11261
+ };
11262
+ Relationships: [];
11263
+ };
10931
11264
  logistics_pick_data_requests: {
10932
11265
  Row: {
10933
11266
  actions: import("../integrations/supabase/types").Json;
@@ -11165,14 +11498,70 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11165
11498
  };
11166
11499
  Relationships: [];
11167
11500
  };
11501
+ logistics_planner_diff_runs: {
11502
+ Row: {
11503
+ after_snapshot: import("../integrations/supabase/types").Json | null;
11504
+ before_snapshot: import("../integrations/supabase/types").Json;
11505
+ buffer_id: string | null;
11506
+ carts_after: number | null;
11507
+ carts_before: number | null;
11508
+ compared_at: string | null;
11509
+ created_at: string;
11510
+ differences: import("../integrations/supabase/types").Json | null;
11511
+ id: string;
11512
+ identical: boolean | null;
11513
+ mode: string;
11514
+ order_id: string;
11515
+ order_ref: string | null;
11516
+ reason: string | null;
11517
+ status: string;
11518
+ };
11519
+ Insert: {
11520
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11521
+ before_snapshot?: import("../integrations/supabase/types").Json;
11522
+ buffer_id?: string | null;
11523
+ carts_after?: number | null;
11524
+ carts_before?: number | null;
11525
+ compared_at?: string | null;
11526
+ created_at?: string;
11527
+ differences?: import("../integrations/supabase/types").Json | null;
11528
+ id?: string;
11529
+ identical?: boolean | null;
11530
+ mode: string;
11531
+ order_id: string;
11532
+ order_ref?: string | null;
11533
+ reason?: string | null;
11534
+ status?: string;
11535
+ };
11536
+ Update: {
11537
+ after_snapshot?: import("../integrations/supabase/types").Json | null;
11538
+ before_snapshot?: import("../integrations/supabase/types").Json;
11539
+ buffer_id?: string | null;
11540
+ carts_after?: number | null;
11541
+ carts_before?: number | null;
11542
+ compared_at?: string | null;
11543
+ created_at?: string;
11544
+ differences?: import("../integrations/supabase/types").Json | null;
11545
+ id?: string;
11546
+ identical?: boolean | null;
11547
+ mode?: string;
11548
+ order_id?: string;
11549
+ order_ref?: string | null;
11550
+ reason?: string | null;
11551
+ status?: string;
11552
+ };
11553
+ Relationships: [];
11554
+ };
11168
11555
  logistics_rebuffer_state: {
11169
11556
  Row: {
11170
11557
  created_at: string;
11171
11558
  id: boolean;
11172
11559
  last_checked: number;
11173
11560
  last_duration_ms: number;
11561
+ last_mode: string | null;
11174
11562
  last_run_at: string | null;
11175
11563
  last_updated: number;
11564
+ last_would_change: number | null;
11176
11565
  pending: boolean;
11177
11566
  requested_at: string | null;
11178
11567
  updated_at: string;
@@ -11182,8 +11571,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11182
11571
  id?: boolean;
11183
11572
  last_checked?: number;
11184
11573
  last_duration_ms?: number;
11574
+ last_mode?: string | null;
11185
11575
  last_run_at?: string | null;
11186
11576
  last_updated?: number;
11577
+ last_would_change?: number | null;
11187
11578
  pending?: boolean;
11188
11579
  requested_at?: string | null;
11189
11580
  updated_at?: string;
@@ -11193,8 +11584,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
11193
11584
  id?: boolean;
11194
11585
  last_checked?: number;
11195
11586
  last_duration_ms?: number;
11587
+ last_mode?: string | null;
11196
11588
  last_run_at?: string | null;
11197
11589
  last_updated?: number;
11590
+ last_would_change?: number | null;
11198
11591
  pending?: boolean;
11199
11592
  requested_at?: string | null;
11200
11593
  updated_at?: string;
@@ -13190,6 +13583,42 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13190
13583
  };
13191
13584
  Relationships: [];
13192
13585
  };
13586
+ monteur_contracten: {
13587
+ Row: {
13588
+ contract_type: string;
13589
+ created_at: string;
13590
+ days_per_week: number;
13591
+ hours_per_week: number;
13592
+ id: string;
13593
+ updated_at: string;
13594
+ user_id: string;
13595
+ vacation_day_hours: number;
13596
+ vacation_days_per_year: number;
13597
+ };
13598
+ Insert: {
13599
+ contract_type?: string;
13600
+ created_at?: string;
13601
+ days_per_week?: number;
13602
+ hours_per_week?: number;
13603
+ id?: string;
13604
+ updated_at?: string;
13605
+ user_id: string;
13606
+ vacation_day_hours?: number;
13607
+ vacation_days_per_year?: number;
13608
+ };
13609
+ Update: {
13610
+ contract_type?: string;
13611
+ created_at?: string;
13612
+ days_per_week?: number;
13613
+ hours_per_week?: number;
13614
+ id?: string;
13615
+ updated_at?: string;
13616
+ user_id?: string;
13617
+ vacation_day_hours?: number;
13618
+ vacation_days_per_year?: number;
13619
+ };
13620
+ Relationships: [];
13621
+ };
13193
13622
  nmbrs_component_mapping: {
13194
13623
  Row: {
13195
13624
  created_at: string;
@@ -13669,6 +14098,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13669
14098
  id: string;
13670
14099
  items: import("../integrations/supabase/types").Json;
13671
14100
  notes: string | null;
14101
+ order_creation_error: string | null;
14102
+ order_creation_failed_at: string | null;
14103
+ order_id: string | null;
13672
14104
  order_number: string | null;
13673
14105
  recipient_id: string;
13674
14106
  total_amount: number;
@@ -13683,6 +14115,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13683
14115
  id?: string;
13684
14116
  items?: import("../integrations/supabase/types").Json;
13685
14117
  notes?: string | null;
14118
+ order_creation_error?: string | null;
14119
+ order_creation_failed_at?: string | null;
14120
+ order_id?: string | null;
13686
14121
  order_number?: string | null;
13687
14122
  recipient_id: string;
13688
14123
  total_amount?: number;
@@ -13697,6 +14132,9 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13697
14132
  id?: string;
13698
14133
  items?: import("../integrations/supabase/types").Json;
13699
14134
  notes?: string | null;
14135
+ order_creation_error?: string | null;
14136
+ order_creation_failed_at?: string | null;
14137
+ order_id?: string | null;
13700
14138
  order_number?: string | null;
13701
14139
  recipient_id?: string;
13702
14140
  total_amount?: number;
@@ -13714,10 +14152,16 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13714
14152
  referencedRelation: "customers";
13715
14153
  referencedColumns: ["id"];
13716
14154
  }, {
13717
- foreignKeyName: "offer_orders_recipient_id_fkey";
13718
- columns: ["recipient_id"];
14155
+ foreignKeyName: "offer_orders_order_id_fkey";
14156
+ columns: ["order_id"];
13719
14157
  isOneToOne: false;
13720
- referencedRelation: "offer_recipients";
14158
+ referencedRelation: "orders";
14159
+ referencedColumns: ["id"];
14160
+ }, {
14161
+ foreignKeyName: "offer_orders_recipient_id_fkey";
14162
+ columns: ["recipient_id"];
14163
+ isOneToOne: false;
14164
+ referencedRelation: "offer_recipients";
13721
14165
  referencedColumns: ["id"];
13722
14166
  }];
13723
14167
  };
@@ -13853,6 +14297,30 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
13853
14297
  };
13854
14298
  Relationships: [];
13855
14299
  };
14300
+ order_block_notifications: {
14301
+ Row: {
14302
+ id: string;
14303
+ notified_at: string;
14304
+ order_id: string;
14305
+ reason: string | null;
14306
+ reason_key: string;
14307
+ };
14308
+ Insert: {
14309
+ id?: string;
14310
+ notified_at?: string;
14311
+ order_id: string;
14312
+ reason?: string | null;
14313
+ reason_key: string;
14314
+ };
14315
+ Update: {
14316
+ id?: string;
14317
+ notified_at?: string;
14318
+ order_id?: string;
14319
+ reason?: string | null;
14320
+ reason_key?: string;
14321
+ };
14322
+ Relationships: [];
14323
+ };
13856
14324
  order_buffers: {
13857
14325
  Row: {
13858
14326
  buffer_key: string;
@@ -14284,6 +14752,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14284
14752
  next_attempt_at: string;
14285
14753
  order_id: string;
14286
14754
  processed_at: string | null;
14755
+ send_error: string | null;
14287
14756
  status: string;
14288
14757
  updated_at: string;
14289
14758
  };
@@ -14297,6 +14766,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14297
14766
  next_attempt_at?: string;
14298
14767
  order_id: string;
14299
14768
  processed_at?: string | null;
14769
+ send_error?: string | null;
14300
14770
  status?: string;
14301
14771
  updated_at?: string;
14302
14772
  };
@@ -14310,6 +14780,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14310
14780
  next_attempt_at?: string;
14311
14781
  order_id?: string;
14312
14782
  processed_at?: string | null;
14783
+ send_error?: string | null;
14313
14784
  status?: string;
14314
14785
  updated_at?: string;
14315
14786
  };
@@ -14322,10 +14793,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14322
14793
  id: string;
14323
14794
  layers_per_cart: number | null;
14324
14795
  order_id: string;
14796
+ packing_locked_at: string | null;
14797
+ packing_locked_by: string | null;
14325
14798
  plants_per_crate: number | null;
14326
14799
  product_id: string | null;
14327
14800
  product_name: string;
14328
14801
  quantity: number;
14802
+ source_line_key: string | null;
14329
14803
  unit: string;
14330
14804
  unit_price: number | null;
14331
14805
  };
@@ -14335,10 +14809,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14335
14809
  id?: string;
14336
14810
  layers_per_cart?: number | null;
14337
14811
  order_id: string;
14812
+ packing_locked_at?: string | null;
14813
+ packing_locked_by?: string | null;
14338
14814
  plants_per_crate?: number | null;
14339
14815
  product_id?: string | null;
14340
14816
  product_name: string;
14341
14817
  quantity?: number;
14818
+ source_line_key?: string | null;
14342
14819
  unit?: string;
14343
14820
  unit_price?: number | null;
14344
14821
  };
@@ -14348,10 +14825,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
14348
14825
  id?: string;
14349
14826
  layers_per_cart?: number | null;
14350
14827
  order_id?: string;
14828
+ packing_locked_at?: string | null;
14829
+ packing_locked_by?: string | null;
14351
14830
  plants_per_crate?: number | null;
14352
14831
  product_id?: string | null;
14353
14832
  product_name?: string;
14354
14833
  quantity?: number;
14834
+ source_line_key?: string | null;
14355
14835
  unit?: string;
14356
14836
  unit_price?: number | null;
14357
14837
  };
@@ -15639,18 +16119,24 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
15639
16119
  Row: {
15640
16120
  id: boolean;
15641
16121
  last_cleanup_at: string | null;
16122
+ last_error: string | null;
16123
+ last_error_at: string | null;
15642
16124
  last_sync_at: string | null;
15643
16125
  updated_at: string;
15644
16126
  };
15645
16127
  Insert: {
15646
16128
  id?: boolean;
15647
16129
  last_cleanup_at?: string | null;
16130
+ last_error?: string | null;
16131
+ last_error_at?: string | null;
15648
16132
  last_sync_at?: string | null;
15649
16133
  updated_at?: string;
15650
16134
  };
15651
16135
  Update: {
15652
16136
  id?: boolean;
15653
16137
  last_cleanup_at?: string | null;
16138
+ last_error?: string | null;
16139
+ last_error_at?: string | null;
15654
16140
  last_sync_at?: string | null;
15655
16141
  updated_at?: string;
15656
16142
  };
@@ -15776,6 +16262,54 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
15776
16262
  };
15777
16263
  Relationships: [];
15778
16264
  };
16265
+ planning_confirmation_log: {
16266
+ Row: {
16267
+ created_at: string;
16268
+ end_at: string;
16269
+ id: string;
16270
+ outbox_id: string | null;
16271
+ planning_item_id: string;
16272
+ reason: string | null;
16273
+ recipient: string | null;
16274
+ start_at: string;
16275
+ status: string;
16276
+ };
16277
+ Insert: {
16278
+ created_at?: string;
16279
+ end_at: string;
16280
+ id?: string;
16281
+ outbox_id?: string | null;
16282
+ planning_item_id: string;
16283
+ reason?: string | null;
16284
+ recipient?: string | null;
16285
+ start_at: string;
16286
+ status: string;
16287
+ };
16288
+ Update: {
16289
+ created_at?: string;
16290
+ end_at?: string;
16291
+ id?: string;
16292
+ outbox_id?: string | null;
16293
+ planning_item_id?: string;
16294
+ reason?: string | null;
16295
+ recipient?: string | null;
16296
+ start_at?: string;
16297
+ status?: string;
16298
+ };
16299
+ Relationships: [{
16300
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16301
+ columns: ["planning_item_id"];
16302
+ isOneToOne: false;
16303
+ referencedRelation: "planning_items";
16304
+ referencedColumns: ["id"];
16305
+ }, {
16306
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16307
+ columns: ["planning_item_id"];
16308
+ isOneToOne: false;
16309
+ referencedRelation: "planning_overview";
16310
+ referencedColumns: ["id"];
16311
+ }];
16312
+ };
15779
16313
  planning_item_assistants: {
15780
16314
  Row: {
15781
16315
  created_at: string;
@@ -15860,6 +16394,249 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
15860
16394
  referencedColumns: ["id"];
15861
16395
  }];
15862
16396
  };
16397
+ planning_mail_settings: {
16398
+ Row: {
16399
+ body_template: string;
16400
+ cc: string[];
16401
+ connection_id: string | null;
16402
+ created_at: string;
16403
+ enabled: boolean;
16404
+ id: boolean;
16405
+ reply_to: string | null;
16406
+ subject_template: string;
16407
+ timezone: string;
16408
+ updated_at: string;
16409
+ updated_by: string | null;
16410
+ };
16411
+ Insert: {
16412
+ body_template?: string;
16413
+ cc?: string[];
16414
+ connection_id?: string | null;
16415
+ created_at?: string;
16416
+ enabled?: boolean;
16417
+ id?: boolean;
16418
+ reply_to?: string | null;
16419
+ subject_template?: string;
16420
+ timezone?: string;
16421
+ updated_at?: string;
16422
+ updated_by?: string | null;
16423
+ };
16424
+ Update: {
16425
+ body_template?: string;
16426
+ cc?: string[];
16427
+ connection_id?: string | null;
16428
+ created_at?: string;
16429
+ enabled?: boolean;
16430
+ id?: boolean;
16431
+ reply_to?: string | null;
16432
+ subject_template?: string;
16433
+ timezone?: string;
16434
+ updated_at?: string;
16435
+ updated_by?: string | null;
16436
+ };
16437
+ Relationships: [{
16438
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16439
+ columns: ["connection_id"];
16440
+ isOneToOne: false;
16441
+ referencedRelation: "email_auth_connections";
16442
+ referencedColumns: ["id"];
16443
+ }, {
16444
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16445
+ columns: ["connection_id"];
16446
+ isOneToOne: false;
16447
+ referencedRelation: "email_auth_connections_safe";
16448
+ referencedColumns: ["id"];
16449
+ }];
16450
+ };
16451
+ planning_monteur_day_locations: {
16452
+ Row: {
16453
+ created_at: string;
16454
+ day: string;
16455
+ end_at: string;
16456
+ id: string;
16457
+ monteur_id: string;
16458
+ start_from: string;
16459
+ updated_at: string;
16460
+ };
16461
+ Insert: {
16462
+ created_at?: string;
16463
+ day: string;
16464
+ end_at?: string;
16465
+ id?: string;
16466
+ monteur_id: string;
16467
+ start_from?: string;
16468
+ updated_at?: string;
16469
+ };
16470
+ Update: {
16471
+ created_at?: string;
16472
+ day?: string;
16473
+ end_at?: string;
16474
+ id?: string;
16475
+ monteur_id?: string;
16476
+ start_from?: string;
16477
+ updated_at?: string;
16478
+ };
16479
+ Relationships: [];
16480
+ };
16481
+ planning_monteur_locations: {
16482
+ Row: {
16483
+ created_at: string;
16484
+ default_end: string;
16485
+ default_start: string;
16486
+ end_address: string | null;
16487
+ home_address: string | null;
16488
+ id: string;
16489
+ monteur_id: string;
16490
+ start_address: string | null;
16491
+ updated_at: string;
16492
+ };
16493
+ Insert: {
16494
+ created_at?: string;
16495
+ default_end?: string;
16496
+ default_start?: string;
16497
+ end_address?: string | null;
16498
+ home_address?: string | null;
16499
+ id?: string;
16500
+ monteur_id: string;
16501
+ start_address?: string | null;
16502
+ updated_at?: string;
16503
+ };
16504
+ Update: {
16505
+ created_at?: string;
16506
+ default_end?: string;
16507
+ default_start?: string;
16508
+ end_address?: string | null;
16509
+ home_address?: string | null;
16510
+ id?: string;
16511
+ monteur_id?: string;
16512
+ start_address?: string | null;
16513
+ updated_at?: string;
16514
+ };
16515
+ Relationships: [];
16516
+ };
16517
+ planning_settings: {
16518
+ Row: {
16519
+ company_address: string | null;
16520
+ created_at: string;
16521
+ id: string;
16522
+ singleton: boolean;
16523
+ updated_at: string;
16524
+ };
16525
+ Insert: {
16526
+ company_address?: string | null;
16527
+ created_at?: string;
16528
+ id?: string;
16529
+ singleton?: boolean;
16530
+ updated_at?: string;
16531
+ };
16532
+ Update: {
16533
+ company_address?: string | null;
16534
+ created_at?: string;
16535
+ id?: string;
16536
+ singleton?: boolean;
16537
+ updated_at?: string;
16538
+ };
16539
+ Relationships: [];
16540
+ };
16541
+ planning_travel_legs: {
16542
+ Row: {
16543
+ after_min: number;
16544
+ after_reason: string | null;
16545
+ after_status: string;
16546
+ after_to_address: string | null;
16547
+ before_from_address: string | null;
16548
+ before_min: number;
16549
+ before_reason: string | null;
16550
+ before_status: string;
16551
+ computed_at: string;
16552
+ computed_end_at: string | null;
16553
+ computed_start_at: string | null;
16554
+ created_at: string;
16555
+ id: string;
16556
+ monteur_id: string;
16557
+ planning_item_id: string;
16558
+ shared_after_item_id: string | null;
16559
+ shared_before_item_id: string | null;
16560
+ updated_at: string;
16561
+ };
16562
+ Insert: {
16563
+ after_min?: number;
16564
+ after_reason?: string | null;
16565
+ after_status?: string;
16566
+ after_to_address?: string | null;
16567
+ before_from_address?: string | null;
16568
+ before_min?: number;
16569
+ before_reason?: string | null;
16570
+ before_status?: string;
16571
+ computed_at?: string;
16572
+ computed_end_at?: string | null;
16573
+ computed_start_at?: string | null;
16574
+ created_at?: string;
16575
+ id?: string;
16576
+ monteur_id: string;
16577
+ planning_item_id: string;
16578
+ shared_after_item_id?: string | null;
16579
+ shared_before_item_id?: string | null;
16580
+ updated_at?: string;
16581
+ };
16582
+ Update: {
16583
+ after_min?: number;
16584
+ after_reason?: string | null;
16585
+ after_status?: string;
16586
+ after_to_address?: string | null;
16587
+ before_from_address?: string | null;
16588
+ before_min?: number;
16589
+ before_reason?: string | null;
16590
+ before_status?: string;
16591
+ computed_at?: string;
16592
+ computed_end_at?: string | null;
16593
+ computed_start_at?: string | null;
16594
+ created_at?: string;
16595
+ id?: string;
16596
+ monteur_id?: string;
16597
+ planning_item_id?: string;
16598
+ shared_after_item_id?: string | null;
16599
+ shared_before_item_id?: string | null;
16600
+ updated_at?: string;
16601
+ };
16602
+ Relationships: [{
16603
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16604
+ columns: ["planning_item_id"];
16605
+ isOneToOne: false;
16606
+ referencedRelation: "planning_items";
16607
+ referencedColumns: ["id"];
16608
+ }, {
16609
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16610
+ columns: ["planning_item_id"];
16611
+ isOneToOne: false;
16612
+ referencedRelation: "planning_overview";
16613
+ referencedColumns: ["id"];
16614
+ }, {
16615
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16616
+ columns: ["shared_after_item_id"];
16617
+ isOneToOne: false;
16618
+ referencedRelation: "planning_items";
16619
+ referencedColumns: ["id"];
16620
+ }, {
16621
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16622
+ columns: ["shared_after_item_id"];
16623
+ isOneToOne: false;
16624
+ referencedRelation: "planning_overview";
16625
+ referencedColumns: ["id"];
16626
+ }, {
16627
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16628
+ columns: ["shared_before_item_id"];
16629
+ isOneToOne: false;
16630
+ referencedRelation: "planning_items";
16631
+ referencedColumns: ["id"];
16632
+ }, {
16633
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16634
+ columns: ["shared_before_item_id"];
16635
+ isOneToOne: false;
16636
+ referencedRelation: "planning_overview";
16637
+ referencedColumns: ["id"];
16638
+ }];
16639
+ };
15863
16640
  price_list_rows: {
15864
16641
  Row: {
15865
16642
  action: string;
@@ -17032,6 +17809,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17032
17809
  };
17033
17810
  product_load_settings: {
17034
17811
  Row: {
17812
+ build: import("../integrations/supabase/types").Json | null;
17813
+ build_status: string;
17035
17814
  created_at: string;
17036
17815
  id: string;
17037
17816
  is_package: boolean;
@@ -17049,6 +17828,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17049
17828
  updated_at: string;
17050
17829
  };
17051
17830
  Insert: {
17831
+ build?: import("../integrations/supabase/types").Json | null;
17832
+ build_status?: string;
17052
17833
  created_at?: string;
17053
17834
  id?: string;
17054
17835
  is_package?: boolean;
@@ -17066,6 +17847,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17066
17847
  updated_at?: string;
17067
17848
  };
17068
17849
  Update: {
17850
+ build?: import("../integrations/supabase/types").Json | null;
17851
+ build_status?: string;
17069
17852
  created_at?: string;
17070
17853
  id?: string;
17071
17854
  is_package?: boolean;
@@ -17135,33 +17918,146 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17135
17918
  };
17136
17919
  Relationships: [];
17137
17920
  };
17138
- products: {
17921
+ product_suppliers: {
17139
17922
  Row: {
17140
- article_number: string | null;
17141
- barcode: string | null;
17142
- batch: string;
17143
- crates_per_layer: number;
17144
17923
  created_at: string;
17145
- custom_fields: import("../integrations/supabase/types").Json;
17146
- floriday_trade_item_id: string | null;
17147
- fust_type_id: string | null;
17148
17924
  id: string;
17149
- image_url: string | null;
17150
- incoming_quantity: number;
17151
- is_layer: boolean;
17152
- layers_per_cart: number;
17153
- location: string;
17154
- min_quantity: number;
17155
- plant_height_cm: number | null;
17156
- plants_per_crate: number;
17157
- product: string;
17158
- product_type: string;
17159
- purchase_price: number | null;
17160
- quantity: number;
17161
- sale_price: number | null;
17162
- trade_item_key: string | null;
17163
- unit: string;
17164
- updated_at: string;
17925
+ is_preferred: boolean;
17926
+ lead_time_days: number | null;
17927
+ min_order_quantity: number | null;
17928
+ notes: string | null;
17929
+ previous_price_cents: number | null;
17930
+ price_source: string;
17931
+ price_updated_at: string | null;
17932
+ product_id: string;
17933
+ purchase_price_cents: number | null;
17934
+ supplier_article_number: string | null;
17935
+ supplier_id: string;
17936
+ updated_at: string;
17937
+ };
17938
+ Insert: {
17939
+ created_at?: string;
17940
+ id?: string;
17941
+ is_preferred?: boolean;
17942
+ lead_time_days?: number | null;
17943
+ min_order_quantity?: number | null;
17944
+ notes?: string | null;
17945
+ previous_price_cents?: number | null;
17946
+ price_source?: string;
17947
+ price_updated_at?: string | null;
17948
+ product_id: string;
17949
+ purchase_price_cents?: number | null;
17950
+ supplier_article_number?: string | null;
17951
+ supplier_id: string;
17952
+ updated_at?: string;
17953
+ };
17954
+ Update: {
17955
+ created_at?: string;
17956
+ id?: string;
17957
+ is_preferred?: boolean;
17958
+ lead_time_days?: number | null;
17959
+ min_order_quantity?: number | null;
17960
+ notes?: string | null;
17961
+ previous_price_cents?: number | null;
17962
+ price_source?: string;
17963
+ price_updated_at?: string | null;
17964
+ product_id?: string;
17965
+ purchase_price_cents?: number | null;
17966
+ supplier_article_number?: string | null;
17967
+ supplier_id?: string;
17968
+ updated_at?: string;
17969
+ };
17970
+ Relationships: [{
17971
+ foreignKeyName: "product_suppliers_product_id_fkey";
17972
+ columns: ["product_id"];
17973
+ isOneToOne: false;
17974
+ referencedRelation: "logistics_product_dimensions";
17975
+ referencedColumns: ["product_id"];
17976
+ }, {
17977
+ foreignKeyName: "product_suppliers_product_id_fkey";
17978
+ columns: ["product_id"];
17979
+ isOneToOne: false;
17980
+ referencedRelation: "products";
17981
+ referencedColumns: ["id"];
17982
+ }, {
17983
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17984
+ columns: ["supplier_id"];
17985
+ isOneToOne: false;
17986
+ referencedRelation: "suppliers";
17987
+ referencedColumns: ["id"];
17988
+ }];
17989
+ };
17990
+ product_tray_stickers: {
17991
+ Row: {
17992
+ bestand_url: string;
17993
+ bestandsgrootte: number | null;
17994
+ bestandsnaam: string | null;
17995
+ bestandspad: string | null;
17996
+ created_at: string;
17997
+ product_id: string;
17998
+ updated_at: string;
17999
+ };
18000
+ Insert: {
18001
+ bestand_url: string;
18002
+ bestandsgrootte?: number | null;
18003
+ bestandsnaam?: string | null;
18004
+ bestandspad?: string | null;
18005
+ created_at?: string;
18006
+ product_id: string;
18007
+ updated_at?: string;
18008
+ };
18009
+ Update: {
18010
+ bestand_url?: string;
18011
+ bestandsgrootte?: number | null;
18012
+ bestandsnaam?: string | null;
18013
+ bestandspad?: string | null;
18014
+ created_at?: string;
18015
+ product_id?: string;
18016
+ updated_at?: string;
18017
+ };
18018
+ Relationships: [{
18019
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18020
+ columns: ["product_id"];
18021
+ isOneToOne: true;
18022
+ referencedRelation: "logistics_product_dimensions";
18023
+ referencedColumns: ["product_id"];
18024
+ }, {
18025
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18026
+ columns: ["product_id"];
18027
+ isOneToOne: true;
18028
+ referencedRelation: "products";
18029
+ referencedColumns: ["id"];
18030
+ }];
18031
+ };
18032
+ products: {
18033
+ Row: {
18034
+ article_number: string | null;
18035
+ barcode: string | null;
18036
+ batch: string;
18037
+ crates_per_layer: number;
18038
+ created_at: string;
18039
+ custom_fields: import("../integrations/supabase/types").Json;
18040
+ floriday_packing_confirmed_at: string | null;
18041
+ floriday_packing_source: string | null;
18042
+ floriday_trade_item_id: string | null;
18043
+ fust_type_id: string | null;
18044
+ id: string;
18045
+ image_url: string | null;
18046
+ incoming_quantity: number;
18047
+ is_layer: boolean;
18048
+ layers_per_cart: number;
18049
+ location: string;
18050
+ min_quantity: number;
18051
+ plant_height_cm: number | null;
18052
+ plants_per_crate: number;
18053
+ product: string;
18054
+ product_type: string;
18055
+ purchase_price: number | null;
18056
+ quantity: number;
18057
+ sale_price: number | null;
18058
+ trade_item_key: string | null;
18059
+ unit: string;
18060
+ updated_at: string;
17165
18061
  weight: string | null;
17166
18062
  };
17167
18063
  Insert: {
@@ -17171,6 +18067,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17171
18067
  crates_per_layer?: number;
17172
18068
  created_at?: string;
17173
18069
  custom_fields?: import("../integrations/supabase/types").Json;
18070
+ floriday_packing_confirmed_at?: string | null;
18071
+ floriday_packing_source?: string | null;
17174
18072
  floriday_trade_item_id?: string | null;
17175
18073
  fust_type_id?: string | null;
17176
18074
  id?: string;
@@ -17199,6 +18097,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17199
18097
  crates_per_layer?: number;
17200
18098
  created_at?: string;
17201
18099
  custom_fields?: import("../integrations/supabase/types").Json;
18100
+ floriday_packing_confirmed_at?: string | null;
18101
+ floriday_packing_source?: string | null;
17202
18102
  floriday_trade_item_id?: string | null;
17203
18103
  fust_type_id?: string | null;
17204
18104
  id?: string;
@@ -17298,6 +18198,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17298
18198
  id: string;
17299
18199
  is_superadmin: boolean;
17300
18200
  notification_preferences: import("../integrations/supabase/types").Json;
18201
+ phone: string | null;
17301
18202
  tenant_id: string | null;
17302
18203
  updated_at: string;
17303
18204
  };
@@ -17310,6 +18211,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17310
18211
  id: string;
17311
18212
  is_superadmin?: boolean;
17312
18213
  notification_preferences?: import("../integrations/supabase/types").Json;
18214
+ phone?: string | null;
17313
18215
  tenant_id?: string | null;
17314
18216
  updated_at?: string;
17315
18217
  };
@@ -17322,6 +18224,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17322
18224
  id?: string;
17323
18225
  is_superadmin?: boolean;
17324
18226
  notification_preferences?: import("../integrations/supabase/types").Json;
18227
+ phone?: string | null;
17325
18228
  tenant_id?: string | null;
17326
18229
  updated_at?: string;
17327
18230
  };
@@ -17588,9 +18491,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17588
18491
  purchase_order_items: {
17589
18492
  Row: {
17590
18493
  article_number: string | null;
18494
+ cancel_reason: string | null;
18495
+ cancelled_at: string | null;
17591
18496
  created_at: string;
17592
18497
  delivery_date: string | null;
17593
18498
  id: string;
18499
+ incoming_booked: number;
18500
+ line_status: string;
17594
18501
  name: string;
17595
18502
  note: string | null;
17596
18503
  pot_size: string | null;
@@ -17598,6 +18505,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17598
18505
  product_type: string;
17599
18506
  purchase_order_id: string;
17600
18507
  quantity: number;
18508
+ received_at: string | null;
18509
+ received_booked: number;
17601
18510
  supplier_id: string | null;
17602
18511
  supplier_product_id: string | null;
17603
18512
  unit_price_cents: number;
@@ -17605,9 +18514,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17605
18514
  };
17606
18515
  Insert: {
17607
18516
  article_number?: string | null;
18517
+ cancel_reason?: string | null;
18518
+ cancelled_at?: string | null;
17608
18519
  created_at?: string;
17609
18520
  delivery_date?: string | null;
17610
18521
  id?: string;
18522
+ incoming_booked?: number;
18523
+ line_status?: string;
17611
18524
  name?: string;
17612
18525
  note?: string | null;
17613
18526
  pot_size?: string | null;
@@ -17615,6 +18528,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17615
18528
  product_type?: string;
17616
18529
  purchase_order_id: string;
17617
18530
  quantity?: number;
18531
+ received_at?: string | null;
18532
+ received_booked?: number;
17618
18533
  supplier_id?: string | null;
17619
18534
  supplier_product_id?: string | null;
17620
18535
  unit_price_cents?: number;
@@ -17622,9 +18537,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17622
18537
  };
17623
18538
  Update: {
17624
18539
  article_number?: string | null;
18540
+ cancel_reason?: string | null;
18541
+ cancelled_at?: string | null;
17625
18542
  created_at?: string;
17626
18543
  delivery_date?: string | null;
17627
18544
  id?: string;
18545
+ incoming_booked?: number;
18546
+ line_status?: string;
17628
18547
  name?: string;
17629
18548
  note?: string | null;
17630
18549
  pot_size?: string | null;
@@ -17632,6 +18551,8 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17632
18551
  product_type?: string;
17633
18552
  purchase_order_id?: string;
17634
18553
  quantity?: number;
18554
+ received_at?: string | null;
18555
+ received_booked?: number;
17635
18556
  supplier_id?: string | null;
17636
18557
  supplier_product_id?: string | null;
17637
18558
  unit_price_cents?: number;
@@ -17735,6 +18656,153 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
17735
18656
  referencedColumns: ["id"];
17736
18657
  }];
17737
18658
  };
18659
+ purchase_request_events: {
18660
+ Row: {
18661
+ created_at: string;
18662
+ details: import("../integrations/supabase/types").Json | null;
18663
+ event_type: string;
18664
+ id: string;
18665
+ request_id: string;
18666
+ };
18667
+ Insert: {
18668
+ created_at?: string;
18669
+ details?: import("../integrations/supabase/types").Json | null;
18670
+ event_type: string;
18671
+ id?: string;
18672
+ request_id: string;
18673
+ };
18674
+ Update: {
18675
+ created_at?: string;
18676
+ details?: import("../integrations/supabase/types").Json | null;
18677
+ event_type?: string;
18678
+ id?: string;
18679
+ request_id?: string;
18680
+ };
18681
+ Relationships: [{
18682
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18683
+ columns: ["request_id"];
18684
+ isOneToOne: false;
18685
+ referencedRelation: "purchase_requests";
18686
+ referencedColumns: ["id"];
18687
+ }];
18688
+ };
18689
+ purchase_request_responses: {
18690
+ Row: {
18691
+ confirmed_date: string | null;
18692
+ confirmed_price_cents: number | null;
18693
+ confirmed_quantity: number;
18694
+ created_at: string;
18695
+ id: string;
18696
+ not_available: boolean;
18697
+ note: string | null;
18698
+ purchase_order_item_id: string;
18699
+ request_id: string;
18700
+ updated_at: string;
18701
+ };
18702
+ Insert: {
18703
+ confirmed_date?: string | null;
18704
+ confirmed_price_cents?: number | null;
18705
+ confirmed_quantity?: number;
18706
+ created_at?: string;
18707
+ id?: string;
18708
+ not_available?: boolean;
18709
+ note?: string | null;
18710
+ purchase_order_item_id: string;
18711
+ request_id: string;
18712
+ updated_at?: string;
18713
+ };
18714
+ Update: {
18715
+ confirmed_date?: string | null;
18716
+ confirmed_price_cents?: number | null;
18717
+ confirmed_quantity?: number;
18718
+ created_at?: string;
18719
+ id?: string;
18720
+ not_available?: boolean;
18721
+ note?: string | null;
18722
+ purchase_order_item_id?: string;
18723
+ request_id?: string;
18724
+ updated_at?: string;
18725
+ };
18726
+ Relationships: [{
18727
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18728
+ columns: ["purchase_order_item_id"];
18729
+ isOneToOne: false;
18730
+ referencedRelation: "purchase_order_items";
18731
+ referencedColumns: ["id"];
18732
+ }, {
18733
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18734
+ columns: ["request_id"];
18735
+ isOneToOne: false;
18736
+ referencedRelation: "purchase_requests";
18737
+ referencedColumns: ["id"];
18738
+ }];
18739
+ };
18740
+ purchase_requests: {
18741
+ Row: {
18742
+ created_at: string;
18743
+ expires_at: string;
18744
+ first_viewed_at: string | null;
18745
+ id: string;
18746
+ processed_at: string | null;
18747
+ purchase_order_id: string;
18748
+ responded_at: string | null;
18749
+ sent_at: string;
18750
+ status: string;
18751
+ supplier_id: string | null;
18752
+ supplier_name: string;
18753
+ supplier_note: string | null;
18754
+ to_address: string | null;
18755
+ token_hash: string;
18756
+ updated_at: string;
18757
+ };
18758
+ Insert: {
18759
+ created_at?: string;
18760
+ expires_at?: string;
18761
+ first_viewed_at?: string | null;
18762
+ id?: string;
18763
+ processed_at?: string | null;
18764
+ purchase_order_id: string;
18765
+ responded_at?: string | null;
18766
+ sent_at?: string;
18767
+ status?: string;
18768
+ supplier_id?: string | null;
18769
+ supplier_name?: string;
18770
+ supplier_note?: string | null;
18771
+ to_address?: string | null;
18772
+ token_hash: string;
18773
+ updated_at?: string;
18774
+ };
18775
+ Update: {
18776
+ created_at?: string;
18777
+ expires_at?: string;
18778
+ first_viewed_at?: string | null;
18779
+ id?: string;
18780
+ processed_at?: string | null;
18781
+ purchase_order_id?: string;
18782
+ responded_at?: string | null;
18783
+ sent_at?: string;
18784
+ status?: string;
18785
+ supplier_id?: string | null;
18786
+ supplier_name?: string;
18787
+ supplier_note?: string | null;
18788
+ to_address?: string | null;
18789
+ token_hash?: string;
18790
+ updated_at?: string;
18791
+ };
18792
+ Relationships: [{
18793
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18794
+ columns: ["purchase_order_id"];
18795
+ isOneToOne: false;
18796
+ referencedRelation: "purchase_orders";
18797
+ referencedColumns: ["id"];
18798
+ }, {
18799
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18800
+ columns: ["supplier_id"];
18801
+ isOneToOne: false;
18802
+ referencedRelation: "suppliers";
18803
+ referencedColumns: ["id"];
18804
+ }];
18805
+ };
17738
18806
  reception_notifications: {
17739
18807
  Row: {
17740
18808
  booking_id: string | null;
@@ -19065,40 +20133,52 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
19065
20133
  Row: {
19066
20134
  approved_at: string | null;
19067
20135
  approved_by: string | null;
20136
+ contract_hours: number;
19068
20137
  created_at: string;
19069
20138
  employee_id: string;
19070
20139
  id: string;
19071
20140
  locked: boolean;
20141
+ monteur_toelichting: string | null;
19072
20142
  notes: string | null;
20143
+ planned_hours: number;
19073
20144
  status: string;
19074
20145
  submitted_at: string | null;
19075
20146
  updated_at: string;
20147
+ variance_hours: number;
19076
20148
  week_start: string;
19077
20149
  };
19078
20150
  Insert: {
19079
20151
  approved_at?: string | null;
19080
20152
  approved_by?: string | null;
20153
+ contract_hours?: number;
19081
20154
  created_at?: string;
19082
20155
  employee_id: string;
19083
20156
  id?: string;
19084
20157
  locked?: boolean;
20158
+ monteur_toelichting?: string | null;
19085
20159
  notes?: string | null;
20160
+ planned_hours?: number;
19086
20161
  status?: string;
19087
20162
  submitted_at?: string | null;
19088
20163
  updated_at?: string;
20164
+ variance_hours?: number;
19089
20165
  week_start: string;
19090
20166
  };
19091
20167
  Update: {
19092
20168
  approved_at?: string | null;
19093
20169
  approved_by?: string | null;
20170
+ contract_hours?: number;
19094
20171
  created_at?: string;
19095
20172
  employee_id?: string;
19096
20173
  id?: string;
19097
20174
  locked?: boolean;
20175
+ monteur_toelichting?: string | null;
19098
20176
  notes?: string | null;
20177
+ planned_hours?: number;
19099
20178
  status?: string;
19100
20179
  submitted_at?: string | null;
19101
20180
  updated_at?: string;
20181
+ variance_hours?: number;
19102
20182
  week_start?: string;
19103
20183
  };
19104
20184
  Relationships: [{
@@ -19886,6 +20966,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
19886
20966
  auto_invoice_enabled: boolean;
19887
20967
  auto_invoice_start_date: string | null;
19888
20968
  auto_invoice_trigger_statuses: string[];
20969
+ auto_send_mode: string | null;
19889
20970
  created_at: string;
19890
20971
  debtor_gl_account: string;
19891
20972
  default_article_code: string | null;
@@ -19914,6 +20995,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
19914
20995
  auto_invoice_enabled?: boolean;
19915
20996
  auto_invoice_start_date?: string | null;
19916
20997
  auto_invoice_trigger_statuses?: string[];
20998
+ auto_send_mode?: string | null;
19917
20999
  created_at?: string;
19918
21000
  debtor_gl_account?: string;
19919
21001
  default_article_code?: string | null;
@@ -19942,6 +21024,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
19942
21024
  auto_invoice_enabled?: boolean;
19943
21025
  auto_invoice_start_date?: string | null;
19944
21026
  auto_invoice_trigger_statuses?: string[];
21027
+ auto_send_mode?: string | null;
19945
21028
  created_at?: string;
19946
21029
  debtor_gl_account?: string;
19947
21030
  default_article_code?: string | null;
@@ -20385,16 +21468,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20385
21468
  Row: {
20386
21469
  active_environment: string;
20387
21470
  id: number;
21471
+ public_base_url: string | null;
20388
21472
  updated_at: string;
20389
21473
  };
20390
21474
  Insert: {
20391
21475
  active_environment?: string;
20392
21476
  id?: number;
21477
+ public_base_url?: string | null;
20393
21478
  updated_at?: string;
20394
21479
  };
20395
21480
  Update: {
20396
21481
  active_environment?: string;
20397
21482
  id?: number;
21483
+ public_base_url?: string | null;
20398
21484
  updated_at?: string;
20399
21485
  };
20400
21486
  Relationships: [];
@@ -20432,6 +21518,45 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20432
21518
  referencedColumns: ["id"];
20433
21519
  }];
20434
21520
  };
21521
+ uren_beschikbare_dagen: {
21522
+ Row: {
21523
+ bron: string;
21524
+ created_at: string;
21525
+ datum: string;
21526
+ eind_tijd: string | null;
21527
+ half_hour_slots: number[];
21528
+ id: string;
21529
+ monteur_id: string;
21530
+ start_tijd: string | null;
21531
+ updated_at: string;
21532
+ uren: number;
21533
+ };
21534
+ Insert: {
21535
+ bron?: string;
21536
+ created_at?: string;
21537
+ datum: string;
21538
+ eind_tijd?: string | null;
21539
+ half_hour_slots?: number[];
21540
+ id?: string;
21541
+ monteur_id: string;
21542
+ start_tijd?: string | null;
21543
+ updated_at?: string;
21544
+ uren?: number;
21545
+ };
21546
+ Update: {
21547
+ bron?: string;
21548
+ created_at?: string;
21549
+ datum?: string;
21550
+ eind_tijd?: string | null;
21551
+ half_hour_slots?: number[];
21552
+ id?: string;
21553
+ monteur_id?: string;
21554
+ start_tijd?: string | null;
21555
+ updated_at?: string;
21556
+ uren?: number;
21557
+ };
21558
+ Relationships: [];
21559
+ };
20435
21560
  uren_cao_profiles: {
20436
21561
  Row: {
20437
21562
  break_minutes: number | null;
@@ -20570,26 +21695,155 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20570
21695
  };
20571
21696
  Relationships: [];
20572
21697
  };
20573
- uren_settings: {
21698
+ uren_maandafsluitingen: {
20574
21699
  Row: {
20575
- break_minutes: number;
21700
+ afgesloten_at: string | null;
21701
+ afgesloten_door: string | null;
21702
+ contract_minuten: number;
21703
+ correctie_reden: string | null;
20576
21704
  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;
21705
+ gecorrigeerd_at: string | null;
21706
+ gecorrigeerd_door: string | null;
21707
+ gewerkte_minuten: number;
21708
+ id: string;
21709
+ maand: string;
21710
+ min_minuten: number;
21711
+ monteur_id: string;
21712
+ netto_verschil_minuten: number;
21713
+ normaal_uitbetaald_minuten: number;
21714
+ omgezet_vakantie_minuten: number;
21715
+ overdracht_vorige_minuten: number;
21716
+ overuren_minuten: number;
21717
+ plus_minuten: number;
21718
+ rest_overuren_minuten: number;
21719
+ status: string;
21720
+ totaal_uitbetaald_minuten: number;
20583
21721
  updated_at: string;
20584
- weekly_threshold_hours: number;
20585
- workday_end: string;
20586
- workday_start: string;
21722
+ vakantie_uren_bijgeschreven: number;
20587
21723
  };
20588
21724
  Insert: {
20589
- break_minutes?: number;
21725
+ afgesloten_at?: string | null;
21726
+ afgesloten_door?: string | null;
21727
+ contract_minuten?: number;
21728
+ correctie_reden?: string | null;
20590
21729
  created_at?: string;
20591
- daily_threshold_hours?: number;
20592
- id?: boolean;
21730
+ gecorrigeerd_at?: string | null;
21731
+ gecorrigeerd_door?: string | null;
21732
+ gewerkte_minuten?: number;
21733
+ id?: string;
21734
+ maand: string;
21735
+ min_minuten?: number;
21736
+ monteur_id: string;
21737
+ netto_verschil_minuten?: number;
21738
+ normaal_uitbetaald_minuten?: number;
21739
+ omgezet_vakantie_minuten?: number;
21740
+ overdracht_vorige_minuten?: number;
21741
+ overuren_minuten?: number;
21742
+ plus_minuten?: number;
21743
+ rest_overuren_minuten?: number;
21744
+ status?: string;
21745
+ totaal_uitbetaald_minuten?: number;
21746
+ updated_at?: string;
21747
+ vakantie_uren_bijgeschreven?: number;
21748
+ };
21749
+ Update: {
21750
+ afgesloten_at?: string | null;
21751
+ afgesloten_door?: string | null;
21752
+ contract_minuten?: number;
21753
+ correctie_reden?: string | null;
21754
+ created_at?: string;
21755
+ gecorrigeerd_at?: string | null;
21756
+ gecorrigeerd_door?: string | null;
21757
+ gewerkte_minuten?: number;
21758
+ id?: string;
21759
+ maand?: string;
21760
+ min_minuten?: number;
21761
+ monteur_id?: string;
21762
+ netto_verschil_minuten?: number;
21763
+ normaal_uitbetaald_minuten?: number;
21764
+ omgezet_vakantie_minuten?: number;
21765
+ overdracht_vorige_minuten?: number;
21766
+ overuren_minuten?: number;
21767
+ plus_minuten?: number;
21768
+ rest_overuren_minuten?: number;
21769
+ status?: string;
21770
+ totaal_uitbetaald_minuten?: number;
21771
+ updated_at?: string;
21772
+ vakantie_uren_bijgeschreven?: number;
21773
+ };
21774
+ Relationships: [];
21775
+ };
21776
+ uren_overuren_verklaringen: {
21777
+ Row: {
21778
+ beoordeeld_door: string | null;
21779
+ beoordeeld_op: string | null;
21780
+ created_at: string;
21781
+ datum: string;
21782
+ eind_tijd: string | null;
21783
+ id: string;
21784
+ ingediend_at: string;
21785
+ monteur_id: string;
21786
+ overuren: number;
21787
+ reden_afkeur: string | null;
21788
+ start_tijd: string | null;
21789
+ status: string;
21790
+ toelichting: string;
21791
+ updated_at: string;
21792
+ };
21793
+ Insert: {
21794
+ beoordeeld_door?: string | null;
21795
+ beoordeeld_op?: string | null;
21796
+ created_at?: string;
21797
+ datum: string;
21798
+ eind_tijd?: string | null;
21799
+ id?: string;
21800
+ ingediend_at?: string;
21801
+ monteur_id: string;
21802
+ overuren: number;
21803
+ reden_afkeur?: string | null;
21804
+ start_tijd?: string | null;
21805
+ status?: string;
21806
+ toelichting: string;
21807
+ updated_at?: string;
21808
+ };
21809
+ Update: {
21810
+ beoordeeld_door?: string | null;
21811
+ beoordeeld_op?: string | null;
21812
+ created_at?: string;
21813
+ datum?: string;
21814
+ eind_tijd?: string | null;
21815
+ id?: string;
21816
+ ingediend_at?: string;
21817
+ monteur_id?: string;
21818
+ overuren?: number;
21819
+ reden_afkeur?: string | null;
21820
+ start_tijd?: string | null;
21821
+ status?: string;
21822
+ toelichting?: string;
21823
+ updated_at?: string;
21824
+ };
21825
+ Relationships: [];
21826
+ };
21827
+ uren_settings: {
21828
+ Row: {
21829
+ break_minutes: number;
21830
+ created_at: string;
21831
+ daily_threshold_hours: number;
21832
+ id: boolean;
21833
+ include_travel: boolean;
21834
+ min_occupancy_monteurs: number;
21835
+ ov02_percentage: number;
21836
+ ov03_percentage: number;
21837
+ updated_at: string;
21838
+ weekly_threshold_hours: number;
21839
+ workday_end: string;
21840
+ workday_start: string;
21841
+ };
21842
+ Insert: {
21843
+ break_minutes?: number;
21844
+ created_at?: string;
21845
+ daily_threshold_hours?: number;
21846
+ id?: boolean;
20593
21847
  include_travel?: boolean;
20594
21848
  min_occupancy_monteurs?: number;
20595
21849
  ov02_percentage?: number;
@@ -20615,6 +21869,75 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20615
21869
  };
20616
21870
  Relationships: [];
20617
21871
  };
21872
+ uren_standaardweek: {
21873
+ Row: {
21874
+ created_at: string;
21875
+ eind_slot: number;
21876
+ id: string;
21877
+ monteur_id: string;
21878
+ start_slot: number;
21879
+ updated_at: string;
21880
+ weekdag: number;
21881
+ };
21882
+ Insert: {
21883
+ created_at?: string;
21884
+ eind_slot: number;
21885
+ id?: string;
21886
+ monteur_id: string;
21887
+ start_slot: number;
21888
+ updated_at?: string;
21889
+ weekdag: number;
21890
+ };
21891
+ Update: {
21892
+ created_at?: string;
21893
+ eind_slot?: number;
21894
+ id?: string;
21895
+ monteur_id?: string;
21896
+ start_slot?: number;
21897
+ updated_at?: string;
21898
+ weekdag?: number;
21899
+ };
21900
+ Relationships: [];
21901
+ };
21902
+ uren_standaardweek_wijzigingen: {
21903
+ Row: {
21904
+ beoordeeld_door: string | null;
21905
+ beoordeeld_op: string | null;
21906
+ created_at: string;
21907
+ huidig: import("../integrations/supabase/types").Json;
21908
+ id: string;
21909
+ monteur_id: string;
21910
+ reden_afkeur: string | null;
21911
+ status: string;
21912
+ updated_at: string;
21913
+ voorstel: import("../integrations/supabase/types").Json;
21914
+ };
21915
+ Insert: {
21916
+ beoordeeld_door?: string | null;
21917
+ beoordeeld_op?: string | null;
21918
+ created_at?: string;
21919
+ huidig?: import("../integrations/supabase/types").Json;
21920
+ id?: string;
21921
+ monteur_id: string;
21922
+ reden_afkeur?: string | null;
21923
+ status?: string;
21924
+ updated_at?: string;
21925
+ voorstel: import("../integrations/supabase/types").Json;
21926
+ };
21927
+ Update: {
21928
+ beoordeeld_door?: string | null;
21929
+ beoordeeld_op?: string | null;
21930
+ created_at?: string;
21931
+ huidig?: import("../integrations/supabase/types").Json;
21932
+ id?: string;
21933
+ monteur_id?: string;
21934
+ reden_afkeur?: string | null;
21935
+ status?: string;
21936
+ updated_at?: string;
21937
+ voorstel?: import("../integrations/supabase/types").Json;
21938
+ };
21939
+ Relationships: [];
21940
+ };
20618
21941
  uren_tarieven: {
20619
21942
  Row: {
20620
21943
  created_at: string;
@@ -20699,6 +22022,39 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20699
22022
  };
20700
22023
  Relationships: [];
20701
22024
  };
22025
+ uren_tijd_spiegel: {
22026
+ Row: {
22027
+ created_at: string;
22028
+ id: string;
22029
+ time_log_id: string;
22030
+ werkbon_time_log_id: string;
22031
+ };
22032
+ Insert: {
22033
+ created_at?: string;
22034
+ id?: string;
22035
+ time_log_id: string;
22036
+ werkbon_time_log_id: string;
22037
+ };
22038
+ Update: {
22039
+ created_at?: string;
22040
+ id?: string;
22041
+ time_log_id?: string;
22042
+ werkbon_time_log_id?: string;
22043
+ };
22044
+ Relationships: [{
22045
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22046
+ columns: ["time_log_id"];
22047
+ isOneToOne: true;
22048
+ referencedRelation: "time_logs";
22049
+ referencedColumns: ["id"];
22050
+ }, {
22051
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22052
+ columns: ["werkbon_time_log_id"];
22053
+ isOneToOne: true;
22054
+ referencedRelation: "werkbon_time_logs";
22055
+ referencedColumns: ["id"];
22056
+ }];
22057
+ };
20702
22058
  uren_weekstaten: {
20703
22059
  Row: {
20704
22060
  approved_at: string | null;
@@ -20741,6 +22097,33 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20741
22097
  };
20742
22098
  Relationships: [];
20743
22099
  };
22100
+ uren_werktijd_voorkeuren: {
22101
+ Row: {
22102
+ created_at: string;
22103
+ eind_slot: number;
22104
+ id: string;
22105
+ monteur_id: string;
22106
+ start_slot: number;
22107
+ updated_at: string;
22108
+ };
22109
+ Insert: {
22110
+ created_at?: string;
22111
+ eind_slot?: number;
22112
+ id?: string;
22113
+ monteur_id: string;
22114
+ start_slot?: number;
22115
+ updated_at?: string;
22116
+ };
22117
+ Update: {
22118
+ created_at?: string;
22119
+ eind_slot?: number;
22120
+ id?: string;
22121
+ monteur_id?: string;
22122
+ start_slot?: number;
22123
+ updated_at?: string;
22124
+ };
22125
+ Relationships: [];
22126
+ };
20744
22127
  user_module_permissions: {
20745
22128
  Row: {
20746
22129
  created_at: string;
@@ -20798,6 +22181,51 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
20798
22181
  referencedColumns: ["id"];
20799
22182
  }];
20800
22183
  };
22184
+ vakantie_uitbetalingen: {
22185
+ Row: {
22186
+ created_at: string;
22187
+ created_by: string | null;
22188
+ days: number;
22189
+ id: string;
22190
+ note: string | null;
22191
+ updated_at: string;
22192
+ user_id: string;
22193
+ year: number;
22194
+ };
22195
+ Insert: {
22196
+ created_at?: string;
22197
+ created_by?: string | null;
22198
+ days: number;
22199
+ id?: string;
22200
+ note?: string | null;
22201
+ updated_at?: string;
22202
+ user_id: string;
22203
+ year?: number;
22204
+ };
22205
+ Update: {
22206
+ created_at?: string;
22207
+ created_by?: string | null;
22208
+ days?: number;
22209
+ id?: string;
22210
+ note?: string | null;
22211
+ updated_at?: string;
22212
+ user_id?: string;
22213
+ year?: number;
22214
+ };
22215
+ Relationships: [{
22216
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22217
+ columns: ["created_by"];
22218
+ isOneToOne: false;
22219
+ referencedRelation: "profiles";
22220
+ referencedColumns: ["id"];
22221
+ }, {
22222
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22223
+ columns: ["user_id"];
22224
+ isOneToOne: false;
22225
+ referencedRelation: "profiles";
22226
+ referencedColumns: ["id"];
22227
+ }];
22228
+ };
20801
22229
  van_inventories: {
20802
22230
  Row: {
20803
22231
  barcode: string | null;
@@ -21672,10 +23100,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21672
23100
  Row: {
21673
23101
  article_number: string | null;
21674
23102
  artikel_id: string | null;
23103
+ cost_price_cents: number;
21675
23104
  created_at: string;
21676
23105
  gtin: string | null;
21677
23106
  id: string;
21678
23107
  manufacturer: string | null;
23108
+ margin_percent: number | null;
21679
23109
  omschrijving: string;
21680
23110
  package_id: string;
21681
23111
  price_synced_at: string | null;
@@ -21690,10 +23120,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21690
23120
  Insert: {
21691
23121
  article_number?: string | null;
21692
23122
  artikel_id?: string | null;
23123
+ cost_price_cents?: number;
21693
23124
  created_at?: string;
21694
23125
  gtin?: string | null;
21695
23126
  id?: string;
21696
23127
  manufacturer?: string | null;
23128
+ margin_percent?: number | null;
21697
23129
  omschrijving: string;
21698
23130
  package_id: string;
21699
23131
  price_synced_at?: string | null;
@@ -21708,10 +23140,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21708
23140
  Update: {
21709
23141
  article_number?: string | null;
21710
23142
  artikel_id?: string | null;
23143
+ cost_price_cents?: number;
21711
23144
  created_at?: string;
21712
23145
  gtin?: string | null;
21713
23146
  id?: string;
21714
23147
  manufacturer?: string | null;
23148
+ margin_percent?: number | null;
21715
23149
  omschrijving?: string;
21716
23150
  package_id?: string;
21717
23151
  price_synced_at?: string | null;
@@ -21794,7 +23228,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21794
23228
  created_at: string;
21795
23229
  default_quantity: number;
21796
23230
  description: string | null;
21797
- duration_minutes: number | null;
23231
+ duration_minutes: number;
21798
23232
  id: string;
21799
23233
  mandaat_type: string | null;
21800
23234
  name: string;
@@ -21811,7 +23245,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21811
23245
  created_at?: string;
21812
23246
  default_quantity?: number;
21813
23247
  description?: string | null;
21814
- duration_minutes?: number | null;
23248
+ duration_minutes?: number;
21815
23249
  id?: string;
21816
23250
  mandaat_type?: string | null;
21817
23251
  name: string;
@@ -21828,7 +23262,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
21828
23262
  created_at?: string;
21829
23263
  default_quantity?: number;
21830
23264
  description?: string | null;
21831
- duration_minutes?: number | null;
23265
+ duration_minutes?: number;
21832
23266
  id?: string;
21833
23267
  mandaat_type?: string | null;
21834
23268
  name?: string;
@@ -22076,6 +23510,78 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
22076
23510
  referencedColumns: ["id"];
22077
23511
  }];
22078
23512
  };
23513
+ werkbon_voorstellen: {
23514
+ Row: {
23515
+ bron_werkbon_id: string;
23516
+ budget_mandate_cents: number;
23517
+ created_at: string;
23518
+ created_by: string;
23519
+ customer_id: string | null;
23520
+ id: string;
23521
+ payload: import("../integrations/supabase/types").Json;
23522
+ reden: string | null;
23523
+ status: string;
23524
+ updated_at: string;
23525
+ verwerkt_door: string | null;
23526
+ verwerkt_op: string | null;
23527
+ werkbon_id: string | null;
23528
+ };
23529
+ Insert: {
23530
+ bron_werkbon_id: string;
23531
+ budget_mandate_cents?: number;
23532
+ created_at?: string;
23533
+ created_by?: string;
23534
+ customer_id?: string | null;
23535
+ id?: string;
23536
+ payload?: import("../integrations/supabase/types").Json;
23537
+ reden?: string | null;
23538
+ status?: string;
23539
+ updated_at?: string;
23540
+ verwerkt_door?: string | null;
23541
+ verwerkt_op?: string | null;
23542
+ werkbon_id?: string | null;
23543
+ };
23544
+ Update: {
23545
+ bron_werkbon_id?: string;
23546
+ budget_mandate_cents?: number;
23547
+ created_at?: string;
23548
+ created_by?: string;
23549
+ customer_id?: string | null;
23550
+ id?: string;
23551
+ payload?: import("../integrations/supabase/types").Json;
23552
+ reden?: string | null;
23553
+ status?: string;
23554
+ updated_at?: string;
23555
+ verwerkt_door?: string | null;
23556
+ verwerkt_op?: string | null;
23557
+ werkbon_id?: string | null;
23558
+ };
23559
+ Relationships: [{
23560
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23561
+ columns: ["bron_werkbon_id"];
23562
+ isOneToOne: false;
23563
+ referencedRelation: "werkbonnen";
23564
+ referencedColumns: ["id"];
23565
+ }, {
23566
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23567
+ columns: ["bron_werkbon_id"];
23568
+ isOneToOne: false;
23569
+ referencedRelation: "wo_overview";
23570
+ referencedColumns: ["id"];
23571
+ }, {
23572
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23573
+ columns: ["werkbon_id"];
23574
+ isOneToOne: false;
23575
+ referencedRelation: "werkbonnen";
23576
+ referencedColumns: ["id"];
23577
+ }, {
23578
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23579
+ columns: ["werkbon_id"];
23580
+ isOneToOne: false;
23581
+ referencedRelation: "wo_overview";
23582
+ referencedColumns: ["id"];
23583
+ }];
23584
+ };
22079
23585
  werkbonnen: {
22080
23586
  Row: {
22081
23587
  assigned_user_id: string | null;
@@ -22683,6 +24189,21 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
22683
24189
  };
22684
24190
  Relationships: [];
22685
24191
  };
24192
+ logistics_packing_diff: {
24193
+ Row: {
24194
+ dev_key: string | null;
24195
+ floriday_packing: import("../integrations/supabase/types").Json | null;
24196
+ local_packing: import("../integrations/supabase/types").Json | null;
24197
+ order_id: string | null;
24198
+ order_item_id: string | null;
24199
+ order_number: string | null;
24200
+ product_id: string | null;
24201
+ product_name: string | null;
24202
+ scope: string | null;
24203
+ trade_item_id: string | null;
24204
+ };
24205
+ Relationships: [];
24206
+ };
22686
24207
  logistics_product_dimensions: {
22687
24208
  Row: {
22688
24209
  dimension_source: string | null;
@@ -23301,6 +24822,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
23301
24822
  };
23302
24823
  Returns: undefined;
23303
24824
  };
24825
+ _wo_is_planner: {
24826
+ Args: never;
24827
+ Returns: boolean;
24828
+ };
23304
24829
  afh_city_code: {
23305
24830
  Args: {
23306
24831
  _city: string;
@@ -23911,10 +25436,32 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
23911
25436
  };
23912
25437
  Returns: number;
23913
25438
  };
23914
- count_distinct_regulatory_products: {
25439
+ control_mark_carts_delivered_detail: {
25440
+ Args: {
25441
+ p_carts: import("../integrations/supabase/types").Json;
25442
+ };
25443
+ Returns: {
25444
+ cart_index: number;
25445
+ frozen: boolean;
25446
+ message: string;
25447
+ order_id: string;
25448
+ order_source: string;
25449
+ outcome: string;
25450
+ }[];
25451
+ };
25452
+ count_distinct_regulatory_products: {
23915
25453
  Args: never;
23916
25454
  Returns: number;
23917
25455
  };
25456
+ create_order_from_public_offer: {
25457
+ Args: {
25458
+ p_carrier_id?: string;
25459
+ p_delivery_date?: string;
25460
+ p_delivery_garden_id?: string;
25461
+ p_offer_order_id: string;
25462
+ };
25463
+ Returns: import("../integrations/supabase/types").Json;
25464
+ };
23918
25465
  current_monteur_id: {
23919
25466
  Args: never;
23920
25467
  Returns: string;
@@ -24391,6 +25938,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24391
25938
  };
24392
25939
  Returns: number;
24393
25940
  };
25941
+ get_product_stock: {
25942
+ Args: {
25943
+ p_product_id: string;
25944
+ };
25945
+ Returns: {
25946
+ connection_id: string;
25947
+ incoming_stock: number;
25948
+ minimum_stock: number;
25949
+ notes: string;
25950
+ physical_stock: number;
25951
+ product_id: string;
25952
+ reserved_stock: number;
25953
+ trade_item_key: string;
25954
+ updated_at: string;
25955
+ }[];
25956
+ };
24394
25957
  get_room_busy_windows: {
24395
25958
  Args: {
24396
25959
  p_from: string;
@@ -24695,13 +26258,66 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24695
26258
  };
24696
26259
  Returns: import("../integrations/supabase/types").Json;
24697
26260
  };
26261
+ inkoop_cancel_line: {
26262
+ Args: {
26263
+ _item_id: string;
26264
+ _reason: string;
26265
+ };
26266
+ Returns: string;
26267
+ };
26268
+ inkoop_get_supplier_request: {
26269
+ Args: {
26270
+ _token: string;
26271
+ };
26272
+ Returns: import("../integrations/supabase/types").Json;
26273
+ };
26274
+ inkoop_hash_token: {
26275
+ Args: {
26276
+ _token: string;
26277
+ };
26278
+ Returns: string;
26279
+ };
26280
+ inkoop_html_escape: {
26281
+ Args: {
26282
+ _t: string;
26283
+ };
26284
+ Returns: string;
26285
+ };
26286
+ inkoop_list_artikelen: {
26287
+ Args: never;
26288
+ Returns: {
26289
+ article_number: string;
26290
+ barcode: string;
26291
+ id: string;
26292
+ incoming_quantity: number;
26293
+ is_layer: boolean;
26294
+ location: string;
26295
+ min_quantity: number;
26296
+ preferred_supplier_name: string;
26297
+ product: string;
26298
+ product_type: string;
26299
+ purchase_price: number;
26300
+ quantity: number;
26301
+ sale_price: number;
26302
+ supplier_count: number;
26303
+ unit: string;
26304
+ }[];
26305
+ };
24698
26306
  inkoop_next_order_number: {
24699
26307
  Args: never;
24700
26308
  Returns: string;
24701
26309
  };
26310
+ inkoop_process_request: {
26311
+ Args: {
26312
+ _request_id: string;
26313
+ };
26314
+ Returns: undefined;
26315
+ };
24702
26316
  inkoop_send_order: {
24703
26317
  Args: {
26318
+ _base_url?: string;
24704
26319
  _order_id: string;
26320
+ _resend?: boolean;
24705
26321
  };
24706
26322
  Returns: {
24707
26323
  outbox_id: string;
@@ -24709,6 +26325,33 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24709
26325
  to_address: string;
24710
26326
  }[];
24711
26327
  };
26328
+ inkoop_set_preferred_supplier: {
26329
+ Args: {
26330
+ _product_id: string;
26331
+ _supplier_id: string;
26332
+ };
26333
+ Returns: undefined;
26334
+ };
26335
+ inkoop_stock_key: {
26336
+ Args: {
26337
+ p_product_id: string;
26338
+ };
26339
+ Returns: string;
26340
+ };
26341
+ inkoop_submit_supplier_response: {
26342
+ Args: {
26343
+ _lines: import("../integrations/supabase/types").Json;
26344
+ _note?: string;
26345
+ _token: string;
26346
+ };
26347
+ Returns: import("../integrations/supabase/types").Json;
26348
+ };
26349
+ inkoop_sync_item_stock: {
26350
+ Args: {
26351
+ p_item_id: string;
26352
+ };
26353
+ Returns: undefined;
26354
+ };
24712
26355
  instructie_get: {
24713
26356
  Args: {
24714
26357
  _sleutel: string;
@@ -24728,6 +26371,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24728
26371
  };
24729
26372
  Returns: number;
24730
26373
  };
26374
+ invoice_branding_snapshot: {
26375
+ Args: never;
26376
+ Returns: import("../integrations/supabase/types").Json;
26377
+ };
24731
26378
  invoice_create_from_source: {
24732
26379
  Args: {
24733
26380
  _payload?: import("../integrations/supabase/types").Json;
@@ -24762,12 +26409,41 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24762
26409
  };
24763
26410
  Returns: import("../integrations/supabase/types").Json;
24764
26411
  };
26412
+ invoice_mark_sent: {
26413
+ Args: {
26414
+ _invoice_id: string;
26415
+ _to: string;
26416
+ };
26417
+ Returns: undefined;
26418
+ };
26419
+ invoice_peek_next_number: {
26420
+ Args: never;
26421
+ Returns: string;
26422
+ };
26423
+ invoice_ready_work_orders: {
26424
+ Args: {
26425
+ _limit?: number;
26426
+ };
26427
+ Returns: import("../integrations/supabase/types").Json;
26428
+ };
24765
26429
  invoice_recalc_totals: {
24766
26430
  Args: {
24767
26431
  _invoice_id: string;
24768
26432
  };
24769
26433
  Returns: import("../integrations/supabase/types").Json;
24770
26434
  };
26435
+ invoice_save_branding_settings: {
26436
+ Args: {
26437
+ _payload: import("../integrations/supabase/types").Json;
26438
+ };
26439
+ Returns: import("../integrations/supabase/types").Json;
26440
+ };
26441
+ invoice_set_email_purpose: {
26442
+ Args: {
26443
+ _purpose: string;
26444
+ };
26445
+ Returns: string;
26446
+ };
24771
26447
  invoice_source_lines: {
24772
26448
  Args: {
24773
26449
  _source_id: string;
@@ -24775,6 +26451,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24775
26451
  };
24776
26452
  Returns: import("../integrations/supabase/types").Json;
24777
26453
  };
26454
+ invoice_update_full: {
26455
+ Args: {
26456
+ _invoice_id: string;
26457
+ _payload: import("../integrations/supabase/types").Json;
26458
+ };
26459
+ Returns: import("../integrations/supabase/types").Json;
26460
+ };
26461
+ invoice_work_order_locked: {
26462
+ Args: {
26463
+ _werkbon_id: string;
26464
+ };
26465
+ Returns: import("../integrations/supabase/types").Json;
26466
+ };
24778
26467
  is_authenticated: {
24779
26468
  Args: never;
24780
26469
  Returns: boolean;
@@ -24823,6 +26512,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
24823
26512
  };
24824
26513
  Returns: boolean;
24825
26514
  };
26515
+ layout_print_document: {
26516
+ Args: {
26517
+ _documentnaam: string;
26518
+ _documenttype: string;
26519
+ _herkomst?: string;
26520
+ _idempotentie_sleutel?: string;
26521
+ _is_herprint?: boolean;
26522
+ _kopieen?: number;
26523
+ _layout_id?: string;
26524
+ _payload?: import("../integrations/supabase/types").Json;
26525
+ _pdf_base64?: string;
26526
+ _pdf_url?: string;
26527
+ _print_plek_id?: string;
26528
+ _werkplek?: string;
26529
+ };
26530
+ Returns: {
26531
+ bestaand: boolean;
26532
+ job_id: string;
26533
+ printer_id: string;
26534
+ }[];
26535
+ };
24826
26536
  list_medewerkers: {
24827
26537
  Args: never;
24828
26538
  Returns: {
@@ -25007,6 +26717,14 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25007
26717
  };
25008
26718
  Returns: import("../integrations/supabase/types").Json;
25009
26719
  };
26720
+ logistics_buffer_decision_for_settings: {
26721
+ Args: {
26722
+ p_order: import("../integrations/supabase/types").Json;
26723
+ p_settings: import("../integrations/supabase/types").Json;
26724
+ p_user_id?: string;
26725
+ };
26726
+ Returns: import("../integrations/supabase/types").Json;
26727
+ };
25010
26728
  logistics_buffer_detach_late_orders: {
25011
26729
  Args: {
25012
26730
  p_buffer?: string;
@@ -25040,6 +26758,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25040
26758
  };
25041
26759
  Returns: string;
25042
26760
  };
26761
+ logistics_buffer_payload: {
26762
+ Args: {
26763
+ p_order_id: string;
26764
+ };
26765
+ Returns: import("../integrations/supabase/types").Json;
26766
+ };
25043
26767
  logistics_buffer_simulate: {
25044
26768
  Args: {
25045
26769
  p_orders?: import("../integrations/supabase/types").Json;
@@ -25086,6 +26810,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25086
26810
  };
25087
26811
  Returns: number;
25088
26812
  };
26813
+ logistics_cart_barcode_opschonen: {
26814
+ Args: {
26815
+ p_portie?: number;
26816
+ };
26817
+ Returns: import("../integrations/supabase/types").Json;
26818
+ };
25089
26819
  logistics_cart_barcode_value: {
25090
26820
  Args: {
25091
26821
  _cart_id: string;
@@ -25098,6 +26828,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25098
26828
  };
25099
26829
  Returns: string;
25100
26830
  };
26831
+ logistics_cart_coverage_check: {
26832
+ Args: never;
26833
+ Returns: import("../integrations/supabase/types").Json;
26834
+ };
25101
26835
  logistics_cart_handled: {
25102
26836
  Args: {
25103
26837
  p_cart_index: number;
@@ -25341,6 +27075,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25341
27075
  isSetofReturn: false;
25342
27076
  };
25343
27077
  };
27078
+ logistics_cleanup_duplicate_order_lines: {
27079
+ Args: {
27080
+ p_limit?: number;
27081
+ p_order_id: string;
27082
+ };
27083
+ Returns: import("../integrations/supabase/types").Json;
27084
+ };
27085
+ logistics_cleanup_history: {
27086
+ Args: {
27087
+ p_limit?: number;
27088
+ };
27089
+ Returns: import("../integrations/supabase/types").Json;
27090
+ };
25344
27091
  logistics_cleanup_orphan_print_jobs: {
25345
27092
  Args: never;
25346
27093
  Returns: import("../integrations/supabase/types").Json;
@@ -25488,6 +27235,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25488
27235
  };
25489
27236
  Returns: import("../integrations/supabase/types").Json;
25490
27237
  };
27238
+ logistics_control_scan_print_own: {
27239
+ Args: {
27240
+ p_is_herprint?: boolean;
27241
+ p_scan_id: string;
27242
+ };
27243
+ Returns: import("../integrations/supabase/types").Json;
27244
+ };
25491
27245
  logistics_control_scan_retry: {
25492
27246
  Args: {
25493
27247
  _id: string;
@@ -25498,6 +27252,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25498
27252
  Args: never;
25499
27253
  Returns: import("../integrations/supabase/types").Json;
25500
27254
  };
27255
+ logistics_cron_health: {
27256
+ Args: never;
27257
+ Returns: import("../integrations/supabase/types").Json;
27258
+ };
25501
27259
  logistics_day_windows: {
25502
27260
  Args: {
25503
27261
  p_day: string;
@@ -25847,6 +27605,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25847
27605
  };
25848
27606
  Returns: number;
25849
27607
  };
27608
+ logistics_merge_decision: {
27609
+ Args: {
27610
+ p_lines: import("../integrations/supabase/types").Json;
27611
+ };
27612
+ Returns: import("../integrations/supabase/types").Json;
27613
+ };
25850
27614
  logistics_merge_floriday_lines: {
25851
27615
  Args: {
25852
27616
  p_order_id: string;
@@ -25893,6 +27657,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25893
27657
  Args: never;
25894
27658
  Returns: string;
25895
27659
  };
27660
+ logistics_order_backlog_info: {
27661
+ Args: {
27662
+ p_order_id: string;
27663
+ };
27664
+ Returns: import("../integrations/supabase/types").Json;
27665
+ };
25896
27666
  logistics_order_cart_approval: {
25897
27667
  Args: {
25898
27668
  _order_ref: string;
@@ -25927,6 +27697,50 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25927
27697
  };
25928
27698
  Returns: boolean;
25929
27699
  };
27700
+ logistics_order_finalize_enqueue: {
27701
+ Args: {
27702
+ p_order_id: string;
27703
+ p_reason?: string;
27704
+ };
27705
+ Returns: undefined;
27706
+ };
27707
+ logistics_order_finalize_overview: {
27708
+ Args: never;
27709
+ Returns: {
27710
+ bezig: number;
27711
+ laatst_afgerond: string;
27712
+ laatste_fout: string;
27713
+ mislukt: number;
27714
+ oudste_wachttijd_seconden: number;
27715
+ wachtend: number;
27716
+ }[];
27717
+ };
27718
+ logistics_order_finalize_prune: {
27719
+ Args: {
27720
+ p_days?: number;
27721
+ };
27722
+ Returns: number;
27723
+ };
27724
+ logistics_order_finalize_reconcile: {
27725
+ Args: {
27726
+ p_days?: number;
27727
+ p_limit?: number;
27728
+ };
27729
+ Returns: number;
27730
+ };
27731
+ logistics_order_finalize_retry: {
27732
+ Args: {
27733
+ p_order_id: string;
27734
+ };
27735
+ Returns: boolean;
27736
+ };
27737
+ logistics_order_finalize_run: {
27738
+ Args: {
27739
+ p_lease_seconds?: number;
27740
+ p_limit?: number;
27741
+ };
27742
+ Returns: number;
27743
+ };
25930
27744
  logistics_order_frozen: {
25931
27745
  Args: {
25932
27746
  p_order_id: string;
@@ -25939,6 +27753,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25939
27753
  };
25940
27754
  Returns: boolean;
25941
27755
  };
27756
+ logistics_order_is_backlog: {
27757
+ Args: {
27758
+ p_order_id: string;
27759
+ };
27760
+ Returns: boolean;
27761
+ };
25942
27762
  logistics_order_is_topick: {
25943
27763
  Args: {
25944
27764
  p_order_id: string;
@@ -25946,6 +27766,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25946
27766
  };
25947
27767
  Returns: boolean;
25948
27768
  };
27769
+ logistics_order_line_duplicates: {
27770
+ Args: {
27771
+ p_order_id: string;
27772
+ };
27773
+ Returns: import("../integrations/supabase/types").Json;
27774
+ };
25949
27775
  logistics_order_merge_key: {
25950
27776
  Args: {
25951
27777
  p_group_key: string;
@@ -25989,6 +27815,63 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
25989
27815
  };
25990
27816
  Returns: boolean;
25991
27817
  };
27818
+ logistics_packing_autofix: {
27819
+ Args: {
27820
+ p_limit?: number;
27821
+ };
27822
+ Returns: number;
27823
+ };
27824
+ logistics_packing_block_reason: {
27825
+ Args: {
27826
+ p_order_id: string;
27827
+ p_order_item_id: string;
27828
+ };
27829
+ Returns: string;
27830
+ };
27831
+ logistics_packing_dismiss: {
27832
+ Args: {
27833
+ p_id: string;
27834
+ p_note?: string;
27835
+ };
27836
+ Returns: boolean;
27837
+ };
27838
+ logistics_packing_overview: {
27839
+ Args: never;
27840
+ Returns: {
27841
+ beoordelen: number;
27842
+ herstelbaar: number;
27843
+ laatst_gemeten: string;
27844
+ laatst_hersteld: string;
27845
+ open_totaal: number;
27846
+ orders: number;
27847
+ oudste_seconden: number;
27848
+ producten: number;
27849
+ }[];
27850
+ };
27851
+ logistics_packing_reconcile: {
27852
+ Args: {
27853
+ p_fix_limit?: number;
27854
+ p_scan_limit?: number;
27855
+ };
27856
+ Returns: {
27857
+ beoordelen: number;
27858
+ gevonden: number;
27859
+ hersteld: number;
27860
+ }[];
27861
+ };
27862
+ logistics_packing_scan: {
27863
+ Args: {
27864
+ p_limit?: number;
27865
+ };
27866
+ Returns: number;
27867
+ };
27868
+ logistics_packing_set_manual: {
27869
+ Args: {
27870
+ p_manual?: boolean;
27871
+ p_order_item_id: string;
27872
+ };
27873
+ Returns: boolean;
27874
+ };
25992
27875
  logistics_parse_pickup: {
25993
27876
  Args: {
25994
27877
  p_value: string;
@@ -26017,6 +27900,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26017
27900
  shifted_count: number;
26018
27901
  }[];
26019
27902
  };
27903
+ logistics_pick_backlog_max_days: {
27904
+ Args: never;
27905
+ Returns: number;
27906
+ };
26020
27907
  logistics_pick_barcode_enabled: {
26021
27908
  Args: never;
26022
27909
  Returns: boolean;
@@ -26238,16 +28125,52 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26238
28125
  Args: never;
26239
28126
  Returns: number;
26240
28127
  };
28128
+ logistics_planner_cart_snapshot: {
28129
+ Args: {
28130
+ p_buffer_id: string;
28131
+ p_order_id: string;
28132
+ };
28133
+ Returns: import("../integrations/supabase/types").Json;
28134
+ };
28135
+ logistics_planner_diff_mode: {
28136
+ Args: never;
28137
+ Returns: string;
28138
+ };
28139
+ logistics_planner_diff_prune: {
28140
+ Args: never;
28141
+ Returns: number;
28142
+ };
26241
28143
  logistics_prepare_pick_documents: {
26242
28144
  Args: {
26243
28145
  p_limit?: number;
26244
28146
  };
26245
28147
  Returns: import("../integrations/supabase/types").Json;
26246
28148
  };
28149
+ logistics_print_via_layout: {
28150
+ Args: {
28151
+ _documentnaam: string;
28152
+ _documenttype: string;
28153
+ _herkomst: string;
28154
+ _idempotentie_sleutel: string;
28155
+ _is_herprint: boolean;
28156
+ _layout_id: string;
28157
+ _payload: import("../integrations/supabase/types").Json;
28158
+ _pdf_base64: string;
28159
+ _pdf_url: string;
28160
+ _print_plek_id: string;
28161
+ };
28162
+ Returns: import("../integrations/supabase/types").Json;
28163
+ };
26247
28164
  logistics_prune_buffer_member_queue: {
26248
28165
  Args: never;
26249
28166
  Returns: number;
26250
28167
  };
28168
+ logistics_prune_cron_history: {
28169
+ Args: {
28170
+ p_days?: number;
28171
+ };
28172
+ Returns: number;
28173
+ };
26251
28174
  logistics_prune_handled_pick_queue: {
26252
28175
  Args: never;
26253
28176
  Returns: number;
@@ -26284,6 +28207,14 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26284
28207
  Args: never;
26285
28208
  Returns: import("../integrations/supabase/types").Json;
26286
28209
  };
28210
+ logistics_recalc_tick_kick: {
28211
+ Args: never;
28212
+ Returns: number;
28213
+ };
28214
+ logistics_reconcile_missing_plan_queue: {
28215
+ Args: never;
28216
+ Returns: number;
28217
+ };
26287
28218
  logistics_refresh_pick_queue_status: {
26288
28219
  Args: {
26289
28220
  p_ref: string;
@@ -26314,11 +28245,24 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26314
28245
  };
26315
28246
  Returns: import("../integrations/supabase/types").Json;
26316
28247
  };
28248
+ logistics_replan_clear_foreign_cart_items: {
28249
+ Args: {
28250
+ p_order_id: string;
28251
+ p_reason: string;
28252
+ };
28253
+ Returns: import("../integrations/supabase/types").Json;
28254
+ };
26317
28255
  logistics_replan_order_journey: {
26318
28256
  Args: {
26319
28257
  p_order_ref: string;
26320
28258
  };
26321
28259
  Returns: import("../integrations/supabase/types").Json;
28260
+ } | {
28261
+ Args: {
28262
+ p_order_ref: string;
28263
+ p_reason: string;
28264
+ };
28265
+ Returns: import("../integrations/supabase/types").Json;
26322
28266
  };
26323
28267
  logistics_report_delay: {
26324
28268
  Args: {
@@ -26364,6 +28308,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26364
28308
  };
26365
28309
  Returns: import("../integrations/supabase/types").Json;
26366
28310
  };
28311
+ logistics_reserved_stock_nightly: {
28312
+ Args: never;
28313
+ Returns: undefined;
28314
+ };
26367
28315
  logistics_resolve_pick_document: {
26368
28316
  Args: {
26369
28317
  _is_herprint: boolean;
@@ -26387,6 +28335,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26387
28335
  };
26388
28336
  Returns: import("../integrations/supabase/types").Json;
26389
28337
  };
28338
+ logistics_retention_days: {
28339
+ Args: {
28340
+ p_key: string;
28341
+ };
28342
+ Returns: number;
28343
+ };
26390
28344
  logistics_rule_bool: {
26391
28345
  Args: {
26392
28346
  p_default: boolean;
@@ -26493,6 +28447,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26493
28447
  };
26494
28448
  Returns: string;
26495
28449
  };
28450
+ logistics_shipping_note_status: {
28451
+ Args: {
28452
+ p_cart_id?: string;
28453
+ p_slip_job_id?: string;
28454
+ };
28455
+ Returns: import("../integrations/supabase/types").Json;
28456
+ };
26496
28457
  logistics_shipping_notes_wake_all: {
26497
28458
  Args: never;
26498
28459
  Returns: import("../integrations/supabase/types").Json;
@@ -26555,6 +28516,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26555
28516
  };
26556
28517
  Returns: undefined;
26557
28518
  };
28519
+ logistics_slip_note_retry: {
28520
+ Args: {
28521
+ _id: string;
28522
+ };
28523
+ Returns: import("../integrations/supabase/types").Json;
28524
+ };
26558
28525
  logistics_sticker_follows_slip: {
26559
28526
  Args: never;
26560
28527
  Returns: boolean;
@@ -26580,12 +28547,27 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26580
28547
  Args: never;
26581
28548
  Returns: import("../integrations/supabase/types").Json;
26582
28549
  };
28550
+ logistics_sync_pick_queue_backlog: {
28551
+ Args: never;
28552
+ Returns: import("../integrations/supabase/types").Json;
28553
+ };
28554
+ logistics_sync_pick_queue_core: {
28555
+ Args: never;
28556
+ Returns: import("../integrations/supabase/types").Json;
28557
+ };
26583
28558
  logistics_sync_task_carriers: {
26584
28559
  Args: {
26585
28560
  p_order_ref?: string;
26586
28561
  };
26587
28562
  Returns: number;
26588
28563
  };
28564
+ logistics_task_open_counts: {
28565
+ Args: never;
28566
+ Returns: {
28567
+ open_count: number;
28568
+ owner_module: string;
28569
+ }[];
28570
+ };
26589
28571
  logistics_task_owner: {
26590
28572
  Args: {
26591
28573
  p_task_type: string;
@@ -26603,6 +28585,16 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26603
28585
  Args: never;
26604
28586
  Returns: number;
26605
28587
  };
28588
+ logistics_tasks_prune: {
28589
+ Args: {
28590
+ p_days?: number;
28591
+ };
28592
+ Returns: number;
28593
+ };
28594
+ logistics_tick: {
28595
+ Args: never;
28596
+ Returns: import("../integrations/supabase/types").Json;
28597
+ };
26606
28598
  logistics_tick_ping: {
26607
28599
  Args: never;
26608
28600
  Returns: string;
@@ -26943,6 +28935,17 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
26943
28935
  };
26944
28936
  Returns: boolean;
26945
28937
  };
28938
+ order_items_duplicate_report: {
28939
+ Args: {
28940
+ _order_ref?: string;
28941
+ };
28942
+ Returns: {
28943
+ distinct_products: number;
28944
+ duplicate_factor: number;
28945
+ lines: number;
28946
+ order_number: string;
28947
+ }[];
28948
+ };
26946
28949
  order_number_prefix: {
26947
28950
  Args: {
26948
28951
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -27263,6 +29266,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
27263
29266
  };
27264
29267
  Returns: string;
27265
29268
  };
29269
+ pick_is_reference_admin: {
29270
+ Args: never;
29271
+ Returns: boolean;
29272
+ };
27266
29273
  pick_mark_printed: {
27267
29274
  Args: {
27268
29275
  _queue_item_id: string;
@@ -27726,6 +29733,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
27726
29733
  };
27727
29734
  Returns: undefined;
27728
29735
  };
29736
+ planning_apply_schedule_updates: {
29737
+ Args: {
29738
+ _updates: import("../integrations/supabase/types").Json;
29739
+ };
29740
+ Returns: undefined;
29741
+ };
29742
+ planning_assert_no_overlaps: {
29743
+ Args: never;
29744
+ Returns: undefined;
29745
+ };
29746
+ planning_assert_no_overlaps_for_items: {
29747
+ Args: {
29748
+ _item_ids: string[];
29749
+ };
29750
+ Returns: undefined;
29751
+ };
27729
29752
  planning_cancel_item: {
27730
29753
  Args: {
27731
29754
  _id: string;
@@ -27837,6 +29860,19 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
27837
29860
  };
27838
29861
  Returns: boolean;
27839
29862
  };
29863
+ quote_assign_number: {
29864
+ Args: {
29865
+ _offerte_id: string;
29866
+ };
29867
+ Returns: string;
29868
+ };
29869
+ quote_create_follow_up_now: {
29870
+ Args: {
29871
+ _offerte_id: string;
29872
+ _payload?: import("../integrations/supabase/types").Json;
29873
+ };
29874
+ Returns: import("../integrations/supabase/types").Json;
29875
+ };
27840
29876
  quote_create_from_source: {
27841
29877
  Args: {
27842
29878
  _payload?: import("../integrations/supabase/types").Json;
@@ -28080,6 +30116,10 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28080
30116
  Args: never;
28081
30117
  Returns: undefined;
28082
30118
  };
30119
+ run_order_auto_invoice_tick: {
30120
+ Args: never;
30121
+ Returns: number;
30122
+ };
28083
30123
  run_print_queue_ticks: {
28084
30124
  Args: never;
28085
30125
  Returns: number;
@@ -28103,6 +30143,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28103
30143
  };
28104
30144
  Returns: import("../integrations/supabase/types").Json;
28105
30145
  };
30146
+ scan_controleer_pincode: {
30147
+ Args: {
30148
+ p_pin: string;
30149
+ p_scanner_id: string;
30150
+ };
30151
+ Returns: boolean;
30152
+ };
28106
30153
  scan_dashboard_stats: {
28107
30154
  Args: {
28108
30155
  p_dagen?: number;
@@ -28122,6 +30169,12 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28122
30169
  };
28123
30170
  Returns: import("../integrations/supabase/types").Json;
28124
30171
  };
30172
+ scan_heeft_pincode: {
30173
+ Args: {
30174
+ p_scanner_id: string;
30175
+ };
30176
+ Returns: boolean;
30177
+ };
28125
30178
  scan_kar_compleet: {
28126
30179
  Args: {
28127
30180
  p_allow_reprint?: boolean;
@@ -28139,6 +30192,7 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28139
30192
  Args: {
28140
30193
  p_code: string;
28141
30194
  p_latency_ms?: number;
30195
+ p_medewerker?: string;
28142
30196
  p_message?: string;
28143
30197
  p_result: string;
28144
30198
  p_scanner_key?: string;
@@ -28211,6 +30265,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28211
30265
  };
28212
30266
  Returns: undefined;
28213
30267
  };
30268
+ scan_scanner_info: {
30269
+ Args: {
30270
+ p_slug: string;
30271
+ };
30272
+ Returns: {
30273
+ actief: boolean;
30274
+ heeft_pincode: boolean;
30275
+ id: string;
30276
+ naam: string;
30277
+ omschrijving: string;
30278
+ printer_id: string;
30279
+ type: string;
30280
+ vereist_medewerker: boolean;
30281
+ werkplek: string;
30282
+ }[];
30283
+ };
28214
30284
  scan_sessie_annuleren: {
28215
30285
  Args: {
28216
30286
  p_sessie_id: string;
@@ -28457,6 +30527,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28457
30527
  };
28458
30528
  Returns: number;
28459
30529
  };
30530
+ schedule_floriday_trade_items_reconcile: {
30531
+ Args: {
30532
+ p_apikey: string;
30533
+ p_url: string;
30534
+ };
30535
+ Returns: number;
30536
+ };
28460
30537
  schedule_floriday_trade_items_sync: {
28461
30538
  Args: {
28462
30539
  p_apikey: string;
@@ -28539,6 +30616,26 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28539
30616
  };
28540
30617
  Returns: undefined;
28541
30618
  };
30619
+ set_product_stock: {
30620
+ Args: {
30621
+ p_incoming_stock?: number;
30622
+ p_minimum_stock?: number;
30623
+ p_notes?: string;
30624
+ p_physical_stock: number;
30625
+ p_product_id: string;
30626
+ };
30627
+ Returns: {
30628
+ connection_id: string;
30629
+ incoming_stock: number;
30630
+ minimum_stock: number;
30631
+ notes: string;
30632
+ physical_stock: number;
30633
+ product_id: string;
30634
+ reserved_stock: number;
30635
+ trade_item_key: string;
30636
+ updated_at: string;
30637
+ }[];
30638
+ };
28542
30639
  show_limit: {
28543
30640
  Args: never;
28544
30641
  Returns: number;
@@ -28781,6 +30878,22 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28781
30878
  Args: never;
28782
30879
  Returns: boolean;
28783
30880
  };
30881
+ uren_is_werkdag: {
30882
+ Args: {
30883
+ _date: string;
30884
+ _monteur: string;
30885
+ };
30886
+ Returns: boolean;
30887
+ };
30888
+ uren_korte_afwezigheid_aanvragen: {
30889
+ Args: {
30890
+ _datum: string;
30891
+ _eind: string;
30892
+ _reden: string;
30893
+ _start: string;
30894
+ };
30895
+ Returns: string;
30896
+ };
28784
30897
  uren_list_medewerkers: {
28785
30898
  Args: never;
28786
30899
  Returns: {
@@ -28801,6 +30914,45 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28801
30914
  roles: string[];
28802
30915
  }[];
28803
30916
  };
30917
+ uren_list_planner_contacten: {
30918
+ Args: never;
30919
+ Returns: {
30920
+ display_name: string;
30921
+ id: string;
30922
+ phone: string;
30923
+ }[];
30924
+ };
30925
+ uren_maand_afsluiten: {
30926
+ Args: {
30927
+ _maand: string;
30928
+ _monteur: string;
30929
+ };
30930
+ Returns: undefined;
30931
+ };
30932
+ uren_maand_berekenen: {
30933
+ Args: {
30934
+ _maand: string;
30935
+ _monteur: string;
30936
+ };
30937
+ Returns: import("../integrations/supabase/types").Json;
30938
+ };
30939
+ uren_maand_corrigeren: {
30940
+ Args: {
30941
+ _maand: string;
30942
+ _monteur: string;
30943
+ _overuren_minuten: number;
30944
+ _reden: string;
30945
+ };
30946
+ Returns: undefined;
30947
+ };
30948
+ uren_mijn_contracturen: {
30949
+ Args: never;
30950
+ Returns: number;
30951
+ };
30952
+ uren_mijn_vakantiesaldo: {
30953
+ Args: never;
30954
+ Returns: number;
30955
+ };
28804
30956
  uren_my_monteur_id: {
28805
30957
  Args: never;
28806
30958
  Returns: string;
@@ -28834,6 +30986,37 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28834
30986
  };
28835
30987
  Returns: number;
28836
30988
  };
30989
+ uren_spiegel_bezig: {
30990
+ Args: never;
30991
+ Returns: boolean;
30992
+ };
30993
+ uren_standaardweek_beoordelen: {
30994
+ Args: {
30995
+ _goedkeuren: boolean;
30996
+ _id: string;
30997
+ _reden?: string;
30998
+ };
30999
+ Returns: undefined;
31000
+ };
31001
+ uren_standaardweek_doorzetten: {
31002
+ Args: {
31003
+ _monteur: string;
31004
+ };
31005
+ Returns: undefined;
31006
+ };
31007
+ uren_standaardweek_instellen: {
31008
+ Args: {
31009
+ _dagen: import("../integrations/supabase/types").Json;
31010
+ };
31011
+ Returns: string;
31012
+ };
31013
+ uren_standaardweek_toepassen: {
31014
+ Args: {
31015
+ _dagen: import("../integrations/supabase/types").Json;
31016
+ _monteur: string;
31017
+ };
31018
+ Returns: undefined;
31019
+ };
28837
31020
  uren_stop_time_log: {
28838
31021
  Args: {
28839
31022
  p_employee_id: string;
@@ -28859,6 +31042,165 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28859
31042
  };
28860
31043
  Returns: number;
28861
31044
  };
31045
+ uren_vakantie_aanvragen: {
31046
+ Args: {
31047
+ _end_date: string;
31048
+ _hours?: number;
31049
+ _start_date: string;
31050
+ };
31051
+ Returns: string;
31052
+ };
31053
+ uren_vakantiedag_wijzigen: {
31054
+ Args: {
31055
+ _date: string;
31056
+ };
31057
+ Returns: string;
31058
+ };
31059
+ uren_vakantiesaldo_uren: {
31060
+ Args: {
31061
+ _monteur: string;
31062
+ };
31063
+ Returns: number;
31064
+ };
31065
+ uren_week_start: {
31066
+ Args: {
31067
+ _datum: string;
31068
+ };
31069
+ Returns: string;
31070
+ };
31071
+ uren_werkweek_opsturen: {
31072
+ Args: {
31073
+ _week_start: string;
31074
+ };
31075
+ Returns: {
31076
+ approved_at: string | null;
31077
+ approved_by: string | null;
31078
+ contract_hours: number;
31079
+ created_at: string;
31080
+ employee_id: string;
31081
+ id: string;
31082
+ locked: boolean;
31083
+ monteur_toelichting: string | null;
31084
+ notes: string | null;
31085
+ planned_hours: number;
31086
+ status: string;
31087
+ submitted_at: string | null;
31088
+ updated_at: string;
31089
+ variance_hours: number;
31090
+ week_start: string;
31091
+ };
31092
+ SetofOptions: {
31093
+ from: "*";
31094
+ to: "time_log_week_approvals";
31095
+ isOneToOne: true;
31096
+ isSetofReturn: false;
31097
+ };
31098
+ } | {
31099
+ Args: {
31100
+ _vrije_dagen?: string[];
31101
+ _week_start: string;
31102
+ };
31103
+ Returns: {
31104
+ approved_at: string | null;
31105
+ approved_by: string | null;
31106
+ contract_hours: number;
31107
+ created_at: string;
31108
+ employee_id: string;
31109
+ id: string;
31110
+ locked: boolean;
31111
+ monteur_toelichting: string | null;
31112
+ notes: string | null;
31113
+ planned_hours: number;
31114
+ status: string;
31115
+ submitted_at: string | null;
31116
+ updated_at: string;
31117
+ variance_hours: number;
31118
+ week_start: string;
31119
+ };
31120
+ SetofOptions: {
31121
+ from: "*";
31122
+ to: "time_log_week_approvals";
31123
+ isOneToOne: true;
31124
+ isSetofReturn: false;
31125
+ };
31126
+ } | {
31127
+ Args: {
31128
+ _toelichting?: string;
31129
+ _vrije_dagen?: string[];
31130
+ _week_start: string;
31131
+ };
31132
+ Returns: {
31133
+ approved_at: string | null;
31134
+ approved_by: string | null;
31135
+ contract_hours: number;
31136
+ created_at: string;
31137
+ employee_id: string;
31138
+ id: string;
31139
+ locked: boolean;
31140
+ monteur_toelichting: string | null;
31141
+ notes: string | null;
31142
+ planned_hours: number;
31143
+ status: string;
31144
+ submitted_at: string | null;
31145
+ updated_at: string;
31146
+ variance_hours: number;
31147
+ week_start: string;
31148
+ };
31149
+ SetofOptions: {
31150
+ from: "*";
31151
+ to: "time_log_week_approvals";
31152
+ isOneToOne: true;
31153
+ isSetofReturn: false;
31154
+ };
31155
+ };
31156
+ vakantie_dagen_gebruikt: {
31157
+ Args: {
31158
+ _user_id: string;
31159
+ _year: number;
31160
+ };
31161
+ Returns: number;
31162
+ };
31163
+ vakantie_overuren: {
31164
+ Args: {
31165
+ _user_id: string;
31166
+ _year?: number;
31167
+ };
31168
+ Returns: number;
31169
+ };
31170
+ vakantie_saldo: {
31171
+ Args: {
31172
+ _user_id: string;
31173
+ _year?: number;
31174
+ };
31175
+ Returns: {
31176
+ day_hours: number;
31177
+ earned_from_overtime_days: number;
31178
+ entitlement_days: number;
31179
+ hours_to_next_day: number;
31180
+ overtime_hours: number;
31181
+ overtime_remainder_hours: number;
31182
+ paid_out_days: number;
31183
+ remaining_days: number;
31184
+ used_days: number;
31185
+ }[];
31186
+ };
31187
+ vakantie_saldo_overzicht: {
31188
+ Args: {
31189
+ _year?: number;
31190
+ };
31191
+ Returns: {
31192
+ day_hours: number;
31193
+ earned_from_overtime_days: number;
31194
+ entitlement_days: number;
31195
+ hours_to_next_day: number;
31196
+ overtime_hours: number;
31197
+ overtime_remainder_hours: number;
31198
+ paid_out_days: number;
31199
+ remaining_days: number;
31200
+ used_days: number;
31201
+ user_id: string;
31202
+ }[];
31203
+ };
28862
31204
  voorraad_cleanup_old_rows: {
28863
31205
  Args: never;
28864
31206
  Returns: import("../integrations/supabase/types").Json;
@@ -28901,18 +31243,46 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28901
31243
  };
28902
31244
  Returns: import("../integrations/supabase/types").Json;
28903
31245
  };
31246
+ wo_list_colleague_planning: {
31247
+ Args: {
31248
+ _from: string;
31249
+ _monteur_id: string;
31250
+ _to: string;
31251
+ };
31252
+ Returns: {
31253
+ end_at: string;
31254
+ id: string;
31255
+ role: string;
31256
+ start_at: string;
31257
+ status: string;
31258
+ werkbon_id: string;
31259
+ }[];
31260
+ };
28904
31261
  wo_list_offerte_requests: {
28905
31262
  Args: {
28906
31263
  _status?: string;
28907
31264
  };
28908
31265
  Returns: import("../integrations/supabase/types").Json;
28909
31266
  };
31267
+ wo_list_proposals: {
31268
+ Args: {
31269
+ _status?: string;
31270
+ };
31271
+ Returns: import("../integrations/supabase/types").Json;
31272
+ };
28910
31273
  wo_process_offerte_request: {
28911
31274
  Args: {
28912
31275
  _queue_id: string;
28913
31276
  };
28914
31277
  Returns: import("../integrations/supabase/types").Json;
28915
31278
  };
31279
+ wo_process_proposal: {
31280
+ Args: {
31281
+ _id: string;
31282
+ _overrides?: import("../integrations/supabase/types").Json;
31283
+ };
31284
+ Returns: import("../integrations/supabase/types").Json;
31285
+ };
28916
31286
  wo_reject_offerte_request: {
28917
31287
  Args: {
28918
31288
  _queue_id: string;
@@ -28920,6 +31290,13 @@ export declare const getShippingNoteLayout: import("@tanstack/start-client-core"
28920
31290
  };
28921
31291
  Returns: import("../integrations/supabase/types").Json;
28922
31292
  };
31293
+ wo_reject_proposal: {
31294
+ Args: {
31295
+ _id: string;
31296
+ _reden?: string;
31297
+ };
31298
+ Returns: import("../integrations/supabase/types").Json;
31299
+ };
28923
31300
  wo_set_status: {
28924
31301
  Args: {
28925
31302
  _reason?: string;