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