@flowselections/floriday-afhandeling-module 1.0.24 → 1.0.25

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 (40) hide show
  1. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts +2 -0
  2. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/NieuweVervoerderPage.js +5 -0
  4. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts +4 -0
  5. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.js +5 -0
  7. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  8. package/dist-lib/index.d.ts +2 -0
  9. package/dist-lib/index.d.ts.map +1 -1
  10. package/dist-lib/index.js +2 -0
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2578 -143
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +2578 -143
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.d.ts +2578 -143
  16. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/types.d.ts +2642 -127
  18. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.js +49 -0
  20. package/dist-lib/lib/afhandelingSettings.functions.d.ts +14153 -9283
  21. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/carriers.functions.d.ts +25813 -13638
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartAssignments.functions.d.ts +25813 -13638
  25. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartControl.functions.d.ts +24566 -216
  27. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.d.ts +2578 -143
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +20344 -10604
  31. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +2578 -143
  33. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +14175 -9305
  35. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +42220 -22740
  37. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +20344 -10604
  39. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  40. package/package.json +3 -3
@@ -400,6 +400,63 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
400
400
  };
401
401
  Relationships: [];
402
402
  };
403
+ ai_layout_imports: {
404
+ Row: {
405
+ analyse_json: import("../../integrations/supabase/types").Json;
406
+ bestand_url: string | null;
407
+ bestandsnaam: string;
408
+ bevestigd: boolean;
409
+ created_at: string;
410
+ created_by: string | null;
411
+ foutmelding: string | null;
412
+ id: string;
413
+ layout_id: string | null;
414
+ mime_type: string;
415
+ onzekere_velden: import("../../integrations/supabase/types").Json;
416
+ status: import("../../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
417
+ updated_at: string;
418
+ voorstel: import("../../integrations/supabase/types").Json;
419
+ };
420
+ Insert: {
421
+ analyse_json?: import("../../integrations/supabase/types").Json;
422
+ bestand_url?: string | null;
423
+ bestandsnaam?: string;
424
+ bevestigd?: boolean;
425
+ created_at?: string;
426
+ created_by?: string | null;
427
+ foutmelding?: string | null;
428
+ id?: string;
429
+ layout_id?: string | null;
430
+ mime_type?: string;
431
+ onzekere_velden?: import("../../integrations/supabase/types").Json;
432
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
433
+ updated_at?: string;
434
+ voorstel?: import("../../integrations/supabase/types").Json;
435
+ };
436
+ Update: {
437
+ analyse_json?: import("../../integrations/supabase/types").Json;
438
+ bestand_url?: string | null;
439
+ bestandsnaam?: string;
440
+ bevestigd?: boolean;
441
+ created_at?: string;
442
+ created_by?: string | null;
443
+ foutmelding?: string | null;
444
+ id?: string;
445
+ layout_id?: string | null;
446
+ mime_type?: string;
447
+ onzekere_velden?: import("../../integrations/supabase/types").Json;
448
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
449
+ updated_at?: string;
450
+ voorstel?: import("../../integrations/supabase/types").Json;
451
+ };
452
+ Relationships: [{
453
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
454
+ columns: ["layout_id"];
455
+ isOneToOne: false;
456
+ referencedRelation: "document_layouts";
457
+ referencedColumns: ["id"];
458
+ }];
459
+ };
403
460
  ai_model_pricing: {
404
461
  Row: {
405
462
  created_at: string;
@@ -490,6 +547,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
490
547
  created_at: string;
491
548
  credential_id: string;
492
549
  id: string;
550
+ is_default: boolean;
551
+ label: string | null;
493
552
  model_id: string;
494
553
  notes: string | null;
495
554
  updated_at: string;
@@ -499,6 +558,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
499
558
  created_at?: string;
500
559
  credential_id: string;
501
560
  id?: string;
561
+ is_default?: boolean;
562
+ label?: string | null;
502
563
  model_id: string;
503
564
  notes?: string | null;
504
565
  updated_at?: string;
@@ -508,6 +569,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
508
569
  created_at?: string;
509
570
  credential_id?: string;
510
571
  id?: string;
572
+ is_default?: boolean;
573
+ label?: string | null;
511
574
  model_id?: string;
512
575
  notes?: string | null;
513
576
  updated_at?: string;
@@ -526,6 +589,39 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
526
589
  referencedColumns: ["id"];
527
590
  }];
528
591
  };
592
+ ai_modules: {
593
+ Row: {
594
+ ai_enabled: boolean;
595
+ created_at: string;
596
+ id: string;
597
+ module_key: string;
598
+ module_name: string;
599
+ updated_at: string;
600
+ };
601
+ Insert: {
602
+ ai_enabled?: boolean;
603
+ created_at?: string;
604
+ id?: string;
605
+ module_key: string;
606
+ module_name: string;
607
+ updated_at?: string;
608
+ };
609
+ Update: {
610
+ ai_enabled?: boolean;
611
+ created_at?: string;
612
+ id?: string;
613
+ module_key?: string;
614
+ module_name?: string;
615
+ updated_at?: string;
616
+ };
617
+ Relationships: [{
618
+ foreignKeyName: "ai_modules_module_key_fkey";
619
+ columns: ["module_key"];
620
+ isOneToOne: true;
621
+ referencedRelation: "modules";
622
+ referencedColumns: ["module_key"];
623
+ }];
624
+ };
529
625
  ai_providers: {
530
626
  Row: {
531
627
  active: boolean;
@@ -1268,6 +1364,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
1268
1364
  require_same_crate_type: boolean;
1269
1365
  require_same_delivery_date: boolean;
1270
1366
  require_same_delivery_location: boolean;
1367
+ uniform_pick_time: boolean;
1368
+ uniform_pick_time_seconds: number;
1271
1369
  updated_at: string;
1272
1370
  updated_by: string | null;
1273
1371
  };
@@ -1292,6 +1390,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
1292
1390
  require_same_crate_type?: boolean;
1293
1391
  require_same_delivery_date?: boolean;
1294
1392
  require_same_delivery_location?: boolean;
1393
+ uniform_pick_time?: boolean;
1394
+ uniform_pick_time_seconds?: number;
1295
1395
  updated_at?: string;
1296
1396
  updated_by?: string | null;
1297
1397
  };
@@ -1316,6 +1416,8 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
1316
1416
  require_same_crate_type?: boolean;
1317
1417
  require_same_delivery_date?: boolean;
1318
1418
  require_same_delivery_location?: boolean;
1419
+ uniform_pick_time?: boolean;
1420
+ uniform_pick_time_seconds?: number;
1319
1421
  updated_at?: string;
1320
1422
  updated_by?: string | null;
1321
1423
  };
@@ -2449,6 +2551,351 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
2449
2551
  };
2450
2552
  Relationships: [];
2451
2553
  };
2554
+ document_formaat_printers: {
2555
+ Row: {
2556
+ created_at: string;
2557
+ documenttype: string;
2558
+ formaat_code: string;
2559
+ id: string;
2560
+ printer_id: string | null;
2561
+ updated_at: string;
2562
+ };
2563
+ Insert: {
2564
+ created_at?: string;
2565
+ documenttype: string;
2566
+ formaat_code: string;
2567
+ id?: string;
2568
+ printer_id?: string | null;
2569
+ updated_at?: string;
2570
+ };
2571
+ Update: {
2572
+ created_at?: string;
2573
+ documenttype?: string;
2574
+ formaat_code?: string;
2575
+ id?: string;
2576
+ printer_id?: string | null;
2577
+ updated_at?: string;
2578
+ };
2579
+ Relationships: [{
2580
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2581
+ columns: ["printer_id"];
2582
+ isOneToOne: false;
2583
+ referencedRelation: "printers";
2584
+ referencedColumns: ["id"];
2585
+ }];
2586
+ };
2587
+ document_layout_conditions: {
2588
+ Row: {
2589
+ created_at: string;
2590
+ element_key: string;
2591
+ id: string;
2592
+ layout_id: string;
2593
+ operator: string;
2594
+ updated_at: string;
2595
+ veld: string;
2596
+ waarde: string;
2597
+ };
2598
+ Insert: {
2599
+ created_at?: string;
2600
+ element_key: string;
2601
+ id?: string;
2602
+ layout_id: string;
2603
+ operator?: string;
2604
+ updated_at?: string;
2605
+ veld: string;
2606
+ waarde?: string;
2607
+ };
2608
+ Update: {
2609
+ created_at?: string;
2610
+ element_key?: string;
2611
+ id?: string;
2612
+ layout_id?: string;
2613
+ operator?: string;
2614
+ updated_at?: string;
2615
+ veld?: string;
2616
+ waarde?: string;
2617
+ };
2618
+ Relationships: [{
2619
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2620
+ columns: ["layout_id"];
2621
+ isOneToOne: false;
2622
+ referencedRelation: "document_layouts";
2623
+ referencedColumns: ["id"];
2624
+ }];
2625
+ };
2626
+ document_layout_datasources: {
2627
+ Row: {
2628
+ alias: string;
2629
+ created_at: string;
2630
+ entiteit: string;
2631
+ filter: import("../../integrations/supabase/types").Json;
2632
+ id: string;
2633
+ layout_id: string;
2634
+ module_id: string;
2635
+ updated_at: string;
2636
+ };
2637
+ Insert: {
2638
+ alias?: string;
2639
+ created_at?: string;
2640
+ entiteit: string;
2641
+ filter?: import("../../integrations/supabase/types").Json;
2642
+ id?: string;
2643
+ layout_id: string;
2644
+ module_id: string;
2645
+ updated_at?: string;
2646
+ };
2647
+ Update: {
2648
+ alias?: string;
2649
+ created_at?: string;
2650
+ entiteit?: string;
2651
+ filter?: import("../../integrations/supabase/types").Json;
2652
+ id?: string;
2653
+ layout_id?: string;
2654
+ module_id?: string;
2655
+ updated_at?: string;
2656
+ };
2657
+ Relationships: [{
2658
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2659
+ columns: ["layout_id"];
2660
+ isOneToOne: false;
2661
+ referencedRelation: "document_layouts";
2662
+ referencedColumns: ["id"];
2663
+ }];
2664
+ };
2665
+ document_layout_elements: {
2666
+ Row: {
2667
+ breedte: number;
2668
+ config: import("../../integrations/supabase/types").Json;
2669
+ content: string;
2670
+ created_at: string;
2671
+ element_key: string;
2672
+ hoogte: number;
2673
+ id: string;
2674
+ layout_id: string;
2675
+ logo_id: string | null;
2676
+ parent_key: string | null;
2677
+ rotatie: number;
2678
+ stijl: import("../../integrations/supabase/types").Json;
2679
+ type: string;
2680
+ updated_at: string;
2681
+ veldpad: string | null;
2682
+ verborgen: boolean;
2683
+ vergrendeld: boolean;
2684
+ volgorde: number;
2685
+ x: number;
2686
+ y: number;
2687
+ z_index: number;
2688
+ };
2689
+ Insert: {
2690
+ breedte?: number;
2691
+ config?: import("../../integrations/supabase/types").Json;
2692
+ content?: string;
2693
+ created_at?: string;
2694
+ element_key: string;
2695
+ hoogte?: number;
2696
+ id?: string;
2697
+ layout_id: string;
2698
+ logo_id?: string | null;
2699
+ parent_key?: string | null;
2700
+ rotatie?: number;
2701
+ stijl?: import("../../integrations/supabase/types").Json;
2702
+ type: string;
2703
+ updated_at?: string;
2704
+ veldpad?: string | null;
2705
+ verborgen?: boolean;
2706
+ vergrendeld?: boolean;
2707
+ volgorde?: number;
2708
+ x?: number;
2709
+ y?: number;
2710
+ z_index?: number;
2711
+ };
2712
+ Update: {
2713
+ breedte?: number;
2714
+ config?: import("../../integrations/supabase/types").Json;
2715
+ content?: string;
2716
+ created_at?: string;
2717
+ element_key?: string;
2718
+ hoogte?: number;
2719
+ id?: string;
2720
+ layout_id?: string;
2721
+ logo_id?: string | null;
2722
+ parent_key?: string | null;
2723
+ rotatie?: number;
2724
+ stijl?: import("../../integrations/supabase/types").Json;
2725
+ type?: string;
2726
+ updated_at?: string;
2727
+ veldpad?: string | null;
2728
+ verborgen?: boolean;
2729
+ vergrendeld?: boolean;
2730
+ volgorde?: number;
2731
+ x?: number;
2732
+ y?: number;
2733
+ z_index?: number;
2734
+ };
2735
+ Relationships: [{
2736
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2737
+ columns: ["layout_id"];
2738
+ isOneToOne: false;
2739
+ referencedRelation: "document_layouts";
2740
+ referencedColumns: ["id"];
2741
+ }, {
2742
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2743
+ columns: ["logo_id"];
2744
+ isOneToOne: false;
2745
+ referencedRelation: "layout_logos";
2746
+ referencedColumns: ["id"];
2747
+ }];
2748
+ };
2749
+ document_layout_variables: {
2750
+ Row: {
2751
+ created_at: string;
2752
+ expressie: string;
2753
+ id: string;
2754
+ layout_id: string;
2755
+ naam: string;
2756
+ omschrijving: string;
2757
+ updated_at: string;
2758
+ };
2759
+ Insert: {
2760
+ created_at?: string;
2761
+ expressie?: string;
2762
+ id?: string;
2763
+ layout_id: string;
2764
+ naam: string;
2765
+ omschrijving?: string;
2766
+ updated_at?: string;
2767
+ };
2768
+ Update: {
2769
+ created_at?: string;
2770
+ expressie?: string;
2771
+ id?: string;
2772
+ layout_id?: string;
2773
+ naam?: string;
2774
+ omschrijving?: string;
2775
+ updated_at?: string;
2776
+ };
2777
+ Relationships: [{
2778
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2779
+ columns: ["layout_id"];
2780
+ isOneToOne: false;
2781
+ referencedRelation: "document_layouts";
2782
+ referencedColumns: ["id"];
2783
+ }];
2784
+ };
2785
+ document_layout_versions: {
2786
+ Row: {
2787
+ commentaar: string;
2788
+ created_at: string;
2789
+ created_by: string | null;
2790
+ elements: import("../../integrations/supabase/types").Json;
2791
+ id: string;
2792
+ layout_id: string;
2793
+ page_settings: import("../../integrations/supabase/types").Json;
2794
+ updated_at: string;
2795
+ versienummer: number;
2796
+ };
2797
+ Insert: {
2798
+ commentaar?: string;
2799
+ created_at?: string;
2800
+ created_by?: string | null;
2801
+ elements?: import("../../integrations/supabase/types").Json;
2802
+ id?: string;
2803
+ layout_id: string;
2804
+ page_settings?: import("../../integrations/supabase/types").Json;
2805
+ updated_at?: string;
2806
+ versienummer: number;
2807
+ };
2808
+ Update: {
2809
+ commentaar?: string;
2810
+ created_at?: string;
2811
+ created_by?: string | null;
2812
+ elements?: import("../../integrations/supabase/types").Json;
2813
+ id?: string;
2814
+ layout_id?: string;
2815
+ page_settings?: import("../../integrations/supabase/types").Json;
2816
+ updated_at?: string;
2817
+ versienummer?: number;
2818
+ };
2819
+ Relationships: [{
2820
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2821
+ columns: ["layout_id"];
2822
+ isOneToOne: false;
2823
+ referencedRelation: "document_layouts";
2824
+ referencedColumns: ["id"];
2825
+ }];
2826
+ };
2827
+ document_layouts: {
2828
+ Row: {
2829
+ actief: boolean;
2830
+ breedte_mm: number;
2831
+ config: import("../../integrations/supabase/types").Json;
2832
+ created_at: string;
2833
+ created_by: string | null;
2834
+ documenttype: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2835
+ hoogte_mm: number;
2836
+ huidige_versie: number;
2837
+ id: string;
2838
+ is_standaard: boolean;
2839
+ marge_boven: number;
2840
+ marge_links: number;
2841
+ marge_onder: number;
2842
+ marge_rechts: number;
2843
+ naam: string;
2844
+ omschrijving: string;
2845
+ orientatie: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2846
+ page_settings: import("../../integrations/supabase/types").Json;
2847
+ papierformaat: string;
2848
+ thumbnail_url: string | null;
2849
+ updated_at: string;
2850
+ };
2851
+ Insert: {
2852
+ actief?: boolean;
2853
+ breedte_mm?: number;
2854
+ config?: import("../../integrations/supabase/types").Json;
2855
+ created_at?: string;
2856
+ created_by?: string | null;
2857
+ documenttype?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2858
+ hoogte_mm?: number;
2859
+ huidige_versie?: number;
2860
+ id?: string;
2861
+ is_standaard?: boolean;
2862
+ marge_boven?: number;
2863
+ marge_links?: number;
2864
+ marge_onder?: number;
2865
+ marge_rechts?: number;
2866
+ naam: string;
2867
+ omschrijving?: string;
2868
+ orientatie?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2869
+ page_settings?: import("../../integrations/supabase/types").Json;
2870
+ papierformaat?: string;
2871
+ thumbnail_url?: string | null;
2872
+ updated_at?: string;
2873
+ };
2874
+ Update: {
2875
+ actief?: boolean;
2876
+ breedte_mm?: number;
2877
+ config?: import("../../integrations/supabase/types").Json;
2878
+ created_at?: string;
2879
+ created_by?: string | null;
2880
+ documenttype?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2881
+ hoogte_mm?: number;
2882
+ huidige_versie?: number;
2883
+ id?: string;
2884
+ is_standaard?: boolean;
2885
+ marge_boven?: number;
2886
+ marge_links?: number;
2887
+ marge_onder?: number;
2888
+ marge_rechts?: number;
2889
+ naam?: string;
2890
+ omschrijving?: string;
2891
+ orientatie?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2892
+ page_settings?: import("../../integrations/supabase/types").Json;
2893
+ papierformaat?: string;
2894
+ thumbnail_url?: string | null;
2895
+ updated_at?: string;
2896
+ };
2897
+ Relationships: [];
2898
+ };
2452
2899
  email_auth_connections: {
2453
2900
  Row: {
2454
2901
  access_token_encrypted: string | null;
@@ -2488,6 +2935,10 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
2488
2935
  status: string;
2489
2936
  token_expires_at: string | null;
2490
2937
  updated_at: string;
2938
+ watch_scope: string;
2939
+ webhook_last_attempt_at: string | null;
2940
+ webhook_last_error: string | null;
2941
+ webhook_status: string;
2491
2942
  };
2492
2943
  Insert: {
2493
2944
  access_token_encrypted?: string | null;
@@ -2527,6 +2978,10 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
2527
2978
  status?: string;
2528
2979
  token_expires_at?: string | null;
2529
2980
  updated_at?: string;
2981
+ watch_scope?: string;
2982
+ webhook_last_attempt_at?: string | null;
2983
+ webhook_last_error?: string | null;
2984
+ webhook_status?: string;
2530
2985
  };
2531
2986
  Update: {
2532
2987
  access_token_encrypted?: string | null;
@@ -2566,6 +3021,10 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
2566
3021
  status?: string;
2567
3022
  token_expires_at?: string | null;
2568
3023
  updated_at?: string;
3024
+ watch_scope?: string;
3025
+ webhook_last_attempt_at?: string | null;
3026
+ webhook_last_error?: string | null;
3027
+ webhook_status?: string;
2569
3028
  };
2570
3029
  Relationships: [];
2571
3030
  };
@@ -2761,44 +3220,164 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
2761
3220
  referencedColumns: ["id"];
2762
3221
  }];
2763
3222
  };
2764
- exact_account_analytics_cache: {
3223
+ email_auth_watch_folders: {
2765
3224
  Row: {
2766
- account_id: string;
2767
- account_name: string | null;
2768
- avg_payment_days: number | null;
2769
- computed_at: string;
2770
3225
  connection_id: string;
2771
- expires_at: string | null;
3226
+ created_at: string;
3227
+ folder_id: string;
3228
+ folder_name: string | null;
3229
+ gmail_history_id: string | null;
3230
+ graph_subscription_expires_at: string | null;
3231
+ graph_subscription_id: string | null;
2772
3232
  id: string;
2773
- invoice_count: number | null;
2774
- last_invoice_date: string | null;
2775
- last_payment_date: string | null;
2776
- open_balance: number | null;
2777
- overdue_balance: number | null;
2778
- total_revenue: number | null;
3233
+ imap_last_uid: number | null;
3234
+ imap_uid_validity: number | null;
3235
+ mailbox: string;
3236
+ provider: string;
3237
+ updated_at: string;
3238
+ webhook_last_error: string | null;
3239
+ webhook_status: string | null;
2779
3240
  };
2780
3241
  Insert: {
2781
- account_id: string;
2782
- account_name?: string | null;
2783
- avg_payment_days?: number | null;
2784
- computed_at?: string;
2785
3242
  connection_id: string;
2786
- expires_at?: string | null;
3243
+ created_at?: string;
3244
+ folder_id: string;
3245
+ folder_name?: string | null;
3246
+ gmail_history_id?: string | null;
3247
+ graph_subscription_expires_at?: string | null;
3248
+ graph_subscription_id?: string | null;
2787
3249
  id?: string;
2788
- invoice_count?: number | null;
2789
- last_invoice_date?: string | null;
2790
- last_payment_date?: string | null;
2791
- open_balance?: number | null;
2792
- overdue_balance?: number | null;
2793
- total_revenue?: number | null;
3250
+ imap_last_uid?: number | null;
3251
+ imap_uid_validity?: number | null;
3252
+ mailbox?: string;
3253
+ provider: string;
3254
+ updated_at?: string;
3255
+ webhook_last_error?: string | null;
3256
+ webhook_status?: string | null;
2794
3257
  };
2795
3258
  Update: {
2796
- account_id?: string;
2797
- account_name?: string | null;
2798
- avg_payment_days?: number | null;
2799
- computed_at?: string;
2800
3259
  connection_id?: string;
2801
- expires_at?: string | null;
3260
+ created_at?: string;
3261
+ folder_id?: string;
3262
+ folder_name?: string | null;
3263
+ gmail_history_id?: string | null;
3264
+ graph_subscription_expires_at?: string | null;
3265
+ graph_subscription_id?: string | null;
3266
+ id?: string;
3267
+ imap_last_uid?: number | null;
3268
+ imap_uid_validity?: number | null;
3269
+ mailbox?: string;
3270
+ provider?: string;
3271
+ updated_at?: string;
3272
+ webhook_last_error?: string | null;
3273
+ webhook_status?: string | null;
3274
+ };
3275
+ Relationships: [{
3276
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3277
+ columns: ["connection_id"];
3278
+ isOneToOne: false;
3279
+ referencedRelation: "email_auth_connections";
3280
+ referencedColumns: ["id"];
3281
+ }, {
3282
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3283
+ columns: ["connection_id"];
3284
+ isOneToOne: false;
3285
+ referencedRelation: "email_auth_connections_safe";
3286
+ referencedColumns: ["id"];
3287
+ }];
3288
+ };
3289
+ email_auth_webhook_log: {
3290
+ Row: {
3291
+ body_sample: string | null;
3292
+ connection_id: string | null;
3293
+ created_at: string;
3294
+ error_message: string | null;
3295
+ headers_sample: import("../../integrations/supabase/types").Json | null;
3296
+ id: string;
3297
+ notification_count: number | null;
3298
+ provider: string | null;
3299
+ source: string | null;
3300
+ status: string;
3301
+ subscription_id: string | null;
3302
+ };
3303
+ Insert: {
3304
+ body_sample?: string | null;
3305
+ connection_id?: string | null;
3306
+ created_at?: string;
3307
+ error_message?: string | null;
3308
+ headers_sample?: import("../../integrations/supabase/types").Json | null;
3309
+ id?: string;
3310
+ notification_count?: number | null;
3311
+ provider?: string | null;
3312
+ source?: string | null;
3313
+ status: string;
3314
+ subscription_id?: string | null;
3315
+ };
3316
+ Update: {
3317
+ body_sample?: string | null;
3318
+ connection_id?: string | null;
3319
+ created_at?: string;
3320
+ error_message?: string | null;
3321
+ headers_sample?: import("../../integrations/supabase/types").Json | null;
3322
+ id?: string;
3323
+ notification_count?: number | null;
3324
+ provider?: string | null;
3325
+ source?: string | null;
3326
+ status?: string;
3327
+ subscription_id?: string | null;
3328
+ };
3329
+ Relationships: [{
3330
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3331
+ columns: ["connection_id"];
3332
+ isOneToOne: false;
3333
+ referencedRelation: "email_auth_connections";
3334
+ referencedColumns: ["id"];
3335
+ }, {
3336
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3337
+ columns: ["connection_id"];
3338
+ isOneToOne: false;
3339
+ referencedRelation: "email_auth_connections_safe";
3340
+ referencedColumns: ["id"];
3341
+ }];
3342
+ };
3343
+ exact_account_analytics_cache: {
3344
+ Row: {
3345
+ account_id: string;
3346
+ account_name: string | null;
3347
+ avg_payment_days: number | null;
3348
+ computed_at: string;
3349
+ connection_id: string;
3350
+ expires_at: string | null;
3351
+ id: string;
3352
+ invoice_count: number | null;
3353
+ last_invoice_date: string | null;
3354
+ last_payment_date: string | null;
3355
+ open_balance: number | null;
3356
+ overdue_balance: number | null;
3357
+ total_revenue: number | null;
3358
+ };
3359
+ Insert: {
3360
+ account_id: string;
3361
+ account_name?: string | null;
3362
+ avg_payment_days?: number | null;
3363
+ computed_at?: string;
3364
+ connection_id: string;
3365
+ expires_at?: string | null;
3366
+ id?: string;
3367
+ invoice_count?: number | null;
3368
+ last_invoice_date?: string | null;
3369
+ last_payment_date?: string | null;
3370
+ open_balance?: number | null;
3371
+ overdue_balance?: number | null;
3372
+ total_revenue?: number | null;
3373
+ };
3374
+ Update: {
3375
+ account_id?: string;
3376
+ account_name?: string | null;
3377
+ avg_payment_days?: number | null;
3378
+ computed_at?: string;
3379
+ connection_id?: string;
3380
+ expires_at?: string | null;
2802
3381
  id?: string;
2803
3382
  invoice_count?: number | null;
2804
3383
  last_invoice_date?: string | null;
@@ -5974,6 +6553,36 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
5974
6553
  };
5975
6554
  Relationships: [];
5976
6555
  };
6556
+ invoice_post_idempotency: {
6557
+ Row: {
6558
+ client_request_id: string;
6559
+ completed_at: string | null;
6560
+ created_at: string;
6561
+ error_message: string | null;
6562
+ invoice_number: string | null;
6563
+ status: string;
6564
+ user_id: string;
6565
+ };
6566
+ Insert: {
6567
+ client_request_id: string;
6568
+ completed_at?: string | null;
6569
+ created_at?: string;
6570
+ error_message?: string | null;
6571
+ invoice_number?: string | null;
6572
+ status?: string;
6573
+ user_id: string;
6574
+ };
6575
+ Update: {
6576
+ client_request_id?: string;
6577
+ completed_at?: string | null;
6578
+ created_at?: string;
6579
+ error_message?: string | null;
6580
+ invoice_number?: string | null;
6581
+ status?: string;
6582
+ user_id?: string;
6583
+ };
6584
+ Relationships: [];
6585
+ };
5977
6586
  invoice_push_log: {
5978
6587
  Row: {
5979
6588
  connection_id: string | null;
@@ -6361,6 +6970,60 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
6361
6970
  referencedColumns: ["id"];
6362
6971
  }];
6363
6972
  };
6973
+ layout_logos: {
6974
+ Row: {
6975
+ bestand_url: string;
6976
+ bestandsgrootte: number;
6977
+ bestandspad: string | null;
6978
+ bestandstype: string;
6979
+ breedte: number;
6980
+ categorie: string;
6981
+ created_at: string;
6982
+ hash: string | null;
6983
+ hoogte: number;
6984
+ id: string;
6985
+ is_standaard: boolean;
6986
+ naam: string;
6987
+ omschrijving: string;
6988
+ transparant: boolean;
6989
+ updated_at: string;
6990
+ };
6991
+ Insert: {
6992
+ bestand_url: string;
6993
+ bestandsgrootte?: number;
6994
+ bestandspad?: string | null;
6995
+ bestandstype?: string;
6996
+ breedte?: number;
6997
+ categorie?: string;
6998
+ created_at?: string;
6999
+ hash?: string | null;
7000
+ hoogte?: number;
7001
+ id?: string;
7002
+ is_standaard?: boolean;
7003
+ naam: string;
7004
+ omschrijving?: string;
7005
+ transparant?: boolean;
7006
+ updated_at?: string;
7007
+ };
7008
+ Update: {
7009
+ bestand_url?: string;
7010
+ bestandsgrootte?: number;
7011
+ bestandspad?: string | null;
7012
+ bestandstype?: string;
7013
+ breedte?: number;
7014
+ categorie?: string;
7015
+ created_at?: string;
7016
+ hash?: string | null;
7017
+ hoogte?: number;
7018
+ id?: string;
7019
+ is_standaard?: boolean;
7020
+ naam?: string;
7021
+ omschrijving?: string;
7022
+ transparant?: boolean;
7023
+ updated_at?: string;
7024
+ };
7025
+ Relationships: [];
7026
+ };
6364
7027
  leave_requests: {
6365
7028
  Row: {
6366
7029
  created_at: string;
@@ -6775,6 +7438,96 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
6775
7438
  referencedColumns: ["id"];
6776
7439
  }];
6777
7440
  };
7441
+ logistics_rule_configs: {
7442
+ Row: {
7443
+ created_at: string;
7444
+ current_version: number;
7445
+ description: string | null;
7446
+ id: string;
7447
+ is_active: boolean;
7448
+ name: string;
7449
+ settings: import("../../integrations/supabase/types").Json;
7450
+ status: string;
7451
+ strategy_id: string | null;
7452
+ updated_at: string;
7453
+ user_id: string;
7454
+ };
7455
+ Insert: {
7456
+ created_at?: string;
7457
+ current_version?: number;
7458
+ description?: string | null;
7459
+ id?: string;
7460
+ is_active?: boolean;
7461
+ name: string;
7462
+ settings?: import("../../integrations/supabase/types").Json;
7463
+ status?: string;
7464
+ strategy_id?: string | null;
7465
+ updated_at?: string;
7466
+ user_id?: string;
7467
+ };
7468
+ Update: {
7469
+ created_at?: string;
7470
+ current_version?: number;
7471
+ description?: string | null;
7472
+ id?: string;
7473
+ is_active?: boolean;
7474
+ name?: string;
7475
+ settings?: import("../../integrations/supabase/types").Json;
7476
+ status?: string;
7477
+ strategy_id?: string | null;
7478
+ updated_at?: string;
7479
+ user_id?: string;
7480
+ };
7481
+ Relationships: [{
7482
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7483
+ columns: ["strategy_id"];
7484
+ isOneToOne: false;
7485
+ referencedRelation: "logistics_strategies";
7486
+ referencedColumns: ["id"];
7487
+ }];
7488
+ };
7489
+ logistics_rule_versions: {
7490
+ Row: {
7491
+ config_id: string;
7492
+ created_at: string;
7493
+ id: string;
7494
+ label: string | null;
7495
+ note: string | null;
7496
+ settings: import("../../integrations/supabase/types").Json;
7497
+ status: string;
7498
+ user_id: string;
7499
+ version: number;
7500
+ };
7501
+ Insert: {
7502
+ config_id: string;
7503
+ created_at?: string;
7504
+ id?: string;
7505
+ label?: string | null;
7506
+ note?: string | null;
7507
+ settings?: import("../../integrations/supabase/types").Json;
7508
+ status?: string;
7509
+ user_id?: string;
7510
+ version: number;
7511
+ };
7512
+ Update: {
7513
+ config_id?: string;
7514
+ created_at?: string;
7515
+ id?: string;
7516
+ label?: string | null;
7517
+ note?: string | null;
7518
+ settings?: import("../../integrations/supabase/types").Json;
7519
+ status?: string;
7520
+ user_id?: string;
7521
+ version?: number;
7522
+ };
7523
+ Relationships: [{
7524
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7525
+ columns: ["config_id"];
7526
+ isOneToOne: false;
7527
+ referencedRelation: "logistics_rule_configs";
7528
+ referencedColumns: ["id"];
7529
+ }];
7530
+ };
6778
7531
  logistics_strategies: {
6779
7532
  Row: {
6780
7533
  color: string;
@@ -6904,51 +7657,144 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
6904
7657
  };
6905
7658
  Relationships: [];
6906
7659
  };
6907
- mailbox_messages: {
7660
+ mailbox_ai_goal_prompts: {
6908
7661
  Row: {
6909
- body_html: string | null;
6910
- body_text: string | null;
6911
- connection_id: string | null;
6912
7662
  created_at: string;
6913
- error_message: string | null;
6914
- external_id: string | null;
6915
- from_email: string | null;
6916
- from_name: string | null;
7663
+ goal_key: string;
6917
7664
  id: string;
6918
- message_id: string | null;
6919
- profile_id: string | null;
6920
- raw_size: number | null;
6921
- received_at: string | null;
6922
- status: string;
6923
- subject: string | null;
6924
- uid: number | null;
7665
+ system_prompt: string;
6925
7666
  updated_at: string;
6926
7667
  };
6927
7668
  Insert: {
6928
- body_html?: string | null;
6929
- body_text?: string | null;
6930
- connection_id?: string | null;
6931
7669
  created_at?: string;
6932
- error_message?: string | null;
6933
- external_id?: string | null;
6934
- from_email?: string | null;
6935
- from_name?: string | null;
7670
+ goal_key: string;
6936
7671
  id?: string;
6937
- message_id?: string | null;
6938
- profile_id?: string | null;
6939
- raw_size?: number | null;
6940
- received_at?: string | null;
6941
- status?: string;
6942
- subject?: string | null;
6943
- uid?: number | null;
7672
+ system_prompt?: string;
6944
7673
  updated_at?: string;
6945
7674
  };
6946
7675
  Update: {
6947
- body_html?: string | null;
6948
- body_text?: string | null;
6949
- connection_id?: string | null;
6950
7676
  created_at?: string;
6951
- error_message?: string | null;
7677
+ goal_key?: string;
7678
+ id?: string;
7679
+ system_prompt?: string;
7680
+ updated_at?: string;
7681
+ };
7682
+ Relationships: [];
7683
+ };
7684
+ mailbox_ai_settings: {
7685
+ Row: {
7686
+ active_goal_key: string | null;
7687
+ created_at: string;
7688
+ enabled: boolean;
7689
+ id: string;
7690
+ required_fields: string[];
7691
+ singleton: boolean;
7692
+ system_prompt: string | null;
7693
+ updated_at: string;
7694
+ };
7695
+ Insert: {
7696
+ active_goal_key?: string | null;
7697
+ created_at?: string;
7698
+ enabled?: boolean;
7699
+ id?: string;
7700
+ required_fields?: string[];
7701
+ singleton?: boolean;
7702
+ system_prompt?: string | null;
7703
+ updated_at?: string;
7704
+ };
7705
+ Update: {
7706
+ active_goal_key?: string | null;
7707
+ created_at?: string;
7708
+ enabled?: boolean;
7709
+ id?: string;
7710
+ required_fields?: string[];
7711
+ singleton?: boolean;
7712
+ system_prompt?: string | null;
7713
+ updated_at?: string;
7714
+ };
7715
+ Relationships: [];
7716
+ };
7717
+ mailbox_ingest_runs: {
7718
+ Row: {
7719
+ connection_id: string | null;
7720
+ error_sample: string | null;
7721
+ errors: number;
7722
+ finished_at: string | null;
7723
+ id: string;
7724
+ inserted: number;
7725
+ processed: number;
7726
+ started_at: string;
7727
+ trigger: string;
7728
+ };
7729
+ Insert: {
7730
+ connection_id?: string | null;
7731
+ error_sample?: string | null;
7732
+ errors?: number;
7733
+ finished_at?: string | null;
7734
+ id?: string;
7735
+ inserted?: number;
7736
+ processed?: number;
7737
+ started_at?: string;
7738
+ trigger: string;
7739
+ };
7740
+ Update: {
7741
+ connection_id?: string | null;
7742
+ error_sample?: string | null;
7743
+ errors?: number;
7744
+ finished_at?: string | null;
7745
+ id?: string;
7746
+ inserted?: number;
7747
+ processed?: number;
7748
+ started_at?: string;
7749
+ trigger?: string;
7750
+ };
7751
+ Relationships: [];
7752
+ };
7753
+ mailbox_messages: {
7754
+ Row: {
7755
+ body_html: string | null;
7756
+ body_text: string | null;
7757
+ connection_id: string | null;
7758
+ created_at: string;
7759
+ error_message: string | null;
7760
+ external_id: string | null;
7761
+ from_email: string | null;
7762
+ from_name: string | null;
7763
+ id: string;
7764
+ message_id: string | null;
7765
+ profile_id: string | null;
7766
+ raw_size: number | null;
7767
+ received_at: string | null;
7768
+ status: string;
7769
+ subject: string | null;
7770
+ uid: number | null;
7771
+ updated_at: string;
7772
+ };
7773
+ Insert: {
7774
+ body_html?: string | null;
7775
+ body_text?: string | null;
7776
+ connection_id?: string | null;
7777
+ created_at?: string;
7778
+ error_message?: string | null;
7779
+ external_id?: string | null;
7780
+ from_email?: string | null;
7781
+ from_name?: string | null;
7782
+ id?: string;
7783
+ message_id?: string | null;
7784
+ profile_id?: string | null;
7785
+ raw_size?: number | null;
7786
+ received_at?: string | null;
7787
+ status?: string;
7788
+ subject?: string | null;
7789
+ uid?: number | null;
7790
+ updated_at?: string;
7791
+ };
7792
+ Update: {
7793
+ body_html?: string | null;
7794
+ body_text?: string | null;
7795
+ connection_id?: string | null;
7796
+ created_at?: string;
7797
+ error_message?: string | null;
6952
7798
  external_id?: string | null;
6953
7799
  from_email?: string | null;
6954
7800
  from_name?: string | null;
@@ -6984,6 +7830,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
6984
7830
  };
6985
7831
  mailbox_order_proposals: {
6986
7832
  Row: {
7833
+ ai_validation: import("../../integrations/supabase/types").Json | null;
6987
7834
  confidence: number | null;
6988
7835
  created_at: string;
6989
7836
  created_order_id: string | null;
@@ -7000,6 +7847,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7000
7847
  updated_at: string;
7001
7848
  };
7002
7849
  Insert: {
7850
+ ai_validation?: import("../../integrations/supabase/types").Json | null;
7003
7851
  confidence?: number | null;
7004
7852
  created_at?: string;
7005
7853
  created_order_id?: string | null;
@@ -7016,6 +7864,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7016
7864
  updated_at?: string;
7017
7865
  };
7018
7866
  Update: {
7867
+ ai_validation?: import("../../integrations/supabase/types").Json | null;
7019
7868
  confidence?: number | null;
7020
7869
  created_at?: string;
7021
7870
  created_order_id?: string | null;
@@ -7152,6 +8001,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7152
8001
  created_at: string;
7153
8002
  id: string;
7154
8003
  match_confidence: number | null;
8004
+ plant_type: string | null;
7155
8005
  product_id: string | null;
7156
8006
  proposal_id: string;
7157
8007
  quantity: number | null;
@@ -7164,6 +8014,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7164
8014
  created_at?: string;
7165
8015
  id?: string;
7166
8016
  match_confidence?: number | null;
8017
+ plant_type?: string | null;
7167
8018
  product_id?: string | null;
7168
8019
  proposal_id: string;
7169
8020
  quantity?: number | null;
@@ -7176,6 +8027,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7176
8027
  created_at?: string;
7177
8028
  id?: string;
7178
8029
  match_confidence?: number | null;
8030
+ plant_type?: string | null;
7179
8031
  product_id?: string | null;
7180
8032
  proposal_id?: string;
7181
8033
  quantity?: number | null;
@@ -7360,6 +8212,39 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
7360
8212
  };
7361
8213
  Relationships: [];
7362
8214
  };
8215
+ modules: {
8216
+ Row: {
8217
+ created_at: string;
8218
+ description: string | null;
8219
+ id: string;
8220
+ is_active: boolean;
8221
+ last_seen_at: string | null;
8222
+ module_key: string;
8223
+ module_name: string;
8224
+ updated_at: string;
8225
+ };
8226
+ Insert: {
8227
+ created_at?: string;
8228
+ description?: string | null;
8229
+ id?: string;
8230
+ is_active?: boolean;
8231
+ last_seen_at?: string | null;
8232
+ module_key: string;
8233
+ module_name: string;
8234
+ updated_at?: string;
8235
+ };
8236
+ Update: {
8237
+ created_at?: string;
8238
+ description?: string | null;
8239
+ id?: string;
8240
+ is_active?: boolean;
8241
+ last_seen_at?: string | null;
8242
+ module_key?: string;
8243
+ module_name?: string;
8244
+ updated_at?: string;
8245
+ };
8246
+ Relationships: [];
8247
+ };
7363
8248
  monteurs: {
7364
8249
  Row: {
7365
8250
  avatar_url: string | null;
@@ -8316,9 +9201,12 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
8316
9201
  };
8317
9202
  order_items: {
8318
9203
  Row: {
9204
+ crates_per_layer: number | null;
8319
9205
  created_at: string;
8320
9206
  id: string;
9207
+ layers_per_cart: number | null;
8321
9208
  order_id: string;
9209
+ plants_per_crate: number | null;
8322
9210
  product_id: string | null;
8323
9211
  product_name: string;
8324
9212
  quantity: number;
@@ -8326,9 +9214,12 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
8326
9214
  unit_price: number | null;
8327
9215
  };
8328
9216
  Insert: {
9217
+ crates_per_layer?: number | null;
8329
9218
  created_at?: string;
8330
9219
  id?: string;
9220
+ layers_per_cart?: number | null;
8331
9221
  order_id: string;
9222
+ plants_per_crate?: number | null;
8332
9223
  product_id?: string | null;
8333
9224
  product_name: string;
8334
9225
  quantity?: number;
@@ -8336,9 +9227,12 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
8336
9227
  unit_price?: number | null;
8337
9228
  };
8338
9229
  Update: {
9230
+ crates_per_layer?: number | null;
8339
9231
  created_at?: string;
8340
9232
  id?: string;
9233
+ layers_per_cart?: number | null;
8341
9234
  order_id?: string;
9235
+ plants_per_crate?: number | null;
8342
9236
  product_id?: string | null;
8343
9237
  product_name?: string;
8344
9238
  quantity?: number;
@@ -8590,164 +9484,1358 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
8590
9484
  };
8591
9485
  Relationships: [];
8592
9486
  };
8593
- pickstation_print_log: {
9487
+ pick_countries: {
8594
9488
  Row: {
8595
- customer_name: string | null;
8596
- documents: string[];
9489
+ active: boolean;
9490
+ code: string;
9491
+ created_at: string;
9492
+ flag: string | null;
8597
9493
  id: string;
8598
- ip_address: string | null;
8599
- order_id: string;
8600
- order_number: string | null;
8601
- printed_at: string;
9494
+ name: string;
9495
+ sort_order: number;
9496
+ updated_at: string;
8602
9497
  };
8603
9498
  Insert: {
8604
- customer_name?: string | null;
8605
- documents?: string[];
9499
+ active?: boolean;
9500
+ code: string;
9501
+ created_at?: string;
9502
+ flag?: string | null;
8606
9503
  id?: string;
8607
- ip_address?: string | null;
8608
- order_id: string;
8609
- order_number?: string | null;
8610
- printed_at?: string;
9504
+ name: string;
9505
+ sort_order?: number;
9506
+ updated_at?: string;
8611
9507
  };
8612
9508
  Update: {
8613
- customer_name?: string | null;
8614
- documents?: string[];
9509
+ active?: boolean;
9510
+ code?: string;
9511
+ created_at?: string;
9512
+ flag?: string | null;
8615
9513
  id?: string;
8616
- ip_address?: string | null;
8617
- order_id?: string;
8618
- order_number?: string | null;
8619
- printed_at?: string;
9514
+ name?: string;
9515
+ sort_order?: number;
9516
+ updated_at?: string;
8620
9517
  };
8621
9518
  Relationships: [];
8622
9519
  };
8623
- pipeline_settings: {
9520
+ pick_document_statuses: {
8624
9521
  Row: {
9522
+ active: boolean;
9523
+ code: string;
9524
+ color: string | null;
8625
9525
  created_at: string;
8626
9526
  id: string;
8627
- key: string;
9527
+ is_open: boolean;
9528
+ is_terminal: boolean;
9529
+ name: string;
9530
+ sort_order: number;
8628
9531
  updated_at: string;
8629
- value: string | null;
8630
9532
  };
8631
9533
  Insert: {
9534
+ active?: boolean;
9535
+ code: string;
9536
+ color?: string | null;
8632
9537
  created_at?: string;
8633
9538
  id?: string;
8634
- key: string;
9539
+ is_open?: boolean;
9540
+ is_terminal?: boolean;
9541
+ name: string;
9542
+ sort_order?: number;
8635
9543
  updated_at?: string;
8636
- value?: string | null;
8637
9544
  };
8638
9545
  Update: {
9546
+ active?: boolean;
9547
+ code?: string;
9548
+ color?: string | null;
8639
9549
  created_at?: string;
8640
9550
  id?: string;
8641
- key?: string;
9551
+ is_open?: boolean;
9552
+ is_terminal?: boolean;
9553
+ name?: string;
9554
+ sort_order?: number;
8642
9555
  updated_at?: string;
8643
- value?: string | null;
8644
9556
  };
8645
9557
  Relationships: [];
8646
9558
  };
8647
- pipeline_stages: {
9559
+ pick_document_types: {
8648
9560
  Row: {
8649
- automation_type: string;
8650
- color: string;
9561
+ active: boolean;
9562
+ code: string;
9563
+ color: string | null;
8651
9564
  created_at: string;
9565
+ description: string | null;
9566
+ icon: string | null;
8652
9567
  id: string;
8653
- is_active: boolean;
8654
9568
  name: string;
9569
+ print_template: string | null;
9570
+ printer_id: string | null;
9571
+ priority: number;
9572
+ report_key: string | null;
8655
9573
  sort_order: number;
8656
9574
  updated_at: string;
9575
+ workflow: import("../../integrations/supabase/types").Json;
8657
9576
  };
8658
9577
  Insert: {
8659
- automation_type?: string;
8660
- color?: string;
9578
+ active?: boolean;
9579
+ code: string;
9580
+ color?: string | null;
8661
9581
  created_at?: string;
9582
+ description?: string | null;
9583
+ icon?: string | null;
8662
9584
  id?: string;
8663
- is_active?: boolean;
8664
9585
  name: string;
9586
+ print_template?: string | null;
9587
+ printer_id?: string | null;
9588
+ priority?: number;
9589
+ report_key?: string | null;
8665
9590
  sort_order?: number;
8666
9591
  updated_at?: string;
9592
+ workflow?: import("../../integrations/supabase/types").Json;
8667
9593
  };
8668
9594
  Update: {
8669
- automation_type?: string;
8670
- color?: string;
9595
+ active?: boolean;
9596
+ code?: string;
9597
+ color?: string | null;
8671
9598
  created_at?: string;
9599
+ description?: string | null;
9600
+ icon?: string | null;
8672
9601
  id?: string;
8673
- is_active?: boolean;
8674
9602
  name?: string;
9603
+ print_template?: string | null;
9604
+ printer_id?: string | null;
9605
+ priority?: number;
9606
+ report_key?: string | null;
8675
9607
  sort_order?: number;
8676
9608
  updated_at?: string;
9609
+ workflow?: import("../../integrations/supabase/types").Json;
8677
9610
  };
8678
- Relationships: [];
9611
+ Relationships: [{
9612
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9613
+ columns: ["printer_id"];
9614
+ isOneToOne: false;
9615
+ referencedRelation: "pick_station_printers";
9616
+ referencedColumns: ["id"];
9617
+ }];
9618
+ };
9619
+ pick_queue: {
9620
+ Row: {
9621
+ announced_at: string;
9622
+ assigned_user_id: string | null;
9623
+ barcode: string | null;
9624
+ cancelled_at: string | null;
9625
+ cart_count: number;
9626
+ completed_at: string | null;
9627
+ country_code: string | null;
9628
+ created_at: string;
9629
+ customer_name: string | null;
9630
+ delivery_address: string | null;
9631
+ document_number: string | null;
9632
+ document_type_id: string | null;
9633
+ due_at: string | null;
9634
+ id: string;
9635
+ is_urgent: boolean;
9636
+ line_count: number;
9637
+ order_number: string | null;
9638
+ order_type: string | null;
9639
+ payload: import("../../integrations/supabase/types").Json;
9640
+ print_count: number;
9641
+ printed_at: string | null;
9642
+ printed_by: string | null;
9643
+ printer_id: string | null;
9644
+ priority: number;
9645
+ reference: string | null;
9646
+ route: string | null;
9647
+ screen_id: string | null;
9648
+ station_id: string | null;
9649
+ status_id: string | null;
9650
+ updated_at: string;
9651
+ warnings: import("../../integrations/supabase/types").Json;
9652
+ };
9653
+ Insert: {
9654
+ announced_at?: string;
9655
+ assigned_user_id?: string | null;
9656
+ barcode?: string | null;
9657
+ cancelled_at?: string | null;
9658
+ cart_count?: number;
9659
+ completed_at?: string | null;
9660
+ country_code?: string | null;
9661
+ created_at?: string;
9662
+ customer_name?: string | null;
9663
+ delivery_address?: string | null;
9664
+ document_number?: string | null;
9665
+ document_type_id?: string | null;
9666
+ due_at?: string | null;
9667
+ id?: string;
9668
+ is_urgent?: boolean;
9669
+ line_count?: number;
9670
+ order_number?: string | null;
9671
+ order_type?: string | null;
9672
+ payload?: import("../../integrations/supabase/types").Json;
9673
+ print_count?: number;
9674
+ printed_at?: string | null;
9675
+ printed_by?: string | null;
9676
+ printer_id?: string | null;
9677
+ priority?: number;
9678
+ reference?: string | null;
9679
+ route?: string | null;
9680
+ screen_id?: string | null;
9681
+ station_id?: string | null;
9682
+ status_id?: string | null;
9683
+ updated_at?: string;
9684
+ warnings?: import("../../integrations/supabase/types").Json;
9685
+ };
9686
+ Update: {
9687
+ announced_at?: string;
9688
+ assigned_user_id?: string | null;
9689
+ barcode?: string | null;
9690
+ cancelled_at?: string | null;
9691
+ cart_count?: number;
9692
+ completed_at?: string | null;
9693
+ country_code?: string | null;
9694
+ created_at?: string;
9695
+ customer_name?: string | null;
9696
+ delivery_address?: string | null;
9697
+ document_number?: string | null;
9698
+ document_type_id?: string | null;
9699
+ due_at?: string | null;
9700
+ id?: string;
9701
+ is_urgent?: boolean;
9702
+ line_count?: number;
9703
+ order_number?: string | null;
9704
+ order_type?: string | null;
9705
+ payload?: import("../../integrations/supabase/types").Json;
9706
+ print_count?: number;
9707
+ printed_at?: string | null;
9708
+ printed_by?: string | null;
9709
+ printer_id?: string | null;
9710
+ priority?: number;
9711
+ reference?: string | null;
9712
+ route?: string | null;
9713
+ screen_id?: string | null;
9714
+ station_id?: string | null;
9715
+ status_id?: string | null;
9716
+ updated_at?: string;
9717
+ warnings?: import("../../integrations/supabase/types").Json;
9718
+ };
9719
+ Relationships: [{
9720
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9721
+ columns: ["document_type_id"];
9722
+ isOneToOne: false;
9723
+ referencedRelation: "pick_document_types";
9724
+ referencedColumns: ["id"];
9725
+ }, {
9726
+ foreignKeyName: "pick_queue_printer_id_fkey";
9727
+ columns: ["printer_id"];
9728
+ isOneToOne: false;
9729
+ referencedRelation: "pick_station_printers";
9730
+ referencedColumns: ["id"];
9731
+ }, {
9732
+ foreignKeyName: "pick_queue_screen_id_fkey";
9733
+ columns: ["screen_id"];
9734
+ isOneToOne: false;
9735
+ referencedRelation: "pick_station_screens";
9736
+ referencedColumns: ["id"];
9737
+ }, {
9738
+ foreignKeyName: "pick_queue_station_id_fkey";
9739
+ columns: ["station_id"];
9740
+ isOneToOne: false;
9741
+ referencedRelation: "pick_stations";
9742
+ referencedColumns: ["id"];
9743
+ }, {
9744
+ foreignKeyName: "pick_queue_status_id_fkey";
9745
+ columns: ["status_id"];
9746
+ isOneToOne: false;
9747
+ referencedRelation: "pick_document_statuses";
9748
+ referencedColumns: ["id"];
9749
+ }];
9750
+ };
9751
+ pick_queue_locks: {
9752
+ Row: {
9753
+ expires_at: string;
9754
+ id: string;
9755
+ locked_at: string;
9756
+ locked_by: string | null;
9757
+ queue_item_id: string;
9758
+ screen_id: string | null;
9759
+ session_id: string | null;
9760
+ station_id: string | null;
9761
+ };
9762
+ Insert: {
9763
+ expires_at?: string;
9764
+ id?: string;
9765
+ locked_at?: string;
9766
+ locked_by?: string | null;
9767
+ queue_item_id: string;
9768
+ screen_id?: string | null;
9769
+ session_id?: string | null;
9770
+ station_id?: string | null;
9771
+ };
9772
+ Update: {
9773
+ expires_at?: string;
9774
+ id?: string;
9775
+ locked_at?: string;
9776
+ locked_by?: string | null;
9777
+ queue_item_id?: string;
9778
+ screen_id?: string | null;
9779
+ session_id?: string | null;
9780
+ station_id?: string | null;
9781
+ };
9782
+ Relationships: [{
9783
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9784
+ columns: ["queue_item_id"];
9785
+ isOneToOne: true;
9786
+ referencedRelation: "pick_queue";
9787
+ referencedColumns: ["id"];
9788
+ }, {
9789
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9790
+ columns: ["screen_id"];
9791
+ isOneToOne: false;
9792
+ referencedRelation: "pick_station_screens";
9793
+ referencedColumns: ["id"];
9794
+ }, {
9795
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9796
+ columns: ["station_id"];
9797
+ isOneToOne: false;
9798
+ referencedRelation: "pick_stations";
9799
+ referencedColumns: ["id"];
9800
+ }];
9801
+ };
9802
+ pick_screen_document_types: {
9803
+ Row: {
9804
+ created_at: string;
9805
+ document_type_id: string;
9806
+ id: string;
9807
+ print_order: number;
9808
+ printer_id: string | null;
9809
+ screen_id: string;
9810
+ };
9811
+ Insert: {
9812
+ created_at?: string;
9813
+ document_type_id: string;
9814
+ id?: string;
9815
+ print_order?: number;
9816
+ printer_id?: string | null;
9817
+ screen_id: string;
9818
+ };
9819
+ Update: {
9820
+ created_at?: string;
9821
+ document_type_id?: string;
9822
+ id?: string;
9823
+ print_order?: number;
9824
+ printer_id?: string | null;
9825
+ screen_id?: string;
9826
+ };
9827
+ Relationships: [{
9828
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9829
+ columns: ["document_type_id"];
9830
+ isOneToOne: false;
9831
+ referencedRelation: "pick_document_types";
9832
+ referencedColumns: ["id"];
9833
+ }, {
9834
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9835
+ columns: ["printer_id"];
9836
+ isOneToOne: false;
9837
+ referencedRelation: "pick_station_printers";
9838
+ referencedColumns: ["id"];
9839
+ }, {
9840
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9841
+ columns: ["screen_id"];
9842
+ isOneToOne: false;
9843
+ referencedRelation: "pick_station_screens";
9844
+ referencedColumns: ["id"];
9845
+ }];
9846
+ };
9847
+ pick_station_heartbeats: {
9848
+ Row: {
9849
+ browser: string | null;
9850
+ created_at: string;
9851
+ id: string;
9852
+ ip_address: string | null;
9853
+ last_seen_at: string;
9854
+ screen_id: string | null;
9855
+ session_id: string;
9856
+ station_id: string;
9857
+ user_id: string | null;
9858
+ };
9859
+ Insert: {
9860
+ browser?: string | null;
9861
+ created_at?: string;
9862
+ id?: string;
9863
+ ip_address?: string | null;
9864
+ last_seen_at?: string;
9865
+ screen_id?: string | null;
9866
+ session_id: string;
9867
+ station_id: string;
9868
+ user_id?: string | null;
9869
+ };
9870
+ Update: {
9871
+ browser?: string | null;
9872
+ created_at?: string;
9873
+ id?: string;
9874
+ ip_address?: string | null;
9875
+ last_seen_at?: string;
9876
+ screen_id?: string | null;
9877
+ session_id?: string;
9878
+ station_id?: string;
9879
+ user_id?: string | null;
9880
+ };
9881
+ Relationships: [{
9882
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9883
+ columns: ["screen_id"];
9884
+ isOneToOne: false;
9885
+ referencedRelation: "pick_station_screens";
9886
+ referencedColumns: ["id"];
9887
+ }, {
9888
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9889
+ columns: ["station_id"];
9890
+ isOneToOne: false;
9891
+ referencedRelation: "pick_stations";
9892
+ referencedColumns: ["id"];
9893
+ }];
9894
+ };
9895
+ pick_station_history: {
9896
+ Row: {
9897
+ action: string;
9898
+ changed_by: string | null;
9899
+ created_at: string;
9900
+ entity_id: string;
9901
+ entity_table: string;
9902
+ id: string;
9903
+ new_data: import("../../integrations/supabase/types").Json | null;
9904
+ old_data: import("../../integrations/supabase/types").Json | null;
9905
+ };
9906
+ Insert: {
9907
+ action: string;
9908
+ changed_by?: string | null;
9909
+ created_at?: string;
9910
+ entity_id: string;
9911
+ entity_table: string;
9912
+ id?: string;
9913
+ new_data?: import("../../integrations/supabase/types").Json | null;
9914
+ old_data?: import("../../integrations/supabase/types").Json | null;
9915
+ };
9916
+ Update: {
9917
+ action?: string;
9918
+ changed_by?: string | null;
9919
+ created_at?: string;
9920
+ entity_id?: string;
9921
+ entity_table?: string;
9922
+ id?: string;
9923
+ new_data?: import("../../integrations/supabase/types").Json | null;
9924
+ old_data?: import("../../integrations/supabase/types").Json | null;
9925
+ };
9926
+ Relationships: [];
9927
+ };
9928
+ pick_station_logs: {
9929
+ Row: {
9930
+ action: string;
9931
+ browser: string | null;
9932
+ created_at: string;
9933
+ detail: import("../../integrations/supabase/types").Json;
9934
+ duration_ms: number | null;
9935
+ id: string;
9936
+ ip_address: string | null;
9937
+ printer_id: string | null;
9938
+ queue_item_id: string | null;
9939
+ screen_id: string | null;
9940
+ session_id: string | null;
9941
+ station_id: string | null;
9942
+ user_id: string | null;
9943
+ };
9944
+ Insert: {
9945
+ action: string;
9946
+ browser?: string | null;
9947
+ created_at?: string;
9948
+ detail?: import("../../integrations/supabase/types").Json;
9949
+ duration_ms?: number | null;
9950
+ id?: string;
9951
+ ip_address?: string | null;
9952
+ printer_id?: string | null;
9953
+ queue_item_id?: string | null;
9954
+ screen_id?: string | null;
9955
+ session_id?: string | null;
9956
+ station_id?: string | null;
9957
+ user_id?: string | null;
9958
+ };
9959
+ Update: {
9960
+ action?: string;
9961
+ browser?: string | null;
9962
+ created_at?: string;
9963
+ detail?: import("../../integrations/supabase/types").Json;
9964
+ duration_ms?: number | null;
9965
+ id?: string;
9966
+ ip_address?: string | null;
9967
+ printer_id?: string | null;
9968
+ queue_item_id?: string | null;
9969
+ screen_id?: string | null;
9970
+ session_id?: string | null;
9971
+ station_id?: string | null;
9972
+ user_id?: string | null;
9973
+ };
9974
+ Relationships: [];
9975
+ };
9976
+ pick_station_permissions: {
9977
+ Row: {
9978
+ can_break_lock: boolean;
9979
+ can_cancel: boolean;
9980
+ can_print: boolean;
9981
+ can_reprint: boolean;
9982
+ country_code: string | null;
9983
+ created_at: string;
9984
+ id: string;
9985
+ station_id: string | null;
9986
+ task_id: string | null;
9987
+ updated_at: string;
9988
+ urgent_only: boolean;
9989
+ user_id: string;
9990
+ };
9991
+ Insert: {
9992
+ can_break_lock?: boolean;
9993
+ can_cancel?: boolean;
9994
+ can_print?: boolean;
9995
+ can_reprint?: boolean;
9996
+ country_code?: string | null;
9997
+ created_at?: string;
9998
+ id?: string;
9999
+ station_id?: string | null;
10000
+ task_id?: string | null;
10001
+ updated_at?: string;
10002
+ urgent_only?: boolean;
10003
+ user_id: string;
10004
+ };
10005
+ Update: {
10006
+ can_break_lock?: boolean;
10007
+ can_cancel?: boolean;
10008
+ can_print?: boolean;
10009
+ can_reprint?: boolean;
10010
+ country_code?: string | null;
10011
+ created_at?: string;
10012
+ id?: string;
10013
+ station_id?: string | null;
10014
+ task_id?: string | null;
10015
+ updated_at?: string;
10016
+ urgent_only?: boolean;
10017
+ user_id?: string;
10018
+ };
10019
+ Relationships: [{
10020
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
10021
+ columns: ["station_id"];
10022
+ isOneToOne: false;
10023
+ referencedRelation: "pick_stations";
10024
+ referencedColumns: ["id"];
10025
+ }, {
10026
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
10027
+ columns: ["task_id"];
10028
+ isOneToOne: false;
10029
+ referencedRelation: "pick_station_tasks";
10030
+ referencedColumns: ["id"];
10031
+ }];
10032
+ };
10033
+ pick_station_printers: {
10034
+ Row: {
10035
+ active: boolean;
10036
+ code: string | null;
10037
+ config: import("../../integrations/supabase/types").Json;
10038
+ connection: string | null;
10039
+ created_at: string;
10040
+ id: string;
10041
+ last_seen_at: string | null;
10042
+ location: string | null;
10043
+ name: string;
10044
+ status: string;
10045
+ status_message: string | null;
10046
+ target: string | null;
10047
+ updated_at: string;
10048
+ };
10049
+ Insert: {
10050
+ active?: boolean;
10051
+ code?: string | null;
10052
+ config?: import("../../integrations/supabase/types").Json;
10053
+ connection?: string | null;
10054
+ created_at?: string;
10055
+ id?: string;
10056
+ last_seen_at?: string | null;
10057
+ location?: string | null;
10058
+ name: string;
10059
+ status?: string;
10060
+ status_message?: string | null;
10061
+ target?: string | null;
10062
+ updated_at?: string;
10063
+ };
10064
+ Update: {
10065
+ active?: boolean;
10066
+ code?: string | null;
10067
+ config?: import("../../integrations/supabase/types").Json;
10068
+ connection?: string | null;
10069
+ created_at?: string;
10070
+ id?: string;
10071
+ last_seen_at?: string | null;
10072
+ location?: string | null;
10073
+ name?: string;
10074
+ status?: string;
10075
+ status_message?: string | null;
10076
+ target?: string | null;
10077
+ updated_at?: string;
10078
+ };
10079
+ Relationships: [];
10080
+ };
10081
+ pick_station_screens: {
10082
+ Row: {
10083
+ active: boolean;
10084
+ config: import("../../integrations/supabase/types").Json;
10085
+ created_at: string;
10086
+ description: string | null;
10087
+ filters: import("../../integrations/supabase/types").Json;
10088
+ id: string;
10089
+ name: string;
10090
+ printer_id: string | null;
10091
+ screen_type: string;
10092
+ sort_order: number;
10093
+ sort_rules: import("../../integrations/supabase/types").Json | null;
10094
+ station_id: string;
10095
+ updated_at: string;
10096
+ };
10097
+ Insert: {
10098
+ active?: boolean;
10099
+ config?: import("../../integrations/supabase/types").Json;
10100
+ created_at?: string;
10101
+ description?: string | null;
10102
+ filters?: import("../../integrations/supabase/types").Json;
10103
+ id?: string;
10104
+ name: string;
10105
+ printer_id?: string | null;
10106
+ screen_type?: string;
10107
+ sort_order?: number;
10108
+ sort_rules?: import("../../integrations/supabase/types").Json | null;
10109
+ station_id: string;
10110
+ updated_at?: string;
10111
+ };
10112
+ Update: {
10113
+ active?: boolean;
10114
+ config?: import("../../integrations/supabase/types").Json;
10115
+ created_at?: string;
10116
+ description?: string | null;
10117
+ filters?: import("../../integrations/supabase/types").Json;
10118
+ id?: string;
10119
+ name?: string;
10120
+ printer_id?: string | null;
10121
+ screen_type?: string;
10122
+ sort_order?: number;
10123
+ sort_rules?: import("../../integrations/supabase/types").Json | null;
10124
+ station_id?: string;
10125
+ updated_at?: string;
10126
+ };
10127
+ Relationships: [{
10128
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
10129
+ columns: ["printer_id"];
10130
+ isOneToOne: false;
10131
+ referencedRelation: "pick_station_printers";
10132
+ referencedColumns: ["id"];
10133
+ }, {
10134
+ foreignKeyName: "pick_station_screens_station_id_fkey";
10135
+ columns: ["station_id"];
10136
+ isOneToOne: false;
10137
+ referencedRelation: "pick_stations";
10138
+ referencedColumns: ["id"];
10139
+ }];
10140
+ };
10141
+ pick_station_tasks: {
10142
+ Row: {
10143
+ active: boolean;
10144
+ code: string;
10145
+ color: string | null;
10146
+ created_at: string;
10147
+ description: string | null;
10148
+ icon: string | null;
10149
+ id: string;
10150
+ name: string;
10151
+ sort_order: number;
10152
+ updated_at: string;
10153
+ workflow: import("../../integrations/supabase/types").Json;
10154
+ };
10155
+ Insert: {
10156
+ active?: boolean;
10157
+ code: string;
10158
+ color?: string | null;
10159
+ created_at?: string;
10160
+ description?: string | null;
10161
+ icon?: string | null;
10162
+ id?: string;
10163
+ name: string;
10164
+ sort_order?: number;
10165
+ updated_at?: string;
10166
+ workflow?: import("../../integrations/supabase/types").Json;
10167
+ };
10168
+ Update: {
10169
+ active?: boolean;
10170
+ code?: string;
10171
+ color?: string | null;
10172
+ created_at?: string;
10173
+ description?: string | null;
10174
+ icon?: string | null;
10175
+ id?: string;
10176
+ name?: string;
10177
+ sort_order?: number;
10178
+ updated_at?: string;
10179
+ workflow?: import("../../integrations/supabase/types").Json;
10180
+ };
10181
+ Relationships: [];
10182
+ };
10183
+ pick_station_types: {
10184
+ Row: {
10185
+ active: boolean;
10186
+ code: string;
10187
+ color: string | null;
10188
+ created_at: string;
10189
+ description: string | null;
10190
+ icon: string | null;
10191
+ id: string;
10192
+ name: string;
10193
+ sort_order: number;
10194
+ updated_at: string;
10195
+ };
10196
+ Insert: {
10197
+ active?: boolean;
10198
+ code: string;
10199
+ color?: string | null;
10200
+ created_at?: string;
10201
+ description?: string | null;
10202
+ icon?: string | null;
10203
+ id?: string;
10204
+ name: string;
10205
+ sort_order?: number;
10206
+ updated_at?: string;
10207
+ };
10208
+ Update: {
10209
+ active?: boolean;
10210
+ code?: string;
10211
+ color?: string | null;
10212
+ created_at?: string;
10213
+ description?: string | null;
10214
+ icon?: string | null;
10215
+ id?: string;
10216
+ name?: string;
10217
+ sort_order?: number;
10218
+ updated_at?: string;
10219
+ };
10220
+ Relationships: [];
10221
+ };
10222
+ pick_station_users: {
10223
+ Row: {
10224
+ active: boolean;
10225
+ created_at: string;
10226
+ id: string;
10227
+ station_id: string;
10228
+ user_id: string;
10229
+ };
10230
+ Insert: {
10231
+ active?: boolean;
10232
+ created_at?: string;
10233
+ id?: string;
10234
+ station_id: string;
10235
+ user_id: string;
10236
+ };
10237
+ Update: {
10238
+ active?: boolean;
10239
+ created_at?: string;
10240
+ id?: string;
10241
+ station_id?: string;
10242
+ user_id?: string;
10243
+ };
10244
+ Relationships: [{
10245
+ foreignKeyName: "pick_station_users_station_id_fkey";
10246
+ columns: ["station_id"];
10247
+ isOneToOne: false;
10248
+ referencedRelation: "pick_stations";
10249
+ referencedColumns: ["id"];
10250
+ }];
10251
+ };
10252
+ pick_stations: {
10253
+ Row: {
10254
+ active: boolean;
10255
+ allow_multi_screen: boolean;
10256
+ color: string | null;
10257
+ created_at: string;
10258
+ default_printer_id: string | null;
10259
+ department: string | null;
10260
+ description: string | null;
10261
+ icon: string | null;
10262
+ id: string;
10263
+ location: string | null;
10264
+ lock_timeout_seconds: number;
10265
+ name: string;
10266
+ require_country_selection: boolean;
10267
+ sort_order: number;
10268
+ sort_rules: import("../../integrations/supabase/types").Json;
10269
+ task_id: string | null;
10270
+ type_id: string | null;
10271
+ updated_at: string;
10272
+ };
10273
+ Insert: {
10274
+ active?: boolean;
10275
+ allow_multi_screen?: boolean;
10276
+ color?: string | null;
10277
+ created_at?: string;
10278
+ default_printer_id?: string | null;
10279
+ department?: string | null;
10280
+ description?: string | null;
10281
+ icon?: string | null;
10282
+ id?: string;
10283
+ location?: string | null;
10284
+ lock_timeout_seconds?: number;
10285
+ name: string;
10286
+ require_country_selection?: boolean;
10287
+ sort_order?: number;
10288
+ sort_rules?: import("../../integrations/supabase/types").Json;
10289
+ task_id?: string | null;
10290
+ type_id?: string | null;
10291
+ updated_at?: string;
10292
+ };
10293
+ Update: {
10294
+ active?: boolean;
10295
+ allow_multi_screen?: boolean;
10296
+ color?: string | null;
10297
+ created_at?: string;
10298
+ default_printer_id?: string | null;
10299
+ department?: string | null;
10300
+ description?: string | null;
10301
+ icon?: string | null;
10302
+ id?: string;
10303
+ location?: string | null;
10304
+ lock_timeout_seconds?: number;
10305
+ name?: string;
10306
+ require_country_selection?: boolean;
10307
+ sort_order?: number;
10308
+ sort_rules?: import("../../integrations/supabase/types").Json;
10309
+ task_id?: string | null;
10310
+ type_id?: string | null;
10311
+ updated_at?: string;
10312
+ };
10313
+ Relationships: [{
10314
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10315
+ columns: ["default_printer_id"];
10316
+ isOneToOne: false;
10317
+ referencedRelation: "pick_station_printers";
10318
+ referencedColumns: ["id"];
10319
+ }, {
10320
+ foreignKeyName: "pick_stations_task_id_fkey";
10321
+ columns: ["task_id"];
10322
+ isOneToOne: false;
10323
+ referencedRelation: "pick_station_tasks";
10324
+ referencedColumns: ["id"];
10325
+ }, {
10326
+ foreignKeyName: "pick_stations_type_id_fkey";
10327
+ columns: ["type_id"];
10328
+ isOneToOne: false;
10329
+ referencedRelation: "pick_station_types";
10330
+ referencedColumns: ["id"];
10331
+ }];
10332
+ };
10333
+ pick_task_document_types: {
10334
+ Row: {
10335
+ created_at: string;
10336
+ document_type_id: string;
10337
+ id: string;
10338
+ task_id: string;
10339
+ };
10340
+ Insert: {
10341
+ created_at?: string;
10342
+ document_type_id: string;
10343
+ id?: string;
10344
+ task_id: string;
10345
+ };
10346
+ Update: {
10347
+ created_at?: string;
10348
+ document_type_id?: string;
10349
+ id?: string;
10350
+ task_id?: string;
10351
+ };
10352
+ Relationships: [{
10353
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10354
+ columns: ["document_type_id"];
10355
+ isOneToOne: false;
10356
+ referencedRelation: "pick_document_types";
10357
+ referencedColumns: ["id"];
10358
+ }, {
10359
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10360
+ columns: ["task_id"];
10361
+ isOneToOne: false;
10362
+ referencedRelation: "pick_station_tasks";
10363
+ referencedColumns: ["id"];
10364
+ }];
10365
+ };
10366
+ pickstation_print_log: {
10367
+ Row: {
10368
+ customer_name: string | null;
10369
+ documents: string[];
10370
+ id: string;
10371
+ ip_address: string | null;
10372
+ order_id: string;
10373
+ order_number: string | null;
10374
+ printed_at: string;
10375
+ };
10376
+ Insert: {
10377
+ customer_name?: string | null;
10378
+ documents?: string[];
10379
+ id?: string;
10380
+ ip_address?: string | null;
10381
+ order_id: string;
10382
+ order_number?: string | null;
10383
+ printed_at?: string;
10384
+ };
10385
+ Update: {
10386
+ customer_name?: string | null;
10387
+ documents?: string[];
10388
+ id?: string;
10389
+ ip_address?: string | null;
10390
+ order_id?: string;
10391
+ order_number?: string | null;
10392
+ printed_at?: string;
10393
+ };
10394
+ Relationships: [];
10395
+ };
10396
+ pipeline_settings: {
10397
+ Row: {
10398
+ created_at: string;
10399
+ id: string;
10400
+ key: string;
10401
+ updated_at: string;
10402
+ value: string | null;
10403
+ };
10404
+ Insert: {
10405
+ created_at?: string;
10406
+ id?: string;
10407
+ key: string;
10408
+ updated_at?: string;
10409
+ value?: string | null;
10410
+ };
10411
+ Update: {
10412
+ created_at?: string;
10413
+ id?: string;
10414
+ key?: string;
10415
+ updated_at?: string;
10416
+ value?: string | null;
10417
+ };
10418
+ Relationships: [];
10419
+ };
10420
+ pipeline_stages: {
10421
+ Row: {
10422
+ automation_type: string;
10423
+ color: string;
10424
+ created_at: string;
10425
+ id: string;
10426
+ is_active: boolean;
10427
+ name: string;
10428
+ sort_order: number;
10429
+ updated_at: string;
10430
+ };
10431
+ Insert: {
10432
+ automation_type?: string;
10433
+ color?: string;
10434
+ created_at?: string;
10435
+ id?: string;
10436
+ is_active?: boolean;
10437
+ name: string;
10438
+ sort_order?: number;
10439
+ updated_at?: string;
10440
+ };
10441
+ Update: {
10442
+ automation_type?: string;
10443
+ color?: string;
10444
+ created_at?: string;
10445
+ id?: string;
10446
+ is_active?: boolean;
10447
+ name?: string;
10448
+ sort_order?: number;
10449
+ updated_at?: string;
10450
+ };
10451
+ Relationships: [];
10452
+ };
10453
+ planning_item_assistants: {
10454
+ Row: {
10455
+ created_at: string;
10456
+ created_by: string | null;
10457
+ monteur_id: string;
10458
+ planning_item_id: string;
10459
+ };
10460
+ Insert: {
10461
+ created_at?: string;
10462
+ created_by?: string | null;
10463
+ monteur_id: string;
10464
+ planning_item_id: string;
10465
+ };
10466
+ Update: {
10467
+ created_at?: string;
10468
+ created_by?: string | null;
10469
+ monteur_id?: string;
10470
+ planning_item_id?: string;
10471
+ };
10472
+ Relationships: [{
10473
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
10474
+ columns: ["planning_item_id"];
10475
+ isOneToOne: false;
10476
+ referencedRelation: "planning_items";
10477
+ referencedColumns: ["id"];
10478
+ }];
10479
+ };
10480
+ planning_items: {
10481
+ Row: {
10482
+ assigned_monteur_id: string;
10483
+ created_at: string;
10484
+ created_by: string | null;
10485
+ end_at: string;
10486
+ id: string;
10487
+ notes: string | null;
10488
+ start_at: string;
10489
+ status: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10490
+ updated_at: string;
10491
+ werkbon_id: string;
10492
+ };
10493
+ Insert: {
10494
+ assigned_monteur_id: string;
10495
+ created_at?: string;
10496
+ created_by?: string | null;
10497
+ end_at: string;
10498
+ id?: string;
10499
+ notes?: string | null;
10500
+ start_at: string;
10501
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10502
+ updated_at?: string;
10503
+ werkbon_id: string;
10504
+ };
10505
+ Update: {
10506
+ assigned_monteur_id?: string;
10507
+ created_at?: string;
10508
+ created_by?: string | null;
10509
+ end_at?: string;
10510
+ id?: string;
10511
+ notes?: string | null;
10512
+ start_at?: string;
10513
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10514
+ updated_at?: string;
10515
+ werkbon_id?: string;
10516
+ };
10517
+ Relationships: [{
10518
+ foreignKeyName: "planning_items_werkbon_id_fkey";
10519
+ columns: ["werkbon_id"];
10520
+ isOneToOne: false;
10521
+ referencedRelation: "werkbonnen";
10522
+ referencedColumns: ["id"];
10523
+ }];
10524
+ };
10525
+ print_job_logs: {
10526
+ Row: {
10527
+ created_at: string;
10528
+ detail: string;
10529
+ gebeurtenis: string;
10530
+ id: string;
10531
+ job_id: string;
10532
+ };
10533
+ Insert: {
10534
+ created_at?: string;
10535
+ detail?: string;
10536
+ gebeurtenis: string;
10537
+ id?: string;
10538
+ job_id: string;
10539
+ };
10540
+ Update: {
10541
+ created_at?: string;
10542
+ detail?: string;
10543
+ gebeurtenis?: string;
10544
+ id?: string;
10545
+ job_id?: string;
10546
+ };
10547
+ Relationships: [{
10548
+ foreignKeyName: "print_job_logs_job_id_fkey";
10549
+ columns: ["job_id"];
10550
+ isOneToOne: false;
10551
+ referencedRelation: "print_jobs";
10552
+ referencedColumns: ["id"];
10553
+ }];
10554
+ };
10555
+ print_jobs: {
10556
+ Row: {
10557
+ bron_job_id: string | null;
10558
+ created_at: string;
10559
+ documentnaam: string;
10560
+ documenttype: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10561
+ foutmelding: string | null;
10562
+ gebruiker_id: string | null;
10563
+ gebruiker_naam: string;
10564
+ gestart_op: string | null;
10565
+ id: string;
10566
+ is_herprint: boolean;
10567
+ kopieen: number;
10568
+ layout_id: string | null;
10569
+ paginas: number;
10570
+ payload: import("../../integrations/supabase/types").Json;
10571
+ printer_id: string | null;
10572
+ status: import("../../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10573
+ updated_at: string;
10574
+ voltooid_op: string | null;
10575
+ };
10576
+ Insert: {
10577
+ bron_job_id?: string | null;
10578
+ created_at?: string;
10579
+ documentnaam?: string;
10580
+ documenttype?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10581
+ foutmelding?: string | null;
10582
+ gebruiker_id?: string | null;
10583
+ gebruiker_naam?: string;
10584
+ gestart_op?: string | null;
10585
+ id?: string;
10586
+ is_herprint?: boolean;
10587
+ kopieen?: number;
10588
+ layout_id?: string | null;
10589
+ paginas?: number;
10590
+ payload?: import("../../integrations/supabase/types").Json;
10591
+ printer_id?: string | null;
10592
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10593
+ updated_at?: string;
10594
+ voltooid_op?: string | null;
10595
+ };
10596
+ Update: {
10597
+ bron_job_id?: string | null;
10598
+ created_at?: string;
10599
+ documentnaam?: string;
10600
+ documenttype?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10601
+ foutmelding?: string | null;
10602
+ gebruiker_id?: string | null;
10603
+ gebruiker_naam?: string;
10604
+ gestart_op?: string | null;
10605
+ id?: string;
10606
+ is_herprint?: boolean;
10607
+ kopieen?: number;
10608
+ layout_id?: string | null;
10609
+ paginas?: number;
10610
+ payload?: import("../../integrations/supabase/types").Json;
10611
+ printer_id?: string | null;
10612
+ status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10613
+ updated_at?: string;
10614
+ voltooid_op?: string | null;
10615
+ };
10616
+ Relationships: [{
10617
+ foreignKeyName: "print_jobs_layout_id_fkey";
10618
+ columns: ["layout_id"];
10619
+ isOneToOne: false;
10620
+ referencedRelation: "document_layouts";
10621
+ referencedColumns: ["id"];
10622
+ }, {
10623
+ foreignKeyName: "print_jobs_printer_id_fkey";
10624
+ columns: ["printer_id"];
10625
+ isOneToOne: false;
10626
+ referencedRelation: "printers";
10627
+ referencedColumns: ["id"];
10628
+ }];
10629
+ };
10630
+ print_rules: {
10631
+ Row: {
10632
+ actief: boolean;
10633
+ alleen_eerste_keer: boolean;
10634
+ conditie: import("../../integrations/supabase/types").Json;
10635
+ created_at: string;
10636
+ id: string;
10637
+ kopieen: number;
10638
+ layout_id: string;
10639
+ naam: string;
10640
+ printer_id: string | null;
10641
+ updated_at: string;
10642
+ volgorde: number;
10643
+ };
10644
+ Insert: {
10645
+ actief?: boolean;
10646
+ alleen_eerste_keer?: boolean;
10647
+ conditie?: import("../../integrations/supabase/types").Json;
10648
+ created_at?: string;
10649
+ id?: string;
10650
+ kopieen?: number;
10651
+ layout_id: string;
10652
+ naam?: string;
10653
+ printer_id?: string | null;
10654
+ updated_at?: string;
10655
+ volgorde?: number;
10656
+ };
10657
+ Update: {
10658
+ actief?: boolean;
10659
+ alleen_eerste_keer?: boolean;
10660
+ conditie?: import("../../integrations/supabase/types").Json;
10661
+ created_at?: string;
10662
+ id?: string;
10663
+ kopieen?: number;
10664
+ layout_id?: string;
10665
+ naam?: string;
10666
+ printer_id?: string | null;
10667
+ updated_at?: string;
10668
+ volgorde?: number;
10669
+ };
10670
+ Relationships: [{
10671
+ foreignKeyName: "print_rules_layout_id_fkey";
10672
+ columns: ["layout_id"];
10673
+ isOneToOne: false;
10674
+ referencedRelation: "document_layouts";
10675
+ referencedColumns: ["id"];
10676
+ }, {
10677
+ foreignKeyName: "print_rules_printer_id_fkey";
10678
+ columns: ["printer_id"];
10679
+ isOneToOne: false;
10680
+ referencedRelation: "printers";
10681
+ referencedColumns: ["id"];
10682
+ }];
10683
+ };
10684
+ printer_mappings: {
10685
+ Row: {
10686
+ created_at: string;
10687
+ id: string;
10688
+ layout_id: string;
10689
+ printer_id: string;
10690
+ prioriteit: number;
10691
+ updated_at: string;
10692
+ };
10693
+ Insert: {
10694
+ created_at?: string;
10695
+ id?: string;
10696
+ layout_id: string;
10697
+ printer_id: string;
10698
+ prioriteit?: number;
10699
+ updated_at?: string;
10700
+ };
10701
+ Update: {
10702
+ created_at?: string;
10703
+ id?: string;
10704
+ layout_id?: string;
10705
+ printer_id?: string;
10706
+ prioriteit?: number;
10707
+ updated_at?: string;
10708
+ };
10709
+ Relationships: [{
10710
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10711
+ columns: ["layout_id"];
10712
+ isOneToOne: false;
10713
+ referencedRelation: "document_layouts";
10714
+ referencedColumns: ["id"];
10715
+ }, {
10716
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10717
+ columns: ["printer_id"];
10718
+ isOneToOne: false;
10719
+ referencedRelation: "printers";
10720
+ referencedColumns: ["id"];
10721
+ }];
8679
10722
  };
8680
- planning_item_assistants: {
10723
+ printer_profiles: {
8681
10724
  Row: {
10725
+ auto_schalen: boolean;
8682
10726
  created_at: string;
8683
- created_by: string | null;
8684
- monteur_id: string;
8685
- planning_item_id: string;
10727
+ duplex: boolean;
10728
+ id: string;
10729
+ is_standaard: boolean;
10730
+ kleur: boolean;
10731
+ kopieen: number;
10732
+ label_gap: number;
10733
+ naam: string;
10734
+ orientatie: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10735
+ papierlade: string;
10736
+ printer_id: string;
10737
+ resolutie: number;
10738
+ snijden: boolean;
10739
+ updated_at: string;
8686
10740
  };
8687
10741
  Insert: {
10742
+ auto_schalen?: boolean;
8688
10743
  created_at?: string;
8689
- created_by?: string | null;
8690
- monteur_id: string;
8691
- planning_item_id: string;
10744
+ duplex?: boolean;
10745
+ id?: string;
10746
+ is_standaard?: boolean;
10747
+ kleur?: boolean;
10748
+ kopieen?: number;
10749
+ label_gap?: number;
10750
+ naam?: string;
10751
+ orientatie?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10752
+ papierlade?: string;
10753
+ printer_id: string;
10754
+ resolutie?: number;
10755
+ snijden?: boolean;
10756
+ updated_at?: string;
8692
10757
  };
8693
10758
  Update: {
10759
+ auto_schalen?: boolean;
8694
10760
  created_at?: string;
8695
- created_by?: string | null;
8696
- monteur_id?: string;
8697
- planning_item_id?: string;
10761
+ duplex?: boolean;
10762
+ id?: string;
10763
+ is_standaard?: boolean;
10764
+ kleur?: boolean;
10765
+ kopieen?: number;
10766
+ label_gap?: number;
10767
+ naam?: string;
10768
+ orientatie?: import("../../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10769
+ papierlade?: string;
10770
+ printer_id?: string;
10771
+ resolutie?: number;
10772
+ snijden?: boolean;
10773
+ updated_at?: string;
8698
10774
  };
8699
10775
  Relationships: [{
8700
- foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8701
- columns: ["planning_item_id"];
10776
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10777
+ columns: ["printer_id"];
8702
10778
  isOneToOne: false;
8703
- referencedRelation: "planning_items";
10779
+ referencedRelation: "printers";
8704
10780
  referencedColumns: ["id"];
8705
10781
  }];
8706
10782
  };
8707
- planning_items: {
10783
+ printers: {
8708
10784
  Row: {
8709
- assigned_monteur_id: string;
10785
+ actief: boolean;
8710
10786
  created_at: string;
8711
- created_by: string | null;
8712
- end_at: string;
10787
+ driver: string;
8713
10788
  id: string;
8714
- notes: string | null;
8715
- start_at: string;
8716
- status: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10789
+ ip_adres: string | null;
10790
+ laatst_gezien: string | null;
10791
+ locatie: string;
10792
+ merk: string;
10793
+ naam: string;
10794
+ omschrijving: string;
10795
+ online: boolean;
10796
+ papierformaat: string;
10797
+ poort: number | null;
10798
+ soort: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8717
10799
  updated_at: string;
8718
- werkbon_id: string;
10800
+ verbinding: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8719
10801
  };
8720
10802
  Insert: {
8721
- assigned_monteur_id: string;
10803
+ actief?: boolean;
8722
10804
  created_at?: string;
8723
- created_by?: string | null;
8724
- end_at: string;
10805
+ driver?: string;
8725
10806
  id?: string;
8726
- notes?: string | null;
8727
- start_at: string;
8728
- status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10807
+ ip_adres?: string | null;
10808
+ laatst_gezien?: string | null;
10809
+ locatie?: string;
10810
+ merk?: string;
10811
+ naam: string;
10812
+ omschrijving?: string;
10813
+ online?: boolean;
10814
+ papierformaat?: string;
10815
+ poort?: number | null;
10816
+ soort?: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8729
10817
  updated_at?: string;
8730
- werkbon_id: string;
10818
+ verbinding?: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8731
10819
  };
8732
10820
  Update: {
8733
- assigned_monteur_id?: string;
10821
+ actief?: boolean;
8734
10822
  created_at?: string;
8735
- created_by?: string | null;
8736
- end_at?: string;
10823
+ driver?: string;
8737
10824
  id?: string;
8738
- notes?: string | null;
8739
- start_at?: string;
8740
- status?: import("../../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10825
+ ip_adres?: string | null;
10826
+ laatst_gezien?: string | null;
10827
+ locatie?: string;
10828
+ merk?: string;
10829
+ naam?: string;
10830
+ omschrijving?: string;
10831
+ online?: boolean;
10832
+ papierformaat?: string;
10833
+ poort?: number | null;
10834
+ soort?: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8741
10835
  updated_at?: string;
8742
- werkbon_id?: string;
10836
+ verbinding?: import("../../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8743
10837
  };
8744
- Relationships: [{
8745
- foreignKeyName: "planning_items_werkbon_id_fkey";
8746
- columns: ["werkbon_id"];
8747
- isOneToOne: false;
8748
- referencedRelation: "werkbonnen";
8749
- referencedColumns: ["id"];
8750
- }];
10838
+ Relationships: [];
8751
10839
  };
8752
10840
  product_bom_items: {
8753
10841
  Row: {
@@ -10625,7 +12713,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
10625
12713
  is_active: boolean;
10626
12714
  label: string | null;
10627
12715
  office_code: string | null;
10628
- redirect_uri: string;
12716
+ redirect_uri: string | null;
10629
12717
  updated_at: string;
10630
12718
  user_id: string;
10631
12719
  };
@@ -10641,7 +12729,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
10641
12729
  is_active?: boolean;
10642
12730
  label?: string | null;
10643
12731
  office_code?: string | null;
10644
- redirect_uri: string;
12732
+ redirect_uri?: string | null;
10645
12733
  updated_at?: string;
10646
12734
  user_id: string;
10647
12735
  };
@@ -10657,7 +12745,7 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
10657
12745
  is_active?: boolean;
10658
12746
  label?: string | null;
10659
12747
  office_code?: string | null;
10660
- redirect_uri?: string;
12748
+ redirect_uri?: string | null;
10661
12749
  updated_at?: string;
10662
12750
  user_id?: string;
10663
12751
  };
@@ -11104,12 +13192,15 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
11104
13192
  currency: string | null;
11105
13193
  customer_code: string | null;
11106
13194
  data: import("../../integrations/supabase/types").Json;
13195
+ deleted_at: string | null;
11107
13196
  due_date: string | null;
11108
13197
  fetched_at: string;
11109
13198
  invoice_date: string | null;
11110
13199
  invoice_number: string;
13200
+ lines_fetched_at: string | null;
11111
13201
  modified_at: string | null;
11112
13202
  outstanding_amount: number | null;
13203
+ paid_at: string | null;
11113
13204
  status: string | null;
11114
13205
  status_label: string | null;
11115
13206
  total_excl: number | null;
@@ -11121,12 +13212,15 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
11121
13212
  currency?: string | null;
11122
13213
  customer_code?: string | null;
11123
13214
  data?: import("../../integrations/supabase/types").Json;
13215
+ deleted_at?: string | null;
11124
13216
  due_date?: string | null;
11125
13217
  fetched_at?: string;
11126
13218
  invoice_date?: string | null;
11127
13219
  invoice_number: string;
13220
+ lines_fetched_at?: string | null;
11128
13221
  modified_at?: string | null;
11129
13222
  outstanding_amount?: number | null;
13223
+ paid_at?: string | null;
11130
13224
  status?: string | null;
11131
13225
  status_label?: string | null;
11132
13226
  total_excl?: number | null;
@@ -11138,12 +13232,15 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
11138
13232
  currency?: string | null;
11139
13233
  customer_code?: string | null;
11140
13234
  data?: import("../../integrations/supabase/types").Json;
13235
+ deleted_at?: string | null;
11141
13236
  due_date?: string | null;
11142
13237
  fetched_at?: string;
11143
13238
  invoice_date?: string | null;
11144
13239
  invoice_number?: string;
13240
+ lines_fetched_at?: string | null;
11145
13241
  modified_at?: string | null;
11146
13242
  outstanding_amount?: number | null;
13243
+ paid_at?: string | null;
11147
13244
  status?: string | null;
11148
13245
  status_label?: string | null;
11149
13246
  total_excl?: number | null;
@@ -11248,6 +13345,27 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
11248
13345
  };
11249
13346
  Relationships: [];
11250
13347
  };
13348
+ twinfield_revoked_accounts: {
13349
+ Row: {
13350
+ account_key: string;
13351
+ last_revoke_error: string | null;
13352
+ revoked_at: string;
13353
+ user_id: string;
13354
+ };
13355
+ Insert: {
13356
+ account_key: string;
13357
+ last_revoke_error?: string | null;
13358
+ revoked_at?: string;
13359
+ user_id: string;
13360
+ };
13361
+ Update: {
13362
+ account_key?: string;
13363
+ last_revoke_error?: string | null;
13364
+ revoked_at?: string;
13365
+ user_id?: string;
13366
+ };
13367
+ Relationships: [];
13368
+ };
11251
13369
  twinfield_session_cache: {
11252
13370
  Row: {
11253
13371
  cluster: string;
@@ -11350,6 +13468,48 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
11350
13468
  referencedColumns: ["id"];
11351
13469
  }];
11352
13470
  };
13471
+ voorraad_custom_fields: {
13472
+ Row: {
13473
+ created_at: string;
13474
+ field_key: string;
13475
+ field_label: string;
13476
+ field_type: string;
13477
+ id: string;
13478
+ options: string[];
13479
+ show_in_columns: boolean;
13480
+ show_in_detail: boolean;
13481
+ show_in_template: boolean;
13482
+ sort_order: number;
13483
+ updated_at: string;
13484
+ };
13485
+ Insert: {
13486
+ created_at?: string;
13487
+ field_key: string;
13488
+ field_label: string;
13489
+ field_type?: string;
13490
+ id?: string;
13491
+ options?: string[];
13492
+ show_in_columns?: boolean;
13493
+ show_in_detail?: boolean;
13494
+ show_in_template?: boolean;
13495
+ sort_order?: number;
13496
+ updated_at?: string;
13497
+ };
13498
+ Update: {
13499
+ created_at?: string;
13500
+ field_key?: string;
13501
+ field_label?: string;
13502
+ field_type?: string;
13503
+ id?: string;
13504
+ options?: string[];
13505
+ show_in_columns?: boolean;
13506
+ show_in_detail?: boolean;
13507
+ show_in_template?: boolean;
13508
+ sort_order?: number;
13509
+ updated_at?: string;
13510
+ };
13511
+ Relationships: [];
13512
+ };
11353
13513
  voorraad_media_upload_failures: {
11354
13514
  Row: {
11355
13515
  action: string;
@@ -12007,6 +14167,9 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
12007
14167
  status: string | null;
12008
14168
  token_expires_at: string | null;
12009
14169
  updated_at: string | null;
14170
+ webhook_last_attempt_at: string | null;
14171
+ webhook_last_error: string | null;
14172
+ webhook_status: string | null;
12010
14173
  };
12011
14174
  Insert: {
12012
14175
  account_email?: string | null;
@@ -12041,6 +14204,9 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
12041
14204
  status?: string | null;
12042
14205
  token_expires_at?: string | null;
12043
14206
  updated_at?: string | null;
14207
+ webhook_last_attempt_at?: string | null;
14208
+ webhook_last_error?: string | null;
14209
+ webhook_status?: string | null;
12044
14210
  };
12045
14211
  Update: {
12046
14212
  account_email?: string | null;
@@ -12075,6 +14241,9 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
12075
14241
  status?: string | null;
12076
14242
  token_expires_at?: string | null;
12077
14243
  updated_at?: string | null;
14244
+ webhook_last_attempt_at?: string | null;
14245
+ webhook_last_error?: string | null;
14246
+ webhook_status?: string | null;
12078
14247
  };
12079
14248
  Relationships: [];
12080
14249
  };
@@ -12355,6 +14524,81 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
12355
14524
  referencedColumns: ["id"];
12356
14525
  }];
12357
14526
  };
14527
+ v_external_customers_local: {
14528
+ Row: {
14529
+ city: string | null;
14530
+ commercial_name: string | null;
14531
+ company_name: string | null;
14532
+ connection_id: string | null;
14533
+ contact_person: string | null;
14534
+ country: string | null;
14535
+ email: string | null;
14536
+ external_id: string | null;
14537
+ fetched_at: string | null;
14538
+ gln: string | null;
14539
+ house_number: string | null;
14540
+ is_active: boolean | null;
14541
+ is_deleted: boolean | null;
14542
+ logo_url: string | null;
14543
+ phone: string | null;
14544
+ postal_code: string | null;
14545
+ provider: string | null;
14546
+ raw: import("../../integrations/supabase/types").Json | null;
14547
+ status: string | null;
14548
+ street: string | null;
14549
+ vat_number: string | null;
14550
+ website: string | null;
14551
+ };
14552
+ Insert: {
14553
+ city?: string | null;
14554
+ commercial_name?: string | null;
14555
+ company_name?: string | null;
14556
+ connection_id?: never;
14557
+ contact_person?: string | null;
14558
+ country?: string | null;
14559
+ email?: string | null;
14560
+ external_id?: never;
14561
+ fetched_at?: never;
14562
+ gln?: string | null;
14563
+ house_number?: string | null;
14564
+ is_active?: never;
14565
+ is_deleted?: never;
14566
+ logo_url?: string | null;
14567
+ phone?: string | null;
14568
+ postal_code?: string | null;
14569
+ provider?: never;
14570
+ raw?: never;
14571
+ status?: string | null;
14572
+ street?: string | null;
14573
+ vat_number?: string | null;
14574
+ website?: string | null;
14575
+ };
14576
+ Update: {
14577
+ city?: string | null;
14578
+ commercial_name?: string | null;
14579
+ company_name?: string | null;
14580
+ connection_id?: never;
14581
+ contact_person?: string | null;
14582
+ country?: string | null;
14583
+ email?: string | null;
14584
+ external_id?: never;
14585
+ fetched_at?: never;
14586
+ gln?: string | null;
14587
+ house_number?: string | null;
14588
+ is_active?: never;
14589
+ is_deleted?: never;
14590
+ logo_url?: string | null;
14591
+ phone?: string | null;
14592
+ postal_code?: string | null;
14593
+ provider?: never;
14594
+ raw?: never;
14595
+ status?: string | null;
14596
+ street?: string | null;
14597
+ vat_number?: string | null;
14598
+ website?: string | null;
14599
+ };
14600
+ Relationships: [];
14601
+ };
12358
14602
  v_external_customers_twinfield: {
12359
14603
  Row: {
12360
14604
  city: string | null;
@@ -13283,6 +15527,170 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
13283
15527
  };
13284
15528
  Returns: string;
13285
15529
  };
15530
+ pick_claim_document: {
15531
+ Args: {
15532
+ _queue_item_id: string;
15533
+ _screen_id: string;
15534
+ _session_id: string;
15535
+ _station_id: string;
15536
+ _timeout_seconds?: number;
15537
+ };
15538
+ Returns: {
15539
+ announced_at: string;
15540
+ assigned_user_id: string | null;
15541
+ barcode: string | null;
15542
+ cancelled_at: string | null;
15543
+ cart_count: number;
15544
+ completed_at: string | null;
15545
+ country_code: string | null;
15546
+ created_at: string;
15547
+ customer_name: string | null;
15548
+ delivery_address: string | null;
15549
+ document_number: string | null;
15550
+ document_type_id: string | null;
15551
+ due_at: string | null;
15552
+ id: string;
15553
+ is_urgent: boolean;
15554
+ line_count: number;
15555
+ order_number: string | null;
15556
+ order_type: string | null;
15557
+ payload: import("../../integrations/supabase/types").Json;
15558
+ print_count: number;
15559
+ printed_at: string | null;
15560
+ printed_by: string | null;
15561
+ printer_id: string | null;
15562
+ priority: number;
15563
+ reference: string | null;
15564
+ route: string | null;
15565
+ screen_id: string | null;
15566
+ station_id: string | null;
15567
+ status_id: string | null;
15568
+ updated_at: string;
15569
+ warnings: import("../../integrations/supabase/types").Json;
15570
+ };
15571
+ SetofOptions: {
15572
+ from: "*";
15573
+ to: "pick_queue";
15574
+ isOneToOne: true;
15575
+ isSetofReturn: false;
15576
+ };
15577
+ };
15578
+ pick_claim_next_document: {
15579
+ Args: {
15580
+ _country_code: string;
15581
+ _screen_id: string;
15582
+ _session_id: string;
15583
+ _station_id: string;
15584
+ _timeout_seconds?: number;
15585
+ };
15586
+ Returns: {
15587
+ announced_at: string;
15588
+ assigned_user_id: string | null;
15589
+ barcode: string | null;
15590
+ cancelled_at: string | null;
15591
+ cart_count: number;
15592
+ completed_at: string | null;
15593
+ country_code: string | null;
15594
+ created_at: string;
15595
+ customer_name: string | null;
15596
+ delivery_address: string | null;
15597
+ document_number: string | null;
15598
+ document_type_id: string | null;
15599
+ due_at: string | null;
15600
+ id: string;
15601
+ is_urgent: boolean;
15602
+ line_count: number;
15603
+ order_number: string | null;
15604
+ order_type: string | null;
15605
+ payload: import("../../integrations/supabase/types").Json;
15606
+ print_count: number;
15607
+ printed_at: string | null;
15608
+ printed_by: string | null;
15609
+ printer_id: string | null;
15610
+ priority: number;
15611
+ reference: string | null;
15612
+ route: string | null;
15613
+ screen_id: string | null;
15614
+ station_id: string | null;
15615
+ status_id: string | null;
15616
+ updated_at: string;
15617
+ warnings: import("../../integrations/supabase/types").Json;
15618
+ };
15619
+ SetofOptions: {
15620
+ from: "*";
15621
+ to: "pick_queue";
15622
+ isOneToOne: true;
15623
+ isSetofReturn: false;
15624
+ };
15625
+ };
15626
+ pick_complete_print: {
15627
+ Args: {
15628
+ _printer_id: string;
15629
+ _queue_item_id: string;
15630
+ _session_id: string;
15631
+ };
15632
+ Returns: {
15633
+ announced_at: string;
15634
+ assigned_user_id: string | null;
15635
+ barcode: string | null;
15636
+ cancelled_at: string | null;
15637
+ cart_count: number;
15638
+ completed_at: string | null;
15639
+ country_code: string | null;
15640
+ created_at: string;
15641
+ customer_name: string | null;
15642
+ delivery_address: string | null;
15643
+ document_number: string | null;
15644
+ document_type_id: string | null;
15645
+ due_at: string | null;
15646
+ id: string;
15647
+ is_urgent: boolean;
15648
+ line_count: number;
15649
+ order_number: string | null;
15650
+ order_type: string | null;
15651
+ payload: import("../../integrations/supabase/types").Json;
15652
+ print_count: number;
15653
+ printed_at: string | null;
15654
+ printed_by: string | null;
15655
+ printer_id: string | null;
15656
+ priority: number;
15657
+ reference: string | null;
15658
+ route: string | null;
15659
+ screen_id: string | null;
15660
+ station_id: string | null;
15661
+ status_id: string | null;
15662
+ updated_at: string;
15663
+ warnings: import("../../integrations/supabase/types").Json;
15664
+ };
15665
+ SetofOptions: {
15666
+ from: "*";
15667
+ to: "pick_queue";
15668
+ isOneToOne: true;
15669
+ isSetofReturn: false;
15670
+ };
15671
+ };
15672
+ pick_release_expired_locks: {
15673
+ Args: never;
15674
+ Returns: number;
15675
+ };
15676
+ pick_release_lock: {
15677
+ Args: {
15678
+ _queue_item_id: string;
15679
+ };
15680
+ Returns: undefined;
15681
+ };
15682
+ pick_station_dashboard: {
15683
+ Args: never;
15684
+ Returns: {
15685
+ active: number;
15686
+ active_sessions: number;
15687
+ avg_wait_seconds: number;
15688
+ done_today: number;
15689
+ station_id: string;
15690
+ station_name: string;
15691
+ waiting: number;
15692
+ }[];
15693
+ };
13286
15694
  pickstation_get_orders_raw: {
13287
15695
  Args: never;
13288
15696
  Returns: import("../../integrations/supabase/types").Json;
@@ -13384,6 +15792,13 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
13384
15792
  };
13385
15793
  Returns: number;
13386
15794
  };
15795
+ release_debtor_lock: {
15796
+ Args: {
15797
+ _group_key: string;
15798
+ _user_id: string;
15799
+ };
15800
+ Returns: boolean;
15801
+ };
13387
15802
  reorder_customer_price_groups: {
13388
15803
  Args: {
13389
15804
  _ids: string[];
@@ -13763,6 +16178,20 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
13763
16178
  };
13764
16179
  Returns: undefined;
13765
16180
  };
16181
+ try_debtor_lock: {
16182
+ Args: {
16183
+ _group_key: string;
16184
+ _user_id: string;
16185
+ };
16186
+ Returns: boolean;
16187
+ };
16188
+ twinfield_register_cron: {
16189
+ Args: {
16190
+ apikey: string;
16191
+ base_url: string;
16192
+ };
16193
+ Returns: import("../../integrations/supabase/types").Json;
16194
+ };
13766
16195
  twinfield_upsert_connection_by_account_key: {
13767
16196
  Args: {
13768
16197
  p_account_key: string;
@@ -13789,12 +16218,18 @@ export declare const evaluateSlot: import("@tanstack/start-client-core").Require
13789
16218
  };
13790
16219
  };
13791
16220
  Enums: {
16221
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13792
16222
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16223
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16224
+ doc_orientation: "portrait" | "landscape";
13793
16225
  exact_env: "staging" | "live";
13794
16226
  exact_push_status: "pending" | "sent" | "error";
13795
16227
  itk_customer_segment: "Business" | "Private";
13796
16228
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13797
16229
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16230
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16231
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16232
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13798
16233
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13799
16234
  };
13800
16235
  CompositeTypes: { [_ in never]: never; };