@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
@@ -395,6 +395,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
395
395
  };
396
396
  Relationships: [];
397
397
  };
398
+ ai_layout_imports: {
399
+ Row: {
400
+ analyse_json: import("./types").Json;
401
+ bestand_url: string | null;
402
+ bestandsnaam: string;
403
+ bevestigd: boolean;
404
+ created_at: string;
405
+ created_by: string | null;
406
+ foutmelding: string | null;
407
+ id: string;
408
+ layout_id: string | null;
409
+ mime_type: string;
410
+ onzekere_velden: import("./types").Json;
411
+ status: Database["public"]["Enums"]["ai_import_status"];
412
+ updated_at: string;
413
+ voorstel: import("./types").Json;
414
+ };
415
+ Insert: {
416
+ analyse_json?: import("./types").Json;
417
+ bestand_url?: string | null;
418
+ bestandsnaam?: string;
419
+ bevestigd?: boolean;
420
+ created_at?: string;
421
+ created_by?: string | null;
422
+ foutmelding?: string | null;
423
+ id?: string;
424
+ layout_id?: string | null;
425
+ mime_type?: string;
426
+ onzekere_velden?: import("./types").Json;
427
+ status?: Database["public"]["Enums"]["ai_import_status"];
428
+ updated_at?: string;
429
+ voorstel?: import("./types").Json;
430
+ };
431
+ Update: {
432
+ analyse_json?: import("./types").Json;
433
+ bestand_url?: string | null;
434
+ bestandsnaam?: string;
435
+ bevestigd?: boolean;
436
+ created_at?: string;
437
+ created_by?: string | null;
438
+ foutmelding?: string | null;
439
+ id?: string;
440
+ layout_id?: string | null;
441
+ mime_type?: string;
442
+ onzekere_velden?: import("./types").Json;
443
+ status?: Database["public"]["Enums"]["ai_import_status"];
444
+ updated_at?: string;
445
+ voorstel?: import("./types").Json;
446
+ };
447
+ Relationships: [{
448
+ foreignKeyName: "ai_layout_imports_layout_id_fkey";
449
+ columns: ["layout_id"];
450
+ isOneToOne: false;
451
+ referencedRelation: "document_layouts";
452
+ referencedColumns: ["id"];
453
+ }];
454
+ };
398
455
  ai_model_pricing: {
399
456
  Row: {
400
457
  created_at: string;
@@ -485,6 +542,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
485
542
  created_at: string;
486
543
  credential_id: string;
487
544
  id: string;
545
+ is_default: boolean;
546
+ label: string | null;
488
547
  model_id: string;
489
548
  notes: string | null;
490
549
  updated_at: string;
@@ -494,6 +553,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
494
553
  created_at?: string;
495
554
  credential_id: string;
496
555
  id?: string;
556
+ is_default?: boolean;
557
+ label?: string | null;
497
558
  model_id: string;
498
559
  notes?: string | null;
499
560
  updated_at?: string;
@@ -503,6 +564,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
503
564
  created_at?: string;
504
565
  credential_id?: string;
505
566
  id?: string;
567
+ is_default?: boolean;
568
+ label?: string | null;
506
569
  model_id?: string;
507
570
  notes?: string | null;
508
571
  updated_at?: string;
@@ -521,6 +584,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
521
584
  referencedColumns: ["id"];
522
585
  }];
523
586
  };
587
+ ai_modules: {
588
+ Row: {
589
+ ai_enabled: boolean;
590
+ created_at: string;
591
+ id: string;
592
+ module_key: string;
593
+ module_name: string;
594
+ updated_at: string;
595
+ };
596
+ Insert: {
597
+ ai_enabled?: boolean;
598
+ created_at?: string;
599
+ id?: string;
600
+ module_key: string;
601
+ module_name: string;
602
+ updated_at?: string;
603
+ };
604
+ Update: {
605
+ ai_enabled?: boolean;
606
+ created_at?: string;
607
+ id?: string;
608
+ module_key?: string;
609
+ module_name?: string;
610
+ updated_at?: string;
611
+ };
612
+ Relationships: [{
613
+ foreignKeyName: "ai_modules_module_key_fkey";
614
+ columns: ["module_key"];
615
+ isOneToOne: true;
616
+ referencedRelation: "modules";
617
+ referencedColumns: ["module_key"];
618
+ }];
619
+ };
524
620
  ai_providers: {
525
621
  Row: {
526
622
  active: boolean;
@@ -1263,6 +1359,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1263
1359
  require_same_crate_type: boolean;
1264
1360
  require_same_delivery_date: boolean;
1265
1361
  require_same_delivery_location: boolean;
1362
+ uniform_pick_time: boolean;
1363
+ uniform_pick_time_seconds: number;
1266
1364
  updated_at: string;
1267
1365
  updated_by: string | null;
1268
1366
  };
@@ -1287,6 +1385,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1287
1385
  require_same_crate_type?: boolean;
1288
1386
  require_same_delivery_date?: boolean;
1289
1387
  require_same_delivery_location?: boolean;
1388
+ uniform_pick_time?: boolean;
1389
+ uniform_pick_time_seconds?: number;
1290
1390
  updated_at?: string;
1291
1391
  updated_by?: string | null;
1292
1392
  };
@@ -1311,6 +1411,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1311
1411
  require_same_crate_type?: boolean;
1312
1412
  require_same_delivery_date?: boolean;
1313
1413
  require_same_delivery_location?: boolean;
1414
+ uniform_pick_time?: boolean;
1415
+ uniform_pick_time_seconds?: number;
1314
1416
  updated_at?: string;
1315
1417
  updated_by?: string | null;
1316
1418
  };
@@ -2444,6 +2546,351 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2444
2546
  };
2445
2547
  Relationships: [];
2446
2548
  };
2549
+ document_formaat_printers: {
2550
+ Row: {
2551
+ created_at: string;
2552
+ documenttype: string;
2553
+ formaat_code: string;
2554
+ id: string;
2555
+ printer_id: string | null;
2556
+ updated_at: string;
2557
+ };
2558
+ Insert: {
2559
+ created_at?: string;
2560
+ documenttype: string;
2561
+ formaat_code: string;
2562
+ id?: string;
2563
+ printer_id?: string | null;
2564
+ updated_at?: string;
2565
+ };
2566
+ Update: {
2567
+ created_at?: string;
2568
+ documenttype?: string;
2569
+ formaat_code?: string;
2570
+ id?: string;
2571
+ printer_id?: string | null;
2572
+ updated_at?: string;
2573
+ };
2574
+ Relationships: [{
2575
+ foreignKeyName: "document_formaat_printers_printer_id_fkey";
2576
+ columns: ["printer_id"];
2577
+ isOneToOne: false;
2578
+ referencedRelation: "printers";
2579
+ referencedColumns: ["id"];
2580
+ }];
2581
+ };
2582
+ document_layout_conditions: {
2583
+ Row: {
2584
+ created_at: string;
2585
+ element_key: string;
2586
+ id: string;
2587
+ layout_id: string;
2588
+ operator: string;
2589
+ updated_at: string;
2590
+ veld: string;
2591
+ waarde: string;
2592
+ };
2593
+ Insert: {
2594
+ created_at?: string;
2595
+ element_key: string;
2596
+ id?: string;
2597
+ layout_id: string;
2598
+ operator?: string;
2599
+ updated_at?: string;
2600
+ veld: string;
2601
+ waarde?: string;
2602
+ };
2603
+ Update: {
2604
+ created_at?: string;
2605
+ element_key?: string;
2606
+ id?: string;
2607
+ layout_id?: string;
2608
+ operator?: string;
2609
+ updated_at?: string;
2610
+ veld?: string;
2611
+ waarde?: string;
2612
+ };
2613
+ Relationships: [{
2614
+ foreignKeyName: "document_layout_conditions_layout_id_fkey";
2615
+ columns: ["layout_id"];
2616
+ isOneToOne: false;
2617
+ referencedRelation: "document_layouts";
2618
+ referencedColumns: ["id"];
2619
+ }];
2620
+ };
2621
+ document_layout_datasources: {
2622
+ Row: {
2623
+ alias: string;
2624
+ created_at: string;
2625
+ entiteit: string;
2626
+ filter: import("./types").Json;
2627
+ id: string;
2628
+ layout_id: string;
2629
+ module_id: string;
2630
+ updated_at: string;
2631
+ };
2632
+ Insert: {
2633
+ alias?: string;
2634
+ created_at?: string;
2635
+ entiteit: string;
2636
+ filter?: import("./types").Json;
2637
+ id?: string;
2638
+ layout_id: string;
2639
+ module_id: string;
2640
+ updated_at?: string;
2641
+ };
2642
+ Update: {
2643
+ alias?: string;
2644
+ created_at?: string;
2645
+ entiteit?: string;
2646
+ filter?: import("./types").Json;
2647
+ id?: string;
2648
+ layout_id?: string;
2649
+ module_id?: string;
2650
+ updated_at?: string;
2651
+ };
2652
+ Relationships: [{
2653
+ foreignKeyName: "document_layout_datasources_layout_id_fkey";
2654
+ columns: ["layout_id"];
2655
+ isOneToOne: false;
2656
+ referencedRelation: "document_layouts";
2657
+ referencedColumns: ["id"];
2658
+ }];
2659
+ };
2660
+ document_layout_elements: {
2661
+ Row: {
2662
+ breedte: number;
2663
+ config: import("./types").Json;
2664
+ content: string;
2665
+ created_at: string;
2666
+ element_key: string;
2667
+ hoogte: number;
2668
+ id: string;
2669
+ layout_id: string;
2670
+ logo_id: string | null;
2671
+ parent_key: string | null;
2672
+ rotatie: number;
2673
+ stijl: import("./types").Json;
2674
+ type: string;
2675
+ updated_at: string;
2676
+ veldpad: string | null;
2677
+ verborgen: boolean;
2678
+ vergrendeld: boolean;
2679
+ volgorde: number;
2680
+ x: number;
2681
+ y: number;
2682
+ z_index: number;
2683
+ };
2684
+ Insert: {
2685
+ breedte?: number;
2686
+ config?: import("./types").Json;
2687
+ content?: string;
2688
+ created_at?: string;
2689
+ element_key: string;
2690
+ hoogte?: number;
2691
+ id?: string;
2692
+ layout_id: string;
2693
+ logo_id?: string | null;
2694
+ parent_key?: string | null;
2695
+ rotatie?: number;
2696
+ stijl?: import("./types").Json;
2697
+ type: string;
2698
+ updated_at?: string;
2699
+ veldpad?: string | null;
2700
+ verborgen?: boolean;
2701
+ vergrendeld?: boolean;
2702
+ volgorde?: number;
2703
+ x?: number;
2704
+ y?: number;
2705
+ z_index?: number;
2706
+ };
2707
+ Update: {
2708
+ breedte?: number;
2709
+ config?: import("./types").Json;
2710
+ content?: string;
2711
+ created_at?: string;
2712
+ element_key?: string;
2713
+ hoogte?: number;
2714
+ id?: string;
2715
+ layout_id?: string;
2716
+ logo_id?: string | null;
2717
+ parent_key?: string | null;
2718
+ rotatie?: number;
2719
+ stijl?: import("./types").Json;
2720
+ type?: string;
2721
+ updated_at?: string;
2722
+ veldpad?: string | null;
2723
+ verborgen?: boolean;
2724
+ vergrendeld?: boolean;
2725
+ volgorde?: number;
2726
+ x?: number;
2727
+ y?: number;
2728
+ z_index?: number;
2729
+ };
2730
+ Relationships: [{
2731
+ foreignKeyName: "document_layout_elements_layout_id_fkey";
2732
+ columns: ["layout_id"];
2733
+ isOneToOne: false;
2734
+ referencedRelation: "document_layouts";
2735
+ referencedColumns: ["id"];
2736
+ }, {
2737
+ foreignKeyName: "document_layout_elements_logo_id_fkey";
2738
+ columns: ["logo_id"];
2739
+ isOneToOne: false;
2740
+ referencedRelation: "layout_logos";
2741
+ referencedColumns: ["id"];
2742
+ }];
2743
+ };
2744
+ document_layout_variables: {
2745
+ Row: {
2746
+ created_at: string;
2747
+ expressie: string;
2748
+ id: string;
2749
+ layout_id: string;
2750
+ naam: string;
2751
+ omschrijving: string;
2752
+ updated_at: string;
2753
+ };
2754
+ Insert: {
2755
+ created_at?: string;
2756
+ expressie?: string;
2757
+ id?: string;
2758
+ layout_id: string;
2759
+ naam: string;
2760
+ omschrijving?: string;
2761
+ updated_at?: string;
2762
+ };
2763
+ Update: {
2764
+ created_at?: string;
2765
+ expressie?: string;
2766
+ id?: string;
2767
+ layout_id?: string;
2768
+ naam?: string;
2769
+ omschrijving?: string;
2770
+ updated_at?: string;
2771
+ };
2772
+ Relationships: [{
2773
+ foreignKeyName: "document_layout_variables_layout_id_fkey";
2774
+ columns: ["layout_id"];
2775
+ isOneToOne: false;
2776
+ referencedRelation: "document_layouts";
2777
+ referencedColumns: ["id"];
2778
+ }];
2779
+ };
2780
+ document_layout_versions: {
2781
+ Row: {
2782
+ commentaar: string;
2783
+ created_at: string;
2784
+ created_by: string | null;
2785
+ elements: import("./types").Json;
2786
+ id: string;
2787
+ layout_id: string;
2788
+ page_settings: import("./types").Json;
2789
+ updated_at: string;
2790
+ versienummer: number;
2791
+ };
2792
+ Insert: {
2793
+ commentaar?: string;
2794
+ created_at?: string;
2795
+ created_by?: string | null;
2796
+ elements?: import("./types").Json;
2797
+ id?: string;
2798
+ layout_id: string;
2799
+ page_settings?: import("./types").Json;
2800
+ updated_at?: string;
2801
+ versienummer: number;
2802
+ };
2803
+ Update: {
2804
+ commentaar?: string;
2805
+ created_at?: string;
2806
+ created_by?: string | null;
2807
+ elements?: import("./types").Json;
2808
+ id?: string;
2809
+ layout_id?: string;
2810
+ page_settings?: import("./types").Json;
2811
+ updated_at?: string;
2812
+ versienummer?: number;
2813
+ };
2814
+ Relationships: [{
2815
+ foreignKeyName: "document_layout_versions_layout_id_fkey";
2816
+ columns: ["layout_id"];
2817
+ isOneToOne: false;
2818
+ referencedRelation: "document_layouts";
2819
+ referencedColumns: ["id"];
2820
+ }];
2821
+ };
2822
+ document_layouts: {
2823
+ Row: {
2824
+ actief: boolean;
2825
+ breedte_mm: number;
2826
+ config: import("./types").Json;
2827
+ created_at: string;
2828
+ created_by: string | null;
2829
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
2830
+ hoogte_mm: number;
2831
+ huidige_versie: number;
2832
+ id: string;
2833
+ is_standaard: boolean;
2834
+ marge_boven: number;
2835
+ marge_links: number;
2836
+ marge_onder: number;
2837
+ marge_rechts: number;
2838
+ naam: string;
2839
+ omschrijving: string;
2840
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
2841
+ page_settings: import("./types").Json;
2842
+ papierformaat: string;
2843
+ thumbnail_url: string | null;
2844
+ updated_at: string;
2845
+ };
2846
+ Insert: {
2847
+ actief?: boolean;
2848
+ breedte_mm?: number;
2849
+ config?: import("./types").Json;
2850
+ created_at?: string;
2851
+ created_by?: string | null;
2852
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2853
+ hoogte_mm?: number;
2854
+ huidige_versie?: number;
2855
+ id?: string;
2856
+ is_standaard?: boolean;
2857
+ marge_boven?: number;
2858
+ marge_links?: number;
2859
+ marge_onder?: number;
2860
+ marge_rechts?: number;
2861
+ naam: string;
2862
+ omschrijving?: string;
2863
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2864
+ page_settings?: import("./types").Json;
2865
+ papierformaat?: string;
2866
+ thumbnail_url?: string | null;
2867
+ updated_at?: string;
2868
+ };
2869
+ Update: {
2870
+ actief?: boolean;
2871
+ breedte_mm?: number;
2872
+ config?: import("./types").Json;
2873
+ created_at?: string;
2874
+ created_by?: string | null;
2875
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
2876
+ hoogte_mm?: number;
2877
+ huidige_versie?: number;
2878
+ id?: string;
2879
+ is_standaard?: boolean;
2880
+ marge_boven?: number;
2881
+ marge_links?: number;
2882
+ marge_onder?: number;
2883
+ marge_rechts?: number;
2884
+ naam?: string;
2885
+ omschrijving?: string;
2886
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
2887
+ page_settings?: import("./types").Json;
2888
+ papierformaat?: string;
2889
+ thumbnail_url?: string | null;
2890
+ updated_at?: string;
2891
+ };
2892
+ Relationships: [];
2893
+ };
2447
2894
  email_auth_connections: {
2448
2895
  Row: {
2449
2896
  access_token_encrypted: string | null;
@@ -2483,6 +2930,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2483
2930
  status: string;
2484
2931
  token_expires_at: string | null;
2485
2932
  updated_at: string;
2933
+ webhook_last_attempt_at: string | null;
2934
+ webhook_last_error: string | null;
2935
+ webhook_status: string;
2486
2936
  };
2487
2937
  Insert: {
2488
2938
  access_token_encrypted?: string | null;
@@ -2522,6 +2972,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2522
2972
  status?: string;
2523
2973
  token_expires_at?: string | null;
2524
2974
  updated_at?: string;
2975
+ webhook_last_attempt_at?: string | null;
2976
+ webhook_last_error?: string | null;
2977
+ webhook_status?: string;
2525
2978
  };
2526
2979
  Update: {
2527
2980
  access_token_encrypted?: string | null;
@@ -2561,6 +3014,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2561
3014
  status?: string;
2562
3015
  token_expires_at?: string | null;
2563
3016
  updated_at?: string;
3017
+ webhook_last_attempt_at?: string | null;
3018
+ webhook_last_error?: string | null;
3019
+ webhook_status?: string;
2564
3020
  };
2565
3021
  Relationships: [];
2566
3022
  };
@@ -2756,6 +3212,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2756
3212
  referencedColumns: ["id"];
2757
3213
  }];
2758
3214
  };
3215
+ email_auth_webhook_log: {
3216
+ Row: {
3217
+ body_sample: string | null;
3218
+ connection_id: string | null;
3219
+ created_at: string;
3220
+ error_message: string | null;
3221
+ headers_sample: import("./types").Json | null;
3222
+ id: string;
3223
+ notification_count: number | null;
3224
+ provider: string | null;
3225
+ source: string | null;
3226
+ status: string;
3227
+ subscription_id: string | null;
3228
+ };
3229
+ Insert: {
3230
+ body_sample?: string | null;
3231
+ connection_id?: string | null;
3232
+ created_at?: string;
3233
+ error_message?: string | null;
3234
+ headers_sample?: import("./types").Json | null;
3235
+ id?: string;
3236
+ notification_count?: number | null;
3237
+ provider?: string | null;
3238
+ source?: string | null;
3239
+ status: string;
3240
+ subscription_id?: string | null;
3241
+ };
3242
+ Update: {
3243
+ body_sample?: string | null;
3244
+ connection_id?: string | null;
3245
+ created_at?: string;
3246
+ error_message?: string | null;
3247
+ headers_sample?: import("./types").Json | null;
3248
+ id?: string;
3249
+ notification_count?: number | null;
3250
+ provider?: string | null;
3251
+ source?: string | null;
3252
+ status?: string;
3253
+ subscription_id?: string | null;
3254
+ };
3255
+ Relationships: [{
3256
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3257
+ columns: ["connection_id"];
3258
+ isOneToOne: false;
3259
+ referencedRelation: "email_auth_connections";
3260
+ referencedColumns: ["id"];
3261
+ }, {
3262
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
3263
+ columns: ["connection_id"];
3264
+ isOneToOne: false;
3265
+ referencedRelation: "email_auth_connections_safe";
3266
+ referencedColumns: ["id"];
3267
+ }];
3268
+ };
2759
3269
  exact_account_analytics_cache: {
2760
3270
  Row: {
2761
3271
  account_id: string;
@@ -5528,9 +6038,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5528
6038
  referencedColumns: ["id"];
5529
6039
  }];
5530
6040
  };
5531
- floriday_trips_cache: {
6041
+ floriday_trade_settings_customers_cache: {
5532
6042
  Row: {
5533
- carrier_organization_id: string | null;
5534
6043
  connection_id: string;
5535
6044
  data: import("./types").Json;
5536
6045
  fetched_at: string;
@@ -5538,12 +6047,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5538
6047
  id: string;
5539
6048
  is_deleted: boolean;
5540
6049
  sequence_number: number;
5541
- status: string | null;
5542
- trip_date: string | null;
5543
6050
  updated_at: string;
5544
6051
  };
5545
6052
  Insert: {
5546
- carrier_organization_id?: string | null;
6053
+ connection_id: string;
6054
+ data: import("./types").Json;
6055
+ fetched_at?: string;
6056
+ floriday_id: string;
6057
+ id?: string;
6058
+ is_deleted?: boolean;
6059
+ sequence_number?: number;
6060
+ updated_at?: string;
6061
+ };
6062
+ Update: {
6063
+ connection_id?: string;
6064
+ data?: import("./types").Json;
6065
+ fetched_at?: string;
6066
+ floriday_id?: string;
6067
+ id?: string;
6068
+ is_deleted?: boolean;
6069
+ sequence_number?: number;
6070
+ updated_at?: string;
6071
+ };
6072
+ Relationships: [{
6073
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
6074
+ columns: ["connection_id"];
6075
+ isOneToOne: false;
6076
+ referencedRelation: "floriday_connections";
6077
+ referencedColumns: ["id"];
6078
+ }];
6079
+ };
6080
+ floriday_trips_cache: {
6081
+ Row: {
6082
+ carrier_organization_id: string | null;
6083
+ connection_id: string;
6084
+ data: import("./types").Json;
6085
+ fetched_at: string;
6086
+ floriday_id: string;
6087
+ id: string;
6088
+ is_deleted: boolean;
6089
+ sequence_number: number;
6090
+ status: string | null;
6091
+ trip_date: string | null;
6092
+ updated_at: string;
6093
+ };
6094
+ Insert: {
6095
+ carrier_organization_id?: string | null;
5547
6096
  connection_id: string;
5548
6097
  data?: import("./types").Json;
5549
6098
  fetched_at?: string;
@@ -5930,6 +6479,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5930
6479
  };
5931
6480
  Relationships: [];
5932
6481
  };
6482
+ invoice_post_idempotency: {
6483
+ Row: {
6484
+ client_request_id: string;
6485
+ completed_at: string | null;
6486
+ created_at: string;
6487
+ error_message: string | null;
6488
+ invoice_number: string | null;
6489
+ status: string;
6490
+ user_id: string;
6491
+ };
6492
+ Insert: {
6493
+ client_request_id: string;
6494
+ completed_at?: string | null;
6495
+ created_at?: string;
6496
+ error_message?: string | null;
6497
+ invoice_number?: string | null;
6498
+ status?: string;
6499
+ user_id: string;
6500
+ };
6501
+ Update: {
6502
+ client_request_id?: string;
6503
+ completed_at?: string | null;
6504
+ created_at?: string;
6505
+ error_message?: string | null;
6506
+ invoice_number?: string | null;
6507
+ status?: string;
6508
+ user_id?: string;
6509
+ };
6510
+ Relationships: [];
6511
+ };
5933
6512
  invoice_push_log: {
5934
6513
  Row: {
5935
6514
  connection_id: string | null;
@@ -6317,6 +6896,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6317
6896
  referencedColumns: ["id"];
6318
6897
  }];
6319
6898
  };
6899
+ layout_logos: {
6900
+ Row: {
6901
+ bestand_url: string;
6902
+ bestandsgrootte: number;
6903
+ bestandspad: string | null;
6904
+ bestandstype: string;
6905
+ breedte: number;
6906
+ categorie: string;
6907
+ created_at: string;
6908
+ hash: string | null;
6909
+ hoogte: number;
6910
+ id: string;
6911
+ is_standaard: boolean;
6912
+ naam: string;
6913
+ omschrijving: string;
6914
+ transparant: boolean;
6915
+ updated_at: string;
6916
+ };
6917
+ Insert: {
6918
+ bestand_url: string;
6919
+ bestandsgrootte?: number;
6920
+ bestandspad?: string | null;
6921
+ bestandstype?: string;
6922
+ breedte?: number;
6923
+ categorie?: string;
6924
+ created_at?: string;
6925
+ hash?: string | null;
6926
+ hoogte?: number;
6927
+ id?: string;
6928
+ is_standaard?: boolean;
6929
+ naam: string;
6930
+ omschrijving?: string;
6931
+ transparant?: boolean;
6932
+ updated_at?: string;
6933
+ };
6934
+ Update: {
6935
+ bestand_url?: string;
6936
+ bestandsgrootte?: number;
6937
+ bestandspad?: string | null;
6938
+ bestandstype?: string;
6939
+ breedte?: number;
6940
+ categorie?: string;
6941
+ created_at?: string;
6942
+ hash?: string | null;
6943
+ hoogte?: number;
6944
+ id?: string;
6945
+ is_standaard?: boolean;
6946
+ naam?: string;
6947
+ omschrijving?: string;
6948
+ transparant?: boolean;
6949
+ updated_at?: string;
6950
+ };
6951
+ Relationships: [];
6952
+ };
6320
6953
  leave_requests: {
6321
6954
  Row: {
6322
6955
  created_at: string;
@@ -6860,6 +7493,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6860
7493
  };
6861
7494
  Relationships: [];
6862
7495
  };
7496
+ mailbox_ai_goal_prompts: {
7497
+ Row: {
7498
+ created_at: string;
7499
+ goal_key: string;
7500
+ id: string;
7501
+ system_prompt: string;
7502
+ updated_at: string;
7503
+ };
7504
+ Insert: {
7505
+ created_at?: string;
7506
+ goal_key: string;
7507
+ id?: string;
7508
+ system_prompt?: string;
7509
+ updated_at?: string;
7510
+ };
7511
+ Update: {
7512
+ created_at?: string;
7513
+ goal_key?: string;
7514
+ id?: string;
7515
+ system_prompt?: string;
7516
+ updated_at?: string;
7517
+ };
7518
+ Relationships: [];
7519
+ };
7520
+ mailbox_ai_settings: {
7521
+ Row: {
7522
+ active_goal_key: string | null;
7523
+ created_at: string;
7524
+ enabled: boolean;
7525
+ id: string;
7526
+ required_fields: string[];
7527
+ singleton: boolean;
7528
+ system_prompt: string | null;
7529
+ updated_at: string;
7530
+ };
7531
+ Insert: {
7532
+ active_goal_key?: string | null;
7533
+ created_at?: string;
7534
+ enabled?: boolean;
7535
+ id?: string;
7536
+ required_fields?: string[];
7537
+ singleton?: boolean;
7538
+ system_prompt?: string | null;
7539
+ updated_at?: string;
7540
+ };
7541
+ Update: {
7542
+ active_goal_key?: string | null;
7543
+ created_at?: string;
7544
+ enabled?: boolean;
7545
+ id?: string;
7546
+ required_fields?: string[];
7547
+ singleton?: boolean;
7548
+ system_prompt?: string | null;
7549
+ updated_at?: string;
7550
+ };
7551
+ Relationships: [];
7552
+ };
7553
+ mailbox_ingest_runs: {
7554
+ Row: {
7555
+ connection_id: string | null;
7556
+ error_sample: string | null;
7557
+ errors: number;
7558
+ finished_at: string | null;
7559
+ id: string;
7560
+ inserted: number;
7561
+ processed: number;
7562
+ started_at: string;
7563
+ trigger: string;
7564
+ };
7565
+ Insert: {
7566
+ connection_id?: string | null;
7567
+ error_sample?: string | null;
7568
+ errors?: number;
7569
+ finished_at?: string | null;
7570
+ id?: string;
7571
+ inserted?: number;
7572
+ processed?: number;
7573
+ started_at?: string;
7574
+ trigger: string;
7575
+ };
7576
+ Update: {
7577
+ connection_id?: string | null;
7578
+ error_sample?: string | null;
7579
+ errors?: number;
7580
+ finished_at?: string | null;
7581
+ id?: string;
7582
+ inserted?: number;
7583
+ processed?: number;
7584
+ started_at?: string;
7585
+ trigger?: string;
7586
+ };
7587
+ Relationships: [];
7588
+ };
6863
7589
  mailbox_messages: {
6864
7590
  Row: {
6865
7591
  body_html: string | null;
@@ -6940,6 +7666,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6940
7666
  };
6941
7667
  mailbox_order_proposals: {
6942
7668
  Row: {
7669
+ ai_validation: import("./types").Json | null;
6943
7670
  confidence: number | null;
6944
7671
  created_at: string;
6945
7672
  created_order_id: string | null;
@@ -6956,6 +7683,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6956
7683
  updated_at: string;
6957
7684
  };
6958
7685
  Insert: {
7686
+ ai_validation?: import("./types").Json | null;
6959
7687
  confidence?: number | null;
6960
7688
  created_at?: string;
6961
7689
  created_order_id?: string | null;
@@ -6972,6 +7700,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6972
7700
  updated_at?: string;
6973
7701
  };
6974
7702
  Update: {
7703
+ ai_validation?: import("./types").Json | null;
6975
7704
  confidence?: number | null;
6976
7705
  created_at?: string;
6977
7706
  created_order_id?: string | null;
@@ -7108,6 +7837,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7108
7837
  created_at: string;
7109
7838
  id: string;
7110
7839
  match_confidence: number | null;
7840
+ plant_type: string | null;
7111
7841
  product_id: string | null;
7112
7842
  proposal_id: string;
7113
7843
  quantity: number | null;
@@ -7120,6 +7850,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7120
7850
  created_at?: string;
7121
7851
  id?: string;
7122
7852
  match_confidence?: number | null;
7853
+ plant_type?: string | null;
7123
7854
  product_id?: string | null;
7124
7855
  proposal_id: string;
7125
7856
  quantity?: number | null;
@@ -7132,6 +7863,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7132
7863
  created_at?: string;
7133
7864
  id?: string;
7134
7865
  match_confidence?: number | null;
7866
+ plant_type?: string | null;
7135
7867
  product_id?: string | null;
7136
7868
  proposal_id?: string;
7137
7869
  quantity?: number | null;
@@ -7316,6 +8048,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7316
8048
  };
7317
8049
  Relationships: [];
7318
8050
  };
8051
+ modules: {
8052
+ Row: {
8053
+ created_at: string;
8054
+ description: string | null;
8055
+ id: string;
8056
+ is_active: boolean;
8057
+ last_seen_at: string | null;
8058
+ module_key: string;
8059
+ module_name: string;
8060
+ updated_at: string;
8061
+ };
8062
+ Insert: {
8063
+ created_at?: string;
8064
+ description?: string | null;
8065
+ id?: string;
8066
+ is_active?: boolean;
8067
+ last_seen_at?: string | null;
8068
+ module_key: string;
8069
+ module_name: string;
8070
+ updated_at?: string;
8071
+ };
8072
+ Update: {
8073
+ created_at?: string;
8074
+ description?: string | null;
8075
+ id?: string;
8076
+ is_active?: boolean;
8077
+ last_seen_at?: string | null;
8078
+ module_key?: string;
8079
+ module_name?: string;
8080
+ updated_at?: string;
8081
+ };
8082
+ Relationships: [];
8083
+ };
7319
8084
  monteurs: {
7320
8085
  Row: {
7321
8086
  avatar_url: string | null;
@@ -8272,9 +9037,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8272
9037
  };
8273
9038
  order_items: {
8274
9039
  Row: {
9040
+ crates_per_layer: number | null;
8275
9041
  created_at: string;
8276
9042
  id: string;
9043
+ layers_per_cart: number | null;
8277
9044
  order_id: string;
9045
+ plants_per_crate: number | null;
8278
9046
  product_id: string | null;
8279
9047
  product_name: string;
8280
9048
  quantity: number;
@@ -8282,9 +9050,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8282
9050
  unit_price: number | null;
8283
9051
  };
8284
9052
  Insert: {
9053
+ crates_per_layer?: number | null;
8285
9054
  created_at?: string;
8286
9055
  id?: string;
9056
+ layers_per_cart?: number | null;
8287
9057
  order_id: string;
9058
+ plants_per_crate?: number | null;
8288
9059
  product_id?: string | null;
8289
9060
  product_name: string;
8290
9061
  quantity?: number;
@@ -8292,9 +9063,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8292
9063
  unit_price?: number | null;
8293
9064
  };
8294
9065
  Update: {
9066
+ crates_per_layer?: number | null;
8295
9067
  created_at?: string;
8296
9068
  id?: string;
9069
+ layers_per_cart?: number | null;
8297
9070
  order_id?: string;
9071
+ plants_per_crate?: number | null;
8298
9072
  product_id?: string | null;
8299
9073
  product_name?: string;
8300
9074
  quantity?: number;
@@ -8546,85 +9320,964 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8546
9320
  };
8547
9321
  Relationships: [];
8548
9322
  };
8549
- pickstation_print_log: {
9323
+ pick_countries: {
8550
9324
  Row: {
8551
- customer_name: string | null;
8552
- documents: string[];
9325
+ active: boolean;
9326
+ code: string;
9327
+ created_at: string;
9328
+ flag: string | null;
8553
9329
  id: string;
8554
- ip_address: string | null;
8555
- order_id: string;
8556
- order_number: string | null;
8557
- printed_at: string;
9330
+ name: string;
9331
+ sort_order: number;
9332
+ updated_at: string;
8558
9333
  };
8559
9334
  Insert: {
8560
- customer_name?: string | null;
8561
- documents?: string[];
9335
+ active?: boolean;
9336
+ code: string;
9337
+ created_at?: string;
9338
+ flag?: string | null;
8562
9339
  id?: string;
8563
- ip_address?: string | null;
8564
- order_id: string;
8565
- order_number?: string | null;
8566
- printed_at?: string;
9340
+ name: string;
9341
+ sort_order?: number;
9342
+ updated_at?: string;
8567
9343
  };
8568
9344
  Update: {
8569
- customer_name?: string | null;
8570
- documents?: string[];
9345
+ active?: boolean;
9346
+ code?: string;
9347
+ created_at?: string;
9348
+ flag?: string | null;
8571
9349
  id?: string;
8572
- ip_address?: string | null;
8573
- order_id?: string;
8574
- order_number?: string | null;
8575
- printed_at?: string;
9350
+ name?: string;
9351
+ sort_order?: number;
9352
+ updated_at?: string;
8576
9353
  };
8577
9354
  Relationships: [];
8578
9355
  };
8579
- pipeline_settings: {
9356
+ pick_document_statuses: {
8580
9357
  Row: {
9358
+ active: boolean;
9359
+ code: string;
9360
+ color: string | null;
8581
9361
  created_at: string;
8582
9362
  id: string;
8583
- key: string;
9363
+ is_open: boolean;
9364
+ is_terminal: boolean;
9365
+ name: string;
9366
+ sort_order: number;
8584
9367
  updated_at: string;
8585
- value: string | null;
8586
9368
  };
8587
9369
  Insert: {
9370
+ active?: boolean;
9371
+ code: string;
9372
+ color?: string | null;
8588
9373
  created_at?: string;
8589
9374
  id?: string;
8590
- key: string;
9375
+ is_open?: boolean;
9376
+ is_terminal?: boolean;
9377
+ name: string;
9378
+ sort_order?: number;
8591
9379
  updated_at?: string;
8592
- value?: string | null;
8593
9380
  };
8594
9381
  Update: {
9382
+ active?: boolean;
9383
+ code?: string;
9384
+ color?: string | null;
8595
9385
  created_at?: string;
8596
9386
  id?: string;
8597
- key?: string;
9387
+ is_open?: boolean;
9388
+ is_terminal?: boolean;
9389
+ name?: string;
9390
+ sort_order?: number;
8598
9391
  updated_at?: string;
8599
- value?: string | null;
8600
9392
  };
8601
9393
  Relationships: [];
8602
9394
  };
8603
- pipeline_stages: {
9395
+ pick_document_types: {
8604
9396
  Row: {
8605
- automation_type: string;
8606
- color: string;
9397
+ active: boolean;
9398
+ code: string;
9399
+ color: string | null;
8607
9400
  created_at: string;
9401
+ description: string | null;
9402
+ icon: string | null;
8608
9403
  id: string;
8609
- is_active: boolean;
8610
9404
  name: string;
9405
+ print_template: string | null;
9406
+ printer_id: string | null;
9407
+ priority: number;
9408
+ report_key: string | null;
8611
9409
  sort_order: number;
8612
9410
  updated_at: string;
9411
+ workflow: import("./types").Json;
8613
9412
  };
8614
9413
  Insert: {
8615
- automation_type?: string;
8616
- color?: string;
9414
+ active?: boolean;
9415
+ code: string;
9416
+ color?: string | null;
8617
9417
  created_at?: string;
9418
+ description?: string | null;
9419
+ icon?: string | null;
8618
9420
  id?: string;
8619
- is_active?: boolean;
8620
9421
  name: string;
9422
+ print_template?: string | null;
9423
+ printer_id?: string | null;
9424
+ priority?: number;
9425
+ report_key?: string | null;
8621
9426
  sort_order?: number;
8622
9427
  updated_at?: string;
9428
+ workflow?: import("./types").Json;
8623
9429
  };
8624
9430
  Update: {
8625
- automation_type?: string;
8626
- color?: string;
8627
- created_at?: string;
9431
+ active?: boolean;
9432
+ code?: string;
9433
+ color?: string | null;
9434
+ created_at?: string;
9435
+ description?: string | null;
9436
+ icon?: string | null;
9437
+ id?: string;
9438
+ name?: string;
9439
+ print_template?: string | null;
9440
+ printer_id?: string | null;
9441
+ priority?: number;
9442
+ report_key?: string | null;
9443
+ sort_order?: number;
9444
+ updated_at?: string;
9445
+ workflow?: import("./types").Json;
9446
+ };
9447
+ Relationships: [{
9448
+ foreignKeyName: "pick_document_types_printer_id_fkey";
9449
+ columns: ["printer_id"];
9450
+ isOneToOne: false;
9451
+ referencedRelation: "pick_station_printers";
9452
+ referencedColumns: ["id"];
9453
+ }];
9454
+ };
9455
+ pick_queue: {
9456
+ Row: {
9457
+ announced_at: string;
9458
+ assigned_user_id: string | null;
9459
+ barcode: string | null;
9460
+ cancelled_at: string | null;
9461
+ cart_count: number;
9462
+ completed_at: string | null;
9463
+ country_code: string | null;
9464
+ created_at: string;
9465
+ customer_name: string | null;
9466
+ delivery_address: string | null;
9467
+ document_number: string | null;
9468
+ document_type_id: string | null;
9469
+ due_at: string | null;
9470
+ id: string;
9471
+ is_urgent: boolean;
9472
+ line_count: number;
9473
+ order_number: string | null;
9474
+ order_type: string | null;
9475
+ payload: import("./types").Json;
9476
+ print_count: number;
9477
+ printed_at: string | null;
9478
+ printed_by: string | null;
9479
+ printer_id: string | null;
9480
+ priority: number;
9481
+ reference: string | null;
9482
+ route: string | null;
9483
+ screen_id: string | null;
9484
+ station_id: string | null;
9485
+ status_id: string | null;
9486
+ updated_at: string;
9487
+ warnings: import("./types").Json;
9488
+ };
9489
+ Insert: {
9490
+ announced_at?: string;
9491
+ assigned_user_id?: string | null;
9492
+ barcode?: string | null;
9493
+ cancelled_at?: string | null;
9494
+ cart_count?: number;
9495
+ completed_at?: string | null;
9496
+ country_code?: string | null;
9497
+ created_at?: string;
9498
+ customer_name?: string | null;
9499
+ delivery_address?: string | null;
9500
+ document_number?: string | null;
9501
+ document_type_id?: string | null;
9502
+ due_at?: string | null;
9503
+ id?: string;
9504
+ is_urgent?: boolean;
9505
+ line_count?: number;
9506
+ order_number?: string | null;
9507
+ order_type?: string | null;
9508
+ payload?: import("./types").Json;
9509
+ print_count?: number;
9510
+ printed_at?: string | null;
9511
+ printed_by?: string | null;
9512
+ printer_id?: string | null;
9513
+ priority?: number;
9514
+ reference?: string | null;
9515
+ route?: string | null;
9516
+ screen_id?: string | null;
9517
+ station_id?: string | null;
9518
+ status_id?: string | null;
9519
+ updated_at?: string;
9520
+ warnings?: import("./types").Json;
9521
+ };
9522
+ Update: {
9523
+ announced_at?: string;
9524
+ assigned_user_id?: string | null;
9525
+ barcode?: string | null;
9526
+ cancelled_at?: string | null;
9527
+ cart_count?: number;
9528
+ completed_at?: string | null;
9529
+ country_code?: string | null;
9530
+ created_at?: string;
9531
+ customer_name?: string | null;
9532
+ delivery_address?: string | null;
9533
+ document_number?: string | null;
9534
+ document_type_id?: string | null;
9535
+ due_at?: string | null;
9536
+ id?: string;
9537
+ is_urgent?: boolean;
9538
+ line_count?: number;
9539
+ order_number?: string | null;
9540
+ order_type?: string | null;
9541
+ payload?: import("./types").Json;
9542
+ print_count?: number;
9543
+ printed_at?: string | null;
9544
+ printed_by?: string | null;
9545
+ printer_id?: string | null;
9546
+ priority?: number;
9547
+ reference?: string | null;
9548
+ route?: string | null;
9549
+ screen_id?: string | null;
9550
+ station_id?: string | null;
9551
+ status_id?: string | null;
9552
+ updated_at?: string;
9553
+ warnings?: import("./types").Json;
9554
+ };
9555
+ Relationships: [{
9556
+ foreignKeyName: "pick_queue_document_type_id_fkey";
9557
+ columns: ["document_type_id"];
9558
+ isOneToOne: false;
9559
+ referencedRelation: "pick_document_types";
9560
+ referencedColumns: ["id"];
9561
+ }, {
9562
+ foreignKeyName: "pick_queue_printer_id_fkey";
9563
+ columns: ["printer_id"];
9564
+ isOneToOne: false;
9565
+ referencedRelation: "pick_station_printers";
9566
+ referencedColumns: ["id"];
9567
+ }, {
9568
+ foreignKeyName: "pick_queue_screen_id_fkey";
9569
+ columns: ["screen_id"];
9570
+ isOneToOne: false;
9571
+ referencedRelation: "pick_station_screens";
9572
+ referencedColumns: ["id"];
9573
+ }, {
9574
+ foreignKeyName: "pick_queue_station_id_fkey";
9575
+ columns: ["station_id"];
9576
+ isOneToOne: false;
9577
+ referencedRelation: "pick_stations";
9578
+ referencedColumns: ["id"];
9579
+ }, {
9580
+ foreignKeyName: "pick_queue_status_id_fkey";
9581
+ columns: ["status_id"];
9582
+ isOneToOne: false;
9583
+ referencedRelation: "pick_document_statuses";
9584
+ referencedColumns: ["id"];
9585
+ }];
9586
+ };
9587
+ pick_queue_locks: {
9588
+ Row: {
9589
+ expires_at: string;
9590
+ id: string;
9591
+ locked_at: string;
9592
+ locked_by: string | null;
9593
+ queue_item_id: string;
9594
+ screen_id: string | null;
9595
+ session_id: string | null;
9596
+ station_id: string | null;
9597
+ };
9598
+ Insert: {
9599
+ expires_at?: string;
9600
+ id?: string;
9601
+ locked_at?: string;
9602
+ locked_by?: string | null;
9603
+ queue_item_id: string;
9604
+ screen_id?: string | null;
9605
+ session_id?: string | null;
9606
+ station_id?: string | null;
9607
+ };
9608
+ Update: {
9609
+ expires_at?: string;
9610
+ id?: string;
9611
+ locked_at?: string;
9612
+ locked_by?: string | null;
9613
+ queue_item_id?: string;
9614
+ screen_id?: string | null;
9615
+ session_id?: string | null;
9616
+ station_id?: string | null;
9617
+ };
9618
+ Relationships: [{
9619
+ foreignKeyName: "pick_queue_locks_queue_item_id_fkey";
9620
+ columns: ["queue_item_id"];
9621
+ isOneToOne: true;
9622
+ referencedRelation: "pick_queue";
9623
+ referencedColumns: ["id"];
9624
+ }, {
9625
+ foreignKeyName: "pick_queue_locks_screen_id_fkey";
9626
+ columns: ["screen_id"];
9627
+ isOneToOne: false;
9628
+ referencedRelation: "pick_station_screens";
9629
+ referencedColumns: ["id"];
9630
+ }, {
9631
+ foreignKeyName: "pick_queue_locks_station_id_fkey";
9632
+ columns: ["station_id"];
9633
+ isOneToOne: false;
9634
+ referencedRelation: "pick_stations";
9635
+ referencedColumns: ["id"];
9636
+ }];
9637
+ };
9638
+ pick_screen_document_types: {
9639
+ Row: {
9640
+ created_at: string;
9641
+ document_type_id: string;
9642
+ id: string;
9643
+ print_order: number;
9644
+ printer_id: string | null;
9645
+ screen_id: string;
9646
+ };
9647
+ Insert: {
9648
+ created_at?: string;
9649
+ document_type_id: string;
9650
+ id?: string;
9651
+ print_order?: number;
9652
+ printer_id?: string | null;
9653
+ screen_id: string;
9654
+ };
9655
+ Update: {
9656
+ created_at?: string;
9657
+ document_type_id?: string;
9658
+ id?: string;
9659
+ print_order?: number;
9660
+ printer_id?: string | null;
9661
+ screen_id?: string;
9662
+ };
9663
+ Relationships: [{
9664
+ foreignKeyName: "pick_screen_document_types_document_type_id_fkey";
9665
+ columns: ["document_type_id"];
9666
+ isOneToOne: false;
9667
+ referencedRelation: "pick_document_types";
9668
+ referencedColumns: ["id"];
9669
+ }, {
9670
+ foreignKeyName: "pick_screen_document_types_printer_id_fkey";
9671
+ columns: ["printer_id"];
9672
+ isOneToOne: false;
9673
+ referencedRelation: "pick_station_printers";
9674
+ referencedColumns: ["id"];
9675
+ }, {
9676
+ foreignKeyName: "pick_screen_document_types_screen_id_fkey";
9677
+ columns: ["screen_id"];
9678
+ isOneToOne: false;
9679
+ referencedRelation: "pick_station_screens";
9680
+ referencedColumns: ["id"];
9681
+ }];
9682
+ };
9683
+ pick_station_heartbeats: {
9684
+ Row: {
9685
+ browser: string | null;
9686
+ created_at: string;
9687
+ id: string;
9688
+ ip_address: string | null;
9689
+ last_seen_at: string;
9690
+ screen_id: string | null;
9691
+ session_id: string;
9692
+ station_id: string;
9693
+ user_id: string | null;
9694
+ };
9695
+ Insert: {
9696
+ browser?: string | null;
9697
+ created_at?: string;
9698
+ id?: string;
9699
+ ip_address?: string | null;
9700
+ last_seen_at?: string;
9701
+ screen_id?: string | null;
9702
+ session_id: string;
9703
+ station_id: string;
9704
+ user_id?: string | null;
9705
+ };
9706
+ Update: {
9707
+ browser?: string | null;
9708
+ created_at?: string;
9709
+ id?: string;
9710
+ ip_address?: string | null;
9711
+ last_seen_at?: string;
9712
+ screen_id?: string | null;
9713
+ session_id?: string;
9714
+ station_id?: string;
9715
+ user_id?: string | null;
9716
+ };
9717
+ Relationships: [{
9718
+ foreignKeyName: "pick_station_heartbeats_screen_id_fkey";
9719
+ columns: ["screen_id"];
9720
+ isOneToOne: false;
9721
+ referencedRelation: "pick_station_screens";
9722
+ referencedColumns: ["id"];
9723
+ }, {
9724
+ foreignKeyName: "pick_station_heartbeats_station_id_fkey";
9725
+ columns: ["station_id"];
9726
+ isOneToOne: false;
9727
+ referencedRelation: "pick_stations";
9728
+ referencedColumns: ["id"];
9729
+ }];
9730
+ };
9731
+ pick_station_history: {
9732
+ Row: {
9733
+ action: string;
9734
+ changed_by: string | null;
9735
+ created_at: string;
9736
+ entity_id: string;
9737
+ entity_table: string;
9738
+ id: string;
9739
+ new_data: import("./types").Json | null;
9740
+ old_data: import("./types").Json | null;
9741
+ };
9742
+ Insert: {
9743
+ action: string;
9744
+ changed_by?: string | null;
9745
+ created_at?: string;
9746
+ entity_id: string;
9747
+ entity_table: string;
9748
+ id?: string;
9749
+ new_data?: import("./types").Json | null;
9750
+ old_data?: import("./types").Json | null;
9751
+ };
9752
+ Update: {
9753
+ action?: string;
9754
+ changed_by?: string | null;
9755
+ created_at?: string;
9756
+ entity_id?: string;
9757
+ entity_table?: string;
9758
+ id?: string;
9759
+ new_data?: import("./types").Json | null;
9760
+ old_data?: import("./types").Json | null;
9761
+ };
9762
+ Relationships: [];
9763
+ };
9764
+ pick_station_logs: {
9765
+ Row: {
9766
+ action: string;
9767
+ browser: string | null;
9768
+ created_at: string;
9769
+ detail: import("./types").Json;
9770
+ duration_ms: number | null;
9771
+ id: string;
9772
+ ip_address: string | null;
9773
+ printer_id: string | null;
9774
+ queue_item_id: string | null;
9775
+ screen_id: string | null;
9776
+ session_id: string | null;
9777
+ station_id: string | null;
9778
+ user_id: string | null;
9779
+ };
9780
+ Insert: {
9781
+ action: string;
9782
+ browser?: string | null;
9783
+ created_at?: string;
9784
+ detail?: import("./types").Json;
9785
+ duration_ms?: number | null;
9786
+ id?: string;
9787
+ ip_address?: string | null;
9788
+ printer_id?: string | null;
9789
+ queue_item_id?: string | null;
9790
+ screen_id?: string | null;
9791
+ session_id?: string | null;
9792
+ station_id?: string | null;
9793
+ user_id?: string | null;
9794
+ };
9795
+ Update: {
9796
+ action?: string;
9797
+ browser?: string | null;
9798
+ created_at?: string;
9799
+ detail?: import("./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
+ Relationships: [];
9811
+ };
9812
+ pick_station_permissions: {
9813
+ Row: {
9814
+ can_break_lock: boolean;
9815
+ can_cancel: boolean;
9816
+ can_print: boolean;
9817
+ can_reprint: boolean;
9818
+ country_code: string | null;
9819
+ created_at: string;
9820
+ id: string;
9821
+ station_id: string | null;
9822
+ task_id: string | null;
9823
+ updated_at: string;
9824
+ urgent_only: boolean;
9825
+ user_id: string;
9826
+ };
9827
+ Insert: {
9828
+ can_break_lock?: boolean;
9829
+ can_cancel?: boolean;
9830
+ can_print?: boolean;
9831
+ can_reprint?: boolean;
9832
+ country_code?: string | null;
9833
+ created_at?: string;
9834
+ id?: string;
9835
+ station_id?: string | null;
9836
+ task_id?: string | null;
9837
+ updated_at?: string;
9838
+ urgent_only?: boolean;
9839
+ user_id: string;
9840
+ };
9841
+ Update: {
9842
+ can_break_lock?: boolean;
9843
+ can_cancel?: boolean;
9844
+ can_print?: boolean;
9845
+ can_reprint?: boolean;
9846
+ country_code?: string | null;
9847
+ created_at?: string;
9848
+ id?: string;
9849
+ station_id?: string | null;
9850
+ task_id?: string | null;
9851
+ updated_at?: string;
9852
+ urgent_only?: boolean;
9853
+ user_id?: string;
9854
+ };
9855
+ Relationships: [{
9856
+ foreignKeyName: "pick_station_permissions_station_id_fkey";
9857
+ columns: ["station_id"];
9858
+ isOneToOne: false;
9859
+ referencedRelation: "pick_stations";
9860
+ referencedColumns: ["id"];
9861
+ }, {
9862
+ foreignKeyName: "pick_station_permissions_task_id_fkey";
9863
+ columns: ["task_id"];
9864
+ isOneToOne: false;
9865
+ referencedRelation: "pick_station_tasks";
9866
+ referencedColumns: ["id"];
9867
+ }];
9868
+ };
9869
+ pick_station_printers: {
9870
+ Row: {
9871
+ active: boolean;
9872
+ code: string | null;
9873
+ config: import("./types").Json;
9874
+ connection: string | null;
9875
+ created_at: string;
9876
+ id: string;
9877
+ last_seen_at: string | null;
9878
+ location: string | null;
9879
+ name: string;
9880
+ status: string;
9881
+ status_message: string | null;
9882
+ target: string | null;
9883
+ updated_at: string;
9884
+ };
9885
+ Insert: {
9886
+ active?: boolean;
9887
+ code?: string | null;
9888
+ config?: import("./types").Json;
9889
+ connection?: string | null;
9890
+ created_at?: string;
9891
+ id?: string;
9892
+ last_seen_at?: string | null;
9893
+ location?: string | null;
9894
+ name: string;
9895
+ status?: string;
9896
+ status_message?: string | null;
9897
+ target?: string | null;
9898
+ updated_at?: string;
9899
+ };
9900
+ Update: {
9901
+ active?: boolean;
9902
+ code?: string | null;
9903
+ config?: import("./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
+ Relationships: [];
9916
+ };
9917
+ pick_station_screens: {
9918
+ Row: {
9919
+ active: boolean;
9920
+ config: import("./types").Json;
9921
+ created_at: string;
9922
+ description: string | null;
9923
+ filters: import("./types").Json;
9924
+ id: string;
9925
+ name: string;
9926
+ printer_id: string | null;
9927
+ screen_type: string;
9928
+ sort_order: number;
9929
+ sort_rules: import("./types").Json | null;
9930
+ station_id: string;
9931
+ updated_at: string;
9932
+ };
9933
+ Insert: {
9934
+ active?: boolean;
9935
+ config?: import("./types").Json;
9936
+ created_at?: string;
9937
+ description?: string | null;
9938
+ filters?: import("./types").Json;
9939
+ id?: string;
9940
+ name: string;
9941
+ printer_id?: string | null;
9942
+ screen_type?: string;
9943
+ sort_order?: number;
9944
+ sort_rules?: import("./types").Json | null;
9945
+ station_id: string;
9946
+ updated_at?: string;
9947
+ };
9948
+ Update: {
9949
+ active?: boolean;
9950
+ config?: import("./types").Json;
9951
+ created_at?: string;
9952
+ description?: string | null;
9953
+ filters?: import("./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("./types").Json | null;
9960
+ station_id?: string;
9961
+ updated_at?: string;
9962
+ };
9963
+ Relationships: [{
9964
+ foreignKeyName: "pick_station_screens_printer_id_fkey";
9965
+ columns: ["printer_id"];
9966
+ isOneToOne: false;
9967
+ referencedRelation: "pick_station_printers";
9968
+ referencedColumns: ["id"];
9969
+ }, {
9970
+ foreignKeyName: "pick_station_screens_station_id_fkey";
9971
+ columns: ["station_id"];
9972
+ isOneToOne: false;
9973
+ referencedRelation: "pick_stations";
9974
+ referencedColumns: ["id"];
9975
+ }];
9976
+ };
9977
+ pick_station_tasks: {
9978
+ Row: {
9979
+ active: boolean;
9980
+ code: string;
9981
+ color: string | null;
9982
+ created_at: string;
9983
+ description: string | null;
9984
+ icon: string | null;
9985
+ id: string;
9986
+ name: string;
9987
+ sort_order: number;
9988
+ updated_at: string;
9989
+ workflow: import("./types").Json;
9990
+ };
9991
+ Insert: {
9992
+ active?: boolean;
9993
+ code: string;
9994
+ color?: string | null;
9995
+ created_at?: string;
9996
+ description?: string | null;
9997
+ icon?: string | null;
9998
+ id?: string;
9999
+ name: string;
10000
+ sort_order?: number;
10001
+ updated_at?: string;
10002
+ workflow?: import("./types").Json;
10003
+ };
10004
+ Update: {
10005
+ active?: boolean;
10006
+ code?: string;
10007
+ color?: string | null;
10008
+ created_at?: string;
10009
+ description?: string | null;
10010
+ icon?: string | null;
10011
+ id?: string;
10012
+ name?: string;
10013
+ sort_order?: number;
10014
+ updated_at?: string;
10015
+ workflow?: import("./types").Json;
10016
+ };
10017
+ Relationships: [];
10018
+ };
10019
+ pick_station_types: {
10020
+ Row: {
10021
+ active: boolean;
10022
+ code: string;
10023
+ color: string | null;
10024
+ created_at: string;
10025
+ description: string | null;
10026
+ icon: string | null;
10027
+ id: string;
10028
+ name: string;
10029
+ sort_order: number;
10030
+ updated_at: string;
10031
+ };
10032
+ Insert: {
10033
+ active?: boolean;
10034
+ code: string;
10035
+ color?: string | null;
10036
+ created_at?: string;
10037
+ description?: string | null;
10038
+ icon?: string | null;
10039
+ id?: string;
10040
+ name: string;
10041
+ sort_order?: number;
10042
+ updated_at?: string;
10043
+ };
10044
+ Update: {
10045
+ active?: boolean;
10046
+ code?: string;
10047
+ color?: string | null;
10048
+ created_at?: string;
10049
+ description?: string | null;
10050
+ icon?: string | null;
10051
+ id?: string;
10052
+ name?: string;
10053
+ sort_order?: number;
10054
+ updated_at?: string;
10055
+ };
10056
+ Relationships: [];
10057
+ };
10058
+ pick_station_users: {
10059
+ Row: {
10060
+ active: boolean;
10061
+ created_at: string;
10062
+ id: string;
10063
+ station_id: string;
10064
+ user_id: string;
10065
+ };
10066
+ Insert: {
10067
+ active?: boolean;
10068
+ created_at?: string;
10069
+ id?: string;
10070
+ station_id: string;
10071
+ user_id: string;
10072
+ };
10073
+ Update: {
10074
+ active?: boolean;
10075
+ created_at?: string;
10076
+ id?: string;
10077
+ station_id?: string;
10078
+ user_id?: string;
10079
+ };
10080
+ Relationships: [{
10081
+ foreignKeyName: "pick_station_users_station_id_fkey";
10082
+ columns: ["station_id"];
10083
+ isOneToOne: false;
10084
+ referencedRelation: "pick_stations";
10085
+ referencedColumns: ["id"];
10086
+ }];
10087
+ };
10088
+ pick_stations: {
10089
+ Row: {
10090
+ active: boolean;
10091
+ allow_multi_screen: boolean;
10092
+ color: string | null;
10093
+ created_at: string;
10094
+ default_printer_id: string | null;
10095
+ department: string | null;
10096
+ description: string | null;
10097
+ icon: string | null;
10098
+ id: string;
10099
+ location: string | null;
10100
+ lock_timeout_seconds: number;
10101
+ name: string;
10102
+ require_country_selection: boolean;
10103
+ sort_order: number;
10104
+ sort_rules: import("./types").Json;
10105
+ task_id: string | null;
10106
+ type_id: string | null;
10107
+ updated_at: string;
10108
+ };
10109
+ Insert: {
10110
+ active?: boolean;
10111
+ allow_multi_screen?: boolean;
10112
+ color?: string | null;
10113
+ created_at?: string;
10114
+ default_printer_id?: string | null;
10115
+ department?: string | null;
10116
+ description?: string | null;
10117
+ icon?: string | null;
10118
+ id?: string;
10119
+ location?: string | null;
10120
+ lock_timeout_seconds?: number;
10121
+ name: string;
10122
+ require_country_selection?: boolean;
10123
+ sort_order?: number;
10124
+ sort_rules?: import("./types").Json;
10125
+ task_id?: string | null;
10126
+ type_id?: string | null;
10127
+ updated_at?: string;
10128
+ };
10129
+ Update: {
10130
+ active?: boolean;
10131
+ allow_multi_screen?: boolean;
10132
+ color?: string | null;
10133
+ created_at?: string;
10134
+ default_printer_id?: string | null;
10135
+ department?: string | null;
10136
+ description?: string | null;
10137
+ icon?: string | null;
10138
+ id?: string;
10139
+ location?: string | null;
10140
+ lock_timeout_seconds?: number;
10141
+ name?: string;
10142
+ require_country_selection?: boolean;
10143
+ sort_order?: number;
10144
+ sort_rules?: import("./types").Json;
10145
+ task_id?: string | null;
10146
+ type_id?: string | null;
10147
+ updated_at?: string;
10148
+ };
10149
+ Relationships: [{
10150
+ foreignKeyName: "pick_stations_default_printer_id_fkey";
10151
+ columns: ["default_printer_id"];
10152
+ isOneToOne: false;
10153
+ referencedRelation: "pick_station_printers";
10154
+ referencedColumns: ["id"];
10155
+ }, {
10156
+ foreignKeyName: "pick_stations_task_id_fkey";
10157
+ columns: ["task_id"];
10158
+ isOneToOne: false;
10159
+ referencedRelation: "pick_station_tasks";
10160
+ referencedColumns: ["id"];
10161
+ }, {
10162
+ foreignKeyName: "pick_stations_type_id_fkey";
10163
+ columns: ["type_id"];
10164
+ isOneToOne: false;
10165
+ referencedRelation: "pick_station_types";
10166
+ referencedColumns: ["id"];
10167
+ }];
10168
+ };
10169
+ pick_task_document_types: {
10170
+ Row: {
10171
+ created_at: string;
10172
+ document_type_id: string;
10173
+ id: string;
10174
+ task_id: string;
10175
+ };
10176
+ Insert: {
10177
+ created_at?: string;
10178
+ document_type_id: string;
10179
+ id?: string;
10180
+ task_id: string;
10181
+ };
10182
+ Update: {
10183
+ created_at?: string;
10184
+ document_type_id?: string;
10185
+ id?: string;
10186
+ task_id?: string;
10187
+ };
10188
+ Relationships: [{
10189
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
10190
+ columns: ["document_type_id"];
10191
+ isOneToOne: false;
10192
+ referencedRelation: "pick_document_types";
10193
+ referencedColumns: ["id"];
10194
+ }, {
10195
+ foreignKeyName: "pick_task_document_types_task_id_fkey";
10196
+ columns: ["task_id"];
10197
+ isOneToOne: false;
10198
+ referencedRelation: "pick_station_tasks";
10199
+ referencedColumns: ["id"];
10200
+ }];
10201
+ };
10202
+ pickstation_print_log: {
10203
+ Row: {
10204
+ customer_name: string | null;
10205
+ documents: string[];
10206
+ id: string;
10207
+ ip_address: string | null;
10208
+ order_id: string;
10209
+ order_number: string | null;
10210
+ printed_at: string;
10211
+ };
10212
+ Insert: {
10213
+ customer_name?: string | null;
10214
+ documents?: string[];
10215
+ id?: string;
10216
+ ip_address?: string | null;
10217
+ order_id: string;
10218
+ order_number?: string | null;
10219
+ printed_at?: string;
10220
+ };
10221
+ Update: {
10222
+ customer_name?: string | null;
10223
+ documents?: string[];
10224
+ id?: string;
10225
+ ip_address?: string | null;
10226
+ order_id?: string;
10227
+ order_number?: string | null;
10228
+ printed_at?: string;
10229
+ };
10230
+ Relationships: [];
10231
+ };
10232
+ pipeline_settings: {
10233
+ Row: {
10234
+ created_at: string;
10235
+ id: string;
10236
+ key: string;
10237
+ updated_at: string;
10238
+ value: string | null;
10239
+ };
10240
+ Insert: {
10241
+ created_at?: string;
10242
+ id?: string;
10243
+ key: string;
10244
+ updated_at?: string;
10245
+ value?: string | null;
10246
+ };
10247
+ Update: {
10248
+ created_at?: string;
10249
+ id?: string;
10250
+ key?: string;
10251
+ updated_at?: string;
10252
+ value?: string | null;
10253
+ };
10254
+ Relationships: [];
10255
+ };
10256
+ pipeline_stages: {
10257
+ Row: {
10258
+ automation_type: string;
10259
+ color: string;
10260
+ created_at: string;
10261
+ id: string;
10262
+ is_active: boolean;
10263
+ name: string;
10264
+ sort_order: number;
10265
+ updated_at: string;
10266
+ };
10267
+ Insert: {
10268
+ automation_type?: string;
10269
+ color?: string;
10270
+ created_at?: string;
10271
+ id?: string;
10272
+ is_active?: boolean;
10273
+ name: string;
10274
+ sort_order?: number;
10275
+ updated_at?: string;
10276
+ };
10277
+ Update: {
10278
+ automation_type?: string;
10279
+ color?: string;
10280
+ created_at?: string;
8628
10281
  id?: string;
8629
10282
  is_active?: boolean;
8630
10283
  name?: string;
@@ -8705,6 +10358,321 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8705
10358
  referencedColumns: ["id"];
8706
10359
  }];
8707
10360
  };
10361
+ print_job_logs: {
10362
+ Row: {
10363
+ created_at: string;
10364
+ detail: string;
10365
+ gebeurtenis: string;
10366
+ id: string;
10367
+ job_id: string;
10368
+ };
10369
+ Insert: {
10370
+ created_at?: string;
10371
+ detail?: string;
10372
+ gebeurtenis: string;
10373
+ id?: string;
10374
+ job_id: string;
10375
+ };
10376
+ Update: {
10377
+ created_at?: string;
10378
+ detail?: string;
10379
+ gebeurtenis?: string;
10380
+ id?: string;
10381
+ job_id?: string;
10382
+ };
10383
+ Relationships: [{
10384
+ foreignKeyName: "print_job_logs_job_id_fkey";
10385
+ columns: ["job_id"];
10386
+ isOneToOne: false;
10387
+ referencedRelation: "print_jobs";
10388
+ referencedColumns: ["id"];
10389
+ }];
10390
+ };
10391
+ print_jobs: {
10392
+ Row: {
10393
+ bron_job_id: string | null;
10394
+ created_at: string;
10395
+ documentnaam: string;
10396
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
10397
+ foutmelding: string | null;
10398
+ gebruiker_id: string | null;
10399
+ gebruiker_naam: string;
10400
+ gestart_op: string | null;
10401
+ id: string;
10402
+ is_herprint: boolean;
10403
+ kopieen: number;
10404
+ layout_id: string | null;
10405
+ paginas: number;
10406
+ payload: import("./types").Json;
10407
+ printer_id: string | null;
10408
+ status: Database["public"]["Enums"]["print_job_status"];
10409
+ updated_at: string;
10410
+ voltooid_op: string | null;
10411
+ };
10412
+ Insert: {
10413
+ bron_job_id?: string | null;
10414
+ created_at?: string;
10415
+ documentnaam?: string;
10416
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10417
+ foutmelding?: string | null;
10418
+ gebruiker_id?: string | null;
10419
+ gebruiker_naam?: string;
10420
+ gestart_op?: string | null;
10421
+ id?: string;
10422
+ is_herprint?: boolean;
10423
+ kopieen?: number;
10424
+ layout_id?: string | null;
10425
+ paginas?: number;
10426
+ payload?: import("./types").Json;
10427
+ printer_id?: string | null;
10428
+ status?: Database["public"]["Enums"]["print_job_status"];
10429
+ updated_at?: string;
10430
+ voltooid_op?: string | null;
10431
+ };
10432
+ Update: {
10433
+ bron_job_id?: string | null;
10434
+ created_at?: string;
10435
+ documentnaam?: string;
10436
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
10437
+ foutmelding?: string | null;
10438
+ gebruiker_id?: string | null;
10439
+ gebruiker_naam?: string;
10440
+ gestart_op?: string | null;
10441
+ id?: string;
10442
+ is_herprint?: boolean;
10443
+ kopieen?: number;
10444
+ layout_id?: string | null;
10445
+ paginas?: number;
10446
+ payload?: import("./types").Json;
10447
+ printer_id?: string | null;
10448
+ status?: Database["public"]["Enums"]["print_job_status"];
10449
+ updated_at?: string;
10450
+ voltooid_op?: string | null;
10451
+ };
10452
+ Relationships: [{
10453
+ foreignKeyName: "print_jobs_layout_id_fkey";
10454
+ columns: ["layout_id"];
10455
+ isOneToOne: false;
10456
+ referencedRelation: "document_layouts";
10457
+ referencedColumns: ["id"];
10458
+ }, {
10459
+ foreignKeyName: "print_jobs_printer_id_fkey";
10460
+ columns: ["printer_id"];
10461
+ isOneToOne: false;
10462
+ referencedRelation: "printers";
10463
+ referencedColumns: ["id"];
10464
+ }];
10465
+ };
10466
+ print_rules: {
10467
+ Row: {
10468
+ actief: boolean;
10469
+ alleen_eerste_keer: boolean;
10470
+ conditie: import("./types").Json;
10471
+ created_at: string;
10472
+ id: string;
10473
+ kopieen: number;
10474
+ layout_id: string;
10475
+ naam: string;
10476
+ printer_id: string | null;
10477
+ updated_at: string;
10478
+ volgorde: number;
10479
+ };
10480
+ Insert: {
10481
+ actief?: boolean;
10482
+ alleen_eerste_keer?: boolean;
10483
+ conditie?: import("./types").Json;
10484
+ created_at?: string;
10485
+ id?: string;
10486
+ kopieen?: number;
10487
+ layout_id: string;
10488
+ naam?: string;
10489
+ printer_id?: string | null;
10490
+ updated_at?: string;
10491
+ volgorde?: number;
10492
+ };
10493
+ Update: {
10494
+ actief?: boolean;
10495
+ alleen_eerste_keer?: boolean;
10496
+ conditie?: import("./types").Json;
10497
+ created_at?: string;
10498
+ id?: string;
10499
+ kopieen?: number;
10500
+ layout_id?: string;
10501
+ naam?: string;
10502
+ printer_id?: string | null;
10503
+ updated_at?: string;
10504
+ volgorde?: number;
10505
+ };
10506
+ Relationships: [{
10507
+ foreignKeyName: "print_rules_layout_id_fkey";
10508
+ columns: ["layout_id"];
10509
+ isOneToOne: false;
10510
+ referencedRelation: "document_layouts";
10511
+ referencedColumns: ["id"];
10512
+ }, {
10513
+ foreignKeyName: "print_rules_printer_id_fkey";
10514
+ columns: ["printer_id"];
10515
+ isOneToOne: false;
10516
+ referencedRelation: "printers";
10517
+ referencedColumns: ["id"];
10518
+ }];
10519
+ };
10520
+ printer_mappings: {
10521
+ Row: {
10522
+ created_at: string;
10523
+ id: string;
10524
+ layout_id: string;
10525
+ printer_id: string;
10526
+ prioriteit: number;
10527
+ updated_at: string;
10528
+ };
10529
+ Insert: {
10530
+ created_at?: string;
10531
+ id?: string;
10532
+ layout_id: string;
10533
+ printer_id: string;
10534
+ prioriteit?: number;
10535
+ updated_at?: string;
10536
+ };
10537
+ Update: {
10538
+ created_at?: string;
10539
+ id?: string;
10540
+ layout_id?: string;
10541
+ printer_id?: string;
10542
+ prioriteit?: number;
10543
+ updated_at?: string;
10544
+ };
10545
+ Relationships: [{
10546
+ foreignKeyName: "printer_mappings_layout_id_fkey";
10547
+ columns: ["layout_id"];
10548
+ isOneToOne: false;
10549
+ referencedRelation: "document_layouts";
10550
+ referencedColumns: ["id"];
10551
+ }, {
10552
+ foreignKeyName: "printer_mappings_printer_id_fkey";
10553
+ columns: ["printer_id"];
10554
+ isOneToOne: false;
10555
+ referencedRelation: "printers";
10556
+ referencedColumns: ["id"];
10557
+ }];
10558
+ };
10559
+ printer_profiles: {
10560
+ Row: {
10561
+ auto_schalen: boolean;
10562
+ created_at: string;
10563
+ duplex: boolean;
10564
+ id: string;
10565
+ is_standaard: boolean;
10566
+ kleur: boolean;
10567
+ kopieen: number;
10568
+ label_gap: number;
10569
+ naam: string;
10570
+ orientatie: Database["public"]["Enums"]["doc_orientation"];
10571
+ papierlade: string;
10572
+ printer_id: string;
10573
+ resolutie: number;
10574
+ snijden: boolean;
10575
+ updated_at: string;
10576
+ };
10577
+ Insert: {
10578
+ auto_schalen?: boolean;
10579
+ created_at?: string;
10580
+ duplex?: boolean;
10581
+ id?: string;
10582
+ is_standaard?: boolean;
10583
+ kleur?: boolean;
10584
+ kopieen?: number;
10585
+ label_gap?: number;
10586
+ naam?: string;
10587
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
10588
+ papierlade?: string;
10589
+ printer_id: string;
10590
+ resolutie?: number;
10591
+ snijden?: boolean;
10592
+ updated_at?: string;
10593
+ };
10594
+ Update: {
10595
+ auto_schalen?: boolean;
10596
+ created_at?: string;
10597
+ duplex?: boolean;
10598
+ id?: string;
10599
+ is_standaard?: boolean;
10600
+ kleur?: boolean;
10601
+ kopieen?: number;
10602
+ label_gap?: number;
10603
+ naam?: string;
10604
+ orientatie?: Database["public"]["Enums"]["doc_orientation"];
10605
+ papierlade?: string;
10606
+ printer_id?: string;
10607
+ resolutie?: number;
10608
+ snijden?: boolean;
10609
+ updated_at?: string;
10610
+ };
10611
+ Relationships: [{
10612
+ foreignKeyName: "printer_profiles_printer_id_fkey";
10613
+ columns: ["printer_id"];
10614
+ isOneToOne: false;
10615
+ referencedRelation: "printers";
10616
+ referencedColumns: ["id"];
10617
+ }];
10618
+ };
10619
+ printers: {
10620
+ Row: {
10621
+ actief: boolean;
10622
+ created_at: string;
10623
+ driver: string;
10624
+ id: string;
10625
+ ip_adres: string | null;
10626
+ laatst_gezien: string | null;
10627
+ locatie: string;
10628
+ merk: string;
10629
+ naam: string;
10630
+ omschrijving: string;
10631
+ online: boolean;
10632
+ papierformaat: string;
10633
+ poort: number | null;
10634
+ soort: Database["public"]["Enums"]["printer_kind"];
10635
+ updated_at: string;
10636
+ verbinding: Database["public"]["Enums"]["printer_connection"];
10637
+ };
10638
+ Insert: {
10639
+ actief?: boolean;
10640
+ created_at?: string;
10641
+ driver?: string;
10642
+ id?: string;
10643
+ ip_adres?: string | null;
10644
+ laatst_gezien?: string | null;
10645
+ locatie?: string;
10646
+ merk?: string;
10647
+ naam: string;
10648
+ omschrijving?: string;
10649
+ online?: boolean;
10650
+ papierformaat?: string;
10651
+ poort?: number | null;
10652
+ soort?: Database["public"]["Enums"]["printer_kind"];
10653
+ updated_at?: string;
10654
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
10655
+ };
10656
+ Update: {
10657
+ actief?: boolean;
10658
+ created_at?: string;
10659
+ driver?: string;
10660
+ id?: string;
10661
+ ip_adres?: string | null;
10662
+ laatst_gezien?: string | null;
10663
+ locatie?: string;
10664
+ merk?: string;
10665
+ naam?: string;
10666
+ omschrijving?: string;
10667
+ online?: boolean;
10668
+ papierformaat?: string;
10669
+ poort?: number | null;
10670
+ soort?: Database["public"]["Enums"]["printer_kind"];
10671
+ updated_at?: string;
10672
+ verbinding?: Database["public"]["Enums"]["printer_connection"];
10673
+ };
10674
+ Relationships: [];
10675
+ };
8708
10676
  product_bom_items: {
8709
10677
  Row: {
8710
10678
  component_product_id: string | null;
@@ -10570,9 +12538,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10570
12538
  };
10571
12539
  twinfield_connections: {
10572
12540
  Row: {
10573
- access_token: string | null;
10574
- client_id: string;
10575
- client_secret: string | null;
12541
+ account_key: string | null;
10576
12542
  cluster_uri: string | null;
10577
12543
  company_code: string | null;
10578
12544
  company_name: string | null;
@@ -10583,94 +12549,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10583
12549
  is_active: boolean;
10584
12550
  label: string | null;
10585
12551
  office_code: string | null;
10586
- redirect_uri: string;
10587
- refresh_token: string | null;
10588
- token_expires_at: string | null;
10589
- updated_at: string;
10590
- user_id: string;
10591
- };
10592
- Insert: {
10593
- access_token?: string | null;
10594
- client_id: string;
10595
- client_secret?: string | null;
10596
- cluster_uri?: string | null;
10597
- company_code?: string | null;
10598
- company_name?: string | null;
10599
- connected_at?: string | null;
10600
- created_at?: string;
10601
- environment: string;
10602
- id?: string;
10603
- is_active?: boolean;
10604
- label?: string | null;
10605
- office_code?: string | null;
10606
- redirect_uri: string;
10607
- refresh_token?: string | null;
10608
- token_expires_at?: string | null;
10609
- updated_at?: string;
10610
- user_id: string;
10611
- };
10612
- Update: {
10613
- access_token?: string | null;
10614
- client_id?: string;
10615
- client_secret?: string | null;
10616
- cluster_uri?: string | null;
10617
- company_code?: string | null;
10618
- company_name?: string | null;
10619
- connected_at?: string | null;
10620
- created_at?: string;
10621
- environment?: string;
10622
- id?: string;
10623
- is_active?: boolean;
10624
- label?: string | null;
10625
- office_code?: string | null;
10626
- redirect_uri?: string;
10627
- refresh_token?: string | null;
10628
- token_expires_at?: string | null;
10629
- updated_at?: string;
10630
- user_id?: string;
10631
- };
10632
- Relationships: [];
10633
- };
10634
- twinfield_credentials: {
10635
- Row: {
10636
- administration_code: string | null;
10637
- client_id: string | null;
10638
- client_secret: string | null;
10639
- cluster: string | null;
10640
- connected_at: string | null;
10641
- created_at: string;
10642
- environment: string | null;
10643
- id: string;
10644
12552
  redirect_uri: string | null;
10645
- refresh_token: string | null;
10646
12553
  updated_at: string;
10647
12554
  user_id: string;
10648
12555
  };
10649
12556
  Insert: {
10650
- administration_code?: string | null;
10651
- client_id?: string | null;
10652
- client_secret?: string | null;
10653
- cluster?: string | null;
12557
+ account_key?: string | null;
12558
+ cluster_uri?: string | null;
12559
+ company_code?: string | null;
12560
+ company_name?: string | null;
10654
12561
  connected_at?: string | null;
10655
12562
  created_at?: string;
10656
- environment?: string | null;
12563
+ environment: string;
10657
12564
  id?: string;
12565
+ is_active?: boolean;
12566
+ label?: string | null;
12567
+ office_code?: string | null;
10658
12568
  redirect_uri?: string | null;
10659
- refresh_token?: string | null;
10660
12569
  updated_at?: string;
10661
12570
  user_id: string;
10662
12571
  };
10663
12572
  Update: {
10664
- administration_code?: string | null;
10665
- client_id?: string | null;
10666
- client_secret?: string | null;
10667
- cluster?: string | null;
12573
+ account_key?: string | null;
12574
+ cluster_uri?: string | null;
12575
+ company_code?: string | null;
12576
+ company_name?: string | null;
10668
12577
  connected_at?: string | null;
10669
12578
  created_at?: string;
10670
- environment?: string | null;
12579
+ environment?: string;
10671
12580
  id?: string;
12581
+ is_active?: boolean;
12582
+ label?: string | null;
12583
+ office_code?: string | null;
10672
12584
  redirect_uri?: string | null;
10673
- refresh_token?: string | null;
10674
12585
  updated_at?: string;
10675
12586
  user_id?: string;
10676
12587
  };
@@ -11117,12 +13028,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11117
13028
  currency: string | null;
11118
13029
  customer_code: string | null;
11119
13030
  data: import("./types").Json;
13031
+ deleted_at: string | null;
11120
13032
  due_date: string | null;
11121
13033
  fetched_at: string;
11122
13034
  invoice_date: string | null;
11123
13035
  invoice_number: string;
13036
+ lines_fetched_at: string | null;
11124
13037
  modified_at: string | null;
11125
13038
  outstanding_amount: number | null;
13039
+ paid_at: string | null;
11126
13040
  status: string | null;
11127
13041
  status_label: string | null;
11128
13042
  total_excl: number | null;
@@ -11134,12 +13048,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11134
13048
  currency?: string | null;
11135
13049
  customer_code?: string | null;
11136
13050
  data?: import("./types").Json;
13051
+ deleted_at?: string | null;
11137
13052
  due_date?: string | null;
11138
13053
  fetched_at?: string;
11139
13054
  invoice_date?: string | null;
11140
13055
  invoice_number: string;
13056
+ lines_fetched_at?: string | null;
11141
13057
  modified_at?: string | null;
11142
13058
  outstanding_amount?: number | null;
13059
+ paid_at?: string | null;
11143
13060
  status?: string | null;
11144
13061
  status_label?: string | null;
11145
13062
  total_excl?: number | null;
@@ -11151,12 +13068,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11151
13068
  currency?: string | null;
11152
13069
  customer_code?: string | null;
11153
13070
  data?: import("./types").Json;
13071
+ deleted_at?: string | null;
11154
13072
  due_date?: string | null;
11155
13073
  fetched_at?: string;
11156
13074
  invoice_date?: string | null;
11157
13075
  invoice_number?: string;
13076
+ lines_fetched_at?: string | null;
11158
13077
  modified_at?: string | null;
11159
13078
  outstanding_amount?: number | null;
13079
+ paid_at?: string | null;
11160
13080
  status?: string | null;
11161
13081
  status_label?: string | null;
11162
13082
  total_excl?: number | null;
@@ -11171,30 +13091,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11171
13091
  referencedColumns: ["id"];
11172
13092
  }];
11173
13093
  };
11174
- twinfield_oauth_state: {
11175
- Row: {
11176
- created_at: string;
11177
- environment: string;
11178
- nonce: string | null;
11179
- state: string;
11180
- user_id: string;
11181
- };
11182
- Insert: {
11183
- created_at?: string;
11184
- environment: string;
11185
- nonce?: string | null;
11186
- state: string;
11187
- user_id: string;
11188
- };
11189
- Update: {
11190
- created_at?: string;
11191
- environment?: string;
11192
- nonce?: string | null;
11193
- state?: string;
11194
- user_id?: string;
11195
- };
11196
- Relationships: [];
11197
- };
11198
13094
  twinfield_push_queue: {
11199
13095
  Row: {
11200
13096
  action: string;
@@ -11360,39 +13256,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11360
13256
  referencedColumns: ["id"];
11361
13257
  }];
11362
13258
  };
11363
- twinfield_token_refresh_log: {
11364
- Row: {
11365
- attempted_at: string;
11366
- connection_id: string;
11367
- error: string | null;
11368
- expires_at: string | null;
11369
- id: string;
11370
- ok: boolean;
11371
- };
11372
- Insert: {
11373
- attempted_at?: string;
11374
- connection_id: string;
11375
- error?: string | null;
11376
- expires_at?: string | null;
11377
- id?: string;
11378
- ok: boolean;
11379
- };
11380
- Update: {
11381
- attempted_at?: string;
11382
- connection_id?: string;
11383
- error?: string | null;
11384
- expires_at?: string | null;
11385
- id?: string;
11386
- ok?: boolean;
11387
- };
11388
- Relationships: [{
11389
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11390
- columns: ["connection_id"];
11391
- isOneToOne: false;
11392
- referencedRelation: "twinfield_connections";
11393
- referencedColumns: ["id"];
11394
- }];
11395
- };
11396
13259
  user_roles: {
11397
13260
  Row: {
11398
13261
  created_at: string;
@@ -11420,6 +13283,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11420
13283
  referencedColumns: ["id"];
11421
13284
  }];
11422
13285
  };
13286
+ voorraad_custom_fields: {
13287
+ Row: {
13288
+ created_at: string;
13289
+ field_key: string;
13290
+ field_label: string;
13291
+ field_type: string;
13292
+ id: string;
13293
+ options: string[];
13294
+ show_in_columns: boolean;
13295
+ show_in_detail: boolean;
13296
+ show_in_template: boolean;
13297
+ sort_order: number;
13298
+ updated_at: string;
13299
+ };
13300
+ Insert: {
13301
+ created_at?: string;
13302
+ field_key: string;
13303
+ field_label: string;
13304
+ field_type?: string;
13305
+ id?: string;
13306
+ options?: string[];
13307
+ show_in_columns?: boolean;
13308
+ show_in_detail?: boolean;
13309
+ show_in_template?: boolean;
13310
+ sort_order?: number;
13311
+ updated_at?: string;
13312
+ };
13313
+ Update: {
13314
+ created_at?: string;
13315
+ field_key?: string;
13316
+ field_label?: string;
13317
+ field_type?: string;
13318
+ id?: string;
13319
+ options?: string[];
13320
+ show_in_columns?: boolean;
13321
+ show_in_detail?: boolean;
13322
+ show_in_template?: boolean;
13323
+ sort_order?: number;
13324
+ updated_at?: string;
13325
+ };
13326
+ Relationships: [];
13327
+ };
11423
13328
  voorraad_media_upload_failures: {
11424
13329
  Row: {
11425
13330
  action: string;
@@ -12077,6 +13982,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12077
13982
  status: string | null;
12078
13983
  token_expires_at: string | null;
12079
13984
  updated_at: string | null;
13985
+ webhook_last_attempt_at: string | null;
13986
+ webhook_last_error: string | null;
13987
+ webhook_status: string | null;
12080
13988
  };
12081
13989
  Insert: {
12082
13990
  account_email?: string | null;
@@ -12111,6 +14019,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12111
14019
  status?: string | null;
12112
14020
  token_expires_at?: string | null;
12113
14021
  updated_at?: string | null;
14022
+ webhook_last_attempt_at?: string | null;
14023
+ webhook_last_error?: string | null;
14024
+ webhook_status?: string | null;
12114
14025
  };
12115
14026
  Update: {
12116
14027
  account_email?: string | null;
@@ -12145,6 +14056,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12145
14056
  status?: string | null;
12146
14057
  token_expires_at?: string | null;
12147
14058
  updated_at?: string | null;
14059
+ webhook_last_attempt_at?: string | null;
14060
+ webhook_last_error?: string | null;
14061
+ webhook_status?: string | null;
12148
14062
  };
12149
14063
  Relationships: [];
12150
14064
  };
@@ -12425,6 +14339,81 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12425
14339
  referencedColumns: ["id"];
12426
14340
  }];
12427
14341
  };
14342
+ v_external_customers_local: {
14343
+ Row: {
14344
+ city: string | null;
14345
+ commercial_name: string | null;
14346
+ company_name: string | null;
14347
+ connection_id: string | null;
14348
+ contact_person: string | null;
14349
+ country: string | null;
14350
+ email: string | null;
14351
+ external_id: string | null;
14352
+ fetched_at: string | null;
14353
+ gln: string | null;
14354
+ house_number: string | null;
14355
+ is_active: boolean | null;
14356
+ is_deleted: boolean | null;
14357
+ logo_url: string | null;
14358
+ phone: string | null;
14359
+ postal_code: string | null;
14360
+ provider: string | null;
14361
+ raw: import("./types").Json | null;
14362
+ status: string | null;
14363
+ street: string | null;
14364
+ vat_number: string | null;
14365
+ website: string | null;
14366
+ };
14367
+ Insert: {
14368
+ city?: string | null;
14369
+ commercial_name?: string | null;
14370
+ company_name?: string | null;
14371
+ connection_id?: never;
14372
+ contact_person?: string | null;
14373
+ country?: string | null;
14374
+ email?: string | null;
14375
+ external_id?: never;
14376
+ fetched_at?: never;
14377
+ gln?: string | null;
14378
+ house_number?: string | null;
14379
+ is_active?: never;
14380
+ is_deleted?: never;
14381
+ logo_url?: string | null;
14382
+ phone?: string | null;
14383
+ postal_code?: string | null;
14384
+ provider?: never;
14385
+ raw?: never;
14386
+ status?: string | null;
14387
+ street?: string | null;
14388
+ vat_number?: string | null;
14389
+ website?: string | null;
14390
+ };
14391
+ Update: {
14392
+ city?: string | null;
14393
+ commercial_name?: string | null;
14394
+ company_name?: string | null;
14395
+ connection_id?: never;
14396
+ contact_person?: string | null;
14397
+ country?: string | null;
14398
+ email?: string | null;
14399
+ external_id?: never;
14400
+ fetched_at?: never;
14401
+ gln?: string | null;
14402
+ house_number?: string | null;
14403
+ is_active?: never;
14404
+ is_deleted?: never;
14405
+ logo_url?: string | null;
14406
+ phone?: string | null;
14407
+ postal_code?: string | null;
14408
+ provider?: never;
14409
+ raw?: never;
14410
+ status?: string | null;
14411
+ street?: string | null;
14412
+ vat_number?: string | null;
14413
+ website?: string | null;
14414
+ };
14415
+ Relationships: [];
14416
+ };
12428
14417
  v_external_customers_twinfield: {
12429
14418
  Row: {
12430
14419
  city: string | null;
@@ -13353,6 +15342,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13353
15342
  };
13354
15343
  Returns: string;
13355
15344
  };
15345
+ pick_claim_document: {
15346
+ Args: {
15347
+ _queue_item_id: string;
15348
+ _screen_id: string;
15349
+ _session_id: string;
15350
+ _station_id: string;
15351
+ _timeout_seconds?: number;
15352
+ };
15353
+ Returns: {
15354
+ announced_at: string;
15355
+ assigned_user_id: string | null;
15356
+ barcode: string | null;
15357
+ cancelled_at: string | null;
15358
+ cart_count: number;
15359
+ completed_at: string | null;
15360
+ country_code: string | null;
15361
+ created_at: string;
15362
+ customer_name: string | null;
15363
+ delivery_address: string | null;
15364
+ document_number: string | null;
15365
+ document_type_id: string | null;
15366
+ due_at: string | null;
15367
+ id: string;
15368
+ is_urgent: boolean;
15369
+ line_count: number;
15370
+ order_number: string | null;
15371
+ order_type: string | null;
15372
+ payload: import("./types").Json;
15373
+ print_count: number;
15374
+ printed_at: string | null;
15375
+ printed_by: string | null;
15376
+ printer_id: string | null;
15377
+ priority: number;
15378
+ reference: string | null;
15379
+ route: string | null;
15380
+ screen_id: string | null;
15381
+ station_id: string | null;
15382
+ status_id: string | null;
15383
+ updated_at: string;
15384
+ warnings: import("./types").Json;
15385
+ };
15386
+ SetofOptions: {
15387
+ from: "*";
15388
+ to: "pick_queue";
15389
+ isOneToOne: true;
15390
+ isSetofReturn: false;
15391
+ };
15392
+ };
15393
+ pick_claim_next_document: {
15394
+ Args: {
15395
+ _country_code: string;
15396
+ _screen_id: string;
15397
+ _session_id: string;
15398
+ _station_id: string;
15399
+ _timeout_seconds?: number;
15400
+ };
15401
+ Returns: {
15402
+ announced_at: string;
15403
+ assigned_user_id: string | null;
15404
+ barcode: string | null;
15405
+ cancelled_at: string | null;
15406
+ cart_count: number;
15407
+ completed_at: string | null;
15408
+ country_code: string | null;
15409
+ created_at: string;
15410
+ customer_name: string | null;
15411
+ delivery_address: string | null;
15412
+ document_number: string | null;
15413
+ document_type_id: string | null;
15414
+ due_at: string | null;
15415
+ id: string;
15416
+ is_urgent: boolean;
15417
+ line_count: number;
15418
+ order_number: string | null;
15419
+ order_type: string | null;
15420
+ payload: import("./types").Json;
15421
+ print_count: number;
15422
+ printed_at: string | null;
15423
+ printed_by: string | null;
15424
+ printer_id: string | null;
15425
+ priority: number;
15426
+ reference: string | null;
15427
+ route: string | null;
15428
+ screen_id: string | null;
15429
+ station_id: string | null;
15430
+ status_id: string | null;
15431
+ updated_at: string;
15432
+ warnings: import("./types").Json;
15433
+ };
15434
+ SetofOptions: {
15435
+ from: "*";
15436
+ to: "pick_queue";
15437
+ isOneToOne: true;
15438
+ isSetofReturn: false;
15439
+ };
15440
+ };
15441
+ pick_complete_print: {
15442
+ Args: {
15443
+ _printer_id: string;
15444
+ _queue_item_id: string;
15445
+ _session_id: string;
15446
+ };
15447
+ Returns: {
15448
+ announced_at: string;
15449
+ assigned_user_id: string | null;
15450
+ barcode: string | null;
15451
+ cancelled_at: string | null;
15452
+ cart_count: number;
15453
+ completed_at: string | null;
15454
+ country_code: string | null;
15455
+ created_at: string;
15456
+ customer_name: string | null;
15457
+ delivery_address: string | null;
15458
+ document_number: string | null;
15459
+ document_type_id: string | null;
15460
+ due_at: string | null;
15461
+ id: string;
15462
+ is_urgent: boolean;
15463
+ line_count: number;
15464
+ order_number: string | null;
15465
+ order_type: string | null;
15466
+ payload: import("./types").Json;
15467
+ print_count: number;
15468
+ printed_at: string | null;
15469
+ printed_by: string | null;
15470
+ printer_id: string | null;
15471
+ priority: number;
15472
+ reference: string | null;
15473
+ route: string | null;
15474
+ screen_id: string | null;
15475
+ station_id: string | null;
15476
+ status_id: string | null;
15477
+ updated_at: string;
15478
+ warnings: import("./types").Json;
15479
+ };
15480
+ SetofOptions: {
15481
+ from: "*";
15482
+ to: "pick_queue";
15483
+ isOneToOne: true;
15484
+ isSetofReturn: false;
15485
+ };
15486
+ };
15487
+ pick_release_expired_locks: {
15488
+ Args: never;
15489
+ Returns: number;
15490
+ };
15491
+ pick_release_lock: {
15492
+ Args: {
15493
+ _queue_item_id: string;
15494
+ };
15495
+ Returns: undefined;
15496
+ };
15497
+ pick_station_dashboard: {
15498
+ Args: never;
15499
+ Returns: {
15500
+ active: number;
15501
+ active_sessions: number;
15502
+ avg_wait_seconds: number;
15503
+ done_today: number;
15504
+ station_id: string;
15505
+ station_name: string;
15506
+ waiting: number;
15507
+ }[];
15508
+ };
13356
15509
  pickstation_get_orders_raw: {
13357
15510
  Args: never;
13358
15511
  Returns: import("./types").Json;
@@ -13454,6 +15607,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13454
15607
  };
13455
15608
  Returns: number;
13456
15609
  };
15610
+ release_debtor_lock: {
15611
+ Args: {
15612
+ _group_key: string;
15613
+ _user_id: string;
15614
+ };
15615
+ Returns: boolean;
15616
+ };
13457
15617
  reorder_customer_price_groups: {
13458
15618
  Args: {
13459
15619
  _ids: string[];
@@ -13833,15 +15993,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13833
15993
  };
13834
15994
  Returns: undefined;
13835
15995
  };
13836
- twinfield_decrypt: {
15996
+ try_debtor_lock: {
13837
15997
  Args: {
13838
- cipher: string;
15998
+ _group_key: string;
15999
+ _user_id: string;
13839
16000
  };
13840
- Returns: string;
16001
+ Returns: boolean;
13841
16002
  };
13842
- twinfield_encrypt: {
16003
+ twinfield_register_cron: {
13843
16004
  Args: {
13844
- plain: string;
16005
+ apikey: string;
16006
+ base_url: string;
16007
+ };
16008
+ Returns: import("./types").Json;
16009
+ };
16010
+ twinfield_upsert_connection_by_account_key: {
16011
+ Args: {
16012
+ p_account_key: string;
16013
+ p_cluster_uri?: string;
16014
+ p_company_code?: string;
16015
+ p_company_name?: string;
16016
+ p_environment: string;
16017
+ p_office_code?: string;
16018
+ p_status?: string;
16019
+ p_user_id: string;
13845
16020
  };
13846
16021
  Returns: string;
13847
16022
  };
@@ -13858,12 +16033,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13858
16033
  };
13859
16034
  };
13860
16035
  Enums: {
16036
+ ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
13861
16037
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
16038
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
16039
+ doc_orientation: "portrait" | "landscape";
13862
16040
  exact_env: "staging" | "live";
13863
16041
  exact_push_status: "pending" | "sent" | "error";
13864
16042
  itk_customer_segment: "Business" | "Private";
13865
16043
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13866
16044
  planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
16045
+ print_job_status: "wachtend" | "bezig" | "voltooid" | "mislukt" | "geannuleerd";
16046
+ printer_connection: "ipp" | "raw9100" | "printnode" | "cups" | "usb" | "windows" | "airprint" | "cloud";
16047
+ printer_kind: "labelprinter" | "laserprinter" | "inkjet" | "thermal" | "kantoorprinter" | "overig";
13867
16048
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13868
16049
  };
13869
16050
  CompositeTypes: { [_ in never]: never; };