@flowselections/floriday-afhandeling-module 1.0.23 → 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 +6 -50
@@ -418,6 +418,63 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
418
418
  };
419
419
  Relationships: [];
420
420
  };
421
+ ai_layout_imports: {
422
+ Row: {
423
+ analyse_json: import("../integrations/supabase/types").Json;
424
+ bestand_url: string | null;
425
+ bestandsnaam: string;
426
+ bevestigd: boolean;
427
+ created_at: string;
428
+ created_by: string | null;
429
+ foutmelding: string | null;
430
+ id: string;
431
+ layout_id: string | null;
432
+ mime_type: string;
433
+ onzekere_velden: import("../integrations/supabase/types").Json;
434
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
435
+ updated_at: string;
436
+ voorstel: import("../integrations/supabase/types").Json;
437
+ };
438
+ Insert: {
439
+ analyse_json?: import("../integrations/supabase/types").Json;
440
+ bestand_url?: string | null;
441
+ bestandsnaam?: string;
442
+ bevestigd?: boolean;
443
+ created_at?: string;
444
+ created_by?: string | null;
445
+ foutmelding?: string | null;
446
+ id?: string;
447
+ layout_id?: string | null;
448
+ mime_type?: string;
449
+ onzekere_velden?: import("../integrations/supabase/types").Json;
450
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
451
+ updated_at?: string;
452
+ voorstel?: import("../integrations/supabase/types").Json;
453
+ };
454
+ Update: {
455
+ analyse_json?: import("../integrations/supabase/types").Json;
456
+ bestand_url?: string | null;
457
+ bestandsnaam?: string;
458
+ bevestigd?: boolean;
459
+ created_at?: string;
460
+ created_by?: string | null;
461
+ foutmelding?: string | null;
462
+ id?: string;
463
+ layout_id?: string | null;
464
+ mime_type?: string;
465
+ onzekere_velden?: import("../integrations/supabase/types").Json;
466
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
467
+ updated_at?: string;
468
+ voorstel?: import("../integrations/supabase/types").Json;
469
+ };
470
+ Relationships: [{
471
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
472
+ columns: ["layout_id"];
473
+ isOneToOne: false;
474
+ referencedRelation: "document_layouts";
475
+ referencedColumns: ["id"];
476
+ }];
477
+ };
421
478
  ai_model_pricing: {
422
479
  Row: {
423
480
  created_at: string;
@@ -508,6 +565,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
508
565
  created_at: string;
509
566
  credential_id: string;
510
567
  id: string;
568
+ is_default: boolean;
569
+ label: string | null;
511
570
  model_id: string;
512
571
  notes: string | null;
513
572
  updated_at: string;
@@ -517,6 +576,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
517
576
  created_at?: string;
518
577
  credential_id: string;
519
578
  id?: string;
579
+ is_default?: boolean;
580
+ label?: string | null;
520
581
  model_id: string;
521
582
  notes?: string | null;
522
583
  updated_at?: string;
@@ -526,6 +587,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
526
587
  created_at?: string;
527
588
  credential_id?: string;
528
589
  id?: string;
590
+ is_default?: boolean;
591
+ label?: string | null;
529
592
  model_id?: string;
530
593
  notes?: string | null;
531
594
  updated_at?: string;
@@ -544,6 +607,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
544
607
  referencedColumns: ["id"];
545
608
  }];
546
609
  };
610
+ ai_modules: {
611
+ Row: {
612
+ ai_enabled: boolean;
613
+ created_at: string;
614
+ id: string;
615
+ module_key: string;
616
+ module_name: string;
617
+ updated_at: string;
618
+ };
619
+ Insert: {
620
+ ai_enabled?: boolean;
621
+ created_at?: string;
622
+ id?: string;
623
+ module_key: string;
624
+ module_name: string;
625
+ updated_at?: string;
626
+ };
627
+ Update: {
628
+ ai_enabled?: boolean;
629
+ created_at?: string;
630
+ id?: string;
631
+ module_key?: string;
632
+ module_name?: string;
633
+ updated_at?: string;
634
+ };
635
+ Relationships: [{
636
+ foreignKeyName: "ai_modules_module_key_fkey";
637
+ columns: ["module_key"];
638
+ isOneToOne: true;
639
+ referencedRelation: "modules";
640
+ referencedColumns: ["module_key"];
641
+ }];
642
+ };
547
643
  ai_providers: {
548
644
  Row: {
549
645
  active: boolean;
@@ -1286,6 +1382,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1286
1382
  require_same_crate_type: boolean;
1287
1383
  require_same_delivery_date: boolean;
1288
1384
  require_same_delivery_location: boolean;
1385
+ uniform_pick_time: boolean;
1386
+ uniform_pick_time_seconds: number;
1289
1387
  updated_at: string;
1290
1388
  updated_by: string | null;
1291
1389
  };
@@ -1310,6 +1408,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1310
1408
  require_same_crate_type?: boolean;
1311
1409
  require_same_delivery_date?: boolean;
1312
1410
  require_same_delivery_location?: boolean;
1411
+ uniform_pick_time?: boolean;
1412
+ uniform_pick_time_seconds?: number;
1313
1413
  updated_at?: string;
1314
1414
  updated_by?: string | null;
1315
1415
  };
@@ -1334,6 +1434,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1334
1434
  require_same_crate_type?: boolean;
1335
1435
  require_same_delivery_date?: boolean;
1336
1436
  require_same_delivery_location?: boolean;
1437
+ uniform_pick_time?: boolean;
1438
+ uniform_pick_time_seconds?: number;
1337
1439
  updated_at?: string;
1338
1440
  updated_by?: string | null;
1339
1441
  };
@@ -2467,6 +2569,351 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2467
2569
  };
2468
2570
  Relationships: [];
2469
2571
  };
2572
+ document_formaat_printers: {
2573
+ Row: {
2574
+ created_at: string;
2575
+ documenttype: string;
2576
+ formaat_code: string;
2577
+ id: string;
2578
+ printer_id: string | null;
2579
+ updated_at: string;
2580
+ };
2581
+ Insert: {
2582
+ created_at?: string;
2583
+ documenttype: string;
2584
+ formaat_code: string;
2585
+ id?: string;
2586
+ printer_id?: string | null;
2587
+ updated_at?: string;
2588
+ };
2589
+ Update: {
2590
+ created_at?: string;
2591
+ documenttype?: string;
2592
+ formaat_code?: string;
2593
+ id?: string;
2594
+ printer_id?: string | null;
2595
+ updated_at?: string;
2596
+ };
2597
+ Relationships: [{
2598
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2599
+ columns: ["printer_id"];
2600
+ isOneToOne: false;
2601
+ referencedRelation: "printers";
2602
+ referencedColumns: ["id"];
2603
+ }];
2604
+ };
2605
+ document_layout_conditions: {
2606
+ Row: {
2607
+ created_at: string;
2608
+ element_key: string;
2609
+ id: string;
2610
+ layout_id: string;
2611
+ operator: string;
2612
+ updated_at: string;
2613
+ veld: string;
2614
+ waarde: string;
2615
+ };
2616
+ Insert: {
2617
+ created_at?: string;
2618
+ element_key: string;
2619
+ id?: string;
2620
+ layout_id: string;
2621
+ operator?: string;
2622
+ updated_at?: string;
2623
+ veld: string;
2624
+ waarde?: string;
2625
+ };
2626
+ Update: {
2627
+ created_at?: string;
2628
+ element_key?: string;
2629
+ id?: string;
2630
+ layout_id?: string;
2631
+ operator?: string;
2632
+ updated_at?: string;
2633
+ veld?: string;
2634
+ waarde?: string;
2635
+ };
2636
+ Relationships: [{
2637
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2638
+ columns: ["layout_id"];
2639
+ isOneToOne: false;
2640
+ referencedRelation: "document_layouts";
2641
+ referencedColumns: ["id"];
2642
+ }];
2643
+ };
2644
+ document_layout_datasources: {
2645
+ Row: {
2646
+ alias: string;
2647
+ created_at: string;
2648
+ entiteit: string;
2649
+ filter: import("../integrations/supabase/types").Json;
2650
+ id: string;
2651
+ layout_id: string;
2652
+ module_id: string;
2653
+ updated_at: string;
2654
+ };
2655
+ Insert: {
2656
+ alias?: string;
2657
+ created_at?: string;
2658
+ entiteit: string;
2659
+ filter?: import("../integrations/supabase/types").Json;
2660
+ id?: string;
2661
+ layout_id: string;
2662
+ module_id: string;
2663
+ updated_at?: string;
2664
+ };
2665
+ Update: {
2666
+ alias?: string;
2667
+ created_at?: string;
2668
+ entiteit?: string;
2669
+ filter?: import("../integrations/supabase/types").Json;
2670
+ id?: string;
2671
+ layout_id?: string;
2672
+ module_id?: string;
2673
+ updated_at?: string;
2674
+ };
2675
+ Relationships: [{
2676
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2677
+ columns: ["layout_id"];
2678
+ isOneToOne: false;
2679
+ referencedRelation: "document_layouts";
2680
+ referencedColumns: ["id"];
2681
+ }];
2682
+ };
2683
+ document_layout_elements: {
2684
+ Row: {
2685
+ breedte: number;
2686
+ config: import("../integrations/supabase/types").Json;
2687
+ content: string;
2688
+ created_at: string;
2689
+ element_key: string;
2690
+ hoogte: number;
2691
+ id: string;
2692
+ layout_id: string;
2693
+ logo_id: string | null;
2694
+ parent_key: string | null;
2695
+ rotatie: number;
2696
+ stijl: import("../integrations/supabase/types").Json;
2697
+ type: string;
2698
+ updated_at: string;
2699
+ veldpad: string | null;
2700
+ verborgen: boolean;
2701
+ vergrendeld: boolean;
2702
+ volgorde: number;
2703
+ x: number;
2704
+ y: number;
2705
+ z_index: number;
2706
+ };
2707
+ Insert: {
2708
+ breedte?: number;
2709
+ config?: import("../integrations/supabase/types").Json;
2710
+ content?: string;
2711
+ created_at?: string;
2712
+ element_key: string;
2713
+ hoogte?: number;
2714
+ id?: string;
2715
+ layout_id: string;
2716
+ logo_id?: string | null;
2717
+ parent_key?: string | null;
2718
+ rotatie?: number;
2719
+ stijl?: import("../integrations/supabase/types").Json;
2720
+ type: string;
2721
+ updated_at?: string;
2722
+ veldpad?: string | null;
2723
+ verborgen?: boolean;
2724
+ vergrendeld?: boolean;
2725
+ volgorde?: number;
2726
+ x?: number;
2727
+ y?: number;
2728
+ z_index?: number;
2729
+ };
2730
+ Update: {
2731
+ breedte?: number;
2732
+ config?: import("../integrations/supabase/types").Json;
2733
+ content?: string;
2734
+ created_at?: string;
2735
+ element_key?: string;
2736
+ hoogte?: number;
2737
+ id?: string;
2738
+ layout_id?: string;
2739
+ logo_id?: string | null;
2740
+ parent_key?: string | null;
2741
+ rotatie?: number;
2742
+ stijl?: import("../integrations/supabase/types").Json;
2743
+ type?: string;
2744
+ updated_at?: string;
2745
+ veldpad?: string | null;
2746
+ verborgen?: boolean;
2747
+ vergrendeld?: boolean;
2748
+ volgorde?: number;
2749
+ x?: number;
2750
+ y?: number;
2751
+ z_index?: number;
2752
+ };
2753
+ Relationships: [{
2754
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2755
+ columns: ["layout_id"];
2756
+ isOneToOne: false;
2757
+ referencedRelation: "document_layouts";
2758
+ referencedColumns: ["id"];
2759
+ }, {
2760
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2761
+ columns: ["logo_id"];
2762
+ isOneToOne: false;
2763
+ referencedRelation: "layout_logos";
2764
+ referencedColumns: ["id"];
2765
+ }];
2766
+ };
2767
+ document_layout_variables: {
2768
+ Row: {
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
+ Insert: {
2778
+ created_at?: string;
2779
+ expressie?: string;
2780
+ id?: string;
2781
+ layout_id: string;
2782
+ naam: string;
2783
+ omschrijving?: string;
2784
+ updated_at?: string;
2785
+ };
2786
+ Update: {
2787
+ created_at?: string;
2788
+ expressie?: string;
2789
+ id?: string;
2790
+ layout_id?: string;
2791
+ naam?: string;
2792
+ omschrijving?: string;
2793
+ updated_at?: string;
2794
+ };
2795
+ Relationships: [{
2796
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2797
+ columns: ["layout_id"];
2798
+ isOneToOne: false;
2799
+ referencedRelation: "document_layouts";
2800
+ referencedColumns: ["id"];
2801
+ }];
2802
+ };
2803
+ document_layout_versions: {
2804
+ Row: {
2805
+ commentaar: string;
2806
+ created_at: string;
2807
+ created_by: string | null;
2808
+ elements: import("../integrations/supabase/types").Json;
2809
+ id: string;
2810
+ layout_id: string;
2811
+ page_settings: import("../integrations/supabase/types").Json;
2812
+ updated_at: string;
2813
+ versienummer: number;
2814
+ };
2815
+ Insert: {
2816
+ commentaar?: string;
2817
+ created_at?: string;
2818
+ created_by?: string | null;
2819
+ elements?: import("../integrations/supabase/types").Json;
2820
+ id?: string;
2821
+ layout_id: string;
2822
+ page_settings?: import("../integrations/supabase/types").Json;
2823
+ updated_at?: string;
2824
+ versienummer: number;
2825
+ };
2826
+ Update: {
2827
+ commentaar?: string;
2828
+ created_at?: string;
2829
+ created_by?: string | null;
2830
+ elements?: import("../integrations/supabase/types").Json;
2831
+ id?: string;
2832
+ layout_id?: string;
2833
+ page_settings?: import("../integrations/supabase/types").Json;
2834
+ updated_at?: string;
2835
+ versienummer?: number;
2836
+ };
2837
+ Relationships: [{
2838
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2839
+ columns: ["layout_id"];
2840
+ isOneToOne: false;
2841
+ referencedRelation: "document_layouts";
2842
+ referencedColumns: ["id"];
2843
+ }];
2844
+ };
2845
+ document_layouts: {
2846
+ Row: {
2847
+ actief: boolean;
2848
+ breedte_mm: number;
2849
+ config: import("../integrations/supabase/types").Json;
2850
+ created_at: string;
2851
+ created_by: string | null;
2852
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2853
+ hoogte_mm: number;
2854
+ huidige_versie: number;
2855
+ id: string;
2856
+ is_standaard: boolean;
2857
+ marge_boven: number;
2858
+ marge_links: number;
2859
+ marge_onder: number;
2860
+ marge_rechts: number;
2861
+ naam: string;
2862
+ omschrijving: string;
2863
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2864
+ page_settings: import("../integrations/supabase/types").Json;
2865
+ papierformaat: string;
2866
+ thumbnail_url: string | null;
2867
+ updated_at: string;
2868
+ };
2869
+ Insert: {
2870
+ actief?: boolean;
2871
+ breedte_mm?: number;
2872
+ config?: import("../integrations/supabase/types").Json;
2873
+ created_at?: string;
2874
+ created_by?: string | null;
2875
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2876
+ hoogte_mm?: number;
2877
+ huidige_versie?: number;
2878
+ id?: string;
2879
+ is_standaard?: boolean;
2880
+ marge_boven?: number;
2881
+ marge_links?: number;
2882
+ marge_onder?: number;
2883
+ marge_rechts?: number;
2884
+ naam: string;
2885
+ omschrijving?: string;
2886
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2887
+ page_settings?: import("../integrations/supabase/types").Json;
2888
+ papierformaat?: string;
2889
+ thumbnail_url?: string | null;
2890
+ updated_at?: string;
2891
+ };
2892
+ Update: {
2893
+ actief?: boolean;
2894
+ breedte_mm?: number;
2895
+ config?: import("../integrations/supabase/types").Json;
2896
+ created_at?: string;
2897
+ created_by?: string | null;
2898
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2899
+ hoogte_mm?: number;
2900
+ huidige_versie?: number;
2901
+ id?: string;
2902
+ is_standaard?: boolean;
2903
+ marge_boven?: number;
2904
+ marge_links?: number;
2905
+ marge_onder?: number;
2906
+ marge_rechts?: number;
2907
+ naam?: string;
2908
+ omschrijving?: string;
2909
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2910
+ page_settings?: import("../integrations/supabase/types").Json;
2911
+ papierformaat?: string;
2912
+ thumbnail_url?: string | null;
2913
+ updated_at?: string;
2914
+ };
2915
+ Relationships: [];
2916
+ };
2470
2917
  email_auth_connections: {
2471
2918
  Row: {
2472
2919
  access_token_encrypted: string | null;
@@ -2506,6 +2953,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2506
2953
  status: string;
2507
2954
  token_expires_at: string | null;
2508
2955
  updated_at: string;
2956
+ watch_scope: string;
2957
+ webhook_last_attempt_at: string | null;
2958
+ webhook_last_error: string | null;
2959
+ webhook_status: string;
2509
2960
  };
2510
2961
  Insert: {
2511
2962
  access_token_encrypted?: string | null;
@@ -2545,6 +2996,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2545
2996
  status?: string;
2546
2997
  token_expires_at?: string | null;
2547
2998
  updated_at?: string;
2999
+ watch_scope?: string;
3000
+ webhook_last_attempt_at?: string | null;
3001
+ webhook_last_error?: string | null;
3002
+ webhook_status?: string;
2548
3003
  };
2549
3004
  Update: {
2550
3005
  access_token_encrypted?: string | null;
@@ -2584,6 +3039,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2584
3039
  status?: string;
2585
3040
  token_expires_at?: string | null;
2586
3041
  updated_at?: string;
3042
+ watch_scope?: string;
3043
+ webhook_last_attempt_at?: string | null;
3044
+ webhook_last_error?: string | null;
3045
+ webhook_status?: string;
2587
3046
  };
2588
3047
  Relationships: [];
2589
3048
  };
@@ -2779,44 +3238,164 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2779
3238
  referencedColumns: ["id"];
2780
3239
  }];
2781
3240
  };
2782
- exact_account_analytics_cache: {
3241
+ email_auth_watch_folders: {
2783
3242
  Row: {
2784
- account_id: string;
2785
- account_name: string | null;
2786
- avg_payment_days: number | null;
2787
- computed_at: string;
2788
3243
  connection_id: string;
2789
- expires_at: string | null;
3244
+ created_at: string;
3245
+ folder_id: string;
3246
+ folder_name: string | null;
3247
+ gmail_history_id: string | null;
3248
+ graph_subscription_expires_at: string | null;
3249
+ graph_subscription_id: string | null;
2790
3250
  id: string;
2791
- invoice_count: number | null;
2792
- last_invoice_date: string | null;
2793
- last_payment_date: string | null;
2794
- open_balance: number | null;
2795
- overdue_balance: number | null;
2796
- total_revenue: number | null;
3251
+ imap_last_uid: number | null;
3252
+ imap_uid_validity: number | null;
3253
+ mailbox: string;
3254
+ provider: string;
3255
+ updated_at: string;
3256
+ webhook_last_error: string | null;
3257
+ webhook_status: string | null;
2797
3258
  };
2798
3259
  Insert: {
2799
- account_id: string;
2800
- account_name?: string | null;
2801
- avg_payment_days?: number | null;
2802
- computed_at?: string;
2803
3260
  connection_id: string;
2804
- expires_at?: string | null;
3261
+ created_at?: string;
3262
+ folder_id: string;
3263
+ folder_name?: string | null;
3264
+ gmail_history_id?: string | null;
3265
+ graph_subscription_expires_at?: string | null;
3266
+ graph_subscription_id?: string | null;
2805
3267
  id?: string;
2806
- invoice_count?: number | null;
2807
- last_invoice_date?: string | null;
2808
- last_payment_date?: string | null;
2809
- open_balance?: number | null;
2810
- overdue_balance?: number | null;
2811
- total_revenue?: number | null;
3268
+ imap_last_uid?: number | null;
3269
+ imap_uid_validity?: number | null;
3270
+ mailbox?: string;
3271
+ provider: string;
3272
+ updated_at?: string;
3273
+ webhook_last_error?: string | null;
3274
+ webhook_status?: string | null;
2812
3275
  };
2813
3276
  Update: {
2814
- account_id?: string;
2815
- account_name?: string | null;
2816
- avg_payment_days?: number | null;
2817
- computed_at?: string;
2818
3277
  connection_id?: string;
2819
- expires_at?: string | null;
3278
+ created_at?: string;
3279
+ folder_id?: string;
3280
+ folder_name?: string | null;
3281
+ gmail_history_id?: string | null;
3282
+ graph_subscription_expires_at?: string | null;
3283
+ graph_subscription_id?: string | null;
3284
+ id?: string;
3285
+ imap_last_uid?: number | null;
3286
+ imap_uid_validity?: number | null;
3287
+ mailbox?: string;
3288
+ provider?: string;
3289
+ updated_at?: string;
3290
+ webhook_last_error?: string | null;
3291
+ webhook_status?: string | null;
3292
+ };
3293
+ Relationships: [{
3294
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3295
+ columns: ["connection_id"];
3296
+ isOneToOne: false;
3297
+ referencedRelation: "email_auth_connections";
3298
+ referencedColumns: ["id"];
3299
+ }, {
3300
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3301
+ columns: ["connection_id"];
3302
+ isOneToOne: false;
3303
+ referencedRelation: "email_auth_connections_safe";
3304
+ referencedColumns: ["id"];
3305
+ }];
3306
+ };
3307
+ email_auth_webhook_log: {
3308
+ Row: {
3309
+ body_sample: string | null;
3310
+ connection_id: string | null;
3311
+ created_at: string;
3312
+ error_message: string | null;
3313
+ headers_sample: import("../integrations/supabase/types").Json | null;
3314
+ id: string;
3315
+ notification_count: number | null;
3316
+ provider: string | null;
3317
+ source: string | null;
3318
+ status: string;
3319
+ subscription_id: string | null;
3320
+ };
3321
+ Insert: {
3322
+ body_sample?: string | null;
3323
+ connection_id?: string | null;
3324
+ created_at?: string;
3325
+ error_message?: string | null;
3326
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3327
+ id?: string;
3328
+ notification_count?: number | null;
3329
+ provider?: string | null;
3330
+ source?: string | null;
3331
+ status: string;
3332
+ subscription_id?: string | null;
3333
+ };
3334
+ Update: {
3335
+ body_sample?: string | null;
3336
+ connection_id?: string | null;
3337
+ created_at?: string;
3338
+ error_message?: string | null;
3339
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3340
+ id?: string;
3341
+ notification_count?: number | null;
3342
+ provider?: string | null;
3343
+ source?: string | null;
3344
+ status?: string;
3345
+ subscription_id?: string | null;
3346
+ };
3347
+ Relationships: [{
3348
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3349
+ columns: ["connection_id"];
3350
+ isOneToOne: false;
3351
+ referencedRelation: "email_auth_connections";
3352
+ referencedColumns: ["id"];
3353
+ }, {
3354
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3355
+ columns: ["connection_id"];
3356
+ isOneToOne: false;
3357
+ referencedRelation: "email_auth_connections_safe";
3358
+ referencedColumns: ["id"];
3359
+ }];
3360
+ };
3361
+ exact_account_analytics_cache: {
3362
+ Row: {
3363
+ account_id: string;
3364
+ account_name: string | null;
3365
+ avg_payment_days: number | null;
3366
+ computed_at: string;
3367
+ connection_id: string;
3368
+ expires_at: string | null;
3369
+ id: string;
3370
+ invoice_count: number | null;
3371
+ last_invoice_date: string | null;
3372
+ last_payment_date: string | null;
3373
+ open_balance: number | null;
3374
+ overdue_balance: number | null;
3375
+ total_revenue: number | null;
3376
+ };
3377
+ Insert: {
3378
+ account_id: string;
3379
+ account_name?: string | null;
3380
+ avg_payment_days?: number | null;
3381
+ computed_at?: string;
3382
+ connection_id: string;
3383
+ expires_at?: string | null;
3384
+ id?: string;
3385
+ invoice_count?: number | null;
3386
+ last_invoice_date?: string | null;
3387
+ last_payment_date?: string | null;
3388
+ open_balance?: number | null;
3389
+ overdue_balance?: number | null;
3390
+ total_revenue?: number | null;
3391
+ };
3392
+ Update: {
3393
+ account_id?: string;
3394
+ account_name?: string | null;
3395
+ avg_payment_days?: number | null;
3396
+ computed_at?: string;
3397
+ connection_id?: string;
3398
+ expires_at?: string | null;
2820
3399
  id?: string;
2821
3400
  invoice_count?: number | null;
2822
3401
  last_invoice_date?: string | null;
@@ -5992,6 +6571,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5992
6571
  };
5993
6572
  Relationships: [];
5994
6573
  };
6574
+ invoice_post_idempotency: {
6575
+ Row: {
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
+ Insert: {
6585
+ client_request_id: string;
6586
+ completed_at?: string | null;
6587
+ created_at?: string;
6588
+ error_message?: string | null;
6589
+ invoice_number?: string | null;
6590
+ status?: string;
6591
+ user_id: string;
6592
+ };
6593
+ Update: {
6594
+ client_request_id?: string;
6595
+ completed_at?: string | null;
6596
+ created_at?: string;
6597
+ error_message?: string | null;
6598
+ invoice_number?: string | null;
6599
+ status?: string;
6600
+ user_id?: string;
6601
+ };
6602
+ Relationships: [];
6603
+ };
5995
6604
  invoice_push_log: {
5996
6605
  Row: {
5997
6606
  connection_id: string | null;
@@ -6379,6 +6988,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6379
6988
  referencedColumns: ["id"];
6380
6989
  }];
6381
6990
  };
6991
+ layout_logos: {
6992
+ Row: {
6993
+ bestand_url: string;
6994
+ bestandsgrootte: number;
6995
+ bestandspad: string | null;
6996
+ bestandstype: string;
6997
+ breedte: number;
6998
+ categorie: string;
6999
+ created_at: string;
7000
+ hash: string | null;
7001
+ hoogte: number;
7002
+ id: string;
7003
+ is_standaard: boolean;
7004
+ naam: string;
7005
+ omschrijving: string;
7006
+ transparant: boolean;
7007
+ updated_at: string;
7008
+ };
7009
+ Insert: {
7010
+ bestand_url: string;
7011
+ bestandsgrootte?: number;
7012
+ bestandspad?: string | null;
7013
+ bestandstype?: string;
7014
+ breedte?: number;
7015
+ categorie?: string;
7016
+ created_at?: string;
7017
+ hash?: string | null;
7018
+ hoogte?: number;
7019
+ id?: string;
7020
+ is_standaard?: boolean;
7021
+ naam: string;
7022
+ omschrijving?: string;
7023
+ transparant?: boolean;
7024
+ updated_at?: string;
7025
+ };
7026
+ Update: {
7027
+ bestand_url?: string;
7028
+ bestandsgrootte?: number;
7029
+ bestandspad?: string | null;
7030
+ bestandstype?: string;
7031
+ breedte?: number;
7032
+ categorie?: string;
7033
+ created_at?: string;
7034
+ hash?: string | null;
7035
+ hoogte?: number;
7036
+ id?: string;
7037
+ is_standaard?: boolean;
7038
+ naam?: string;
7039
+ omschrijving?: string;
7040
+ transparant?: boolean;
7041
+ updated_at?: string;
7042
+ };
7043
+ Relationships: [];
7044
+ };
6382
7045
  leave_requests: {
6383
7046
  Row: {
6384
7047
  created_at: string;
@@ -6793,6 +7456,96 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6793
7456
  referencedColumns: ["id"];
6794
7457
  }];
6795
7458
  };
7459
+ logistics_rule_configs: {
7460
+ Row: {
7461
+ created_at: string;
7462
+ current_version: number;
7463
+ description: string | null;
7464
+ id: string;
7465
+ is_active: boolean;
7466
+ name: string;
7467
+ settings: import("../integrations/supabase/types").Json;
7468
+ status: string;
7469
+ strategy_id: string | null;
7470
+ updated_at: string;
7471
+ user_id: string;
7472
+ };
7473
+ Insert: {
7474
+ created_at?: string;
7475
+ current_version?: number;
7476
+ description?: string | null;
7477
+ id?: string;
7478
+ is_active?: boolean;
7479
+ name: string;
7480
+ settings?: import("../integrations/supabase/types").Json;
7481
+ status?: string;
7482
+ strategy_id?: string | null;
7483
+ updated_at?: string;
7484
+ user_id?: string;
7485
+ };
7486
+ Update: {
7487
+ created_at?: string;
7488
+ current_version?: number;
7489
+ description?: string | null;
7490
+ id?: string;
7491
+ is_active?: boolean;
7492
+ name?: string;
7493
+ settings?: import("../integrations/supabase/types").Json;
7494
+ status?: string;
7495
+ strategy_id?: string | null;
7496
+ updated_at?: string;
7497
+ user_id?: string;
7498
+ };
7499
+ Relationships: [{
7500
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7501
+ columns: ["strategy_id"];
7502
+ isOneToOne: false;
7503
+ referencedRelation: "logistics_strategies";
7504
+ referencedColumns: ["id"];
7505
+ }];
7506
+ };
7507
+ logistics_rule_versions: {
7508
+ Row: {
7509
+ config_id: string;
7510
+ created_at: string;
7511
+ id: string;
7512
+ label: string | null;
7513
+ note: string | null;
7514
+ settings: import("../integrations/supabase/types").Json;
7515
+ status: string;
7516
+ user_id: string;
7517
+ version: number;
7518
+ };
7519
+ Insert: {
7520
+ config_id: string;
7521
+ created_at?: string;
7522
+ id?: string;
7523
+ label?: string | null;
7524
+ note?: string | null;
7525
+ settings?: import("../integrations/supabase/types").Json;
7526
+ status?: string;
7527
+ user_id?: string;
7528
+ version: number;
7529
+ };
7530
+ Update: {
7531
+ config_id?: string;
7532
+ created_at?: string;
7533
+ id?: string;
7534
+ label?: string | null;
7535
+ note?: string | null;
7536
+ settings?: import("../integrations/supabase/types").Json;
7537
+ status?: string;
7538
+ user_id?: string;
7539
+ version?: number;
7540
+ };
7541
+ Relationships: [{
7542
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7543
+ columns: ["config_id"];
7544
+ isOneToOne: false;
7545
+ referencedRelation: "logistics_rule_configs";
7546
+ referencedColumns: ["id"];
7547
+ }];
7548
+ };
6796
7549
  logistics_strategies: {
6797
7550
  Row: {
6798
7551
  color: string;
@@ -6922,51 +7675,144 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6922
7675
  };
6923
7676
  Relationships: [];
6924
7677
  };
6925
- mailbox_messages: {
7678
+ mailbox_ai_goal_prompts: {
6926
7679
  Row: {
6927
- body_html: string | null;
6928
- body_text: string | null;
6929
- connection_id: string | null;
6930
7680
  created_at: string;
6931
- error_message: string | null;
6932
- external_id: string | null;
6933
- from_email: string | null;
6934
- from_name: string | null;
7681
+ goal_key: string;
6935
7682
  id: string;
6936
- message_id: string | null;
6937
- profile_id: string | null;
6938
- raw_size: number | null;
6939
- received_at: string | null;
6940
- status: string;
6941
- subject: string | null;
6942
- uid: number | null;
7683
+ system_prompt: string;
6943
7684
  updated_at: string;
6944
7685
  };
6945
7686
  Insert: {
6946
- body_html?: string | null;
6947
- body_text?: string | null;
6948
- connection_id?: string | null;
6949
7687
  created_at?: string;
6950
- error_message?: string | null;
6951
- external_id?: string | null;
6952
- from_email?: string | null;
6953
- from_name?: string | null;
7688
+ goal_key: string;
6954
7689
  id?: string;
6955
- message_id?: string | null;
6956
- profile_id?: string | null;
6957
- raw_size?: number | null;
6958
- received_at?: string | null;
6959
- status?: string;
6960
- subject?: string | null;
6961
- uid?: number | null;
7690
+ system_prompt?: string;
6962
7691
  updated_at?: string;
6963
7692
  };
6964
7693
  Update: {
6965
- body_html?: string | null;
6966
- body_text?: string | null;
6967
- connection_id?: string | null;
6968
7694
  created_at?: string;
6969
- error_message?: string | null;
7695
+ goal_key?: string;
7696
+ id?: string;
7697
+ system_prompt?: string;
7698
+ updated_at?: string;
7699
+ };
7700
+ Relationships: [];
7701
+ };
7702
+ mailbox_ai_settings: {
7703
+ Row: {
7704
+ active_goal_key: string | null;
7705
+ created_at: string;
7706
+ enabled: boolean;
7707
+ id: string;
7708
+ required_fields: string[];
7709
+ singleton: boolean;
7710
+ system_prompt: string | null;
7711
+ updated_at: string;
7712
+ };
7713
+ Insert: {
7714
+ active_goal_key?: string | null;
7715
+ created_at?: string;
7716
+ enabled?: boolean;
7717
+ id?: string;
7718
+ required_fields?: string[];
7719
+ singleton?: boolean;
7720
+ system_prompt?: string | null;
7721
+ updated_at?: string;
7722
+ };
7723
+ Update: {
7724
+ active_goal_key?: string | null;
7725
+ created_at?: string;
7726
+ enabled?: boolean;
7727
+ id?: string;
7728
+ required_fields?: string[];
7729
+ singleton?: boolean;
7730
+ system_prompt?: string | null;
7731
+ updated_at?: string;
7732
+ };
7733
+ Relationships: [];
7734
+ };
7735
+ mailbox_ingest_runs: {
7736
+ Row: {
7737
+ connection_id: string | null;
7738
+ error_sample: string | null;
7739
+ errors: number;
7740
+ finished_at: string | null;
7741
+ id: string;
7742
+ inserted: number;
7743
+ processed: number;
7744
+ started_at: string;
7745
+ trigger: string;
7746
+ };
7747
+ Insert: {
7748
+ connection_id?: string | null;
7749
+ error_sample?: string | null;
7750
+ errors?: number;
7751
+ finished_at?: string | null;
7752
+ id?: string;
7753
+ inserted?: number;
7754
+ processed?: number;
7755
+ started_at?: string;
7756
+ trigger: string;
7757
+ };
7758
+ Update: {
7759
+ connection_id?: string | null;
7760
+ error_sample?: string | null;
7761
+ errors?: number;
7762
+ finished_at?: string | null;
7763
+ id?: string;
7764
+ inserted?: number;
7765
+ processed?: number;
7766
+ started_at?: string;
7767
+ trigger?: string;
7768
+ };
7769
+ Relationships: [];
7770
+ };
7771
+ mailbox_messages: {
7772
+ Row: {
7773
+ body_html: string | null;
7774
+ body_text: string | null;
7775
+ connection_id: string | null;
7776
+ created_at: string;
7777
+ error_message: string | null;
7778
+ external_id: string | null;
7779
+ from_email: string | null;
7780
+ from_name: string | null;
7781
+ id: string;
7782
+ message_id: string | null;
7783
+ profile_id: string | null;
7784
+ raw_size: number | null;
7785
+ received_at: string | null;
7786
+ status: string;
7787
+ subject: string | null;
7788
+ uid: number | null;
7789
+ updated_at: string;
7790
+ };
7791
+ Insert: {
7792
+ body_html?: string | null;
7793
+ body_text?: string | null;
7794
+ connection_id?: string | null;
7795
+ created_at?: string;
7796
+ error_message?: string | null;
7797
+ external_id?: string | null;
7798
+ from_email?: string | null;
7799
+ from_name?: string | null;
7800
+ id?: string;
7801
+ message_id?: string | null;
7802
+ profile_id?: string | null;
7803
+ raw_size?: number | null;
7804
+ received_at?: string | null;
7805
+ status?: string;
7806
+ subject?: string | null;
7807
+ uid?: number | null;
7808
+ updated_at?: string;
7809
+ };
7810
+ Update: {
7811
+ body_html?: string | null;
7812
+ body_text?: string | null;
7813
+ connection_id?: string | null;
7814
+ created_at?: string;
7815
+ error_message?: string | null;
6970
7816
  external_id?: string | null;
6971
7817
  from_email?: string | null;
6972
7818
  from_name?: string | null;
@@ -7002,6 +7848,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7002
7848
  };
7003
7849
  mailbox_order_proposals: {
7004
7850
  Row: {
7851
+ ai_validation: import("../integrations/supabase/types").Json | null;
7005
7852
  confidence: number | null;
7006
7853
  created_at: string;
7007
7854
  created_order_id: string | null;
@@ -7018,6 +7865,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7018
7865
  updated_at: string;
7019
7866
  };
7020
7867
  Insert: {
7868
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7021
7869
  confidence?: number | null;
7022
7870
  created_at?: string;
7023
7871
  created_order_id?: string | null;
@@ -7034,6 +7882,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7034
7882
  updated_at?: string;
7035
7883
  };
7036
7884
  Update: {
7885
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7037
7886
  confidence?: number | null;
7038
7887
  created_at?: string;
7039
7888
  created_order_id?: string | null;
@@ -7170,6 +8019,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7170
8019
  created_at: string;
7171
8020
  id: string;
7172
8021
  match_confidence: number | null;
8022
+ plant_type: string | null;
7173
8023
  product_id: string | null;
7174
8024
  proposal_id: string;
7175
8025
  quantity: number | null;
@@ -7182,6 +8032,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7182
8032
  created_at?: string;
7183
8033
  id?: string;
7184
8034
  match_confidence?: number | null;
8035
+ plant_type?: string | null;
7185
8036
  product_id?: string | null;
7186
8037
  proposal_id: string;
7187
8038
  quantity?: number | null;
@@ -7194,6 +8045,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7194
8045
  created_at?: string;
7195
8046
  id?: string;
7196
8047
  match_confidence?: number | null;
8048
+ plant_type?: string | null;
7197
8049
  product_id?: string | null;
7198
8050
  proposal_id?: string;
7199
8051
  quantity?: number | null;
@@ -7378,6 +8230,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7378
8230
  };
7379
8231
  Relationships: [];
7380
8232
  };
8233
+ modules: {
8234
+ Row: {
8235
+ created_at: string;
8236
+ description: string | null;
8237
+ id: string;
8238
+ is_active: boolean;
8239
+ last_seen_at: string | null;
8240
+ module_key: string;
8241
+ module_name: string;
8242
+ updated_at: string;
8243
+ };
8244
+ Insert: {
8245
+ created_at?: string;
8246
+ description?: string | null;
8247
+ id?: string;
8248
+ is_active?: boolean;
8249
+ last_seen_at?: string | null;
8250
+ module_key: string;
8251
+ module_name: string;
8252
+ updated_at?: string;
8253
+ };
8254
+ Update: {
8255
+ created_at?: string;
8256
+ description?: string | null;
8257
+ id?: string;
8258
+ is_active?: boolean;
8259
+ last_seen_at?: string | null;
8260
+ module_key?: string;
8261
+ module_name?: string;
8262
+ updated_at?: string;
8263
+ };
8264
+ Relationships: [];
8265
+ };
7381
8266
  monteurs: {
7382
8267
  Row: {
7383
8268
  avatar_url: string | null;
@@ -8334,9 +9219,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8334
9219
  };
8335
9220
  order_items: {
8336
9221
  Row: {
9222
+ crates_per_layer: number | null;
8337
9223
  created_at: string;
8338
9224
  id: string;
9225
+ layers_per_cart: number | null;
8339
9226
  order_id: string;
9227
+ plants_per_crate: number | null;
8340
9228
  product_id: string | null;
8341
9229
  product_name: string;
8342
9230
  quantity: number;
@@ -8344,9 +9232,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8344
9232
  unit_price: number | null;
8345
9233
  };
8346
9234
  Insert: {
9235
+ crates_per_layer?: number | null;
8347
9236
  created_at?: string;
8348
9237
  id?: string;
9238
+ layers_per_cart?: number | null;
8349
9239
  order_id: string;
9240
+ plants_per_crate?: number | null;
8350
9241
  product_id?: string | null;
8351
9242
  product_name: string;
8352
9243
  quantity?: number;
@@ -8354,9 +9245,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8354
9245
  unit_price?: number | null;
8355
9246
  };
8356
9247
  Update: {
9248
+ crates_per_layer?: number | null;
8357
9249
  created_at?: string;
8358
9250
  id?: string;
9251
+ layers_per_cart?: number | null;
8359
9252
  order_id?: string;
9253
+ plants_per_crate?: number | null;
8360
9254
  product_id?: string | null;
8361
9255
  product_name?: string;
8362
9256
  quantity?: number;
@@ -8608,164 +9502,1358 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8608
9502
  };
8609
9503
  Relationships: [];
8610
9504
  };
8611
- pickstation_print_log: {
9505
+ pick_countries: {
8612
9506
  Row: {
8613
- customer_name: string | null;
8614
- documents: string[];
9507
+ active: boolean;
9508
+ code: string;
9509
+ created_at: string;
9510
+ flag: string | null;
8615
9511
  id: string;
8616
- ip_address: string | null;
8617
- order_id: string;
8618
- order_number: string | null;
8619
- printed_at: string;
9512
+ name: string;
9513
+ sort_order: number;
9514
+ updated_at: string;
8620
9515
  };
8621
9516
  Insert: {
8622
- customer_name?: string | null;
8623
- documents?: string[];
9517
+ active?: boolean;
9518
+ code: string;
9519
+ created_at?: string;
9520
+ flag?: string | null;
8624
9521
  id?: string;
8625
- ip_address?: string | null;
8626
- order_id: string;
8627
- order_number?: string | null;
8628
- printed_at?: string;
9522
+ name: string;
9523
+ sort_order?: number;
9524
+ updated_at?: string;
8629
9525
  };
8630
9526
  Update: {
8631
- customer_name?: string | null;
8632
- documents?: string[];
9527
+ active?: boolean;
9528
+ code?: string;
9529
+ created_at?: string;
9530
+ flag?: string | null;
8633
9531
  id?: string;
8634
- ip_address?: string | null;
8635
- order_id?: string;
8636
- order_number?: string | null;
8637
- printed_at?: string;
9532
+ name?: string;
9533
+ sort_order?: number;
9534
+ updated_at?: string;
8638
9535
  };
8639
9536
  Relationships: [];
8640
9537
  };
8641
- pipeline_settings: {
9538
+ pick_document_statuses: {
8642
9539
  Row: {
9540
+ active: boolean;
9541
+ code: string;
9542
+ color: string | null;
8643
9543
  created_at: string;
8644
9544
  id: string;
8645
- key: string;
9545
+ is_open: boolean;
9546
+ is_terminal: boolean;
9547
+ name: string;
9548
+ sort_order: number;
8646
9549
  updated_at: string;
8647
- value: string | null;
8648
9550
  };
8649
9551
  Insert: {
9552
+ active?: boolean;
9553
+ code: string;
9554
+ color?: string | null;
8650
9555
  created_at?: string;
8651
9556
  id?: string;
8652
- key: string;
9557
+ is_open?: boolean;
9558
+ is_terminal?: boolean;
9559
+ name: string;
9560
+ sort_order?: number;
8653
9561
  updated_at?: string;
8654
- value?: string | null;
8655
9562
  };
8656
9563
  Update: {
9564
+ active?: boolean;
9565
+ code?: string;
9566
+ color?: string | null;
8657
9567
  created_at?: string;
8658
9568
  id?: string;
8659
- key?: string;
9569
+ is_open?: boolean;
9570
+ is_terminal?: boolean;
9571
+ name?: string;
9572
+ sort_order?: number;
8660
9573
  updated_at?: string;
8661
- value?: string | null;
8662
9574
  };
8663
9575
  Relationships: [];
8664
9576
  };
8665
- pipeline_stages: {
9577
+ pick_document_types: {
8666
9578
  Row: {
8667
- automation_type: string;
8668
- color: string;
9579
+ active: boolean;
9580
+ code: string;
9581
+ color: string | null;
8669
9582
  created_at: string;
9583
+ description: string | null;
9584
+ icon: string | null;
8670
9585
  id: string;
8671
- is_active: boolean;
8672
9586
  name: string;
9587
+ print_template: string | null;
9588
+ printer_id: string | null;
9589
+ priority: number;
9590
+ report_key: string | null;
8673
9591
  sort_order: number;
8674
9592
  updated_at: string;
9593
+ workflow: import("../integrations/supabase/types").Json;
8675
9594
  };
8676
9595
  Insert: {
8677
- automation_type?: string;
8678
- color?: string;
9596
+ active?: boolean;
9597
+ code: string;
9598
+ color?: string | null;
8679
9599
  created_at?: string;
9600
+ description?: string | null;
9601
+ icon?: string | null;
8680
9602
  id?: string;
8681
- is_active?: boolean;
8682
9603
  name: string;
9604
+ print_template?: string | null;
9605
+ printer_id?: string | null;
9606
+ priority?: number;
9607
+ report_key?: string | null;
8683
9608
  sort_order?: number;
8684
9609
  updated_at?: string;
9610
+ workflow?: import("../integrations/supabase/types").Json;
8685
9611
  };
8686
9612
  Update: {
8687
- automation_type?: string;
8688
- color?: string;
9613
+ active?: boolean;
9614
+ code?: string;
9615
+ color?: string | null;
8689
9616
  created_at?: string;
9617
+ description?: string | null;
9618
+ icon?: string | null;
8690
9619
  id?: string;
8691
- is_active?: boolean;
8692
9620
  name?: string;
9621
+ print_template?: string | null;
9622
+ printer_id?: string | null;
9623
+ priority?: number;
9624
+ report_key?: string | null;
8693
9625
  sort_order?: number;
8694
9626
  updated_at?: string;
9627
+ workflow?: import("../integrations/supabase/types").Json;
8695
9628
  };
8696
- Relationships: [];
9629
+ Relationships: [{
9630
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9631
+ columns: ["printer_id"];
9632
+ isOneToOne: false;
9633
+ referencedRelation: "pick_station_printers";
9634
+ referencedColumns: ["id"];
9635
+ }];
9636
+ };
9637
+ pick_queue: {
9638
+ Row: {
9639
+ announced_at: string;
9640
+ assigned_user_id: string | null;
9641
+ barcode: string | null;
9642
+ cancelled_at: string | null;
9643
+ cart_count: number;
9644
+ completed_at: string | null;
9645
+ country_code: string | null;
9646
+ created_at: string;
9647
+ customer_name: string | null;
9648
+ delivery_address: string | null;
9649
+ document_number: string | null;
9650
+ document_type_id: string | null;
9651
+ due_at: string | null;
9652
+ id: string;
9653
+ is_urgent: boolean;
9654
+ line_count: number;
9655
+ order_number: string | null;
9656
+ order_type: string | null;
9657
+ payload: import("../integrations/supabase/types").Json;
9658
+ print_count: number;
9659
+ printed_at: string | null;
9660
+ printed_by: string | null;
9661
+ printer_id: string | null;
9662
+ priority: number;
9663
+ reference: string | null;
9664
+ route: string | null;
9665
+ screen_id: string | null;
9666
+ station_id: string | null;
9667
+ status_id: string | null;
9668
+ updated_at: string;
9669
+ warnings: import("../integrations/supabase/types").Json;
9670
+ };
9671
+ Insert: {
9672
+ announced_at?: string;
9673
+ assigned_user_id?: string | null;
9674
+ barcode?: string | null;
9675
+ cancelled_at?: string | null;
9676
+ cart_count?: number;
9677
+ completed_at?: string | null;
9678
+ country_code?: string | null;
9679
+ created_at?: string;
9680
+ customer_name?: string | null;
9681
+ delivery_address?: string | null;
9682
+ document_number?: string | null;
9683
+ document_type_id?: string | null;
9684
+ due_at?: string | null;
9685
+ id?: string;
9686
+ is_urgent?: boolean;
9687
+ line_count?: number;
9688
+ order_number?: string | null;
9689
+ order_type?: string | null;
9690
+ payload?: import("../integrations/supabase/types").Json;
9691
+ print_count?: number;
9692
+ printed_at?: string | null;
9693
+ printed_by?: string | null;
9694
+ printer_id?: string | null;
9695
+ priority?: number;
9696
+ reference?: string | null;
9697
+ route?: string | null;
9698
+ screen_id?: string | null;
9699
+ station_id?: string | null;
9700
+ status_id?: string | null;
9701
+ updated_at?: string;
9702
+ warnings?: import("../integrations/supabase/types").Json;
9703
+ };
9704
+ Update: {
9705
+ announced_at?: string;
9706
+ assigned_user_id?: string | null;
9707
+ barcode?: string | null;
9708
+ cancelled_at?: string | null;
9709
+ cart_count?: number;
9710
+ completed_at?: string | null;
9711
+ country_code?: string | null;
9712
+ created_at?: string;
9713
+ customer_name?: string | null;
9714
+ delivery_address?: string | null;
9715
+ document_number?: string | null;
9716
+ document_type_id?: string | null;
9717
+ due_at?: string | null;
9718
+ id?: string;
9719
+ is_urgent?: boolean;
9720
+ line_count?: number;
9721
+ order_number?: string | null;
9722
+ order_type?: string | null;
9723
+ payload?: import("../integrations/supabase/types").Json;
9724
+ print_count?: number;
9725
+ printed_at?: string | null;
9726
+ printed_by?: string | null;
9727
+ printer_id?: string | null;
9728
+ priority?: number;
9729
+ reference?: string | null;
9730
+ route?: string | null;
9731
+ screen_id?: string | null;
9732
+ station_id?: string | null;
9733
+ status_id?: string | null;
9734
+ updated_at?: string;
9735
+ warnings?: import("../integrations/supabase/types").Json;
9736
+ };
9737
+ Relationships: [{
9738
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9739
+ columns: ["document_type_id"];
9740
+ isOneToOne: false;
9741
+ referencedRelation: "pick_document_types";
9742
+ referencedColumns: ["id"];
9743
+ }, {
9744
+ foreignKeyName: "pick_queue_printer_id_fkey";
9745
+ columns: ["printer_id"];
9746
+ isOneToOne: false;
9747
+ referencedRelation: "pick_station_printers";
9748
+ referencedColumns: ["id"];
9749
+ }, {
9750
+ foreignKeyName: "pick_queue_screen_id_fkey";
9751
+ columns: ["screen_id"];
9752
+ isOneToOne: false;
9753
+ referencedRelation: "pick_station_screens";
9754
+ referencedColumns: ["id"];
9755
+ }, {
9756
+ foreignKeyName: "pick_queue_station_id_fkey";
9757
+ columns: ["station_id"];
9758
+ isOneToOne: false;
9759
+ referencedRelation: "pick_stations";
9760
+ referencedColumns: ["id"];
9761
+ }, {
9762
+ foreignKeyName: "pick_queue_status_id_fkey";
9763
+ columns: ["status_id"];
9764
+ isOneToOne: false;
9765
+ referencedRelation: "pick_document_statuses";
9766
+ referencedColumns: ["id"];
9767
+ }];
9768
+ };
9769
+ pick_queue_locks: {
9770
+ Row: {
9771
+ expires_at: string;
9772
+ id: string;
9773
+ locked_at: string;
9774
+ locked_by: string | null;
9775
+ queue_item_id: string;
9776
+ screen_id: string | null;
9777
+ session_id: string | null;
9778
+ station_id: string | null;
9779
+ };
9780
+ Insert: {
9781
+ expires_at?: string;
9782
+ id?: string;
9783
+ locked_at?: string;
9784
+ locked_by?: string | null;
9785
+ queue_item_id: string;
9786
+ screen_id?: string | null;
9787
+ session_id?: string | null;
9788
+ station_id?: string | null;
9789
+ };
9790
+ Update: {
9791
+ expires_at?: string;
9792
+ id?: string;
9793
+ locked_at?: string;
9794
+ locked_by?: string | null;
9795
+ queue_item_id?: string;
9796
+ screen_id?: string | null;
9797
+ session_id?: string | null;
9798
+ station_id?: string | null;
9799
+ };
9800
+ Relationships: [{
9801
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9802
+ columns: ["queue_item_id"];
9803
+ isOneToOne: true;
9804
+ referencedRelation: "pick_queue";
9805
+ referencedColumns: ["id"];
9806
+ }, {
9807
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9808
+ columns: ["screen_id"];
9809
+ isOneToOne: false;
9810
+ referencedRelation: "pick_station_screens";
9811
+ referencedColumns: ["id"];
9812
+ }, {
9813
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9814
+ columns: ["station_id"];
9815
+ isOneToOne: false;
9816
+ referencedRelation: "pick_stations";
9817
+ referencedColumns: ["id"];
9818
+ }];
9819
+ };
9820
+ pick_screen_document_types: {
9821
+ Row: {
9822
+ created_at: string;
9823
+ document_type_id: string;
9824
+ id: string;
9825
+ print_order: number;
9826
+ printer_id: string | null;
9827
+ screen_id: string;
9828
+ };
9829
+ Insert: {
9830
+ created_at?: string;
9831
+ document_type_id: string;
9832
+ id?: string;
9833
+ print_order?: number;
9834
+ printer_id?: string | null;
9835
+ screen_id: string;
9836
+ };
9837
+ Update: {
9838
+ created_at?: string;
9839
+ document_type_id?: string;
9840
+ id?: string;
9841
+ print_order?: number;
9842
+ printer_id?: string | null;
9843
+ screen_id?: string;
9844
+ };
9845
+ Relationships: [{
9846
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9847
+ columns: ["document_type_id"];
9848
+ isOneToOne: false;
9849
+ referencedRelation: "pick_document_types";
9850
+ referencedColumns: ["id"];
9851
+ }, {
9852
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9853
+ columns: ["printer_id"];
9854
+ isOneToOne: false;
9855
+ referencedRelation: "pick_station_printers";
9856
+ referencedColumns: ["id"];
9857
+ }, {
9858
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9859
+ columns: ["screen_id"];
9860
+ isOneToOne: false;
9861
+ referencedRelation: "pick_station_screens";
9862
+ referencedColumns: ["id"];
9863
+ }];
9864
+ };
9865
+ pick_station_heartbeats: {
9866
+ Row: {
9867
+ browser: string | null;
9868
+ created_at: string;
9869
+ id: string;
9870
+ ip_address: string | null;
9871
+ last_seen_at: string;
9872
+ screen_id: string | null;
9873
+ session_id: string;
9874
+ station_id: string;
9875
+ user_id: string | null;
9876
+ };
9877
+ Insert: {
9878
+ browser?: string | null;
9879
+ created_at?: string;
9880
+ id?: string;
9881
+ ip_address?: string | null;
9882
+ last_seen_at?: string;
9883
+ screen_id?: string | null;
9884
+ session_id: string;
9885
+ station_id: string;
9886
+ user_id?: string | null;
9887
+ };
9888
+ Update: {
9889
+ browser?: string | null;
9890
+ created_at?: string;
9891
+ id?: string;
9892
+ ip_address?: string | null;
9893
+ last_seen_at?: string;
9894
+ screen_id?: string | null;
9895
+ session_id?: string;
9896
+ station_id?: string;
9897
+ user_id?: string | null;
9898
+ };
9899
+ Relationships: [{
9900
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9901
+ columns: ["screen_id"];
9902
+ isOneToOne: false;
9903
+ referencedRelation: "pick_station_screens";
9904
+ referencedColumns: ["id"];
9905
+ }, {
9906
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9907
+ columns: ["station_id"];
9908
+ isOneToOne: false;
9909
+ referencedRelation: "pick_stations";
9910
+ referencedColumns: ["id"];
9911
+ }];
9912
+ };
9913
+ pick_station_history: {
9914
+ Row: {
9915
+ action: string;
9916
+ changed_by: string | null;
9917
+ created_at: string;
9918
+ entity_id: string;
9919
+ entity_table: string;
9920
+ id: string;
9921
+ new_data: import("../integrations/supabase/types").Json | null;
9922
+ old_data: import("../integrations/supabase/types").Json | null;
9923
+ };
9924
+ Insert: {
9925
+ action: string;
9926
+ changed_by?: string | null;
9927
+ created_at?: string;
9928
+ entity_id: string;
9929
+ entity_table: string;
9930
+ id?: string;
9931
+ new_data?: import("../integrations/supabase/types").Json | null;
9932
+ old_data?: import("../integrations/supabase/types").Json | null;
9933
+ };
9934
+ Update: {
9935
+ action?: string;
9936
+ changed_by?: string | null;
9937
+ created_at?: string;
9938
+ entity_id?: string;
9939
+ entity_table?: string;
9940
+ id?: string;
9941
+ new_data?: import("../integrations/supabase/types").Json | null;
9942
+ old_data?: import("../integrations/supabase/types").Json | null;
9943
+ };
9944
+ Relationships: [];
9945
+ };
9946
+ pick_station_logs: {
9947
+ Row: {
9948
+ action: string;
9949
+ browser: string | null;
9950
+ created_at: string;
9951
+ detail: import("../integrations/supabase/types").Json;
9952
+ duration_ms: number | null;
9953
+ id: string;
9954
+ ip_address: string | null;
9955
+ printer_id: string | null;
9956
+ queue_item_id: string | null;
9957
+ screen_id: string | null;
9958
+ session_id: string | null;
9959
+ station_id: string | null;
9960
+ user_id: string | null;
9961
+ };
9962
+ Insert: {
9963
+ action: string;
9964
+ browser?: string | null;
9965
+ created_at?: string;
9966
+ detail?: import("../integrations/supabase/types").Json;
9967
+ duration_ms?: number | null;
9968
+ id?: string;
9969
+ ip_address?: string | null;
9970
+ printer_id?: string | null;
9971
+ queue_item_id?: string | null;
9972
+ screen_id?: string | null;
9973
+ session_id?: string | null;
9974
+ station_id?: string | null;
9975
+ user_id?: string | null;
9976
+ };
9977
+ Update: {
9978
+ action?: string;
9979
+ browser?: string | null;
9980
+ created_at?: string;
9981
+ detail?: import("../integrations/supabase/types").Json;
9982
+ duration_ms?: number | null;
9983
+ id?: string;
9984
+ ip_address?: string | null;
9985
+ printer_id?: string | null;
9986
+ queue_item_id?: string | null;
9987
+ screen_id?: string | null;
9988
+ session_id?: string | null;
9989
+ station_id?: string | null;
9990
+ user_id?: string | null;
9991
+ };
9992
+ Relationships: [];
9993
+ };
9994
+ pick_station_permissions: {
9995
+ Row: {
9996
+ can_break_lock: boolean;
9997
+ can_cancel: boolean;
9998
+ can_print: boolean;
9999
+ can_reprint: boolean;
10000
+ country_code: string | null;
10001
+ created_at: string;
10002
+ id: string;
10003
+ station_id: string | null;
10004
+ task_id: string | null;
10005
+ updated_at: string;
10006
+ urgent_only: boolean;
10007
+ user_id: string;
10008
+ };
10009
+ Insert: {
10010
+ can_break_lock?: boolean;
10011
+ can_cancel?: boolean;
10012
+ can_print?: boolean;
10013
+ can_reprint?: boolean;
10014
+ country_code?: string | null;
10015
+ created_at?: string;
10016
+ id?: string;
10017
+ station_id?: string | null;
10018
+ task_id?: string | null;
10019
+ updated_at?: string;
10020
+ urgent_only?: boolean;
10021
+ user_id: string;
10022
+ };
10023
+ Update: {
10024
+ can_break_lock?: boolean;
10025
+ can_cancel?: boolean;
10026
+ can_print?: boolean;
10027
+ can_reprint?: boolean;
10028
+ country_code?: string | null;
10029
+ created_at?: string;
10030
+ id?: string;
10031
+ station_id?: string | null;
10032
+ task_id?: string | null;
10033
+ updated_at?: string;
10034
+ urgent_only?: boolean;
10035
+ user_id?: string;
10036
+ };
10037
+ Relationships: [{
10038
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
10039
+ columns: ["station_id"];
10040
+ isOneToOne: false;
10041
+ referencedRelation: "pick_stations";
10042
+ referencedColumns: ["id"];
10043
+ }, {
10044
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
10045
+ columns: ["task_id"];
10046
+ isOneToOne: false;
10047
+ referencedRelation: "pick_station_tasks";
10048
+ referencedColumns: ["id"];
10049
+ }];
10050
+ };
10051
+ pick_station_printers: {
10052
+ Row: {
10053
+ active: boolean;
10054
+ code: string | null;
10055
+ config: import("../integrations/supabase/types").Json;
10056
+ connection: string | null;
10057
+ created_at: string;
10058
+ id: string;
10059
+ last_seen_at: string | null;
10060
+ location: string | null;
10061
+ name: string;
10062
+ status: string;
10063
+ status_message: string | null;
10064
+ target: string | null;
10065
+ updated_at: string;
10066
+ };
10067
+ Insert: {
10068
+ active?: boolean;
10069
+ code?: string | null;
10070
+ config?: import("../integrations/supabase/types").Json;
10071
+ connection?: string | null;
10072
+ created_at?: string;
10073
+ id?: string;
10074
+ last_seen_at?: string | null;
10075
+ location?: string | null;
10076
+ name: string;
10077
+ status?: string;
10078
+ status_message?: string | null;
10079
+ target?: string | null;
10080
+ updated_at?: string;
10081
+ };
10082
+ Update: {
10083
+ active?: boolean;
10084
+ code?: string | null;
10085
+ config?: import("../integrations/supabase/types").Json;
10086
+ connection?: string | null;
10087
+ created_at?: string;
10088
+ id?: string;
10089
+ last_seen_at?: string | null;
10090
+ location?: string | null;
10091
+ name?: string;
10092
+ status?: string;
10093
+ status_message?: string | null;
10094
+ target?: string | null;
10095
+ updated_at?: string;
10096
+ };
10097
+ Relationships: [];
10098
+ };
10099
+ pick_station_screens: {
10100
+ Row: {
10101
+ active: boolean;
10102
+ config: import("../integrations/supabase/types").Json;
10103
+ created_at: string;
10104
+ description: string | null;
10105
+ filters: import("../integrations/supabase/types").Json;
10106
+ id: string;
10107
+ name: string;
10108
+ printer_id: string | null;
10109
+ screen_type: string;
10110
+ sort_order: number;
10111
+ sort_rules: import("../integrations/supabase/types").Json | null;
10112
+ station_id: string;
10113
+ updated_at: string;
10114
+ };
10115
+ Insert: {
10116
+ active?: boolean;
10117
+ config?: import("../integrations/supabase/types").Json;
10118
+ created_at?: string;
10119
+ description?: string | null;
10120
+ filters?: import("../integrations/supabase/types").Json;
10121
+ id?: string;
10122
+ name: string;
10123
+ printer_id?: string | null;
10124
+ screen_type?: string;
10125
+ sort_order?: number;
10126
+ sort_rules?: import("../integrations/supabase/types").Json | null;
10127
+ station_id: string;
10128
+ updated_at?: string;
10129
+ };
10130
+ Update: {
10131
+ active?: boolean;
10132
+ config?: import("../integrations/supabase/types").Json;
10133
+ created_at?: string;
10134
+ description?: string | null;
10135
+ filters?: import("../integrations/supabase/types").Json;
10136
+ id?: string;
10137
+ name?: string;
10138
+ printer_id?: string | null;
10139
+ screen_type?: string;
10140
+ sort_order?: number;
10141
+ sort_rules?: import("../integrations/supabase/types").Json | null;
10142
+ station_id?: string;
10143
+ updated_at?: string;
10144
+ };
10145
+ Relationships: [{
10146
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
10147
+ columns: ["printer_id"];
10148
+ isOneToOne: false;
10149
+ referencedRelation: "pick_station_printers";
10150
+ referencedColumns: ["id"];
10151
+ }, {
10152
+ foreignKeyName: "pick_station_screens_station_id_fkey";
10153
+ columns: ["station_id"];
10154
+ isOneToOne: false;
10155
+ referencedRelation: "pick_stations";
10156
+ referencedColumns: ["id"];
10157
+ }];
10158
+ };
10159
+ pick_station_tasks: {
10160
+ Row: {
10161
+ active: boolean;
10162
+ code: string;
10163
+ color: string | null;
10164
+ created_at: string;
10165
+ description: string | null;
10166
+ icon: string | null;
10167
+ id: string;
10168
+ name: string;
10169
+ sort_order: number;
10170
+ updated_at: string;
10171
+ workflow: import("../integrations/supabase/types").Json;
10172
+ };
10173
+ Insert: {
10174
+ active?: boolean;
10175
+ code: string;
10176
+ color?: string | null;
10177
+ created_at?: string;
10178
+ description?: string | null;
10179
+ icon?: string | null;
10180
+ id?: string;
10181
+ name: string;
10182
+ sort_order?: number;
10183
+ updated_at?: string;
10184
+ workflow?: import("../integrations/supabase/types").Json;
10185
+ };
10186
+ Update: {
10187
+ active?: boolean;
10188
+ code?: string;
10189
+ color?: string | null;
10190
+ created_at?: string;
10191
+ description?: string | null;
10192
+ icon?: string | null;
10193
+ id?: string;
10194
+ name?: string;
10195
+ sort_order?: number;
10196
+ updated_at?: string;
10197
+ workflow?: import("../integrations/supabase/types").Json;
10198
+ };
10199
+ Relationships: [];
10200
+ };
10201
+ pick_station_types: {
10202
+ Row: {
10203
+ active: boolean;
10204
+ code: string;
10205
+ color: string | null;
10206
+ created_at: string;
10207
+ description: string | null;
10208
+ icon: string | null;
10209
+ id: string;
10210
+ name: string;
10211
+ sort_order: number;
10212
+ updated_at: string;
10213
+ };
10214
+ Insert: {
10215
+ active?: boolean;
10216
+ code: string;
10217
+ color?: string | null;
10218
+ created_at?: string;
10219
+ description?: string | null;
10220
+ icon?: string | null;
10221
+ id?: string;
10222
+ name: string;
10223
+ sort_order?: number;
10224
+ updated_at?: string;
10225
+ };
10226
+ Update: {
10227
+ active?: boolean;
10228
+ code?: string;
10229
+ color?: string | null;
10230
+ created_at?: string;
10231
+ description?: string | null;
10232
+ icon?: string | null;
10233
+ id?: string;
10234
+ name?: string;
10235
+ sort_order?: number;
10236
+ updated_at?: string;
10237
+ };
10238
+ Relationships: [];
10239
+ };
10240
+ pick_station_users: {
10241
+ Row: {
10242
+ active: boolean;
10243
+ created_at: string;
10244
+ id: string;
10245
+ station_id: string;
10246
+ user_id: string;
10247
+ };
10248
+ Insert: {
10249
+ active?: boolean;
10250
+ created_at?: string;
10251
+ id?: string;
10252
+ station_id: string;
10253
+ user_id: string;
10254
+ };
10255
+ Update: {
10256
+ active?: boolean;
10257
+ created_at?: string;
10258
+ id?: string;
10259
+ station_id?: string;
10260
+ user_id?: string;
10261
+ };
10262
+ Relationships: [{
10263
+ foreignKeyName: "pick_station_users_station_id_fkey";
10264
+ columns: ["station_id"];
10265
+ isOneToOne: false;
10266
+ referencedRelation: "pick_stations";
10267
+ referencedColumns: ["id"];
10268
+ }];
10269
+ };
10270
+ pick_stations: {
10271
+ Row: {
10272
+ active: boolean;
10273
+ allow_multi_screen: boolean;
10274
+ color: string | null;
10275
+ created_at: string;
10276
+ default_printer_id: string | null;
10277
+ department: string | null;
10278
+ description: string | null;
10279
+ icon: string | null;
10280
+ id: string;
10281
+ location: string | null;
10282
+ lock_timeout_seconds: number;
10283
+ name: string;
10284
+ require_country_selection: boolean;
10285
+ sort_order: number;
10286
+ sort_rules: import("../integrations/supabase/types").Json;
10287
+ task_id: string | null;
10288
+ type_id: string | null;
10289
+ updated_at: string;
10290
+ };
10291
+ Insert: {
10292
+ active?: boolean;
10293
+ allow_multi_screen?: boolean;
10294
+ color?: string | null;
10295
+ created_at?: string;
10296
+ default_printer_id?: string | null;
10297
+ department?: string | null;
10298
+ description?: string | null;
10299
+ icon?: string | null;
10300
+ id?: string;
10301
+ location?: string | null;
10302
+ lock_timeout_seconds?: number;
10303
+ name: string;
10304
+ require_country_selection?: boolean;
10305
+ sort_order?: number;
10306
+ sort_rules?: import("../integrations/supabase/types").Json;
10307
+ task_id?: string | null;
10308
+ type_id?: string | null;
10309
+ updated_at?: string;
10310
+ };
10311
+ Update: {
10312
+ active?: boolean;
10313
+ allow_multi_screen?: boolean;
10314
+ color?: string | null;
10315
+ created_at?: string;
10316
+ default_printer_id?: string | null;
10317
+ department?: string | null;
10318
+ description?: string | null;
10319
+ icon?: string | null;
10320
+ id?: string;
10321
+ location?: string | null;
10322
+ lock_timeout_seconds?: number;
10323
+ name?: string;
10324
+ require_country_selection?: boolean;
10325
+ sort_order?: number;
10326
+ sort_rules?: import("../integrations/supabase/types").Json;
10327
+ task_id?: string | null;
10328
+ type_id?: string | null;
10329
+ updated_at?: string;
10330
+ };
10331
+ Relationships: [{
10332
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10333
+ columns: ["default_printer_id"];
10334
+ isOneToOne: false;
10335
+ referencedRelation: "pick_station_printers";
10336
+ referencedColumns: ["id"];
10337
+ }, {
10338
+ foreignKeyName: "pick_stations_task_id_fkey";
10339
+ columns: ["task_id"];
10340
+ isOneToOne: false;
10341
+ referencedRelation: "pick_station_tasks";
10342
+ referencedColumns: ["id"];
10343
+ }, {
10344
+ foreignKeyName: "pick_stations_type_id_fkey";
10345
+ columns: ["type_id"];
10346
+ isOneToOne: false;
10347
+ referencedRelation: "pick_station_types";
10348
+ referencedColumns: ["id"];
10349
+ }];
10350
+ };
10351
+ pick_task_document_types: {
10352
+ Row: {
10353
+ created_at: string;
10354
+ document_type_id: string;
10355
+ id: string;
10356
+ task_id: string;
10357
+ };
10358
+ Insert: {
10359
+ created_at?: string;
10360
+ document_type_id: string;
10361
+ id?: string;
10362
+ task_id: string;
10363
+ };
10364
+ Update: {
10365
+ created_at?: string;
10366
+ document_type_id?: string;
10367
+ id?: string;
10368
+ task_id?: string;
10369
+ };
10370
+ Relationships: [{
10371
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10372
+ columns: ["document_type_id"];
10373
+ isOneToOne: false;
10374
+ referencedRelation: "pick_document_types";
10375
+ referencedColumns: ["id"];
10376
+ }, {
10377
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10378
+ columns: ["task_id"];
10379
+ isOneToOne: false;
10380
+ referencedRelation: "pick_station_tasks";
10381
+ referencedColumns: ["id"];
10382
+ }];
10383
+ };
10384
+ pickstation_print_log: {
10385
+ Row: {
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
+ Insert: {
10395
+ customer_name?: string | null;
10396
+ documents?: string[];
10397
+ id?: string;
10398
+ ip_address?: string | null;
10399
+ order_id: string;
10400
+ order_number?: string | null;
10401
+ printed_at?: string;
10402
+ };
10403
+ Update: {
10404
+ customer_name?: string | null;
10405
+ documents?: string[];
10406
+ id?: string;
10407
+ ip_address?: string | null;
10408
+ order_id?: string;
10409
+ order_number?: string | null;
10410
+ printed_at?: string;
10411
+ };
10412
+ Relationships: [];
10413
+ };
10414
+ pipeline_settings: {
10415
+ Row: {
10416
+ created_at: string;
10417
+ id: string;
10418
+ key: string;
10419
+ updated_at: string;
10420
+ value: string | null;
10421
+ };
10422
+ Insert: {
10423
+ created_at?: string;
10424
+ id?: string;
10425
+ key: string;
10426
+ updated_at?: string;
10427
+ value?: string | null;
10428
+ };
10429
+ Update: {
10430
+ created_at?: string;
10431
+ id?: string;
10432
+ key?: string;
10433
+ updated_at?: string;
10434
+ value?: string | null;
10435
+ };
10436
+ Relationships: [];
10437
+ };
10438
+ pipeline_stages: {
10439
+ Row: {
10440
+ automation_type: string;
10441
+ color: string;
10442
+ created_at: string;
10443
+ id: string;
10444
+ is_active: boolean;
10445
+ name: string;
10446
+ sort_order: number;
10447
+ updated_at: string;
10448
+ };
10449
+ Insert: {
10450
+ automation_type?: string;
10451
+ color?: string;
10452
+ created_at?: string;
10453
+ id?: string;
10454
+ is_active?: boolean;
10455
+ name: string;
10456
+ sort_order?: number;
10457
+ updated_at?: string;
10458
+ };
10459
+ Update: {
10460
+ automation_type?: string;
10461
+ color?: string;
10462
+ created_at?: string;
10463
+ id?: string;
10464
+ is_active?: boolean;
10465
+ name?: string;
10466
+ sort_order?: number;
10467
+ updated_at?: string;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10471
+ planning_item_assistants: {
10472
+ Row: {
10473
+ created_at: string;
10474
+ created_by: string | null;
10475
+ monteur_id: string;
10476
+ planning_item_id: string;
10477
+ };
10478
+ Insert: {
10479
+ created_at?: string;
10480
+ created_by?: string | null;
10481
+ monteur_id: string;
10482
+ planning_item_id: string;
10483
+ };
10484
+ Update: {
10485
+ created_at?: string;
10486
+ created_by?: string | null;
10487
+ monteur_id?: string;
10488
+ planning_item_id?: string;
10489
+ };
10490
+ Relationships: [{
10491
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
10492
+ columns: ["planning_item_id"];
10493
+ isOneToOne: false;
10494
+ referencedRelation: "planning_items";
10495
+ referencedColumns: ["id"];
10496
+ }];
10497
+ };
10498
+ planning_items: {
10499
+ Row: {
10500
+ assigned_monteur_id: string;
10501
+ created_at: string;
10502
+ created_by: string | null;
10503
+ end_at: string;
10504
+ id: string;
10505
+ notes: string | null;
10506
+ start_at: string;
10507
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10508
+ updated_at: string;
10509
+ werkbon_id: string;
10510
+ };
10511
+ Insert: {
10512
+ assigned_monteur_id: string;
10513
+ created_at?: string;
10514
+ created_by?: string | null;
10515
+ end_at: string;
10516
+ id?: string;
10517
+ notes?: string | null;
10518
+ start_at: string;
10519
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10520
+ updated_at?: string;
10521
+ werkbon_id: string;
10522
+ };
10523
+ Update: {
10524
+ assigned_monteur_id?: string;
10525
+ created_at?: string;
10526
+ created_by?: string | null;
10527
+ end_at?: string;
10528
+ id?: string;
10529
+ notes?: string | null;
10530
+ start_at?: string;
10531
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10532
+ updated_at?: string;
10533
+ werkbon_id?: string;
10534
+ };
10535
+ Relationships: [{
10536
+ foreignKeyName: "planning_items_werkbon_id_fkey";
10537
+ columns: ["werkbon_id"];
10538
+ isOneToOne: false;
10539
+ referencedRelation: "werkbonnen";
10540
+ referencedColumns: ["id"];
10541
+ }];
10542
+ };
10543
+ print_job_logs: {
10544
+ Row: {
10545
+ created_at: string;
10546
+ detail: string;
10547
+ gebeurtenis: string;
10548
+ id: string;
10549
+ job_id: string;
10550
+ };
10551
+ Insert: {
10552
+ created_at?: string;
10553
+ detail?: string;
10554
+ gebeurtenis: string;
10555
+ id?: string;
10556
+ job_id: string;
10557
+ };
10558
+ Update: {
10559
+ created_at?: string;
10560
+ detail?: string;
10561
+ gebeurtenis?: string;
10562
+ id?: string;
10563
+ job_id?: string;
10564
+ };
10565
+ Relationships: [{
10566
+ foreignKeyName: "print_job_logs_job_id_fkey";
10567
+ columns: ["job_id"];
10568
+ isOneToOne: false;
10569
+ referencedRelation: "print_jobs";
10570
+ referencedColumns: ["id"];
10571
+ }];
10572
+ };
10573
+ print_jobs: {
10574
+ Row: {
10575
+ bron_job_id: string | null;
10576
+ created_at: string;
10577
+ documentnaam: string;
10578
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10579
+ foutmelding: string | null;
10580
+ gebruiker_id: string | null;
10581
+ gebruiker_naam: string;
10582
+ gestart_op: string | null;
10583
+ id: string;
10584
+ is_herprint: boolean;
10585
+ kopieen: number;
10586
+ layout_id: string | null;
10587
+ paginas: number;
10588
+ payload: import("../integrations/supabase/types").Json;
10589
+ printer_id: string | null;
10590
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10591
+ updated_at: string;
10592
+ voltooid_op: string | null;
10593
+ };
10594
+ Insert: {
10595
+ bron_job_id?: string | null;
10596
+ created_at?: string;
10597
+ documentnaam?: string;
10598
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10599
+ foutmelding?: string | null;
10600
+ gebruiker_id?: string | null;
10601
+ gebruiker_naam?: string;
10602
+ gestart_op?: string | null;
10603
+ id?: string;
10604
+ is_herprint?: boolean;
10605
+ kopieen?: number;
10606
+ layout_id?: string | null;
10607
+ paginas?: number;
10608
+ payload?: import("../integrations/supabase/types").Json;
10609
+ printer_id?: string | null;
10610
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10611
+ updated_at?: string;
10612
+ voltooid_op?: string | null;
10613
+ };
10614
+ Update: {
10615
+ bron_job_id?: string | null;
10616
+ created_at?: string;
10617
+ documentnaam?: string;
10618
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10619
+ foutmelding?: string | null;
10620
+ gebruiker_id?: string | null;
10621
+ gebruiker_naam?: string;
10622
+ gestart_op?: string | null;
10623
+ id?: string;
10624
+ is_herprint?: boolean;
10625
+ kopieen?: number;
10626
+ layout_id?: string | null;
10627
+ paginas?: number;
10628
+ payload?: import("../integrations/supabase/types").Json;
10629
+ printer_id?: string | null;
10630
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10631
+ updated_at?: string;
10632
+ voltooid_op?: string | null;
10633
+ };
10634
+ Relationships: [{
10635
+ foreignKeyName: "print_jobs_layout_id_fkey";
10636
+ columns: ["layout_id"];
10637
+ isOneToOne: false;
10638
+ referencedRelation: "document_layouts";
10639
+ referencedColumns: ["id"];
10640
+ }, {
10641
+ foreignKeyName: "print_jobs_printer_id_fkey";
10642
+ columns: ["printer_id"];
10643
+ isOneToOne: false;
10644
+ referencedRelation: "printers";
10645
+ referencedColumns: ["id"];
10646
+ }];
10647
+ };
10648
+ print_rules: {
10649
+ Row: {
10650
+ actief: boolean;
10651
+ alleen_eerste_keer: boolean;
10652
+ conditie: import("../integrations/supabase/types").Json;
10653
+ created_at: string;
10654
+ id: string;
10655
+ kopieen: number;
10656
+ layout_id: string;
10657
+ naam: string;
10658
+ printer_id: string | null;
10659
+ updated_at: string;
10660
+ volgorde: number;
10661
+ };
10662
+ Insert: {
10663
+ actief?: boolean;
10664
+ alleen_eerste_keer?: boolean;
10665
+ conditie?: import("../integrations/supabase/types").Json;
10666
+ created_at?: string;
10667
+ id?: string;
10668
+ kopieen?: number;
10669
+ layout_id: string;
10670
+ naam?: string;
10671
+ printer_id?: string | null;
10672
+ updated_at?: string;
10673
+ volgorde?: number;
10674
+ };
10675
+ Update: {
10676
+ actief?: boolean;
10677
+ alleen_eerste_keer?: boolean;
10678
+ conditie?: import("../integrations/supabase/types").Json;
10679
+ created_at?: string;
10680
+ id?: string;
10681
+ kopieen?: number;
10682
+ layout_id?: string;
10683
+ naam?: string;
10684
+ printer_id?: string | null;
10685
+ updated_at?: string;
10686
+ volgorde?: number;
10687
+ };
10688
+ Relationships: [{
10689
+ foreignKeyName: "print_rules_layout_id_fkey";
10690
+ columns: ["layout_id"];
10691
+ isOneToOne: false;
10692
+ referencedRelation: "document_layouts";
10693
+ referencedColumns: ["id"];
10694
+ }, {
10695
+ foreignKeyName: "print_rules_printer_id_fkey";
10696
+ columns: ["printer_id"];
10697
+ isOneToOne: false;
10698
+ referencedRelation: "printers";
10699
+ referencedColumns: ["id"];
10700
+ }];
10701
+ };
10702
+ printer_mappings: {
10703
+ Row: {
10704
+ created_at: string;
10705
+ id: string;
10706
+ layout_id: string;
10707
+ printer_id: string;
10708
+ prioriteit: number;
10709
+ updated_at: string;
10710
+ };
10711
+ Insert: {
10712
+ created_at?: string;
10713
+ id?: string;
10714
+ layout_id: string;
10715
+ printer_id: string;
10716
+ prioriteit?: number;
10717
+ updated_at?: string;
10718
+ };
10719
+ Update: {
10720
+ created_at?: string;
10721
+ id?: string;
10722
+ layout_id?: string;
10723
+ printer_id?: string;
10724
+ prioriteit?: number;
10725
+ updated_at?: string;
10726
+ };
10727
+ Relationships: [{
10728
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10729
+ columns: ["layout_id"];
10730
+ isOneToOne: false;
10731
+ referencedRelation: "document_layouts";
10732
+ referencedColumns: ["id"];
10733
+ }, {
10734
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10735
+ columns: ["printer_id"];
10736
+ isOneToOne: false;
10737
+ referencedRelation: "printers";
10738
+ referencedColumns: ["id"];
10739
+ }];
8697
10740
  };
8698
- planning_item_assistants: {
10741
+ printer_profiles: {
8699
10742
  Row: {
10743
+ auto_schalen: boolean;
8700
10744
  created_at: string;
8701
- created_by: string | null;
8702
- monteur_id: string;
8703
- planning_item_id: string;
10745
+ duplex: boolean;
10746
+ id: string;
10747
+ is_standaard: boolean;
10748
+ kleur: boolean;
10749
+ kopieen: number;
10750
+ label_gap: number;
10751
+ naam: string;
10752
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10753
+ papierlade: string;
10754
+ printer_id: string;
10755
+ resolutie: number;
10756
+ snijden: boolean;
10757
+ updated_at: string;
8704
10758
  };
8705
10759
  Insert: {
10760
+ auto_schalen?: boolean;
8706
10761
  created_at?: string;
8707
- created_by?: string | null;
8708
- monteur_id: string;
8709
- planning_item_id: string;
10762
+ duplex?: boolean;
10763
+ id?: string;
10764
+ is_standaard?: boolean;
10765
+ kleur?: boolean;
10766
+ kopieen?: number;
10767
+ label_gap?: number;
10768
+ naam?: string;
10769
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10770
+ papierlade?: string;
10771
+ printer_id: string;
10772
+ resolutie?: number;
10773
+ snijden?: boolean;
10774
+ updated_at?: string;
8710
10775
  };
8711
10776
  Update: {
10777
+ auto_schalen?: boolean;
8712
10778
  created_at?: string;
8713
- created_by?: string | null;
8714
- monteur_id?: string;
8715
- planning_item_id?: string;
10779
+ duplex?: boolean;
10780
+ id?: string;
10781
+ is_standaard?: boolean;
10782
+ kleur?: boolean;
10783
+ kopieen?: number;
10784
+ label_gap?: number;
10785
+ naam?: string;
10786
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10787
+ papierlade?: string;
10788
+ printer_id?: string;
10789
+ resolutie?: number;
10790
+ snijden?: boolean;
10791
+ updated_at?: string;
8716
10792
  };
8717
10793
  Relationships: [{
8718
- foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8719
- columns: ["planning_item_id"];
10794
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10795
+ columns: ["printer_id"];
8720
10796
  isOneToOne: false;
8721
- referencedRelation: "planning_items";
10797
+ referencedRelation: "printers";
8722
10798
  referencedColumns: ["id"];
8723
10799
  }];
8724
10800
  };
8725
- planning_items: {
10801
+ printers: {
8726
10802
  Row: {
8727
- assigned_monteur_id: string;
10803
+ actief: boolean;
8728
10804
  created_at: string;
8729
- created_by: string | null;
8730
- end_at: string;
10805
+ driver: string;
8731
10806
  id: string;
8732
- notes: string | null;
8733
- start_at: string;
8734
- 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"];
8735
10817
  updated_at: string;
8736
- werkbon_id: string;
10818
+ verbinding: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8737
10819
  };
8738
10820
  Insert: {
8739
- assigned_monteur_id: string;
10821
+ actief?: boolean;
8740
10822
  created_at?: string;
8741
- created_by?: string | null;
8742
- end_at: string;
10823
+ driver?: string;
8743
10824
  id?: string;
8744
- notes?: string | null;
8745
- start_at: string;
8746
- 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"];
8747
10835
  updated_at?: string;
8748
- werkbon_id: string;
10836
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8749
10837
  };
8750
10838
  Update: {
8751
- assigned_monteur_id?: string;
10839
+ actief?: boolean;
8752
10840
  created_at?: string;
8753
- created_by?: string | null;
8754
- end_at?: string;
10841
+ driver?: string;
8755
10842
  id?: string;
8756
- notes?: string | null;
8757
- start_at?: string;
8758
- status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
10843
+ ip_adres?: string | null;
10844
+ laatst_gezien?: string | null;
10845
+ locatie?: string;
10846
+ merk?: string;
10847
+ naam?: string;
10848
+ omschrijving?: string;
10849
+ online?: boolean;
10850
+ papierformaat?: string;
10851
+ poort?: number | null;
10852
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
8759
10853
  updated_at?: string;
8760
- werkbon_id?: string;
10854
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
8761
10855
  };
8762
- Relationships: [{
8763
- foreignKeyName: "planning_items_werkbon_id_fkey";
8764
- columns: ["werkbon_id"];
8765
- isOneToOne: false;
8766
- referencedRelation: "werkbonnen";
8767
- referencedColumns: ["id"];
8768
- }];
10856
+ Relationships: [];
8769
10857
  };
8770
10858
  product_bom_items: {
8771
10859
  Row: {
@@ -10643,7 +12731,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10643
12731
  is_active: boolean;
10644
12732
  label: string | null;
10645
12733
  office_code: string | null;
10646
- redirect_uri: string;
12734
+ redirect_uri: string | null;
10647
12735
  updated_at: string;
10648
12736
  user_id: string;
10649
12737
  };
@@ -10659,7 +12747,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10659
12747
  is_active?: boolean;
10660
12748
  label?: string | null;
10661
12749
  office_code?: string | null;
10662
- redirect_uri: string;
12750
+ redirect_uri?: string | null;
10663
12751
  updated_at?: string;
10664
12752
  user_id: string;
10665
12753
  };
@@ -10675,7 +12763,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10675
12763
  is_active?: boolean;
10676
12764
  label?: string | null;
10677
12765
  office_code?: string | null;
10678
- redirect_uri?: string;
12766
+ redirect_uri?: string | null;
10679
12767
  updated_at?: string;
10680
12768
  user_id?: string;
10681
12769
  };
@@ -11122,12 +13210,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11122
13210
  currency: string | null;
11123
13211
  customer_code: string | null;
11124
13212
  data: import("../integrations/supabase/types").Json;
13213
+ deleted_at: string | null;
11125
13214
  due_date: string | null;
11126
13215
  fetched_at: string;
11127
13216
  invoice_date: string | null;
11128
13217
  invoice_number: string;
13218
+ lines_fetched_at: string | null;
11129
13219
  modified_at: string | null;
11130
13220
  outstanding_amount: number | null;
13221
+ paid_at: string | null;
11131
13222
  status: string | null;
11132
13223
  status_label: string | null;
11133
13224
  total_excl: number | null;
@@ -11139,12 +13230,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11139
13230
  currency?: string | null;
11140
13231
  customer_code?: string | null;
11141
13232
  data?: import("../integrations/supabase/types").Json;
13233
+ deleted_at?: string | null;
11142
13234
  due_date?: string | null;
11143
13235
  fetched_at?: string;
11144
13236
  invoice_date?: string | null;
11145
13237
  invoice_number: string;
13238
+ lines_fetched_at?: string | null;
11146
13239
  modified_at?: string | null;
11147
13240
  outstanding_amount?: number | null;
13241
+ paid_at?: string | null;
11148
13242
  status?: string | null;
11149
13243
  status_label?: string | null;
11150
13244
  total_excl?: number | null;
@@ -11156,12 +13250,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11156
13250
  currency?: string | null;
11157
13251
  customer_code?: string | null;
11158
13252
  data?: import("../integrations/supabase/types").Json;
13253
+ deleted_at?: string | null;
11159
13254
  due_date?: string | null;
11160
13255
  fetched_at?: string;
11161
13256
  invoice_date?: string | null;
11162
13257
  invoice_number?: string;
13258
+ lines_fetched_at?: string | null;
11163
13259
  modified_at?: string | null;
11164
13260
  outstanding_amount?: number | null;
13261
+ paid_at?: string | null;
11165
13262
  status?: string | null;
11166
13263
  status_label?: string | null;
11167
13264
  total_excl?: number | null;
@@ -11266,6 +13363,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11266
13363
  };
11267
13364
  Relationships: [];
11268
13365
  };
13366
+ twinfield_revoked_accounts: {
13367
+ Row: {
13368
+ account_key: string;
13369
+ last_revoke_error: string | null;
13370
+ revoked_at: string;
13371
+ user_id: string;
13372
+ };
13373
+ Insert: {
13374
+ account_key: string;
13375
+ last_revoke_error?: string | null;
13376
+ revoked_at?: string;
13377
+ user_id: string;
13378
+ };
13379
+ Update: {
13380
+ account_key?: string;
13381
+ last_revoke_error?: string | null;
13382
+ revoked_at?: string;
13383
+ user_id?: string;
13384
+ };
13385
+ Relationships: [];
13386
+ };
11269
13387
  twinfield_session_cache: {
11270
13388
  Row: {
11271
13389
  cluster: string;
@@ -11368,6 +13486,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11368
13486
  referencedColumns: ["id"];
11369
13487
  }];
11370
13488
  };
13489
+ voorraad_custom_fields: {
13490
+ Row: {
13491
+ created_at: string;
13492
+ field_key: string;
13493
+ field_label: string;
13494
+ field_type: string;
13495
+ id: string;
13496
+ options: string[];
13497
+ show_in_columns: boolean;
13498
+ show_in_detail: boolean;
13499
+ show_in_template: boolean;
13500
+ sort_order: number;
13501
+ updated_at: string;
13502
+ };
13503
+ Insert: {
13504
+ created_at?: string;
13505
+ field_key: string;
13506
+ field_label: string;
13507
+ field_type?: string;
13508
+ id?: string;
13509
+ options?: string[];
13510
+ show_in_columns?: boolean;
13511
+ show_in_detail?: boolean;
13512
+ show_in_template?: boolean;
13513
+ sort_order?: number;
13514
+ updated_at?: string;
13515
+ };
13516
+ Update: {
13517
+ created_at?: string;
13518
+ field_key?: string;
13519
+ field_label?: string;
13520
+ field_type?: string;
13521
+ id?: string;
13522
+ options?: string[];
13523
+ show_in_columns?: boolean;
13524
+ show_in_detail?: boolean;
13525
+ show_in_template?: boolean;
13526
+ sort_order?: number;
13527
+ updated_at?: string;
13528
+ };
13529
+ Relationships: [];
13530
+ };
11371
13531
  voorraad_media_upload_failures: {
11372
13532
  Row: {
11373
13533
  action: string;
@@ -12025,6 +14185,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12025
14185
  status: string | null;
12026
14186
  token_expires_at: string | null;
12027
14187
  updated_at: string | null;
14188
+ webhook_last_attempt_at: string | null;
14189
+ webhook_last_error: string | null;
14190
+ webhook_status: string | null;
12028
14191
  };
12029
14192
  Insert: {
12030
14193
  account_email?: string | null;
@@ -12059,6 +14222,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12059
14222
  status?: string | null;
12060
14223
  token_expires_at?: string | null;
12061
14224
  updated_at?: string | null;
14225
+ webhook_last_attempt_at?: string | null;
14226
+ webhook_last_error?: string | null;
14227
+ webhook_status?: string | null;
12062
14228
  };
12063
14229
  Update: {
12064
14230
  account_email?: string | null;
@@ -12093,6 +14259,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12093
14259
  status?: string | null;
12094
14260
  token_expires_at?: string | null;
12095
14261
  updated_at?: string | null;
14262
+ webhook_last_attempt_at?: string | null;
14263
+ webhook_last_error?: string | null;
14264
+ webhook_status?: string | null;
12096
14265
  };
12097
14266
  Relationships: [];
12098
14267
  };
@@ -12373,6 +14542,81 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12373
14542
  referencedColumns: ["id"];
12374
14543
  }];
12375
14544
  };
14545
+ v_external_customers_local: {
14546
+ Row: {
14547
+ city: string | null;
14548
+ commercial_name: string | null;
14549
+ company_name: string | null;
14550
+ connection_id: string | null;
14551
+ contact_person: string | null;
14552
+ country: string | null;
14553
+ email: string | null;
14554
+ external_id: string | null;
14555
+ fetched_at: string | null;
14556
+ gln: string | null;
14557
+ house_number: string | null;
14558
+ is_active: boolean | null;
14559
+ is_deleted: boolean | null;
14560
+ logo_url: string | null;
14561
+ phone: string | null;
14562
+ postal_code: string | null;
14563
+ provider: string | null;
14564
+ raw: import("../integrations/supabase/types").Json | null;
14565
+ status: string | null;
14566
+ street: string | null;
14567
+ vat_number: string | null;
14568
+ website: string | null;
14569
+ };
14570
+ Insert: {
14571
+ city?: string | null;
14572
+ commercial_name?: string | null;
14573
+ company_name?: string | null;
14574
+ connection_id?: never;
14575
+ contact_person?: string | null;
14576
+ country?: string | null;
14577
+ email?: string | null;
14578
+ external_id?: never;
14579
+ fetched_at?: never;
14580
+ gln?: string | null;
14581
+ house_number?: string | null;
14582
+ is_active?: never;
14583
+ is_deleted?: never;
14584
+ logo_url?: string | null;
14585
+ phone?: string | null;
14586
+ postal_code?: string | null;
14587
+ provider?: never;
14588
+ raw?: never;
14589
+ status?: string | null;
14590
+ street?: string | null;
14591
+ vat_number?: string | null;
14592
+ website?: string | null;
14593
+ };
14594
+ Update: {
14595
+ city?: string | null;
14596
+ commercial_name?: string | null;
14597
+ company_name?: string | null;
14598
+ connection_id?: never;
14599
+ contact_person?: string | null;
14600
+ country?: string | null;
14601
+ email?: string | null;
14602
+ external_id?: never;
14603
+ fetched_at?: never;
14604
+ gln?: string | null;
14605
+ house_number?: string | null;
14606
+ is_active?: never;
14607
+ is_deleted?: never;
14608
+ logo_url?: string | null;
14609
+ phone?: string | null;
14610
+ postal_code?: string | null;
14611
+ provider?: never;
14612
+ raw?: never;
14613
+ status?: string | null;
14614
+ street?: string | null;
14615
+ vat_number?: string | null;
14616
+ website?: string | null;
14617
+ };
14618
+ Relationships: [];
14619
+ };
12376
14620
  v_external_customers_twinfield: {
12377
14621
  Row: {
12378
14622
  city: string | null;
@@ -13301,6 +15545,170 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13301
15545
  };
13302
15546
  Returns: string;
13303
15547
  };
15548
+ pick_claim_document: {
15549
+ Args: {
15550
+ _queue_item_id: string;
15551
+ _screen_id: string;
15552
+ _session_id: string;
15553
+ _station_id: string;
15554
+ _timeout_seconds?: number;
15555
+ };
15556
+ Returns: {
15557
+ announced_at: string;
15558
+ assigned_user_id: string | null;
15559
+ barcode: string | null;
15560
+ cancelled_at: string | null;
15561
+ cart_count: number;
15562
+ completed_at: string | null;
15563
+ country_code: string | null;
15564
+ created_at: string;
15565
+ customer_name: string | null;
15566
+ delivery_address: string | null;
15567
+ document_number: string | null;
15568
+ document_type_id: string | null;
15569
+ due_at: string | null;
15570
+ id: string;
15571
+ is_urgent: boolean;
15572
+ line_count: number;
15573
+ order_number: string | null;
15574
+ order_type: string | null;
15575
+ payload: import("../integrations/supabase/types").Json;
15576
+ print_count: number;
15577
+ printed_at: string | null;
15578
+ printed_by: string | null;
15579
+ printer_id: string | null;
15580
+ priority: number;
15581
+ reference: string | null;
15582
+ route: string | null;
15583
+ screen_id: string | null;
15584
+ station_id: string | null;
15585
+ status_id: string | null;
15586
+ updated_at: string;
15587
+ warnings: import("../integrations/supabase/types").Json;
15588
+ };
15589
+ SetofOptions: {
15590
+ from: "*";
15591
+ to: "pick_queue";
15592
+ isOneToOne: true;
15593
+ isSetofReturn: false;
15594
+ };
15595
+ };
15596
+ pick_claim_next_document: {
15597
+ Args: {
15598
+ _country_code: string;
15599
+ _screen_id: string;
15600
+ _session_id: string;
15601
+ _station_id: string;
15602
+ _timeout_seconds?: number;
15603
+ };
15604
+ Returns: {
15605
+ announced_at: string;
15606
+ assigned_user_id: string | null;
15607
+ barcode: string | null;
15608
+ cancelled_at: string | null;
15609
+ cart_count: number;
15610
+ completed_at: string | null;
15611
+ country_code: string | null;
15612
+ created_at: string;
15613
+ customer_name: string | null;
15614
+ delivery_address: string | null;
15615
+ document_number: string | null;
15616
+ document_type_id: string | null;
15617
+ due_at: string | null;
15618
+ id: string;
15619
+ is_urgent: boolean;
15620
+ line_count: number;
15621
+ order_number: string | null;
15622
+ order_type: string | null;
15623
+ payload: import("../integrations/supabase/types").Json;
15624
+ print_count: number;
15625
+ printed_at: string | null;
15626
+ printed_by: string | null;
15627
+ printer_id: string | null;
15628
+ priority: number;
15629
+ reference: string | null;
15630
+ route: string | null;
15631
+ screen_id: string | null;
15632
+ station_id: string | null;
15633
+ status_id: string | null;
15634
+ updated_at: string;
15635
+ warnings: import("../integrations/supabase/types").Json;
15636
+ };
15637
+ SetofOptions: {
15638
+ from: "*";
15639
+ to: "pick_queue";
15640
+ isOneToOne: true;
15641
+ isSetofReturn: false;
15642
+ };
15643
+ };
15644
+ pick_complete_print: {
15645
+ Args: {
15646
+ _printer_id: string;
15647
+ _queue_item_id: string;
15648
+ _session_id: string;
15649
+ };
15650
+ Returns: {
15651
+ announced_at: string;
15652
+ assigned_user_id: string | null;
15653
+ barcode: string | null;
15654
+ cancelled_at: string | null;
15655
+ cart_count: number;
15656
+ completed_at: string | null;
15657
+ country_code: string | null;
15658
+ created_at: string;
15659
+ customer_name: string | null;
15660
+ delivery_address: string | null;
15661
+ document_number: string | null;
15662
+ document_type_id: string | null;
15663
+ due_at: string | null;
15664
+ id: string;
15665
+ is_urgent: boolean;
15666
+ line_count: number;
15667
+ order_number: string | null;
15668
+ order_type: string | null;
15669
+ payload: import("../integrations/supabase/types").Json;
15670
+ print_count: number;
15671
+ printed_at: string | null;
15672
+ printed_by: string | null;
15673
+ printer_id: string | null;
15674
+ priority: number;
15675
+ reference: string | null;
15676
+ route: string | null;
15677
+ screen_id: string | null;
15678
+ station_id: string | null;
15679
+ status_id: string | null;
15680
+ updated_at: string;
15681
+ warnings: import("../integrations/supabase/types").Json;
15682
+ };
15683
+ SetofOptions: {
15684
+ from: "*";
15685
+ to: "pick_queue";
15686
+ isOneToOne: true;
15687
+ isSetofReturn: false;
15688
+ };
15689
+ };
15690
+ pick_release_expired_locks: {
15691
+ Args: never;
15692
+ Returns: number;
15693
+ };
15694
+ pick_release_lock: {
15695
+ Args: {
15696
+ _queue_item_id: string;
15697
+ };
15698
+ Returns: undefined;
15699
+ };
15700
+ pick_station_dashboard: {
15701
+ Args: never;
15702
+ Returns: {
15703
+ active: number;
15704
+ active_sessions: number;
15705
+ avg_wait_seconds: number;
15706
+ done_today: number;
15707
+ station_id: string;
15708
+ station_name: string;
15709
+ waiting: number;
15710
+ }[];
15711
+ };
13304
15712
  pickstation_get_orders_raw: {
13305
15713
  Args: never;
13306
15714
  Returns: import("../integrations/supabase/types").Json;
@@ -13402,6 +15810,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13402
15810
  };
13403
15811
  Returns: number;
13404
15812
  };
15813
+ release_debtor_lock: {
15814
+ Args: {
15815
+ _group_key: string;
15816
+ _user_id: string;
15817
+ };
15818
+ Returns: boolean;
15819
+ };
13405
15820
  reorder_customer_price_groups: {
13406
15821
  Args: {
13407
15822
  _ids: string[];
@@ -13781,6 +16196,20 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13781
16196
  };
13782
16197
  Returns: undefined;
13783
16198
  };
16199
+ try_debtor_lock: {
16200
+ Args: {
16201
+ _group_key: string;
16202
+ _user_id: string;
16203
+ };
16204
+ Returns: boolean;
16205
+ };
16206
+ twinfield_register_cron: {
16207
+ Args: {
16208
+ apikey: string;
16209
+ base_url: string;
16210
+ };
16211
+ Returns: import("../integrations/supabase/types").Json;
16212
+ };
13784
16213
  twinfield_upsert_connection_by_account_key: {
13785
16214
  Args: {
13786
16215
  p_account_key: string;
@@ -13807,12 +16236,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13807
16236
  };
13808
16237
  };
13809
16238
  Enums: {
16239
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13810
16240
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16241
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16242
+ doc_orientation: "portrait" | "landscape";
13811
16243
  exact_env: "staging" | "live";
13812
16244
  exact_push_status: "pending" | "sent" | "error";
13813
16245
  itk_customer_segment: "Business" | "Private";
13814
16246
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13815
16247
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16248
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16249
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16250
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13816
16251
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13817
16252
  };
13818
16253
  CompositeTypes: { [_ in never]: never; };