@flowselections/floriday-voorraad 1.0.48 → 1.0.50

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 (47) hide show
  1. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelCompositionCard.js +79 -6
  3. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/ArtikelWizard.js +14 -2
  5. package/dist-lib/components/voorraad/CollapsibleText.d.ts +9 -0
  6. package/dist-lib/components/voorraad/CollapsibleText.d.ts.map +1 -0
  7. package/dist-lib/components/voorraad/CollapsibleText.js +35 -0
  8. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +18 -16
  10. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  11. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  12. package/dist-lib/components/voorraad/VoorraadStockCard.js +29 -42
  13. package/dist-lib/hooks/useTradeItemStock.d.ts +3 -1
  14. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  15. package/dist-lib/hooks/useTradeItemStock.js +85 -32
  16. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  17. package/dist-lib/hooks/useVoorraadData.js +3 -2
  18. package/dist-lib/integrations/supabase/auth-middleware.d.ts +700 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.d.ts +2 -30340
  21. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.js +4 -27
  23. package/dist-lib/integrations/supabase/client.server.d.ts +700 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +720 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/floricode-required-features.functions.d.ts +700 -0
  28. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +700 -0
  30. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-env.functions.d.ts +1400 -0
  32. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts +4200 -0
  34. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +1400 -0
  36. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts +2100 -0
  38. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday-writes.functions.d.ts +1400 -0
  40. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/inventory-settings.functions.d.ts +1400 -0
  42. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/product-packing.d.ts.map +1 -1
  44. package/dist-lib/lib/product-packing.js +10 -4
  45. package/dist-lib/lib/stock-sync.functions.d.ts +1400 -0
  46. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -8474,6 +8474,72 @@ export type Database = {
8474
8474
  };
8475
8475
  Relationships: [];
8476
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
+ };
8477
8543
  invoice_items: {
8478
8544
  Row: {
8479
8545
  created_at: string;
@@ -8487,6 +8553,7 @@ export type Database = {
8487
8553
  total_cents: number;
8488
8554
  unit: string;
8489
8555
  unit_price_cents: number;
8556
+ vat_rate: number | null;
8490
8557
  };
8491
8558
  Insert: {
8492
8559
  created_at?: string;
@@ -8500,6 +8567,7 @@ export type Database = {
8500
8567
  total_cents?: number;
8501
8568
  unit?: string;
8502
8569
  unit_price_cents?: number;
8570
+ vat_rate?: number | null;
8503
8571
  };
8504
8572
  Update: {
8505
8573
  created_at?: string;
@@ -8513,6 +8581,7 @@ export type Database = {
8513
8581
  total_cents?: number;
8514
8582
  unit?: string;
8515
8583
  unit_price_cents?: number;
8584
+ vat_rate?: number | null;
8516
8585
  };
8517
8586
  Relationships: [
8518
8587
  {
@@ -8766,6 +8835,7 @@ export type Database = {
8766
8835
  };
8767
8836
  invoices: {
8768
8837
  Row: {
8838
+ branding_snapshot: Json | null;
8769
8839
  created_at: string;
8770
8840
  created_by: string | null;
8771
8841
  customer_address: string | null;
@@ -8784,6 +8854,8 @@ export type Database = {
8784
8854
  note: string | null;
8785
8855
  payment_term_days: number;
8786
8856
  reference: string | null;
8857
+ sent_at: string | null;
8858
+ sent_to: string | null;
8787
8859
  source_number: string | null;
8788
8860
  source_ref: string | null;
8789
8861
  source_type: string;
@@ -8796,6 +8868,7 @@ export type Database = {
8796
8868
  work_address: string | null;
8797
8869
  };
8798
8870
  Insert: {
8871
+ branding_snapshot?: Json | null;
8799
8872
  created_at?: string;
8800
8873
  created_by?: string | null;
8801
8874
  customer_address?: string | null;
@@ -8814,6 +8887,8 @@ export type Database = {
8814
8887
  note?: string | null;
8815
8888
  payment_term_days?: number;
8816
8889
  reference?: string | null;
8890
+ sent_at?: string | null;
8891
+ sent_to?: string | null;
8817
8892
  source_number?: string | null;
8818
8893
  source_ref?: string | null;
8819
8894
  source_type?: string;
@@ -8826,6 +8901,7 @@ export type Database = {
8826
8901
  work_address?: string | null;
8827
8902
  };
8828
8903
  Update: {
8904
+ branding_snapshot?: Json | null;
8829
8905
  created_at?: string;
8830
8906
  created_by?: string | null;
8831
8907
  customer_address?: string | null;
@@ -8844,6 +8920,8 @@ export type Database = {
8844
8920
  note?: string | null;
8845
8921
  payment_term_days?: number;
8846
8922
  reference?: string | null;
8923
+ sent_at?: string | null;
8924
+ sent_to?: string | null;
8847
8925
  source_number?: string | null;
8848
8926
  source_ref?: string | null;
8849
8927
  source_type?: string;
@@ -9565,6 +9643,7 @@ export type Database = {
9565
9643
  quantity: number;
9566
9644
  sort_order: number;
9567
9645
  source: string;
9646
+ unit: string | null;
9568
9647
  unit_price_cents: number;
9569
9648
  updated_at: string;
9570
9649
  };
@@ -9578,6 +9657,7 @@ export type Database = {
9578
9657
  quantity?: number;
9579
9658
  sort_order?: number;
9580
9659
  source?: string;
9660
+ unit?: string | null;
9581
9661
  unit_price_cents?: number;
9582
9662
  updated_at?: string;
9583
9663
  };
@@ -9591,6 +9671,7 @@ export type Database = {
9591
9671
  quantity?: number;
9592
9672
  sort_order?: number;
9593
9673
  source?: string;
9674
+ unit?: string | null;
9594
9675
  unit_price_cents?: number;
9595
9676
  updated_at?: string;
9596
9677
  };
@@ -9617,6 +9698,7 @@ export type Database = {
9617
9698
  created_at: string;
9618
9699
  default_geldigheid_dagen: number;
9619
9700
  default_vat_rate: number;
9701
+ email_purpose: string | null;
9620
9702
  id: string;
9621
9703
  singleton: boolean;
9622
9704
  updated_at: string;
@@ -9626,6 +9708,7 @@ export type Database = {
9626
9708
  created_at?: string;
9627
9709
  default_geldigheid_dagen?: number;
9628
9710
  default_vat_rate?: number;
9711
+ email_purpose?: string | null;
9629
9712
  id?: string;
9630
9713
  singleton?: boolean;
9631
9714
  updated_at?: string;
@@ -9635,6 +9718,7 @@ export type Database = {
9635
9718
  created_at?: string;
9636
9719
  default_geldigheid_dagen?: number;
9637
9720
  default_vat_rate?: number;
9721
+ email_purpose?: string | null;
9638
9722
  id?: string;
9639
9723
  singleton?: boolean;
9640
9724
  updated_at?: string;
@@ -9731,6 +9815,7 @@ export type Database = {
9731
9815
  };
9732
9816
  itk_offertes: {
9733
9817
  Row: {
9818
+ aandachtspunten: string | null;
9734
9819
  ai_generated: boolean;
9735
9820
  approved_at: string | null;
9736
9821
  binnen_mandaat: boolean;
@@ -9746,6 +9831,7 @@ export type Database = {
9746
9831
  notities: string | null;
9747
9832
  offerte_number: string | null;
9748
9833
  omschrijving: string;
9834
+ onderwerp: string | null;
9749
9835
  rejected_at: string | null;
9750
9836
  sent_at: string | null;
9751
9837
  source_number: string | null;
@@ -9758,12 +9844,15 @@ export type Database = {
9758
9844
  valid_until: string | null;
9759
9845
  vat_cents: number;
9760
9846
  vat_rate: number;
9847
+ verzonden_naar: string | null;
9761
9848
  viewed_at: string | null;
9762
9849
  volgnummer: number | null;
9850
+ voorwaarden: string | null;
9763
9851
  werkbon_id: string | null;
9764
9852
  work_location_id: string | null;
9765
9853
  };
9766
9854
  Insert: {
9855
+ aandachtspunten?: string | null;
9767
9856
  ai_generated?: boolean;
9768
9857
  approved_at?: string | null;
9769
9858
  binnen_mandaat?: boolean;
@@ -9779,6 +9868,7 @@ export type Database = {
9779
9868
  notities?: string | null;
9780
9869
  offerte_number?: string | null;
9781
9870
  omschrijving?: string;
9871
+ onderwerp?: string | null;
9782
9872
  rejected_at?: string | null;
9783
9873
  sent_at?: string | null;
9784
9874
  source_number?: string | null;
@@ -9791,12 +9881,15 @@ export type Database = {
9791
9881
  valid_until?: string | null;
9792
9882
  vat_cents?: number;
9793
9883
  vat_rate?: number;
9884
+ verzonden_naar?: string | null;
9794
9885
  viewed_at?: string | null;
9795
9886
  volgnummer?: number | null;
9887
+ voorwaarden?: string | null;
9796
9888
  werkbon_id?: string | null;
9797
9889
  work_location_id?: string | null;
9798
9890
  };
9799
9891
  Update: {
9892
+ aandachtspunten?: string | null;
9800
9893
  ai_generated?: boolean;
9801
9894
  approved_at?: string | null;
9802
9895
  binnen_mandaat?: boolean;
@@ -9812,6 +9905,7 @@ export type Database = {
9812
9905
  notities?: string | null;
9813
9906
  offerte_number?: string | null;
9814
9907
  omschrijving?: string;
9908
+ onderwerp?: string | null;
9815
9909
  rejected_at?: string | null;
9816
9910
  sent_at?: string | null;
9817
9911
  source_number?: string | null;
@@ -9824,8 +9918,10 @@ export type Database = {
9824
9918
  valid_until?: string | null;
9825
9919
  vat_cents?: number;
9826
9920
  vat_rate?: number;
9921
+ verzonden_naar?: string | null;
9827
9922
  viewed_at?: string | null;
9828
9923
  volgnummer?: number | null;
9924
+ voorwaarden?: string | null;
9829
9925
  werkbon_id?: string | null;
9830
9926
  work_location_id?: string | null;
9831
9927
  };
@@ -14953,6 +15049,7 @@ export type Database = {
14953
15049
  next_attempt_at: string;
14954
15050
  order_id: string;
14955
15051
  processed_at: string | null;
15052
+ send_error: string | null;
14956
15053
  status: string;
14957
15054
  updated_at: string;
14958
15055
  };
@@ -14966,6 +15063,7 @@ export type Database = {
14966
15063
  next_attempt_at?: string;
14967
15064
  order_id: string;
14968
15065
  processed_at?: string | null;
15066
+ send_error?: string | null;
14969
15067
  status?: string;
14970
15068
  updated_at?: string;
14971
15069
  };
@@ -14979,6 +15077,7 @@ export type Database = {
14979
15077
  next_attempt_at?: string;
14980
15078
  order_id?: string;
14981
15079
  processed_at?: string | null;
15080
+ send_error?: string | null;
14982
15081
  status?: string;
14983
15082
  updated_at?: string;
14984
15083
  };
@@ -18114,6 +18213,70 @@ export type Database = {
18114
18213
  };
18115
18214
  Relationships: [];
18116
18215
  };
18216
+ product_suppliers: {
18217
+ Row: {
18218
+ created_at: string;
18219
+ id: string;
18220
+ is_preferred: boolean;
18221
+ lead_time_days: number | null;
18222
+ min_order_quantity: number | null;
18223
+ notes: string | null;
18224
+ product_id: string;
18225
+ purchase_price_cents: number | null;
18226
+ supplier_article_number: string | null;
18227
+ supplier_id: string;
18228
+ updated_at: string;
18229
+ };
18230
+ Insert: {
18231
+ created_at?: string;
18232
+ id?: string;
18233
+ is_preferred?: boolean;
18234
+ lead_time_days?: number | null;
18235
+ min_order_quantity?: number | null;
18236
+ notes?: string | null;
18237
+ product_id: string;
18238
+ purchase_price_cents?: number | null;
18239
+ supplier_article_number?: string | null;
18240
+ supplier_id: string;
18241
+ updated_at?: string;
18242
+ };
18243
+ Update: {
18244
+ created_at?: string;
18245
+ id?: string;
18246
+ is_preferred?: boolean;
18247
+ lead_time_days?: number | null;
18248
+ min_order_quantity?: number | null;
18249
+ notes?: string | null;
18250
+ product_id?: string;
18251
+ purchase_price_cents?: number | null;
18252
+ supplier_article_number?: string | null;
18253
+ supplier_id?: string;
18254
+ updated_at?: string;
18255
+ };
18256
+ Relationships: [
18257
+ {
18258
+ foreignKeyName: "product_suppliers_product_id_fkey";
18259
+ columns: ["product_id"];
18260
+ isOneToOne: false;
18261
+ referencedRelation: "logistics_product_dimensions";
18262
+ referencedColumns: ["product_id"];
18263
+ },
18264
+ {
18265
+ foreignKeyName: "product_suppliers_product_id_fkey";
18266
+ columns: ["product_id"];
18267
+ isOneToOne: false;
18268
+ referencedRelation: "products";
18269
+ referencedColumns: ["id"];
18270
+ },
18271
+ {
18272
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
18273
+ columns: ["supplier_id"];
18274
+ isOneToOne: false;
18275
+ referencedRelation: "suppliers";
18276
+ referencedColumns: ["id"];
18277
+ }
18278
+ ];
18279
+ };
18117
18280
  product_tray_stickers: {
18118
18281
  Row: {
18119
18282
  bestand_url: string;
@@ -18641,9 +18804,12 @@ export type Database = {
18641
18804
  purchase_order_items: {
18642
18805
  Row: {
18643
18806
  article_number: string | null;
18807
+ cancelled_at: string | null;
18644
18808
  created_at: string;
18645
18809
  delivery_date: string | null;
18646
18810
  id: string;
18811
+ incoming_booked: number;
18812
+ line_status: string;
18647
18813
  name: string;
18648
18814
  note: string | null;
18649
18815
  pot_size: string | null;
@@ -18651,6 +18817,8 @@ export type Database = {
18651
18817
  product_type: string;
18652
18818
  purchase_order_id: string;
18653
18819
  quantity: number;
18820
+ received_at: string | null;
18821
+ received_booked: number;
18654
18822
  supplier_id: string | null;
18655
18823
  supplier_product_id: string | null;
18656
18824
  unit_price_cents: number;
@@ -18658,9 +18826,12 @@ export type Database = {
18658
18826
  };
18659
18827
  Insert: {
18660
18828
  article_number?: string | null;
18829
+ cancelled_at?: string | null;
18661
18830
  created_at?: string;
18662
18831
  delivery_date?: string | null;
18663
18832
  id?: string;
18833
+ incoming_booked?: number;
18834
+ line_status?: string;
18664
18835
  name?: string;
18665
18836
  note?: string | null;
18666
18837
  pot_size?: string | null;
@@ -18668,6 +18839,8 @@ export type Database = {
18668
18839
  product_type?: string;
18669
18840
  purchase_order_id: string;
18670
18841
  quantity?: number;
18842
+ received_at?: string | null;
18843
+ received_booked?: number;
18671
18844
  supplier_id?: string | null;
18672
18845
  supplier_product_id?: string | null;
18673
18846
  unit_price_cents?: number;
@@ -18675,9 +18848,12 @@ export type Database = {
18675
18848
  };
18676
18849
  Update: {
18677
18850
  article_number?: string | null;
18851
+ cancelled_at?: string | null;
18678
18852
  created_at?: string;
18679
18853
  delivery_date?: string | null;
18680
18854
  id?: string;
18855
+ incoming_booked?: number;
18856
+ line_status?: string;
18681
18857
  name?: string;
18682
18858
  note?: string | null;
18683
18859
  pot_size?: string | null;
@@ -18685,6 +18861,8 @@ export type Database = {
18685
18861
  product_type?: string;
18686
18862
  purchase_order_id?: string;
18687
18863
  quantity?: number;
18864
+ received_at?: string | null;
18865
+ received_booked?: number;
18688
18866
  supplier_id?: string | null;
18689
18867
  supplier_product_id?: string | null;
18690
18868
  unit_price_cents?: number;
@@ -18797,6 +18975,161 @@ export type Database = {
18797
18975
  }
18798
18976
  ];
18799
18977
  };
18978
+ purchase_request_events: {
18979
+ Row: {
18980
+ created_at: string;
18981
+ details: Json | null;
18982
+ event_type: string;
18983
+ id: string;
18984
+ request_id: string;
18985
+ };
18986
+ Insert: {
18987
+ created_at?: string;
18988
+ details?: Json | null;
18989
+ event_type: string;
18990
+ id?: string;
18991
+ request_id: string;
18992
+ };
18993
+ Update: {
18994
+ created_at?: string;
18995
+ details?: Json | null;
18996
+ event_type?: string;
18997
+ id?: string;
18998
+ request_id?: string;
18999
+ };
19000
+ Relationships: [
19001
+ {
19002
+ foreignKeyName: "purchase_request_events_request_id_fkey";
19003
+ columns: ["request_id"];
19004
+ isOneToOne: false;
19005
+ referencedRelation: "purchase_requests";
19006
+ referencedColumns: ["id"];
19007
+ }
19008
+ ];
19009
+ };
19010
+ purchase_request_responses: {
19011
+ Row: {
19012
+ confirmed_date: string | null;
19013
+ confirmed_price_cents: number | null;
19014
+ confirmed_quantity: number;
19015
+ created_at: string;
19016
+ id: string;
19017
+ not_available: boolean;
19018
+ note: string | null;
19019
+ purchase_order_item_id: string;
19020
+ request_id: string;
19021
+ updated_at: string;
19022
+ };
19023
+ Insert: {
19024
+ confirmed_date?: string | null;
19025
+ confirmed_price_cents?: number | null;
19026
+ confirmed_quantity?: number;
19027
+ created_at?: string;
19028
+ id?: string;
19029
+ not_available?: boolean;
19030
+ note?: string | null;
19031
+ purchase_order_item_id: string;
19032
+ request_id: string;
19033
+ updated_at?: string;
19034
+ };
19035
+ Update: {
19036
+ confirmed_date?: string | null;
19037
+ confirmed_price_cents?: number | null;
19038
+ confirmed_quantity?: number;
19039
+ created_at?: string;
19040
+ id?: string;
19041
+ not_available?: boolean;
19042
+ note?: string | null;
19043
+ purchase_order_item_id?: string;
19044
+ request_id?: string;
19045
+ updated_at?: string;
19046
+ };
19047
+ Relationships: [
19048
+ {
19049
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
19050
+ columns: ["purchase_order_item_id"];
19051
+ isOneToOne: false;
19052
+ referencedRelation: "purchase_order_items";
19053
+ referencedColumns: ["id"];
19054
+ },
19055
+ {
19056
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
19057
+ columns: ["request_id"];
19058
+ isOneToOne: false;
19059
+ referencedRelation: "purchase_requests";
19060
+ referencedColumns: ["id"];
19061
+ }
19062
+ ];
19063
+ };
19064
+ purchase_requests: {
19065
+ Row: {
19066
+ created_at: string;
19067
+ expires_at: string;
19068
+ first_viewed_at: string | null;
19069
+ id: string;
19070
+ processed_at: string | null;
19071
+ purchase_order_id: string;
19072
+ responded_at: string | null;
19073
+ sent_at: string;
19074
+ status: string;
19075
+ supplier_id: string | null;
19076
+ supplier_name: string;
19077
+ supplier_note: string | null;
19078
+ to_address: string | null;
19079
+ token_hash: string;
19080
+ updated_at: string;
19081
+ };
19082
+ Insert: {
19083
+ created_at?: string;
19084
+ expires_at?: string;
19085
+ first_viewed_at?: string | null;
19086
+ id?: string;
19087
+ processed_at?: string | null;
19088
+ purchase_order_id: string;
19089
+ responded_at?: string | null;
19090
+ sent_at?: string;
19091
+ status?: string;
19092
+ supplier_id?: string | null;
19093
+ supplier_name?: string;
19094
+ supplier_note?: string | null;
19095
+ to_address?: string | null;
19096
+ token_hash: string;
19097
+ updated_at?: string;
19098
+ };
19099
+ Update: {
19100
+ created_at?: string;
19101
+ expires_at?: string;
19102
+ first_viewed_at?: string | null;
19103
+ id?: string;
19104
+ processed_at?: string | null;
19105
+ purchase_order_id?: string;
19106
+ responded_at?: string | null;
19107
+ sent_at?: string;
19108
+ status?: string;
19109
+ supplier_id?: string | null;
19110
+ supplier_name?: string;
19111
+ supplier_note?: string | null;
19112
+ to_address?: string | null;
19113
+ token_hash?: string;
19114
+ updated_at?: string;
19115
+ };
19116
+ Relationships: [
19117
+ {
19118
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
19119
+ columns: ["purchase_order_id"];
19120
+ isOneToOne: false;
19121
+ referencedRelation: "purchase_orders";
19122
+ referencedColumns: ["id"];
19123
+ },
19124
+ {
19125
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
19126
+ columns: ["supplier_id"];
19127
+ isOneToOne: false;
19128
+ referencedRelation: "suppliers";
19129
+ referencedColumns: ["id"];
19130
+ }
19131
+ ];
19132
+ };
18800
19133
  reception_notifications: {
18801
19134
  Row: {
18802
19135
  booking_id: string | null;
@@ -21010,6 +21343,7 @@ export type Database = {
21010
21343
  auto_invoice_enabled: boolean;
21011
21344
  auto_invoice_start_date: string | null;
21012
21345
  auto_invoice_trigger_statuses: string[];
21346
+ auto_send_mode: string | null;
21013
21347
  created_at: string;
21014
21348
  debtor_gl_account: string;
21015
21349
  default_article_code: string | null;
@@ -21038,6 +21372,7 @@ export type Database = {
21038
21372
  auto_invoice_enabled?: boolean;
21039
21373
  auto_invoice_start_date?: string | null;
21040
21374
  auto_invoice_trigger_statuses?: string[];
21375
+ auto_send_mode?: string | null;
21041
21376
  created_at?: string;
21042
21377
  debtor_gl_account?: string;
21043
21378
  default_article_code?: string | null;
@@ -21066,6 +21401,7 @@ export type Database = {
21066
21401
  auto_invoice_enabled?: boolean;
21067
21402
  auto_invoice_start_date?: string | null;
21068
21403
  auto_invoice_trigger_statuses?: string[];
21404
+ auto_send_mode?: string | null;
21069
21405
  created_at?: string;
21070
21406
  debtor_gl_account?: string;
21071
21407
  default_article_code?: string | null;
@@ -21514,16 +21850,19 @@ export type Database = {
21514
21850
  Row: {
21515
21851
  active_environment: string;
21516
21852
  id: number;
21853
+ public_base_url: string | null;
21517
21854
  updated_at: string;
21518
21855
  };
21519
21856
  Insert: {
21520
21857
  active_environment?: string;
21521
21858
  id?: number;
21859
+ public_base_url?: string | null;
21522
21860
  updated_at?: string;
21523
21861
  };
21524
21862
  Update: {
21525
21863
  active_environment?: string;
21526
21864
  id?: number;
21865
+ public_base_url?: string | null;
21527
21866
  updated_at?: string;
21528
21867
  };
21529
21868
  Relationships: [];
@@ -21759,11 +22098,15 @@ export type Database = {
21759
22098
  monteur_id: string;
21760
22099
  netto_verschil_minuten: number;
21761
22100
  normaal_uitbetaald_minuten: number;
22101
+ omgezet_vakantie_minuten: number;
22102
+ overdracht_vorige_minuten: number;
21762
22103
  overuren_minuten: number;
21763
22104
  plus_minuten: number;
22105
+ rest_overuren_minuten: number;
21764
22106
  status: string;
21765
22107
  totaal_uitbetaald_minuten: number;
21766
22108
  updated_at: string;
22109
+ vakantie_uren_bijgeschreven: number;
21767
22110
  };
21768
22111
  Insert: {
21769
22112
  afgesloten_at?: string | null;
@@ -21780,11 +22123,15 @@ export type Database = {
21780
22123
  monteur_id: string;
21781
22124
  netto_verschil_minuten?: number;
21782
22125
  normaal_uitbetaald_minuten?: number;
22126
+ omgezet_vakantie_minuten?: number;
22127
+ overdracht_vorige_minuten?: number;
21783
22128
  overuren_minuten?: number;
21784
22129
  plus_minuten?: number;
22130
+ rest_overuren_minuten?: number;
21785
22131
  status?: string;
21786
22132
  totaal_uitbetaald_minuten?: number;
21787
22133
  updated_at?: string;
22134
+ vakantie_uren_bijgeschreven?: number;
21788
22135
  };
21789
22136
  Update: {
21790
22137
  afgesloten_at?: string | null;
@@ -21801,11 +22148,15 @@ export type Database = {
21801
22148
  monteur_id?: string;
21802
22149
  netto_verschil_minuten?: number;
21803
22150
  normaal_uitbetaald_minuten?: number;
22151
+ omgezet_vakantie_minuten?: number;
22152
+ overdracht_vorige_minuten?: number;
21804
22153
  overuren_minuten?: number;
21805
22154
  plus_minuten?: number;
22155
+ rest_overuren_minuten?: number;
21806
22156
  status?: string;
21807
22157
  totaal_uitbetaald_minuten?: number;
21808
22158
  updated_at?: string;
22159
+ vakantie_uren_bijgeschreven?: number;
21809
22160
  };
21810
22161
  Relationships: [];
21811
22162
  };
@@ -22224,6 +22575,54 @@ export type Database = {
22224
22575
  }
22225
22576
  ];
22226
22577
  };
22578
+ vakantie_uitbetalingen: {
22579
+ Row: {
22580
+ created_at: string;
22581
+ created_by: string | null;
22582
+ days: number;
22583
+ id: string;
22584
+ note: string | null;
22585
+ updated_at: string;
22586
+ user_id: string;
22587
+ year: number;
22588
+ };
22589
+ Insert: {
22590
+ created_at?: string;
22591
+ created_by?: string | null;
22592
+ days: number;
22593
+ id?: string;
22594
+ note?: string | null;
22595
+ updated_at?: string;
22596
+ user_id: string;
22597
+ year?: number;
22598
+ };
22599
+ Update: {
22600
+ created_at?: string;
22601
+ created_by?: string | null;
22602
+ days?: number;
22603
+ id?: string;
22604
+ note?: string | null;
22605
+ updated_at?: string;
22606
+ user_id?: string;
22607
+ year?: number;
22608
+ };
22609
+ Relationships: [
22610
+ {
22611
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22612
+ columns: ["created_by"];
22613
+ isOneToOne: false;
22614
+ referencedRelation: "profiles";
22615
+ referencedColumns: ["id"];
22616
+ },
22617
+ {
22618
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22619
+ columns: ["user_id"];
22620
+ isOneToOne: false;
22621
+ referencedRelation: "profiles";
22622
+ referencedColumns: ["id"];
22623
+ }
22624
+ ];
22625
+ };
22227
22626
  van_inventories: {
22228
22627
  Row: {
22229
22628
  barcode: string | null;
@@ -23539,6 +23938,83 @@ export type Database = {
23539
23938
  }
23540
23939
  ];
23541
23940
  };
23941
+ werkbon_voorstellen: {
23942
+ Row: {
23943
+ bron_werkbon_id: string;
23944
+ budget_mandate_cents: number;
23945
+ created_at: string;
23946
+ created_by: string;
23947
+ customer_id: string | null;
23948
+ id: string;
23949
+ payload: Json;
23950
+ reden: string | null;
23951
+ status: string;
23952
+ updated_at: string;
23953
+ verwerkt_door: string | null;
23954
+ verwerkt_op: string | null;
23955
+ werkbon_id: string | null;
23956
+ };
23957
+ Insert: {
23958
+ bron_werkbon_id: string;
23959
+ budget_mandate_cents?: number;
23960
+ created_at?: string;
23961
+ created_by?: string;
23962
+ customer_id?: string | null;
23963
+ id?: string;
23964
+ payload?: Json;
23965
+ reden?: string | null;
23966
+ status?: string;
23967
+ updated_at?: string;
23968
+ verwerkt_door?: string | null;
23969
+ verwerkt_op?: string | null;
23970
+ werkbon_id?: string | null;
23971
+ };
23972
+ Update: {
23973
+ bron_werkbon_id?: string;
23974
+ budget_mandate_cents?: number;
23975
+ created_at?: string;
23976
+ created_by?: string;
23977
+ customer_id?: string | null;
23978
+ id?: string;
23979
+ payload?: Json;
23980
+ reden?: string | null;
23981
+ status?: string;
23982
+ updated_at?: string;
23983
+ verwerkt_door?: string | null;
23984
+ verwerkt_op?: string | null;
23985
+ werkbon_id?: string | null;
23986
+ };
23987
+ Relationships: [
23988
+ {
23989
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23990
+ columns: ["bron_werkbon_id"];
23991
+ isOneToOne: false;
23992
+ referencedRelation: "werkbonnen";
23993
+ referencedColumns: ["id"];
23994
+ },
23995
+ {
23996
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23997
+ columns: ["bron_werkbon_id"];
23998
+ isOneToOne: false;
23999
+ referencedRelation: "wo_overview";
24000
+ referencedColumns: ["id"];
24001
+ },
24002
+ {
24003
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
24004
+ columns: ["werkbon_id"];
24005
+ isOneToOne: false;
24006
+ referencedRelation: "werkbonnen";
24007
+ referencedColumns: ["id"];
24008
+ },
24009
+ {
24010
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
24011
+ columns: ["werkbon_id"];
24012
+ isOneToOne: false;
24013
+ referencedRelation: "wo_overview";
24014
+ referencedColumns: ["id"];
24015
+ }
24016
+ ];
24017
+ };
23542
24018
  werkbonnen: {
23543
24019
  Row: {
23544
24020
  assigned_user_id: string | null;
@@ -24817,6 +25293,10 @@ export type Database = {
24817
25293
  };
24818
25294
  Returns: undefined;
24819
25295
  };
25296
+ _wo_is_planner: {
25297
+ Args: never;
25298
+ Returns: boolean;
25299
+ };
24820
25300
  afh_city_code: {
24821
25301
  Args: {
24822
25302
  _city: string;
@@ -25929,6 +26409,22 @@ export type Database = {
25929
26409
  };
25930
26410
  Returns: number;
25931
26411
  };
26412
+ get_product_stock: {
26413
+ Args: {
26414
+ p_product_id: string;
26415
+ };
26416
+ Returns: {
26417
+ connection_id: string;
26418
+ incoming_stock: number;
26419
+ minimum_stock: number;
26420
+ notes: string;
26421
+ physical_stock: number;
26422
+ product_id: string;
26423
+ reserved_stock: number;
26424
+ trade_item_key: string;
26425
+ updated_at: string;
26426
+ }[];
26427
+ };
25932
26428
  get_room_busy_windows: {
25933
26429
  Args: {
25934
26430
  p_from: string;
@@ -26233,12 +26729,57 @@ export type Database = {
26233
26729
  };
26234
26730
  Returns: Json;
26235
26731
  };
26732
+ inkoop_get_supplier_request: {
26733
+ Args: {
26734
+ _token: string;
26735
+ };
26736
+ Returns: Json;
26737
+ };
26738
+ inkoop_hash_token: {
26739
+ Args: {
26740
+ _token: string;
26741
+ };
26742
+ Returns: string;
26743
+ };
26744
+ inkoop_html_escape: {
26745
+ Args: {
26746
+ _t: string;
26747
+ };
26748
+ Returns: string;
26749
+ };
26750
+ inkoop_list_artikelen: {
26751
+ Args: never;
26752
+ Returns: {
26753
+ article_number: string;
26754
+ barcode: string;
26755
+ id: string;
26756
+ incoming_quantity: number;
26757
+ is_layer: boolean;
26758
+ location: string;
26759
+ min_quantity: number;
26760
+ preferred_supplier_name: string;
26761
+ product: string;
26762
+ product_type: string;
26763
+ purchase_price: number;
26764
+ quantity: number;
26765
+ sale_price: number;
26766
+ supplier_count: number;
26767
+ unit: string;
26768
+ }[];
26769
+ };
26236
26770
  inkoop_next_order_number: {
26237
26771
  Args: never;
26238
26772
  Returns: string;
26239
26773
  };
26774
+ inkoop_process_request: {
26775
+ Args: {
26776
+ _request_id: string;
26777
+ };
26778
+ Returns: undefined;
26779
+ };
26240
26780
  inkoop_send_order: {
26241
26781
  Args: {
26782
+ _base_url?: string;
26242
26783
  _order_id: string;
26243
26784
  };
26244
26785
  Returns: {
@@ -26246,6 +26787,44 @@ export type Database = {
26246
26787
  supplier_name: string;
26247
26788
  to_address: string;
26248
26789
  }[];
26790
+ } | {
26791
+ Args: {
26792
+ _base_url?: string;
26793
+ _order_id: string;
26794
+ _resend?: boolean;
26795
+ };
26796
+ Returns: {
26797
+ outbox_id: string;
26798
+ supplier_name: string;
26799
+ to_address: string;
26800
+ }[];
26801
+ };
26802
+ inkoop_set_preferred_supplier: {
26803
+ Args: {
26804
+ _product_id: string;
26805
+ _supplier_id: string;
26806
+ };
26807
+ Returns: undefined;
26808
+ };
26809
+ inkoop_stock_key: {
26810
+ Args: {
26811
+ p_product_id: string;
26812
+ };
26813
+ Returns: string;
26814
+ };
26815
+ inkoop_submit_supplier_response: {
26816
+ Args: {
26817
+ _lines: Json;
26818
+ _note?: string;
26819
+ _token: string;
26820
+ };
26821
+ Returns: Json;
26822
+ };
26823
+ inkoop_sync_item_stock: {
26824
+ Args: {
26825
+ p_item_id: string;
26826
+ };
26827
+ Returns: undefined;
26249
26828
  };
26250
26829
  instructie_get: {
26251
26830
  Args: {
@@ -26266,6 +26845,10 @@ export type Database = {
26266
26845
  };
26267
26846
  Returns: number;
26268
26847
  };
26848
+ invoice_branding_snapshot: {
26849
+ Args: never;
26850
+ Returns: Json;
26851
+ };
26269
26852
  invoice_create_from_source: {
26270
26853
  Args: {
26271
26854
  _payload?: Json;
@@ -26300,6 +26883,17 @@ export type Database = {
26300
26883
  };
26301
26884
  Returns: Json;
26302
26885
  };
26886
+ invoice_mark_sent: {
26887
+ Args: {
26888
+ _invoice_id: string;
26889
+ _to: string;
26890
+ };
26891
+ Returns: undefined;
26892
+ };
26893
+ invoice_peek_next_number: {
26894
+ Args: never;
26895
+ Returns: string;
26896
+ };
26303
26897
  invoice_ready_work_orders: {
26304
26898
  Args: {
26305
26899
  _limit?: number;
@@ -26312,6 +26906,18 @@ export type Database = {
26312
26906
  };
26313
26907
  Returns: Json;
26314
26908
  };
26909
+ invoice_save_branding_settings: {
26910
+ Args: {
26911
+ _payload: Json;
26912
+ };
26913
+ Returns: Json;
26914
+ };
26915
+ invoice_set_email_purpose: {
26916
+ Args: {
26917
+ _purpose: string;
26918
+ };
26919
+ Returns: string;
26920
+ };
26315
26921
  invoice_source_lines: {
26316
26922
  Args: {
26317
26923
  _source_id: string;
@@ -26319,6 +26925,19 @@ export type Database = {
26319
26925
  };
26320
26926
  Returns: Json;
26321
26927
  };
26928
+ invoice_update_full: {
26929
+ Args: {
26930
+ _invoice_id: string;
26931
+ _payload: Json;
26932
+ };
26933
+ Returns: Json;
26934
+ };
26935
+ invoice_work_order_locked: {
26936
+ Args: {
26937
+ _werkbon_id: string;
26938
+ };
26939
+ Returns: Json;
26940
+ };
26322
26941
  is_authenticated: {
26323
26942
  Args: never;
26324
26943
  Returns: boolean;
@@ -27478,6 +28097,12 @@ export type Database = {
27478
28097
  Args: never;
27479
28098
  Returns: string;
27480
28099
  };
28100
+ logistics_order_backlog_info: {
28101
+ Args: {
28102
+ p_order_id: string;
28103
+ };
28104
+ Returns: Json;
28105
+ };
27481
28106
  logistics_order_cart_approval: {
27482
28107
  Args: {
27483
28108
  _order_ref: string;
@@ -27568,6 +28193,12 @@ export type Database = {
27568
28193
  };
27569
28194
  Returns: boolean;
27570
28195
  };
28196
+ logistics_order_is_backlog: {
28197
+ Args: {
28198
+ p_order_id: string;
28199
+ };
28200
+ Returns: boolean;
28201
+ };
27571
28202
  logistics_order_is_topick: {
27572
28203
  Args: {
27573
28204
  p_order_id: string;
@@ -27709,6 +28340,10 @@ export type Database = {
27709
28340
  shifted_count: number;
27710
28341
  }[];
27711
28342
  };
28343
+ logistics_pick_backlog_max_days: {
28344
+ Args: never;
28345
+ Returns: number;
28346
+ };
27712
28347
  logistics_pick_barcode_enabled: {
27713
28348
  Args: never;
27714
28349
  Returns: boolean;
@@ -28324,12 +28959,27 @@ export type Database = {
28324
28959
  Args: never;
28325
28960
  Returns: Json;
28326
28961
  };
28962
+ logistics_sync_pick_queue_backlog: {
28963
+ Args: never;
28964
+ Returns: Json;
28965
+ };
28966
+ logistics_sync_pick_queue_core: {
28967
+ Args: never;
28968
+ Returns: Json;
28969
+ };
28327
28970
  logistics_sync_task_carriers: {
28328
28971
  Args: {
28329
28972
  p_order_ref?: string;
28330
28973
  };
28331
28974
  Returns: number;
28332
28975
  };
28976
+ logistics_task_open_counts: {
28977
+ Args: never;
28978
+ Returns: {
28979
+ open_count: number;
28980
+ owner_module: string;
28981
+ }[];
28982
+ };
28333
28983
  logistics_task_owner: {
28334
28984
  Args: {
28335
28985
  p_task_type: string;
@@ -29618,6 +30268,19 @@ export type Database = {
29618
30268
  };
29619
30269
  Returns: boolean;
29620
30270
  };
30271
+ quote_assign_number: {
30272
+ Args: {
30273
+ _offerte_id: string;
30274
+ };
30275
+ Returns: string;
30276
+ };
30277
+ quote_create_follow_up_now: {
30278
+ Args: {
30279
+ _offerte_id: string;
30280
+ _payload?: Json;
30281
+ };
30282
+ Returns: Json;
30283
+ };
29621
30284
  quote_create_from_source: {
29622
30285
  Args: {
29623
30286
  _payload?: Json;
@@ -30331,6 +30994,26 @@ export type Database = {
30331
30994
  };
30332
30995
  Returns: undefined;
30333
30996
  };
30997
+ set_product_stock: {
30998
+ Args: {
30999
+ p_incoming_stock?: number;
31000
+ p_minimum_stock?: number;
31001
+ p_notes?: string;
31002
+ p_physical_stock: number;
31003
+ p_product_id: string;
31004
+ };
31005
+ Returns: {
31006
+ connection_id: string;
31007
+ incoming_stock: number;
31008
+ minimum_stock: number;
31009
+ notes: string;
31010
+ physical_stock: number;
31011
+ product_id: string;
31012
+ reserved_stock: number;
31013
+ trade_item_key: string;
31014
+ updated_at: string;
31015
+ }[];
31016
+ };
30334
31017
  show_limit: {
30335
31018
  Args: never;
30336
31019
  Returns: number;
@@ -30855,6 +31538,13 @@ export type Database = {
30855
31538
  };
30856
31539
  Returns: number;
30857
31540
  };
31541
+ vakantie_overuren: {
31542
+ Args: {
31543
+ _user_id: string;
31544
+ _year?: number;
31545
+ };
31546
+ Returns: number;
31547
+ };
30858
31548
  vakantie_saldo: {
30859
31549
  Args: {
30860
31550
  _user_id: string;
@@ -30862,7 +31552,12 @@ export type Database = {
30862
31552
  };
30863
31553
  Returns: {
30864
31554
  day_hours: number;
31555
+ earned_from_overtime_days: number;
30865
31556
  entitlement_days: number;
31557
+ hours_to_next_day: number;
31558
+ overtime_hours: number;
31559
+ overtime_remainder_hours: number;
31560
+ paid_out_days: number;
30866
31561
  remaining_days: number;
30867
31562
  used_days: number;
30868
31563
  }[];
@@ -30873,7 +31568,12 @@ export type Database = {
30873
31568
  };
30874
31569
  Returns: {
30875
31570
  day_hours: number;
31571
+ earned_from_overtime_days: number;
30876
31572
  entitlement_days: number;
31573
+ hours_to_next_day: number;
31574
+ overtime_hours: number;
31575
+ overtime_remainder_hours: number;
31576
+ paid_out_days: number;
30877
31577
  remaining_days: number;
30878
31578
  used_days: number;
30879
31579
  user_id: string;
@@ -30927,12 +31627,25 @@ export type Database = {
30927
31627
  };
30928
31628
  Returns: Json;
30929
31629
  };
31630
+ wo_list_proposals: {
31631
+ Args: {
31632
+ _status?: string;
31633
+ };
31634
+ Returns: Json;
31635
+ };
30930
31636
  wo_process_offerte_request: {
30931
31637
  Args: {
30932
31638
  _queue_id: string;
30933
31639
  };
30934
31640
  Returns: Json;
30935
31641
  };
31642
+ wo_process_proposal: {
31643
+ Args: {
31644
+ _id: string;
31645
+ _overrides?: Json;
31646
+ };
31647
+ Returns: Json;
31648
+ };
30936
31649
  wo_reject_offerte_request: {
30937
31650
  Args: {
30938
31651
  _queue_id: string;
@@ -30940,6 +31653,13 @@ export type Database = {
30940
31653
  };
30941
31654
  Returns: Json;
30942
31655
  };
31656
+ wo_reject_proposal: {
31657
+ Args: {
31658
+ _id: string;
31659
+ _reden?: string;
31660
+ };
31661
+ Returns: Json;
31662
+ };
30943
31663
  wo_set_status: {
30944
31664
  Args: {
30945
31665
  _reason?: string;