@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
@@ -733,6 +733,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
733
733
  };
734
734
  Relationships: [];
735
735
  };
736
+ artikelen_instellingen: {
737
+ Row: {
738
+ created_at: string;
739
+ id: number;
740
+ marge_procent: number;
741
+ updated_at: string;
742
+ };
743
+ Insert: {
744
+ created_at?: string;
745
+ id?: number;
746
+ marge_procent?: number;
747
+ updated_at?: string;
748
+ };
749
+ Update: {
750
+ created_at?: string;
751
+ id?: number;
752
+ marge_procent?: number;
753
+ updated_at?: string;
754
+ };
755
+ Relationships: [];
756
+ };
736
757
  artikelen_veldconfig: {
737
758
  Row: {
738
759
  bron_pad: string;
@@ -7989,6 +8010,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7989
8010
  };
7990
8011
  fust_types: {
7991
8012
  Row: {
8013
+ capacity_units: number | null;
7992
8014
  connection_id: string | null;
7993
8015
  created_at: string;
7994
8016
  custom_package_id: string | null;
@@ -8009,6 +8031,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8009
8031
  width_mm: number | null;
8010
8032
  };
8011
8033
  Insert: {
8034
+ capacity_units?: number | null;
8012
8035
  connection_id?: string | null;
8013
8036
  created_at?: string;
8014
8037
  custom_package_id?: string | null;
@@ -8029,6 +8052,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8029
8052
  width_mm?: number | null;
8030
8053
  };
8031
8054
  Update: {
8055
+ capacity_units?: number | null;
8032
8056
  connection_id?: string | null;
8033
8057
  created_at?: string;
8034
8058
  custom_package_id?: string | null;
@@ -8260,6 +8284,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8260
8284
  };
8261
8285
  Relationships: [];
8262
8286
  };
8287
+ invoice_branding_settings: {
8288
+ Row: {
8289
+ address: string;
8290
+ chamber_of_commerce_number: string;
8291
+ city: string;
8292
+ company_name: string;
8293
+ created_at: string;
8294
+ email: string;
8295
+ email_purpose: string | null;
8296
+ iban: string;
8297
+ logo_path: string | null;
8298
+ payment_term_days: number;
8299
+ phone: string;
8300
+ postal_code: string;
8301
+ primary_color: string;
8302
+ secondary_color: string;
8303
+ show_company_name: boolean;
8304
+ singleton_key: boolean;
8305
+ updated_at: string;
8306
+ vat_identification_number: string;
8307
+ website: string;
8308
+ };
8309
+ Insert: {
8310
+ address?: string;
8311
+ chamber_of_commerce_number?: string;
8312
+ city?: string;
8313
+ company_name?: string;
8314
+ created_at?: string;
8315
+ email?: string;
8316
+ email_purpose?: string | null;
8317
+ iban?: string;
8318
+ logo_path?: string | null;
8319
+ payment_term_days?: number;
8320
+ phone?: string;
8321
+ postal_code?: string;
8322
+ primary_color?: string;
8323
+ secondary_color?: string;
8324
+ show_company_name?: boolean;
8325
+ singleton_key?: boolean;
8326
+ updated_at?: string;
8327
+ vat_identification_number?: string;
8328
+ website?: string;
8329
+ };
8330
+ Update: {
8331
+ address?: string;
8332
+ chamber_of_commerce_number?: string;
8333
+ city?: string;
8334
+ company_name?: string;
8335
+ created_at?: string;
8336
+ email?: string;
8337
+ email_purpose?: string | null;
8338
+ iban?: string;
8339
+ logo_path?: string | null;
8340
+ payment_term_days?: number;
8341
+ phone?: string;
8342
+ postal_code?: string;
8343
+ primary_color?: string;
8344
+ secondary_color?: string;
8345
+ show_company_name?: boolean;
8346
+ singleton_key?: boolean;
8347
+ updated_at?: string;
8348
+ vat_identification_number?: string;
8349
+ website?: string;
8350
+ };
8351
+ Relationships: [];
8352
+ };
8263
8353
  invoice_items: {
8264
8354
  Row: {
8265
8355
  created_at: string;
@@ -8273,6 +8363,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8273
8363
  total_cents: number;
8274
8364
  unit: string;
8275
8365
  unit_price_cents: number;
8366
+ vat_rate: number | null;
8276
8367
  };
8277
8368
  Insert: {
8278
8369
  created_at?: string;
@@ -8286,6 +8377,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8286
8377
  total_cents?: number;
8287
8378
  unit?: string;
8288
8379
  unit_price_cents?: number;
8380
+ vat_rate?: number | null;
8289
8381
  };
8290
8382
  Update: {
8291
8383
  created_at?: string;
@@ -8299,6 +8391,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8299
8391
  total_cents?: number;
8300
8392
  unit?: string;
8301
8393
  unit_price_cents?: number;
8394
+ vat_rate?: number | null;
8302
8395
  };
8303
8396
  Relationships: [{
8304
8397
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8544,15 +8637,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8544
8637
  };
8545
8638
  invoices: {
8546
8639
  Row: {
8640
+ branding_snapshot: import("./types").Json | null;
8547
8641
  created_at: string;
8548
8642
  created_by: string | null;
8643
+ customer_address: string | null;
8644
+ customer_attention: string | null;
8645
+ customer_city: string | null;
8549
8646
  customer_id: string | null;
8550
8647
  customer_name: string | null;
8648
+ customer_postal_code: string | null;
8649
+ customer_vat_number: string | null;
8650
+ debtor_number: string | null;
8551
8651
  due_date: string | null;
8652
+ execution_date: string | null;
8552
8653
  id: string;
8553
8654
  invoice_date: string;
8554
8655
  invoice_number: string | null;
8555
8656
  note: string | null;
8657
+ payment_term_days: number;
8658
+ reference: string | null;
8659
+ sent_at: string | null;
8660
+ sent_to: string | null;
8556
8661
  source_number: string | null;
8557
8662
  source_ref: string | null;
8558
8663
  source_type: string;
@@ -8562,17 +8667,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8562
8667
  updated_at: string;
8563
8668
  vat_cents: number;
8564
8669
  vat_rate: number;
8670
+ work_address: string | null;
8565
8671
  };
8566
8672
  Insert: {
8673
+ branding_snapshot?: import("./types").Json | null;
8567
8674
  created_at?: string;
8568
8675
  created_by?: string | null;
8676
+ customer_address?: string | null;
8677
+ customer_attention?: string | null;
8678
+ customer_city?: string | null;
8569
8679
  customer_id?: string | null;
8570
8680
  customer_name?: string | null;
8681
+ customer_postal_code?: string | null;
8682
+ customer_vat_number?: string | null;
8683
+ debtor_number?: string | null;
8571
8684
  due_date?: string | null;
8685
+ execution_date?: string | null;
8572
8686
  id?: string;
8573
8687
  invoice_date?: string;
8574
8688
  invoice_number?: string | null;
8575
8689
  note?: string | null;
8690
+ payment_term_days?: number;
8691
+ reference?: string | null;
8692
+ sent_at?: string | null;
8693
+ sent_to?: string | null;
8576
8694
  source_number?: string | null;
8577
8695
  source_ref?: string | null;
8578
8696
  source_type?: string;
@@ -8582,17 +8700,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8582
8700
  updated_at?: string;
8583
8701
  vat_cents?: number;
8584
8702
  vat_rate?: number;
8703
+ work_address?: string | null;
8585
8704
  };
8586
8705
  Update: {
8706
+ branding_snapshot?: import("./types").Json | null;
8587
8707
  created_at?: string;
8588
8708
  created_by?: string | null;
8709
+ customer_address?: string | null;
8710
+ customer_attention?: string | null;
8711
+ customer_city?: string | null;
8589
8712
  customer_id?: string | null;
8590
8713
  customer_name?: string | null;
8714
+ customer_postal_code?: string | null;
8715
+ customer_vat_number?: string | null;
8716
+ debtor_number?: string | null;
8591
8717
  due_date?: string | null;
8718
+ execution_date?: string | null;
8592
8719
  id?: string;
8593
8720
  invoice_date?: string;
8594
8721
  invoice_number?: string | null;
8595
8722
  note?: string | null;
8723
+ payment_term_days?: number;
8724
+ reference?: string | null;
8725
+ sent_at?: string | null;
8726
+ sent_to?: string | null;
8596
8727
  source_number?: string | null;
8597
8728
  source_ref?: string | null;
8598
8729
  source_type?: string;
@@ -8602,6 +8733,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8602
8733
  updated_at?: string;
8603
8734
  vat_cents?: number;
8604
8735
  vat_rate?: number;
8736
+ work_address?: string | null;
8605
8737
  };
8606
8738
  Relationships: [{
8607
8739
  foreignKeyName: "invoices_customer_id_fkey";
@@ -9300,6 +9432,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9300
9432
  quantity: number;
9301
9433
  sort_order: number;
9302
9434
  source: string;
9435
+ unit: string | null;
9303
9436
  unit_price_cents: number;
9304
9437
  updated_at: string;
9305
9438
  };
@@ -9313,6 +9446,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9313
9446
  quantity?: number;
9314
9447
  sort_order?: number;
9315
9448
  source?: string;
9449
+ unit?: string | null;
9316
9450
  unit_price_cents?: number;
9317
9451
  updated_at?: string;
9318
9452
  };
@@ -9326,6 +9460,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9326
9460
  quantity?: number;
9327
9461
  sort_order?: number;
9328
9462
  source?: string;
9463
+ unit?: string | null;
9329
9464
  unit_price_cents?: number;
9330
9465
  updated_at?: string;
9331
9466
  };
@@ -9349,6 +9484,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9349
9484
  created_at: string;
9350
9485
  default_geldigheid_dagen: number;
9351
9486
  default_vat_rate: number;
9487
+ email_purpose: string | null;
9352
9488
  id: string;
9353
9489
  singleton: boolean;
9354
9490
  updated_at: string;
@@ -9358,6 +9494,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9358
9494
  created_at?: string;
9359
9495
  default_geldigheid_dagen?: number;
9360
9496
  default_vat_rate?: number;
9497
+ email_purpose?: string | null;
9361
9498
  id?: string;
9362
9499
  singleton?: boolean;
9363
9500
  updated_at?: string;
@@ -9367,12 +9504,49 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9367
9504
  created_at?: string;
9368
9505
  default_geldigheid_dagen?: number;
9369
9506
  default_vat_rate?: number;
9507
+ email_purpose?: string | null;
9370
9508
  id?: string;
9371
9509
  singleton?: boolean;
9372
9510
  updated_at?: string;
9373
9511
  };
9374
9512
  Relationships: [];
9375
9513
  };
9514
+ itk_offerte_voorstel_status: {
9515
+ Row: {
9516
+ ai_concept: import("./types").Json | null;
9517
+ created_at: string;
9518
+ id: string;
9519
+ offerte_id: string | null;
9520
+ proposal_id: string;
9521
+ seen_at: string | null;
9522
+ updated_at: string;
9523
+ };
9524
+ Insert: {
9525
+ ai_concept?: import("./types").Json | null;
9526
+ created_at?: string;
9527
+ id?: string;
9528
+ offerte_id?: string | null;
9529
+ proposal_id: string;
9530
+ seen_at?: string | null;
9531
+ updated_at?: string;
9532
+ };
9533
+ Update: {
9534
+ ai_concept?: import("./types").Json | null;
9535
+ created_at?: string;
9536
+ id?: string;
9537
+ offerte_id?: string | null;
9538
+ proposal_id?: string;
9539
+ seen_at?: string | null;
9540
+ updated_at?: string;
9541
+ };
9542
+ Relationships: [{
9543
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9544
+ columns: ["offerte_id"];
9545
+ isOneToOne: false;
9546
+ referencedRelation: "itk_offertes";
9547
+ referencedColumns: ["id"];
9548
+ }];
9549
+ };
9376
9550
  itk_offerte_werkbon_queue: {
9377
9551
  Row: {
9378
9552
  bron_werkbon_id: string | null;
@@ -9423,6 +9597,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9423
9597
  };
9424
9598
  itk_offertes: {
9425
9599
  Row: {
9600
+ aandachtspunten: string | null;
9426
9601
  ai_generated: boolean;
9427
9602
  approved_at: string | null;
9428
9603
  binnen_mandaat: boolean;
@@ -9438,6 +9613,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9438
9613
  notities: string | null;
9439
9614
  offerte_number: string | null;
9440
9615
  omschrijving: string;
9616
+ onderwerp: string | null;
9441
9617
  rejected_at: string | null;
9442
9618
  sent_at: string | null;
9443
9619
  source_number: string | null;
@@ -9450,12 +9626,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9450
9626
  valid_until: string | null;
9451
9627
  vat_cents: number;
9452
9628
  vat_rate: number;
9629
+ verzonden_naar: string | null;
9453
9630
  viewed_at: string | null;
9454
9631
  volgnummer: number | null;
9632
+ voorwaarden: string | null;
9455
9633
  werkbon_id: string | null;
9456
9634
  work_location_id: string | null;
9457
9635
  };
9458
9636
  Insert: {
9637
+ aandachtspunten?: string | null;
9459
9638
  ai_generated?: boolean;
9460
9639
  approved_at?: string | null;
9461
9640
  binnen_mandaat?: boolean;
@@ -9471,6 +9650,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9471
9650
  notities?: string | null;
9472
9651
  offerte_number?: string | null;
9473
9652
  omschrijving?: string;
9653
+ onderwerp?: string | null;
9474
9654
  rejected_at?: string | null;
9475
9655
  sent_at?: string | null;
9476
9656
  source_number?: string | null;
@@ -9483,12 +9663,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9483
9663
  valid_until?: string | null;
9484
9664
  vat_cents?: number;
9485
9665
  vat_rate?: number;
9666
+ verzonden_naar?: string | null;
9486
9667
  viewed_at?: string | null;
9487
9668
  volgnummer?: number | null;
9669
+ voorwaarden?: string | null;
9488
9670
  werkbon_id?: string | null;
9489
9671
  work_location_id?: string | null;
9490
9672
  };
9491
9673
  Update: {
9674
+ aandachtspunten?: string | null;
9492
9675
  ai_generated?: boolean;
9493
9676
  approved_at?: string | null;
9494
9677
  binnen_mandaat?: boolean;
@@ -9504,6 +9687,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9504
9687
  notities?: string | null;
9505
9688
  offerte_number?: string | null;
9506
9689
  omschrijving?: string;
9690
+ onderwerp?: string | null;
9507
9691
  rejected_at?: string | null;
9508
9692
  sent_at?: string | null;
9509
9693
  source_number?: string | null;
@@ -9516,8 +9700,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9516
9700
  valid_until?: string | null;
9517
9701
  vat_cents?: number;
9518
9702
  vat_rate?: number;
9703
+ verzonden_naar?: string | null;
9519
9704
  viewed_at?: string | null;
9520
9705
  volgnummer?: number | null;
9706
+ voorwaarden?: string | null;
9521
9707
  werkbon_id?: string | null;
9522
9708
  work_location_id?: string | null;
9523
9709
  };
@@ -9693,6 +9879,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9693
9879
  };
9694
9880
  leave_requests: {
9695
9881
  Row: {
9882
+ cancellation_requested_at: string | null;
9883
+ cancellation_status: string | null;
9696
9884
  created_at: string;
9697
9885
  decided_at: string | null;
9698
9886
  decided_by: string | null;
@@ -9703,6 +9891,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9703
9891
  leave_type: string;
9704
9892
  monteur_id: string | null;
9705
9893
  reason: string | null;
9894
+ reden_afkeur: string | null;
9706
9895
  start_date: string;
9707
9896
  start_time: string | null;
9708
9897
  status: string;
@@ -9710,6 +9899,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9710
9899
  user_id: string;
9711
9900
  };
9712
9901
  Insert: {
9902
+ cancellation_requested_at?: string | null;
9903
+ cancellation_status?: string | null;
9713
9904
  created_at?: string;
9714
9905
  decided_at?: string | null;
9715
9906
  decided_by?: string | null;
@@ -9720,6 +9911,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9720
9911
  leave_type?: string;
9721
9912
  monteur_id?: string | null;
9722
9913
  reason?: string | null;
9914
+ reden_afkeur?: string | null;
9723
9915
  start_date: string;
9724
9916
  start_time?: string | null;
9725
9917
  status?: string;
@@ -9727,6 +9919,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9727
9919
  user_id: string;
9728
9920
  };
9729
9921
  Update: {
9922
+ cancellation_requested_at?: string | null;
9923
+ cancellation_status?: string | null;
9730
9924
  created_at?: string;
9731
9925
  decided_at?: string | null;
9732
9926
  decided_by?: string | null;
@@ -9737,6 +9931,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9737
9931
  leave_type?: string;
9738
9932
  monteur_id?: string | null;
9739
9933
  reason?: string | null;
9934
+ reden_afkeur?: string | null;
9740
9935
  start_date?: string;
9741
9936
  start_time?: string | null;
9742
9937
  status?: string;
@@ -10234,6 +10429,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10234
10429
  };
10235
10430
  Relationships: [];
10236
10431
  };
10432
+ logistics_cart_barcode_archief: {
10433
+ Row: {
10434
+ barcode: string;
10435
+ cart_id: string;
10436
+ created_at: string | null;
10437
+ gearchiveerd_op: string;
10438
+ order_id: string | null;
10439
+ };
10440
+ Insert: {
10441
+ barcode: string;
10442
+ cart_id: string;
10443
+ created_at?: string | null;
10444
+ gearchiveerd_op?: string;
10445
+ order_id?: string | null;
10446
+ };
10447
+ Update: {
10448
+ barcode?: string;
10449
+ cart_id?: string;
10450
+ created_at?: string | null;
10451
+ gearchiveerd_op?: string;
10452
+ order_id?: string | null;
10453
+ };
10454
+ Relationships: [];
10455
+ };
10237
10456
  logistics_control_scan: {
10238
10457
  Row: {
10239
10458
  approved_at: string | null;
@@ -10879,6 +11098,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10879
11098
  };
10880
11099
  Relationships: [];
10881
11100
  };
11101
+ logistics_order_finalize_queue: {
11102
+ Row: {
11103
+ attempts: number;
11104
+ claimed_at: string | null;
11105
+ created_at: string;
11106
+ finished_at: string | null;
11107
+ last_error: string | null;
11108
+ lease_until: string | null;
11109
+ max_attempts: number;
11110
+ next_attempt_at: string;
11111
+ order_id: string;
11112
+ reason: string | null;
11113
+ requested_at: string;
11114
+ status: string;
11115
+ updated_at: string;
11116
+ };
11117
+ Insert: {
11118
+ attempts?: number;
11119
+ claimed_at?: string | null;
11120
+ created_at?: string;
11121
+ finished_at?: string | null;
11122
+ last_error?: string | null;
11123
+ lease_until?: string | null;
11124
+ max_attempts?: number;
11125
+ next_attempt_at?: string;
11126
+ order_id: string;
11127
+ reason?: string | null;
11128
+ requested_at?: string;
11129
+ status?: string;
11130
+ updated_at?: string;
11131
+ };
11132
+ Update: {
11133
+ attempts?: number;
11134
+ claimed_at?: string | null;
11135
+ created_at?: string;
11136
+ finished_at?: string | null;
11137
+ last_error?: string | null;
11138
+ lease_until?: string | null;
11139
+ max_attempts?: number;
11140
+ next_attempt_at?: string;
11141
+ order_id?: string;
11142
+ reason?: string | null;
11143
+ requested_at?: string;
11144
+ status?: string;
11145
+ updated_at?: string;
11146
+ };
11147
+ Relationships: [];
11148
+ };
10882
11149
  logistics_order_merges: {
10883
11150
  Row: {
10884
11151
  group_key: string;
@@ -10915,6 +11182,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10915
11182
  };
10916
11183
  Relationships: [];
10917
11184
  };
11185
+ logistics_packing_deviations: {
11186
+ Row: {
11187
+ auto_fixed_at: string | null;
11188
+ created_at: string;
11189
+ dev_key: string;
11190
+ first_seen_at: string;
11191
+ floriday_packing: import("./types").Json;
11192
+ human_reason: string | null;
11193
+ id: string;
11194
+ last_seen_at: string;
11195
+ local_packing: import("./types").Json;
11196
+ needs_human: boolean;
11197
+ order_id: string | null;
11198
+ order_item_id: string | null;
11199
+ order_number: string | null;
11200
+ product_id: string | null;
11201
+ product_name: string | null;
11202
+ resolved_at: string | null;
11203
+ scope: string;
11204
+ trade_item_id: string | null;
11205
+ updated_at: string;
11206
+ };
11207
+ Insert: {
11208
+ auto_fixed_at?: string | null;
11209
+ created_at?: string;
11210
+ dev_key: string;
11211
+ first_seen_at?: string;
11212
+ floriday_packing?: import("./types").Json;
11213
+ human_reason?: string | null;
11214
+ id?: string;
11215
+ last_seen_at?: string;
11216
+ local_packing?: import("./types").Json;
11217
+ needs_human?: boolean;
11218
+ order_id?: string | null;
11219
+ order_item_id?: string | null;
11220
+ order_number?: string | null;
11221
+ product_id?: string | null;
11222
+ product_name?: string | null;
11223
+ resolved_at?: string | null;
11224
+ scope: string;
11225
+ trade_item_id?: string | null;
11226
+ updated_at?: string;
11227
+ };
11228
+ Update: {
11229
+ auto_fixed_at?: string | null;
11230
+ created_at?: string;
11231
+ dev_key?: string;
11232
+ first_seen_at?: string;
11233
+ floriday_packing?: import("./types").Json;
11234
+ human_reason?: string | null;
11235
+ id?: string;
11236
+ last_seen_at?: string;
11237
+ local_packing?: import("./types").Json;
11238
+ needs_human?: boolean;
11239
+ order_id?: string | null;
11240
+ order_item_id?: string | null;
11241
+ order_number?: string | null;
11242
+ product_id?: string | null;
11243
+ product_name?: string | null;
11244
+ resolved_at?: string | null;
11245
+ scope?: string;
11246
+ trade_item_id?: string | null;
11247
+ updated_at?: string;
11248
+ };
11249
+ Relationships: [];
11250
+ };
10918
11251
  logistics_pick_data_requests: {
10919
11252
  Row: {
10920
11253
  actions: import("./types").Json;
@@ -11152,14 +11485,70 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11152
11485
  };
11153
11486
  Relationships: [];
11154
11487
  };
11488
+ logistics_planner_diff_runs: {
11489
+ Row: {
11490
+ after_snapshot: import("./types").Json | null;
11491
+ before_snapshot: import("./types").Json;
11492
+ buffer_id: string | null;
11493
+ carts_after: number | null;
11494
+ carts_before: number | null;
11495
+ compared_at: string | null;
11496
+ created_at: string;
11497
+ differences: import("./types").Json | null;
11498
+ id: string;
11499
+ identical: boolean | null;
11500
+ mode: string;
11501
+ order_id: string;
11502
+ order_ref: string | null;
11503
+ reason: string | null;
11504
+ status: string;
11505
+ };
11506
+ Insert: {
11507
+ after_snapshot?: import("./types").Json | null;
11508
+ before_snapshot?: import("./types").Json;
11509
+ buffer_id?: string | null;
11510
+ carts_after?: number | null;
11511
+ carts_before?: number | null;
11512
+ compared_at?: string | null;
11513
+ created_at?: string;
11514
+ differences?: import("./types").Json | null;
11515
+ id?: string;
11516
+ identical?: boolean | null;
11517
+ mode: string;
11518
+ order_id: string;
11519
+ order_ref?: string | null;
11520
+ reason?: string | null;
11521
+ status?: string;
11522
+ };
11523
+ Update: {
11524
+ after_snapshot?: import("./types").Json | null;
11525
+ before_snapshot?: import("./types").Json;
11526
+ buffer_id?: string | null;
11527
+ carts_after?: number | null;
11528
+ carts_before?: number | null;
11529
+ compared_at?: string | null;
11530
+ created_at?: string;
11531
+ differences?: import("./types").Json | null;
11532
+ id?: string;
11533
+ identical?: boolean | null;
11534
+ mode?: string;
11535
+ order_id?: string;
11536
+ order_ref?: string | null;
11537
+ reason?: string | null;
11538
+ status?: string;
11539
+ };
11540
+ Relationships: [];
11541
+ };
11155
11542
  logistics_rebuffer_state: {
11156
11543
  Row: {
11157
11544
  created_at: string;
11158
11545
  id: boolean;
11159
11546
  last_checked: number;
11160
11547
  last_duration_ms: number;
11548
+ last_mode: string | null;
11161
11549
  last_run_at: string | null;
11162
11550
  last_updated: number;
11551
+ last_would_change: number | null;
11163
11552
  pending: boolean;
11164
11553
  requested_at: string | null;
11165
11554
  updated_at: string;
@@ -11169,8 +11558,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11169
11558
  id?: boolean;
11170
11559
  last_checked?: number;
11171
11560
  last_duration_ms?: number;
11561
+ last_mode?: string | null;
11172
11562
  last_run_at?: string | null;
11173
11563
  last_updated?: number;
11564
+ last_would_change?: number | null;
11174
11565
  pending?: boolean;
11175
11566
  requested_at?: string | null;
11176
11567
  updated_at?: string;
@@ -11180,8 +11571,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11180
11571
  id?: boolean;
11181
11572
  last_checked?: number;
11182
11573
  last_duration_ms?: number;
11574
+ last_mode?: string | null;
11183
11575
  last_run_at?: string | null;
11184
11576
  last_updated?: number;
11577
+ last_would_change?: number | null;
11185
11578
  pending?: boolean;
11186
11579
  requested_at?: string | null;
11187
11580
  updated_at?: string;
@@ -13177,6 +13570,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13177
13570
  };
13178
13571
  Relationships: [];
13179
13572
  };
13573
+ monteur_contracten: {
13574
+ Row: {
13575
+ contract_type: string;
13576
+ created_at: string;
13577
+ days_per_week: number;
13578
+ hours_per_week: number;
13579
+ id: string;
13580
+ updated_at: string;
13581
+ user_id: string;
13582
+ vacation_day_hours: number;
13583
+ vacation_days_per_year: number;
13584
+ };
13585
+ Insert: {
13586
+ contract_type?: string;
13587
+ created_at?: string;
13588
+ days_per_week?: number;
13589
+ hours_per_week?: number;
13590
+ id?: string;
13591
+ updated_at?: string;
13592
+ user_id: string;
13593
+ vacation_day_hours?: number;
13594
+ vacation_days_per_year?: number;
13595
+ };
13596
+ Update: {
13597
+ contract_type?: string;
13598
+ created_at?: string;
13599
+ days_per_week?: number;
13600
+ hours_per_week?: number;
13601
+ id?: string;
13602
+ updated_at?: string;
13603
+ user_id?: string;
13604
+ vacation_day_hours?: number;
13605
+ vacation_days_per_year?: number;
13606
+ };
13607
+ Relationships: [];
13608
+ };
13180
13609
  nmbrs_component_mapping: {
13181
13610
  Row: {
13182
13611
  created_at: string;
@@ -13656,6 +14085,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13656
14085
  id: string;
13657
14086
  items: import("./types").Json;
13658
14087
  notes: string | null;
14088
+ order_creation_error: string | null;
14089
+ order_creation_failed_at: string | null;
14090
+ order_id: string | null;
13659
14091
  order_number: string | null;
13660
14092
  recipient_id: string;
13661
14093
  total_amount: number;
@@ -13670,6 +14102,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13670
14102
  id?: string;
13671
14103
  items?: import("./types").Json;
13672
14104
  notes?: string | null;
14105
+ order_creation_error?: string | null;
14106
+ order_creation_failed_at?: string | null;
14107
+ order_id?: string | null;
13673
14108
  order_number?: string | null;
13674
14109
  recipient_id: string;
13675
14110
  total_amount?: number;
@@ -13684,6 +14119,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13684
14119
  id?: string;
13685
14120
  items?: import("./types").Json;
13686
14121
  notes?: string | null;
14122
+ order_creation_error?: string | null;
14123
+ order_creation_failed_at?: string | null;
14124
+ order_id?: string | null;
13687
14125
  order_number?: string | null;
13688
14126
  recipient_id?: string;
13689
14127
  total_amount?: number;
@@ -13701,10 +14139,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13701
14139
  referencedRelation: "customers";
13702
14140
  referencedColumns: ["id"];
13703
14141
  }, {
13704
- foreignKeyName: "offer_orders_recipient_id_fkey";
13705
- columns: ["recipient_id"];
14142
+ foreignKeyName: "offer_orders_order_id_fkey";
14143
+ columns: ["order_id"];
13706
14144
  isOneToOne: false;
13707
- referencedRelation: "offer_recipients";
14145
+ referencedRelation: "orders";
14146
+ referencedColumns: ["id"];
14147
+ }, {
14148
+ foreignKeyName: "offer_orders_recipient_id_fkey";
14149
+ columns: ["recipient_id"];
14150
+ isOneToOne: false;
14151
+ referencedRelation: "offer_recipients";
13708
14152
  referencedColumns: ["id"];
13709
14153
  }];
13710
14154
  };
@@ -13840,6 +14284,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13840
14284
  };
13841
14285
  Relationships: [];
13842
14286
  };
14287
+ order_block_notifications: {
14288
+ Row: {
14289
+ id: string;
14290
+ notified_at: string;
14291
+ order_id: string;
14292
+ reason: string | null;
14293
+ reason_key: string;
14294
+ };
14295
+ Insert: {
14296
+ id?: string;
14297
+ notified_at?: string;
14298
+ order_id: string;
14299
+ reason?: string | null;
14300
+ reason_key: string;
14301
+ };
14302
+ Update: {
14303
+ id?: string;
14304
+ notified_at?: string;
14305
+ order_id?: string;
14306
+ reason?: string | null;
14307
+ reason_key?: string;
14308
+ };
14309
+ Relationships: [];
14310
+ };
13843
14311
  order_buffers: {
13844
14312
  Row: {
13845
14313
  buffer_key: string;
@@ -14271,6 +14739,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14271
14739
  next_attempt_at: string;
14272
14740
  order_id: string;
14273
14741
  processed_at: string | null;
14742
+ send_error: string | null;
14274
14743
  status: string;
14275
14744
  updated_at: string;
14276
14745
  };
@@ -14284,6 +14753,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14284
14753
  next_attempt_at?: string;
14285
14754
  order_id: string;
14286
14755
  processed_at?: string | null;
14756
+ send_error?: string | null;
14287
14757
  status?: string;
14288
14758
  updated_at?: string;
14289
14759
  };
@@ -14297,6 +14767,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14297
14767
  next_attempt_at?: string;
14298
14768
  order_id?: string;
14299
14769
  processed_at?: string | null;
14770
+ send_error?: string | null;
14300
14771
  status?: string;
14301
14772
  updated_at?: string;
14302
14773
  };
@@ -14309,10 +14780,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14309
14780
  id: string;
14310
14781
  layers_per_cart: number | null;
14311
14782
  order_id: string;
14783
+ packing_locked_at: string | null;
14784
+ packing_locked_by: string | null;
14312
14785
  plants_per_crate: number | null;
14313
14786
  product_id: string | null;
14314
14787
  product_name: string;
14315
14788
  quantity: number;
14789
+ source_line_key: string | null;
14316
14790
  unit: string;
14317
14791
  unit_price: number | null;
14318
14792
  };
@@ -14322,10 +14796,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14322
14796
  id?: string;
14323
14797
  layers_per_cart?: number | null;
14324
14798
  order_id: string;
14799
+ packing_locked_at?: string | null;
14800
+ packing_locked_by?: string | null;
14325
14801
  plants_per_crate?: number | null;
14326
14802
  product_id?: string | null;
14327
14803
  product_name: string;
14328
14804
  quantity?: number;
14805
+ source_line_key?: string | null;
14329
14806
  unit?: string;
14330
14807
  unit_price?: number | null;
14331
14808
  };
@@ -14335,10 +14812,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14335
14812
  id?: string;
14336
14813
  layers_per_cart?: number | null;
14337
14814
  order_id?: string;
14815
+ packing_locked_at?: string | null;
14816
+ packing_locked_by?: string | null;
14338
14817
  plants_per_crate?: number | null;
14339
14818
  product_id?: string | null;
14340
14819
  product_name?: string;
14341
14820
  quantity?: number;
14821
+ source_line_key?: string | null;
14342
14822
  unit?: string;
14343
14823
  unit_price?: number | null;
14344
14824
  };
@@ -15626,18 +16106,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15626
16106
  Row: {
15627
16107
  id: boolean;
15628
16108
  last_cleanup_at: string | null;
16109
+ last_error: string | null;
16110
+ last_error_at: string | null;
15629
16111
  last_sync_at: string | null;
15630
16112
  updated_at: string;
15631
16113
  };
15632
16114
  Insert: {
15633
16115
  id?: boolean;
15634
16116
  last_cleanup_at?: string | null;
16117
+ last_error?: string | null;
16118
+ last_error_at?: string | null;
15635
16119
  last_sync_at?: string | null;
15636
16120
  updated_at?: string;
15637
16121
  };
15638
16122
  Update: {
15639
16123
  id?: boolean;
15640
16124
  last_cleanup_at?: string | null;
16125
+ last_error?: string | null;
16126
+ last_error_at?: string | null;
15641
16127
  last_sync_at?: string | null;
15642
16128
  updated_at?: string;
15643
16129
  };
@@ -15763,6 +16249,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15763
16249
  };
15764
16250
  Relationships: [];
15765
16251
  };
16252
+ planning_confirmation_log: {
16253
+ Row: {
16254
+ created_at: string;
16255
+ end_at: string;
16256
+ id: string;
16257
+ outbox_id: string | null;
16258
+ planning_item_id: string;
16259
+ reason: string | null;
16260
+ recipient: string | null;
16261
+ start_at: string;
16262
+ status: string;
16263
+ };
16264
+ Insert: {
16265
+ created_at?: string;
16266
+ end_at: string;
16267
+ id?: string;
16268
+ outbox_id?: string | null;
16269
+ planning_item_id: string;
16270
+ reason?: string | null;
16271
+ recipient?: string | null;
16272
+ start_at: string;
16273
+ status: string;
16274
+ };
16275
+ Update: {
16276
+ created_at?: string;
16277
+ end_at?: string;
16278
+ id?: string;
16279
+ outbox_id?: string | null;
16280
+ planning_item_id?: string;
16281
+ reason?: string | null;
16282
+ recipient?: string | null;
16283
+ start_at?: string;
16284
+ status?: string;
16285
+ };
16286
+ Relationships: [{
16287
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16288
+ columns: ["planning_item_id"];
16289
+ isOneToOne: false;
16290
+ referencedRelation: "planning_items";
16291
+ referencedColumns: ["id"];
16292
+ }, {
16293
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16294
+ columns: ["planning_item_id"];
16295
+ isOneToOne: false;
16296
+ referencedRelation: "planning_overview";
16297
+ referencedColumns: ["id"];
16298
+ }];
16299
+ };
15766
16300
  planning_item_assistants: {
15767
16301
  Row: {
15768
16302
  created_at: string;
@@ -15847,6 +16381,249 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15847
16381
  referencedColumns: ["id"];
15848
16382
  }];
15849
16383
  };
16384
+ planning_mail_settings: {
16385
+ Row: {
16386
+ body_template: string;
16387
+ cc: string[];
16388
+ connection_id: string | null;
16389
+ created_at: string;
16390
+ enabled: boolean;
16391
+ id: boolean;
16392
+ reply_to: string | null;
16393
+ subject_template: string;
16394
+ timezone: string;
16395
+ updated_at: string;
16396
+ updated_by: string | null;
16397
+ };
16398
+ Insert: {
16399
+ body_template?: string;
16400
+ cc?: string[];
16401
+ connection_id?: string | null;
16402
+ created_at?: string;
16403
+ enabled?: boolean;
16404
+ id?: boolean;
16405
+ reply_to?: string | null;
16406
+ subject_template?: string;
16407
+ timezone?: string;
16408
+ updated_at?: string;
16409
+ updated_by?: string | null;
16410
+ };
16411
+ Update: {
16412
+ body_template?: string;
16413
+ cc?: string[];
16414
+ connection_id?: string | null;
16415
+ created_at?: string;
16416
+ enabled?: boolean;
16417
+ id?: boolean;
16418
+ reply_to?: string | null;
16419
+ subject_template?: string;
16420
+ timezone?: string;
16421
+ updated_at?: string;
16422
+ updated_by?: string | null;
16423
+ };
16424
+ Relationships: [{
16425
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16426
+ columns: ["connection_id"];
16427
+ isOneToOne: false;
16428
+ referencedRelation: "email_auth_connections";
16429
+ referencedColumns: ["id"];
16430
+ }, {
16431
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16432
+ columns: ["connection_id"];
16433
+ isOneToOne: false;
16434
+ referencedRelation: "email_auth_connections_safe";
16435
+ referencedColumns: ["id"];
16436
+ }];
16437
+ };
16438
+ planning_monteur_day_locations: {
16439
+ Row: {
16440
+ created_at: string;
16441
+ day: string;
16442
+ end_at: string;
16443
+ id: string;
16444
+ monteur_id: string;
16445
+ start_from: string;
16446
+ updated_at: string;
16447
+ };
16448
+ Insert: {
16449
+ created_at?: string;
16450
+ day: string;
16451
+ end_at?: string;
16452
+ id?: string;
16453
+ monteur_id: string;
16454
+ start_from?: string;
16455
+ updated_at?: string;
16456
+ };
16457
+ Update: {
16458
+ created_at?: string;
16459
+ day?: string;
16460
+ end_at?: string;
16461
+ id?: string;
16462
+ monteur_id?: string;
16463
+ start_from?: string;
16464
+ updated_at?: string;
16465
+ };
16466
+ Relationships: [];
16467
+ };
16468
+ planning_monteur_locations: {
16469
+ Row: {
16470
+ created_at: string;
16471
+ default_end: string;
16472
+ default_start: string;
16473
+ end_address: string | null;
16474
+ home_address: string | null;
16475
+ id: string;
16476
+ monteur_id: string;
16477
+ start_address: string | null;
16478
+ updated_at: string;
16479
+ };
16480
+ Insert: {
16481
+ created_at?: string;
16482
+ default_end?: string;
16483
+ default_start?: string;
16484
+ end_address?: string | null;
16485
+ home_address?: string | null;
16486
+ id?: string;
16487
+ monteur_id: string;
16488
+ start_address?: string | null;
16489
+ updated_at?: string;
16490
+ };
16491
+ Update: {
16492
+ created_at?: string;
16493
+ default_end?: string;
16494
+ default_start?: string;
16495
+ end_address?: string | null;
16496
+ home_address?: string | null;
16497
+ id?: string;
16498
+ monteur_id?: string;
16499
+ start_address?: string | null;
16500
+ updated_at?: string;
16501
+ };
16502
+ Relationships: [];
16503
+ };
16504
+ planning_settings: {
16505
+ Row: {
16506
+ company_address: string | null;
16507
+ created_at: string;
16508
+ id: string;
16509
+ singleton: boolean;
16510
+ updated_at: string;
16511
+ };
16512
+ Insert: {
16513
+ company_address?: string | null;
16514
+ created_at?: string;
16515
+ id?: string;
16516
+ singleton?: boolean;
16517
+ updated_at?: string;
16518
+ };
16519
+ Update: {
16520
+ company_address?: string | null;
16521
+ created_at?: string;
16522
+ id?: string;
16523
+ singleton?: boolean;
16524
+ updated_at?: string;
16525
+ };
16526
+ Relationships: [];
16527
+ };
16528
+ planning_travel_legs: {
16529
+ Row: {
16530
+ after_min: number;
16531
+ after_reason: string | null;
16532
+ after_status: string;
16533
+ after_to_address: string | null;
16534
+ before_from_address: string | null;
16535
+ before_min: number;
16536
+ before_reason: string | null;
16537
+ before_status: string;
16538
+ computed_at: string;
16539
+ computed_end_at: string | null;
16540
+ computed_start_at: string | null;
16541
+ created_at: string;
16542
+ id: string;
16543
+ monteur_id: string;
16544
+ planning_item_id: string;
16545
+ shared_after_item_id: string | null;
16546
+ shared_before_item_id: string | null;
16547
+ updated_at: string;
16548
+ };
16549
+ Insert: {
16550
+ after_min?: number;
16551
+ after_reason?: string | null;
16552
+ after_status?: string;
16553
+ after_to_address?: string | null;
16554
+ before_from_address?: string | null;
16555
+ before_min?: number;
16556
+ before_reason?: string | null;
16557
+ before_status?: string;
16558
+ computed_at?: string;
16559
+ computed_end_at?: string | null;
16560
+ computed_start_at?: string | null;
16561
+ created_at?: string;
16562
+ id?: string;
16563
+ monteur_id: string;
16564
+ planning_item_id: string;
16565
+ shared_after_item_id?: string | null;
16566
+ shared_before_item_id?: string | null;
16567
+ updated_at?: string;
16568
+ };
16569
+ Update: {
16570
+ after_min?: number;
16571
+ after_reason?: string | null;
16572
+ after_status?: string;
16573
+ after_to_address?: string | null;
16574
+ before_from_address?: string | null;
16575
+ before_min?: number;
16576
+ before_reason?: string | null;
16577
+ before_status?: string;
16578
+ computed_at?: string;
16579
+ computed_end_at?: string | null;
16580
+ computed_start_at?: string | null;
16581
+ created_at?: string;
16582
+ id?: string;
16583
+ monteur_id?: string;
16584
+ planning_item_id?: string;
16585
+ shared_after_item_id?: string | null;
16586
+ shared_before_item_id?: string | null;
16587
+ updated_at?: string;
16588
+ };
16589
+ Relationships: [{
16590
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16591
+ columns: ["planning_item_id"];
16592
+ isOneToOne: false;
16593
+ referencedRelation: "planning_items";
16594
+ referencedColumns: ["id"];
16595
+ }, {
16596
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16597
+ columns: ["planning_item_id"];
16598
+ isOneToOne: false;
16599
+ referencedRelation: "planning_overview";
16600
+ referencedColumns: ["id"];
16601
+ }, {
16602
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16603
+ columns: ["shared_after_item_id"];
16604
+ isOneToOne: false;
16605
+ referencedRelation: "planning_items";
16606
+ referencedColumns: ["id"];
16607
+ }, {
16608
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16609
+ columns: ["shared_after_item_id"];
16610
+ isOneToOne: false;
16611
+ referencedRelation: "planning_overview";
16612
+ referencedColumns: ["id"];
16613
+ }, {
16614
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16615
+ columns: ["shared_before_item_id"];
16616
+ isOneToOne: false;
16617
+ referencedRelation: "planning_items";
16618
+ referencedColumns: ["id"];
16619
+ }, {
16620
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16621
+ columns: ["shared_before_item_id"];
16622
+ isOneToOne: false;
16623
+ referencedRelation: "planning_overview";
16624
+ referencedColumns: ["id"];
16625
+ }];
16626
+ };
15850
16627
  price_list_rows: {
15851
16628
  Row: {
15852
16629
  action: string;
@@ -17019,6 +17796,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17019
17796
  };
17020
17797
  product_load_settings: {
17021
17798
  Row: {
17799
+ build: import("./types").Json | null;
17800
+ build_status: string;
17022
17801
  created_at: string;
17023
17802
  id: string;
17024
17803
  is_package: boolean;
@@ -17036,6 +17815,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17036
17815
  updated_at: string;
17037
17816
  };
17038
17817
  Insert: {
17818
+ build?: import("./types").Json | null;
17819
+ build_status?: string;
17039
17820
  created_at?: string;
17040
17821
  id?: string;
17041
17822
  is_package?: boolean;
@@ -17053,6 +17834,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17053
17834
  updated_at?: string;
17054
17835
  };
17055
17836
  Update: {
17837
+ build?: import("./types").Json | null;
17838
+ build_status?: string;
17056
17839
  created_at?: string;
17057
17840
  id?: string;
17058
17841
  is_package?: boolean;
@@ -17122,33 +17905,146 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17122
17905
  };
17123
17906
  Relationships: [];
17124
17907
  };
17125
- products: {
17908
+ product_suppliers: {
17126
17909
  Row: {
17127
- article_number: string | null;
17128
- barcode: string | null;
17129
- batch: string;
17130
- crates_per_layer: number;
17131
17910
  created_at: string;
17132
- custom_fields: import("./types").Json;
17133
- floriday_trade_item_id: string | null;
17134
- fust_type_id: string | null;
17135
17911
  id: string;
17136
- image_url: string | null;
17137
- incoming_quantity: number;
17138
- is_layer: boolean;
17139
- layers_per_cart: number;
17140
- location: string;
17141
- min_quantity: number;
17142
- plant_height_cm: number | null;
17143
- plants_per_crate: number;
17144
- product: string;
17145
- product_type: string;
17146
- purchase_price: number | null;
17147
- quantity: number;
17148
- sale_price: number | null;
17149
- trade_item_key: string | null;
17150
- unit: string;
17151
- updated_at: string;
17912
+ is_preferred: boolean;
17913
+ lead_time_days: number | null;
17914
+ min_order_quantity: number | null;
17915
+ notes: string | null;
17916
+ previous_price_cents: number | null;
17917
+ price_source: string;
17918
+ price_updated_at: string | null;
17919
+ product_id: string;
17920
+ purchase_price_cents: number | null;
17921
+ supplier_article_number: string | null;
17922
+ supplier_id: string;
17923
+ updated_at: string;
17924
+ };
17925
+ Insert: {
17926
+ created_at?: string;
17927
+ id?: string;
17928
+ is_preferred?: boolean;
17929
+ lead_time_days?: number | null;
17930
+ min_order_quantity?: number | null;
17931
+ notes?: string | null;
17932
+ previous_price_cents?: number | null;
17933
+ price_source?: string;
17934
+ price_updated_at?: string | null;
17935
+ product_id: string;
17936
+ purchase_price_cents?: number | null;
17937
+ supplier_article_number?: string | null;
17938
+ supplier_id: string;
17939
+ updated_at?: string;
17940
+ };
17941
+ Update: {
17942
+ created_at?: string;
17943
+ id?: string;
17944
+ is_preferred?: boolean;
17945
+ lead_time_days?: number | null;
17946
+ min_order_quantity?: number | null;
17947
+ notes?: string | null;
17948
+ previous_price_cents?: number | null;
17949
+ price_source?: string;
17950
+ price_updated_at?: string | null;
17951
+ product_id?: string;
17952
+ purchase_price_cents?: number | null;
17953
+ supplier_article_number?: string | null;
17954
+ supplier_id?: string;
17955
+ updated_at?: string;
17956
+ };
17957
+ Relationships: [{
17958
+ foreignKeyName: "product_suppliers_product_id_fkey";
17959
+ columns: ["product_id"];
17960
+ isOneToOne: false;
17961
+ referencedRelation: "logistics_product_dimensions";
17962
+ referencedColumns: ["product_id"];
17963
+ }, {
17964
+ foreignKeyName: "product_suppliers_product_id_fkey";
17965
+ columns: ["product_id"];
17966
+ isOneToOne: false;
17967
+ referencedRelation: "products";
17968
+ referencedColumns: ["id"];
17969
+ }, {
17970
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17971
+ columns: ["supplier_id"];
17972
+ isOneToOne: false;
17973
+ referencedRelation: "suppliers";
17974
+ referencedColumns: ["id"];
17975
+ }];
17976
+ };
17977
+ product_tray_stickers: {
17978
+ Row: {
17979
+ bestand_url: string;
17980
+ bestandsgrootte: number | null;
17981
+ bestandsnaam: string | null;
17982
+ bestandspad: string | null;
17983
+ created_at: string;
17984
+ product_id: string;
17985
+ updated_at: string;
17986
+ };
17987
+ Insert: {
17988
+ bestand_url: string;
17989
+ bestandsgrootte?: number | null;
17990
+ bestandsnaam?: string | null;
17991
+ bestandspad?: string | null;
17992
+ created_at?: string;
17993
+ product_id: string;
17994
+ updated_at?: string;
17995
+ };
17996
+ Update: {
17997
+ bestand_url?: string;
17998
+ bestandsgrootte?: number | null;
17999
+ bestandsnaam?: string | null;
18000
+ bestandspad?: string | null;
18001
+ created_at?: string;
18002
+ product_id?: string;
18003
+ updated_at?: string;
18004
+ };
18005
+ Relationships: [{
18006
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18007
+ columns: ["product_id"];
18008
+ isOneToOne: true;
18009
+ referencedRelation: "logistics_product_dimensions";
18010
+ referencedColumns: ["product_id"];
18011
+ }, {
18012
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18013
+ columns: ["product_id"];
18014
+ isOneToOne: true;
18015
+ referencedRelation: "products";
18016
+ referencedColumns: ["id"];
18017
+ }];
18018
+ };
18019
+ products: {
18020
+ Row: {
18021
+ article_number: string | null;
18022
+ barcode: string | null;
18023
+ batch: string;
18024
+ crates_per_layer: number;
18025
+ created_at: string;
18026
+ custom_fields: import("./types").Json;
18027
+ floriday_packing_confirmed_at: string | null;
18028
+ floriday_packing_source: string | null;
18029
+ floriday_trade_item_id: string | null;
18030
+ fust_type_id: string | null;
18031
+ id: string;
18032
+ image_url: string | null;
18033
+ incoming_quantity: number;
18034
+ is_layer: boolean;
18035
+ layers_per_cart: number;
18036
+ location: string;
18037
+ min_quantity: number;
18038
+ plant_height_cm: number | null;
18039
+ plants_per_crate: number;
18040
+ product: string;
18041
+ product_type: string;
18042
+ purchase_price: number | null;
18043
+ quantity: number;
18044
+ sale_price: number | null;
18045
+ trade_item_key: string | null;
18046
+ unit: string;
18047
+ updated_at: string;
17152
18048
  weight: string | null;
17153
18049
  };
17154
18050
  Insert: {
@@ -17158,6 +18054,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17158
18054
  crates_per_layer?: number;
17159
18055
  created_at?: string;
17160
18056
  custom_fields?: import("./types").Json;
18057
+ floriday_packing_confirmed_at?: string | null;
18058
+ floriday_packing_source?: string | null;
17161
18059
  floriday_trade_item_id?: string | null;
17162
18060
  fust_type_id?: string | null;
17163
18061
  id?: string;
@@ -17186,6 +18084,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17186
18084
  crates_per_layer?: number;
17187
18085
  created_at?: string;
17188
18086
  custom_fields?: import("./types").Json;
18087
+ floriday_packing_confirmed_at?: string | null;
18088
+ floriday_packing_source?: string | null;
17189
18089
  floriday_trade_item_id?: string | null;
17190
18090
  fust_type_id?: string | null;
17191
18091
  id?: string;
@@ -17285,6 +18185,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17285
18185
  id: string;
17286
18186
  is_superadmin: boolean;
17287
18187
  notification_preferences: import("./types").Json;
18188
+ phone: string | null;
17288
18189
  tenant_id: string | null;
17289
18190
  updated_at: string;
17290
18191
  };
@@ -17297,6 +18198,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17297
18198
  id: string;
17298
18199
  is_superadmin?: boolean;
17299
18200
  notification_preferences?: import("./types").Json;
18201
+ phone?: string | null;
17300
18202
  tenant_id?: string | null;
17301
18203
  updated_at?: string;
17302
18204
  };
@@ -17309,6 +18211,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17309
18211
  id?: string;
17310
18212
  is_superadmin?: boolean;
17311
18213
  notification_preferences?: import("./types").Json;
18214
+ phone?: string | null;
17312
18215
  tenant_id?: string | null;
17313
18216
  updated_at?: string;
17314
18217
  };
@@ -17575,9 +18478,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17575
18478
  purchase_order_items: {
17576
18479
  Row: {
17577
18480
  article_number: string | null;
18481
+ cancel_reason: string | null;
18482
+ cancelled_at: string | null;
17578
18483
  created_at: string;
17579
18484
  delivery_date: string | null;
17580
18485
  id: string;
18486
+ incoming_booked: number;
18487
+ line_status: string;
17581
18488
  name: string;
17582
18489
  note: string | null;
17583
18490
  pot_size: string | null;
@@ -17585,6 +18492,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17585
18492
  product_type: string;
17586
18493
  purchase_order_id: string;
17587
18494
  quantity: number;
18495
+ received_at: string | null;
18496
+ received_booked: number;
17588
18497
  supplier_id: string | null;
17589
18498
  supplier_product_id: string | null;
17590
18499
  unit_price_cents: number;
@@ -17592,9 +18501,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17592
18501
  };
17593
18502
  Insert: {
17594
18503
  article_number?: string | null;
18504
+ cancel_reason?: string | null;
18505
+ cancelled_at?: string | null;
17595
18506
  created_at?: string;
17596
18507
  delivery_date?: string | null;
17597
18508
  id?: string;
18509
+ incoming_booked?: number;
18510
+ line_status?: string;
17598
18511
  name?: string;
17599
18512
  note?: string | null;
17600
18513
  pot_size?: string | null;
@@ -17602,6 +18515,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17602
18515
  product_type?: string;
17603
18516
  purchase_order_id: string;
17604
18517
  quantity?: number;
18518
+ received_at?: string | null;
18519
+ received_booked?: number;
17605
18520
  supplier_id?: string | null;
17606
18521
  supplier_product_id?: string | null;
17607
18522
  unit_price_cents?: number;
@@ -17609,9 +18524,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17609
18524
  };
17610
18525
  Update: {
17611
18526
  article_number?: string | null;
18527
+ cancel_reason?: string | null;
18528
+ cancelled_at?: string | null;
17612
18529
  created_at?: string;
17613
18530
  delivery_date?: string | null;
17614
18531
  id?: string;
18532
+ incoming_booked?: number;
18533
+ line_status?: string;
17615
18534
  name?: string;
17616
18535
  note?: string | null;
17617
18536
  pot_size?: string | null;
@@ -17619,6 +18538,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17619
18538
  product_type?: string;
17620
18539
  purchase_order_id?: string;
17621
18540
  quantity?: number;
18541
+ received_at?: string | null;
18542
+ received_booked?: number;
17622
18543
  supplier_id?: string | null;
17623
18544
  supplier_product_id?: string | null;
17624
18545
  unit_price_cents?: number;
@@ -17722,6 +18643,153 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17722
18643
  referencedColumns: ["id"];
17723
18644
  }];
17724
18645
  };
18646
+ purchase_request_events: {
18647
+ Row: {
18648
+ created_at: string;
18649
+ details: import("./types").Json | null;
18650
+ event_type: string;
18651
+ id: string;
18652
+ request_id: string;
18653
+ };
18654
+ Insert: {
18655
+ created_at?: string;
18656
+ details?: import("./types").Json | null;
18657
+ event_type: string;
18658
+ id?: string;
18659
+ request_id: string;
18660
+ };
18661
+ Update: {
18662
+ created_at?: string;
18663
+ details?: import("./types").Json | null;
18664
+ event_type?: string;
18665
+ id?: string;
18666
+ request_id?: string;
18667
+ };
18668
+ Relationships: [{
18669
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18670
+ columns: ["request_id"];
18671
+ isOneToOne: false;
18672
+ referencedRelation: "purchase_requests";
18673
+ referencedColumns: ["id"];
18674
+ }];
18675
+ };
18676
+ purchase_request_responses: {
18677
+ Row: {
18678
+ confirmed_date: string | null;
18679
+ confirmed_price_cents: number | null;
18680
+ confirmed_quantity: number;
18681
+ created_at: string;
18682
+ id: string;
18683
+ not_available: boolean;
18684
+ note: string | null;
18685
+ purchase_order_item_id: string;
18686
+ request_id: string;
18687
+ updated_at: string;
18688
+ };
18689
+ Insert: {
18690
+ confirmed_date?: string | null;
18691
+ confirmed_price_cents?: number | null;
18692
+ confirmed_quantity?: number;
18693
+ created_at?: string;
18694
+ id?: string;
18695
+ not_available?: boolean;
18696
+ note?: string | null;
18697
+ purchase_order_item_id: string;
18698
+ request_id: string;
18699
+ updated_at?: string;
18700
+ };
18701
+ Update: {
18702
+ confirmed_date?: string | null;
18703
+ confirmed_price_cents?: number | null;
18704
+ confirmed_quantity?: number;
18705
+ created_at?: string;
18706
+ id?: string;
18707
+ not_available?: boolean;
18708
+ note?: string | null;
18709
+ purchase_order_item_id?: string;
18710
+ request_id?: string;
18711
+ updated_at?: string;
18712
+ };
18713
+ Relationships: [{
18714
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18715
+ columns: ["purchase_order_item_id"];
18716
+ isOneToOne: false;
18717
+ referencedRelation: "purchase_order_items";
18718
+ referencedColumns: ["id"];
18719
+ }, {
18720
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18721
+ columns: ["request_id"];
18722
+ isOneToOne: false;
18723
+ referencedRelation: "purchase_requests";
18724
+ referencedColumns: ["id"];
18725
+ }];
18726
+ };
18727
+ purchase_requests: {
18728
+ Row: {
18729
+ created_at: string;
18730
+ expires_at: string;
18731
+ first_viewed_at: string | null;
18732
+ id: string;
18733
+ processed_at: string | null;
18734
+ purchase_order_id: string;
18735
+ responded_at: string | null;
18736
+ sent_at: string;
18737
+ status: string;
18738
+ supplier_id: string | null;
18739
+ supplier_name: string;
18740
+ supplier_note: string | null;
18741
+ to_address: string | null;
18742
+ token_hash: string;
18743
+ updated_at: string;
18744
+ };
18745
+ Insert: {
18746
+ created_at?: string;
18747
+ expires_at?: string;
18748
+ first_viewed_at?: string | null;
18749
+ id?: string;
18750
+ processed_at?: string | null;
18751
+ purchase_order_id: string;
18752
+ responded_at?: string | null;
18753
+ sent_at?: string;
18754
+ status?: string;
18755
+ supplier_id?: string | null;
18756
+ supplier_name?: string;
18757
+ supplier_note?: string | null;
18758
+ to_address?: string | null;
18759
+ token_hash: string;
18760
+ updated_at?: string;
18761
+ };
18762
+ Update: {
18763
+ created_at?: string;
18764
+ expires_at?: string;
18765
+ first_viewed_at?: string | null;
18766
+ id?: string;
18767
+ processed_at?: string | null;
18768
+ purchase_order_id?: string;
18769
+ responded_at?: string | null;
18770
+ sent_at?: string;
18771
+ status?: string;
18772
+ supplier_id?: string | null;
18773
+ supplier_name?: string;
18774
+ supplier_note?: string | null;
18775
+ to_address?: string | null;
18776
+ token_hash?: string;
18777
+ updated_at?: string;
18778
+ };
18779
+ Relationships: [{
18780
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18781
+ columns: ["purchase_order_id"];
18782
+ isOneToOne: false;
18783
+ referencedRelation: "purchase_orders";
18784
+ referencedColumns: ["id"];
18785
+ }, {
18786
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18787
+ columns: ["supplier_id"];
18788
+ isOneToOne: false;
18789
+ referencedRelation: "suppliers";
18790
+ referencedColumns: ["id"];
18791
+ }];
18792
+ };
17725
18793
  reception_notifications: {
17726
18794
  Row: {
17727
18795
  booking_id: string | null;
@@ -19052,40 +20120,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19052
20120
  Row: {
19053
20121
  approved_at: string | null;
19054
20122
  approved_by: string | null;
20123
+ contract_hours: number;
19055
20124
  created_at: string;
19056
20125
  employee_id: string;
19057
20126
  id: string;
19058
20127
  locked: boolean;
20128
+ monteur_toelichting: string | null;
19059
20129
  notes: string | null;
20130
+ planned_hours: number;
19060
20131
  status: string;
19061
20132
  submitted_at: string | null;
19062
20133
  updated_at: string;
20134
+ variance_hours: number;
19063
20135
  week_start: string;
19064
20136
  };
19065
20137
  Insert: {
19066
20138
  approved_at?: string | null;
19067
20139
  approved_by?: string | null;
20140
+ contract_hours?: number;
19068
20141
  created_at?: string;
19069
20142
  employee_id: string;
19070
20143
  id?: string;
19071
20144
  locked?: boolean;
20145
+ monteur_toelichting?: string | null;
19072
20146
  notes?: string | null;
20147
+ planned_hours?: number;
19073
20148
  status?: string;
19074
20149
  submitted_at?: string | null;
19075
20150
  updated_at?: string;
20151
+ variance_hours?: number;
19076
20152
  week_start: string;
19077
20153
  };
19078
20154
  Update: {
19079
20155
  approved_at?: string | null;
19080
20156
  approved_by?: string | null;
20157
+ contract_hours?: number;
19081
20158
  created_at?: string;
19082
20159
  employee_id?: string;
19083
20160
  id?: string;
19084
20161
  locked?: boolean;
20162
+ monteur_toelichting?: string | null;
19085
20163
  notes?: string | null;
20164
+ planned_hours?: number;
19086
20165
  status?: string;
19087
20166
  submitted_at?: string | null;
19088
20167
  updated_at?: string;
20168
+ variance_hours?: number;
19089
20169
  week_start?: string;
19090
20170
  };
19091
20171
  Relationships: [{
@@ -19873,6 +20953,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19873
20953
  auto_invoice_enabled: boolean;
19874
20954
  auto_invoice_start_date: string | null;
19875
20955
  auto_invoice_trigger_statuses: string[];
20956
+ auto_send_mode: string | null;
19876
20957
  created_at: string;
19877
20958
  debtor_gl_account: string;
19878
20959
  default_article_code: string | null;
@@ -19901,6 +20982,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19901
20982
  auto_invoice_enabled?: boolean;
19902
20983
  auto_invoice_start_date?: string | null;
19903
20984
  auto_invoice_trigger_statuses?: string[];
20985
+ auto_send_mode?: string | null;
19904
20986
  created_at?: string;
19905
20987
  debtor_gl_account?: string;
19906
20988
  default_article_code?: string | null;
@@ -19929,6 +21011,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19929
21011
  auto_invoice_enabled?: boolean;
19930
21012
  auto_invoice_start_date?: string | null;
19931
21013
  auto_invoice_trigger_statuses?: string[];
21014
+ auto_send_mode?: string | null;
19932
21015
  created_at?: string;
19933
21016
  debtor_gl_account?: string;
19934
21017
  default_article_code?: string | null;
@@ -20372,16 +21455,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20372
21455
  Row: {
20373
21456
  active_environment: string;
20374
21457
  id: number;
21458
+ public_base_url: string | null;
20375
21459
  updated_at: string;
20376
21460
  };
20377
21461
  Insert: {
20378
21462
  active_environment?: string;
20379
21463
  id?: number;
21464
+ public_base_url?: string | null;
20380
21465
  updated_at?: string;
20381
21466
  };
20382
21467
  Update: {
20383
21468
  active_environment?: string;
20384
21469
  id?: number;
21470
+ public_base_url?: string | null;
20385
21471
  updated_at?: string;
20386
21472
  };
20387
21473
  Relationships: [];
@@ -20419,6 +21505,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20419
21505
  referencedColumns: ["id"];
20420
21506
  }];
20421
21507
  };
21508
+ uren_beschikbare_dagen: {
21509
+ Row: {
21510
+ bron: string;
21511
+ created_at: string;
21512
+ datum: string;
21513
+ eind_tijd: string | null;
21514
+ half_hour_slots: number[];
21515
+ id: string;
21516
+ monteur_id: string;
21517
+ start_tijd: string | null;
21518
+ updated_at: string;
21519
+ uren: number;
21520
+ };
21521
+ Insert: {
21522
+ bron?: string;
21523
+ created_at?: string;
21524
+ datum: string;
21525
+ eind_tijd?: string | null;
21526
+ half_hour_slots?: number[];
21527
+ id?: string;
21528
+ monteur_id: string;
21529
+ start_tijd?: string | null;
21530
+ updated_at?: string;
21531
+ uren?: number;
21532
+ };
21533
+ Update: {
21534
+ bron?: string;
21535
+ created_at?: string;
21536
+ datum?: string;
21537
+ eind_tijd?: string | null;
21538
+ half_hour_slots?: number[];
21539
+ id?: string;
21540
+ monteur_id?: string;
21541
+ start_tijd?: string | null;
21542
+ updated_at?: string;
21543
+ uren?: number;
21544
+ };
21545
+ Relationships: [];
21546
+ };
20422
21547
  uren_cao_profiles: {
20423
21548
  Row: {
20424
21549
  break_minutes: number | null;
@@ -20557,26 +21682,155 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20557
21682
  };
20558
21683
  Relationships: [];
20559
21684
  };
20560
- uren_settings: {
21685
+ uren_maandafsluitingen: {
20561
21686
  Row: {
20562
- break_minutes: number;
21687
+ afgesloten_at: string | null;
21688
+ afgesloten_door: string | null;
21689
+ contract_minuten: number;
21690
+ correctie_reden: string | null;
20563
21691
  created_at: string;
20564
- daily_threshold_hours: number;
20565
- id: boolean;
20566
- include_travel: boolean;
20567
- min_occupancy_monteurs: number;
20568
- ov02_percentage: number;
20569
- ov03_percentage: number;
21692
+ gecorrigeerd_at: string | null;
21693
+ gecorrigeerd_door: string | null;
21694
+ gewerkte_minuten: number;
21695
+ id: string;
21696
+ maand: string;
21697
+ min_minuten: number;
21698
+ monteur_id: string;
21699
+ netto_verschil_minuten: number;
21700
+ normaal_uitbetaald_minuten: number;
21701
+ omgezet_vakantie_minuten: number;
21702
+ overdracht_vorige_minuten: number;
21703
+ overuren_minuten: number;
21704
+ plus_minuten: number;
21705
+ rest_overuren_minuten: number;
21706
+ status: string;
21707
+ totaal_uitbetaald_minuten: number;
20570
21708
  updated_at: string;
20571
- weekly_threshold_hours: number;
20572
- workday_end: string;
20573
- workday_start: string;
21709
+ vakantie_uren_bijgeschreven: number;
20574
21710
  };
20575
21711
  Insert: {
20576
- break_minutes?: number;
21712
+ afgesloten_at?: string | null;
21713
+ afgesloten_door?: string | null;
21714
+ contract_minuten?: number;
21715
+ correctie_reden?: string | null;
20577
21716
  created_at?: string;
20578
- daily_threshold_hours?: number;
20579
- id?: boolean;
21717
+ gecorrigeerd_at?: string | null;
21718
+ gecorrigeerd_door?: string | null;
21719
+ gewerkte_minuten?: number;
21720
+ id?: string;
21721
+ maand: string;
21722
+ min_minuten?: number;
21723
+ monteur_id: string;
21724
+ netto_verschil_minuten?: number;
21725
+ normaal_uitbetaald_minuten?: number;
21726
+ omgezet_vakantie_minuten?: number;
21727
+ overdracht_vorige_minuten?: number;
21728
+ overuren_minuten?: number;
21729
+ plus_minuten?: number;
21730
+ rest_overuren_minuten?: number;
21731
+ status?: string;
21732
+ totaal_uitbetaald_minuten?: number;
21733
+ updated_at?: string;
21734
+ vakantie_uren_bijgeschreven?: number;
21735
+ };
21736
+ Update: {
21737
+ afgesloten_at?: string | null;
21738
+ afgesloten_door?: string | null;
21739
+ contract_minuten?: number;
21740
+ correctie_reden?: string | null;
21741
+ created_at?: string;
21742
+ gecorrigeerd_at?: string | null;
21743
+ gecorrigeerd_door?: string | null;
21744
+ gewerkte_minuten?: number;
21745
+ id?: string;
21746
+ maand?: string;
21747
+ min_minuten?: number;
21748
+ monteur_id?: string;
21749
+ netto_verschil_minuten?: number;
21750
+ normaal_uitbetaald_minuten?: number;
21751
+ omgezet_vakantie_minuten?: number;
21752
+ overdracht_vorige_minuten?: number;
21753
+ overuren_minuten?: number;
21754
+ plus_minuten?: number;
21755
+ rest_overuren_minuten?: number;
21756
+ status?: string;
21757
+ totaal_uitbetaald_minuten?: number;
21758
+ updated_at?: string;
21759
+ vakantie_uren_bijgeschreven?: number;
21760
+ };
21761
+ Relationships: [];
21762
+ };
21763
+ uren_overuren_verklaringen: {
21764
+ Row: {
21765
+ beoordeeld_door: string | null;
21766
+ beoordeeld_op: string | null;
21767
+ created_at: string;
21768
+ datum: string;
21769
+ eind_tijd: string | null;
21770
+ id: string;
21771
+ ingediend_at: string;
21772
+ monteur_id: string;
21773
+ overuren: number;
21774
+ reden_afkeur: string | null;
21775
+ start_tijd: string | null;
21776
+ status: string;
21777
+ toelichting: string;
21778
+ updated_at: string;
21779
+ };
21780
+ Insert: {
21781
+ beoordeeld_door?: string | null;
21782
+ beoordeeld_op?: string | null;
21783
+ created_at?: string;
21784
+ datum: string;
21785
+ eind_tijd?: string | null;
21786
+ id?: string;
21787
+ ingediend_at?: string;
21788
+ monteur_id: string;
21789
+ overuren: number;
21790
+ reden_afkeur?: string | null;
21791
+ start_tijd?: string | null;
21792
+ status?: string;
21793
+ toelichting: string;
21794
+ updated_at?: string;
21795
+ };
21796
+ Update: {
21797
+ beoordeeld_door?: string | null;
21798
+ beoordeeld_op?: string | null;
21799
+ created_at?: string;
21800
+ datum?: string;
21801
+ eind_tijd?: string | null;
21802
+ id?: string;
21803
+ ingediend_at?: string;
21804
+ monteur_id?: string;
21805
+ overuren?: number;
21806
+ reden_afkeur?: string | null;
21807
+ start_tijd?: string | null;
21808
+ status?: string;
21809
+ toelichting?: string;
21810
+ updated_at?: string;
21811
+ };
21812
+ Relationships: [];
21813
+ };
21814
+ uren_settings: {
21815
+ Row: {
21816
+ break_minutes: number;
21817
+ created_at: string;
21818
+ daily_threshold_hours: number;
21819
+ id: boolean;
21820
+ include_travel: boolean;
21821
+ min_occupancy_monteurs: number;
21822
+ ov02_percentage: number;
21823
+ ov03_percentage: number;
21824
+ updated_at: string;
21825
+ weekly_threshold_hours: number;
21826
+ workday_end: string;
21827
+ workday_start: string;
21828
+ };
21829
+ Insert: {
21830
+ break_minutes?: number;
21831
+ created_at?: string;
21832
+ daily_threshold_hours?: number;
21833
+ id?: boolean;
20580
21834
  include_travel?: boolean;
20581
21835
  min_occupancy_monteurs?: number;
20582
21836
  ov02_percentage?: number;
@@ -20602,6 +21856,75 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20602
21856
  };
20603
21857
  Relationships: [];
20604
21858
  };
21859
+ uren_standaardweek: {
21860
+ Row: {
21861
+ created_at: string;
21862
+ eind_slot: number;
21863
+ id: string;
21864
+ monteur_id: string;
21865
+ start_slot: number;
21866
+ updated_at: string;
21867
+ weekdag: number;
21868
+ };
21869
+ Insert: {
21870
+ created_at?: string;
21871
+ eind_slot: number;
21872
+ id?: string;
21873
+ monteur_id: string;
21874
+ start_slot: number;
21875
+ updated_at?: string;
21876
+ weekdag: number;
21877
+ };
21878
+ Update: {
21879
+ created_at?: string;
21880
+ eind_slot?: number;
21881
+ id?: string;
21882
+ monteur_id?: string;
21883
+ start_slot?: number;
21884
+ updated_at?: string;
21885
+ weekdag?: number;
21886
+ };
21887
+ Relationships: [];
21888
+ };
21889
+ uren_standaardweek_wijzigingen: {
21890
+ Row: {
21891
+ beoordeeld_door: string | null;
21892
+ beoordeeld_op: string | null;
21893
+ created_at: string;
21894
+ huidig: import("./types").Json;
21895
+ id: string;
21896
+ monteur_id: string;
21897
+ reden_afkeur: string | null;
21898
+ status: string;
21899
+ updated_at: string;
21900
+ voorstel: import("./types").Json;
21901
+ };
21902
+ Insert: {
21903
+ beoordeeld_door?: string | null;
21904
+ beoordeeld_op?: string | null;
21905
+ created_at?: string;
21906
+ huidig?: import("./types").Json;
21907
+ id?: string;
21908
+ monteur_id: string;
21909
+ reden_afkeur?: string | null;
21910
+ status?: string;
21911
+ updated_at?: string;
21912
+ voorstel: import("./types").Json;
21913
+ };
21914
+ Update: {
21915
+ beoordeeld_door?: string | null;
21916
+ beoordeeld_op?: string | null;
21917
+ created_at?: string;
21918
+ huidig?: import("./types").Json;
21919
+ id?: string;
21920
+ monteur_id?: string;
21921
+ reden_afkeur?: string | null;
21922
+ status?: string;
21923
+ updated_at?: string;
21924
+ voorstel?: import("./types").Json;
21925
+ };
21926
+ Relationships: [];
21927
+ };
20605
21928
  uren_tarieven: {
20606
21929
  Row: {
20607
21930
  created_at: string;
@@ -20686,6 +22009,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20686
22009
  };
20687
22010
  Relationships: [];
20688
22011
  };
22012
+ uren_tijd_spiegel: {
22013
+ Row: {
22014
+ created_at: string;
22015
+ id: string;
22016
+ time_log_id: string;
22017
+ werkbon_time_log_id: string;
22018
+ };
22019
+ Insert: {
22020
+ created_at?: string;
22021
+ id?: string;
22022
+ time_log_id: string;
22023
+ werkbon_time_log_id: string;
22024
+ };
22025
+ Update: {
22026
+ created_at?: string;
22027
+ id?: string;
22028
+ time_log_id?: string;
22029
+ werkbon_time_log_id?: string;
22030
+ };
22031
+ Relationships: [{
22032
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22033
+ columns: ["time_log_id"];
22034
+ isOneToOne: true;
22035
+ referencedRelation: "time_logs";
22036
+ referencedColumns: ["id"];
22037
+ }, {
22038
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22039
+ columns: ["werkbon_time_log_id"];
22040
+ isOneToOne: true;
22041
+ referencedRelation: "werkbon_time_logs";
22042
+ referencedColumns: ["id"];
22043
+ }];
22044
+ };
20689
22045
  uren_weekstaten: {
20690
22046
  Row: {
20691
22047
  approved_at: string | null;
@@ -20728,6 +22084,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20728
22084
  };
20729
22085
  Relationships: [];
20730
22086
  };
22087
+ uren_werktijd_voorkeuren: {
22088
+ Row: {
22089
+ created_at: string;
22090
+ eind_slot: number;
22091
+ id: string;
22092
+ monteur_id: string;
22093
+ start_slot: number;
22094
+ updated_at: string;
22095
+ };
22096
+ Insert: {
22097
+ created_at?: string;
22098
+ eind_slot?: number;
22099
+ id?: string;
22100
+ monteur_id: string;
22101
+ start_slot?: number;
22102
+ updated_at?: string;
22103
+ };
22104
+ Update: {
22105
+ created_at?: string;
22106
+ eind_slot?: number;
22107
+ id?: string;
22108
+ monteur_id?: string;
22109
+ start_slot?: number;
22110
+ updated_at?: string;
22111
+ };
22112
+ Relationships: [];
22113
+ };
20731
22114
  user_module_permissions: {
20732
22115
  Row: {
20733
22116
  created_at: string;
@@ -20785,6 +22168,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20785
22168
  referencedColumns: ["id"];
20786
22169
  }];
20787
22170
  };
22171
+ vakantie_uitbetalingen: {
22172
+ Row: {
22173
+ created_at: string;
22174
+ created_by: string | null;
22175
+ days: number;
22176
+ id: string;
22177
+ note: string | null;
22178
+ updated_at: string;
22179
+ user_id: string;
22180
+ year: number;
22181
+ };
22182
+ Insert: {
22183
+ created_at?: string;
22184
+ created_by?: string | null;
22185
+ days: number;
22186
+ id?: string;
22187
+ note?: string | null;
22188
+ updated_at?: string;
22189
+ user_id: string;
22190
+ year?: number;
22191
+ };
22192
+ Update: {
22193
+ created_at?: string;
22194
+ created_by?: string | null;
22195
+ days?: number;
22196
+ id?: string;
22197
+ note?: string | null;
22198
+ updated_at?: string;
22199
+ user_id?: string;
22200
+ year?: number;
22201
+ };
22202
+ Relationships: [{
22203
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22204
+ columns: ["created_by"];
22205
+ isOneToOne: false;
22206
+ referencedRelation: "profiles";
22207
+ referencedColumns: ["id"];
22208
+ }, {
22209
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22210
+ columns: ["user_id"];
22211
+ isOneToOne: false;
22212
+ referencedRelation: "profiles";
22213
+ referencedColumns: ["id"];
22214
+ }];
22215
+ };
20788
22216
  van_inventories: {
20789
22217
  Row: {
20790
22218
  barcode: string | null;
@@ -21659,10 +23087,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21659
23087
  Row: {
21660
23088
  article_number: string | null;
21661
23089
  artikel_id: string | null;
23090
+ cost_price_cents: number;
21662
23091
  created_at: string;
21663
23092
  gtin: string | null;
21664
23093
  id: string;
21665
23094
  manufacturer: string | null;
23095
+ margin_percent: number | null;
21666
23096
  omschrijving: string;
21667
23097
  package_id: string;
21668
23098
  price_synced_at: string | null;
@@ -21677,10 +23107,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21677
23107
  Insert: {
21678
23108
  article_number?: string | null;
21679
23109
  artikel_id?: string | null;
23110
+ cost_price_cents?: number;
21680
23111
  created_at?: string;
21681
23112
  gtin?: string | null;
21682
23113
  id?: string;
21683
23114
  manufacturer?: string | null;
23115
+ margin_percent?: number | null;
21684
23116
  omschrijving: string;
21685
23117
  package_id: string;
21686
23118
  price_synced_at?: string | null;
@@ -21695,10 +23127,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21695
23127
  Update: {
21696
23128
  article_number?: string | null;
21697
23129
  artikel_id?: string | null;
23130
+ cost_price_cents?: number;
21698
23131
  created_at?: string;
21699
23132
  gtin?: string | null;
21700
23133
  id?: string;
21701
23134
  manufacturer?: string | null;
23135
+ margin_percent?: number | null;
21702
23136
  omschrijving?: string;
21703
23137
  package_id?: string;
21704
23138
  price_synced_at?: string | null;
@@ -21781,7 +23215,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21781
23215
  created_at: string;
21782
23216
  default_quantity: number;
21783
23217
  description: string | null;
21784
- duration_minutes: number | null;
23218
+ duration_minutes: number;
21785
23219
  id: string;
21786
23220
  mandaat_type: string | null;
21787
23221
  name: string;
@@ -21798,7 +23232,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21798
23232
  created_at?: string;
21799
23233
  default_quantity?: number;
21800
23234
  description?: string | null;
21801
- duration_minutes?: number | null;
23235
+ duration_minutes?: number;
21802
23236
  id?: string;
21803
23237
  mandaat_type?: string | null;
21804
23238
  name: string;
@@ -21815,7 +23249,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21815
23249
  created_at?: string;
21816
23250
  default_quantity?: number;
21817
23251
  description?: string | null;
21818
- duration_minutes?: number | null;
23252
+ duration_minutes?: number;
21819
23253
  id?: string;
21820
23254
  mandaat_type?: string | null;
21821
23255
  name?: string;
@@ -22063,6 +23497,78 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22063
23497
  referencedColumns: ["id"];
22064
23498
  }];
22065
23499
  };
23500
+ werkbon_voorstellen: {
23501
+ Row: {
23502
+ bron_werkbon_id: string;
23503
+ budget_mandate_cents: number;
23504
+ created_at: string;
23505
+ created_by: string;
23506
+ customer_id: string | null;
23507
+ id: string;
23508
+ payload: import("./types").Json;
23509
+ reden: string | null;
23510
+ status: string;
23511
+ updated_at: string;
23512
+ verwerkt_door: string | null;
23513
+ verwerkt_op: string | null;
23514
+ werkbon_id: string | null;
23515
+ };
23516
+ Insert: {
23517
+ bron_werkbon_id: string;
23518
+ budget_mandate_cents?: number;
23519
+ created_at?: string;
23520
+ created_by?: string;
23521
+ customer_id?: string | null;
23522
+ id?: string;
23523
+ payload?: import("./types").Json;
23524
+ reden?: string | null;
23525
+ status?: string;
23526
+ updated_at?: string;
23527
+ verwerkt_door?: string | null;
23528
+ verwerkt_op?: string | null;
23529
+ werkbon_id?: string | null;
23530
+ };
23531
+ Update: {
23532
+ bron_werkbon_id?: string;
23533
+ budget_mandate_cents?: number;
23534
+ created_at?: string;
23535
+ created_by?: string;
23536
+ customer_id?: string | null;
23537
+ id?: string;
23538
+ payload?: import("./types").Json;
23539
+ reden?: string | null;
23540
+ status?: string;
23541
+ updated_at?: string;
23542
+ verwerkt_door?: string | null;
23543
+ verwerkt_op?: string | null;
23544
+ werkbon_id?: string | null;
23545
+ };
23546
+ Relationships: [{
23547
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23548
+ columns: ["bron_werkbon_id"];
23549
+ isOneToOne: false;
23550
+ referencedRelation: "werkbonnen";
23551
+ referencedColumns: ["id"];
23552
+ }, {
23553
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23554
+ columns: ["bron_werkbon_id"];
23555
+ isOneToOne: false;
23556
+ referencedRelation: "wo_overview";
23557
+ referencedColumns: ["id"];
23558
+ }, {
23559
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23560
+ columns: ["werkbon_id"];
23561
+ isOneToOne: false;
23562
+ referencedRelation: "werkbonnen";
23563
+ referencedColumns: ["id"];
23564
+ }, {
23565
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23566
+ columns: ["werkbon_id"];
23567
+ isOneToOne: false;
23568
+ referencedRelation: "wo_overview";
23569
+ referencedColumns: ["id"];
23570
+ }];
23571
+ };
22066
23572
  werkbonnen: {
22067
23573
  Row: {
22068
23574
  assigned_user_id: string | null;
@@ -22670,6 +24176,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22670
24176
  };
22671
24177
  Relationships: [];
22672
24178
  };
24179
+ logistics_packing_diff: {
24180
+ Row: {
24181
+ dev_key: string | null;
24182
+ floriday_packing: import("./types").Json | null;
24183
+ local_packing: import("./types").Json | null;
24184
+ order_id: string | null;
24185
+ order_item_id: string | null;
24186
+ order_number: string | null;
24187
+ product_id: string | null;
24188
+ product_name: string | null;
24189
+ scope: string | null;
24190
+ trade_item_id: string | null;
24191
+ };
24192
+ Relationships: [];
24193
+ };
22673
24194
  logistics_product_dimensions: {
22674
24195
  Row: {
22675
24196
  dimension_source: string | null;
@@ -23288,6 +24809,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23288
24809
  };
23289
24810
  Returns: undefined;
23290
24811
  };
24812
+ _wo_is_planner: {
24813
+ Args: never;
24814
+ Returns: boolean;
24815
+ };
23291
24816
  afh_city_code: {
23292
24817
  Args: {
23293
24818
  _city: string;
@@ -23898,10 +25423,32 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23898
25423
  };
23899
25424
  Returns: number;
23900
25425
  };
23901
- count_distinct_regulatory_products: {
25426
+ control_mark_carts_delivered_detail: {
25427
+ Args: {
25428
+ p_carts: import("./types").Json;
25429
+ };
25430
+ Returns: {
25431
+ cart_index: number;
25432
+ frozen: boolean;
25433
+ message: string;
25434
+ order_id: string;
25435
+ order_source: string;
25436
+ outcome: string;
25437
+ }[];
25438
+ };
25439
+ count_distinct_regulatory_products: {
23902
25440
  Args: never;
23903
25441
  Returns: number;
23904
25442
  };
25443
+ create_order_from_public_offer: {
25444
+ Args: {
25445
+ p_carrier_id?: string;
25446
+ p_delivery_date?: string;
25447
+ p_delivery_garden_id?: string;
25448
+ p_offer_order_id: string;
25449
+ };
25450
+ Returns: import("./types").Json;
25451
+ };
23905
25452
  current_monteur_id: {
23906
25453
  Args: never;
23907
25454
  Returns: string;
@@ -24378,6 +25925,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24378
25925
  };
24379
25926
  Returns: number;
24380
25927
  };
25928
+ get_product_stock: {
25929
+ Args: {
25930
+ p_product_id: string;
25931
+ };
25932
+ Returns: {
25933
+ connection_id: string;
25934
+ incoming_stock: number;
25935
+ minimum_stock: number;
25936
+ notes: string;
25937
+ physical_stock: number;
25938
+ product_id: string;
25939
+ reserved_stock: number;
25940
+ trade_item_key: string;
25941
+ updated_at: string;
25942
+ }[];
25943
+ };
24381
25944
  get_room_busy_windows: {
24382
25945
  Args: {
24383
25946
  p_from: string;
@@ -24682,13 +26245,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24682
26245
  };
24683
26246
  Returns: import("./types").Json;
24684
26247
  };
26248
+ inkoop_cancel_line: {
26249
+ Args: {
26250
+ _item_id: string;
26251
+ _reason: string;
26252
+ };
26253
+ Returns: string;
26254
+ };
26255
+ inkoop_get_supplier_request: {
26256
+ Args: {
26257
+ _token: string;
26258
+ };
26259
+ Returns: import("./types").Json;
26260
+ };
26261
+ inkoop_hash_token: {
26262
+ Args: {
26263
+ _token: string;
26264
+ };
26265
+ Returns: string;
26266
+ };
26267
+ inkoop_html_escape: {
26268
+ Args: {
26269
+ _t: string;
26270
+ };
26271
+ Returns: string;
26272
+ };
26273
+ inkoop_list_artikelen: {
26274
+ Args: never;
26275
+ Returns: {
26276
+ article_number: string;
26277
+ barcode: string;
26278
+ id: string;
26279
+ incoming_quantity: number;
26280
+ is_layer: boolean;
26281
+ location: string;
26282
+ min_quantity: number;
26283
+ preferred_supplier_name: string;
26284
+ product: string;
26285
+ product_type: string;
26286
+ purchase_price: number;
26287
+ quantity: number;
26288
+ sale_price: number;
26289
+ supplier_count: number;
26290
+ unit: string;
26291
+ }[];
26292
+ };
24685
26293
  inkoop_next_order_number: {
24686
26294
  Args: never;
24687
26295
  Returns: string;
24688
26296
  };
26297
+ inkoop_process_request: {
26298
+ Args: {
26299
+ _request_id: string;
26300
+ };
26301
+ Returns: undefined;
26302
+ };
24689
26303
  inkoop_send_order: {
24690
26304
  Args: {
26305
+ _base_url?: string;
24691
26306
  _order_id: string;
26307
+ _resend?: boolean;
24692
26308
  };
24693
26309
  Returns: {
24694
26310
  outbox_id: string;
@@ -24696,6 +26312,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24696
26312
  to_address: string;
24697
26313
  }[];
24698
26314
  };
26315
+ inkoop_set_preferred_supplier: {
26316
+ Args: {
26317
+ _product_id: string;
26318
+ _supplier_id: string;
26319
+ };
26320
+ Returns: undefined;
26321
+ };
26322
+ inkoop_stock_key: {
26323
+ Args: {
26324
+ p_product_id: string;
26325
+ };
26326
+ Returns: string;
26327
+ };
26328
+ inkoop_submit_supplier_response: {
26329
+ Args: {
26330
+ _lines: import("./types").Json;
26331
+ _note?: string;
26332
+ _token: string;
26333
+ };
26334
+ Returns: import("./types").Json;
26335
+ };
26336
+ inkoop_sync_item_stock: {
26337
+ Args: {
26338
+ p_item_id: string;
26339
+ };
26340
+ Returns: undefined;
26341
+ };
24699
26342
  instructie_get: {
24700
26343
  Args: {
24701
26344
  _sleutel: string;
@@ -24715,6 +26358,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24715
26358
  };
24716
26359
  Returns: number;
24717
26360
  };
26361
+ invoice_branding_snapshot: {
26362
+ Args: never;
26363
+ Returns: import("./types").Json;
26364
+ };
24718
26365
  invoice_create_from_source: {
24719
26366
  Args: {
24720
26367
  _payload?: import("./types").Json;
@@ -24749,12 +26396,41 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24749
26396
  };
24750
26397
  Returns: import("./types").Json;
24751
26398
  };
26399
+ invoice_mark_sent: {
26400
+ Args: {
26401
+ _invoice_id: string;
26402
+ _to: string;
26403
+ };
26404
+ Returns: undefined;
26405
+ };
26406
+ invoice_peek_next_number: {
26407
+ Args: never;
26408
+ Returns: string;
26409
+ };
26410
+ invoice_ready_work_orders: {
26411
+ Args: {
26412
+ _limit?: number;
26413
+ };
26414
+ Returns: import("./types").Json;
26415
+ };
24752
26416
  invoice_recalc_totals: {
24753
26417
  Args: {
24754
26418
  _invoice_id: string;
24755
26419
  };
24756
26420
  Returns: import("./types").Json;
24757
26421
  };
26422
+ invoice_save_branding_settings: {
26423
+ Args: {
26424
+ _payload: import("./types").Json;
26425
+ };
26426
+ Returns: import("./types").Json;
26427
+ };
26428
+ invoice_set_email_purpose: {
26429
+ Args: {
26430
+ _purpose: string;
26431
+ };
26432
+ Returns: string;
26433
+ };
24758
26434
  invoice_source_lines: {
24759
26435
  Args: {
24760
26436
  _source_id: string;
@@ -24762,6 +26438,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24762
26438
  };
24763
26439
  Returns: import("./types").Json;
24764
26440
  };
26441
+ invoice_update_full: {
26442
+ Args: {
26443
+ _invoice_id: string;
26444
+ _payload: import("./types").Json;
26445
+ };
26446
+ Returns: import("./types").Json;
26447
+ };
26448
+ invoice_work_order_locked: {
26449
+ Args: {
26450
+ _werkbon_id: string;
26451
+ };
26452
+ Returns: import("./types").Json;
26453
+ };
24765
26454
  is_authenticated: {
24766
26455
  Args: never;
24767
26456
  Returns: boolean;
@@ -24810,6 +26499,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24810
26499
  };
24811
26500
  Returns: boolean;
24812
26501
  };
26502
+ layout_print_document: {
26503
+ Args: {
26504
+ _documentnaam: string;
26505
+ _documenttype: string;
26506
+ _herkomst?: string;
26507
+ _idempotentie_sleutel?: string;
26508
+ _is_herprint?: boolean;
26509
+ _kopieen?: number;
26510
+ _layout_id?: string;
26511
+ _payload?: import("./types").Json;
26512
+ _pdf_base64?: string;
26513
+ _pdf_url?: string;
26514
+ _print_plek_id?: string;
26515
+ _werkplek?: string;
26516
+ };
26517
+ Returns: {
26518
+ bestaand: boolean;
26519
+ job_id: string;
26520
+ printer_id: string;
26521
+ }[];
26522
+ };
24813
26523
  list_medewerkers: {
24814
26524
  Args: never;
24815
26525
  Returns: {
@@ -24994,6 +26704,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24994
26704
  };
24995
26705
  Returns: import("./types").Json;
24996
26706
  };
26707
+ logistics_buffer_decision_for_settings: {
26708
+ Args: {
26709
+ p_order: import("./types").Json;
26710
+ p_settings: import("./types").Json;
26711
+ p_user_id?: string;
26712
+ };
26713
+ Returns: import("./types").Json;
26714
+ };
24997
26715
  logistics_buffer_detach_late_orders: {
24998
26716
  Args: {
24999
26717
  p_buffer?: string;
@@ -25027,6 +26745,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25027
26745
  };
25028
26746
  Returns: string;
25029
26747
  };
26748
+ logistics_buffer_payload: {
26749
+ Args: {
26750
+ p_order_id: string;
26751
+ };
26752
+ Returns: import("./types").Json;
26753
+ };
25030
26754
  logistics_buffer_simulate: {
25031
26755
  Args: {
25032
26756
  p_orders?: import("./types").Json;
@@ -25073,6 +26797,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25073
26797
  };
25074
26798
  Returns: number;
25075
26799
  };
26800
+ logistics_cart_barcode_opschonen: {
26801
+ Args: {
26802
+ p_portie?: number;
26803
+ };
26804
+ Returns: import("./types").Json;
26805
+ };
25076
26806
  logistics_cart_barcode_value: {
25077
26807
  Args: {
25078
26808
  _cart_id: string;
@@ -25085,6 +26815,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25085
26815
  };
25086
26816
  Returns: string;
25087
26817
  };
26818
+ logistics_cart_coverage_check: {
26819
+ Args: never;
26820
+ Returns: import("./types").Json;
26821
+ };
25088
26822
  logistics_cart_handled: {
25089
26823
  Args: {
25090
26824
  p_cart_index: number;
@@ -25328,6 +27062,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25328
27062
  isSetofReturn: false;
25329
27063
  };
25330
27064
  };
27065
+ logistics_cleanup_duplicate_order_lines: {
27066
+ Args: {
27067
+ p_limit?: number;
27068
+ p_order_id: string;
27069
+ };
27070
+ Returns: import("./types").Json;
27071
+ };
27072
+ logistics_cleanup_history: {
27073
+ Args: {
27074
+ p_limit?: number;
27075
+ };
27076
+ Returns: import("./types").Json;
27077
+ };
25331
27078
  logistics_cleanup_orphan_print_jobs: {
25332
27079
  Args: never;
25333
27080
  Returns: import("./types").Json;
@@ -25475,6 +27222,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25475
27222
  };
25476
27223
  Returns: import("./types").Json;
25477
27224
  };
27225
+ logistics_control_scan_print_own: {
27226
+ Args: {
27227
+ p_is_herprint?: boolean;
27228
+ p_scan_id: string;
27229
+ };
27230
+ Returns: import("./types").Json;
27231
+ };
25478
27232
  logistics_control_scan_retry: {
25479
27233
  Args: {
25480
27234
  _id: string;
@@ -25485,6 +27239,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25485
27239
  Args: never;
25486
27240
  Returns: import("./types").Json;
25487
27241
  };
27242
+ logistics_cron_health: {
27243
+ Args: never;
27244
+ Returns: import("./types").Json;
27245
+ };
25488
27246
  logistics_day_windows: {
25489
27247
  Args: {
25490
27248
  p_day: string;
@@ -25834,6 +27592,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25834
27592
  };
25835
27593
  Returns: number;
25836
27594
  };
27595
+ logistics_merge_decision: {
27596
+ Args: {
27597
+ p_lines: import("./types").Json;
27598
+ };
27599
+ Returns: import("./types").Json;
27600
+ };
25837
27601
  logistics_merge_floriday_lines: {
25838
27602
  Args: {
25839
27603
  p_order_id: string;
@@ -25880,6 +27644,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25880
27644
  Args: never;
25881
27645
  Returns: string;
25882
27646
  };
27647
+ logistics_order_backlog_info: {
27648
+ Args: {
27649
+ p_order_id: string;
27650
+ };
27651
+ Returns: import("./types").Json;
27652
+ };
25883
27653
  logistics_order_cart_approval: {
25884
27654
  Args: {
25885
27655
  _order_ref: string;
@@ -25914,6 +27684,50 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25914
27684
  };
25915
27685
  Returns: boolean;
25916
27686
  };
27687
+ logistics_order_finalize_enqueue: {
27688
+ Args: {
27689
+ p_order_id: string;
27690
+ p_reason?: string;
27691
+ };
27692
+ Returns: undefined;
27693
+ };
27694
+ logistics_order_finalize_overview: {
27695
+ Args: never;
27696
+ Returns: {
27697
+ bezig: number;
27698
+ laatst_afgerond: string;
27699
+ laatste_fout: string;
27700
+ mislukt: number;
27701
+ oudste_wachttijd_seconden: number;
27702
+ wachtend: number;
27703
+ }[];
27704
+ };
27705
+ logistics_order_finalize_prune: {
27706
+ Args: {
27707
+ p_days?: number;
27708
+ };
27709
+ Returns: number;
27710
+ };
27711
+ logistics_order_finalize_reconcile: {
27712
+ Args: {
27713
+ p_days?: number;
27714
+ p_limit?: number;
27715
+ };
27716
+ Returns: number;
27717
+ };
27718
+ logistics_order_finalize_retry: {
27719
+ Args: {
27720
+ p_order_id: string;
27721
+ };
27722
+ Returns: boolean;
27723
+ };
27724
+ logistics_order_finalize_run: {
27725
+ Args: {
27726
+ p_lease_seconds?: number;
27727
+ p_limit?: number;
27728
+ };
27729
+ Returns: number;
27730
+ };
25917
27731
  logistics_order_frozen: {
25918
27732
  Args: {
25919
27733
  p_order_id: string;
@@ -25926,6 +27740,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25926
27740
  };
25927
27741
  Returns: boolean;
25928
27742
  };
27743
+ logistics_order_is_backlog: {
27744
+ Args: {
27745
+ p_order_id: string;
27746
+ };
27747
+ Returns: boolean;
27748
+ };
25929
27749
  logistics_order_is_topick: {
25930
27750
  Args: {
25931
27751
  p_order_id: string;
@@ -25933,6 +27753,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25933
27753
  };
25934
27754
  Returns: boolean;
25935
27755
  };
27756
+ logistics_order_line_duplicates: {
27757
+ Args: {
27758
+ p_order_id: string;
27759
+ };
27760
+ Returns: import("./types").Json;
27761
+ };
25936
27762
  logistics_order_merge_key: {
25937
27763
  Args: {
25938
27764
  p_group_key: string;
@@ -25976,6 +27802,63 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25976
27802
  };
25977
27803
  Returns: boolean;
25978
27804
  };
27805
+ logistics_packing_autofix: {
27806
+ Args: {
27807
+ p_limit?: number;
27808
+ };
27809
+ Returns: number;
27810
+ };
27811
+ logistics_packing_block_reason: {
27812
+ Args: {
27813
+ p_order_id: string;
27814
+ p_order_item_id: string;
27815
+ };
27816
+ Returns: string;
27817
+ };
27818
+ logistics_packing_dismiss: {
27819
+ Args: {
27820
+ p_id: string;
27821
+ p_note?: string;
27822
+ };
27823
+ Returns: boolean;
27824
+ };
27825
+ logistics_packing_overview: {
27826
+ Args: never;
27827
+ Returns: {
27828
+ beoordelen: number;
27829
+ herstelbaar: number;
27830
+ laatst_gemeten: string;
27831
+ laatst_hersteld: string;
27832
+ open_totaal: number;
27833
+ orders: number;
27834
+ oudste_seconden: number;
27835
+ producten: number;
27836
+ }[];
27837
+ };
27838
+ logistics_packing_reconcile: {
27839
+ Args: {
27840
+ p_fix_limit?: number;
27841
+ p_scan_limit?: number;
27842
+ };
27843
+ Returns: {
27844
+ beoordelen: number;
27845
+ gevonden: number;
27846
+ hersteld: number;
27847
+ }[];
27848
+ };
27849
+ logistics_packing_scan: {
27850
+ Args: {
27851
+ p_limit?: number;
27852
+ };
27853
+ Returns: number;
27854
+ };
27855
+ logistics_packing_set_manual: {
27856
+ Args: {
27857
+ p_manual?: boolean;
27858
+ p_order_item_id: string;
27859
+ };
27860
+ Returns: boolean;
27861
+ };
25979
27862
  logistics_parse_pickup: {
25980
27863
  Args: {
25981
27864
  p_value: string;
@@ -26004,6 +27887,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26004
27887
  shifted_count: number;
26005
27888
  }[];
26006
27889
  };
27890
+ logistics_pick_backlog_max_days: {
27891
+ Args: never;
27892
+ Returns: number;
27893
+ };
26007
27894
  logistics_pick_barcode_enabled: {
26008
27895
  Args: never;
26009
27896
  Returns: boolean;
@@ -26225,16 +28112,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26225
28112
  Args: never;
26226
28113
  Returns: number;
26227
28114
  };
28115
+ logistics_planner_cart_snapshot: {
28116
+ Args: {
28117
+ p_buffer_id: string;
28118
+ p_order_id: string;
28119
+ };
28120
+ Returns: import("./types").Json;
28121
+ };
28122
+ logistics_planner_diff_mode: {
28123
+ Args: never;
28124
+ Returns: string;
28125
+ };
28126
+ logistics_planner_diff_prune: {
28127
+ Args: never;
28128
+ Returns: number;
28129
+ };
26228
28130
  logistics_prepare_pick_documents: {
26229
28131
  Args: {
26230
28132
  p_limit?: number;
26231
28133
  };
26232
28134
  Returns: import("./types").Json;
26233
28135
  };
28136
+ logistics_print_via_layout: {
28137
+ Args: {
28138
+ _documentnaam: string;
28139
+ _documenttype: string;
28140
+ _herkomst: string;
28141
+ _idempotentie_sleutel: string;
28142
+ _is_herprint: boolean;
28143
+ _layout_id: string;
28144
+ _payload: import("./types").Json;
28145
+ _pdf_base64: string;
28146
+ _pdf_url: string;
28147
+ _print_plek_id: string;
28148
+ };
28149
+ Returns: import("./types").Json;
28150
+ };
26234
28151
  logistics_prune_buffer_member_queue: {
26235
28152
  Args: never;
26236
28153
  Returns: number;
26237
28154
  };
28155
+ logistics_prune_cron_history: {
28156
+ Args: {
28157
+ p_days?: number;
28158
+ };
28159
+ Returns: number;
28160
+ };
26238
28161
  logistics_prune_handled_pick_queue: {
26239
28162
  Args: never;
26240
28163
  Returns: number;
@@ -26271,6 +28194,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26271
28194
  Args: never;
26272
28195
  Returns: import("./types").Json;
26273
28196
  };
28197
+ logistics_recalc_tick_kick: {
28198
+ Args: never;
28199
+ Returns: number;
28200
+ };
28201
+ logistics_reconcile_missing_plan_queue: {
28202
+ Args: never;
28203
+ Returns: number;
28204
+ };
26274
28205
  logistics_refresh_pick_queue_status: {
26275
28206
  Args: {
26276
28207
  p_ref: string;
@@ -26301,11 +28232,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26301
28232
  };
26302
28233
  Returns: import("./types").Json;
26303
28234
  };
28235
+ logistics_replan_clear_foreign_cart_items: {
28236
+ Args: {
28237
+ p_order_id: string;
28238
+ p_reason: string;
28239
+ };
28240
+ Returns: import("./types").Json;
28241
+ };
26304
28242
  logistics_replan_order_journey: {
26305
28243
  Args: {
26306
28244
  p_order_ref: string;
26307
28245
  };
26308
28246
  Returns: import("./types").Json;
28247
+ } | {
28248
+ Args: {
28249
+ p_order_ref: string;
28250
+ p_reason: string;
28251
+ };
28252
+ Returns: import("./types").Json;
26309
28253
  };
26310
28254
  logistics_report_delay: {
26311
28255
  Args: {
@@ -26351,6 +28295,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26351
28295
  };
26352
28296
  Returns: import("./types").Json;
26353
28297
  };
28298
+ logistics_reserved_stock_nightly: {
28299
+ Args: never;
28300
+ Returns: undefined;
28301
+ };
26354
28302
  logistics_resolve_pick_document: {
26355
28303
  Args: {
26356
28304
  _is_herprint: boolean;
@@ -26374,6 +28322,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26374
28322
  };
26375
28323
  Returns: import("./types").Json;
26376
28324
  };
28325
+ logistics_retention_days: {
28326
+ Args: {
28327
+ p_key: string;
28328
+ };
28329
+ Returns: number;
28330
+ };
26377
28331
  logistics_rule_bool: {
26378
28332
  Args: {
26379
28333
  p_default: boolean;
@@ -26480,6 +28434,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26480
28434
  };
26481
28435
  Returns: string;
26482
28436
  };
28437
+ logistics_shipping_note_status: {
28438
+ Args: {
28439
+ p_cart_id?: string;
28440
+ p_slip_job_id?: string;
28441
+ };
28442
+ Returns: import("./types").Json;
28443
+ };
26483
28444
  logistics_shipping_notes_wake_all: {
26484
28445
  Args: never;
26485
28446
  Returns: import("./types").Json;
@@ -26542,6 +28503,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26542
28503
  };
26543
28504
  Returns: undefined;
26544
28505
  };
28506
+ logistics_slip_note_retry: {
28507
+ Args: {
28508
+ _id: string;
28509
+ };
28510
+ Returns: import("./types").Json;
28511
+ };
26545
28512
  logistics_sticker_follows_slip: {
26546
28513
  Args: never;
26547
28514
  Returns: boolean;
@@ -26567,12 +28534,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26567
28534
  Args: never;
26568
28535
  Returns: import("./types").Json;
26569
28536
  };
28537
+ logistics_sync_pick_queue_backlog: {
28538
+ Args: never;
28539
+ Returns: import("./types").Json;
28540
+ };
28541
+ logistics_sync_pick_queue_core: {
28542
+ Args: never;
28543
+ Returns: import("./types").Json;
28544
+ };
26570
28545
  logistics_sync_task_carriers: {
26571
28546
  Args: {
26572
28547
  p_order_ref?: string;
26573
28548
  };
26574
28549
  Returns: number;
26575
28550
  };
28551
+ logistics_task_open_counts: {
28552
+ Args: never;
28553
+ Returns: {
28554
+ open_count: number;
28555
+ owner_module: string;
28556
+ }[];
28557
+ };
26576
28558
  logistics_task_owner: {
26577
28559
  Args: {
26578
28560
  p_task_type: string;
@@ -26590,6 +28572,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26590
28572
  Args: never;
26591
28573
  Returns: number;
26592
28574
  };
28575
+ logistics_tasks_prune: {
28576
+ Args: {
28577
+ p_days?: number;
28578
+ };
28579
+ Returns: number;
28580
+ };
28581
+ logistics_tick: {
28582
+ Args: never;
28583
+ Returns: import("./types").Json;
28584
+ };
26593
28585
  logistics_tick_ping: {
26594
28586
  Args: never;
26595
28587
  Returns: string;
@@ -26930,6 +28922,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26930
28922
  };
26931
28923
  Returns: boolean;
26932
28924
  };
28925
+ order_items_duplicate_report: {
28926
+ Args: {
28927
+ _order_ref?: string;
28928
+ };
28929
+ Returns: {
28930
+ distinct_products: number;
28931
+ duplicate_factor: number;
28932
+ lines: number;
28933
+ order_number: string;
28934
+ }[];
28935
+ };
26933
28936
  order_number_prefix: {
26934
28937
  Args: {
26935
28938
  p_custom_fields?: import("./types").Json;
@@ -27250,6 +29253,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27250
29253
  };
27251
29254
  Returns: string;
27252
29255
  };
29256
+ pick_is_reference_admin: {
29257
+ Args: never;
29258
+ Returns: boolean;
29259
+ };
27253
29260
  pick_mark_printed: {
27254
29261
  Args: {
27255
29262
  _queue_item_id: string;
@@ -27713,6 +29720,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27713
29720
  };
27714
29721
  Returns: undefined;
27715
29722
  };
29723
+ planning_apply_schedule_updates: {
29724
+ Args: {
29725
+ _updates: import("./types").Json;
29726
+ };
29727
+ Returns: undefined;
29728
+ };
29729
+ planning_assert_no_overlaps: {
29730
+ Args: never;
29731
+ Returns: undefined;
29732
+ };
29733
+ planning_assert_no_overlaps_for_items: {
29734
+ Args: {
29735
+ _item_ids: string[];
29736
+ };
29737
+ Returns: undefined;
29738
+ };
27716
29739
  planning_cancel_item: {
27717
29740
  Args: {
27718
29741
  _id: string;
@@ -27824,6 +29847,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27824
29847
  };
27825
29848
  Returns: boolean;
27826
29849
  };
29850
+ quote_assign_number: {
29851
+ Args: {
29852
+ _offerte_id: string;
29853
+ };
29854
+ Returns: string;
29855
+ };
29856
+ quote_create_follow_up_now: {
29857
+ Args: {
29858
+ _offerte_id: string;
29859
+ _payload?: import("./types").Json;
29860
+ };
29861
+ Returns: import("./types").Json;
29862
+ };
27827
29863
  quote_create_from_source: {
27828
29864
  Args: {
27829
29865
  _payload?: import("./types").Json;
@@ -28067,6 +30103,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28067
30103
  Args: never;
28068
30104
  Returns: undefined;
28069
30105
  };
30106
+ run_order_auto_invoice_tick: {
30107
+ Args: never;
30108
+ Returns: number;
30109
+ };
28070
30110
  run_print_queue_ticks: {
28071
30111
  Args: never;
28072
30112
  Returns: number;
@@ -28090,6 +30130,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28090
30130
  };
28091
30131
  Returns: import("./types").Json;
28092
30132
  };
30133
+ scan_controleer_pincode: {
30134
+ Args: {
30135
+ p_pin: string;
30136
+ p_scanner_id: string;
30137
+ };
30138
+ Returns: boolean;
30139
+ };
28093
30140
  scan_dashboard_stats: {
28094
30141
  Args: {
28095
30142
  p_dagen?: number;
@@ -28109,6 +30156,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28109
30156
  };
28110
30157
  Returns: import("./types").Json;
28111
30158
  };
30159
+ scan_heeft_pincode: {
30160
+ Args: {
30161
+ p_scanner_id: string;
30162
+ };
30163
+ Returns: boolean;
30164
+ };
28112
30165
  scan_kar_compleet: {
28113
30166
  Args: {
28114
30167
  p_allow_reprint?: boolean;
@@ -28126,6 +30179,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28126
30179
  Args: {
28127
30180
  p_code: string;
28128
30181
  p_latency_ms?: number;
30182
+ p_medewerker?: string;
28129
30183
  p_message?: string;
28130
30184
  p_result: string;
28131
30185
  p_scanner_key?: string;
@@ -28198,6 +30252,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28198
30252
  };
28199
30253
  Returns: undefined;
28200
30254
  };
30255
+ scan_scanner_info: {
30256
+ Args: {
30257
+ p_slug: string;
30258
+ };
30259
+ Returns: {
30260
+ actief: boolean;
30261
+ heeft_pincode: boolean;
30262
+ id: string;
30263
+ naam: string;
30264
+ omschrijving: string;
30265
+ printer_id: string;
30266
+ type: string;
30267
+ vereist_medewerker: boolean;
30268
+ werkplek: string;
30269
+ }[];
30270
+ };
28201
30271
  scan_sessie_annuleren: {
28202
30272
  Args: {
28203
30273
  p_sessie_id: string;
@@ -28444,6 +30514,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28444
30514
  };
28445
30515
  Returns: number;
28446
30516
  };
30517
+ schedule_floriday_trade_items_reconcile: {
30518
+ Args: {
30519
+ p_apikey: string;
30520
+ p_url: string;
30521
+ };
30522
+ Returns: number;
30523
+ };
28447
30524
  schedule_floriday_trade_items_sync: {
28448
30525
  Args: {
28449
30526
  p_apikey: string;
@@ -28526,6 +30603,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28526
30603
  };
28527
30604
  Returns: undefined;
28528
30605
  };
30606
+ set_product_stock: {
30607
+ Args: {
30608
+ p_incoming_stock?: number;
30609
+ p_minimum_stock?: number;
30610
+ p_notes?: string;
30611
+ p_physical_stock: number;
30612
+ p_product_id: string;
30613
+ };
30614
+ Returns: {
30615
+ connection_id: string;
30616
+ incoming_stock: number;
30617
+ minimum_stock: number;
30618
+ notes: string;
30619
+ physical_stock: number;
30620
+ product_id: string;
30621
+ reserved_stock: number;
30622
+ trade_item_key: string;
30623
+ updated_at: string;
30624
+ }[];
30625
+ };
28529
30626
  show_limit: {
28530
30627
  Args: never;
28531
30628
  Returns: number;
@@ -28768,6 +30865,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28768
30865
  Args: never;
28769
30866
  Returns: boolean;
28770
30867
  };
30868
+ uren_is_werkdag: {
30869
+ Args: {
30870
+ _date: string;
30871
+ _monteur: string;
30872
+ };
30873
+ Returns: boolean;
30874
+ };
30875
+ uren_korte_afwezigheid_aanvragen: {
30876
+ Args: {
30877
+ _datum: string;
30878
+ _eind: string;
30879
+ _reden: string;
30880
+ _start: string;
30881
+ };
30882
+ Returns: string;
30883
+ };
28771
30884
  uren_list_medewerkers: {
28772
30885
  Args: never;
28773
30886
  Returns: {
@@ -28788,6 +30901,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28788
30901
  roles: string[];
28789
30902
  }[];
28790
30903
  };
30904
+ uren_list_planner_contacten: {
30905
+ Args: never;
30906
+ Returns: {
30907
+ display_name: string;
30908
+ id: string;
30909
+ phone: string;
30910
+ }[];
30911
+ };
30912
+ uren_maand_afsluiten: {
30913
+ Args: {
30914
+ _maand: string;
30915
+ _monteur: string;
30916
+ };
30917
+ Returns: undefined;
30918
+ };
30919
+ uren_maand_berekenen: {
30920
+ Args: {
30921
+ _maand: string;
30922
+ _monteur: string;
30923
+ };
30924
+ Returns: import("./types").Json;
30925
+ };
30926
+ uren_maand_corrigeren: {
30927
+ Args: {
30928
+ _maand: string;
30929
+ _monteur: string;
30930
+ _overuren_minuten: number;
30931
+ _reden: string;
30932
+ };
30933
+ Returns: undefined;
30934
+ };
30935
+ uren_mijn_contracturen: {
30936
+ Args: never;
30937
+ Returns: number;
30938
+ };
30939
+ uren_mijn_vakantiesaldo: {
30940
+ Args: never;
30941
+ Returns: number;
30942
+ };
28791
30943
  uren_my_monteur_id: {
28792
30944
  Args: never;
28793
30945
  Returns: string;
@@ -28821,6 +30973,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28821
30973
  };
28822
30974
  Returns: number;
28823
30975
  };
30976
+ uren_spiegel_bezig: {
30977
+ Args: never;
30978
+ Returns: boolean;
30979
+ };
30980
+ uren_standaardweek_beoordelen: {
30981
+ Args: {
30982
+ _goedkeuren: boolean;
30983
+ _id: string;
30984
+ _reden?: string;
30985
+ };
30986
+ Returns: undefined;
30987
+ };
30988
+ uren_standaardweek_doorzetten: {
30989
+ Args: {
30990
+ _monteur: string;
30991
+ };
30992
+ Returns: undefined;
30993
+ };
30994
+ uren_standaardweek_instellen: {
30995
+ Args: {
30996
+ _dagen: import("./types").Json;
30997
+ };
30998
+ Returns: string;
30999
+ };
31000
+ uren_standaardweek_toepassen: {
31001
+ Args: {
31002
+ _dagen: import("./types").Json;
31003
+ _monteur: string;
31004
+ };
31005
+ Returns: undefined;
31006
+ };
28824
31007
  uren_stop_time_log: {
28825
31008
  Args: {
28826
31009
  p_employee_id: string;
@@ -28846,6 +31029,165 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28846
31029
  };
28847
31030
  Returns: number;
28848
31031
  };
31032
+ uren_vakantie_aanvragen: {
31033
+ Args: {
31034
+ _end_date: string;
31035
+ _hours?: number;
31036
+ _start_date: string;
31037
+ };
31038
+ Returns: string;
31039
+ };
31040
+ uren_vakantiedag_wijzigen: {
31041
+ Args: {
31042
+ _date: string;
31043
+ };
31044
+ Returns: string;
31045
+ };
31046
+ uren_vakantiesaldo_uren: {
31047
+ Args: {
31048
+ _monteur: string;
31049
+ };
31050
+ Returns: number;
31051
+ };
31052
+ uren_week_start: {
31053
+ Args: {
31054
+ _datum: string;
31055
+ };
31056
+ Returns: string;
31057
+ };
31058
+ uren_werkweek_opsturen: {
31059
+ Args: {
31060
+ _week_start: string;
31061
+ };
31062
+ Returns: {
31063
+ approved_at: string | null;
31064
+ approved_by: string | null;
31065
+ contract_hours: number;
31066
+ created_at: string;
31067
+ employee_id: string;
31068
+ id: string;
31069
+ locked: boolean;
31070
+ monteur_toelichting: string | null;
31071
+ notes: string | null;
31072
+ planned_hours: number;
31073
+ status: string;
31074
+ submitted_at: string | null;
31075
+ updated_at: string;
31076
+ variance_hours: number;
31077
+ week_start: string;
31078
+ };
31079
+ SetofOptions: {
31080
+ from: "*";
31081
+ to: "time_log_week_approvals";
31082
+ isOneToOne: true;
31083
+ isSetofReturn: false;
31084
+ };
31085
+ } | {
31086
+ Args: {
31087
+ _vrije_dagen?: string[];
31088
+ _week_start: string;
31089
+ };
31090
+ Returns: {
31091
+ approved_at: string | null;
31092
+ approved_by: string | null;
31093
+ contract_hours: number;
31094
+ created_at: string;
31095
+ employee_id: string;
31096
+ id: string;
31097
+ locked: boolean;
31098
+ monteur_toelichting: string | null;
31099
+ notes: string | null;
31100
+ planned_hours: number;
31101
+ status: string;
31102
+ submitted_at: string | null;
31103
+ updated_at: string;
31104
+ variance_hours: number;
31105
+ week_start: string;
31106
+ };
31107
+ SetofOptions: {
31108
+ from: "*";
31109
+ to: "time_log_week_approvals";
31110
+ isOneToOne: true;
31111
+ isSetofReturn: false;
31112
+ };
31113
+ } | {
31114
+ Args: {
31115
+ _toelichting?: string;
31116
+ _vrije_dagen?: string[];
31117
+ _week_start: string;
31118
+ };
31119
+ Returns: {
31120
+ approved_at: string | null;
31121
+ approved_by: string | null;
31122
+ contract_hours: number;
31123
+ created_at: string;
31124
+ employee_id: string;
31125
+ id: string;
31126
+ locked: boolean;
31127
+ monteur_toelichting: string | null;
31128
+ notes: string | null;
31129
+ planned_hours: number;
31130
+ status: string;
31131
+ submitted_at: string | null;
31132
+ updated_at: string;
31133
+ variance_hours: number;
31134
+ week_start: string;
31135
+ };
31136
+ SetofOptions: {
31137
+ from: "*";
31138
+ to: "time_log_week_approvals";
31139
+ isOneToOne: true;
31140
+ isSetofReturn: false;
31141
+ };
31142
+ };
31143
+ vakantie_dagen_gebruikt: {
31144
+ Args: {
31145
+ _user_id: string;
31146
+ _year: number;
31147
+ };
31148
+ Returns: number;
31149
+ };
31150
+ vakantie_overuren: {
31151
+ Args: {
31152
+ _user_id: string;
31153
+ _year?: number;
31154
+ };
31155
+ Returns: number;
31156
+ };
31157
+ vakantie_saldo: {
31158
+ Args: {
31159
+ _user_id: string;
31160
+ _year?: number;
31161
+ };
31162
+ Returns: {
31163
+ day_hours: number;
31164
+ earned_from_overtime_days: number;
31165
+ entitlement_days: number;
31166
+ hours_to_next_day: number;
31167
+ overtime_hours: number;
31168
+ overtime_remainder_hours: number;
31169
+ paid_out_days: number;
31170
+ remaining_days: number;
31171
+ used_days: number;
31172
+ }[];
31173
+ };
31174
+ vakantie_saldo_overzicht: {
31175
+ Args: {
31176
+ _year?: number;
31177
+ };
31178
+ Returns: {
31179
+ day_hours: number;
31180
+ earned_from_overtime_days: number;
31181
+ entitlement_days: number;
31182
+ hours_to_next_day: number;
31183
+ overtime_hours: number;
31184
+ overtime_remainder_hours: number;
31185
+ paid_out_days: number;
31186
+ remaining_days: number;
31187
+ used_days: number;
31188
+ user_id: string;
31189
+ }[];
31190
+ };
28849
31191
  voorraad_cleanup_old_rows: {
28850
31192
  Args: never;
28851
31193
  Returns: import("./types").Json;
@@ -28888,18 +31230,46 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28888
31230
  };
28889
31231
  Returns: import("./types").Json;
28890
31232
  };
31233
+ wo_list_colleague_planning: {
31234
+ Args: {
31235
+ _from: string;
31236
+ _monteur_id: string;
31237
+ _to: string;
31238
+ };
31239
+ Returns: {
31240
+ end_at: string;
31241
+ id: string;
31242
+ role: string;
31243
+ start_at: string;
31244
+ status: string;
31245
+ werkbon_id: string;
31246
+ }[];
31247
+ };
28891
31248
  wo_list_offerte_requests: {
28892
31249
  Args: {
28893
31250
  _status?: string;
28894
31251
  };
28895
31252
  Returns: import("./types").Json;
28896
31253
  };
31254
+ wo_list_proposals: {
31255
+ Args: {
31256
+ _status?: string;
31257
+ };
31258
+ Returns: import("./types").Json;
31259
+ };
28897
31260
  wo_process_offerte_request: {
28898
31261
  Args: {
28899
31262
  _queue_id: string;
28900
31263
  };
28901
31264
  Returns: import("./types").Json;
28902
31265
  };
31266
+ wo_process_proposal: {
31267
+ Args: {
31268
+ _id: string;
31269
+ _overrides?: import("./types").Json;
31270
+ };
31271
+ Returns: import("./types").Json;
31272
+ };
28903
31273
  wo_reject_offerte_request: {
28904
31274
  Args: {
28905
31275
  _queue_id: string;
@@ -28907,6 +31277,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
28907
31277
  };
28908
31278
  Returns: import("./types").Json;
28909
31279
  };
31280
+ wo_reject_proposal: {
31281
+ Args: {
31282
+ _id: string;
31283
+ _reden?: string;
31284
+ };
31285
+ Returns: import("./types").Json;
31286
+ };
28910
31287
  wo_set_status: {
28911
31288
  Args: {
28912
31289
  _reason?: string;