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