@flowselections/floriday-afhandeling-module 1.0.45 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.js +1 -1
  2. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/DagDetailDialog.js +32 -9
  4. package/dist-lib/components/afhandeling/ScanControleView.js +1 -1
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  6. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  7. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +9 -9
  8. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -28
  9. package/dist-lib/components/ui/responsive-dialog.js +1 -1
  10. package/dist-lib/hooks/usePickMode.d.ts +1 -1
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2422 -45
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.d.ts +2422 -45
  14. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.js +1 -1
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts +2422 -45
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  19. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +2461 -42
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts +4760 -6
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/carriers.functions.d.ts +11900 -15
  26. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/cartAssignments.functions.d.ts +43261 -42
  28. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/cartAssignments.functions.js +69 -0
  30. package/dist-lib/lib/cartControl.functions.d.ts +26180 -33
  31. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/deliveryNote.functions.d.ts +2422 -45
  33. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/deliveryNotePrint.d.ts +33 -33
  35. package/dist-lib/lib/deliveryNotePrint.js +219 -219
  36. package/dist-lib/lib/engineLayouts.functions.d.ts +2422 -45
  37. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday.functions.d.ts +4760 -6
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
  41. package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
  42. package/dist-lib/lib/orderFulfilment.functions.d.ts +2422 -45
  43. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/pickDates.functions.d.ts +2422 -45
  45. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  46. package/package.json +3 -3
@@ -736,6 +736,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
736
736
  };
737
737
  Relationships: [];
738
738
  };
739
+ artikelen_instellingen: {
740
+ Row: {
741
+ created_at: string;
742
+ id: number;
743
+ marge_procent: number;
744
+ updated_at: string;
745
+ };
746
+ Insert: {
747
+ created_at?: string;
748
+ id?: number;
749
+ marge_procent?: number;
750
+ updated_at?: string;
751
+ };
752
+ Update: {
753
+ created_at?: string;
754
+ id?: number;
755
+ marge_procent?: number;
756
+ updated_at?: string;
757
+ };
758
+ Relationships: [];
759
+ };
739
760
  artikelen_veldconfig: {
740
761
  Row: {
741
762
  bron_pad: string;
@@ -7992,6 +8013,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7992
8013
  };
7993
8014
  fust_types: {
7994
8015
  Row: {
8016
+ capacity_units: number | null;
7995
8017
  connection_id: string | null;
7996
8018
  created_at: string;
7997
8019
  custom_package_id: string | null;
@@ -8012,6 +8034,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8012
8034
  width_mm: number | null;
8013
8035
  };
8014
8036
  Insert: {
8037
+ capacity_units?: number | null;
8015
8038
  connection_id?: string | null;
8016
8039
  created_at?: string;
8017
8040
  custom_package_id?: string | null;
@@ -8032,6 +8055,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8032
8055
  width_mm?: number | null;
8033
8056
  };
8034
8057
  Update: {
8058
+ capacity_units?: number | null;
8035
8059
  connection_id?: string | null;
8036
8060
  created_at?: string;
8037
8061
  custom_package_id?: string | null;
@@ -8263,6 +8287,72 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8263
8287
  };
8264
8288
  Relationships: [];
8265
8289
  };
8290
+ invoice_branding_settings: {
8291
+ Row: {
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
+ Insert: {
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
+ Update: {
8334
+ address?: string;
8335
+ chamber_of_commerce_number?: string;
8336
+ city?: string;
8337
+ company_name?: string;
8338
+ created_at?: string;
8339
+ email?: string;
8340
+ email_purpose?: string | null;
8341
+ iban?: string;
8342
+ logo_path?: string | null;
8343
+ payment_term_days?: number;
8344
+ phone?: string;
8345
+ postal_code?: string;
8346
+ primary_color?: string;
8347
+ secondary_color?: string;
8348
+ show_company_name?: boolean;
8349
+ singleton_key?: boolean;
8350
+ updated_at?: string;
8351
+ vat_identification_number?: string;
8352
+ website?: string;
8353
+ };
8354
+ Relationships: [];
8355
+ };
8266
8356
  invoice_items: {
8267
8357
  Row: {
8268
8358
  created_at: string;
@@ -8276,6 +8366,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8276
8366
  total_cents: number;
8277
8367
  unit: string;
8278
8368
  unit_price_cents: number;
8369
+ vat_rate: number | null;
8279
8370
  };
8280
8371
  Insert: {
8281
8372
  created_at?: string;
@@ -8289,6 +8380,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8289
8380
  total_cents?: number;
8290
8381
  unit?: string;
8291
8382
  unit_price_cents?: number;
8383
+ vat_rate?: number | null;
8292
8384
  };
8293
8385
  Update: {
8294
8386
  created_at?: string;
@@ -8302,6 +8394,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8302
8394
  total_cents?: number;
8303
8395
  unit?: string;
8304
8396
  unit_price_cents?: number;
8397
+ vat_rate?: number | null;
8305
8398
  };
8306
8399
  Relationships: [{
8307
8400
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8547,15 +8640,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8547
8640
  };
8548
8641
  invoices: {
8549
8642
  Row: {
8643
+ branding_snapshot: import("./types").Json | null;
8550
8644
  created_at: string;
8551
8645
  created_by: string | null;
8646
+ customer_address: string | null;
8647
+ customer_attention: string | null;
8648
+ customer_city: string | null;
8552
8649
  customer_id: string | null;
8553
8650
  customer_name: string | null;
8651
+ customer_postal_code: string | null;
8652
+ customer_vat_number: string | null;
8653
+ debtor_number: string | null;
8554
8654
  due_date: string | null;
8655
+ execution_date: string | null;
8555
8656
  id: string;
8556
8657
  invoice_date: string;
8557
8658
  invoice_number: string | null;
8558
8659
  note: string | null;
8660
+ payment_term_days: number;
8661
+ reference: string | null;
8662
+ sent_at: string | null;
8663
+ sent_to: string | null;
8559
8664
  source_number: string | null;
8560
8665
  source_ref: string | null;
8561
8666
  source_type: string;
@@ -8565,17 +8670,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8565
8670
  updated_at: string;
8566
8671
  vat_cents: number;
8567
8672
  vat_rate: number;
8673
+ work_address: string | null;
8568
8674
  };
8569
8675
  Insert: {
8676
+ branding_snapshot?: import("./types").Json | null;
8570
8677
  created_at?: string;
8571
8678
  created_by?: string | null;
8679
+ customer_address?: string | null;
8680
+ customer_attention?: string | null;
8681
+ customer_city?: string | null;
8572
8682
  customer_id?: string | null;
8573
8683
  customer_name?: string | null;
8684
+ customer_postal_code?: string | null;
8685
+ customer_vat_number?: string | null;
8686
+ debtor_number?: string | null;
8574
8687
  due_date?: string | null;
8688
+ execution_date?: string | null;
8575
8689
  id?: string;
8576
8690
  invoice_date?: string;
8577
8691
  invoice_number?: string | null;
8578
8692
  note?: string | null;
8693
+ payment_term_days?: number;
8694
+ reference?: string | null;
8695
+ sent_at?: string | null;
8696
+ sent_to?: string | null;
8579
8697
  source_number?: string | null;
8580
8698
  source_ref?: string | null;
8581
8699
  source_type?: string;
@@ -8585,17 +8703,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8585
8703
  updated_at?: string;
8586
8704
  vat_cents?: number;
8587
8705
  vat_rate?: number;
8706
+ work_address?: string | null;
8588
8707
  };
8589
8708
  Update: {
8709
+ branding_snapshot?: import("./types").Json | null;
8590
8710
  created_at?: string;
8591
8711
  created_by?: string | null;
8712
+ customer_address?: string | null;
8713
+ customer_attention?: string | null;
8714
+ customer_city?: string | null;
8592
8715
  customer_id?: string | null;
8593
8716
  customer_name?: string | null;
8717
+ customer_postal_code?: string | null;
8718
+ customer_vat_number?: string | null;
8719
+ debtor_number?: string | null;
8594
8720
  due_date?: string | null;
8721
+ execution_date?: string | null;
8595
8722
  id?: string;
8596
8723
  invoice_date?: string;
8597
8724
  invoice_number?: string | null;
8598
8725
  note?: string | null;
8726
+ payment_term_days?: number;
8727
+ reference?: string | null;
8728
+ sent_at?: string | null;
8729
+ sent_to?: string | null;
8599
8730
  source_number?: string | null;
8600
8731
  source_ref?: string | null;
8601
8732
  source_type?: string;
@@ -8605,6 +8736,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8605
8736
  updated_at?: string;
8606
8737
  vat_cents?: number;
8607
8738
  vat_rate?: number;
8739
+ work_address?: string | null;
8608
8740
  };
8609
8741
  Relationships: [{
8610
8742
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9303,6 +9435,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9303
9435
  quantity: number;
9304
9436
  sort_order: number;
9305
9437
  source: string;
9438
+ unit: string | null;
9306
9439
  unit_price_cents: number;
9307
9440
  updated_at: string;
9308
9441
  };
@@ -9316,6 +9449,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9316
9449
  quantity?: number;
9317
9450
  sort_order?: number;
9318
9451
  source?: string;
9452
+ unit?: string | null;
9319
9453
  unit_price_cents?: number;
9320
9454
  updated_at?: string;
9321
9455
  };
@@ -9329,6 +9463,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9329
9463
  quantity?: number;
9330
9464
  sort_order?: number;
9331
9465
  source?: string;
9466
+ unit?: string | null;
9332
9467
  unit_price_cents?: number;
9333
9468
  updated_at?: string;
9334
9469
  };
@@ -9352,6 +9487,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9352
9487
  created_at: string;
9353
9488
  default_geldigheid_dagen: number;
9354
9489
  default_vat_rate: number;
9490
+ email_purpose: string | null;
9355
9491
  id: string;
9356
9492
  singleton: boolean;
9357
9493
  updated_at: string;
@@ -9361,6 +9497,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9361
9497
  created_at?: string;
9362
9498
  default_geldigheid_dagen?: number;
9363
9499
  default_vat_rate?: number;
9500
+ email_purpose?: string | null;
9364
9501
  id?: string;
9365
9502
  singleton?: boolean;
9366
9503
  updated_at?: string;
@@ -9370,12 +9507,49 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9370
9507
  created_at?: string;
9371
9508
  default_geldigheid_dagen?: number;
9372
9509
  default_vat_rate?: number;
9510
+ email_purpose?: string | null;
9373
9511
  id?: string;
9374
9512
  singleton?: boolean;
9375
9513
  updated_at?: string;
9376
9514
  };
9377
9515
  Relationships: [];
9378
9516
  };
9517
+ itk_offerte_voorstel_status: {
9518
+ Row: {
9519
+ ai_concept: import("./types").Json | null;
9520
+ created_at: string;
9521
+ id: string;
9522
+ offerte_id: string | null;
9523
+ proposal_id: string;
9524
+ seen_at: string | null;
9525
+ updated_at: string;
9526
+ };
9527
+ Insert: {
9528
+ ai_concept?: import("./types").Json | null;
9529
+ created_at?: string;
9530
+ id?: string;
9531
+ offerte_id?: string | null;
9532
+ proposal_id: string;
9533
+ seen_at?: string | null;
9534
+ updated_at?: string;
9535
+ };
9536
+ Update: {
9537
+ ai_concept?: import("./types").Json | null;
9538
+ created_at?: string;
9539
+ id?: string;
9540
+ offerte_id?: string | null;
9541
+ proposal_id?: string;
9542
+ seen_at?: string | null;
9543
+ updated_at?: string;
9544
+ };
9545
+ Relationships: [{
9546
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9547
+ columns: ["offerte_id"];
9548
+ isOneToOne: false;
9549
+ referencedRelation: "itk_offertes";
9550
+ referencedColumns: ["id"];
9551
+ }];
9552
+ };
9379
9553
  itk_offerte_werkbon_queue: {
9380
9554
  Row: {
9381
9555
  bron_werkbon_id: string | null;
@@ -9426,6 +9600,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9426
9600
  };
9427
9601
  itk_offertes: {
9428
9602
  Row: {
9603
+ aandachtspunten: string | null;
9429
9604
  ai_generated: boolean;
9430
9605
  approved_at: string | null;
9431
9606
  binnen_mandaat: boolean;
@@ -9441,6 +9616,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9441
9616
  notities: string | null;
9442
9617
  offerte_number: string | null;
9443
9618
  omschrijving: string;
9619
+ onderwerp: string | null;
9444
9620
  rejected_at: string | null;
9445
9621
  sent_at: string | null;
9446
9622
  source_number: string | null;
@@ -9453,12 +9629,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9453
9629
  valid_until: string | null;
9454
9630
  vat_cents: number;
9455
9631
  vat_rate: number;
9632
+ verzonden_naar: string | null;
9456
9633
  viewed_at: string | null;
9457
9634
  volgnummer: number | null;
9635
+ voorwaarden: string | null;
9458
9636
  werkbon_id: string | null;
9459
9637
  work_location_id: string | null;
9460
9638
  };
9461
9639
  Insert: {
9640
+ aandachtspunten?: string | null;
9462
9641
  ai_generated?: boolean;
9463
9642
  approved_at?: string | null;
9464
9643
  binnen_mandaat?: boolean;
@@ -9474,6 +9653,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9474
9653
  notities?: string | null;
9475
9654
  offerte_number?: string | null;
9476
9655
  omschrijving?: string;
9656
+ onderwerp?: string | null;
9477
9657
  rejected_at?: string | null;
9478
9658
  sent_at?: string | null;
9479
9659
  source_number?: string | null;
@@ -9486,12 +9666,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9486
9666
  valid_until?: string | null;
9487
9667
  vat_cents?: number;
9488
9668
  vat_rate?: number;
9669
+ verzonden_naar?: string | null;
9489
9670
  viewed_at?: string | null;
9490
9671
  volgnummer?: number | null;
9672
+ voorwaarden?: string | null;
9491
9673
  werkbon_id?: string | null;
9492
9674
  work_location_id?: string | null;
9493
9675
  };
9494
9676
  Update: {
9677
+ aandachtspunten?: string | null;
9495
9678
  ai_generated?: boolean;
9496
9679
  approved_at?: string | null;
9497
9680
  binnen_mandaat?: boolean;
@@ -9507,6 +9690,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9507
9690
  notities?: string | null;
9508
9691
  offerte_number?: string | null;
9509
9692
  omschrijving?: string;
9693
+ onderwerp?: string | null;
9510
9694
  rejected_at?: string | null;
9511
9695
  sent_at?: string | null;
9512
9696
  source_number?: string | null;
@@ -9519,8 +9703,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9519
9703
  valid_until?: string | null;
9520
9704
  vat_cents?: number;
9521
9705
  vat_rate?: number;
9706
+ verzonden_naar?: string | null;
9522
9707
  viewed_at?: string | null;
9523
9708
  volgnummer?: number | null;
9709
+ voorwaarden?: string | null;
9524
9710
  werkbon_id?: string | null;
9525
9711
  work_location_id?: string | null;
9526
9712
  };
@@ -9696,6 +9882,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9696
9882
  };
9697
9883
  leave_requests: {
9698
9884
  Row: {
9885
+ cancellation_requested_at: string | null;
9886
+ cancellation_status: string | null;
9699
9887
  created_at: string;
9700
9888
  decided_at: string | null;
9701
9889
  decided_by: string | null;
@@ -9706,6 +9894,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9706
9894
  leave_type: string;
9707
9895
  monteur_id: string | null;
9708
9896
  reason: string | null;
9897
+ reden_afkeur: string | null;
9709
9898
  start_date: string;
9710
9899
  start_time: string | null;
9711
9900
  status: string;
@@ -9713,6 +9902,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9713
9902
  user_id: string;
9714
9903
  };
9715
9904
  Insert: {
9905
+ cancellation_requested_at?: string | null;
9906
+ cancellation_status?: string | null;
9716
9907
  created_at?: string;
9717
9908
  decided_at?: string | null;
9718
9909
  decided_by?: string | null;
@@ -9723,6 +9914,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9723
9914
  leave_type?: string;
9724
9915
  monteur_id?: string | null;
9725
9916
  reason?: string | null;
9917
+ reden_afkeur?: string | null;
9726
9918
  start_date: string;
9727
9919
  start_time?: string | null;
9728
9920
  status?: string;
@@ -9730,6 +9922,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9730
9922
  user_id: string;
9731
9923
  };
9732
9924
  Update: {
9925
+ cancellation_requested_at?: string | null;
9926
+ cancellation_status?: string | null;
9733
9927
  created_at?: string;
9734
9928
  decided_at?: string | null;
9735
9929
  decided_by?: string | null;
@@ -9740,6 +9934,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9740
9934
  leave_type?: string;
9741
9935
  monteur_id?: string | null;
9742
9936
  reason?: string | null;
9937
+ reden_afkeur?: string | null;
9743
9938
  start_date?: string;
9744
9939
  start_time?: string | null;
9745
9940
  status?: string;
@@ -10237,6 +10432,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10237
10432
  };
10238
10433
  Relationships: [];
10239
10434
  };
10435
+ logistics_cart_barcode_archief: {
10436
+ Row: {
10437
+ barcode: string;
10438
+ cart_id: string;
10439
+ created_at: string | null;
10440
+ gearchiveerd_op: string;
10441
+ order_id: string | null;
10442
+ };
10443
+ Insert: {
10444
+ barcode: string;
10445
+ cart_id: string;
10446
+ created_at?: string | null;
10447
+ gearchiveerd_op?: string;
10448
+ order_id?: string | null;
10449
+ };
10450
+ Update: {
10451
+ barcode?: string;
10452
+ cart_id?: string;
10453
+ created_at?: string | null;
10454
+ gearchiveerd_op?: string;
10455
+ order_id?: string | null;
10456
+ };
10457
+ Relationships: [];
10458
+ };
10240
10459
  logistics_control_scan: {
10241
10460
  Row: {
10242
10461
  approved_at: string | null;
@@ -10882,6 +11101,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10882
11101
  };
10883
11102
  Relationships: [];
10884
11103
  };
11104
+ logistics_order_finalize_queue: {
11105
+ Row: {
11106
+ attempts: number;
11107
+ claimed_at: string | null;
11108
+ created_at: string;
11109
+ finished_at: string | null;
11110
+ last_error: string | null;
11111
+ lease_until: string | null;
11112
+ max_attempts: number;
11113
+ next_attempt_at: string;
11114
+ order_id: string;
11115
+ reason: string | null;
11116
+ requested_at: string;
11117
+ status: string;
11118
+ updated_at: string;
11119
+ };
11120
+ Insert: {
11121
+ attempts?: number;
11122
+ claimed_at?: string | null;
11123
+ created_at?: string;
11124
+ finished_at?: string | null;
11125
+ last_error?: string | null;
11126
+ lease_until?: string | null;
11127
+ max_attempts?: number;
11128
+ next_attempt_at?: string;
11129
+ order_id: string;
11130
+ reason?: string | null;
11131
+ requested_at?: string;
11132
+ status?: string;
11133
+ updated_at?: string;
11134
+ };
11135
+ Update: {
11136
+ attempts?: number;
11137
+ claimed_at?: string | null;
11138
+ created_at?: string;
11139
+ finished_at?: string | null;
11140
+ last_error?: string | null;
11141
+ lease_until?: string | null;
11142
+ max_attempts?: number;
11143
+ next_attempt_at?: string;
11144
+ order_id?: string;
11145
+ reason?: string | null;
11146
+ requested_at?: string;
11147
+ status?: string;
11148
+ updated_at?: string;
11149
+ };
11150
+ Relationships: [];
11151
+ };
10885
11152
  logistics_order_merges: {
10886
11153
  Row: {
10887
11154
  group_key: string;
@@ -10918,6 +11185,72 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10918
11185
  };
10919
11186
  Relationships: [];
10920
11187
  };
11188
+ logistics_packing_deviations: {
11189
+ Row: {
11190
+ auto_fixed_at: string | null;
11191
+ created_at: string;
11192
+ dev_key: string;
11193
+ first_seen_at: string;
11194
+ floriday_packing: import("./types").Json;
11195
+ human_reason: string | null;
11196
+ id: string;
11197
+ last_seen_at: string;
11198
+ local_packing: import("./types").Json;
11199
+ needs_human: boolean;
11200
+ order_id: string | null;
11201
+ order_item_id: string | null;
11202
+ order_number: string | null;
11203
+ product_id: string | null;
11204
+ product_name: string | null;
11205
+ resolved_at: string | null;
11206
+ scope: string;
11207
+ trade_item_id: string | null;
11208
+ updated_at: string;
11209
+ };
11210
+ Insert: {
11211
+ auto_fixed_at?: string | null;
11212
+ created_at?: string;
11213
+ dev_key: string;
11214
+ first_seen_at?: string;
11215
+ floriday_packing?: import("./types").Json;
11216
+ human_reason?: string | null;
11217
+ id?: string;
11218
+ last_seen_at?: string;
11219
+ local_packing?: import("./types").Json;
11220
+ needs_human?: boolean;
11221
+ order_id?: string | null;
11222
+ order_item_id?: string | null;
11223
+ order_number?: string | null;
11224
+ product_id?: string | null;
11225
+ product_name?: string | null;
11226
+ resolved_at?: string | null;
11227
+ scope: string;
11228
+ trade_item_id?: string | null;
11229
+ updated_at?: string;
11230
+ };
11231
+ Update: {
11232
+ auto_fixed_at?: string | null;
11233
+ created_at?: string;
11234
+ dev_key?: string;
11235
+ first_seen_at?: string;
11236
+ floriday_packing?: import("./types").Json;
11237
+ human_reason?: string | null;
11238
+ id?: string;
11239
+ last_seen_at?: string;
11240
+ local_packing?: import("./types").Json;
11241
+ needs_human?: boolean;
11242
+ order_id?: string | null;
11243
+ order_item_id?: string | null;
11244
+ order_number?: string | null;
11245
+ product_id?: string | null;
11246
+ product_name?: string | null;
11247
+ resolved_at?: string | null;
11248
+ scope?: string;
11249
+ trade_item_id?: string | null;
11250
+ updated_at?: string;
11251
+ };
11252
+ Relationships: [];
11253
+ };
10921
11254
  logistics_pick_data_requests: {
10922
11255
  Row: {
10923
11256
  actions: import("./types").Json;
@@ -11155,14 +11488,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11155
11488
  };
11156
11489
  Relationships: [];
11157
11490
  };
11491
+ logistics_planner_diff_runs: {
11492
+ Row: {
11493
+ after_snapshot: import("./types").Json | null;
11494
+ before_snapshot: import("./types").Json;
11495
+ buffer_id: string | null;
11496
+ carts_after: number | null;
11497
+ carts_before: number | null;
11498
+ compared_at: string | null;
11499
+ created_at: string;
11500
+ differences: import("./types").Json | null;
11501
+ id: string;
11502
+ identical: boolean | null;
11503
+ mode: string;
11504
+ order_id: string;
11505
+ order_ref: string | null;
11506
+ reason: string | null;
11507
+ status: string;
11508
+ };
11509
+ Insert: {
11510
+ after_snapshot?: import("./types").Json | null;
11511
+ before_snapshot?: import("./types").Json;
11512
+ buffer_id?: string | null;
11513
+ carts_after?: number | null;
11514
+ carts_before?: number | null;
11515
+ compared_at?: string | null;
11516
+ created_at?: string;
11517
+ differences?: import("./types").Json | null;
11518
+ id?: string;
11519
+ identical?: boolean | null;
11520
+ mode: string;
11521
+ order_id: string;
11522
+ order_ref?: string | null;
11523
+ reason?: string | null;
11524
+ status?: string;
11525
+ };
11526
+ Update: {
11527
+ after_snapshot?: import("./types").Json | null;
11528
+ before_snapshot?: import("./types").Json;
11529
+ buffer_id?: string | null;
11530
+ carts_after?: number | null;
11531
+ carts_before?: number | null;
11532
+ compared_at?: string | null;
11533
+ created_at?: string;
11534
+ differences?: import("./types").Json | null;
11535
+ id?: string;
11536
+ identical?: boolean | null;
11537
+ mode?: string;
11538
+ order_id?: string;
11539
+ order_ref?: string | null;
11540
+ reason?: string | null;
11541
+ status?: string;
11542
+ };
11543
+ Relationships: [];
11544
+ };
11158
11545
  logistics_rebuffer_state: {
11159
11546
  Row: {
11160
11547
  created_at: string;
11161
11548
  id: boolean;
11162
11549
  last_checked: number;
11163
11550
  last_duration_ms: number;
11551
+ last_mode: string | null;
11164
11552
  last_run_at: string | null;
11165
11553
  last_updated: number;
11554
+ last_would_change: number | null;
11166
11555
  pending: boolean;
11167
11556
  requested_at: string | null;
11168
11557
  updated_at: string;
@@ -11172,8 +11561,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11172
11561
  id?: boolean;
11173
11562
  last_checked?: number;
11174
11563
  last_duration_ms?: number;
11564
+ last_mode?: string | null;
11175
11565
  last_run_at?: string | null;
11176
11566
  last_updated?: number;
11567
+ last_would_change?: number | null;
11177
11568
  pending?: boolean;
11178
11569
  requested_at?: string | null;
11179
11570
  updated_at?: string;
@@ -11183,8 +11574,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11183
11574
  id?: boolean;
11184
11575
  last_checked?: number;
11185
11576
  last_duration_ms?: number;
11577
+ last_mode?: string | null;
11186
11578
  last_run_at?: string | null;
11187
11579
  last_updated?: number;
11580
+ last_would_change?: number | null;
11188
11581
  pending?: boolean;
11189
11582
  requested_at?: string | null;
11190
11583
  updated_at?: string;
@@ -13180,6 +13573,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13180
13573
  };
13181
13574
  Relationships: [];
13182
13575
  };
13576
+ monteur_contracten: {
13577
+ Row: {
13578
+ contract_type: string;
13579
+ created_at: string;
13580
+ days_per_week: number;
13581
+ hours_per_week: number;
13582
+ id: string;
13583
+ updated_at: string;
13584
+ user_id: string;
13585
+ vacation_day_hours: number;
13586
+ vacation_days_per_year: number;
13587
+ };
13588
+ Insert: {
13589
+ contract_type?: string;
13590
+ created_at?: string;
13591
+ days_per_week?: number;
13592
+ hours_per_week?: number;
13593
+ id?: string;
13594
+ updated_at?: string;
13595
+ user_id: string;
13596
+ vacation_day_hours?: number;
13597
+ vacation_days_per_year?: number;
13598
+ };
13599
+ Update: {
13600
+ contract_type?: string;
13601
+ created_at?: string;
13602
+ days_per_week?: number;
13603
+ hours_per_week?: number;
13604
+ id?: string;
13605
+ updated_at?: string;
13606
+ user_id?: string;
13607
+ vacation_day_hours?: number;
13608
+ vacation_days_per_year?: number;
13609
+ };
13610
+ Relationships: [];
13611
+ };
13183
13612
  nmbrs_component_mapping: {
13184
13613
  Row: {
13185
13614
  created_at: string;
@@ -13659,6 +14088,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13659
14088
  id: string;
13660
14089
  items: import("./types").Json;
13661
14090
  notes: string | null;
14091
+ order_creation_error: string | null;
14092
+ order_creation_failed_at: string | null;
14093
+ order_id: string | null;
13662
14094
  order_number: string | null;
13663
14095
  recipient_id: string;
13664
14096
  total_amount: number;
@@ -13673,6 +14105,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13673
14105
  id?: string;
13674
14106
  items?: import("./types").Json;
13675
14107
  notes?: string | null;
14108
+ order_creation_error?: string | null;
14109
+ order_creation_failed_at?: string | null;
14110
+ order_id?: string | null;
13676
14111
  order_number?: string | null;
13677
14112
  recipient_id: string;
13678
14113
  total_amount?: number;
@@ -13687,6 +14122,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13687
14122
  id?: string;
13688
14123
  items?: import("./types").Json;
13689
14124
  notes?: string | null;
14125
+ order_creation_error?: string | null;
14126
+ order_creation_failed_at?: string | null;
14127
+ order_id?: string | null;
13690
14128
  order_number?: string | null;
13691
14129
  recipient_id?: string;
13692
14130
  total_amount?: number;
@@ -13704,10 +14142,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13704
14142
  referencedRelation: "customers";
13705
14143
  referencedColumns: ["id"];
13706
14144
  }, {
13707
- foreignKeyName: "offer_orders_recipient_id_fkey";
13708
- columns: ["recipient_id"];
14145
+ foreignKeyName: "offer_orders_order_id_fkey";
14146
+ columns: ["order_id"];
13709
14147
  isOneToOne: false;
13710
- referencedRelation: "offer_recipients";
14148
+ referencedRelation: "orders";
14149
+ referencedColumns: ["id"];
14150
+ }, {
14151
+ foreignKeyName: "offer_orders_recipient_id_fkey";
14152
+ columns: ["recipient_id"];
14153
+ isOneToOne: false;
14154
+ referencedRelation: "offer_recipients";
13711
14155
  referencedColumns: ["id"];
13712
14156
  }];
13713
14157
  };
@@ -13843,6 +14287,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13843
14287
  };
13844
14288
  Relationships: [];
13845
14289
  };
14290
+ order_block_notifications: {
14291
+ Row: {
14292
+ id: string;
14293
+ notified_at: string;
14294
+ order_id: string;
14295
+ reason: string | null;
14296
+ reason_key: string;
14297
+ };
14298
+ Insert: {
14299
+ id?: string;
14300
+ notified_at?: string;
14301
+ order_id: string;
14302
+ reason?: string | null;
14303
+ reason_key: string;
14304
+ };
14305
+ Update: {
14306
+ id?: string;
14307
+ notified_at?: string;
14308
+ order_id?: string;
14309
+ reason?: string | null;
14310
+ reason_key?: string;
14311
+ };
14312
+ Relationships: [];
14313
+ };
13846
14314
  order_buffers: {
13847
14315
  Row: {
13848
14316
  buffer_key: string;
@@ -14274,6 +14742,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14274
14742
  next_attempt_at: string;
14275
14743
  order_id: string;
14276
14744
  processed_at: string | null;
14745
+ send_error: string | null;
14277
14746
  status: string;
14278
14747
  updated_at: string;
14279
14748
  };
@@ -14287,6 +14756,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14287
14756
  next_attempt_at?: string;
14288
14757
  order_id: string;
14289
14758
  processed_at?: string | null;
14759
+ send_error?: string | null;
14290
14760
  status?: string;
14291
14761
  updated_at?: string;
14292
14762
  };
@@ -14300,6 +14770,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14300
14770
  next_attempt_at?: string;
14301
14771
  order_id?: string;
14302
14772
  processed_at?: string | null;
14773
+ send_error?: string | null;
14303
14774
  status?: string;
14304
14775
  updated_at?: string;
14305
14776
  };
@@ -14312,10 +14783,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14312
14783
  id: string;
14313
14784
  layers_per_cart: number | null;
14314
14785
  order_id: string;
14786
+ packing_locked_at: string | null;
14787
+ packing_locked_by: string | null;
14315
14788
  plants_per_crate: number | null;
14316
14789
  product_id: string | null;
14317
14790
  product_name: string;
14318
14791
  quantity: number;
14792
+ source_line_key: string | null;
14319
14793
  unit: string;
14320
14794
  unit_price: number | null;
14321
14795
  };
@@ -14325,10 +14799,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14325
14799
  id?: string;
14326
14800
  layers_per_cart?: number | null;
14327
14801
  order_id: string;
14802
+ packing_locked_at?: string | null;
14803
+ packing_locked_by?: string | null;
14328
14804
  plants_per_crate?: number | null;
14329
14805
  product_id?: string | null;
14330
14806
  product_name: string;
14331
14807
  quantity?: number;
14808
+ source_line_key?: string | null;
14332
14809
  unit?: string;
14333
14810
  unit_price?: number | null;
14334
14811
  };
@@ -14338,10 +14815,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14338
14815
  id?: string;
14339
14816
  layers_per_cart?: number | null;
14340
14817
  order_id?: string;
14818
+ packing_locked_at?: string | null;
14819
+ packing_locked_by?: string | null;
14341
14820
  plants_per_crate?: number | null;
14342
14821
  product_id?: string | null;
14343
14822
  product_name?: string;
14344
14823
  quantity?: number;
14824
+ source_line_key?: string | null;
14345
14825
  unit?: string;
14346
14826
  unit_price?: number | null;
14347
14827
  };
@@ -15629,18 +16109,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15629
16109
  Row: {
15630
16110
  id: boolean;
15631
16111
  last_cleanup_at: string | null;
16112
+ last_error: string | null;
16113
+ last_error_at: string | null;
15632
16114
  last_sync_at: string | null;
15633
16115
  updated_at: string;
15634
16116
  };
15635
16117
  Insert: {
15636
16118
  id?: boolean;
15637
16119
  last_cleanup_at?: string | null;
16120
+ last_error?: string | null;
16121
+ last_error_at?: string | null;
15638
16122
  last_sync_at?: string | null;
15639
16123
  updated_at?: string;
15640
16124
  };
15641
16125
  Update: {
15642
16126
  id?: boolean;
15643
16127
  last_cleanup_at?: string | null;
16128
+ last_error?: string | null;
16129
+ last_error_at?: string | null;
15644
16130
  last_sync_at?: string | null;
15645
16131
  updated_at?: string;
15646
16132
  };
@@ -15766,6 +16252,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15766
16252
  };
15767
16253
  Relationships: [];
15768
16254
  };
16255
+ planning_confirmation_log: {
16256
+ Row: {
16257
+ created_at: string;
16258
+ end_at: string;
16259
+ id: string;
16260
+ outbox_id: string | null;
16261
+ planning_item_id: string;
16262
+ reason: string | null;
16263
+ recipient: string | null;
16264
+ start_at: string;
16265
+ status: string;
16266
+ };
16267
+ Insert: {
16268
+ created_at?: string;
16269
+ end_at: string;
16270
+ id?: string;
16271
+ outbox_id?: string | null;
16272
+ planning_item_id: string;
16273
+ reason?: string | null;
16274
+ recipient?: string | null;
16275
+ start_at: string;
16276
+ status: string;
16277
+ };
16278
+ Update: {
16279
+ created_at?: string;
16280
+ end_at?: string;
16281
+ id?: string;
16282
+ outbox_id?: string | null;
16283
+ planning_item_id?: string;
16284
+ reason?: string | null;
16285
+ recipient?: string | null;
16286
+ start_at?: string;
16287
+ status?: string;
16288
+ };
16289
+ Relationships: [{
16290
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16291
+ columns: ["planning_item_id"];
16292
+ isOneToOne: false;
16293
+ referencedRelation: "planning_items";
16294
+ referencedColumns: ["id"];
16295
+ }, {
16296
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16297
+ columns: ["planning_item_id"];
16298
+ isOneToOne: false;
16299
+ referencedRelation: "planning_overview";
16300
+ referencedColumns: ["id"];
16301
+ }];
16302
+ };
15769
16303
  planning_item_assistants: {
15770
16304
  Row: {
15771
16305
  created_at: string;
@@ -15850,6 +16384,249 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15850
16384
  referencedColumns: ["id"];
15851
16385
  }];
15852
16386
  };
16387
+ planning_mail_settings: {
16388
+ Row: {
16389
+ body_template: string;
16390
+ cc: string[];
16391
+ connection_id: string | null;
16392
+ created_at: string;
16393
+ enabled: boolean;
16394
+ id: boolean;
16395
+ reply_to: string | null;
16396
+ subject_template: string;
16397
+ timezone: string;
16398
+ updated_at: string;
16399
+ updated_by: string | null;
16400
+ };
16401
+ Insert: {
16402
+ body_template?: string;
16403
+ cc?: string[];
16404
+ connection_id?: string | null;
16405
+ created_at?: string;
16406
+ enabled?: boolean;
16407
+ id?: boolean;
16408
+ reply_to?: string | null;
16409
+ subject_template?: string;
16410
+ timezone?: string;
16411
+ updated_at?: string;
16412
+ updated_by?: string | null;
16413
+ };
16414
+ Update: {
16415
+ body_template?: string;
16416
+ cc?: string[];
16417
+ connection_id?: string | null;
16418
+ created_at?: string;
16419
+ enabled?: boolean;
16420
+ id?: boolean;
16421
+ reply_to?: string | null;
16422
+ subject_template?: string;
16423
+ timezone?: string;
16424
+ updated_at?: string;
16425
+ updated_by?: string | null;
16426
+ };
16427
+ Relationships: [{
16428
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16429
+ columns: ["connection_id"];
16430
+ isOneToOne: false;
16431
+ referencedRelation: "email_auth_connections";
16432
+ referencedColumns: ["id"];
16433
+ }, {
16434
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16435
+ columns: ["connection_id"];
16436
+ isOneToOne: false;
16437
+ referencedRelation: "email_auth_connections_safe";
16438
+ referencedColumns: ["id"];
16439
+ }];
16440
+ };
16441
+ planning_monteur_day_locations: {
16442
+ Row: {
16443
+ created_at: string;
16444
+ day: string;
16445
+ end_at: string;
16446
+ id: string;
16447
+ monteur_id: string;
16448
+ start_from: string;
16449
+ updated_at: string;
16450
+ };
16451
+ Insert: {
16452
+ created_at?: string;
16453
+ day: string;
16454
+ end_at?: string;
16455
+ id?: string;
16456
+ monteur_id: string;
16457
+ start_from?: string;
16458
+ updated_at?: string;
16459
+ };
16460
+ Update: {
16461
+ created_at?: string;
16462
+ day?: string;
16463
+ end_at?: string;
16464
+ id?: string;
16465
+ monteur_id?: string;
16466
+ start_from?: string;
16467
+ updated_at?: string;
16468
+ };
16469
+ Relationships: [];
16470
+ };
16471
+ planning_monteur_locations: {
16472
+ Row: {
16473
+ created_at: string;
16474
+ default_end: string;
16475
+ default_start: string;
16476
+ end_address: string | null;
16477
+ home_address: string | null;
16478
+ id: string;
16479
+ monteur_id: string;
16480
+ start_address: string | null;
16481
+ updated_at: string;
16482
+ };
16483
+ Insert: {
16484
+ created_at?: string;
16485
+ default_end?: string;
16486
+ default_start?: string;
16487
+ end_address?: string | null;
16488
+ home_address?: string | null;
16489
+ id?: string;
16490
+ monteur_id: string;
16491
+ start_address?: string | null;
16492
+ updated_at?: string;
16493
+ };
16494
+ Update: {
16495
+ created_at?: string;
16496
+ default_end?: string;
16497
+ default_start?: string;
16498
+ end_address?: string | null;
16499
+ home_address?: string | null;
16500
+ id?: string;
16501
+ monteur_id?: string;
16502
+ start_address?: string | null;
16503
+ updated_at?: string;
16504
+ };
16505
+ Relationships: [];
16506
+ };
16507
+ planning_settings: {
16508
+ Row: {
16509
+ company_address: string | null;
16510
+ created_at: string;
16511
+ id: string;
16512
+ singleton: boolean;
16513
+ updated_at: string;
16514
+ };
16515
+ Insert: {
16516
+ company_address?: string | null;
16517
+ created_at?: string;
16518
+ id?: string;
16519
+ singleton?: boolean;
16520
+ updated_at?: string;
16521
+ };
16522
+ Update: {
16523
+ company_address?: string | null;
16524
+ created_at?: string;
16525
+ id?: string;
16526
+ singleton?: boolean;
16527
+ updated_at?: string;
16528
+ };
16529
+ Relationships: [];
16530
+ };
16531
+ planning_travel_legs: {
16532
+ Row: {
16533
+ after_min: number;
16534
+ after_reason: string | null;
16535
+ after_status: string;
16536
+ after_to_address: string | null;
16537
+ before_from_address: string | null;
16538
+ before_min: number;
16539
+ before_reason: string | null;
16540
+ before_status: string;
16541
+ computed_at: string;
16542
+ computed_end_at: string | null;
16543
+ computed_start_at: string | null;
16544
+ created_at: string;
16545
+ id: string;
16546
+ monteur_id: string;
16547
+ planning_item_id: string;
16548
+ shared_after_item_id: string | null;
16549
+ shared_before_item_id: string | null;
16550
+ updated_at: string;
16551
+ };
16552
+ Insert: {
16553
+ after_min?: number;
16554
+ after_reason?: string | null;
16555
+ after_status?: string;
16556
+ after_to_address?: string | null;
16557
+ before_from_address?: string | null;
16558
+ before_min?: number;
16559
+ before_reason?: string | null;
16560
+ before_status?: string;
16561
+ computed_at?: string;
16562
+ computed_end_at?: string | null;
16563
+ computed_start_at?: string | null;
16564
+ created_at?: string;
16565
+ id?: string;
16566
+ monteur_id: string;
16567
+ planning_item_id: string;
16568
+ shared_after_item_id?: string | null;
16569
+ shared_before_item_id?: string | null;
16570
+ updated_at?: string;
16571
+ };
16572
+ Update: {
16573
+ after_min?: number;
16574
+ after_reason?: string | null;
16575
+ after_status?: string;
16576
+ after_to_address?: string | null;
16577
+ before_from_address?: string | null;
16578
+ before_min?: number;
16579
+ before_reason?: string | null;
16580
+ before_status?: string;
16581
+ computed_at?: string;
16582
+ computed_end_at?: string | null;
16583
+ computed_start_at?: string | null;
16584
+ created_at?: string;
16585
+ id?: string;
16586
+ monteur_id?: string;
16587
+ planning_item_id?: string;
16588
+ shared_after_item_id?: string | null;
16589
+ shared_before_item_id?: string | null;
16590
+ updated_at?: string;
16591
+ };
16592
+ Relationships: [{
16593
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16594
+ columns: ["planning_item_id"];
16595
+ isOneToOne: false;
16596
+ referencedRelation: "planning_items";
16597
+ referencedColumns: ["id"];
16598
+ }, {
16599
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16600
+ columns: ["planning_item_id"];
16601
+ isOneToOne: false;
16602
+ referencedRelation: "planning_overview";
16603
+ referencedColumns: ["id"];
16604
+ }, {
16605
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16606
+ columns: ["shared_after_item_id"];
16607
+ isOneToOne: false;
16608
+ referencedRelation: "planning_items";
16609
+ referencedColumns: ["id"];
16610
+ }, {
16611
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16612
+ columns: ["shared_after_item_id"];
16613
+ isOneToOne: false;
16614
+ referencedRelation: "planning_overview";
16615
+ referencedColumns: ["id"];
16616
+ }, {
16617
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16618
+ columns: ["shared_before_item_id"];
16619
+ isOneToOne: false;
16620
+ referencedRelation: "planning_items";
16621
+ referencedColumns: ["id"];
16622
+ }, {
16623
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16624
+ columns: ["shared_before_item_id"];
16625
+ isOneToOne: false;
16626
+ referencedRelation: "planning_overview";
16627
+ referencedColumns: ["id"];
16628
+ }];
16629
+ };
15853
16630
  price_list_rows: {
15854
16631
  Row: {
15855
16632
  action: string;
@@ -17022,6 +17799,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17022
17799
  };
17023
17800
  product_load_settings: {
17024
17801
  Row: {
17802
+ build: import("./types").Json | null;
17803
+ build_status: string;
17025
17804
  created_at: string;
17026
17805
  id: string;
17027
17806
  is_package: boolean;
@@ -17039,6 +17818,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17039
17818
  updated_at: string;
17040
17819
  };
17041
17820
  Insert: {
17821
+ build?: import("./types").Json | null;
17822
+ build_status?: string;
17042
17823
  created_at?: string;
17043
17824
  id?: string;
17044
17825
  is_package?: boolean;
@@ -17056,6 +17837,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17056
17837
  updated_at?: string;
17057
17838
  };
17058
17839
  Update: {
17840
+ build?: import("./types").Json | null;
17841
+ build_status?: string;
17059
17842
  created_at?: string;
17060
17843
  id?: string;
17061
17844
  is_package?: boolean;
@@ -17125,33 +17908,146 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17125
17908
  };
17126
17909
  Relationships: [];
17127
17910
  };
17128
- products: {
17911
+ product_suppliers: {
17129
17912
  Row: {
17130
- article_number: string | null;
17131
- barcode: string | null;
17132
- batch: string;
17133
- crates_per_layer: number;
17134
17913
  created_at: string;
17135
- custom_fields: import("./types").Json;
17136
- floriday_trade_item_id: string | null;
17137
- fust_type_id: string | null;
17138
17914
  id: string;
17139
- image_url: string | null;
17140
- incoming_quantity: number;
17141
- is_layer: boolean;
17142
- layers_per_cart: number;
17143
- location: string;
17144
- min_quantity: number;
17145
- plant_height_cm: number | null;
17146
- plants_per_crate: number;
17147
- product: string;
17148
- product_type: string;
17149
- purchase_price: number | null;
17150
- quantity: number;
17151
- sale_price: number | null;
17152
- trade_item_key: string | null;
17153
- unit: string;
17154
- updated_at: string;
17915
+ is_preferred: boolean;
17916
+ lead_time_days: number | null;
17917
+ min_order_quantity: number | null;
17918
+ notes: string | null;
17919
+ previous_price_cents: number | null;
17920
+ price_source: string;
17921
+ price_updated_at: string | null;
17922
+ product_id: string;
17923
+ purchase_price_cents: number | null;
17924
+ supplier_article_number: string | null;
17925
+ supplier_id: string;
17926
+ updated_at: string;
17927
+ };
17928
+ Insert: {
17929
+ created_at?: string;
17930
+ id?: string;
17931
+ is_preferred?: boolean;
17932
+ lead_time_days?: number | null;
17933
+ min_order_quantity?: number | null;
17934
+ notes?: string | null;
17935
+ previous_price_cents?: number | null;
17936
+ price_source?: string;
17937
+ price_updated_at?: string | null;
17938
+ product_id: string;
17939
+ purchase_price_cents?: number | null;
17940
+ supplier_article_number?: string | null;
17941
+ supplier_id: string;
17942
+ updated_at?: string;
17943
+ };
17944
+ Update: {
17945
+ created_at?: string;
17946
+ id?: string;
17947
+ is_preferred?: boolean;
17948
+ lead_time_days?: number | null;
17949
+ min_order_quantity?: number | null;
17950
+ notes?: string | null;
17951
+ previous_price_cents?: number | null;
17952
+ price_source?: string;
17953
+ price_updated_at?: string | null;
17954
+ product_id?: string;
17955
+ purchase_price_cents?: number | null;
17956
+ supplier_article_number?: string | null;
17957
+ supplier_id?: string;
17958
+ updated_at?: string;
17959
+ };
17960
+ Relationships: [{
17961
+ foreignKeyName: "product_suppliers_product_id_fkey";
17962
+ columns: ["product_id"];
17963
+ isOneToOne: false;
17964
+ referencedRelation: "logistics_product_dimensions";
17965
+ referencedColumns: ["product_id"];
17966
+ }, {
17967
+ foreignKeyName: "product_suppliers_product_id_fkey";
17968
+ columns: ["product_id"];
17969
+ isOneToOne: false;
17970
+ referencedRelation: "products";
17971
+ referencedColumns: ["id"];
17972
+ }, {
17973
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17974
+ columns: ["supplier_id"];
17975
+ isOneToOne: false;
17976
+ referencedRelation: "suppliers";
17977
+ referencedColumns: ["id"];
17978
+ }];
17979
+ };
17980
+ product_tray_stickers: {
17981
+ Row: {
17982
+ bestand_url: string;
17983
+ bestandsgrootte: number | null;
17984
+ bestandsnaam: string | null;
17985
+ bestandspad: string | null;
17986
+ created_at: string;
17987
+ product_id: string;
17988
+ updated_at: string;
17989
+ };
17990
+ Insert: {
17991
+ bestand_url: string;
17992
+ bestandsgrootte?: number | null;
17993
+ bestandsnaam?: string | null;
17994
+ bestandspad?: string | null;
17995
+ created_at?: string;
17996
+ product_id: string;
17997
+ updated_at?: string;
17998
+ };
17999
+ Update: {
18000
+ bestand_url?: string;
18001
+ bestandsgrootte?: number | null;
18002
+ bestandsnaam?: string | null;
18003
+ bestandspad?: string | null;
18004
+ created_at?: string;
18005
+ product_id?: string;
18006
+ updated_at?: string;
18007
+ };
18008
+ Relationships: [{
18009
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18010
+ columns: ["product_id"];
18011
+ isOneToOne: true;
18012
+ referencedRelation: "logistics_product_dimensions";
18013
+ referencedColumns: ["product_id"];
18014
+ }, {
18015
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18016
+ columns: ["product_id"];
18017
+ isOneToOne: true;
18018
+ referencedRelation: "products";
18019
+ referencedColumns: ["id"];
18020
+ }];
18021
+ };
18022
+ products: {
18023
+ Row: {
18024
+ article_number: string | null;
18025
+ barcode: string | null;
18026
+ batch: string;
18027
+ crates_per_layer: number;
18028
+ created_at: string;
18029
+ custom_fields: import("./types").Json;
18030
+ floriday_packing_confirmed_at: string | null;
18031
+ floriday_packing_source: string | null;
18032
+ floriday_trade_item_id: string | null;
18033
+ fust_type_id: string | null;
18034
+ id: string;
18035
+ image_url: string | null;
18036
+ incoming_quantity: number;
18037
+ is_layer: boolean;
18038
+ layers_per_cart: number;
18039
+ location: string;
18040
+ min_quantity: number;
18041
+ plant_height_cm: number | null;
18042
+ plants_per_crate: number;
18043
+ product: string;
18044
+ product_type: string;
18045
+ purchase_price: number | null;
18046
+ quantity: number;
18047
+ sale_price: number | null;
18048
+ trade_item_key: string | null;
18049
+ unit: string;
18050
+ updated_at: string;
17155
18051
  weight: string | null;
17156
18052
  };
17157
18053
  Insert: {
@@ -17161,6 +18057,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17161
18057
  crates_per_layer?: number;
17162
18058
  created_at?: string;
17163
18059
  custom_fields?: import("./types").Json;
18060
+ floriday_packing_confirmed_at?: string | null;
18061
+ floriday_packing_source?: string | null;
17164
18062
  floriday_trade_item_id?: string | null;
17165
18063
  fust_type_id?: string | null;
17166
18064
  id?: string;
@@ -17189,6 +18087,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17189
18087
  crates_per_layer?: number;
17190
18088
  created_at?: string;
17191
18089
  custom_fields?: import("./types").Json;
18090
+ floriday_packing_confirmed_at?: string | null;
18091
+ floriday_packing_source?: string | null;
17192
18092
  floriday_trade_item_id?: string | null;
17193
18093
  fust_type_id?: string | null;
17194
18094
  id?: string;
@@ -17288,6 +18188,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17288
18188
  id: string;
17289
18189
  is_superadmin: boolean;
17290
18190
  notification_preferences: import("./types").Json;
18191
+ phone: string | null;
17291
18192
  tenant_id: string | null;
17292
18193
  updated_at: string;
17293
18194
  };
@@ -17300,6 +18201,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17300
18201
  id: string;
17301
18202
  is_superadmin?: boolean;
17302
18203
  notification_preferences?: import("./types").Json;
18204
+ phone?: string | null;
17303
18205
  tenant_id?: string | null;
17304
18206
  updated_at?: string;
17305
18207
  };
@@ -17312,6 +18214,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17312
18214
  id?: string;
17313
18215
  is_superadmin?: boolean;
17314
18216
  notification_preferences?: import("./types").Json;
18217
+ phone?: string | null;
17315
18218
  tenant_id?: string | null;
17316
18219
  updated_at?: string;
17317
18220
  };
@@ -17578,9 +18481,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17578
18481
  purchase_order_items: {
17579
18482
  Row: {
17580
18483
  article_number: string | null;
18484
+ cancel_reason: string | null;
18485
+ cancelled_at: string | null;
17581
18486
  created_at: string;
17582
18487
  delivery_date: string | null;
17583
18488
  id: string;
18489
+ incoming_booked: number;
18490
+ line_status: string;
17584
18491
  name: string;
17585
18492
  note: string | null;
17586
18493
  pot_size: string | null;
@@ -17588,6 +18495,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17588
18495
  product_type: string;
17589
18496
  purchase_order_id: string;
17590
18497
  quantity: number;
18498
+ received_at: string | null;
18499
+ received_booked: number;
17591
18500
  supplier_id: string | null;
17592
18501
  supplier_product_id: string | null;
17593
18502
  unit_price_cents: number;
@@ -17595,9 +18504,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17595
18504
  };
17596
18505
  Insert: {
17597
18506
  article_number?: string | null;
18507
+ cancel_reason?: string | null;
18508
+ cancelled_at?: string | null;
17598
18509
  created_at?: string;
17599
18510
  delivery_date?: string | null;
17600
18511
  id?: string;
18512
+ incoming_booked?: number;
18513
+ line_status?: string;
17601
18514
  name?: string;
17602
18515
  note?: string | null;
17603
18516
  pot_size?: string | null;
@@ -17605,6 +18518,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17605
18518
  product_type?: string;
17606
18519
  purchase_order_id: string;
17607
18520
  quantity?: number;
18521
+ received_at?: string | null;
18522
+ received_booked?: number;
17608
18523
  supplier_id?: string | null;
17609
18524
  supplier_product_id?: string | null;
17610
18525
  unit_price_cents?: number;
@@ -17612,9 +18527,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17612
18527
  };
17613
18528
  Update: {
17614
18529
  article_number?: string | null;
18530
+ cancel_reason?: string | null;
18531
+ cancelled_at?: string | null;
17615
18532
  created_at?: string;
17616
18533
  delivery_date?: string | null;
17617
18534
  id?: string;
18535
+ incoming_booked?: number;
18536
+ line_status?: string;
17618
18537
  name?: string;
17619
18538
  note?: string | null;
17620
18539
  pot_size?: string | null;
@@ -17622,6 +18541,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17622
18541
  product_type?: string;
17623
18542
  purchase_order_id?: string;
17624
18543
  quantity?: number;
18544
+ received_at?: string | null;
18545
+ received_booked?: number;
17625
18546
  supplier_id?: string | null;
17626
18547
  supplier_product_id?: string | null;
17627
18548
  unit_price_cents?: number;
@@ -17725,6 +18646,153 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17725
18646
  referencedColumns: ["id"];
17726
18647
  }];
17727
18648
  };
18649
+ purchase_request_events: {
18650
+ Row: {
18651
+ created_at: string;
18652
+ details: import("./types").Json | null;
18653
+ event_type: string;
18654
+ id: string;
18655
+ request_id: string;
18656
+ };
18657
+ Insert: {
18658
+ created_at?: string;
18659
+ details?: import("./types").Json | null;
18660
+ event_type: string;
18661
+ id?: string;
18662
+ request_id: string;
18663
+ };
18664
+ Update: {
18665
+ created_at?: string;
18666
+ details?: import("./types").Json | null;
18667
+ event_type?: string;
18668
+ id?: string;
18669
+ request_id?: string;
18670
+ };
18671
+ Relationships: [{
18672
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18673
+ columns: ["request_id"];
18674
+ isOneToOne: false;
18675
+ referencedRelation: "purchase_requests";
18676
+ referencedColumns: ["id"];
18677
+ }];
18678
+ };
18679
+ purchase_request_responses: {
18680
+ Row: {
18681
+ confirmed_date: string | null;
18682
+ confirmed_price_cents: number | null;
18683
+ confirmed_quantity: number;
18684
+ created_at: string;
18685
+ id: string;
18686
+ not_available: boolean;
18687
+ note: string | null;
18688
+ purchase_order_item_id: string;
18689
+ request_id: string;
18690
+ updated_at: string;
18691
+ };
18692
+ Insert: {
18693
+ confirmed_date?: string | null;
18694
+ confirmed_price_cents?: number | null;
18695
+ confirmed_quantity?: number;
18696
+ created_at?: string;
18697
+ id?: string;
18698
+ not_available?: boolean;
18699
+ note?: string | null;
18700
+ purchase_order_item_id: string;
18701
+ request_id: string;
18702
+ updated_at?: string;
18703
+ };
18704
+ Update: {
18705
+ confirmed_date?: string | null;
18706
+ confirmed_price_cents?: number | null;
18707
+ confirmed_quantity?: number;
18708
+ created_at?: string;
18709
+ id?: string;
18710
+ not_available?: boolean;
18711
+ note?: string | null;
18712
+ purchase_order_item_id?: string;
18713
+ request_id?: string;
18714
+ updated_at?: string;
18715
+ };
18716
+ Relationships: [{
18717
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18718
+ columns: ["purchase_order_item_id"];
18719
+ isOneToOne: false;
18720
+ referencedRelation: "purchase_order_items";
18721
+ referencedColumns: ["id"];
18722
+ }, {
18723
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18724
+ columns: ["request_id"];
18725
+ isOneToOne: false;
18726
+ referencedRelation: "purchase_requests";
18727
+ referencedColumns: ["id"];
18728
+ }];
18729
+ };
18730
+ purchase_requests: {
18731
+ Row: {
18732
+ created_at: string;
18733
+ expires_at: string;
18734
+ first_viewed_at: string | null;
18735
+ id: string;
18736
+ processed_at: string | null;
18737
+ purchase_order_id: string;
18738
+ responded_at: string | null;
18739
+ sent_at: string;
18740
+ status: string;
18741
+ supplier_id: string | null;
18742
+ supplier_name: string;
18743
+ supplier_note: string | null;
18744
+ to_address: string | null;
18745
+ token_hash: string;
18746
+ updated_at: string;
18747
+ };
18748
+ Insert: {
18749
+ created_at?: string;
18750
+ expires_at?: string;
18751
+ first_viewed_at?: string | null;
18752
+ id?: string;
18753
+ processed_at?: string | null;
18754
+ purchase_order_id: string;
18755
+ responded_at?: string | null;
18756
+ sent_at?: string;
18757
+ status?: string;
18758
+ supplier_id?: string | null;
18759
+ supplier_name?: string;
18760
+ supplier_note?: string | null;
18761
+ to_address?: string | null;
18762
+ token_hash: string;
18763
+ updated_at?: string;
18764
+ };
18765
+ Update: {
18766
+ created_at?: string;
18767
+ expires_at?: string;
18768
+ first_viewed_at?: string | null;
18769
+ id?: string;
18770
+ processed_at?: string | null;
18771
+ purchase_order_id?: string;
18772
+ responded_at?: string | null;
18773
+ sent_at?: string;
18774
+ status?: string;
18775
+ supplier_id?: string | null;
18776
+ supplier_name?: string;
18777
+ supplier_note?: string | null;
18778
+ to_address?: string | null;
18779
+ token_hash?: string;
18780
+ updated_at?: string;
18781
+ };
18782
+ Relationships: [{
18783
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18784
+ columns: ["purchase_order_id"];
18785
+ isOneToOne: false;
18786
+ referencedRelation: "purchase_orders";
18787
+ referencedColumns: ["id"];
18788
+ }, {
18789
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18790
+ columns: ["supplier_id"];
18791
+ isOneToOne: false;
18792
+ referencedRelation: "suppliers";
18793
+ referencedColumns: ["id"];
18794
+ }];
18795
+ };
17728
18796
  reception_notifications: {
17729
18797
  Row: {
17730
18798
  booking_id: string | null;
@@ -19055,40 +20123,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19055
20123
  Row: {
19056
20124
  approved_at: string | null;
19057
20125
  approved_by: string | null;
20126
+ contract_hours: number;
19058
20127
  created_at: string;
19059
20128
  employee_id: string;
19060
20129
  id: string;
19061
20130
  locked: boolean;
20131
+ monteur_toelichting: string | null;
19062
20132
  notes: string | null;
20133
+ planned_hours: number;
19063
20134
  status: string;
19064
20135
  submitted_at: string | null;
19065
20136
  updated_at: string;
20137
+ variance_hours: number;
19066
20138
  week_start: string;
19067
20139
  };
19068
20140
  Insert: {
19069
20141
  approved_at?: string | null;
19070
20142
  approved_by?: string | null;
20143
+ contract_hours?: number;
19071
20144
  created_at?: string;
19072
20145
  employee_id: string;
19073
20146
  id?: string;
19074
20147
  locked?: boolean;
20148
+ monteur_toelichting?: string | null;
19075
20149
  notes?: string | null;
20150
+ planned_hours?: number;
19076
20151
  status?: string;
19077
20152
  submitted_at?: string | null;
19078
20153
  updated_at?: string;
20154
+ variance_hours?: number;
19079
20155
  week_start: string;
19080
20156
  };
19081
20157
  Update: {
19082
20158
  approved_at?: string | null;
19083
20159
  approved_by?: string | null;
20160
+ contract_hours?: number;
19084
20161
  created_at?: string;
19085
20162
  employee_id?: string;
19086
20163
  id?: string;
19087
20164
  locked?: boolean;
20165
+ monteur_toelichting?: string | null;
19088
20166
  notes?: string | null;
20167
+ planned_hours?: number;
19089
20168
  status?: string;
19090
20169
  submitted_at?: string | null;
19091
20170
  updated_at?: string;
20171
+ variance_hours?: number;
19092
20172
  week_start?: string;
19093
20173
  };
19094
20174
  Relationships: [{
@@ -19876,6 +20956,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19876
20956
  auto_invoice_enabled: boolean;
19877
20957
  auto_invoice_start_date: string | null;
19878
20958
  auto_invoice_trigger_statuses: string[];
20959
+ auto_send_mode: string | null;
19879
20960
  created_at: string;
19880
20961
  debtor_gl_account: string;
19881
20962
  default_article_code: string | null;
@@ -19904,6 +20985,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19904
20985
  auto_invoice_enabled?: boolean;
19905
20986
  auto_invoice_start_date?: string | null;
19906
20987
  auto_invoice_trigger_statuses?: string[];
20988
+ auto_send_mode?: string | null;
19907
20989
  created_at?: string;
19908
20990
  debtor_gl_account?: string;
19909
20991
  default_article_code?: string | null;
@@ -19932,6 +21014,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19932
21014
  auto_invoice_enabled?: boolean;
19933
21015
  auto_invoice_start_date?: string | null;
19934
21016
  auto_invoice_trigger_statuses?: string[];
21017
+ auto_send_mode?: string | null;
19935
21018
  created_at?: string;
19936
21019
  debtor_gl_account?: string;
19937
21020
  default_article_code?: string | null;
@@ -20375,16 +21458,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20375
21458
  Row: {
20376
21459
  active_environment: string;
20377
21460
  id: number;
21461
+ public_base_url: string | null;
20378
21462
  updated_at: string;
20379
21463
  };
20380
21464
  Insert: {
20381
21465
  active_environment?: string;
20382
21466
  id?: number;
21467
+ public_base_url?: string | null;
20383
21468
  updated_at?: string;
20384
21469
  };
20385
21470
  Update: {
20386
21471
  active_environment?: string;
20387
21472
  id?: number;
21473
+ public_base_url?: string | null;
20388
21474
  updated_at?: string;
20389
21475
  };
20390
21476
  Relationships: [];
@@ -20422,6 +21508,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20422
21508
  referencedColumns: ["id"];
20423
21509
  }];
20424
21510
  };
21511
+ uren_beschikbare_dagen: {
21512
+ Row: {
21513
+ bron: string;
21514
+ created_at: string;
21515
+ datum: string;
21516
+ eind_tijd: string | null;
21517
+ half_hour_slots: number[];
21518
+ id: string;
21519
+ monteur_id: string;
21520
+ start_tijd: string | null;
21521
+ updated_at: string;
21522
+ uren: number;
21523
+ };
21524
+ Insert: {
21525
+ bron?: string;
21526
+ created_at?: string;
21527
+ datum: string;
21528
+ eind_tijd?: string | null;
21529
+ half_hour_slots?: number[];
21530
+ id?: string;
21531
+ monteur_id: string;
21532
+ start_tijd?: string | null;
21533
+ updated_at?: string;
21534
+ uren?: number;
21535
+ };
21536
+ Update: {
21537
+ bron?: string;
21538
+ created_at?: string;
21539
+ datum?: string;
21540
+ eind_tijd?: string | null;
21541
+ half_hour_slots?: number[];
21542
+ id?: string;
21543
+ monteur_id?: string;
21544
+ start_tijd?: string | null;
21545
+ updated_at?: string;
21546
+ uren?: number;
21547
+ };
21548
+ Relationships: [];
21549
+ };
20425
21550
  uren_cao_profiles: {
20426
21551
  Row: {
20427
21552
  break_minutes: number | null;
@@ -20560,26 +21685,155 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20560
21685
  };
20561
21686
  Relationships: [];
20562
21687
  };
20563
- uren_settings: {
21688
+ uren_maandafsluitingen: {
20564
21689
  Row: {
20565
- break_minutes: number;
21690
+ afgesloten_at: string | null;
21691
+ afgesloten_door: string | null;
21692
+ contract_minuten: number;
21693
+ correctie_reden: string | null;
20566
21694
  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;
21695
+ gecorrigeerd_at: string | null;
21696
+ gecorrigeerd_door: string | null;
21697
+ gewerkte_minuten: number;
21698
+ id: string;
21699
+ maand: string;
21700
+ min_minuten: number;
21701
+ monteur_id: string;
21702
+ netto_verschil_minuten: number;
21703
+ normaal_uitbetaald_minuten: number;
21704
+ omgezet_vakantie_minuten: number;
21705
+ overdracht_vorige_minuten: number;
21706
+ overuren_minuten: number;
21707
+ plus_minuten: number;
21708
+ rest_overuren_minuten: number;
21709
+ status: string;
21710
+ totaal_uitbetaald_minuten: number;
20573
21711
  updated_at: string;
20574
- weekly_threshold_hours: number;
20575
- workday_end: string;
20576
- workday_start: string;
21712
+ vakantie_uren_bijgeschreven: number;
20577
21713
  };
20578
21714
  Insert: {
20579
- break_minutes?: number;
21715
+ afgesloten_at?: string | null;
21716
+ afgesloten_door?: string | null;
21717
+ contract_minuten?: number;
21718
+ correctie_reden?: string | null;
20580
21719
  created_at?: string;
20581
- daily_threshold_hours?: number;
20582
- id?: boolean;
21720
+ gecorrigeerd_at?: string | null;
21721
+ gecorrigeerd_door?: string | null;
21722
+ gewerkte_minuten?: number;
21723
+ id?: string;
21724
+ maand: string;
21725
+ min_minuten?: number;
21726
+ monteur_id: string;
21727
+ netto_verschil_minuten?: number;
21728
+ normaal_uitbetaald_minuten?: number;
21729
+ omgezet_vakantie_minuten?: number;
21730
+ overdracht_vorige_minuten?: number;
21731
+ overuren_minuten?: number;
21732
+ plus_minuten?: number;
21733
+ rest_overuren_minuten?: number;
21734
+ status?: string;
21735
+ totaal_uitbetaald_minuten?: number;
21736
+ updated_at?: string;
21737
+ vakantie_uren_bijgeschreven?: number;
21738
+ };
21739
+ Update: {
21740
+ afgesloten_at?: string | null;
21741
+ afgesloten_door?: string | null;
21742
+ contract_minuten?: number;
21743
+ correctie_reden?: string | null;
21744
+ created_at?: string;
21745
+ gecorrigeerd_at?: string | null;
21746
+ gecorrigeerd_door?: string | null;
21747
+ gewerkte_minuten?: number;
21748
+ id?: string;
21749
+ maand?: string;
21750
+ min_minuten?: number;
21751
+ monteur_id?: string;
21752
+ netto_verschil_minuten?: number;
21753
+ normaal_uitbetaald_minuten?: number;
21754
+ omgezet_vakantie_minuten?: number;
21755
+ overdracht_vorige_minuten?: number;
21756
+ overuren_minuten?: number;
21757
+ plus_minuten?: number;
21758
+ rest_overuren_minuten?: number;
21759
+ status?: string;
21760
+ totaal_uitbetaald_minuten?: number;
21761
+ updated_at?: string;
21762
+ vakantie_uren_bijgeschreven?: number;
21763
+ };
21764
+ Relationships: [];
21765
+ };
21766
+ uren_overuren_verklaringen: {
21767
+ Row: {
21768
+ beoordeeld_door: string | null;
21769
+ beoordeeld_op: string | null;
21770
+ created_at: string;
21771
+ datum: string;
21772
+ eind_tijd: string | null;
21773
+ id: string;
21774
+ ingediend_at: string;
21775
+ monteur_id: string;
21776
+ overuren: number;
21777
+ reden_afkeur: string | null;
21778
+ start_tijd: string | null;
21779
+ status: string;
21780
+ toelichting: string;
21781
+ updated_at: string;
21782
+ };
21783
+ Insert: {
21784
+ beoordeeld_door?: string | null;
21785
+ beoordeeld_op?: string | null;
21786
+ created_at?: string;
21787
+ datum: string;
21788
+ eind_tijd?: string | null;
21789
+ id?: string;
21790
+ ingediend_at?: string;
21791
+ monteur_id: string;
21792
+ overuren: number;
21793
+ reden_afkeur?: string | null;
21794
+ start_tijd?: string | null;
21795
+ status?: string;
21796
+ toelichting: string;
21797
+ updated_at?: string;
21798
+ };
21799
+ Update: {
21800
+ beoordeeld_door?: string | null;
21801
+ beoordeeld_op?: string | null;
21802
+ created_at?: string;
21803
+ datum?: string;
21804
+ eind_tijd?: string | null;
21805
+ id?: string;
21806
+ ingediend_at?: string;
21807
+ monteur_id?: string;
21808
+ overuren?: number;
21809
+ reden_afkeur?: string | null;
21810
+ start_tijd?: string | null;
21811
+ status?: string;
21812
+ toelichting?: string;
21813
+ updated_at?: string;
21814
+ };
21815
+ Relationships: [];
21816
+ };
21817
+ uren_settings: {
21818
+ Row: {
21819
+ break_minutes: number;
21820
+ created_at: string;
21821
+ daily_threshold_hours: number;
21822
+ id: boolean;
21823
+ include_travel: boolean;
21824
+ min_occupancy_monteurs: number;
21825
+ ov02_percentage: number;
21826
+ ov03_percentage: number;
21827
+ updated_at: string;
21828
+ weekly_threshold_hours: number;
21829
+ workday_end: string;
21830
+ workday_start: string;
21831
+ };
21832
+ Insert: {
21833
+ break_minutes?: number;
21834
+ created_at?: string;
21835
+ daily_threshold_hours?: number;
21836
+ id?: boolean;
20583
21837
  include_travel?: boolean;
20584
21838
  min_occupancy_monteurs?: number;
20585
21839
  ov02_percentage?: number;
@@ -20605,6 +21859,75 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20605
21859
  };
20606
21860
  Relationships: [];
20607
21861
  };
21862
+ uren_standaardweek: {
21863
+ Row: {
21864
+ created_at: string;
21865
+ eind_slot: number;
21866
+ id: string;
21867
+ monteur_id: string;
21868
+ start_slot: number;
21869
+ updated_at: string;
21870
+ weekdag: number;
21871
+ };
21872
+ Insert: {
21873
+ created_at?: string;
21874
+ eind_slot: number;
21875
+ id?: string;
21876
+ monteur_id: string;
21877
+ start_slot: number;
21878
+ updated_at?: string;
21879
+ weekdag: number;
21880
+ };
21881
+ Update: {
21882
+ created_at?: string;
21883
+ eind_slot?: number;
21884
+ id?: string;
21885
+ monteur_id?: string;
21886
+ start_slot?: number;
21887
+ updated_at?: string;
21888
+ weekdag?: number;
21889
+ };
21890
+ Relationships: [];
21891
+ };
21892
+ uren_standaardweek_wijzigingen: {
21893
+ Row: {
21894
+ beoordeeld_door: string | null;
21895
+ beoordeeld_op: string | null;
21896
+ created_at: string;
21897
+ huidig: import("./types").Json;
21898
+ id: string;
21899
+ monteur_id: string;
21900
+ reden_afkeur: string | null;
21901
+ status: string;
21902
+ updated_at: string;
21903
+ voorstel: import("./types").Json;
21904
+ };
21905
+ Insert: {
21906
+ beoordeeld_door?: string | null;
21907
+ beoordeeld_op?: string | null;
21908
+ created_at?: string;
21909
+ huidig?: import("./types").Json;
21910
+ id?: string;
21911
+ monteur_id: string;
21912
+ reden_afkeur?: string | null;
21913
+ status?: string;
21914
+ updated_at?: string;
21915
+ voorstel: import("./types").Json;
21916
+ };
21917
+ Update: {
21918
+ beoordeeld_door?: string | null;
21919
+ beoordeeld_op?: string | null;
21920
+ created_at?: string;
21921
+ huidig?: import("./types").Json;
21922
+ id?: string;
21923
+ monteur_id?: string;
21924
+ reden_afkeur?: string | null;
21925
+ status?: string;
21926
+ updated_at?: string;
21927
+ voorstel?: import("./types").Json;
21928
+ };
21929
+ Relationships: [];
21930
+ };
20608
21931
  uren_tarieven: {
20609
21932
  Row: {
20610
21933
  created_at: string;
@@ -20689,6 +22012,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20689
22012
  };
20690
22013
  Relationships: [];
20691
22014
  };
22015
+ uren_tijd_spiegel: {
22016
+ Row: {
22017
+ created_at: string;
22018
+ id: string;
22019
+ time_log_id: string;
22020
+ werkbon_time_log_id: string;
22021
+ };
22022
+ Insert: {
22023
+ created_at?: string;
22024
+ id?: string;
22025
+ time_log_id: string;
22026
+ werkbon_time_log_id: string;
22027
+ };
22028
+ Update: {
22029
+ created_at?: string;
22030
+ id?: string;
22031
+ time_log_id?: string;
22032
+ werkbon_time_log_id?: string;
22033
+ };
22034
+ Relationships: [{
22035
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22036
+ columns: ["time_log_id"];
22037
+ isOneToOne: true;
22038
+ referencedRelation: "time_logs";
22039
+ referencedColumns: ["id"];
22040
+ }, {
22041
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22042
+ columns: ["werkbon_time_log_id"];
22043
+ isOneToOne: true;
22044
+ referencedRelation: "werkbon_time_logs";
22045
+ referencedColumns: ["id"];
22046
+ }];
22047
+ };
20692
22048
  uren_weekstaten: {
20693
22049
  Row: {
20694
22050
  approved_at: string | null;
@@ -20731,6 +22087,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20731
22087
  };
20732
22088
  Relationships: [];
20733
22089
  };
22090
+ uren_werktijd_voorkeuren: {
22091
+ Row: {
22092
+ created_at: string;
22093
+ eind_slot: number;
22094
+ id: string;
22095
+ monteur_id: string;
22096
+ start_slot: number;
22097
+ updated_at: string;
22098
+ };
22099
+ Insert: {
22100
+ created_at?: string;
22101
+ eind_slot?: number;
22102
+ id?: string;
22103
+ monteur_id: string;
22104
+ start_slot?: number;
22105
+ updated_at?: string;
22106
+ };
22107
+ Update: {
22108
+ created_at?: string;
22109
+ eind_slot?: number;
22110
+ id?: string;
22111
+ monteur_id?: string;
22112
+ start_slot?: number;
22113
+ updated_at?: string;
22114
+ };
22115
+ Relationships: [];
22116
+ };
20734
22117
  user_module_permissions: {
20735
22118
  Row: {
20736
22119
  created_at: string;
@@ -20788,6 +22171,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20788
22171
  referencedColumns: ["id"];
20789
22172
  }];
20790
22173
  };
22174
+ vakantie_uitbetalingen: {
22175
+ Row: {
22176
+ created_at: string;
22177
+ created_by: string | null;
22178
+ days: number;
22179
+ id: string;
22180
+ note: string | null;
22181
+ updated_at: string;
22182
+ user_id: string;
22183
+ year: number;
22184
+ };
22185
+ Insert: {
22186
+ created_at?: string;
22187
+ created_by?: string | null;
22188
+ days: number;
22189
+ id?: string;
22190
+ note?: string | null;
22191
+ updated_at?: string;
22192
+ user_id: string;
22193
+ year?: number;
22194
+ };
22195
+ Update: {
22196
+ created_at?: string;
22197
+ created_by?: string | null;
22198
+ days?: number;
22199
+ id?: string;
22200
+ note?: string | null;
22201
+ updated_at?: string;
22202
+ user_id?: string;
22203
+ year?: number;
22204
+ };
22205
+ Relationships: [{
22206
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22207
+ columns: ["created_by"];
22208
+ isOneToOne: false;
22209
+ referencedRelation: "profiles";
22210
+ referencedColumns: ["id"];
22211
+ }, {
22212
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22213
+ columns: ["user_id"];
22214
+ isOneToOne: false;
22215
+ referencedRelation: "profiles";
22216
+ referencedColumns: ["id"];
22217
+ }];
22218
+ };
20791
22219
  van_inventories: {
20792
22220
  Row: {
20793
22221
  barcode: string | null;
@@ -21662,10 +23090,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21662
23090
  Row: {
21663
23091
  article_number: string | null;
21664
23092
  artikel_id: string | null;
23093
+ cost_price_cents: number;
21665
23094
  created_at: string;
21666
23095
  gtin: string | null;
21667
23096
  id: string;
21668
23097
  manufacturer: string | null;
23098
+ margin_percent: number | null;
21669
23099
  omschrijving: string;
21670
23100
  package_id: string;
21671
23101
  price_synced_at: string | null;
@@ -21680,10 +23110,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21680
23110
  Insert: {
21681
23111
  article_number?: string | null;
21682
23112
  artikel_id?: string | null;
23113
+ cost_price_cents?: number;
21683
23114
  created_at?: string;
21684
23115
  gtin?: string | null;
21685
23116
  id?: string;
21686
23117
  manufacturer?: string | null;
23118
+ margin_percent?: number | null;
21687
23119
  omschrijving: string;
21688
23120
  package_id: string;
21689
23121
  price_synced_at?: string | null;
@@ -21698,10 +23130,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21698
23130
  Update: {
21699
23131
  article_number?: string | null;
21700
23132
  artikel_id?: string | null;
23133
+ cost_price_cents?: number;
21701
23134
  created_at?: string;
21702
23135
  gtin?: string | null;
21703
23136
  id?: string;
21704
23137
  manufacturer?: string | null;
23138
+ margin_percent?: number | null;
21705
23139
  omschrijving?: string;
21706
23140
  package_id?: string;
21707
23141
  price_synced_at?: string | null;
@@ -21784,7 +23218,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21784
23218
  created_at: string;
21785
23219
  default_quantity: number;
21786
23220
  description: string | null;
21787
- duration_minutes: number | null;
23221
+ duration_minutes: number;
21788
23222
  id: string;
21789
23223
  mandaat_type: string | null;
21790
23224
  name: string;
@@ -21801,7 +23235,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21801
23235
  created_at?: string;
21802
23236
  default_quantity?: number;
21803
23237
  description?: string | null;
21804
- duration_minutes?: number | null;
23238
+ duration_minutes?: number;
21805
23239
  id?: string;
21806
23240
  mandaat_type?: string | null;
21807
23241
  name: string;
@@ -21818,7 +23252,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21818
23252
  created_at?: string;
21819
23253
  default_quantity?: number;
21820
23254
  description?: string | null;
21821
- duration_minutes?: number | null;
23255
+ duration_minutes?: number;
21822
23256
  id?: string;
21823
23257
  mandaat_type?: string | null;
21824
23258
  name?: string;
@@ -22066,6 +23500,78 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22066
23500
  referencedColumns: ["id"];
22067
23501
  }];
22068
23502
  };
23503
+ werkbon_voorstellen: {
23504
+ Row: {
23505
+ bron_werkbon_id: string;
23506
+ budget_mandate_cents: number;
23507
+ created_at: string;
23508
+ created_by: string;
23509
+ customer_id: string | null;
23510
+ id: string;
23511
+ payload: import("./types").Json;
23512
+ reden: string | null;
23513
+ status: string;
23514
+ updated_at: string;
23515
+ verwerkt_door: string | null;
23516
+ verwerkt_op: string | null;
23517
+ werkbon_id: string | null;
23518
+ };
23519
+ Insert: {
23520
+ bron_werkbon_id: string;
23521
+ budget_mandate_cents?: number;
23522
+ created_at?: string;
23523
+ created_by?: string;
23524
+ customer_id?: string | null;
23525
+ id?: string;
23526
+ payload?: import("./types").Json;
23527
+ reden?: string | null;
23528
+ status?: string;
23529
+ updated_at?: string;
23530
+ verwerkt_door?: string | null;
23531
+ verwerkt_op?: string | null;
23532
+ werkbon_id?: string | null;
23533
+ };
23534
+ Update: {
23535
+ bron_werkbon_id?: string;
23536
+ budget_mandate_cents?: number;
23537
+ created_at?: string;
23538
+ created_by?: string;
23539
+ customer_id?: string | null;
23540
+ id?: string;
23541
+ payload?: import("./types").Json;
23542
+ reden?: string | null;
23543
+ status?: string;
23544
+ updated_at?: string;
23545
+ verwerkt_door?: string | null;
23546
+ verwerkt_op?: string | null;
23547
+ werkbon_id?: string | null;
23548
+ };
23549
+ Relationships: [{
23550
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23551
+ columns: ["bron_werkbon_id"];
23552
+ isOneToOne: false;
23553
+ referencedRelation: "werkbonnen";
23554
+ referencedColumns: ["id"];
23555
+ }, {
23556
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23557
+ columns: ["bron_werkbon_id"];
23558
+ isOneToOne: false;
23559
+ referencedRelation: "wo_overview";
23560
+ referencedColumns: ["id"];
23561
+ }, {
23562
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23563
+ columns: ["werkbon_id"];
23564
+ isOneToOne: false;
23565
+ referencedRelation: "werkbonnen";
23566
+ referencedColumns: ["id"];
23567
+ }, {
23568
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23569
+ columns: ["werkbon_id"];
23570
+ isOneToOne: false;
23571
+ referencedRelation: "wo_overview";
23572
+ referencedColumns: ["id"];
23573
+ }];
23574
+ };
22069
23575
  werkbonnen: {
22070
23576
  Row: {
22071
23577
  assigned_user_id: string | null;
@@ -22673,6 +24179,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22673
24179
  };
22674
24180
  Relationships: [];
22675
24181
  };
24182
+ logistics_packing_diff: {
24183
+ Row: {
24184
+ dev_key: string | null;
24185
+ floriday_packing: import("./types").Json | null;
24186
+ local_packing: import("./types").Json | null;
24187
+ order_id: string | null;
24188
+ order_item_id: string | null;
24189
+ order_number: string | null;
24190
+ product_id: string | null;
24191
+ product_name: string | null;
24192
+ scope: string | null;
24193
+ trade_item_id: string | null;
24194
+ };
24195
+ Relationships: [];
24196
+ };
22676
24197
  logistics_product_dimensions: {
22677
24198
  Row: {
22678
24199
  dimension_source: string | null;
@@ -23291,6 +24812,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23291
24812
  };
23292
24813
  Returns: undefined;
23293
24814
  };
24815
+ _wo_is_planner: {
24816
+ Args: never;
24817
+ Returns: boolean;
24818
+ };
23294
24819
  afh_city_code: {
23295
24820
  Args: {
23296
24821
  _city: string;
@@ -23901,10 +25426,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23901
25426
  };
23902
25427
  Returns: number;
23903
25428
  };
23904
- count_distinct_regulatory_products: {
25429
+ control_mark_carts_delivered_detail: {
25430
+ Args: {
25431
+ p_carts: import("./types").Json;
25432
+ };
25433
+ Returns: {
25434
+ cart_index: number;
25435
+ frozen: boolean;
25436
+ message: string;
25437
+ order_id: string;
25438
+ order_source: string;
25439
+ outcome: string;
25440
+ }[];
25441
+ };
25442
+ count_distinct_regulatory_products: {
23905
25443
  Args: never;
23906
25444
  Returns: number;
23907
25445
  };
25446
+ create_order_from_public_offer: {
25447
+ Args: {
25448
+ p_carrier_id?: string;
25449
+ p_delivery_date?: string;
25450
+ p_delivery_garden_id?: string;
25451
+ p_offer_order_id: string;
25452
+ };
25453
+ Returns: import("./types").Json;
25454
+ };
23908
25455
  current_monteur_id: {
23909
25456
  Args: never;
23910
25457
  Returns: string;
@@ -24381,6 +25928,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24381
25928
  };
24382
25929
  Returns: number;
24383
25930
  };
25931
+ get_product_stock: {
25932
+ Args: {
25933
+ p_product_id: string;
25934
+ };
25935
+ Returns: {
25936
+ connection_id: string;
25937
+ incoming_stock: number;
25938
+ minimum_stock: number;
25939
+ notes: string;
25940
+ physical_stock: number;
25941
+ product_id: string;
25942
+ reserved_stock: number;
25943
+ trade_item_key: string;
25944
+ updated_at: string;
25945
+ }[];
25946
+ };
24384
25947
  get_room_busy_windows: {
24385
25948
  Args: {
24386
25949
  p_from: string;
@@ -24685,13 +26248,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24685
26248
  };
24686
26249
  Returns: import("./types").Json;
24687
26250
  };
26251
+ inkoop_cancel_line: {
26252
+ Args: {
26253
+ _item_id: string;
26254
+ _reason: string;
26255
+ };
26256
+ Returns: string;
26257
+ };
26258
+ inkoop_get_supplier_request: {
26259
+ Args: {
26260
+ _token: string;
26261
+ };
26262
+ Returns: import("./types").Json;
26263
+ };
26264
+ inkoop_hash_token: {
26265
+ Args: {
26266
+ _token: string;
26267
+ };
26268
+ Returns: string;
26269
+ };
26270
+ inkoop_html_escape: {
26271
+ Args: {
26272
+ _t: string;
26273
+ };
26274
+ Returns: string;
26275
+ };
26276
+ inkoop_list_artikelen: {
26277
+ Args: never;
26278
+ Returns: {
26279
+ article_number: string;
26280
+ barcode: string;
26281
+ id: string;
26282
+ incoming_quantity: number;
26283
+ is_layer: boolean;
26284
+ location: string;
26285
+ min_quantity: number;
26286
+ preferred_supplier_name: string;
26287
+ product: string;
26288
+ product_type: string;
26289
+ purchase_price: number;
26290
+ quantity: number;
26291
+ sale_price: number;
26292
+ supplier_count: number;
26293
+ unit: string;
26294
+ }[];
26295
+ };
24688
26296
  inkoop_next_order_number: {
24689
26297
  Args: never;
24690
26298
  Returns: string;
24691
26299
  };
26300
+ inkoop_process_request: {
26301
+ Args: {
26302
+ _request_id: string;
26303
+ };
26304
+ Returns: undefined;
26305
+ };
24692
26306
  inkoop_send_order: {
24693
26307
  Args: {
26308
+ _base_url?: string;
24694
26309
  _order_id: string;
26310
+ _resend?: boolean;
24695
26311
  };
24696
26312
  Returns: {
24697
26313
  outbox_id: string;
@@ -24699,6 +26315,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24699
26315
  to_address: string;
24700
26316
  }[];
24701
26317
  };
26318
+ inkoop_set_preferred_supplier: {
26319
+ Args: {
26320
+ _product_id: string;
26321
+ _supplier_id: string;
26322
+ };
26323
+ Returns: undefined;
26324
+ };
26325
+ inkoop_stock_key: {
26326
+ Args: {
26327
+ p_product_id: string;
26328
+ };
26329
+ Returns: string;
26330
+ };
26331
+ inkoop_submit_supplier_response: {
26332
+ Args: {
26333
+ _lines: import("./types").Json;
26334
+ _note?: string;
26335
+ _token: string;
26336
+ };
26337
+ Returns: import("./types").Json;
26338
+ };
26339
+ inkoop_sync_item_stock: {
26340
+ Args: {
26341
+ p_item_id: string;
26342
+ };
26343
+ Returns: undefined;
26344
+ };
24702
26345
  instructie_get: {
24703
26346
  Args: {
24704
26347
  _sleutel: string;
@@ -24718,6 +26361,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24718
26361
  };
24719
26362
  Returns: number;
24720
26363
  };
26364
+ invoice_branding_snapshot: {
26365
+ Args: never;
26366
+ Returns: import("./types").Json;
26367
+ };
24721
26368
  invoice_create_from_source: {
24722
26369
  Args: {
24723
26370
  _payload?: import("./types").Json;
@@ -24752,12 +26399,41 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24752
26399
  };
24753
26400
  Returns: import("./types").Json;
24754
26401
  };
26402
+ invoice_mark_sent: {
26403
+ Args: {
26404
+ _invoice_id: string;
26405
+ _to: string;
26406
+ };
26407
+ Returns: undefined;
26408
+ };
26409
+ invoice_peek_next_number: {
26410
+ Args: never;
26411
+ Returns: string;
26412
+ };
26413
+ invoice_ready_work_orders: {
26414
+ Args: {
26415
+ _limit?: number;
26416
+ };
26417
+ Returns: import("./types").Json;
26418
+ };
24755
26419
  invoice_recalc_totals: {
24756
26420
  Args: {
24757
26421
  _invoice_id: string;
24758
26422
  };
24759
26423
  Returns: import("./types").Json;
24760
26424
  };
26425
+ invoice_save_branding_settings: {
26426
+ Args: {
26427
+ _payload: import("./types").Json;
26428
+ };
26429
+ Returns: import("./types").Json;
26430
+ };
26431
+ invoice_set_email_purpose: {
26432
+ Args: {
26433
+ _purpose: string;
26434
+ };
26435
+ Returns: string;
26436
+ };
24761
26437
  invoice_source_lines: {
24762
26438
  Args: {
24763
26439
  _source_id: string;
@@ -24765,6 +26441,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24765
26441
  };
24766
26442
  Returns: import("./types").Json;
24767
26443
  };
26444
+ invoice_update_full: {
26445
+ Args: {
26446
+ _invoice_id: string;
26447
+ _payload: import("./types").Json;
26448
+ };
26449
+ Returns: import("./types").Json;
26450
+ };
26451
+ invoice_work_order_locked: {
26452
+ Args: {
26453
+ _werkbon_id: string;
26454
+ };
26455
+ Returns: import("./types").Json;
26456
+ };
24768
26457
  is_authenticated: {
24769
26458
  Args: never;
24770
26459
  Returns: boolean;
@@ -24813,6 +26502,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24813
26502
  };
24814
26503
  Returns: boolean;
24815
26504
  };
26505
+ layout_print_document: {
26506
+ Args: {
26507
+ _documentnaam: string;
26508
+ _documenttype: string;
26509
+ _herkomst?: string;
26510
+ _idempotentie_sleutel?: string;
26511
+ _is_herprint?: boolean;
26512
+ _kopieen?: number;
26513
+ _layout_id?: string;
26514
+ _payload?: import("./types").Json;
26515
+ _pdf_base64?: string;
26516
+ _pdf_url?: string;
26517
+ _print_plek_id?: string;
26518
+ _werkplek?: string;
26519
+ };
26520
+ Returns: {
26521
+ bestaand: boolean;
26522
+ job_id: string;
26523
+ printer_id: string;
26524
+ }[];
26525
+ };
24816
26526
  list_medewerkers: {
24817
26527
  Args: never;
24818
26528
  Returns: {
@@ -24997,6 +26707,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24997
26707
  };
24998
26708
  Returns: import("./types").Json;
24999
26709
  };
26710
+ logistics_buffer_decision_for_settings: {
26711
+ Args: {
26712
+ p_order: import("./types").Json;
26713
+ p_settings: import("./types").Json;
26714
+ p_user_id?: string;
26715
+ };
26716
+ Returns: import("./types").Json;
26717
+ };
25000
26718
  logistics_buffer_detach_late_orders: {
25001
26719
  Args: {
25002
26720
  p_buffer?: string;
@@ -25030,6 +26748,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25030
26748
  };
25031
26749
  Returns: string;
25032
26750
  };
26751
+ logistics_buffer_payload: {
26752
+ Args: {
26753
+ p_order_id: string;
26754
+ };
26755
+ Returns: import("./types").Json;
26756
+ };
25033
26757
  logistics_buffer_simulate: {
25034
26758
  Args: {
25035
26759
  p_orders?: import("./types").Json;
@@ -25076,6 +26800,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25076
26800
  };
25077
26801
  Returns: number;
25078
26802
  };
26803
+ logistics_cart_barcode_opschonen: {
26804
+ Args: {
26805
+ p_portie?: number;
26806
+ };
26807
+ Returns: import("./types").Json;
26808
+ };
25079
26809
  logistics_cart_barcode_value: {
25080
26810
  Args: {
25081
26811
  _cart_id: string;
@@ -25088,6 +26818,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25088
26818
  };
25089
26819
  Returns: string;
25090
26820
  };
26821
+ logistics_cart_coverage_check: {
26822
+ Args: never;
26823
+ Returns: import("./types").Json;
26824
+ };
25091
26825
  logistics_cart_handled: {
25092
26826
  Args: {
25093
26827
  p_cart_index: number;
@@ -25331,6 +27065,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25331
27065
  isSetofReturn: false;
25332
27066
  };
25333
27067
  };
27068
+ logistics_cleanup_duplicate_order_lines: {
27069
+ Args: {
27070
+ p_limit?: number;
27071
+ p_order_id: string;
27072
+ };
27073
+ Returns: import("./types").Json;
27074
+ };
27075
+ logistics_cleanup_history: {
27076
+ Args: {
27077
+ p_limit?: number;
27078
+ };
27079
+ Returns: import("./types").Json;
27080
+ };
25334
27081
  logistics_cleanup_orphan_print_jobs: {
25335
27082
  Args: never;
25336
27083
  Returns: import("./types").Json;
@@ -25478,6 +27225,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25478
27225
  };
25479
27226
  Returns: import("./types").Json;
25480
27227
  };
27228
+ logistics_control_scan_print_own: {
27229
+ Args: {
27230
+ p_is_herprint?: boolean;
27231
+ p_scan_id: string;
27232
+ };
27233
+ Returns: import("./types").Json;
27234
+ };
25481
27235
  logistics_control_scan_retry: {
25482
27236
  Args: {
25483
27237
  _id: string;
@@ -25488,6 +27242,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25488
27242
  Args: never;
25489
27243
  Returns: import("./types").Json;
25490
27244
  };
27245
+ logistics_cron_health: {
27246
+ Args: never;
27247
+ Returns: import("./types").Json;
27248
+ };
25491
27249
  logistics_day_windows: {
25492
27250
  Args: {
25493
27251
  p_day: string;
@@ -25837,6 +27595,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25837
27595
  };
25838
27596
  Returns: number;
25839
27597
  };
27598
+ logistics_merge_decision: {
27599
+ Args: {
27600
+ p_lines: import("./types").Json;
27601
+ };
27602
+ Returns: import("./types").Json;
27603
+ };
25840
27604
  logistics_merge_floriday_lines: {
25841
27605
  Args: {
25842
27606
  p_order_id: string;
@@ -25883,6 +27647,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25883
27647
  Args: never;
25884
27648
  Returns: string;
25885
27649
  };
27650
+ logistics_order_backlog_info: {
27651
+ Args: {
27652
+ p_order_id: string;
27653
+ };
27654
+ Returns: import("./types").Json;
27655
+ };
25886
27656
  logistics_order_cart_approval: {
25887
27657
  Args: {
25888
27658
  _order_ref: string;
@@ -25917,6 +27687,50 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25917
27687
  };
25918
27688
  Returns: boolean;
25919
27689
  };
27690
+ logistics_order_finalize_enqueue: {
27691
+ Args: {
27692
+ p_order_id: string;
27693
+ p_reason?: string;
27694
+ };
27695
+ Returns: undefined;
27696
+ };
27697
+ logistics_order_finalize_overview: {
27698
+ Args: never;
27699
+ Returns: {
27700
+ bezig: number;
27701
+ laatst_afgerond: string;
27702
+ laatste_fout: string;
27703
+ mislukt: number;
27704
+ oudste_wachttijd_seconden: number;
27705
+ wachtend: number;
27706
+ }[];
27707
+ };
27708
+ logistics_order_finalize_prune: {
27709
+ Args: {
27710
+ p_days?: number;
27711
+ };
27712
+ Returns: number;
27713
+ };
27714
+ logistics_order_finalize_reconcile: {
27715
+ Args: {
27716
+ p_days?: number;
27717
+ p_limit?: number;
27718
+ };
27719
+ Returns: number;
27720
+ };
27721
+ logistics_order_finalize_retry: {
27722
+ Args: {
27723
+ p_order_id: string;
27724
+ };
27725
+ Returns: boolean;
27726
+ };
27727
+ logistics_order_finalize_run: {
27728
+ Args: {
27729
+ p_lease_seconds?: number;
27730
+ p_limit?: number;
27731
+ };
27732
+ Returns: number;
27733
+ };
25920
27734
  logistics_order_frozen: {
25921
27735
  Args: {
25922
27736
  p_order_id: string;
@@ -25929,6 +27743,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25929
27743
  };
25930
27744
  Returns: boolean;
25931
27745
  };
27746
+ logistics_order_is_backlog: {
27747
+ Args: {
27748
+ p_order_id: string;
27749
+ };
27750
+ Returns: boolean;
27751
+ };
25932
27752
  logistics_order_is_topick: {
25933
27753
  Args: {
25934
27754
  p_order_id: string;
@@ -25936,6 +27756,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25936
27756
  };
25937
27757
  Returns: boolean;
25938
27758
  };
27759
+ logistics_order_line_duplicates: {
27760
+ Args: {
27761
+ p_order_id: string;
27762
+ };
27763
+ Returns: import("./types").Json;
27764
+ };
25939
27765
  logistics_order_merge_key: {
25940
27766
  Args: {
25941
27767
  p_group_key: string;
@@ -25979,6 +27805,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25979
27805
  };
25980
27806
  Returns: boolean;
25981
27807
  };
27808
+ logistics_packing_autofix: {
27809
+ Args: {
27810
+ p_limit?: number;
27811
+ };
27812
+ Returns: number;
27813
+ };
27814
+ logistics_packing_block_reason: {
27815
+ Args: {
27816
+ p_order_id: string;
27817
+ p_order_item_id: string;
27818
+ };
27819
+ Returns: string;
27820
+ };
27821
+ logistics_packing_dismiss: {
27822
+ Args: {
27823
+ p_id: string;
27824
+ p_note?: string;
27825
+ };
27826
+ Returns: boolean;
27827
+ };
27828
+ logistics_packing_overview: {
27829
+ Args: never;
27830
+ Returns: {
27831
+ beoordelen: number;
27832
+ herstelbaar: number;
27833
+ laatst_gemeten: string;
27834
+ laatst_hersteld: string;
27835
+ open_totaal: number;
27836
+ orders: number;
27837
+ oudste_seconden: number;
27838
+ producten: number;
27839
+ }[];
27840
+ };
27841
+ logistics_packing_reconcile: {
27842
+ Args: {
27843
+ p_fix_limit?: number;
27844
+ p_scan_limit?: number;
27845
+ };
27846
+ Returns: {
27847
+ beoordelen: number;
27848
+ gevonden: number;
27849
+ hersteld: number;
27850
+ }[];
27851
+ };
27852
+ logistics_packing_scan: {
27853
+ Args: {
27854
+ p_limit?: number;
27855
+ };
27856
+ Returns: number;
27857
+ };
27858
+ logistics_packing_set_manual: {
27859
+ Args: {
27860
+ p_manual?: boolean;
27861
+ p_order_item_id: string;
27862
+ };
27863
+ Returns: boolean;
27864
+ };
25982
27865
  logistics_parse_pickup: {
25983
27866
  Args: {
25984
27867
  p_value: string;
@@ -26007,6 +27890,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26007
27890
  shifted_count: number;
26008
27891
  }[];
26009
27892
  };
27893
+ logistics_pick_backlog_max_days: {
27894
+ Args: never;
27895
+ Returns: number;
27896
+ };
26010
27897
  logistics_pick_barcode_enabled: {
26011
27898
  Args: never;
26012
27899
  Returns: boolean;
@@ -26228,16 +28115,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26228
28115
  Args: never;
26229
28116
  Returns: number;
26230
28117
  };
28118
+ logistics_planner_cart_snapshot: {
28119
+ Args: {
28120
+ p_buffer_id: string;
28121
+ p_order_id: string;
28122
+ };
28123
+ Returns: import("./types").Json;
28124
+ };
28125
+ logistics_planner_diff_mode: {
28126
+ Args: never;
28127
+ Returns: string;
28128
+ };
28129
+ logistics_planner_diff_prune: {
28130
+ Args: never;
28131
+ Returns: number;
28132
+ };
26231
28133
  logistics_prepare_pick_documents: {
26232
28134
  Args: {
26233
28135
  p_limit?: number;
26234
28136
  };
26235
28137
  Returns: import("./types").Json;
26236
28138
  };
28139
+ logistics_print_via_layout: {
28140
+ Args: {
28141
+ _documentnaam: string;
28142
+ _documenttype: string;
28143
+ _herkomst: string;
28144
+ _idempotentie_sleutel: string;
28145
+ _is_herprint: boolean;
28146
+ _layout_id: string;
28147
+ _payload: import("./types").Json;
28148
+ _pdf_base64: string;
28149
+ _pdf_url: string;
28150
+ _print_plek_id: string;
28151
+ };
28152
+ Returns: import("./types").Json;
28153
+ };
26237
28154
  logistics_prune_buffer_member_queue: {
26238
28155
  Args: never;
26239
28156
  Returns: number;
26240
28157
  };
28158
+ logistics_prune_cron_history: {
28159
+ Args: {
28160
+ p_days?: number;
28161
+ };
28162
+ Returns: number;
28163
+ };
26241
28164
  logistics_prune_handled_pick_queue: {
26242
28165
  Args: never;
26243
28166
  Returns: number;
@@ -26274,6 +28197,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26274
28197
  Args: never;
26275
28198
  Returns: import("./types").Json;
26276
28199
  };
28200
+ logistics_recalc_tick_kick: {
28201
+ Args: never;
28202
+ Returns: number;
28203
+ };
28204
+ logistics_reconcile_missing_plan_queue: {
28205
+ Args: never;
28206
+ Returns: number;
28207
+ };
26277
28208
  logistics_refresh_pick_queue_status: {
26278
28209
  Args: {
26279
28210
  p_ref: string;
@@ -26304,11 +28235,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26304
28235
  };
26305
28236
  Returns: import("./types").Json;
26306
28237
  };
28238
+ logistics_replan_clear_foreign_cart_items: {
28239
+ Args: {
28240
+ p_order_id: string;
28241
+ p_reason: string;
28242
+ };
28243
+ Returns: import("./types").Json;
28244
+ };
26307
28245
  logistics_replan_order_journey: {
26308
28246
  Args: {
26309
28247
  p_order_ref: string;
26310
28248
  };
26311
28249
  Returns: import("./types").Json;
28250
+ } | {
28251
+ Args: {
28252
+ p_order_ref: string;
28253
+ p_reason: string;
28254
+ };
28255
+ Returns: import("./types").Json;
26312
28256
  };
26313
28257
  logistics_report_delay: {
26314
28258
  Args: {
@@ -26354,6 +28298,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26354
28298
  };
26355
28299
  Returns: import("./types").Json;
26356
28300
  };
28301
+ logistics_reserved_stock_nightly: {
28302
+ Args: never;
28303
+ Returns: undefined;
28304
+ };
26357
28305
  logistics_resolve_pick_document: {
26358
28306
  Args: {
26359
28307
  _is_herprint: boolean;
@@ -26377,6 +28325,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26377
28325
  };
26378
28326
  Returns: import("./types").Json;
26379
28327
  };
28328
+ logistics_retention_days: {
28329
+ Args: {
28330
+ p_key: string;
28331
+ };
28332
+ Returns: number;
28333
+ };
26380
28334
  logistics_rule_bool: {
26381
28335
  Args: {
26382
28336
  p_default: boolean;
@@ -26483,6 +28437,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26483
28437
  };
26484
28438
  Returns: string;
26485
28439
  };
28440
+ logistics_shipping_note_status: {
28441
+ Args: {
28442
+ p_cart_id?: string;
28443
+ p_slip_job_id?: string;
28444
+ };
28445
+ Returns: import("./types").Json;
28446
+ };
26486
28447
  logistics_shipping_notes_wake_all: {
26487
28448
  Args: never;
26488
28449
  Returns: import("./types").Json;
@@ -26545,6 +28506,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26545
28506
  };
26546
28507
  Returns: undefined;
26547
28508
  };
28509
+ logistics_slip_note_retry: {
28510
+ Args: {
28511
+ _id: string;
28512
+ };
28513
+ Returns: import("./types").Json;
28514
+ };
26548
28515
  logistics_sticker_follows_slip: {
26549
28516
  Args: never;
26550
28517
  Returns: boolean;
@@ -26570,12 +28537,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26570
28537
  Args: never;
26571
28538
  Returns: import("./types").Json;
26572
28539
  };
28540
+ logistics_sync_pick_queue_backlog: {
28541
+ Args: never;
28542
+ Returns: import("./types").Json;
28543
+ };
28544
+ logistics_sync_pick_queue_core: {
28545
+ Args: never;
28546
+ Returns: import("./types").Json;
28547
+ };
26573
28548
  logistics_sync_task_carriers: {
26574
28549
  Args: {
26575
28550
  p_order_ref?: string;
26576
28551
  };
26577
28552
  Returns: number;
26578
28553
  };
28554
+ logistics_task_open_counts: {
28555
+ Args: never;
28556
+ Returns: {
28557
+ open_count: number;
28558
+ owner_module: string;
28559
+ }[];
28560
+ };
26579
28561
  logistics_task_owner: {
26580
28562
  Args: {
26581
28563
  p_task_type: string;
@@ -26593,6 +28575,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26593
28575
  Args: never;
26594
28576
  Returns: number;
26595
28577
  };
28578
+ logistics_tasks_prune: {
28579
+ Args: {
28580
+ p_days?: number;
28581
+ };
28582
+ Returns: number;
28583
+ };
28584
+ logistics_tick: {
28585
+ Args: never;
28586
+ Returns: import("./types").Json;
28587
+ };
26596
28588
  logistics_tick_ping: {
26597
28589
  Args: never;
26598
28590
  Returns: string;
@@ -26933,6 +28925,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26933
28925
  };
26934
28926
  Returns: boolean;
26935
28927
  };
28928
+ order_items_duplicate_report: {
28929
+ Args: {
28930
+ _order_ref?: string;
28931
+ };
28932
+ Returns: {
28933
+ distinct_products: number;
28934
+ duplicate_factor: number;
28935
+ lines: number;
28936
+ order_number: string;
28937
+ }[];
28938
+ };
26936
28939
  order_number_prefix: {
26937
28940
  Args: {
26938
28941
  p_custom_fields?: import("./types").Json;
@@ -27253,6 +29256,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27253
29256
  };
27254
29257
  Returns: string;
27255
29258
  };
29259
+ pick_is_reference_admin: {
29260
+ Args: never;
29261
+ Returns: boolean;
29262
+ };
27256
29263
  pick_mark_printed: {
27257
29264
  Args: {
27258
29265
  _queue_item_id: string;
@@ -27716,6 +29723,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27716
29723
  };
27717
29724
  Returns: undefined;
27718
29725
  };
29726
+ planning_apply_schedule_updates: {
29727
+ Args: {
29728
+ _updates: import("./types").Json;
29729
+ };
29730
+ Returns: undefined;
29731
+ };
29732
+ planning_assert_no_overlaps: {
29733
+ Args: never;
29734
+ Returns: undefined;
29735
+ };
29736
+ planning_assert_no_overlaps_for_items: {
29737
+ Args: {
29738
+ _item_ids: string[];
29739
+ };
29740
+ Returns: undefined;
29741
+ };
27719
29742
  planning_cancel_item: {
27720
29743
  Args: {
27721
29744
  _id: string;
@@ -27827,6 +29850,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
27827
29850
  };
27828
29851
  Returns: boolean;
27829
29852
  };
29853
+ quote_assign_number: {
29854
+ Args: {
29855
+ _offerte_id: string;
29856
+ };
29857
+ Returns: string;
29858
+ };
29859
+ quote_create_follow_up_now: {
29860
+ Args: {
29861
+ _offerte_id: string;
29862
+ _payload?: import("./types").Json;
29863
+ };
29864
+ Returns: import("./types").Json;
29865
+ };
27830
29866
  quote_create_from_source: {
27831
29867
  Args: {
27832
29868
  _payload?: import("./types").Json;
@@ -28070,6 +30106,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28070
30106
  Args: never;
28071
30107
  Returns: undefined;
28072
30108
  };
30109
+ run_order_auto_invoice_tick: {
30110
+ Args: never;
30111
+ Returns: number;
30112
+ };
28073
30113
  run_print_queue_ticks: {
28074
30114
  Args: never;
28075
30115
  Returns: number;
@@ -28093,6 +30133,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28093
30133
  };
28094
30134
  Returns: import("./types").Json;
28095
30135
  };
30136
+ scan_controleer_pincode: {
30137
+ Args: {
30138
+ p_pin: string;
30139
+ p_scanner_id: string;
30140
+ };
30141
+ Returns: boolean;
30142
+ };
28096
30143
  scan_dashboard_stats: {
28097
30144
  Args: {
28098
30145
  p_dagen?: number;
@@ -28112,6 +30159,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28112
30159
  };
28113
30160
  Returns: import("./types").Json;
28114
30161
  };
30162
+ scan_heeft_pincode: {
30163
+ Args: {
30164
+ p_scanner_id: string;
30165
+ };
30166
+ Returns: boolean;
30167
+ };
28115
30168
  scan_kar_compleet: {
28116
30169
  Args: {
28117
30170
  p_allow_reprint?: boolean;
@@ -28129,6 +30182,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28129
30182
  Args: {
28130
30183
  p_code: string;
28131
30184
  p_latency_ms?: number;
30185
+ p_medewerker?: string;
28132
30186
  p_message?: string;
28133
30187
  p_result: string;
28134
30188
  p_scanner_key?: string;
@@ -28201,6 +30255,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28201
30255
  };
28202
30256
  Returns: undefined;
28203
30257
  };
30258
+ scan_scanner_info: {
30259
+ Args: {
30260
+ p_slug: string;
30261
+ };
30262
+ Returns: {
30263
+ actief: boolean;
30264
+ heeft_pincode: boolean;
30265
+ id: string;
30266
+ naam: string;
30267
+ omschrijving: string;
30268
+ printer_id: string;
30269
+ type: string;
30270
+ vereist_medewerker: boolean;
30271
+ werkplek: string;
30272
+ }[];
30273
+ };
28204
30274
  scan_sessie_annuleren: {
28205
30275
  Args: {
28206
30276
  p_sessie_id: string;
@@ -28447,6 +30517,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28447
30517
  };
28448
30518
  Returns: number;
28449
30519
  };
30520
+ schedule_floriday_trade_items_reconcile: {
30521
+ Args: {
30522
+ p_apikey: string;
30523
+ p_url: string;
30524
+ };
30525
+ Returns: number;
30526
+ };
28450
30527
  schedule_floriday_trade_items_sync: {
28451
30528
  Args: {
28452
30529
  p_apikey: string;
@@ -28529,6 +30606,26 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28529
30606
  };
28530
30607
  Returns: undefined;
28531
30608
  };
30609
+ set_product_stock: {
30610
+ Args: {
30611
+ p_incoming_stock?: number;
30612
+ p_minimum_stock?: number;
30613
+ p_notes?: string;
30614
+ p_physical_stock: number;
30615
+ p_product_id: string;
30616
+ };
30617
+ Returns: {
30618
+ connection_id: string;
30619
+ incoming_stock: number;
30620
+ minimum_stock: number;
30621
+ notes: string;
30622
+ physical_stock: number;
30623
+ product_id: string;
30624
+ reserved_stock: number;
30625
+ trade_item_key: string;
30626
+ updated_at: string;
30627
+ }[];
30628
+ };
28532
30629
  show_limit: {
28533
30630
  Args: never;
28534
30631
  Returns: number;
@@ -28771,6 +30868,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28771
30868
  Args: never;
28772
30869
  Returns: boolean;
28773
30870
  };
30871
+ uren_is_werkdag: {
30872
+ Args: {
30873
+ _date: string;
30874
+ _monteur: string;
30875
+ };
30876
+ Returns: boolean;
30877
+ };
30878
+ uren_korte_afwezigheid_aanvragen: {
30879
+ Args: {
30880
+ _datum: string;
30881
+ _eind: string;
30882
+ _reden: string;
30883
+ _start: string;
30884
+ };
30885
+ Returns: string;
30886
+ };
28774
30887
  uren_list_medewerkers: {
28775
30888
  Args: never;
28776
30889
  Returns: {
@@ -28791,6 +30904,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28791
30904
  roles: string[];
28792
30905
  }[];
28793
30906
  };
30907
+ uren_list_planner_contacten: {
30908
+ Args: never;
30909
+ Returns: {
30910
+ display_name: string;
30911
+ id: string;
30912
+ phone: string;
30913
+ }[];
30914
+ };
30915
+ uren_maand_afsluiten: {
30916
+ Args: {
30917
+ _maand: string;
30918
+ _monteur: string;
30919
+ };
30920
+ Returns: undefined;
30921
+ };
30922
+ uren_maand_berekenen: {
30923
+ Args: {
30924
+ _maand: string;
30925
+ _monteur: string;
30926
+ };
30927
+ Returns: import("./types").Json;
30928
+ };
30929
+ uren_maand_corrigeren: {
30930
+ Args: {
30931
+ _maand: string;
30932
+ _monteur: string;
30933
+ _overuren_minuten: number;
30934
+ _reden: string;
30935
+ };
30936
+ Returns: undefined;
30937
+ };
30938
+ uren_mijn_contracturen: {
30939
+ Args: never;
30940
+ Returns: number;
30941
+ };
30942
+ uren_mijn_vakantiesaldo: {
30943
+ Args: never;
30944
+ Returns: number;
30945
+ };
28794
30946
  uren_my_monteur_id: {
28795
30947
  Args: never;
28796
30948
  Returns: string;
@@ -28824,6 +30976,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28824
30976
  };
28825
30977
  Returns: number;
28826
30978
  };
30979
+ uren_spiegel_bezig: {
30980
+ Args: never;
30981
+ Returns: boolean;
30982
+ };
30983
+ uren_standaardweek_beoordelen: {
30984
+ Args: {
30985
+ _goedkeuren: boolean;
30986
+ _id: string;
30987
+ _reden?: string;
30988
+ };
30989
+ Returns: undefined;
30990
+ };
30991
+ uren_standaardweek_doorzetten: {
30992
+ Args: {
30993
+ _monteur: string;
30994
+ };
30995
+ Returns: undefined;
30996
+ };
30997
+ uren_standaardweek_instellen: {
30998
+ Args: {
30999
+ _dagen: import("./types").Json;
31000
+ };
31001
+ Returns: string;
31002
+ };
31003
+ uren_standaardweek_toepassen: {
31004
+ Args: {
31005
+ _dagen: import("./types").Json;
31006
+ _monteur: string;
31007
+ };
31008
+ Returns: undefined;
31009
+ };
28827
31010
  uren_stop_time_log: {
28828
31011
  Args: {
28829
31012
  p_employee_id: string;
@@ -28849,6 +31032,165 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28849
31032
  };
28850
31033
  Returns: number;
28851
31034
  };
31035
+ uren_vakantie_aanvragen: {
31036
+ Args: {
31037
+ _end_date: string;
31038
+ _hours?: number;
31039
+ _start_date: string;
31040
+ };
31041
+ Returns: string;
31042
+ };
31043
+ uren_vakantiedag_wijzigen: {
31044
+ Args: {
31045
+ _date: string;
31046
+ };
31047
+ Returns: string;
31048
+ };
31049
+ uren_vakantiesaldo_uren: {
31050
+ Args: {
31051
+ _monteur: string;
31052
+ };
31053
+ Returns: number;
31054
+ };
31055
+ uren_week_start: {
31056
+ Args: {
31057
+ _datum: string;
31058
+ };
31059
+ Returns: string;
31060
+ };
31061
+ uren_werkweek_opsturen: {
31062
+ Args: {
31063
+ _week_start: string;
31064
+ };
31065
+ Returns: {
31066
+ approved_at: string | null;
31067
+ approved_by: string | null;
31068
+ contract_hours: number;
31069
+ created_at: string;
31070
+ employee_id: string;
31071
+ id: string;
31072
+ locked: boolean;
31073
+ monteur_toelichting: string | null;
31074
+ notes: string | null;
31075
+ planned_hours: number;
31076
+ status: string;
31077
+ submitted_at: string | null;
31078
+ updated_at: string;
31079
+ variance_hours: number;
31080
+ week_start: string;
31081
+ };
31082
+ SetofOptions: {
31083
+ from: "*";
31084
+ to: "time_log_week_approvals";
31085
+ isOneToOne: true;
31086
+ isSetofReturn: false;
31087
+ };
31088
+ } | {
31089
+ Args: {
31090
+ _vrije_dagen?: string[];
31091
+ _week_start: string;
31092
+ };
31093
+ Returns: {
31094
+ approved_at: string | null;
31095
+ approved_by: string | null;
31096
+ contract_hours: number;
31097
+ created_at: string;
31098
+ employee_id: string;
31099
+ id: string;
31100
+ locked: boolean;
31101
+ monteur_toelichting: string | null;
31102
+ notes: string | null;
31103
+ planned_hours: number;
31104
+ status: string;
31105
+ submitted_at: string | null;
31106
+ updated_at: string;
31107
+ variance_hours: number;
31108
+ week_start: string;
31109
+ };
31110
+ SetofOptions: {
31111
+ from: "*";
31112
+ to: "time_log_week_approvals";
31113
+ isOneToOne: true;
31114
+ isSetofReturn: false;
31115
+ };
31116
+ } | {
31117
+ Args: {
31118
+ _toelichting?: string;
31119
+ _vrije_dagen?: string[];
31120
+ _week_start: string;
31121
+ };
31122
+ Returns: {
31123
+ approved_at: string | null;
31124
+ approved_by: string | null;
31125
+ contract_hours: number;
31126
+ created_at: string;
31127
+ employee_id: string;
31128
+ id: string;
31129
+ locked: boolean;
31130
+ monteur_toelichting: string | null;
31131
+ notes: string | null;
31132
+ planned_hours: number;
31133
+ status: string;
31134
+ submitted_at: string | null;
31135
+ updated_at: string;
31136
+ variance_hours: number;
31137
+ week_start: string;
31138
+ };
31139
+ SetofOptions: {
31140
+ from: "*";
31141
+ to: "time_log_week_approvals";
31142
+ isOneToOne: true;
31143
+ isSetofReturn: false;
31144
+ };
31145
+ };
31146
+ vakantie_dagen_gebruikt: {
31147
+ Args: {
31148
+ _user_id: string;
31149
+ _year: number;
31150
+ };
31151
+ Returns: number;
31152
+ };
31153
+ vakantie_overuren: {
31154
+ Args: {
31155
+ _user_id: string;
31156
+ _year?: number;
31157
+ };
31158
+ Returns: number;
31159
+ };
31160
+ vakantie_saldo: {
31161
+ Args: {
31162
+ _user_id: string;
31163
+ _year?: number;
31164
+ };
31165
+ Returns: {
31166
+ day_hours: number;
31167
+ earned_from_overtime_days: number;
31168
+ entitlement_days: number;
31169
+ hours_to_next_day: number;
31170
+ overtime_hours: number;
31171
+ overtime_remainder_hours: number;
31172
+ paid_out_days: number;
31173
+ remaining_days: number;
31174
+ used_days: number;
31175
+ }[];
31176
+ };
31177
+ vakantie_saldo_overzicht: {
31178
+ Args: {
31179
+ _year?: number;
31180
+ };
31181
+ Returns: {
31182
+ day_hours: number;
31183
+ earned_from_overtime_days: number;
31184
+ entitlement_days: number;
31185
+ hours_to_next_day: number;
31186
+ overtime_hours: number;
31187
+ overtime_remainder_hours: number;
31188
+ paid_out_days: number;
31189
+ remaining_days: number;
31190
+ used_days: number;
31191
+ user_id: string;
31192
+ }[];
31193
+ };
28852
31194
  voorraad_cleanup_old_rows: {
28853
31195
  Args: never;
28854
31196
  Returns: import("./types").Json;
@@ -28891,18 +31233,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28891
31233
  };
28892
31234
  Returns: import("./types").Json;
28893
31235
  };
31236
+ wo_list_colleague_planning: {
31237
+ Args: {
31238
+ _from: string;
31239
+ _monteur_id: string;
31240
+ _to: string;
31241
+ };
31242
+ Returns: {
31243
+ end_at: string;
31244
+ id: string;
31245
+ role: string;
31246
+ start_at: string;
31247
+ status: string;
31248
+ werkbon_id: string;
31249
+ }[];
31250
+ };
28894
31251
  wo_list_offerte_requests: {
28895
31252
  Args: {
28896
31253
  _status?: string;
28897
31254
  };
28898
31255
  Returns: import("./types").Json;
28899
31256
  };
31257
+ wo_list_proposals: {
31258
+ Args: {
31259
+ _status?: string;
31260
+ };
31261
+ Returns: import("./types").Json;
31262
+ };
28900
31263
  wo_process_offerte_request: {
28901
31264
  Args: {
28902
31265
  _queue_id: string;
28903
31266
  };
28904
31267
  Returns: import("./types").Json;
28905
31268
  };
31269
+ wo_process_proposal: {
31270
+ Args: {
31271
+ _id: string;
31272
+ _overrides?: import("./types").Json;
31273
+ };
31274
+ Returns: import("./types").Json;
31275
+ };
28906
31276
  wo_reject_offerte_request: {
28907
31277
  Args: {
28908
31278
  _queue_id: string;
@@ -28910,6 +31280,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28910
31280
  };
28911
31281
  Returns: import("./types").Json;
28912
31282
  };
31283
+ wo_reject_proposal: {
31284
+ Args: {
31285
+ _id: string;
31286
+ _reden?: string;
31287
+ };
31288
+ Returns: import("./types").Json;
31289
+ };
28913
31290
  wo_set_status: {
28914
31291
  Args: {
28915
31292
  _reason?: string;