@flowselections/floriday-afhandeling-module 1.0.45 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.js +1 -1
  2. package/dist-lib/components/afhandeling/DagDetailDialog.js +1 -1
  3. package/dist-lib/components/afhandeling/ScanControleView.js +1 -1
  4. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  5. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  6. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +9 -9
  7. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -28
  8. package/dist-lib/components/ui/responsive-dialog.js +1 -1
  9. package/dist-lib/hooks/usePickMode.d.ts +1 -1
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1912 -32
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +1912 -32
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.js +1 -1
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts +1912 -32
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/previewAuthStorage.js +8 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +1929 -21
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/lib/afhandelingSettings.functions.d.ts +3760 -0
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/carriers.functions.d.ts +9400 -0
  25. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartAssignments.functions.d.ts +9400 -0
  27. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/cartControl.functions.d.ts +20680 -0
  29. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/deliveryNote.functions.d.ts +1912 -32
  31. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/deliveryNotePrint.d.ts +33 -33
  33. package/dist-lib/lib/deliveryNotePrint.js +219 -219
  34. package/dist-lib/lib/engineLayouts.functions.d.ts +1912 -32
  35. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.d.ts +3760 -0
  37. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
  39. package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
  40. package/dist-lib/lib/orderFulfilment.functions.d.ts +1912 -32
  41. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/pickDates.functions.d.ts +1912 -32
  43. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  44. package/package.json +2 -2
@@ -8195,6 +8195,7 @@ export type Database = {
8195
8195
  };
8196
8196
  fust_types: {
8197
8197
  Row: {
8198
+ capacity_units: number | null;
8198
8199
  connection_id: string | null;
8199
8200
  created_at: string;
8200
8201
  custom_package_id: string | null;
@@ -8215,6 +8216,7 @@ export type Database = {
8215
8216
  width_mm: number | null;
8216
8217
  };
8217
8218
  Insert: {
8219
+ capacity_units?: number | null;
8218
8220
  connection_id?: string | null;
8219
8221
  created_at?: string;
8220
8222
  custom_package_id?: string | null;
@@ -8235,6 +8237,7 @@ export type Database = {
8235
8237
  width_mm?: number | null;
8236
8238
  };
8237
8239
  Update: {
8240
+ capacity_units?: number | null;
8238
8241
  connection_id?: string | null;
8239
8242
  created_at?: string;
8240
8243
  custom_package_id?: string | null;
@@ -8471,6 +8474,72 @@ export type Database = {
8471
8474
  };
8472
8475
  Relationships: [];
8473
8476
  };
8477
+ invoice_branding_settings: {
8478
+ Row: {
8479
+ address: string;
8480
+ chamber_of_commerce_number: string;
8481
+ city: string;
8482
+ company_name: string;
8483
+ created_at: string;
8484
+ email: string;
8485
+ email_purpose: string | null;
8486
+ iban: string;
8487
+ logo_path: string | null;
8488
+ payment_term_days: number;
8489
+ phone: string;
8490
+ postal_code: string;
8491
+ primary_color: string;
8492
+ secondary_color: string;
8493
+ show_company_name: boolean;
8494
+ singleton_key: boolean;
8495
+ updated_at: string;
8496
+ vat_identification_number: string;
8497
+ website: string;
8498
+ };
8499
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
8542
+ };
8474
8543
  invoice_items: {
8475
8544
  Row: {
8476
8545
  created_at: string;
@@ -8484,6 +8553,7 @@ export type Database = {
8484
8553
  total_cents: number;
8485
8554
  unit: string;
8486
8555
  unit_price_cents: number;
8556
+ vat_rate: number | null;
8487
8557
  };
8488
8558
  Insert: {
8489
8559
  created_at?: string;
@@ -8497,6 +8567,7 @@ export type Database = {
8497
8567
  total_cents?: number;
8498
8568
  unit?: string;
8499
8569
  unit_price_cents?: number;
8570
+ vat_rate?: number | null;
8500
8571
  };
8501
8572
  Update: {
8502
8573
  created_at?: string;
@@ -8510,6 +8581,7 @@ export type Database = {
8510
8581
  total_cents?: number;
8511
8582
  unit?: string;
8512
8583
  unit_price_cents?: number;
8584
+ vat_rate?: number | null;
8513
8585
  };
8514
8586
  Relationships: [
8515
8587
  {
@@ -8763,15 +8835,27 @@ export type Database = {
8763
8835
  };
8764
8836
  invoices: {
8765
8837
  Row: {
8838
+ branding_snapshot: Json | null;
8766
8839
  created_at: string;
8767
8840
  created_by: string | null;
8841
+ customer_address: string | null;
8842
+ customer_attention: string | null;
8843
+ customer_city: string | null;
8768
8844
  customer_id: string | null;
8769
8845
  customer_name: string | null;
8846
+ customer_postal_code: string | null;
8847
+ customer_vat_number: string | null;
8848
+ debtor_number: string | null;
8770
8849
  due_date: string | null;
8850
+ execution_date: string | null;
8771
8851
  id: string;
8772
8852
  invoice_date: string;
8773
8853
  invoice_number: string | null;
8774
8854
  note: string | null;
8855
+ payment_term_days: number;
8856
+ reference: string | null;
8857
+ sent_at: string | null;
8858
+ sent_to: string | null;
8775
8859
  source_number: string | null;
8776
8860
  source_ref: string | null;
8777
8861
  source_type: string;
@@ -8781,17 +8865,30 @@ export type Database = {
8781
8865
  updated_at: string;
8782
8866
  vat_cents: number;
8783
8867
  vat_rate: number;
8868
+ work_address: string | null;
8784
8869
  };
8785
8870
  Insert: {
8871
+ branding_snapshot?: Json | null;
8786
8872
  created_at?: string;
8787
8873
  created_by?: string | null;
8874
+ customer_address?: string | null;
8875
+ customer_attention?: string | null;
8876
+ customer_city?: string | null;
8788
8877
  customer_id?: string | null;
8789
8878
  customer_name?: string | null;
8879
+ customer_postal_code?: string | null;
8880
+ customer_vat_number?: string | null;
8881
+ debtor_number?: string | null;
8790
8882
  due_date?: string | null;
8883
+ execution_date?: string | null;
8791
8884
  id?: string;
8792
8885
  invoice_date?: string;
8793
8886
  invoice_number?: string | null;
8794
8887
  note?: string | null;
8888
+ payment_term_days?: number;
8889
+ reference?: string | null;
8890
+ sent_at?: string | null;
8891
+ sent_to?: string | null;
8795
8892
  source_number?: string | null;
8796
8893
  source_ref?: string | null;
8797
8894
  source_type?: string;
@@ -8801,17 +8898,30 @@ export type Database = {
8801
8898
  updated_at?: string;
8802
8899
  vat_cents?: number;
8803
8900
  vat_rate?: number;
8901
+ work_address?: string | null;
8804
8902
  };
8805
8903
  Update: {
8904
+ branding_snapshot?: Json | null;
8806
8905
  created_at?: string;
8807
8906
  created_by?: string | null;
8907
+ customer_address?: string | null;
8908
+ customer_attention?: string | null;
8909
+ customer_city?: string | null;
8808
8910
  customer_id?: string | null;
8809
8911
  customer_name?: string | null;
8912
+ customer_postal_code?: string | null;
8913
+ customer_vat_number?: string | null;
8914
+ debtor_number?: string | null;
8810
8915
  due_date?: string | null;
8916
+ execution_date?: string | null;
8811
8917
  id?: string;
8812
8918
  invoice_date?: string;
8813
8919
  invoice_number?: string | null;
8814
8920
  note?: string | null;
8921
+ payment_term_days?: number;
8922
+ reference?: string | null;
8923
+ sent_at?: string | null;
8924
+ sent_to?: string | null;
8815
8925
  source_number?: string | null;
8816
8926
  source_ref?: string | null;
8817
8927
  source_type?: string;
@@ -8821,6 +8931,7 @@ export type Database = {
8821
8931
  updated_at?: string;
8822
8932
  vat_cents?: number;
8823
8933
  vat_rate?: number;
8934
+ work_address?: string | null;
8824
8935
  };
8825
8936
  Relationships: [
8826
8937
  {
@@ -9532,6 +9643,7 @@ export type Database = {
9532
9643
  quantity: number;
9533
9644
  sort_order: number;
9534
9645
  source: string;
9646
+ unit: string | null;
9535
9647
  unit_price_cents: number;
9536
9648
  updated_at: string;
9537
9649
  };
@@ -9545,6 +9657,7 @@ export type Database = {
9545
9657
  quantity?: number;
9546
9658
  sort_order?: number;
9547
9659
  source?: string;
9660
+ unit?: string | null;
9548
9661
  unit_price_cents?: number;
9549
9662
  updated_at?: string;
9550
9663
  };
@@ -9558,6 +9671,7 @@ export type Database = {
9558
9671
  quantity?: number;
9559
9672
  sort_order?: number;
9560
9673
  source?: string;
9674
+ unit?: string | null;
9561
9675
  unit_price_cents?: number;
9562
9676
  updated_at?: string;
9563
9677
  };
@@ -9584,6 +9698,7 @@ export type Database = {
9584
9698
  created_at: string;
9585
9699
  default_geldigheid_dagen: number;
9586
9700
  default_vat_rate: number;
9701
+ email_purpose: string | null;
9587
9702
  id: string;
9588
9703
  singleton: boolean;
9589
9704
  updated_at: string;
@@ -9593,6 +9708,7 @@ export type Database = {
9593
9708
  created_at?: string;
9594
9709
  default_geldigheid_dagen?: number;
9595
9710
  default_vat_rate?: number;
9711
+ email_purpose?: string | null;
9596
9712
  id?: string;
9597
9713
  singleton?: boolean;
9598
9714
  updated_at?: string;
@@ -9602,12 +9718,51 @@ export type Database = {
9602
9718
  created_at?: string;
9603
9719
  default_geldigheid_dagen?: number;
9604
9720
  default_vat_rate?: number;
9721
+ email_purpose?: string | null;
9605
9722
  id?: string;
9606
9723
  singleton?: boolean;
9607
9724
  updated_at?: string;
9608
9725
  };
9609
9726
  Relationships: [];
9610
9727
  };
9728
+ itk_offerte_voorstel_status: {
9729
+ Row: {
9730
+ ai_concept: Json | null;
9731
+ created_at: string;
9732
+ id: string;
9733
+ offerte_id: string | null;
9734
+ proposal_id: string;
9735
+ seen_at: string | null;
9736
+ updated_at: string;
9737
+ };
9738
+ Insert: {
9739
+ ai_concept?: Json | null;
9740
+ created_at?: string;
9741
+ id?: string;
9742
+ offerte_id?: string | null;
9743
+ proposal_id: string;
9744
+ seen_at?: string | null;
9745
+ updated_at?: string;
9746
+ };
9747
+ Update: {
9748
+ ai_concept?: Json | null;
9749
+ created_at?: string;
9750
+ id?: string;
9751
+ offerte_id?: string | null;
9752
+ proposal_id?: string;
9753
+ seen_at?: string | null;
9754
+ updated_at?: string;
9755
+ };
9756
+ Relationships: [
9757
+ {
9758
+ foreignKeyName: "itk_offerte_voorstel_status_offerte_id_fkey";
9759
+ columns: ["offerte_id"];
9760
+ isOneToOne: false;
9761
+ referencedRelation: "itk_offertes";
9762
+ referencedColumns: ["id"];
9763
+ }
9764
+ ];
9765
+ };
9611
9766
  itk_offerte_werkbon_queue: {
9612
9767
  Row: {
9613
9768
  bron_werkbon_id: string | null;
@@ -9660,6 +9815,7 @@ export type Database = {
9660
9815
  };
9661
9816
  itk_offertes: {
9662
9817
  Row: {
9818
+ aandachtspunten: string | null;
9663
9819
  ai_generated: boolean;
9664
9820
  approved_at: string | null;
9665
9821
  binnen_mandaat: boolean;
@@ -9675,6 +9831,7 @@ export type Database = {
9675
9831
  notities: string | null;
9676
9832
  offerte_number: string | null;
9677
9833
  omschrijving: string;
9834
+ onderwerp: string | null;
9678
9835
  rejected_at: string | null;
9679
9836
  sent_at: string | null;
9680
9837
  source_number: string | null;
@@ -9687,12 +9844,15 @@ export type Database = {
9687
9844
  valid_until: string | null;
9688
9845
  vat_cents: number;
9689
9846
  vat_rate: number;
9847
+ verzonden_naar: string | null;
9690
9848
  viewed_at: string | null;
9691
9849
  volgnummer: number | null;
9850
+ voorwaarden: string | null;
9692
9851
  werkbon_id: string | null;
9693
9852
  work_location_id: string | null;
9694
9853
  };
9695
9854
  Insert: {
9855
+ aandachtspunten?: string | null;
9696
9856
  ai_generated?: boolean;
9697
9857
  approved_at?: string | null;
9698
9858
  binnen_mandaat?: boolean;
@@ -9708,6 +9868,7 @@ export type Database = {
9708
9868
  notities?: string | null;
9709
9869
  offerte_number?: string | null;
9710
9870
  omschrijving?: string;
9871
+ onderwerp?: string | null;
9711
9872
  rejected_at?: string | null;
9712
9873
  sent_at?: string | null;
9713
9874
  source_number?: string | null;
@@ -9720,12 +9881,15 @@ export type Database = {
9720
9881
  valid_until?: string | null;
9721
9882
  vat_cents?: number;
9722
9883
  vat_rate?: number;
9884
+ verzonden_naar?: string | null;
9723
9885
  viewed_at?: string | null;
9724
9886
  volgnummer?: number | null;
9887
+ voorwaarden?: string | null;
9725
9888
  werkbon_id?: string | null;
9726
9889
  work_location_id?: string | null;
9727
9890
  };
9728
9891
  Update: {
9892
+ aandachtspunten?: string | null;
9729
9893
  ai_generated?: boolean;
9730
9894
  approved_at?: string | null;
9731
9895
  binnen_mandaat?: boolean;
@@ -9741,6 +9905,7 @@ export type Database = {
9741
9905
  notities?: string | null;
9742
9906
  offerte_number?: string | null;
9743
9907
  omschrijving?: string;
9908
+ onderwerp?: string | null;
9744
9909
  rejected_at?: string | null;
9745
9910
  sent_at?: string | null;
9746
9911
  source_number?: string | null;
@@ -9753,8 +9918,10 @@ export type Database = {
9753
9918
  valid_until?: string | null;
9754
9919
  vat_cents?: number;
9755
9920
  vat_rate?: number;
9921
+ verzonden_naar?: string | null;
9756
9922
  viewed_at?: string | null;
9757
9923
  volgnummer?: number | null;
9924
+ voorwaarden?: string | null;
9758
9925
  werkbon_id?: string | null;
9759
9926
  work_location_id?: string | null;
9760
9927
  };
@@ -9940,6 +10107,8 @@ export type Database = {
9940
10107
  };
9941
10108
  leave_requests: {
9942
10109
  Row: {
10110
+ cancellation_requested_at: string | null;
10111
+ cancellation_status: string | null;
9943
10112
  created_at: string;
9944
10113
  decided_at: string | null;
9945
10114
  decided_by: string | null;
@@ -9950,6 +10119,7 @@ export type Database = {
9950
10119
  leave_type: string;
9951
10120
  monteur_id: string | null;
9952
10121
  reason: string | null;
10122
+ reden_afkeur: string | null;
9953
10123
  start_date: string;
9954
10124
  start_time: string | null;
9955
10125
  status: string;
@@ -9957,6 +10127,8 @@ export type Database = {
9957
10127
  user_id: string;
9958
10128
  };
9959
10129
  Insert: {
10130
+ cancellation_requested_at?: string | null;
10131
+ cancellation_status?: string | null;
9960
10132
  created_at?: string;
9961
10133
  decided_at?: string | null;
9962
10134
  decided_by?: string | null;
@@ -9967,6 +10139,7 @@ export type Database = {
9967
10139
  leave_type?: string;
9968
10140
  monteur_id?: string | null;
9969
10141
  reason?: string | null;
10142
+ reden_afkeur?: string | null;
9970
10143
  start_date: string;
9971
10144
  start_time?: string | null;
9972
10145
  status?: string;
@@ -9974,6 +10147,8 @@ export type Database = {
9974
10147
  user_id: string;
9975
10148
  };
9976
10149
  Update: {
10150
+ cancellation_requested_at?: string | null;
10151
+ cancellation_status?: string | null;
9977
10152
  created_at?: string;
9978
10153
  decided_at?: string | null;
9979
10154
  decided_by?: string | null;
@@ -9984,6 +10159,7 @@ export type Database = {
9984
10159
  leave_type?: string;
9985
10160
  monteur_id?: string | null;
9986
10161
  reason?: string | null;
10162
+ reden_afkeur?: string | null;
9987
10163
  start_date?: string;
9988
10164
  start_time?: string | null;
9989
10165
  status?: string;
@@ -11154,6 +11330,54 @@ export type Database = {
11154
11330
  };
11155
11331
  Relationships: [];
11156
11332
  };
11333
+ logistics_order_finalize_queue: {
11334
+ Row: {
11335
+ attempts: number;
11336
+ claimed_at: string | null;
11337
+ created_at: string;
11338
+ finished_at: string | null;
11339
+ last_error: string | null;
11340
+ lease_until: string | null;
11341
+ max_attempts: number;
11342
+ next_attempt_at: string;
11343
+ order_id: string;
11344
+ reason: string | null;
11345
+ requested_at: string;
11346
+ status: string;
11347
+ updated_at: string;
11348
+ };
11349
+ Insert: {
11350
+ attempts?: number;
11351
+ claimed_at?: string | null;
11352
+ created_at?: string;
11353
+ finished_at?: string | null;
11354
+ last_error?: string | null;
11355
+ lease_until?: string | null;
11356
+ max_attempts?: number;
11357
+ next_attempt_at?: string;
11358
+ order_id: string;
11359
+ reason?: string | null;
11360
+ requested_at?: string;
11361
+ status?: string;
11362
+ updated_at?: string;
11363
+ };
11364
+ Update: {
11365
+ attempts?: number;
11366
+ claimed_at?: string | null;
11367
+ created_at?: string;
11368
+ finished_at?: string | null;
11369
+ last_error?: string | null;
11370
+ lease_until?: string | null;
11371
+ max_attempts?: number;
11372
+ next_attempt_at?: string;
11373
+ order_id?: string;
11374
+ reason?: string | null;
11375
+ requested_at?: string;
11376
+ status?: string;
11377
+ updated_at?: string;
11378
+ };
11379
+ Relationships: [];
11380
+ };
11157
11381
  logistics_order_merges: {
11158
11382
  Row: {
11159
11383
  group_key: string;
@@ -11190,6 +11414,72 @@ export type Database = {
11190
11414
  };
11191
11415
  Relationships: [];
11192
11416
  };
11417
+ logistics_packing_deviations: {
11418
+ Row: {
11419
+ auto_fixed_at: string | null;
11420
+ created_at: string;
11421
+ dev_key: string;
11422
+ first_seen_at: string;
11423
+ floriday_packing: Json;
11424
+ human_reason: string | null;
11425
+ id: string;
11426
+ last_seen_at: string;
11427
+ local_packing: Json;
11428
+ needs_human: boolean;
11429
+ order_id: string | null;
11430
+ order_item_id: string | null;
11431
+ order_number: string | null;
11432
+ product_id: string | null;
11433
+ product_name: string | null;
11434
+ resolved_at: string | null;
11435
+ scope: string;
11436
+ trade_item_id: string | null;
11437
+ updated_at: string;
11438
+ };
11439
+ Insert: {
11440
+ auto_fixed_at?: string | null;
11441
+ created_at?: string;
11442
+ dev_key: string;
11443
+ first_seen_at?: string;
11444
+ floriday_packing?: Json;
11445
+ human_reason?: string | null;
11446
+ id?: string;
11447
+ last_seen_at?: string;
11448
+ local_packing?: Json;
11449
+ needs_human?: boolean;
11450
+ order_id?: string | null;
11451
+ order_item_id?: string | null;
11452
+ order_number?: string | null;
11453
+ product_id?: string | null;
11454
+ product_name?: string | null;
11455
+ resolved_at?: string | null;
11456
+ scope: string;
11457
+ trade_item_id?: string | null;
11458
+ updated_at?: string;
11459
+ };
11460
+ Update: {
11461
+ auto_fixed_at?: string | null;
11462
+ created_at?: string;
11463
+ dev_key?: string;
11464
+ first_seen_at?: string;
11465
+ floriday_packing?: Json;
11466
+ human_reason?: string | null;
11467
+ id?: string;
11468
+ last_seen_at?: string;
11469
+ local_packing?: Json;
11470
+ needs_human?: boolean;
11471
+ order_id?: string | null;
11472
+ order_item_id?: string | null;
11473
+ order_number?: string | null;
11474
+ product_id?: string | null;
11475
+ product_name?: string | null;
11476
+ resolved_at?: string | null;
11477
+ scope?: string;
11478
+ trade_item_id?: string | null;
11479
+ updated_at?: string;
11480
+ };
11481
+ Relationships: [];
11482
+ };
11193
11483
  logistics_pick_data_requests: {
11194
11484
  Row: {
11195
11485
  actions: Json;
@@ -11430,14 +11720,70 @@ export type Database = {
11430
11720
  };
11431
11721
  Relationships: [];
11432
11722
  };
11723
+ logistics_planner_diff_runs: {
11724
+ Row: {
11725
+ after_snapshot: Json | null;
11726
+ before_snapshot: Json;
11727
+ buffer_id: string | null;
11728
+ carts_after: number | null;
11729
+ carts_before: number | null;
11730
+ compared_at: string | null;
11731
+ created_at: string;
11732
+ differences: Json | null;
11733
+ id: string;
11734
+ identical: boolean | null;
11735
+ mode: string;
11736
+ order_id: string;
11737
+ order_ref: string | null;
11738
+ reason: string | null;
11739
+ status: string;
11740
+ };
11741
+ Insert: {
11742
+ after_snapshot?: Json | null;
11743
+ before_snapshot?: Json;
11744
+ buffer_id?: string | null;
11745
+ carts_after?: number | null;
11746
+ carts_before?: number | null;
11747
+ compared_at?: string | null;
11748
+ created_at?: string;
11749
+ differences?: Json | null;
11750
+ id?: string;
11751
+ identical?: boolean | null;
11752
+ mode: string;
11753
+ order_id: string;
11754
+ order_ref?: string | null;
11755
+ reason?: string | null;
11756
+ status?: string;
11757
+ };
11758
+ Update: {
11759
+ after_snapshot?: Json | null;
11760
+ before_snapshot?: Json;
11761
+ buffer_id?: string | null;
11762
+ carts_after?: number | null;
11763
+ carts_before?: number | null;
11764
+ compared_at?: string | null;
11765
+ created_at?: string;
11766
+ differences?: Json | null;
11767
+ id?: string;
11768
+ identical?: boolean | null;
11769
+ mode?: string;
11770
+ order_id?: string;
11771
+ order_ref?: string | null;
11772
+ reason?: string | null;
11773
+ status?: string;
11774
+ };
11775
+ Relationships: [];
11776
+ };
11433
11777
  logistics_rebuffer_state: {
11434
11778
  Row: {
11435
11779
  created_at: string;
11436
11780
  id: boolean;
11437
11781
  last_checked: number;
11438
11782
  last_duration_ms: number;
11783
+ last_mode: string | null;
11439
11784
  last_run_at: string | null;
11440
11785
  last_updated: number;
11786
+ last_would_change: number | null;
11441
11787
  pending: boolean;
11442
11788
  requested_at: string | null;
11443
11789
  updated_at: string;
@@ -11447,8 +11793,10 @@ export type Database = {
11447
11793
  id?: boolean;
11448
11794
  last_checked?: number;
11449
11795
  last_duration_ms?: number;
11796
+ last_mode?: string | null;
11450
11797
  last_run_at?: string | null;
11451
11798
  last_updated?: number;
11799
+ last_would_change?: number | null;
11452
11800
  pending?: boolean;
11453
11801
  requested_at?: string | null;
11454
11802
  updated_at?: string;
@@ -11458,8 +11806,10 @@ export type Database = {
11458
11806
  id?: boolean;
11459
11807
  last_checked?: number;
11460
11808
  last_duration_ms?: number;
11809
+ last_mode?: string | null;
11461
11810
  last_run_at?: string | null;
11462
11811
  last_updated?: number;
11812
+ last_would_change?: number | null;
11463
11813
  pending?: boolean;
11464
11814
  requested_at?: string | null;
11465
11815
  updated_at?: string;
@@ -13492,6 +13842,42 @@ export type Database = {
13492
13842
  };
13493
13843
  Relationships: [];
13494
13844
  };
13845
+ monteur_contracten: {
13846
+ Row: {
13847
+ contract_type: string;
13848
+ created_at: string;
13849
+ days_per_week: number;
13850
+ hours_per_week: number;
13851
+ id: string;
13852
+ updated_at: string;
13853
+ user_id: string;
13854
+ vacation_day_hours: number;
13855
+ vacation_days_per_year: number;
13856
+ };
13857
+ Insert: {
13858
+ contract_type?: string;
13859
+ created_at?: string;
13860
+ days_per_week?: number;
13861
+ hours_per_week?: number;
13862
+ id?: string;
13863
+ updated_at?: string;
13864
+ user_id: string;
13865
+ vacation_day_hours?: number;
13866
+ vacation_days_per_year?: number;
13867
+ };
13868
+ Update: {
13869
+ contract_type?: string;
13870
+ created_at?: string;
13871
+ days_per_week?: number;
13872
+ hours_per_week?: number;
13873
+ id?: string;
13874
+ updated_at?: string;
13875
+ user_id?: string;
13876
+ vacation_day_hours?: number;
13877
+ vacation_days_per_year?: number;
13878
+ };
13879
+ Relationships: [];
13880
+ };
13495
13881
  nmbrs_component_mapping: {
13496
13882
  Row: {
13497
13883
  created_at: string;
@@ -13983,6 +14369,9 @@ export type Database = {
13983
14369
  id: string;
13984
14370
  items: Json;
13985
14371
  notes: string | null;
14372
+ order_creation_error: string | null;
14373
+ order_creation_failed_at: string | null;
14374
+ order_id: string | null;
13986
14375
  order_number: string | null;
13987
14376
  recipient_id: string;
13988
14377
  total_amount: number;
@@ -13997,6 +14386,9 @@ export type Database = {
13997
14386
  id?: string;
13998
14387
  items?: Json;
13999
14388
  notes?: string | null;
14389
+ order_creation_error?: string | null;
14390
+ order_creation_failed_at?: string | null;
14391
+ order_id?: string | null;
14000
14392
  order_number?: string | null;
14001
14393
  recipient_id: string;
14002
14394
  total_amount?: number;
@@ -14011,6 +14403,9 @@ export type Database = {
14011
14403
  id?: string;
14012
14404
  items?: Json;
14013
14405
  notes?: string | null;
14406
+ order_creation_error?: string | null;
14407
+ order_creation_failed_at?: string | null;
14408
+ order_id?: string | null;
14014
14409
  order_number?: string | null;
14015
14410
  recipient_id?: string;
14016
14411
  total_amount?: number;
@@ -14030,6 +14425,13 @@ export type Database = {
14030
14425
  referencedRelation: "customers";
14031
14426
  referencedColumns: ["id"];
14032
14427
  },
14428
+ {
14429
+ foreignKeyName: "offer_orders_order_id_fkey";
14430
+ columns: ["order_id"];
14431
+ isOneToOne: false;
14432
+ referencedRelation: "orders";
14433
+ referencedColumns: ["id"];
14434
+ },
14033
14435
  {
14034
14436
  foreignKeyName: "offer_orders_recipient_id_fkey";
14035
14437
  columns: ["recipient_id"];
@@ -14175,6 +14577,30 @@ export type Database = {
14175
14577
  };
14176
14578
  Relationships: [];
14177
14579
  };
14580
+ order_block_notifications: {
14581
+ Row: {
14582
+ id: string;
14583
+ notified_at: string;
14584
+ order_id: string;
14585
+ reason: string | null;
14586
+ reason_key: string;
14587
+ };
14588
+ Insert: {
14589
+ id?: string;
14590
+ notified_at?: string;
14591
+ order_id: string;
14592
+ reason?: string | null;
14593
+ reason_key: string;
14594
+ };
14595
+ Update: {
14596
+ id?: string;
14597
+ notified_at?: string;
14598
+ order_id?: string;
14599
+ reason?: string | null;
14600
+ reason_key?: string;
14601
+ };
14602
+ Relationships: [];
14603
+ };
14178
14604
  order_buffers: {
14179
14605
  Row: {
14180
14606
  buffer_key: string;
@@ -14661,10 +15087,13 @@ export type Database = {
14661
15087
  id: string;
14662
15088
  layers_per_cart: number | null;
14663
15089
  order_id: string;
15090
+ packing_locked_at: string | null;
15091
+ packing_locked_by: string | null;
14664
15092
  plants_per_crate: number | null;
14665
15093
  product_id: string | null;
14666
15094
  product_name: string;
14667
15095
  quantity: number;
15096
+ source_line_key: string | null;
14668
15097
  unit: string;
14669
15098
  unit_price: number | null;
14670
15099
  };
@@ -14674,10 +15103,13 @@ export type Database = {
14674
15103
  id?: string;
14675
15104
  layers_per_cart?: number | null;
14676
15105
  order_id: string;
15106
+ packing_locked_at?: string | null;
15107
+ packing_locked_by?: string | null;
14677
15108
  plants_per_crate?: number | null;
14678
15109
  product_id?: string | null;
14679
15110
  product_name: string;
14680
15111
  quantity?: number;
15112
+ source_line_key?: string | null;
14681
15113
  unit?: string;
14682
15114
  unit_price?: number | null;
14683
15115
  };
@@ -14687,10 +15119,13 @@ export type Database = {
14687
15119
  id?: string;
14688
15120
  layers_per_cart?: number | null;
14689
15121
  order_id?: string;
15122
+ packing_locked_at?: string | null;
15123
+ packing_locked_by?: string | null;
14690
15124
  plants_per_crate?: number | null;
14691
15125
  product_id?: string | null;
14692
15126
  product_name?: string;
14693
15127
  quantity?: number;
15128
+ source_line_key?: string | null;
14694
15129
  unit?: string;
14695
15130
  unit_price?: number | null;
14696
15131
  };
@@ -16253,23 +16688,219 @@ export type Database = {
16253
16688
  }
16254
16689
  ];
16255
16690
  };
16256
- price_list_rows: {
16691
+ planning_monteur_day_locations: {
16257
16692
  Row: {
16258
- action: string;
16259
16693
  created_at: string;
16694
+ day: string;
16695
+ end_at: string;
16260
16696
  id: string;
16261
- message: string | null;
16262
- parsed: Json;
16263
- price_list_id: string;
16264
- raw: Json;
16265
- row_number: number;
16266
- supplier_product_id: string | null;
16697
+ monteur_id: string;
16698
+ start_from: string;
16699
+ updated_at: string;
16267
16700
  };
16268
16701
  Insert: {
16269
- action?: string;
16270
16702
  created_at?: string;
16703
+ day: string;
16704
+ end_at?: string;
16271
16705
  id?: string;
16272
- message?: string | null;
16706
+ monteur_id: string;
16707
+ start_from?: string;
16708
+ updated_at?: string;
16709
+ };
16710
+ Update: {
16711
+ created_at?: string;
16712
+ day?: string;
16713
+ end_at?: string;
16714
+ id?: string;
16715
+ monteur_id?: string;
16716
+ start_from?: string;
16717
+ updated_at?: string;
16718
+ };
16719
+ Relationships: [];
16720
+ };
16721
+ planning_monteur_locations: {
16722
+ Row: {
16723
+ created_at: string;
16724
+ default_end: string;
16725
+ default_start: string;
16726
+ end_address: string | null;
16727
+ home_address: string | null;
16728
+ id: string;
16729
+ monteur_id: string;
16730
+ start_address: string | null;
16731
+ updated_at: string;
16732
+ };
16733
+ Insert: {
16734
+ created_at?: string;
16735
+ default_end?: string;
16736
+ default_start?: string;
16737
+ end_address?: string | null;
16738
+ home_address?: string | null;
16739
+ id?: string;
16740
+ monteur_id: string;
16741
+ start_address?: string | null;
16742
+ updated_at?: string;
16743
+ };
16744
+ Update: {
16745
+ created_at?: string;
16746
+ default_end?: string;
16747
+ default_start?: string;
16748
+ end_address?: string | null;
16749
+ home_address?: string | null;
16750
+ id?: string;
16751
+ monteur_id?: string;
16752
+ start_address?: string | null;
16753
+ updated_at?: string;
16754
+ };
16755
+ Relationships: [];
16756
+ };
16757
+ planning_settings: {
16758
+ Row: {
16759
+ company_address: string | null;
16760
+ created_at: string;
16761
+ id: string;
16762
+ singleton: boolean;
16763
+ updated_at: string;
16764
+ };
16765
+ Insert: {
16766
+ company_address?: string | null;
16767
+ created_at?: string;
16768
+ id?: string;
16769
+ singleton?: boolean;
16770
+ updated_at?: string;
16771
+ };
16772
+ Update: {
16773
+ company_address?: string | null;
16774
+ created_at?: string;
16775
+ id?: string;
16776
+ singleton?: boolean;
16777
+ updated_at?: string;
16778
+ };
16779
+ Relationships: [];
16780
+ };
16781
+ planning_travel_legs: {
16782
+ Row: {
16783
+ after_min: number;
16784
+ after_reason: string | null;
16785
+ after_status: string;
16786
+ after_to_address: string | null;
16787
+ before_from_address: string | null;
16788
+ before_min: number;
16789
+ before_reason: string | null;
16790
+ before_status: string;
16791
+ computed_at: string;
16792
+ computed_end_at: string | null;
16793
+ computed_start_at: string | null;
16794
+ created_at: string;
16795
+ id: string;
16796
+ monteur_id: string;
16797
+ planning_item_id: string;
16798
+ shared_after_item_id: string | null;
16799
+ shared_before_item_id: string | null;
16800
+ updated_at: string;
16801
+ };
16802
+ Insert: {
16803
+ after_min?: number;
16804
+ after_reason?: string | null;
16805
+ after_status?: string;
16806
+ after_to_address?: string | null;
16807
+ before_from_address?: string | null;
16808
+ before_min?: number;
16809
+ before_reason?: string | null;
16810
+ before_status?: string;
16811
+ computed_at?: string;
16812
+ computed_end_at?: string | null;
16813
+ computed_start_at?: string | null;
16814
+ created_at?: string;
16815
+ id?: string;
16816
+ monteur_id: string;
16817
+ planning_item_id: string;
16818
+ shared_after_item_id?: string | null;
16819
+ shared_before_item_id?: string | null;
16820
+ updated_at?: string;
16821
+ };
16822
+ Update: {
16823
+ after_min?: number;
16824
+ after_reason?: string | null;
16825
+ after_status?: string;
16826
+ after_to_address?: string | null;
16827
+ before_from_address?: string | null;
16828
+ before_min?: number;
16829
+ before_reason?: string | null;
16830
+ before_status?: string;
16831
+ computed_at?: string;
16832
+ computed_end_at?: string | null;
16833
+ computed_start_at?: string | null;
16834
+ created_at?: string;
16835
+ id?: string;
16836
+ monteur_id?: string;
16837
+ planning_item_id?: string;
16838
+ shared_after_item_id?: string | null;
16839
+ shared_before_item_id?: string | null;
16840
+ updated_at?: string;
16841
+ };
16842
+ Relationships: [
16843
+ {
16844
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16845
+ columns: ["planning_item_id"];
16846
+ isOneToOne: false;
16847
+ referencedRelation: "planning_items";
16848
+ referencedColumns: ["id"];
16849
+ },
16850
+ {
16851
+ foreignKeyName: "planning_travel_legs_planning_item_id_fkey";
16852
+ columns: ["planning_item_id"];
16853
+ isOneToOne: false;
16854
+ referencedRelation: "planning_overview";
16855
+ referencedColumns: ["id"];
16856
+ },
16857
+ {
16858
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16859
+ columns: ["shared_after_item_id"];
16860
+ isOneToOne: false;
16861
+ referencedRelation: "planning_items";
16862
+ referencedColumns: ["id"];
16863
+ },
16864
+ {
16865
+ foreignKeyName: "planning_travel_legs_shared_after_item_id_fkey";
16866
+ columns: ["shared_after_item_id"];
16867
+ isOneToOne: false;
16868
+ referencedRelation: "planning_overview";
16869
+ referencedColumns: ["id"];
16870
+ },
16871
+ {
16872
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16873
+ columns: ["shared_before_item_id"];
16874
+ isOneToOne: false;
16875
+ referencedRelation: "planning_items";
16876
+ referencedColumns: ["id"];
16877
+ },
16878
+ {
16879
+ foreignKeyName: "planning_travel_legs_shared_before_item_id_fkey";
16880
+ columns: ["shared_before_item_id"];
16881
+ isOneToOne: false;
16882
+ referencedRelation: "planning_overview";
16883
+ referencedColumns: ["id"];
16884
+ }
16885
+ ];
16886
+ };
16887
+ price_list_rows: {
16888
+ Row: {
16889
+ action: string;
16890
+ created_at: string;
16891
+ id: string;
16892
+ message: string | null;
16893
+ parsed: Json;
16894
+ price_list_id: string;
16895
+ raw: Json;
16896
+ row_number: number;
16897
+ supplier_product_id: string | null;
16898
+ };
16899
+ Insert: {
16900
+ action?: string;
16901
+ created_at?: string;
16902
+ id?: string;
16903
+ message?: string | null;
16273
16904
  parsed?: Json;
16274
16905
  price_list_id: string;
16275
16906
  raw?: Json;
@@ -17466,6 +18097,8 @@ export type Database = {
17466
18097
  };
17467
18098
  product_load_settings: {
17468
18099
  Row: {
18100
+ build: Json | null;
18101
+ build_status: string;
17469
18102
  created_at: string;
17470
18103
  id: string;
17471
18104
  is_package: boolean;
@@ -17483,6 +18116,8 @@ export type Database = {
17483
18116
  updated_at: string;
17484
18117
  };
17485
18118
  Insert: {
18119
+ build?: Json | null;
18120
+ build_status?: string;
17486
18121
  created_at?: string;
17487
18122
  id?: string;
17488
18123
  is_package?: boolean;
@@ -17500,6 +18135,8 @@ export type Database = {
17500
18135
  updated_at?: string;
17501
18136
  };
17502
18137
  Update: {
18138
+ build?: Json | null;
18139
+ build_status?: string;
17503
18140
  created_at?: string;
17504
18141
  id?: string;
17505
18142
  is_package?: boolean;
@@ -17573,6 +18210,115 @@ export type Database = {
17573
18210
  };
17574
18211
  Relationships: [];
17575
18212
  };
18213
+ product_suppliers: {
18214
+ Row: {
18215
+ created_at: string;
18216
+ id: string;
18217
+ is_preferred: boolean;
18218
+ lead_time_days: number | null;
18219
+ min_order_quantity: number | null;
18220
+ notes: string | null;
18221
+ product_id: string;
18222
+ purchase_price_cents: number | null;
18223
+ supplier_article_number: string | null;
18224
+ supplier_id: string;
18225
+ updated_at: string;
18226
+ };
18227
+ Insert: {
18228
+ created_at?: string;
18229
+ id?: string;
18230
+ is_preferred?: boolean;
18231
+ lead_time_days?: number | null;
18232
+ min_order_quantity?: number | null;
18233
+ notes?: string | null;
18234
+ product_id: string;
18235
+ purchase_price_cents?: number | null;
18236
+ supplier_article_number?: string | null;
18237
+ supplier_id: string;
18238
+ updated_at?: string;
18239
+ };
18240
+ Update: {
18241
+ created_at?: string;
18242
+ id?: string;
18243
+ is_preferred?: boolean;
18244
+ lead_time_days?: number | null;
18245
+ min_order_quantity?: number | null;
18246
+ notes?: string | null;
18247
+ product_id?: string;
18248
+ purchase_price_cents?: number | null;
18249
+ supplier_article_number?: string | null;
18250
+ supplier_id?: string;
18251
+ updated_at?: string;
18252
+ };
18253
+ Relationships: [
18254
+ {
18255
+ foreignKeyName: "product_suppliers_product_id_fkey";
18256
+ columns: ["product_id"];
18257
+ isOneToOne: false;
18258
+ referencedRelation: "logistics_product_dimensions";
18259
+ referencedColumns: ["product_id"];
18260
+ },
18261
+ {
18262
+ foreignKeyName: "product_suppliers_product_id_fkey";
18263
+ columns: ["product_id"];
18264
+ isOneToOne: false;
18265
+ referencedRelation: "products";
18266
+ referencedColumns: ["id"];
18267
+ },
18268
+ {
18269
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
18270
+ columns: ["supplier_id"];
18271
+ isOneToOne: false;
18272
+ referencedRelation: "suppliers";
18273
+ referencedColumns: ["id"];
18274
+ }
18275
+ ];
18276
+ };
18277
+ product_tray_stickers: {
18278
+ Row: {
18279
+ bestand_url: string;
18280
+ bestandsgrootte: number | null;
18281
+ bestandsnaam: string | null;
18282
+ bestandspad: string | null;
18283
+ created_at: string;
18284
+ product_id: string;
18285
+ updated_at: string;
18286
+ };
18287
+ Insert: {
18288
+ bestand_url: string;
18289
+ bestandsgrootte?: number | null;
18290
+ bestandsnaam?: string | null;
18291
+ bestandspad?: string | null;
18292
+ created_at?: string;
18293
+ product_id: string;
18294
+ updated_at?: string;
18295
+ };
18296
+ Update: {
18297
+ bestand_url?: string;
18298
+ bestandsgrootte?: number | null;
18299
+ bestandsnaam?: string | null;
18300
+ bestandspad?: string | null;
18301
+ created_at?: string;
18302
+ product_id?: string;
18303
+ updated_at?: string;
18304
+ };
18305
+ Relationships: [
18306
+ {
18307
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18308
+ columns: ["product_id"];
18309
+ isOneToOne: true;
18310
+ referencedRelation: "logistics_product_dimensions";
18311
+ referencedColumns: ["product_id"];
18312
+ },
18313
+ {
18314
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
18315
+ columns: ["product_id"];
18316
+ isOneToOne: true;
18317
+ referencedRelation: "products";
18318
+ referencedColumns: ["id"];
18319
+ }
18320
+ ];
18321
+ };
17576
18322
  products: {
17577
18323
  Row: {
17578
18324
  article_number: string | null;
@@ -17581,6 +18327,8 @@ export type Database = {
17581
18327
  crates_per_layer: number;
17582
18328
  created_at: string;
17583
18329
  custom_fields: Json;
18330
+ floriday_packing_confirmed_at: string | null;
18331
+ floriday_packing_source: string | null;
17584
18332
  floriday_trade_item_id: string | null;
17585
18333
  fust_type_id: string | null;
17586
18334
  id: string;
@@ -17609,6 +18357,8 @@ export type Database = {
17609
18357
  crates_per_layer?: number;
17610
18358
  created_at?: string;
17611
18359
  custom_fields?: Json;
18360
+ floriday_packing_confirmed_at?: string | null;
18361
+ floriday_packing_source?: string | null;
17612
18362
  floriday_trade_item_id?: string | null;
17613
18363
  fust_type_id?: string | null;
17614
18364
  id?: string;
@@ -17637,6 +18387,8 @@ export type Database = {
17637
18387
  crates_per_layer?: number;
17638
18388
  created_at?: string;
17639
18389
  custom_fields?: Json;
18390
+ floriday_packing_confirmed_at?: string | null;
18391
+ floriday_packing_source?: string | null;
17640
18392
  floriday_trade_item_id?: string | null;
17641
18393
  fust_type_id?: string | null;
17642
18394
  id?: string;
@@ -17743,6 +18495,7 @@ export type Database = {
17743
18495
  id: string;
17744
18496
  is_superadmin: boolean;
17745
18497
  notification_preferences: Json;
18498
+ phone: string | null;
17746
18499
  tenant_id: string | null;
17747
18500
  updated_at: string;
17748
18501
  };
@@ -17755,6 +18508,7 @@ export type Database = {
17755
18508
  id: string;
17756
18509
  is_superadmin?: boolean;
17757
18510
  notification_preferences?: Json;
18511
+ phone?: string | null;
17758
18512
  tenant_id?: string | null;
17759
18513
  updated_at?: string;
17760
18514
  };
@@ -17767,6 +18521,7 @@ export type Database = {
17767
18521
  id?: string;
17768
18522
  is_superadmin?: boolean;
17769
18523
  notification_preferences?: Json;
18524
+ phone?: string | null;
17770
18525
  tenant_id?: string | null;
17771
18526
  updated_at?: string;
17772
18527
  };
@@ -19564,40 +20319,52 @@ export type Database = {
19564
20319
  Row: {
19565
20320
  approved_at: string | null;
19566
20321
  approved_by: string | null;
20322
+ contract_hours: number;
19567
20323
  created_at: string;
19568
20324
  employee_id: string;
19569
20325
  id: string;
19570
20326
  locked: boolean;
20327
+ monteur_toelichting: string | null;
19571
20328
  notes: string | null;
20329
+ planned_hours: number;
19572
20330
  status: string;
19573
20331
  submitted_at: string | null;
19574
20332
  updated_at: string;
20333
+ variance_hours: number;
19575
20334
  week_start: string;
19576
20335
  };
19577
20336
  Insert: {
19578
20337
  approved_at?: string | null;
19579
20338
  approved_by?: string | null;
20339
+ contract_hours?: number;
19580
20340
  created_at?: string;
19581
20341
  employee_id: string;
19582
20342
  id?: string;
19583
20343
  locked?: boolean;
20344
+ monteur_toelichting?: string | null;
19584
20345
  notes?: string | null;
20346
+ planned_hours?: number;
19585
20347
  status?: string;
19586
20348
  submitted_at?: string | null;
19587
20349
  updated_at?: string;
20350
+ variance_hours?: number;
19588
20351
  week_start: string;
19589
20352
  };
19590
20353
  Update: {
19591
20354
  approved_at?: string | null;
19592
20355
  approved_by?: string | null;
20356
+ contract_hours?: number;
19593
20357
  created_at?: string;
19594
20358
  employee_id?: string;
19595
20359
  id?: string;
19596
20360
  locked?: boolean;
20361
+ monteur_toelichting?: string | null;
19597
20362
  notes?: string | null;
20363
+ planned_hours?: number;
19598
20364
  status?: string;
19599
20365
  submitted_at?: string | null;
19600
20366
  updated_at?: string;
20367
+ variance_hours?: number;
19601
20368
  week_start?: string;
19602
20369
  };
19603
20370
  Relationships: [
@@ -20907,16 +21674,19 @@ export type Database = {
20907
21674
  Row: {
20908
21675
  active_environment: string;
20909
21676
  id: number;
21677
+ public_base_url: string | null;
20910
21678
  updated_at: string;
20911
21679
  };
20912
21680
  Insert: {
20913
21681
  active_environment?: string;
20914
21682
  id?: number;
21683
+ public_base_url?: string | null;
20915
21684
  updated_at?: string;
20916
21685
  };
20917
21686
  Update: {
20918
21687
  active_environment?: string;
20919
21688
  id?: number;
21689
+ public_base_url?: string | null;
20920
21690
  updated_at?: string;
20921
21691
  };
20922
21692
  Relationships: [];
@@ -20956,6 +21726,45 @@ export type Database = {
20956
21726
  }
20957
21727
  ];
20958
21728
  };
21729
+ uren_beschikbare_dagen: {
21730
+ Row: {
21731
+ bron: string;
21732
+ created_at: string;
21733
+ datum: string;
21734
+ eind_tijd: string | null;
21735
+ half_hour_slots: number[];
21736
+ id: string;
21737
+ monteur_id: string;
21738
+ start_tijd: string | null;
21739
+ updated_at: string;
21740
+ uren: number;
21741
+ };
21742
+ Insert: {
21743
+ bron?: string;
21744
+ created_at?: string;
21745
+ datum: string;
21746
+ eind_tijd?: string | null;
21747
+ half_hour_slots?: number[];
21748
+ id?: string;
21749
+ monteur_id: string;
21750
+ start_tijd?: string | null;
21751
+ updated_at?: string;
21752
+ uren?: number;
21753
+ };
21754
+ Update: {
21755
+ bron?: string;
21756
+ created_at?: string;
21757
+ datum?: string;
21758
+ eind_tijd?: string | null;
21759
+ half_hour_slots?: number[];
21760
+ id?: string;
21761
+ monteur_id?: string;
21762
+ start_tijd?: string | null;
21763
+ updated_at?: string;
21764
+ uren?: number;
21765
+ };
21766
+ Relationships: [];
21767
+ };
20959
21768
  uren_cao_profiles: {
20960
21769
  Row: {
20961
21770
  break_minutes: number | null;
@@ -21097,20 +21906,149 @@ export type Database = {
21097
21906
  };
21098
21907
  Relationships: [];
21099
21908
  };
21100
- uren_settings: {
21909
+ uren_maandafsluitingen: {
21101
21910
  Row: {
21102
- break_minutes: number;
21911
+ afgesloten_at: string | null;
21912
+ afgesloten_door: string | null;
21913
+ contract_minuten: number;
21914
+ correctie_reden: string | null;
21103
21915
  created_at: string;
21104
- daily_threshold_hours: number;
21105
- id: boolean;
21106
- include_travel: boolean;
21107
- min_occupancy_monteurs: number;
21108
- ov02_percentage: number;
21109
- ov03_percentage: number;
21916
+ gecorrigeerd_at: string | null;
21917
+ gecorrigeerd_door: string | null;
21918
+ gewerkte_minuten: number;
21919
+ id: string;
21920
+ maand: string;
21921
+ min_minuten: number;
21922
+ monteur_id: string;
21923
+ netto_verschil_minuten: number;
21924
+ normaal_uitbetaald_minuten: number;
21925
+ omgezet_vakantie_minuten: number;
21926
+ overdracht_vorige_minuten: number;
21927
+ overuren_minuten: number;
21928
+ plus_minuten: number;
21929
+ rest_overuren_minuten: number;
21930
+ status: string;
21931
+ totaal_uitbetaald_minuten: number;
21110
21932
  updated_at: string;
21111
- weekly_threshold_hours: number;
21112
- workday_end: string;
21113
- workday_start: string;
21933
+ vakantie_uren_bijgeschreven: number;
21934
+ };
21935
+ Insert: {
21936
+ afgesloten_at?: string | null;
21937
+ afgesloten_door?: string | null;
21938
+ contract_minuten?: number;
21939
+ correctie_reden?: string | null;
21940
+ created_at?: string;
21941
+ gecorrigeerd_at?: string | null;
21942
+ gecorrigeerd_door?: string | null;
21943
+ gewerkte_minuten?: number;
21944
+ id?: string;
21945
+ maand: string;
21946
+ min_minuten?: number;
21947
+ monteur_id: string;
21948
+ netto_verschil_minuten?: number;
21949
+ normaal_uitbetaald_minuten?: number;
21950
+ omgezet_vakantie_minuten?: number;
21951
+ overdracht_vorige_minuten?: number;
21952
+ overuren_minuten?: number;
21953
+ plus_minuten?: number;
21954
+ rest_overuren_minuten?: number;
21955
+ status?: string;
21956
+ totaal_uitbetaald_minuten?: number;
21957
+ updated_at?: string;
21958
+ vakantie_uren_bijgeschreven?: number;
21959
+ };
21960
+ Update: {
21961
+ afgesloten_at?: string | null;
21962
+ afgesloten_door?: string | null;
21963
+ contract_minuten?: number;
21964
+ correctie_reden?: string | null;
21965
+ created_at?: string;
21966
+ gecorrigeerd_at?: string | null;
21967
+ gecorrigeerd_door?: string | null;
21968
+ gewerkte_minuten?: number;
21969
+ id?: string;
21970
+ maand?: string;
21971
+ min_minuten?: number;
21972
+ monteur_id?: string;
21973
+ netto_verschil_minuten?: number;
21974
+ normaal_uitbetaald_minuten?: number;
21975
+ omgezet_vakantie_minuten?: number;
21976
+ overdracht_vorige_minuten?: number;
21977
+ overuren_minuten?: number;
21978
+ plus_minuten?: number;
21979
+ rest_overuren_minuten?: number;
21980
+ status?: string;
21981
+ totaal_uitbetaald_minuten?: number;
21982
+ updated_at?: string;
21983
+ vakantie_uren_bijgeschreven?: number;
21984
+ };
21985
+ Relationships: [];
21986
+ };
21987
+ uren_overuren_verklaringen: {
21988
+ Row: {
21989
+ beoordeeld_door: string | null;
21990
+ beoordeeld_op: string | null;
21991
+ created_at: string;
21992
+ datum: string;
21993
+ eind_tijd: string | null;
21994
+ id: string;
21995
+ ingediend_at: string;
21996
+ monteur_id: string;
21997
+ overuren: number;
21998
+ reden_afkeur: string | null;
21999
+ start_tijd: string | null;
22000
+ status: string;
22001
+ toelichting: string;
22002
+ updated_at: string;
22003
+ };
22004
+ Insert: {
22005
+ beoordeeld_door?: string | null;
22006
+ beoordeeld_op?: string | null;
22007
+ created_at?: string;
22008
+ datum: string;
22009
+ eind_tijd?: string | null;
22010
+ id?: string;
22011
+ ingediend_at?: string;
22012
+ monteur_id: string;
22013
+ overuren: number;
22014
+ reden_afkeur?: string | null;
22015
+ start_tijd?: string | null;
22016
+ status?: string;
22017
+ toelichting: string;
22018
+ updated_at?: string;
22019
+ };
22020
+ Update: {
22021
+ beoordeeld_door?: string | null;
22022
+ beoordeeld_op?: string | null;
22023
+ created_at?: string;
22024
+ datum?: string;
22025
+ eind_tijd?: string | null;
22026
+ id?: string;
22027
+ ingediend_at?: string;
22028
+ monteur_id?: string;
22029
+ overuren?: number;
22030
+ reden_afkeur?: string | null;
22031
+ start_tijd?: string | null;
22032
+ status?: string;
22033
+ toelichting?: string;
22034
+ updated_at?: string;
22035
+ };
22036
+ Relationships: [];
22037
+ };
22038
+ uren_settings: {
22039
+ Row: {
22040
+ break_minutes: number;
22041
+ created_at: string;
22042
+ daily_threshold_hours: number;
22043
+ id: boolean;
22044
+ include_travel: boolean;
22045
+ min_occupancy_monteurs: number;
22046
+ ov02_percentage: number;
22047
+ ov03_percentage: number;
22048
+ updated_at: string;
22049
+ weekly_threshold_hours: number;
22050
+ workday_end: string;
22051
+ workday_start: string;
21114
22052
  };
21115
22053
  Insert: {
21116
22054
  break_minutes?: number;
@@ -21142,6 +22080,75 @@ export type Database = {
21142
22080
  };
21143
22081
  Relationships: [];
21144
22082
  };
22083
+ uren_standaardweek: {
22084
+ Row: {
22085
+ created_at: string;
22086
+ eind_slot: number;
22087
+ id: string;
22088
+ monteur_id: string;
22089
+ start_slot: number;
22090
+ updated_at: string;
22091
+ weekdag: number;
22092
+ };
22093
+ Insert: {
22094
+ created_at?: string;
22095
+ eind_slot: number;
22096
+ id?: string;
22097
+ monteur_id: string;
22098
+ start_slot: number;
22099
+ updated_at?: string;
22100
+ weekdag: number;
22101
+ };
22102
+ Update: {
22103
+ created_at?: string;
22104
+ eind_slot?: number;
22105
+ id?: string;
22106
+ monteur_id?: string;
22107
+ start_slot?: number;
22108
+ updated_at?: string;
22109
+ weekdag?: number;
22110
+ };
22111
+ Relationships: [];
22112
+ };
22113
+ uren_standaardweek_wijzigingen: {
22114
+ Row: {
22115
+ beoordeeld_door: string | null;
22116
+ beoordeeld_op: string | null;
22117
+ created_at: string;
22118
+ huidig: Json;
22119
+ id: string;
22120
+ monteur_id: string;
22121
+ reden_afkeur: string | null;
22122
+ status: string;
22123
+ updated_at: string;
22124
+ voorstel: Json;
22125
+ };
22126
+ Insert: {
22127
+ beoordeeld_door?: string | null;
22128
+ beoordeeld_op?: string | null;
22129
+ created_at?: string;
22130
+ huidig?: Json;
22131
+ id?: string;
22132
+ monteur_id: string;
22133
+ reden_afkeur?: string | null;
22134
+ status?: string;
22135
+ updated_at?: string;
22136
+ voorstel: Json;
22137
+ };
22138
+ Update: {
22139
+ beoordeeld_door?: string | null;
22140
+ beoordeeld_op?: string | null;
22141
+ created_at?: string;
22142
+ huidig?: Json;
22143
+ id?: string;
22144
+ monteur_id?: string;
22145
+ reden_afkeur?: string | null;
22146
+ status?: string;
22147
+ updated_at?: string;
22148
+ voorstel?: Json;
22149
+ };
22150
+ Relationships: [];
22151
+ };
21145
22152
  uren_tarieven: {
21146
22153
  Row: {
21147
22154
  created_at: string;
@@ -21228,6 +22235,42 @@ export type Database = {
21228
22235
  };
21229
22236
  Relationships: [];
21230
22237
  };
22238
+ uren_tijd_spiegel: {
22239
+ Row: {
22240
+ created_at: string;
22241
+ id: string;
22242
+ time_log_id: string;
22243
+ werkbon_time_log_id: string;
22244
+ };
22245
+ Insert: {
22246
+ created_at?: string;
22247
+ id?: string;
22248
+ time_log_id: string;
22249
+ werkbon_time_log_id: string;
22250
+ };
22251
+ Update: {
22252
+ created_at?: string;
22253
+ id?: string;
22254
+ time_log_id?: string;
22255
+ werkbon_time_log_id?: string;
22256
+ };
22257
+ Relationships: [
22258
+ {
22259
+ foreignKeyName: "uren_tijd_spiegel_time_log_id_fkey";
22260
+ columns: ["time_log_id"];
22261
+ isOneToOne: true;
22262
+ referencedRelation: "time_logs";
22263
+ referencedColumns: ["id"];
22264
+ },
22265
+ {
22266
+ foreignKeyName: "uren_tijd_spiegel_werkbon_time_log_id_fkey";
22267
+ columns: ["werkbon_time_log_id"];
22268
+ isOneToOne: true;
22269
+ referencedRelation: "werkbon_time_logs";
22270
+ referencedColumns: ["id"];
22271
+ }
22272
+ ];
22273
+ };
21231
22274
  uren_weekstaten: {
21232
22275
  Row: {
21233
22276
  approved_at: string | null;
@@ -21270,6 +22313,33 @@ export type Database = {
21270
22313
  };
21271
22314
  Relationships: [];
21272
22315
  };
22316
+ uren_werktijd_voorkeuren: {
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
+ };
22325
+ Insert: {
22326
+ created_at?: string;
22327
+ eind_slot?: number;
22328
+ id?: string;
22329
+ monteur_id: string;
22330
+ start_slot?: number;
22331
+ updated_at?: string;
22332
+ };
22333
+ Update: {
22334
+ created_at?: string;
22335
+ eind_slot?: number;
22336
+ id?: string;
22337
+ monteur_id?: string;
22338
+ start_slot?: number;
22339
+ updated_at?: string;
22340
+ };
22341
+ Relationships: [];
22342
+ };
21273
22343
  user_module_permissions: {
21274
22344
  Row: {
21275
22345
  created_at: string;
@@ -21329,6 +22399,54 @@ export type Database = {
21329
22399
  }
21330
22400
  ];
21331
22401
  };
22402
+ vakantie_uitbetalingen: {
22403
+ Row: {
22404
+ created_at: string;
22405
+ created_by: string | null;
22406
+ days: number;
22407
+ id: string;
22408
+ note: string | null;
22409
+ updated_at: string;
22410
+ user_id: string;
22411
+ year: number;
22412
+ };
22413
+ Insert: {
22414
+ created_at?: string;
22415
+ created_by?: string | null;
22416
+ days: number;
22417
+ id?: string;
22418
+ note?: string | null;
22419
+ updated_at?: string;
22420
+ user_id: string;
22421
+ year?: number;
22422
+ };
22423
+ Update: {
22424
+ created_at?: string;
22425
+ created_by?: string | null;
22426
+ days?: number;
22427
+ id?: string;
22428
+ note?: string | null;
22429
+ updated_at?: string;
22430
+ user_id?: string;
22431
+ year?: number;
22432
+ };
22433
+ Relationships: [
22434
+ {
22435
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22436
+ columns: ["created_by"];
22437
+ isOneToOne: false;
22438
+ referencedRelation: "profiles";
22439
+ referencedColumns: ["id"];
22440
+ },
22441
+ {
22442
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22443
+ columns: ["user_id"];
22444
+ isOneToOne: false;
22445
+ referencedRelation: "profiles";
22446
+ referencedColumns: ["id"];
22447
+ }
22448
+ ];
22449
+ };
21332
22450
  van_inventories: {
21333
22451
  Row: {
21334
22452
  barcode: string | null;
@@ -22217,10 +23335,12 @@ export type Database = {
22217
23335
  Row: {
22218
23336
  article_number: string | null;
22219
23337
  artikel_id: string | null;
23338
+ cost_price_cents: number;
22220
23339
  created_at: string;
22221
23340
  gtin: string | null;
22222
23341
  id: string;
22223
23342
  manufacturer: string | null;
23343
+ margin_percent: number | null;
22224
23344
  omschrijving: string;
22225
23345
  package_id: string;
22226
23346
  price_synced_at: string | null;
@@ -22235,10 +23355,12 @@ export type Database = {
22235
23355
  Insert: {
22236
23356
  article_number?: string | null;
22237
23357
  artikel_id?: string | null;
23358
+ cost_price_cents?: number;
22238
23359
  created_at?: string;
22239
23360
  gtin?: string | null;
22240
23361
  id?: string;
22241
23362
  manufacturer?: string | null;
23363
+ margin_percent?: number | null;
22242
23364
  omschrijving: string;
22243
23365
  package_id: string;
22244
23366
  price_synced_at?: string | null;
@@ -22253,10 +23375,12 @@ export type Database = {
22253
23375
  Update: {
22254
23376
  article_number?: string | null;
22255
23377
  artikel_id?: string | null;
23378
+ cost_price_cents?: number;
22256
23379
  created_at?: string;
22257
23380
  gtin?: string | null;
22258
23381
  id?: string;
22259
23382
  manufacturer?: string | null;
23383
+ margin_percent?: number | null;
22260
23384
  omschrijving?: string;
22261
23385
  package_id?: string;
22262
23386
  price_synced_at?: string | null;
@@ -22638,6 +23762,83 @@ export type Database = {
22638
23762
  }
22639
23763
  ];
22640
23764
  };
23765
+ werkbon_voorstellen: {
23766
+ Row: {
23767
+ bron_werkbon_id: string;
23768
+ budget_mandate_cents: number;
23769
+ created_at: string;
23770
+ created_by: string;
23771
+ customer_id: string | null;
23772
+ id: string;
23773
+ payload: Json;
23774
+ reden: string | null;
23775
+ status: string;
23776
+ updated_at: string;
23777
+ verwerkt_door: string | null;
23778
+ verwerkt_op: string | null;
23779
+ werkbon_id: string | null;
23780
+ };
23781
+ Insert: {
23782
+ bron_werkbon_id: string;
23783
+ budget_mandate_cents?: number;
23784
+ created_at?: string;
23785
+ created_by?: string;
23786
+ customer_id?: string | null;
23787
+ id?: string;
23788
+ payload?: Json;
23789
+ reden?: string | null;
23790
+ status?: string;
23791
+ updated_at?: string;
23792
+ verwerkt_door?: string | null;
23793
+ verwerkt_op?: string | null;
23794
+ werkbon_id?: string | null;
23795
+ };
23796
+ Update: {
23797
+ bron_werkbon_id?: string;
23798
+ budget_mandate_cents?: number;
23799
+ created_at?: string;
23800
+ created_by?: string;
23801
+ customer_id?: string | null;
23802
+ id?: string;
23803
+ payload?: Json;
23804
+ reden?: string | null;
23805
+ status?: string;
23806
+ updated_at?: string;
23807
+ verwerkt_door?: string | null;
23808
+ verwerkt_op?: string | null;
23809
+ werkbon_id?: string | null;
23810
+ };
23811
+ Relationships: [
23812
+ {
23813
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23814
+ columns: ["bron_werkbon_id"];
23815
+ isOneToOne: false;
23816
+ referencedRelation: "werkbonnen";
23817
+ referencedColumns: ["id"];
23818
+ },
23819
+ {
23820
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23821
+ columns: ["bron_werkbon_id"];
23822
+ isOneToOne: false;
23823
+ referencedRelation: "wo_overview";
23824
+ referencedColumns: ["id"];
23825
+ },
23826
+ {
23827
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23828
+ columns: ["werkbon_id"];
23829
+ isOneToOne: false;
23830
+ referencedRelation: "werkbonnen";
23831
+ referencedColumns: ["id"];
23832
+ },
23833
+ {
23834
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23835
+ columns: ["werkbon_id"];
23836
+ isOneToOne: false;
23837
+ referencedRelation: "wo_overview";
23838
+ referencedColumns: ["id"];
23839
+ }
23840
+ ];
23841
+ };
22641
23842
  werkbonnen: {
22642
23843
  Row: {
22643
23844
  assigned_user_id: string | null;
@@ -23257,6 +24458,21 @@ export type Database = {
23257
24458
  };
23258
24459
  Relationships: [];
23259
24460
  };
24461
+ logistics_packing_diff: {
24462
+ Row: {
24463
+ dev_key: string | null;
24464
+ floriday_packing: Json | null;
24465
+ local_packing: Json | null;
24466
+ order_id: string | null;
24467
+ order_item_id: string | null;
24468
+ order_number: string | null;
24469
+ product_id: string | null;
24470
+ product_name: string | null;
24471
+ scope: string | null;
24472
+ trade_item_id: string | null;
24473
+ };
24474
+ Relationships: [];
24475
+ };
23260
24476
  logistics_product_dimensions: {
23261
24477
  Row: {
23262
24478
  dimension_source: string | null;
@@ -23901,6 +25117,10 @@ export type Database = {
23901
25117
  };
23902
25118
  Returns: undefined;
23903
25119
  };
25120
+ _wo_is_planner: {
25121
+ Args: never;
25122
+ Returns: boolean;
25123
+ };
23904
25124
  afh_city_code: {
23905
25125
  Args: {
23906
25126
  _city: string;
@@ -24511,10 +25731,32 @@ export type Database = {
24511
25731
  };
24512
25732
  Returns: number;
24513
25733
  };
25734
+ control_mark_carts_delivered_detail: {
25735
+ Args: {
25736
+ p_carts: Json;
25737
+ };
25738
+ Returns: {
25739
+ cart_index: number;
25740
+ frozen: boolean;
25741
+ message: string;
25742
+ order_id: string;
25743
+ order_source: string;
25744
+ outcome: string;
25745
+ }[];
25746
+ };
24514
25747
  count_distinct_regulatory_products: {
24515
25748
  Args: never;
24516
25749
  Returns: number;
24517
25750
  };
25751
+ create_order_from_public_offer: {
25752
+ Args: {
25753
+ p_carrier_id?: string;
25754
+ p_delivery_date?: string;
25755
+ p_delivery_garden_id?: string;
25756
+ p_offer_order_id: string;
25757
+ };
25758
+ Returns: Json;
25759
+ };
24518
25760
  current_monteur_id: {
24519
25761
  Args: never;
24520
25762
  Returns: string;
@@ -24991,6 +26233,22 @@ export type Database = {
24991
26233
  };
24992
26234
  Returns: number;
24993
26235
  };
26236
+ get_product_stock: {
26237
+ Args: {
26238
+ p_product_id: string;
26239
+ };
26240
+ Returns: {
26241
+ connection_id: string;
26242
+ incoming_stock: number;
26243
+ minimum_stock: number;
26244
+ notes: string;
26245
+ physical_stock: number;
26246
+ product_id: string;
26247
+ reserved_stock: number;
26248
+ trade_item_key: string;
26249
+ updated_at: string;
26250
+ }[];
26251
+ };
24994
26252
  get_room_busy_windows: {
24995
26253
  Args: {
24996
26254
  p_from: string;
@@ -25295,6 +26553,26 @@ export type Database = {
25295
26553
  };
25296
26554
  Returns: Json;
25297
26555
  };
26556
+ inkoop_list_artikelen: {
26557
+ Args: never;
26558
+ Returns: {
26559
+ article_number: string;
26560
+ barcode: string;
26561
+ id: string;
26562
+ incoming_quantity: number;
26563
+ is_layer: boolean;
26564
+ location: string;
26565
+ min_quantity: number;
26566
+ preferred_supplier_name: string;
26567
+ product: string;
26568
+ product_type: string;
26569
+ purchase_price: number;
26570
+ quantity: number;
26571
+ sale_price: number;
26572
+ supplier_count: number;
26573
+ unit: string;
26574
+ }[];
26575
+ };
25298
26576
  inkoop_next_order_number: {
25299
26577
  Args: never;
25300
26578
  Returns: string;
@@ -25309,6 +26587,13 @@ export type Database = {
25309
26587
  to_address: string;
25310
26588
  }[];
25311
26589
  };
26590
+ inkoop_set_preferred_supplier: {
26591
+ Args: {
26592
+ _product_id: string;
26593
+ _supplier_id: string;
26594
+ };
26595
+ Returns: undefined;
26596
+ };
25312
26597
  instructie_get: {
25313
26598
  Args: {
25314
26599
  _sleutel: string;
@@ -25328,6 +26613,10 @@ export type Database = {
25328
26613
  };
25329
26614
  Returns: number;
25330
26615
  };
26616
+ invoice_branding_snapshot: {
26617
+ Args: never;
26618
+ Returns: Json;
26619
+ };
25331
26620
  invoice_create_from_source: {
25332
26621
  Args: {
25333
26622
  _payload?: Json;
@@ -25362,12 +26651,41 @@ export type Database = {
25362
26651
  };
25363
26652
  Returns: Json;
25364
26653
  };
26654
+ invoice_mark_sent: {
26655
+ Args: {
26656
+ _invoice_id: string;
26657
+ _to: string;
26658
+ };
26659
+ Returns: undefined;
26660
+ };
26661
+ invoice_peek_next_number: {
26662
+ Args: never;
26663
+ Returns: string;
26664
+ };
26665
+ invoice_ready_work_orders: {
26666
+ Args: {
26667
+ _limit?: number;
26668
+ };
26669
+ Returns: Json;
26670
+ };
25365
26671
  invoice_recalc_totals: {
25366
26672
  Args: {
25367
26673
  _invoice_id: string;
25368
26674
  };
25369
26675
  Returns: Json;
25370
26676
  };
26677
+ invoice_save_branding_settings: {
26678
+ Args: {
26679
+ _payload: Json;
26680
+ };
26681
+ Returns: Json;
26682
+ };
26683
+ invoice_set_email_purpose: {
26684
+ Args: {
26685
+ _purpose: string;
26686
+ };
26687
+ Returns: string;
26688
+ };
25371
26689
  invoice_source_lines: {
25372
26690
  Args: {
25373
26691
  _source_id: string;
@@ -25375,6 +26693,19 @@ export type Database = {
25375
26693
  };
25376
26694
  Returns: Json;
25377
26695
  };
26696
+ invoice_update_full: {
26697
+ Args: {
26698
+ _invoice_id: string;
26699
+ _payload: Json;
26700
+ };
26701
+ Returns: Json;
26702
+ };
26703
+ invoice_work_order_locked: {
26704
+ Args: {
26705
+ _werkbon_id: string;
26706
+ };
26707
+ Returns: Json;
26708
+ };
25378
26709
  is_authenticated: {
25379
26710
  Args: never;
25380
26711
  Returns: boolean;
@@ -25607,6 +26938,14 @@ export type Database = {
25607
26938
  };
25608
26939
  Returns: Json;
25609
26940
  };
26941
+ logistics_buffer_decision_for_settings: {
26942
+ Args: {
26943
+ p_order: Json;
26944
+ p_settings: Json;
26945
+ p_user_id?: string;
26946
+ };
26947
+ Returns: Json;
26948
+ };
25610
26949
  logistics_buffer_detach_late_orders: {
25611
26950
  Args: {
25612
26951
  p_buffer?: string;
@@ -25640,6 +26979,12 @@ export type Database = {
25640
26979
  };
25641
26980
  Returns: string;
25642
26981
  };
26982
+ logistics_buffer_payload: {
26983
+ Args: {
26984
+ p_order_id: string;
26985
+ };
26986
+ Returns: Json;
26987
+ };
25643
26988
  logistics_buffer_simulate: {
25644
26989
  Args: {
25645
26990
  p_orders?: Json;
@@ -25698,6 +27043,10 @@ export type Database = {
25698
27043
  };
25699
27044
  Returns: string;
25700
27045
  };
27046
+ logistics_cart_coverage_check: {
27047
+ Args: never;
27048
+ Returns: Json;
27049
+ };
25701
27050
  logistics_cart_handled: {
25702
27051
  Args: {
25703
27052
  p_cart_index: number;
@@ -25941,6 +27290,19 @@ export type Database = {
25941
27290
  isSetofReturn: false;
25942
27291
  };
25943
27292
  };
27293
+ logistics_cleanup_duplicate_order_lines: {
27294
+ Args: {
27295
+ p_limit?: number;
27296
+ p_order_id: string;
27297
+ };
27298
+ Returns: Json;
27299
+ };
27300
+ logistics_cleanup_history: {
27301
+ Args: {
27302
+ p_limit?: number;
27303
+ };
27304
+ Returns: Json;
27305
+ };
25944
27306
  logistics_cleanup_orphan_print_jobs: {
25945
27307
  Args: never;
25946
27308
  Returns: Json;
@@ -26098,6 +27460,10 @@ export type Database = {
26098
27460
  Args: never;
26099
27461
  Returns: Json;
26100
27462
  };
27463
+ logistics_cron_health: {
27464
+ Args: never;
27465
+ Returns: Json;
27466
+ };
26101
27467
  logistics_day_windows: {
26102
27468
  Args: {
26103
27469
  p_day: string;
@@ -26447,6 +27813,12 @@ export type Database = {
26447
27813
  };
26448
27814
  Returns: number;
26449
27815
  };
27816
+ logistics_merge_decision: {
27817
+ Args: {
27818
+ p_lines: Json;
27819
+ };
27820
+ Returns: Json;
27821
+ };
26450
27822
  logistics_merge_floriday_lines: {
26451
27823
  Args: {
26452
27824
  p_order_id: string;
@@ -26493,6 +27865,12 @@ export type Database = {
26493
27865
  Args: never;
26494
27866
  Returns: string;
26495
27867
  };
27868
+ logistics_order_backlog_info: {
27869
+ Args: {
27870
+ p_order_id: string;
27871
+ };
27872
+ Returns: Json;
27873
+ };
26496
27874
  logistics_order_cart_approval: {
26497
27875
  Args: {
26498
27876
  _order_ref: string;
@@ -26527,6 +27905,50 @@ export type Database = {
26527
27905
  };
26528
27906
  Returns: boolean;
26529
27907
  };
27908
+ logistics_order_finalize_enqueue: {
27909
+ Args: {
27910
+ p_order_id: string;
27911
+ p_reason?: string;
27912
+ };
27913
+ Returns: undefined;
27914
+ };
27915
+ logistics_order_finalize_overview: {
27916
+ Args: never;
27917
+ Returns: {
27918
+ bezig: number;
27919
+ laatst_afgerond: string;
27920
+ laatste_fout: string;
27921
+ mislukt: number;
27922
+ oudste_wachttijd_seconden: number;
27923
+ wachtend: number;
27924
+ }[];
27925
+ };
27926
+ logistics_order_finalize_prune: {
27927
+ Args: {
27928
+ p_days?: number;
27929
+ };
27930
+ Returns: number;
27931
+ };
27932
+ logistics_order_finalize_reconcile: {
27933
+ Args: {
27934
+ p_days?: number;
27935
+ p_limit?: number;
27936
+ };
27937
+ Returns: number;
27938
+ };
27939
+ logistics_order_finalize_retry: {
27940
+ Args: {
27941
+ p_order_id: string;
27942
+ };
27943
+ Returns: boolean;
27944
+ };
27945
+ logistics_order_finalize_run: {
27946
+ Args: {
27947
+ p_lease_seconds?: number;
27948
+ p_limit?: number;
27949
+ };
27950
+ Returns: number;
27951
+ };
26530
27952
  logistics_order_frozen: {
26531
27953
  Args: {
26532
27954
  p_order_id: string;
@@ -26539,6 +27961,12 @@ export type Database = {
26539
27961
  };
26540
27962
  Returns: boolean;
26541
27963
  };
27964
+ logistics_order_is_backlog: {
27965
+ Args: {
27966
+ p_order_id: string;
27967
+ };
27968
+ Returns: boolean;
27969
+ };
26542
27970
  logistics_order_is_topick: {
26543
27971
  Args: {
26544
27972
  p_order_id: string;
@@ -26546,6 +27974,12 @@ export type Database = {
26546
27974
  };
26547
27975
  Returns: boolean;
26548
27976
  };
27977
+ logistics_order_line_duplicates: {
27978
+ Args: {
27979
+ p_order_id: string;
27980
+ };
27981
+ Returns: Json;
27982
+ };
26549
27983
  logistics_order_merge_key: {
26550
27984
  Args: {
26551
27985
  p_group_key: string;
@@ -26589,6 +28023,63 @@ export type Database = {
26589
28023
  };
26590
28024
  Returns: boolean;
26591
28025
  };
28026
+ logistics_packing_autofix: {
28027
+ Args: {
28028
+ p_limit?: number;
28029
+ };
28030
+ Returns: number;
28031
+ };
28032
+ logistics_packing_block_reason: {
28033
+ Args: {
28034
+ p_order_id: string;
28035
+ p_order_item_id: string;
28036
+ };
28037
+ Returns: string;
28038
+ };
28039
+ logistics_packing_dismiss: {
28040
+ Args: {
28041
+ p_id: string;
28042
+ p_note?: string;
28043
+ };
28044
+ Returns: boolean;
28045
+ };
28046
+ logistics_packing_overview: {
28047
+ Args: never;
28048
+ Returns: {
28049
+ beoordelen: number;
28050
+ herstelbaar: number;
28051
+ laatst_gemeten: string;
28052
+ laatst_hersteld: string;
28053
+ open_totaal: number;
28054
+ orders: number;
28055
+ oudste_seconden: number;
28056
+ producten: number;
28057
+ }[];
28058
+ };
28059
+ logistics_packing_reconcile: {
28060
+ Args: {
28061
+ p_fix_limit?: number;
28062
+ p_scan_limit?: number;
28063
+ };
28064
+ Returns: {
28065
+ beoordelen: number;
28066
+ gevonden: number;
28067
+ hersteld: number;
28068
+ }[];
28069
+ };
28070
+ logistics_packing_scan: {
28071
+ Args: {
28072
+ p_limit?: number;
28073
+ };
28074
+ Returns: number;
28075
+ };
28076
+ logistics_packing_set_manual: {
28077
+ Args: {
28078
+ p_manual?: boolean;
28079
+ p_order_item_id: string;
28080
+ };
28081
+ Returns: boolean;
28082
+ };
26592
28083
  logistics_parse_pickup: {
26593
28084
  Args: {
26594
28085
  p_value: string;
@@ -26617,6 +28108,10 @@ export type Database = {
26617
28108
  shifted_count: number;
26618
28109
  }[];
26619
28110
  };
28111
+ logistics_pick_backlog_max_days: {
28112
+ Args: never;
28113
+ Returns: number;
28114
+ };
26620
28115
  logistics_pick_barcode_enabled: {
26621
28116
  Args: never;
26622
28117
  Returns: boolean;
@@ -26838,6 +28333,21 @@ export type Database = {
26838
28333
  Args: never;
26839
28334
  Returns: number;
26840
28335
  };
28336
+ logistics_planner_cart_snapshot: {
28337
+ Args: {
28338
+ p_buffer_id: string;
28339
+ p_order_id: string;
28340
+ };
28341
+ Returns: Json;
28342
+ };
28343
+ logistics_planner_diff_mode: {
28344
+ Args: never;
28345
+ Returns: string;
28346
+ };
28347
+ logistics_planner_diff_prune: {
28348
+ Args: never;
28349
+ Returns: number;
28350
+ };
26841
28351
  logistics_prepare_pick_documents: {
26842
28352
  Args: {
26843
28353
  p_limit?: number;
@@ -26848,6 +28358,12 @@ export type Database = {
26848
28358
  Args: never;
26849
28359
  Returns: number;
26850
28360
  };
28361
+ logistics_prune_cron_history: {
28362
+ Args: {
28363
+ p_days?: number;
28364
+ };
28365
+ Returns: number;
28366
+ };
26851
28367
  logistics_prune_handled_pick_queue: {
26852
28368
  Args: never;
26853
28369
  Returns: number;
@@ -26884,6 +28400,14 @@ export type Database = {
26884
28400
  Args: never;
26885
28401
  Returns: Json;
26886
28402
  };
28403
+ logistics_recalc_tick_kick: {
28404
+ Args: never;
28405
+ Returns: number;
28406
+ };
28407
+ logistics_reconcile_missing_plan_queue: {
28408
+ Args: never;
28409
+ Returns: number;
28410
+ };
26887
28411
  logistics_refresh_pick_queue_status: {
26888
28412
  Args: {
26889
28413
  p_ref: string;
@@ -26914,11 +28438,24 @@ export type Database = {
26914
28438
  };
26915
28439
  Returns: Json;
26916
28440
  };
28441
+ logistics_replan_clear_foreign_cart_items: {
28442
+ Args: {
28443
+ p_order_id: string;
28444
+ p_reason: string;
28445
+ };
28446
+ Returns: Json;
28447
+ };
26917
28448
  logistics_replan_order_journey: {
26918
28449
  Args: {
26919
28450
  p_order_ref: string;
26920
28451
  };
26921
28452
  Returns: Json;
28453
+ } | {
28454
+ Args: {
28455
+ p_order_ref: string;
28456
+ p_reason: string;
28457
+ };
28458
+ Returns: Json;
26922
28459
  };
26923
28460
  logistics_report_delay: {
26924
28461
  Args: {
@@ -26964,6 +28501,10 @@ export type Database = {
26964
28501
  };
26965
28502
  Returns: Json;
26966
28503
  };
28504
+ logistics_reserved_stock_nightly: {
28505
+ Args: never;
28506
+ Returns: undefined;
28507
+ };
26967
28508
  logistics_resolve_pick_document: {
26968
28509
  Args: {
26969
28510
  _is_herprint: boolean;
@@ -26987,6 +28528,12 @@ export type Database = {
26987
28528
  };
26988
28529
  Returns: Json;
26989
28530
  };
28531
+ logistics_retention_days: {
28532
+ Args: {
28533
+ p_key: string;
28534
+ };
28535
+ Returns: number;
28536
+ };
26990
28537
  logistics_rule_bool: {
26991
28538
  Args: {
26992
28539
  p_default: boolean;
@@ -27180,12 +28727,27 @@ export type Database = {
27180
28727
  Args: never;
27181
28728
  Returns: Json;
27182
28729
  };
28730
+ logistics_sync_pick_queue_backlog: {
28731
+ Args: never;
28732
+ Returns: Json;
28733
+ };
28734
+ logistics_sync_pick_queue_core: {
28735
+ Args: never;
28736
+ Returns: Json;
28737
+ };
27183
28738
  logistics_sync_task_carriers: {
27184
28739
  Args: {
27185
28740
  p_order_ref?: string;
27186
28741
  };
27187
28742
  Returns: number;
27188
28743
  };
28744
+ logistics_task_open_counts: {
28745
+ Args: never;
28746
+ Returns: {
28747
+ open_count: number;
28748
+ owner_module: string;
28749
+ }[];
28750
+ };
27189
28751
  logistics_task_owner: {
27190
28752
  Args: {
27191
28753
  p_task_type: string;
@@ -27203,6 +28765,16 @@ export type Database = {
27203
28765
  Args: never;
27204
28766
  Returns: number;
27205
28767
  };
28768
+ logistics_tasks_prune: {
28769
+ Args: {
28770
+ p_days?: number;
28771
+ };
28772
+ Returns: number;
28773
+ };
28774
+ logistics_tick: {
28775
+ Args: never;
28776
+ Returns: Json;
28777
+ };
27206
28778
  logistics_tick_ping: {
27207
28779
  Args: never;
27208
28780
  Returns: string;
@@ -27543,6 +29115,17 @@ export type Database = {
27543
29115
  };
27544
29116
  Returns: boolean;
27545
29117
  };
29118
+ order_items_duplicate_report: {
29119
+ Args: {
29120
+ _order_ref?: string;
29121
+ };
29122
+ Returns: {
29123
+ distinct_products: number;
29124
+ duplicate_factor: number;
29125
+ lines: number;
29126
+ order_number: string;
29127
+ }[];
29128
+ };
27546
29129
  order_number_prefix: {
27547
29130
  Args: {
27548
29131
  p_custom_fields?: Json;
@@ -28326,6 +29909,22 @@ export type Database = {
28326
29909
  };
28327
29910
  Returns: undefined;
28328
29911
  };
29912
+ planning_apply_schedule_updates: {
29913
+ Args: {
29914
+ _updates: Json;
29915
+ };
29916
+ Returns: undefined;
29917
+ };
29918
+ planning_assert_no_overlaps: {
29919
+ Args: never;
29920
+ Returns: undefined;
29921
+ };
29922
+ planning_assert_no_overlaps_for_items: {
29923
+ Args: {
29924
+ _item_ids: string[];
29925
+ };
29926
+ Returns: undefined;
29927
+ };
28329
29928
  planning_cancel_item: {
28330
29929
  Args: {
28331
29930
  _id: string;
@@ -28437,6 +30036,19 @@ export type Database = {
28437
30036
  };
28438
30037
  Returns: boolean;
28439
30038
  };
30039
+ quote_assign_number: {
30040
+ Args: {
30041
+ _offerte_id: string;
30042
+ };
30043
+ Returns: string;
30044
+ };
30045
+ quote_create_follow_up_now: {
30046
+ Args: {
30047
+ _offerte_id: string;
30048
+ _payload?: Json;
30049
+ };
30050
+ Returns: Json;
30051
+ };
28440
30052
  quote_create_from_source: {
28441
30053
  Args: {
28442
30054
  _payload?: Json;
@@ -28680,6 +30292,10 @@ export type Database = {
28680
30292
  Args: never;
28681
30293
  Returns: undefined;
28682
30294
  };
30295
+ run_order_auto_invoice_tick: {
30296
+ Args: never;
30297
+ Returns: number;
30298
+ };
28683
30299
  run_print_queue_ticks: {
28684
30300
  Args: never;
28685
30301
  Returns: number;
@@ -29057,6 +30673,13 @@ export type Database = {
29057
30673
  };
29058
30674
  Returns: number;
29059
30675
  };
30676
+ schedule_floriday_trade_items_reconcile: {
30677
+ Args: {
30678
+ p_apikey: string;
30679
+ p_url: string;
30680
+ };
30681
+ Returns: number;
30682
+ };
29060
30683
  schedule_floriday_trade_items_sync: {
29061
30684
  Args: {
29062
30685
  p_apikey: string;
@@ -29139,6 +30762,26 @@ export type Database = {
29139
30762
  };
29140
30763
  Returns: undefined;
29141
30764
  };
30765
+ set_product_stock: {
30766
+ Args: {
30767
+ p_incoming_stock?: number;
30768
+ p_minimum_stock?: number;
30769
+ p_notes?: string;
30770
+ p_physical_stock: number;
30771
+ p_product_id: string;
30772
+ };
30773
+ Returns: {
30774
+ connection_id: string;
30775
+ incoming_stock: number;
30776
+ minimum_stock: number;
30777
+ notes: string;
30778
+ physical_stock: number;
30779
+ product_id: string;
30780
+ reserved_stock: number;
30781
+ trade_item_key: string;
30782
+ updated_at: string;
30783
+ }[];
30784
+ };
29142
30785
  show_limit: {
29143
30786
  Args: never;
29144
30787
  Returns: number;
@@ -29381,6 +31024,22 @@ export type Database = {
29381
31024
  Args: never;
29382
31025
  Returns: boolean;
29383
31026
  };
31027
+ uren_is_werkdag: {
31028
+ Args: {
31029
+ _date: string;
31030
+ _monteur: string;
31031
+ };
31032
+ Returns: boolean;
31033
+ };
31034
+ uren_korte_afwezigheid_aanvragen: {
31035
+ Args: {
31036
+ _datum: string;
31037
+ _eind: string;
31038
+ _reden: string;
31039
+ _start: string;
31040
+ };
31041
+ Returns: string;
31042
+ };
29384
31043
  uren_list_medewerkers: {
29385
31044
  Args: never;
29386
31045
  Returns: {
@@ -29401,6 +31060,45 @@ export type Database = {
29401
31060
  roles: string[];
29402
31061
  }[];
29403
31062
  };
31063
+ uren_list_planner_contacten: {
31064
+ Args: never;
31065
+ Returns: {
31066
+ display_name: string;
31067
+ id: string;
31068
+ phone: string;
31069
+ }[];
31070
+ };
31071
+ uren_maand_afsluiten: {
31072
+ Args: {
31073
+ _maand: string;
31074
+ _monteur: string;
31075
+ };
31076
+ Returns: undefined;
31077
+ };
31078
+ uren_maand_berekenen: {
31079
+ Args: {
31080
+ _maand: string;
31081
+ _monteur: string;
31082
+ };
31083
+ Returns: Json;
31084
+ };
31085
+ uren_maand_corrigeren: {
31086
+ Args: {
31087
+ _maand: string;
31088
+ _monteur: string;
31089
+ _overuren_minuten: number;
31090
+ _reden: string;
31091
+ };
31092
+ Returns: undefined;
31093
+ };
31094
+ uren_mijn_contracturen: {
31095
+ Args: never;
31096
+ Returns: number;
31097
+ };
31098
+ uren_mijn_vakantiesaldo: {
31099
+ Args: never;
31100
+ Returns: number;
31101
+ };
29404
31102
  uren_my_monteur_id: {
29405
31103
  Args: never;
29406
31104
  Returns: string;
@@ -29434,6 +31132,37 @@ export type Database = {
29434
31132
  };
29435
31133
  Returns: number;
29436
31134
  };
31135
+ uren_spiegel_bezig: {
31136
+ Args: never;
31137
+ Returns: boolean;
31138
+ };
31139
+ uren_standaardweek_beoordelen: {
31140
+ Args: {
31141
+ _goedkeuren: boolean;
31142
+ _id: string;
31143
+ _reden?: string;
31144
+ };
31145
+ Returns: undefined;
31146
+ };
31147
+ uren_standaardweek_doorzetten: {
31148
+ Args: {
31149
+ _monteur: string;
31150
+ };
31151
+ Returns: undefined;
31152
+ };
31153
+ uren_standaardweek_instellen: {
31154
+ Args: {
31155
+ _dagen: Json;
31156
+ };
31157
+ Returns: string;
31158
+ };
31159
+ uren_standaardweek_toepassen: {
31160
+ Args: {
31161
+ _dagen: Json;
31162
+ _monteur: string;
31163
+ };
31164
+ Returns: undefined;
31165
+ };
29437
31166
  uren_stop_time_log: {
29438
31167
  Args: {
29439
31168
  p_employee_id: string;
@@ -29459,6 +31188,165 @@ export type Database = {
29459
31188
  };
29460
31189
  Returns: number;
29461
31190
  };
31191
+ uren_vakantie_aanvragen: {
31192
+ Args: {
31193
+ _end_date: string;
31194
+ _hours?: number;
31195
+ _start_date: string;
31196
+ };
31197
+ Returns: string;
31198
+ };
31199
+ uren_vakantiedag_wijzigen: {
31200
+ Args: {
31201
+ _date: string;
31202
+ };
31203
+ Returns: string;
31204
+ };
31205
+ uren_vakantiesaldo_uren: {
31206
+ Args: {
31207
+ _monteur: string;
31208
+ };
31209
+ Returns: number;
31210
+ };
31211
+ uren_week_start: {
31212
+ Args: {
31213
+ _datum: string;
31214
+ };
31215
+ Returns: string;
31216
+ };
31217
+ uren_werkweek_opsturen: {
31218
+ Args: {
31219
+ _week_start: string;
31220
+ };
31221
+ Returns: {
31222
+ approved_at: string | null;
31223
+ approved_by: string | null;
31224
+ contract_hours: number;
31225
+ created_at: string;
31226
+ employee_id: string;
31227
+ id: string;
31228
+ locked: boolean;
31229
+ monteur_toelichting: string | null;
31230
+ notes: string | null;
31231
+ planned_hours: number;
31232
+ status: string;
31233
+ submitted_at: string | null;
31234
+ updated_at: string;
31235
+ variance_hours: number;
31236
+ week_start: string;
31237
+ };
31238
+ SetofOptions: {
31239
+ from: "*";
31240
+ to: "time_log_week_approvals";
31241
+ isOneToOne: true;
31242
+ isSetofReturn: false;
31243
+ };
31244
+ } | {
31245
+ Args: {
31246
+ _vrije_dagen?: string[];
31247
+ _week_start: string;
31248
+ };
31249
+ Returns: {
31250
+ approved_at: string | null;
31251
+ approved_by: string | null;
31252
+ contract_hours: number;
31253
+ created_at: string;
31254
+ employee_id: string;
31255
+ id: string;
31256
+ locked: boolean;
31257
+ monteur_toelichting: string | null;
31258
+ notes: string | null;
31259
+ planned_hours: number;
31260
+ status: string;
31261
+ submitted_at: string | null;
31262
+ updated_at: string;
31263
+ variance_hours: number;
31264
+ week_start: string;
31265
+ };
31266
+ SetofOptions: {
31267
+ from: "*";
31268
+ to: "time_log_week_approvals";
31269
+ isOneToOne: true;
31270
+ isSetofReturn: false;
31271
+ };
31272
+ } | {
31273
+ Args: {
31274
+ _toelichting?: string;
31275
+ _vrije_dagen?: string[];
31276
+ _week_start: string;
31277
+ };
31278
+ Returns: {
31279
+ approved_at: string | null;
31280
+ approved_by: string | null;
31281
+ contract_hours: number;
31282
+ created_at: string;
31283
+ employee_id: string;
31284
+ id: string;
31285
+ locked: boolean;
31286
+ monteur_toelichting: string | null;
31287
+ notes: string | null;
31288
+ planned_hours: number;
31289
+ status: string;
31290
+ submitted_at: string | null;
31291
+ updated_at: string;
31292
+ variance_hours: number;
31293
+ week_start: string;
31294
+ };
31295
+ SetofOptions: {
31296
+ from: "*";
31297
+ to: "time_log_week_approvals";
31298
+ isOneToOne: true;
31299
+ isSetofReturn: false;
31300
+ };
31301
+ };
31302
+ vakantie_dagen_gebruikt: {
31303
+ Args: {
31304
+ _user_id: string;
31305
+ _year: number;
31306
+ };
31307
+ Returns: number;
31308
+ };
31309
+ vakantie_overuren: {
31310
+ Args: {
31311
+ _user_id: string;
31312
+ _year?: number;
31313
+ };
31314
+ Returns: number;
31315
+ };
31316
+ vakantie_saldo: {
31317
+ Args: {
31318
+ _user_id: string;
31319
+ _year?: number;
31320
+ };
31321
+ Returns: {
31322
+ day_hours: number;
31323
+ earned_from_overtime_days: number;
31324
+ entitlement_days: number;
31325
+ hours_to_next_day: number;
31326
+ overtime_hours: number;
31327
+ overtime_remainder_hours: number;
31328
+ paid_out_days: number;
31329
+ remaining_days: number;
31330
+ used_days: number;
31331
+ }[];
31332
+ };
31333
+ vakantie_saldo_overzicht: {
31334
+ Args: {
31335
+ _year?: number;
31336
+ };
31337
+ Returns: {
31338
+ day_hours: number;
31339
+ earned_from_overtime_days: number;
31340
+ entitlement_days: number;
31341
+ hours_to_next_day: number;
31342
+ overtime_hours: number;
31343
+ overtime_remainder_hours: number;
31344
+ paid_out_days: number;
31345
+ remaining_days: number;
31346
+ used_days: number;
31347
+ user_id: string;
31348
+ }[];
31349
+ };
29462
31350
  voorraad_cleanup_old_rows: {
29463
31351
  Args: never;
29464
31352
  Returns: Json;
@@ -29507,12 +31395,25 @@ export type Database = {
29507
31395
  };
29508
31396
  Returns: Json;
29509
31397
  };
31398
+ wo_list_proposals: {
31399
+ Args: {
31400
+ _status?: string;
31401
+ };
31402
+ Returns: Json;
31403
+ };
29510
31404
  wo_process_offerte_request: {
29511
31405
  Args: {
29512
31406
  _queue_id: string;
29513
31407
  };
29514
31408
  Returns: Json;
29515
31409
  };
31410
+ wo_process_proposal: {
31411
+ Args: {
31412
+ _id: string;
31413
+ _overrides?: Json;
31414
+ };
31415
+ Returns: Json;
31416
+ };
29516
31417
  wo_reject_offerte_request: {
29517
31418
  Args: {
29518
31419
  _queue_id: string;
@@ -29520,6 +31421,13 @@ export type Database = {
29520
31421
  };
29521
31422
  Returns: Json;
29522
31423
  };
31424
+ wo_reject_proposal: {
31425
+ Args: {
31426
+ _id: string;
31427
+ _reden?: string;
31428
+ };
31429
+ Returns: Json;
31430
+ };
29523
31431
  wo_set_status: {
29524
31432
  Args: {
29525
31433
  _reason?: string;