@flowselections/floriday-afhandeling-module 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts +2 -0
  2. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/NieuweVervoerderPage.js +5 -0
  4. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts +4 -0
  5. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.js +5 -0
  7. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  8. package/dist-lib/index.d.ts +2 -0
  9. package/dist-lib/index.d.ts.map +1 -1
  10. package/dist-lib/index.js +2 -0
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2578 -143
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +2578 -143
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.d.ts +2578 -143
  16. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/types.d.ts +2642 -127
  18. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.js +49 -0
  20. package/dist-lib/lib/afhandelingSettings.functions.d.ts +14153 -9283
  21. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/carriers.functions.d.ts +25813 -13638
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartAssignments.functions.d.ts +25813 -13638
  25. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartControl.functions.d.ts +24566 -216
  27. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.d.ts +2578 -143
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +20344 -10604
  31. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +2578 -143
  33. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +14175 -9305
  35. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +42220 -22740
  37. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +20344 -10604
  39. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  40. package/package.json +3 -3
@@ -404,6 +404,65 @@ export type Database = {
404
404
  };
405
405
  Relationships: [];
406
406
  };
407
+ ai_layout_imports: {
408
+ Row: {
409
+ analyse_json: Json;
410
+ bestand_url: string | null;
411
+ bestandsnaam: string;
412
+ bevestigd: boolean;
413
+ created_at: string;
414
+ created_by: string | null;
415
+ foutmelding: string | null;
416
+ id: string;
417
+ layout_id: string | null;
418
+ mime_type: string;
419
+ onzekere_velden: Json;
420
+ status: Database["public"]["Enums"]["ai_import_status"];
421
+ updated_at: string;
422
+ voorstel: Json;
423
+ };
424
+ Insert: {
425
+ analyse_json?: Json;
426
+ bestand_url?: string | null;
427
+ bestandsnaam?: string;
428
+ bevestigd?: boolean;
429
+ created_at?: string;
430
+ created_by?: string | null;
431
+ foutmelding?: string | null;
432
+ id?: string;
433
+ layout_id?: string | null;
434
+ mime_type?: string;
435
+ onzekere_velden?: Json;
436
+ status?: Database["public"]["Enums"]["ai_import_status"];
437
+ updated_at?: string;
438
+ voorstel?: Json;
439
+ };
440
+ Update: {
441
+ analyse_json?: Json;
442
+ bestand_url?: string | null;
443
+ bestandsnaam?: string;
444
+ bevestigd?: boolean;
445
+ created_at?: string;
446
+ created_by?: string | null;
447
+ foutmelding?: string | null;
448
+ id?: string;
449
+ layout_id?: string | null;
450
+ mime_type?: string;
451
+ onzekere_velden?: Json;
452
+ status?: Database["public"]["Enums"]["ai_import_status"];
453
+ updated_at?: string;
454
+ voorstel?: Json;
455
+ };
456
+ Relationships: [
457
+ {
458
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
459
+ columns: ["layout_id"];
460
+ isOneToOne: false;
461
+ referencedRelation: "document_layouts";
462
+ referencedColumns: ["id"];
463
+ }
464
+ ];
465
+ };
407
466
  ai_model_pricing: {
408
467
  Row: {
409
468
  created_at: string;
@@ -496,6 +555,8 @@ export type Database = {
496
555
  created_at: string;
497
556
  credential_id: string;
498
557
  id: string;
558
+ is_default: boolean;
559
+ label: string | null;
499
560
  model_id: string;
500
561
  notes: string | null;
501
562
  updated_at: string;
@@ -505,6 +566,8 @@ export type Database = {
505
566
  created_at?: string;
506
567
  credential_id: string;
507
568
  id?: string;
569
+ is_default?: boolean;
570
+ label?: string | null;
508
571
  model_id: string;
509
572
  notes?: string | null;
510
573
  updated_at?: string;
@@ -514,6 +577,8 @@ export type Database = {
514
577
  created_at?: string;
515
578
  credential_id?: string;
516
579
  id?: string;
580
+ is_default?: boolean;
581
+ label?: string | null;
517
582
  model_id?: string;
518
583
  notes?: string | null;
519
584
  updated_at?: string;
@@ -535,6 +600,41 @@ export type Database = {
535
600
  }
536
601
  ];
537
602
  };
603
+ ai_modules: {
604
+ Row: {
605
+ ai_enabled: boolean;
606
+ created_at: string;
607
+ id: string;
608
+ module_key: string;
609
+ module_name: string;
610
+ updated_at: string;
611
+ };
612
+ Insert: {
613
+ ai_enabled?: boolean;
614
+ created_at?: string;
615
+ id?: string;
616
+ module_key: string;
617
+ module_name: string;
618
+ updated_at?: string;
619
+ };
620
+ Update: {
621
+ ai_enabled?: boolean;
622
+ created_at?: string;
623
+ id?: string;
624
+ module_key?: string;
625
+ module_name?: string;
626
+ updated_at?: string;
627
+ };
628
+ Relationships: [
629
+ {
630
+ foreignKeyName: "ai_modules_module_key_fkey";
631
+ columns: ["module_key"];
632
+ isOneToOne: true;
633
+ referencedRelation: "modules";
634
+ referencedColumns: ["module_key"];
635
+ }
636
+ ];
637
+ };
538
638
  ai_providers: {
539
639
  Row: {
540
640
  active: boolean;
@@ -1290,6 +1390,8 @@ export type Database = {
1290
1390
  require_same_crate_type: boolean;
1291
1391
  require_same_delivery_date: boolean;
1292
1392
  require_same_delivery_location: boolean;
1393
+ uniform_pick_time: boolean;
1394
+ uniform_pick_time_seconds: number;
1293
1395
  updated_at: string;
1294
1396
  updated_by: string | null;
1295
1397
  };
@@ -1314,6 +1416,8 @@ export type Database = {
1314
1416
  require_same_crate_type?: boolean;
1315
1417
  require_same_delivery_date?: boolean;
1316
1418
  require_same_delivery_location?: boolean;
1419
+ uniform_pick_time?: boolean;
1420
+ uniform_pick_time_seconds?: number;
1317
1421
  updated_at?: string;
1318
1422
  updated_by?: string | null;
1319
1423
  };
@@ -1338,6 +1442,8 @@ export type Database = {
1338
1442
  require_same_crate_type?: boolean;
1339
1443
  require_same_delivery_date?: boolean;
1340
1444
  require_same_delivery_location?: boolean;
1445
+ uniform_pick_time?: boolean;
1446
+ uniform_pick_time_seconds?: number;
1341
1447
  updated_at?: string;
1342
1448
  updated_by?: string | null;
1343
1449
  };
@@ -2497,6 +2603,364 @@ export type Database = {
2497
2603
  };
2498
2604
  Relationships: [];
2499
2605
  };
2606
+ document_formaat_printers: {
2607
+ Row: {
2608
+ created_at: string;
2609
+ documenttype: string;
2610
+ formaat_code: string;
2611
+ id: string;
2612
+ printer_id: string | null;
2613
+ updated_at: string;
2614
+ };
2615
+ Insert: {
2616
+ created_at?: string;
2617
+ documenttype: string;
2618
+ formaat_code: string;
2619
+ id?: string;
2620
+ printer_id?: string | null;
2621
+ updated_at?: string;
2622
+ };
2623
+ Update: {
2624
+ created_at?: string;
2625
+ documenttype?: string;
2626
+ formaat_code?: string;
2627
+ id?: string;
2628
+ printer_id?: string | null;
2629
+ updated_at?: string;
2630
+ };
2631
+ Relationships: [
2632
+ {
2633
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2634
+ columns: ["printer_id"];
2635
+ isOneToOne: false;
2636
+ referencedRelation: "printers";
2637
+ referencedColumns: ["id"];
2638
+ }
2639
+ ];
2640
+ };
2641
+ document_layout_conditions: {
2642
+ Row: {
2643
+ created_at: string;
2644
+ element_key: string;
2645
+ id: string;
2646
+ layout_id: string;
2647
+ operator: string;
2648
+ updated_at: string;
2649
+ veld: string;
2650
+ waarde: string;
2651
+ };
2652
+ Insert: {
2653
+ created_at?: string;
2654
+ element_key: string;
2655
+ id?: string;
2656
+ layout_id: string;
2657
+ operator?: string;
2658
+ updated_at?: string;
2659
+ veld: string;
2660
+ waarde?: string;
2661
+ };
2662
+ Update: {
2663
+ created_at?: string;
2664
+ element_key?: string;
2665
+ id?: string;
2666
+ layout_id?: string;
2667
+ operator?: string;
2668
+ updated_at?: string;
2669
+ veld?: string;
2670
+ waarde?: string;
2671
+ };
2672
+ Relationships: [
2673
+ {
2674
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2675
+ columns: ["layout_id"];
2676
+ isOneToOne: false;
2677
+ referencedRelation: "document_layouts";
2678
+ referencedColumns: ["id"];
2679
+ }
2680
+ ];
2681
+ };
2682
+ document_layout_datasources: {
2683
+ Row: {
2684
+ alias: string;
2685
+ created_at: string;
2686
+ entiteit: string;
2687
+ filter: Json;
2688
+ id: string;
2689
+ layout_id: string;
2690
+ module_id: string;
2691
+ updated_at: string;
2692
+ };
2693
+ Insert: {
2694
+ alias?: string;
2695
+ created_at?: string;
2696
+ entiteit: string;
2697
+ filter?: Json;
2698
+ id?: string;
2699
+ layout_id: string;
2700
+ module_id: string;
2701
+ updated_at?: string;
2702
+ };
2703
+ Update: {
2704
+ alias?: string;
2705
+ created_at?: string;
2706
+ entiteit?: string;
2707
+ filter?: Json;
2708
+ id?: string;
2709
+ layout_id?: string;
2710
+ module_id?: string;
2711
+ updated_at?: string;
2712
+ };
2713
+ Relationships: [
2714
+ {
2715
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2716
+ columns: ["layout_id"];
2717
+ isOneToOne: false;
2718
+ referencedRelation: "document_layouts";
2719
+ referencedColumns: ["id"];
2720
+ }
2721
+ ];
2722
+ };
2723
+ document_layout_elements: {
2724
+ Row: {
2725
+ breedte: number;
2726
+ config: Json;
2727
+ content: string;
2728
+ created_at: string;
2729
+ element_key: string;
2730
+ hoogte: number;
2731
+ id: string;
2732
+ layout_id: string;
2733
+ logo_id: string | null;
2734
+ parent_key: string | null;
2735
+ rotatie: number;
2736
+ stijl: Json;
2737
+ type: string;
2738
+ updated_at: string;
2739
+ veldpad: string | null;
2740
+ verborgen: boolean;
2741
+ vergrendeld: boolean;
2742
+ volgorde: number;
2743
+ x: number;
2744
+ y: number;
2745
+ z_index: number;
2746
+ };
2747
+ Insert: {
2748
+ breedte?: number;
2749
+ config?: Json;
2750
+ content?: string;
2751
+ created_at?: string;
2752
+ element_key: string;
2753
+ hoogte?: number;
2754
+ id?: string;
2755
+ layout_id: string;
2756
+ logo_id?: string | null;
2757
+ parent_key?: string | null;
2758
+ rotatie?: number;
2759
+ stijl?: Json;
2760
+ type: string;
2761
+ updated_at?: string;
2762
+ veldpad?: string | null;
2763
+ verborgen?: boolean;
2764
+ vergrendeld?: boolean;
2765
+ volgorde?: number;
2766
+ x?: number;
2767
+ y?: number;
2768
+ z_index?: number;
2769
+ };
2770
+ Update: {
2771
+ breedte?: number;
2772
+ config?: Json;
2773
+ content?: string;
2774
+ created_at?: string;
2775
+ element_key?: string;
2776
+ hoogte?: number;
2777
+ id?: string;
2778
+ layout_id?: string;
2779
+ logo_id?: string | null;
2780
+ parent_key?: string | null;
2781
+ rotatie?: number;
2782
+ stijl?: Json;
2783
+ type?: string;
2784
+ updated_at?: string;
2785
+ veldpad?: string | null;
2786
+ verborgen?: boolean;
2787
+ vergrendeld?: boolean;
2788
+ volgorde?: number;
2789
+ x?: number;
2790
+ y?: number;
2791
+ z_index?: number;
2792
+ };
2793
+ Relationships: [
2794
+ {
2795
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2796
+ columns: ["layout_id"];
2797
+ isOneToOne: false;
2798
+ referencedRelation: "document_layouts";
2799
+ referencedColumns: ["id"];
2800
+ },
2801
+ {
2802
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2803
+ columns: ["logo_id"];
2804
+ isOneToOne: false;
2805
+ referencedRelation: "layout_logos";
2806
+ referencedColumns: ["id"];
2807
+ }
2808
+ ];
2809
+ };
2810
+ document_layout_variables: {
2811
+ Row: {
2812
+ created_at: string;
2813
+ expressie: string;
2814
+ id: string;
2815
+ layout_id: string;
2816
+ naam: string;
2817
+ omschrijving: string;
2818
+ updated_at: string;
2819
+ };
2820
+ Insert: {
2821
+ created_at?: string;
2822
+ expressie?: string;
2823
+ id?: string;
2824
+ layout_id: string;
2825
+ naam: string;
2826
+ omschrijving?: string;
2827
+ updated_at?: string;
2828
+ };
2829
+ Update: {
2830
+ created_at?: string;
2831
+ expressie?: string;
2832
+ id?: string;
2833
+ layout_id?: string;
2834
+ naam?: string;
2835
+ omschrijving?: string;
2836
+ updated_at?: string;
2837
+ };
2838
+ Relationships: [
2839
+ {
2840
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2841
+ columns: ["layout_id"];
2842
+ isOneToOne: false;
2843
+ referencedRelation: "document_layouts";
2844
+ referencedColumns: ["id"];
2845
+ }
2846
+ ];
2847
+ };
2848
+ document_layout_versions: {
2849
+ Row: {
2850
+ commentaar: string;
2851
+ created_at: string;
2852
+ created_by: string | null;
2853
+ elements: Json;
2854
+ id: string;
2855
+ layout_id: string;
2856
+ page_settings: Json;
2857
+ updated_at: string;
2858
+ versienummer: number;
2859
+ };
2860
+ Insert: {
2861
+ commentaar?: string;
2862
+ created_at?: string;
2863
+ created_by?: string | null;
2864
+ elements?: Json;
2865
+ id?: string;
2866
+ layout_id: string;
2867
+ page_settings?: Json;
2868
+ updated_at?: string;
2869
+ versienummer: number;
2870
+ };
2871
+ Update: {
2872
+ commentaar?: string;
2873
+ created_at?: string;
2874
+ created_by?: string | null;
2875
+ elements?: Json;
2876
+ id?: string;
2877
+ layout_id?: string;
2878
+ page_settings?: Json;
2879
+ updated_at?: string;
2880
+ versienummer?: number;
2881
+ };
2882
+ Relationships: [
2883
+ {
2884
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2885
+ columns: ["layout_id"];
2886
+ isOneToOne: false;
2887
+ referencedRelation: "document_layouts";
2888
+ referencedColumns: ["id"];
2889
+ }
2890
+ ];
2891
+ };
2892
+ document_layouts: {
2893
+ Row: {
2894
+ actief: boolean;
2895
+ breedte_mm: number;
2896
+ config: Json;
2897
+ created_at: string;
2898
+ created_by: string | null;
2899
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
2900
+ hoogte_mm: number;
2901
+ huidige_versie: number;
2902
+ id: string;
2903
+ is_standaard: boolean;
2904
+ marge_boven: number;
2905
+ marge_links: number;
2906
+ marge_onder: number;
2907
+ marge_rechts: number;
2908
+ naam: string;
2909
+ omschrijving: string;
2910
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
2911
+ page_settings: Json;
2912
+ papierformaat: string;
2913
+ thumbnail_url: string | null;
2914
+ updated_at: string;
2915
+ };
2916
+ Insert: {
2917
+ actief?: boolean;
2918
+ breedte_mm?: number;
2919
+ config?: Json;
2920
+ created_at?: string;
2921
+ created_by?: string | null;
2922
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2923
+ hoogte_mm?: number;
2924
+ huidige_versie?: number;
2925
+ id?: string;
2926
+ is_standaard?: boolean;
2927
+ marge_boven?: number;
2928
+ marge_links?: number;
2929
+ marge_onder?: number;
2930
+ marge_rechts?: number;
2931
+ naam: string;
2932
+ omschrijving?: string;
2933
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2934
+ page_settings?: Json;
2935
+ papierformaat?: string;
2936
+ thumbnail_url?: string | null;
2937
+ updated_at?: string;
2938
+ };
2939
+ Update: {
2940
+ actief?: boolean;
2941
+ breedte_mm?: number;
2942
+ config?: Json;
2943
+ created_at?: string;
2944
+ created_by?: string | null;
2945
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2946
+ hoogte_mm?: number;
2947
+ huidige_versie?: number;
2948
+ id?: string;
2949
+ is_standaard?: boolean;
2950
+ marge_boven?: number;
2951
+ marge_links?: number;
2952
+ marge_onder?: number;
2953
+ marge_rechts?: number;
2954
+ naam?: string;
2955
+ omschrijving?: string;
2956
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2957
+ page_settings?: Json;
2958
+ papierformaat?: string;
2959
+ thumbnail_url?: string | null;
2960
+ updated_at?: string;
2961
+ };
2962
+ Relationships: [];
2963
+ };
2500
2964
  email_auth_connections: {
2501
2965
  Row: {
2502
2966
  access_token_encrypted: string | null;
@@ -2536,6 +3000,10 @@ export type Database = {
2536
3000
  status: string;
2537
3001
  token_expires_at: string | null;
2538
3002
  updated_at: string;
3003
+ watch_scope: string;
3004
+ webhook_last_attempt_at: string | null;
3005
+ webhook_last_error: string | null;
3006
+ webhook_status: string;
2539
3007
  };
2540
3008
  Insert: {
2541
3009
  access_token_encrypted?: string | null;
@@ -2575,6 +3043,10 @@ export type Database = {
2575
3043
  status?: string;
2576
3044
  token_expires_at?: string | null;
2577
3045
  updated_at?: string;
3046
+ watch_scope?: string;
3047
+ webhook_last_attempt_at?: string | null;
3048
+ webhook_last_error?: string | null;
3049
+ webhook_status?: string;
2578
3050
  };
2579
3051
  Update: {
2580
3052
  access_token_encrypted?: string | null;
@@ -2614,6 +3086,10 @@ export type Database = {
2614
3086
  status?: string;
2615
3087
  token_expires_at?: string | null;
2616
3088
  updated_at?: string;
3089
+ watch_scope?: string;
3090
+ webhook_last_attempt_at?: string | null;
3091
+ webhook_last_error?: string | null;
3092
+ webhook_status?: string;
2617
3093
  };
2618
3094
  Relationships: [];
2619
3095
  };
@@ -2818,30 +3294,156 @@ export type Database = {
2818
3294
  }
2819
3295
  ];
2820
3296
  };
2821
- exact_account_analytics_cache: {
3297
+ email_auth_watch_folders: {
2822
3298
  Row: {
2823
- account_id: string;
2824
- account_name: string | null;
2825
- avg_payment_days: number | null;
2826
- computed_at: string;
2827
3299
  connection_id: string;
2828
- expires_at: string | null;
3300
+ created_at: string;
3301
+ folder_id: string;
3302
+ folder_name: string | null;
3303
+ gmail_history_id: string | null;
3304
+ graph_subscription_expires_at: string | null;
3305
+ graph_subscription_id: string | null;
2829
3306
  id: string;
2830
- invoice_count: number | null;
2831
- last_invoice_date: string | null;
2832
- last_payment_date: string | null;
2833
- open_balance: number | null;
2834
- overdue_balance: number | null;
2835
- total_revenue: number | null;
3307
+ imap_last_uid: number | null;
3308
+ imap_uid_validity: number | null;
3309
+ mailbox: string;
3310
+ provider: string;
3311
+ updated_at: string;
3312
+ webhook_last_error: string | null;
3313
+ webhook_status: string | null;
2836
3314
  };
2837
3315
  Insert: {
2838
- account_id: string;
2839
- account_name?: string | null;
2840
- avg_payment_days?: number | null;
2841
- computed_at?: string;
2842
3316
  connection_id: string;
2843
- expires_at?: string | null;
2844
- id?: string;
3317
+ created_at?: string;
3318
+ folder_id: string;
3319
+ folder_name?: string | null;
3320
+ gmail_history_id?: string | null;
3321
+ graph_subscription_expires_at?: string | null;
3322
+ graph_subscription_id?: string | null;
3323
+ id?: string;
3324
+ imap_last_uid?: number | null;
3325
+ imap_uid_validity?: number | null;
3326
+ mailbox?: string;
3327
+ provider: string;
3328
+ updated_at?: string;
3329
+ webhook_last_error?: string | null;
3330
+ webhook_status?: string | null;
3331
+ };
3332
+ Update: {
3333
+ connection_id?: string;
3334
+ created_at?: string;
3335
+ folder_id?: string;
3336
+ folder_name?: string | null;
3337
+ gmail_history_id?: string | null;
3338
+ graph_subscription_expires_at?: string | null;
3339
+ graph_subscription_id?: string | null;
3340
+ id?: string;
3341
+ imap_last_uid?: number | null;
3342
+ imap_uid_validity?: number | null;
3343
+ mailbox?: string;
3344
+ provider?: string;
3345
+ updated_at?: string;
3346
+ webhook_last_error?: string | null;
3347
+ webhook_status?: string | null;
3348
+ };
3349
+ Relationships: [
3350
+ {
3351
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3352
+ columns: ["connection_id"];
3353
+ isOneToOne: false;
3354
+ referencedRelation: "email_auth_connections";
3355
+ referencedColumns: ["id"];
3356
+ },
3357
+ {
3358
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3359
+ columns: ["connection_id"];
3360
+ isOneToOne: false;
3361
+ referencedRelation: "email_auth_connections_safe";
3362
+ referencedColumns: ["id"];
3363
+ }
3364
+ ];
3365
+ };
3366
+ email_auth_webhook_log: {
3367
+ Row: {
3368
+ body_sample: string | null;
3369
+ connection_id: string | null;
3370
+ created_at: string;
3371
+ error_message: string | null;
3372
+ headers_sample: Json | null;
3373
+ id: string;
3374
+ notification_count: number | null;
3375
+ provider: string | null;
3376
+ source: string | null;
3377
+ status: string;
3378
+ subscription_id: string | null;
3379
+ };
3380
+ Insert: {
3381
+ body_sample?: string | null;
3382
+ connection_id?: string | null;
3383
+ created_at?: string;
3384
+ error_message?: string | null;
3385
+ headers_sample?: Json | null;
3386
+ id?: string;
3387
+ notification_count?: number | null;
3388
+ provider?: string | null;
3389
+ source?: string | null;
3390
+ status: string;
3391
+ subscription_id?: string | null;
3392
+ };
3393
+ Update: {
3394
+ body_sample?: string | null;
3395
+ connection_id?: string | null;
3396
+ created_at?: string;
3397
+ error_message?: string | null;
3398
+ headers_sample?: Json | null;
3399
+ id?: string;
3400
+ notification_count?: number | null;
3401
+ provider?: string | null;
3402
+ source?: string | null;
3403
+ status?: string;
3404
+ subscription_id?: string | null;
3405
+ };
3406
+ Relationships: [
3407
+ {
3408
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3409
+ columns: ["connection_id"];
3410
+ isOneToOne: false;
3411
+ referencedRelation: "email_auth_connections";
3412
+ referencedColumns: ["id"];
3413
+ },
3414
+ {
3415
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3416
+ columns: ["connection_id"];
3417
+ isOneToOne: false;
3418
+ referencedRelation: "email_auth_connections_safe";
3419
+ referencedColumns: ["id"];
3420
+ }
3421
+ ];
3422
+ };
3423
+ exact_account_analytics_cache: {
3424
+ Row: {
3425
+ account_id: string;
3426
+ account_name: string | null;
3427
+ avg_payment_days: number | null;
3428
+ computed_at: string;
3429
+ connection_id: string;
3430
+ expires_at: string | null;
3431
+ id: string;
3432
+ invoice_count: number | null;
3433
+ last_invoice_date: string | null;
3434
+ last_payment_date: string | null;
3435
+ open_balance: number | null;
3436
+ overdue_balance: number | null;
3437
+ total_revenue: number | null;
3438
+ };
3439
+ Insert: {
3440
+ account_id: string;
3441
+ account_name?: string | null;
3442
+ avg_payment_days?: number | null;
3443
+ computed_at?: string;
3444
+ connection_id: string;
3445
+ expires_at?: string | null;
3446
+ id?: string;
2845
3447
  invoice_count?: number | null;
2846
3448
  last_invoice_date?: string | null;
2847
3449
  last_payment_date?: string | null;
@@ -6135,6 +6737,36 @@ export type Database = {
6135
6737
  };
6136
6738
  Relationships: [];
6137
6739
  };
6740
+ invoice_post_idempotency: {
6741
+ Row: {
6742
+ client_request_id: string;
6743
+ completed_at: string | null;
6744
+ created_at: string;
6745
+ error_message: string | null;
6746
+ invoice_number: string | null;
6747
+ status: string;
6748
+ user_id: string;
6749
+ };
6750
+ Insert: {
6751
+ client_request_id: string;
6752
+ completed_at?: string | null;
6753
+ created_at?: string;
6754
+ error_message?: string | null;
6755
+ invoice_number?: string | null;
6756
+ status?: string;
6757
+ user_id: string;
6758
+ };
6759
+ Update: {
6760
+ client_request_id?: string;
6761
+ completed_at?: string | null;
6762
+ created_at?: string;
6763
+ error_message?: string | null;
6764
+ invoice_number?: string | null;
6765
+ status?: string;
6766
+ user_id?: string;
6767
+ };
6768
+ Relationships: [];
6769
+ };
6138
6770
  invoice_push_log: {
6139
6771
  Row: {
6140
6772
  connection_id: string | null;
@@ -6538,6 +7170,60 @@ export type Database = {
6538
7170
  }
6539
7171
  ];
6540
7172
  };
7173
+ layout_logos: {
7174
+ Row: {
7175
+ bestand_url: string;
7176
+ bestandsgrootte: number;
7177
+ bestandspad: string | null;
7178
+ bestandstype: string;
7179
+ breedte: number;
7180
+ categorie: string;
7181
+ created_at: string;
7182
+ hash: string | null;
7183
+ hoogte: number;
7184
+ id: string;
7185
+ is_standaard: boolean;
7186
+ naam: string;
7187
+ omschrijving: string;
7188
+ transparant: boolean;
7189
+ updated_at: string;
7190
+ };
7191
+ Insert: {
7192
+ bestand_url: string;
7193
+ bestandsgrootte?: number;
7194
+ bestandspad?: string | null;
7195
+ bestandstype?: string;
7196
+ breedte?: number;
7197
+ categorie?: string;
7198
+ created_at?: string;
7199
+ hash?: string | null;
7200
+ hoogte?: number;
7201
+ id?: string;
7202
+ is_standaard?: boolean;
7203
+ naam: string;
7204
+ omschrijving?: string;
7205
+ transparant?: boolean;
7206
+ updated_at?: string;
7207
+ };
7208
+ Update: {
7209
+ bestand_url?: string;
7210
+ bestandsgrootte?: number;
7211
+ bestandspad?: string | null;
7212
+ bestandstype?: string;
7213
+ breedte?: number;
7214
+ categorie?: string;
7215
+ created_at?: string;
7216
+ hash?: string | null;
7217
+ hoogte?: number;
7218
+ id?: string;
7219
+ is_standaard?: boolean;
7220
+ naam?: string;
7221
+ omschrijving?: string;
7222
+ transparant?: boolean;
7223
+ updated_at?: string;
7224
+ };
7225
+ Relationships: [];
7226
+ };
6541
7227
  leave_requests: {
6542
7228
  Row: {
6543
7229
  created_at: string;
@@ -6970,6 +7656,100 @@ export type Database = {
6970
7656
  }
6971
7657
  ];
6972
7658
  };
7659
+ logistics_rule_configs: {
7660
+ Row: {
7661
+ created_at: string;
7662
+ current_version: number;
7663
+ description: string | null;
7664
+ id: string;
7665
+ is_active: boolean;
7666
+ name: string;
7667
+ settings: Json;
7668
+ status: string;
7669
+ strategy_id: string | null;
7670
+ updated_at: string;
7671
+ user_id: string;
7672
+ };
7673
+ Insert: {
7674
+ created_at?: string;
7675
+ current_version?: number;
7676
+ description?: string | null;
7677
+ id?: string;
7678
+ is_active?: boolean;
7679
+ name: string;
7680
+ settings?: Json;
7681
+ status?: string;
7682
+ strategy_id?: string | null;
7683
+ updated_at?: string;
7684
+ user_id?: string;
7685
+ };
7686
+ Update: {
7687
+ created_at?: string;
7688
+ current_version?: number;
7689
+ description?: string | null;
7690
+ id?: string;
7691
+ is_active?: boolean;
7692
+ name?: string;
7693
+ settings?: Json;
7694
+ status?: string;
7695
+ strategy_id?: string | null;
7696
+ updated_at?: string;
7697
+ user_id?: string;
7698
+ };
7699
+ Relationships: [
7700
+ {
7701
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7702
+ columns: ["strategy_id"];
7703
+ isOneToOne: false;
7704
+ referencedRelation: "logistics_strategies";
7705
+ referencedColumns: ["id"];
7706
+ }
7707
+ ];
7708
+ };
7709
+ logistics_rule_versions: {
7710
+ Row: {
7711
+ config_id: string;
7712
+ created_at: string;
7713
+ id: string;
7714
+ label: string | null;
7715
+ note: string | null;
7716
+ settings: Json;
7717
+ status: string;
7718
+ user_id: string;
7719
+ version: number;
7720
+ };
7721
+ Insert: {
7722
+ config_id: string;
7723
+ created_at?: string;
7724
+ id?: string;
7725
+ label?: string | null;
7726
+ note?: string | null;
7727
+ settings?: Json;
7728
+ status?: string;
7729
+ user_id?: string;
7730
+ version: number;
7731
+ };
7732
+ Update: {
7733
+ config_id?: string;
7734
+ created_at?: string;
7735
+ id?: string;
7736
+ label?: string | null;
7737
+ note?: string | null;
7738
+ settings?: Json;
7739
+ status?: string;
7740
+ user_id?: string;
7741
+ version?: number;
7742
+ };
7743
+ Relationships: [
7744
+ {
7745
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7746
+ columns: ["config_id"];
7747
+ isOneToOne: false;
7748
+ referencedRelation: "logistics_rule_configs";
7749
+ referencedColumns: ["id"];
7750
+ }
7751
+ ];
7752
+ };
6973
7753
  logistics_strategies: {
6974
7754
  Row: {
6975
7755
  color: string;
@@ -7101,39 +7881,132 @@ export type Database = {
7101
7881
  };
7102
7882
  Relationships: [];
7103
7883
  };
7104
- mailbox_messages: {
7884
+ mailbox_ai_goal_prompts: {
7105
7885
  Row: {
7106
- body_html: string | null;
7107
- body_text: string | null;
7108
- connection_id: string | null;
7109
7886
  created_at: string;
7110
- error_message: string | null;
7111
- external_id: string | null;
7112
- from_email: string | null;
7113
- from_name: string | null;
7887
+ goal_key: string;
7114
7888
  id: string;
7115
- message_id: string | null;
7116
- profile_id: string | null;
7117
- raw_size: number | null;
7118
- received_at: string | null;
7119
- status: string;
7120
- subject: string | null;
7121
- uid: number | null;
7889
+ system_prompt: string;
7122
7890
  updated_at: string;
7123
7891
  };
7124
7892
  Insert: {
7125
- body_html?: string | null;
7126
- body_text?: string | null;
7127
- connection_id?: string | null;
7128
7893
  created_at?: string;
7129
- error_message?: string | null;
7130
- external_id?: string | null;
7131
- from_email?: string | null;
7132
- from_name?: string | null;
7894
+ goal_key: string;
7133
7895
  id?: string;
7134
- message_id?: string | null;
7135
- profile_id?: string | null;
7136
- raw_size?: number | null;
7896
+ system_prompt?: string;
7897
+ updated_at?: string;
7898
+ };
7899
+ Update: {
7900
+ created_at?: string;
7901
+ goal_key?: string;
7902
+ id?: string;
7903
+ system_prompt?: string;
7904
+ updated_at?: string;
7905
+ };
7906
+ Relationships: [];
7907
+ };
7908
+ mailbox_ai_settings: {
7909
+ Row: {
7910
+ active_goal_key: string | null;
7911
+ created_at: string;
7912
+ enabled: boolean;
7913
+ id: string;
7914
+ required_fields: string[];
7915
+ singleton: boolean;
7916
+ system_prompt: string | null;
7917
+ updated_at: string;
7918
+ };
7919
+ Insert: {
7920
+ active_goal_key?: string | null;
7921
+ created_at?: string;
7922
+ enabled?: boolean;
7923
+ id?: string;
7924
+ required_fields?: string[];
7925
+ singleton?: boolean;
7926
+ system_prompt?: string | null;
7927
+ updated_at?: string;
7928
+ };
7929
+ Update: {
7930
+ active_goal_key?: string | null;
7931
+ created_at?: string;
7932
+ enabled?: boolean;
7933
+ id?: string;
7934
+ required_fields?: string[];
7935
+ singleton?: boolean;
7936
+ system_prompt?: string | null;
7937
+ updated_at?: string;
7938
+ };
7939
+ Relationships: [];
7940
+ };
7941
+ mailbox_ingest_runs: {
7942
+ Row: {
7943
+ connection_id: string | null;
7944
+ error_sample: string | null;
7945
+ errors: number;
7946
+ finished_at: string | null;
7947
+ id: string;
7948
+ inserted: number;
7949
+ processed: number;
7950
+ started_at: string;
7951
+ trigger: string;
7952
+ };
7953
+ Insert: {
7954
+ connection_id?: string | null;
7955
+ error_sample?: string | null;
7956
+ errors?: number;
7957
+ finished_at?: string | null;
7958
+ id?: string;
7959
+ inserted?: number;
7960
+ processed?: number;
7961
+ started_at?: string;
7962
+ trigger: string;
7963
+ };
7964
+ Update: {
7965
+ connection_id?: string | null;
7966
+ error_sample?: string | null;
7967
+ errors?: number;
7968
+ finished_at?: string | null;
7969
+ id?: string;
7970
+ inserted?: number;
7971
+ processed?: number;
7972
+ started_at?: string;
7973
+ trigger?: string;
7974
+ };
7975
+ Relationships: [];
7976
+ };
7977
+ mailbox_messages: {
7978
+ Row: {
7979
+ body_html: string | null;
7980
+ body_text: string | null;
7981
+ connection_id: string | null;
7982
+ created_at: string;
7983
+ error_message: string | null;
7984
+ external_id: string | null;
7985
+ from_email: string | null;
7986
+ from_name: string | null;
7987
+ id: string;
7988
+ message_id: string | null;
7989
+ profile_id: string | null;
7990
+ raw_size: number | null;
7991
+ received_at: string | null;
7992
+ status: string;
7993
+ subject: string | null;
7994
+ uid: number | null;
7995
+ updated_at: string;
7996
+ };
7997
+ Insert: {
7998
+ body_html?: string | null;
7999
+ body_text?: string | null;
8000
+ connection_id?: string | null;
8001
+ created_at?: string;
8002
+ error_message?: string | null;
8003
+ external_id?: string | null;
8004
+ from_email?: string | null;
8005
+ from_name?: string | null;
8006
+ id?: string;
8007
+ message_id?: string | null;
8008
+ profile_id?: string | null;
8009
+ raw_size?: number | null;
7137
8010
  received_at?: string | null;
7138
8011
  status?: string;
7139
8012
  subject?: string | null;
@@ -7185,6 +8058,7 @@ export type Database = {
7185
8058
  };
7186
8059
  mailbox_order_proposals: {
7187
8060
  Row: {
8061
+ ai_validation: Json | null;
7188
8062
  confidence: number | null;
7189
8063
  created_at: string;
7190
8064
  created_order_id: string | null;
@@ -7201,6 +8075,7 @@ export type Database = {
7201
8075
  updated_at: string;
7202
8076
  };
7203
8077
  Insert: {
8078
+ ai_validation?: Json | null;
7204
8079
  confidence?: number | null;
7205
8080
  created_at?: string;
7206
8081
  created_order_id?: string | null;
@@ -7217,6 +8092,7 @@ export type Database = {
7217
8092
  updated_at?: string;
7218
8093
  };
7219
8094
  Update: {
8095
+ ai_validation?: Json | null;
7220
8096
  confidence?: number | null;
7221
8097
  created_at?: string;
7222
8098
  created_order_id?: string | null;
@@ -7359,6 +8235,7 @@ export type Database = {
7359
8235
  created_at: string;
7360
8236
  id: string;
7361
8237
  match_confidence: number | null;
8238
+ plant_type: string | null;
7362
8239
  product_id: string | null;
7363
8240
  proposal_id: string;
7364
8241
  quantity: number | null;
@@ -7371,6 +8248,7 @@ export type Database = {
7371
8248
  created_at?: string;
7372
8249
  id?: string;
7373
8250
  match_confidence?: number | null;
8251
+ plant_type?: string | null;
7374
8252
  product_id?: string | null;
7375
8253
  proposal_id: string;
7376
8254
  quantity?: number | null;
@@ -7383,6 +8261,7 @@ export type Database = {
7383
8261
  created_at?: string;
7384
8262
  id?: string;
7385
8263
  match_confidence?: number | null;
8264
+ plant_type?: string | null;
7386
8265
  product_id?: string | null;
7387
8266
  proposal_id?: string;
7388
8267
  quantity?: number | null;
@@ -7574,6 +8453,39 @@ export type Database = {
7574
8453
  };
7575
8454
  Relationships: [];
7576
8455
  };
8456
+ modules: {
8457
+ Row: {
8458
+ created_at: string;
8459
+ description: string | null;
8460
+ id: string;
8461
+ is_active: boolean;
8462
+ last_seen_at: string | null;
8463
+ module_key: string;
8464
+ module_name: string;
8465
+ updated_at: string;
8466
+ };
8467
+ Insert: {
8468
+ created_at?: string;
8469
+ description?: string | null;
8470
+ id?: string;
8471
+ is_active?: boolean;
8472
+ last_seen_at?: string | null;
8473
+ module_key: string;
8474
+ module_name: string;
8475
+ updated_at?: string;
8476
+ };
8477
+ Update: {
8478
+ created_at?: string;
8479
+ description?: string | null;
8480
+ id?: string;
8481
+ is_active?: boolean;
8482
+ last_seen_at?: string | null;
8483
+ module_key?: string;
8484
+ module_name?: string;
8485
+ updated_at?: string;
8486
+ };
8487
+ Relationships: [];
8488
+ };
7577
8489
  monteurs: {
7578
8490
  Row: {
7579
8491
  avatar_url: string | null;
@@ -8564,9 +9476,12 @@ export type Database = {
8564
9476
  };
8565
9477
  order_items: {
8566
9478
  Row: {
9479
+ crates_per_layer: number | null;
8567
9480
  created_at: string;
8568
9481
  id: string;
9482
+ layers_per_cart: number | null;
8569
9483
  order_id: string;
9484
+ plants_per_crate: number | null;
8570
9485
  product_id: string | null;
8571
9486
  product_name: string;
8572
9487
  quantity: number;
@@ -8574,9 +9489,12 @@ export type Database = {
8574
9489
  unit_price: number | null;
8575
9490
  };
8576
9491
  Insert: {
9492
+ crates_per_layer?: number | null;
8577
9493
  created_at?: string;
8578
9494
  id?: string;
9495
+ layers_per_cart?: number | null;
8579
9496
  order_id: string;
9497
+ plants_per_crate?: number | null;
8580
9498
  product_id?: string | null;
8581
9499
  product_name: string;
8582
9500
  quantity?: number;
@@ -8584,9 +9502,12 @@ export type Database = {
8584
9502
  unit_price?: number | null;
8585
9503
  };
8586
9504
  Update: {
9505
+ crates_per_layer?: number | null;
8587
9506
  created_at?: string;
8588
9507
  id?: string;
9508
+ layers_per_cart?: number | null;
8589
9509
  order_id?: string;
9510
+ plants_per_crate?: number | null;
8590
9511
  product_id?: string | null;
8591
9512
  product_name?: string;
8592
9513
  quantity?: number;
@@ -8850,168 +9771,1409 @@ export type Database = {
8850
9771
  };
8851
9772
  Relationships: [];
8852
9773
  };
8853
- pickstation_print_log: {
9774
+ pick_countries: {
8854
9775
  Row: {
8855
- customer_name: string | null;
8856
- documents: string[];
9776
+ active: boolean;
9777
+ code: string;
9778
+ created_at: string;
9779
+ flag: string | null;
8857
9780
  id: string;
8858
- ip_address: string | null;
8859
- order_id: string;
8860
- order_number: string | null;
8861
- printed_at: string;
9781
+ name: string;
9782
+ sort_order: number;
9783
+ updated_at: string;
8862
9784
  };
8863
9785
  Insert: {
8864
- customer_name?: string | null;
8865
- documents?: string[];
9786
+ active?: boolean;
9787
+ code: string;
9788
+ created_at?: string;
9789
+ flag?: string | null;
8866
9790
  id?: string;
8867
- ip_address?: string | null;
8868
- order_id: string;
8869
- order_number?: string | null;
8870
- printed_at?: string;
9791
+ name: string;
9792
+ sort_order?: number;
9793
+ updated_at?: string;
8871
9794
  };
8872
9795
  Update: {
8873
- customer_name?: string | null;
8874
- documents?: string[];
9796
+ active?: boolean;
9797
+ code?: string;
9798
+ created_at?: string;
9799
+ flag?: string | null;
8875
9800
  id?: string;
8876
- ip_address?: string | null;
8877
- order_id?: string;
8878
- order_number?: string | null;
8879
- printed_at?: string;
9801
+ name?: string;
9802
+ sort_order?: number;
9803
+ updated_at?: string;
8880
9804
  };
8881
9805
  Relationships: [];
8882
9806
  };
8883
- pipeline_settings: {
9807
+ pick_document_statuses: {
8884
9808
  Row: {
9809
+ active: boolean;
9810
+ code: string;
9811
+ color: string | null;
8885
9812
  created_at: string;
8886
9813
  id: string;
8887
- key: string;
9814
+ is_open: boolean;
9815
+ is_terminal: boolean;
9816
+ name: string;
9817
+ sort_order: number;
8888
9818
  updated_at: string;
8889
- value: string | null;
8890
9819
  };
8891
9820
  Insert: {
9821
+ active?: boolean;
9822
+ code: string;
9823
+ color?: string | null;
8892
9824
  created_at?: string;
8893
9825
  id?: string;
8894
- key: string;
9826
+ is_open?: boolean;
9827
+ is_terminal?: boolean;
9828
+ name: string;
9829
+ sort_order?: number;
8895
9830
  updated_at?: string;
8896
- value?: string | null;
8897
9831
  };
8898
9832
  Update: {
9833
+ active?: boolean;
9834
+ code?: string;
9835
+ color?: string | null;
8899
9836
  created_at?: string;
8900
9837
  id?: string;
8901
- key?: string;
9838
+ is_open?: boolean;
9839
+ is_terminal?: boolean;
9840
+ name?: string;
9841
+ sort_order?: number;
8902
9842
  updated_at?: string;
8903
- value?: string | null;
8904
9843
  };
8905
9844
  Relationships: [];
8906
9845
  };
8907
- pipeline_stages: {
9846
+ pick_document_types: {
8908
9847
  Row: {
8909
- automation_type: string;
8910
- color: string;
9848
+ active: boolean;
9849
+ code: string;
9850
+ color: string | null;
8911
9851
  created_at: string;
9852
+ description: string | null;
9853
+ icon: string | null;
8912
9854
  id: string;
8913
- is_active: boolean;
8914
9855
  name: string;
9856
+ print_template: string | null;
9857
+ printer_id: string | null;
9858
+ priority: number;
9859
+ report_key: string | null;
8915
9860
  sort_order: number;
8916
9861
  updated_at: string;
9862
+ workflow: Json;
8917
9863
  };
8918
9864
  Insert: {
8919
- automation_type?: string;
8920
- color?: string;
9865
+ active?: boolean;
9866
+ code: string;
9867
+ color?: string | null;
8921
9868
  created_at?: string;
9869
+ description?: string | null;
9870
+ icon?: string | null;
8922
9871
  id?: string;
8923
- is_active?: boolean;
8924
9872
  name: string;
9873
+ print_template?: string | null;
9874
+ printer_id?: string | null;
9875
+ priority?: number;
9876
+ report_key?: string | null;
8925
9877
  sort_order?: number;
8926
9878
  updated_at?: string;
9879
+ workflow?: Json;
8927
9880
  };
8928
9881
  Update: {
8929
- automation_type?: string;
8930
- color?: string;
9882
+ active?: boolean;
9883
+ code?: string;
9884
+ color?: string | null;
8931
9885
  created_at?: string;
9886
+ description?: string | null;
9887
+ icon?: string | null;
8932
9888
  id?: string;
8933
- is_active?: boolean;
8934
9889
  name?: string;
9890
+ print_template?: string | null;
9891
+ printer_id?: string | null;
9892
+ priority?: number;
9893
+ report_key?: string | null;
8935
9894
  sort_order?: number;
8936
9895
  updated_at?: string;
9896
+ workflow?: Json;
8937
9897
  };
8938
- Relationships: [];
9898
+ Relationships: [
9899
+ {
9900
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9901
+ columns: ["printer_id"];
9902
+ isOneToOne: false;
9903
+ referencedRelation: "pick_station_printers";
9904
+ referencedColumns: ["id"];
9905
+ }
9906
+ ];
9907
+ };
9908
+ pick_queue: {
9909
+ Row: {
9910
+ announced_at: string;
9911
+ assigned_user_id: string | null;
9912
+ barcode: string | null;
9913
+ cancelled_at: string | null;
9914
+ cart_count: number;
9915
+ completed_at: string | null;
9916
+ country_code: string | null;
9917
+ created_at: string;
9918
+ customer_name: string | null;
9919
+ delivery_address: string | null;
9920
+ document_number: string | null;
9921
+ document_type_id: string | null;
9922
+ due_at: string | null;
9923
+ id: string;
9924
+ is_urgent: boolean;
9925
+ line_count: number;
9926
+ order_number: string | null;
9927
+ order_type: string | null;
9928
+ payload: Json;
9929
+ print_count: number;
9930
+ printed_at: string | null;
9931
+ printed_by: string | null;
9932
+ printer_id: string | null;
9933
+ priority: number;
9934
+ reference: string | null;
9935
+ route: string | null;
9936
+ screen_id: string | null;
9937
+ station_id: string | null;
9938
+ status_id: string | null;
9939
+ updated_at: string;
9940
+ warnings: Json;
9941
+ };
9942
+ Insert: {
9943
+ announced_at?: string;
9944
+ assigned_user_id?: string | null;
9945
+ barcode?: string | null;
9946
+ cancelled_at?: string | null;
9947
+ cart_count?: number;
9948
+ completed_at?: string | null;
9949
+ country_code?: string | null;
9950
+ created_at?: string;
9951
+ customer_name?: string | null;
9952
+ delivery_address?: string | null;
9953
+ document_number?: string | null;
9954
+ document_type_id?: string | null;
9955
+ due_at?: string | null;
9956
+ id?: string;
9957
+ is_urgent?: boolean;
9958
+ line_count?: number;
9959
+ order_number?: string | null;
9960
+ order_type?: string | null;
9961
+ payload?: Json;
9962
+ print_count?: number;
9963
+ printed_at?: string | null;
9964
+ printed_by?: string | null;
9965
+ printer_id?: string | null;
9966
+ priority?: number;
9967
+ reference?: string | null;
9968
+ route?: string | null;
9969
+ screen_id?: string | null;
9970
+ station_id?: string | null;
9971
+ status_id?: string | null;
9972
+ updated_at?: string;
9973
+ warnings?: Json;
9974
+ };
9975
+ Update: {
9976
+ announced_at?: string;
9977
+ assigned_user_id?: string | null;
9978
+ barcode?: string | null;
9979
+ cancelled_at?: string | null;
9980
+ cart_count?: number;
9981
+ completed_at?: string | null;
9982
+ country_code?: string | null;
9983
+ created_at?: string;
9984
+ customer_name?: string | null;
9985
+ delivery_address?: string | null;
9986
+ document_number?: string | null;
9987
+ document_type_id?: string | null;
9988
+ due_at?: string | null;
9989
+ id?: string;
9990
+ is_urgent?: boolean;
9991
+ line_count?: number;
9992
+ order_number?: string | null;
9993
+ order_type?: string | null;
9994
+ payload?: Json;
9995
+ print_count?: number;
9996
+ printed_at?: string | null;
9997
+ printed_by?: string | null;
9998
+ printer_id?: string | null;
9999
+ priority?: number;
10000
+ reference?: string | null;
10001
+ route?: string | null;
10002
+ screen_id?: string | null;
10003
+ station_id?: string | null;
10004
+ status_id?: string | null;
10005
+ updated_at?: string;
10006
+ warnings?: Json;
10007
+ };
10008
+ Relationships: [
10009
+ {
10010
+ foreignKeyName: "pick_queue_document_type_id_fkey";
10011
+ columns: ["document_type_id"];
10012
+ isOneToOne: false;
10013
+ referencedRelation: "pick_document_types";
10014
+ referencedColumns: ["id"];
10015
+ },
10016
+ {
10017
+ foreignKeyName: "pick_queue_printer_id_fkey";
10018
+ columns: ["printer_id"];
10019
+ isOneToOne: false;
10020
+ referencedRelation: "pick_station_printers";
10021
+ referencedColumns: ["id"];
10022
+ },
10023
+ {
10024
+ foreignKeyName: "pick_queue_screen_id_fkey";
10025
+ columns: ["screen_id"];
10026
+ isOneToOne: false;
10027
+ referencedRelation: "pick_station_screens";
10028
+ referencedColumns: ["id"];
10029
+ },
10030
+ {
10031
+ foreignKeyName: "pick_queue_station_id_fkey";
10032
+ columns: ["station_id"];
10033
+ isOneToOne: false;
10034
+ referencedRelation: "pick_stations";
10035
+ referencedColumns: ["id"];
10036
+ },
10037
+ {
10038
+ foreignKeyName: "pick_queue_status_id_fkey";
10039
+ columns: ["status_id"];
10040
+ isOneToOne: false;
10041
+ referencedRelation: "pick_document_statuses";
10042
+ referencedColumns: ["id"];
10043
+ }
10044
+ ];
10045
+ };
10046
+ pick_queue_locks: {
10047
+ Row: {
10048
+ expires_at: string;
10049
+ id: string;
10050
+ locked_at: string;
10051
+ locked_by: string | null;
10052
+ queue_item_id: string;
10053
+ screen_id: string | null;
10054
+ session_id: string | null;
10055
+ station_id: string | null;
10056
+ };
10057
+ Insert: {
10058
+ expires_at?: string;
10059
+ id?: string;
10060
+ locked_at?: string;
10061
+ locked_by?: string | null;
10062
+ queue_item_id: string;
10063
+ screen_id?: string | null;
10064
+ session_id?: string | null;
10065
+ station_id?: string | null;
10066
+ };
10067
+ Update: {
10068
+ expires_at?: string;
10069
+ id?: string;
10070
+ locked_at?: string;
10071
+ locked_by?: string | null;
10072
+ queue_item_id?: string;
10073
+ screen_id?: string | null;
10074
+ session_id?: string | null;
10075
+ station_id?: string | null;
10076
+ };
10077
+ Relationships: [
10078
+ {
10079
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
10080
+ columns: ["queue_item_id"];
10081
+ isOneToOne: true;
10082
+ referencedRelation: "pick_queue";
10083
+ referencedColumns: ["id"];
10084
+ },
10085
+ {
10086
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
10087
+ columns: ["screen_id"];
10088
+ isOneToOne: false;
10089
+ referencedRelation: "pick_station_screens";
10090
+ referencedColumns: ["id"];
10091
+ },
10092
+ {
10093
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
10094
+ columns: ["station_id"];
10095
+ isOneToOne: false;
10096
+ referencedRelation: "pick_stations";
10097
+ referencedColumns: ["id"];
10098
+ }
10099
+ ];
10100
+ };
10101
+ pick_screen_document_types: {
10102
+ Row: {
10103
+ created_at: string;
10104
+ document_type_id: string;
10105
+ id: string;
10106
+ print_order: number;
10107
+ printer_id: string | null;
10108
+ screen_id: string;
10109
+ };
10110
+ Insert: {
10111
+ created_at?: string;
10112
+ document_type_id: string;
10113
+ id?: string;
10114
+ print_order?: number;
10115
+ printer_id?: string | null;
10116
+ screen_id: string;
10117
+ };
10118
+ Update: {
10119
+ created_at?: string;
10120
+ document_type_id?: string;
10121
+ id?: string;
10122
+ print_order?: number;
10123
+ printer_id?: string | null;
10124
+ screen_id?: string;
10125
+ };
10126
+ Relationships: [
10127
+ {
10128
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
10129
+ columns: ["document_type_id"];
10130
+ isOneToOne: false;
10131
+ referencedRelation: "pick_document_types";
10132
+ referencedColumns: ["id"];
10133
+ },
10134
+ {
10135
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
10136
+ columns: ["printer_id"];
10137
+ isOneToOne: false;
10138
+ referencedRelation: "pick_station_printers";
10139
+ referencedColumns: ["id"];
10140
+ },
10141
+ {
10142
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
10143
+ columns: ["screen_id"];
10144
+ isOneToOne: false;
10145
+ referencedRelation: "pick_station_screens";
10146
+ referencedColumns: ["id"];
10147
+ }
10148
+ ];
10149
+ };
10150
+ pick_station_heartbeats: {
10151
+ Row: {
10152
+ browser: string | null;
10153
+ created_at: string;
10154
+ id: string;
10155
+ ip_address: string | null;
10156
+ last_seen_at: string;
10157
+ screen_id: string | null;
10158
+ session_id: string;
10159
+ station_id: string;
10160
+ user_id: string | null;
10161
+ };
10162
+ Insert: {
10163
+ browser?: string | null;
10164
+ created_at?: string;
10165
+ id?: string;
10166
+ ip_address?: string | null;
10167
+ last_seen_at?: string;
10168
+ screen_id?: string | null;
10169
+ session_id: string;
10170
+ station_id: string;
10171
+ user_id?: string | null;
10172
+ };
10173
+ Update: {
10174
+ browser?: string | null;
10175
+ created_at?: string;
10176
+ id?: string;
10177
+ ip_address?: string | null;
10178
+ last_seen_at?: string;
10179
+ screen_id?: string | null;
10180
+ session_id?: string;
10181
+ station_id?: string;
10182
+ user_id?: string | null;
10183
+ };
10184
+ Relationships: [
10185
+ {
10186
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
10187
+ columns: ["screen_id"];
10188
+ isOneToOne: false;
10189
+ referencedRelation: "pick_station_screens";
10190
+ referencedColumns: ["id"];
10191
+ },
10192
+ {
10193
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
10194
+ columns: ["station_id"];
10195
+ isOneToOne: false;
10196
+ referencedRelation: "pick_stations";
10197
+ referencedColumns: ["id"];
10198
+ }
10199
+ ];
10200
+ };
10201
+ pick_station_history: {
10202
+ Row: {
10203
+ action: string;
10204
+ changed_by: string | null;
10205
+ created_at: string;
10206
+ entity_id: string;
10207
+ entity_table: string;
10208
+ id: string;
10209
+ new_data: Json | null;
10210
+ old_data: Json | null;
10211
+ };
10212
+ Insert: {
10213
+ action: string;
10214
+ changed_by?: string | null;
10215
+ created_at?: string;
10216
+ entity_id: string;
10217
+ entity_table: string;
10218
+ id?: string;
10219
+ new_data?: Json | null;
10220
+ old_data?: Json | null;
10221
+ };
10222
+ Update: {
10223
+ action?: string;
10224
+ changed_by?: string | null;
10225
+ created_at?: string;
10226
+ entity_id?: string;
10227
+ entity_table?: string;
10228
+ id?: string;
10229
+ new_data?: Json | null;
10230
+ old_data?: Json | null;
10231
+ };
10232
+ Relationships: [];
10233
+ };
10234
+ pick_station_logs: {
10235
+ Row: {
10236
+ action: string;
10237
+ browser: string | null;
10238
+ created_at: string;
10239
+ detail: Json;
10240
+ duration_ms: number | null;
10241
+ id: string;
10242
+ ip_address: string | null;
10243
+ printer_id: string | null;
10244
+ queue_item_id: string | null;
10245
+ screen_id: string | null;
10246
+ session_id: string | null;
10247
+ station_id: string | null;
10248
+ user_id: string | null;
10249
+ };
10250
+ Insert: {
10251
+ action: string;
10252
+ browser?: string | null;
10253
+ created_at?: string;
10254
+ detail?: Json;
10255
+ duration_ms?: number | null;
10256
+ id?: string;
10257
+ ip_address?: string | null;
10258
+ printer_id?: string | null;
10259
+ queue_item_id?: string | null;
10260
+ screen_id?: string | null;
10261
+ session_id?: string | null;
10262
+ station_id?: string | null;
10263
+ user_id?: string | null;
10264
+ };
10265
+ Update: {
10266
+ action?: string;
10267
+ browser?: string | null;
10268
+ created_at?: string;
10269
+ detail?: Json;
10270
+ duration_ms?: number | null;
10271
+ id?: string;
10272
+ ip_address?: string | null;
10273
+ printer_id?: string | null;
10274
+ queue_item_id?: string | null;
10275
+ screen_id?: string | null;
10276
+ session_id?: string | null;
10277
+ station_id?: string | null;
10278
+ user_id?: string | null;
10279
+ };
10280
+ Relationships: [];
10281
+ };
10282
+ pick_station_permissions: {
10283
+ Row: {
10284
+ can_break_lock: boolean;
10285
+ can_cancel: boolean;
10286
+ can_print: boolean;
10287
+ can_reprint: boolean;
10288
+ country_code: string | null;
10289
+ created_at: string;
10290
+ id: string;
10291
+ station_id: string | null;
10292
+ task_id: string | null;
10293
+ updated_at: string;
10294
+ urgent_only: boolean;
10295
+ user_id: string;
10296
+ };
10297
+ Insert: {
10298
+ can_break_lock?: boolean;
10299
+ can_cancel?: boolean;
10300
+ can_print?: boolean;
10301
+ can_reprint?: boolean;
10302
+ country_code?: string | null;
10303
+ created_at?: string;
10304
+ id?: string;
10305
+ station_id?: string | null;
10306
+ task_id?: string | null;
10307
+ updated_at?: string;
10308
+ urgent_only?: boolean;
10309
+ user_id: string;
10310
+ };
10311
+ Update: {
10312
+ can_break_lock?: boolean;
10313
+ can_cancel?: boolean;
10314
+ can_print?: boolean;
10315
+ can_reprint?: boolean;
10316
+ country_code?: string | null;
10317
+ created_at?: string;
10318
+ id?: string;
10319
+ station_id?: string | null;
10320
+ task_id?: string | null;
10321
+ updated_at?: string;
10322
+ urgent_only?: boolean;
10323
+ user_id?: string;
10324
+ };
10325
+ Relationships: [
10326
+ {
10327
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
10328
+ columns: ["station_id"];
10329
+ isOneToOne: false;
10330
+ referencedRelation: "pick_stations";
10331
+ referencedColumns: ["id"];
10332
+ },
10333
+ {
10334
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
10335
+ columns: ["task_id"];
10336
+ isOneToOne: false;
10337
+ referencedRelation: "pick_station_tasks";
10338
+ referencedColumns: ["id"];
10339
+ }
10340
+ ];
10341
+ };
10342
+ pick_station_printers: {
10343
+ Row: {
10344
+ active: boolean;
10345
+ code: string | null;
10346
+ config: Json;
10347
+ connection: string | null;
10348
+ created_at: string;
10349
+ id: string;
10350
+ last_seen_at: string | null;
10351
+ location: string | null;
10352
+ name: string;
10353
+ status: string;
10354
+ status_message: string | null;
10355
+ target: string | null;
10356
+ updated_at: string;
10357
+ };
10358
+ Insert: {
10359
+ active?: boolean;
10360
+ code?: string | null;
10361
+ config?: Json;
10362
+ connection?: string | null;
10363
+ created_at?: string;
10364
+ id?: string;
10365
+ last_seen_at?: string | null;
10366
+ location?: string | null;
10367
+ name: string;
10368
+ status?: string;
10369
+ status_message?: string | null;
10370
+ target?: string | null;
10371
+ updated_at?: string;
10372
+ };
10373
+ Update: {
10374
+ active?: boolean;
10375
+ code?: string | null;
10376
+ config?: Json;
10377
+ connection?: string | null;
10378
+ created_at?: string;
10379
+ id?: string;
10380
+ last_seen_at?: string | null;
10381
+ location?: string | null;
10382
+ name?: string;
10383
+ status?: string;
10384
+ status_message?: string | null;
10385
+ target?: string | null;
10386
+ updated_at?: string;
10387
+ };
10388
+ Relationships: [];
10389
+ };
10390
+ pick_station_screens: {
10391
+ Row: {
10392
+ active: boolean;
10393
+ config: Json;
10394
+ created_at: string;
10395
+ description: string | null;
10396
+ filters: Json;
10397
+ id: string;
10398
+ name: string;
10399
+ printer_id: string | null;
10400
+ screen_type: string;
10401
+ sort_order: number;
10402
+ sort_rules: Json | null;
10403
+ station_id: string;
10404
+ updated_at: string;
10405
+ };
10406
+ Insert: {
10407
+ active?: boolean;
10408
+ config?: Json;
10409
+ created_at?: string;
10410
+ description?: string | null;
10411
+ filters?: Json;
10412
+ id?: string;
10413
+ name: string;
10414
+ printer_id?: string | null;
10415
+ screen_type?: string;
10416
+ sort_order?: number;
10417
+ sort_rules?: Json | null;
10418
+ station_id: string;
10419
+ updated_at?: string;
10420
+ };
10421
+ Update: {
10422
+ active?: boolean;
10423
+ config?: Json;
10424
+ created_at?: string;
10425
+ description?: string | null;
10426
+ filters?: Json;
10427
+ id?: string;
10428
+ name?: string;
10429
+ printer_id?: string | null;
10430
+ screen_type?: string;
10431
+ sort_order?: number;
10432
+ sort_rules?: Json | null;
10433
+ station_id?: string;
10434
+ updated_at?: string;
10435
+ };
10436
+ Relationships: [
10437
+ {
10438
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
10439
+ columns: ["printer_id"];
10440
+ isOneToOne: false;
10441
+ referencedRelation: "pick_station_printers";
10442
+ referencedColumns: ["id"];
10443
+ },
10444
+ {
10445
+ foreignKeyName: "pick_station_screens_station_id_fkey";
10446
+ columns: ["station_id"];
10447
+ isOneToOne: false;
10448
+ referencedRelation: "pick_stations";
10449
+ referencedColumns: ["id"];
10450
+ }
10451
+ ];
10452
+ };
10453
+ pick_station_tasks: {
10454
+ Row: {
10455
+ active: boolean;
10456
+ code: string;
10457
+ color: string | null;
10458
+ created_at: string;
10459
+ description: string | null;
10460
+ icon: string | null;
10461
+ id: string;
10462
+ name: string;
10463
+ sort_order: number;
10464
+ updated_at: string;
10465
+ workflow: Json;
10466
+ };
10467
+ Insert: {
10468
+ active?: boolean;
10469
+ code: string;
10470
+ color?: string | null;
10471
+ created_at?: string;
10472
+ description?: string | null;
10473
+ icon?: string | null;
10474
+ id?: string;
10475
+ name: string;
10476
+ sort_order?: number;
10477
+ updated_at?: string;
10478
+ workflow?: Json;
10479
+ };
10480
+ Update: {
10481
+ active?: boolean;
10482
+ code?: string;
10483
+ color?: string | null;
10484
+ created_at?: string;
10485
+ description?: string | null;
10486
+ icon?: string | null;
10487
+ id?: string;
10488
+ name?: string;
10489
+ sort_order?: number;
10490
+ updated_at?: string;
10491
+ workflow?: Json;
10492
+ };
10493
+ Relationships: [];
10494
+ };
10495
+ pick_station_types: {
10496
+ Row: {
10497
+ active: boolean;
10498
+ code: string;
10499
+ color: string | null;
10500
+ created_at: string;
10501
+ description: string | null;
10502
+ icon: string | null;
10503
+ id: string;
10504
+ name: string;
10505
+ sort_order: number;
10506
+ updated_at: string;
10507
+ };
10508
+ Insert: {
10509
+ active?: boolean;
10510
+ code: string;
10511
+ color?: string | null;
10512
+ created_at?: string;
10513
+ description?: string | null;
10514
+ icon?: string | null;
10515
+ id?: string;
10516
+ name: string;
10517
+ sort_order?: number;
10518
+ updated_at?: string;
10519
+ };
10520
+ Update: {
10521
+ active?: boolean;
10522
+ code?: string;
10523
+ color?: string | null;
10524
+ created_at?: string;
10525
+ description?: string | null;
10526
+ icon?: string | null;
10527
+ id?: string;
10528
+ name?: string;
10529
+ sort_order?: number;
10530
+ updated_at?: string;
10531
+ };
10532
+ Relationships: [];
10533
+ };
10534
+ pick_station_users: {
10535
+ Row: {
10536
+ active: boolean;
10537
+ created_at: string;
10538
+ id: string;
10539
+ station_id: string;
10540
+ user_id: string;
10541
+ };
10542
+ Insert: {
10543
+ active?: boolean;
10544
+ created_at?: string;
10545
+ id?: string;
10546
+ station_id: string;
10547
+ user_id: string;
10548
+ };
10549
+ Update: {
10550
+ active?: boolean;
10551
+ created_at?: string;
10552
+ id?: string;
10553
+ station_id?: string;
10554
+ user_id?: string;
10555
+ };
10556
+ Relationships: [
10557
+ {
10558
+ foreignKeyName: "pick_station_users_station_id_fkey";
10559
+ columns: ["station_id"];
10560
+ isOneToOne: false;
10561
+ referencedRelation: "pick_stations";
10562
+ referencedColumns: ["id"];
10563
+ }
10564
+ ];
10565
+ };
10566
+ pick_stations: {
10567
+ Row: {
10568
+ active: boolean;
10569
+ allow_multi_screen: boolean;
10570
+ color: string | null;
10571
+ created_at: string;
10572
+ default_printer_id: string | null;
10573
+ department: string | null;
10574
+ description: string | null;
10575
+ icon: string | null;
10576
+ id: string;
10577
+ location: string | null;
10578
+ lock_timeout_seconds: number;
10579
+ name: string;
10580
+ require_country_selection: boolean;
10581
+ sort_order: number;
10582
+ sort_rules: Json;
10583
+ task_id: string | null;
10584
+ type_id: string | null;
10585
+ updated_at: string;
10586
+ };
10587
+ Insert: {
10588
+ active?: boolean;
10589
+ allow_multi_screen?: boolean;
10590
+ color?: string | null;
10591
+ created_at?: string;
10592
+ default_printer_id?: string | null;
10593
+ department?: string | null;
10594
+ description?: string | null;
10595
+ icon?: string | null;
10596
+ id?: string;
10597
+ location?: string | null;
10598
+ lock_timeout_seconds?: number;
10599
+ name: string;
10600
+ require_country_selection?: boolean;
10601
+ sort_order?: number;
10602
+ sort_rules?: Json;
10603
+ task_id?: string | null;
10604
+ type_id?: string | null;
10605
+ updated_at?: string;
10606
+ };
10607
+ Update: {
10608
+ active?: boolean;
10609
+ allow_multi_screen?: boolean;
10610
+ color?: string | null;
10611
+ created_at?: string;
10612
+ default_printer_id?: string | null;
10613
+ department?: string | null;
10614
+ description?: string | null;
10615
+ icon?: string | null;
10616
+ id?: string;
10617
+ location?: string | null;
10618
+ lock_timeout_seconds?: number;
10619
+ name?: string;
10620
+ require_country_selection?: boolean;
10621
+ sort_order?: number;
10622
+ sort_rules?: Json;
10623
+ task_id?: string | null;
10624
+ type_id?: string | null;
10625
+ updated_at?: string;
10626
+ };
10627
+ Relationships: [
10628
+ {
10629
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10630
+ columns: ["default_printer_id"];
10631
+ isOneToOne: false;
10632
+ referencedRelation: "pick_station_printers";
10633
+ referencedColumns: ["id"];
10634
+ },
10635
+ {
10636
+ foreignKeyName: "pick_stations_task_id_fkey";
10637
+ columns: ["task_id"];
10638
+ isOneToOne: false;
10639
+ referencedRelation: "pick_station_tasks";
10640
+ referencedColumns: ["id"];
10641
+ },
10642
+ {
10643
+ foreignKeyName: "pick_stations_type_id_fkey";
10644
+ columns: ["type_id"];
10645
+ isOneToOne: false;
10646
+ referencedRelation: "pick_station_types";
10647
+ referencedColumns: ["id"];
10648
+ }
10649
+ ];
10650
+ };
10651
+ pick_task_document_types: {
10652
+ Row: {
10653
+ created_at: string;
10654
+ document_type_id: string;
10655
+ id: string;
10656
+ task_id: string;
10657
+ };
10658
+ Insert: {
10659
+ created_at?: string;
10660
+ document_type_id: string;
10661
+ id?: string;
10662
+ task_id: string;
10663
+ };
10664
+ Update: {
10665
+ created_at?: string;
10666
+ document_type_id?: string;
10667
+ id?: string;
10668
+ task_id?: string;
10669
+ };
10670
+ Relationships: [
10671
+ {
10672
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10673
+ columns: ["document_type_id"];
10674
+ isOneToOne: false;
10675
+ referencedRelation: "pick_document_types";
10676
+ referencedColumns: ["id"];
10677
+ },
10678
+ {
10679
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10680
+ columns: ["task_id"];
10681
+ isOneToOne: false;
10682
+ referencedRelation: "pick_station_tasks";
10683
+ referencedColumns: ["id"];
10684
+ }
10685
+ ];
10686
+ };
10687
+ pickstation_print_log: {
10688
+ Row: {
10689
+ customer_name: string | null;
10690
+ documents: string[];
10691
+ id: string;
10692
+ ip_address: string | null;
10693
+ order_id: string;
10694
+ order_number: string | null;
10695
+ printed_at: string;
10696
+ };
10697
+ Insert: {
10698
+ customer_name?: string | null;
10699
+ documents?: string[];
10700
+ id?: string;
10701
+ ip_address?: string | null;
10702
+ order_id: string;
10703
+ order_number?: string | null;
10704
+ printed_at?: string;
10705
+ };
10706
+ Update: {
10707
+ customer_name?: string | null;
10708
+ documents?: string[];
10709
+ id?: string;
10710
+ ip_address?: string | null;
10711
+ order_id?: string;
10712
+ order_number?: string | null;
10713
+ printed_at?: string;
10714
+ };
10715
+ Relationships: [];
10716
+ };
10717
+ pipeline_settings: {
10718
+ Row: {
10719
+ created_at: string;
10720
+ id: string;
10721
+ key: string;
10722
+ updated_at: string;
10723
+ value: string | null;
10724
+ };
10725
+ Insert: {
10726
+ created_at?: string;
10727
+ id?: string;
10728
+ key: string;
10729
+ updated_at?: string;
10730
+ value?: string | null;
10731
+ };
10732
+ Update: {
10733
+ created_at?: string;
10734
+ id?: string;
10735
+ key?: string;
10736
+ updated_at?: string;
10737
+ value?: string | null;
10738
+ };
10739
+ Relationships: [];
10740
+ };
10741
+ pipeline_stages: {
10742
+ Row: {
10743
+ automation_type: string;
10744
+ color: string;
10745
+ created_at: string;
10746
+ id: string;
10747
+ is_active: boolean;
10748
+ name: string;
10749
+ sort_order: number;
10750
+ updated_at: string;
10751
+ };
10752
+ Insert: {
10753
+ automation_type?: string;
10754
+ color?: string;
10755
+ created_at?: string;
10756
+ id?: string;
10757
+ is_active?: boolean;
10758
+ name: string;
10759
+ sort_order?: number;
10760
+ updated_at?: string;
10761
+ };
10762
+ Update: {
10763
+ automation_type?: string;
10764
+ color?: string;
10765
+ created_at?: string;
10766
+ id?: string;
10767
+ is_active?: boolean;
10768
+ name?: string;
10769
+ sort_order?: number;
10770
+ updated_at?: string;
10771
+ };
10772
+ Relationships: [];
10773
+ };
10774
+ planning_item_assistants: {
10775
+ Row: {
10776
+ created_at: string;
10777
+ created_by: string | null;
10778
+ monteur_id: string;
10779
+ planning_item_id: string;
10780
+ };
10781
+ Insert: {
10782
+ created_at?: string;
10783
+ created_by?: string | null;
10784
+ monteur_id: string;
10785
+ planning_item_id: string;
10786
+ };
10787
+ Update: {
10788
+ created_at?: string;
10789
+ created_by?: string | null;
10790
+ monteur_id?: string;
10791
+ planning_item_id?: string;
10792
+ };
10793
+ Relationships: [
10794
+ {
10795
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
10796
+ columns: ["planning_item_id"];
10797
+ isOneToOne: false;
10798
+ referencedRelation: "planning_items";
10799
+ referencedColumns: ["id"];
10800
+ }
10801
+ ];
10802
+ };
10803
+ planning_items: {
10804
+ Row: {
10805
+ assigned_monteur_id: string;
10806
+ created_at: string;
10807
+ created_by: string | null;
10808
+ end_at: string;
10809
+ id: string;
10810
+ notes: string | null;
10811
+ start_at: string;
10812
+ status: Database["public"]["Enums"]["planning_item_status"];
10813
+ updated_at: string;
10814
+ werkbon_id: string;
10815
+ };
10816
+ Insert: {
10817
+ assigned_monteur_id: string;
10818
+ created_at?: string;
10819
+ created_by?: string | null;
10820
+ end_at: string;
10821
+ id?: string;
10822
+ notes?: string | null;
10823
+ start_at: string;
10824
+ status?: Database["public"]["Enums"]["planning_item_status"];
10825
+ updated_at?: string;
10826
+ werkbon_id: string;
10827
+ };
10828
+ Update: {
10829
+ assigned_monteur_id?: string;
10830
+ created_at?: string;
10831
+ created_by?: string | null;
10832
+ end_at?: string;
10833
+ id?: string;
10834
+ notes?: string | null;
10835
+ start_at?: string;
10836
+ status?: Database["public"]["Enums"]["planning_item_status"];
10837
+ updated_at?: string;
10838
+ werkbon_id?: string;
10839
+ };
10840
+ Relationships: [
10841
+ {
10842
+ foreignKeyName: "planning_items_werkbon_id_fkey";
10843
+ columns: ["werkbon_id"];
10844
+ isOneToOne: false;
10845
+ referencedRelation: "werkbonnen";
10846
+ referencedColumns: ["id"];
10847
+ }
10848
+ ];
10849
+ };
10850
+ print_job_logs: {
10851
+ Row: {
10852
+ created_at: string;
10853
+ detail: string;
10854
+ gebeurtenis: string;
10855
+ id: string;
10856
+ job_id: string;
10857
+ };
10858
+ Insert: {
10859
+ created_at?: string;
10860
+ detail?: string;
10861
+ gebeurtenis: string;
10862
+ id?: string;
10863
+ job_id: string;
10864
+ };
10865
+ Update: {
10866
+ created_at?: string;
10867
+ detail?: string;
10868
+ gebeurtenis?: string;
10869
+ id?: string;
10870
+ job_id?: string;
10871
+ };
10872
+ Relationships: [
10873
+ {
10874
+ foreignKeyName: "print_job_logs_job_id_fkey";
10875
+ columns: ["job_id"];
10876
+ isOneToOne: false;
10877
+ referencedRelation: "print_jobs";
10878
+ referencedColumns: ["id"];
10879
+ }
10880
+ ];
10881
+ };
10882
+ print_jobs: {
10883
+ Row: {
10884
+ bron_job_id: string | null;
10885
+ created_at: string;
10886
+ documentnaam: string;
10887
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
10888
+ foutmelding: string | null;
10889
+ gebruiker_id: string | null;
10890
+ gebruiker_naam: string;
10891
+ gestart_op: string | null;
10892
+ id: string;
10893
+ is_herprint: boolean;
10894
+ kopieen: number;
10895
+ layout_id: string | null;
10896
+ paginas: number;
10897
+ payload: Json;
10898
+ printer_id: string | null;
10899
+ status: Database["public"]["Enums"]["print_job_status"];
10900
+ updated_at: string;
10901
+ voltooid_op: string | null;
10902
+ };
10903
+ Insert: {
10904
+ bron_job_id?: string | null;
10905
+ created_at?: string;
10906
+ documentnaam?: string;
10907
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10908
+ foutmelding?: string | null;
10909
+ gebruiker_id?: string | null;
10910
+ gebruiker_naam?: string;
10911
+ gestart_op?: string | null;
10912
+ id?: string;
10913
+ is_herprint?: boolean;
10914
+ kopieen?: number;
10915
+ layout_id?: string | null;
10916
+ paginas?: number;
10917
+ payload?: Json;
10918
+ printer_id?: string | null;
10919
+ status?: Database["public"]["Enums"]["print_job_status"];
10920
+ updated_at?: string;
10921
+ voltooid_op?: string | null;
10922
+ };
10923
+ Update: {
10924
+ bron_job_id?: string | null;
10925
+ created_at?: string;
10926
+ documentnaam?: string;
10927
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10928
+ foutmelding?: string | null;
10929
+ gebruiker_id?: string | null;
10930
+ gebruiker_naam?: string;
10931
+ gestart_op?: string | null;
10932
+ id?: string;
10933
+ is_herprint?: boolean;
10934
+ kopieen?: number;
10935
+ layout_id?: string | null;
10936
+ paginas?: number;
10937
+ payload?: Json;
10938
+ printer_id?: string | null;
10939
+ status?: Database["public"]["Enums"]["print_job_status"];
10940
+ updated_at?: string;
10941
+ voltooid_op?: string | null;
10942
+ };
10943
+ Relationships: [
10944
+ {
10945
+ foreignKeyName: "print_jobs_layout_id_fkey";
10946
+ columns: ["layout_id"];
10947
+ isOneToOne: false;
10948
+ referencedRelation: "document_layouts";
10949
+ referencedColumns: ["id"];
10950
+ },
10951
+ {
10952
+ foreignKeyName: "print_jobs_printer_id_fkey";
10953
+ columns: ["printer_id"];
10954
+ isOneToOne: false;
10955
+ referencedRelation: "printers";
10956
+ referencedColumns: ["id"];
10957
+ }
10958
+ ];
10959
+ };
10960
+ print_rules: {
10961
+ Row: {
10962
+ actief: boolean;
10963
+ alleen_eerste_keer: boolean;
10964
+ conditie: Json;
10965
+ created_at: string;
10966
+ id: string;
10967
+ kopieen: number;
10968
+ layout_id: string;
10969
+ naam: string;
10970
+ printer_id: string | null;
10971
+ updated_at: string;
10972
+ volgorde: number;
10973
+ };
10974
+ Insert: {
10975
+ actief?: boolean;
10976
+ alleen_eerste_keer?: boolean;
10977
+ conditie?: Json;
10978
+ created_at?: string;
10979
+ id?: string;
10980
+ kopieen?: number;
10981
+ layout_id: string;
10982
+ naam?: string;
10983
+ printer_id?: string | null;
10984
+ updated_at?: string;
10985
+ volgorde?: number;
10986
+ };
10987
+ Update: {
10988
+ actief?: boolean;
10989
+ alleen_eerste_keer?: boolean;
10990
+ conditie?: Json;
10991
+ created_at?: string;
10992
+ id?: string;
10993
+ kopieen?: number;
10994
+ layout_id?: string;
10995
+ naam?: string;
10996
+ printer_id?: string | null;
10997
+ updated_at?: string;
10998
+ volgorde?: number;
10999
+ };
11000
+ Relationships: [
11001
+ {
11002
+ foreignKeyName: "print_rules_layout_id_fkey";
11003
+ columns: ["layout_id"];
11004
+ isOneToOne: false;
11005
+ referencedRelation: "document_layouts";
11006
+ referencedColumns: ["id"];
11007
+ },
11008
+ {
11009
+ foreignKeyName: "print_rules_printer_id_fkey";
11010
+ columns: ["printer_id"];
11011
+ isOneToOne: false;
11012
+ referencedRelation: "printers";
11013
+ referencedColumns: ["id"];
11014
+ }
11015
+ ];
11016
+ };
11017
+ printer_mappings: {
11018
+ Row: {
11019
+ created_at: string;
11020
+ id: string;
11021
+ layout_id: string;
11022
+ printer_id: string;
11023
+ prioriteit: number;
11024
+ updated_at: string;
11025
+ };
11026
+ Insert: {
11027
+ created_at?: string;
11028
+ id?: string;
11029
+ layout_id: string;
11030
+ printer_id: string;
11031
+ prioriteit?: number;
11032
+ updated_at?: string;
11033
+ };
11034
+ Update: {
11035
+ created_at?: string;
11036
+ id?: string;
11037
+ layout_id?: string;
11038
+ printer_id?: string;
11039
+ prioriteit?: number;
11040
+ updated_at?: string;
11041
+ };
11042
+ Relationships: [
11043
+ {
11044
+ foreignKeyName: "printer_mappings_layout_id_fkey";
11045
+ columns: ["layout_id"];
11046
+ isOneToOne: false;
11047
+ referencedRelation: "document_layouts";
11048
+ referencedColumns: ["id"];
11049
+ },
11050
+ {
11051
+ foreignKeyName: "printer_mappings_printer_id_fkey";
11052
+ columns: ["printer_id"];
11053
+ isOneToOne: false;
11054
+ referencedRelation: "printers";
11055
+ referencedColumns: ["id"];
11056
+ }
11057
+ ];
8939
11058
  };
8940
- planning_item_assistants: {
11059
+ printer_profiles: {
8941
11060
  Row: {
11061
+ auto_schalen: boolean;
8942
11062
  created_at: string;
8943
- created_by: string | null;
8944
- monteur_id: string;
8945
- planning_item_id: string;
11063
+ duplex: boolean;
11064
+ id: string;
11065
+ is_standaard: boolean;
11066
+ kleur: boolean;
11067
+ kopieen: number;
11068
+ label_gap: number;
11069
+ naam: string;
11070
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
11071
+ papierlade: string;
11072
+ printer_id: string;
11073
+ resolutie: number;
11074
+ snijden: boolean;
11075
+ updated_at: string;
8946
11076
  };
8947
11077
  Insert: {
11078
+ auto_schalen?: boolean;
8948
11079
  created_at?: string;
8949
- created_by?: string | null;
8950
- monteur_id: string;
8951
- planning_item_id: string;
11080
+ duplex?: boolean;
11081
+ id?: string;
11082
+ is_standaard?: boolean;
11083
+ kleur?: boolean;
11084
+ kopieen?: number;
11085
+ label_gap?: number;
11086
+ naam?: string;
11087
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
11088
+ papierlade?: string;
11089
+ printer_id: string;
11090
+ resolutie?: number;
11091
+ snijden?: boolean;
11092
+ updated_at?: string;
8952
11093
  };
8953
11094
  Update: {
11095
+ auto_schalen?: boolean;
8954
11096
  created_at?: string;
8955
- created_by?: string | null;
8956
- monteur_id?: string;
8957
- planning_item_id?: string;
11097
+ duplex?: boolean;
11098
+ id?: string;
11099
+ is_standaard?: boolean;
11100
+ kleur?: boolean;
11101
+ kopieen?: number;
11102
+ label_gap?: number;
11103
+ naam?: string;
11104
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
11105
+ papierlade?: string;
11106
+ printer_id?: string;
11107
+ resolutie?: number;
11108
+ snijden?: boolean;
11109
+ updated_at?: string;
8958
11110
  };
8959
11111
  Relationships: [
8960
11112
  {
8961
- foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8962
- columns: ["planning_item_id"];
11113
+ foreignKeyName: "printer_profiles_printer_id_fkey";
11114
+ columns: ["printer_id"];
8963
11115
  isOneToOne: false;
8964
- referencedRelation: "planning_items";
11116
+ referencedRelation: "printers";
8965
11117
  referencedColumns: ["id"];
8966
11118
  }
8967
11119
  ];
8968
11120
  };
8969
- planning_items: {
11121
+ printers: {
8970
11122
  Row: {
8971
- assigned_monteur_id: string;
11123
+ actief: boolean;
8972
11124
  created_at: string;
8973
- created_by: string | null;
8974
- end_at: string;
11125
+ driver: string;
8975
11126
  id: string;
8976
- notes: string | null;
8977
- start_at: string;
8978
- status: Database["public"]["Enums"]["planning_item_status"];
11127
+ ip_adres: string | null;
11128
+ laatst_gezien: string | null;
11129
+ locatie: string;
11130
+ merk: string;
11131
+ naam: string;
11132
+ omschrijving: string;
11133
+ online: boolean;
11134
+ papierformaat: string;
11135
+ poort: number | null;
11136
+ soort: Database["public"]["Enums"]["printer_kind"];
8979
11137
  updated_at: string;
8980
- werkbon_id: string;
11138
+ verbinding: Database["public"]["Enums"]["printer_connection"];
8981
11139
  };
8982
11140
  Insert: {
8983
- assigned_monteur_id: string;
11141
+ actief?: boolean;
8984
11142
  created_at?: string;
8985
- created_by?: string | null;
8986
- end_at: string;
11143
+ driver?: string;
8987
11144
  id?: string;
8988
- notes?: string | null;
8989
- start_at: string;
8990
- status?: Database["public"]["Enums"]["planning_item_status"];
11145
+ ip_adres?: string | null;
11146
+ laatst_gezien?: string | null;
11147
+ locatie?: string;
11148
+ merk?: string;
11149
+ naam: string;
11150
+ omschrijving?: string;
11151
+ online?: boolean;
11152
+ papierformaat?: string;
11153
+ poort?: number | null;
11154
+ soort?: Database["public"]["Enums"]["printer_kind"];
8991
11155
  updated_at?: string;
8992
- werkbon_id: string;
11156
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
8993
11157
  };
8994
11158
  Update: {
8995
- assigned_monteur_id?: string;
11159
+ actief?: boolean;
8996
11160
  created_at?: string;
8997
- created_by?: string | null;
8998
- end_at?: string;
11161
+ driver?: string;
8999
11162
  id?: string;
9000
- notes?: string | null;
9001
- start_at?: string;
9002
- status?: Database["public"]["Enums"]["planning_item_status"];
11163
+ ip_adres?: string | null;
11164
+ laatst_gezien?: string | null;
11165
+ locatie?: string;
11166
+ merk?: string;
11167
+ naam?: string;
11168
+ omschrijving?: string;
11169
+ online?: boolean;
11170
+ papierformaat?: string;
11171
+ poort?: number | null;
11172
+ soort?: Database["public"]["Enums"]["printer_kind"];
9003
11173
  updated_at?: string;
9004
- werkbon_id?: string;
11174
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
9005
11175
  };
9006
- Relationships: [
9007
- {
9008
- foreignKeyName: "planning_items_werkbon_id_fkey";
9009
- columns: ["werkbon_id"];
9010
- isOneToOne: false;
9011
- referencedRelation: "werkbonnen";
9012
- referencedColumns: ["id"];
9013
- }
9014
- ];
11176
+ Relationships: [];
9015
11177
  };
9016
11178
  product_bom_items: {
9017
11179
  Row: {
@@ -10943,7 +13105,7 @@ export type Database = {
10943
13105
  is_active: boolean;
10944
13106
  label: string | null;
10945
13107
  office_code: string | null;
10946
- redirect_uri: string;
13108
+ redirect_uri: string | null;
10947
13109
  updated_at: string;
10948
13110
  user_id: string;
10949
13111
  };
@@ -10959,7 +13121,7 @@ export type Database = {
10959
13121
  is_active?: boolean;
10960
13122
  label?: string | null;
10961
13123
  office_code?: string | null;
10962
- redirect_uri: string;
13124
+ redirect_uri?: string | null;
10963
13125
  updated_at?: string;
10964
13126
  user_id: string;
10965
13127
  };
@@ -10975,7 +13137,7 @@ export type Database = {
10975
13137
  is_active?: boolean;
10976
13138
  label?: string | null;
10977
13139
  office_code?: string | null;
10978
- redirect_uri?: string;
13140
+ redirect_uri?: string | null;
10979
13141
  updated_at?: string;
10980
13142
  user_id?: string;
10981
13143
  };
@@ -11430,12 +13592,15 @@ export type Database = {
11430
13592
  currency: string | null;
11431
13593
  customer_code: string | null;
11432
13594
  data: Json;
13595
+ deleted_at: string | null;
11433
13596
  due_date: string | null;
11434
13597
  fetched_at: string;
11435
13598
  invoice_date: string | null;
11436
13599
  invoice_number: string;
13600
+ lines_fetched_at: string | null;
11437
13601
  modified_at: string | null;
11438
13602
  outstanding_amount: number | null;
13603
+ paid_at: string | null;
11439
13604
  status: string | null;
11440
13605
  status_label: string | null;
11441
13606
  total_excl: number | null;
@@ -11447,12 +13612,15 @@ export type Database = {
11447
13612
  currency?: string | null;
11448
13613
  customer_code?: string | null;
11449
13614
  data?: Json;
13615
+ deleted_at?: string | null;
11450
13616
  due_date?: string | null;
11451
13617
  fetched_at?: string;
11452
13618
  invoice_date?: string | null;
11453
13619
  invoice_number: string;
13620
+ lines_fetched_at?: string | null;
11454
13621
  modified_at?: string | null;
11455
13622
  outstanding_amount?: number | null;
13623
+ paid_at?: string | null;
11456
13624
  status?: string | null;
11457
13625
  status_label?: string | null;
11458
13626
  total_excl?: number | null;
@@ -11464,12 +13632,15 @@ export type Database = {
11464
13632
  currency?: string | null;
11465
13633
  customer_code?: string | null;
11466
13634
  data?: Json;
13635
+ deleted_at?: string | null;
11467
13636
  due_date?: string | null;
11468
13637
  fetched_at?: string;
11469
13638
  invoice_date?: string | null;
11470
13639
  invoice_number?: string;
13640
+ lines_fetched_at?: string | null;
11471
13641
  modified_at?: string | null;
11472
13642
  outstanding_amount?: number | null;
13643
+ paid_at?: string | null;
11473
13644
  status?: string | null;
11474
13645
  status_label?: string | null;
11475
13646
  total_excl?: number | null;
@@ -11579,6 +13750,27 @@ export type Database = {
11579
13750
  };
11580
13751
  Relationships: [];
11581
13752
  };
13753
+ twinfield_revoked_accounts: {
13754
+ Row: {
13755
+ account_key: string;
13756
+ last_revoke_error: string | null;
13757
+ revoked_at: string;
13758
+ user_id: string;
13759
+ };
13760
+ Insert: {
13761
+ account_key: string;
13762
+ last_revoke_error?: string | null;
13763
+ revoked_at?: string;
13764
+ user_id: string;
13765
+ };
13766
+ Update: {
13767
+ account_key?: string;
13768
+ last_revoke_error?: string | null;
13769
+ revoked_at?: string;
13770
+ user_id?: string;
13771
+ };
13772
+ Relationships: [];
13773
+ };
11582
13774
  twinfield_session_cache: {
11583
13775
  Row: {
11584
13776
  cluster: string;
@@ -11685,6 +13877,48 @@ export type Database = {
11685
13877
  }
11686
13878
  ];
11687
13879
  };
13880
+ voorraad_custom_fields: {
13881
+ Row: {
13882
+ created_at: string;
13883
+ field_key: string;
13884
+ field_label: string;
13885
+ field_type: string;
13886
+ id: string;
13887
+ options: string[];
13888
+ show_in_columns: boolean;
13889
+ show_in_detail: boolean;
13890
+ show_in_template: boolean;
13891
+ sort_order: number;
13892
+ updated_at: string;
13893
+ };
13894
+ Insert: {
13895
+ created_at?: string;
13896
+ field_key: string;
13897
+ field_label: string;
13898
+ field_type?: string;
13899
+ id?: string;
13900
+ options?: string[];
13901
+ show_in_columns?: boolean;
13902
+ show_in_detail?: boolean;
13903
+ show_in_template?: boolean;
13904
+ sort_order?: number;
13905
+ updated_at?: string;
13906
+ };
13907
+ Update: {
13908
+ created_at?: string;
13909
+ field_key?: string;
13910
+ field_label?: string;
13911
+ field_type?: string;
13912
+ id?: string;
13913
+ options?: string[];
13914
+ show_in_columns?: boolean;
13915
+ show_in_detail?: boolean;
13916
+ show_in_template?: boolean;
13917
+ sort_order?: number;
13918
+ updated_at?: string;
13919
+ };
13920
+ Relationships: [];
13921
+ };
11688
13922
  voorraad_media_upload_failures: {
11689
13923
  Row: {
11690
13924
  action: string;
@@ -12362,6 +14596,9 @@ export type Database = {
12362
14596
  status: string | null;
12363
14597
  token_expires_at: string | null;
12364
14598
  updated_at: string | null;
14599
+ webhook_last_attempt_at: string | null;
14600
+ webhook_last_error: string | null;
14601
+ webhook_status: string | null;
12365
14602
  };
12366
14603
  Insert: {
12367
14604
  account_email?: string | null;
@@ -12396,6 +14633,9 @@ export type Database = {
12396
14633
  status?: string | null;
12397
14634
  token_expires_at?: string | null;
12398
14635
  updated_at?: string | null;
14636
+ webhook_last_attempt_at?: string | null;
14637
+ webhook_last_error?: string | null;
14638
+ webhook_status?: string | null;
12399
14639
  };
12400
14640
  Update: {
12401
14641
  account_email?: string | null;
@@ -12430,6 +14670,9 @@ export type Database = {
12430
14670
  status?: string | null;
12431
14671
  token_expires_at?: string | null;
12432
14672
  updated_at?: string | null;
14673
+ webhook_last_attempt_at?: string | null;
14674
+ webhook_last_error?: string | null;
14675
+ webhook_status?: string | null;
12433
14676
  };
12434
14677
  Relationships: [];
12435
14678
  };
@@ -12716,6 +14959,81 @@ export type Database = {
12716
14959
  }
12717
14960
  ];
12718
14961
  };
14962
+ v_external_customers_local: {
14963
+ Row: {
14964
+ city: string | null;
14965
+ commercial_name: string | null;
14966
+ company_name: string | null;
14967
+ connection_id: string | null;
14968
+ contact_person: string | null;
14969
+ country: string | null;
14970
+ email: string | null;
14971
+ external_id: string | null;
14972
+ fetched_at: string | null;
14973
+ gln: string | null;
14974
+ house_number: string | null;
14975
+ is_active: boolean | null;
14976
+ is_deleted: boolean | null;
14977
+ logo_url: string | null;
14978
+ phone: string | null;
14979
+ postal_code: string | null;
14980
+ provider: string | null;
14981
+ raw: Json | null;
14982
+ status: string | null;
14983
+ street: string | null;
14984
+ vat_number: string | null;
14985
+ website: string | null;
14986
+ };
14987
+ Insert: {
14988
+ city?: string | null;
14989
+ commercial_name?: string | null;
14990
+ company_name?: string | null;
14991
+ connection_id?: never;
14992
+ contact_person?: string | null;
14993
+ country?: string | null;
14994
+ email?: string | null;
14995
+ external_id?: never;
14996
+ fetched_at?: never;
14997
+ gln?: string | null;
14998
+ house_number?: string | null;
14999
+ is_active?: never;
15000
+ is_deleted?: never;
15001
+ logo_url?: string | null;
15002
+ phone?: string | null;
15003
+ postal_code?: string | null;
15004
+ provider?: never;
15005
+ raw?: never;
15006
+ status?: string | null;
15007
+ street?: string | null;
15008
+ vat_number?: string | null;
15009
+ website?: string | null;
15010
+ };
15011
+ Update: {
15012
+ city?: string | null;
15013
+ commercial_name?: string | null;
15014
+ company_name?: string | null;
15015
+ connection_id?: never;
15016
+ contact_person?: string | null;
15017
+ country?: string | null;
15018
+ email?: string | null;
15019
+ external_id?: never;
15020
+ fetched_at?: never;
15021
+ gln?: string | null;
15022
+ house_number?: string | null;
15023
+ is_active?: never;
15024
+ is_deleted?: never;
15025
+ logo_url?: string | null;
15026
+ phone?: string | null;
15027
+ postal_code?: string | null;
15028
+ provider?: never;
15029
+ raw?: never;
15030
+ status?: string | null;
15031
+ street?: string | null;
15032
+ vat_number?: string | null;
15033
+ website?: string | null;
15034
+ };
15035
+ Relationships: [];
15036
+ };
12719
15037
  v_external_customers_twinfield: {
12720
15038
  Row: {
12721
15039
  city: string | null;
@@ -13650,6 +15968,170 @@ export type Database = {
13650
15968
  };
13651
15969
  Returns: string;
13652
15970
  };
15971
+ pick_claim_document: {
15972
+ Args: {
15973
+ _queue_item_id: string;
15974
+ _screen_id: string;
15975
+ _session_id: string;
15976
+ _station_id: string;
15977
+ _timeout_seconds?: number;
15978
+ };
15979
+ Returns: {
15980
+ announced_at: string;
15981
+ assigned_user_id: string | null;
15982
+ barcode: string | null;
15983
+ cancelled_at: string | null;
15984
+ cart_count: number;
15985
+ completed_at: string | null;
15986
+ country_code: string | null;
15987
+ created_at: string;
15988
+ customer_name: string | null;
15989
+ delivery_address: string | null;
15990
+ document_number: string | null;
15991
+ document_type_id: string | null;
15992
+ due_at: string | null;
15993
+ id: string;
15994
+ is_urgent: boolean;
15995
+ line_count: number;
15996
+ order_number: string | null;
15997
+ order_type: string | null;
15998
+ payload: Json;
15999
+ print_count: number;
16000
+ printed_at: string | null;
16001
+ printed_by: string | null;
16002
+ printer_id: string | null;
16003
+ priority: number;
16004
+ reference: string | null;
16005
+ route: string | null;
16006
+ screen_id: string | null;
16007
+ station_id: string | null;
16008
+ status_id: string | null;
16009
+ updated_at: string;
16010
+ warnings: Json;
16011
+ };
16012
+ SetofOptions: {
16013
+ from: "*";
16014
+ to: "pick_queue";
16015
+ isOneToOne: true;
16016
+ isSetofReturn: false;
16017
+ };
16018
+ };
16019
+ pick_claim_next_document: {
16020
+ Args: {
16021
+ _country_code: string;
16022
+ _screen_id: string;
16023
+ _session_id: string;
16024
+ _station_id: string;
16025
+ _timeout_seconds?: number;
16026
+ };
16027
+ Returns: {
16028
+ announced_at: string;
16029
+ assigned_user_id: string | null;
16030
+ barcode: string | null;
16031
+ cancelled_at: string | null;
16032
+ cart_count: number;
16033
+ completed_at: string | null;
16034
+ country_code: string | null;
16035
+ created_at: string;
16036
+ customer_name: string | null;
16037
+ delivery_address: string | null;
16038
+ document_number: string | null;
16039
+ document_type_id: string | null;
16040
+ due_at: string | null;
16041
+ id: string;
16042
+ is_urgent: boolean;
16043
+ line_count: number;
16044
+ order_number: string | null;
16045
+ order_type: string | null;
16046
+ payload: Json;
16047
+ print_count: number;
16048
+ printed_at: string | null;
16049
+ printed_by: string | null;
16050
+ printer_id: string | null;
16051
+ priority: number;
16052
+ reference: string | null;
16053
+ route: string | null;
16054
+ screen_id: string | null;
16055
+ station_id: string | null;
16056
+ status_id: string | null;
16057
+ updated_at: string;
16058
+ warnings: Json;
16059
+ };
16060
+ SetofOptions: {
16061
+ from: "*";
16062
+ to: "pick_queue";
16063
+ isOneToOne: true;
16064
+ isSetofReturn: false;
16065
+ };
16066
+ };
16067
+ pick_complete_print: {
16068
+ Args: {
16069
+ _printer_id: string;
16070
+ _queue_item_id: string;
16071
+ _session_id: string;
16072
+ };
16073
+ Returns: {
16074
+ announced_at: string;
16075
+ assigned_user_id: string | null;
16076
+ barcode: string | null;
16077
+ cancelled_at: string | null;
16078
+ cart_count: number;
16079
+ completed_at: string | null;
16080
+ country_code: string | null;
16081
+ created_at: string;
16082
+ customer_name: string | null;
16083
+ delivery_address: string | null;
16084
+ document_number: string | null;
16085
+ document_type_id: string | null;
16086
+ due_at: string | null;
16087
+ id: string;
16088
+ is_urgent: boolean;
16089
+ line_count: number;
16090
+ order_number: string | null;
16091
+ order_type: string | null;
16092
+ payload: Json;
16093
+ print_count: number;
16094
+ printed_at: string | null;
16095
+ printed_by: string | null;
16096
+ printer_id: string | null;
16097
+ priority: number;
16098
+ reference: string | null;
16099
+ route: string | null;
16100
+ screen_id: string | null;
16101
+ station_id: string | null;
16102
+ status_id: string | null;
16103
+ updated_at: string;
16104
+ warnings: Json;
16105
+ };
16106
+ SetofOptions: {
16107
+ from: "*";
16108
+ to: "pick_queue";
16109
+ isOneToOne: true;
16110
+ isSetofReturn: false;
16111
+ };
16112
+ };
16113
+ pick_release_expired_locks: {
16114
+ Args: never;
16115
+ Returns: number;
16116
+ };
16117
+ pick_release_lock: {
16118
+ Args: {
16119
+ _queue_item_id: string;
16120
+ };
16121
+ Returns: undefined;
16122
+ };
16123
+ pick_station_dashboard: {
16124
+ Args: never;
16125
+ Returns: {
16126
+ active: number;
16127
+ active_sessions: number;
16128
+ avg_wait_seconds: number;
16129
+ done_today: number;
16130
+ station_id: string;
16131
+ station_name: string;
16132
+ waiting: number;
16133
+ }[];
16134
+ };
13653
16135
  pickstation_get_orders_raw: {
13654
16136
  Args: never;
13655
16137
  Returns: Json;
@@ -13751,6 +16233,13 @@ export type Database = {
13751
16233
  };
13752
16234
  Returns: number;
13753
16235
  };
16236
+ release_debtor_lock: {
16237
+ Args: {
16238
+ _group_key: string;
16239
+ _user_id: string;
16240
+ };
16241
+ Returns: boolean;
16242
+ };
13754
16243
  reorder_customer_price_groups: {
13755
16244
  Args: {
13756
16245
  _ids: string[];
@@ -14130,6 +16619,20 @@ export type Database = {
14130
16619
  };
14131
16620
  Returns: undefined;
14132
16621
  };
16622
+ try_debtor_lock: {
16623
+ Args: {
16624
+ _group_key: string;
16625
+ _user_id: string;
16626
+ };
16627
+ Returns: boolean;
16628
+ };
16629
+ twinfield_register_cron: {
16630
+ Args: {
16631
+ apikey: string;
16632
+ base_url: string;
16633
+ };
16634
+ Returns: Json;
16635
+ };
14133
16636
  twinfield_upsert_connection_by_account_key: {
14134
16637
  Args: {
14135
16638
  p_account_key: string;
@@ -14156,12 +16659,18 @@ export type Database = {
14156
16659
  };
14157
16660
  };
14158
16661
  Enums: {
16662
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
14159
16663
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16664
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16665
+ doc_orientation: "portrait" | "landscape";
14160
16666
  exact_env: "staging" | "live";
14161
16667
  exact_push_status: "pending" | "sent" | "error";
14162
16668
  itk_customer_segment: "Business" | "Private";
14163
16669
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
14164
16670
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16671
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16672
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16673
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
14165
16674
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
14166
16675
  };
14167
16676
  CompositeTypes: {
@@ -14221,12 +16730,18 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
14221
16730
  export declare const Constants: {
14222
16731
  readonly public: {
14223
16732
  readonly Enums: {
16733
+ readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
14224
16734
  readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
16735
+ readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
16736
+ readonly doc_orientation: readonly ["portrait", "landscape"];
14225
16737
  readonly exact_env: readonly ["staging", "live"];
14226
16738
  readonly exact_push_status: readonly ["pending", "sent", "error"];
14227
16739
  readonly itk_customer_segment: readonly ["Business", "Private"];
14228
16740
  readonly itk_dynamic_field_type: readonly ["text", "select", "date", "checkbox"];
14229
16741
  readonly planning_item_status: readonly ["gepland", "bezig", "afgerond", "geannuleerd", "concept", "vrijgegeven"];
16742
+ readonly print_job_status: readonly ["wachtend", "bezig", "voltooid", "mislukt", "geannuleerd"];
16743
+ readonly printer_connection: readonly ["ipp", "raw9100", "printnode", "cups", "usb", "windows", "airprint", "cloud"];
16744
+ readonly printer_kind: readonly ["labelprinter", "laserprinter", "inkjet", "thermal", "kantoorprinter", "overig"];
14230
16745
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
14231
16746
  };
14232
16747
  };