@flowselections/floriday-afhandeling-module 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts +2 -0
  2. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/NieuweVervoerderPage.js +5 -0
  4. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts +4 -0
  5. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.js +5 -0
  7. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  8. package/dist-lib/index.d.ts +2 -0
  9. package/dist-lib/index.d.ts.map +1 -1
  10. package/dist-lib/index.js +2 -0
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2578 -143
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +2578 -143
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.server.d.ts +2578 -143
  16. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/types.d.ts +2642 -127
  18. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.js +49 -0
  20. package/dist-lib/lib/afhandelingSettings.functions.d.ts +14153 -9283
  21. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/carriers.functions.d.ts +25813 -13638
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartAssignments.functions.d.ts +25813 -13638
  25. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartControl.functions.d.ts +24566 -216
  27. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.d.ts +2578 -143
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +20344 -10604
  31. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +2578 -143
  33. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +14175 -9305
  35. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +42220 -22740
  37. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +20344 -10604
  39. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  40. package/package.json +6 -50
@@ -394,6 +394,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
394
394
  };
395
395
  Relationships: [];
396
396
  };
397
+ ai_layout_imports: {
398
+ Row: {
399
+ analyse_json: import("./types").Json;
400
+ bestand_url: string | null;
401
+ bestandsnaam: string;
402
+ bevestigd: boolean;
403
+ created_at: string;
404
+ created_by: string | null;
405
+ foutmelding: string | null;
406
+ id: string;
407
+ layout_id: string | null;
408
+ mime_type: string;
409
+ onzekere_velden: import("./types").Json;
410
+ status: Database["public"]["Enums"]["ai_import_status"];
411
+ updated_at: string;
412
+ voorstel: import("./types").Json;
413
+ };
414
+ Insert: {
415
+ analyse_json?: import("./types").Json;
416
+ bestand_url?: string | null;
417
+ bestandsnaam?: string;
418
+ bevestigd?: boolean;
419
+ created_at?: string;
420
+ created_by?: string | null;
421
+ foutmelding?: string | null;
422
+ id?: string;
423
+ layout_id?: string | null;
424
+ mime_type?: string;
425
+ onzekere_velden?: import("./types").Json;
426
+ status?: Database["public"]["Enums"]["ai_import_status"];
427
+ updated_at?: string;
428
+ voorstel?: import("./types").Json;
429
+ };
430
+ Update: {
431
+ analyse_json?: import("./types").Json;
432
+ bestand_url?: string | null;
433
+ bestandsnaam?: string;
434
+ bevestigd?: boolean;
435
+ created_at?: string;
436
+ created_by?: string | null;
437
+ foutmelding?: string | null;
438
+ id?: string;
439
+ layout_id?: string | null;
440
+ mime_type?: string;
441
+ onzekere_velden?: import("./types").Json;
442
+ status?: Database["public"]["Enums"]["ai_import_status"];
443
+ updated_at?: string;
444
+ voorstel?: import("./types").Json;
445
+ };
446
+ Relationships: [{
447
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
448
+ columns: ["layout_id"];
449
+ isOneToOne: false;
450
+ referencedRelation: "document_layouts";
451
+ referencedColumns: ["id"];
452
+ }];
453
+ };
397
454
  ai_model_pricing: {
398
455
  Row: {
399
456
  created_at: string;
@@ -484,6 +541,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
484
541
  created_at: string;
485
542
  credential_id: string;
486
543
  id: string;
544
+ is_default: boolean;
545
+ label: string | null;
487
546
  model_id: string;
488
547
  notes: string | null;
489
548
  updated_at: string;
@@ -493,6 +552,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
493
552
  created_at?: string;
494
553
  credential_id: string;
495
554
  id?: string;
555
+ is_default?: boolean;
556
+ label?: string | null;
496
557
  model_id: string;
497
558
  notes?: string | null;
498
559
  updated_at?: string;
@@ -502,6 +563,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
502
563
  created_at?: string;
503
564
  credential_id?: string;
504
565
  id?: string;
566
+ is_default?: boolean;
567
+ label?: string | null;
505
568
  model_id?: string;
506
569
  notes?: string | null;
507
570
  updated_at?: string;
@@ -520,6 +583,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
520
583
  referencedColumns: ["id"];
521
584
  }];
522
585
  };
586
+ ai_modules: {
587
+ Row: {
588
+ ai_enabled: boolean;
589
+ created_at: string;
590
+ id: string;
591
+ module_key: string;
592
+ module_name: string;
593
+ updated_at: string;
594
+ };
595
+ Insert: {
596
+ ai_enabled?: boolean;
597
+ created_at?: string;
598
+ id?: string;
599
+ module_key: string;
600
+ module_name: string;
601
+ updated_at?: string;
602
+ };
603
+ Update: {
604
+ ai_enabled?: boolean;
605
+ created_at?: string;
606
+ id?: string;
607
+ module_key?: string;
608
+ module_name?: string;
609
+ updated_at?: string;
610
+ };
611
+ Relationships: [{
612
+ foreignKeyName: "ai_modules_module_key_fkey";
613
+ columns: ["module_key"];
614
+ isOneToOne: true;
615
+ referencedRelation: "modules";
616
+ referencedColumns: ["module_key"];
617
+ }];
618
+ };
523
619
  ai_providers: {
524
620
  Row: {
525
621
  active: boolean;
@@ -1262,6 +1358,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1262
1358
  require_same_crate_type: boolean;
1263
1359
  require_same_delivery_date: boolean;
1264
1360
  require_same_delivery_location: boolean;
1361
+ uniform_pick_time: boolean;
1362
+ uniform_pick_time_seconds: number;
1265
1363
  updated_at: string;
1266
1364
  updated_by: string | null;
1267
1365
  };
@@ -1286,6 +1384,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1286
1384
  require_same_crate_type?: boolean;
1287
1385
  require_same_delivery_date?: boolean;
1288
1386
  require_same_delivery_location?: boolean;
1387
+ uniform_pick_time?: boolean;
1388
+ uniform_pick_time_seconds?: number;
1289
1389
  updated_at?: string;
1290
1390
  updated_by?: string | null;
1291
1391
  };
@@ -1310,6 +1410,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1310
1410
  require_same_crate_type?: boolean;
1311
1411
  require_same_delivery_date?: boolean;
1312
1412
  require_same_delivery_location?: boolean;
1413
+ uniform_pick_time?: boolean;
1414
+ uniform_pick_time_seconds?: number;
1313
1415
  updated_at?: string;
1314
1416
  updated_by?: string | null;
1315
1417
  };
@@ -2443,6 +2545,351 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2443
2545
  };
2444
2546
  Relationships: [];
2445
2547
  };
2548
+ document_formaat_printers: {
2549
+ Row: {
2550
+ created_at: string;
2551
+ documenttype: string;
2552
+ formaat_code: string;
2553
+ id: string;
2554
+ printer_id: string | null;
2555
+ updated_at: string;
2556
+ };
2557
+ Insert: {
2558
+ created_at?: string;
2559
+ documenttype: string;
2560
+ formaat_code: string;
2561
+ id?: string;
2562
+ printer_id?: string | null;
2563
+ updated_at?: string;
2564
+ };
2565
+ Update: {
2566
+ created_at?: string;
2567
+ documenttype?: string;
2568
+ formaat_code?: string;
2569
+ id?: string;
2570
+ printer_id?: string | null;
2571
+ updated_at?: string;
2572
+ };
2573
+ Relationships: [{
2574
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2575
+ columns: ["printer_id"];
2576
+ isOneToOne: false;
2577
+ referencedRelation: "printers";
2578
+ referencedColumns: ["id"];
2579
+ }];
2580
+ };
2581
+ document_layout_conditions: {
2582
+ Row: {
2583
+ created_at: string;
2584
+ element_key: string;
2585
+ id: string;
2586
+ layout_id: string;
2587
+ operator: string;
2588
+ updated_at: string;
2589
+ veld: string;
2590
+ waarde: string;
2591
+ };
2592
+ Insert: {
2593
+ created_at?: string;
2594
+ element_key: string;
2595
+ id?: string;
2596
+ layout_id: string;
2597
+ operator?: string;
2598
+ updated_at?: string;
2599
+ veld: string;
2600
+ waarde?: string;
2601
+ };
2602
+ Update: {
2603
+ created_at?: string;
2604
+ element_key?: string;
2605
+ id?: string;
2606
+ layout_id?: string;
2607
+ operator?: string;
2608
+ updated_at?: string;
2609
+ veld?: string;
2610
+ waarde?: string;
2611
+ };
2612
+ Relationships: [{
2613
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2614
+ columns: ["layout_id"];
2615
+ isOneToOne: false;
2616
+ referencedRelation: "document_layouts";
2617
+ referencedColumns: ["id"];
2618
+ }];
2619
+ };
2620
+ document_layout_datasources: {
2621
+ Row: {
2622
+ alias: string;
2623
+ created_at: string;
2624
+ entiteit: string;
2625
+ filter: import("./types").Json;
2626
+ id: string;
2627
+ layout_id: string;
2628
+ module_id: string;
2629
+ updated_at: string;
2630
+ };
2631
+ Insert: {
2632
+ alias?: string;
2633
+ created_at?: string;
2634
+ entiteit: string;
2635
+ filter?: import("./types").Json;
2636
+ id?: string;
2637
+ layout_id: string;
2638
+ module_id: string;
2639
+ updated_at?: string;
2640
+ };
2641
+ Update: {
2642
+ alias?: string;
2643
+ created_at?: string;
2644
+ entiteit?: string;
2645
+ filter?: import("./types").Json;
2646
+ id?: string;
2647
+ layout_id?: string;
2648
+ module_id?: string;
2649
+ updated_at?: string;
2650
+ };
2651
+ Relationships: [{
2652
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2653
+ columns: ["layout_id"];
2654
+ isOneToOne: false;
2655
+ referencedRelation: "document_layouts";
2656
+ referencedColumns: ["id"];
2657
+ }];
2658
+ };
2659
+ document_layout_elements: {
2660
+ Row: {
2661
+ breedte: number;
2662
+ config: import("./types").Json;
2663
+ content: string;
2664
+ created_at: string;
2665
+ element_key: string;
2666
+ hoogte: number;
2667
+ id: string;
2668
+ layout_id: string;
2669
+ logo_id: string | null;
2670
+ parent_key: string | null;
2671
+ rotatie: number;
2672
+ stijl: import("./types").Json;
2673
+ type: string;
2674
+ updated_at: string;
2675
+ veldpad: string | null;
2676
+ verborgen: boolean;
2677
+ vergrendeld: boolean;
2678
+ volgorde: number;
2679
+ x: number;
2680
+ y: number;
2681
+ z_index: number;
2682
+ };
2683
+ Insert: {
2684
+ breedte?: number;
2685
+ config?: import("./types").Json;
2686
+ content?: string;
2687
+ created_at?: string;
2688
+ element_key: string;
2689
+ hoogte?: number;
2690
+ id?: string;
2691
+ layout_id: string;
2692
+ logo_id?: string | null;
2693
+ parent_key?: string | null;
2694
+ rotatie?: number;
2695
+ stijl?: import("./types").Json;
2696
+ type: string;
2697
+ updated_at?: string;
2698
+ veldpad?: string | null;
2699
+ verborgen?: boolean;
2700
+ vergrendeld?: boolean;
2701
+ volgorde?: number;
2702
+ x?: number;
2703
+ y?: number;
2704
+ z_index?: number;
2705
+ };
2706
+ Update: {
2707
+ breedte?: number;
2708
+ config?: import("./types").Json;
2709
+ content?: string;
2710
+ created_at?: string;
2711
+ element_key?: string;
2712
+ hoogte?: number;
2713
+ id?: string;
2714
+ layout_id?: string;
2715
+ logo_id?: string | null;
2716
+ parent_key?: string | null;
2717
+ rotatie?: number;
2718
+ stijl?: import("./types").Json;
2719
+ type?: string;
2720
+ updated_at?: string;
2721
+ veldpad?: string | null;
2722
+ verborgen?: boolean;
2723
+ vergrendeld?: boolean;
2724
+ volgorde?: number;
2725
+ x?: number;
2726
+ y?: number;
2727
+ z_index?: number;
2728
+ };
2729
+ Relationships: [{
2730
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2731
+ columns: ["layout_id"];
2732
+ isOneToOne: false;
2733
+ referencedRelation: "document_layouts";
2734
+ referencedColumns: ["id"];
2735
+ }, {
2736
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2737
+ columns: ["logo_id"];
2738
+ isOneToOne: false;
2739
+ referencedRelation: "layout_logos";
2740
+ referencedColumns: ["id"];
2741
+ }];
2742
+ };
2743
+ document_layout_variables: {
2744
+ Row: {
2745
+ created_at: string;
2746
+ expressie: string;
2747
+ id: string;
2748
+ layout_id: string;
2749
+ naam: string;
2750
+ omschrijving: string;
2751
+ updated_at: string;
2752
+ };
2753
+ Insert: {
2754
+ created_at?: string;
2755
+ expressie?: string;
2756
+ id?: string;
2757
+ layout_id: string;
2758
+ naam: string;
2759
+ omschrijving?: string;
2760
+ updated_at?: string;
2761
+ };
2762
+ Update: {
2763
+ created_at?: string;
2764
+ expressie?: string;
2765
+ id?: string;
2766
+ layout_id?: string;
2767
+ naam?: string;
2768
+ omschrijving?: string;
2769
+ updated_at?: string;
2770
+ };
2771
+ Relationships: [{
2772
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2773
+ columns: ["layout_id"];
2774
+ isOneToOne: false;
2775
+ referencedRelation: "document_layouts";
2776
+ referencedColumns: ["id"];
2777
+ }];
2778
+ };
2779
+ document_layout_versions: {
2780
+ Row: {
2781
+ commentaar: string;
2782
+ created_at: string;
2783
+ created_by: string | null;
2784
+ elements: import("./types").Json;
2785
+ id: string;
2786
+ layout_id: string;
2787
+ page_settings: import("./types").Json;
2788
+ updated_at: string;
2789
+ versienummer: number;
2790
+ };
2791
+ Insert: {
2792
+ commentaar?: string;
2793
+ created_at?: string;
2794
+ created_by?: string | null;
2795
+ elements?: import("./types").Json;
2796
+ id?: string;
2797
+ layout_id: string;
2798
+ page_settings?: import("./types").Json;
2799
+ updated_at?: string;
2800
+ versienummer: number;
2801
+ };
2802
+ Update: {
2803
+ commentaar?: string;
2804
+ created_at?: string;
2805
+ created_by?: string | null;
2806
+ elements?: import("./types").Json;
2807
+ id?: string;
2808
+ layout_id?: string;
2809
+ page_settings?: import("./types").Json;
2810
+ updated_at?: string;
2811
+ versienummer?: number;
2812
+ };
2813
+ Relationships: [{
2814
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2815
+ columns: ["layout_id"];
2816
+ isOneToOne: false;
2817
+ referencedRelation: "document_layouts";
2818
+ referencedColumns: ["id"];
2819
+ }];
2820
+ };
2821
+ document_layouts: {
2822
+ Row: {
2823
+ actief: boolean;
2824
+ breedte_mm: number;
2825
+ config: import("./types").Json;
2826
+ created_at: string;
2827
+ created_by: string | null;
2828
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
2829
+ hoogte_mm: number;
2830
+ huidige_versie: number;
2831
+ id: string;
2832
+ is_standaard: boolean;
2833
+ marge_boven: number;
2834
+ marge_links: number;
2835
+ marge_onder: number;
2836
+ marge_rechts: number;
2837
+ naam: string;
2838
+ omschrijving: string;
2839
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
2840
+ page_settings: import("./types").Json;
2841
+ papierformaat: string;
2842
+ thumbnail_url: string | null;
2843
+ updated_at: string;
2844
+ };
2845
+ Insert: {
2846
+ actief?: boolean;
2847
+ breedte_mm?: number;
2848
+ config?: import("./types").Json;
2849
+ created_at?: string;
2850
+ created_by?: string | null;
2851
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2852
+ hoogte_mm?: number;
2853
+ huidige_versie?: number;
2854
+ id?: string;
2855
+ is_standaard?: boolean;
2856
+ marge_boven?: number;
2857
+ marge_links?: number;
2858
+ marge_onder?: number;
2859
+ marge_rechts?: number;
2860
+ naam: string;
2861
+ omschrijving?: string;
2862
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2863
+ page_settings?: import("./types").Json;
2864
+ papierformaat?: string;
2865
+ thumbnail_url?: string | null;
2866
+ updated_at?: string;
2867
+ };
2868
+ Update: {
2869
+ actief?: boolean;
2870
+ breedte_mm?: number;
2871
+ config?: import("./types").Json;
2872
+ created_at?: string;
2873
+ created_by?: string | null;
2874
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2875
+ hoogte_mm?: number;
2876
+ huidige_versie?: number;
2877
+ id?: string;
2878
+ is_standaard?: boolean;
2879
+ marge_boven?: number;
2880
+ marge_links?: number;
2881
+ marge_onder?: number;
2882
+ marge_rechts?: number;
2883
+ naam?: string;
2884
+ omschrijving?: string;
2885
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2886
+ page_settings?: import("./types").Json;
2887
+ papierformaat?: string;
2888
+ thumbnail_url?: string | null;
2889
+ updated_at?: string;
2890
+ };
2891
+ Relationships: [];
2892
+ };
2446
2893
  email_auth_connections: {
2447
2894
  Row: {
2448
2895
  access_token_encrypted: string | null;
@@ -2482,6 +2929,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2482
2929
  status: string;
2483
2930
  token_expires_at: string | null;
2484
2931
  updated_at: string;
2932
+ watch_scope: string;
2933
+ webhook_last_attempt_at: string | null;
2934
+ webhook_last_error: string | null;
2935
+ webhook_status: string;
2485
2936
  };
2486
2937
  Insert: {
2487
2938
  access_token_encrypted?: string | null;
@@ -2521,6 +2972,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2521
2972
  status?: string;
2522
2973
  token_expires_at?: string | null;
2523
2974
  updated_at?: string;
2975
+ watch_scope?: string;
2976
+ webhook_last_attempt_at?: string | null;
2977
+ webhook_last_error?: string | null;
2978
+ webhook_status?: string;
2524
2979
  };
2525
2980
  Update: {
2526
2981
  access_token_encrypted?: string | null;
@@ -2560,6 +3015,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2560
3015
  status?: string;
2561
3016
  token_expires_at?: string | null;
2562
3017
  updated_at?: string;
3018
+ watch_scope?: string;
3019
+ webhook_last_attempt_at?: string | null;
3020
+ webhook_last_error?: string | null;
3021
+ webhook_status?: string;
2563
3022
  };
2564
3023
  Relationships: [];
2565
3024
  };
@@ -2755,44 +3214,164 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2755
3214
  referencedColumns: ["id"];
2756
3215
  }];
2757
3216
  };
2758
- exact_account_analytics_cache: {
3217
+ email_auth_watch_folders: {
2759
3218
  Row: {
2760
- account_id: string;
2761
- account_name: string | null;
2762
- avg_payment_days: number | null;
2763
- computed_at: string;
2764
3219
  connection_id: string;
2765
- expires_at: string | null;
3220
+ created_at: string;
3221
+ folder_id: string;
3222
+ folder_name: string | null;
3223
+ gmail_history_id: string | null;
3224
+ graph_subscription_expires_at: string | null;
3225
+ graph_subscription_id: string | null;
2766
3226
  id: string;
2767
- invoice_count: number | null;
2768
- last_invoice_date: string | null;
2769
- last_payment_date: string | null;
2770
- open_balance: number | null;
2771
- overdue_balance: number | null;
2772
- total_revenue: number | null;
3227
+ imap_last_uid: number | null;
3228
+ imap_uid_validity: number | null;
3229
+ mailbox: string;
3230
+ provider: string;
3231
+ updated_at: string;
3232
+ webhook_last_error: string | null;
3233
+ webhook_status: string | null;
2773
3234
  };
2774
3235
  Insert: {
2775
- account_id: string;
2776
- account_name?: string | null;
2777
- avg_payment_days?: number | null;
2778
- computed_at?: string;
2779
3236
  connection_id: string;
2780
- expires_at?: string | null;
3237
+ created_at?: string;
3238
+ folder_id: string;
3239
+ folder_name?: string | null;
3240
+ gmail_history_id?: string | null;
3241
+ graph_subscription_expires_at?: string | null;
3242
+ graph_subscription_id?: string | null;
2781
3243
  id?: string;
2782
- invoice_count?: number | null;
2783
- last_invoice_date?: string | null;
2784
- last_payment_date?: string | null;
2785
- open_balance?: number | null;
2786
- overdue_balance?: number | null;
2787
- total_revenue?: number | null;
3244
+ imap_last_uid?: number | null;
3245
+ imap_uid_validity?: number | null;
3246
+ mailbox?: string;
3247
+ provider: string;
3248
+ updated_at?: string;
3249
+ webhook_last_error?: string | null;
3250
+ webhook_status?: string | null;
2788
3251
  };
2789
3252
  Update: {
2790
- account_id?: string;
2791
- account_name?: string | null;
2792
- avg_payment_days?: number | null;
2793
- computed_at?: string;
2794
3253
  connection_id?: string;
2795
- expires_at?: string | null;
3254
+ created_at?: string;
3255
+ folder_id?: string;
3256
+ folder_name?: string | null;
3257
+ gmail_history_id?: string | null;
3258
+ graph_subscription_expires_at?: string | null;
3259
+ graph_subscription_id?: string | null;
3260
+ id?: string;
3261
+ imap_last_uid?: number | null;
3262
+ imap_uid_validity?: number | null;
3263
+ mailbox?: string;
3264
+ provider?: string;
3265
+ updated_at?: string;
3266
+ webhook_last_error?: string | null;
3267
+ webhook_status?: string | null;
3268
+ };
3269
+ Relationships: [{
3270
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3271
+ columns: ["connection_id"];
3272
+ isOneToOne: false;
3273
+ referencedRelation: "email_auth_connections";
3274
+ referencedColumns: ["id"];
3275
+ }, {
3276
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3277
+ columns: ["connection_id"];
3278
+ isOneToOne: false;
3279
+ referencedRelation: "email_auth_connections_safe";
3280
+ referencedColumns: ["id"];
3281
+ }];
3282
+ };
3283
+ email_auth_webhook_log: {
3284
+ Row: {
3285
+ body_sample: string | null;
3286
+ connection_id: string | null;
3287
+ created_at: string;
3288
+ error_message: string | null;
3289
+ headers_sample: import("./types").Json | null;
3290
+ id: string;
3291
+ notification_count: number | null;
3292
+ provider: string | null;
3293
+ source: string | null;
3294
+ status: string;
3295
+ subscription_id: string | null;
3296
+ };
3297
+ Insert: {
3298
+ body_sample?: string | null;
3299
+ connection_id?: string | null;
3300
+ created_at?: string;
3301
+ error_message?: string | null;
3302
+ headers_sample?: import("./types").Json | null;
3303
+ id?: string;
3304
+ notification_count?: number | null;
3305
+ provider?: string | null;
3306
+ source?: string | null;
3307
+ status: string;
3308
+ subscription_id?: string | null;
3309
+ };
3310
+ Update: {
3311
+ body_sample?: string | null;
3312
+ connection_id?: string | null;
3313
+ created_at?: string;
3314
+ error_message?: string | null;
3315
+ headers_sample?: import("./types").Json | null;
3316
+ id?: string;
3317
+ notification_count?: number | null;
3318
+ provider?: string | null;
3319
+ source?: string | null;
3320
+ status?: string;
3321
+ subscription_id?: string | null;
3322
+ };
3323
+ Relationships: [{
3324
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3325
+ columns: ["connection_id"];
3326
+ isOneToOne: false;
3327
+ referencedRelation: "email_auth_connections";
3328
+ referencedColumns: ["id"];
3329
+ }, {
3330
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3331
+ columns: ["connection_id"];
3332
+ isOneToOne: false;
3333
+ referencedRelation: "email_auth_connections_safe";
3334
+ referencedColumns: ["id"];
3335
+ }];
3336
+ };
3337
+ exact_account_analytics_cache: {
3338
+ Row: {
3339
+ account_id: string;
3340
+ account_name: string | null;
3341
+ avg_payment_days: number | null;
3342
+ computed_at: string;
3343
+ connection_id: string;
3344
+ expires_at: string | null;
3345
+ id: string;
3346
+ invoice_count: number | null;
3347
+ last_invoice_date: string | null;
3348
+ last_payment_date: string | null;
3349
+ open_balance: number | null;
3350
+ overdue_balance: number | null;
3351
+ total_revenue: number | null;
3352
+ };
3353
+ Insert: {
3354
+ account_id: string;
3355
+ account_name?: string | null;
3356
+ avg_payment_days?: number | null;
3357
+ computed_at?: string;
3358
+ connection_id: string;
3359
+ expires_at?: string | null;
3360
+ id?: string;
3361
+ invoice_count?: number | null;
3362
+ last_invoice_date?: string | null;
3363
+ last_payment_date?: string | null;
3364
+ open_balance?: number | null;
3365
+ overdue_balance?: number | null;
3366
+ total_revenue?: number | null;
3367
+ };
3368
+ Update: {
3369
+ account_id?: string;
3370
+ account_name?: string | null;
3371
+ avg_payment_days?: number | null;
3372
+ computed_at?: string;
3373
+ connection_id?: string;
3374
+ expires_at?: string | null;
2796
3375
  id?: string;
2797
3376
  invoice_count?: number | null;
2798
3377
  last_invoice_date?: string | null;
@@ -5968,6 +6547,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5968
6547
  };
5969
6548
  Relationships: [];
5970
6549
  };
6550
+ invoice_post_idempotency: {
6551
+ Row: {
6552
+ client_request_id: string;
6553
+ completed_at: string | null;
6554
+ created_at: string;
6555
+ error_message: string | null;
6556
+ invoice_number: string | null;
6557
+ status: string;
6558
+ user_id: string;
6559
+ };
6560
+ Insert: {
6561
+ client_request_id: string;
6562
+ completed_at?: string | null;
6563
+ created_at?: string;
6564
+ error_message?: string | null;
6565
+ invoice_number?: string | null;
6566
+ status?: string;
6567
+ user_id: string;
6568
+ };
6569
+ Update: {
6570
+ client_request_id?: string;
6571
+ completed_at?: string | null;
6572
+ created_at?: string;
6573
+ error_message?: string | null;
6574
+ invoice_number?: string | null;
6575
+ status?: string;
6576
+ user_id?: string;
6577
+ };
6578
+ Relationships: [];
6579
+ };
5971
6580
  invoice_push_log: {
5972
6581
  Row: {
5973
6582
  connection_id: string | null;
@@ -6355,6 +6964,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6355
6964
  referencedColumns: ["id"];
6356
6965
  }];
6357
6966
  };
6967
+ layout_logos: {
6968
+ Row: {
6969
+ bestand_url: string;
6970
+ bestandsgrootte: number;
6971
+ bestandspad: string | null;
6972
+ bestandstype: string;
6973
+ breedte: number;
6974
+ categorie: string;
6975
+ created_at: string;
6976
+ hash: string | null;
6977
+ hoogte: number;
6978
+ id: string;
6979
+ is_standaard: boolean;
6980
+ naam: string;
6981
+ omschrijving: string;
6982
+ transparant: boolean;
6983
+ updated_at: string;
6984
+ };
6985
+ Insert: {
6986
+ bestand_url: string;
6987
+ bestandsgrootte?: number;
6988
+ bestandspad?: string | null;
6989
+ bestandstype?: string;
6990
+ breedte?: number;
6991
+ categorie?: string;
6992
+ created_at?: string;
6993
+ hash?: string | null;
6994
+ hoogte?: number;
6995
+ id?: string;
6996
+ is_standaard?: boolean;
6997
+ naam: string;
6998
+ omschrijving?: string;
6999
+ transparant?: boolean;
7000
+ updated_at?: string;
7001
+ };
7002
+ Update: {
7003
+ bestand_url?: string;
7004
+ bestandsgrootte?: number;
7005
+ bestandspad?: string | null;
7006
+ bestandstype?: string;
7007
+ breedte?: number;
7008
+ categorie?: string;
7009
+ created_at?: string;
7010
+ hash?: string | null;
7011
+ hoogte?: number;
7012
+ id?: string;
7013
+ is_standaard?: boolean;
7014
+ naam?: string;
7015
+ omschrijving?: string;
7016
+ transparant?: boolean;
7017
+ updated_at?: string;
7018
+ };
7019
+ Relationships: [];
7020
+ };
6358
7021
  leave_requests: {
6359
7022
  Row: {
6360
7023
  created_at: string;
@@ -6769,6 +7432,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6769
7432
  referencedColumns: ["id"];
6770
7433
  }];
6771
7434
  };
7435
+ logistics_rule_configs: {
7436
+ Row: {
7437
+ created_at: string;
7438
+ current_version: number;
7439
+ description: string | null;
7440
+ id: string;
7441
+ is_active: boolean;
7442
+ name: string;
7443
+ settings: import("./types").Json;
7444
+ status: string;
7445
+ strategy_id: string | null;
7446
+ updated_at: string;
7447
+ user_id: string;
7448
+ };
7449
+ Insert: {
7450
+ created_at?: string;
7451
+ current_version?: number;
7452
+ description?: string | null;
7453
+ id?: string;
7454
+ is_active?: boolean;
7455
+ name: string;
7456
+ settings?: import("./types").Json;
7457
+ status?: string;
7458
+ strategy_id?: string | null;
7459
+ updated_at?: string;
7460
+ user_id?: string;
7461
+ };
7462
+ Update: {
7463
+ created_at?: string;
7464
+ current_version?: number;
7465
+ description?: string | null;
7466
+ id?: string;
7467
+ is_active?: boolean;
7468
+ name?: string;
7469
+ settings?: import("./types").Json;
7470
+ status?: string;
7471
+ strategy_id?: string | null;
7472
+ updated_at?: string;
7473
+ user_id?: string;
7474
+ };
7475
+ Relationships: [{
7476
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7477
+ columns: ["strategy_id"];
7478
+ isOneToOne: false;
7479
+ referencedRelation: "logistics_strategies";
7480
+ referencedColumns: ["id"];
7481
+ }];
7482
+ };
7483
+ logistics_rule_versions: {
7484
+ Row: {
7485
+ config_id: string;
7486
+ created_at: string;
7487
+ id: string;
7488
+ label: string | null;
7489
+ note: string | null;
7490
+ settings: import("./types").Json;
7491
+ status: string;
7492
+ user_id: string;
7493
+ version: number;
7494
+ };
7495
+ Insert: {
7496
+ config_id: string;
7497
+ created_at?: string;
7498
+ id?: string;
7499
+ label?: string | null;
7500
+ note?: string | null;
7501
+ settings?: import("./types").Json;
7502
+ status?: string;
7503
+ user_id?: string;
7504
+ version: number;
7505
+ };
7506
+ Update: {
7507
+ config_id?: string;
7508
+ created_at?: string;
7509
+ id?: string;
7510
+ label?: string | null;
7511
+ note?: string | null;
7512
+ settings?: import("./types").Json;
7513
+ status?: string;
7514
+ user_id?: string;
7515
+ version?: number;
7516
+ };
7517
+ Relationships: [{
7518
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7519
+ columns: ["config_id"];
7520
+ isOneToOne: false;
7521
+ referencedRelation: "logistics_rule_configs";
7522
+ referencedColumns: ["id"];
7523
+ }];
7524
+ };
6772
7525
  logistics_strategies: {
6773
7526
  Row: {
6774
7527
  color: string;
@@ -6898,51 +7651,144 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6898
7651
  };
6899
7652
  Relationships: [];
6900
7653
  };
6901
- mailbox_messages: {
7654
+ mailbox_ai_goal_prompts: {
6902
7655
  Row: {
6903
- body_html: string | null;
6904
- body_text: string | null;
6905
- connection_id: string | null;
6906
7656
  created_at: string;
6907
- error_message: string | null;
6908
- external_id: string | null;
6909
- from_email: string | null;
6910
- from_name: string | null;
7657
+ goal_key: string;
6911
7658
  id: string;
6912
- message_id: string | null;
6913
- profile_id: string | null;
6914
- raw_size: number | null;
6915
- received_at: string | null;
6916
- status: string;
6917
- subject: string | null;
6918
- uid: number | null;
7659
+ system_prompt: string;
6919
7660
  updated_at: string;
6920
7661
  };
6921
7662
  Insert: {
6922
- body_html?: string | null;
6923
- body_text?: string | null;
6924
- connection_id?: string | null;
6925
7663
  created_at?: string;
6926
- error_message?: string | null;
6927
- external_id?: string | null;
6928
- from_email?: string | null;
6929
- from_name?: string | null;
7664
+ goal_key: string;
6930
7665
  id?: string;
6931
- message_id?: string | null;
6932
- profile_id?: string | null;
6933
- raw_size?: number | null;
6934
- received_at?: string | null;
6935
- status?: string;
6936
- subject?: string | null;
6937
- uid?: number | null;
7666
+ system_prompt?: string;
6938
7667
  updated_at?: string;
6939
7668
  };
6940
7669
  Update: {
6941
- body_html?: string | null;
6942
- body_text?: string | null;
6943
- connection_id?: string | null;
6944
7670
  created_at?: string;
6945
- error_message?: string | null;
7671
+ goal_key?: string;
7672
+ id?: string;
7673
+ system_prompt?: string;
7674
+ updated_at?: string;
7675
+ };
7676
+ Relationships: [];
7677
+ };
7678
+ mailbox_ai_settings: {
7679
+ Row: {
7680
+ active_goal_key: string | null;
7681
+ created_at: string;
7682
+ enabled: boolean;
7683
+ id: string;
7684
+ required_fields: string[];
7685
+ singleton: boolean;
7686
+ system_prompt: string | null;
7687
+ updated_at: string;
7688
+ };
7689
+ Insert: {
7690
+ active_goal_key?: string | null;
7691
+ created_at?: string;
7692
+ enabled?: boolean;
7693
+ id?: string;
7694
+ required_fields?: string[];
7695
+ singleton?: boolean;
7696
+ system_prompt?: string | null;
7697
+ updated_at?: string;
7698
+ };
7699
+ Update: {
7700
+ active_goal_key?: string | null;
7701
+ created_at?: string;
7702
+ enabled?: boolean;
7703
+ id?: string;
7704
+ required_fields?: string[];
7705
+ singleton?: boolean;
7706
+ system_prompt?: string | null;
7707
+ updated_at?: string;
7708
+ };
7709
+ Relationships: [];
7710
+ };
7711
+ mailbox_ingest_runs: {
7712
+ Row: {
7713
+ connection_id: string | null;
7714
+ error_sample: string | null;
7715
+ errors: number;
7716
+ finished_at: string | null;
7717
+ id: string;
7718
+ inserted: number;
7719
+ processed: number;
7720
+ started_at: string;
7721
+ trigger: string;
7722
+ };
7723
+ Insert: {
7724
+ connection_id?: string | null;
7725
+ error_sample?: string | null;
7726
+ errors?: number;
7727
+ finished_at?: string | null;
7728
+ id?: string;
7729
+ inserted?: number;
7730
+ processed?: number;
7731
+ started_at?: string;
7732
+ trigger: string;
7733
+ };
7734
+ Update: {
7735
+ connection_id?: string | null;
7736
+ error_sample?: string | null;
7737
+ errors?: number;
7738
+ finished_at?: string | null;
7739
+ id?: string;
7740
+ inserted?: number;
7741
+ processed?: number;
7742
+ started_at?: string;
7743
+ trigger?: string;
7744
+ };
7745
+ Relationships: [];
7746
+ };
7747
+ mailbox_messages: {
7748
+ Row: {
7749
+ body_html: string | null;
7750
+ body_text: string | null;
7751
+ connection_id: string | null;
7752
+ created_at: string;
7753
+ error_message: string | null;
7754
+ external_id: string | null;
7755
+ from_email: string | null;
7756
+ from_name: string | null;
7757
+ id: string;
7758
+ message_id: string | null;
7759
+ profile_id: string | null;
7760
+ raw_size: number | null;
7761
+ received_at: string | null;
7762
+ status: string;
7763
+ subject: string | null;
7764
+ uid: number | null;
7765
+ updated_at: string;
7766
+ };
7767
+ Insert: {
7768
+ body_html?: string | null;
7769
+ body_text?: string | null;
7770
+ connection_id?: string | null;
7771
+ created_at?: string;
7772
+ error_message?: string | null;
7773
+ external_id?: string | null;
7774
+ from_email?: string | null;
7775
+ from_name?: string | null;
7776
+ id?: string;
7777
+ message_id?: string | null;
7778
+ profile_id?: string | null;
7779
+ raw_size?: number | null;
7780
+ received_at?: string | null;
7781
+ status?: string;
7782
+ subject?: string | null;
7783
+ uid?: number | null;
7784
+ updated_at?: string;
7785
+ };
7786
+ Update: {
7787
+ body_html?: string | null;
7788
+ body_text?: string | null;
7789
+ connection_id?: string | null;
7790
+ created_at?: string;
7791
+ error_message?: string | null;
6946
7792
  external_id?: string | null;
6947
7793
  from_email?: string | null;
6948
7794
  from_name?: string | null;
@@ -6978,6 +7824,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6978
7824
  };
6979
7825
  mailbox_order_proposals: {
6980
7826
  Row: {
7827
+ ai_validation: import("./types").Json | null;
6981
7828
  confidence: number | null;
6982
7829
  created_at: string;
6983
7830
  created_order_id: string | null;
@@ -6994,6 +7841,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6994
7841
  updated_at: string;
6995
7842
  };
6996
7843
  Insert: {
7844
+ ai_validation?: import("./types").Json | null;
6997
7845
  confidence?: number | null;
6998
7846
  created_at?: string;
6999
7847
  created_order_id?: string | null;
@@ -7010,6 +7858,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7010
7858
  updated_at?: string;
7011
7859
  };
7012
7860
  Update: {
7861
+ ai_validation?: import("./types").Json | null;
7013
7862
  confidence?: number | null;
7014
7863
  created_at?: string;
7015
7864
  created_order_id?: string | null;
@@ -7146,6 +7995,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7146
7995
  created_at: string;
7147
7996
  id: string;
7148
7997
  match_confidence: number | null;
7998
+ plant_type: string | null;
7149
7999
  product_id: string | null;
7150
8000
  proposal_id: string;
7151
8001
  quantity: number | null;
@@ -7158,6 +8008,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7158
8008
  created_at?: string;
7159
8009
  id?: string;
7160
8010
  match_confidence?: number | null;
8011
+ plant_type?: string | null;
7161
8012
  product_id?: string | null;
7162
8013
  proposal_id: string;
7163
8014
  quantity?: number | null;
@@ -7170,6 +8021,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7170
8021
  created_at?: string;
7171
8022
  id?: string;
7172
8023
  match_confidence?: number | null;
8024
+ plant_type?: string | null;
7173
8025
  product_id?: string | null;
7174
8026
  proposal_id?: string;
7175
8027
  quantity?: number | null;
@@ -7354,6 +8206,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7354
8206
  };
7355
8207
  Relationships: [];
7356
8208
  };
8209
+ modules: {
8210
+ Row: {
8211
+ created_at: string;
8212
+ description: string | null;
8213
+ id: string;
8214
+ is_active: boolean;
8215
+ last_seen_at: string | null;
8216
+ module_key: string;
8217
+ module_name: string;
8218
+ updated_at: string;
8219
+ };
8220
+ Insert: {
8221
+ created_at?: string;
8222
+ description?: string | null;
8223
+ id?: string;
8224
+ is_active?: boolean;
8225
+ last_seen_at?: string | null;
8226
+ module_key: string;
8227
+ module_name: string;
8228
+ updated_at?: string;
8229
+ };
8230
+ Update: {
8231
+ created_at?: string;
8232
+ description?: string | null;
8233
+ id?: string;
8234
+ is_active?: boolean;
8235
+ last_seen_at?: string | null;
8236
+ module_key?: string;
8237
+ module_name?: string;
8238
+ updated_at?: string;
8239
+ };
8240
+ Relationships: [];
8241
+ };
7357
8242
  monteurs: {
7358
8243
  Row: {
7359
8244
  avatar_url: string | null;
@@ -8310,9 +9195,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8310
9195
  };
8311
9196
  order_items: {
8312
9197
  Row: {
9198
+ crates_per_layer: number | null;
8313
9199
  created_at: string;
8314
9200
  id: string;
9201
+ layers_per_cart: number | null;
8315
9202
  order_id: string;
9203
+ plants_per_crate: number | null;
8316
9204
  product_id: string | null;
8317
9205
  product_name: string;
8318
9206
  quantity: number;
@@ -8320,9 +9208,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8320
9208
  unit_price: number | null;
8321
9209
  };
8322
9210
  Insert: {
9211
+ crates_per_layer?: number | null;
8323
9212
  created_at?: string;
8324
9213
  id?: string;
9214
+ layers_per_cart?: number | null;
8325
9215
  order_id: string;
9216
+ plants_per_crate?: number | null;
8326
9217
  product_id?: string | null;
8327
9218
  product_name: string;
8328
9219
  quantity?: number;
@@ -8330,9 +9221,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8330
9221
  unit_price?: number | null;
8331
9222
  };
8332
9223
  Update: {
9224
+ crates_per_layer?: number | null;
8333
9225
  created_at?: string;
8334
9226
  id?: string;
9227
+ layers_per_cart?: number | null;
8335
9228
  order_id?: string;
9229
+ plants_per_crate?: number | null;
8336
9230
  product_id?: string | null;
8337
9231
  product_name?: string;
8338
9232
  quantity?: number;
@@ -8584,164 +9478,1358 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8584
9478
  };
8585
9479
  Relationships: [];
8586
9480
  };
8587
- pickstation_print_log: {
9481
+ pick_countries: {
8588
9482
  Row: {
8589
- customer_name: string | null;
8590
- documents: string[];
9483
+ active: boolean;
9484
+ code: string;
9485
+ created_at: string;
9486
+ flag: string | null;
8591
9487
  id: string;
8592
- ip_address: string | null;
8593
- order_id: string;
8594
- order_number: string | null;
8595
- printed_at: string;
9488
+ name: string;
9489
+ sort_order: number;
9490
+ updated_at: string;
8596
9491
  };
8597
9492
  Insert: {
8598
- customer_name?: string | null;
8599
- documents?: string[];
9493
+ active?: boolean;
9494
+ code: string;
9495
+ created_at?: string;
9496
+ flag?: string | null;
8600
9497
  id?: string;
8601
- ip_address?: string | null;
8602
- order_id: string;
8603
- order_number?: string | null;
8604
- printed_at?: string;
9498
+ name: string;
9499
+ sort_order?: number;
9500
+ updated_at?: string;
8605
9501
  };
8606
9502
  Update: {
8607
- customer_name?: string | null;
8608
- documents?: string[];
9503
+ active?: boolean;
9504
+ code?: string;
9505
+ created_at?: string;
9506
+ flag?: string | null;
8609
9507
  id?: string;
8610
- ip_address?: string | null;
8611
- order_id?: string;
8612
- order_number?: string | null;
8613
- printed_at?: string;
9508
+ name?: string;
9509
+ sort_order?: number;
9510
+ updated_at?: string;
8614
9511
  };
8615
9512
  Relationships: [];
8616
9513
  };
8617
- pipeline_settings: {
9514
+ pick_document_statuses: {
8618
9515
  Row: {
9516
+ active: boolean;
9517
+ code: string;
9518
+ color: string | null;
8619
9519
  created_at: string;
8620
9520
  id: string;
8621
- key: string;
9521
+ is_open: boolean;
9522
+ is_terminal: boolean;
9523
+ name: string;
9524
+ sort_order: number;
8622
9525
  updated_at: string;
8623
- value: string | null;
8624
9526
  };
8625
9527
  Insert: {
9528
+ active?: boolean;
9529
+ code: string;
9530
+ color?: string | null;
8626
9531
  created_at?: string;
8627
9532
  id?: string;
8628
- key: string;
9533
+ is_open?: boolean;
9534
+ is_terminal?: boolean;
9535
+ name: string;
9536
+ sort_order?: number;
8629
9537
  updated_at?: string;
8630
- value?: string | null;
8631
9538
  };
8632
9539
  Update: {
9540
+ active?: boolean;
9541
+ code?: string;
9542
+ color?: string | null;
8633
9543
  created_at?: string;
8634
9544
  id?: string;
8635
- key?: string;
9545
+ is_open?: boolean;
9546
+ is_terminal?: boolean;
9547
+ name?: string;
9548
+ sort_order?: number;
8636
9549
  updated_at?: string;
8637
- value?: string | null;
8638
9550
  };
8639
9551
  Relationships: [];
8640
9552
  };
8641
- pipeline_stages: {
9553
+ pick_document_types: {
8642
9554
  Row: {
8643
- automation_type: string;
8644
- color: string;
9555
+ active: boolean;
9556
+ code: string;
9557
+ color: string | null;
8645
9558
  created_at: string;
9559
+ description: string | null;
9560
+ icon: string | null;
8646
9561
  id: string;
8647
- is_active: boolean;
8648
9562
  name: string;
9563
+ print_template: string | null;
9564
+ printer_id: string | null;
9565
+ priority: number;
9566
+ report_key: string | null;
8649
9567
  sort_order: number;
8650
9568
  updated_at: string;
9569
+ workflow: import("./types").Json;
8651
9570
  };
8652
9571
  Insert: {
8653
- automation_type?: string;
8654
- color?: string;
9572
+ active?: boolean;
9573
+ code: string;
9574
+ color?: string | null;
8655
9575
  created_at?: string;
9576
+ description?: string | null;
9577
+ icon?: string | null;
8656
9578
  id?: string;
8657
- is_active?: boolean;
8658
9579
  name: string;
9580
+ print_template?: string | null;
9581
+ printer_id?: string | null;
9582
+ priority?: number;
9583
+ report_key?: string | null;
8659
9584
  sort_order?: number;
8660
9585
  updated_at?: string;
9586
+ workflow?: import("./types").Json;
8661
9587
  };
8662
9588
  Update: {
8663
- automation_type?: string;
8664
- color?: string;
9589
+ active?: boolean;
9590
+ code?: string;
9591
+ color?: string | null;
8665
9592
  created_at?: string;
9593
+ description?: string | null;
9594
+ icon?: string | null;
8666
9595
  id?: string;
8667
- is_active?: boolean;
8668
9596
  name?: string;
9597
+ print_template?: string | null;
9598
+ printer_id?: string | null;
9599
+ priority?: number;
9600
+ report_key?: string | null;
8669
9601
  sort_order?: number;
8670
9602
  updated_at?: string;
9603
+ workflow?: import("./types").Json;
8671
9604
  };
8672
- Relationships: [];
9605
+ Relationships: [{
9606
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9607
+ columns: ["printer_id"];
9608
+ isOneToOne: false;
9609
+ referencedRelation: "pick_station_printers";
9610
+ referencedColumns: ["id"];
9611
+ }];
9612
+ };
9613
+ pick_queue: {
9614
+ Row: {
9615
+ announced_at: string;
9616
+ assigned_user_id: string | null;
9617
+ barcode: string | null;
9618
+ cancelled_at: string | null;
9619
+ cart_count: number;
9620
+ completed_at: string | null;
9621
+ country_code: string | null;
9622
+ created_at: string;
9623
+ customer_name: string | null;
9624
+ delivery_address: string | null;
9625
+ document_number: string | null;
9626
+ document_type_id: string | null;
9627
+ due_at: string | null;
9628
+ id: string;
9629
+ is_urgent: boolean;
9630
+ line_count: number;
9631
+ order_number: string | null;
9632
+ order_type: string | null;
9633
+ payload: import("./types").Json;
9634
+ print_count: number;
9635
+ printed_at: string | null;
9636
+ printed_by: string | null;
9637
+ printer_id: string | null;
9638
+ priority: number;
9639
+ reference: string | null;
9640
+ route: string | null;
9641
+ screen_id: string | null;
9642
+ station_id: string | null;
9643
+ status_id: string | null;
9644
+ updated_at: string;
9645
+ warnings: import("./types").Json;
9646
+ };
9647
+ Insert: {
9648
+ announced_at?: string;
9649
+ assigned_user_id?: string | null;
9650
+ barcode?: string | null;
9651
+ cancelled_at?: string | null;
9652
+ cart_count?: number;
9653
+ completed_at?: string | null;
9654
+ country_code?: string | null;
9655
+ created_at?: string;
9656
+ customer_name?: string | null;
9657
+ delivery_address?: string | null;
9658
+ document_number?: string | null;
9659
+ document_type_id?: string | null;
9660
+ due_at?: string | null;
9661
+ id?: string;
9662
+ is_urgent?: boolean;
9663
+ line_count?: number;
9664
+ order_number?: string | null;
9665
+ order_type?: string | null;
9666
+ payload?: import("./types").Json;
9667
+ print_count?: number;
9668
+ printed_at?: string | null;
9669
+ printed_by?: string | null;
9670
+ printer_id?: string | null;
9671
+ priority?: number;
9672
+ reference?: string | null;
9673
+ route?: string | null;
9674
+ screen_id?: string | null;
9675
+ station_id?: string | null;
9676
+ status_id?: string | null;
9677
+ updated_at?: string;
9678
+ warnings?: import("./types").Json;
9679
+ };
9680
+ Update: {
9681
+ announced_at?: string;
9682
+ assigned_user_id?: string | null;
9683
+ barcode?: string | null;
9684
+ cancelled_at?: string | null;
9685
+ cart_count?: number;
9686
+ completed_at?: string | null;
9687
+ country_code?: string | null;
9688
+ created_at?: string;
9689
+ customer_name?: string | null;
9690
+ delivery_address?: string | null;
9691
+ document_number?: string | null;
9692
+ document_type_id?: string | null;
9693
+ due_at?: string | null;
9694
+ id?: string;
9695
+ is_urgent?: boolean;
9696
+ line_count?: number;
9697
+ order_number?: string | null;
9698
+ order_type?: string | null;
9699
+ payload?: import("./types").Json;
9700
+ print_count?: number;
9701
+ printed_at?: string | null;
9702
+ printed_by?: string | null;
9703
+ printer_id?: string | null;
9704
+ priority?: number;
9705
+ reference?: string | null;
9706
+ route?: string | null;
9707
+ screen_id?: string | null;
9708
+ station_id?: string | null;
9709
+ status_id?: string | null;
9710
+ updated_at?: string;
9711
+ warnings?: import("./types").Json;
9712
+ };
9713
+ Relationships: [{
9714
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9715
+ columns: ["document_type_id"];
9716
+ isOneToOne: false;
9717
+ referencedRelation: "pick_document_types";
9718
+ referencedColumns: ["id"];
9719
+ }, {
9720
+ foreignKeyName: "pick_queue_printer_id_fkey";
9721
+ columns: ["printer_id"];
9722
+ isOneToOne: false;
9723
+ referencedRelation: "pick_station_printers";
9724
+ referencedColumns: ["id"];
9725
+ }, {
9726
+ foreignKeyName: "pick_queue_screen_id_fkey";
9727
+ columns: ["screen_id"];
9728
+ isOneToOne: false;
9729
+ referencedRelation: "pick_station_screens";
9730
+ referencedColumns: ["id"];
9731
+ }, {
9732
+ foreignKeyName: "pick_queue_station_id_fkey";
9733
+ columns: ["station_id"];
9734
+ isOneToOne: false;
9735
+ referencedRelation: "pick_stations";
9736
+ referencedColumns: ["id"];
9737
+ }, {
9738
+ foreignKeyName: "pick_queue_status_id_fkey";
9739
+ columns: ["status_id"];
9740
+ isOneToOne: false;
9741
+ referencedRelation: "pick_document_statuses";
9742
+ referencedColumns: ["id"];
9743
+ }];
9744
+ };
9745
+ pick_queue_locks: {
9746
+ Row: {
9747
+ expires_at: string;
9748
+ id: string;
9749
+ locked_at: string;
9750
+ locked_by: string | null;
9751
+ queue_item_id: string;
9752
+ screen_id: string | null;
9753
+ session_id: string | null;
9754
+ station_id: string | null;
9755
+ };
9756
+ Insert: {
9757
+ expires_at?: string;
9758
+ id?: string;
9759
+ locked_at?: string;
9760
+ locked_by?: string | null;
9761
+ queue_item_id: string;
9762
+ screen_id?: string | null;
9763
+ session_id?: string | null;
9764
+ station_id?: string | null;
9765
+ };
9766
+ Update: {
9767
+ expires_at?: string;
9768
+ id?: string;
9769
+ locked_at?: string;
9770
+ locked_by?: string | null;
9771
+ queue_item_id?: string;
9772
+ screen_id?: string | null;
9773
+ session_id?: string | null;
9774
+ station_id?: string | null;
9775
+ };
9776
+ Relationships: [{
9777
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9778
+ columns: ["queue_item_id"];
9779
+ isOneToOne: true;
9780
+ referencedRelation: "pick_queue";
9781
+ referencedColumns: ["id"];
9782
+ }, {
9783
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9784
+ columns: ["screen_id"];
9785
+ isOneToOne: false;
9786
+ referencedRelation: "pick_station_screens";
9787
+ referencedColumns: ["id"];
9788
+ }, {
9789
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9790
+ columns: ["station_id"];
9791
+ isOneToOne: false;
9792
+ referencedRelation: "pick_stations";
9793
+ referencedColumns: ["id"];
9794
+ }];
9795
+ };
9796
+ pick_screen_document_types: {
9797
+ Row: {
9798
+ created_at: string;
9799
+ document_type_id: string;
9800
+ id: string;
9801
+ print_order: number;
9802
+ printer_id: string | null;
9803
+ screen_id: string;
9804
+ };
9805
+ Insert: {
9806
+ created_at?: string;
9807
+ document_type_id: string;
9808
+ id?: string;
9809
+ print_order?: number;
9810
+ printer_id?: string | null;
9811
+ screen_id: string;
9812
+ };
9813
+ Update: {
9814
+ created_at?: string;
9815
+ document_type_id?: string;
9816
+ id?: string;
9817
+ print_order?: number;
9818
+ printer_id?: string | null;
9819
+ screen_id?: string;
9820
+ };
9821
+ Relationships: [{
9822
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9823
+ columns: ["document_type_id"];
9824
+ isOneToOne: false;
9825
+ referencedRelation: "pick_document_types";
9826
+ referencedColumns: ["id"];
9827
+ }, {
9828
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9829
+ columns: ["printer_id"];
9830
+ isOneToOne: false;
9831
+ referencedRelation: "pick_station_printers";
9832
+ referencedColumns: ["id"];
9833
+ }, {
9834
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9835
+ columns: ["screen_id"];
9836
+ isOneToOne: false;
9837
+ referencedRelation: "pick_station_screens";
9838
+ referencedColumns: ["id"];
9839
+ }];
9840
+ };
9841
+ pick_station_heartbeats: {
9842
+ Row: {
9843
+ browser: string | null;
9844
+ created_at: string;
9845
+ id: string;
9846
+ ip_address: string | null;
9847
+ last_seen_at: string;
9848
+ screen_id: string | null;
9849
+ session_id: string;
9850
+ station_id: string;
9851
+ user_id: string | null;
9852
+ };
9853
+ Insert: {
9854
+ browser?: string | null;
9855
+ created_at?: string;
9856
+ id?: string;
9857
+ ip_address?: string | null;
9858
+ last_seen_at?: string;
9859
+ screen_id?: string | null;
9860
+ session_id: string;
9861
+ station_id: string;
9862
+ user_id?: string | null;
9863
+ };
9864
+ Update: {
9865
+ browser?: string | null;
9866
+ created_at?: string;
9867
+ id?: string;
9868
+ ip_address?: string | null;
9869
+ last_seen_at?: string;
9870
+ screen_id?: string | null;
9871
+ session_id?: string;
9872
+ station_id?: string;
9873
+ user_id?: string | null;
9874
+ };
9875
+ Relationships: [{
9876
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9877
+ columns: ["screen_id"];
9878
+ isOneToOne: false;
9879
+ referencedRelation: "pick_station_screens";
9880
+ referencedColumns: ["id"];
9881
+ }, {
9882
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9883
+ columns: ["station_id"];
9884
+ isOneToOne: false;
9885
+ referencedRelation: "pick_stations";
9886
+ referencedColumns: ["id"];
9887
+ }];
9888
+ };
9889
+ pick_station_history: {
9890
+ Row: {
9891
+ action: string;
9892
+ changed_by: string | null;
9893
+ created_at: string;
9894
+ entity_id: string;
9895
+ entity_table: string;
9896
+ id: string;
9897
+ new_data: import("./types").Json | null;
9898
+ old_data: import("./types").Json | null;
9899
+ };
9900
+ Insert: {
9901
+ action: string;
9902
+ changed_by?: string | null;
9903
+ created_at?: string;
9904
+ entity_id: string;
9905
+ entity_table: string;
9906
+ id?: string;
9907
+ new_data?: import("./types").Json | null;
9908
+ old_data?: import("./types").Json | null;
9909
+ };
9910
+ Update: {
9911
+ action?: string;
9912
+ changed_by?: string | null;
9913
+ created_at?: string;
9914
+ entity_id?: string;
9915
+ entity_table?: string;
9916
+ id?: string;
9917
+ new_data?: import("./types").Json | null;
9918
+ old_data?: import("./types").Json | null;
9919
+ };
9920
+ Relationships: [];
9921
+ };
9922
+ pick_station_logs: {
9923
+ Row: {
9924
+ action: string;
9925
+ browser: string | null;
9926
+ created_at: string;
9927
+ detail: import("./types").Json;
9928
+ duration_ms: number | null;
9929
+ id: string;
9930
+ ip_address: string | null;
9931
+ printer_id: string | null;
9932
+ queue_item_id: string | null;
9933
+ screen_id: string | null;
9934
+ session_id: string | null;
9935
+ station_id: string | null;
9936
+ user_id: string | null;
9937
+ };
9938
+ Insert: {
9939
+ action: string;
9940
+ browser?: string | null;
9941
+ created_at?: string;
9942
+ detail?: import("./types").Json;
9943
+ duration_ms?: number | null;
9944
+ id?: string;
9945
+ ip_address?: string | null;
9946
+ printer_id?: string | null;
9947
+ queue_item_id?: string | null;
9948
+ screen_id?: string | null;
9949
+ session_id?: string | null;
9950
+ station_id?: string | null;
9951
+ user_id?: string | null;
9952
+ };
9953
+ Update: {
9954
+ action?: string;
9955
+ browser?: string | null;
9956
+ created_at?: string;
9957
+ detail?: import("./types").Json;
9958
+ duration_ms?: number | null;
9959
+ id?: string;
9960
+ ip_address?: string | null;
9961
+ printer_id?: string | null;
9962
+ queue_item_id?: string | null;
9963
+ screen_id?: string | null;
9964
+ session_id?: string | null;
9965
+ station_id?: string | null;
9966
+ user_id?: string | null;
9967
+ };
9968
+ Relationships: [];
9969
+ };
9970
+ pick_station_permissions: {
9971
+ Row: {
9972
+ can_break_lock: boolean;
9973
+ can_cancel: boolean;
9974
+ can_print: boolean;
9975
+ can_reprint: boolean;
9976
+ country_code: string | null;
9977
+ created_at: string;
9978
+ id: string;
9979
+ station_id: string | null;
9980
+ task_id: string | null;
9981
+ updated_at: string;
9982
+ urgent_only: boolean;
9983
+ user_id: string;
9984
+ };
9985
+ Insert: {
9986
+ can_break_lock?: boolean;
9987
+ can_cancel?: boolean;
9988
+ can_print?: boolean;
9989
+ can_reprint?: boolean;
9990
+ country_code?: string | null;
9991
+ created_at?: string;
9992
+ id?: string;
9993
+ station_id?: string | null;
9994
+ task_id?: string | null;
9995
+ updated_at?: string;
9996
+ urgent_only?: boolean;
9997
+ user_id: string;
9998
+ };
9999
+ Update: {
10000
+ can_break_lock?: boolean;
10001
+ can_cancel?: boolean;
10002
+ can_print?: boolean;
10003
+ can_reprint?: boolean;
10004
+ country_code?: string | null;
10005
+ created_at?: string;
10006
+ id?: string;
10007
+ station_id?: string | null;
10008
+ task_id?: string | null;
10009
+ updated_at?: string;
10010
+ urgent_only?: boolean;
10011
+ user_id?: string;
10012
+ };
10013
+ Relationships: [{
10014
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
10015
+ columns: ["station_id"];
10016
+ isOneToOne: false;
10017
+ referencedRelation: "pick_stations";
10018
+ referencedColumns: ["id"];
10019
+ }, {
10020
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
10021
+ columns: ["task_id"];
10022
+ isOneToOne: false;
10023
+ referencedRelation: "pick_station_tasks";
10024
+ referencedColumns: ["id"];
10025
+ }];
10026
+ };
10027
+ pick_station_printers: {
10028
+ Row: {
10029
+ active: boolean;
10030
+ code: string | null;
10031
+ config: import("./types").Json;
10032
+ connection: string | null;
10033
+ created_at: string;
10034
+ id: string;
10035
+ last_seen_at: string | null;
10036
+ location: string | null;
10037
+ name: string;
10038
+ status: string;
10039
+ status_message: string | null;
10040
+ target: string | null;
10041
+ updated_at: string;
10042
+ };
10043
+ Insert: {
10044
+ active?: boolean;
10045
+ code?: string | null;
10046
+ config?: import("./types").Json;
10047
+ connection?: string | null;
10048
+ created_at?: string;
10049
+ id?: string;
10050
+ last_seen_at?: string | null;
10051
+ location?: string | null;
10052
+ name: string;
10053
+ status?: string;
10054
+ status_message?: string | null;
10055
+ target?: string | null;
10056
+ updated_at?: string;
10057
+ };
10058
+ Update: {
10059
+ active?: boolean;
10060
+ code?: string | null;
10061
+ config?: import("./types").Json;
10062
+ connection?: string | null;
10063
+ created_at?: string;
10064
+ id?: string;
10065
+ last_seen_at?: string | null;
10066
+ location?: string | null;
10067
+ name?: string;
10068
+ status?: string;
10069
+ status_message?: string | null;
10070
+ target?: string | null;
10071
+ updated_at?: string;
10072
+ };
10073
+ Relationships: [];
10074
+ };
10075
+ pick_station_screens: {
10076
+ Row: {
10077
+ active: boolean;
10078
+ config: import("./types").Json;
10079
+ created_at: string;
10080
+ description: string | null;
10081
+ filters: import("./types").Json;
10082
+ id: string;
10083
+ name: string;
10084
+ printer_id: string | null;
10085
+ screen_type: string;
10086
+ sort_order: number;
10087
+ sort_rules: import("./types").Json | null;
10088
+ station_id: string;
10089
+ updated_at: string;
10090
+ };
10091
+ Insert: {
10092
+ active?: boolean;
10093
+ config?: import("./types").Json;
10094
+ created_at?: string;
10095
+ description?: string | null;
10096
+ filters?: import("./types").Json;
10097
+ id?: string;
10098
+ name: string;
10099
+ printer_id?: string | null;
10100
+ screen_type?: string;
10101
+ sort_order?: number;
10102
+ sort_rules?: import("./types").Json | null;
10103
+ station_id: string;
10104
+ updated_at?: string;
10105
+ };
10106
+ Update: {
10107
+ active?: boolean;
10108
+ config?: import("./types").Json;
10109
+ created_at?: string;
10110
+ description?: string | null;
10111
+ filters?: import("./types").Json;
10112
+ id?: string;
10113
+ name?: string;
10114
+ printer_id?: string | null;
10115
+ screen_type?: string;
10116
+ sort_order?: number;
10117
+ sort_rules?: import("./types").Json | null;
10118
+ station_id?: string;
10119
+ updated_at?: string;
10120
+ };
10121
+ Relationships: [{
10122
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
10123
+ columns: ["printer_id"];
10124
+ isOneToOne: false;
10125
+ referencedRelation: "pick_station_printers";
10126
+ referencedColumns: ["id"];
10127
+ }, {
10128
+ foreignKeyName: "pick_station_screens_station_id_fkey";
10129
+ columns: ["station_id"];
10130
+ isOneToOne: false;
10131
+ referencedRelation: "pick_stations";
10132
+ referencedColumns: ["id"];
10133
+ }];
10134
+ };
10135
+ pick_station_tasks: {
10136
+ Row: {
10137
+ active: boolean;
10138
+ code: string;
10139
+ color: string | null;
10140
+ created_at: string;
10141
+ description: string | null;
10142
+ icon: string | null;
10143
+ id: string;
10144
+ name: string;
10145
+ sort_order: number;
10146
+ updated_at: string;
10147
+ workflow: import("./types").Json;
10148
+ };
10149
+ Insert: {
10150
+ active?: boolean;
10151
+ code: string;
10152
+ color?: string | null;
10153
+ created_at?: string;
10154
+ description?: string | null;
10155
+ icon?: string | null;
10156
+ id?: string;
10157
+ name: string;
10158
+ sort_order?: number;
10159
+ updated_at?: string;
10160
+ workflow?: import("./types").Json;
10161
+ };
10162
+ Update: {
10163
+ active?: boolean;
10164
+ code?: string;
10165
+ color?: string | null;
10166
+ created_at?: string;
10167
+ description?: string | null;
10168
+ icon?: string | null;
10169
+ id?: string;
10170
+ name?: string;
10171
+ sort_order?: number;
10172
+ updated_at?: string;
10173
+ workflow?: import("./types").Json;
10174
+ };
10175
+ Relationships: [];
10176
+ };
10177
+ pick_station_types: {
10178
+ Row: {
10179
+ active: boolean;
10180
+ code: string;
10181
+ color: string | null;
10182
+ created_at: string;
10183
+ description: string | null;
10184
+ icon: string | null;
10185
+ id: string;
10186
+ name: string;
10187
+ sort_order: number;
10188
+ updated_at: string;
10189
+ };
10190
+ Insert: {
10191
+ active?: boolean;
10192
+ code: string;
10193
+ color?: string | null;
10194
+ created_at?: string;
10195
+ description?: string | null;
10196
+ icon?: string | null;
10197
+ id?: string;
10198
+ name: string;
10199
+ sort_order?: number;
10200
+ updated_at?: string;
10201
+ };
10202
+ Update: {
10203
+ active?: boolean;
10204
+ code?: string;
10205
+ color?: string | null;
10206
+ created_at?: string;
10207
+ description?: string | null;
10208
+ icon?: string | null;
10209
+ id?: string;
10210
+ name?: string;
10211
+ sort_order?: number;
10212
+ updated_at?: string;
10213
+ };
10214
+ Relationships: [];
10215
+ };
10216
+ pick_station_users: {
10217
+ Row: {
10218
+ active: boolean;
10219
+ created_at: string;
10220
+ id: string;
10221
+ station_id: string;
10222
+ user_id: string;
10223
+ };
10224
+ Insert: {
10225
+ active?: boolean;
10226
+ created_at?: string;
10227
+ id?: string;
10228
+ station_id: string;
10229
+ user_id: string;
10230
+ };
10231
+ Update: {
10232
+ active?: boolean;
10233
+ created_at?: string;
10234
+ id?: string;
10235
+ station_id?: string;
10236
+ user_id?: string;
10237
+ };
10238
+ Relationships: [{
10239
+ foreignKeyName: "pick_station_users_station_id_fkey";
10240
+ columns: ["station_id"];
10241
+ isOneToOne: false;
10242
+ referencedRelation: "pick_stations";
10243
+ referencedColumns: ["id"];
10244
+ }];
10245
+ };
10246
+ pick_stations: {
10247
+ Row: {
10248
+ active: boolean;
10249
+ allow_multi_screen: boolean;
10250
+ color: string | null;
10251
+ created_at: string;
10252
+ default_printer_id: string | null;
10253
+ department: string | null;
10254
+ description: string | null;
10255
+ icon: string | null;
10256
+ id: string;
10257
+ location: string | null;
10258
+ lock_timeout_seconds: number;
10259
+ name: string;
10260
+ require_country_selection: boolean;
10261
+ sort_order: number;
10262
+ sort_rules: import("./types").Json;
10263
+ task_id: string | null;
10264
+ type_id: string | null;
10265
+ updated_at: string;
10266
+ };
10267
+ Insert: {
10268
+ active?: boolean;
10269
+ allow_multi_screen?: boolean;
10270
+ color?: string | null;
10271
+ created_at?: string;
10272
+ default_printer_id?: string | null;
10273
+ department?: string | null;
10274
+ description?: string | null;
10275
+ icon?: string | null;
10276
+ id?: string;
10277
+ location?: string | null;
10278
+ lock_timeout_seconds?: number;
10279
+ name: string;
10280
+ require_country_selection?: boolean;
10281
+ sort_order?: number;
10282
+ sort_rules?: import("./types").Json;
10283
+ task_id?: string | null;
10284
+ type_id?: string | null;
10285
+ updated_at?: string;
10286
+ };
10287
+ Update: {
10288
+ active?: boolean;
10289
+ allow_multi_screen?: boolean;
10290
+ color?: string | null;
10291
+ created_at?: string;
10292
+ default_printer_id?: string | null;
10293
+ department?: string | null;
10294
+ description?: string | null;
10295
+ icon?: string | null;
10296
+ id?: string;
10297
+ location?: string | null;
10298
+ lock_timeout_seconds?: number;
10299
+ name?: string;
10300
+ require_country_selection?: boolean;
10301
+ sort_order?: number;
10302
+ sort_rules?: import("./types").Json;
10303
+ task_id?: string | null;
10304
+ type_id?: string | null;
10305
+ updated_at?: string;
10306
+ };
10307
+ Relationships: [{
10308
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10309
+ columns: ["default_printer_id"];
10310
+ isOneToOne: false;
10311
+ referencedRelation: "pick_station_printers";
10312
+ referencedColumns: ["id"];
10313
+ }, {
10314
+ foreignKeyName: "pick_stations_task_id_fkey";
10315
+ columns: ["task_id"];
10316
+ isOneToOne: false;
10317
+ referencedRelation: "pick_station_tasks";
10318
+ referencedColumns: ["id"];
10319
+ }, {
10320
+ foreignKeyName: "pick_stations_type_id_fkey";
10321
+ columns: ["type_id"];
10322
+ isOneToOne: false;
10323
+ referencedRelation: "pick_station_types";
10324
+ referencedColumns: ["id"];
10325
+ }];
10326
+ };
10327
+ pick_task_document_types: {
10328
+ Row: {
10329
+ created_at: string;
10330
+ document_type_id: string;
10331
+ id: string;
10332
+ task_id: string;
10333
+ };
10334
+ Insert: {
10335
+ created_at?: string;
10336
+ document_type_id: string;
10337
+ id?: string;
10338
+ task_id: string;
10339
+ };
10340
+ Update: {
10341
+ created_at?: string;
10342
+ document_type_id?: string;
10343
+ id?: string;
10344
+ task_id?: string;
10345
+ };
10346
+ Relationships: [{
10347
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10348
+ columns: ["document_type_id"];
10349
+ isOneToOne: false;
10350
+ referencedRelation: "pick_document_types";
10351
+ referencedColumns: ["id"];
10352
+ }, {
10353
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10354
+ columns: ["task_id"];
10355
+ isOneToOne: false;
10356
+ referencedRelation: "pick_station_tasks";
10357
+ referencedColumns: ["id"];
10358
+ }];
10359
+ };
10360
+ pickstation_print_log: {
10361
+ Row: {
10362
+ customer_name: string | null;
10363
+ documents: string[];
10364
+ id: string;
10365
+ ip_address: string | null;
10366
+ order_id: string;
10367
+ order_number: string | null;
10368
+ printed_at: string;
10369
+ };
10370
+ Insert: {
10371
+ customer_name?: string | null;
10372
+ documents?: string[];
10373
+ id?: string;
10374
+ ip_address?: string | null;
10375
+ order_id: string;
10376
+ order_number?: string | null;
10377
+ printed_at?: string;
10378
+ };
10379
+ Update: {
10380
+ customer_name?: string | null;
10381
+ documents?: string[];
10382
+ id?: string;
10383
+ ip_address?: string | null;
10384
+ order_id?: string;
10385
+ order_number?: string | null;
10386
+ printed_at?: string;
10387
+ };
10388
+ Relationships: [];
10389
+ };
10390
+ pipeline_settings: {
10391
+ Row: {
10392
+ created_at: string;
10393
+ id: string;
10394
+ key: string;
10395
+ updated_at: string;
10396
+ value: string | null;
10397
+ };
10398
+ Insert: {
10399
+ created_at?: string;
10400
+ id?: string;
10401
+ key: string;
10402
+ updated_at?: string;
10403
+ value?: string | null;
10404
+ };
10405
+ Update: {
10406
+ created_at?: string;
10407
+ id?: string;
10408
+ key?: string;
10409
+ updated_at?: string;
10410
+ value?: string | null;
10411
+ };
10412
+ Relationships: [];
10413
+ };
10414
+ pipeline_stages: {
10415
+ Row: {
10416
+ automation_type: string;
10417
+ color: string;
10418
+ created_at: string;
10419
+ id: string;
10420
+ is_active: boolean;
10421
+ name: string;
10422
+ sort_order: number;
10423
+ updated_at: string;
10424
+ };
10425
+ Insert: {
10426
+ automation_type?: string;
10427
+ color?: string;
10428
+ created_at?: string;
10429
+ id?: string;
10430
+ is_active?: boolean;
10431
+ name: string;
10432
+ sort_order?: number;
10433
+ updated_at?: string;
10434
+ };
10435
+ Update: {
10436
+ automation_type?: string;
10437
+ color?: string;
10438
+ created_at?: string;
10439
+ id?: string;
10440
+ is_active?: boolean;
10441
+ name?: string;
10442
+ sort_order?: number;
10443
+ updated_at?: string;
10444
+ };
10445
+ Relationships: [];
10446
+ };
10447
+ planning_item_assistants: {
10448
+ Row: {
10449
+ created_at: string;
10450
+ created_by: string | null;
10451
+ monteur_id: string;
10452
+ planning_item_id: string;
10453
+ };
10454
+ Insert: {
10455
+ created_at?: string;
10456
+ created_by?: string | null;
10457
+ monteur_id: string;
10458
+ planning_item_id: string;
10459
+ };
10460
+ Update: {
10461
+ created_at?: string;
10462
+ created_by?: string | null;
10463
+ monteur_id?: string;
10464
+ planning_item_id?: string;
10465
+ };
10466
+ Relationships: [{
10467
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
10468
+ columns: ["planning_item_id"];
10469
+ isOneToOne: false;
10470
+ referencedRelation: "planning_items";
10471
+ referencedColumns: ["id"];
10472
+ }];
10473
+ };
10474
+ planning_items: {
10475
+ Row: {
10476
+ assigned_monteur_id: string;
10477
+ created_at: string;
10478
+ created_by: string | null;
10479
+ end_at: string;
10480
+ id: string;
10481
+ notes: string | null;
10482
+ start_at: string;
10483
+ status: Database["public"]["Enums"]["planning_item_status"];
10484
+ updated_at: string;
10485
+ werkbon_id: string;
10486
+ };
10487
+ Insert: {
10488
+ assigned_monteur_id: string;
10489
+ created_at?: string;
10490
+ created_by?: string | null;
10491
+ end_at: string;
10492
+ id?: string;
10493
+ notes?: string | null;
10494
+ start_at: string;
10495
+ status?: Database["public"]["Enums"]["planning_item_status"];
10496
+ updated_at?: string;
10497
+ werkbon_id: string;
10498
+ };
10499
+ Update: {
10500
+ assigned_monteur_id?: string;
10501
+ created_at?: string;
10502
+ created_by?: string | null;
10503
+ end_at?: string;
10504
+ id?: string;
10505
+ notes?: string | null;
10506
+ start_at?: string;
10507
+ status?: Database["public"]["Enums"]["planning_item_status"];
10508
+ updated_at?: string;
10509
+ werkbon_id?: string;
10510
+ };
10511
+ Relationships: [{
10512
+ foreignKeyName: "planning_items_werkbon_id_fkey";
10513
+ columns: ["werkbon_id"];
10514
+ isOneToOne: false;
10515
+ referencedRelation: "werkbonnen";
10516
+ referencedColumns: ["id"];
10517
+ }];
10518
+ };
10519
+ print_job_logs: {
10520
+ Row: {
10521
+ created_at: string;
10522
+ detail: string;
10523
+ gebeurtenis: string;
10524
+ id: string;
10525
+ job_id: string;
10526
+ };
10527
+ Insert: {
10528
+ created_at?: string;
10529
+ detail?: string;
10530
+ gebeurtenis: string;
10531
+ id?: string;
10532
+ job_id: string;
10533
+ };
10534
+ Update: {
10535
+ created_at?: string;
10536
+ detail?: string;
10537
+ gebeurtenis?: string;
10538
+ id?: string;
10539
+ job_id?: string;
10540
+ };
10541
+ Relationships: [{
10542
+ foreignKeyName: "print_job_logs_job_id_fkey";
10543
+ columns: ["job_id"];
10544
+ isOneToOne: false;
10545
+ referencedRelation: "print_jobs";
10546
+ referencedColumns: ["id"];
10547
+ }];
10548
+ };
10549
+ print_jobs: {
10550
+ Row: {
10551
+ bron_job_id: string | null;
10552
+ created_at: string;
10553
+ documentnaam: string;
10554
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
10555
+ foutmelding: string | null;
10556
+ gebruiker_id: string | null;
10557
+ gebruiker_naam: string;
10558
+ gestart_op: string | null;
10559
+ id: string;
10560
+ is_herprint: boolean;
10561
+ kopieen: number;
10562
+ layout_id: string | null;
10563
+ paginas: number;
10564
+ payload: import("./types").Json;
10565
+ printer_id: string | null;
10566
+ status: Database["public"]["Enums"]["print_job_status"];
10567
+ updated_at: string;
10568
+ voltooid_op: string | null;
10569
+ };
10570
+ Insert: {
10571
+ bron_job_id?: string | null;
10572
+ created_at?: string;
10573
+ documentnaam?: string;
10574
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10575
+ foutmelding?: string | null;
10576
+ gebruiker_id?: string | null;
10577
+ gebruiker_naam?: string;
10578
+ gestart_op?: string | null;
10579
+ id?: string;
10580
+ is_herprint?: boolean;
10581
+ kopieen?: number;
10582
+ layout_id?: string | null;
10583
+ paginas?: number;
10584
+ payload?: import("./types").Json;
10585
+ printer_id?: string | null;
10586
+ status?: Database["public"]["Enums"]["print_job_status"];
10587
+ updated_at?: string;
10588
+ voltooid_op?: string | null;
10589
+ };
10590
+ Update: {
10591
+ bron_job_id?: string | null;
10592
+ created_at?: string;
10593
+ documentnaam?: string;
10594
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10595
+ foutmelding?: string | null;
10596
+ gebruiker_id?: string | null;
10597
+ gebruiker_naam?: string;
10598
+ gestart_op?: string | null;
10599
+ id?: string;
10600
+ is_herprint?: boolean;
10601
+ kopieen?: number;
10602
+ layout_id?: string | null;
10603
+ paginas?: number;
10604
+ payload?: import("./types").Json;
10605
+ printer_id?: string | null;
10606
+ status?: Database["public"]["Enums"]["print_job_status"];
10607
+ updated_at?: string;
10608
+ voltooid_op?: string | null;
10609
+ };
10610
+ Relationships: [{
10611
+ foreignKeyName: "print_jobs_layout_id_fkey";
10612
+ columns: ["layout_id"];
10613
+ isOneToOne: false;
10614
+ referencedRelation: "document_layouts";
10615
+ referencedColumns: ["id"];
10616
+ }, {
10617
+ foreignKeyName: "print_jobs_printer_id_fkey";
10618
+ columns: ["printer_id"];
10619
+ isOneToOne: false;
10620
+ referencedRelation: "printers";
10621
+ referencedColumns: ["id"];
10622
+ }];
10623
+ };
10624
+ print_rules: {
10625
+ Row: {
10626
+ actief: boolean;
10627
+ alleen_eerste_keer: boolean;
10628
+ conditie: import("./types").Json;
10629
+ created_at: string;
10630
+ id: string;
10631
+ kopieen: number;
10632
+ layout_id: string;
10633
+ naam: string;
10634
+ printer_id: string | null;
10635
+ updated_at: string;
10636
+ volgorde: number;
10637
+ };
10638
+ Insert: {
10639
+ actief?: boolean;
10640
+ alleen_eerste_keer?: boolean;
10641
+ conditie?: import("./types").Json;
10642
+ created_at?: string;
10643
+ id?: string;
10644
+ kopieen?: number;
10645
+ layout_id: string;
10646
+ naam?: string;
10647
+ printer_id?: string | null;
10648
+ updated_at?: string;
10649
+ volgorde?: number;
10650
+ };
10651
+ Update: {
10652
+ actief?: boolean;
10653
+ alleen_eerste_keer?: boolean;
10654
+ conditie?: import("./types").Json;
10655
+ created_at?: string;
10656
+ id?: string;
10657
+ kopieen?: number;
10658
+ layout_id?: string;
10659
+ naam?: string;
10660
+ printer_id?: string | null;
10661
+ updated_at?: string;
10662
+ volgorde?: number;
10663
+ };
10664
+ Relationships: [{
10665
+ foreignKeyName: "print_rules_layout_id_fkey";
10666
+ columns: ["layout_id"];
10667
+ isOneToOne: false;
10668
+ referencedRelation: "document_layouts";
10669
+ referencedColumns: ["id"];
10670
+ }, {
10671
+ foreignKeyName: "print_rules_printer_id_fkey";
10672
+ columns: ["printer_id"];
10673
+ isOneToOne: false;
10674
+ referencedRelation: "printers";
10675
+ referencedColumns: ["id"];
10676
+ }];
10677
+ };
10678
+ printer_mappings: {
10679
+ Row: {
10680
+ created_at: string;
10681
+ id: string;
10682
+ layout_id: string;
10683
+ printer_id: string;
10684
+ prioriteit: number;
10685
+ updated_at: string;
10686
+ };
10687
+ Insert: {
10688
+ created_at?: string;
10689
+ id?: string;
10690
+ layout_id: string;
10691
+ printer_id: string;
10692
+ prioriteit?: number;
10693
+ updated_at?: string;
10694
+ };
10695
+ Update: {
10696
+ created_at?: string;
10697
+ id?: string;
10698
+ layout_id?: string;
10699
+ printer_id?: string;
10700
+ prioriteit?: number;
10701
+ updated_at?: string;
10702
+ };
10703
+ Relationships: [{
10704
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10705
+ columns: ["layout_id"];
10706
+ isOneToOne: false;
10707
+ referencedRelation: "document_layouts";
10708
+ referencedColumns: ["id"];
10709
+ }, {
10710
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10711
+ columns: ["printer_id"];
10712
+ isOneToOne: false;
10713
+ referencedRelation: "printers";
10714
+ referencedColumns: ["id"];
10715
+ }];
8673
10716
  };
8674
- planning_item_assistants: {
10717
+ printer_profiles: {
8675
10718
  Row: {
10719
+ auto_schalen: boolean;
8676
10720
  created_at: string;
8677
- created_by: string | null;
8678
- monteur_id: string;
8679
- planning_item_id: string;
10721
+ duplex: boolean;
10722
+ id: string;
10723
+ is_standaard: boolean;
10724
+ kleur: boolean;
10725
+ kopieen: number;
10726
+ label_gap: number;
10727
+ naam: string;
10728
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
10729
+ papierlade: string;
10730
+ printer_id: string;
10731
+ resolutie: number;
10732
+ snijden: boolean;
10733
+ updated_at: string;
8680
10734
  };
8681
10735
  Insert: {
10736
+ auto_schalen?: boolean;
8682
10737
  created_at?: string;
8683
- created_by?: string | null;
8684
- monteur_id: string;
8685
- planning_item_id: string;
10738
+ duplex?: boolean;
10739
+ id?: string;
10740
+ is_standaard?: boolean;
10741
+ kleur?: boolean;
10742
+ kopieen?: number;
10743
+ label_gap?: number;
10744
+ naam?: string;
10745
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
10746
+ papierlade?: string;
10747
+ printer_id: string;
10748
+ resolutie?: number;
10749
+ snijden?: boolean;
10750
+ updated_at?: string;
8686
10751
  };
8687
10752
  Update: {
10753
+ auto_schalen?: boolean;
8688
10754
  created_at?: string;
8689
- created_by?: string | null;
8690
- monteur_id?: string;
8691
- planning_item_id?: string;
10755
+ duplex?: boolean;
10756
+ id?: string;
10757
+ is_standaard?: boolean;
10758
+ kleur?: boolean;
10759
+ kopieen?: number;
10760
+ label_gap?: number;
10761
+ naam?: string;
10762
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
10763
+ papierlade?: string;
10764
+ printer_id?: string;
10765
+ resolutie?: number;
10766
+ snijden?: boolean;
10767
+ updated_at?: string;
8692
10768
  };
8693
10769
  Relationships: [{
8694
- foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8695
- columns: ["planning_item_id"];
10770
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10771
+ columns: ["printer_id"];
8696
10772
  isOneToOne: false;
8697
- referencedRelation: "planning_items";
10773
+ referencedRelation: "printers";
8698
10774
  referencedColumns: ["id"];
8699
10775
  }];
8700
10776
  };
8701
- planning_items: {
10777
+ printers: {
8702
10778
  Row: {
8703
- assigned_monteur_id: string;
10779
+ actief: boolean;
8704
10780
  created_at: string;
8705
- created_by: string | null;
8706
- end_at: string;
10781
+ driver: string;
8707
10782
  id: string;
8708
- notes: string | null;
8709
- start_at: string;
8710
- status: Database["public"]["Enums"]["planning_item_status"];
10783
+ ip_adres: string | null;
10784
+ laatst_gezien: string | null;
10785
+ locatie: string;
10786
+ merk: string;
10787
+ naam: string;
10788
+ omschrijving: string;
10789
+ online: boolean;
10790
+ papierformaat: string;
10791
+ poort: number | null;
10792
+ soort: Database["public"]["Enums"]["printer_kind"];
8711
10793
  updated_at: string;
8712
- werkbon_id: string;
10794
+ verbinding: Database["public"]["Enums"]["printer_connection"];
8713
10795
  };
8714
10796
  Insert: {
8715
- assigned_monteur_id: string;
10797
+ actief?: boolean;
8716
10798
  created_at?: string;
8717
- created_by?: string | null;
8718
- end_at: string;
10799
+ driver?: string;
8719
10800
  id?: string;
8720
- notes?: string | null;
8721
- start_at: string;
8722
- status?: Database["public"]["Enums"]["planning_item_status"];
10801
+ ip_adres?: string | null;
10802
+ laatst_gezien?: string | null;
10803
+ locatie?: string;
10804
+ merk?: string;
10805
+ naam: string;
10806
+ omschrijving?: string;
10807
+ online?: boolean;
10808
+ papierformaat?: string;
10809
+ poort?: number | null;
10810
+ soort?: Database["public"]["Enums"]["printer_kind"];
8723
10811
  updated_at?: string;
8724
- werkbon_id: string;
10812
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
8725
10813
  };
8726
10814
  Update: {
8727
- assigned_monteur_id?: string;
10815
+ actief?: boolean;
8728
10816
  created_at?: string;
8729
- created_by?: string | null;
8730
- end_at?: string;
10817
+ driver?: string;
8731
10818
  id?: string;
8732
- notes?: string | null;
8733
- start_at?: string;
8734
- status?: Database["public"]["Enums"]["planning_item_status"];
10819
+ ip_adres?: string | null;
10820
+ laatst_gezien?: string | null;
10821
+ locatie?: string;
10822
+ merk?: string;
10823
+ naam?: string;
10824
+ omschrijving?: string;
10825
+ online?: boolean;
10826
+ papierformaat?: string;
10827
+ poort?: number | null;
10828
+ soort?: Database["public"]["Enums"]["printer_kind"];
8735
10829
  updated_at?: string;
8736
- werkbon_id?: string;
10830
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
8737
10831
  };
8738
- Relationships: [{
8739
- foreignKeyName: "planning_items_werkbon_id_fkey";
8740
- columns: ["werkbon_id"];
8741
- isOneToOne: false;
8742
- referencedRelation: "werkbonnen";
8743
- referencedColumns: ["id"];
8744
- }];
10832
+ Relationships: [];
8745
10833
  };
8746
10834
  product_bom_items: {
8747
10835
  Row: {
@@ -10619,7 +12707,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10619
12707
  is_active: boolean;
10620
12708
  label: string | null;
10621
12709
  office_code: string | null;
10622
- redirect_uri: string;
12710
+ redirect_uri: string | null;
10623
12711
  updated_at: string;
10624
12712
  user_id: string;
10625
12713
  };
@@ -10635,7 +12723,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10635
12723
  is_active?: boolean;
10636
12724
  label?: string | null;
10637
12725
  office_code?: string | null;
10638
- redirect_uri: string;
12726
+ redirect_uri?: string | null;
10639
12727
  updated_at?: string;
10640
12728
  user_id: string;
10641
12729
  };
@@ -10651,7 +12739,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10651
12739
  is_active?: boolean;
10652
12740
  label?: string | null;
10653
12741
  office_code?: string | null;
10654
- redirect_uri?: string;
12742
+ redirect_uri?: string | null;
10655
12743
  updated_at?: string;
10656
12744
  user_id?: string;
10657
12745
  };
@@ -11098,12 +13186,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11098
13186
  currency: string | null;
11099
13187
  customer_code: string | null;
11100
13188
  data: import("./types").Json;
13189
+ deleted_at: string | null;
11101
13190
  due_date: string | null;
11102
13191
  fetched_at: string;
11103
13192
  invoice_date: string | null;
11104
13193
  invoice_number: string;
13194
+ lines_fetched_at: string | null;
11105
13195
  modified_at: string | null;
11106
13196
  outstanding_amount: number | null;
13197
+ paid_at: string | null;
11107
13198
  status: string | null;
11108
13199
  status_label: string | null;
11109
13200
  total_excl: number | null;
@@ -11115,12 +13206,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11115
13206
  currency?: string | null;
11116
13207
  customer_code?: string | null;
11117
13208
  data?: import("./types").Json;
13209
+ deleted_at?: string | null;
11118
13210
  due_date?: string | null;
11119
13211
  fetched_at?: string;
11120
13212
  invoice_date?: string | null;
11121
13213
  invoice_number: string;
13214
+ lines_fetched_at?: string | null;
11122
13215
  modified_at?: string | null;
11123
13216
  outstanding_amount?: number | null;
13217
+ paid_at?: string | null;
11124
13218
  status?: string | null;
11125
13219
  status_label?: string | null;
11126
13220
  total_excl?: number | null;
@@ -11132,12 +13226,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11132
13226
  currency?: string | null;
11133
13227
  customer_code?: string | null;
11134
13228
  data?: import("./types").Json;
13229
+ deleted_at?: string | null;
11135
13230
  due_date?: string | null;
11136
13231
  fetched_at?: string;
11137
13232
  invoice_date?: string | null;
11138
13233
  invoice_number?: string;
13234
+ lines_fetched_at?: string | null;
11139
13235
  modified_at?: string | null;
11140
13236
  outstanding_amount?: number | null;
13237
+ paid_at?: string | null;
11141
13238
  status?: string | null;
11142
13239
  status_label?: string | null;
11143
13240
  total_excl?: number | null;
@@ -11242,6 +13339,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11242
13339
  };
11243
13340
  Relationships: [];
11244
13341
  };
13342
+ twinfield_revoked_accounts: {
13343
+ Row: {
13344
+ account_key: string;
13345
+ last_revoke_error: string | null;
13346
+ revoked_at: string;
13347
+ user_id: string;
13348
+ };
13349
+ Insert: {
13350
+ account_key: string;
13351
+ last_revoke_error?: string | null;
13352
+ revoked_at?: string;
13353
+ user_id: string;
13354
+ };
13355
+ Update: {
13356
+ account_key?: string;
13357
+ last_revoke_error?: string | null;
13358
+ revoked_at?: string;
13359
+ user_id?: string;
13360
+ };
13361
+ Relationships: [];
13362
+ };
11245
13363
  twinfield_session_cache: {
11246
13364
  Row: {
11247
13365
  cluster: string;
@@ -11344,6 +13462,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11344
13462
  referencedColumns: ["id"];
11345
13463
  }];
11346
13464
  };
13465
+ voorraad_custom_fields: {
13466
+ Row: {
13467
+ created_at: string;
13468
+ field_key: string;
13469
+ field_label: string;
13470
+ field_type: string;
13471
+ id: string;
13472
+ options: string[];
13473
+ show_in_columns: boolean;
13474
+ show_in_detail: boolean;
13475
+ show_in_template: boolean;
13476
+ sort_order: number;
13477
+ updated_at: string;
13478
+ };
13479
+ Insert: {
13480
+ created_at?: string;
13481
+ field_key: string;
13482
+ field_label: string;
13483
+ field_type?: string;
13484
+ id?: string;
13485
+ options?: string[];
13486
+ show_in_columns?: boolean;
13487
+ show_in_detail?: boolean;
13488
+ show_in_template?: boolean;
13489
+ sort_order?: number;
13490
+ updated_at?: string;
13491
+ };
13492
+ Update: {
13493
+ created_at?: string;
13494
+ field_key?: string;
13495
+ field_label?: string;
13496
+ field_type?: string;
13497
+ id?: string;
13498
+ options?: string[];
13499
+ show_in_columns?: boolean;
13500
+ show_in_detail?: boolean;
13501
+ show_in_template?: boolean;
13502
+ sort_order?: number;
13503
+ updated_at?: string;
13504
+ };
13505
+ Relationships: [];
13506
+ };
11347
13507
  voorraad_media_upload_failures: {
11348
13508
  Row: {
11349
13509
  action: string;
@@ -12001,6 +14161,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12001
14161
  status: string | null;
12002
14162
  token_expires_at: string | null;
12003
14163
  updated_at: string | null;
14164
+ webhook_last_attempt_at: string | null;
14165
+ webhook_last_error: string | null;
14166
+ webhook_status: string | null;
12004
14167
  };
12005
14168
  Insert: {
12006
14169
  account_email?: string | null;
@@ -12035,6 +14198,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12035
14198
  status?: string | null;
12036
14199
  token_expires_at?: string | null;
12037
14200
  updated_at?: string | null;
14201
+ webhook_last_attempt_at?: string | null;
14202
+ webhook_last_error?: string | null;
14203
+ webhook_status?: string | null;
12038
14204
  };
12039
14205
  Update: {
12040
14206
  account_email?: string | null;
@@ -12069,6 +14235,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12069
14235
  status?: string | null;
12070
14236
  token_expires_at?: string | null;
12071
14237
  updated_at?: string | null;
14238
+ webhook_last_attempt_at?: string | null;
14239
+ webhook_last_error?: string | null;
14240
+ webhook_status?: string | null;
12072
14241
  };
12073
14242
  Relationships: [];
12074
14243
  };
@@ -12349,6 +14518,81 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12349
14518
  referencedColumns: ["id"];
12350
14519
  }];
12351
14520
  };
14521
+ v_external_customers_local: {
14522
+ Row: {
14523
+ city: string | null;
14524
+ commercial_name: string | null;
14525
+ company_name: string | null;
14526
+ connection_id: string | null;
14527
+ contact_person: string | null;
14528
+ country: string | null;
14529
+ email: string | null;
14530
+ external_id: string | null;
14531
+ fetched_at: string | null;
14532
+ gln: string | null;
14533
+ house_number: string | null;
14534
+ is_active: boolean | null;
14535
+ is_deleted: boolean | null;
14536
+ logo_url: string | null;
14537
+ phone: string | null;
14538
+ postal_code: string | null;
14539
+ provider: string | null;
14540
+ raw: import("./types").Json | null;
14541
+ status: string | null;
14542
+ street: string | null;
14543
+ vat_number: string | null;
14544
+ website: string | null;
14545
+ };
14546
+ Insert: {
14547
+ city?: string | null;
14548
+ commercial_name?: string | null;
14549
+ company_name?: string | null;
14550
+ connection_id?: never;
14551
+ contact_person?: string | null;
14552
+ country?: string | null;
14553
+ email?: string | null;
14554
+ external_id?: never;
14555
+ fetched_at?: never;
14556
+ gln?: string | null;
14557
+ house_number?: string | null;
14558
+ is_active?: never;
14559
+ is_deleted?: never;
14560
+ logo_url?: string | null;
14561
+ phone?: string | null;
14562
+ postal_code?: string | null;
14563
+ provider?: never;
14564
+ raw?: never;
14565
+ status?: string | null;
14566
+ street?: string | null;
14567
+ vat_number?: string | null;
14568
+ website?: string | null;
14569
+ };
14570
+ Update: {
14571
+ city?: string | null;
14572
+ commercial_name?: string | null;
14573
+ company_name?: string | null;
14574
+ connection_id?: never;
14575
+ contact_person?: string | null;
14576
+ country?: string | null;
14577
+ email?: string | null;
14578
+ external_id?: never;
14579
+ fetched_at?: never;
14580
+ gln?: string | null;
14581
+ house_number?: string | null;
14582
+ is_active?: never;
14583
+ is_deleted?: never;
14584
+ logo_url?: string | null;
14585
+ phone?: string | null;
14586
+ postal_code?: string | null;
14587
+ provider?: never;
14588
+ raw?: never;
14589
+ status?: string | null;
14590
+ street?: string | null;
14591
+ vat_number?: string | null;
14592
+ website?: string | null;
14593
+ };
14594
+ Relationships: [];
14595
+ };
12352
14596
  v_external_customers_twinfield: {
12353
14597
  Row: {
12354
14598
  city: string | null;
@@ -13277,6 +15521,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13277
15521
  };
13278
15522
  Returns: string;
13279
15523
  };
15524
+ pick_claim_document: {
15525
+ Args: {
15526
+ _queue_item_id: string;
15527
+ _screen_id: string;
15528
+ _session_id: string;
15529
+ _station_id: string;
15530
+ _timeout_seconds?: number;
15531
+ };
15532
+ Returns: {
15533
+ announced_at: string;
15534
+ assigned_user_id: string | null;
15535
+ barcode: string | null;
15536
+ cancelled_at: string | null;
15537
+ cart_count: number;
15538
+ completed_at: string | null;
15539
+ country_code: string | null;
15540
+ created_at: string;
15541
+ customer_name: string | null;
15542
+ delivery_address: string | null;
15543
+ document_number: string | null;
15544
+ document_type_id: string | null;
15545
+ due_at: string | null;
15546
+ id: string;
15547
+ is_urgent: boolean;
15548
+ line_count: number;
15549
+ order_number: string | null;
15550
+ order_type: string | null;
15551
+ payload: import("./types").Json;
15552
+ print_count: number;
15553
+ printed_at: string | null;
15554
+ printed_by: string | null;
15555
+ printer_id: string | null;
15556
+ priority: number;
15557
+ reference: string | null;
15558
+ route: string | null;
15559
+ screen_id: string | null;
15560
+ station_id: string | null;
15561
+ status_id: string | null;
15562
+ updated_at: string;
15563
+ warnings: import("./types").Json;
15564
+ };
15565
+ SetofOptions: {
15566
+ from: "*";
15567
+ to: "pick_queue";
15568
+ isOneToOne: true;
15569
+ isSetofReturn: false;
15570
+ };
15571
+ };
15572
+ pick_claim_next_document: {
15573
+ Args: {
15574
+ _country_code: string;
15575
+ _screen_id: string;
15576
+ _session_id: string;
15577
+ _station_id: string;
15578
+ _timeout_seconds?: number;
15579
+ };
15580
+ Returns: {
15581
+ announced_at: string;
15582
+ assigned_user_id: string | null;
15583
+ barcode: string | null;
15584
+ cancelled_at: string | null;
15585
+ cart_count: number;
15586
+ completed_at: string | null;
15587
+ country_code: string | null;
15588
+ created_at: string;
15589
+ customer_name: string | null;
15590
+ delivery_address: string | null;
15591
+ document_number: string | null;
15592
+ document_type_id: string | null;
15593
+ due_at: string | null;
15594
+ id: string;
15595
+ is_urgent: boolean;
15596
+ line_count: number;
15597
+ order_number: string | null;
15598
+ order_type: string | null;
15599
+ payload: import("./types").Json;
15600
+ print_count: number;
15601
+ printed_at: string | null;
15602
+ printed_by: string | null;
15603
+ printer_id: string | null;
15604
+ priority: number;
15605
+ reference: string | null;
15606
+ route: string | null;
15607
+ screen_id: string | null;
15608
+ station_id: string | null;
15609
+ status_id: string | null;
15610
+ updated_at: string;
15611
+ warnings: import("./types").Json;
15612
+ };
15613
+ SetofOptions: {
15614
+ from: "*";
15615
+ to: "pick_queue";
15616
+ isOneToOne: true;
15617
+ isSetofReturn: false;
15618
+ };
15619
+ };
15620
+ pick_complete_print: {
15621
+ Args: {
15622
+ _printer_id: string;
15623
+ _queue_item_id: string;
15624
+ _session_id: string;
15625
+ };
15626
+ Returns: {
15627
+ announced_at: string;
15628
+ assigned_user_id: string | null;
15629
+ barcode: string | null;
15630
+ cancelled_at: string | null;
15631
+ cart_count: number;
15632
+ completed_at: string | null;
15633
+ country_code: string | null;
15634
+ created_at: string;
15635
+ customer_name: string | null;
15636
+ delivery_address: string | null;
15637
+ document_number: string | null;
15638
+ document_type_id: string | null;
15639
+ due_at: string | null;
15640
+ id: string;
15641
+ is_urgent: boolean;
15642
+ line_count: number;
15643
+ order_number: string | null;
15644
+ order_type: string | null;
15645
+ payload: import("./types").Json;
15646
+ print_count: number;
15647
+ printed_at: string | null;
15648
+ printed_by: string | null;
15649
+ printer_id: string | null;
15650
+ priority: number;
15651
+ reference: string | null;
15652
+ route: string | null;
15653
+ screen_id: string | null;
15654
+ station_id: string | null;
15655
+ status_id: string | null;
15656
+ updated_at: string;
15657
+ warnings: import("./types").Json;
15658
+ };
15659
+ SetofOptions: {
15660
+ from: "*";
15661
+ to: "pick_queue";
15662
+ isOneToOne: true;
15663
+ isSetofReturn: false;
15664
+ };
15665
+ };
15666
+ pick_release_expired_locks: {
15667
+ Args: never;
15668
+ Returns: number;
15669
+ };
15670
+ pick_release_lock: {
15671
+ Args: {
15672
+ _queue_item_id: string;
15673
+ };
15674
+ Returns: undefined;
15675
+ };
15676
+ pick_station_dashboard: {
15677
+ Args: never;
15678
+ Returns: {
15679
+ active: number;
15680
+ active_sessions: number;
15681
+ avg_wait_seconds: number;
15682
+ done_today: number;
15683
+ station_id: string;
15684
+ station_name: string;
15685
+ waiting: number;
15686
+ }[];
15687
+ };
13280
15688
  pickstation_get_orders_raw: {
13281
15689
  Args: never;
13282
15690
  Returns: import("./types").Json;
@@ -13378,6 +15786,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13378
15786
  };
13379
15787
  Returns: number;
13380
15788
  };
15789
+ release_debtor_lock: {
15790
+ Args: {
15791
+ _group_key: string;
15792
+ _user_id: string;
15793
+ };
15794
+ Returns: boolean;
15795
+ };
13381
15796
  reorder_customer_price_groups: {
13382
15797
  Args: {
13383
15798
  _ids: string[];
@@ -13757,6 +16172,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13757
16172
  };
13758
16173
  Returns: undefined;
13759
16174
  };
16175
+ try_debtor_lock: {
16176
+ Args: {
16177
+ _group_key: string;
16178
+ _user_id: string;
16179
+ };
16180
+ Returns: boolean;
16181
+ };
16182
+ twinfield_register_cron: {
16183
+ Args: {
16184
+ apikey: string;
16185
+ base_url: string;
16186
+ };
16187
+ Returns: import("./types").Json;
16188
+ };
13760
16189
  twinfield_upsert_connection_by_account_key: {
13761
16190
  Args: {
13762
16191
  p_account_key: string;
@@ -13783,12 +16212,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13783
16212
  };
13784
16213
  };
13785
16214
  Enums: {
16215
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13786
16216
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16217
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16218
+ doc_orientation: "portrait" | "landscape";
13787
16219
  exact_env: "staging" | "live";
13788
16220
  exact_push_status: "pending" | "sent" | "error";
13789
16221
  itk_customer_segment: "Business" | "Private";
13790
16222
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13791
16223
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16224
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16225
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16226
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13792
16227
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13793
16228
  };
13794
16229
  CompositeTypes: { [_ in never]: never; };