@flowselections/floriday-afhandeling-module 1.0.24 → 1.0.25

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