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