@flowselections/floriday-afhandeling-module 1.0.45 → 1.0.46

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