@flowselections/floriday-verkoop-module 1.0.35 → 1.0.36

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 (36) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2412 -91
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +2412 -91
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +2412 -91
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +2467 -70
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.js +49 -0
  10. package/dist-lib/lib/cart-lock.functions.d.ts +2412 -91
  11. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  12. package/dist-lib/lib/cart-planning-settings.functions.d.ts +25717 -186
  13. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/cart-replan.functions.d.ts +13131 -6168
  15. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/create-order.functions.d.ts +32680 -186
  17. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +13131 -6168
  19. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +2412 -91
  21. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-mirror.functions.d.ts +2412 -91
  23. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-public.functions.d.ts +31691 -15444
  25. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +22411 -10806
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/order-buffers.functions.d.ts +13131 -6168
  29. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/order-shipments.functions.d.ts +17771 -8487
  31. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/salesorders.functions.d.ts +22411 -10806
  33. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/tradeitems.functions.d.ts +2412 -91
  35. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  36. package/package.json +1 -1
@@ -399,6 +399,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
399
399
  };
400
400
  Relationships: [];
401
401
  };
402
+ ai_layout_imports: {
403
+ Row: {
404
+ analyse_json: import("../integrations/supabase/types").Json;
405
+ bestand_url: string | null;
406
+ bestandsnaam: string;
407
+ bevestigd: boolean;
408
+ created_at: string;
409
+ created_by: string | null;
410
+ foutmelding: string | null;
411
+ id: string;
412
+ layout_id: string | null;
413
+ mime_type: string;
414
+ onzekere_velden: import("../integrations/supabase/types").Json;
415
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
416
+ updated_at: string;
417
+ voorstel: import("../integrations/supabase/types").Json;
418
+ };
419
+ Insert: {
420
+ analyse_json?: import("../integrations/supabase/types").Json;
421
+ bestand_url?: string | null;
422
+ bestandsnaam?: string;
423
+ bevestigd?: boolean;
424
+ created_at?: string;
425
+ created_by?: string | null;
426
+ foutmelding?: string | null;
427
+ id?: string;
428
+ layout_id?: string | null;
429
+ mime_type?: string;
430
+ onzekere_velden?: import("../integrations/supabase/types").Json;
431
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
432
+ updated_at?: string;
433
+ voorstel?: import("../integrations/supabase/types").Json;
434
+ };
435
+ Update: {
436
+ analyse_json?: import("../integrations/supabase/types").Json;
437
+ bestand_url?: string | null;
438
+ bestandsnaam?: string;
439
+ bevestigd?: boolean;
440
+ created_at?: string;
441
+ created_by?: string | null;
442
+ foutmelding?: string | null;
443
+ id?: string;
444
+ layout_id?: string | null;
445
+ mime_type?: string;
446
+ onzekere_velden?: import("../integrations/supabase/types").Json;
447
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
448
+ updated_at?: string;
449
+ voorstel?: import("../integrations/supabase/types").Json;
450
+ };
451
+ Relationships: [{
452
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
453
+ columns: ["layout_id"];
454
+ isOneToOne: false;
455
+ referencedRelation: "document_layouts";
456
+ referencedColumns: ["id"];
457
+ }];
458
+ };
402
459
  ai_model_pricing: {
403
460
  Row: {
404
461
  created_at: string;
@@ -489,6 +546,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
489
546
  created_at: string;
490
547
  credential_id: string;
491
548
  id: string;
549
+ is_default: boolean;
550
+ label: string | null;
492
551
  model_id: string;
493
552
  notes: string | null;
494
553
  updated_at: string;
@@ -498,6 +557,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
498
557
  created_at?: string;
499
558
  credential_id: string;
500
559
  id?: string;
560
+ is_default?: boolean;
561
+ label?: string | null;
501
562
  model_id: string;
502
563
  notes?: string | null;
503
564
  updated_at?: string;
@@ -507,6 +568,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
507
568
  created_at?: string;
508
569
  credential_id?: string;
509
570
  id?: string;
571
+ is_default?: boolean;
572
+ label?: string | null;
510
573
  model_id?: string;
511
574
  notes?: string | null;
512
575
  updated_at?: string;
@@ -525,6 +588,39 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
525
588
  referencedColumns: ["id"];
526
589
  }];
527
590
  };
591
+ ai_modules: {
592
+ Row: {
593
+ ai_enabled: boolean;
594
+ created_at: string;
595
+ id: string;
596
+ module_key: string;
597
+ module_name: string;
598
+ updated_at: string;
599
+ };
600
+ Insert: {
601
+ ai_enabled?: boolean;
602
+ created_at?: string;
603
+ id?: string;
604
+ module_key: string;
605
+ module_name: string;
606
+ updated_at?: string;
607
+ };
608
+ Update: {
609
+ ai_enabled?: boolean;
610
+ created_at?: string;
611
+ id?: string;
612
+ module_key?: string;
613
+ module_name?: string;
614
+ updated_at?: string;
615
+ };
616
+ Relationships: [{
617
+ foreignKeyName: "ai_modules_module_key_fkey";
618
+ columns: ["module_key"];
619
+ isOneToOne: true;
620
+ referencedRelation: "modules";
621
+ referencedColumns: ["module_key"];
622
+ }];
623
+ };
528
624
  ai_providers: {
529
625
  Row: {
530
626
  active: boolean;
@@ -2454,6 +2550,351 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2454
2550
  };
2455
2551
  Relationships: [];
2456
2552
  };
2553
+ document_formaat_printers: {
2554
+ Row: {
2555
+ created_at: string;
2556
+ documenttype: string;
2557
+ formaat_code: string;
2558
+ id: string;
2559
+ printer_id: string | null;
2560
+ updated_at: string;
2561
+ };
2562
+ Insert: {
2563
+ created_at?: string;
2564
+ documenttype: string;
2565
+ formaat_code: string;
2566
+ id?: string;
2567
+ printer_id?: string | null;
2568
+ updated_at?: string;
2569
+ };
2570
+ Update: {
2571
+ created_at?: string;
2572
+ documenttype?: string;
2573
+ formaat_code?: string;
2574
+ id?: string;
2575
+ printer_id?: string | null;
2576
+ updated_at?: string;
2577
+ };
2578
+ Relationships: [{
2579
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2580
+ columns: ["printer_id"];
2581
+ isOneToOne: false;
2582
+ referencedRelation: "printers";
2583
+ referencedColumns: ["id"];
2584
+ }];
2585
+ };
2586
+ document_layout_conditions: {
2587
+ Row: {
2588
+ created_at: string;
2589
+ element_key: string;
2590
+ id: string;
2591
+ layout_id: string;
2592
+ operator: string;
2593
+ updated_at: string;
2594
+ veld: string;
2595
+ waarde: string;
2596
+ };
2597
+ Insert: {
2598
+ created_at?: string;
2599
+ element_key: string;
2600
+ id?: string;
2601
+ layout_id: string;
2602
+ operator?: string;
2603
+ updated_at?: string;
2604
+ veld: string;
2605
+ waarde?: string;
2606
+ };
2607
+ Update: {
2608
+ created_at?: string;
2609
+ element_key?: string;
2610
+ id?: string;
2611
+ layout_id?: string;
2612
+ operator?: string;
2613
+ updated_at?: string;
2614
+ veld?: string;
2615
+ waarde?: string;
2616
+ };
2617
+ Relationships: [{
2618
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2619
+ columns: ["layout_id"];
2620
+ isOneToOne: false;
2621
+ referencedRelation: "document_layouts";
2622
+ referencedColumns: ["id"];
2623
+ }];
2624
+ };
2625
+ document_layout_datasources: {
2626
+ Row: {
2627
+ alias: string;
2628
+ created_at: string;
2629
+ entiteit: string;
2630
+ filter: import("../integrations/supabase/types").Json;
2631
+ id: string;
2632
+ layout_id: string;
2633
+ module_id: string;
2634
+ updated_at: string;
2635
+ };
2636
+ Insert: {
2637
+ alias?: string;
2638
+ created_at?: string;
2639
+ entiteit: string;
2640
+ filter?: import("../integrations/supabase/types").Json;
2641
+ id?: string;
2642
+ layout_id: string;
2643
+ module_id: string;
2644
+ updated_at?: string;
2645
+ };
2646
+ Update: {
2647
+ alias?: string;
2648
+ created_at?: string;
2649
+ entiteit?: string;
2650
+ filter?: import("../integrations/supabase/types").Json;
2651
+ id?: string;
2652
+ layout_id?: string;
2653
+ module_id?: string;
2654
+ updated_at?: string;
2655
+ };
2656
+ Relationships: [{
2657
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2658
+ columns: ["layout_id"];
2659
+ isOneToOne: false;
2660
+ referencedRelation: "document_layouts";
2661
+ referencedColumns: ["id"];
2662
+ }];
2663
+ };
2664
+ document_layout_elements: {
2665
+ Row: {
2666
+ breedte: number;
2667
+ config: import("../integrations/supabase/types").Json;
2668
+ content: string;
2669
+ created_at: string;
2670
+ element_key: string;
2671
+ hoogte: number;
2672
+ id: string;
2673
+ layout_id: string;
2674
+ logo_id: string | null;
2675
+ parent_key: string | null;
2676
+ rotatie: number;
2677
+ stijl: import("../integrations/supabase/types").Json;
2678
+ type: string;
2679
+ updated_at: string;
2680
+ veldpad: string | null;
2681
+ verborgen: boolean;
2682
+ vergrendeld: boolean;
2683
+ volgorde: number;
2684
+ x: number;
2685
+ y: number;
2686
+ z_index: number;
2687
+ };
2688
+ Insert: {
2689
+ breedte?: number;
2690
+ config?: import("../integrations/supabase/types").Json;
2691
+ content?: string;
2692
+ created_at?: string;
2693
+ element_key: string;
2694
+ hoogte?: number;
2695
+ id?: string;
2696
+ layout_id: string;
2697
+ logo_id?: string | null;
2698
+ parent_key?: string | null;
2699
+ rotatie?: number;
2700
+ stijl?: import("../integrations/supabase/types").Json;
2701
+ type: string;
2702
+ updated_at?: string;
2703
+ veldpad?: string | null;
2704
+ verborgen?: boolean;
2705
+ vergrendeld?: boolean;
2706
+ volgorde?: number;
2707
+ x?: number;
2708
+ y?: number;
2709
+ z_index?: number;
2710
+ };
2711
+ Update: {
2712
+ breedte?: number;
2713
+ config?: import("../integrations/supabase/types").Json;
2714
+ content?: string;
2715
+ created_at?: string;
2716
+ element_key?: string;
2717
+ hoogte?: number;
2718
+ id?: string;
2719
+ layout_id?: string;
2720
+ logo_id?: string | null;
2721
+ parent_key?: string | null;
2722
+ rotatie?: number;
2723
+ stijl?: import("../integrations/supabase/types").Json;
2724
+ type?: string;
2725
+ updated_at?: string;
2726
+ veldpad?: string | null;
2727
+ verborgen?: boolean;
2728
+ vergrendeld?: boolean;
2729
+ volgorde?: number;
2730
+ x?: number;
2731
+ y?: number;
2732
+ z_index?: number;
2733
+ };
2734
+ Relationships: [{
2735
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2736
+ columns: ["layout_id"];
2737
+ isOneToOne: false;
2738
+ referencedRelation: "document_layouts";
2739
+ referencedColumns: ["id"];
2740
+ }, {
2741
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2742
+ columns: ["logo_id"];
2743
+ isOneToOne: false;
2744
+ referencedRelation: "layout_logos";
2745
+ referencedColumns: ["id"];
2746
+ }];
2747
+ };
2748
+ document_layout_variables: {
2749
+ Row: {
2750
+ created_at: string;
2751
+ expressie: string;
2752
+ id: string;
2753
+ layout_id: string;
2754
+ naam: string;
2755
+ omschrijving: string;
2756
+ updated_at: string;
2757
+ };
2758
+ Insert: {
2759
+ created_at?: string;
2760
+ expressie?: string;
2761
+ id?: string;
2762
+ layout_id: string;
2763
+ naam: string;
2764
+ omschrijving?: string;
2765
+ updated_at?: string;
2766
+ };
2767
+ Update: {
2768
+ created_at?: string;
2769
+ expressie?: string;
2770
+ id?: string;
2771
+ layout_id?: string;
2772
+ naam?: string;
2773
+ omschrijving?: string;
2774
+ updated_at?: string;
2775
+ };
2776
+ Relationships: [{
2777
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2778
+ columns: ["layout_id"];
2779
+ isOneToOne: false;
2780
+ referencedRelation: "document_layouts";
2781
+ referencedColumns: ["id"];
2782
+ }];
2783
+ };
2784
+ document_layout_versions: {
2785
+ Row: {
2786
+ commentaar: string;
2787
+ created_at: string;
2788
+ created_by: string | null;
2789
+ elements: import("../integrations/supabase/types").Json;
2790
+ id: string;
2791
+ layout_id: string;
2792
+ page_settings: import("../integrations/supabase/types").Json;
2793
+ updated_at: string;
2794
+ versienummer: number;
2795
+ };
2796
+ Insert: {
2797
+ commentaar?: string;
2798
+ created_at?: string;
2799
+ created_by?: string | null;
2800
+ elements?: import("../integrations/supabase/types").Json;
2801
+ id?: string;
2802
+ layout_id: string;
2803
+ page_settings?: import("../integrations/supabase/types").Json;
2804
+ updated_at?: string;
2805
+ versienummer: number;
2806
+ };
2807
+ Update: {
2808
+ commentaar?: string;
2809
+ created_at?: string;
2810
+ created_by?: string | null;
2811
+ elements?: import("../integrations/supabase/types").Json;
2812
+ id?: string;
2813
+ layout_id?: string;
2814
+ page_settings?: import("../integrations/supabase/types").Json;
2815
+ updated_at?: string;
2816
+ versienummer?: number;
2817
+ };
2818
+ Relationships: [{
2819
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2820
+ columns: ["layout_id"];
2821
+ isOneToOne: false;
2822
+ referencedRelation: "document_layouts";
2823
+ referencedColumns: ["id"];
2824
+ }];
2825
+ };
2826
+ document_layouts: {
2827
+ Row: {
2828
+ actief: boolean;
2829
+ breedte_mm: number;
2830
+ config: import("../integrations/supabase/types").Json;
2831
+ created_at: string;
2832
+ created_by: string | null;
2833
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2834
+ hoogte_mm: number;
2835
+ huidige_versie: number;
2836
+ id: string;
2837
+ is_standaard: boolean;
2838
+ marge_boven: number;
2839
+ marge_links: number;
2840
+ marge_onder: number;
2841
+ marge_rechts: number;
2842
+ naam: string;
2843
+ omschrijving: string;
2844
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2845
+ page_settings: import("../integrations/supabase/types").Json;
2846
+ papierformaat: string;
2847
+ thumbnail_url: string | null;
2848
+ updated_at: string;
2849
+ };
2850
+ Insert: {
2851
+ actief?: boolean;
2852
+ breedte_mm?: number;
2853
+ config?: import("../integrations/supabase/types").Json;
2854
+ created_at?: string;
2855
+ created_by?: string | null;
2856
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2857
+ hoogte_mm?: number;
2858
+ huidige_versie?: number;
2859
+ id?: string;
2860
+ is_standaard?: boolean;
2861
+ marge_boven?: number;
2862
+ marge_links?: number;
2863
+ marge_onder?: number;
2864
+ marge_rechts?: number;
2865
+ naam: string;
2866
+ omschrijving?: string;
2867
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2868
+ page_settings?: import("../integrations/supabase/types").Json;
2869
+ papierformaat?: string;
2870
+ thumbnail_url?: string | null;
2871
+ updated_at?: string;
2872
+ };
2873
+ Update: {
2874
+ actief?: boolean;
2875
+ breedte_mm?: number;
2876
+ config?: import("../integrations/supabase/types").Json;
2877
+ created_at?: string;
2878
+ created_by?: string | null;
2879
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2880
+ hoogte_mm?: number;
2881
+ huidige_versie?: number;
2882
+ id?: string;
2883
+ is_standaard?: boolean;
2884
+ marge_boven?: number;
2885
+ marge_links?: number;
2886
+ marge_onder?: number;
2887
+ marge_rechts?: number;
2888
+ naam?: string;
2889
+ omschrijving?: string;
2890
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2891
+ page_settings?: import("../integrations/supabase/types").Json;
2892
+ papierformaat?: string;
2893
+ thumbnail_url?: string | null;
2894
+ updated_at?: string;
2895
+ };
2896
+ Relationships: [];
2897
+ };
2457
2898
  email_auth_connections: {
2458
2899
  Row: {
2459
2900
  access_token_encrypted: string | null;
@@ -2493,6 +2934,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2493
2934
  status: string;
2494
2935
  token_expires_at: string | null;
2495
2936
  updated_at: string;
2937
+ watch_scope: string;
2938
+ webhook_last_attempt_at: string | null;
2939
+ webhook_last_error: string | null;
2940
+ webhook_status: string;
2496
2941
  };
2497
2942
  Insert: {
2498
2943
  access_token_encrypted?: string | null;
@@ -2532,6 +2977,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2532
2977
  status?: string;
2533
2978
  token_expires_at?: string | null;
2534
2979
  updated_at?: string;
2980
+ watch_scope?: string;
2981
+ webhook_last_attempt_at?: string | null;
2982
+ webhook_last_error?: string | null;
2983
+ webhook_status?: string;
2535
2984
  };
2536
2985
  Update: {
2537
2986
  access_token_encrypted?: string | null;
@@ -2571,6 +3020,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2571
3020
  status?: string;
2572
3021
  token_expires_at?: string | null;
2573
3022
  updated_at?: string;
3023
+ watch_scope?: string;
3024
+ webhook_last_attempt_at?: string | null;
3025
+ webhook_last_error?: string | null;
3026
+ webhook_status?: string;
2574
3027
  };
2575
3028
  Relationships: [];
2576
3029
  };
@@ -2766,44 +3219,164 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2766
3219
  referencedColumns: ["id"];
2767
3220
  }];
2768
3221
  };
2769
- exact_account_analytics_cache: {
3222
+ email_auth_watch_folders: {
2770
3223
  Row: {
2771
- account_id: string;
2772
- account_name: string | null;
2773
- avg_payment_days: number | null;
2774
- computed_at: string;
2775
3224
  connection_id: string;
2776
- expires_at: string | null;
3225
+ created_at: string;
3226
+ folder_id: string;
3227
+ folder_name: string | null;
3228
+ gmail_history_id: string | null;
3229
+ graph_subscription_expires_at: string | null;
3230
+ graph_subscription_id: string | null;
2777
3231
  id: string;
2778
- invoice_count: number | null;
2779
- last_invoice_date: string | null;
2780
- last_payment_date: string | null;
2781
- open_balance: number | null;
2782
- overdue_balance: number | null;
2783
- total_revenue: number | null;
3232
+ imap_last_uid: number | null;
3233
+ imap_uid_validity: number | null;
3234
+ mailbox: string;
3235
+ provider: string;
3236
+ updated_at: string;
3237
+ webhook_last_error: string | null;
3238
+ webhook_status: string | null;
2784
3239
  };
2785
3240
  Insert: {
2786
- account_id: string;
2787
- account_name?: string | null;
2788
- avg_payment_days?: number | null;
2789
- computed_at?: string;
2790
3241
  connection_id: string;
2791
- expires_at?: string | null;
3242
+ created_at?: string;
3243
+ folder_id: string;
3244
+ folder_name?: string | null;
3245
+ gmail_history_id?: string | null;
3246
+ graph_subscription_expires_at?: string | null;
3247
+ graph_subscription_id?: string | null;
2792
3248
  id?: string;
2793
- invoice_count?: number | null;
2794
- last_invoice_date?: string | null;
2795
- last_payment_date?: string | null;
2796
- open_balance?: number | null;
2797
- overdue_balance?: number | null;
2798
- total_revenue?: number | null;
3249
+ imap_last_uid?: number | null;
3250
+ imap_uid_validity?: number | null;
3251
+ mailbox?: string;
3252
+ provider: string;
3253
+ updated_at?: string;
3254
+ webhook_last_error?: string | null;
3255
+ webhook_status?: string | null;
2799
3256
  };
2800
3257
  Update: {
2801
- account_id?: string;
2802
- account_name?: string | null;
2803
- avg_payment_days?: number | null;
2804
- computed_at?: string;
2805
3258
  connection_id?: string;
2806
- expires_at?: string | null;
3259
+ created_at?: string;
3260
+ folder_id?: string;
3261
+ folder_name?: string | null;
3262
+ gmail_history_id?: string | null;
3263
+ graph_subscription_expires_at?: string | null;
3264
+ graph_subscription_id?: string | null;
3265
+ id?: string;
3266
+ imap_last_uid?: number | null;
3267
+ imap_uid_validity?: number | null;
3268
+ mailbox?: string;
3269
+ provider?: string;
3270
+ updated_at?: string;
3271
+ webhook_last_error?: string | null;
3272
+ webhook_status?: string | null;
3273
+ };
3274
+ Relationships: [{
3275
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3276
+ columns: ["connection_id"];
3277
+ isOneToOne: false;
3278
+ referencedRelation: "email_auth_connections";
3279
+ referencedColumns: ["id"];
3280
+ }, {
3281
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3282
+ columns: ["connection_id"];
3283
+ isOneToOne: false;
3284
+ referencedRelation: "email_auth_connections_safe";
3285
+ referencedColumns: ["id"];
3286
+ }];
3287
+ };
3288
+ email_auth_webhook_log: {
3289
+ Row: {
3290
+ body_sample: string | null;
3291
+ connection_id: string | null;
3292
+ created_at: string;
3293
+ error_message: string | null;
3294
+ headers_sample: import("../integrations/supabase/types").Json | null;
3295
+ id: string;
3296
+ notification_count: number | null;
3297
+ provider: string | null;
3298
+ source: string | null;
3299
+ status: string;
3300
+ subscription_id: string | null;
3301
+ };
3302
+ Insert: {
3303
+ body_sample?: string | null;
3304
+ connection_id?: string | null;
3305
+ created_at?: string;
3306
+ error_message?: string | null;
3307
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3308
+ id?: string;
3309
+ notification_count?: number | null;
3310
+ provider?: string | null;
3311
+ source?: string | null;
3312
+ status: string;
3313
+ subscription_id?: string | null;
3314
+ };
3315
+ Update: {
3316
+ body_sample?: string | null;
3317
+ connection_id?: string | null;
3318
+ created_at?: string;
3319
+ error_message?: string | null;
3320
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3321
+ id?: string;
3322
+ notification_count?: number | null;
3323
+ provider?: string | null;
3324
+ source?: string | null;
3325
+ status?: string;
3326
+ subscription_id?: string | null;
3327
+ };
3328
+ Relationships: [{
3329
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3330
+ columns: ["connection_id"];
3331
+ isOneToOne: false;
3332
+ referencedRelation: "email_auth_connections";
3333
+ referencedColumns: ["id"];
3334
+ }, {
3335
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3336
+ columns: ["connection_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "email_auth_connections_safe";
3339
+ referencedColumns: ["id"];
3340
+ }];
3341
+ };
3342
+ exact_account_analytics_cache: {
3343
+ Row: {
3344
+ account_id: string;
3345
+ account_name: string | null;
3346
+ avg_payment_days: number | null;
3347
+ computed_at: string;
3348
+ connection_id: string;
3349
+ expires_at: string | null;
3350
+ id: string;
3351
+ invoice_count: number | null;
3352
+ last_invoice_date: string | null;
3353
+ last_payment_date: string | null;
3354
+ open_balance: number | null;
3355
+ overdue_balance: number | null;
3356
+ total_revenue: number | null;
3357
+ };
3358
+ Insert: {
3359
+ account_id: string;
3360
+ account_name?: string | null;
3361
+ avg_payment_days?: number | null;
3362
+ computed_at?: string;
3363
+ connection_id: string;
3364
+ expires_at?: string | null;
3365
+ id?: string;
3366
+ invoice_count?: number | null;
3367
+ last_invoice_date?: string | null;
3368
+ last_payment_date?: string | null;
3369
+ open_balance?: number | null;
3370
+ overdue_balance?: number | null;
3371
+ total_revenue?: number | null;
3372
+ };
3373
+ Update: {
3374
+ account_id?: string;
3375
+ account_name?: string | null;
3376
+ avg_payment_days?: number | null;
3377
+ computed_at?: string;
3378
+ connection_id?: string;
3379
+ expires_at?: string | null;
2807
3380
  id?: string;
2808
3381
  invoice_count?: number | null;
2809
3382
  last_invoice_date?: string | null;
@@ -5979,6 +6552,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5979
6552
  };
5980
6553
  Relationships: [];
5981
6554
  };
6555
+ invoice_post_idempotency: {
6556
+ Row: {
6557
+ client_request_id: string;
6558
+ completed_at: string | null;
6559
+ created_at: string;
6560
+ error_message: string | null;
6561
+ invoice_number: string | null;
6562
+ status: string;
6563
+ user_id: string;
6564
+ };
6565
+ Insert: {
6566
+ client_request_id: string;
6567
+ completed_at?: string | null;
6568
+ created_at?: string;
6569
+ error_message?: string | null;
6570
+ invoice_number?: string | null;
6571
+ status?: string;
6572
+ user_id: string;
6573
+ };
6574
+ Update: {
6575
+ client_request_id?: string;
6576
+ completed_at?: string | null;
6577
+ created_at?: string;
6578
+ error_message?: string | null;
6579
+ invoice_number?: string | null;
6580
+ status?: string;
6581
+ user_id?: string;
6582
+ };
6583
+ Relationships: [];
6584
+ };
5982
6585
  invoice_push_log: {
5983
6586
  Row: {
5984
6587
  connection_id: string | null;
@@ -6366,6 +6969,60 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6366
6969
  referencedColumns: ["id"];
6367
6970
  }];
6368
6971
  };
6972
+ layout_logos: {
6973
+ Row: {
6974
+ bestand_url: string;
6975
+ bestandsgrootte: number;
6976
+ bestandspad: string | null;
6977
+ bestandstype: string;
6978
+ breedte: number;
6979
+ categorie: string;
6980
+ created_at: string;
6981
+ hash: string | null;
6982
+ hoogte: number;
6983
+ id: string;
6984
+ is_standaard: boolean;
6985
+ naam: string;
6986
+ omschrijving: string;
6987
+ transparant: boolean;
6988
+ updated_at: string;
6989
+ };
6990
+ Insert: {
6991
+ bestand_url: string;
6992
+ bestandsgrootte?: number;
6993
+ bestandspad?: string | null;
6994
+ bestandstype?: string;
6995
+ breedte?: number;
6996
+ categorie?: string;
6997
+ created_at?: string;
6998
+ hash?: string | null;
6999
+ hoogte?: number;
7000
+ id?: string;
7001
+ is_standaard?: boolean;
7002
+ naam: string;
7003
+ omschrijving?: string;
7004
+ transparant?: boolean;
7005
+ updated_at?: string;
7006
+ };
7007
+ Update: {
7008
+ bestand_url?: string;
7009
+ bestandsgrootte?: number;
7010
+ bestandspad?: string | null;
7011
+ bestandstype?: string;
7012
+ breedte?: number;
7013
+ categorie?: string;
7014
+ created_at?: string;
7015
+ hash?: string | null;
7016
+ hoogte?: number;
7017
+ id?: string;
7018
+ is_standaard?: boolean;
7019
+ naam?: string;
7020
+ omschrijving?: string;
7021
+ transparant?: boolean;
7022
+ updated_at?: string;
7023
+ };
7024
+ Relationships: [];
7025
+ };
6369
7026
  leave_requests: {
6370
7027
  Row: {
6371
7028
  created_at: string;
@@ -6909,6 +7566,99 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6909
7566
  };
6910
7567
  Relationships: [];
6911
7568
  };
7569
+ mailbox_ai_goal_prompts: {
7570
+ Row: {
7571
+ created_at: string;
7572
+ goal_key: string;
7573
+ id: string;
7574
+ system_prompt: string;
7575
+ updated_at: string;
7576
+ };
7577
+ Insert: {
7578
+ created_at?: string;
7579
+ goal_key: string;
7580
+ id?: string;
7581
+ system_prompt?: string;
7582
+ updated_at?: string;
7583
+ };
7584
+ Update: {
7585
+ created_at?: string;
7586
+ goal_key?: string;
7587
+ id?: string;
7588
+ system_prompt?: string;
7589
+ updated_at?: string;
7590
+ };
7591
+ Relationships: [];
7592
+ };
7593
+ mailbox_ai_settings: {
7594
+ Row: {
7595
+ active_goal_key: string | null;
7596
+ created_at: string;
7597
+ enabled: boolean;
7598
+ id: string;
7599
+ required_fields: string[];
7600
+ singleton: boolean;
7601
+ system_prompt: string | null;
7602
+ updated_at: string;
7603
+ };
7604
+ Insert: {
7605
+ active_goal_key?: string | null;
7606
+ created_at?: string;
7607
+ enabled?: boolean;
7608
+ id?: string;
7609
+ required_fields?: string[];
7610
+ singleton?: boolean;
7611
+ system_prompt?: string | null;
7612
+ updated_at?: string;
7613
+ };
7614
+ Update: {
7615
+ active_goal_key?: string | null;
7616
+ created_at?: string;
7617
+ enabled?: boolean;
7618
+ id?: string;
7619
+ required_fields?: string[];
7620
+ singleton?: boolean;
7621
+ system_prompt?: string | null;
7622
+ updated_at?: string;
7623
+ };
7624
+ Relationships: [];
7625
+ };
7626
+ mailbox_ingest_runs: {
7627
+ Row: {
7628
+ connection_id: string | null;
7629
+ error_sample: string | null;
7630
+ errors: number;
7631
+ finished_at: string | null;
7632
+ id: string;
7633
+ inserted: number;
7634
+ processed: number;
7635
+ started_at: string;
7636
+ trigger: string;
7637
+ };
7638
+ Insert: {
7639
+ connection_id?: string | null;
7640
+ error_sample?: string | null;
7641
+ errors?: number;
7642
+ finished_at?: string | null;
7643
+ id?: string;
7644
+ inserted?: number;
7645
+ processed?: number;
7646
+ started_at?: string;
7647
+ trigger: string;
7648
+ };
7649
+ Update: {
7650
+ connection_id?: string | null;
7651
+ error_sample?: string | null;
7652
+ errors?: number;
7653
+ finished_at?: string | null;
7654
+ id?: string;
7655
+ inserted?: number;
7656
+ processed?: number;
7657
+ started_at?: string;
7658
+ trigger?: string;
7659
+ };
7660
+ Relationships: [];
7661
+ };
6912
7662
  mailbox_messages: {
6913
7663
  Row: {
6914
7664
  body_html: string | null;
@@ -6989,6 +7739,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6989
7739
  };
6990
7740
  mailbox_order_proposals: {
6991
7741
  Row: {
7742
+ ai_validation: import("../integrations/supabase/types").Json | null;
6992
7743
  confidence: number | null;
6993
7744
  created_at: string;
6994
7745
  created_order_id: string | null;
@@ -7005,6 +7756,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7005
7756
  updated_at: string;
7006
7757
  };
7007
7758
  Insert: {
7759
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7008
7760
  confidence?: number | null;
7009
7761
  created_at?: string;
7010
7762
  created_order_id?: string | null;
@@ -7021,6 +7773,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7021
7773
  updated_at?: string;
7022
7774
  };
7023
7775
  Update: {
7776
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7024
7777
  confidence?: number | null;
7025
7778
  created_at?: string;
7026
7779
  created_order_id?: string | null;
@@ -7157,6 +7910,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7157
7910
  created_at: string;
7158
7911
  id: string;
7159
7912
  match_confidence: number | null;
7913
+ plant_type: string | null;
7160
7914
  product_id: string | null;
7161
7915
  proposal_id: string;
7162
7916
  quantity: number | null;
@@ -7169,6 +7923,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7169
7923
  created_at?: string;
7170
7924
  id?: string;
7171
7925
  match_confidence?: number | null;
7926
+ plant_type?: string | null;
7172
7927
  product_id?: string | null;
7173
7928
  proposal_id: string;
7174
7929
  quantity?: number | null;
@@ -7181,6 +7936,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7181
7936
  created_at?: string;
7182
7937
  id?: string;
7183
7938
  match_confidence?: number | null;
7939
+ plant_type?: string | null;
7184
7940
  product_id?: string | null;
7185
7941
  proposal_id?: string;
7186
7942
  quantity?: number | null;
@@ -7365,6 +8121,39 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7365
8121
  };
7366
8122
  Relationships: [];
7367
8123
  };
8124
+ modules: {
8125
+ Row: {
8126
+ created_at: string;
8127
+ description: string | null;
8128
+ id: string;
8129
+ is_active: boolean;
8130
+ last_seen_at: string | null;
8131
+ module_key: string;
8132
+ module_name: string;
8133
+ updated_at: string;
8134
+ };
8135
+ Insert: {
8136
+ created_at?: string;
8137
+ description?: string | null;
8138
+ id?: string;
8139
+ is_active?: boolean;
8140
+ last_seen_at?: string | null;
8141
+ module_key: string;
8142
+ module_name: string;
8143
+ updated_at?: string;
8144
+ };
8145
+ Update: {
8146
+ created_at?: string;
8147
+ description?: string | null;
8148
+ id?: string;
8149
+ is_active?: boolean;
8150
+ last_seen_at?: string | null;
8151
+ module_key?: string;
8152
+ module_name?: string;
8153
+ updated_at?: string;
8154
+ };
8155
+ Relationships: [];
8156
+ };
7368
8157
  monteurs: {
7369
8158
  Row: {
7370
8159
  avatar_url: string | null;
@@ -8604,28 +9393,907 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8604
9393
  };
8605
9394
  Relationships: [];
8606
9395
  };
8607
- pickstation_print_log: {
9396
+ pick_countries: {
8608
9397
  Row: {
8609
- customer_name: string | null;
8610
- documents: string[];
9398
+ active: boolean;
9399
+ code: string;
9400
+ created_at: string;
9401
+ flag: string | null;
8611
9402
  id: string;
8612
- ip_address: string | null;
8613
- order_id: string;
8614
- order_number: string | null;
8615
- printed_at: string;
9403
+ name: string;
9404
+ sort_order: number;
9405
+ updated_at: string;
8616
9406
  };
8617
9407
  Insert: {
8618
- customer_name?: string | null;
8619
- documents?: string[];
9408
+ active?: boolean;
9409
+ code: string;
9410
+ created_at?: string;
9411
+ flag?: string | null;
8620
9412
  id?: string;
8621
- ip_address?: string | null;
8622
- order_id: string;
8623
- order_number?: string | null;
8624
- printed_at?: string;
9413
+ name: string;
9414
+ sort_order?: number;
9415
+ updated_at?: string;
8625
9416
  };
8626
9417
  Update: {
8627
- customer_name?: string | null;
8628
- documents?: string[];
9418
+ active?: boolean;
9419
+ code?: string;
9420
+ created_at?: string;
9421
+ flag?: string | null;
9422
+ id?: string;
9423
+ name?: string;
9424
+ sort_order?: number;
9425
+ updated_at?: string;
9426
+ };
9427
+ Relationships: [];
9428
+ };
9429
+ pick_document_statuses: {
9430
+ Row: {
9431
+ active: boolean;
9432
+ code: string;
9433
+ color: string | null;
9434
+ created_at: string;
9435
+ id: string;
9436
+ is_open: boolean;
9437
+ is_terminal: boolean;
9438
+ name: string;
9439
+ sort_order: number;
9440
+ updated_at: string;
9441
+ };
9442
+ Insert: {
9443
+ active?: boolean;
9444
+ code: string;
9445
+ color?: string | null;
9446
+ created_at?: string;
9447
+ id?: string;
9448
+ is_open?: boolean;
9449
+ is_terminal?: boolean;
9450
+ name: string;
9451
+ sort_order?: number;
9452
+ updated_at?: string;
9453
+ };
9454
+ Update: {
9455
+ active?: boolean;
9456
+ code?: string;
9457
+ color?: string | null;
9458
+ created_at?: string;
9459
+ id?: string;
9460
+ is_open?: boolean;
9461
+ is_terminal?: boolean;
9462
+ name?: string;
9463
+ sort_order?: number;
9464
+ updated_at?: string;
9465
+ };
9466
+ Relationships: [];
9467
+ };
9468
+ pick_document_types: {
9469
+ Row: {
9470
+ active: boolean;
9471
+ code: string;
9472
+ color: string | null;
9473
+ created_at: string;
9474
+ description: string | null;
9475
+ icon: string | null;
9476
+ id: string;
9477
+ name: string;
9478
+ print_template: string | null;
9479
+ printer_id: string | null;
9480
+ priority: number;
9481
+ report_key: string | null;
9482
+ sort_order: number;
9483
+ updated_at: string;
9484
+ workflow: import("../integrations/supabase/types").Json;
9485
+ };
9486
+ Insert: {
9487
+ active?: boolean;
9488
+ code: string;
9489
+ color?: string | null;
9490
+ created_at?: string;
9491
+ description?: string | null;
9492
+ icon?: string | null;
9493
+ id?: string;
9494
+ name: string;
9495
+ print_template?: string | null;
9496
+ printer_id?: string | null;
9497
+ priority?: number;
9498
+ report_key?: string | null;
9499
+ sort_order?: number;
9500
+ updated_at?: string;
9501
+ workflow?: import("../integrations/supabase/types").Json;
9502
+ };
9503
+ Update: {
9504
+ active?: boolean;
9505
+ code?: string;
9506
+ color?: string | null;
9507
+ created_at?: string;
9508
+ description?: string | null;
9509
+ icon?: string | null;
9510
+ id?: string;
9511
+ name?: string;
9512
+ print_template?: string | null;
9513
+ printer_id?: string | null;
9514
+ priority?: number;
9515
+ report_key?: string | null;
9516
+ sort_order?: number;
9517
+ updated_at?: string;
9518
+ workflow?: import("../integrations/supabase/types").Json;
9519
+ };
9520
+ Relationships: [{
9521
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9522
+ columns: ["printer_id"];
9523
+ isOneToOne: false;
9524
+ referencedRelation: "pick_station_printers";
9525
+ referencedColumns: ["id"];
9526
+ }];
9527
+ };
9528
+ pick_queue: {
9529
+ Row: {
9530
+ announced_at: string;
9531
+ assigned_user_id: string | null;
9532
+ barcode: string | null;
9533
+ cancelled_at: string | null;
9534
+ cart_count: number;
9535
+ completed_at: string | null;
9536
+ country_code: string | null;
9537
+ created_at: string;
9538
+ customer_name: string | null;
9539
+ delivery_address: string | null;
9540
+ document_number: string | null;
9541
+ document_type_id: string | null;
9542
+ due_at: string | null;
9543
+ id: string;
9544
+ is_urgent: boolean;
9545
+ line_count: number;
9546
+ order_number: string | null;
9547
+ order_type: string | null;
9548
+ payload: import("../integrations/supabase/types").Json;
9549
+ print_count: number;
9550
+ printed_at: string | null;
9551
+ printed_by: string | null;
9552
+ printer_id: string | null;
9553
+ priority: number;
9554
+ reference: string | null;
9555
+ route: string | null;
9556
+ screen_id: string | null;
9557
+ station_id: string | null;
9558
+ status_id: string | null;
9559
+ updated_at: string;
9560
+ warnings: import("../integrations/supabase/types").Json;
9561
+ };
9562
+ Insert: {
9563
+ announced_at?: string;
9564
+ assigned_user_id?: string | null;
9565
+ barcode?: string | null;
9566
+ cancelled_at?: string | null;
9567
+ cart_count?: number;
9568
+ completed_at?: string | null;
9569
+ country_code?: string | null;
9570
+ created_at?: string;
9571
+ customer_name?: string | null;
9572
+ delivery_address?: string | null;
9573
+ document_number?: string | null;
9574
+ document_type_id?: string | null;
9575
+ due_at?: string | null;
9576
+ id?: string;
9577
+ is_urgent?: boolean;
9578
+ line_count?: number;
9579
+ order_number?: string | null;
9580
+ order_type?: string | null;
9581
+ payload?: import("../integrations/supabase/types").Json;
9582
+ print_count?: number;
9583
+ printed_at?: string | null;
9584
+ printed_by?: string | null;
9585
+ printer_id?: string | null;
9586
+ priority?: number;
9587
+ reference?: string | null;
9588
+ route?: string | null;
9589
+ screen_id?: string | null;
9590
+ station_id?: string | null;
9591
+ status_id?: string | null;
9592
+ updated_at?: string;
9593
+ warnings?: import("../integrations/supabase/types").Json;
9594
+ };
9595
+ Update: {
9596
+ announced_at?: string;
9597
+ assigned_user_id?: string | null;
9598
+ barcode?: string | null;
9599
+ cancelled_at?: string | null;
9600
+ cart_count?: number;
9601
+ completed_at?: string | null;
9602
+ country_code?: string | null;
9603
+ created_at?: string;
9604
+ customer_name?: string | null;
9605
+ delivery_address?: string | null;
9606
+ document_number?: string | null;
9607
+ document_type_id?: string | null;
9608
+ due_at?: string | null;
9609
+ id?: string;
9610
+ is_urgent?: boolean;
9611
+ line_count?: number;
9612
+ order_number?: string | null;
9613
+ order_type?: string | null;
9614
+ payload?: import("../integrations/supabase/types").Json;
9615
+ print_count?: number;
9616
+ printed_at?: string | null;
9617
+ printed_by?: string | null;
9618
+ printer_id?: string | null;
9619
+ priority?: number;
9620
+ reference?: string | null;
9621
+ route?: string | null;
9622
+ screen_id?: string | null;
9623
+ station_id?: string | null;
9624
+ status_id?: string | null;
9625
+ updated_at?: string;
9626
+ warnings?: import("../integrations/supabase/types").Json;
9627
+ };
9628
+ Relationships: [{
9629
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9630
+ columns: ["document_type_id"];
9631
+ isOneToOne: false;
9632
+ referencedRelation: "pick_document_types";
9633
+ referencedColumns: ["id"];
9634
+ }, {
9635
+ foreignKeyName: "pick_queue_printer_id_fkey";
9636
+ columns: ["printer_id"];
9637
+ isOneToOne: false;
9638
+ referencedRelation: "pick_station_printers";
9639
+ referencedColumns: ["id"];
9640
+ }, {
9641
+ foreignKeyName: "pick_queue_screen_id_fkey";
9642
+ columns: ["screen_id"];
9643
+ isOneToOne: false;
9644
+ referencedRelation: "pick_station_screens";
9645
+ referencedColumns: ["id"];
9646
+ }, {
9647
+ foreignKeyName: "pick_queue_station_id_fkey";
9648
+ columns: ["station_id"];
9649
+ isOneToOne: false;
9650
+ referencedRelation: "pick_stations";
9651
+ referencedColumns: ["id"];
9652
+ }, {
9653
+ foreignKeyName: "pick_queue_status_id_fkey";
9654
+ columns: ["status_id"];
9655
+ isOneToOne: false;
9656
+ referencedRelation: "pick_document_statuses";
9657
+ referencedColumns: ["id"];
9658
+ }];
9659
+ };
9660
+ pick_queue_locks: {
9661
+ Row: {
9662
+ expires_at: string;
9663
+ id: string;
9664
+ locked_at: string;
9665
+ locked_by: string | null;
9666
+ queue_item_id: string;
9667
+ screen_id: string | null;
9668
+ session_id: string | null;
9669
+ station_id: string | null;
9670
+ };
9671
+ Insert: {
9672
+ expires_at?: string;
9673
+ id?: string;
9674
+ locked_at?: string;
9675
+ locked_by?: string | null;
9676
+ queue_item_id: string;
9677
+ screen_id?: string | null;
9678
+ session_id?: string | null;
9679
+ station_id?: string | null;
9680
+ };
9681
+ Update: {
9682
+ expires_at?: string;
9683
+ id?: string;
9684
+ locked_at?: string;
9685
+ locked_by?: string | null;
9686
+ queue_item_id?: string;
9687
+ screen_id?: string | null;
9688
+ session_id?: string | null;
9689
+ station_id?: string | null;
9690
+ };
9691
+ Relationships: [{
9692
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9693
+ columns: ["queue_item_id"];
9694
+ isOneToOne: true;
9695
+ referencedRelation: "pick_queue";
9696
+ referencedColumns: ["id"];
9697
+ }, {
9698
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9699
+ columns: ["screen_id"];
9700
+ isOneToOne: false;
9701
+ referencedRelation: "pick_station_screens";
9702
+ referencedColumns: ["id"];
9703
+ }, {
9704
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9705
+ columns: ["station_id"];
9706
+ isOneToOne: false;
9707
+ referencedRelation: "pick_stations";
9708
+ referencedColumns: ["id"];
9709
+ }];
9710
+ };
9711
+ pick_screen_document_types: {
9712
+ Row: {
9713
+ created_at: string;
9714
+ document_type_id: string;
9715
+ id: string;
9716
+ print_order: number;
9717
+ printer_id: string | null;
9718
+ screen_id: string;
9719
+ };
9720
+ Insert: {
9721
+ created_at?: string;
9722
+ document_type_id: string;
9723
+ id?: string;
9724
+ print_order?: number;
9725
+ printer_id?: string | null;
9726
+ screen_id: string;
9727
+ };
9728
+ Update: {
9729
+ created_at?: string;
9730
+ document_type_id?: string;
9731
+ id?: string;
9732
+ print_order?: number;
9733
+ printer_id?: string | null;
9734
+ screen_id?: string;
9735
+ };
9736
+ Relationships: [{
9737
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9738
+ columns: ["document_type_id"];
9739
+ isOneToOne: false;
9740
+ referencedRelation: "pick_document_types";
9741
+ referencedColumns: ["id"];
9742
+ }, {
9743
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9744
+ columns: ["printer_id"];
9745
+ isOneToOne: false;
9746
+ referencedRelation: "pick_station_printers";
9747
+ referencedColumns: ["id"];
9748
+ }, {
9749
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9750
+ columns: ["screen_id"];
9751
+ isOneToOne: false;
9752
+ referencedRelation: "pick_station_screens";
9753
+ referencedColumns: ["id"];
9754
+ }];
9755
+ };
9756
+ pick_station_heartbeats: {
9757
+ Row: {
9758
+ browser: string | null;
9759
+ created_at: string;
9760
+ id: string;
9761
+ ip_address: string | null;
9762
+ last_seen_at: string;
9763
+ screen_id: string | null;
9764
+ session_id: string;
9765
+ station_id: string;
9766
+ user_id: string | null;
9767
+ };
9768
+ Insert: {
9769
+ browser?: string | null;
9770
+ created_at?: string;
9771
+ id?: string;
9772
+ ip_address?: string | null;
9773
+ last_seen_at?: string;
9774
+ screen_id?: string | null;
9775
+ session_id: string;
9776
+ station_id: string;
9777
+ user_id?: string | null;
9778
+ };
9779
+ Update: {
9780
+ browser?: string | null;
9781
+ created_at?: string;
9782
+ id?: string;
9783
+ ip_address?: string | null;
9784
+ last_seen_at?: string;
9785
+ screen_id?: string | null;
9786
+ session_id?: string;
9787
+ station_id?: string;
9788
+ user_id?: string | null;
9789
+ };
9790
+ Relationships: [{
9791
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9792
+ columns: ["screen_id"];
9793
+ isOneToOne: false;
9794
+ referencedRelation: "pick_station_screens";
9795
+ referencedColumns: ["id"];
9796
+ }, {
9797
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9798
+ columns: ["station_id"];
9799
+ isOneToOne: false;
9800
+ referencedRelation: "pick_stations";
9801
+ referencedColumns: ["id"];
9802
+ }];
9803
+ };
9804
+ pick_station_history: {
9805
+ Row: {
9806
+ action: string;
9807
+ changed_by: string | null;
9808
+ created_at: string;
9809
+ entity_id: string;
9810
+ entity_table: string;
9811
+ id: string;
9812
+ new_data: import("../integrations/supabase/types").Json | null;
9813
+ old_data: import("../integrations/supabase/types").Json | null;
9814
+ };
9815
+ Insert: {
9816
+ action: string;
9817
+ changed_by?: string | null;
9818
+ created_at?: string;
9819
+ entity_id: string;
9820
+ entity_table: string;
9821
+ id?: string;
9822
+ new_data?: import("../integrations/supabase/types").Json | null;
9823
+ old_data?: import("../integrations/supabase/types").Json | null;
9824
+ };
9825
+ Update: {
9826
+ action?: string;
9827
+ changed_by?: string | null;
9828
+ created_at?: string;
9829
+ entity_id?: string;
9830
+ entity_table?: string;
9831
+ id?: string;
9832
+ new_data?: import("../integrations/supabase/types").Json | null;
9833
+ old_data?: import("../integrations/supabase/types").Json | null;
9834
+ };
9835
+ Relationships: [];
9836
+ };
9837
+ pick_station_logs: {
9838
+ Row: {
9839
+ action: string;
9840
+ browser: string | null;
9841
+ created_at: string;
9842
+ detail: import("../integrations/supabase/types").Json;
9843
+ duration_ms: number | null;
9844
+ id: string;
9845
+ ip_address: string | null;
9846
+ printer_id: string | null;
9847
+ queue_item_id: string | null;
9848
+ screen_id: string | null;
9849
+ session_id: string | null;
9850
+ station_id: string | null;
9851
+ user_id: string | null;
9852
+ };
9853
+ Insert: {
9854
+ action: string;
9855
+ browser?: string | null;
9856
+ created_at?: string;
9857
+ detail?: import("../integrations/supabase/types").Json;
9858
+ duration_ms?: number | null;
9859
+ id?: string;
9860
+ ip_address?: string | null;
9861
+ printer_id?: string | null;
9862
+ queue_item_id?: string | null;
9863
+ screen_id?: string | null;
9864
+ session_id?: string | null;
9865
+ station_id?: string | null;
9866
+ user_id?: string | null;
9867
+ };
9868
+ Update: {
9869
+ action?: string;
9870
+ browser?: string | null;
9871
+ created_at?: string;
9872
+ detail?: import("../integrations/supabase/types").Json;
9873
+ duration_ms?: number | null;
9874
+ id?: string;
9875
+ ip_address?: string | null;
9876
+ printer_id?: string | null;
9877
+ queue_item_id?: string | null;
9878
+ screen_id?: string | null;
9879
+ session_id?: string | null;
9880
+ station_id?: string | null;
9881
+ user_id?: string | null;
9882
+ };
9883
+ Relationships: [];
9884
+ };
9885
+ pick_station_permissions: {
9886
+ Row: {
9887
+ can_break_lock: boolean;
9888
+ can_cancel: boolean;
9889
+ can_print: boolean;
9890
+ can_reprint: boolean;
9891
+ country_code: string | null;
9892
+ created_at: string;
9893
+ id: string;
9894
+ station_id: string | null;
9895
+ task_id: string | null;
9896
+ updated_at: string;
9897
+ urgent_only: boolean;
9898
+ user_id: string;
9899
+ };
9900
+ Insert: {
9901
+ can_break_lock?: boolean;
9902
+ can_cancel?: boolean;
9903
+ can_print?: boolean;
9904
+ can_reprint?: boolean;
9905
+ country_code?: string | null;
9906
+ created_at?: string;
9907
+ id?: string;
9908
+ station_id?: string | null;
9909
+ task_id?: string | null;
9910
+ updated_at?: string;
9911
+ urgent_only?: boolean;
9912
+ user_id: string;
9913
+ };
9914
+ Update: {
9915
+ can_break_lock?: boolean;
9916
+ can_cancel?: boolean;
9917
+ can_print?: boolean;
9918
+ can_reprint?: boolean;
9919
+ country_code?: string | null;
9920
+ created_at?: string;
9921
+ id?: string;
9922
+ station_id?: string | null;
9923
+ task_id?: string | null;
9924
+ updated_at?: string;
9925
+ urgent_only?: boolean;
9926
+ user_id?: string;
9927
+ };
9928
+ Relationships: [{
9929
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
9930
+ columns: ["station_id"];
9931
+ isOneToOne: false;
9932
+ referencedRelation: "pick_stations";
9933
+ referencedColumns: ["id"];
9934
+ }, {
9935
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
9936
+ columns: ["task_id"];
9937
+ isOneToOne: false;
9938
+ referencedRelation: "pick_station_tasks";
9939
+ referencedColumns: ["id"];
9940
+ }];
9941
+ };
9942
+ pick_station_printers: {
9943
+ Row: {
9944
+ active: boolean;
9945
+ code: string | null;
9946
+ config: import("../integrations/supabase/types").Json;
9947
+ connection: string | null;
9948
+ created_at: string;
9949
+ id: string;
9950
+ last_seen_at: string | null;
9951
+ location: string | null;
9952
+ name: string;
9953
+ status: string;
9954
+ status_message: string | null;
9955
+ target: string | null;
9956
+ updated_at: string;
9957
+ };
9958
+ Insert: {
9959
+ active?: boolean;
9960
+ code?: string | null;
9961
+ config?: import("../integrations/supabase/types").Json;
9962
+ connection?: string | null;
9963
+ created_at?: string;
9964
+ id?: string;
9965
+ last_seen_at?: string | null;
9966
+ location?: string | null;
9967
+ name: string;
9968
+ status?: string;
9969
+ status_message?: string | null;
9970
+ target?: string | null;
9971
+ updated_at?: string;
9972
+ };
9973
+ Update: {
9974
+ active?: boolean;
9975
+ code?: string | null;
9976
+ config?: import("../integrations/supabase/types").Json;
9977
+ connection?: string | null;
9978
+ created_at?: string;
9979
+ id?: string;
9980
+ last_seen_at?: string | null;
9981
+ location?: string | null;
9982
+ name?: string;
9983
+ status?: string;
9984
+ status_message?: string | null;
9985
+ target?: string | null;
9986
+ updated_at?: string;
9987
+ };
9988
+ Relationships: [];
9989
+ };
9990
+ pick_station_screens: {
9991
+ Row: {
9992
+ active: boolean;
9993
+ config: import("../integrations/supabase/types").Json;
9994
+ created_at: string;
9995
+ description: string | null;
9996
+ filters: import("../integrations/supabase/types").Json;
9997
+ id: string;
9998
+ name: string;
9999
+ printer_id: string | null;
10000
+ screen_type: string;
10001
+ sort_order: number;
10002
+ sort_rules: import("../integrations/supabase/types").Json | null;
10003
+ station_id: string;
10004
+ updated_at: string;
10005
+ };
10006
+ Insert: {
10007
+ active?: boolean;
10008
+ config?: import("../integrations/supabase/types").Json;
10009
+ created_at?: string;
10010
+ description?: string | null;
10011
+ filters?: import("../integrations/supabase/types").Json;
10012
+ id?: string;
10013
+ name: string;
10014
+ printer_id?: string | null;
10015
+ screen_type?: string;
10016
+ sort_order?: number;
10017
+ sort_rules?: import("../integrations/supabase/types").Json | null;
10018
+ station_id: string;
10019
+ updated_at?: string;
10020
+ };
10021
+ Update: {
10022
+ active?: boolean;
10023
+ config?: import("../integrations/supabase/types").Json;
10024
+ created_at?: string;
10025
+ description?: string | null;
10026
+ filters?: import("../integrations/supabase/types").Json;
10027
+ id?: string;
10028
+ name?: string;
10029
+ printer_id?: string | null;
10030
+ screen_type?: string;
10031
+ sort_order?: number;
10032
+ sort_rules?: import("../integrations/supabase/types").Json | null;
10033
+ station_id?: string;
10034
+ updated_at?: string;
10035
+ };
10036
+ Relationships: [{
10037
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
10038
+ columns: ["printer_id"];
10039
+ isOneToOne: false;
10040
+ referencedRelation: "pick_station_printers";
10041
+ referencedColumns: ["id"];
10042
+ }, {
10043
+ foreignKeyName: "pick_station_screens_station_id_fkey";
10044
+ columns: ["station_id"];
10045
+ isOneToOne: false;
10046
+ referencedRelation: "pick_stations";
10047
+ referencedColumns: ["id"];
10048
+ }];
10049
+ };
10050
+ pick_station_tasks: {
10051
+ Row: {
10052
+ active: boolean;
10053
+ code: string;
10054
+ color: string | null;
10055
+ created_at: string;
10056
+ description: string | null;
10057
+ icon: string | null;
10058
+ id: string;
10059
+ name: string;
10060
+ sort_order: number;
10061
+ updated_at: string;
10062
+ workflow: import("../integrations/supabase/types").Json;
10063
+ };
10064
+ Insert: {
10065
+ active?: boolean;
10066
+ code: string;
10067
+ color?: string | null;
10068
+ created_at?: string;
10069
+ description?: string | null;
10070
+ icon?: string | null;
10071
+ id?: string;
10072
+ name: string;
10073
+ sort_order?: number;
10074
+ updated_at?: string;
10075
+ workflow?: import("../integrations/supabase/types").Json;
10076
+ };
10077
+ Update: {
10078
+ active?: boolean;
10079
+ code?: string;
10080
+ color?: string | null;
10081
+ created_at?: string;
10082
+ description?: string | null;
10083
+ icon?: string | null;
10084
+ id?: string;
10085
+ name?: string;
10086
+ sort_order?: number;
10087
+ updated_at?: string;
10088
+ workflow?: import("../integrations/supabase/types").Json;
10089
+ };
10090
+ Relationships: [];
10091
+ };
10092
+ pick_station_types: {
10093
+ Row: {
10094
+ active: boolean;
10095
+ code: string;
10096
+ color: string | null;
10097
+ created_at: string;
10098
+ description: string | null;
10099
+ icon: string | null;
10100
+ id: string;
10101
+ name: string;
10102
+ sort_order: number;
10103
+ updated_at: string;
10104
+ };
10105
+ Insert: {
10106
+ active?: boolean;
10107
+ code: string;
10108
+ color?: string | null;
10109
+ created_at?: string;
10110
+ description?: string | null;
10111
+ icon?: string | null;
10112
+ id?: string;
10113
+ name: string;
10114
+ sort_order?: number;
10115
+ updated_at?: string;
10116
+ };
10117
+ Update: {
10118
+ active?: boolean;
10119
+ code?: string;
10120
+ color?: string | null;
10121
+ created_at?: string;
10122
+ description?: string | null;
10123
+ icon?: string | null;
10124
+ id?: string;
10125
+ name?: string;
10126
+ sort_order?: number;
10127
+ updated_at?: string;
10128
+ };
10129
+ Relationships: [];
10130
+ };
10131
+ pick_station_users: {
10132
+ Row: {
10133
+ active: boolean;
10134
+ created_at: string;
10135
+ id: string;
10136
+ station_id: string;
10137
+ user_id: string;
10138
+ };
10139
+ Insert: {
10140
+ active?: boolean;
10141
+ created_at?: string;
10142
+ id?: string;
10143
+ station_id: string;
10144
+ user_id: string;
10145
+ };
10146
+ Update: {
10147
+ active?: boolean;
10148
+ created_at?: string;
10149
+ id?: string;
10150
+ station_id?: string;
10151
+ user_id?: string;
10152
+ };
10153
+ Relationships: [{
10154
+ foreignKeyName: "pick_station_users_station_id_fkey";
10155
+ columns: ["station_id"];
10156
+ isOneToOne: false;
10157
+ referencedRelation: "pick_stations";
10158
+ referencedColumns: ["id"];
10159
+ }];
10160
+ };
10161
+ pick_stations: {
10162
+ Row: {
10163
+ active: boolean;
10164
+ allow_multi_screen: boolean;
10165
+ color: string | null;
10166
+ created_at: string;
10167
+ default_printer_id: string | null;
10168
+ department: string | null;
10169
+ description: string | null;
10170
+ icon: string | null;
10171
+ id: string;
10172
+ location: string | null;
10173
+ lock_timeout_seconds: number;
10174
+ name: string;
10175
+ require_country_selection: boolean;
10176
+ sort_order: number;
10177
+ sort_rules: import("../integrations/supabase/types").Json;
10178
+ task_id: string | null;
10179
+ type_id: string | null;
10180
+ updated_at: string;
10181
+ };
10182
+ Insert: {
10183
+ active?: boolean;
10184
+ allow_multi_screen?: boolean;
10185
+ color?: string | null;
10186
+ created_at?: string;
10187
+ default_printer_id?: string | null;
10188
+ department?: string | null;
10189
+ description?: string | null;
10190
+ icon?: string | null;
10191
+ id?: string;
10192
+ location?: string | null;
10193
+ lock_timeout_seconds?: number;
10194
+ name: string;
10195
+ require_country_selection?: boolean;
10196
+ sort_order?: number;
10197
+ sort_rules?: import("../integrations/supabase/types").Json;
10198
+ task_id?: string | null;
10199
+ type_id?: string | null;
10200
+ updated_at?: string;
10201
+ };
10202
+ Update: {
10203
+ active?: boolean;
10204
+ allow_multi_screen?: boolean;
10205
+ color?: string | null;
10206
+ created_at?: string;
10207
+ default_printer_id?: string | null;
10208
+ department?: string | null;
10209
+ description?: string | null;
10210
+ icon?: string | null;
10211
+ id?: string;
10212
+ location?: string | null;
10213
+ lock_timeout_seconds?: number;
10214
+ name?: string;
10215
+ require_country_selection?: boolean;
10216
+ sort_order?: number;
10217
+ sort_rules?: import("../integrations/supabase/types").Json;
10218
+ task_id?: string | null;
10219
+ type_id?: string | null;
10220
+ updated_at?: string;
10221
+ };
10222
+ Relationships: [{
10223
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10224
+ columns: ["default_printer_id"];
10225
+ isOneToOne: false;
10226
+ referencedRelation: "pick_station_printers";
10227
+ referencedColumns: ["id"];
10228
+ }, {
10229
+ foreignKeyName: "pick_stations_task_id_fkey";
10230
+ columns: ["task_id"];
10231
+ isOneToOne: false;
10232
+ referencedRelation: "pick_station_tasks";
10233
+ referencedColumns: ["id"];
10234
+ }, {
10235
+ foreignKeyName: "pick_stations_type_id_fkey";
10236
+ columns: ["type_id"];
10237
+ isOneToOne: false;
10238
+ referencedRelation: "pick_station_types";
10239
+ referencedColumns: ["id"];
10240
+ }];
10241
+ };
10242
+ pick_task_document_types: {
10243
+ Row: {
10244
+ created_at: string;
10245
+ document_type_id: string;
10246
+ id: string;
10247
+ task_id: string;
10248
+ };
10249
+ Insert: {
10250
+ created_at?: string;
10251
+ document_type_id: string;
10252
+ id?: string;
10253
+ task_id: string;
10254
+ };
10255
+ Update: {
10256
+ created_at?: string;
10257
+ document_type_id?: string;
10258
+ id?: string;
10259
+ task_id?: string;
10260
+ };
10261
+ Relationships: [{
10262
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10263
+ columns: ["document_type_id"];
10264
+ isOneToOne: false;
10265
+ referencedRelation: "pick_document_types";
10266
+ referencedColumns: ["id"];
10267
+ }, {
10268
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10269
+ columns: ["task_id"];
10270
+ isOneToOne: false;
10271
+ referencedRelation: "pick_station_tasks";
10272
+ referencedColumns: ["id"];
10273
+ }];
10274
+ };
10275
+ pickstation_print_log: {
10276
+ Row: {
10277
+ customer_name: string | null;
10278
+ documents: string[];
10279
+ id: string;
10280
+ ip_address: string | null;
10281
+ order_id: string;
10282
+ order_number: string | null;
10283
+ printed_at: string;
10284
+ };
10285
+ Insert: {
10286
+ customer_name?: string | null;
10287
+ documents?: string[];
10288
+ id?: string;
10289
+ ip_address?: string | null;
10290
+ order_id: string;
10291
+ order_number?: string | null;
10292
+ printed_at?: string;
10293
+ };
10294
+ Update: {
10295
+ customer_name?: string | null;
10296
+ documents?: string[];
8629
10297
  id?: string;
8630
10298
  ip_address?: string | null;
8631
10299
  order_id?: string;
@@ -8680,88 +10348,403 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8680
10348
  updated_at?: string;
8681
10349
  };
8682
10350
  Update: {
8683
- automation_type?: string;
8684
- color?: string;
10351
+ automation_type?: string;
10352
+ color?: string;
10353
+ created_at?: string;
10354
+ id?: string;
10355
+ is_active?: boolean;
10356
+ name?: string;
10357
+ sort_order?: number;
10358
+ updated_at?: string;
10359
+ };
10360
+ Relationships: [];
10361
+ };
10362
+ planning_item_assistants: {
10363
+ Row: {
10364
+ created_at: string;
10365
+ created_by: string | null;
10366
+ monteur_id: string;
10367
+ planning_item_id: string;
10368
+ };
10369
+ Insert: {
10370
+ created_at?: string;
10371
+ created_by?: string | null;
10372
+ monteur_id: string;
10373
+ planning_item_id: string;
10374
+ };
10375
+ Update: {
10376
+ created_at?: string;
10377
+ created_by?: string | null;
10378
+ monteur_id?: string;
10379
+ planning_item_id?: string;
10380
+ };
10381
+ Relationships: [{
10382
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
10383
+ columns: ["planning_item_id"];
10384
+ isOneToOne: false;
10385
+ referencedRelation: "planning_items";
10386
+ referencedColumns: ["id"];
10387
+ }];
10388
+ };
10389
+ planning_items: {
10390
+ Row: {
10391
+ assigned_monteur_id: string;
10392
+ created_at: string;
10393
+ created_by: string | null;
10394
+ end_at: string;
10395
+ id: string;
10396
+ notes: string | null;
10397
+ start_at: string;
10398
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10399
+ updated_at: string;
10400
+ werkbon_id: string;
10401
+ };
10402
+ Insert: {
10403
+ assigned_monteur_id: string;
10404
+ created_at?: string;
10405
+ created_by?: string | null;
10406
+ end_at: string;
10407
+ id?: string;
10408
+ notes?: string | null;
10409
+ start_at: string;
10410
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10411
+ updated_at?: string;
10412
+ werkbon_id: string;
10413
+ };
10414
+ Update: {
10415
+ assigned_monteur_id?: string;
10416
+ created_at?: string;
10417
+ created_by?: string | null;
10418
+ end_at?: string;
10419
+ id?: string;
10420
+ notes?: string | null;
10421
+ start_at?: string;
10422
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10423
+ updated_at?: string;
10424
+ werkbon_id?: string;
10425
+ };
10426
+ Relationships: [{
10427
+ foreignKeyName: "planning_items_werkbon_id_fkey";
10428
+ columns: ["werkbon_id"];
10429
+ isOneToOne: false;
10430
+ referencedRelation: "werkbonnen";
10431
+ referencedColumns: ["id"];
10432
+ }];
10433
+ };
10434
+ print_job_logs: {
10435
+ Row: {
10436
+ created_at: string;
10437
+ detail: string;
10438
+ gebeurtenis: string;
10439
+ id: string;
10440
+ job_id: string;
10441
+ };
10442
+ Insert: {
10443
+ created_at?: string;
10444
+ detail?: string;
10445
+ gebeurtenis: string;
10446
+ id?: string;
10447
+ job_id: string;
10448
+ };
10449
+ Update: {
10450
+ created_at?: string;
10451
+ detail?: string;
10452
+ gebeurtenis?: string;
10453
+ id?: string;
10454
+ job_id?: string;
10455
+ };
10456
+ Relationships: [{
10457
+ foreignKeyName: "print_job_logs_job_id_fkey";
10458
+ columns: ["job_id"];
10459
+ isOneToOne: false;
10460
+ referencedRelation: "print_jobs";
10461
+ referencedColumns: ["id"];
10462
+ }];
10463
+ };
10464
+ print_jobs: {
10465
+ Row: {
10466
+ bron_job_id: string | null;
10467
+ created_at: string;
10468
+ documentnaam: string;
10469
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10470
+ foutmelding: string | null;
10471
+ gebruiker_id: string | null;
10472
+ gebruiker_naam: string;
10473
+ gestart_op: string | null;
10474
+ id: string;
10475
+ is_herprint: boolean;
10476
+ kopieen: number;
10477
+ layout_id: string | null;
10478
+ paginas: number;
10479
+ payload: import("../integrations/supabase/types").Json;
10480
+ printer_id: string | null;
10481
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10482
+ updated_at: string;
10483
+ voltooid_op: string | null;
10484
+ };
10485
+ Insert: {
10486
+ bron_job_id?: string | null;
10487
+ created_at?: string;
10488
+ documentnaam?: string;
10489
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10490
+ foutmelding?: string | null;
10491
+ gebruiker_id?: string | null;
10492
+ gebruiker_naam?: string;
10493
+ gestart_op?: string | null;
10494
+ id?: string;
10495
+ is_herprint?: boolean;
10496
+ kopieen?: number;
10497
+ layout_id?: string | null;
10498
+ paginas?: number;
10499
+ payload?: import("../integrations/supabase/types").Json;
10500
+ printer_id?: string | null;
10501
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10502
+ updated_at?: string;
10503
+ voltooid_op?: string | null;
10504
+ };
10505
+ Update: {
10506
+ bron_job_id?: string | null;
10507
+ created_at?: string;
10508
+ documentnaam?: string;
10509
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10510
+ foutmelding?: string | null;
10511
+ gebruiker_id?: string | null;
10512
+ gebruiker_naam?: string;
10513
+ gestart_op?: string | null;
10514
+ id?: string;
10515
+ is_herprint?: boolean;
10516
+ kopieen?: number;
10517
+ layout_id?: string | null;
10518
+ paginas?: number;
10519
+ payload?: import("../integrations/supabase/types").Json;
10520
+ printer_id?: string | null;
10521
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10522
+ updated_at?: string;
10523
+ voltooid_op?: string | null;
10524
+ };
10525
+ Relationships: [{
10526
+ foreignKeyName: "print_jobs_layout_id_fkey";
10527
+ columns: ["layout_id"];
10528
+ isOneToOne: false;
10529
+ referencedRelation: "document_layouts";
10530
+ referencedColumns: ["id"];
10531
+ }, {
10532
+ foreignKeyName: "print_jobs_printer_id_fkey";
10533
+ columns: ["printer_id"];
10534
+ isOneToOne: false;
10535
+ referencedRelation: "printers";
10536
+ referencedColumns: ["id"];
10537
+ }];
10538
+ };
10539
+ print_rules: {
10540
+ Row: {
10541
+ actief: boolean;
10542
+ alleen_eerste_keer: boolean;
10543
+ conditie: import("../integrations/supabase/types").Json;
10544
+ created_at: string;
10545
+ id: string;
10546
+ kopieen: number;
10547
+ layout_id: string;
10548
+ naam: string;
10549
+ printer_id: string | null;
10550
+ updated_at: string;
10551
+ volgorde: number;
10552
+ };
10553
+ Insert: {
10554
+ actief?: boolean;
10555
+ alleen_eerste_keer?: boolean;
10556
+ conditie?: import("../integrations/supabase/types").Json;
10557
+ created_at?: string;
10558
+ id?: string;
10559
+ kopieen?: number;
10560
+ layout_id: string;
10561
+ naam?: string;
10562
+ printer_id?: string | null;
10563
+ updated_at?: string;
10564
+ volgorde?: number;
10565
+ };
10566
+ Update: {
10567
+ actief?: boolean;
10568
+ alleen_eerste_keer?: boolean;
10569
+ conditie?: import("../integrations/supabase/types").Json;
10570
+ created_at?: string;
10571
+ id?: string;
10572
+ kopieen?: number;
10573
+ layout_id?: string;
10574
+ naam?: string;
10575
+ printer_id?: string | null;
10576
+ updated_at?: string;
10577
+ volgorde?: number;
10578
+ };
10579
+ Relationships: [{
10580
+ foreignKeyName: "print_rules_layout_id_fkey";
10581
+ columns: ["layout_id"];
10582
+ isOneToOne: false;
10583
+ referencedRelation: "document_layouts";
10584
+ referencedColumns: ["id"];
10585
+ }, {
10586
+ foreignKeyName: "print_rules_printer_id_fkey";
10587
+ columns: ["printer_id"];
10588
+ isOneToOne: false;
10589
+ referencedRelation: "printers";
10590
+ referencedColumns: ["id"];
10591
+ }];
10592
+ };
10593
+ printer_mappings: {
10594
+ Row: {
10595
+ created_at: string;
10596
+ id: string;
10597
+ layout_id: string;
10598
+ printer_id: string;
10599
+ prioriteit: number;
10600
+ updated_at: string;
10601
+ };
10602
+ Insert: {
10603
+ created_at?: string;
10604
+ id?: string;
10605
+ layout_id: string;
10606
+ printer_id: string;
10607
+ prioriteit?: number;
10608
+ updated_at?: string;
10609
+ };
10610
+ Update: {
8685
10611
  created_at?: string;
8686
10612
  id?: string;
8687
- is_active?: boolean;
8688
- name?: string;
8689
- sort_order?: number;
10613
+ layout_id?: string;
10614
+ printer_id?: string;
10615
+ prioriteit?: number;
8690
10616
  updated_at?: string;
8691
10617
  };
8692
- Relationships: [];
10618
+ Relationships: [{
10619
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10620
+ columns: ["layout_id"];
10621
+ isOneToOne: false;
10622
+ referencedRelation: "document_layouts";
10623
+ referencedColumns: ["id"];
10624
+ }, {
10625
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10626
+ columns: ["printer_id"];
10627
+ isOneToOne: false;
10628
+ referencedRelation: "printers";
10629
+ referencedColumns: ["id"];
10630
+ }];
8693
10631
  };
8694
- planning_item_assistants: {
10632
+ printer_profiles: {
8695
10633
  Row: {
10634
+ auto_schalen: boolean;
8696
10635
  created_at: string;
8697
- created_by: string | null;
8698
- monteur_id: string;
8699
- planning_item_id: string;
10636
+ duplex: boolean;
10637
+ id: string;
10638
+ is_standaard: boolean;
10639
+ kleur: boolean;
10640
+ kopieen: number;
10641
+ label_gap: number;
10642
+ naam: string;
10643
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10644
+ papierlade: string;
10645
+ printer_id: string;
10646
+ resolutie: number;
10647
+ snijden: boolean;
10648
+ updated_at: string;
8700
10649
  };
8701
10650
  Insert: {
10651
+ auto_schalen?: boolean;
8702
10652
  created_at?: string;
8703
- created_by?: string | null;
8704
- monteur_id: string;
8705
- planning_item_id: string;
10653
+ duplex?: boolean;
10654
+ id?: string;
10655
+ is_standaard?: boolean;
10656
+ kleur?: boolean;
10657
+ kopieen?: number;
10658
+ label_gap?: number;
10659
+ naam?: string;
10660
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10661
+ papierlade?: string;
10662
+ printer_id: string;
10663
+ resolutie?: number;
10664
+ snijden?: boolean;
10665
+ updated_at?: string;
8706
10666
  };
8707
10667
  Update: {
10668
+ auto_schalen?: boolean;
8708
10669
  created_at?: string;
8709
- created_by?: string | null;
8710
- monteur_id?: string;
8711
- planning_item_id?: string;
10670
+ duplex?: boolean;
10671
+ id?: string;
10672
+ is_standaard?: boolean;
10673
+ kleur?: boolean;
10674
+ kopieen?: number;
10675
+ label_gap?: number;
10676
+ naam?: string;
10677
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10678
+ papierlade?: string;
10679
+ printer_id?: string;
10680
+ resolutie?: number;
10681
+ snijden?: boolean;
10682
+ updated_at?: string;
8712
10683
  };
8713
10684
  Relationships: [{
8714
- foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8715
- columns: ["planning_item_id"];
10685
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10686
+ columns: ["printer_id"];
8716
10687
  isOneToOne: false;
8717
- referencedRelation: "planning_items";
10688
+ referencedRelation: "printers";
8718
10689
  referencedColumns: ["id"];
8719
10690
  }];
8720
10691
  };
8721
- planning_items: {
10692
+ printers: {
8722
10693
  Row: {
8723
- assigned_monteur_id: string;
10694
+ actief: boolean;
8724
10695
  created_at: string;
8725
- created_by: string | null;
8726
- end_at: string;
10696
+ driver: string;
8727
10697
  id: string;
8728
- notes: string | null;
8729
- start_at: string;
8730
- status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10698
+ ip_adres: string | null;
10699
+ laatst_gezien: string | null;
10700
+ locatie: string;
10701
+ merk: string;
10702
+ naam: string;
10703
+ omschrijving: string;
10704
+ online: boolean;
10705
+ papierformaat: string;
10706
+ poort: number | null;
10707
+ soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8731
10708
  updated_at: string;
8732
- werkbon_id: string;
10709
+ verbinding: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8733
10710
  };
8734
10711
  Insert: {
8735
- assigned_monteur_id: string;
10712
+ actief?: boolean;
8736
10713
  created_at?: string;
8737
- created_by?: string | null;
8738
- end_at: string;
10714
+ driver?: string;
8739
10715
  id?: string;
8740
- notes?: string | null;
8741
- start_at: string;
8742
- status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10716
+ ip_adres?: string | null;
10717
+ laatst_gezien?: string | null;
10718
+ locatie?: string;
10719
+ merk?: string;
10720
+ naam: string;
10721
+ omschrijving?: string;
10722
+ online?: boolean;
10723
+ papierformaat?: string;
10724
+ poort?: number | null;
10725
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8743
10726
  updated_at?: string;
8744
- werkbon_id: string;
10727
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8745
10728
  };
8746
10729
  Update: {
8747
- assigned_monteur_id?: string;
10730
+ actief?: boolean;
8748
10731
  created_at?: string;
8749
- created_by?: string | null;
8750
- end_at?: string;
10732
+ driver?: string;
8751
10733
  id?: string;
8752
- notes?: string | null;
8753
- start_at?: string;
8754
- status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10734
+ ip_adres?: string | null;
10735
+ laatst_gezien?: string | null;
10736
+ locatie?: string;
10737
+ merk?: string;
10738
+ naam?: string;
10739
+ omschrijving?: string;
10740
+ online?: boolean;
10741
+ papierformaat?: string;
10742
+ poort?: number | null;
10743
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8755
10744
  updated_at?: string;
8756
- werkbon_id?: string;
10745
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8757
10746
  };
8758
- Relationships: [{
8759
- foreignKeyName: "planning_items_werkbon_id_fkey";
8760
- columns: ["werkbon_id"];
8761
- isOneToOne: false;
8762
- referencedRelation: "werkbonnen";
8763
- referencedColumns: ["id"];
8764
- }];
10747
+ Relationships: [];
8765
10748
  };
8766
10749
  product_bom_items: {
8767
10750
  Row: {
@@ -11271,6 +13254,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11271
13254
  };
11272
13255
  Relationships: [];
11273
13256
  };
13257
+ twinfield_revoked_accounts: {
13258
+ Row: {
13259
+ account_key: string;
13260
+ last_revoke_error: string | null;
13261
+ revoked_at: string;
13262
+ user_id: string;
13263
+ };
13264
+ Insert: {
13265
+ account_key: string;
13266
+ last_revoke_error?: string | null;
13267
+ revoked_at?: string;
13268
+ user_id: string;
13269
+ };
13270
+ Update: {
13271
+ account_key?: string;
13272
+ last_revoke_error?: string | null;
13273
+ revoked_at?: string;
13274
+ user_id?: string;
13275
+ };
13276
+ Relationships: [];
13277
+ };
11274
13278
  twinfield_session_cache: {
11275
13279
  Row: {
11276
13280
  cluster: string;
@@ -11373,6 +13377,48 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11373
13377
  referencedColumns: ["id"];
11374
13378
  }];
11375
13379
  };
13380
+ voorraad_custom_fields: {
13381
+ Row: {
13382
+ created_at: string;
13383
+ field_key: string;
13384
+ field_label: string;
13385
+ field_type: string;
13386
+ id: string;
13387
+ options: string[];
13388
+ show_in_columns: boolean;
13389
+ show_in_detail: boolean;
13390
+ show_in_template: boolean;
13391
+ sort_order: number;
13392
+ updated_at: string;
13393
+ };
13394
+ Insert: {
13395
+ created_at?: string;
13396
+ field_key: string;
13397
+ field_label: string;
13398
+ field_type?: string;
13399
+ id?: string;
13400
+ options?: string[];
13401
+ show_in_columns?: boolean;
13402
+ show_in_detail?: boolean;
13403
+ show_in_template?: boolean;
13404
+ sort_order?: number;
13405
+ updated_at?: string;
13406
+ };
13407
+ Update: {
13408
+ created_at?: string;
13409
+ field_key?: string;
13410
+ field_label?: string;
13411
+ field_type?: string;
13412
+ id?: string;
13413
+ options?: string[];
13414
+ show_in_columns?: boolean;
13415
+ show_in_detail?: boolean;
13416
+ show_in_template?: boolean;
13417
+ sort_order?: number;
13418
+ updated_at?: string;
13419
+ };
13420
+ Relationships: [];
13421
+ };
11376
13422
  voorraad_media_upload_failures: {
11377
13423
  Row: {
11378
13424
  action: string;
@@ -12030,6 +14076,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12030
14076
  status: string | null;
12031
14077
  token_expires_at: string | null;
12032
14078
  updated_at: string | null;
14079
+ webhook_last_attempt_at: string | null;
14080
+ webhook_last_error: string | null;
14081
+ webhook_status: string | null;
12033
14082
  };
12034
14083
  Insert: {
12035
14084
  account_email?: string | null;
@@ -12064,6 +14113,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12064
14113
  status?: string | null;
12065
14114
  token_expires_at?: string | null;
12066
14115
  updated_at?: string | null;
14116
+ webhook_last_attempt_at?: string | null;
14117
+ webhook_last_error?: string | null;
14118
+ webhook_status?: string | null;
12067
14119
  };
12068
14120
  Update: {
12069
14121
  account_email?: string | null;
@@ -12098,6 +14150,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12098
14150
  status?: string | null;
12099
14151
  token_expires_at?: string | null;
12100
14152
  updated_at?: string | null;
14153
+ webhook_last_attempt_at?: string | null;
14154
+ webhook_last_error?: string | null;
14155
+ webhook_status?: string | null;
12101
14156
  };
12102
14157
  Relationships: [];
12103
14158
  };
@@ -12378,6 +14433,81 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12378
14433
  referencedColumns: ["id"];
12379
14434
  }];
12380
14435
  };
14436
+ v_external_customers_local: {
14437
+ Row: {
14438
+ city: string | null;
14439
+ commercial_name: string | null;
14440
+ company_name: string | null;
14441
+ connection_id: string | null;
14442
+ contact_person: string | null;
14443
+ country: string | null;
14444
+ email: string | null;
14445
+ external_id: string | null;
14446
+ fetched_at: string | null;
14447
+ gln: string | null;
14448
+ house_number: string | null;
14449
+ is_active: boolean | null;
14450
+ is_deleted: boolean | null;
14451
+ logo_url: string | null;
14452
+ phone: string | null;
14453
+ postal_code: string | null;
14454
+ provider: string | null;
14455
+ raw: import("../integrations/supabase/types").Json | null;
14456
+ status: string | null;
14457
+ street: string | null;
14458
+ vat_number: string | null;
14459
+ website: string | null;
14460
+ };
14461
+ Insert: {
14462
+ city?: string | null;
14463
+ commercial_name?: string | null;
14464
+ company_name?: string | null;
14465
+ connection_id?: never;
14466
+ contact_person?: string | null;
14467
+ country?: string | null;
14468
+ email?: string | null;
14469
+ external_id?: never;
14470
+ fetched_at?: never;
14471
+ gln?: string | null;
14472
+ house_number?: string | null;
14473
+ is_active?: never;
14474
+ is_deleted?: never;
14475
+ logo_url?: string | null;
14476
+ phone?: string | null;
14477
+ postal_code?: string | null;
14478
+ provider?: never;
14479
+ raw?: never;
14480
+ status?: string | null;
14481
+ street?: string | null;
14482
+ vat_number?: string | null;
14483
+ website?: string | null;
14484
+ };
14485
+ Update: {
14486
+ city?: string | null;
14487
+ commercial_name?: string | null;
14488
+ company_name?: string | null;
14489
+ connection_id?: never;
14490
+ contact_person?: string | null;
14491
+ country?: string | null;
14492
+ email?: string | null;
14493
+ external_id?: never;
14494
+ fetched_at?: never;
14495
+ gln?: string | null;
14496
+ house_number?: string | null;
14497
+ is_active?: never;
14498
+ is_deleted?: never;
14499
+ logo_url?: string | null;
14500
+ phone?: string | null;
14501
+ postal_code?: string | null;
14502
+ provider?: never;
14503
+ raw?: never;
14504
+ status?: string | null;
14505
+ street?: string | null;
14506
+ vat_number?: string | null;
14507
+ website?: string | null;
14508
+ };
14509
+ Relationships: [];
14510
+ };
12381
14511
  v_external_customers_twinfield: {
12382
14512
  Row: {
12383
14513
  city: string | null;
@@ -13306,6 +15436,170 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13306
15436
  };
13307
15437
  Returns: string;
13308
15438
  };
15439
+ pick_claim_document: {
15440
+ Args: {
15441
+ _queue_item_id: string;
15442
+ _screen_id: string;
15443
+ _session_id: string;
15444
+ _station_id: string;
15445
+ _timeout_seconds?: number;
15446
+ };
15447
+ Returns: {
15448
+ announced_at: string;
15449
+ assigned_user_id: string | null;
15450
+ barcode: string | null;
15451
+ cancelled_at: string | null;
15452
+ cart_count: number;
15453
+ completed_at: string | null;
15454
+ country_code: string | null;
15455
+ created_at: string;
15456
+ customer_name: string | null;
15457
+ delivery_address: string | null;
15458
+ document_number: string | null;
15459
+ document_type_id: string | null;
15460
+ due_at: string | null;
15461
+ id: string;
15462
+ is_urgent: boolean;
15463
+ line_count: number;
15464
+ order_number: string | null;
15465
+ order_type: string | null;
15466
+ payload: import("../integrations/supabase/types").Json;
15467
+ print_count: number;
15468
+ printed_at: string | null;
15469
+ printed_by: string | null;
15470
+ printer_id: string | null;
15471
+ priority: number;
15472
+ reference: string | null;
15473
+ route: string | null;
15474
+ screen_id: string | null;
15475
+ station_id: string | null;
15476
+ status_id: string | null;
15477
+ updated_at: string;
15478
+ warnings: import("../integrations/supabase/types").Json;
15479
+ };
15480
+ SetofOptions: {
15481
+ from: "*";
15482
+ to: "pick_queue";
15483
+ isOneToOne: true;
15484
+ isSetofReturn: false;
15485
+ };
15486
+ };
15487
+ pick_claim_next_document: {
15488
+ Args: {
15489
+ _country_code: string;
15490
+ _screen_id: string;
15491
+ _session_id: string;
15492
+ _station_id: string;
15493
+ _timeout_seconds?: number;
15494
+ };
15495
+ Returns: {
15496
+ announced_at: string;
15497
+ assigned_user_id: string | null;
15498
+ barcode: string | null;
15499
+ cancelled_at: string | null;
15500
+ cart_count: number;
15501
+ completed_at: string | null;
15502
+ country_code: string | null;
15503
+ created_at: string;
15504
+ customer_name: string | null;
15505
+ delivery_address: string | null;
15506
+ document_number: string | null;
15507
+ document_type_id: string | null;
15508
+ due_at: string | null;
15509
+ id: string;
15510
+ is_urgent: boolean;
15511
+ line_count: number;
15512
+ order_number: string | null;
15513
+ order_type: string | null;
15514
+ payload: import("../integrations/supabase/types").Json;
15515
+ print_count: number;
15516
+ printed_at: string | null;
15517
+ printed_by: string | null;
15518
+ printer_id: string | null;
15519
+ priority: number;
15520
+ reference: string | null;
15521
+ route: string | null;
15522
+ screen_id: string | null;
15523
+ station_id: string | null;
15524
+ status_id: string | null;
15525
+ updated_at: string;
15526
+ warnings: import("../integrations/supabase/types").Json;
15527
+ };
15528
+ SetofOptions: {
15529
+ from: "*";
15530
+ to: "pick_queue";
15531
+ isOneToOne: true;
15532
+ isSetofReturn: false;
15533
+ };
15534
+ };
15535
+ pick_complete_print: {
15536
+ Args: {
15537
+ _printer_id: string;
15538
+ _queue_item_id: string;
15539
+ _session_id: string;
15540
+ };
15541
+ Returns: {
15542
+ announced_at: string;
15543
+ assigned_user_id: string | null;
15544
+ barcode: string | null;
15545
+ cancelled_at: string | null;
15546
+ cart_count: number;
15547
+ completed_at: string | null;
15548
+ country_code: string | null;
15549
+ created_at: string;
15550
+ customer_name: string | null;
15551
+ delivery_address: string | null;
15552
+ document_number: string | null;
15553
+ document_type_id: string | null;
15554
+ due_at: string | null;
15555
+ id: string;
15556
+ is_urgent: boolean;
15557
+ line_count: number;
15558
+ order_number: string | null;
15559
+ order_type: string | null;
15560
+ payload: import("../integrations/supabase/types").Json;
15561
+ print_count: number;
15562
+ printed_at: string | null;
15563
+ printed_by: string | null;
15564
+ printer_id: string | null;
15565
+ priority: number;
15566
+ reference: string | null;
15567
+ route: string | null;
15568
+ screen_id: string | null;
15569
+ station_id: string | null;
15570
+ status_id: string | null;
15571
+ updated_at: string;
15572
+ warnings: import("../integrations/supabase/types").Json;
15573
+ };
15574
+ SetofOptions: {
15575
+ from: "*";
15576
+ to: "pick_queue";
15577
+ isOneToOne: true;
15578
+ isSetofReturn: false;
15579
+ };
15580
+ };
15581
+ pick_release_expired_locks: {
15582
+ Args: never;
15583
+ Returns: number;
15584
+ };
15585
+ pick_release_lock: {
15586
+ Args: {
15587
+ _queue_item_id: string;
15588
+ };
15589
+ Returns: undefined;
15590
+ };
15591
+ pick_station_dashboard: {
15592
+ Args: never;
15593
+ Returns: {
15594
+ active: number;
15595
+ active_sessions: number;
15596
+ avg_wait_seconds: number;
15597
+ done_today: number;
15598
+ station_id: string;
15599
+ station_name: string;
15600
+ waiting: number;
15601
+ }[];
15602
+ };
13309
15603
  pickstation_get_orders_raw: {
13310
15604
  Args: never;
13311
15605
  Returns: import("../integrations/supabase/types").Json;
@@ -13407,6 +15701,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13407
15701
  };
13408
15702
  Returns: number;
13409
15703
  };
15704
+ release_debtor_lock: {
15705
+ Args: {
15706
+ _group_key: string;
15707
+ _user_id: string;
15708
+ };
15709
+ Returns: boolean;
15710
+ };
13410
15711
  reorder_customer_price_groups: {
13411
15712
  Args: {
13412
15713
  _ids: string[];
@@ -13786,6 +16087,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13786
16087
  };
13787
16088
  Returns: undefined;
13788
16089
  };
16090
+ try_debtor_lock: {
16091
+ Args: {
16092
+ _group_key: string;
16093
+ _user_id: string;
16094
+ };
16095
+ Returns: boolean;
16096
+ };
16097
+ twinfield_register_cron: {
16098
+ Args: {
16099
+ apikey: string;
16100
+ base_url: string;
16101
+ };
16102
+ Returns: import("../integrations/supabase/types").Json;
16103
+ };
13789
16104
  twinfield_upsert_connection_by_account_key: {
13790
16105
  Args: {
13791
16106
  p_account_key: string;
@@ -13812,12 +16127,18 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13812
16127
  };
13813
16128
  };
13814
16129
  Enums: {
16130
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13815
16131
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16132
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16133
+ doc_orientation: "portrait" | "landscape";
13816
16134
  exact_env: "staging" | "live";
13817
16135
  exact_push_status: "pending" | "sent" | "error";
13818
16136
  itk_customer_segment: "Business" | "Private";
13819
16137
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13820
16138
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16139
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16140
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16141
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13821
16142
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13822
16143
  };
13823
16144
  CompositeTypes: { [_ in never]: never; };