@flowselections/floriday-voorraad 1.0.26 → 1.0.28

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 (104) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +1 -1
  4. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts +1 -1
  6. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +1 -1
  8. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/ArtikelWizard.js +21 -8
  10. package/dist-lib/components/voorraad/ConnectionBadge.d.ts +1 -1
  11. package/dist-lib/components/voorraad/ConnectionBadge.d.ts.map +1 -1
  12. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +1 -1
  13. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  14. package/dist-lib/components/voorraad/EditArtikelPage.js +3 -2
  15. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +1 -1
  16. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  17. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +1 -1
  18. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -1
  19. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts +1 -1
  20. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts.map +1 -1
  21. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts +1 -1
  22. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  23. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +1 -1
  24. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -1
  25. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +1 -1
  26. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  27. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +5 -0
  28. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -0
  29. package/dist-lib/components/voorraad/ProductCustomFieldsCard.js +65 -0
  30. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +1 -1
  31. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -1
  32. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +1 -1
  33. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -1
  34. package/dist-lib/components/voorraad/StockBulkButtons.d.ts +1 -1
  35. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  36. package/dist-lib/components/voorraad/StockBulkButtons.js +65 -2
  37. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts +1 -1
  38. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  39. package/dist-lib/components/voorraad/ValidationOverviewTable.js +8 -2
  40. package/dist-lib/components/voorraad/ValidationPage.d.ts +1 -1
  41. package/dist-lib/components/voorraad/ValidationPage.d.ts.map +1 -1
  42. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts +1 -1
  43. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +1 -1
  44. package/dist-lib/components/voorraad/VoorraadDashboard.js +4 -1
  45. package/dist-lib/components/voorraad/VoorraadPage.d.ts +1 -1
  46. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  47. package/dist-lib/components/voorraad/VoorraadPagination.d.ts +1 -1
  48. package/dist-lib/components/voorraad/VoorraadPagination.d.ts.map +1 -1
  49. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  50. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  51. package/dist-lib/components/voorraad/VoorraadTable.d.ts +1 -1
  52. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  53. package/dist-lib/components/voorraad/VoorraadTable.js +10 -2
  54. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +2 -0
  55. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -0
  56. package/dist-lib/components/voorraad/VoorraadVeldenCard.js +97 -0
  57. package/dist-lib/hooks/useFloriday.d.ts +6 -6
  58. package/dist-lib/hooks/useFloriday.d.ts.map +1 -1
  59. package/dist-lib/hooks/useFloridayVbnRequired.d.ts +2 -2
  60. package/dist-lib/hooks/useFloridayVbnRequired.d.ts.map +1 -1
  61. package/dist-lib/hooks/useLocalTradeItems.d.ts +4 -4
  62. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  63. package/dist-lib/hooks/useLocalTradeItems.js +59 -35
  64. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +1 -1
  65. package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -1
  66. package/dist-lib/hooks/useVbnRegulatoryFeatures.d.ts +1 -1
  67. package/dist-lib/hooks/useVbnRegulatoryFeatures.d.ts.map +1 -1
  68. package/dist-lib/hooks/useVoorraadCustomFields.d.ts +9 -0
  69. package/dist-lib/hooks/useVoorraadCustomFields.d.ts.map +1 -0
  70. package/dist-lib/hooks/useVoorraadCustomFields.js +26 -0
  71. package/dist-lib/index.d.ts +2 -0
  72. package/dist-lib/index.d.ts.map +1 -1
  73. package/dist-lib/index.js +4 -1
  74. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2358 -177
  75. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  76. package/dist-lib/integrations/supabase/client.d.ts +2358 -177
  77. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  78. package/dist-lib/integrations/supabase/client.server.d.ts +2358 -177
  79. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  80. package/dist-lib/integrations/supabase/types.d.ts +2428 -174
  81. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  82. package/dist-lib/integrations/supabase/types.js +49 -0
  83. package/dist-lib/lib/floricode-required-features.functions.d.ts +2373 -198
  84. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  85. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2375 -192
  86. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  87. package/dist-lib/lib/floriday-gateway.functions.d.ts +49617 -38712
  88. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +13843 -9481
  90. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/floriday-warehouse.functions.d.ts +25719 -19176
  92. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  93. package/dist-lib/lib/floriday-writes.functions.d.ts +13826 -9464
  94. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  95. package/dist-lib/lib/voorraad-custom-fields.d.ts +22 -0
  96. package/dist-lib/lib/voorraad-custom-fields.d.ts.map +1 -0
  97. package/dist-lib/lib/voorraad-custom-fields.js +71 -0
  98. package/package.json +1 -1
  99. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts +0 -2
  100. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts.map +0 -1
  101. package/dist-lib/components/settings/VoorraadSettingsCard.js +0 -39
  102. package/dist-lib/components/voorraad/ConnectionPicker.d.ts +0 -8
  103. package/dist-lib/components/voorraad/ConnectionPicker.d.ts.map +0 -1
  104. package/dist-lib/components/voorraad/ConnectionPicker.js +0 -8
@@ -61,13 +61,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
61
61
  signup_mail_lead_minutes?: number;
62
62
  signup_mail_purpose?: string;
63
63
  transport_register_days_before?: number;
64
- updated_at
65
- /**
66
- * Minimalistische Supabase-client-shape die `computeVbnRequiredFeatures`
67
- * daadwerkelijk gebruikt. Getypeerd als `any` zodat zowel de echte
68
- * `SupabaseClient` als de fake-client in tests passen.
69
- */
70
- ?: string;
64
+ updated_at?: string;
71
65
  user_id: string;
72
66
  };
73
67
  Update: {
@@ -428,6 +422,63 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
428
422
  };
429
423
  Relationships: [];
430
424
  };
425
+ ai_layout_imports: {
426
+ Row: {
427
+ analyse_json: import("../integrations/supabase/types").Json;
428
+ bestand_url: string | null;
429
+ bestandsnaam: string;
430
+ bevestigd: boolean;
431
+ created_at: string;
432
+ created_by: string | null;
433
+ foutmelding: string | null;
434
+ id: string;
435
+ layout_id: string | null;
436
+ mime_type: string;
437
+ onzekere_velden: import("../integrations/supabase/types").Json;
438
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
439
+ updated_at: string;
440
+ voorstel: import("../integrations/supabase/types").Json;
441
+ };
442
+ Insert: {
443
+ analyse_json?: import("../integrations/supabase/types").Json;
444
+ bestand_url?: string | null;
445
+ bestandsnaam?: string;
446
+ bevestigd?: boolean;
447
+ created_at?: string;
448
+ created_by?: string | null;
449
+ foutmelding?: string | null;
450
+ id?: string;
451
+ layout_id?: string | null;
452
+ mime_type?: string;
453
+ onzekere_velden?: import("../integrations/supabase/types").Json;
454
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
455
+ updated_at?: string;
456
+ voorstel?: import("../integrations/supabase/types").Json;
457
+ };
458
+ Update: {
459
+ analyse_json?: import("../integrations/supabase/types").Json;
460
+ bestand_url?: string | null;
461
+ bestandsnaam?: string;
462
+ bevestigd?: boolean;
463
+ created_at?: string;
464
+ created_by?: string | null;
465
+ foutmelding?: string | null;
466
+ id?: string;
467
+ layout_id?: string | null;
468
+ mime_type?: string;
469
+ onzekere_velden?: import("../integrations/supabase/types").Json;
470
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["ai_import_status"];
471
+ updated_at?: string;
472
+ voorstel?: import("../integrations/supabase/types").Json;
473
+ };
474
+ Relationships: [{
475
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
476
+ columns: ["layout_id"];
477
+ isOneToOne: false;
478
+ referencedRelation: "document_layouts";
479
+ referencedColumns: ["id"];
480
+ }];
481
+ };
431
482
  ai_model_pricing: {
432
483
  Row: {
433
484
  created_at: string;
@@ -518,6 +569,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
518
569
  created_at: string;
519
570
  credential_id: string;
520
571
  id: string;
572
+ is_default: boolean;
573
+ label: string | null;
521
574
  model_id: string;
522
575
  notes: string | null;
523
576
  updated_at: string;
@@ -527,6 +580,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
527
580
  created_at?: string;
528
581
  credential_id: string;
529
582
  id?: string;
583
+ is_default?: boolean;
584
+ label?: string | null;
530
585
  model_id: string;
531
586
  notes?: string | null;
532
587
  updated_at?: string;
@@ -536,6 +591,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
536
591
  created_at?: string;
537
592
  credential_id?: string;
538
593
  id?: string;
594
+ is_default?: boolean;
595
+ label?: string | null;
539
596
  model_id?: string;
540
597
  notes?: string | null;
541
598
  updated_at?: string;
@@ -554,6 +611,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
554
611
  referencedColumns: ["id"];
555
612
  }];
556
613
  };
614
+ ai_modules: {
615
+ Row: {
616
+ ai_enabled: boolean;
617
+ created_at: string;
618
+ id: string;
619
+ module_key: string;
620
+ module_name: string;
621
+ updated_at: string;
622
+ };
623
+ Insert: {
624
+ ai_enabled?: boolean;
625
+ created_at?: string;
626
+ id?: string;
627
+ module_key: string;
628
+ module_name: string;
629
+ updated_at?: string;
630
+ };
631
+ Update: {
632
+ ai_enabled?: boolean;
633
+ created_at?: string;
634
+ id?: string;
635
+ module_key?: string;
636
+ module_name?: string;
637
+ updated_at?: string;
638
+ };
639
+ Relationships: [{
640
+ foreignKeyName: "ai_modules_module_key_fkey";
641
+ columns: ["module_key"];
642
+ isOneToOne: true;
643
+ referencedRelation: "modules";
644
+ referencedColumns: ["module_key"];
645
+ }];
646
+ };
557
647
  ai_providers: {
558
648
  Row: {
559
649
  active: boolean;
@@ -1296,6 +1386,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1296
1386
  require_same_crate_type: boolean;
1297
1387
  require_same_delivery_date: boolean;
1298
1388
  require_same_delivery_location: boolean;
1389
+ uniform_pick_time: boolean;
1390
+ uniform_pick_time_seconds: number;
1299
1391
  updated_at: string;
1300
1392
  updated_by: string | null;
1301
1393
  };
@@ -1320,6 +1412,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1320
1412
  require_same_crate_type?: boolean;
1321
1413
  require_same_delivery_date?: boolean;
1322
1414
  require_same_delivery_location?: boolean;
1415
+ uniform_pick_time?: boolean;
1416
+ uniform_pick_time_seconds?: number;
1323
1417
  updated_at?: string;
1324
1418
  updated_by?: string | null;
1325
1419
  };
@@ -1344,6 +1438,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1344
1438
  require_same_crate_type?: boolean;
1345
1439
  require_same_delivery_date?: boolean;
1346
1440
  require_same_delivery_location?: boolean;
1441
+ uniform_pick_time?: boolean;
1442
+ uniform_pick_time_seconds?: number;
1347
1443
  updated_at?: string;
1348
1444
  updated_by?: string | null;
1349
1445
  };
@@ -2477,6 +2573,351 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2477
2573
  };
2478
2574
  Relationships: [];
2479
2575
  };
2576
+ document_formaat_printers: {
2577
+ Row: {
2578
+ created_at: string;
2579
+ documenttype: string;
2580
+ formaat_code: string;
2581
+ id: string;
2582
+ printer_id: string | null;
2583
+ updated_at: string;
2584
+ };
2585
+ Insert: {
2586
+ created_at?: string;
2587
+ documenttype: string;
2588
+ formaat_code: string;
2589
+ id?: string;
2590
+ printer_id?: string | null;
2591
+ updated_at?: string;
2592
+ };
2593
+ Update: {
2594
+ created_at?: string;
2595
+ documenttype?: string;
2596
+ formaat_code?: string;
2597
+ id?: string;
2598
+ printer_id?: string | null;
2599
+ updated_at?: string;
2600
+ };
2601
+ Relationships: [{
2602
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2603
+ columns: ["printer_id"];
2604
+ isOneToOne: false;
2605
+ referencedRelation: "printers";
2606
+ referencedColumns: ["id"];
2607
+ }];
2608
+ };
2609
+ document_layout_conditions: {
2610
+ Row: {
2611
+ created_at: string;
2612
+ element_key: string;
2613
+ id: string;
2614
+ layout_id: string;
2615
+ operator: string;
2616
+ updated_at: string;
2617
+ veld: string;
2618
+ waarde: string;
2619
+ };
2620
+ Insert: {
2621
+ created_at?: string;
2622
+ element_key: string;
2623
+ id?: string;
2624
+ layout_id: string;
2625
+ operator?: string;
2626
+ updated_at?: string;
2627
+ veld: string;
2628
+ waarde?: string;
2629
+ };
2630
+ Update: {
2631
+ created_at?: string;
2632
+ element_key?: string;
2633
+ id?: string;
2634
+ layout_id?: string;
2635
+ operator?: string;
2636
+ updated_at?: string;
2637
+ veld?: string;
2638
+ waarde?: string;
2639
+ };
2640
+ Relationships: [{
2641
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2642
+ columns: ["layout_id"];
2643
+ isOneToOne: false;
2644
+ referencedRelation: "document_layouts";
2645
+ referencedColumns: ["id"];
2646
+ }];
2647
+ };
2648
+ document_layout_datasources: {
2649
+ Row: {
2650
+ alias: string;
2651
+ created_at: string;
2652
+ entiteit: string;
2653
+ filter: import("../integrations/supabase/types").Json;
2654
+ id: string;
2655
+ layout_id: string;
2656
+ module_id: string;
2657
+ updated_at: string;
2658
+ };
2659
+ Insert: {
2660
+ alias?: string;
2661
+ created_at?: string;
2662
+ entiteit: string;
2663
+ filter?: import("../integrations/supabase/types").Json;
2664
+ id?: string;
2665
+ layout_id: string;
2666
+ module_id: string;
2667
+ updated_at?: string;
2668
+ };
2669
+ Update: {
2670
+ alias?: string;
2671
+ created_at?: string;
2672
+ entiteit?: string;
2673
+ filter?: import("../integrations/supabase/types").Json;
2674
+ id?: string;
2675
+ layout_id?: string;
2676
+ module_id?: string;
2677
+ updated_at?: string;
2678
+ };
2679
+ Relationships: [{
2680
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2681
+ columns: ["layout_id"];
2682
+ isOneToOne: false;
2683
+ referencedRelation: "document_layouts";
2684
+ referencedColumns: ["id"];
2685
+ }];
2686
+ };
2687
+ document_layout_elements: {
2688
+ Row: {
2689
+ breedte: number;
2690
+ config: import("../integrations/supabase/types").Json;
2691
+ content: string;
2692
+ created_at: string;
2693
+ element_key: string;
2694
+ hoogte: number;
2695
+ id: string;
2696
+ layout_id: string;
2697
+ logo_id: string | null;
2698
+ parent_key: string | null;
2699
+ rotatie: number;
2700
+ stijl: import("../integrations/supabase/types").Json;
2701
+ type: string;
2702
+ updated_at: string;
2703
+ veldpad: string | null;
2704
+ verborgen: boolean;
2705
+ vergrendeld: boolean;
2706
+ volgorde: number;
2707
+ x: number;
2708
+ y: number;
2709
+ z_index: number;
2710
+ };
2711
+ Insert: {
2712
+ breedte?: number;
2713
+ config?: import("../integrations/supabase/types").Json;
2714
+ content?: string;
2715
+ created_at?: string;
2716
+ element_key: string;
2717
+ hoogte?: number;
2718
+ id?: string;
2719
+ layout_id: string;
2720
+ logo_id?: string | null;
2721
+ parent_key?: string | null;
2722
+ rotatie?: number;
2723
+ stijl?: import("../integrations/supabase/types").Json;
2724
+ type: string;
2725
+ updated_at?: string;
2726
+ veldpad?: string | null;
2727
+ verborgen?: boolean;
2728
+ vergrendeld?: boolean;
2729
+ volgorde?: number;
2730
+ x?: number;
2731
+ y?: number;
2732
+ z_index?: number;
2733
+ };
2734
+ Update: {
2735
+ breedte?: number;
2736
+ config?: import("../integrations/supabase/types").Json;
2737
+ content?: string;
2738
+ created_at?: string;
2739
+ element_key?: string;
2740
+ hoogte?: number;
2741
+ id?: string;
2742
+ layout_id?: string;
2743
+ logo_id?: string | null;
2744
+ parent_key?: string | null;
2745
+ rotatie?: number;
2746
+ stijl?: import("../integrations/supabase/types").Json;
2747
+ type?: string;
2748
+ updated_at?: string;
2749
+ veldpad?: string | null;
2750
+ verborgen?: boolean;
2751
+ vergrendeld?: boolean;
2752
+ volgorde?: number;
2753
+ x?: number;
2754
+ y?: number;
2755
+ z_index?: number;
2756
+ };
2757
+ Relationships: [{
2758
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2759
+ columns: ["layout_id"];
2760
+ isOneToOne: false;
2761
+ referencedRelation: "document_layouts";
2762
+ referencedColumns: ["id"];
2763
+ }, {
2764
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2765
+ columns: ["logo_id"];
2766
+ isOneToOne: false;
2767
+ referencedRelation: "layout_logos";
2768
+ referencedColumns: ["id"];
2769
+ }];
2770
+ };
2771
+ document_layout_variables: {
2772
+ Row: {
2773
+ created_at: string;
2774
+ expressie: string;
2775
+ id: string;
2776
+ layout_id: string;
2777
+ naam: string;
2778
+ omschrijving: string;
2779
+ updated_at: string;
2780
+ };
2781
+ Insert: {
2782
+ created_at?: string;
2783
+ expressie?: string;
2784
+ id?: string;
2785
+ layout_id: string;
2786
+ naam: string;
2787
+ omschrijving?: string;
2788
+ updated_at?: string;
2789
+ };
2790
+ Update: {
2791
+ created_at?: string;
2792
+ expressie?: string;
2793
+ id?: string;
2794
+ layout_id?: string;
2795
+ naam?: string;
2796
+ omschrijving?: string;
2797
+ updated_at?: string;
2798
+ };
2799
+ Relationships: [{
2800
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2801
+ columns: ["layout_id"];
2802
+ isOneToOne: false;
2803
+ referencedRelation: "document_layouts";
2804
+ referencedColumns: ["id"];
2805
+ }];
2806
+ };
2807
+ document_layout_versions: {
2808
+ Row: {
2809
+ commentaar: string;
2810
+ created_at: string;
2811
+ created_by: string | null;
2812
+ elements: import("../integrations/supabase/types").Json;
2813
+ id: string;
2814
+ layout_id: string;
2815
+ page_settings: import("../integrations/supabase/types").Json;
2816
+ updated_at: string;
2817
+ versienummer: number;
2818
+ };
2819
+ Insert: {
2820
+ commentaar?: string;
2821
+ created_at?: string;
2822
+ created_by?: string | null;
2823
+ elements?: import("../integrations/supabase/types").Json;
2824
+ id?: string;
2825
+ layout_id: string;
2826
+ page_settings?: import("../integrations/supabase/types").Json;
2827
+ updated_at?: string;
2828
+ versienummer: number;
2829
+ };
2830
+ Update: {
2831
+ commentaar?: string;
2832
+ created_at?: string;
2833
+ created_by?: string | null;
2834
+ elements?: import("../integrations/supabase/types").Json;
2835
+ id?: string;
2836
+ layout_id?: string;
2837
+ page_settings?: import("../integrations/supabase/types").Json;
2838
+ updated_at?: string;
2839
+ versienummer?: number;
2840
+ };
2841
+ Relationships: [{
2842
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2843
+ columns: ["layout_id"];
2844
+ isOneToOne: false;
2845
+ referencedRelation: "document_layouts";
2846
+ referencedColumns: ["id"];
2847
+ }];
2848
+ };
2849
+ document_layouts: {
2850
+ Row: {
2851
+ actief: boolean;
2852
+ breedte_mm: number;
2853
+ config: import("../integrations/supabase/types").Json;
2854
+ created_at: string;
2855
+ created_by: string | null;
2856
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2857
+ hoogte_mm: number;
2858
+ huidige_versie: number;
2859
+ id: string;
2860
+ is_standaard: boolean;
2861
+ marge_boven: number;
2862
+ marge_links: number;
2863
+ marge_onder: number;
2864
+ marge_rechts: number;
2865
+ naam: string;
2866
+ omschrijving: string;
2867
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2868
+ page_settings: import("../integrations/supabase/types").Json;
2869
+ papierformaat: string;
2870
+ thumbnail_url: string | null;
2871
+ updated_at: string;
2872
+ };
2873
+ Insert: {
2874
+ actief?: boolean;
2875
+ breedte_mm?: number;
2876
+ config?: import("../integrations/supabase/types").Json;
2877
+ created_at?: string;
2878
+ created_by?: string | null;
2879
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2880
+ hoogte_mm?: number;
2881
+ huidige_versie?: number;
2882
+ id?: string;
2883
+ is_standaard?: boolean;
2884
+ marge_boven?: number;
2885
+ marge_links?: number;
2886
+ marge_onder?: number;
2887
+ marge_rechts?: number;
2888
+ naam: string;
2889
+ omschrijving?: string;
2890
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2891
+ page_settings?: import("../integrations/supabase/types").Json;
2892
+ papierformaat?: string;
2893
+ thumbnail_url?: string | null;
2894
+ updated_at?: string;
2895
+ };
2896
+ Update: {
2897
+ actief?: boolean;
2898
+ breedte_mm?: number;
2899
+ config?: import("../integrations/supabase/types").Json;
2900
+ created_at?: string;
2901
+ created_by?: string | null;
2902
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
2903
+ hoogte_mm?: number;
2904
+ huidige_versie?: number;
2905
+ id?: string;
2906
+ is_standaard?: boolean;
2907
+ marge_boven?: number;
2908
+ marge_links?: number;
2909
+ marge_onder?: number;
2910
+ marge_rechts?: number;
2911
+ naam?: string;
2912
+ omschrijving?: string;
2913
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2914
+ page_settings?: import("../integrations/supabase/types").Json;
2915
+ papierformaat?: string;
2916
+ thumbnail_url?: string | null;
2917
+ updated_at?: string;
2918
+ };
2919
+ Relationships: [];
2920
+ };
2480
2921
  email_auth_connections: {
2481
2922
  Row: {
2482
2923
  access_token_encrypted: string | null;
@@ -2516,6 +2957,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2516
2957
  status: string;
2517
2958
  token_expires_at: string | null;
2518
2959
  updated_at: string;
2960
+ webhook_last_attempt_at: string | null;
2961
+ webhook_last_error: string | null;
2962
+ webhook_status: string;
2519
2963
  };
2520
2964
  Insert: {
2521
2965
  access_token_encrypted?: string | null;
@@ -2555,6 +2999,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2555
2999
  status?: string;
2556
3000
  token_expires_at?: string | null;
2557
3001
  updated_at?: string;
3002
+ webhook_last_attempt_at?: string | null;
3003
+ webhook_last_error?: string | null;
3004
+ webhook_status?: string;
2558
3005
  };
2559
3006
  Update: {
2560
3007
  access_token_encrypted?: string | null;
@@ -2594,6 +3041,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2594
3041
  status?: string;
2595
3042
  token_expires_at?: string | null;
2596
3043
  updated_at?: string;
3044
+ webhook_last_attempt_at?: string | null;
3045
+ webhook_last_error?: string | null;
3046
+ webhook_status?: string;
2597
3047
  };
2598
3048
  Relationships: [];
2599
3049
  };
@@ -2789,6 +3239,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2789
3239
  referencedColumns: ["id"];
2790
3240
  }];
2791
3241
  };
3242
+ email_auth_webhook_log: {
3243
+ Row: {
3244
+ body_sample: string | null;
3245
+ connection_id: string | null;
3246
+ created_at: string;
3247
+ error_message: string | null;
3248
+ headers_sample: import("../integrations/supabase/types").Json | null;
3249
+ id: string;
3250
+ notification_count: number | null;
3251
+ provider: string | null;
3252
+ source: string | null;
3253
+ status: string;
3254
+ subscription_id: string | null;
3255
+ };
3256
+ Insert: {
3257
+ body_sample?: string | null;
3258
+ connection_id?: string | null;
3259
+ created_at?: string;
3260
+ error_message?: string | null;
3261
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3262
+ id?: string;
3263
+ notification_count?: number | null;
3264
+ provider?: string | null;
3265
+ source?: string | null;
3266
+ status: string;
3267
+ subscription_id?: string | null;
3268
+ };
3269
+ Update: {
3270
+ body_sample?: string | null;
3271
+ connection_id?: string | null;
3272
+ created_at?: string;
3273
+ error_message?: string | null;
3274
+ headers_sample?: import("../integrations/supabase/types").Json | null;
3275
+ id?: string;
3276
+ notification_count?: number | null;
3277
+ provider?: string | null;
3278
+ source?: string | null;
3279
+ status?: string;
3280
+ subscription_id?: string | null;
3281
+ };
3282
+ Relationships: [{
3283
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3284
+ columns: ["connection_id"];
3285
+ isOneToOne: false;
3286
+ referencedRelation: "email_auth_connections";
3287
+ referencedColumns: ["id"];
3288
+ }, {
3289
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3290
+ columns: ["connection_id"];
3291
+ isOneToOne: false;
3292
+ referencedRelation: "email_auth_connections_safe";
3293
+ referencedColumns: ["id"];
3294
+ }];
3295
+ };
2792
3296
  exact_account_analytics_cache: {
2793
3297
  Row: {
2794
3298
  account_id: string;
@@ -5561,9 +6065,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5561
6065
  referencedColumns: ["id"];
5562
6066
  }];
5563
6067
  };
5564
- floriday_trips_cache: {
6068
+ floriday_trade_settings_customers_cache: {
5565
6069
  Row: {
5566
- carrier_organization_id: string | null;
5567
6070
  connection_id: string;
5568
6071
  data: import("../integrations/supabase/types").Json;
5569
6072
  fetched_at: string;
@@ -5571,8 +6074,48 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5571
6074
  id: string;
5572
6075
  is_deleted: boolean;
5573
6076
  sequence_number: number;
5574
- status: string | null;
5575
- trip_date: string | null;
6077
+ updated_at: string;
6078
+ };
6079
+ Insert: {
6080
+ connection_id: string;
6081
+ data: import("../integrations/supabase/types").Json;
6082
+ fetched_at?: string;
6083
+ floriday_id: string;
6084
+ id?: string;
6085
+ is_deleted?: boolean;
6086
+ sequence_number?: number;
6087
+ updated_at?: string;
6088
+ };
6089
+ Update: {
6090
+ connection_id?: string;
6091
+ data?: import("../integrations/supabase/types").Json;
6092
+ fetched_at?: string;
6093
+ floriday_id?: string;
6094
+ id?: string;
6095
+ is_deleted?: boolean;
6096
+ sequence_number?: number;
6097
+ updated_at?: string;
6098
+ };
6099
+ Relationships: [{
6100
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
6101
+ columns: ["connection_id"];
6102
+ isOneToOne: false;
6103
+ referencedRelation: "floriday_connections";
6104
+ referencedColumns: ["id"];
6105
+ }];
6106
+ };
6107
+ floriday_trips_cache: {
6108
+ Row: {
6109
+ carrier_organization_id: string | null;
6110
+ connection_id: string;
6111
+ data: import("../integrations/supabase/types").Json;
6112
+ fetched_at: string;
6113
+ floriday_id: string;
6114
+ id: string;
6115
+ is_deleted: boolean;
6116
+ sequence_number: number;
6117
+ status: string | null;
6118
+ trip_date: string | null;
5576
6119
  updated_at: string;
5577
6120
  };
5578
6121
  Insert: {
@@ -5963,6 +6506,36 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
5963
6506
  };
5964
6507
  Relationships: [];
5965
6508
  };
6509
+ invoice_post_idempotency: {
6510
+ Row: {
6511
+ client_request_id: string;
6512
+ completed_at: string | null;
6513
+ created_at: string;
6514
+ error_message: string | null;
6515
+ invoice_number: string | null;
6516
+ status: string;
6517
+ user_id: string;
6518
+ };
6519
+ Insert: {
6520
+ client_request_id: string;
6521
+ completed_at?: string | null;
6522
+ created_at?: string;
6523
+ error_message?: string | null;
6524
+ invoice_number?: string | null;
6525
+ status?: string;
6526
+ user_id: string;
6527
+ };
6528
+ Update: {
6529
+ client_request_id?: string;
6530
+ completed_at?: string | null;
6531
+ created_at?: string;
6532
+ error_message?: string | null;
6533
+ invoice_number?: string | null;
6534
+ status?: string;
6535
+ user_id?: string;
6536
+ };
6537
+ Relationships: [];
6538
+ };
5966
6539
  invoice_push_log: {
5967
6540
  Row: {
5968
6541
  connection_id: string | null;
@@ -6350,6 +6923,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6350
6923
  referencedColumns: ["id"];
6351
6924
  }];
6352
6925
  };
6926
+ layout_logos: {
6927
+ Row: {
6928
+ bestand_url: string;
6929
+ bestandsgrootte: number;
6930
+ bestandspad: string | null;
6931
+ bestandstype: string;
6932
+ breedte: number;
6933
+ categorie: string;
6934
+ created_at: string;
6935
+ hash: string | null;
6936
+ hoogte: number;
6937
+ id: string;
6938
+ is_standaard: boolean;
6939
+ naam: string;
6940
+ omschrijving: string;
6941
+ transparant: boolean;
6942
+ updated_at: string;
6943
+ };
6944
+ Insert: {
6945
+ bestand_url: string;
6946
+ bestandsgrootte?: number;
6947
+ bestandspad?: string | null;
6948
+ bestandstype?: string;
6949
+ breedte?: number;
6950
+ categorie?: string;
6951
+ created_at?: string;
6952
+ hash?: string | null;
6953
+ hoogte?: number;
6954
+ id?: string;
6955
+ is_standaard?: boolean;
6956
+ naam: string;
6957
+ omschrijving?: string;
6958
+ transparant?: boolean;
6959
+ updated_at?: string;
6960
+ };
6961
+ Update: {
6962
+ bestand_url?: string;
6963
+ bestandsgrootte?: number;
6964
+ bestandspad?: string | null;
6965
+ bestandstype?: string;
6966
+ breedte?: number;
6967
+ categorie?: string;
6968
+ created_at?: string;
6969
+ hash?: string | null;
6970
+ hoogte?: number;
6971
+ id?: string;
6972
+ is_standaard?: boolean;
6973
+ naam?: string;
6974
+ omschrijving?: string;
6975
+ transparant?: boolean;
6976
+ updated_at?: string;
6977
+ };
6978
+ Relationships: [];
6979
+ };
6353
6980
  leave_requests: {
6354
6981
  Row: {
6355
6982
  created_at: string;
@@ -6893,6 +7520,99 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6893
7520
  };
6894
7521
  Relationships: [];
6895
7522
  };
7523
+ mailbox_ai_goal_prompts: {
7524
+ Row: {
7525
+ created_at: string;
7526
+ goal_key: string;
7527
+ id: string;
7528
+ system_prompt: string;
7529
+ updated_at: string;
7530
+ };
7531
+ Insert: {
7532
+ created_at?: string;
7533
+ goal_key: string;
7534
+ id?: string;
7535
+ system_prompt?: string;
7536
+ updated_at?: string;
7537
+ };
7538
+ Update: {
7539
+ created_at?: string;
7540
+ goal_key?: string;
7541
+ id?: string;
7542
+ system_prompt?: string;
7543
+ updated_at?: string;
7544
+ };
7545
+ Relationships: [];
7546
+ };
7547
+ mailbox_ai_settings: {
7548
+ Row: {
7549
+ active_goal_key: string | null;
7550
+ created_at: string;
7551
+ enabled: boolean;
7552
+ id: string;
7553
+ required_fields: string[];
7554
+ singleton: boolean;
7555
+ system_prompt: string | null;
7556
+ updated_at: string;
7557
+ };
7558
+ Insert: {
7559
+ active_goal_key?: string | null;
7560
+ created_at?: string;
7561
+ enabled?: boolean;
7562
+ id?: string;
7563
+ required_fields?: string[];
7564
+ singleton?: boolean;
7565
+ system_prompt?: string | null;
7566
+ updated_at?: string;
7567
+ };
7568
+ Update: {
7569
+ active_goal_key?: string | null;
7570
+ created_at?: string;
7571
+ enabled?: boolean;
7572
+ id?: string;
7573
+ required_fields?: string[];
7574
+ singleton?: boolean;
7575
+ system_prompt?: string | null;
7576
+ updated_at?: string;
7577
+ };
7578
+ Relationships: [];
7579
+ };
7580
+ mailbox_ingest_runs: {
7581
+ Row: {
7582
+ connection_id: string | null;
7583
+ error_sample: string | null;
7584
+ errors: number;
7585
+ finished_at: string | null;
7586
+ id: string;
7587
+ inserted: number;
7588
+ processed: number;
7589
+ started_at: string;
7590
+ trigger: string;
7591
+ };
7592
+ Insert: {
7593
+ connection_id?: string | null;
7594
+ error_sample?: string | null;
7595
+ errors?: number;
7596
+ finished_at?: string | null;
7597
+ id?: string;
7598
+ inserted?: number;
7599
+ processed?: number;
7600
+ started_at?: string;
7601
+ trigger: string;
7602
+ };
7603
+ Update: {
7604
+ connection_id?: string | null;
7605
+ error_sample?: string | null;
7606
+ errors?: number;
7607
+ finished_at?: string | null;
7608
+ id?: string;
7609
+ inserted?: number;
7610
+ processed?: number;
7611
+ started_at?: string;
7612
+ trigger?: string;
7613
+ };
7614
+ Relationships: [];
7615
+ };
6896
7616
  mailbox_messages: {
6897
7617
  Row: {
6898
7618
  body_html: string | null;
@@ -6973,6 +7693,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6973
7693
  };
6974
7694
  mailbox_order_proposals: {
6975
7695
  Row: {
7696
+ ai_validation: import("../integrations/supabase/types").Json | null;
6976
7697
  confidence: number | null;
6977
7698
  created_at: string;
6978
7699
  created_order_id: string | null;
@@ -6989,6 +7710,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6989
7710
  updated_at: string;
6990
7711
  };
6991
7712
  Insert: {
7713
+ ai_validation?: import("../integrations/supabase/types").Json | null;
6992
7714
  confidence?: number | null;
6993
7715
  created_at?: string;
6994
7716
  created_order_id?: string | null;
@@ -7005,6 +7727,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7005
7727
  updated_at?: string;
7006
7728
  };
7007
7729
  Update: {
7730
+ ai_validation?: import("../integrations/supabase/types").Json | null;
7008
7731
  confidence?: number | null;
7009
7732
  created_at?: string;
7010
7733
  created_order_id?: string | null;
@@ -7141,6 +7864,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7141
7864
  created_at: string;
7142
7865
  id: string;
7143
7866
  match_confidence: number | null;
7867
+ plant_type: string | null;
7144
7868
  product_id: string | null;
7145
7869
  proposal_id: string;
7146
7870
  quantity: number | null;
@@ -7153,6 +7877,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7153
7877
  created_at?: string;
7154
7878
  id?: string;
7155
7879
  match_confidence?: number | null;
7880
+ plant_type?: string | null;
7156
7881
  product_id?: string | null;
7157
7882
  proposal_id: string;
7158
7883
  quantity?: number | null;
@@ -7165,6 +7890,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7165
7890
  created_at?: string;
7166
7891
  id?: string;
7167
7892
  match_confidence?: number | null;
7893
+ plant_type?: string | null;
7168
7894
  product_id?: string | null;
7169
7895
  proposal_id?: string;
7170
7896
  quantity?: number | null;
@@ -7349,6 +8075,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7349
8075
  };
7350
8076
  Relationships: [];
7351
8077
  };
8078
+ modules: {
8079
+ Row: {
8080
+ created_at: string;
8081
+ description: string | null;
8082
+ id: string;
8083
+ is_active: boolean;
8084
+ last_seen_at: string | null;
8085
+ module_key: string;
8086
+ module_name: string;
8087
+ updated_at: string;
8088
+ };
8089
+ Insert: {
8090
+ created_at?: string;
8091
+ description?: string | null;
8092
+ id?: string;
8093
+ is_active?: boolean;
8094
+ last_seen_at?: string | null;
8095
+ module_key: string;
8096
+ module_name: string;
8097
+ updated_at?: string;
8098
+ };
8099
+ Update: {
8100
+ created_at?: string;
8101
+ description?: string | null;
8102
+ id?: string;
8103
+ is_active?: boolean;
8104
+ last_seen_at?: string | null;
8105
+ module_key?: string;
8106
+ module_name?: string;
8107
+ updated_at?: string;
8108
+ };
8109
+ Relationships: [];
8110
+ };
7352
8111
  monteurs: {
7353
8112
  Row: {
7354
8113
  avatar_url: string | null;
@@ -8305,9 +9064,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8305
9064
  };
8306
9065
  order_items: {
8307
9066
  Row: {
9067
+ crates_per_layer: number | null;
8308
9068
  created_at: string;
8309
9069
  id: string;
9070
+ layers_per_cart: number | null;
8310
9071
  order_id: string;
9072
+ plants_per_crate: number | null;
8311
9073
  product_id: string | null;
8312
9074
  product_name: string;
8313
9075
  quantity: number;
@@ -8315,9 +9077,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8315
9077
  unit_price: number | null;
8316
9078
  };
8317
9079
  Insert: {
9080
+ crates_per_layer?: number | null;
8318
9081
  created_at?: string;
8319
9082
  id?: string;
9083
+ layers_per_cart?: number | null;
8320
9084
  order_id: string;
9085
+ plants_per_crate?: number | null;
8321
9086
  product_id?: string | null;
8322
9087
  product_name: string;
8323
9088
  quantity?: number;
@@ -8325,9 +9090,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8325
9090
  unit_price?: number | null;
8326
9091
  };
8327
9092
  Update: {
9093
+ crates_per_layer?: number | null;
8328
9094
  created_at?: string;
8329
9095
  id?: string;
9096
+ layers_per_cart?: number | null;
8330
9097
  order_id?: string;
9098
+ plants_per_crate?: number | null;
8331
9099
  product_id?: string | null;
8332
9100
  product_name?: string;
8333
9101
  quantity?: number;
@@ -8579,99 +9347,978 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8579
9347
  };
8580
9348
  Relationships: [];
8581
9349
  };
8582
- pickstation_print_log: {
8583
- Row: {
8584
- customer_name: string | null;
8585
- documents: string[];
8586
- id: string;
8587
- ip_address: string | null;
8588
- order_id: string;
8589
- order_number: string | null;
8590
- printed_at: string;
8591
- };
8592
- Insert: {
8593
- customer_name?: string | null;
8594
- documents?: string[];
8595
- id?: string;
8596
- ip_address?: string | null;
8597
- order_id: string;
8598
- order_number?: string | null;
8599
- printed_at?: string;
8600
- };
8601
- Update: {
8602
- customer_name?: string | null;
8603
- documents?: string[];
8604
- id?: string;
8605
- ip_address?: string | null;
8606
- order_id?: string;
8607
- order_number?: string | null;
8608
- printed_at?: string;
8609
- };
8610
- Relationships: [];
8611
- };
8612
- pipeline_settings: {
9350
+ pick_countries: {
8613
9351
  Row: {
9352
+ active: boolean;
9353
+ code: string;
8614
9354
  created_at: string;
9355
+ flag: string | null;
8615
9356
  id: string;
8616
- key: string;
9357
+ name: string;
9358
+ sort_order: number;
8617
9359
  updated_at: string;
8618
- value: string | null;
8619
9360
  };
8620
9361
  Insert: {
9362
+ active?: boolean;
9363
+ code: string;
8621
9364
  created_at?: string;
9365
+ flag?: string | null;
8622
9366
  id?: string;
8623
- key: string;
9367
+ name: string;
9368
+ sort_order?: number;
8624
9369
  updated_at?: string;
8625
- value?: string | null;
8626
9370
  };
8627
9371
  Update: {
9372
+ active?: boolean;
9373
+ code?: string;
8628
9374
  created_at?: string;
9375
+ flag?: string | null;
8629
9376
  id?: string;
8630
- key?: string;
9377
+ name?: string;
9378
+ sort_order?: number;
8631
9379
  updated_at?: string;
8632
- value?: string | null;
8633
9380
  };
8634
9381
  Relationships: [];
8635
9382
  };
8636
- pipeline_stages: {
9383
+ pick_document_statuses: {
8637
9384
  Row: {
8638
- automation_type: string;
8639
- color: string;
9385
+ active: boolean;
9386
+ code: string;
9387
+ color: string | null;
8640
9388
  created_at: string;
8641
9389
  id: string;
8642
- is_active: boolean;
9390
+ is_open: boolean;
9391
+ is_terminal: boolean;
8643
9392
  name: string;
8644
9393
  sort_order: number;
8645
9394
  updated_at: string;
8646
9395
  };
8647
9396
  Insert: {
8648
- automation_type?: string;
8649
- color?: string;
9397
+ active?: boolean;
9398
+ code: string;
9399
+ color?: string | null;
8650
9400
  created_at?: string;
8651
9401
  id?: string;
8652
- is_active?: boolean;
9402
+ is_open?: boolean;
9403
+ is_terminal?: boolean;
8653
9404
  name: string;
8654
9405
  sort_order?: number;
8655
9406
  updated_at?: string;
8656
9407
  };
8657
9408
  Update: {
8658
- automation_type?: string;
8659
- color?: string;
9409
+ active?: boolean;
9410
+ code?: string;
9411
+ color?: string | null;
8660
9412
  created_at?: string;
8661
9413
  id?: string;
8662
- is_active?: boolean;
9414
+ is_open?: boolean;
9415
+ is_terminal?: boolean;
8663
9416
  name?: string;
8664
9417
  sort_order?: number;
8665
9418
  updated_at?: string;
8666
9419
  };
8667
9420
  Relationships: [];
8668
9421
  };
8669
- planning_item_assistants: {
9422
+ pick_document_types: {
8670
9423
  Row: {
9424
+ active: boolean;
9425
+ code: string;
9426
+ color: string | null;
8671
9427
  created_at: string;
8672
- created_by: string | null;
8673
- monteur_id: string;
8674
- planning_item_id: string;
9428
+ description: string | null;
9429
+ icon: string | null;
9430
+ id: string;
9431
+ name: string;
9432
+ print_template: string | null;
9433
+ printer_id: string | null;
9434
+ priority: number;
9435
+ report_key: string | null;
9436
+ sort_order: number;
9437
+ updated_at: string;
9438
+ workflow: import("../integrations/supabase/types").Json;
9439
+ };
9440
+ Insert: {
9441
+ active?: boolean;
9442
+ code: string;
9443
+ color?: string | null;
9444
+ created_at?: string;
9445
+ description?: string | null;
9446
+ icon?: string | null;
9447
+ id?: string;
9448
+ name: string;
9449
+ print_template?: string | null;
9450
+ printer_id?: string | null;
9451
+ priority?: number;
9452
+ report_key?: string | null;
9453
+ sort_order?: number;
9454
+ updated_at?: string;
9455
+ workflow?: import("../integrations/supabase/types").Json;
9456
+ };
9457
+ Update: {
9458
+ active?: boolean;
9459
+ code?: string;
9460
+ color?: string | null;
9461
+ created_at?: string;
9462
+ description?: string | null;
9463
+ icon?: string | null;
9464
+ id?: string;
9465
+ name?: string;
9466
+ print_template?: string | null;
9467
+ printer_id?: string | null;
9468
+ priority?: number;
9469
+ report_key?: string | null;
9470
+ sort_order?: number;
9471
+ updated_at?: string;
9472
+ workflow?: import("../integrations/supabase/types").Json;
9473
+ };
9474
+ Relationships: [{
9475
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9476
+ columns: ["printer_id"];
9477
+ isOneToOne: false;
9478
+ referencedRelation: "pick_station_printers";
9479
+ referencedColumns: ["id"];
9480
+ }];
9481
+ };
9482
+ pick_queue: {
9483
+ Row: {
9484
+ announced_at: string;
9485
+ assigned_user_id: string | null;
9486
+ barcode: string | null;
9487
+ cancelled_at: string | null;
9488
+ cart_count: number;
9489
+ completed_at: string | null;
9490
+ country_code: string | null;
9491
+ created_at: string;
9492
+ customer_name: string | null;
9493
+ delivery_address: string | null;
9494
+ document_number: string | null;
9495
+ document_type_id: string | null;
9496
+ due_at: string | null;
9497
+ id: string;
9498
+ is_urgent: boolean;
9499
+ line_count: number;
9500
+ order_number: string | null;
9501
+ order_type: string | null;
9502
+ payload: import("../integrations/supabase/types").Json;
9503
+ print_count: number;
9504
+ printed_at: string | null;
9505
+ printed_by: string | null;
9506
+ printer_id: string | null;
9507
+ priority: number;
9508
+ reference: string | null;
9509
+ route: string | null;
9510
+ screen_id: string | null;
9511
+ station_id: string | null;
9512
+ status_id: string | null;
9513
+ updated_at: string;
9514
+ warnings: import("../integrations/supabase/types").Json;
9515
+ };
9516
+ Insert: {
9517
+ announced_at?: string;
9518
+ assigned_user_id?: string | null;
9519
+ barcode?: string | null;
9520
+ cancelled_at?: string | null;
9521
+ cart_count?: number;
9522
+ completed_at?: string | null;
9523
+ country_code?: string | null;
9524
+ created_at?: string;
9525
+ customer_name?: string | null;
9526
+ delivery_address?: string | null;
9527
+ document_number?: string | null;
9528
+ document_type_id?: string | null;
9529
+ due_at?: string | null;
9530
+ id?: string;
9531
+ is_urgent?: boolean;
9532
+ line_count?: number;
9533
+ order_number?: string | null;
9534
+ order_type?: string | null;
9535
+ payload?: import("../integrations/supabase/types").Json;
9536
+ print_count?: number;
9537
+ printed_at?: string | null;
9538
+ printed_by?: string | null;
9539
+ printer_id?: string | null;
9540
+ priority?: number;
9541
+ reference?: string | null;
9542
+ route?: string | null;
9543
+ screen_id?: string | null;
9544
+ station_id?: string | null;
9545
+ status_id?: string | null;
9546
+ updated_at?: string;
9547
+ warnings?: import("../integrations/supabase/types").Json;
9548
+ };
9549
+ Update: {
9550
+ announced_at?: string;
9551
+ assigned_user_id?: string | null;
9552
+ barcode?: string | null;
9553
+ cancelled_at?: string | null;
9554
+ cart_count?: number;
9555
+ completed_at?: string | null;
9556
+ country_code?: string | null;
9557
+ created_at?: string;
9558
+ customer_name?: string | null;
9559
+ delivery_address?: string | null;
9560
+ document_number?: string | null;
9561
+ document_type_id?: string | null;
9562
+ due_at?: string | null;
9563
+ id?: string;
9564
+ is_urgent?: boolean;
9565
+ line_count?: number;
9566
+ order_number?: string | null;
9567
+ order_type?: string | null;
9568
+ payload?: import("../integrations/supabase/types").Json;
9569
+ print_count?: number;
9570
+ printed_at?: string | null;
9571
+ printed_by?: string | null;
9572
+ printer_id?: string | null;
9573
+ priority?: number;
9574
+ reference?: string | null;
9575
+ route?: string | null;
9576
+ screen_id?: string | null;
9577
+ station_id?: string | null;
9578
+ status_id?: string | null;
9579
+ updated_at?: string;
9580
+ warnings?: import("../integrations/supabase/types").Json;
9581
+ };
9582
+ Relationships: [{
9583
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9584
+ columns: ["document_type_id"];
9585
+ isOneToOne: false;
9586
+ referencedRelation: "pick_document_types";
9587
+ referencedColumns: ["id"];
9588
+ }, {
9589
+ foreignKeyName: "pick_queue_printer_id_fkey";
9590
+ columns: ["printer_id"];
9591
+ isOneToOne: false;
9592
+ referencedRelation: "pick_station_printers";
9593
+ referencedColumns: ["id"];
9594
+ }, {
9595
+ foreignKeyName: "pick_queue_screen_id_fkey";
9596
+ columns: ["screen_id"];
9597
+ isOneToOne: false;
9598
+ referencedRelation: "pick_station_screens";
9599
+ referencedColumns: ["id"];
9600
+ }, {
9601
+ foreignKeyName: "pick_queue_station_id_fkey";
9602
+ columns: ["station_id"];
9603
+ isOneToOne: false;
9604
+ referencedRelation: "pick_stations";
9605
+ referencedColumns: ["id"];
9606
+ }, {
9607
+ foreignKeyName: "pick_queue_status_id_fkey";
9608
+ columns: ["status_id"];
9609
+ isOneToOne: false;
9610
+ referencedRelation: "pick_document_statuses";
9611
+ referencedColumns: ["id"];
9612
+ }];
9613
+ };
9614
+ pick_queue_locks: {
9615
+ Row: {
9616
+ expires_at: string;
9617
+ id: string;
9618
+ locked_at: string;
9619
+ locked_by: string | null;
9620
+ queue_item_id: string;
9621
+ screen_id: string | null;
9622
+ session_id: string | null;
9623
+ station_id: string | null;
9624
+ };
9625
+ Insert: {
9626
+ expires_at?: string;
9627
+ id?: string;
9628
+ locked_at?: string;
9629
+ locked_by?: string | null;
9630
+ queue_item_id: string;
9631
+ screen_id?: string | null;
9632
+ session_id?: string | null;
9633
+ station_id?: string | null;
9634
+ };
9635
+ Update: {
9636
+ expires_at?: string;
9637
+ id?: string;
9638
+ locked_at?: string;
9639
+ locked_by?: string | null;
9640
+ queue_item_id?: string;
9641
+ screen_id?: string | null;
9642
+ session_id?: string | null;
9643
+ station_id?: string | null;
9644
+ };
9645
+ Relationships: [{
9646
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9647
+ columns: ["queue_item_id"];
9648
+ isOneToOne: true;
9649
+ referencedRelation: "pick_queue";
9650
+ referencedColumns: ["id"];
9651
+ }, {
9652
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9653
+ columns: ["screen_id"];
9654
+ isOneToOne: false;
9655
+ referencedRelation: "pick_station_screens";
9656
+ referencedColumns: ["id"];
9657
+ }, {
9658
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9659
+ columns: ["station_id"];
9660
+ isOneToOne: false;
9661
+ referencedRelation: "pick_stations";
9662
+ referencedColumns: ["id"];
9663
+ }];
9664
+ };
9665
+ pick_screen_document_types: {
9666
+ Row: {
9667
+ created_at: string;
9668
+ document_type_id: string;
9669
+ id: string;
9670
+ print_order: number;
9671
+ printer_id: string | null;
9672
+ screen_id: string;
9673
+ };
9674
+ Insert: {
9675
+ created_at?: string;
9676
+ document_type_id: string;
9677
+ id?: string;
9678
+ print_order?: number;
9679
+ printer_id?: string | null;
9680
+ screen_id: string;
9681
+ };
9682
+ Update: {
9683
+ created_at?: string;
9684
+ document_type_id?: string;
9685
+ id?: string;
9686
+ print_order?: number;
9687
+ printer_id?: string | null;
9688
+ screen_id?: string;
9689
+ };
9690
+ Relationships: [{
9691
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9692
+ columns: ["document_type_id"];
9693
+ isOneToOne: false;
9694
+ referencedRelation: "pick_document_types";
9695
+ referencedColumns: ["id"];
9696
+ }, {
9697
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9698
+ columns: ["printer_id"];
9699
+ isOneToOne: false;
9700
+ referencedRelation: "pick_station_printers";
9701
+ referencedColumns: ["id"];
9702
+ }, {
9703
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9704
+ columns: ["screen_id"];
9705
+ isOneToOne: false;
9706
+ referencedRelation: "pick_station_screens";
9707
+ referencedColumns: ["id"];
9708
+ }];
9709
+ };
9710
+ pick_station_heartbeats: {
9711
+ Row: {
9712
+ browser: string | null;
9713
+ created_at: string;
9714
+ id: string;
9715
+ ip_address: string | null;
9716
+ last_seen_at: string;
9717
+ screen_id: string | null;
9718
+ session_id: string;
9719
+ station_id: string;
9720
+ user_id: string | null;
9721
+ };
9722
+ Insert: {
9723
+ browser?: string | null;
9724
+ created_at?: string;
9725
+ id?: string;
9726
+ ip_address?: string | null;
9727
+ last_seen_at?: string;
9728
+ screen_id?: string | null;
9729
+ session_id: string;
9730
+ station_id: string;
9731
+ user_id?: string | null;
9732
+ };
9733
+ Update: {
9734
+ browser?: string | null;
9735
+ created_at?: string;
9736
+ id?: string;
9737
+ ip_address?: string | null;
9738
+ last_seen_at?: string;
9739
+ screen_id?: string | null;
9740
+ session_id?: string;
9741
+ station_id?: string;
9742
+ user_id?: string | null;
9743
+ };
9744
+ Relationships: [{
9745
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9746
+ columns: ["screen_id"];
9747
+ isOneToOne: false;
9748
+ referencedRelation: "pick_station_screens";
9749
+ referencedColumns: ["id"];
9750
+ }, {
9751
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9752
+ columns: ["station_id"];
9753
+ isOneToOne: false;
9754
+ referencedRelation: "pick_stations";
9755
+ referencedColumns: ["id"];
9756
+ }];
9757
+ };
9758
+ pick_station_history: {
9759
+ Row: {
9760
+ action: string;
9761
+ changed_by: string | null;
9762
+ created_at: string;
9763
+ entity_id: string;
9764
+ entity_table: string;
9765
+ id: string;
9766
+ new_data: import("../integrations/supabase/types").Json | null;
9767
+ old_data: import("../integrations/supabase/types").Json | null;
9768
+ };
9769
+ Insert: {
9770
+ action: string;
9771
+ changed_by?: string | null;
9772
+ created_at?: string;
9773
+ entity_id: string;
9774
+ entity_table: string;
9775
+ id?: string;
9776
+ new_data?: import("../integrations/supabase/types").Json | null;
9777
+ old_data?: import("../integrations/supabase/types").Json | null;
9778
+ };
9779
+ Update: {
9780
+ action?: string;
9781
+ changed_by?: string | null;
9782
+ created_at?: string;
9783
+ entity_id?: string;
9784
+ entity_table?: string;
9785
+ id?: string;
9786
+ new_data?: import("../integrations/supabase/types").Json | null;
9787
+ old_data?: import("../integrations/supabase/types").Json | null;
9788
+ };
9789
+ Relationships: [];
9790
+ };
9791
+ pick_station_logs: {
9792
+ Row: {
9793
+ action: string;
9794
+ browser: string | null;
9795
+ created_at: string;
9796
+ detail: import("../integrations/supabase/types").Json;
9797
+ duration_ms: number | null;
9798
+ id: string;
9799
+ ip_address: string | null;
9800
+ printer_id: string | null;
9801
+ queue_item_id: string | null;
9802
+ screen_id: string | null;
9803
+ session_id: string | null;
9804
+ station_id: string | null;
9805
+ user_id: string | null;
9806
+ };
9807
+ Insert: {
9808
+ action: string;
9809
+ browser?: string | null;
9810
+ created_at?: string;
9811
+ detail?: import("../integrations/supabase/types").Json;
9812
+ duration_ms?: number | null;
9813
+ id?: string;
9814
+ ip_address?: string | null;
9815
+ printer_id?: string | null;
9816
+ queue_item_id?: string | null;
9817
+ screen_id?: string | null;
9818
+ session_id?: string | null;
9819
+ station_id?: string | null;
9820
+ user_id?: string | null;
9821
+ };
9822
+ Update: {
9823
+ action?: string;
9824
+ browser?: string | null;
9825
+ created_at?: string;
9826
+ detail?: import("../integrations/supabase/types").Json;
9827
+ duration_ms?: number | null;
9828
+ id?: string;
9829
+ ip_address?: string | null;
9830
+ printer_id?: string | null;
9831
+ queue_item_id?: string | null;
9832
+ screen_id?: string | null;
9833
+ session_id?: string | null;
9834
+ station_id?: string | null;
9835
+ user_id?: string | null;
9836
+ };
9837
+ Relationships: [];
9838
+ };
9839
+ pick_station_permissions: {
9840
+ Row: {
9841
+ can_break_lock: boolean;
9842
+ can_cancel: boolean;
9843
+ can_print: boolean;
9844
+ can_reprint: boolean;
9845
+ country_code: string | null;
9846
+ created_at: string;
9847
+ id: string;
9848
+ station_id: string | null;
9849
+ task_id: string | null;
9850
+ updated_at: string;
9851
+ urgent_only: boolean;
9852
+ user_id: string;
9853
+ };
9854
+ Insert: {
9855
+ can_break_lock?: boolean;
9856
+ can_cancel?: boolean;
9857
+ can_print?: boolean;
9858
+ can_reprint?: boolean;
9859
+ country_code?: string | null;
9860
+ created_at?: string;
9861
+ id?: string;
9862
+ station_id?: string | null;
9863
+ task_id?: string | null;
9864
+ updated_at?: string;
9865
+ urgent_only?: boolean;
9866
+ user_id: string;
9867
+ };
9868
+ Update: {
9869
+ can_break_lock?: boolean;
9870
+ can_cancel?: boolean;
9871
+ can_print?: boolean;
9872
+ can_reprint?: boolean;
9873
+ country_code?: string | null;
9874
+ created_at?: string;
9875
+ id?: string;
9876
+ station_id?: string | null;
9877
+ task_id?: string | null;
9878
+ updated_at?: string;
9879
+ urgent_only?: boolean;
9880
+ user_id?: string;
9881
+ };
9882
+ Relationships: [{
9883
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
9884
+ columns: ["station_id"];
9885
+ isOneToOne: false;
9886
+ referencedRelation: "pick_stations";
9887
+ referencedColumns: ["id"];
9888
+ }, {
9889
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
9890
+ columns: ["task_id"];
9891
+ isOneToOne: false;
9892
+ referencedRelation: "pick_station_tasks";
9893
+ referencedColumns: ["id"];
9894
+ }];
9895
+ };
9896
+ pick_station_printers: {
9897
+ Row: {
9898
+ active: boolean;
9899
+ code: string | null;
9900
+ config: import("../integrations/supabase/types").Json;
9901
+ connection: string | null;
9902
+ created_at: string;
9903
+ id: string;
9904
+ last_seen_at: string | null;
9905
+ location: string | null;
9906
+ name: string;
9907
+ status: string;
9908
+ status_message: string | null;
9909
+ target: string | null;
9910
+ updated_at: string;
9911
+ };
9912
+ Insert: {
9913
+ active?: boolean;
9914
+ code?: string | null;
9915
+ config?: import("../integrations/supabase/types").Json;
9916
+ connection?: string | null;
9917
+ created_at?: string;
9918
+ id?: string;
9919
+ last_seen_at?: string | null;
9920
+ location?: string | null;
9921
+ name: string;
9922
+ status?: string;
9923
+ status_message?: string | null;
9924
+ target?: string | null;
9925
+ updated_at?: string;
9926
+ };
9927
+ Update: {
9928
+ active?: boolean;
9929
+ code?: string | null;
9930
+ config?: import("../integrations/supabase/types").Json;
9931
+ connection?: string | null;
9932
+ created_at?: string;
9933
+ id?: string;
9934
+ last_seen_at?: string | null;
9935
+ location?: string | null;
9936
+ name?: string;
9937
+ status?: string;
9938
+ status_message?: string | null;
9939
+ target?: string | null;
9940
+ updated_at?: string;
9941
+ };
9942
+ Relationships: [];
9943
+ };
9944
+ pick_station_screens: {
9945
+ Row: {
9946
+ active: boolean;
9947
+ config: import("../integrations/supabase/types").Json;
9948
+ created_at: string;
9949
+ description: string | null;
9950
+ filters: import("../integrations/supabase/types").Json;
9951
+ id: string;
9952
+ name: string;
9953
+ printer_id: string | null;
9954
+ screen_type: string;
9955
+ sort_order: number;
9956
+ sort_rules: import("../integrations/supabase/types").Json | null;
9957
+ station_id: string;
9958
+ updated_at: string;
9959
+ };
9960
+ Insert: {
9961
+ active?: boolean;
9962
+ config?: import("../integrations/supabase/types").Json;
9963
+ created_at?: string;
9964
+ description?: string | null;
9965
+ filters?: import("../integrations/supabase/types").Json;
9966
+ id?: string;
9967
+ name: string;
9968
+ printer_id?: string | null;
9969
+ screen_type?: string;
9970
+ sort_order?: number;
9971
+ sort_rules?: import("../integrations/supabase/types").Json | null;
9972
+ station_id: string;
9973
+ updated_at?: string;
9974
+ };
9975
+ Update: {
9976
+ active?: boolean;
9977
+ config?: import("../integrations/supabase/types").Json;
9978
+ created_at?: string;
9979
+ description?: string | null;
9980
+ filters?: import("../integrations/supabase/types").Json;
9981
+ id?: string;
9982
+ name?: string;
9983
+ printer_id?: string | null;
9984
+ screen_type?: string;
9985
+ sort_order?: number;
9986
+ sort_rules?: import("../integrations/supabase/types").Json | null;
9987
+ station_id?: string;
9988
+ updated_at?: string;
9989
+ };
9990
+ Relationships: [{
9991
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
9992
+ columns: ["printer_id"];
9993
+ isOneToOne: false;
9994
+ referencedRelation: "pick_station_printers";
9995
+ referencedColumns: ["id"];
9996
+ }, {
9997
+ foreignKeyName: "pick_station_screens_station_id_fkey";
9998
+ columns: ["station_id"];
9999
+ isOneToOne: false;
10000
+ referencedRelation: "pick_stations";
10001
+ referencedColumns: ["id"];
10002
+ }];
10003
+ };
10004
+ pick_station_tasks: {
10005
+ Row: {
10006
+ active: boolean;
10007
+ code: string;
10008
+ color: string | null;
10009
+ created_at: string;
10010
+ description: string | null;
10011
+ icon: string | null;
10012
+ id: string;
10013
+ name: string;
10014
+ sort_order: number;
10015
+ updated_at: string;
10016
+ workflow: import("../integrations/supabase/types").Json;
10017
+ };
10018
+ Insert: {
10019
+ active?: boolean;
10020
+ code: string;
10021
+ color?: string | null;
10022
+ created_at?: string;
10023
+ description?: string | null;
10024
+ icon?: string | null;
10025
+ id?: string;
10026
+ name: string;
10027
+ sort_order?: number;
10028
+ updated_at?: string;
10029
+ workflow?: import("../integrations/supabase/types").Json;
10030
+ };
10031
+ Update: {
10032
+ active?: boolean;
10033
+ code?: string;
10034
+ color?: string | null;
10035
+ created_at?: string;
10036
+ description?: string | null;
10037
+ icon?: string | null;
10038
+ id?: string;
10039
+ name?: string;
10040
+ sort_order?: number;
10041
+ updated_at?: string;
10042
+ workflow?: import("../integrations/supabase/types").Json;
10043
+ };
10044
+ Relationships: [];
10045
+ };
10046
+ pick_station_types: {
10047
+ Row: {
10048
+ active: boolean;
10049
+ code: string;
10050
+ color: string | null;
10051
+ created_at: string;
10052
+ description: string | null;
10053
+ icon: string | null;
10054
+ id: string;
10055
+ name: string;
10056
+ sort_order: number;
10057
+ updated_at: string;
10058
+ };
10059
+ Insert: {
10060
+ active?: boolean;
10061
+ code: string;
10062
+ color?: string | null;
10063
+ created_at?: string;
10064
+ description?: string | null;
10065
+ icon?: string | null;
10066
+ id?: string;
10067
+ name: string;
10068
+ sort_order?: number;
10069
+ updated_at?: string;
10070
+ };
10071
+ Update: {
10072
+ active?: boolean;
10073
+ code?: string;
10074
+ color?: string | null;
10075
+ created_at?: string;
10076
+ description?: string | null;
10077
+ icon?: string | null;
10078
+ id?: string;
10079
+ name?: string;
10080
+ sort_order?: number;
10081
+ updated_at?: string;
10082
+ };
10083
+ Relationships: [];
10084
+ };
10085
+ pick_station_users: {
10086
+ Row: {
10087
+ active: boolean;
10088
+ created_at: string;
10089
+ id: string;
10090
+ station_id: string;
10091
+ user_id: string;
10092
+ };
10093
+ Insert: {
10094
+ active?: boolean;
10095
+ created_at?: string;
10096
+ id?: string;
10097
+ station_id: string;
10098
+ user_id: string;
10099
+ };
10100
+ Update: {
10101
+ active?: boolean;
10102
+ created_at?: string;
10103
+ id?: string;
10104
+ station_id?: string;
10105
+ user_id?: string;
10106
+ };
10107
+ Relationships: [{
10108
+ foreignKeyName: "pick_station_users_station_id_fkey";
10109
+ columns: ["station_id"];
10110
+ isOneToOne: false;
10111
+ referencedRelation: "pick_stations";
10112
+ referencedColumns: ["id"];
10113
+ }];
10114
+ };
10115
+ pick_stations: {
10116
+ Row: {
10117
+ active: boolean;
10118
+ allow_multi_screen: boolean;
10119
+ color: string | null;
10120
+ created_at: string;
10121
+ default_printer_id: string | null;
10122
+ department: string | null;
10123
+ description: string | null;
10124
+ icon: string | null;
10125
+ id: string;
10126
+ location: string | null;
10127
+ lock_timeout_seconds: number;
10128
+ name: string;
10129
+ require_country_selection: boolean;
10130
+ sort_order: number;
10131
+ sort_rules: import("../integrations/supabase/types").Json;
10132
+ task_id: string | null;
10133
+ type_id: string | null;
10134
+ updated_at: string;
10135
+ };
10136
+ Insert: {
10137
+ active?: boolean;
10138
+ allow_multi_screen?: boolean;
10139
+ color?: string | null;
10140
+ created_at?: string;
10141
+ default_printer_id?: string | null;
10142
+ department?: string | null;
10143
+ description?: string | null;
10144
+ icon?: string | null;
10145
+ id?: string;
10146
+ location?: string | null;
10147
+ lock_timeout_seconds?: number;
10148
+ name: string;
10149
+ require_country_selection?: boolean;
10150
+ sort_order?: number;
10151
+ sort_rules?: import("../integrations/supabase/types").Json;
10152
+ task_id?: string | null;
10153
+ type_id?: string | null;
10154
+ updated_at?: string;
10155
+ };
10156
+ Update: {
10157
+ active?: boolean;
10158
+ allow_multi_screen?: boolean;
10159
+ color?: string | null;
10160
+ created_at?: string;
10161
+ default_printer_id?: string | null;
10162
+ department?: string | null;
10163
+ description?: string | null;
10164
+ icon?: string | null;
10165
+ id?: string;
10166
+ location?: string | null;
10167
+ lock_timeout_seconds?: number;
10168
+ name?: string;
10169
+ require_country_selection?: boolean;
10170
+ sort_order?: number;
10171
+ sort_rules?: import("../integrations/supabase/types").Json;
10172
+ task_id?: string | null;
10173
+ type_id?: string | null;
10174
+ updated_at?: string;
10175
+ };
10176
+ Relationships: [{
10177
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10178
+ columns: ["default_printer_id"];
10179
+ isOneToOne: false;
10180
+ referencedRelation: "pick_station_printers";
10181
+ referencedColumns: ["id"];
10182
+ }, {
10183
+ foreignKeyName: "pick_stations_task_id_fkey";
10184
+ columns: ["task_id"];
10185
+ isOneToOne: false;
10186
+ referencedRelation: "pick_station_tasks";
10187
+ referencedColumns: ["id"];
10188
+ }, {
10189
+ foreignKeyName: "pick_stations_type_id_fkey";
10190
+ columns: ["type_id"];
10191
+ isOneToOne: false;
10192
+ referencedRelation: "pick_station_types";
10193
+ referencedColumns: ["id"];
10194
+ }];
10195
+ };
10196
+ pick_task_document_types: {
10197
+ Row: {
10198
+ created_at: string;
10199
+ document_type_id: string;
10200
+ id: string;
10201
+ task_id: string;
10202
+ };
10203
+ Insert: {
10204
+ created_at?: string;
10205
+ document_type_id: string;
10206
+ id?: string;
10207
+ task_id: string;
10208
+ };
10209
+ Update: {
10210
+ created_at?: string;
10211
+ document_type_id?: string;
10212
+ id?: string;
10213
+ task_id?: string;
10214
+ };
10215
+ Relationships: [{
10216
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10217
+ columns: ["document_type_id"];
10218
+ isOneToOne: false;
10219
+ referencedRelation: "pick_document_types";
10220
+ referencedColumns: ["id"];
10221
+ }, {
10222
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10223
+ columns: ["task_id"];
10224
+ isOneToOne: false;
10225
+ referencedRelation: "pick_station_tasks";
10226
+ referencedColumns: ["id"];
10227
+ }];
10228
+ };
10229
+ pickstation_print_log: {
10230
+ Row: {
10231
+ customer_name: string | null;
10232
+ documents: string[];
10233
+ id: string;
10234
+ ip_address: string | null;
10235
+ order_id: string;
10236
+ order_number: string | null;
10237
+ printed_at: string;
10238
+ };
10239
+ Insert: {
10240
+ customer_name?: string | null;
10241
+ documents?: string[];
10242
+ id?: string;
10243
+ ip_address?: string | null;
10244
+ order_id: string;
10245
+ order_number?: string | null;
10246
+ printed_at?: string;
10247
+ };
10248
+ Update: {
10249
+ customer_name?: string | null;
10250
+ documents?: string[];
10251
+ id?: string;
10252
+ ip_address?: string | null;
10253
+ order_id?: string;
10254
+ order_number?: string | null;
10255
+ printed_at?: string;
10256
+ };
10257
+ Relationships: [];
10258
+ };
10259
+ pipeline_settings: {
10260
+ Row: {
10261
+ created_at: string;
10262
+ id: string;
10263
+ key: string;
10264
+ updated_at: string;
10265
+ value: string | null;
10266
+ };
10267
+ Insert: {
10268
+ created_at?: string;
10269
+ id?: string;
10270
+ key: string;
10271
+ updated_at?: string;
10272
+ value?: string | null;
10273
+ };
10274
+ Update: {
10275
+ created_at?: string;
10276
+ id?: string;
10277
+ key?: string;
10278
+ updated_at?: string;
10279
+ value?: string | null;
10280
+ };
10281
+ Relationships: [];
10282
+ };
10283
+ pipeline_stages: {
10284
+ Row: {
10285
+ automation_type: string;
10286
+ color: string;
10287
+ created_at: string;
10288
+ id: string;
10289
+ is_active: boolean;
10290
+ name: string;
10291
+ sort_order: number;
10292
+ updated_at: string;
10293
+ };
10294
+ Insert: {
10295
+ automation_type?: string;
10296
+ color?: string;
10297
+ created_at?: string;
10298
+ id?: string;
10299
+ is_active?: boolean;
10300
+ name: string;
10301
+ sort_order?: number;
10302
+ updated_at?: string;
10303
+ };
10304
+ Update: {
10305
+ automation_type?: string;
10306
+ color?: string;
10307
+ created_at?: string;
10308
+ id?: string;
10309
+ is_active?: boolean;
10310
+ name?: string;
10311
+ sort_order?: number;
10312
+ updated_at?: string;
10313
+ };
10314
+ Relationships: [];
10315
+ };
10316
+ planning_item_assistants: {
10317
+ Row: {
10318
+ created_at: string;
10319
+ created_by: string | null;
10320
+ monteur_id: string;
10321
+ planning_item_id: string;
8675
10322
  };
8676
10323
  Insert: {
8677
10324
  created_at?: string;
@@ -8738,6 +10385,321 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8738
10385
  referencedColumns: ["id"];
8739
10386
  }];
8740
10387
  };
10388
+ print_job_logs: {
10389
+ Row: {
10390
+ created_at: string;
10391
+ detail: string;
10392
+ gebeurtenis: string;
10393
+ id: string;
10394
+ job_id: string;
10395
+ };
10396
+ Insert: {
10397
+ created_at?: string;
10398
+ detail?: string;
10399
+ gebeurtenis: string;
10400
+ id?: string;
10401
+ job_id: string;
10402
+ };
10403
+ Update: {
10404
+ created_at?: string;
10405
+ detail?: string;
10406
+ gebeurtenis?: string;
10407
+ id?: string;
10408
+ job_id?: string;
10409
+ };
10410
+ Relationships: [{
10411
+ foreignKeyName: "print_job_logs_job_id_fkey";
10412
+ columns: ["job_id"];
10413
+ isOneToOne: false;
10414
+ referencedRelation: "print_jobs";
10415
+ referencedColumns: ["id"];
10416
+ }];
10417
+ };
10418
+ print_jobs: {
10419
+ Row: {
10420
+ bron_job_id: string | null;
10421
+ created_at: string;
10422
+ documentnaam: string;
10423
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10424
+ foutmelding: string | null;
10425
+ gebruiker_id: string | null;
10426
+ gebruiker_naam: string;
10427
+ gestart_op: string | null;
10428
+ id: string;
10429
+ is_herprint: boolean;
10430
+ kopieen: number;
10431
+ layout_id: string | null;
10432
+ paginas: number;
10433
+ payload: import("../integrations/supabase/types").Json;
10434
+ printer_id: string | null;
10435
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10436
+ updated_at: string;
10437
+ voltooid_op: string | null;
10438
+ };
10439
+ Insert: {
10440
+ bron_job_id?: string | null;
10441
+ created_at?: string;
10442
+ documentnaam?: string;
10443
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10444
+ foutmelding?: string | null;
10445
+ gebruiker_id?: string | null;
10446
+ gebruiker_naam?: string;
10447
+ gestart_op?: string | null;
10448
+ id?: string;
10449
+ is_herprint?: boolean;
10450
+ kopieen?: number;
10451
+ layout_id?: string | null;
10452
+ paginas?: number;
10453
+ payload?: import("../integrations/supabase/types").Json;
10454
+ printer_id?: string | null;
10455
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10456
+ updated_at?: string;
10457
+ voltooid_op?: string | null;
10458
+ };
10459
+ Update: {
10460
+ bron_job_id?: string | null;
10461
+ created_at?: string;
10462
+ documentnaam?: string;
10463
+ documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
10464
+ foutmelding?: string | null;
10465
+ gebruiker_id?: string | null;
10466
+ gebruiker_naam?: string;
10467
+ gestart_op?: string | null;
10468
+ id?: string;
10469
+ is_herprint?: boolean;
10470
+ kopieen?: number;
10471
+ layout_id?: string | null;
10472
+ paginas?: number;
10473
+ payload?: import("../integrations/supabase/types").Json;
10474
+ printer_id?: string | null;
10475
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
10476
+ updated_at?: string;
10477
+ voltooid_op?: string | null;
10478
+ };
10479
+ Relationships: [{
10480
+ foreignKeyName: "print_jobs_layout_id_fkey";
10481
+ columns: ["layout_id"];
10482
+ isOneToOne: false;
10483
+ referencedRelation: "document_layouts";
10484
+ referencedColumns: ["id"];
10485
+ }, {
10486
+ foreignKeyName: "print_jobs_printer_id_fkey";
10487
+ columns: ["printer_id"];
10488
+ isOneToOne: false;
10489
+ referencedRelation: "printers";
10490
+ referencedColumns: ["id"];
10491
+ }];
10492
+ };
10493
+ print_rules: {
10494
+ Row: {
10495
+ actief: boolean;
10496
+ alleen_eerste_keer: boolean;
10497
+ conditie: import("../integrations/supabase/types").Json;
10498
+ created_at: string;
10499
+ id: string;
10500
+ kopieen: number;
10501
+ layout_id: string;
10502
+ naam: string;
10503
+ printer_id: string | null;
10504
+ updated_at: string;
10505
+ volgorde: number;
10506
+ };
10507
+ Insert: {
10508
+ actief?: boolean;
10509
+ alleen_eerste_keer?: boolean;
10510
+ conditie?: import("../integrations/supabase/types").Json;
10511
+ created_at?: string;
10512
+ id?: string;
10513
+ kopieen?: number;
10514
+ layout_id: string;
10515
+ naam?: string;
10516
+ printer_id?: string | null;
10517
+ updated_at?: string;
10518
+ volgorde?: number;
10519
+ };
10520
+ Update: {
10521
+ actief?: boolean;
10522
+ alleen_eerste_keer?: boolean;
10523
+ conditie?: import("../integrations/supabase/types").Json;
10524
+ created_at?: string;
10525
+ id?: string;
10526
+ kopieen?: number;
10527
+ layout_id?: string;
10528
+ naam?: string;
10529
+ printer_id?: string | null;
10530
+ updated_at?: string;
10531
+ volgorde?: number;
10532
+ };
10533
+ Relationships: [{
10534
+ foreignKeyName: "print_rules_layout_id_fkey";
10535
+ columns: ["layout_id"];
10536
+ isOneToOne: false;
10537
+ referencedRelation: "document_layouts";
10538
+ referencedColumns: ["id"];
10539
+ }, {
10540
+ foreignKeyName: "print_rules_printer_id_fkey";
10541
+ columns: ["printer_id"];
10542
+ isOneToOne: false;
10543
+ referencedRelation: "printers";
10544
+ referencedColumns: ["id"];
10545
+ }];
10546
+ };
10547
+ printer_mappings: {
10548
+ Row: {
10549
+ created_at: string;
10550
+ id: string;
10551
+ layout_id: string;
10552
+ printer_id: string;
10553
+ prioriteit: number;
10554
+ updated_at: string;
10555
+ };
10556
+ Insert: {
10557
+ created_at?: string;
10558
+ id?: string;
10559
+ layout_id: string;
10560
+ printer_id: string;
10561
+ prioriteit?: number;
10562
+ updated_at?: string;
10563
+ };
10564
+ Update: {
10565
+ created_at?: string;
10566
+ id?: string;
10567
+ layout_id?: string;
10568
+ printer_id?: string;
10569
+ prioriteit?: number;
10570
+ updated_at?: string;
10571
+ };
10572
+ Relationships: [{
10573
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10574
+ columns: ["layout_id"];
10575
+ isOneToOne: false;
10576
+ referencedRelation: "document_layouts";
10577
+ referencedColumns: ["id"];
10578
+ }, {
10579
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10580
+ columns: ["printer_id"];
10581
+ isOneToOne: false;
10582
+ referencedRelation: "printers";
10583
+ referencedColumns: ["id"];
10584
+ }];
10585
+ };
10586
+ printer_profiles: {
10587
+ Row: {
10588
+ auto_schalen: boolean;
10589
+ created_at: string;
10590
+ duplex: boolean;
10591
+ id: string;
10592
+ is_standaard: boolean;
10593
+ kleur: boolean;
10594
+ kopieen: number;
10595
+ label_gap: number;
10596
+ naam: string;
10597
+ orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10598
+ papierlade: string;
10599
+ printer_id: string;
10600
+ resolutie: number;
10601
+ snijden: boolean;
10602
+ updated_at: string;
10603
+ };
10604
+ Insert: {
10605
+ auto_schalen?: boolean;
10606
+ created_at?: string;
10607
+ duplex?: boolean;
10608
+ id?: string;
10609
+ is_standaard?: boolean;
10610
+ kleur?: boolean;
10611
+ kopieen?: number;
10612
+ label_gap?: number;
10613
+ naam?: string;
10614
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10615
+ papierlade?: string;
10616
+ printer_id: string;
10617
+ resolutie?: number;
10618
+ snijden?: boolean;
10619
+ updated_at?: string;
10620
+ };
10621
+ Update: {
10622
+ auto_schalen?: boolean;
10623
+ created_at?: string;
10624
+ duplex?: boolean;
10625
+ id?: string;
10626
+ is_standaard?: boolean;
10627
+ kleur?: boolean;
10628
+ kopieen?: number;
10629
+ label_gap?: number;
10630
+ naam?: string;
10631
+ orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
10632
+ papierlade?: string;
10633
+ printer_id?: string;
10634
+ resolutie?: number;
10635
+ snijden?: boolean;
10636
+ updated_at?: string;
10637
+ };
10638
+ Relationships: [{
10639
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10640
+ columns: ["printer_id"];
10641
+ isOneToOne: false;
10642
+ referencedRelation: "printers";
10643
+ referencedColumns: ["id"];
10644
+ }];
10645
+ };
10646
+ printers: {
10647
+ Row: {
10648
+ actief: boolean;
10649
+ created_at: string;
10650
+ driver: string;
10651
+ id: string;
10652
+ ip_adres: string | null;
10653
+ laatst_gezien: string | null;
10654
+ locatie: string;
10655
+ merk: string;
10656
+ naam: string;
10657
+ omschrijving: string;
10658
+ online: boolean;
10659
+ papierformaat: string;
10660
+ poort: number | null;
10661
+ soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10662
+ updated_at: string;
10663
+ verbinding: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10664
+ };
10665
+ Insert: {
10666
+ actief?: boolean;
10667
+ created_at?: string;
10668
+ driver?: string;
10669
+ id?: string;
10670
+ ip_adres?: string | null;
10671
+ laatst_gezien?: string | null;
10672
+ locatie?: string;
10673
+ merk?: string;
10674
+ naam: string;
10675
+ omschrijving?: string;
10676
+ online?: boolean;
10677
+ papierformaat?: string;
10678
+ poort?: number | null;
10679
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10680
+ updated_at?: string;
10681
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10682
+ };
10683
+ Update: {
10684
+ actief?: boolean;
10685
+ created_at?: string;
10686
+ driver?: string;
10687
+ id?: string;
10688
+ ip_adres?: string | null;
10689
+ laatst_gezien?: string | null;
10690
+ locatie?: string;
10691
+ merk?: string;
10692
+ naam?: string;
10693
+ omschrijving?: string;
10694
+ online?: boolean;
10695
+ papierformaat?: string;
10696
+ poort?: number | null;
10697
+ soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
10698
+ updated_at?: string;
10699
+ verbinding?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_connection"];
10700
+ };
10701
+ Relationships: [];
10702
+ };
8741
10703
  product_bom_items: {
8742
10704
  Row: {
8743
10705
  component_product_id: string | null;
@@ -10603,9 +12565,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10603
12565
  };
10604
12566
  twinfield_connections: {
10605
12567
  Row: {
10606
- access_token: string | null;
10607
- client_id: string;
10608
- client_secret: string | null;
12568
+ account_key: string | null;
10609
12569
  cluster_uri: string | null;
10610
12570
  company_code: string | null;
10611
12571
  company_name: string | null;
@@ -10616,94 +12576,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10616
12576
  is_active: boolean;
10617
12577
  label: string | null;
10618
12578
  office_code: string | null;
10619
- redirect_uri: string;
10620
- refresh_token: string | null;
10621
- token_expires_at: string | null;
10622
- updated_at: string;
10623
- user_id: string;
10624
- };
10625
- Insert: {
10626
- access_token?: string | null;
10627
- client_id: string;
10628
- client_secret?: string | null;
10629
- cluster_uri?: string | null;
10630
- company_code?: string | null;
10631
- company_name?: string | null;
10632
- connected_at?: string | null;
10633
- created_at?: string;
10634
- environment: string;
10635
- id?: string;
10636
- is_active?: boolean;
10637
- label?: string | null;
10638
- office_code?: string | null;
10639
- redirect_uri: string;
10640
- refresh_token?: string | null;
10641
- token_expires_at?: string | null;
10642
- updated_at?: string;
10643
- user_id: string;
10644
- };
10645
- Update: {
10646
- access_token?: string | null;
10647
- client_id?: string;
10648
- client_secret?: string | null;
10649
- cluster_uri?: string | null;
10650
- company_code?: string | null;
10651
- company_name?: string | null;
10652
- connected_at?: string | null;
10653
- created_at?: string;
10654
- environment?: string;
10655
- id?: string;
10656
- is_active?: boolean;
10657
- label?: string | null;
10658
- office_code?: string | null;
10659
- redirect_uri?: string;
10660
- refresh_token?: string | null;
10661
- token_expires_at?: string | null;
10662
- updated_at?: string;
10663
- user_id?: string;
10664
- };
10665
- Relationships: [];
10666
- };
10667
- twinfield_credentials: {
10668
- Row: {
10669
- administration_code: string | null;
10670
- client_id: string | null;
10671
- client_secret: string | null;
10672
- cluster: string | null;
10673
- connected_at: string | null;
10674
- created_at: string;
10675
- environment: string | null;
10676
- id: string;
10677
12579
  redirect_uri: string | null;
10678
- refresh_token: string | null;
10679
12580
  updated_at: string;
10680
12581
  user_id: string;
10681
12582
  };
10682
12583
  Insert: {
10683
- administration_code?: string | null;
10684
- client_id?: string | null;
10685
- client_secret?: string | null;
10686
- cluster?: string | null;
12584
+ account_key?: string | null;
12585
+ cluster_uri?: string | null;
12586
+ company_code?: string | null;
12587
+ company_name?: string | null;
10687
12588
  connected_at?: string | null;
10688
12589
  created_at?: string;
10689
- environment?: string | null;
12590
+ environment: string;
10690
12591
  id?: string;
12592
+ is_active?: boolean;
12593
+ label?: string | null;
12594
+ office_code?: string | null;
10691
12595
  redirect_uri?: string | null;
10692
- refresh_token?: string | null;
10693
12596
  updated_at?: string;
10694
12597
  user_id: string;
10695
12598
  };
10696
12599
  Update: {
10697
- administration_code?: string | null;
10698
- client_id?: string | null;
10699
- client_secret?: string | null;
10700
- cluster?: string | null;
12600
+ account_key?: string | null;
12601
+ cluster_uri?: string | null;
12602
+ company_code?: string | null;
12603
+ company_name?: string | null;
10701
12604
  connected_at?: string | null;
10702
12605
  created_at?: string;
10703
- environment?: string | null;
12606
+ environment?: string;
10704
12607
  id?: string;
12608
+ is_active?: boolean;
12609
+ label?: string | null;
12610
+ office_code?: string | null;
10705
12611
  redirect_uri?: string | null;
10706
- refresh_token?: string | null;
10707
12612
  updated_at?: string;
10708
12613
  user_id?: string;
10709
12614
  };
@@ -11150,12 +13055,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11150
13055
  currency: string | null;
11151
13056
  customer_code: string | null;
11152
13057
  data: import("../integrations/supabase/types").Json;
13058
+ deleted_at: string | null;
11153
13059
  due_date: string | null;
11154
13060
  fetched_at: string;
11155
13061
  invoice_date: string | null;
11156
13062
  invoice_number: string;
13063
+ lines_fetched_at: string | null;
11157
13064
  modified_at: string | null;
11158
13065
  outstanding_amount: number | null;
13066
+ paid_at: string | null;
11159
13067
  status: string | null;
11160
13068
  status_label: string | null;
11161
13069
  total_excl: number | null;
@@ -11167,12 +13075,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11167
13075
  currency?: string | null;
11168
13076
  customer_code?: string | null;
11169
13077
  data?: import("../integrations/supabase/types").Json;
13078
+ deleted_at?: string | null;
11170
13079
  due_date?: string | null;
11171
13080
  fetched_at?: string;
11172
13081
  invoice_date?: string | null;
11173
13082
  invoice_number: string;
13083
+ lines_fetched_at?: string | null;
11174
13084
  modified_at?: string | null;
11175
13085
  outstanding_amount?: number | null;
13086
+ paid_at?: string | null;
11176
13087
  status?: string | null;
11177
13088
  status_label?: string | null;
11178
13089
  total_excl?: number | null;
@@ -11184,12 +13095,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11184
13095
  currency?: string | null;
11185
13096
  customer_code?: string | null;
11186
13097
  data?: import("../integrations/supabase/types").Json;
13098
+ deleted_at?: string | null;
11187
13099
  due_date?: string | null;
11188
13100
  fetched_at?: string;
11189
13101
  invoice_date?: string | null;
11190
13102
  invoice_number?: string;
13103
+ lines_fetched_at?: string | null;
11191
13104
  modified_at?: string | null;
11192
13105
  outstanding_amount?: number | null;
13106
+ paid_at?: string | null;
11193
13107
  status?: string | null;
11194
13108
  status_label?: string | null;
11195
13109
  total_excl?: number | null;
@@ -11204,30 +13118,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11204
13118
  referencedColumns: ["id"];
11205
13119
  }];
11206
13120
  };
11207
- twinfield_oauth_state: {
11208
- Row: {
11209
- created_at: string;
11210
- environment: string;
11211
- nonce: string | null;
11212
- state: string;
11213
- user_id: string;
11214
- };
11215
- Insert: {
11216
- created_at?: string;
11217
- environment: string;
11218
- nonce?: string | null;
11219
- state: string;
11220
- user_id: string;
11221
- };
11222
- Update: {
11223
- created_at?: string;
11224
- environment?: string;
11225
- nonce?: string | null;
11226
- state?: string;
11227
- user_id?: string;
11228
- };
11229
- Relationships: [];
11230
- };
11231
13121
  twinfield_push_queue: {
11232
13122
  Row: {
11233
13123
  action: string;
@@ -11393,39 +13283,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11393
13283
  referencedColumns: ["id"];
11394
13284
  }];
11395
13285
  };
11396
- twinfield_token_refresh_log: {
11397
- Row: {
11398
- attempted_at: string;
11399
- connection_id: string;
11400
- error: string | null;
11401
- expires_at: string | null;
11402
- id: string;
11403
- ok: boolean;
11404
- };
11405
- Insert: {
11406
- attempted_at?: string;
11407
- connection_id: string;
11408
- error?: string | null;
11409
- expires_at?: string | null;
11410
- id?: string;
11411
- ok: boolean;
11412
- };
11413
- Update: {
11414
- attempted_at?: string;
11415
- connection_id?: string;
11416
- error?: string | null;
11417
- expires_at?: string | null;
11418
- id?: string;
11419
- ok?: boolean;
11420
- };
11421
- Relationships: [{
11422
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11423
- columns: ["connection_id"];
11424
- isOneToOne: false;
11425
- referencedRelation: "twinfield_connections";
11426
- referencedColumns: ["id"];
11427
- }];
11428
- };
11429
13286
  user_roles: {
11430
13287
  Row: {
11431
13288
  created_at: string;
@@ -11453,6 +13310,48 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11453
13310
  referencedColumns: ["id"];
11454
13311
  }];
11455
13312
  };
13313
+ voorraad_custom_fields: {
13314
+ Row: {
13315
+ created_at: string;
13316
+ field_key: string;
13317
+ field_label: string;
13318
+ field_type: string;
13319
+ id: string;
13320
+ options: string[];
13321
+ show_in_columns: boolean;
13322
+ show_in_detail: boolean;
13323
+ show_in_template: boolean;
13324
+ sort_order: number;
13325
+ updated_at: string;
13326
+ };
13327
+ Insert: {
13328
+ created_at?: string;
13329
+ field_key: string;
13330
+ field_label: string;
13331
+ field_type?: string;
13332
+ id?: string;
13333
+ options?: string[];
13334
+ show_in_columns?: boolean;
13335
+ show_in_detail?: boolean;
13336
+ show_in_template?: boolean;
13337
+ sort_order?: number;
13338
+ updated_at?: string;
13339
+ };
13340
+ Update: {
13341
+ created_at?: string;
13342
+ field_key?: string;
13343
+ field_label?: string;
13344
+ field_type?: string;
13345
+ id?: string;
13346
+ options?: string[];
13347
+ show_in_columns?: boolean;
13348
+ show_in_detail?: boolean;
13349
+ show_in_template?: boolean;
13350
+ sort_order?: number;
13351
+ updated_at?: string;
13352
+ };
13353
+ Relationships: [];
13354
+ };
11456
13355
  voorraad_media_upload_failures: {
11457
13356
  Row: {
11458
13357
  action: string;
@@ -12110,6 +14009,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12110
14009
  status: string | null;
12111
14010
  token_expires_at: string | null;
12112
14011
  updated_at: string | null;
14012
+ webhook_last_attempt_at: string | null;
14013
+ webhook_last_error: string | null;
14014
+ webhook_status: string | null;
12113
14015
  };
12114
14016
  Insert: {
12115
14017
  account_email?: string | null;
@@ -12144,6 +14046,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12144
14046
  status?: string | null;
12145
14047
  token_expires_at?: string | null;
12146
14048
  updated_at?: string | null;
14049
+ webhook_last_attempt_at?: string | null;
14050
+ webhook_last_error?: string | null;
14051
+ webhook_status?: string | null;
12147
14052
  };
12148
14053
  Update: {
12149
14054
  account_email?: string | null;
@@ -12178,6 +14083,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12178
14083
  status?: string | null;
12179
14084
  token_expires_at?: string | null;
12180
14085
  updated_at?: string | null;
14086
+ webhook_last_attempt_at?: string | null;
14087
+ webhook_last_error?: string | null;
14088
+ webhook_status?: string | null;
12181
14089
  };
12182
14090
  Relationships: [];
12183
14091
  };
@@ -12458,6 +14366,81 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12458
14366
  referencedColumns: ["id"];
12459
14367
  }];
12460
14368
  };
14369
+ v_external_customers_local: {
14370
+ Row: {
14371
+ city: string | null;
14372
+ commercial_name: string | null;
14373
+ company_name: string | null;
14374
+ connection_id: string | null;
14375
+ contact_person: string | null;
14376
+ country: string | null;
14377
+ email: string | null;
14378
+ external_id: string | null;
14379
+ fetched_at: string | null;
14380
+ gln: string | null;
14381
+ house_number: string | null;
14382
+ is_active: boolean | null;
14383
+ is_deleted: boolean | null;
14384
+ logo_url: string | null;
14385
+ phone: string | null;
14386
+ postal_code: string | null;
14387
+ provider: string | null;
14388
+ raw: import("../integrations/supabase/types").Json | null;
14389
+ status: string | null;
14390
+ street: string | null;
14391
+ vat_number: string | null;
14392
+ website: string | null;
14393
+ };
14394
+ Insert: {
14395
+ city?: string | null;
14396
+ commercial_name?: string | null;
14397
+ company_name?: string | null;
14398
+ connection_id?: never;
14399
+ contact_person?: string | null;
14400
+ country?: string | null;
14401
+ email?: string | null;
14402
+ external_id?: never;
14403
+ fetched_at?: never;
14404
+ gln?: string | null;
14405
+ house_number?: string | null;
14406
+ is_active?: never;
14407
+ is_deleted?: never;
14408
+ logo_url?: string | null;
14409
+ phone?: string | null;
14410
+ postal_code?: string | null;
14411
+ provider?: never;
14412
+ raw?: never;
14413
+ status?: string | null;
14414
+ street?: string | null;
14415
+ vat_number?: string | null;
14416
+ website?: string | null;
14417
+ };
14418
+ Update: {
14419
+ city?: string | null;
14420
+ commercial_name?: string | null;
14421
+ company_name?: string | null;
14422
+ connection_id?: never;
14423
+ contact_person?: string | null;
14424
+ country?: string | null;
14425
+ email?: string | null;
14426
+ external_id?: never;
14427
+ fetched_at?: never;
14428
+ gln?: string | null;
14429
+ house_number?: string | null;
14430
+ is_active?: never;
14431
+ is_deleted?: never;
14432
+ logo_url?: string | null;
14433
+ phone?: string | null;
14434
+ postal_code?: string | null;
14435
+ provider?: never;
14436
+ raw?: never;
14437
+ status?: string | null;
14438
+ street?: string | null;
14439
+ vat_number?: string | null;
14440
+ website?: string | null;
14441
+ };
14442
+ Relationships: [];
14443
+ };
12461
14444
  v_external_customers_twinfield: {
12462
14445
  Row: {
12463
14446
  city: string | null;
@@ -13386,6 +15369,170 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13386
15369
  };
13387
15370
  Returns: string;
13388
15371
  };
15372
+ pick_claim_document: {
15373
+ Args: {
15374
+ _queue_item_id: string;
15375
+ _screen_id: string;
15376
+ _session_id: string;
15377
+ _station_id: string;
15378
+ _timeout_seconds?: number;
15379
+ };
15380
+ Returns: {
15381
+ announced_at: string;
15382
+ assigned_user_id: string | null;
15383
+ barcode: string | null;
15384
+ cancelled_at: string | null;
15385
+ cart_count: number;
15386
+ completed_at: string | null;
15387
+ country_code: string | null;
15388
+ created_at: string;
15389
+ customer_name: string | null;
15390
+ delivery_address: string | null;
15391
+ document_number: string | null;
15392
+ document_type_id: string | null;
15393
+ due_at: string | null;
15394
+ id: string;
15395
+ is_urgent: boolean;
15396
+ line_count: number;
15397
+ order_number: string | null;
15398
+ order_type: string | null;
15399
+ payload: import("../integrations/supabase/types").Json;
15400
+ print_count: number;
15401
+ printed_at: string | null;
15402
+ printed_by: string | null;
15403
+ printer_id: string | null;
15404
+ priority: number;
15405
+ reference: string | null;
15406
+ route: string | null;
15407
+ screen_id: string | null;
15408
+ station_id: string | null;
15409
+ status_id: string | null;
15410
+ updated_at: string;
15411
+ warnings: import("../integrations/supabase/types").Json;
15412
+ };
15413
+ SetofOptions: {
15414
+ from: "*";
15415
+ to: "pick_queue";
15416
+ isOneToOne: true;
15417
+ isSetofReturn: false;
15418
+ };
15419
+ };
15420
+ pick_claim_next_document: {
15421
+ Args: {
15422
+ _country_code: string;
15423
+ _screen_id: string;
15424
+ _session_id: string;
15425
+ _station_id: string;
15426
+ _timeout_seconds?: number;
15427
+ };
15428
+ Returns: {
15429
+ announced_at: string;
15430
+ assigned_user_id: string | null;
15431
+ barcode: string | null;
15432
+ cancelled_at: string | null;
15433
+ cart_count: number;
15434
+ completed_at: string | null;
15435
+ country_code: string | null;
15436
+ created_at: string;
15437
+ customer_name: string | null;
15438
+ delivery_address: string | null;
15439
+ document_number: string | null;
15440
+ document_type_id: string | null;
15441
+ due_at: string | null;
15442
+ id: string;
15443
+ is_urgent: boolean;
15444
+ line_count: number;
15445
+ order_number: string | null;
15446
+ order_type: string | null;
15447
+ payload: import("../integrations/supabase/types").Json;
15448
+ print_count: number;
15449
+ printed_at: string | null;
15450
+ printed_by: string | null;
15451
+ printer_id: string | null;
15452
+ priority: number;
15453
+ reference: string | null;
15454
+ route: string | null;
15455
+ screen_id: string | null;
15456
+ station_id: string | null;
15457
+ status_id: string | null;
15458
+ updated_at: string;
15459
+ warnings: import("../integrations/supabase/types").Json;
15460
+ };
15461
+ SetofOptions: {
15462
+ from: "*";
15463
+ to: "pick_queue";
15464
+ isOneToOne: true;
15465
+ isSetofReturn: false;
15466
+ };
15467
+ };
15468
+ pick_complete_print: {
15469
+ Args: {
15470
+ _printer_id: string;
15471
+ _queue_item_id: string;
15472
+ _session_id: string;
15473
+ };
15474
+ Returns: {
15475
+ announced_at: string;
15476
+ assigned_user_id: string | null;
15477
+ barcode: string | null;
15478
+ cancelled_at: string | null;
15479
+ cart_count: number;
15480
+ completed_at: string | null;
15481
+ country_code: string | null;
15482
+ created_at: string;
15483
+ customer_name: string | null;
15484
+ delivery_address: string | null;
15485
+ document_number: string | null;
15486
+ document_type_id: string | null;
15487
+ due_at: string | null;
15488
+ id: string;
15489
+ is_urgent: boolean;
15490
+ line_count: number;
15491
+ order_number: string | null;
15492
+ order_type: string | null;
15493
+ payload: import("../integrations/supabase/types").Json;
15494
+ print_count: number;
15495
+ printed_at: string | null;
15496
+ printed_by: string | null;
15497
+ printer_id: string | null;
15498
+ priority: number;
15499
+ reference: string | null;
15500
+ route: string | null;
15501
+ screen_id: string | null;
15502
+ station_id: string | null;
15503
+ status_id: string | null;
15504
+ updated_at: string;
15505
+ warnings: import("../integrations/supabase/types").Json;
15506
+ };
15507
+ SetofOptions: {
15508
+ from: "*";
15509
+ to: "pick_queue";
15510
+ isOneToOne: true;
15511
+ isSetofReturn: false;
15512
+ };
15513
+ };
15514
+ pick_release_expired_locks: {
15515
+ Args: never;
15516
+ Returns: number;
15517
+ };
15518
+ pick_release_lock: {
15519
+ Args: {
15520
+ _queue_item_id: string;
15521
+ };
15522
+ Returns: undefined;
15523
+ };
15524
+ pick_station_dashboard: {
15525
+ Args: never;
15526
+ Returns: {
15527
+ active: number;
15528
+ active_sessions: number;
15529
+ avg_wait_seconds: number;
15530
+ done_today: number;
15531
+ station_id: string;
15532
+ station_name: string;
15533
+ waiting: number;
15534
+ }[];
15535
+ };
13389
15536
  pickstation_get_orders_raw: {
13390
15537
  Args: never;
13391
15538
  Returns: import("../integrations/supabase/types").Json;
@@ -13487,6 +15634,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13487
15634
  };
13488
15635
  Returns: number;
13489
15636
  };
15637
+ release_debtor_lock: {
15638
+ Args: {
15639
+ _group_key: string;
15640
+ _user_id: string;
15641
+ };
15642
+ Returns: boolean;
15643
+ };
13490
15644
  reorder_customer_price_groups: {
13491
15645
  Args: {
13492
15646
  _ids: string[];
@@ -13866,15 +16020,30 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13866
16020
  };
13867
16021
  Returns: undefined;
13868
16022
  };
13869
- twinfield_decrypt: {
16023
+ try_debtor_lock: {
13870
16024
  Args: {
13871
- cipher: string;
16025
+ _group_key: string;
16026
+ _user_id: string;
13872
16027
  };
13873
- Returns: string;
16028
+ Returns: boolean;
13874
16029
  };
13875
- twinfield_encrypt: {
16030
+ twinfield_register_cron: {
13876
16031
  Args: {
13877
- plain: string;
16032
+ apikey: string;
16033
+ base_url: string;
16034
+ };
16035
+ Returns: import("../integrations/supabase/types").Json;
16036
+ };
16037
+ twinfield_upsert_connection_by_account_key: {
16038
+ Args: {
16039
+ p_account_key: string;
16040
+ p_cluster_uri?: string;
16041
+ p_company_code?: string;
16042
+ p_company_name?: string;
16043
+ p_environment: string;
16044
+ p_office_code?: string;
16045
+ p_status?: string;
16046
+ p_user_id: string;
13878
16047
  };
13879
16048
  Returns: string;
13880
16049
  };
@@ -13891,12 +16060,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13891
16060
  };
13892
16061
  };
13893
16062
  Enums: {
16063
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13894
16064
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16065
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16066
+ doc_orientation: "portrait" | "landscape";
13895
16067
  exact_env: "staging" | "live";
13896
16068
  exact_push_status: "pending" | "sent" | "error";
13897
16069
  itk_customer_segment: "Business" | "Private";
13898
16070
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13899
16071
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16072
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16073
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16074
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13900
16075
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13901
16076
  };
13902
16077
  CompositeTypes: { [_ in never]: never; };