@flowselections/floriday-voorraad 1.0.27 → 1.0.28

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 (52) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +21 -8
  3. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/EditArtikelPage.js +3 -2
  5. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +5 -0
  6. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -0
  7. package/dist-lib/components/voorraad/ProductCustomFieldsCard.js +65 -0
  8. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/StockBulkButtons.js +65 -2
  10. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  11. package/dist-lib/components/voorraad/ValidationOverviewTable.js +8 -2
  12. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/VoorraadDashboard.js +4 -1
  14. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/VoorraadTable.js +10 -2
  16. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +2 -0
  17. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -0
  18. package/dist-lib/components/voorraad/VoorraadVeldenCard.js +97 -0
  19. package/dist-lib/hooks/useLocalTradeItems.d.ts +4 -4
  20. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  21. package/dist-lib/hooks/useLocalTradeItems.js +59 -35
  22. package/dist-lib/hooks/useVoorraadCustomFields.d.ts +9 -0
  23. package/dist-lib/hooks/useVoorraadCustomFields.d.ts.map +1 -0
  24. package/dist-lib/hooks/useVoorraadCustomFields.js +26 -0
  25. package/dist-lib/index.d.ts +2 -0
  26. package/dist-lib/index.d.ts.map +1 -1
  27. package/dist-lib/index.js +4 -1
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2358 -177
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +2358 -177
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +2358 -177
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +2428 -174
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/types.js +49 -0
  37. package/dist-lib/lib/floricode-required-features.functions.d.ts +2358 -177
  38. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2358 -177
  40. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/floriday-gateway.functions.d.ts +49617 -38712
  42. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +13843 -9481
  44. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/floriday-warehouse.functions.d.ts +25719 -19176
  46. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/floriday-writes.functions.d.ts +13826 -9464
  48. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/voorraad-custom-fields.d.ts +22 -0
  50. package/dist-lib/lib/voorraad-custom-fields.d.ts.map +1 -0
  51. package/dist-lib/lib/voorraad-custom-fields.js +71 -0
  52. package/package.json +1 -1
@@ -422,6 +422,63 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
422
422
  };
423
423
  Relationships: [];
424
424
  };
425
+ ai_layout_imports: {
426
+ Row: {
427
+ analyse_json: import("../integrations/supabase/types").Json;
428
+ bestand_url: string | null;
429
+ bestandsnaam: string;
430
+ bevestigd: boolean;
431
+ created_at: string;
432
+ created_by: string | null;
433
+ foutmelding: string | null;
434
+ id: string;
435
+ layout_id: string | null;
436
+ mime_type: string;
437
+ onzekere_velden: import("../integrations/supabase/types").Json;
438
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
439
+ updated_at: string;
440
+ voorstel: import("../integrations/supabase/types").Json;
441
+ };
442
+ Insert: {
443
+ analyse_json?: import("../integrations/supabase/types").Json;
444
+ bestand_url?: string | null;
445
+ bestandsnaam?: string;
446
+ bevestigd?: boolean;
447
+ created_at?: string;
448
+ created_by?: string | null;
449
+ foutmelding?: string | null;
450
+ id?: string;
451
+ layout_id?: string | null;
452
+ mime_type?: string;
453
+ onzekere_velden?: import("../integrations/supabase/types").Json;
454
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
455
+ updated_at?: string;
456
+ voorstel?: import("../integrations/supabase/types").Json;
457
+ };
458
+ Update: {
459
+ analyse_json?: import("../integrations/supabase/types").Json;
460
+ bestand_url?: string | null;
461
+ bestandsnaam?: string;
462
+ bevestigd?: boolean;
463
+ created_at?: string;
464
+ created_by?: string | null;
465
+ foutmelding?: string | null;
466
+ id?: string;
467
+ layout_id?: string | null;
468
+ mime_type?: string;
469
+ onzekere_velden?: import("../integrations/supabase/types").Json;
470
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
471
+ updated_at?: string;
472
+ voorstel?: import("../integrations/supabase/types").Json;
473
+ };
474
+ Relationships: [{
475
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
476
+ columns: ["layout_id"];
477
+ isOneToOne: false;
478
+ referencedRelation: "document_layouts";
479
+ referencedColumns: ["id"];
480
+ }];
481
+ };
425
482
  ai_model_pricing: {
426
483
  Row: {
427
484
  created_at: string;
@@ -512,6 +569,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
512
569
  created_at: string;
513
570
  credential_id: string;
514
571
  id: string;
572
+ is_default: boolean;
573
+ label: string | null;
515
574
  model_id: string;
516
575
  notes: string | null;
517
576
  updated_at: string;
@@ -521,6 +580,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
521
580
  created_at?: string;
522
581
  credential_id: string;
523
582
  id?: string;
583
+ is_default?: boolean;
584
+ label?: string | null;
524
585
  model_id: string;
525
586
  notes?: string | null;
526
587
  updated_at?: string;
@@ -530,6 +591,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
530
591
  created_at?: string;
531
592
  credential_id?: string;
532
593
  id?: string;
594
+ is_default?: boolean;
595
+ label?: string | null;
533
596
  model_id?: string;
534
597
  notes?: string | null;
535
598
  updated_at?: string;
@@ -548,6 +611,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
548
611
  referencedColumns: ["id"];
549
612
  }];
550
613
  };
614
+ ai_modules: {
615
+ Row: {
616
+ ai_enabled: boolean;
617
+ created_at: string;
618
+ id: string;
619
+ module_key: string;
620
+ module_name: string;
621
+ updated_at: string;
622
+ };
623
+ Insert: {
624
+ ai_enabled?: boolean;
625
+ created_at?: string;
626
+ id?: string;
627
+ module_key: string;
628
+ module_name: string;
629
+ updated_at?: string;
630
+ };
631
+ Update: {
632
+ ai_enabled?: boolean;
633
+ created_at?: string;
634
+ id?: string;
635
+ module_key?: string;
636
+ module_name?: string;
637
+ updated_at?: string;
638
+ };
639
+ Relationships: [{
640
+ foreignKeyName: "ai_modules_module_key_fkey";
641
+ columns: ["module_key"];
642
+ isOneToOne: true;
643
+ referencedRelation: "modules";
644
+ referencedColumns: ["module_key"];
645
+ }];
646
+ };
551
647
  ai_providers: {
552
648
  Row: {
553
649
  active: boolean;
@@ -1290,6 +1386,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1290
1386
  require_same_crate_type: boolean;
1291
1387
  require_same_delivery_date: boolean;
1292
1388
  require_same_delivery_location: boolean;
1389
+ uniform_pick_time: boolean;
1390
+ uniform_pick_time_seconds: number;
1293
1391
  updated_at: string;
1294
1392
  updated_by: string | null;
1295
1393
  };
@@ -1314,6 +1412,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1314
1412
  require_same_crate_type?: boolean;
1315
1413
  require_same_delivery_date?: boolean;
1316
1414
  require_same_delivery_location?: boolean;
1415
+ uniform_pick_time?: boolean;
1416
+ uniform_pick_time_seconds?: number;
1317
1417
  updated_at?: string;
1318
1418
  updated_by?: string | null;
1319
1419
  };
@@ -1338,6 +1438,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1338
1438
  require_same_crate_type?: boolean;
1339
1439
  require_same_delivery_date?: boolean;
1340
1440
  require_same_delivery_location?: boolean;
1441
+ uniform_pick_time?: boolean;
1442
+ uniform_pick_time_seconds?: number;
1341
1443
  updated_at?: string;
1342
1444
  updated_by?: string | null;
1343
1445
  };
@@ -2471,6 +2573,351 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2471
2573
  };
2472
2574
  Relationships: [];
2473
2575
  };
2576
+ document_formaat_printers: {
2577
+ Row: {
2578
+ created_at: string;
2579
+ documenttype: string;
2580
+ formaat_code: string;
2581
+ id: string;
2582
+ printer_id: string | null;
2583
+ updated_at: string;
2584
+ };
2585
+ Insert: {
2586
+ created_at?: string;
2587
+ documenttype: string;
2588
+ formaat_code: string;
2589
+ id?: string;
2590
+ printer_id?: string | null;
2591
+ updated_at?: string;
2592
+ };
2593
+ Update: {
2594
+ created_at?: string;
2595
+ documenttype?: string;
2596
+ formaat_code?: string;
2597
+ id?: string;
2598
+ printer_id?: string | null;
2599
+ updated_at?: string;
2600
+ };
2601
+ Relationships: [{
2602
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2603
+ columns: ["printer_id"];
2604
+ isOneToOne: false;
2605
+ referencedRelation: "printers";
2606
+ referencedColumns: ["id"];
2607
+ }];
2608
+ };
2609
+ document_layout_conditions: {
2610
+ Row: {
2611
+ created_at: string;
2612
+ element_key: string;
2613
+ id: string;
2614
+ layout_id: string;
2615
+ operator: string;
2616
+ updated_at: string;
2617
+ veld: string;
2618
+ waarde: string;
2619
+ };
2620
+ Insert: {
2621
+ created_at?: string;
2622
+ element_key: string;
2623
+ id?: string;
2624
+ layout_id: string;
2625
+ operator?: string;
2626
+ updated_at?: string;
2627
+ veld: string;
2628
+ waarde?: string;
2629
+ };
2630
+ Update: {
2631
+ created_at?: string;
2632
+ element_key?: string;
2633
+ id?: string;
2634
+ layout_id?: string;
2635
+ operator?: string;
2636
+ updated_at?: string;
2637
+ veld?: string;
2638
+ waarde?: string;
2639
+ };
2640
+ Relationships: [{
2641
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2642
+ columns: ["layout_id"];
2643
+ isOneToOne: false;
2644
+ referencedRelation: "document_layouts";
2645
+ referencedColumns: ["id"];
2646
+ }];
2647
+ };
2648
+ document_layout_datasources: {
2649
+ Row: {
2650
+ alias: string;
2651
+ created_at: string;
2652
+ entiteit: string;
2653
+ filter: import("../integrations/supabase/types").Json;
2654
+ id: string;
2655
+ layout_id: string;
2656
+ module_id: string;
2657
+ updated_at: string;
2658
+ };
2659
+ Insert: {
2660
+ alias?: string;
2661
+ created_at?: string;
2662
+ entiteit: string;
2663
+ filter?: import("../integrations/supabase/types").Json;
2664
+ id?: string;
2665
+ layout_id: string;
2666
+ module_id: string;
2667
+ updated_at?: string;
2668
+ };
2669
+ Update: {
2670
+ alias?: string;
2671
+ created_at?: string;
2672
+ entiteit?: string;
2673
+ filter?: import("../integrations/supabase/types").Json;
2674
+ id?: string;
2675
+ layout_id?: string;
2676
+ module_id?: string;
2677
+ updated_at?: string;
2678
+ };
2679
+ Relationships: [{
2680
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2681
+ columns: ["layout_id"];
2682
+ isOneToOne: false;
2683
+ referencedRelation: "document_layouts";
2684
+ referencedColumns: ["id"];
2685
+ }];
2686
+ };
2687
+ document_layout_elements: {
2688
+ Row: {
2689
+ breedte: number;
2690
+ config: import("../integrations/supabase/types").Json;
2691
+ content: string;
2692
+ created_at: string;
2693
+ element_key: string;
2694
+ hoogte: number;
2695
+ id: string;
2696
+ layout_id: string;
2697
+ logo_id: string | null;
2698
+ parent_key: string | null;
2699
+ rotatie: number;
2700
+ stijl: import("../integrations/supabase/types").Json;
2701
+ type: string;
2702
+ updated_at: string;
2703
+ veldpad: string | null;
2704
+ verborgen: boolean;
2705
+ vergrendeld: boolean;
2706
+ volgorde: number;
2707
+ x: number;
2708
+ y: number;
2709
+ z_index: number;
2710
+ };
2711
+ Insert: {
2712
+ breedte?: number;
2713
+ config?: import("../integrations/supabase/types").Json;
2714
+ content?: string;
2715
+ created_at?: string;
2716
+ element_key: string;
2717
+ hoogte?: number;
2718
+ id?: string;
2719
+ layout_id: string;
2720
+ logo_id?: string | null;
2721
+ parent_key?: string | null;
2722
+ rotatie?: number;
2723
+ stijl?: import("../integrations/supabase/types").Json;
2724
+ type: string;
2725
+ updated_at?: string;
2726
+ veldpad?: string | null;
2727
+ verborgen?: boolean;
2728
+ vergrendeld?: boolean;
2729
+ volgorde?: number;
2730
+ x?: number;
2731
+ y?: number;
2732
+ z_index?: number;
2733
+ };
2734
+ Update: {
2735
+ breedte?: number;
2736
+ config?: import("../integrations/supabase/types").Json;
2737
+ content?: string;
2738
+ created_at?: string;
2739
+ element_key?: string;
2740
+ hoogte?: number;
2741
+ id?: string;
2742
+ layout_id?: string;
2743
+ logo_id?: string | null;
2744
+ parent_key?: string | null;
2745
+ rotatie?: number;
2746
+ stijl?: import("../integrations/supabase/types").Json;
2747
+ type?: string;
2748
+ updated_at?: string;
2749
+ veldpad?: string | null;
2750
+ verborgen?: boolean;
2751
+ vergrendeld?: boolean;
2752
+ volgorde?: number;
2753
+ x?: number;
2754
+ y?: number;
2755
+ z_index?: number;
2756
+ };
2757
+ Relationships: [{
2758
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2759
+ columns: ["layout_id"];
2760
+ isOneToOne: false;
2761
+ referencedRelation: "document_layouts";
2762
+ referencedColumns: ["id"];
2763
+ }, {
2764
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2765
+ columns: ["logo_id"];
2766
+ isOneToOne: false;
2767
+ referencedRelation: "layout_logos";
2768
+ referencedColumns: ["id"];
2769
+ }];
2770
+ };
2771
+ document_layout_variables: {
2772
+ Row: {
2773
+ created_at: string;
2774
+ expressie: string;
2775
+ id: string;
2776
+ layout_id: string;
2777
+ naam: string;
2778
+ omschrijving: string;
2779
+ updated_at: string;
2780
+ };
2781
+ Insert: {
2782
+ created_at?: string;
2783
+ expressie?: string;
2784
+ id?: string;
2785
+ layout_id: string;
2786
+ naam: string;
2787
+ omschrijving?: string;
2788
+ updated_at?: string;
2789
+ };
2790
+ Update: {
2791
+ created_at?: string;
2792
+ expressie?: string;
2793
+ id?: string;
2794
+ layout_id?: string;
2795
+ naam?: string;
2796
+ omschrijving?: string;
2797
+ updated_at?: string;
2798
+ };
2799
+ Relationships: [{
2800
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2801
+ columns: ["layout_id"];
2802
+ isOneToOne: false;
2803
+ referencedRelation: "document_layouts";
2804
+ referencedColumns: ["id"];
2805
+ }];
2806
+ };
2807
+ document_layout_versions: {
2808
+ Row: {
2809
+ commentaar: string;
2810
+ created_at: string;
2811
+ created_by: string | null;
2812
+ elements: import("../integrations/supabase/types").Json;
2813
+ id: string;
2814
+ layout_id: string;
2815
+ page_settings: import("../integrations/supabase/types").Json;
2816
+ updated_at: string;
2817
+ versienummer: number;
2818
+ };
2819
+ Insert: {
2820
+ commentaar?: string;
2821
+ created_at?: string;
2822
+ created_by?: string | null;
2823
+ elements?: import("../integrations/supabase/types").Json;
2824
+ id?: string;
2825
+ layout_id: string;
2826
+ page_settings?: import("../integrations/supabase/types").Json;
2827
+ updated_at?: string;
2828
+ versienummer: number;
2829
+ };
2830
+ Update: {
2831
+ commentaar?: string;
2832
+ created_at?: string;
2833
+ created_by?: string | null;
2834
+ elements?: import("../integrations/supabase/types").Json;
2835
+ id?: string;
2836
+ layout_id?: string;
2837
+ page_settings?: import("../integrations/supabase/types").Json;
2838
+ updated_at?: string;
2839
+ versienummer?: number;
2840
+ };
2841
+ Relationships: [{
2842
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2843
+ columns: ["layout_id"];
2844
+ isOneToOne: false;
2845
+ referencedRelation: "document_layouts";
2846
+ referencedColumns: ["id"];
2847
+ }];
2848
+ };
2849
+ document_layouts: {
2850
+ Row: {
2851
+ actief: boolean;
2852
+ breedte_mm: number;
2853
+ config: import("../integrations/supabase/types").Json;
2854
+ created_at: string;
2855
+ created_by: string | null;
2856
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2857
+ hoogte_mm: number;
2858
+ huidige_versie: number;
2859
+ id: string;
2860
+ is_standaard: boolean;
2861
+ marge_boven: number;
2862
+ marge_links: number;
2863
+ marge_onder: number;
2864
+ marge_rechts: number;
2865
+ naam: string;
2866
+ omschrijving: string;
2867
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2868
+ page_settings: import("../integrations/supabase/types").Json;
2869
+ papierformaat: string;
2870
+ thumbnail_url: string | null;
2871
+ updated_at: string;
2872
+ };
2873
+ Insert: {
2874
+ actief?: boolean;
2875
+ breedte_mm?: number;
2876
+ config?: import("../integrations/supabase/types").Json;
2877
+ created_at?: string;
2878
+ created_by?: string | null;
2879
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2880
+ hoogte_mm?: number;
2881
+ huidige_versie?: number;
2882
+ id?: string;
2883
+ is_standaard?: boolean;
2884
+ marge_boven?: number;
2885
+ marge_links?: number;
2886
+ marge_onder?: number;
2887
+ marge_rechts?: number;
2888
+ naam: string;
2889
+ omschrijving?: string;
2890
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2891
+ page_settings?: import("../integrations/supabase/types").Json;
2892
+ papierformaat?: string;
2893
+ thumbnail_url?: string | null;
2894
+ updated_at?: string;
2895
+ };
2896
+ Update: {
2897
+ actief?: boolean;
2898
+ breedte_mm?: number;
2899
+ config?: import("../integrations/supabase/types").Json;
2900
+ created_at?: string;
2901
+ created_by?: string | null;
2902
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2903
+ hoogte_mm?: number;
2904
+ huidige_versie?: number;
2905
+ id?: string;
2906
+ is_standaard?: boolean;
2907
+ marge_boven?: number;
2908
+ marge_links?: number;
2909
+ marge_onder?: number;
2910
+ marge_rechts?: number;
2911
+ naam?: string;
2912
+ omschrijving?: string;
2913
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2914
+ page_settings?: import("../integrations/supabase/types").Json;
2915
+ papierformaat?: string;
2916
+ thumbnail_url?: string | null;
2917
+ updated_at?: string;
2918
+ };
2919
+ Relationships: [];
2920
+ };
2474
2921
  email_auth_connections: {
2475
2922
  Row: {
2476
2923
  access_token_encrypted: string | null;
@@ -2510,6 +2957,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2510
2957
  status: string;
2511
2958
  token_expires_at: string | null;
2512
2959
  updated_at: string;
2960
+ webhook_last_attempt_at: string | null;
2961
+ webhook_last_error: string | null;
2962
+ webhook_status: string;
2513
2963
  };
2514
2964
  Insert: {
2515
2965
  access_token_encrypted?: string | null;
@@ -2549,6 +2999,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2549
2999
  status?: string;
2550
3000
  token_expires_at?: string | null;
2551
3001
  updated_at?: string;
3002
+ webhook_last_attempt_at?: string | null;
3003
+ webhook_last_error?: string | null;
3004
+ webhook_status?: string;
2552
3005
  };
2553
3006
  Update: {
2554
3007
  access_token_encrypted?: string | null;
@@ -2588,6 +3041,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2588
3041
  status?: string;
2589
3042
  token_expires_at?: string | null;
2590
3043
  updated_at?: string;
3044
+ webhook_last_attempt_at?: string | null;
3045
+ webhook_last_error?: string | null;
3046
+ webhook_status?: string;
2591
3047
  };
2592
3048
  Relationships: [];
2593
3049
  };
@@ -2783,6 +3239,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2783
3239
  referencedColumns: ["id"];
2784
3240
  }];
2785
3241
  };
3242
+ email_auth_webhook_log: {
3243
+ Row: {
3244
+ body_sample: string | null;
3245
+ connection_id: string | null;
3246
+ created_at: string;
3247
+ error_message: string | null;
3248
+ headers_sample: import("../integrations/supabase/types").Json | null;
3249
+ id: string;
3250
+ notification_count: number | null;
3251
+ provider: string | null;
3252
+ source: string | null;
3253
+ status: string;
3254
+ subscription_id: string | null;
3255
+ };
3256
+ Insert: {
3257
+ body_sample?: string | null;
3258
+ connection_id?: string | null;
3259
+ created_at?: string;
3260
+ error_message?: string | null;
3261
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3262
+ id?: string;
3263
+ notification_count?: number | null;
3264
+ provider?: string | null;
3265
+ source?: string | null;
3266
+ status: string;
3267
+ subscription_id?: string | null;
3268
+ };
3269
+ Update: {
3270
+ body_sample?: string | null;
3271
+ connection_id?: string | null;
3272
+ created_at?: string;
3273
+ error_message?: string | null;
3274
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3275
+ id?: string;
3276
+ notification_count?: number | null;
3277
+ provider?: string | null;
3278
+ source?: string | null;
3279
+ status?: string;
3280
+ subscription_id?: string | null;
3281
+ };
3282
+ Relationships: [{
3283
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3284
+ columns: ["connection_id"];
3285
+ isOneToOne: false;
3286
+ referencedRelation: "email_auth_connections";
3287
+ referencedColumns: ["id"];
3288
+ }, {
3289
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3290
+ columns: ["connection_id"];
3291
+ isOneToOne: false;
3292
+ referencedRelation: "email_auth_connections_safe";
3293
+ referencedColumns: ["id"];
3294
+ }];
3295
+ };
2786
3296
  exact_account_analytics_cache: {
2787
3297
  Row: {
2788
3298
  account_id: string;
@@ -5555,9 +6065,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5555
6065
  referencedColumns: ["id"];
5556
6066
  }];
5557
6067
  };
5558
- floriday_trips_cache: {
6068
+ floriday_trade_settings_customers_cache: {
5559
6069
  Row: {
5560
- carrier_organization_id: string | null;
5561
6070
  connection_id: string;
5562
6071
  data: import("../integrations/supabase/types").Json;
5563
6072
  fetched_at: string;
@@ -5565,12 +6074,52 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5565
6074
  id: string;
5566
6075
  is_deleted: boolean;
5567
6076
  sequence_number: number;
5568
- status: string | null;
5569
- trip_date: string | null;
5570
6077
  updated_at: string;
5571
6078
  };
5572
6079
  Insert: {
5573
- carrier_organization_id?: string | null;
6080
+ connection_id: string;
6081
+ data: import("../integrations/supabase/types").Json;
6082
+ fetched_at?: string;
6083
+ floriday_id: string;
6084
+ id?: string;
6085
+ is_deleted?: boolean;
6086
+ sequence_number?: number;
6087
+ updated_at?: string;
6088
+ };
6089
+ Update: {
6090
+ connection_id?: string;
6091
+ data?: import("../integrations/supabase/types").Json;
6092
+ fetched_at?: string;
6093
+ floriday_id?: string;
6094
+ id?: string;
6095
+ is_deleted?: boolean;
6096
+ sequence_number?: number;
6097
+ updated_at?: string;
6098
+ };
6099
+ Relationships: [{
6100
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
6101
+ columns: ["connection_id"];
6102
+ isOneToOne: false;
6103
+ referencedRelation: "floriday_connections";
6104
+ referencedColumns: ["id"];
6105
+ }];
6106
+ };
6107
+ floriday_trips_cache: {
6108
+ Row: {
6109
+ carrier_organization_id: string | null;
6110
+ connection_id: string;
6111
+ data: import("../integrations/supabase/types").Json;
6112
+ fetched_at: string;
6113
+ floriday_id: string;
6114
+ id: string;
6115
+ is_deleted: boolean;
6116
+ sequence_number: number;
6117
+ status: string | null;
6118
+ trip_date: string | null;
6119
+ updated_at: string;
6120
+ };
6121
+ Insert: {
6122
+ carrier_organization_id?: string | null;
5574
6123
  connection_id: string;
5575
6124
  data?: import("../integrations/supabase/types").Json;
5576
6125
  fetched_at?: string;
@@ -5957,6 +6506,36 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5957
6506
  };
5958
6507
  Relationships: [];
5959
6508
  };
6509
+ invoice_post_idempotency: {
6510
+ Row: {
6511
+ client_request_id: string;
6512
+ completed_at: string | null;
6513
+ created_at: string;
6514
+ error_message: string | null;
6515
+ invoice_number: string | null;
6516
+ status: string;
6517
+ user_id: string;
6518
+ };
6519
+ Insert: {
6520
+ client_request_id: string;
6521
+ completed_at?: string | null;
6522
+ created_at?: string;
6523
+ error_message?: string | null;
6524
+ invoice_number?: string | null;
6525
+ status?: string;
6526
+ user_id: string;
6527
+ };
6528
+ Update: {
6529
+ client_request_id?: string;
6530
+ completed_at?: string | null;
6531
+ created_at?: string;
6532
+ error_message?: string | null;
6533
+ invoice_number?: string | null;
6534
+ status?: string;
6535
+ user_id?: string;
6536
+ };
6537
+ Relationships: [];
6538
+ };
5960
6539
  invoice_push_log: {
5961
6540
  Row: {
5962
6541
  connection_id: string | null;
@@ -6344,6 +6923,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6344
6923
  referencedColumns: ["id"];
6345
6924
  }];
6346
6925
  };
6926
+ layout_logos: {
6927
+ Row: {
6928
+ bestand_url: string;
6929
+ bestandsgrootte: number;
6930
+ bestandspad: string | null;
6931
+ bestandstype: string;
6932
+ breedte: number;
6933
+ categorie: string;
6934
+ created_at: string;
6935
+ hash: string | null;
6936
+ hoogte: number;
6937
+ id: string;
6938
+ is_standaard: boolean;
6939
+ naam: string;
6940
+ omschrijving: string;
6941
+ transparant: boolean;
6942
+ updated_at: string;
6943
+ };
6944
+ Insert: {
6945
+ bestand_url: string;
6946
+ bestandsgrootte?: number;
6947
+ bestandspad?: string | null;
6948
+ bestandstype?: string;
6949
+ breedte?: number;
6950
+ categorie?: string;
6951
+ created_at?: string;
6952
+ hash?: string | null;
6953
+ hoogte?: number;
6954
+ id?: string;
6955
+ is_standaard?: boolean;
6956
+ naam: string;
6957
+ omschrijving?: string;
6958
+ transparant?: boolean;
6959
+ updated_at?: string;
6960
+ };
6961
+ Update: {
6962
+ bestand_url?: string;
6963
+ bestandsgrootte?: number;
6964
+ bestandspad?: string | null;
6965
+ bestandstype?: string;
6966
+ breedte?: number;
6967
+ categorie?: string;
6968
+ created_at?: string;
6969
+ hash?: string | null;
6970
+ hoogte?: number;
6971
+ id?: string;
6972
+ is_standaard?: boolean;
6973
+ naam?: string;
6974
+ omschrijving?: string;
6975
+ transparant?: boolean;
6976
+ updated_at?: string;
6977
+ };
6978
+ Relationships: [];
6979
+ };
6347
6980
  leave_requests: {
6348
6981
  Row: {
6349
6982
  created_at: string;
@@ -6887,6 +7520,99 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6887
7520
  };
6888
7521
  Relationships: [];
6889
7522
  };
7523
+ mailbox_ai_goal_prompts: {
7524
+ Row: {
7525
+ created_at: string;
7526
+ goal_key: string;
7527
+ id: string;
7528
+ system_prompt: string;
7529
+ updated_at: string;
7530
+ };
7531
+ Insert: {
7532
+ created_at?: string;
7533
+ goal_key: string;
7534
+ id?: string;
7535
+ system_prompt?: string;
7536
+ updated_at?: string;
7537
+ };
7538
+ Update: {
7539
+ created_at?: string;
7540
+ goal_key?: string;
7541
+ id?: string;
7542
+ system_prompt?: string;
7543
+ updated_at?: string;
7544
+ };
7545
+ Relationships: [];
7546
+ };
7547
+ mailbox_ai_settings: {
7548
+ Row: {
7549
+ active_goal_key: string | null;
7550
+ created_at: string;
7551
+ enabled: boolean;
7552
+ id: string;
7553
+ required_fields: string[];
7554
+ singleton: boolean;
7555
+ system_prompt: string | null;
7556
+ updated_at: string;
7557
+ };
7558
+ Insert: {
7559
+ active_goal_key?: string | null;
7560
+ created_at?: string;
7561
+ enabled?: boolean;
7562
+ id?: string;
7563
+ required_fields?: string[];
7564
+ singleton?: boolean;
7565
+ system_prompt?: string | null;
7566
+ updated_at?: string;
7567
+ };
7568
+ Update: {
7569
+ active_goal_key?: string | null;
7570
+ created_at?: string;
7571
+ enabled?: boolean;
7572
+ id?: string;
7573
+ required_fields?: string[];
7574
+ singleton?: boolean;
7575
+ system_prompt?: string | null;
7576
+ updated_at?: string;
7577
+ };
7578
+ Relationships: [];
7579
+ };
7580
+ mailbox_ingest_runs: {
7581
+ Row: {
7582
+ connection_id: string | null;
7583
+ error_sample: string | null;
7584
+ errors: number;
7585
+ finished_at: string | null;
7586
+ id: string;
7587
+ inserted: number;
7588
+ processed: number;
7589
+ started_at: string;
7590
+ trigger: string;
7591
+ };
7592
+ Insert: {
7593
+ connection_id?: string | null;
7594
+ error_sample?: string | null;
7595
+ errors?: number;
7596
+ finished_at?: string | null;
7597
+ id?: string;
7598
+ inserted?: number;
7599
+ processed?: number;
7600
+ started_at?: string;
7601
+ trigger: string;
7602
+ };
7603
+ Update: {
7604
+ connection_id?: string | null;
7605
+ error_sample?: string | null;
7606
+ errors?: number;
7607
+ finished_at?: string | null;
7608
+ id?: string;
7609
+ inserted?: number;
7610
+ processed?: number;
7611
+ started_at?: string;
7612
+ trigger?: string;
7613
+ };
7614
+ Relationships: [];
7615
+ };
6890
7616
  mailbox_messages: {
6891
7617
  Row: {
6892
7618
  body_html: string | null;
@@ -6967,6 +7693,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6967
7693
  };
6968
7694
  mailbox_order_proposals: {
6969
7695
  Row: {
7696
+ ai_validation: import("../integrations/supabase/types").Json | null;
6970
7697
  confidence: number | null;
6971
7698
  created_at: string;
6972
7699
  created_order_id: string | null;
@@ -6983,6 +7710,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6983
7710
  updated_at: string;
6984
7711
  };
6985
7712
  Insert: {
7713
+ ai_validation?: import("../integrations/supabase/types").Json | null;
6986
7714
  confidence?: number | null;
6987
7715
  created_at?: string;
6988
7716
  created_order_id?: string | null;
@@ -6999,6 +7727,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6999
7727
  updated_at?: string;
7000
7728
  };
7001
7729
  Update: {
7730
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7002
7731
  confidence?: number | null;
7003
7732
  created_at?: string;
7004
7733
  created_order_id?: string | null;
@@ -7135,6 +7864,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7135
7864
  created_at: string;
7136
7865
  id: string;
7137
7866
  match_confidence: number | null;
7867
+ plant_type: string | null;
7138
7868
  product_id: string | null;
7139
7869
  proposal_id: string;
7140
7870
  quantity: number | null;
@@ -7147,6 +7877,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7147
7877
  created_at?: string;
7148
7878
  id?: string;
7149
7879
  match_confidence?: number | null;
7880
+ plant_type?: string | null;
7150
7881
  product_id?: string | null;
7151
7882
  proposal_id: string;
7152
7883
  quantity?: number | null;
@@ -7159,6 +7890,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7159
7890
  created_at?: string;
7160
7891
  id?: string;
7161
7892
  match_confidence?: number | null;
7893
+ plant_type?: string | null;
7162
7894
  product_id?: string | null;
7163
7895
  proposal_id?: string;
7164
7896
  quantity?: number | null;
@@ -7343,6 +8075,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7343
8075
  };
7344
8076
  Relationships: [];
7345
8077
  };
8078
+ modules: {
8079
+ Row: {
8080
+ created_at: string;
8081
+ description: string | null;
8082
+ id: string;
8083
+ is_active: boolean;
8084
+ last_seen_at: string | null;
8085
+ module_key: string;
8086
+ module_name: string;
8087
+ updated_at: string;
8088
+ };
8089
+ Insert: {
8090
+ created_at?: string;
8091
+ description?: string | null;
8092
+ id?: string;
8093
+ is_active?: boolean;
8094
+ last_seen_at?: string | null;
8095
+ module_key: string;
8096
+ module_name: string;
8097
+ updated_at?: string;
8098
+ };
8099
+ Update: {
8100
+ created_at?: string;
8101
+ description?: string | null;
8102
+ id?: string;
8103
+ is_active?: boolean;
8104
+ last_seen_at?: string | null;
8105
+ module_key?: string;
8106
+ module_name?: string;
8107
+ updated_at?: string;
8108
+ };
8109
+ Relationships: [];
8110
+ };
7346
8111
  monteurs: {
7347
8112
  Row: {
7348
8113
  avatar_url: string | null;
@@ -8299,9 +9064,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8299
9064
  };
8300
9065
  order_items: {
8301
9066
  Row: {
9067
+ crates_per_layer: number | null;
8302
9068
  created_at: string;
8303
9069
  id: string;
9070
+ layers_per_cart: number | null;
8304
9071
  order_id: string;
9072
+ plants_per_crate: number | null;
8305
9073
  product_id: string | null;
8306
9074
  product_name: string;
8307
9075
  quantity: number;
@@ -8309,9 +9077,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8309
9077
  unit_price: number | null;
8310
9078
  };
8311
9079
  Insert: {
9080
+ crates_per_layer?: number | null;
8312
9081
  created_at?: string;
8313
9082
  id?: string;
9083
+ layers_per_cart?: number | null;
8314
9084
  order_id: string;
9085
+ plants_per_crate?: number | null;
8315
9086
  product_id?: string | null;
8316
9087
  product_name: string;
8317
9088
  quantity?: number;
@@ -8319,9 +9090,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8319
9090
  unit_price?: number | null;
8320
9091
  };
8321
9092
  Update: {
9093
+ crates_per_layer?: number | null;
8322
9094
  created_at?: string;
8323
9095
  id?: string;
9096
+ layers_per_cart?: number | null;
8324
9097
  order_id?: string;
9098
+ plants_per_crate?: number | null;
8325
9099
  product_id?: string | null;
8326
9100
  product_name?: string;
8327
9101
  quantity?: number;
@@ -8573,85 +9347,964 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8573
9347
  };
8574
9348
  Relationships: [];
8575
9349
  };
8576
- pickstation_print_log: {
9350
+ pick_countries: {
8577
9351
  Row: {
8578
- customer_name: string | null;
8579
- documents: string[];
9352
+ active: boolean;
9353
+ code: string;
9354
+ created_at: string;
9355
+ flag: string | null;
8580
9356
  id: string;
8581
- ip_address: string | null;
8582
- order_id: string;
8583
- order_number: string | null;
8584
- printed_at: string;
9357
+ name: string;
9358
+ sort_order: number;
9359
+ updated_at: string;
8585
9360
  };
8586
9361
  Insert: {
8587
- customer_name?: string | null;
8588
- documents?: string[];
9362
+ active?: boolean;
9363
+ code: string;
9364
+ created_at?: string;
9365
+ flag?: string | null;
8589
9366
  id?: string;
8590
- ip_address?: string | null;
8591
- order_id: string;
8592
- order_number?: string | null;
8593
- printed_at?: string;
9367
+ name: string;
9368
+ sort_order?: number;
9369
+ updated_at?: string;
8594
9370
  };
8595
9371
  Update: {
8596
- customer_name?: string | null;
8597
- documents?: string[];
9372
+ active?: boolean;
9373
+ code?: string;
9374
+ created_at?: string;
9375
+ flag?: string | null;
8598
9376
  id?: string;
8599
- ip_address?: string | null;
8600
- order_id?: string;
8601
- order_number?: string | null;
8602
- printed_at?: string;
9377
+ name?: string;
9378
+ sort_order?: number;
9379
+ updated_at?: string;
8603
9380
  };
8604
9381
  Relationships: [];
8605
9382
  };
8606
- pipeline_settings: {
9383
+ pick_document_statuses: {
8607
9384
  Row: {
9385
+ active: boolean;
9386
+ code: string;
9387
+ color: string | null;
8608
9388
  created_at: string;
8609
9389
  id: string;
8610
- key: string;
9390
+ is_open: boolean;
9391
+ is_terminal: boolean;
9392
+ name: string;
9393
+ sort_order: number;
8611
9394
  updated_at: string;
8612
- value: string | null;
8613
9395
  };
8614
9396
  Insert: {
9397
+ active?: boolean;
9398
+ code: string;
9399
+ color?: string | null;
8615
9400
  created_at?: string;
8616
9401
  id?: string;
8617
- key: string;
9402
+ is_open?: boolean;
9403
+ is_terminal?: boolean;
9404
+ name: string;
9405
+ sort_order?: number;
8618
9406
  updated_at?: string;
8619
- value?: string | null;
8620
9407
  };
8621
9408
  Update: {
9409
+ active?: boolean;
9410
+ code?: string;
9411
+ color?: string | null;
8622
9412
  created_at?: string;
8623
9413
  id?: string;
8624
- key?: string;
9414
+ is_open?: boolean;
9415
+ is_terminal?: boolean;
9416
+ name?: string;
9417
+ sort_order?: number;
8625
9418
  updated_at?: string;
8626
- value?: string | null;
8627
9419
  };
8628
9420
  Relationships: [];
8629
9421
  };
8630
- pipeline_stages: {
9422
+ pick_document_types: {
8631
9423
  Row: {
8632
- automation_type: string;
8633
- color: string;
9424
+ active: boolean;
9425
+ code: string;
9426
+ color: string | null;
8634
9427
  created_at: string;
9428
+ description: string | null;
9429
+ icon: string | null;
8635
9430
  id: string;
8636
- is_active: boolean;
8637
9431
  name: string;
9432
+ print_template: string | null;
9433
+ printer_id: string | null;
9434
+ priority: number;
9435
+ report_key: string | null;
8638
9436
  sort_order: number;
8639
9437
  updated_at: string;
9438
+ workflow: import("../integrations/supabase/types").Json;
8640
9439
  };
8641
9440
  Insert: {
8642
- automation_type?: string;
8643
- color?: string;
9441
+ active?: boolean;
9442
+ code: string;
9443
+ color?: string | null;
8644
9444
  created_at?: string;
9445
+ description?: string | null;
9446
+ icon?: string | null;
8645
9447
  id?: string;
8646
- is_active?: boolean;
8647
9448
  name: string;
9449
+ print_template?: string | null;
9450
+ printer_id?: string | null;
9451
+ priority?: number;
9452
+ report_key?: string | null;
8648
9453
  sort_order?: number;
8649
9454
  updated_at?: string;
9455
+ workflow?: import("../integrations/supabase/types").Json;
8650
9456
  };
8651
9457
  Update: {
8652
- automation_type?: string;
8653
- color?: string;
8654
- created_at?: string;
9458
+ active?: boolean;
9459
+ code?: string;
9460
+ color?: string | null;
9461
+ created_at?: string;
9462
+ description?: string | null;
9463
+ icon?: string | null;
9464
+ id?: string;
9465
+ name?: string;
9466
+ print_template?: string | null;
9467
+ printer_id?: string | null;
9468
+ priority?: number;
9469
+ report_key?: string | null;
9470
+ sort_order?: number;
9471
+ updated_at?: string;
9472
+ workflow?: import("../integrations/supabase/types").Json;
9473
+ };
9474
+ Relationships: [{
9475
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9476
+ columns: ["printer_id"];
9477
+ isOneToOne: false;
9478
+ referencedRelation: "pick_station_printers";
9479
+ referencedColumns: ["id"];
9480
+ }];
9481
+ };
9482
+ pick_queue: {
9483
+ Row: {
9484
+ announced_at: string;
9485
+ assigned_user_id: string | null;
9486
+ barcode: string | null;
9487
+ cancelled_at: string | null;
9488
+ cart_count: number;
9489
+ completed_at: string | null;
9490
+ country_code: string | null;
9491
+ created_at: string;
9492
+ customer_name: string | null;
9493
+ delivery_address: string | null;
9494
+ document_number: string | null;
9495
+ document_type_id: string | null;
9496
+ due_at: string | null;
9497
+ id: string;
9498
+ is_urgent: boolean;
9499
+ line_count: number;
9500
+ order_number: string | null;
9501
+ order_type: string | null;
9502
+ payload: import("../integrations/supabase/types").Json;
9503
+ print_count: number;
9504
+ printed_at: string | null;
9505
+ printed_by: string | null;
9506
+ printer_id: string | null;
9507
+ priority: number;
9508
+ reference: string | null;
9509
+ route: string | null;
9510
+ screen_id: string | null;
9511
+ station_id: string | null;
9512
+ status_id: string | null;
9513
+ updated_at: string;
9514
+ warnings: import("../integrations/supabase/types").Json;
9515
+ };
9516
+ Insert: {
9517
+ announced_at?: string;
9518
+ assigned_user_id?: string | null;
9519
+ barcode?: string | null;
9520
+ cancelled_at?: string | null;
9521
+ cart_count?: number;
9522
+ completed_at?: string | null;
9523
+ country_code?: string | null;
9524
+ created_at?: string;
9525
+ customer_name?: string | null;
9526
+ delivery_address?: string | null;
9527
+ document_number?: string | null;
9528
+ document_type_id?: string | null;
9529
+ due_at?: string | null;
9530
+ id?: string;
9531
+ is_urgent?: boolean;
9532
+ line_count?: number;
9533
+ order_number?: string | null;
9534
+ order_type?: string | null;
9535
+ payload?: import("../integrations/supabase/types").Json;
9536
+ print_count?: number;
9537
+ printed_at?: string | null;
9538
+ printed_by?: string | null;
9539
+ printer_id?: string | null;
9540
+ priority?: number;
9541
+ reference?: string | null;
9542
+ route?: string | null;
9543
+ screen_id?: string | null;
9544
+ station_id?: string | null;
9545
+ status_id?: string | null;
9546
+ updated_at?: string;
9547
+ warnings?: import("../integrations/supabase/types").Json;
9548
+ };
9549
+ Update: {
9550
+ announced_at?: string;
9551
+ assigned_user_id?: string | null;
9552
+ barcode?: string | null;
9553
+ cancelled_at?: string | null;
9554
+ cart_count?: number;
9555
+ completed_at?: string | null;
9556
+ country_code?: string | null;
9557
+ created_at?: string;
9558
+ customer_name?: string | null;
9559
+ delivery_address?: string | null;
9560
+ document_number?: string | null;
9561
+ document_type_id?: string | null;
9562
+ due_at?: string | null;
9563
+ id?: string;
9564
+ is_urgent?: boolean;
9565
+ line_count?: number;
9566
+ order_number?: string | null;
9567
+ order_type?: string | null;
9568
+ payload?: import("../integrations/supabase/types").Json;
9569
+ print_count?: number;
9570
+ printed_at?: string | null;
9571
+ printed_by?: string | null;
9572
+ printer_id?: string | null;
9573
+ priority?: number;
9574
+ reference?: string | null;
9575
+ route?: string | null;
9576
+ screen_id?: string | null;
9577
+ station_id?: string | null;
9578
+ status_id?: string | null;
9579
+ updated_at?: string;
9580
+ warnings?: import("../integrations/supabase/types").Json;
9581
+ };
9582
+ Relationships: [{
9583
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9584
+ columns: ["document_type_id"];
9585
+ isOneToOne: false;
9586
+ referencedRelation: "pick_document_types";
9587
+ referencedColumns: ["id"];
9588
+ }, {
9589
+ foreignKeyName: "pick_queue_printer_id_fkey";
9590
+ columns: ["printer_id"];
9591
+ isOneToOne: false;
9592
+ referencedRelation: "pick_station_printers";
9593
+ referencedColumns: ["id"];
9594
+ }, {
9595
+ foreignKeyName: "pick_queue_screen_id_fkey";
9596
+ columns: ["screen_id"];
9597
+ isOneToOne: false;
9598
+ referencedRelation: "pick_station_screens";
9599
+ referencedColumns: ["id"];
9600
+ }, {
9601
+ foreignKeyName: "pick_queue_station_id_fkey";
9602
+ columns: ["station_id"];
9603
+ isOneToOne: false;
9604
+ referencedRelation: "pick_stations";
9605
+ referencedColumns: ["id"];
9606
+ }, {
9607
+ foreignKeyName: "pick_queue_status_id_fkey";
9608
+ columns: ["status_id"];
9609
+ isOneToOne: false;
9610
+ referencedRelation: "pick_document_statuses";
9611
+ referencedColumns: ["id"];
9612
+ }];
9613
+ };
9614
+ pick_queue_locks: {
9615
+ Row: {
9616
+ expires_at: string;
9617
+ id: string;
9618
+ locked_at: string;
9619
+ locked_by: string | null;
9620
+ queue_item_id: string;
9621
+ screen_id: string | null;
9622
+ session_id: string | null;
9623
+ station_id: string | null;
9624
+ };
9625
+ Insert: {
9626
+ expires_at?: string;
9627
+ id?: string;
9628
+ locked_at?: string;
9629
+ locked_by?: string | null;
9630
+ queue_item_id: string;
9631
+ screen_id?: string | null;
9632
+ session_id?: string | null;
9633
+ station_id?: string | null;
9634
+ };
9635
+ Update: {
9636
+ expires_at?: string;
9637
+ id?: string;
9638
+ locked_at?: string;
9639
+ locked_by?: string | null;
9640
+ queue_item_id?: string;
9641
+ screen_id?: string | null;
9642
+ session_id?: string | null;
9643
+ station_id?: string | null;
9644
+ };
9645
+ Relationships: [{
9646
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9647
+ columns: ["queue_item_id"];
9648
+ isOneToOne: true;
9649
+ referencedRelation: "pick_queue";
9650
+ referencedColumns: ["id"];
9651
+ }, {
9652
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9653
+ columns: ["screen_id"];
9654
+ isOneToOne: false;
9655
+ referencedRelation: "pick_station_screens";
9656
+ referencedColumns: ["id"];
9657
+ }, {
9658
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9659
+ columns: ["station_id"];
9660
+ isOneToOne: false;
9661
+ referencedRelation: "pick_stations";
9662
+ referencedColumns: ["id"];
9663
+ }];
9664
+ };
9665
+ pick_screen_document_types: {
9666
+ Row: {
9667
+ created_at: string;
9668
+ document_type_id: string;
9669
+ id: string;
9670
+ print_order: number;
9671
+ printer_id: string | null;
9672
+ screen_id: string;
9673
+ };
9674
+ Insert: {
9675
+ created_at?: string;
9676
+ document_type_id: string;
9677
+ id?: string;
9678
+ print_order?: number;
9679
+ printer_id?: string | null;
9680
+ screen_id: string;
9681
+ };
9682
+ Update: {
9683
+ created_at?: string;
9684
+ document_type_id?: string;
9685
+ id?: string;
9686
+ print_order?: number;
9687
+ printer_id?: string | null;
9688
+ screen_id?: string;
9689
+ };
9690
+ Relationships: [{
9691
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9692
+ columns: ["document_type_id"];
9693
+ isOneToOne: false;
9694
+ referencedRelation: "pick_document_types";
9695
+ referencedColumns: ["id"];
9696
+ }, {
9697
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9698
+ columns: ["printer_id"];
9699
+ isOneToOne: false;
9700
+ referencedRelation: "pick_station_printers";
9701
+ referencedColumns: ["id"];
9702
+ }, {
9703
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9704
+ columns: ["screen_id"];
9705
+ isOneToOne: false;
9706
+ referencedRelation: "pick_station_screens";
9707
+ referencedColumns: ["id"];
9708
+ }];
9709
+ };
9710
+ pick_station_heartbeats: {
9711
+ Row: {
9712
+ browser: string | null;
9713
+ created_at: string;
9714
+ id: string;
9715
+ ip_address: string | null;
9716
+ last_seen_at: string;
9717
+ screen_id: string | null;
9718
+ session_id: string;
9719
+ station_id: string;
9720
+ user_id: string | null;
9721
+ };
9722
+ Insert: {
9723
+ browser?: string | null;
9724
+ created_at?: string;
9725
+ id?: string;
9726
+ ip_address?: string | null;
9727
+ last_seen_at?: string;
9728
+ screen_id?: string | null;
9729
+ session_id: string;
9730
+ station_id: string;
9731
+ user_id?: string | null;
9732
+ };
9733
+ Update: {
9734
+ browser?: string | null;
9735
+ created_at?: string;
9736
+ id?: string;
9737
+ ip_address?: string | null;
9738
+ last_seen_at?: string;
9739
+ screen_id?: string | null;
9740
+ session_id?: string;
9741
+ station_id?: string;
9742
+ user_id?: string | null;
9743
+ };
9744
+ Relationships: [{
9745
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9746
+ columns: ["screen_id"];
9747
+ isOneToOne: false;
9748
+ referencedRelation: "pick_station_screens";
9749
+ referencedColumns: ["id"];
9750
+ }, {
9751
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9752
+ columns: ["station_id"];
9753
+ isOneToOne: false;
9754
+ referencedRelation: "pick_stations";
9755
+ referencedColumns: ["id"];
9756
+ }];
9757
+ };
9758
+ pick_station_history: {
9759
+ Row: {
9760
+ action: string;
9761
+ changed_by: string | null;
9762
+ created_at: string;
9763
+ entity_id: string;
9764
+ entity_table: string;
9765
+ id: string;
9766
+ new_data: import("../integrations/supabase/types").Json | null;
9767
+ old_data: import("../integrations/supabase/types").Json | null;
9768
+ };
9769
+ Insert: {
9770
+ action: string;
9771
+ changed_by?: string | null;
9772
+ created_at?: string;
9773
+ entity_id: string;
9774
+ entity_table: string;
9775
+ id?: string;
9776
+ new_data?: import("../integrations/supabase/types").Json | null;
9777
+ old_data?: import("../integrations/supabase/types").Json | null;
9778
+ };
9779
+ Update: {
9780
+ action?: string;
9781
+ changed_by?: string | null;
9782
+ created_at?: string;
9783
+ entity_id?: string;
9784
+ entity_table?: string;
9785
+ id?: string;
9786
+ new_data?: import("../integrations/supabase/types").Json | null;
9787
+ old_data?: import("../integrations/supabase/types").Json | null;
9788
+ };
9789
+ Relationships: [];
9790
+ };
9791
+ pick_station_logs: {
9792
+ Row: {
9793
+ action: string;
9794
+ browser: string | null;
9795
+ created_at: string;
9796
+ detail: import("../integrations/supabase/types").Json;
9797
+ duration_ms: number | null;
9798
+ id: string;
9799
+ ip_address: string | null;
9800
+ printer_id: string | null;
9801
+ queue_item_id: string | null;
9802
+ screen_id: string | null;
9803
+ session_id: string | null;
9804
+ station_id: string | null;
9805
+ user_id: string | null;
9806
+ };
9807
+ Insert: {
9808
+ action: string;
9809
+ browser?: string | null;
9810
+ created_at?: string;
9811
+ detail?: import("../integrations/supabase/types").Json;
9812
+ duration_ms?: number | null;
9813
+ id?: string;
9814
+ ip_address?: string | null;
9815
+ printer_id?: string | null;
9816
+ queue_item_id?: string | null;
9817
+ screen_id?: string | null;
9818
+ session_id?: string | null;
9819
+ station_id?: string | null;
9820
+ user_id?: string | null;
9821
+ };
9822
+ Update: {
9823
+ action?: string;
9824
+ browser?: string | null;
9825
+ created_at?: string;
9826
+ detail?: import("../integrations/supabase/types").Json;
9827
+ duration_ms?: number | null;
9828
+ id?: string;
9829
+ ip_address?: string | null;
9830
+ printer_id?: string | null;
9831
+ queue_item_id?: string | null;
9832
+ screen_id?: string | null;
9833
+ session_id?: string | null;
9834
+ station_id?: string | null;
9835
+ user_id?: string | null;
9836
+ };
9837
+ Relationships: [];
9838
+ };
9839
+ pick_station_permissions: {
9840
+ Row: {
9841
+ can_break_lock: boolean;
9842
+ can_cancel: boolean;
9843
+ can_print: boolean;
9844
+ can_reprint: boolean;
9845
+ country_code: string | null;
9846
+ created_at: string;
9847
+ id: string;
9848
+ station_id: string | null;
9849
+ task_id: string | null;
9850
+ updated_at: string;
9851
+ urgent_only: boolean;
9852
+ user_id: string;
9853
+ };
9854
+ Insert: {
9855
+ can_break_lock?: boolean;
9856
+ can_cancel?: boolean;
9857
+ can_print?: boolean;
9858
+ can_reprint?: boolean;
9859
+ country_code?: string | null;
9860
+ created_at?: string;
9861
+ id?: string;
9862
+ station_id?: string | null;
9863
+ task_id?: string | null;
9864
+ updated_at?: string;
9865
+ urgent_only?: boolean;
9866
+ user_id: string;
9867
+ };
9868
+ Update: {
9869
+ can_break_lock?: boolean;
9870
+ can_cancel?: boolean;
9871
+ can_print?: boolean;
9872
+ can_reprint?: boolean;
9873
+ country_code?: string | null;
9874
+ created_at?: string;
9875
+ id?: string;
9876
+ station_id?: string | null;
9877
+ task_id?: string | null;
9878
+ updated_at?: string;
9879
+ urgent_only?: boolean;
9880
+ user_id?: string;
9881
+ };
9882
+ Relationships: [{
9883
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
9884
+ columns: ["station_id"];
9885
+ isOneToOne: false;
9886
+ referencedRelation: "pick_stations";
9887
+ referencedColumns: ["id"];
9888
+ }, {
9889
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
9890
+ columns: ["task_id"];
9891
+ isOneToOne: false;
9892
+ referencedRelation: "pick_station_tasks";
9893
+ referencedColumns: ["id"];
9894
+ }];
9895
+ };
9896
+ pick_station_printers: {
9897
+ Row: {
9898
+ active: boolean;
9899
+ code: string | null;
9900
+ config: import("../integrations/supabase/types").Json;
9901
+ connection: string | null;
9902
+ created_at: string;
9903
+ id: string;
9904
+ last_seen_at: string | null;
9905
+ location: string | null;
9906
+ name: string;
9907
+ status: string;
9908
+ status_message: string | null;
9909
+ target: string | null;
9910
+ updated_at: string;
9911
+ };
9912
+ Insert: {
9913
+ active?: boolean;
9914
+ code?: string | null;
9915
+ config?: import("../integrations/supabase/types").Json;
9916
+ connection?: string | null;
9917
+ created_at?: string;
9918
+ id?: string;
9919
+ last_seen_at?: string | null;
9920
+ location?: string | null;
9921
+ name: string;
9922
+ status?: string;
9923
+ status_message?: string | null;
9924
+ target?: string | null;
9925
+ updated_at?: string;
9926
+ };
9927
+ Update: {
9928
+ active?: boolean;
9929
+ code?: string | null;
9930
+ config?: import("../integrations/supabase/types").Json;
9931
+ connection?: string | null;
9932
+ created_at?: string;
9933
+ id?: string;
9934
+ last_seen_at?: string | null;
9935
+ location?: string | null;
9936
+ name?: string;
9937
+ status?: string;
9938
+ status_message?: string | null;
9939
+ target?: string | null;
9940
+ updated_at?: string;
9941
+ };
9942
+ Relationships: [];
9943
+ };
9944
+ pick_station_screens: {
9945
+ Row: {
9946
+ active: boolean;
9947
+ config: import("../integrations/supabase/types").Json;
9948
+ created_at: string;
9949
+ description: string | null;
9950
+ filters: import("../integrations/supabase/types").Json;
9951
+ id: string;
9952
+ name: string;
9953
+ printer_id: string | null;
9954
+ screen_type: string;
9955
+ sort_order: number;
9956
+ sort_rules: import("../integrations/supabase/types").Json | null;
9957
+ station_id: string;
9958
+ updated_at: string;
9959
+ };
9960
+ Insert: {
9961
+ active?: boolean;
9962
+ config?: import("../integrations/supabase/types").Json;
9963
+ created_at?: string;
9964
+ description?: string | null;
9965
+ filters?: import("../integrations/supabase/types").Json;
9966
+ id?: string;
9967
+ name: string;
9968
+ printer_id?: string | null;
9969
+ screen_type?: string;
9970
+ sort_order?: number;
9971
+ sort_rules?: import("../integrations/supabase/types").Json | null;
9972
+ station_id: string;
9973
+ updated_at?: string;
9974
+ };
9975
+ Update: {
9976
+ active?: boolean;
9977
+ config?: import("../integrations/supabase/types").Json;
9978
+ created_at?: string;
9979
+ description?: string | null;
9980
+ filters?: import("../integrations/supabase/types").Json;
9981
+ id?: string;
9982
+ name?: string;
9983
+ printer_id?: string | null;
9984
+ screen_type?: string;
9985
+ sort_order?: number;
9986
+ sort_rules?: import("../integrations/supabase/types").Json | null;
9987
+ station_id?: string;
9988
+ updated_at?: string;
9989
+ };
9990
+ Relationships: [{
9991
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
9992
+ columns: ["printer_id"];
9993
+ isOneToOne: false;
9994
+ referencedRelation: "pick_station_printers";
9995
+ referencedColumns: ["id"];
9996
+ }, {
9997
+ foreignKeyName: "pick_station_screens_station_id_fkey";
9998
+ columns: ["station_id"];
9999
+ isOneToOne: false;
10000
+ referencedRelation: "pick_stations";
10001
+ referencedColumns: ["id"];
10002
+ }];
10003
+ };
10004
+ pick_station_tasks: {
10005
+ Row: {
10006
+ active: boolean;
10007
+ code: string;
10008
+ color: string | null;
10009
+ created_at: string;
10010
+ description: string | null;
10011
+ icon: string | null;
10012
+ id: string;
10013
+ name: string;
10014
+ sort_order: number;
10015
+ updated_at: string;
10016
+ workflow: import("../integrations/supabase/types").Json;
10017
+ };
10018
+ Insert: {
10019
+ active?: boolean;
10020
+ code: string;
10021
+ color?: string | null;
10022
+ created_at?: string;
10023
+ description?: string | null;
10024
+ icon?: string | null;
10025
+ id?: string;
10026
+ name: string;
10027
+ sort_order?: number;
10028
+ updated_at?: string;
10029
+ workflow?: import("../integrations/supabase/types").Json;
10030
+ };
10031
+ Update: {
10032
+ active?: boolean;
10033
+ code?: string;
10034
+ color?: string | null;
10035
+ created_at?: string;
10036
+ description?: string | null;
10037
+ icon?: string | null;
10038
+ id?: string;
10039
+ name?: string;
10040
+ sort_order?: number;
10041
+ updated_at?: string;
10042
+ workflow?: import("../integrations/supabase/types").Json;
10043
+ };
10044
+ Relationships: [];
10045
+ };
10046
+ pick_station_types: {
10047
+ Row: {
10048
+ active: boolean;
10049
+ code: string;
10050
+ color: string | null;
10051
+ created_at: string;
10052
+ description: string | null;
10053
+ icon: string | null;
10054
+ id: string;
10055
+ name: string;
10056
+ sort_order: number;
10057
+ updated_at: string;
10058
+ };
10059
+ Insert: {
10060
+ active?: boolean;
10061
+ code: string;
10062
+ color?: string | null;
10063
+ created_at?: string;
10064
+ description?: string | null;
10065
+ icon?: string | null;
10066
+ id?: string;
10067
+ name: string;
10068
+ sort_order?: number;
10069
+ updated_at?: string;
10070
+ };
10071
+ Update: {
10072
+ active?: boolean;
10073
+ code?: string;
10074
+ color?: string | null;
10075
+ created_at?: string;
10076
+ description?: string | null;
10077
+ icon?: string | null;
10078
+ id?: string;
10079
+ name?: string;
10080
+ sort_order?: number;
10081
+ updated_at?: string;
10082
+ };
10083
+ Relationships: [];
10084
+ };
10085
+ pick_station_users: {
10086
+ Row: {
10087
+ active: boolean;
10088
+ created_at: string;
10089
+ id: string;
10090
+ station_id: string;
10091
+ user_id: string;
10092
+ };
10093
+ Insert: {
10094
+ active?: boolean;
10095
+ created_at?: string;
10096
+ id?: string;
10097
+ station_id: string;
10098
+ user_id: string;
10099
+ };
10100
+ Update: {
10101
+ active?: boolean;
10102
+ created_at?: string;
10103
+ id?: string;
10104
+ station_id?: string;
10105
+ user_id?: string;
10106
+ };
10107
+ Relationships: [{
10108
+ foreignKeyName: "pick_station_users_station_id_fkey";
10109
+ columns: ["station_id"];
10110
+ isOneToOne: false;
10111
+ referencedRelation: "pick_stations";
10112
+ referencedColumns: ["id"];
10113
+ }];
10114
+ };
10115
+ pick_stations: {
10116
+ Row: {
10117
+ active: boolean;
10118
+ allow_multi_screen: boolean;
10119
+ color: string | null;
10120
+ created_at: string;
10121
+ default_printer_id: string | null;
10122
+ department: string | null;
10123
+ description: string | null;
10124
+ icon: string | null;
10125
+ id: string;
10126
+ location: string | null;
10127
+ lock_timeout_seconds: number;
10128
+ name: string;
10129
+ require_country_selection: boolean;
10130
+ sort_order: number;
10131
+ sort_rules: import("../integrations/supabase/types").Json;
10132
+ task_id: string | null;
10133
+ type_id: string | null;
10134
+ updated_at: string;
10135
+ };
10136
+ Insert: {
10137
+ active?: boolean;
10138
+ allow_multi_screen?: boolean;
10139
+ color?: string | null;
10140
+ created_at?: string;
10141
+ default_printer_id?: string | null;
10142
+ department?: string | null;
10143
+ description?: string | null;
10144
+ icon?: string | null;
10145
+ id?: string;
10146
+ location?: string | null;
10147
+ lock_timeout_seconds?: number;
10148
+ name: string;
10149
+ require_country_selection?: boolean;
10150
+ sort_order?: number;
10151
+ sort_rules?: import("../integrations/supabase/types").Json;
10152
+ task_id?: string | null;
10153
+ type_id?: string | null;
10154
+ updated_at?: string;
10155
+ };
10156
+ Update: {
10157
+ active?: boolean;
10158
+ allow_multi_screen?: boolean;
10159
+ color?: string | null;
10160
+ created_at?: string;
10161
+ default_printer_id?: string | null;
10162
+ department?: string | null;
10163
+ description?: string | null;
10164
+ icon?: string | null;
10165
+ id?: string;
10166
+ location?: string | null;
10167
+ lock_timeout_seconds?: number;
10168
+ name?: string;
10169
+ require_country_selection?: boolean;
10170
+ sort_order?: number;
10171
+ sort_rules?: import("../integrations/supabase/types").Json;
10172
+ task_id?: string | null;
10173
+ type_id?: string | null;
10174
+ updated_at?: string;
10175
+ };
10176
+ Relationships: [{
10177
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10178
+ columns: ["default_printer_id"];
10179
+ isOneToOne: false;
10180
+ referencedRelation: "pick_station_printers";
10181
+ referencedColumns: ["id"];
10182
+ }, {
10183
+ foreignKeyName: "pick_stations_task_id_fkey";
10184
+ columns: ["task_id"];
10185
+ isOneToOne: false;
10186
+ referencedRelation: "pick_station_tasks";
10187
+ referencedColumns: ["id"];
10188
+ }, {
10189
+ foreignKeyName: "pick_stations_type_id_fkey";
10190
+ columns: ["type_id"];
10191
+ isOneToOne: false;
10192
+ referencedRelation: "pick_station_types";
10193
+ referencedColumns: ["id"];
10194
+ }];
10195
+ };
10196
+ pick_task_document_types: {
10197
+ Row: {
10198
+ created_at: string;
10199
+ document_type_id: string;
10200
+ id: string;
10201
+ task_id: string;
10202
+ };
10203
+ Insert: {
10204
+ created_at?: string;
10205
+ document_type_id: string;
10206
+ id?: string;
10207
+ task_id: string;
10208
+ };
10209
+ Update: {
10210
+ created_at?: string;
10211
+ document_type_id?: string;
10212
+ id?: string;
10213
+ task_id?: string;
10214
+ };
10215
+ Relationships: [{
10216
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10217
+ columns: ["document_type_id"];
10218
+ isOneToOne: false;
10219
+ referencedRelation: "pick_document_types";
10220
+ referencedColumns: ["id"];
10221
+ }, {
10222
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10223
+ columns: ["task_id"];
10224
+ isOneToOne: false;
10225
+ referencedRelation: "pick_station_tasks";
10226
+ referencedColumns: ["id"];
10227
+ }];
10228
+ };
10229
+ pickstation_print_log: {
10230
+ Row: {
10231
+ customer_name: string | null;
10232
+ documents: string[];
10233
+ id: string;
10234
+ ip_address: string | null;
10235
+ order_id: string;
10236
+ order_number: string | null;
10237
+ printed_at: string;
10238
+ };
10239
+ Insert: {
10240
+ customer_name?: string | null;
10241
+ documents?: string[];
10242
+ id?: string;
10243
+ ip_address?: string | null;
10244
+ order_id: string;
10245
+ order_number?: string | null;
10246
+ printed_at?: string;
10247
+ };
10248
+ Update: {
10249
+ customer_name?: string | null;
10250
+ documents?: string[];
10251
+ id?: string;
10252
+ ip_address?: string | null;
10253
+ order_id?: string;
10254
+ order_number?: string | null;
10255
+ printed_at?: string;
10256
+ };
10257
+ Relationships: [];
10258
+ };
10259
+ pipeline_settings: {
10260
+ Row: {
10261
+ created_at: string;
10262
+ id: string;
10263
+ key: string;
10264
+ updated_at: string;
10265
+ value: string | null;
10266
+ };
10267
+ Insert: {
10268
+ created_at?: string;
10269
+ id?: string;
10270
+ key: string;
10271
+ updated_at?: string;
10272
+ value?: string | null;
10273
+ };
10274
+ Update: {
10275
+ created_at?: string;
10276
+ id?: string;
10277
+ key?: string;
10278
+ updated_at?: string;
10279
+ value?: string | null;
10280
+ };
10281
+ Relationships: [];
10282
+ };
10283
+ pipeline_stages: {
10284
+ Row: {
10285
+ automation_type: string;
10286
+ color: string;
10287
+ created_at: string;
10288
+ id: string;
10289
+ is_active: boolean;
10290
+ name: string;
10291
+ sort_order: number;
10292
+ updated_at: string;
10293
+ };
10294
+ Insert: {
10295
+ automation_type?: string;
10296
+ color?: string;
10297
+ created_at?: string;
10298
+ id?: string;
10299
+ is_active?: boolean;
10300
+ name: string;
10301
+ sort_order?: number;
10302
+ updated_at?: string;
10303
+ };
10304
+ Update: {
10305
+ automation_type?: string;
10306
+ color?: string;
10307
+ created_at?: string;
8655
10308
  id?: string;
8656
10309
  is_active?: boolean;
8657
10310
  name?: string;
@@ -8732,6 +10385,321 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8732
10385
  referencedColumns: ["id"];
8733
10386
  }];
8734
10387
  };
10388
+ print_job_logs: {
10389
+ Row: {
10390
+ created_at: string;
10391
+ detail: string;
10392
+ gebeurtenis: string;
10393
+ id: string;
10394
+ job_id: string;
10395
+ };
10396
+ Insert: {
10397
+ created_at?: string;
10398
+ detail?: string;
10399
+ gebeurtenis: string;
10400
+ id?: string;
10401
+ job_id: string;
10402
+ };
10403
+ Update: {
10404
+ created_at?: string;
10405
+ detail?: string;
10406
+ gebeurtenis?: string;
10407
+ id?: string;
10408
+ job_id?: string;
10409
+ };
10410
+ Relationships: [{
10411
+ foreignKeyName: "print_job_logs_job_id_fkey";
10412
+ columns: ["job_id"];
10413
+ isOneToOne: false;
10414
+ referencedRelation: "print_jobs";
10415
+ referencedColumns: ["id"];
10416
+ }];
10417
+ };
10418
+ print_jobs: {
10419
+ Row: {
10420
+ bron_job_id: string | null;
10421
+ created_at: string;
10422
+ documentnaam: string;
10423
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10424
+ foutmelding: string | null;
10425
+ gebruiker_id: string | null;
10426
+ gebruiker_naam: string;
10427
+ gestart_op: string | null;
10428
+ id: string;
10429
+ is_herprint: boolean;
10430
+ kopieen: number;
10431
+ layout_id: string | null;
10432
+ paginas: number;
10433
+ payload: import("../integrations/supabase/types").Json;
10434
+ printer_id: string | null;
10435
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10436
+ updated_at: string;
10437
+ voltooid_op: string | null;
10438
+ };
10439
+ Insert: {
10440
+ bron_job_id?: string | null;
10441
+ created_at?: string;
10442
+ documentnaam?: string;
10443
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10444
+ foutmelding?: string | null;
10445
+ gebruiker_id?: string | null;
10446
+ gebruiker_naam?: string;
10447
+ gestart_op?: string | null;
10448
+ id?: string;
10449
+ is_herprint?: boolean;
10450
+ kopieen?: number;
10451
+ layout_id?: string | null;
10452
+ paginas?: number;
10453
+ payload?: import("../integrations/supabase/types").Json;
10454
+ printer_id?: string | null;
10455
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10456
+ updated_at?: string;
10457
+ voltooid_op?: string | null;
10458
+ };
10459
+ Update: {
10460
+ bron_job_id?: string | null;
10461
+ created_at?: string;
10462
+ documentnaam?: string;
10463
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10464
+ foutmelding?: string | null;
10465
+ gebruiker_id?: string | null;
10466
+ gebruiker_naam?: string;
10467
+ gestart_op?: string | null;
10468
+ id?: string;
10469
+ is_herprint?: boolean;
10470
+ kopieen?: number;
10471
+ layout_id?: string | null;
10472
+ paginas?: number;
10473
+ payload?: import("../integrations/supabase/types").Json;
10474
+ printer_id?: string | null;
10475
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10476
+ updated_at?: string;
10477
+ voltooid_op?: string | null;
10478
+ };
10479
+ Relationships: [{
10480
+ foreignKeyName: "print_jobs_layout_id_fkey";
10481
+ columns: ["layout_id"];
10482
+ isOneToOne: false;
10483
+ referencedRelation: "document_layouts";
10484
+ referencedColumns: ["id"];
10485
+ }, {
10486
+ foreignKeyName: "print_jobs_printer_id_fkey";
10487
+ columns: ["printer_id"];
10488
+ isOneToOne: false;
10489
+ referencedRelation: "printers";
10490
+ referencedColumns: ["id"];
10491
+ }];
10492
+ };
10493
+ print_rules: {
10494
+ Row: {
10495
+ actief: boolean;
10496
+ alleen_eerste_keer: boolean;
10497
+ conditie: import("../integrations/supabase/types").Json;
10498
+ created_at: string;
10499
+ id: string;
10500
+ kopieen: number;
10501
+ layout_id: string;
10502
+ naam: string;
10503
+ printer_id: string | null;
10504
+ updated_at: string;
10505
+ volgorde: number;
10506
+ };
10507
+ Insert: {
10508
+ actief?: boolean;
10509
+ alleen_eerste_keer?: boolean;
10510
+ conditie?: import("../integrations/supabase/types").Json;
10511
+ created_at?: string;
10512
+ id?: string;
10513
+ kopieen?: number;
10514
+ layout_id: string;
10515
+ naam?: string;
10516
+ printer_id?: string | null;
10517
+ updated_at?: string;
10518
+ volgorde?: number;
10519
+ };
10520
+ Update: {
10521
+ actief?: boolean;
10522
+ alleen_eerste_keer?: boolean;
10523
+ conditie?: import("../integrations/supabase/types").Json;
10524
+ created_at?: string;
10525
+ id?: string;
10526
+ kopieen?: number;
10527
+ layout_id?: string;
10528
+ naam?: string;
10529
+ printer_id?: string | null;
10530
+ updated_at?: string;
10531
+ volgorde?: number;
10532
+ };
10533
+ Relationships: [{
10534
+ foreignKeyName: "print_rules_layout_id_fkey";
10535
+ columns: ["layout_id"];
10536
+ isOneToOne: false;
10537
+ referencedRelation: "document_layouts";
10538
+ referencedColumns: ["id"];
10539
+ }, {
10540
+ foreignKeyName: "print_rules_printer_id_fkey";
10541
+ columns: ["printer_id"];
10542
+ isOneToOne: false;
10543
+ referencedRelation: "printers";
10544
+ referencedColumns: ["id"];
10545
+ }];
10546
+ };
10547
+ printer_mappings: {
10548
+ Row: {
10549
+ created_at: string;
10550
+ id: string;
10551
+ layout_id: string;
10552
+ printer_id: string;
10553
+ prioriteit: number;
10554
+ updated_at: string;
10555
+ };
10556
+ Insert: {
10557
+ created_at?: string;
10558
+ id?: string;
10559
+ layout_id: string;
10560
+ printer_id: string;
10561
+ prioriteit?: number;
10562
+ updated_at?: string;
10563
+ };
10564
+ Update: {
10565
+ created_at?: string;
10566
+ id?: string;
10567
+ layout_id?: string;
10568
+ printer_id?: string;
10569
+ prioriteit?: number;
10570
+ updated_at?: string;
10571
+ };
10572
+ Relationships: [{
10573
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10574
+ columns: ["layout_id"];
10575
+ isOneToOne: false;
10576
+ referencedRelation: "document_layouts";
10577
+ referencedColumns: ["id"];
10578
+ }, {
10579
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10580
+ columns: ["printer_id"];
10581
+ isOneToOne: false;
10582
+ referencedRelation: "printers";
10583
+ referencedColumns: ["id"];
10584
+ }];
10585
+ };
10586
+ printer_profiles: {
10587
+ Row: {
10588
+ auto_schalen: boolean;
10589
+ created_at: string;
10590
+ duplex: boolean;
10591
+ id: string;
10592
+ is_standaard: boolean;
10593
+ kleur: boolean;
10594
+ kopieen: number;
10595
+ label_gap: number;
10596
+ naam: string;
10597
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10598
+ papierlade: string;
10599
+ printer_id: string;
10600
+ resolutie: number;
10601
+ snijden: boolean;
10602
+ updated_at: string;
10603
+ };
10604
+ Insert: {
10605
+ auto_schalen?: boolean;
10606
+ created_at?: string;
10607
+ duplex?: boolean;
10608
+ id?: string;
10609
+ is_standaard?: boolean;
10610
+ kleur?: boolean;
10611
+ kopieen?: number;
10612
+ label_gap?: number;
10613
+ naam?: string;
10614
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10615
+ papierlade?: string;
10616
+ printer_id: string;
10617
+ resolutie?: number;
10618
+ snijden?: boolean;
10619
+ updated_at?: string;
10620
+ };
10621
+ Update: {
10622
+ auto_schalen?: boolean;
10623
+ created_at?: string;
10624
+ duplex?: boolean;
10625
+ id?: string;
10626
+ is_standaard?: boolean;
10627
+ kleur?: boolean;
10628
+ kopieen?: number;
10629
+ label_gap?: number;
10630
+ naam?: string;
10631
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10632
+ papierlade?: string;
10633
+ printer_id?: string;
10634
+ resolutie?: number;
10635
+ snijden?: boolean;
10636
+ updated_at?: string;
10637
+ };
10638
+ Relationships: [{
10639
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10640
+ columns: ["printer_id"];
10641
+ isOneToOne: false;
10642
+ referencedRelation: "printers";
10643
+ referencedColumns: ["id"];
10644
+ }];
10645
+ };
10646
+ printers: {
10647
+ Row: {
10648
+ actief: boolean;
10649
+ created_at: string;
10650
+ driver: string;
10651
+ id: string;
10652
+ ip_adres: string | null;
10653
+ laatst_gezien: string | null;
10654
+ locatie: string;
10655
+ merk: string;
10656
+ naam: string;
10657
+ omschrijving: string;
10658
+ online: boolean;
10659
+ papierformaat: string;
10660
+ poort: number | null;
10661
+ soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10662
+ updated_at: string;
10663
+ verbinding: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10664
+ };
10665
+ Insert: {
10666
+ actief?: boolean;
10667
+ created_at?: string;
10668
+ driver?: string;
10669
+ id?: string;
10670
+ ip_adres?: string | null;
10671
+ laatst_gezien?: string | null;
10672
+ locatie?: string;
10673
+ merk?: string;
10674
+ naam: string;
10675
+ omschrijving?: string;
10676
+ online?: boolean;
10677
+ papierformaat?: string;
10678
+ poort?: number | null;
10679
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10680
+ updated_at?: string;
10681
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10682
+ };
10683
+ Update: {
10684
+ actief?: boolean;
10685
+ created_at?: string;
10686
+ driver?: string;
10687
+ id?: string;
10688
+ ip_adres?: string | null;
10689
+ laatst_gezien?: string | null;
10690
+ locatie?: string;
10691
+ merk?: string;
10692
+ naam?: string;
10693
+ omschrijving?: string;
10694
+ online?: boolean;
10695
+ papierformaat?: string;
10696
+ poort?: number | null;
10697
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10698
+ updated_at?: string;
10699
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10700
+ };
10701
+ Relationships: [];
10702
+ };
8735
10703
  product_bom_items: {
8736
10704
  Row: {
8737
10705
  component_product_id: string | null;
@@ -10597,9 +12565,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10597
12565
  };
10598
12566
  twinfield_connections: {
10599
12567
  Row: {
10600
- access_token: string | null;
10601
- client_id: string;
10602
- client_secret: string | null;
12568
+ account_key: string | null;
10603
12569
  cluster_uri: string | null;
10604
12570
  company_code: string | null;
10605
12571
  company_name: string | null;
@@ -10610,94 +12576,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10610
12576
  is_active: boolean;
10611
12577
  label: string | null;
10612
12578
  office_code: string | null;
10613
- redirect_uri: string;
10614
- refresh_token: string | null;
10615
- token_expires_at: string | null;
10616
- updated_at: string;
10617
- user_id: string;
10618
- };
10619
- Insert: {
10620
- access_token?: string | null;
10621
- client_id: string;
10622
- client_secret?: string | null;
10623
- cluster_uri?: string | null;
10624
- company_code?: string | null;
10625
- company_name?: string | null;
10626
- connected_at?: string | null;
10627
- created_at?: string;
10628
- environment: string;
10629
- id?: string;
10630
- is_active?: boolean;
10631
- label?: string | null;
10632
- office_code?: string | null;
10633
- redirect_uri: string;
10634
- refresh_token?: string | null;
10635
- token_expires_at?: string | null;
10636
- updated_at?: string;
10637
- user_id: string;
10638
- };
10639
- Update: {
10640
- access_token?: string | null;
10641
- client_id?: string;
10642
- client_secret?: string | null;
10643
- cluster_uri?: string | null;
10644
- company_code?: string | null;
10645
- company_name?: string | null;
10646
- connected_at?: string | null;
10647
- created_at?: string;
10648
- environment?: string;
10649
- id?: string;
10650
- is_active?: boolean;
10651
- label?: string | null;
10652
- office_code?: string | null;
10653
- redirect_uri?: string;
10654
- refresh_token?: string | null;
10655
- token_expires_at?: string | null;
10656
- updated_at?: string;
10657
- user_id?: string;
10658
- };
10659
- Relationships: [];
10660
- };
10661
- twinfield_credentials: {
10662
- Row: {
10663
- administration_code: string | null;
10664
- client_id: string | null;
10665
- client_secret: string | null;
10666
- cluster: string | null;
10667
- connected_at: string | null;
10668
- created_at: string;
10669
- environment: string | null;
10670
- id: string;
10671
12579
  redirect_uri: string | null;
10672
- refresh_token: string | null;
10673
12580
  updated_at: string;
10674
12581
  user_id: string;
10675
12582
  };
10676
12583
  Insert: {
10677
- administration_code?: string | null;
10678
- client_id?: string | null;
10679
- client_secret?: string | null;
10680
- cluster?: string | null;
12584
+ account_key?: string | null;
12585
+ cluster_uri?: string | null;
12586
+ company_code?: string | null;
12587
+ company_name?: string | null;
10681
12588
  connected_at?: string | null;
10682
12589
  created_at?: string;
10683
- environment?: string | null;
12590
+ environment: string;
10684
12591
  id?: string;
12592
+ is_active?: boolean;
12593
+ label?: string | null;
12594
+ office_code?: string | null;
10685
12595
  redirect_uri?: string | null;
10686
- refresh_token?: string | null;
10687
12596
  updated_at?: string;
10688
12597
  user_id: string;
10689
12598
  };
10690
12599
  Update: {
10691
- administration_code?: string | null;
10692
- client_id?: string | null;
10693
- client_secret?: string | null;
10694
- cluster?: string | null;
12600
+ account_key?: string | null;
12601
+ cluster_uri?: string | null;
12602
+ company_code?: string | null;
12603
+ company_name?: string | null;
10695
12604
  connected_at?: string | null;
10696
12605
  created_at?: string;
10697
- environment?: string | null;
12606
+ environment?: string;
10698
12607
  id?: string;
12608
+ is_active?: boolean;
12609
+ label?: string | null;
12610
+ office_code?: string | null;
10699
12611
  redirect_uri?: string | null;
10700
- refresh_token?: string | null;
10701
12612
  updated_at?: string;
10702
12613
  user_id?: string;
10703
12614
  };
@@ -11144,12 +13055,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11144
13055
  currency: string | null;
11145
13056
  customer_code: string | null;
11146
13057
  data: import("../integrations/supabase/types").Json;
13058
+ deleted_at: string | null;
11147
13059
  due_date: string | null;
11148
13060
  fetched_at: string;
11149
13061
  invoice_date: string | null;
11150
13062
  invoice_number: string;
13063
+ lines_fetched_at: string | null;
11151
13064
  modified_at: string | null;
11152
13065
  outstanding_amount: number | null;
13066
+ paid_at: string | null;
11153
13067
  status: string | null;
11154
13068
  status_label: string | null;
11155
13069
  total_excl: number | null;
@@ -11161,12 +13075,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11161
13075
  currency?: string | null;
11162
13076
  customer_code?: string | null;
11163
13077
  data?: import("../integrations/supabase/types").Json;
13078
+ deleted_at?: string | null;
11164
13079
  due_date?: string | null;
11165
13080
  fetched_at?: string;
11166
13081
  invoice_date?: string | null;
11167
13082
  invoice_number: string;
13083
+ lines_fetched_at?: string | null;
11168
13084
  modified_at?: string | null;
11169
13085
  outstanding_amount?: number | null;
13086
+ paid_at?: string | null;
11170
13087
  status?: string | null;
11171
13088
  status_label?: string | null;
11172
13089
  total_excl?: number | null;
@@ -11178,12 +13095,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11178
13095
  currency?: string | null;
11179
13096
  customer_code?: string | null;
11180
13097
  data?: import("../integrations/supabase/types").Json;
13098
+ deleted_at?: string | null;
11181
13099
  due_date?: string | null;
11182
13100
  fetched_at?: string;
11183
13101
  invoice_date?: string | null;
11184
13102
  invoice_number?: string;
13103
+ lines_fetched_at?: string | null;
11185
13104
  modified_at?: string | null;
11186
13105
  outstanding_amount?: number | null;
13106
+ paid_at?: string | null;
11187
13107
  status?: string | null;
11188
13108
  status_label?: string | null;
11189
13109
  total_excl?: number | null;
@@ -11198,30 +13118,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11198
13118
  referencedColumns: ["id"];
11199
13119
  }];
11200
13120
  };
11201
- twinfield_oauth_state: {
11202
- Row: {
11203
- created_at: string;
11204
- environment: string;
11205
- nonce: string | null;
11206
- state: string;
11207
- user_id: string;
11208
- };
11209
- Insert: {
11210
- created_at?: string;
11211
- environment: string;
11212
- nonce?: string | null;
11213
- state: string;
11214
- user_id: string;
11215
- };
11216
- Update: {
11217
- created_at?: string;
11218
- environment?: string;
11219
- nonce?: string | null;
11220
- state?: string;
11221
- user_id?: string;
11222
- };
11223
- Relationships: [];
11224
- };
11225
13121
  twinfield_push_queue: {
11226
13122
  Row: {
11227
13123
  action: string;
@@ -11387,39 +13283,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11387
13283
  referencedColumns: ["id"];
11388
13284
  }];
11389
13285
  };
11390
- twinfield_token_refresh_log: {
11391
- Row: {
11392
- attempted_at: string;
11393
- connection_id: string;
11394
- error: string | null;
11395
- expires_at: string | null;
11396
- id: string;
11397
- ok: boolean;
11398
- };
11399
- Insert: {
11400
- attempted_at?: string;
11401
- connection_id: string;
11402
- error?: string | null;
11403
- expires_at?: string | null;
11404
- id?: string;
11405
- ok: boolean;
11406
- };
11407
- Update: {
11408
- attempted_at?: string;
11409
- connection_id?: string;
11410
- error?: string | null;
11411
- expires_at?: string | null;
11412
- id?: string;
11413
- ok?: boolean;
11414
- };
11415
- Relationships: [{
11416
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11417
- columns: ["connection_id"];
11418
- isOneToOne: false;
11419
- referencedRelation: "twinfield_connections";
11420
- referencedColumns: ["id"];
11421
- }];
11422
- };
11423
13286
  user_roles: {
11424
13287
  Row: {
11425
13288
  created_at: string;
@@ -11447,6 +13310,48 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11447
13310
  referencedColumns: ["id"];
11448
13311
  }];
11449
13312
  };
13313
+ voorraad_custom_fields: {
13314
+ Row: {
13315
+ created_at: string;
13316
+ field_key: string;
13317
+ field_label: string;
13318
+ field_type: string;
13319
+ id: string;
13320
+ options: string[];
13321
+ show_in_columns: boolean;
13322
+ show_in_detail: boolean;
13323
+ show_in_template: boolean;
13324
+ sort_order: number;
13325
+ updated_at: string;
13326
+ };
13327
+ Insert: {
13328
+ created_at?: string;
13329
+ field_key: string;
13330
+ field_label: string;
13331
+ field_type?: string;
13332
+ id?: string;
13333
+ options?: string[];
13334
+ show_in_columns?: boolean;
13335
+ show_in_detail?: boolean;
13336
+ show_in_template?: boolean;
13337
+ sort_order?: number;
13338
+ updated_at?: string;
13339
+ };
13340
+ Update: {
13341
+ created_at?: string;
13342
+ field_key?: string;
13343
+ field_label?: string;
13344
+ field_type?: string;
13345
+ id?: string;
13346
+ options?: string[];
13347
+ show_in_columns?: boolean;
13348
+ show_in_detail?: boolean;
13349
+ show_in_template?: boolean;
13350
+ sort_order?: number;
13351
+ updated_at?: string;
13352
+ };
13353
+ Relationships: [];
13354
+ };
11450
13355
  voorraad_media_upload_failures: {
11451
13356
  Row: {
11452
13357
  action: string;
@@ -12104,6 +14009,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12104
14009
  status: string | null;
12105
14010
  token_expires_at: string | null;
12106
14011
  updated_at: string | null;
14012
+ webhook_last_attempt_at: string | null;
14013
+ webhook_last_error: string | null;
14014
+ webhook_status: string | null;
12107
14015
  };
12108
14016
  Insert: {
12109
14017
  account_email?: string | null;
@@ -12138,6 +14046,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12138
14046
  status?: string | null;
12139
14047
  token_expires_at?: string | null;
12140
14048
  updated_at?: string | null;
14049
+ webhook_last_attempt_at?: string | null;
14050
+ webhook_last_error?: string | null;
14051
+ webhook_status?: string | null;
12141
14052
  };
12142
14053
  Update: {
12143
14054
  account_email?: string | null;
@@ -12172,6 +14083,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12172
14083
  status?: string | null;
12173
14084
  token_expires_at?: string | null;
12174
14085
  updated_at?: string | null;
14086
+ webhook_last_attempt_at?: string | null;
14087
+ webhook_last_error?: string | null;
14088
+ webhook_status?: string | null;
12175
14089
  };
12176
14090
  Relationships: [];
12177
14091
  };
@@ -12452,6 +14366,81 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12452
14366
  referencedColumns: ["id"];
12453
14367
  }];
12454
14368
  };
14369
+ v_external_customers_local: {
14370
+ Row: {
14371
+ city: string | null;
14372
+ commercial_name: string | null;
14373
+ company_name: string | null;
14374
+ connection_id: string | null;
14375
+ contact_person: string | null;
14376
+ country: string | null;
14377
+ email: string | null;
14378
+ external_id: string | null;
14379
+ fetched_at: string | null;
14380
+ gln: string | null;
14381
+ house_number: string | null;
14382
+ is_active: boolean | null;
14383
+ is_deleted: boolean | null;
14384
+ logo_url: string | null;
14385
+ phone: string | null;
14386
+ postal_code: string | null;
14387
+ provider: string | null;
14388
+ raw: import("../integrations/supabase/types").Json | null;
14389
+ status: string | null;
14390
+ street: string | null;
14391
+ vat_number: string | null;
14392
+ website: string | null;
14393
+ };
14394
+ Insert: {
14395
+ city?: string | null;
14396
+ commercial_name?: string | null;
14397
+ company_name?: string | null;
14398
+ connection_id?: never;
14399
+ contact_person?: string | null;
14400
+ country?: string | null;
14401
+ email?: string | null;
14402
+ external_id?: never;
14403
+ fetched_at?: never;
14404
+ gln?: string | null;
14405
+ house_number?: string | null;
14406
+ is_active?: never;
14407
+ is_deleted?: never;
14408
+ logo_url?: string | null;
14409
+ phone?: string | null;
14410
+ postal_code?: string | null;
14411
+ provider?: never;
14412
+ raw?: never;
14413
+ status?: string | null;
14414
+ street?: string | null;
14415
+ vat_number?: string | null;
14416
+ website?: string | null;
14417
+ };
14418
+ Update: {
14419
+ city?: string | null;
14420
+ commercial_name?: string | null;
14421
+ company_name?: string | null;
14422
+ connection_id?: never;
14423
+ contact_person?: string | null;
14424
+ country?: string | null;
14425
+ email?: string | null;
14426
+ external_id?: never;
14427
+ fetched_at?: never;
14428
+ gln?: string | null;
14429
+ house_number?: string | null;
14430
+ is_active?: never;
14431
+ is_deleted?: never;
14432
+ logo_url?: string | null;
14433
+ phone?: string | null;
14434
+ postal_code?: string | null;
14435
+ provider?: never;
14436
+ raw?: never;
14437
+ status?: string | null;
14438
+ street?: string | null;
14439
+ vat_number?: string | null;
14440
+ website?: string | null;
14441
+ };
14442
+ Relationships: [];
14443
+ };
12455
14444
  v_external_customers_twinfield: {
12456
14445
  Row: {
12457
14446
  city: string | null;
@@ -13380,6 +15369,170 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13380
15369
  };
13381
15370
  Returns: string;
13382
15371
  };
15372
+ pick_claim_document: {
15373
+ Args: {
15374
+ _queue_item_id: string;
15375
+ _screen_id: string;
15376
+ _session_id: string;
15377
+ _station_id: string;
15378
+ _timeout_seconds?: number;
15379
+ };
15380
+ Returns: {
15381
+ announced_at: string;
15382
+ assigned_user_id: string | null;
15383
+ barcode: string | null;
15384
+ cancelled_at: string | null;
15385
+ cart_count: number;
15386
+ completed_at: string | null;
15387
+ country_code: string | null;
15388
+ created_at: string;
15389
+ customer_name: string | null;
15390
+ delivery_address: string | null;
15391
+ document_number: string | null;
15392
+ document_type_id: string | null;
15393
+ due_at: string | null;
15394
+ id: string;
15395
+ is_urgent: boolean;
15396
+ line_count: number;
15397
+ order_number: string | null;
15398
+ order_type: string | null;
15399
+ payload: import("../integrations/supabase/types").Json;
15400
+ print_count: number;
15401
+ printed_at: string | null;
15402
+ printed_by: string | null;
15403
+ printer_id: string | null;
15404
+ priority: number;
15405
+ reference: string | null;
15406
+ route: string | null;
15407
+ screen_id: string | null;
15408
+ station_id: string | null;
15409
+ status_id: string | null;
15410
+ updated_at: string;
15411
+ warnings: import("../integrations/supabase/types").Json;
15412
+ };
15413
+ SetofOptions: {
15414
+ from: "*";
15415
+ to: "pick_queue";
15416
+ isOneToOne: true;
15417
+ isSetofReturn: false;
15418
+ };
15419
+ };
15420
+ pick_claim_next_document: {
15421
+ Args: {
15422
+ _country_code: string;
15423
+ _screen_id: string;
15424
+ _session_id: string;
15425
+ _station_id: string;
15426
+ _timeout_seconds?: number;
15427
+ };
15428
+ Returns: {
15429
+ announced_at: string;
15430
+ assigned_user_id: string | null;
15431
+ barcode: string | null;
15432
+ cancelled_at: string | null;
15433
+ cart_count: number;
15434
+ completed_at: string | null;
15435
+ country_code: string | null;
15436
+ created_at: string;
15437
+ customer_name: string | null;
15438
+ delivery_address: string | null;
15439
+ document_number: string | null;
15440
+ document_type_id: string | null;
15441
+ due_at: string | null;
15442
+ id: string;
15443
+ is_urgent: boolean;
15444
+ line_count: number;
15445
+ order_number: string | null;
15446
+ order_type: string | null;
15447
+ payload: import("../integrations/supabase/types").Json;
15448
+ print_count: number;
15449
+ printed_at: string | null;
15450
+ printed_by: string | null;
15451
+ printer_id: string | null;
15452
+ priority: number;
15453
+ reference: string | null;
15454
+ route: string | null;
15455
+ screen_id: string | null;
15456
+ station_id: string | null;
15457
+ status_id: string | null;
15458
+ updated_at: string;
15459
+ warnings: import("../integrations/supabase/types").Json;
15460
+ };
15461
+ SetofOptions: {
15462
+ from: "*";
15463
+ to: "pick_queue";
15464
+ isOneToOne: true;
15465
+ isSetofReturn: false;
15466
+ };
15467
+ };
15468
+ pick_complete_print: {
15469
+ Args: {
15470
+ _printer_id: string;
15471
+ _queue_item_id: string;
15472
+ _session_id: string;
15473
+ };
15474
+ Returns: {
15475
+ announced_at: string;
15476
+ assigned_user_id: string | null;
15477
+ barcode: string | null;
15478
+ cancelled_at: string | null;
15479
+ cart_count: number;
15480
+ completed_at: string | null;
15481
+ country_code: string | null;
15482
+ created_at: string;
15483
+ customer_name: string | null;
15484
+ delivery_address: string | null;
15485
+ document_number: string | null;
15486
+ document_type_id: string | null;
15487
+ due_at: string | null;
15488
+ id: string;
15489
+ is_urgent: boolean;
15490
+ line_count: number;
15491
+ order_number: string | null;
15492
+ order_type: string | null;
15493
+ payload: import("../integrations/supabase/types").Json;
15494
+ print_count: number;
15495
+ printed_at: string | null;
15496
+ printed_by: string | null;
15497
+ printer_id: string | null;
15498
+ priority: number;
15499
+ reference: string | null;
15500
+ route: string | null;
15501
+ screen_id: string | null;
15502
+ station_id: string | null;
15503
+ status_id: string | null;
15504
+ updated_at: string;
15505
+ warnings: import("../integrations/supabase/types").Json;
15506
+ };
15507
+ SetofOptions: {
15508
+ from: "*";
15509
+ to: "pick_queue";
15510
+ isOneToOne: true;
15511
+ isSetofReturn: false;
15512
+ };
15513
+ };
15514
+ pick_release_expired_locks: {
15515
+ Args: never;
15516
+ Returns: number;
15517
+ };
15518
+ pick_release_lock: {
15519
+ Args: {
15520
+ _queue_item_id: string;
15521
+ };
15522
+ Returns: undefined;
15523
+ };
15524
+ pick_station_dashboard: {
15525
+ Args: never;
15526
+ Returns: {
15527
+ active: number;
15528
+ active_sessions: number;
15529
+ avg_wait_seconds: number;
15530
+ done_today: number;
15531
+ station_id: string;
15532
+ station_name: string;
15533
+ waiting: number;
15534
+ }[];
15535
+ };
13383
15536
  pickstation_get_orders_raw: {
13384
15537
  Args: never;
13385
15538
  Returns: import("../integrations/supabase/types").Json;
@@ -13481,6 +15634,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13481
15634
  };
13482
15635
  Returns: number;
13483
15636
  };
15637
+ release_debtor_lock: {
15638
+ Args: {
15639
+ _group_key: string;
15640
+ _user_id: string;
15641
+ };
15642
+ Returns: boolean;
15643
+ };
13484
15644
  reorder_customer_price_groups: {
13485
15645
  Args: {
13486
15646
  _ids: string[];
@@ -13860,15 +16020,30 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13860
16020
  };
13861
16021
  Returns: undefined;
13862
16022
  };
13863
- twinfield_decrypt: {
16023
+ try_debtor_lock: {
13864
16024
  Args: {
13865
- cipher: string;
16025
+ _group_key: string;
16026
+ _user_id: string;
13866
16027
  };
13867
- Returns: string;
16028
+ Returns: boolean;
13868
16029
  };
13869
- twinfield_encrypt: {
16030
+ twinfield_register_cron: {
13870
16031
  Args: {
13871
- plain: string;
16032
+ apikey: string;
16033
+ base_url: string;
16034
+ };
16035
+ Returns: import("../integrations/supabase/types").Json;
16036
+ };
16037
+ twinfield_upsert_connection_by_account_key: {
16038
+ Args: {
16039
+ p_account_key: string;
16040
+ p_cluster_uri?: string;
16041
+ p_company_code?: string;
16042
+ p_company_name?: string;
16043
+ p_environment: string;
16044
+ p_office_code?: string;
16045
+ p_status?: string;
16046
+ p_user_id: string;
13872
16047
  };
13873
16048
  Returns: string;
13874
16049
  };
@@ -13885,12 +16060,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13885
16060
  };
13886
16061
  };
13887
16062
  Enums: {
16063
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13888
16064
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16065
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16066
+ doc_orientation: "portrait" | "landscape";
13889
16067
  exact_env: "staging" | "live";
13890
16068
  exact_push_status: "pending" | "sent" | "error";
13891
16069
  itk_customer_segment: "Business" | "Private";
13892
16070
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13893
16071
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16072
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16073
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16074
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13894
16075
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13895
16076
  };
13896
16077
  CompositeTypes: { [_ in never]: never; };