@flowselections/layout-maker 1.45.19 → 1.46.1

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 (57) hide show
  1. package/dist-lib/components/DocumentenPage.d.ts.map +1 -1
  2. package/dist-lib/components/DocumentenPage.js +2 -3
  3. package/dist-lib/components/PrintQueuePage.d.ts.map +1 -1
  4. package/dist-lib/components/PrintQueuePage.js +5 -71
  5. package/dist-lib/components/PrintenPage.d.ts.map +1 -1
  6. package/dist-lib/components/PrintenPage.js +2 -3
  7. package/dist-lib/components/PrinterSetupWizard.d.ts.map +1 -1
  8. package/dist-lib/components/PrinterSetupWizard.js +2 -25
  9. package/dist-lib/components/PrintplekDetailPage.d.ts.map +1 -1
  10. package/dist-lib/components/PrintplekDetailPage.js +3 -25
  11. package/dist-lib/components/PrintplekWizard.d.ts.map +1 -1
  12. package/dist-lib/components/PrintplekWizard.js +3 -85
  13. package/dist-lib/index.d.ts +0 -8
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +0 -10
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +931 -46
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +931 -46
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts +931 -46
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +955 -47
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/aiLayout.functions.d.ts +931 -46
  25. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/printApi.d.ts +0 -2
  27. package/dist-lib/lib/printApi.d.ts.map +1 -1
  28. package/dist-lib/lib/printApi.js +0 -21
  29. package/dist-lib/lib/printQueue.server.d.ts +8 -0
  30. package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
  31. package/dist-lib/lib/printQueue.server.js +36 -67
  32. package/dist-lib/lib/printService.functions.d.ts +4425 -0
  33. package/dist-lib/lib/printService.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/voorbeeldPrint.d.ts.map +1 -1
  35. package/dist-lib/lib/voorbeeldPrint.js +7 -39
  36. package/package.json +1 -1
  37. package/dist-lib/components/PdfMapAutoSaver.d.ts +0 -6
  38. package/dist-lib/components/PdfMapAutoSaver.d.ts.map +0 -1
  39. package/dist-lib/components/PdfMapAutoSaver.js +0 -12
  40. package/dist-lib/components/PdfMapGlobaleBanner.d.ts +0 -12
  41. package/dist-lib/components/PdfMapGlobaleBanner.d.ts.map +0 -1
  42. package/dist-lib/components/PdfMapGlobaleBanner.js +0 -30
  43. package/dist-lib/components/PdfMapToestemmingBanner.d.ts +0 -8
  44. package/dist-lib/components/PdfMapToestemmingBanner.d.ts.map +0 -1
  45. package/dist-lib/components/PdfMapToestemmingBanner.js +0 -245
  46. package/dist-lib/lib/pdfJobSaver.d.ts +0 -24
  47. package/dist-lib/lib/pdfJobSaver.d.ts.map +0 -1
  48. package/dist-lib/lib/pdfJobSaver.js +0 -405
  49. package/dist-lib/lib/pdfMap.d.ts +0 -90
  50. package/dist-lib/lib/pdfMap.d.ts.map +0 -1
  51. package/dist-lib/lib/pdfMap.js +0 -349
  52. package/dist-lib/lib/pdfOpslagStatus.d.ts +0 -23
  53. package/dist-lib/lib/pdfOpslagStatus.d.ts.map +0 -1
  54. package/dist-lib/lib/pdfOpslagStatus.js +0 -74
  55. package/dist-lib/lib/pdfPrinter.d.ts +0 -9
  56. package/dist-lib/lib/pdfPrinter.d.ts.map +0 -1
  57. package/dist-lib/lib/pdfPrinter.js +0 -34
@@ -734,6 +734,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
734
734
  };
735
735
  Relationships: [];
736
736
  };
737
+ artikelen_instellingen: {
738
+ Row: {
739
+ created_at: string;
740
+ id: number;
741
+ marge_procent: number;
742
+ updated_at: string;
743
+ };
744
+ Insert: {
745
+ created_at?: string;
746
+ id?: number;
747
+ marge_procent?: number;
748
+ updated_at?: string;
749
+ };
750
+ Update: {
751
+ created_at?: string;
752
+ id?: number;
753
+ marge_procent?: number;
754
+ updated_at?: string;
755
+ };
756
+ Relationships: [];
757
+ };
737
758
  artikelen_veldconfig: {
738
759
  Row: {
739
760
  bron_pad: string;
@@ -8264,6 +8285,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8264
8285
  };
8265
8286
  Relationships: [];
8266
8287
  };
8288
+ invoice_branding_settings: {
8289
+ Row: {
8290
+ address: string;
8291
+ chamber_of_commerce_number: string;
8292
+ city: string;
8293
+ company_name: string;
8294
+ created_at: string;
8295
+ email: string;
8296
+ email_purpose: string | null;
8297
+ iban: string;
8298
+ logo_path: string | null;
8299
+ payment_term_days: number;
8300
+ phone: string;
8301
+ postal_code: string;
8302
+ primary_color: string;
8303
+ secondary_color: string;
8304
+ show_company_name: boolean;
8305
+ singleton_key: boolean;
8306
+ updated_at: string;
8307
+ vat_identification_number: string;
8308
+ website: string;
8309
+ };
8310
+ Insert: {
8311
+ address?: string;
8312
+ chamber_of_commerce_number?: string;
8313
+ city?: string;
8314
+ company_name?: string;
8315
+ created_at?: string;
8316
+ email?: string;
8317
+ email_purpose?: string | null;
8318
+ iban?: string;
8319
+ logo_path?: string | null;
8320
+ payment_term_days?: number;
8321
+ phone?: string;
8322
+ postal_code?: string;
8323
+ primary_color?: string;
8324
+ secondary_color?: string;
8325
+ show_company_name?: boolean;
8326
+ singleton_key?: boolean;
8327
+ updated_at?: string;
8328
+ vat_identification_number?: string;
8329
+ website?: string;
8330
+ };
8331
+ Update: {
8332
+ address?: string;
8333
+ chamber_of_commerce_number?: string;
8334
+ city?: string;
8335
+ company_name?: string;
8336
+ created_at?: string;
8337
+ email?: string;
8338
+ email_purpose?: string | null;
8339
+ iban?: string;
8340
+ logo_path?: string | null;
8341
+ payment_term_days?: number;
8342
+ phone?: string;
8343
+ postal_code?: string;
8344
+ primary_color?: string;
8345
+ secondary_color?: string;
8346
+ show_company_name?: boolean;
8347
+ singleton_key?: boolean;
8348
+ updated_at?: string;
8349
+ vat_identification_number?: string;
8350
+ website?: string;
8351
+ };
8352
+ Relationships: [];
8353
+ };
8267
8354
  invoice_items: {
8268
8355
  Row: {
8269
8356
  created_at: string;
@@ -8277,6 +8364,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8277
8364
  total_cents: number;
8278
8365
  unit: string;
8279
8366
  unit_price_cents: number;
8367
+ vat_rate: number | null;
8280
8368
  };
8281
8369
  Insert: {
8282
8370
  created_at?: string;
@@ -8290,6 +8378,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8290
8378
  total_cents?: number;
8291
8379
  unit?: string;
8292
8380
  unit_price_cents?: number;
8381
+ vat_rate?: number | null;
8293
8382
  };
8294
8383
  Update: {
8295
8384
  created_at?: string;
@@ -8303,6 +8392,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8303
8392
  total_cents?: number;
8304
8393
  unit?: string;
8305
8394
  unit_price_cents?: number;
8395
+ vat_rate?: number | null;
8306
8396
  };
8307
8397
  Relationships: [{
8308
8398
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8548,6 +8638,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8548
8638
  };
8549
8639
  invoices: {
8550
8640
  Row: {
8641
+ branding_snapshot: import("./types.js").Json | null;
8551
8642
  created_at: string;
8552
8643
  created_by: string | null;
8553
8644
  customer_address: string | null;
@@ -8566,6 +8657,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8566
8657
  note: string | null;
8567
8658
  payment_term_days: number;
8568
8659
  reference: string | null;
8660
+ sent_at: string | null;
8661
+ sent_to: string | null;
8569
8662
  source_number: string | null;
8570
8663
  source_ref: string | null;
8571
8664
  source_type: string;
@@ -8578,6 +8671,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8578
8671
  work_address: string | null;
8579
8672
  };
8580
8673
  Insert: {
8674
+ branding_snapshot?: import("./types.js").Json | null;
8581
8675
  created_at?: string;
8582
8676
  created_by?: string | null;
8583
8677
  customer_address?: string | null;
@@ -8596,6 +8690,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8596
8690
  note?: string | null;
8597
8691
  payment_term_days?: number;
8598
8692
  reference?: string | null;
8693
+ sent_at?: string | null;
8694
+ sent_to?: string | null;
8599
8695
  source_number?: string | null;
8600
8696
  source_ref?: string | null;
8601
8697
  source_type?: string;
@@ -8608,6 +8704,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8608
8704
  work_address?: string | null;
8609
8705
  };
8610
8706
  Update: {
8707
+ branding_snapshot?: import("./types.js").Json | null;
8611
8708
  created_at?: string;
8612
8709
  created_by?: string | null;
8613
8710
  customer_address?: string | null;
@@ -8626,6 +8723,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8626
8723
  note?: string | null;
8627
8724
  payment_term_days?: number;
8628
8725
  reference?: string | null;
8726
+ sent_at?: string | null;
8727
+ sent_to?: string | null;
8629
8728
  source_number?: string | null;
8630
8729
  source_ref?: string | null;
8631
8730
  source_type?: string;
@@ -9334,6 +9433,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9334
9433
  quantity: number;
9335
9434
  sort_order: number;
9336
9435
  source: string;
9436
+ unit: string | null;
9337
9437
  unit_price_cents: number;
9338
9438
  updated_at: string;
9339
9439
  };
@@ -9347,6 +9447,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9347
9447
  quantity?: number;
9348
9448
  sort_order?: number;
9349
9449
  source?: string;
9450
+ unit?: string | null;
9350
9451
  unit_price_cents?: number;
9351
9452
  updated_at?: string;
9352
9453
  };
@@ -9360,6 +9461,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9360
9461
  quantity?: number;
9361
9462
  sort_order?: number;
9362
9463
  source?: string;
9464
+ unit?: string | null;
9363
9465
  unit_price_cents?: number;
9364
9466
  updated_at?: string;
9365
9467
  };
@@ -9383,6 +9485,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9383
9485
  created_at: string;
9384
9486
  default_geldigheid_dagen: number;
9385
9487
  default_vat_rate: number;
9488
+ email_purpose: string | null;
9386
9489
  id: string;
9387
9490
  singleton: boolean;
9388
9491
  updated_at: string;
@@ -9392,6 +9495,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9392
9495
  created_at?: string;
9393
9496
  default_geldigheid_dagen?: number;
9394
9497
  default_vat_rate?: number;
9498
+ email_purpose?: string | null;
9395
9499
  id?: string;
9396
9500
  singleton?: boolean;
9397
9501
  updated_at?: string;
@@ -9401,6 +9505,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9401
9505
  created_at?: string;
9402
9506
  default_geldigheid_dagen?: number;
9403
9507
  default_vat_rate?: number;
9508
+ email_purpose?: string | null;
9404
9509
  id?: string;
9405
9510
  singleton?: boolean;
9406
9511
  updated_at?: string;
@@ -9493,6 +9598,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9493
9598
  };
9494
9599
  itk_offertes: {
9495
9600
  Row: {
9601
+ aandachtspunten: string | null;
9496
9602
  ai_generated: boolean;
9497
9603
  approved_at: string | null;
9498
9604
  binnen_mandaat: boolean;
@@ -9508,6 +9614,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9508
9614
  notities: string | null;
9509
9615
  offerte_number: string | null;
9510
9616
  omschrijving: string;
9617
+ onderwerp: string | null;
9511
9618
  rejected_at: string | null;
9512
9619
  sent_at: string | null;
9513
9620
  source_number: string | null;
@@ -9520,12 +9627,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9520
9627
  valid_until: string | null;
9521
9628
  vat_cents: number;
9522
9629
  vat_rate: number;
9630
+ verzonden_naar: string | null;
9523
9631
  viewed_at: string | null;
9524
9632
  volgnummer: number | null;
9633
+ voorwaarden: string | null;
9525
9634
  werkbon_id: string | null;
9526
9635
  work_location_id: string | null;
9527
9636
  };
9528
9637
  Insert: {
9638
+ aandachtspunten?: string | null;
9529
9639
  ai_generated?: boolean;
9530
9640
  approved_at?: string | null;
9531
9641
  binnen_mandaat?: boolean;
@@ -9541,6 +9651,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9541
9651
  notities?: string | null;
9542
9652
  offerte_number?: string | null;
9543
9653
  omschrijving?: string;
9654
+ onderwerp?: string | null;
9544
9655
  rejected_at?: string | null;
9545
9656
  sent_at?: string | null;
9546
9657
  source_number?: string | null;
@@ -9553,12 +9664,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9553
9664
  valid_until?: string | null;
9554
9665
  vat_cents?: number;
9555
9666
  vat_rate?: number;
9667
+ verzonden_naar?: string | null;
9556
9668
  viewed_at?: string | null;
9557
9669
  volgnummer?: number | null;
9670
+ voorwaarden?: string | null;
9558
9671
  werkbon_id?: string | null;
9559
9672
  work_location_id?: string | null;
9560
9673
  };
9561
9674
  Update: {
9675
+ aandachtspunten?: string | null;
9562
9676
  ai_generated?: boolean;
9563
9677
  approved_at?: string | null;
9564
9678
  binnen_mandaat?: boolean;
@@ -9574,6 +9688,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9574
9688
  notities?: string | null;
9575
9689
  offerte_number?: string | null;
9576
9690
  omschrijving?: string;
9691
+ onderwerp?: string | null;
9577
9692
  rejected_at?: string | null;
9578
9693
  sent_at?: string | null;
9579
9694
  source_number?: string | null;
@@ -9586,8 +9701,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9586
9701
  valid_until?: string | null;
9587
9702
  vat_cents?: number;
9588
9703
  vat_rate?: number;
9704
+ verzonden_naar?: string | null;
9589
9705
  viewed_at?: string | null;
9590
9706
  volgnummer?: number | null;
9707
+ voorwaarden?: string | null;
9591
9708
  werkbon_id?: string | null;
9592
9709
  work_location_id?: string | null;
9593
9710
  };
@@ -10313,6 +10430,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10313
10430
  };
10314
10431
  Relationships: [];
10315
10432
  };
10433
+ logistics_cart_barcode_archief: {
10434
+ Row: {
10435
+ barcode: string;
10436
+ cart_id: string;
10437
+ created_at: string | null;
10438
+ gearchiveerd_op: string;
10439
+ order_id: string | null;
10440
+ };
10441
+ Insert: {
10442
+ barcode: string;
10443
+ cart_id: string;
10444
+ created_at?: string | null;
10445
+ gearchiveerd_op?: string;
10446
+ order_id?: string | null;
10447
+ };
10448
+ Update: {
10449
+ barcode?: string;
10450
+ cart_id?: string;
10451
+ created_at?: string | null;
10452
+ gearchiveerd_op?: string;
10453
+ order_id?: string | null;
10454
+ };
10455
+ Relationships: [];
10456
+ };
10316
10457
  logistics_control_scan: {
10317
10458
  Row: {
10318
10459
  approved_at: string | null;
@@ -14599,6 +14740,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14599
14740
  next_attempt_at: string;
14600
14741
  order_id: string;
14601
14742
  processed_at: string | null;
14743
+ send_error: string | null;
14602
14744
  status: string;
14603
14745
  updated_at: string;
14604
14746
  };
@@ -14612,6 +14754,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14612
14754
  next_attempt_at?: string;
14613
14755
  order_id: string;
14614
14756
  processed_at?: string | null;
14757
+ send_error?: string | null;
14615
14758
  status?: string;
14616
14759
  updated_at?: string;
14617
14760
  };
@@ -14625,6 +14768,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14625
14768
  next_attempt_at?: string;
14626
14769
  order_id?: string;
14627
14770
  processed_at?: string | null;
14771
+ send_error?: string | null;
14628
14772
  status?: string;
14629
14773
  updated_at?: string;
14630
14774
  };
@@ -15963,18 +16107,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15963
16107
  Row: {
15964
16108
  id: boolean;
15965
16109
  last_cleanup_at: string | null;
16110
+ last_error: string | null;
16111
+ last_error_at: string | null;
15966
16112
  last_sync_at: string | null;
15967
16113
  updated_at: string;
15968
16114
  };
15969
16115
  Insert: {
15970
16116
  id?: boolean;
15971
16117
  last_cleanup_at?: string | null;
16118
+ last_error?: string | null;
16119
+ last_error_at?: string | null;
15972
16120
  last_sync_at?: string | null;
15973
16121
  updated_at?: string;
15974
16122
  };
15975
16123
  Update: {
15976
16124
  id?: boolean;
15977
16125
  last_cleanup_at?: string | null;
16126
+ last_error?: string | null;
16127
+ last_error_at?: string | null;
15978
16128
  last_sync_at?: string | null;
15979
16129
  updated_at?: string;
15980
16130
  };
@@ -17654,6 +17804,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17654
17804
  };
17655
17805
  Relationships: [];
17656
17806
  };
17807
+ product_suppliers: {
17808
+ Row: {
17809
+ created_at: string;
17810
+ id: string;
17811
+ is_preferred: boolean;
17812
+ lead_time_days: number | null;
17813
+ min_order_quantity: number | null;
17814
+ notes: string | null;
17815
+ previous_price_cents: number | null;
17816
+ price_source: string;
17817
+ price_updated_at: string | null;
17818
+ product_id: string;
17819
+ purchase_price_cents: number | null;
17820
+ supplier_article_number: string | null;
17821
+ supplier_id: string;
17822
+ updated_at: string;
17823
+ };
17824
+ Insert: {
17825
+ created_at?: string;
17826
+ id?: string;
17827
+ is_preferred?: boolean;
17828
+ lead_time_days?: number | null;
17829
+ min_order_quantity?: number | null;
17830
+ notes?: string | null;
17831
+ previous_price_cents?: number | null;
17832
+ price_source?: string;
17833
+ price_updated_at?: string | null;
17834
+ product_id: string;
17835
+ purchase_price_cents?: number | null;
17836
+ supplier_article_number?: string | null;
17837
+ supplier_id: string;
17838
+ updated_at?: string;
17839
+ };
17840
+ Update: {
17841
+ created_at?: string;
17842
+ id?: string;
17843
+ is_preferred?: boolean;
17844
+ lead_time_days?: number | null;
17845
+ min_order_quantity?: number | null;
17846
+ notes?: string | null;
17847
+ previous_price_cents?: number | null;
17848
+ price_source?: string;
17849
+ price_updated_at?: string | null;
17850
+ product_id?: string;
17851
+ purchase_price_cents?: number | null;
17852
+ supplier_article_number?: string | null;
17853
+ supplier_id?: string;
17854
+ updated_at?: string;
17855
+ };
17856
+ Relationships: [{
17857
+ foreignKeyName: "product_suppliers_product_id_fkey";
17858
+ columns: ["product_id"];
17859
+ isOneToOne: false;
17860
+ referencedRelation: "logistics_product_dimensions";
17861
+ referencedColumns: ["product_id"];
17862
+ }, {
17863
+ foreignKeyName: "product_suppliers_product_id_fkey";
17864
+ columns: ["product_id"];
17865
+ isOneToOne: false;
17866
+ referencedRelation: "products";
17867
+ referencedColumns: ["id"];
17868
+ }, {
17869
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17870
+ columns: ["supplier_id"];
17871
+ isOneToOne: false;
17872
+ referencedRelation: "suppliers";
17873
+ referencedColumns: ["id"];
17874
+ }];
17875
+ };
17876
+ product_tray_stickers: {
17877
+ Row: {
17878
+ bestand_url: string;
17879
+ bestandsgrootte: number | null;
17880
+ bestandsnaam: string | null;
17881
+ bestandspad: string | null;
17882
+ created_at: string;
17883
+ product_id: string;
17884
+ updated_at: string;
17885
+ };
17886
+ Insert: {
17887
+ bestand_url: string;
17888
+ bestandsgrootte?: number | null;
17889
+ bestandsnaam?: string | null;
17890
+ bestandspad?: string | null;
17891
+ created_at?: string;
17892
+ product_id: string;
17893
+ updated_at?: string;
17894
+ };
17895
+ Update: {
17896
+ bestand_url?: string;
17897
+ bestandsgrootte?: number | null;
17898
+ bestandsnaam?: string | null;
17899
+ bestandspad?: string | null;
17900
+ created_at?: string;
17901
+ product_id?: string;
17902
+ updated_at?: string;
17903
+ };
17904
+ Relationships: [{
17905
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17906
+ columns: ["product_id"];
17907
+ isOneToOne: true;
17908
+ referencedRelation: "logistics_product_dimensions";
17909
+ referencedColumns: ["product_id"];
17910
+ }, {
17911
+ foreignKeyName: "product_tray_stickers_product_id_fkey";
17912
+ columns: ["product_id"];
17913
+ isOneToOne: true;
17914
+ referencedRelation: "products";
17915
+ referencedColumns: ["id"];
17916
+ }];
17917
+ };
17657
17918
  products: {
17658
17919
  Row: {
17659
17920
  article_number: string | null;
@@ -18116,9 +18377,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18116
18377
  purchase_order_items: {
18117
18378
  Row: {
18118
18379
  article_number: string | null;
18380
+ cancel_reason: string | null;
18381
+ cancelled_at: string | null;
18119
18382
  created_at: string;
18120
18383
  delivery_date: string | null;
18121
18384
  id: string;
18385
+ incoming_booked: number;
18386
+ line_status: string;
18122
18387
  name: string;
18123
18388
  note: string | null;
18124
18389
  pot_size: string | null;
@@ -18126,6 +18391,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18126
18391
  product_type: string;
18127
18392
  purchase_order_id: string;
18128
18393
  quantity: number;
18394
+ received_at: string | null;
18395
+ received_booked: number;
18129
18396
  supplier_id: string | null;
18130
18397
  supplier_product_id: string | null;
18131
18398
  unit_price_cents: number;
@@ -18133,9 +18400,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18133
18400
  };
18134
18401
  Insert: {
18135
18402
  article_number?: string | null;
18403
+ cancel_reason?: string | null;
18404
+ cancelled_at?: string | null;
18136
18405
  created_at?: string;
18137
18406
  delivery_date?: string | null;
18138
18407
  id?: string;
18408
+ incoming_booked?: number;
18409
+ line_status?: string;
18139
18410
  name?: string;
18140
18411
  note?: string | null;
18141
18412
  pot_size?: string | null;
@@ -18143,6 +18414,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18143
18414
  product_type?: string;
18144
18415
  purchase_order_id: string;
18145
18416
  quantity?: number;
18417
+ received_at?: string | null;
18418
+ received_booked?: number;
18146
18419
  supplier_id?: string | null;
18147
18420
  supplier_product_id?: string | null;
18148
18421
  unit_price_cents?: number;
@@ -18150,9 +18423,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18150
18423
  };
18151
18424
  Update: {
18152
18425
  article_number?: string | null;
18426
+ cancel_reason?: string | null;
18427
+ cancelled_at?: string | null;
18153
18428
  created_at?: string;
18154
18429
  delivery_date?: string | null;
18155
18430
  id?: string;
18431
+ incoming_booked?: number;
18432
+ line_status?: string;
18156
18433
  name?: string;
18157
18434
  note?: string | null;
18158
18435
  pot_size?: string | null;
@@ -18160,6 +18437,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18160
18437
  product_type?: string;
18161
18438
  purchase_order_id?: string;
18162
18439
  quantity?: number;
18440
+ received_at?: string | null;
18441
+ received_booked?: number;
18163
18442
  supplier_id?: string | null;
18164
18443
  supplier_product_id?: string | null;
18165
18444
  unit_price_cents?: number;
@@ -18263,95 +18542,242 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18263
18542
  referencedColumns: ["id"];
18264
18543
  }];
18265
18544
  };
18266
- reception_notifications: {
18545
+ purchase_request_events: {
18267
18546
  Row: {
18268
- booking_id: string | null;
18269
18547
  created_at: string;
18548
+ details: import("./types.js").Json | null;
18549
+ event_type: string;
18270
18550
  id: string;
18271
- is_read: boolean;
18272
- message: string;
18273
- recipient_email: string | null;
18274
- title: string;
18275
- type: string;
18551
+ request_id: string;
18276
18552
  };
18277
18553
  Insert: {
18278
- booking_id?: string | null;
18279
18554
  created_at?: string;
18555
+ details?: import("./types.js").Json | null;
18556
+ event_type: string;
18280
18557
  id?: string;
18281
- is_read?: boolean;
18282
- message: string;
18283
- recipient_email?: string | null;
18284
- title: string;
18285
- type: string;
18558
+ request_id: string;
18286
18559
  };
18287
18560
  Update: {
18288
- booking_id?: string | null;
18289
18561
  created_at?: string;
18562
+ details?: import("./types.js").Json | null;
18563
+ event_type?: string;
18290
18564
  id?: string;
18291
- is_read?: boolean;
18292
- message?: string;
18293
- recipient_email?: string | null;
18294
- title?: string;
18295
- type?: string;
18565
+ request_id?: string;
18296
18566
  };
18297
18567
  Relationships: [{
18298
- foreignKeyName: "reception_notifications_booking_id_fkey";
18299
- columns: ["booking_id"];
18568
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18569
+ columns: ["request_id"];
18300
18570
  isOneToOne: false;
18301
- referencedRelation: "bookings";
18571
+ referencedRelation: "purchase_requests";
18302
18572
  referencedColumns: ["id"];
18303
18573
  }];
18304
18574
  };
18305
- role_assignments: {
18575
+ purchase_request_responses: {
18306
18576
  Row: {
18577
+ confirmed_date: string | null;
18578
+ confirmed_price_cents: number | null;
18579
+ confirmed_quantity: number;
18307
18580
  created_at: string;
18308
18581
  id: string;
18309
- role_id: string;
18310
- user_id: string;
18582
+ not_available: boolean;
18583
+ note: string | null;
18584
+ purchase_order_item_id: string;
18585
+ request_id: string;
18586
+ updated_at: string;
18311
18587
  };
18312
18588
  Insert: {
18589
+ confirmed_date?: string | null;
18590
+ confirmed_price_cents?: number | null;
18591
+ confirmed_quantity?: number;
18313
18592
  created_at?: string;
18314
18593
  id?: string;
18315
- role_id: string;
18316
- user_id: string;
18594
+ not_available?: boolean;
18595
+ note?: string | null;
18596
+ purchase_order_item_id: string;
18597
+ request_id: string;
18598
+ updated_at?: string;
18317
18599
  };
18318
18600
  Update: {
18601
+ confirmed_date?: string | null;
18602
+ confirmed_price_cents?: number | null;
18603
+ confirmed_quantity?: number;
18319
18604
  created_at?: string;
18320
18605
  id?: string;
18321
- role_id?: string;
18322
- user_id?: string;
18606
+ not_available?: boolean;
18607
+ note?: string | null;
18608
+ purchase_order_item_id?: string;
18609
+ request_id?: string;
18610
+ updated_at?: string;
18323
18611
  };
18324
18612
  Relationships: [{
18325
- foreignKeyName: "role_assignments_role_id_fkey";
18326
- columns: ["role_id"];
18613
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18614
+ columns: ["purchase_order_item_id"];
18327
18615
  isOneToOne: false;
18328
- referencedRelation: "roles";
18616
+ referencedRelation: "purchase_order_items";
18617
+ referencedColumns: ["id"];
18618
+ }, {
18619
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18620
+ columns: ["request_id"];
18621
+ isOneToOne: false;
18622
+ referencedRelation: "purchase_requests";
18329
18623
  referencedColumns: ["id"];
18330
18624
  }];
18331
18625
  };
18332
- role_permissions: {
18626
+ purchase_requests: {
18333
18627
  Row: {
18334
- can_edit: boolean;
18335
- can_view: boolean;
18336
- feature_id: string;
18628
+ created_at: string;
18629
+ expires_at: string;
18630
+ first_viewed_at: string | null;
18337
18631
  id: string;
18338
- module_id: string;
18339
- role_id: string;
18632
+ processed_at: string | null;
18633
+ purchase_order_id: string;
18634
+ responded_at: string | null;
18635
+ sent_at: string;
18636
+ status: string;
18637
+ supplier_id: string | null;
18638
+ supplier_name: string;
18639
+ supplier_note: string | null;
18640
+ to_address: string | null;
18641
+ token_hash: string;
18340
18642
  updated_at: string;
18341
18643
  };
18342
18644
  Insert: {
18343
- can_edit?: boolean;
18344
- can_view?: boolean;
18345
- feature_id?: string;
18645
+ created_at?: string;
18646
+ expires_at?: string;
18647
+ first_viewed_at?: string | null;
18346
18648
  id?: string;
18347
- module_id: string;
18348
- role_id: string;
18649
+ processed_at?: string | null;
18650
+ purchase_order_id: string;
18651
+ responded_at?: string | null;
18652
+ sent_at?: string;
18653
+ status?: string;
18654
+ supplier_id?: string | null;
18655
+ supplier_name?: string;
18656
+ supplier_note?: string | null;
18657
+ to_address?: string | null;
18658
+ token_hash: string;
18349
18659
  updated_at?: string;
18350
18660
  };
18351
18661
  Update: {
18352
- can_edit?: boolean;
18353
- can_view?: boolean;
18354
- feature_id?: string;
18662
+ created_at?: string;
18663
+ expires_at?: string;
18664
+ first_viewed_at?: string | null;
18665
+ id?: string;
18666
+ processed_at?: string | null;
18667
+ purchase_order_id?: string;
18668
+ responded_at?: string | null;
18669
+ sent_at?: string;
18670
+ status?: string;
18671
+ supplier_id?: string | null;
18672
+ supplier_name?: string;
18673
+ supplier_note?: string | null;
18674
+ to_address?: string | null;
18675
+ token_hash?: string;
18676
+ updated_at?: string;
18677
+ };
18678
+ Relationships: [{
18679
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18680
+ columns: ["purchase_order_id"];
18681
+ isOneToOne: false;
18682
+ referencedRelation: "purchase_orders";
18683
+ referencedColumns: ["id"];
18684
+ }, {
18685
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18686
+ columns: ["supplier_id"];
18687
+ isOneToOne: false;
18688
+ referencedRelation: "suppliers";
18689
+ referencedColumns: ["id"];
18690
+ }];
18691
+ };
18692
+ reception_notifications: {
18693
+ Row: {
18694
+ booking_id: string | null;
18695
+ created_at: string;
18696
+ id: string;
18697
+ is_read: boolean;
18698
+ message: string;
18699
+ recipient_email: string | null;
18700
+ title: string;
18701
+ type: string;
18702
+ };
18703
+ Insert: {
18704
+ booking_id?: string | null;
18705
+ created_at?: string;
18706
+ id?: string;
18707
+ is_read?: boolean;
18708
+ message: string;
18709
+ recipient_email?: string | null;
18710
+ title: string;
18711
+ type: string;
18712
+ };
18713
+ Update: {
18714
+ booking_id?: string | null;
18715
+ created_at?: string;
18716
+ id?: string;
18717
+ is_read?: boolean;
18718
+ message?: string;
18719
+ recipient_email?: string | null;
18720
+ title?: string;
18721
+ type?: string;
18722
+ };
18723
+ Relationships: [{
18724
+ foreignKeyName: "reception_notifications_booking_id_fkey";
18725
+ columns: ["booking_id"];
18726
+ isOneToOne: false;
18727
+ referencedRelation: "bookings";
18728
+ referencedColumns: ["id"];
18729
+ }];
18730
+ };
18731
+ role_assignments: {
18732
+ Row: {
18733
+ created_at: string;
18734
+ id: string;
18735
+ role_id: string;
18736
+ user_id: string;
18737
+ };
18738
+ Insert: {
18739
+ created_at?: string;
18740
+ id?: string;
18741
+ role_id: string;
18742
+ user_id: string;
18743
+ };
18744
+ Update: {
18745
+ created_at?: string;
18746
+ id?: string;
18747
+ role_id?: string;
18748
+ user_id?: string;
18749
+ };
18750
+ Relationships: [{
18751
+ foreignKeyName: "role_assignments_role_id_fkey";
18752
+ columns: ["role_id"];
18753
+ isOneToOne: false;
18754
+ referencedRelation: "roles";
18755
+ referencedColumns: ["id"];
18756
+ }];
18757
+ };
18758
+ role_permissions: {
18759
+ Row: {
18760
+ can_edit: boolean;
18761
+ can_view: boolean;
18762
+ feature_id: string;
18763
+ id: string;
18764
+ module_id: string;
18765
+ role_id: string;
18766
+ updated_at: string;
18767
+ };
18768
+ Insert: {
18769
+ can_edit?: boolean;
18770
+ can_view?: boolean;
18771
+ feature_id?: string;
18772
+ id?: string;
18773
+ module_id: string;
18774
+ role_id: string;
18775
+ updated_at?: string;
18776
+ };
18777
+ Update: {
18778
+ can_edit?: boolean;
18779
+ can_view?: boolean;
18780
+ feature_id?: string;
18355
18781
  id?: string;
18356
18782
  module_id?: string;
18357
18783
  role_id?: string;
@@ -20426,6 +20852,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20426
20852
  auto_invoice_enabled: boolean;
20427
20853
  auto_invoice_start_date: string | null;
20428
20854
  auto_invoice_trigger_statuses: string[];
20855
+ auto_send_mode: string | null;
20429
20856
  created_at: string;
20430
20857
  debtor_gl_account: string;
20431
20858
  default_article_code: string | null;
@@ -20454,6 +20881,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20454
20881
  auto_invoice_enabled?: boolean;
20455
20882
  auto_invoice_start_date?: string | null;
20456
20883
  auto_invoice_trigger_statuses?: string[];
20884
+ auto_send_mode?: string | null;
20457
20885
  created_at?: string;
20458
20886
  debtor_gl_account?: string;
20459
20887
  default_article_code?: string | null;
@@ -20482,6 +20910,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20482
20910
  auto_invoice_enabled?: boolean;
20483
20911
  auto_invoice_start_date?: string | null;
20484
20912
  auto_invoice_trigger_statuses?: string[];
20913
+ auto_send_mode?: string | null;
20485
20914
  created_at?: string;
20486
20915
  debtor_gl_account?: string;
20487
20916
  default_article_code?: string | null;
@@ -20925,16 +21354,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20925
21354
  Row: {
20926
21355
  active_environment: string;
20927
21356
  id: number;
21357
+ public_base_url: string | null;
20928
21358
  updated_at: string;
20929
21359
  };
20930
21360
  Insert: {
20931
21361
  active_environment?: string;
20932
21362
  id?: number;
21363
+ public_base_url?: string | null;
20933
21364
  updated_at?: string;
20934
21365
  };
20935
21366
  Update: {
20936
21367
  active_environment?: string;
20937
21368
  id?: number;
21369
+ public_base_url?: string | null;
20938
21370
  updated_at?: string;
20939
21371
  };
20940
21372
  Relationships: [];
@@ -21165,11 +21597,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21165
21597
  monteur_id: string;
21166
21598
  netto_verschil_minuten: number;
21167
21599
  normaal_uitbetaald_minuten: number;
21600
+ omgezet_vakantie_minuten: number;
21601
+ overdracht_vorige_minuten: number;
21168
21602
  overuren_minuten: number;
21169
21603
  plus_minuten: number;
21604
+ rest_overuren_minuten: number;
21170
21605
  status: string;
21171
21606
  totaal_uitbetaald_minuten: number;
21172
21607
  updated_at: string;
21608
+ vakantie_uren_bijgeschreven: number;
21173
21609
  };
21174
21610
  Insert: {
21175
21611
  afgesloten_at?: string | null;
@@ -21186,11 +21622,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21186
21622
  monteur_id: string;
21187
21623
  netto_verschil_minuten?: number;
21188
21624
  normaal_uitbetaald_minuten?: number;
21625
+ omgezet_vakantie_minuten?: number;
21626
+ overdracht_vorige_minuten?: number;
21189
21627
  overuren_minuten?: number;
21190
21628
  plus_minuten?: number;
21629
+ rest_overuren_minuten?: number;
21191
21630
  status?: string;
21192
21631
  totaal_uitbetaald_minuten?: number;
21193
21632
  updated_at?: string;
21633
+ vakantie_uren_bijgeschreven?: number;
21194
21634
  };
21195
21635
  Update: {
21196
21636
  afgesloten_at?: string | null;
@@ -21207,11 +21647,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21207
21647
  monteur_id?: string;
21208
21648
  netto_verschil_minuten?: number;
21209
21649
  normaal_uitbetaald_minuten?: number;
21650
+ omgezet_vakantie_minuten?: number;
21651
+ overdracht_vorige_minuten?: number;
21210
21652
  overuren_minuten?: number;
21211
21653
  plus_minuten?: number;
21654
+ rest_overuren_minuten?: number;
21212
21655
  status?: string;
21213
21656
  totaal_uitbetaald_minuten?: number;
21214
21657
  updated_at?: string;
21658
+ vakantie_uren_bijgeschreven?: number;
21215
21659
  };
21216
21660
  Relationships: [];
21217
21661
  };
@@ -21623,6 +22067,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21623
22067
  referencedColumns: ["id"];
21624
22068
  }];
21625
22069
  };
22070
+ vakantie_uitbetalingen: {
22071
+ Row: {
22072
+ created_at: string;
22073
+ created_by: string | null;
22074
+ days: number;
22075
+ id: string;
22076
+ note: string | null;
22077
+ updated_at: string;
22078
+ user_id: string;
22079
+ year: number;
22080
+ };
22081
+ Insert: {
22082
+ created_at?: string;
22083
+ created_by?: string | null;
22084
+ days: number;
22085
+ id?: string;
22086
+ note?: string | null;
22087
+ updated_at?: string;
22088
+ user_id: string;
22089
+ year?: number;
22090
+ };
22091
+ Update: {
22092
+ created_at?: string;
22093
+ created_by?: string | null;
22094
+ days?: number;
22095
+ id?: string;
22096
+ note?: string | null;
22097
+ updated_at?: string;
22098
+ user_id?: string;
22099
+ year?: number;
22100
+ };
22101
+ Relationships: [{
22102
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22103
+ columns: ["created_by"];
22104
+ isOneToOne: false;
22105
+ referencedRelation: "profiles";
22106
+ referencedColumns: ["id"];
22107
+ }, {
22108
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22109
+ columns: ["user_id"];
22110
+ isOneToOne: false;
22111
+ referencedRelation: "profiles";
22112
+ referencedColumns: ["id"];
22113
+ }];
22114
+ };
21626
22115
  van_inventories: {
21627
22116
  Row: {
21628
22117
  barcode: string | null;
@@ -22907,6 +23396,78 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22907
23396
  referencedColumns: ["id"];
22908
23397
  }];
22909
23398
  };
23399
+ werkbon_voorstellen: {
23400
+ Row: {
23401
+ bron_werkbon_id: string;
23402
+ budget_mandate_cents: number;
23403
+ created_at: string;
23404
+ created_by: string;
23405
+ customer_id: string | null;
23406
+ id: string;
23407
+ payload: import("./types.js").Json;
23408
+ reden: string | null;
23409
+ status: string;
23410
+ updated_at: string;
23411
+ verwerkt_door: string | null;
23412
+ verwerkt_op: string | null;
23413
+ werkbon_id: string | null;
23414
+ };
23415
+ Insert: {
23416
+ bron_werkbon_id: string;
23417
+ budget_mandate_cents?: number;
23418
+ created_at?: string;
23419
+ created_by?: string;
23420
+ customer_id?: string | null;
23421
+ id?: string;
23422
+ payload?: import("./types.js").Json;
23423
+ reden?: string | null;
23424
+ status?: string;
23425
+ updated_at?: string;
23426
+ verwerkt_door?: string | null;
23427
+ verwerkt_op?: string | null;
23428
+ werkbon_id?: string | null;
23429
+ };
23430
+ Update: {
23431
+ bron_werkbon_id?: string;
23432
+ budget_mandate_cents?: number;
23433
+ created_at?: string;
23434
+ created_by?: string;
23435
+ customer_id?: string | null;
23436
+ id?: string;
23437
+ payload?: import("./types.js").Json;
23438
+ reden?: string | null;
23439
+ status?: string;
23440
+ updated_at?: string;
23441
+ verwerkt_door?: string | null;
23442
+ verwerkt_op?: string | null;
23443
+ werkbon_id?: string | null;
23444
+ };
23445
+ Relationships: [{
23446
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23447
+ columns: ["bron_werkbon_id"];
23448
+ isOneToOne: false;
23449
+ referencedRelation: "werkbonnen";
23450
+ referencedColumns: ["id"];
23451
+ }, {
23452
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23453
+ columns: ["bron_werkbon_id"];
23454
+ isOneToOne: false;
23455
+ referencedRelation: "wo_overview";
23456
+ referencedColumns: ["id"];
23457
+ }, {
23458
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23459
+ columns: ["werkbon_id"];
23460
+ isOneToOne: false;
23461
+ referencedRelation: "werkbonnen";
23462
+ referencedColumns: ["id"];
23463
+ }, {
23464
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23465
+ columns: ["werkbon_id"];
23466
+ isOneToOne: false;
23467
+ referencedRelation: "wo_overview";
23468
+ referencedColumns: ["id"];
23469
+ }];
23470
+ };
22910
23471
  werkbonnen: {
22911
23472
  Row: {
22912
23473
  assigned_user_id: string | null;
@@ -24147,6 +24708,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24147
24708
  };
24148
24709
  Returns: undefined;
24149
24710
  };
24711
+ _wo_is_planner: {
24712
+ Args: never;
24713
+ Returns: boolean;
24714
+ };
24150
24715
  afh_city_code: {
24151
24716
  Args: {
24152
24717
  _city: string;
@@ -25259,6 +25824,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25259
25824
  };
25260
25825
  Returns: number;
25261
25826
  };
25827
+ get_product_stock: {
25828
+ Args: {
25829
+ p_product_id: string;
25830
+ };
25831
+ Returns: {
25832
+ connection_id: string;
25833
+ incoming_stock: number;
25834
+ minimum_stock: number;
25835
+ notes: string;
25836
+ physical_stock: number;
25837
+ product_id: string;
25838
+ reserved_stock: number;
25839
+ trade_item_key: string;
25840
+ updated_at: string;
25841
+ }[];
25842
+ };
25262
25843
  get_room_busy_windows: {
25263
25844
  Args: {
25264
25845
  p_from: string;
@@ -25563,13 +26144,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25563
26144
  };
25564
26145
  Returns: import("./types.js").Json;
25565
26146
  };
26147
+ inkoop_cancel_line: {
26148
+ Args: {
26149
+ _item_id: string;
26150
+ _reason: string;
26151
+ };
26152
+ Returns: string;
26153
+ };
26154
+ inkoop_get_supplier_request: {
26155
+ Args: {
26156
+ _token: string;
26157
+ };
26158
+ Returns: import("./types.js").Json;
26159
+ };
26160
+ inkoop_hash_token: {
26161
+ Args: {
26162
+ _token: string;
26163
+ };
26164
+ Returns: string;
26165
+ };
26166
+ inkoop_html_escape: {
26167
+ Args: {
26168
+ _t: string;
26169
+ };
26170
+ Returns: string;
26171
+ };
26172
+ inkoop_list_artikelen: {
26173
+ Args: never;
26174
+ Returns: {
26175
+ article_number: string;
26176
+ barcode: string;
26177
+ id: string;
26178
+ incoming_quantity: number;
26179
+ is_layer: boolean;
26180
+ location: string;
26181
+ min_quantity: number;
26182
+ preferred_supplier_name: string;
26183
+ product: string;
26184
+ product_type: string;
26185
+ purchase_price: number;
26186
+ quantity: number;
26187
+ sale_price: number;
26188
+ supplier_count: number;
26189
+ unit: string;
26190
+ }[];
26191
+ };
25566
26192
  inkoop_next_order_number: {
25567
26193
  Args: never;
25568
26194
  Returns: string;
25569
26195
  };
26196
+ inkoop_process_request: {
26197
+ Args: {
26198
+ _request_id: string;
26199
+ };
26200
+ Returns: undefined;
26201
+ };
25570
26202
  inkoop_send_order: {
25571
26203
  Args: {
26204
+ _base_url?: string;
25572
26205
  _order_id: string;
26206
+ _resend?: boolean;
25573
26207
  };
25574
26208
  Returns: {
25575
26209
  outbox_id: string;
@@ -25577,6 +26211,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25577
26211
  to_address: string;
25578
26212
  }[];
25579
26213
  };
26214
+ inkoop_set_preferred_supplier: {
26215
+ Args: {
26216
+ _product_id: string;
26217
+ _supplier_id: string;
26218
+ };
26219
+ Returns: undefined;
26220
+ };
26221
+ inkoop_stock_key: {
26222
+ Args: {
26223
+ p_product_id: string;
26224
+ };
26225
+ Returns: string;
26226
+ };
26227
+ inkoop_submit_supplier_response: {
26228
+ Args: {
26229
+ _lines: import("./types.js").Json;
26230
+ _note?: string;
26231
+ _token: string;
26232
+ };
26233
+ Returns: import("./types.js").Json;
26234
+ };
26235
+ inkoop_sync_item_stock: {
26236
+ Args: {
26237
+ p_item_id: string;
26238
+ };
26239
+ Returns: undefined;
26240
+ };
25580
26241
  instructie_get: {
25581
26242
  Args: {
25582
26243
  _sleutel: string;
@@ -25596,6 +26257,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25596
26257
  };
25597
26258
  Returns: number;
25598
26259
  };
26260
+ invoice_branding_snapshot: {
26261
+ Args: never;
26262
+ Returns: import("./types.js").Json;
26263
+ };
25599
26264
  invoice_create_from_source: {
25600
26265
  Args: {
25601
26266
  _payload?: import("./types.js").Json;
@@ -25630,6 +26295,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25630
26295
  };
25631
26296
  Returns: import("./types.js").Json;
25632
26297
  };
26298
+ invoice_mark_sent: {
26299
+ Args: {
26300
+ _invoice_id: string;
26301
+ _to: string;
26302
+ };
26303
+ Returns: undefined;
26304
+ };
26305
+ invoice_peek_next_number: {
26306
+ Args: never;
26307
+ Returns: string;
26308
+ };
25633
26309
  invoice_ready_work_orders: {
25634
26310
  Args: {
25635
26311
  _limit?: number;
@@ -25642,6 +26318,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25642
26318
  };
25643
26319
  Returns: import("./types.js").Json;
25644
26320
  };
26321
+ invoice_save_branding_settings: {
26322
+ Args: {
26323
+ _payload: import("./types.js").Json;
26324
+ };
26325
+ Returns: import("./types.js").Json;
26326
+ };
26327
+ invoice_set_email_purpose: {
26328
+ Args: {
26329
+ _purpose: string;
26330
+ };
26331
+ Returns: string;
26332
+ };
25645
26333
  invoice_source_lines: {
25646
26334
  Args: {
25647
26335
  _source_id: string;
@@ -25649,6 +26337,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25649
26337
  };
25650
26338
  Returns: import("./types.js").Json;
25651
26339
  };
26340
+ invoice_update_full: {
26341
+ Args: {
26342
+ _invoice_id: string;
26343
+ _payload: import("./types.js").Json;
26344
+ };
26345
+ Returns: import("./types.js").Json;
26346
+ };
26347
+ invoice_work_order_locked: {
26348
+ Args: {
26349
+ _werkbon_id: string;
26350
+ };
26351
+ Returns: import("./types.js").Json;
26352
+ };
25652
26353
  is_authenticated: {
25653
26354
  Args: never;
25654
26355
  Returns: boolean;
@@ -25697,6 +26398,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25697
26398
  };
25698
26399
  Returns: boolean;
25699
26400
  };
26401
+ layout_print_document: {
26402
+ Args: {
26403
+ _documentnaam: string;
26404
+ _documenttype: string;
26405
+ _herkomst?: string;
26406
+ _idempotentie_sleutel?: string;
26407
+ _is_herprint?: boolean;
26408
+ _kopieen?: number;
26409
+ _layout_id?: string;
26410
+ _payload?: import("./types.js").Json;
26411
+ _pdf_base64?: string;
26412
+ _pdf_url?: string;
26413
+ _print_plek_id?: string;
26414
+ _werkplek?: string;
26415
+ };
26416
+ Returns: {
26417
+ bestaand: boolean;
26418
+ job_id: string;
26419
+ printer_id: string;
26420
+ }[];
26421
+ };
25700
26422
  list_medewerkers: {
25701
26423
  Args: never;
25702
26424
  Returns: {
@@ -25974,6 +26696,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25974
26696
  };
25975
26697
  Returns: number;
25976
26698
  };
26699
+ logistics_cart_barcode_opschonen: {
26700
+ Args: {
26701
+ p_portie?: number;
26702
+ };
26703
+ Returns: import("./types.js").Json;
26704
+ };
25977
26705
  logistics_cart_barcode_value: {
25978
26706
  Args: {
25979
26707
  _cart_id: string;
@@ -26808,6 +27536,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26808
27536
  Args: never;
26809
27537
  Returns: string;
26810
27538
  };
27539
+ logistics_order_backlog_info: {
27540
+ Args: {
27541
+ p_order_id: string;
27542
+ };
27543
+ Returns: import("./types.js").Json;
27544
+ };
26811
27545
  logistics_order_cart_approval: {
26812
27546
  Args: {
26813
27547
  _order_ref: string;
@@ -26898,6 +27632,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26898
27632
  };
26899
27633
  Returns: boolean;
26900
27634
  };
27635
+ logistics_order_is_backlog: {
27636
+ Args: {
27637
+ p_order_id: string;
27638
+ };
27639
+ Returns: boolean;
27640
+ };
26901
27641
  logistics_order_is_topick: {
26902
27642
  Args: {
26903
27643
  p_order_id: string;
@@ -27039,6 +27779,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
27039
27779
  shifted_count: number;
27040
27780
  }[];
27041
27781
  };
27782
+ logistics_pick_backlog_max_days: {
27783
+ Args: never;
27784
+ Returns: number;
27785
+ };
27042
27786
  logistics_pick_barcode_enabled: {
27043
27787
  Args: never;
27044
27788
  Returns: boolean;
@@ -27567,6 +28311,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
27567
28311
  };
27568
28312
  Returns: string;
27569
28313
  };
28314
+ logistics_shipping_note_status: {
28315
+ Args: {
28316
+ p_cart_id?: string;
28317
+ p_slip_job_id?: string;
28318
+ };
28319
+ Returns: import("./types.js").Json;
28320
+ };
27570
28321
  logistics_shipping_notes_wake_all: {
27571
28322
  Args: never;
27572
28323
  Returns: import("./types.js").Json;
@@ -27654,12 +28405,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
27654
28405
  Args: never;
27655
28406
  Returns: import("./types.js").Json;
27656
28407
  };
28408
+ logistics_sync_pick_queue_backlog: {
28409
+ Args: never;
28410
+ Returns: import("./types.js").Json;
28411
+ };
28412
+ logistics_sync_pick_queue_core: {
28413
+ Args: never;
28414
+ Returns: import("./types.js").Json;
28415
+ };
27657
28416
  logistics_sync_task_carriers: {
27658
28417
  Args: {
27659
28418
  p_order_ref?: string;
27660
28419
  };
27661
28420
  Returns: number;
27662
28421
  };
28422
+ logistics_task_open_counts: {
28423
+ Args: never;
28424
+ Returns: {
28425
+ open_count: number;
28426
+ owner_module: string;
28427
+ }[];
28428
+ };
27663
28429
  logistics_task_owner: {
27664
28430
  Args: {
27665
28431
  p_task_type: string;
@@ -28358,6 +29124,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28358
29124
  };
28359
29125
  Returns: string;
28360
29126
  };
29127
+ pick_is_reference_admin: {
29128
+ Args: never;
29129
+ Returns: boolean;
29130
+ };
28361
29131
  pick_mark_printed: {
28362
29132
  Args: {
28363
29133
  _queue_item_id: string;
@@ -28948,6 +29718,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
28948
29718
  };
28949
29719
  Returns: boolean;
28950
29720
  };
29721
+ quote_assign_number: {
29722
+ Args: {
29723
+ _offerte_id: string;
29724
+ };
29725
+ Returns: string;
29726
+ };
29727
+ quote_create_follow_up_now: {
29728
+ Args: {
29729
+ _offerte_id: string;
29730
+ _payload?: import("./types.js").Json;
29731
+ };
29732
+ Returns: import("./types.js").Json;
29733
+ };
28951
29734
  quote_create_from_source: {
28952
29735
  Args: {
28953
29736
  _payload?: import("./types.js").Json;
@@ -29218,6 +30001,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29218
30001
  };
29219
30002
  Returns: import("./types.js").Json;
29220
30003
  };
30004
+ scan_controleer_pincode: {
30005
+ Args: {
30006
+ p_pin: string;
30007
+ p_scanner_id: string;
30008
+ };
30009
+ Returns: boolean;
30010
+ };
29221
30011
  scan_dashboard_stats: {
29222
30012
  Args: {
29223
30013
  p_dagen?: number;
@@ -29237,6 +30027,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29237
30027
  };
29238
30028
  Returns: import("./types.js").Json;
29239
30029
  };
30030
+ scan_heeft_pincode: {
30031
+ Args: {
30032
+ p_scanner_id: string;
30033
+ };
30034
+ Returns: boolean;
30035
+ };
29240
30036
  scan_kar_compleet: {
29241
30037
  Args: {
29242
30038
  p_allow_reprint?: boolean;
@@ -29254,6 +30050,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29254
30050
  Args: {
29255
30051
  p_code: string;
29256
30052
  p_latency_ms?: number;
30053
+ p_medewerker?: string;
29257
30054
  p_message?: string;
29258
30055
  p_result: string;
29259
30056
  p_scanner_key?: string;
@@ -29326,6 +30123,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29326
30123
  };
29327
30124
  Returns: undefined;
29328
30125
  };
30126
+ scan_scanner_info: {
30127
+ Args: {
30128
+ p_slug: string;
30129
+ };
30130
+ Returns: {
30131
+ actief: boolean;
30132
+ heeft_pincode: boolean;
30133
+ id: string;
30134
+ naam: string;
30135
+ omschrijving: string;
30136
+ printer_id: string;
30137
+ type: string;
30138
+ vereist_medewerker: boolean;
30139
+ werkplek: string;
30140
+ }[];
30141
+ };
29329
30142
  scan_sessie_annuleren: {
29330
30143
  Args: {
29331
30144
  p_sessie_id: string;
@@ -29661,6 +30474,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29661
30474
  };
29662
30475
  Returns: undefined;
29663
30476
  };
30477
+ set_product_stock: {
30478
+ Args: {
30479
+ p_incoming_stock?: number;
30480
+ p_minimum_stock?: number;
30481
+ p_notes?: string;
30482
+ p_physical_stock: number;
30483
+ p_product_id: string;
30484
+ };
30485
+ Returns: {
30486
+ connection_id: string;
30487
+ incoming_stock: number;
30488
+ minimum_stock: number;
30489
+ notes: string;
30490
+ physical_stock: number;
30491
+ product_id: string;
30492
+ reserved_stock: number;
30493
+ trade_item_key: string;
30494
+ updated_at: string;
30495
+ }[];
30496
+ };
29664
30497
  show_limit: {
29665
30498
  Args: never;
29666
30499
  Returns: number;
@@ -30185,6 +31018,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30185
31018
  };
30186
31019
  Returns: number;
30187
31020
  };
31021
+ vakantie_overuren: {
31022
+ Args: {
31023
+ _user_id: string;
31024
+ _year?: number;
31025
+ };
31026
+ Returns: number;
31027
+ };
30188
31028
  vakantie_saldo: {
30189
31029
  Args: {
30190
31030
  _user_id: string;
@@ -30192,7 +31032,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30192
31032
  };
30193
31033
  Returns: {
30194
31034
  day_hours: number;
31035
+ earned_from_overtime_days: number;
30195
31036
  entitlement_days: number;
31037
+ hours_to_next_day: number;
31038
+ overtime_hours: number;
31039
+ overtime_remainder_hours: number;
31040
+ paid_out_days: number;
30196
31041
  remaining_days: number;
30197
31042
  used_days: number;
30198
31043
  }[];
@@ -30203,7 +31048,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30203
31048
  };
30204
31049
  Returns: {
30205
31050
  day_hours: number;
31051
+ earned_from_overtime_days: number;
30206
31052
  entitlement_days: number;
31053
+ hours_to_next_day: number;
31054
+ overtime_hours: number;
31055
+ overtime_remainder_hours: number;
31056
+ paid_out_days: number;
30207
31057
  remaining_days: number;
30208
31058
  used_days: number;
30209
31059
  user_id: string;
@@ -30251,18 +31101,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30251
31101
  };
30252
31102
  Returns: import("./types.js").Json;
30253
31103
  };
31104
+ wo_list_colleague_planning: {
31105
+ Args: {
31106
+ _from: string;
31107
+ _monteur_id: string;
31108
+ _to: string;
31109
+ };
31110
+ Returns: {
31111
+ end_at: string;
31112
+ id: string;
31113
+ role: string;
31114
+ start_at: string;
31115
+ status: string;
31116
+ werkbon_id: string;
31117
+ }[];
31118
+ };
30254
31119
  wo_list_offerte_requests: {
30255
31120
  Args: {
30256
31121
  _status?: string;
30257
31122
  };
30258
31123
  Returns: import("./types.js").Json;
30259
31124
  };
31125
+ wo_list_proposals: {
31126
+ Args: {
31127
+ _status?: string;
31128
+ };
31129
+ Returns: import("./types.js").Json;
31130
+ };
30260
31131
  wo_process_offerte_request: {
30261
31132
  Args: {
30262
31133
  _queue_id: string;
30263
31134
  };
30264
31135
  Returns: import("./types.js").Json;
30265
31136
  };
31137
+ wo_process_proposal: {
31138
+ Args: {
31139
+ _id: string;
31140
+ _overrides?: import("./types.js").Json;
31141
+ };
31142
+ Returns: import("./types.js").Json;
31143
+ };
30266
31144
  wo_reject_offerte_request: {
30267
31145
  Args: {
30268
31146
  _queue_id: string;
@@ -30270,6 +31148,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30270
31148
  };
30271
31149
  Returns: import("./types.js").Json;
30272
31150
  };
31151
+ wo_reject_proposal: {
31152
+ Args: {
31153
+ _id: string;
31154
+ _reden?: string;
31155
+ };
31156
+ Returns: import("./types.js").Json;
31157
+ };
30273
31158
  wo_set_status: {
30274
31159
  Args: {
30275
31160
  _reason?: string;