@flowselections/scan-module 1.0.8 → 1.0.9

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 (36) hide show
  1. package/dist-lib/components/scanners/EindcontroleScanner.d.ts.map +1 -1
  2. package/dist-lib/components/scanners/EindcontroleScanner.js +35 -7
  3. package/dist-lib/components/scanners/KarIndelingScanner.d.ts.map +1 -1
  4. package/dist-lib/components/scanners/KarIndelingScanner.js +2 -1
  5. package/dist-lib/components/scanners/ScannerBySlug.d.ts.map +1 -1
  6. package/dist-lib/components/scanners/ScannerBySlug.js +5 -8
  7. package/dist-lib/components/scanners/StationNaamVeld.d.ts +3 -0
  8. package/dist-lib/components/scanners/StationNaamVeld.d.ts.map +1 -0
  9. package/dist-lib/components/scanners/StationNaamVeld.js +11 -0
  10. package/dist-lib/hooks/useKarIndeling.d.ts.map +1 -1
  11. package/dist-lib/hooks/useKarIndeling.js +11 -3
  12. package/dist-lib/hooks/useKarScanner.d.ts.map +1 -1
  13. package/dist-lib/hooks/useKarScanner.js +10 -1
  14. package/dist-lib/index.d.ts +2 -1
  15. package/dist-lib/index.d.ts.map +1 -1
  16. package/dist-lib/index.js +2 -1
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2276 -48
  18. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.d.ts +2276 -48
  20. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.js +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +2276 -48
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.server.js +1 -1
  25. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  26. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  28. package/dist-lib/integrations/supabase/types.d.ts +2278 -14
  29. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  30. package/dist-lib/lib/pakbonScan.d.ts +13 -1
  31. package/dist-lib/lib/pakbonScan.d.ts.map +1 -1
  32. package/dist-lib/lib/pakbonScan.js +59 -13
  33. package/dist-lib/lib/stationNaam.d.ts +3 -0
  34. package/dist-lib/lib/stationNaam.d.ts.map +1 -0
  35. package/dist-lib/lib/stationNaam.js +24 -0
  36. package/package.json +2 -2
@@ -11,6 +11,7 @@ export type Database = {
11
11
  Row: {
12
12
  auto_print_delivery_note: boolean;
13
13
  auto_process_paused: boolean;
14
+ control_bulk_max_carts: number;
14
15
  created_at: string;
15
16
  extra_pick_days_with_stickers: number;
16
17
  id: string;
@@ -28,6 +29,7 @@ export type Database = {
28
29
  Insert: {
29
30
  auto_print_delivery_note?: boolean;
30
31
  auto_process_paused?: boolean;
32
+ control_bulk_max_carts?: number;
31
33
  created_at?: string;
32
34
  extra_pick_days_with_stickers?: number;
33
35
  id?: string;
@@ -45,6 +47,7 @@ export type Database = {
45
47
  Update: {
46
48
  auto_print_delivery_note?: boolean;
47
49
  auto_process_paused?: boolean;
50
+ control_bulk_max_carts?: number;
48
51
  created_at?: string;
49
52
  extra_pick_days_with_stickers?: number;
50
53
  id?: string;
@@ -749,6 +752,27 @@ export type Database = {
749
752
  };
750
753
  Relationships: [];
751
754
  };
755
+ artikelen_instellingen: {
756
+ Row: {
757
+ created_at: string;
758
+ id: number;
759
+ marge_procent: number;
760
+ updated_at: string;
761
+ };
762
+ Insert: {
763
+ created_at?: string;
764
+ id?: number;
765
+ marge_procent?: number;
766
+ updated_at?: string;
767
+ };
768
+ Update: {
769
+ created_at?: string;
770
+ id?: number;
771
+ marge_procent?: number;
772
+ updated_at?: string;
773
+ };
774
+ Relationships: [];
775
+ };
752
776
  artikelen_veldconfig: {
753
777
  Row: {
754
778
  bron_pad: string;
@@ -1411,6 +1435,7 @@ export type Database = {
1411
1435
  id: string;
1412
1436
  notes: string | null;
1413
1437
  performed_at: string;
1438
+ request_key: string | null;
1414
1439
  rescheduled_count: number;
1415
1440
  stock_consumed_at: string | null;
1416
1441
  total_carts: number;
@@ -1425,6 +1450,7 @@ export type Database = {
1425
1450
  id?: string;
1426
1451
  notes?: string | null;
1427
1452
  performed_at?: string;
1453
+ request_key?: string | null;
1428
1454
  rescheduled_count?: number;
1429
1455
  stock_consumed_at?: string | null;
1430
1456
  total_carts?: number;
@@ -1439,6 +1465,7 @@ export type Database = {
1439
1465
  id?: string;
1440
1466
  notes?: string | null;
1441
1467
  performed_at?: string;
1468
+ request_key?: string | null;
1442
1469
  rescheduled_count?: number;
1443
1470
  stock_consumed_at?: string | null;
1444
1471
  total_carts?: number;
@@ -8189,6 +8216,7 @@ export type Database = {
8189
8216
  };
8190
8217
  fust_types: {
8191
8218
  Row: {
8219
+ capacity_units: number | null;
8192
8220
  connection_id: string | null;
8193
8221
  created_at: string;
8194
8222
  custom_package_id: string | null;
@@ -8209,6 +8237,7 @@ export type Database = {
8209
8237
  width_mm: number | null;
8210
8238
  };
8211
8239
  Insert: {
8240
+ capacity_units?: number | null;
8212
8241
  connection_id?: string | null;
8213
8242
  created_at?: string;
8214
8243
  custom_package_id?: string | null;
@@ -8229,6 +8258,7 @@ export type Database = {
8229
8258
  width_mm?: number | null;
8230
8259
  };
8231
8260
  Update: {
8261
+ capacity_units?: number | null;
8232
8262
  connection_id?: string | null;
8233
8263
  created_at?: string;
8234
8264
  custom_package_id?: string | null;
@@ -8465,6 +8495,72 @@ export type Database = {
8465
8495
  };
8466
8496
  Relationships: [];
8467
8497
  };
8498
+ invoice_branding_settings: {
8499
+ Row: {
8500
+ address: string;
8501
+ chamber_of_commerce_number: string;
8502
+ city: string;
8503
+ company_name: string;
8504
+ created_at: string;
8505
+ email: string;
8506
+ email_purpose: string | null;
8507
+ iban: string;
8508
+ logo_path: string | null;
8509
+ payment_term_days: number;
8510
+ phone: string;
8511
+ postal_code: string;
8512
+ primary_color: string;
8513
+ secondary_color: string;
8514
+ show_company_name: boolean;
8515
+ singleton_key: boolean;
8516
+ updated_at: string;
8517
+ vat_identification_number: string;
8518
+ website: string;
8519
+ };
8520
+ Insert: {
8521
+ address?: string;
8522
+ chamber_of_commerce_number?: string;
8523
+ city?: string;
8524
+ company_name?: string;
8525
+ created_at?: string;
8526
+ email?: string;
8527
+ email_purpose?: string | null;
8528
+ iban?: string;
8529
+ logo_path?: string | null;
8530
+ payment_term_days?: number;
8531
+ phone?: string;
8532
+ postal_code?: string;
8533
+ primary_color?: string;
8534
+ secondary_color?: string;
8535
+ show_company_name?: boolean;
8536
+ singleton_key?: boolean;
8537
+ updated_at?: string;
8538
+ vat_identification_number?: string;
8539
+ website?: string;
8540
+ };
8541
+ Update: {
8542
+ address?: string;
8543
+ chamber_of_commerce_number?: string;
8544
+ city?: string;
8545
+ company_name?: string;
8546
+ created_at?: string;
8547
+ email?: string;
8548
+ email_purpose?: string | null;
8549
+ iban?: string;
8550
+ logo_path?: string | null;
8551
+ payment_term_days?: number;
8552
+ phone?: string;
8553
+ postal_code?: string;
8554
+ primary_color?: string;
8555
+ secondary_color?: string;
8556
+ show_company_name?: boolean;
8557
+ singleton_key?: boolean;
8558
+ updated_at?: string;
8559
+ vat_identification_number?: string;
8560
+ website?: string;
8561
+ };
8562
+ Relationships: [];
8563
+ };
8468
8564
  invoice_items: {
8469
8565
  Row: {
8470
8566
  created_at: string;
@@ -8478,6 +8574,7 @@ export type Database = {
8478
8574
  total_cents: number;
8479
8575
  unit: string;
8480
8576
  unit_price_cents: number;
8577
+ vat_rate: number | null;
8481
8578
  };
8482
8579
  Insert: {
8483
8580
  created_at?: string;
@@ -8491,6 +8588,7 @@ export type Database = {
8491
8588
  total_cents?: number;
8492
8589
  unit?: string;
8493
8590
  unit_price_cents?: number;
8591
+ vat_rate?: number | null;
8494
8592
  };
8495
8593
  Update: {
8496
8594
  created_at?: string;
@@ -8504,6 +8602,7 @@ export type Database = {
8504
8602
  total_cents?: number;
8505
8603
  unit?: string;
8506
8604
  unit_price_cents?: number;
8605
+ vat_rate?: number | null;
8507
8606
  };
8508
8607
  Relationships: [
8509
8608
  {
@@ -8757,15 +8856,27 @@ export type Database = {
8757
8856
  };
8758
8857
  invoices: {
8759
8858
  Row: {
8859
+ branding_snapshot: Json | null;
8760
8860
  created_at: string;
8761
8861
  created_by: string | null;
8862
+ customer_address: string | null;
8863
+ customer_attention: string | null;
8864
+ customer_city: string | null;
8762
8865
  customer_id: string | null;
8763
8866
  customer_name: string | null;
8867
+ customer_postal_code: string | null;
8868
+ customer_vat_number: string | null;
8869
+ debtor_number: string | null;
8764
8870
  due_date: string | null;
8871
+ execution_date: string | null;
8765
8872
  id: string;
8766
8873
  invoice_date: string;
8767
8874
  invoice_number: string | null;
8768
8875
  note: string | null;
8876
+ payment_term_days: number;
8877
+ reference: string | null;
8878
+ sent_at: string | null;
8879
+ sent_to: string | null;
8769
8880
  source_number: string | null;
8770
8881
  source_ref: string | null;
8771
8882
  source_type: string;
@@ -8775,17 +8886,30 @@ export type Database = {
8775
8886
  updated_at: string;
8776
8887
  vat_cents: number;
8777
8888
  vat_rate: number;
8889
+ work_address: string | null;
8778
8890
  };
8779
8891
  Insert: {
8892
+ branding_snapshot?: Json | null;
8780
8893
  created_at?: string;
8781
8894
  created_by?: string | null;
8895
+ customer_address?: string | null;
8896
+ customer_attention?: string | null;
8897
+ customer_city?: string | null;
8782
8898
  customer_id?: string | null;
8783
8899
  customer_name?: string | null;
8900
+ customer_postal_code?: string | null;
8901
+ customer_vat_number?: string | null;
8902
+ debtor_number?: string | null;
8784
8903
  due_date?: string | null;
8904
+ execution_date?: string | null;
8785
8905
  id?: string;
8786
8906
  invoice_date?: string;
8787
8907
  invoice_number?: string | null;
8788
8908
  note?: string | null;
8909
+ payment_term_days?: number;
8910
+ reference?: string | null;
8911
+ sent_at?: string | null;
8912
+ sent_to?: string | null;
8789
8913
  source_number?: string | null;
8790
8914
  source_ref?: string | null;
8791
8915
  source_type?: string;
@@ -8795,17 +8919,30 @@ export type Database = {
8795
8919
  updated_at?: string;
8796
8920
  vat_cents?: number;
8797
8921
  vat_rate?: number;
8922
+ work_address?: string | null;
8798
8923
  };
8799
8924
  Update: {
8925
+ branding_snapshot?: Json | null;
8800
8926
  created_at?: string;
8801
8927
  created_by?: string | null;
8928
+ customer_address?: string | null;
8929
+ customer_attention?: string | null;
8930
+ customer_city?: string | null;
8802
8931
  customer_id?: string | null;
8803
8932
  customer_name?: string | null;
8933
+ customer_postal_code?: string | null;
8934
+ customer_vat_number?: string | null;
8935
+ debtor_number?: string | null;
8804
8936
  due_date?: string | null;
8937
+ execution_date?: string | null;
8805
8938
  id?: string;
8806
8939
  invoice_date?: string;
8807
8940
  invoice_number?: string | null;
8808
8941
  note?: string | null;
8942
+ payment_term_days?: number;
8943
+ reference?: string | null;
8944
+ sent_at?: string | null;
8945
+ sent_to?: string | null;
8809
8946
  source_number?: string | null;
8810
8947
  source_ref?: string | null;
8811
8948
  source_type?: string;
@@ -8815,6 +8952,7 @@ export type Database = {
8815
8952
  updated_at?: string;
8816
8953
  vat_cents?: number;
8817
8954
  vat_rate?: number;
8955
+ work_address?: string | null;
8818
8956
  };
8819
8957
  Relationships: [
8820
8958
  {
@@ -9526,6 +9664,7 @@ export type Database = {
9526
9664
  quantity: number;
9527
9665
  sort_order: number;
9528
9666
  source: string;
9667
+ unit: string | null;
9529
9668
  unit_price_cents: number;
9530
9669
  updated_at: string;
9531
9670
  };
@@ -9539,6 +9678,7 @@ export type Database = {
9539
9678
  quantity?: number;
9540
9679
  sort_order?: number;
9541
9680
  source?: string;
9681
+ unit?: string | null;
9542
9682
  unit_price_cents?: number;
9543
9683
  updated_at?: string;
9544
9684
  };
@@ -9552,6 +9692,7 @@ export type Database = {
9552
9692
  quantity?: number;
9553
9693
  sort_order?: number;
9554
9694
  source?: string;
9695
+ unit?: string | null;
9555
9696
  unit_price_cents?: number;
9556
9697
  updated_at?: string;
9557
9698
  };
@@ -9578,6 +9719,7 @@ export type Database = {
9578
9719
  created_at: string;
9579
9720
  default_geldigheid_dagen: number;
9580
9721
  default_vat_rate: number;
9722
+ email_purpose: string | null;
9581
9723
  id: string;
9582
9724
  singleton: boolean;
9583
9725
  updated_at: string;
@@ -9587,6 +9729,7 @@ export type Database = {
9587
9729
  created_at?: string;
9588
9730
  default_geldigheid_dagen?: number;
9589
9731
  default_vat_rate?: number;
9732
+ email_purpose?: string | null;
9590
9733
  id?: string;
9591
9734
  singleton?: boolean;
9592
9735
  updated_at?: string;
@@ -9596,12 +9739,51 @@ export type Database = {
9596
9739
  created_at?: string;
9597
9740
  default_geldigheid_dagen?: number;
9598
9741
  default_vat_rate?: number;
9742
+ email_purpose?: string | null;
9599
9743
  id?: string;
9600
9744
  singleton?: boolean;
9601
9745
  updated_at?: string;
9602
9746
  };
9603
9747
  Relationships: [];
9604
9748
  };
9749
+ itk_offerte_voorstel_status: {
9750
+ Row: {
9751
+ ai_concept: Json | null;
9752
+ created_at: string;
9753
+ id: string;
9754
+ offerte_id: string | null;
9755
+ proposal_id: string;
9756
+ seen_at: string | null;
9757
+ updated_at: string;
9758
+ };
9759
+ Insert: {
9760
+ ai_concept?: Json | null;
9761
+ created_at?: string;
9762
+ id?: string;
9763
+ offerte_id?: string | null;
9764
+ proposal_id: string;
9765
+ seen_at?: string | null;
9766
+ updated_at?: string;
9767
+ };
9768
+ Update: {
9769
+ ai_concept?: Json | null;
9770
+ created_at?: string;
9771
+ id?: string;
9772
+ offerte_id?: string | null;
9773
+ proposal_id?: string;
9774
+ seen_at?: string | null;
9775
+ updated_at?: string;
9776
+ };
9777
+ Relationships: [
9778
+ {
9779
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9780
+ columns: ["offerte_id"];
9781
+ isOneToOne: false;
9782
+ referencedRelation: "itk_offertes";
9783
+ referencedColumns: ["id"];
9784
+ }
9785
+ ];
9786
+ };
9605
9787
  itk_offerte_werkbon_queue: {
9606
9788
  Row: {
9607
9789
  bron_werkbon_id: string | null;
@@ -9654,6 +9836,7 @@ export type Database = {
9654
9836
  };
9655
9837
  itk_offertes: {
9656
9838
  Row: {
9839
+ aandachtspunten: string | null;
9657
9840
  ai_generated: boolean;
9658
9841
  approved_at: string | null;
9659
9842
  binnen_mandaat: boolean;
@@ -9669,6 +9852,7 @@ export type Database = {
9669
9852
  notities: string | null;
9670
9853
  offerte_number: string | null;
9671
9854
  omschrijving: string;
9855
+ onderwerp: string | null;
9672
9856
  rejected_at: string | null;
9673
9857
  sent_at: string | null;
9674
9858
  source_number: string | null;
@@ -9681,12 +9865,15 @@ export type Database = {
9681
9865
  valid_until: string | null;
9682
9866
  vat_cents: number;
9683
9867
  vat_rate: number;
9868
+ verzonden_naar: string | null;
9684
9869
  viewed_at: string | null;
9685
9870
  volgnummer: number | null;
9871
+ voorwaarden: string | null;
9686
9872
  werkbon_id: string | null;
9687
9873
  work_location_id: string | null;
9688
9874
  };
9689
9875
  Insert: {
9876
+ aandachtspunten?: string | null;
9690
9877
  ai_generated?: boolean;
9691
9878
  approved_at?: string | null;
9692
9879
  binnen_mandaat?: boolean;
@@ -9702,6 +9889,7 @@ export type Database = {
9702
9889
  notities?: string | null;
9703
9890
  offerte_number?: string | null;
9704
9891
  omschrijving?: string;
9892
+ onderwerp?: string | null;
9705
9893
  rejected_at?: string | null;
9706
9894
  sent_at?: string | null;
9707
9895
  source_number?: string | null;
@@ -9714,12 +9902,15 @@ export type Database = {
9714
9902
  valid_until?: string | null;
9715
9903
  vat_cents?: number;
9716
9904
  vat_rate?: number;
9905
+ verzonden_naar?: string | null;
9717
9906
  viewed_at?: string | null;
9718
9907
  volgnummer?: number | null;
9908
+ voorwaarden?: string | null;
9719
9909
  werkbon_id?: string | null;
9720
9910
  work_location_id?: string | null;
9721
9911
  };
9722
9912
  Update: {
9913
+ aandachtspunten?: string | null;
9723
9914
  ai_generated?: boolean;
9724
9915
  approved_at?: string | null;
9725
9916
  binnen_mandaat?: boolean;
@@ -9735,6 +9926,7 @@ export type Database = {
9735
9926
  notities?: string | null;
9736
9927
  offerte_number?: string | null;
9737
9928
  omschrijving?: string;
9929
+ onderwerp?: string | null;
9738
9930
  rejected_at?: string | null;
9739
9931
  sent_at?: string | null;
9740
9932
  source_number?: string | null;
@@ -9747,8 +9939,10 @@ export type Database = {
9747
9939
  valid_until?: string | null;
9748
9940
  vat_cents?: number;
9749
9941
  vat_rate?: number;
9942
+ verzonden_naar?: string | null;
9750
9943
  viewed_at?: string | null;
9751
9944
  volgnummer?: number | null;
9945
+ voorwaarden?: string | null;
9752
9946
  werkbon_id?: string | null;
9753
9947
  work_location_id?: string | null;
9754
9948
  };
@@ -9934,6 +10128,8 @@ export type Database = {
9934
10128
  };
9935
10129
  leave_requests: {
9936
10130
  Row: {
10131
+ cancellation_requested_at: string | null;
10132
+ cancellation_status: string | null;
9937
10133
  created_at: string;
9938
10134
  decided_at: string | null;
9939
10135
  decided_by: string | null;
@@ -9944,6 +10140,7 @@ export type Database = {
9944
10140
  leave_type: string;
9945
10141
  monteur_id: string | null;
9946
10142
  reason: string | null;
10143
+ reden_afkeur: string | null;
9947
10144
  start_date: string;
9948
10145
  start_time: string | null;
9949
10146
  status: string;
@@ -9951,6 +10148,8 @@ export type Database = {
9951
10148
  user_id: string;
9952
10149
  };
9953
10150
  Insert: {
10151
+ cancellation_requested_at?: string | null;
10152
+ cancellation_status?: string | null;
9954
10153
  created_at?: string;
9955
10154
  decided_at?: string | null;
9956
10155
  decided_by?: string | null;
@@ -9961,6 +10160,7 @@ export type Database = {
9961
10160
  leave_type?: string;
9962
10161
  monteur_id?: string | null;
9963
10162
  reason?: string | null;
10163
+ reden_afkeur?: string | null;
9964
10164
  start_date: string;
9965
10165
  start_time?: string | null;
9966
10166
  status?: string;
@@ -9968,6 +10168,8 @@ export type Database = {
9968
10168
  user_id: string;
9969
10169
  };
9970
10170
  Update: {
10171
+ cancellation_requested_at?: string | null;
10172
+ cancellation_status?: string | null;
9971
10173
  created_at?: string;
9972
10174
  decided_at?: string | null;
9973
10175
  decided_by?: string | null;
@@ -9978,6 +10180,7 @@ export type Database = {
9978
10180
  leave_type?: string;
9979
10181
  monteur_id?: string | null;
9980
10182
  reason?: string | null;
10183
+ reden_afkeur?: string | null;
9981
10184
  start_date?: string;
9982
10185
  start_time?: string | null;
9983
10186
  status?: string;
@@ -10495,6 +10698,30 @@ export type Database = {
10495
10698
  };
10496
10699
  Relationships: [];
10497
10700
  };
10701
+ logistics_cart_barcode_archief: {
10702
+ Row: {
10703
+ barcode: string;
10704
+ cart_id: string;
10705
+ created_at: string | null;
10706
+ gearchiveerd_op: string;
10707
+ order_id: string | null;
10708
+ };
10709
+ Insert: {
10710
+ barcode: string;
10711
+ cart_id: string;
10712
+ created_at?: string | null;
10713
+ gearchiveerd_op?: string;
10714
+ order_id?: string | null;
10715
+ };
10716
+ Update: {
10717
+ barcode?: string;
10718
+ cart_id?: string;
10719
+ created_at?: string | null;
10720
+ gearchiveerd_op?: string;
10721
+ order_id?: string | null;
10722
+ };
10723
+ Relationships: [];
10724
+ };
10498
10725
  logistics_control_scan: {
10499
10726
  Row: {
10500
10727
  approved_at: string | null;
@@ -11148,6 +11375,54 @@ export type Database = {
11148
11375
  };
11149
11376
  Relationships: [];
11150
11377
  };
11378
+ logistics_order_finalize_queue: {
11379
+ Row: {
11380
+ attempts: number;
11381
+ claimed_at: string | null;
11382
+ created_at: string;
11383
+ finished_at: string | null;
11384
+ last_error: string | null;
11385
+ lease_until: string | null;
11386
+ max_attempts: number;
11387
+ next_attempt_at: string;
11388
+ order_id: string;
11389
+ reason: string | null;
11390
+ requested_at: string;
11391
+ status: string;
11392
+ updated_at: string;
11393
+ };
11394
+ Insert: {
11395
+ attempts?: number;
11396
+ claimed_at?: string | null;
11397
+ created_at?: string;
11398
+ finished_at?: string | null;
11399
+ last_error?: string | null;
11400
+ lease_until?: string | null;
11401
+ max_attempts?: number;
11402
+ next_attempt_at?: string;
11403
+ order_id: string;
11404
+ reason?: string | null;
11405
+ requested_at?: string;
11406
+ status?: string;
11407
+ updated_at?: string;
11408
+ };
11409
+ Update: {
11410
+ attempts?: number;
11411
+ claimed_at?: string | null;
11412
+ created_at?: string;
11413
+ finished_at?: string | null;
11414
+ last_error?: string | null;
11415
+ lease_until?: string | null;
11416
+ max_attempts?: number;
11417
+ next_attempt_at?: string;
11418
+ order_id?: string;
11419
+ reason?: string | null;
11420
+ requested_at?: string;
11421
+ status?: string;
11422
+ updated_at?: string;
11423
+ };
11424
+ Relationships: [];
11425
+ };
11151
11426
  logistics_order_merges: {
11152
11427
  Row: {
11153
11428
  group_key: string;
@@ -11184,6 +11459,72 @@ export type Database = {
11184
11459
  };
11185
11460
  Relationships: [];
11186
11461
  };
11462
+ logistics_packing_deviations: {
11463
+ Row: {
11464
+ auto_fixed_at: string | null;
11465
+ created_at: string;
11466
+ dev_key: string;
11467
+ first_seen_at: string;
11468
+ floriday_packing: Json;
11469
+ human_reason: string | null;
11470
+ id: string;
11471
+ last_seen_at: string;
11472
+ local_packing: Json;
11473
+ needs_human: boolean;
11474
+ order_id: string | null;
11475
+ order_item_id: string | null;
11476
+ order_number: string | null;
11477
+ product_id: string | null;
11478
+ product_name: string | null;
11479
+ resolved_at: string | null;
11480
+ scope: string;
11481
+ trade_item_id: string | null;
11482
+ updated_at: string;
11483
+ };
11484
+ Insert: {
11485
+ auto_fixed_at?: string | null;
11486
+ created_at?: string;
11487
+ dev_key: string;
11488
+ first_seen_at?: string;
11489
+ floriday_packing?: Json;
11490
+ human_reason?: string | null;
11491
+ id?: string;
11492
+ last_seen_at?: string;
11493
+ local_packing?: Json;
11494
+ needs_human?: boolean;
11495
+ order_id?: string | null;
11496
+ order_item_id?: string | null;
11497
+ order_number?: string | null;
11498
+ product_id?: string | null;
11499
+ product_name?: string | null;
11500
+ resolved_at?: string | null;
11501
+ scope: string;
11502
+ trade_item_id?: string | null;
11503
+ updated_at?: string;
11504
+ };
11505
+ Update: {
11506
+ auto_fixed_at?: string | null;
11507
+ created_at?: string;
11508
+ dev_key?: string;
11509
+ first_seen_at?: string;
11510
+ floriday_packing?: Json;
11511
+ human_reason?: string | null;
11512
+ id?: string;
11513
+ last_seen_at?: string;
11514
+ local_packing?: Json;
11515
+ needs_human?: boolean;
11516
+ order_id?: string | null;
11517
+ order_item_id?: string | null;
11518
+ order_number?: string | null;
11519
+ product_id?: string | null;
11520
+ product_name?: string | null;
11521
+ resolved_at?: string | null;
11522
+ scope?: string;
11523
+ trade_item_id?: string | null;
11524
+ updated_at?: string;
11525
+ };
11526
+ Relationships: [];
11527
+ };
11187
11528
  logistics_pick_data_requests: {
11188
11529
  Row: {
11189
11530
  actions: Json;
@@ -11424,14 +11765,70 @@ export type Database = {
11424
11765
  };
11425
11766
  Relationships: [];
11426
11767
  };
11768
+ logistics_planner_diff_runs: {
11769
+ Row: {
11770
+ after_snapshot: Json | null;
11771
+ before_snapshot: Json;
11772
+ buffer_id: string | null;
11773
+ carts_after: number | null;
11774
+ carts_before: number | null;
11775
+ compared_at: string | null;
11776
+ created_at: string;
11777
+ differences: Json | null;
11778
+ id: string;
11779
+ identical: boolean | null;
11780
+ mode: string;
11781
+ order_id: string;
11782
+ order_ref: string | null;
11783
+ reason: string | null;
11784
+ status: string;
11785
+ };
11786
+ Insert: {
11787
+ after_snapshot?: Json | null;
11788
+ before_snapshot?: Json;
11789
+ buffer_id?: string | null;
11790
+ carts_after?: number | null;
11791
+ carts_before?: number | null;
11792
+ compared_at?: string | null;
11793
+ created_at?: string;
11794
+ differences?: Json | null;
11795
+ id?: string;
11796
+ identical?: boolean | null;
11797
+ mode: string;
11798
+ order_id: string;
11799
+ order_ref?: string | null;
11800
+ reason?: string | null;
11801
+ status?: string;
11802
+ };
11803
+ Update: {
11804
+ after_snapshot?: Json | null;
11805
+ before_snapshot?: Json;
11806
+ buffer_id?: string | null;
11807
+ carts_after?: number | null;
11808
+ carts_before?: number | null;
11809
+ compared_at?: string | null;
11810
+ created_at?: string;
11811
+ differences?: Json | null;
11812
+ id?: string;
11813
+ identical?: boolean | null;
11814
+ mode?: string;
11815
+ order_id?: string;
11816
+ order_ref?: string | null;
11817
+ reason?: string | null;
11818
+ status?: string;
11819
+ };
11820
+ Relationships: [];
11821
+ };
11427
11822
  logistics_rebuffer_state: {
11428
11823
  Row: {
11429
11824
  created_at: string;
11430
11825
  id: boolean;
11431
11826
  last_checked: number;
11432
11827
  last_duration_ms: number;
11828
+ last_mode: string | null;
11433
11829
  last_run_at: string | null;
11434
11830
  last_updated: number;
11831
+ last_would_change: number | null;
11435
11832
  pending: boolean;
11436
11833
  requested_at: string | null;
11437
11834
  updated_at: string;
@@ -11441,8 +11838,10 @@ export type Database = {
11441
11838
  id?: boolean;
11442
11839
  last_checked?: number;
11443
11840
  last_duration_ms?: number;
11841
+ last_mode?: string | null;
11444
11842
  last_run_at?: string | null;
11445
11843
  last_updated?: number;
11844
+ last_would_change?: number | null;
11446
11845
  pending?: boolean;
11447
11846
  requested_at?: string | null;
11448
11847
  updated_at?: string;
@@ -11452,8 +11851,10 @@ export type Database = {
11452
11851
  id?: boolean;
11453
11852
  last_checked?: number;
11454
11853
  last_duration_ms?: number;
11854
+ last_mode?: string | null;
11455
11855
  last_run_at?: string | null;
11456
11856
  last_updated?: number;
11857
+ last_would_change?: number | null;
11457
11858
  pending?: boolean;
11458
11859
  requested_at?: string | null;
11459
11860
  updated_at?: string;
@@ -13486,6 +13887,42 @@ export type Database = {
13486
13887
  };
13487
13888
  Relationships: [];
13488
13889
  };
13890
+ monteur_contracten: {
13891
+ Row: {
13892
+ contract_type: string;
13893
+ created_at: string;
13894
+ days_per_week: number;
13895
+ hours_per_week: number;
13896
+ id: string;
13897
+ updated_at: string;
13898
+ user_id: string;
13899
+ vacation_day_hours: number;
13900
+ vacation_days_per_year: number;
13901
+ };
13902
+ Insert: {
13903
+ contract_type?: string;
13904
+ created_at?: string;
13905
+ days_per_week?: number;
13906
+ hours_per_week?: number;
13907
+ id?: string;
13908
+ updated_at?: string;
13909
+ user_id: string;
13910
+ vacation_day_hours?: number;
13911
+ vacation_days_per_year?: number;
13912
+ };
13913
+ Update: {
13914
+ contract_type?: string;
13915
+ created_at?: string;
13916
+ days_per_week?: number;
13917
+ hours_per_week?: number;
13918
+ id?: string;
13919
+ updated_at?: string;
13920
+ user_id?: string;
13921
+ vacation_day_hours?: number;
13922
+ vacation_days_per_year?: number;
13923
+ };
13924
+ Relationships: [];
13925
+ };
13489
13926
  nmbrs_component_mapping: {
13490
13927
  Row: {
13491
13928
  created_at: string;
@@ -13977,6 +14414,9 @@ export type Database = {
13977
14414
  id: string;
13978
14415
  items: Json;
13979
14416
  notes: string | null;
14417
+ order_creation_error: string | null;
14418
+ order_creation_failed_at: string | null;
14419
+ order_id: string | null;
13980
14420
  order_number: string | null;
13981
14421
  recipient_id: string;
13982
14422
  total_amount: number;
@@ -13991,6 +14431,9 @@ export type Database = {
13991
14431
  id?: string;
13992
14432
  items?: Json;
13993
14433
  notes?: string | null;
14434
+ order_creation_error?: string | null;
14435
+ order_creation_failed_at?: string | null;
14436
+ order_id?: string | null;
13994
14437
  order_number?: string | null;
13995
14438
  recipient_id: string;
13996
14439
  total_amount?: number;
@@ -14005,6 +14448,9 @@ export type Database = {
14005
14448
  id?: string;
14006
14449
  items?: Json;
14007
14450
  notes?: string | null;
14451
+ order_creation_error?: string | null;
14452
+ order_creation_failed_at?: string | null;
14453
+ order_id?: string | null;
14008
14454
  order_number?: string | null;
14009
14455
  recipient_id?: string;
14010
14456
  total_amount?: number;
@@ -14025,8 +14471,15 @@ export type Database = {
14025
14471
  referencedColumns: ["id"];
14026
14472
  },
14027
14473
  {
14028
- foreignKeyName: "offer_orders_recipient_id_fkey";
14029
- columns: ["recipient_id"];
14474
+ foreignKeyName: "offer_orders_order_id_fkey";
14475
+ columns: ["order_id"];
14476
+ isOneToOne: false;
14477
+ referencedRelation: "orders";
14478
+ referencedColumns: ["id"];
14479
+ },
14480
+ {
14481
+ foreignKeyName: "offer_orders_recipient_id_fkey";
14482
+ columns: ["recipient_id"];
14030
14483
  isOneToOne: false;
14031
14484
  referencedRelation: "offer_recipients";
14032
14485
  referencedColumns: ["id"];
@@ -14169,6 +14622,30 @@ export type Database = {
14169
14622
  };
14170
14623
  Relationships: [];
14171
14624
  };
14625
+ order_block_notifications: {
14626
+ Row: {
14627
+ id: string;
14628
+ notified_at: string;
14629
+ order_id: string;
14630
+ reason: string | null;
14631
+ reason_key: string;
14632
+ };
14633
+ Insert: {
14634
+ id?: string;
14635
+ notified_at?: string;
14636
+ order_id: string;
14637
+ reason?: string | null;
14638
+ reason_key: string;
14639
+ };
14640
+ Update: {
14641
+ id?: string;
14642
+ notified_at?: string;
14643
+ order_id?: string;
14644
+ reason?: string | null;
14645
+ reason_key?: string;
14646
+ };
14647
+ Relationships: [];
14648
+ };
14172
14649
  order_buffers: {
14173
14650
  Row: {
14174
14651
  buffer_key: string;
@@ -14617,6 +15094,7 @@ export type Database = {
14617
15094
  next_attempt_at: string;
14618
15095
  order_id: string;
14619
15096
  processed_at: string | null;
15097
+ send_error: string | null;
14620
15098
  status: string;
14621
15099
  updated_at: string;
14622
15100
  };
@@ -14630,6 +15108,7 @@ export type Database = {
14630
15108
  next_attempt_at?: string;
14631
15109
  order_id: string;
14632
15110
  processed_at?: string | null;
15111
+ send_error?: string | null;
14633
15112
  status?: string;
14634
15113
  updated_at?: string;
14635
15114
  };
@@ -14643,6 +15122,7 @@ export type Database = {
14643
15122
  next_attempt_at?: string;
14644
15123
  order_id?: string;
14645
15124
  processed_at?: string | null;
15125
+ send_error?: string | null;
14646
15126
  status?: string;
14647
15127
  updated_at?: string;
14648
15128
  };
@@ -14655,10 +15135,13 @@ export type Database = {
14655
15135
  id: string;
14656
15136
  layers_per_cart: number | null;
14657
15137
  order_id: string;
15138
+ packing_locked_at: string | null;
15139
+ packing_locked_by: string | null;
14658
15140
  plants_per_crate: number | null;
14659
15141
  product_id: string | null;
14660
15142
  product_name: string;
14661
15143
  quantity: number;
15144
+ source_line_key: string | null;
14662
15145
  unit: string;
14663
15146
  unit_price: number | null;
14664
15147
  };
@@ -14668,10 +15151,13 @@ export type Database = {
14668
15151
  id?: string;
14669
15152
  layers_per_cart?: number | null;
14670
15153
  order_id: string;
15154
+ packing_locked_at?: string | null;
15155
+ packing_locked_by?: string | null;
14671
15156
  plants_per_crate?: number | null;
14672
15157
  product_id?: string | null;
14673
15158
  product_name: string;
14674
15159
  quantity?: number;
15160
+ source_line_key?: string | null;
14675
15161
  unit?: string;
14676
15162
  unit_price?: number | null;
14677
15163
  };
@@ -14681,10 +15167,13 @@ export type Database = {
14681
15167
  id?: string;
14682
15168
  layers_per_cart?: number | null;
14683
15169
  order_id?: string;
15170
+ packing_locked_at?: string | null;
15171
+ packing_locked_by?: string | null;
14684
15172
  plants_per_crate?: number | null;
14685
15173
  product_id?: string | null;
14686
15174
  product_name?: string;
14687
15175
  quantity?: number;
15176
+ source_line_key?: string | null;
14688
15177
  unit?: string;
14689
15178
  unit_price?: number | null;
14690
15179
  };
@@ -16247,6 +16736,202 @@ export type Database = {
16247
16736
  }
16248
16737
  ];
16249
16738
  };
16739
+ planning_monteur_day_locations: {
16740
+ Row: {
16741
+ created_at: string;
16742
+ day: string;
16743
+ end_at: string;
16744
+ id: string;
16745
+ monteur_id: string;
16746
+ start_from: string;
16747
+ updated_at: string;
16748
+ };
16749
+ Insert: {
16750
+ created_at?: string;
16751
+ day: string;
16752
+ end_at?: string;
16753
+ id?: string;
16754
+ monteur_id: string;
16755
+ start_from?: string;
16756
+ updated_at?: string;
16757
+ };
16758
+ Update: {
16759
+ created_at?: string;
16760
+ day?: string;
16761
+ end_at?: string;
16762
+ id?: string;
16763
+ monteur_id?: string;
16764
+ start_from?: string;
16765
+ updated_at?: string;
16766
+ };
16767
+ Relationships: [];
16768
+ };
16769
+ planning_monteur_locations: {
16770
+ Row: {
16771
+ created_at: string;
16772
+ default_end: string;
16773
+ default_start: string;
16774
+ end_address: string | null;
16775
+ home_address: string | null;
16776
+ id: string;
16777
+ monteur_id: string;
16778
+ start_address: string | null;
16779
+ updated_at: string;
16780
+ };
16781
+ Insert: {
16782
+ created_at?: string;
16783
+ default_end?: string;
16784
+ default_start?: string;
16785
+ end_address?: string | null;
16786
+ home_address?: string | null;
16787
+ id?: string;
16788
+ monteur_id: string;
16789
+ start_address?: string | null;
16790
+ updated_at?: string;
16791
+ };
16792
+ Update: {
16793
+ created_at?: string;
16794
+ default_end?: string;
16795
+ default_start?: string;
16796
+ end_address?: string | null;
16797
+ home_address?: string | null;
16798
+ id?: string;
16799
+ monteur_id?: string;
16800
+ start_address?: string | null;
16801
+ updated_at?: string;
16802
+ };
16803
+ Relationships: [];
16804
+ };
16805
+ planning_settings: {
16806
+ Row: {
16807
+ company_address: string | null;
16808
+ created_at: string;
16809
+ id: string;
16810
+ singleton: boolean;
16811
+ updated_at: string;
16812
+ };
16813
+ Insert: {
16814
+ company_address?: string | null;
16815
+ created_at?: string;
16816
+ id?: string;
16817
+ singleton?: boolean;
16818
+ updated_at?: string;
16819
+ };
16820
+ Update: {
16821
+ company_address?: string | null;
16822
+ created_at?: string;
16823
+ id?: string;
16824
+ singleton?: boolean;
16825
+ updated_at?: string;
16826
+ };
16827
+ Relationships: [];
16828
+ };
16829
+ planning_travel_legs: {
16830
+ Row: {
16831
+ after_min: number;
16832
+ after_reason: string | null;
16833
+ after_status: string;
16834
+ after_to_address: string | null;
16835
+ before_from_address: string | null;
16836
+ before_min: number;
16837
+ before_reason: string | null;
16838
+ before_status: string;
16839
+ computed_at: string;
16840
+ computed_end_at: string | null;
16841
+ computed_start_at: string | null;
16842
+ created_at: string;
16843
+ id: string;
16844
+ monteur_id: string;
16845
+ planning_item_id: string;
16846
+ shared_after_item_id: string | null;
16847
+ shared_before_item_id: string | null;
16848
+ updated_at: string;
16849
+ };
16850
+ Insert: {
16851
+ after_min?: number;
16852
+ after_reason?: string | null;
16853
+ after_status?: string;
16854
+ after_to_address?: string | null;
16855
+ before_from_address?: string | null;
16856
+ before_min?: number;
16857
+ before_reason?: string | null;
16858
+ before_status?: string;
16859
+ computed_at?: string;
16860
+ computed_end_at?: string | null;
16861
+ computed_start_at?: string | null;
16862
+ created_at?: string;
16863
+ id?: string;
16864
+ monteur_id: string;
16865
+ planning_item_id: string;
16866
+ shared_after_item_id?: string | null;
16867
+ shared_before_item_id?: string | null;
16868
+ updated_at?: string;
16869
+ };
16870
+ Update: {
16871
+ after_min?: number;
16872
+ after_reason?: string | null;
16873
+ after_status?: string;
16874
+ after_to_address?: string | null;
16875
+ before_from_address?: string | null;
16876
+ before_min?: number;
16877
+ before_reason?: string | null;
16878
+ before_status?: string;
16879
+ computed_at?: string;
16880
+ computed_end_at?: string | null;
16881
+ computed_start_at?: string | null;
16882
+ created_at?: string;
16883
+ id?: string;
16884
+ monteur_id?: string;
16885
+ planning_item_id?: string;
16886
+ shared_after_item_id?: string | null;
16887
+ shared_before_item_id?: string | null;
16888
+ updated_at?: string;
16889
+ };
16890
+ Relationships: [
16891
+ {
16892
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16893
+ columns: ["planning_item_id"];
16894
+ isOneToOne: false;
16895
+ referencedRelation: "planning_items";
16896
+ referencedColumns: ["id"];
16897
+ },
16898
+ {
16899
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16900
+ columns: ["planning_item_id"];
16901
+ isOneToOne: false;
16902
+ referencedRelation: "planning_overview";
16903
+ referencedColumns: ["id"];
16904
+ },
16905
+ {
16906
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16907
+ columns: ["shared_after_item_id"];
16908
+ isOneToOne: false;
16909
+ referencedRelation: "planning_items";
16910
+ referencedColumns: ["id"];
16911
+ },
16912
+ {
16913
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16914
+ columns: ["shared_after_item_id"];
16915
+ isOneToOne: false;
16916
+ referencedRelation: "planning_overview";
16917
+ referencedColumns: ["id"];
16918
+ },
16919
+ {
16920
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16921
+ columns: ["shared_before_item_id"];
16922
+ isOneToOne: false;
16923
+ referencedRelation: "planning_items";
16924
+ referencedColumns: ["id"];
16925
+ },
16926
+ {
16927
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16928
+ columns: ["shared_before_item_id"];
16929
+ isOneToOne: false;
16930
+ referencedRelation: "planning_overview";
16931
+ referencedColumns: ["id"];
16932
+ }
16933
+ ];
16934
+ };
16250
16935
  price_list_rows: {
16251
16936
  Row: {
16252
16937
  action: string;
@@ -17460,6 +18145,8 @@ export type Database = {
17460
18145
  };
17461
18146
  product_load_settings: {
17462
18147
  Row: {
18148
+ build: Json | null;
18149
+ build_status: string;
17463
18150
  created_at: string;
17464
18151
  id: string;
17465
18152
  is_package: boolean;
@@ -17477,6 +18164,8 @@ export type Database = {
17477
18164
  updated_at: string;
17478
18165
  };
17479
18166
  Insert: {
18167
+ build?: Json | null;
18168
+ build_status?: string;
17480
18169
  created_at?: string;
17481
18170
  id?: string;
17482
18171
  is_package?: boolean;
@@ -17494,6 +18183,8 @@ export type Database = {
17494
18183
  updated_at?: string;
17495
18184
  };
17496
18185
  Update: {
18186
+ build?: Json | null;
18187
+ build_status?: string;
17497
18188
  created_at?: string;
17498
18189
  id?: string;
17499
18190
  is_package?: boolean;
@@ -17567,6 +18258,124 @@ export type Database = {
17567
18258
  };
17568
18259
  Relationships: [];
17569
18260
  };
18261
+ product_suppliers: {
18262
+ Row: {
18263
+ created_at: string;
18264
+ id: string;
18265
+ is_preferred: boolean;
18266
+ lead_time_days: number | null;
18267
+ min_order_quantity: number | null;
18268
+ notes: string | null;
18269
+ previous_price_cents: number | null;
18270
+ price_source: string;
18271
+ price_updated_at: string | null;
18272
+ product_id: string;
18273
+ purchase_price_cents: number | null;
18274
+ supplier_article_number: string | null;
18275
+ supplier_id: string;
18276
+ updated_at: string;
18277
+ };
18278
+ Insert: {
18279
+ created_at?: string;
18280
+ id?: string;
18281
+ is_preferred?: boolean;
18282
+ lead_time_days?: number | null;
18283
+ min_order_quantity?: number | null;
18284
+ notes?: string | null;
18285
+ previous_price_cents?: number | null;
18286
+ price_source?: string;
18287
+ price_updated_at?: string | null;
18288
+ product_id: string;
18289
+ purchase_price_cents?: number | null;
18290
+ supplier_article_number?: string | null;
18291
+ supplier_id: string;
18292
+ updated_at?: string;
18293
+ };
18294
+ Update: {
18295
+ created_at?: string;
18296
+ id?: string;
18297
+ is_preferred?: boolean;
18298
+ lead_time_days?: number | null;
18299
+ min_order_quantity?: number | null;
18300
+ notes?: string | null;
18301
+ previous_price_cents?: number | null;
18302
+ price_source?: string;
18303
+ price_updated_at?: string | null;
18304
+ product_id?: string;
18305
+ purchase_price_cents?: number | null;
18306
+ supplier_article_number?: string | null;
18307
+ supplier_id?: string;
18308
+ updated_at?: string;
18309
+ };
18310
+ Relationships: [
18311
+ {
18312
+ foreignKeyName: "product_suppliers_product_id_fkey";
18313
+ columns: ["product_id"];
18314
+ isOneToOne: false;
18315
+ referencedRelation: "logistics_product_dimensions";
18316
+ referencedColumns: ["product_id"];
18317
+ },
18318
+ {
18319
+ foreignKeyName: "product_suppliers_product_id_fkey";
18320
+ columns: ["product_id"];
18321
+ isOneToOne: false;
18322
+ referencedRelation: "products";
18323
+ referencedColumns: ["id"];
18324
+ },
18325
+ {
18326
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
18327
+ columns: ["supplier_id"];
18328
+ isOneToOne: false;
18329
+ referencedRelation: "suppliers";
18330
+ referencedColumns: ["id"];
18331
+ }
18332
+ ];
18333
+ };
18334
+ product_tray_stickers: {
18335
+ Row: {
18336
+ bestand_url: string;
18337
+ bestandsgrootte: number | null;
18338
+ bestandsnaam: string | null;
18339
+ bestandspad: string | null;
18340
+ created_at: string;
18341
+ product_id: string;
18342
+ updated_at: string;
18343
+ };
18344
+ Insert: {
18345
+ bestand_url: string;
18346
+ bestandsgrootte?: number | null;
18347
+ bestandsnaam?: string | null;
18348
+ bestandspad?: string | null;
18349
+ created_at?: string;
18350
+ product_id: string;
18351
+ updated_at?: string;
18352
+ };
18353
+ Update: {
18354
+ bestand_url?: string;
18355
+ bestandsgrootte?: number | null;
18356
+ bestandsnaam?: string | null;
18357
+ bestandspad?: string | null;
18358
+ created_at?: string;
18359
+ product_id?: string;
18360
+ updated_at?: string;
18361
+ };
18362
+ Relationships: [
18363
+ {
18364
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18365
+ columns: ["product_id"];
18366
+ isOneToOne: true;
18367
+ referencedRelation: "logistics_product_dimensions";
18368
+ referencedColumns: ["product_id"];
18369
+ },
18370
+ {
18371
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18372
+ columns: ["product_id"];
18373
+ isOneToOne: true;
18374
+ referencedRelation: "products";
18375
+ referencedColumns: ["id"];
18376
+ }
18377
+ ];
18378
+ };
17570
18379
  products: {
17571
18380
  Row: {
17572
18381
  article_number: string | null;
@@ -17575,6 +18384,8 @@ export type Database = {
17575
18384
  crates_per_layer: number;
17576
18385
  created_at: string;
17577
18386
  custom_fields: Json;
18387
+ floriday_packing_confirmed_at: string | null;
18388
+ floriday_packing_source: string | null;
17578
18389
  floriday_trade_item_id: string | null;
17579
18390
  fust_type_id: string | null;
17580
18391
  id: string;
@@ -17603,6 +18414,8 @@ export type Database = {
17603
18414
  crates_per_layer?: number;
17604
18415
  created_at?: string;
17605
18416
  custom_fields?: Json;
18417
+ floriday_packing_confirmed_at?: string | null;
18418
+ floriday_packing_source?: string | null;
17606
18419
  floriday_trade_item_id?: string | null;
17607
18420
  fust_type_id?: string | null;
17608
18421
  id?: string;
@@ -17631,6 +18444,8 @@ export type Database = {
17631
18444
  crates_per_layer?: number;
17632
18445
  created_at?: string;
17633
18446
  custom_fields?: Json;
18447
+ floriday_packing_confirmed_at?: string | null;
18448
+ floriday_packing_source?: string | null;
17634
18449
  floriday_trade_item_id?: string | null;
17635
18450
  fust_type_id?: string | null;
17636
18451
  id?: string;
@@ -17737,6 +18552,7 @@ export type Database = {
17737
18552
  id: string;
17738
18553
  is_superadmin: boolean;
17739
18554
  notification_preferences: Json;
18555
+ phone: string | null;
17740
18556
  tenant_id: string | null;
17741
18557
  updated_at: string;
17742
18558
  };
@@ -17749,6 +18565,7 @@ export type Database = {
17749
18565
  id: string;
17750
18566
  is_superadmin?: boolean;
17751
18567
  notification_preferences?: Json;
18568
+ phone?: string | null;
17752
18569
  tenant_id?: string | null;
17753
18570
  updated_at?: string;
17754
18571
  };
@@ -17761,6 +18578,7 @@ export type Database = {
17761
18578
  id?: string;
17762
18579
  is_superadmin?: boolean;
17763
18580
  notification_preferences?: Json;
18581
+ phone?: string | null;
17764
18582
  tenant_id?: string | null;
17765
18583
  updated_at?: string;
17766
18584
  };
@@ -18040,9 +18858,13 @@ export type Database = {
18040
18858
  purchase_order_items: {
18041
18859
  Row: {
18042
18860
  article_number: string | null;
18861
+ cancel_reason: string | null;
18862
+ cancelled_at: string | null;
18043
18863
  created_at: string;
18044
18864
  delivery_date: string | null;
18045
18865
  id: string;
18866
+ incoming_booked: number;
18867
+ line_status: string;
18046
18868
  name: string;
18047
18869
  note: string | null;
18048
18870
  pot_size: string | null;
@@ -18050,6 +18872,8 @@ export type Database = {
18050
18872
  product_type: string;
18051
18873
  purchase_order_id: string;
18052
18874
  quantity: number;
18875
+ received_at: string | null;
18876
+ received_booked: number;
18053
18877
  supplier_id: string | null;
18054
18878
  supplier_product_id: string | null;
18055
18879
  unit_price_cents: number;
@@ -18057,9 +18881,13 @@ export type Database = {
18057
18881
  };
18058
18882
  Insert: {
18059
18883
  article_number?: string | null;
18884
+ cancel_reason?: string | null;
18885
+ cancelled_at?: string | null;
18060
18886
  created_at?: string;
18061
18887
  delivery_date?: string | null;
18062
18888
  id?: string;
18889
+ incoming_booked?: number;
18890
+ line_status?: string;
18063
18891
  name?: string;
18064
18892
  note?: string | null;
18065
18893
  pot_size?: string | null;
@@ -18067,6 +18895,8 @@ export type Database = {
18067
18895
  product_type?: string;
18068
18896
  purchase_order_id: string;
18069
18897
  quantity?: number;
18898
+ received_at?: string | null;
18899
+ received_booked?: number;
18070
18900
  supplier_id?: string | null;
18071
18901
  supplier_product_id?: string | null;
18072
18902
  unit_price_cents?: number;
@@ -18074,9 +18904,13 @@ export type Database = {
18074
18904
  };
18075
18905
  Update: {
18076
18906
  article_number?: string | null;
18907
+ cancel_reason?: string | null;
18908
+ cancelled_at?: string | null;
18077
18909
  created_at?: string;
18078
18910
  delivery_date?: string | null;
18079
18911
  id?: string;
18912
+ incoming_booked?: number;
18913
+ line_status?: string;
18080
18914
  name?: string;
18081
18915
  note?: string | null;
18082
18916
  pot_size?: string | null;
@@ -18084,6 +18918,8 @@ export type Database = {
18084
18918
  product_type?: string;
18085
18919
  purchase_order_id?: string;
18086
18920
  quantity?: number;
18921
+ received_at?: string | null;
18922
+ received_booked?: number;
18087
18923
  supplier_id?: string | null;
18088
18924
  supplier_product_id?: string | null;
18089
18925
  unit_price_cents?: number;
@@ -18196,14 +19032,169 @@ export type Database = {
18196
19032
  }
18197
19033
  ];
18198
19034
  };
18199
- reception_notifications: {
19035
+ purchase_request_events: {
18200
19036
  Row: {
18201
- booking_id: string | null;
18202
19037
  created_at: string;
19038
+ details: Json | null;
19039
+ event_type: string;
18203
19040
  id: string;
18204
- is_read: boolean;
18205
- message: string;
18206
- recipient_email: string | null;
19041
+ request_id: string;
19042
+ };
19043
+ Insert: {
19044
+ created_at?: string;
19045
+ details?: Json | null;
19046
+ event_type: string;
19047
+ id?: string;
19048
+ request_id: string;
19049
+ };
19050
+ Update: {
19051
+ created_at?: string;
19052
+ details?: Json | null;
19053
+ event_type?: string;
19054
+ id?: string;
19055
+ request_id?: string;
19056
+ };
19057
+ Relationships: [
19058
+ {
19059
+ foreignKeyName: "purchase_request_events_request_id_fkey";
19060
+ columns: ["request_id"];
19061
+ isOneToOne: false;
19062
+ referencedRelation: "purchase_requests";
19063
+ referencedColumns: ["id"];
19064
+ }
19065
+ ];
19066
+ };
19067
+ purchase_request_responses: {
19068
+ Row: {
19069
+ confirmed_date: string | null;
19070
+ confirmed_price_cents: number | null;
19071
+ confirmed_quantity: number;
19072
+ created_at: string;
19073
+ id: string;
19074
+ not_available: boolean;
19075
+ note: string | null;
19076
+ purchase_order_item_id: string;
19077
+ request_id: string;
19078
+ updated_at: string;
19079
+ };
19080
+ Insert: {
19081
+ confirmed_date?: string | null;
19082
+ confirmed_price_cents?: number | null;
19083
+ confirmed_quantity?: number;
19084
+ created_at?: string;
19085
+ id?: string;
19086
+ not_available?: boolean;
19087
+ note?: string | null;
19088
+ purchase_order_item_id: string;
19089
+ request_id: string;
19090
+ updated_at?: string;
19091
+ };
19092
+ Update: {
19093
+ confirmed_date?: string | null;
19094
+ confirmed_price_cents?: number | null;
19095
+ confirmed_quantity?: number;
19096
+ created_at?: string;
19097
+ id?: string;
19098
+ not_available?: boolean;
19099
+ note?: string | null;
19100
+ purchase_order_item_id?: string;
19101
+ request_id?: string;
19102
+ updated_at?: string;
19103
+ };
19104
+ Relationships: [
19105
+ {
19106
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
19107
+ columns: ["purchase_order_item_id"];
19108
+ isOneToOne: false;
19109
+ referencedRelation: "purchase_order_items";
19110
+ referencedColumns: ["id"];
19111
+ },
19112
+ {
19113
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
19114
+ columns: ["request_id"];
19115
+ isOneToOne: false;
19116
+ referencedRelation: "purchase_requests";
19117
+ referencedColumns: ["id"];
19118
+ }
19119
+ ];
19120
+ };
19121
+ purchase_requests: {
19122
+ Row: {
19123
+ created_at: string;
19124
+ expires_at: string;
19125
+ first_viewed_at: string | null;
19126
+ id: string;
19127
+ processed_at: string | null;
19128
+ purchase_order_id: string;
19129
+ responded_at: string | null;
19130
+ sent_at: string;
19131
+ status: string;
19132
+ supplier_id: string | null;
19133
+ supplier_name: string;
19134
+ supplier_note: string | null;
19135
+ to_address: string | null;
19136
+ token_hash: string;
19137
+ updated_at: string;
19138
+ };
19139
+ Insert: {
19140
+ created_at?: string;
19141
+ expires_at?: string;
19142
+ first_viewed_at?: string | null;
19143
+ id?: string;
19144
+ processed_at?: string | null;
19145
+ purchase_order_id: string;
19146
+ responded_at?: string | null;
19147
+ sent_at?: string;
19148
+ status?: string;
19149
+ supplier_id?: string | null;
19150
+ supplier_name?: string;
19151
+ supplier_note?: string | null;
19152
+ to_address?: string | null;
19153
+ token_hash: string;
19154
+ updated_at?: string;
19155
+ };
19156
+ Update: {
19157
+ created_at?: string;
19158
+ expires_at?: string;
19159
+ first_viewed_at?: string | null;
19160
+ id?: string;
19161
+ processed_at?: string | null;
19162
+ purchase_order_id?: string;
19163
+ responded_at?: string | null;
19164
+ sent_at?: string;
19165
+ status?: string;
19166
+ supplier_id?: string | null;
19167
+ supplier_name?: string;
19168
+ supplier_note?: string | null;
19169
+ to_address?: string | null;
19170
+ token_hash?: string;
19171
+ updated_at?: string;
19172
+ };
19173
+ Relationships: [
19174
+ {
19175
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
19176
+ columns: ["purchase_order_id"];
19177
+ isOneToOne: false;
19178
+ referencedRelation: "purchase_orders";
19179
+ referencedColumns: ["id"];
19180
+ },
19181
+ {
19182
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
19183
+ columns: ["supplier_id"];
19184
+ isOneToOne: false;
19185
+ referencedRelation: "suppliers";
19186
+ referencedColumns: ["id"];
19187
+ }
19188
+ ];
19189
+ };
19190
+ reception_notifications: {
19191
+ Row: {
19192
+ booking_id: string | null;
19193
+ created_at: string;
19194
+ id: string;
19195
+ is_read: boolean;
19196
+ message: string;
19197
+ recipient_email: string | null;
18207
19198
  title: string;
18208
19199
  type: string;
18209
19200
  };
@@ -19558,40 +20549,52 @@ export type Database = {
19558
20549
  Row: {
19559
20550
  approved_at: string | null;
19560
20551
  approved_by: string | null;
20552
+ contract_hours: number;
19561
20553
  created_at: string;
19562
20554
  employee_id: string;
19563
20555
  id: string;
19564
20556
  locked: boolean;
20557
+ monteur_toelichting: string | null;
19565
20558
  notes: string | null;
20559
+ planned_hours: number;
19566
20560
  status: string;
19567
20561
  submitted_at: string | null;
19568
20562
  updated_at: string;
20563
+ variance_hours: number;
19569
20564
  week_start: string;
19570
20565
  };
19571
20566
  Insert: {
19572
20567
  approved_at?: string | null;
19573
20568
  approved_by?: string | null;
20569
+ contract_hours?: number;
19574
20570
  created_at?: string;
19575
20571
  employee_id: string;
19576
20572
  id?: string;
19577
20573
  locked?: boolean;
20574
+ monteur_toelichting?: string | null;
19578
20575
  notes?: string | null;
20576
+ planned_hours?: number;
19579
20577
  status?: string;
19580
20578
  submitted_at?: string | null;
19581
20579
  updated_at?: string;
20580
+ variance_hours?: number;
19582
20581
  week_start: string;
19583
20582
  };
19584
20583
  Update: {
19585
20584
  approved_at?: string | null;
19586
20585
  approved_by?: string | null;
20586
+ contract_hours?: number;
19587
20587
  created_at?: string;
19588
20588
  employee_id?: string;
19589
20589
  id?: string;
19590
20590
  locked?: boolean;
20591
+ monteur_toelichting?: string | null;
19591
20592
  notes?: string | null;
20593
+ planned_hours?: number;
19592
20594
  status?: string;
19593
20595
  submitted_at?: string | null;
19594
20596
  updated_at?: string;
20597
+ variance_hours?: number;
19595
20598
  week_start?: string;
19596
20599
  };
19597
20600
  Relationships: [
@@ -20397,6 +21400,7 @@ export type Database = {
20397
21400
  auto_invoice_enabled: boolean;
20398
21401
  auto_invoice_start_date: string | null;
20399
21402
  auto_invoice_trigger_statuses: string[];
21403
+ auto_send_mode: string | null;
20400
21404
  created_at: string;
20401
21405
  debtor_gl_account: string;
20402
21406
  default_article_code: string | null;
@@ -20425,6 +21429,7 @@ export type Database = {
20425
21429
  auto_invoice_enabled?: boolean;
20426
21430
  auto_invoice_start_date?: string | null;
20427
21431
  auto_invoice_trigger_statuses?: string[];
21432
+ auto_send_mode?: string | null;
20428
21433
  created_at?: string;
20429
21434
  debtor_gl_account?: string;
20430
21435
  default_article_code?: string | null;
@@ -20453,6 +21458,7 @@ export type Database = {
20453
21458
  auto_invoice_enabled?: boolean;
20454
21459
  auto_invoice_start_date?: string | null;
20455
21460
  auto_invoice_trigger_statuses?: string[];
21461
+ auto_send_mode?: string | null;
20456
21462
  created_at?: string;
20457
21463
  debtor_gl_account?: string;
20458
21464
  default_article_code?: string | null;
@@ -20901,16 +21907,19 @@ export type Database = {
20901
21907
  Row: {
20902
21908
  active_environment: string;
20903
21909
  id: number;
21910
+ public_base_url: string | null;
20904
21911
  updated_at: string;
20905
21912
  };
20906
21913
  Insert: {
20907
21914
  active_environment?: string;
20908
21915
  id?: number;
21916
+ public_base_url?: string | null;
20909
21917
  updated_at?: string;
20910
21918
  };
20911
21919
  Update: {
20912
21920
  active_environment?: string;
20913
21921
  id?: number;
21922
+ public_base_url?: string | null;
20914
21923
  updated_at?: string;
20915
21924
  };
20916
21925
  Relationships: [];
@@ -20950,6 +21959,45 @@ export type Database = {
20950
21959
  }
20951
21960
  ];
20952
21961
  };
21962
+ uren_beschikbare_dagen: {
21963
+ Row: {
21964
+ bron: string;
21965
+ created_at: string;
21966
+ datum: string;
21967
+ eind_tijd: string | null;
21968
+ half_hour_slots: number[];
21969
+ id: string;
21970
+ monteur_id: string;
21971
+ start_tijd: string | null;
21972
+ updated_at: string;
21973
+ uren: number;
21974
+ };
21975
+ Insert: {
21976
+ bron?: string;
21977
+ created_at?: string;
21978
+ datum: string;
21979
+ eind_tijd?: string | null;
21980
+ half_hour_slots?: number[];
21981
+ id?: string;
21982
+ monteur_id: string;
21983
+ start_tijd?: string | null;
21984
+ updated_at?: string;
21985
+ uren?: number;
21986
+ };
21987
+ Update: {
21988
+ bron?: string;
21989
+ created_at?: string;
21990
+ datum?: string;
21991
+ eind_tijd?: string | null;
21992
+ half_hour_slots?: number[];
21993
+ id?: string;
21994
+ monteur_id?: string;
21995
+ start_tijd?: string | null;
21996
+ updated_at?: string;
21997
+ uren?: number;
21998
+ };
21999
+ Relationships: [];
22000
+ };
20953
22001
  uren_cao_profiles: {
20954
22002
  Row: {
20955
22003
  break_minutes: number | null;
@@ -21091,6 +22139,135 @@ export type Database = {
21091
22139
  };
21092
22140
  Relationships: [];
21093
22141
  };
22142
+ uren_maandafsluitingen: {
22143
+ Row: {
22144
+ afgesloten_at: string | null;
22145
+ afgesloten_door: string | null;
22146
+ contract_minuten: number;
22147
+ correctie_reden: string | null;
22148
+ created_at: string;
22149
+ gecorrigeerd_at: string | null;
22150
+ gecorrigeerd_door: string | null;
22151
+ gewerkte_minuten: number;
22152
+ id: string;
22153
+ maand: string;
22154
+ min_minuten: number;
22155
+ monteur_id: string;
22156
+ netto_verschil_minuten: number;
22157
+ normaal_uitbetaald_minuten: number;
22158
+ omgezet_vakantie_minuten: number;
22159
+ overdracht_vorige_minuten: number;
22160
+ overuren_minuten: number;
22161
+ plus_minuten: number;
22162
+ rest_overuren_minuten: number;
22163
+ status: string;
22164
+ totaal_uitbetaald_minuten: number;
22165
+ updated_at: string;
22166
+ vakantie_uren_bijgeschreven: number;
22167
+ };
22168
+ Insert: {
22169
+ afgesloten_at?: string | null;
22170
+ afgesloten_door?: string | null;
22171
+ contract_minuten?: number;
22172
+ correctie_reden?: string | null;
22173
+ created_at?: string;
22174
+ gecorrigeerd_at?: string | null;
22175
+ gecorrigeerd_door?: string | null;
22176
+ gewerkte_minuten?: number;
22177
+ id?: string;
22178
+ maand: string;
22179
+ min_minuten?: number;
22180
+ monteur_id: string;
22181
+ netto_verschil_minuten?: number;
22182
+ normaal_uitbetaald_minuten?: number;
22183
+ omgezet_vakantie_minuten?: number;
22184
+ overdracht_vorige_minuten?: number;
22185
+ overuren_minuten?: number;
22186
+ plus_minuten?: number;
22187
+ rest_overuren_minuten?: number;
22188
+ status?: string;
22189
+ totaal_uitbetaald_minuten?: number;
22190
+ updated_at?: string;
22191
+ vakantie_uren_bijgeschreven?: number;
22192
+ };
22193
+ Update: {
22194
+ afgesloten_at?: string | null;
22195
+ afgesloten_door?: string | null;
22196
+ contract_minuten?: number;
22197
+ correctie_reden?: string | null;
22198
+ created_at?: string;
22199
+ gecorrigeerd_at?: string | null;
22200
+ gecorrigeerd_door?: string | null;
22201
+ gewerkte_minuten?: number;
22202
+ id?: string;
22203
+ maand?: string;
22204
+ min_minuten?: number;
22205
+ monteur_id?: string;
22206
+ netto_verschil_minuten?: number;
22207
+ normaal_uitbetaald_minuten?: number;
22208
+ omgezet_vakantie_minuten?: number;
22209
+ overdracht_vorige_minuten?: number;
22210
+ overuren_minuten?: number;
22211
+ plus_minuten?: number;
22212
+ rest_overuren_minuten?: number;
22213
+ status?: string;
22214
+ totaal_uitbetaald_minuten?: number;
22215
+ updated_at?: string;
22216
+ vakantie_uren_bijgeschreven?: number;
22217
+ };
22218
+ Relationships: [];
22219
+ };
22220
+ uren_overuren_verklaringen: {
22221
+ Row: {
22222
+ beoordeeld_door: string | null;
22223
+ beoordeeld_op: string | null;
22224
+ created_at: string;
22225
+ datum: string;
22226
+ eind_tijd: string | null;
22227
+ id: string;
22228
+ ingediend_at: string;
22229
+ monteur_id: string;
22230
+ overuren: number;
22231
+ reden_afkeur: string | null;
22232
+ start_tijd: string | null;
22233
+ status: string;
22234
+ toelichting: string;
22235
+ updated_at: string;
22236
+ };
22237
+ Insert: {
22238
+ beoordeeld_door?: string | null;
22239
+ beoordeeld_op?: string | null;
22240
+ created_at?: string;
22241
+ datum: string;
22242
+ eind_tijd?: string | null;
22243
+ id?: string;
22244
+ ingediend_at?: string;
22245
+ monteur_id: string;
22246
+ overuren: number;
22247
+ reden_afkeur?: string | null;
22248
+ start_tijd?: string | null;
22249
+ status?: string;
22250
+ toelichting: string;
22251
+ updated_at?: string;
22252
+ };
22253
+ Update: {
22254
+ beoordeeld_door?: string | null;
22255
+ beoordeeld_op?: string | null;
22256
+ created_at?: string;
22257
+ datum?: string;
22258
+ eind_tijd?: string | null;
22259
+ id?: string;
22260
+ ingediend_at?: string;
22261
+ monteur_id?: string;
22262
+ overuren?: number;
22263
+ reden_afkeur?: string | null;
22264
+ start_tijd?: string | null;
22265
+ status?: string;
22266
+ toelichting?: string;
22267
+ updated_at?: string;
22268
+ };
22269
+ Relationships: [];
22270
+ };
21094
22271
  uren_settings: {
21095
22272
  Row: {
21096
22273
  break_minutes: number;
@@ -21136,6 +22313,75 @@ export type Database = {
21136
22313
  };
21137
22314
  Relationships: [];
21138
22315
  };
22316
+ uren_standaardweek: {
22317
+ Row: {
22318
+ created_at: string;
22319
+ eind_slot: number;
22320
+ id: string;
22321
+ monteur_id: string;
22322
+ start_slot: number;
22323
+ updated_at: string;
22324
+ weekdag: number;
22325
+ };
22326
+ Insert: {
22327
+ created_at?: string;
22328
+ eind_slot: number;
22329
+ id?: string;
22330
+ monteur_id: string;
22331
+ start_slot: number;
22332
+ updated_at?: string;
22333
+ weekdag: number;
22334
+ };
22335
+ Update: {
22336
+ created_at?: string;
22337
+ eind_slot?: number;
22338
+ id?: string;
22339
+ monteur_id?: string;
22340
+ start_slot?: number;
22341
+ updated_at?: string;
22342
+ weekdag?: number;
22343
+ };
22344
+ Relationships: [];
22345
+ };
22346
+ uren_standaardweek_wijzigingen: {
22347
+ Row: {
22348
+ beoordeeld_door: string | null;
22349
+ beoordeeld_op: string | null;
22350
+ created_at: string;
22351
+ huidig: Json;
22352
+ id: string;
22353
+ monteur_id: string;
22354
+ reden_afkeur: string | null;
22355
+ status: string;
22356
+ updated_at: string;
22357
+ voorstel: Json;
22358
+ };
22359
+ Insert: {
22360
+ beoordeeld_door?: string | null;
22361
+ beoordeeld_op?: string | null;
22362
+ created_at?: string;
22363
+ huidig?: Json;
22364
+ id?: string;
22365
+ monteur_id: string;
22366
+ reden_afkeur?: string | null;
22367
+ status?: string;
22368
+ updated_at?: string;
22369
+ voorstel: Json;
22370
+ };
22371
+ Update: {
22372
+ beoordeeld_door?: string | null;
22373
+ beoordeeld_op?: string | null;
22374
+ created_at?: string;
22375
+ huidig?: Json;
22376
+ id?: string;
22377
+ monteur_id?: string;
22378
+ reden_afkeur?: string | null;
22379
+ status?: string;
22380
+ updated_at?: string;
22381
+ voorstel?: Json;
22382
+ };
22383
+ Relationships: [];
22384
+ };
21139
22385
  uren_tarieven: {
21140
22386
  Row: {
21141
22387
  created_at: string;
@@ -21222,6 +22468,42 @@ export type Database = {
21222
22468
  };
21223
22469
  Relationships: [];
21224
22470
  };
22471
+ uren_tijd_spiegel: {
22472
+ Row: {
22473
+ created_at: string;
22474
+ id: string;
22475
+ time_log_id: string;
22476
+ werkbon_time_log_id: string;
22477
+ };
22478
+ Insert: {
22479
+ created_at?: string;
22480
+ id?: string;
22481
+ time_log_id: string;
22482
+ werkbon_time_log_id: string;
22483
+ };
22484
+ Update: {
22485
+ created_at?: string;
22486
+ id?: string;
22487
+ time_log_id?: string;
22488
+ werkbon_time_log_id?: string;
22489
+ };
22490
+ Relationships: [
22491
+ {
22492
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22493
+ columns: ["time_log_id"];
22494
+ isOneToOne: true;
22495
+ referencedRelation: "time_logs";
22496
+ referencedColumns: ["id"];
22497
+ },
22498
+ {
22499
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22500
+ columns: ["werkbon_time_log_id"];
22501
+ isOneToOne: true;
22502
+ referencedRelation: "werkbon_time_logs";
22503
+ referencedColumns: ["id"];
22504
+ }
22505
+ ];
22506
+ };
21225
22507
  uren_weekstaten: {
21226
22508
  Row: {
21227
22509
  approved_at: string | null;
@@ -21264,19 +22546,46 @@ export type Database = {
21264
22546
  };
21265
22547
  Relationships: [];
21266
22548
  };
21267
- user_module_permissions: {
22549
+ uren_werktijd_voorkeuren: {
21268
22550
  Row: {
21269
22551
  created_at: string;
21270
- feature_id: string;
22552
+ eind_slot: number;
21271
22553
  id: string;
21272
- module_id: string;
21273
- permission: string;
22554
+ monteur_id: string;
22555
+ start_slot: number;
21274
22556
  updated_at: string;
21275
- user_id: string;
21276
22557
  };
21277
22558
  Insert: {
21278
22559
  created_at?: string;
21279
- feature_id?: string;
22560
+ eind_slot?: number;
22561
+ id?: string;
22562
+ monteur_id: string;
22563
+ start_slot?: number;
22564
+ updated_at?: string;
22565
+ };
22566
+ Update: {
22567
+ created_at?: string;
22568
+ eind_slot?: number;
22569
+ id?: string;
22570
+ monteur_id?: string;
22571
+ start_slot?: number;
22572
+ updated_at?: string;
22573
+ };
22574
+ Relationships: [];
22575
+ };
22576
+ user_module_permissions: {
22577
+ Row: {
22578
+ created_at: string;
22579
+ feature_id: string;
22580
+ id: string;
22581
+ module_id: string;
22582
+ permission: string;
22583
+ updated_at: string;
22584
+ user_id: string;
22585
+ };
22586
+ Insert: {
22587
+ created_at?: string;
22588
+ feature_id?: string;
21280
22589
  id?: string;
21281
22590
  module_id: string;
21282
22591
  permission: string;
@@ -21323,6 +22632,54 @@ export type Database = {
21323
22632
  }
21324
22633
  ];
21325
22634
  };
22635
+ vakantie_uitbetalingen: {
22636
+ Row: {
22637
+ created_at: string;
22638
+ created_by: string | null;
22639
+ days: number;
22640
+ id: string;
22641
+ note: string | null;
22642
+ updated_at: string;
22643
+ user_id: string;
22644
+ year: number;
22645
+ };
22646
+ Insert: {
22647
+ created_at?: string;
22648
+ created_by?: string | null;
22649
+ days: number;
22650
+ id?: string;
22651
+ note?: string | null;
22652
+ updated_at?: string;
22653
+ user_id: string;
22654
+ year?: number;
22655
+ };
22656
+ Update: {
22657
+ created_at?: string;
22658
+ created_by?: string | null;
22659
+ days?: number;
22660
+ id?: string;
22661
+ note?: string | null;
22662
+ updated_at?: string;
22663
+ user_id?: string;
22664
+ year?: number;
22665
+ };
22666
+ Relationships: [
22667
+ {
22668
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22669
+ columns: ["created_by"];
22670
+ isOneToOne: false;
22671
+ referencedRelation: "profiles";
22672
+ referencedColumns: ["id"];
22673
+ },
22674
+ {
22675
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22676
+ columns: ["user_id"];
22677
+ isOneToOne: false;
22678
+ referencedRelation: "profiles";
22679
+ referencedColumns: ["id"];
22680
+ }
22681
+ ];
22682
+ };
21326
22683
  van_inventories: {
21327
22684
  Row: {
21328
22685
  barcode: string | null;
@@ -22211,10 +23568,12 @@ export type Database = {
22211
23568
  Row: {
22212
23569
  article_number: string | null;
22213
23570
  artikel_id: string | null;
23571
+ cost_price_cents: number;
22214
23572
  created_at: string;
22215
23573
  gtin: string | null;
22216
23574
  id: string;
22217
23575
  manufacturer: string | null;
23576
+ margin_percent: number | null;
22218
23577
  omschrijving: string;
22219
23578
  package_id: string;
22220
23579
  price_synced_at: string | null;
@@ -22229,10 +23588,12 @@ export type Database = {
22229
23588
  Insert: {
22230
23589
  article_number?: string | null;
22231
23590
  artikel_id?: string | null;
23591
+ cost_price_cents?: number;
22232
23592
  created_at?: string;
22233
23593
  gtin?: string | null;
22234
23594
  id?: string;
22235
23595
  manufacturer?: string | null;
23596
+ margin_percent?: number | null;
22236
23597
  omschrijving: string;
22237
23598
  package_id: string;
22238
23599
  price_synced_at?: string | null;
@@ -22247,10 +23608,12 @@ export type Database = {
22247
23608
  Update: {
22248
23609
  article_number?: string | null;
22249
23610
  artikel_id?: string | null;
23611
+ cost_price_cents?: number;
22250
23612
  created_at?: string;
22251
23613
  gtin?: string | null;
22252
23614
  id?: string;
22253
23615
  manufacturer?: string | null;
23616
+ margin_percent?: number | null;
22254
23617
  omschrijving?: string;
22255
23618
  package_id?: string;
22256
23619
  price_synced_at?: string | null;
@@ -22632,6 +23995,83 @@ export type Database = {
22632
23995
  }
22633
23996
  ];
22634
23997
  };
23998
+ werkbon_voorstellen: {
23999
+ Row: {
24000
+ bron_werkbon_id: string;
24001
+ budget_mandate_cents: number;
24002
+ created_at: string;
24003
+ created_by: string;
24004
+ customer_id: string | null;
24005
+ id: string;
24006
+ payload: Json;
24007
+ reden: string | null;
24008
+ status: string;
24009
+ updated_at: string;
24010
+ verwerkt_door: string | null;
24011
+ verwerkt_op: string | null;
24012
+ werkbon_id: string | null;
24013
+ };
24014
+ Insert: {
24015
+ bron_werkbon_id: string;
24016
+ budget_mandate_cents?: number;
24017
+ created_at?: string;
24018
+ created_by?: string;
24019
+ customer_id?: string | null;
24020
+ id?: string;
24021
+ payload?: Json;
24022
+ reden?: string | null;
24023
+ status?: string;
24024
+ updated_at?: string;
24025
+ verwerkt_door?: string | null;
24026
+ verwerkt_op?: string | null;
24027
+ werkbon_id?: string | null;
24028
+ };
24029
+ Update: {
24030
+ bron_werkbon_id?: string;
24031
+ budget_mandate_cents?: number;
24032
+ created_at?: string;
24033
+ created_by?: string;
24034
+ customer_id?: string | null;
24035
+ id?: string;
24036
+ payload?: Json;
24037
+ reden?: string | null;
24038
+ status?: string;
24039
+ updated_at?: string;
24040
+ verwerkt_door?: string | null;
24041
+ verwerkt_op?: string | null;
24042
+ werkbon_id?: string | null;
24043
+ };
24044
+ Relationships: [
24045
+ {
24046
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
24047
+ columns: ["bron_werkbon_id"];
24048
+ isOneToOne: false;
24049
+ referencedRelation: "werkbonnen";
24050
+ referencedColumns: ["id"];
24051
+ },
24052
+ {
24053
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
24054
+ columns: ["bron_werkbon_id"];
24055
+ isOneToOne: false;
24056
+ referencedRelation: "wo_overview";
24057
+ referencedColumns: ["id"];
24058
+ },
24059
+ {
24060
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
24061
+ columns: ["werkbon_id"];
24062
+ isOneToOne: false;
24063
+ referencedRelation: "werkbonnen";
24064
+ referencedColumns: ["id"];
24065
+ },
24066
+ {
24067
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
24068
+ columns: ["werkbon_id"];
24069
+ isOneToOne: false;
24070
+ referencedRelation: "wo_overview";
24071
+ referencedColumns: ["id"];
24072
+ }
24073
+ ];
24074
+ };
22635
24075
  werkbonnen: {
22636
24076
  Row: {
22637
24077
  assigned_user_id: string | null;
@@ -23251,6 +24691,21 @@ export type Database = {
23251
24691
  };
23252
24692
  Relationships: [];
23253
24693
  };
24694
+ logistics_packing_diff: {
24695
+ Row: {
24696
+ dev_key: string | null;
24697
+ floriday_packing: Json | null;
24698
+ local_packing: Json | null;
24699
+ order_id: string | null;
24700
+ order_item_id: string | null;
24701
+ order_number: string | null;
24702
+ product_id: string | null;
24703
+ product_name: string | null;
24704
+ scope: string | null;
24705
+ trade_item_id: string | null;
24706
+ };
24707
+ Relationships: [];
24708
+ };
23254
24709
  logistics_product_dimensions: {
23255
24710
  Row: {
23256
24711
  dimension_source: string | null;
@@ -23895,6 +25350,10 @@ export type Database = {
23895
25350
  };
23896
25351
  Returns: undefined;
23897
25352
  };
25353
+ _wo_is_planner: {
25354
+ Args: never;
25355
+ Returns: boolean;
25356
+ };
23898
25357
  afh_city_code: {
23899
25358
  Args: {
23900
25359
  _city: string;
@@ -24505,10 +25964,32 @@ export type Database = {
24505
25964
  };
24506
25965
  Returns: number;
24507
25966
  };
25967
+ control_mark_carts_delivered_detail: {
25968
+ Args: {
25969
+ p_carts: Json;
25970
+ };
25971
+ Returns: {
25972
+ cart_index: number;
25973
+ frozen: boolean;
25974
+ message: string;
25975
+ order_id: string;
25976
+ order_source: string;
25977
+ outcome: string;
25978
+ }[];
25979
+ };
24508
25980
  count_distinct_regulatory_products: {
24509
25981
  Args: never;
24510
25982
  Returns: number;
24511
25983
  };
25984
+ create_order_from_public_offer: {
25985
+ Args: {
25986
+ p_carrier_id?: string;
25987
+ p_delivery_date?: string;
25988
+ p_delivery_garden_id?: string;
25989
+ p_offer_order_id: string;
25990
+ };
25991
+ Returns: Json;
25992
+ };
24512
25993
  current_monteur_id: {
24513
25994
  Args: never;
24514
25995
  Returns: string;
@@ -24985,6 +26466,22 @@ export type Database = {
24985
26466
  };
24986
26467
  Returns: number;
24987
26468
  };
26469
+ get_product_stock: {
26470
+ Args: {
26471
+ p_product_id: string;
26472
+ };
26473
+ Returns: {
26474
+ connection_id: string;
26475
+ incoming_stock: number;
26476
+ minimum_stock: number;
26477
+ notes: string;
26478
+ physical_stock: number;
26479
+ product_id: string;
26480
+ reserved_stock: number;
26481
+ trade_item_key: string;
26482
+ updated_at: string;
26483
+ }[];
26484
+ };
24988
26485
  get_room_busy_windows: {
24989
26486
  Args: {
24990
26487
  p_from: string;
@@ -25289,13 +26786,66 @@ export type Database = {
25289
26786
  };
25290
26787
  Returns: Json;
25291
26788
  };
26789
+ inkoop_cancel_line: {
26790
+ Args: {
26791
+ _item_id: string;
26792
+ _reason: string;
26793
+ };
26794
+ Returns: string;
26795
+ };
26796
+ inkoop_get_supplier_request: {
26797
+ Args: {
26798
+ _token: string;
26799
+ };
26800
+ Returns: Json;
26801
+ };
26802
+ inkoop_hash_token: {
26803
+ Args: {
26804
+ _token: string;
26805
+ };
26806
+ Returns: string;
26807
+ };
26808
+ inkoop_html_escape: {
26809
+ Args: {
26810
+ _t: string;
26811
+ };
26812
+ Returns: string;
26813
+ };
26814
+ inkoop_list_artikelen: {
26815
+ Args: never;
26816
+ Returns: {
26817
+ article_number: string;
26818
+ barcode: string;
26819
+ id: string;
26820
+ incoming_quantity: number;
26821
+ is_layer: boolean;
26822
+ location: string;
26823
+ min_quantity: number;
26824
+ preferred_supplier_name: string;
26825
+ product: string;
26826
+ product_type: string;
26827
+ purchase_price: number;
26828
+ quantity: number;
26829
+ sale_price: number;
26830
+ supplier_count: number;
26831
+ unit: string;
26832
+ }[];
26833
+ };
25292
26834
  inkoop_next_order_number: {
25293
26835
  Args: never;
25294
26836
  Returns: string;
25295
26837
  };
26838
+ inkoop_process_request: {
26839
+ Args: {
26840
+ _request_id: string;
26841
+ };
26842
+ Returns: undefined;
26843
+ };
25296
26844
  inkoop_send_order: {
25297
26845
  Args: {
26846
+ _base_url?: string;
25298
26847
  _order_id: string;
26848
+ _resend?: boolean;
25299
26849
  };
25300
26850
  Returns: {
25301
26851
  outbox_id: string;
@@ -25303,6 +26853,33 @@ export type Database = {
25303
26853
  to_address: string;
25304
26854
  }[];
25305
26855
  };
26856
+ inkoop_set_preferred_supplier: {
26857
+ Args: {
26858
+ _product_id: string;
26859
+ _supplier_id: string;
26860
+ };
26861
+ Returns: undefined;
26862
+ };
26863
+ inkoop_stock_key: {
26864
+ Args: {
26865
+ p_product_id: string;
26866
+ };
26867
+ Returns: string;
26868
+ };
26869
+ inkoop_submit_supplier_response: {
26870
+ Args: {
26871
+ _lines: Json;
26872
+ _note?: string;
26873
+ _token: string;
26874
+ };
26875
+ Returns: Json;
26876
+ };
26877
+ inkoop_sync_item_stock: {
26878
+ Args: {
26879
+ p_item_id: string;
26880
+ };
26881
+ Returns: undefined;
26882
+ };
25306
26883
  instructie_get: {
25307
26884
  Args: {
25308
26885
  _sleutel: string;
@@ -25322,6 +26899,10 @@ export type Database = {
25322
26899
  };
25323
26900
  Returns: number;
25324
26901
  };
26902
+ invoice_branding_snapshot: {
26903
+ Args: never;
26904
+ Returns: Json;
26905
+ };
25325
26906
  invoice_create_from_source: {
25326
26907
  Args: {
25327
26908
  _payload?: Json;
@@ -25356,12 +26937,41 @@ export type Database = {
25356
26937
  };
25357
26938
  Returns: Json;
25358
26939
  };
26940
+ invoice_mark_sent: {
26941
+ Args: {
26942
+ _invoice_id: string;
26943
+ _to: string;
26944
+ };
26945
+ Returns: undefined;
26946
+ };
26947
+ invoice_peek_next_number: {
26948
+ Args: never;
26949
+ Returns: string;
26950
+ };
26951
+ invoice_ready_work_orders: {
26952
+ Args: {
26953
+ _limit?: number;
26954
+ };
26955
+ Returns: Json;
26956
+ };
25359
26957
  invoice_recalc_totals: {
25360
26958
  Args: {
25361
26959
  _invoice_id: string;
25362
26960
  };
25363
26961
  Returns: Json;
25364
26962
  };
26963
+ invoice_save_branding_settings: {
26964
+ Args: {
26965
+ _payload: Json;
26966
+ };
26967
+ Returns: Json;
26968
+ };
26969
+ invoice_set_email_purpose: {
26970
+ Args: {
26971
+ _purpose: string;
26972
+ };
26973
+ Returns: string;
26974
+ };
25365
26975
  invoice_source_lines: {
25366
26976
  Args: {
25367
26977
  _source_id: string;
@@ -25369,7 +26979,20 @@ export type Database = {
25369
26979
  };
25370
26980
  Returns: Json;
25371
26981
  };
25372
- is_authenticated: {
26982
+ invoice_update_full: {
26983
+ Args: {
26984
+ _invoice_id: string;
26985
+ _payload: Json;
26986
+ };
26987
+ Returns: Json;
26988
+ };
26989
+ invoice_work_order_locked: {
26990
+ Args: {
26991
+ _werkbon_id: string;
26992
+ };
26993
+ Returns: Json;
26994
+ };
26995
+ is_authenticated: {
25373
26996
  Args: never;
25374
26997
  Returns: boolean;
25375
26998
  };
@@ -25601,6 +27224,14 @@ export type Database = {
25601
27224
  };
25602
27225
  Returns: Json;
25603
27226
  };
27227
+ logistics_buffer_decision_for_settings: {
27228
+ Args: {
27229
+ p_order: Json;
27230
+ p_settings: Json;
27231
+ p_user_id?: string;
27232
+ };
27233
+ Returns: Json;
27234
+ };
25604
27235
  logistics_buffer_detach_late_orders: {
25605
27236
  Args: {
25606
27237
  p_buffer?: string;
@@ -25634,6 +27265,12 @@ export type Database = {
25634
27265
  };
25635
27266
  Returns: string;
25636
27267
  };
27268
+ logistics_buffer_payload: {
27269
+ Args: {
27270
+ p_order_id: string;
27271
+ };
27272
+ Returns: Json;
27273
+ };
25637
27274
  logistics_buffer_simulate: {
25638
27275
  Args: {
25639
27276
  p_orders?: Json;
@@ -25680,6 +27317,12 @@ export type Database = {
25680
27317
  };
25681
27318
  Returns: number;
25682
27319
  };
27320
+ logistics_cart_barcode_opschonen: {
27321
+ Args: {
27322
+ p_portie?: number;
27323
+ };
27324
+ Returns: Json;
27325
+ };
25683
27326
  logistics_cart_barcode_value: {
25684
27327
  Args: {
25685
27328
  _cart_id: string;
@@ -25692,6 +27335,10 @@ export type Database = {
25692
27335
  };
25693
27336
  Returns: string;
25694
27337
  };
27338
+ logistics_cart_coverage_check: {
27339
+ Args: never;
27340
+ Returns: Json;
27341
+ };
25695
27342
  logistics_cart_handled: {
25696
27343
  Args: {
25697
27344
  p_cart_index: number;
@@ -25935,6 +27582,19 @@ export type Database = {
25935
27582
  isSetofReturn: false;
25936
27583
  };
25937
27584
  };
27585
+ logistics_cleanup_duplicate_order_lines: {
27586
+ Args: {
27587
+ p_limit?: number;
27588
+ p_order_id: string;
27589
+ };
27590
+ Returns: Json;
27591
+ };
27592
+ logistics_cleanup_history: {
27593
+ Args: {
27594
+ p_limit?: number;
27595
+ };
27596
+ Returns: Json;
27597
+ };
25938
27598
  logistics_cleanup_orphan_print_jobs: {
25939
27599
  Args: never;
25940
27600
  Returns: Json;
@@ -26092,6 +27752,10 @@ export type Database = {
26092
27752
  Args: never;
26093
27753
  Returns: Json;
26094
27754
  };
27755
+ logistics_cron_health: {
27756
+ Args: never;
27757
+ Returns: Json;
27758
+ };
26095
27759
  logistics_day_windows: {
26096
27760
  Args: {
26097
27761
  p_day: string;
@@ -26441,6 +28105,12 @@ export type Database = {
26441
28105
  };
26442
28106
  Returns: number;
26443
28107
  };
28108
+ logistics_merge_decision: {
28109
+ Args: {
28110
+ p_lines: Json;
28111
+ };
28112
+ Returns: Json;
28113
+ };
26444
28114
  logistics_merge_floriday_lines: {
26445
28115
  Args: {
26446
28116
  p_order_id: string;
@@ -26487,6 +28157,12 @@ export type Database = {
26487
28157
  Args: never;
26488
28158
  Returns: string;
26489
28159
  };
28160
+ logistics_order_backlog_info: {
28161
+ Args: {
28162
+ p_order_id: string;
28163
+ };
28164
+ Returns: Json;
28165
+ };
26490
28166
  logistics_order_cart_approval: {
26491
28167
  Args: {
26492
28168
  _order_ref: string;
@@ -26521,6 +28197,50 @@ export type Database = {
26521
28197
  };
26522
28198
  Returns: boolean;
26523
28199
  };
28200
+ logistics_order_finalize_enqueue: {
28201
+ Args: {
28202
+ p_order_id: string;
28203
+ p_reason?: string;
28204
+ };
28205
+ Returns: undefined;
28206
+ };
28207
+ logistics_order_finalize_overview: {
28208
+ Args: never;
28209
+ Returns: {
28210
+ bezig: number;
28211
+ laatst_afgerond: string;
28212
+ laatste_fout: string;
28213
+ mislukt: number;
28214
+ oudste_wachttijd_seconden: number;
28215
+ wachtend: number;
28216
+ }[];
28217
+ };
28218
+ logistics_order_finalize_prune: {
28219
+ Args: {
28220
+ p_days?: number;
28221
+ };
28222
+ Returns: number;
28223
+ };
28224
+ logistics_order_finalize_reconcile: {
28225
+ Args: {
28226
+ p_days?: number;
28227
+ p_limit?: number;
28228
+ };
28229
+ Returns: number;
28230
+ };
28231
+ logistics_order_finalize_retry: {
28232
+ Args: {
28233
+ p_order_id: string;
28234
+ };
28235
+ Returns: boolean;
28236
+ };
28237
+ logistics_order_finalize_run: {
28238
+ Args: {
28239
+ p_lease_seconds?: number;
28240
+ p_limit?: number;
28241
+ };
28242
+ Returns: number;
28243
+ };
26524
28244
  logistics_order_frozen: {
26525
28245
  Args: {
26526
28246
  p_order_id: string;
@@ -26533,6 +28253,12 @@ export type Database = {
26533
28253
  };
26534
28254
  Returns: boolean;
26535
28255
  };
28256
+ logistics_order_is_backlog: {
28257
+ Args: {
28258
+ p_order_id: string;
28259
+ };
28260
+ Returns: boolean;
28261
+ };
26536
28262
  logistics_order_is_topick: {
26537
28263
  Args: {
26538
28264
  p_order_id: string;
@@ -26540,6 +28266,12 @@ export type Database = {
26540
28266
  };
26541
28267
  Returns: boolean;
26542
28268
  };
28269
+ logistics_order_line_duplicates: {
28270
+ Args: {
28271
+ p_order_id: string;
28272
+ };
28273
+ Returns: Json;
28274
+ };
26543
28275
  logistics_order_merge_key: {
26544
28276
  Args: {
26545
28277
  p_group_key: string;
@@ -26583,6 +28315,63 @@ export type Database = {
26583
28315
  };
26584
28316
  Returns: boolean;
26585
28317
  };
28318
+ logistics_packing_autofix: {
28319
+ Args: {
28320
+ p_limit?: number;
28321
+ };
28322
+ Returns: number;
28323
+ };
28324
+ logistics_packing_block_reason: {
28325
+ Args: {
28326
+ p_order_id: string;
28327
+ p_order_item_id: string;
28328
+ };
28329
+ Returns: string;
28330
+ };
28331
+ logistics_packing_dismiss: {
28332
+ Args: {
28333
+ p_id: string;
28334
+ p_note?: string;
28335
+ };
28336
+ Returns: boolean;
28337
+ };
28338
+ logistics_packing_overview: {
28339
+ Args: never;
28340
+ Returns: {
28341
+ beoordelen: number;
28342
+ herstelbaar: number;
28343
+ laatst_gemeten: string;
28344
+ laatst_hersteld: string;
28345
+ open_totaal: number;
28346
+ orders: number;
28347
+ oudste_seconden: number;
28348
+ producten: number;
28349
+ }[];
28350
+ };
28351
+ logistics_packing_reconcile: {
28352
+ Args: {
28353
+ p_fix_limit?: number;
28354
+ p_scan_limit?: number;
28355
+ };
28356
+ Returns: {
28357
+ beoordelen: number;
28358
+ gevonden: number;
28359
+ hersteld: number;
28360
+ }[];
28361
+ };
28362
+ logistics_packing_scan: {
28363
+ Args: {
28364
+ p_limit?: number;
28365
+ };
28366
+ Returns: number;
28367
+ };
28368
+ logistics_packing_set_manual: {
28369
+ Args: {
28370
+ p_manual?: boolean;
28371
+ p_order_item_id: string;
28372
+ };
28373
+ Returns: boolean;
28374
+ };
26586
28375
  logistics_parse_pickup: {
26587
28376
  Args: {
26588
28377
  p_value: string;
@@ -26611,6 +28400,10 @@ export type Database = {
26611
28400
  shifted_count: number;
26612
28401
  }[];
26613
28402
  };
28403
+ logistics_pick_backlog_max_days: {
28404
+ Args: never;
28405
+ Returns: number;
28406
+ };
26614
28407
  logistics_pick_barcode_enabled: {
26615
28408
  Args: never;
26616
28409
  Returns: boolean;
@@ -26832,6 +28625,21 @@ export type Database = {
26832
28625
  Args: never;
26833
28626
  Returns: number;
26834
28627
  };
28628
+ logistics_planner_cart_snapshot: {
28629
+ Args: {
28630
+ p_buffer_id: string;
28631
+ p_order_id: string;
28632
+ };
28633
+ Returns: Json;
28634
+ };
28635
+ logistics_planner_diff_mode: {
28636
+ Args: never;
28637
+ Returns: string;
28638
+ };
28639
+ logistics_planner_diff_prune: {
28640
+ Args: never;
28641
+ Returns: number;
28642
+ };
26835
28643
  logistics_prepare_pick_documents: {
26836
28644
  Args: {
26837
28645
  p_limit?: number;
@@ -26842,6 +28650,12 @@ export type Database = {
26842
28650
  Args: never;
26843
28651
  Returns: number;
26844
28652
  };
28653
+ logistics_prune_cron_history: {
28654
+ Args: {
28655
+ p_days?: number;
28656
+ };
28657
+ Returns: number;
28658
+ };
26845
28659
  logistics_prune_handled_pick_queue: {
26846
28660
  Args: never;
26847
28661
  Returns: number;
@@ -26878,6 +28692,14 @@ export type Database = {
26878
28692
  Args: never;
26879
28693
  Returns: Json;
26880
28694
  };
28695
+ logistics_recalc_tick_kick: {
28696
+ Args: never;
28697
+ Returns: number;
28698
+ };
28699
+ logistics_reconcile_missing_plan_queue: {
28700
+ Args: never;
28701
+ Returns: number;
28702
+ };
26881
28703
  logistics_refresh_pick_queue_status: {
26882
28704
  Args: {
26883
28705
  p_ref: string;
@@ -26908,11 +28730,24 @@ export type Database = {
26908
28730
  };
26909
28731
  Returns: Json;
26910
28732
  };
28733
+ logistics_replan_clear_foreign_cart_items: {
28734
+ Args: {
28735
+ p_order_id: string;
28736
+ p_reason: string;
28737
+ };
28738
+ Returns: Json;
28739
+ };
26911
28740
  logistics_replan_order_journey: {
26912
28741
  Args: {
26913
28742
  p_order_ref: string;
26914
28743
  };
26915
28744
  Returns: Json;
28745
+ } | {
28746
+ Args: {
28747
+ p_order_ref: string;
28748
+ p_reason: string;
28749
+ };
28750
+ Returns: Json;
26916
28751
  };
26917
28752
  logistics_report_delay: {
26918
28753
  Args: {
@@ -26958,6 +28793,10 @@ export type Database = {
26958
28793
  };
26959
28794
  Returns: Json;
26960
28795
  };
28796
+ logistics_reserved_stock_nightly: {
28797
+ Args: never;
28798
+ Returns: undefined;
28799
+ };
26961
28800
  logistics_resolve_pick_document: {
26962
28801
  Args: {
26963
28802
  _is_herprint: boolean;
@@ -26981,6 +28820,12 @@ export type Database = {
26981
28820
  };
26982
28821
  Returns: Json;
26983
28822
  };
28823
+ logistics_retention_days: {
28824
+ Args: {
28825
+ p_key: string;
28826
+ };
28827
+ Returns: number;
28828
+ };
26984
28829
  logistics_rule_bool: {
26985
28830
  Args: {
26986
28831
  p_default: boolean;
@@ -27087,6 +28932,13 @@ export type Database = {
27087
28932
  };
27088
28933
  Returns: string;
27089
28934
  };
28935
+ logistics_shipping_note_status: {
28936
+ Args: {
28937
+ p_cart_id?: string;
28938
+ p_slip_job_id?: string;
28939
+ };
28940
+ Returns: Json;
28941
+ };
27090
28942
  logistics_shipping_notes_wake_all: {
27091
28943
  Args: never;
27092
28944
  Returns: Json;
@@ -27174,12 +29026,27 @@ export type Database = {
27174
29026
  Args: never;
27175
29027
  Returns: Json;
27176
29028
  };
29029
+ logistics_sync_pick_queue_backlog: {
29030
+ Args: never;
29031
+ Returns: Json;
29032
+ };
29033
+ logistics_sync_pick_queue_core: {
29034
+ Args: never;
29035
+ Returns: Json;
29036
+ };
27177
29037
  logistics_sync_task_carriers: {
27178
29038
  Args: {
27179
29039
  p_order_ref?: string;
27180
29040
  };
27181
29041
  Returns: number;
27182
29042
  };
29043
+ logistics_task_open_counts: {
29044
+ Args: never;
29045
+ Returns: {
29046
+ open_count: number;
29047
+ owner_module: string;
29048
+ }[];
29049
+ };
27183
29050
  logistics_task_owner: {
27184
29051
  Args: {
27185
29052
  p_task_type: string;
@@ -27197,6 +29064,16 @@ export type Database = {
27197
29064
  Args: never;
27198
29065
  Returns: number;
27199
29066
  };
29067
+ logistics_tasks_prune: {
29068
+ Args: {
29069
+ p_days?: number;
29070
+ };
29071
+ Returns: number;
29072
+ };
29073
+ logistics_tick: {
29074
+ Args: never;
29075
+ Returns: Json;
29076
+ };
27200
29077
  logistics_tick_ping: {
27201
29078
  Args: never;
27202
29079
  Returns: string;
@@ -27462,6 +29339,12 @@ export type Database = {
27462
29339
  permission: string;
27463
29340
  }[];
27464
29341
  };
29342
+ next_cart_day_seq: {
29343
+ Args: {
29344
+ p_date: string;
29345
+ };
29346
+ Returns: number;
29347
+ };
27465
29348
  next_manufacture_partij: {
27466
29349
  Args: {
27467
29350
  _tenant_id: string;
@@ -27531,6 +29414,17 @@ export type Database = {
27531
29414
  };
27532
29415
  Returns: boolean;
27533
29416
  };
29417
+ order_items_duplicate_report: {
29418
+ Args: {
29419
+ _order_ref?: string;
29420
+ };
29421
+ Returns: {
29422
+ distinct_products: number;
29423
+ duplicate_factor: number;
29424
+ lines: number;
29425
+ order_number: string;
29426
+ }[];
29427
+ };
27534
29428
  order_number_prefix: {
27535
29429
  Args: {
27536
29430
  p_custom_fields?: Json;
@@ -28314,6 +30208,22 @@ export type Database = {
28314
30208
  };
28315
30209
  Returns: undefined;
28316
30210
  };
30211
+ planning_apply_schedule_updates: {
30212
+ Args: {
30213
+ _updates: Json;
30214
+ };
30215
+ Returns: undefined;
30216
+ };
30217
+ planning_assert_no_overlaps: {
30218
+ Args: never;
30219
+ Returns: undefined;
30220
+ };
30221
+ planning_assert_no_overlaps_for_items: {
30222
+ Args: {
30223
+ _item_ids: string[];
30224
+ };
30225
+ Returns: undefined;
30226
+ };
28317
30227
  planning_cancel_item: {
28318
30228
  Args: {
28319
30229
  _id: string;
@@ -28425,6 +30335,19 @@ export type Database = {
28425
30335
  };
28426
30336
  Returns: boolean;
28427
30337
  };
30338
+ quote_assign_number: {
30339
+ Args: {
30340
+ _offerte_id: string;
30341
+ };
30342
+ Returns: string;
30343
+ };
30344
+ quote_create_follow_up_now: {
30345
+ Args: {
30346
+ _offerte_id: string;
30347
+ _payload?: Json;
30348
+ };
30349
+ Returns: Json;
30350
+ };
28428
30351
  quote_create_from_source: {
28429
30352
  Args: {
28430
30353
  _payload?: Json;
@@ -28668,6 +30591,10 @@ export type Database = {
28668
30591
  Args: never;
28669
30592
  Returns: undefined;
28670
30593
  };
30594
+ run_order_auto_invoice_tick: {
30595
+ Args: never;
30596
+ Returns: number;
30597
+ };
28671
30598
  run_print_queue_ticks: {
28672
30599
  Args: never;
28673
30600
  Returns: number;
@@ -28691,6 +30618,13 @@ export type Database = {
28691
30618
  };
28692
30619
  Returns: Json;
28693
30620
  };
30621
+ scan_controleer_pincode: {
30622
+ Args: {
30623
+ p_pin: string;
30624
+ p_scanner_id: string;
30625
+ };
30626
+ Returns: boolean;
30627
+ };
28694
30628
  scan_dashboard_stats: {
28695
30629
  Args: {
28696
30630
  p_dagen?: number;
@@ -28710,6 +30644,12 @@ export type Database = {
28710
30644
  };
28711
30645
  Returns: Json;
28712
30646
  };
30647
+ scan_heeft_pincode: {
30648
+ Args: {
30649
+ p_scanner_id: string;
30650
+ };
30651
+ Returns: boolean;
30652
+ };
28713
30653
  scan_kar_compleet: {
28714
30654
  Args: {
28715
30655
  p_allow_reprint?: boolean;
@@ -28727,6 +30667,7 @@ export type Database = {
28727
30667
  Args: {
28728
30668
  p_code: string;
28729
30669
  p_latency_ms?: number;
30670
+ p_medewerker?: string;
28730
30671
  p_message?: string;
28731
30672
  p_result: string;
28732
30673
  p_scanner_key?: string;
@@ -28799,6 +30740,22 @@ export type Database = {
28799
30740
  };
28800
30741
  Returns: undefined;
28801
30742
  };
30743
+ scan_scanner_info: {
30744
+ Args: {
30745
+ p_slug: string;
30746
+ };
30747
+ Returns: {
30748
+ actief: boolean;
30749
+ heeft_pincode: boolean;
30750
+ id: string;
30751
+ naam: string;
30752
+ omschrijving: string;
30753
+ printer_id: string;
30754
+ type: string;
30755
+ vereist_medewerker: boolean;
30756
+ werkplek: string;
30757
+ }[];
30758
+ };
28802
30759
  scan_sessie_annuleren: {
28803
30760
  Args: {
28804
30761
  p_sessie_id: string;
@@ -29045,6 +31002,13 @@ export type Database = {
29045
31002
  };
29046
31003
  Returns: number;
29047
31004
  };
31005
+ schedule_floriday_trade_items_reconcile: {
31006
+ Args: {
31007
+ p_apikey: string;
31008
+ p_url: string;
31009
+ };
31010
+ Returns: number;
31011
+ };
29048
31012
  schedule_floriday_trade_items_sync: {
29049
31013
  Args: {
29050
31014
  p_apikey: string;
@@ -29127,6 +31091,26 @@ export type Database = {
29127
31091
  };
29128
31092
  Returns: undefined;
29129
31093
  };
31094
+ set_product_stock: {
31095
+ Args: {
31096
+ p_incoming_stock?: number;
31097
+ p_minimum_stock?: number;
31098
+ p_notes?: string;
31099
+ p_physical_stock: number;
31100
+ p_product_id: string;
31101
+ };
31102
+ Returns: {
31103
+ connection_id: string;
31104
+ incoming_stock: number;
31105
+ minimum_stock: number;
31106
+ notes: string;
31107
+ physical_stock: number;
31108
+ product_id: string;
31109
+ reserved_stock: number;
31110
+ trade_item_key: string;
31111
+ updated_at: string;
31112
+ }[];
31113
+ };
29130
31114
  show_limit: {
29131
31115
  Args: never;
29132
31116
  Returns: number;
@@ -29369,6 +31353,22 @@ export type Database = {
29369
31353
  Args: never;
29370
31354
  Returns: boolean;
29371
31355
  };
31356
+ uren_is_werkdag: {
31357
+ Args: {
31358
+ _date: string;
31359
+ _monteur: string;
31360
+ };
31361
+ Returns: boolean;
31362
+ };
31363
+ uren_korte_afwezigheid_aanvragen: {
31364
+ Args: {
31365
+ _datum: string;
31366
+ _eind: string;
31367
+ _reden: string;
31368
+ _start: string;
31369
+ };
31370
+ Returns: string;
31371
+ };
29372
31372
  uren_list_medewerkers: {
29373
31373
  Args: never;
29374
31374
  Returns: {
@@ -29389,6 +31389,45 @@ export type Database = {
29389
31389
  roles: string[];
29390
31390
  }[];
29391
31391
  };
31392
+ uren_list_planner_contacten: {
31393
+ Args: never;
31394
+ Returns: {
31395
+ display_name: string;
31396
+ id: string;
31397
+ phone: string;
31398
+ }[];
31399
+ };
31400
+ uren_maand_afsluiten: {
31401
+ Args: {
31402
+ _maand: string;
31403
+ _monteur: string;
31404
+ };
31405
+ Returns: undefined;
31406
+ };
31407
+ uren_maand_berekenen: {
31408
+ Args: {
31409
+ _maand: string;
31410
+ _monteur: string;
31411
+ };
31412
+ Returns: Json;
31413
+ };
31414
+ uren_maand_corrigeren: {
31415
+ Args: {
31416
+ _maand: string;
31417
+ _monteur: string;
31418
+ _overuren_minuten: number;
31419
+ _reden: string;
31420
+ };
31421
+ Returns: undefined;
31422
+ };
31423
+ uren_mijn_contracturen: {
31424
+ Args: never;
31425
+ Returns: number;
31426
+ };
31427
+ uren_mijn_vakantiesaldo: {
31428
+ Args: never;
31429
+ Returns: number;
31430
+ };
29392
31431
  uren_my_monteur_id: {
29393
31432
  Args: never;
29394
31433
  Returns: string;
@@ -29422,6 +31461,37 @@ export type Database = {
29422
31461
  };
29423
31462
  Returns: number;
29424
31463
  };
31464
+ uren_spiegel_bezig: {
31465
+ Args: never;
31466
+ Returns: boolean;
31467
+ };
31468
+ uren_standaardweek_beoordelen: {
31469
+ Args: {
31470
+ _goedkeuren: boolean;
31471
+ _id: string;
31472
+ _reden?: string;
31473
+ };
31474
+ Returns: undefined;
31475
+ };
31476
+ uren_standaardweek_doorzetten: {
31477
+ Args: {
31478
+ _monteur: string;
31479
+ };
31480
+ Returns: undefined;
31481
+ };
31482
+ uren_standaardweek_instellen: {
31483
+ Args: {
31484
+ _dagen: Json;
31485
+ };
31486
+ Returns: string;
31487
+ };
31488
+ uren_standaardweek_toepassen: {
31489
+ Args: {
31490
+ _dagen: Json;
31491
+ _monteur: string;
31492
+ };
31493
+ Returns: undefined;
31494
+ };
29425
31495
  uren_stop_time_log: {
29426
31496
  Args: {
29427
31497
  p_employee_id: string;
@@ -29447,6 +31517,165 @@ export type Database = {
29447
31517
  };
29448
31518
  Returns: number;
29449
31519
  };
31520
+ uren_vakantie_aanvragen: {
31521
+ Args: {
31522
+ _end_date: string;
31523
+ _hours?: number;
31524
+ _start_date: string;
31525
+ };
31526
+ Returns: string;
31527
+ };
31528
+ uren_vakantiedag_wijzigen: {
31529
+ Args: {
31530
+ _date: string;
31531
+ };
31532
+ Returns: string;
31533
+ };
31534
+ uren_vakantiesaldo_uren: {
31535
+ Args: {
31536
+ _monteur: string;
31537
+ };
31538
+ Returns: number;
31539
+ };
31540
+ uren_week_start: {
31541
+ Args: {
31542
+ _datum: string;
31543
+ };
31544
+ Returns: string;
31545
+ };
31546
+ uren_werkweek_opsturen: {
31547
+ Args: {
31548
+ _week_start: string;
31549
+ };
31550
+ Returns: {
31551
+ approved_at: string | null;
31552
+ approved_by: string | null;
31553
+ contract_hours: number;
31554
+ created_at: string;
31555
+ employee_id: string;
31556
+ id: string;
31557
+ locked: boolean;
31558
+ monteur_toelichting: string | null;
31559
+ notes: string | null;
31560
+ planned_hours: number;
31561
+ status: string;
31562
+ submitted_at: string | null;
31563
+ updated_at: string;
31564
+ variance_hours: number;
31565
+ week_start: string;
31566
+ };
31567
+ SetofOptions: {
31568
+ from: "*";
31569
+ to: "time_log_week_approvals";
31570
+ isOneToOne: true;
31571
+ isSetofReturn: false;
31572
+ };
31573
+ } | {
31574
+ Args: {
31575
+ _vrije_dagen?: string[];
31576
+ _week_start: string;
31577
+ };
31578
+ Returns: {
31579
+ approved_at: string | null;
31580
+ approved_by: string | null;
31581
+ contract_hours: number;
31582
+ created_at: string;
31583
+ employee_id: string;
31584
+ id: string;
31585
+ locked: boolean;
31586
+ monteur_toelichting: string | null;
31587
+ notes: string | null;
31588
+ planned_hours: number;
31589
+ status: string;
31590
+ submitted_at: string | null;
31591
+ updated_at: string;
31592
+ variance_hours: number;
31593
+ week_start: string;
31594
+ };
31595
+ SetofOptions: {
31596
+ from: "*";
31597
+ to: "time_log_week_approvals";
31598
+ isOneToOne: true;
31599
+ isSetofReturn: false;
31600
+ };
31601
+ } | {
31602
+ Args: {
31603
+ _toelichting?: string;
31604
+ _vrije_dagen?: string[];
31605
+ _week_start: string;
31606
+ };
31607
+ Returns: {
31608
+ approved_at: string | null;
31609
+ approved_by: string | null;
31610
+ contract_hours: number;
31611
+ created_at: string;
31612
+ employee_id: string;
31613
+ id: string;
31614
+ locked: boolean;
31615
+ monteur_toelichting: string | null;
31616
+ notes: string | null;
31617
+ planned_hours: number;
31618
+ status: string;
31619
+ submitted_at: string | null;
31620
+ updated_at: string;
31621
+ variance_hours: number;
31622
+ week_start: string;
31623
+ };
31624
+ SetofOptions: {
31625
+ from: "*";
31626
+ to: "time_log_week_approvals";
31627
+ isOneToOne: true;
31628
+ isSetofReturn: false;
31629
+ };
31630
+ };
31631
+ vakantie_dagen_gebruikt: {
31632
+ Args: {
31633
+ _user_id: string;
31634
+ _year: number;
31635
+ };
31636
+ Returns: number;
31637
+ };
31638
+ vakantie_overuren: {
31639
+ Args: {
31640
+ _user_id: string;
31641
+ _year?: number;
31642
+ };
31643
+ Returns: number;
31644
+ };
31645
+ vakantie_saldo: {
31646
+ Args: {
31647
+ _user_id: string;
31648
+ _year?: number;
31649
+ };
31650
+ Returns: {
31651
+ day_hours: number;
31652
+ earned_from_overtime_days: number;
31653
+ entitlement_days: number;
31654
+ hours_to_next_day: number;
31655
+ overtime_hours: number;
31656
+ overtime_remainder_hours: number;
31657
+ paid_out_days: number;
31658
+ remaining_days: number;
31659
+ used_days: number;
31660
+ }[];
31661
+ };
31662
+ vakantie_saldo_overzicht: {
31663
+ Args: {
31664
+ _year?: number;
31665
+ };
31666
+ Returns: {
31667
+ day_hours: number;
31668
+ earned_from_overtime_days: number;
31669
+ entitlement_days: number;
31670
+ hours_to_next_day: number;
31671
+ overtime_hours: number;
31672
+ overtime_remainder_hours: number;
31673
+ paid_out_days: number;
31674
+ remaining_days: number;
31675
+ used_days: number;
31676
+ user_id: string;
31677
+ }[];
31678
+ };
29450
31679
  voorraad_cleanup_old_rows: {
29451
31680
  Args: never;
29452
31681
  Returns: Json;
@@ -29489,18 +31718,46 @@ export type Database = {
29489
31718
  };
29490
31719
  Returns: Json;
29491
31720
  };
31721
+ wo_list_colleague_planning: {
31722
+ Args: {
31723
+ _from: string;
31724
+ _monteur_id: string;
31725
+ _to: string;
31726
+ };
31727
+ Returns: {
31728
+ end_at: string;
31729
+ id: string;
31730
+ role: string;
31731
+ start_at: string;
31732
+ status: string;
31733
+ werkbon_id: string;
31734
+ }[];
31735
+ };
29492
31736
  wo_list_offerte_requests: {
29493
31737
  Args: {
29494
31738
  _status?: string;
29495
31739
  };
29496
31740
  Returns: Json;
29497
31741
  };
31742
+ wo_list_proposals: {
31743
+ Args: {
31744
+ _status?: string;
31745
+ };
31746
+ Returns: Json;
31747
+ };
29498
31748
  wo_process_offerte_request: {
29499
31749
  Args: {
29500
31750
  _queue_id: string;
29501
31751
  };
29502
31752
  Returns: Json;
29503
31753
  };
31754
+ wo_process_proposal: {
31755
+ Args: {
31756
+ _id: string;
31757
+ _overrides?: Json;
31758
+ };
31759
+ Returns: Json;
31760
+ };
29504
31761
  wo_reject_offerte_request: {
29505
31762
  Args: {
29506
31763
  _queue_id: string;
@@ -29508,6 +31765,13 @@ export type Database = {
29508
31765
  };
29509
31766
  Returns: Json;
29510
31767
  };
31768
+ wo_reject_proposal: {
31769
+ Args: {
31770
+ _id: string;
31771
+ _reden?: string;
31772
+ };
31773
+ Returns: Json;
31774
+ };
29511
31775
  wo_set_status: {
29512
31776
  Args: {
29513
31777
  _reason?: string;