@flowselections/logistiek-engine 1.0.1 → 1.0.3

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.
@@ -1863,6 +1863,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1863
1863
  referencedColumns: ["id"];
1864
1864
  }];
1865
1865
  };
1866
+ customer_notes: {
1867
+ Row: {
1868
+ created_at: string;
1869
+ customer_id: string | null;
1870
+ group_key: string | null;
1871
+ id: string;
1872
+ notes: string | null;
1873
+ updated_at: string;
1874
+ };
1875
+ Insert: {
1876
+ created_at?: string;
1877
+ customer_id?: string | null;
1878
+ group_key?: string | null;
1879
+ id?: string;
1880
+ notes?: string | null;
1881
+ updated_at?: string;
1882
+ };
1883
+ Update: {
1884
+ created_at?: string;
1885
+ customer_id?: string | null;
1886
+ group_key?: string | null;
1887
+ id?: string;
1888
+ notes?: string | null;
1889
+ updated_at?: string;
1890
+ };
1891
+ Relationships: [{
1892
+ foreignKeyName: "customer_notes_customer_id_fkey";
1893
+ columns: ["customer_id"];
1894
+ isOneToOne: true;
1895
+ referencedRelation: "customers";
1896
+ referencedColumns: ["id"];
1897
+ }];
1898
+ };
1866
1899
  customer_price_group_members: {
1867
1900
  Row: {
1868
1901
  created_at: string;
@@ -3507,6 +3540,474 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3507
3540
  referencedColumns: ["id"];
3508
3541
  }];
3509
3542
  };
3543
+ exact_auth_call_budget: {
3544
+ Row: {
3545
+ account_key: string;
3546
+ day_count: number;
3547
+ day_date: string;
3548
+ division_code: number;
3549
+ environment: string;
3550
+ minute_count: number;
3551
+ minute_window: string;
3552
+ updated_at: string;
3553
+ };
3554
+ Insert: {
3555
+ account_key?: string;
3556
+ day_count?: number;
3557
+ day_date?: string;
3558
+ division_code?: number;
3559
+ environment: string;
3560
+ minute_count?: number;
3561
+ minute_window?: string;
3562
+ updated_at?: string;
3563
+ };
3564
+ Update: {
3565
+ account_key?: string;
3566
+ day_count?: number;
3567
+ day_date?: string;
3568
+ division_code?: number;
3569
+ environment?: string;
3570
+ minute_count?: number;
3571
+ minute_window?: string;
3572
+ updated_at?: string;
3573
+ };
3574
+ Relationships: [];
3575
+ };
3576
+ exact_auth_customers: {
3577
+ Row: {
3578
+ account_key: string;
3579
+ address_line1: string | null;
3580
+ chamber_of_commerce: string | null;
3581
+ city: string | null;
3582
+ code: string | null;
3583
+ country: string | null;
3584
+ created_at: string;
3585
+ currency: string | null;
3586
+ division_code: number | null;
3587
+ email: string | null;
3588
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3589
+ exact_id: string;
3590
+ exact_modified: string | null;
3591
+ exact_timestamp: number | null;
3592
+ id: string;
3593
+ is_active: boolean;
3594
+ name: string | null;
3595
+ phone: string | null;
3596
+ postcode: string | null;
3597
+ raw: import("../integrations/supabase/types").Json | null;
3598
+ status: string | null;
3599
+ updated_at: string;
3600
+ vat_number: string | null;
3601
+ website: string | null;
3602
+ };
3603
+ Insert: {
3604
+ account_key?: string;
3605
+ address_line1?: string | null;
3606
+ chamber_of_commerce?: string | null;
3607
+ city?: string | null;
3608
+ code?: string | null;
3609
+ country?: string | null;
3610
+ created_at?: string;
3611
+ currency?: string | null;
3612
+ division_code?: number | null;
3613
+ email?: string | null;
3614
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3615
+ exact_id: string;
3616
+ exact_modified?: string | null;
3617
+ exact_timestamp?: number | null;
3618
+ id?: string;
3619
+ is_active?: boolean;
3620
+ name?: string | null;
3621
+ phone?: string | null;
3622
+ postcode?: string | null;
3623
+ raw?: import("../integrations/supabase/types").Json | null;
3624
+ status?: string | null;
3625
+ updated_at?: string;
3626
+ vat_number?: string | null;
3627
+ website?: string | null;
3628
+ };
3629
+ Update: {
3630
+ account_key?: string;
3631
+ address_line1?: string | null;
3632
+ chamber_of_commerce?: string | null;
3633
+ city?: string | null;
3634
+ code?: string | null;
3635
+ country?: string | null;
3636
+ created_at?: string;
3637
+ currency?: string | null;
3638
+ division_code?: number | null;
3639
+ email?: string | null;
3640
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3641
+ exact_id?: string;
3642
+ exact_modified?: string | null;
3643
+ exact_timestamp?: number | null;
3644
+ id?: string;
3645
+ is_active?: boolean;
3646
+ name?: string | null;
3647
+ phone?: string | null;
3648
+ postcode?: string | null;
3649
+ raw?: import("../integrations/supabase/types").Json | null;
3650
+ status?: string | null;
3651
+ updated_at?: string;
3652
+ vat_number?: string | null;
3653
+ website?: string | null;
3654
+ };
3655
+ Relationships: [];
3656
+ };
3657
+ exact_auth_divisions: {
3658
+ Row: {
3659
+ account_key: string;
3660
+ company_name: string | null;
3661
+ created_at: string;
3662
+ division_code: number | null;
3663
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3664
+ id: string;
3665
+ last_synced_at: string | null;
3666
+ updated_at: string;
3667
+ };
3668
+ Insert: {
3669
+ account_key?: string;
3670
+ company_name?: string | null;
3671
+ created_at?: string;
3672
+ division_code?: number | null;
3673
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3674
+ id?: string;
3675
+ last_synced_at?: string | null;
3676
+ updated_at?: string;
3677
+ };
3678
+ Update: {
3679
+ account_key?: string;
3680
+ company_name?: string | null;
3681
+ created_at?: string;
3682
+ division_code?: number | null;
3683
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3684
+ id?: string;
3685
+ last_synced_at?: string | null;
3686
+ updated_at?: string;
3687
+ };
3688
+ Relationships: [];
3689
+ };
3690
+ exact_auth_invoice_lines: {
3691
+ Row: {
3692
+ account_key: string;
3693
+ amount_excl: number | null;
3694
+ created_at: string;
3695
+ description: string | null;
3696
+ discount: number | null;
3697
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3698
+ exact_id: string;
3699
+ exact_timestamp: number | null;
3700
+ id: string;
3701
+ invoice_exact_id: string;
3702
+ item_code: string | null;
3703
+ item_exact_id: string | null;
3704
+ line_number: number | null;
3705
+ quantity: number | null;
3706
+ raw: import("../integrations/supabase/types").Json | null;
3707
+ unit_price: number | null;
3708
+ updated_at: string;
3709
+ vat_amount: number | null;
3710
+ vat_code: string | null;
3711
+ };
3712
+ Insert: {
3713
+ account_key?: string;
3714
+ amount_excl?: number | null;
3715
+ created_at?: string;
3716
+ description?: string | null;
3717
+ discount?: number | null;
3718
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3719
+ exact_id: string;
3720
+ exact_timestamp?: number | null;
3721
+ id?: string;
3722
+ invoice_exact_id: string;
3723
+ item_code?: string | null;
3724
+ item_exact_id?: string | null;
3725
+ line_number?: number | null;
3726
+ quantity?: number | null;
3727
+ raw?: import("../integrations/supabase/types").Json | null;
3728
+ unit_price?: number | null;
3729
+ updated_at?: string;
3730
+ vat_amount?: number | null;
3731
+ vat_code?: string | null;
3732
+ };
3733
+ Update: {
3734
+ account_key?: string;
3735
+ amount_excl?: number | null;
3736
+ created_at?: string;
3737
+ description?: string | null;
3738
+ discount?: number | null;
3739
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3740
+ exact_id?: string;
3741
+ exact_timestamp?: number | null;
3742
+ id?: string;
3743
+ invoice_exact_id?: string;
3744
+ item_code?: string | null;
3745
+ item_exact_id?: string | null;
3746
+ line_number?: number | null;
3747
+ quantity?: number | null;
3748
+ raw?: import("../integrations/supabase/types").Json | null;
3749
+ unit_price?: number | null;
3750
+ updated_at?: string;
3751
+ vat_amount?: number | null;
3752
+ vat_code?: string | null;
3753
+ };
3754
+ Relationships: [];
3755
+ };
3756
+ exact_auth_invoices: {
3757
+ Row: {
3758
+ account_key: string;
3759
+ amount_excl: number | null;
3760
+ amount_incl: number | null;
3761
+ amount_open: number | null;
3762
+ created_at: string;
3763
+ currency: string | null;
3764
+ customer_code: string | null;
3765
+ customer_exact_id: string | null;
3766
+ customer_name: string | null;
3767
+ description: string | null;
3768
+ division_code: number | null;
3769
+ due_date: string | null;
3770
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3771
+ exact_id: string;
3772
+ exact_modified: string | null;
3773
+ exact_timestamp: number | null;
3774
+ id: string;
3775
+ invoice_date: string | null;
3776
+ invoice_number: string | null;
3777
+ order_number: string | null;
3778
+ paid_at: string | null;
3779
+ payment_status: string;
3780
+ raw: import("../integrations/supabase/types").Json | null;
3781
+ receivable_synced_at: string | null;
3782
+ status_code: number | null;
3783
+ updated_at: string;
3784
+ };
3785
+ Insert: {
3786
+ account_key?: string;
3787
+ amount_excl?: number | null;
3788
+ amount_incl?: number | null;
3789
+ amount_open?: number | null;
3790
+ created_at?: string;
3791
+ currency?: string | null;
3792
+ customer_code?: string | null;
3793
+ customer_exact_id?: string | null;
3794
+ customer_name?: string | null;
3795
+ description?: string | null;
3796
+ division_code?: number | null;
3797
+ due_date?: string | null;
3798
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3799
+ exact_id: string;
3800
+ exact_modified?: string | null;
3801
+ exact_timestamp?: number | null;
3802
+ id?: string;
3803
+ invoice_date?: string | null;
3804
+ invoice_number?: string | null;
3805
+ order_number?: string | null;
3806
+ paid_at?: string | null;
3807
+ payment_status?: string;
3808
+ raw?: import("../integrations/supabase/types").Json | null;
3809
+ receivable_synced_at?: string | null;
3810
+ status_code?: number | null;
3811
+ updated_at?: string;
3812
+ };
3813
+ Update: {
3814
+ account_key?: string;
3815
+ amount_excl?: number | null;
3816
+ amount_incl?: number | null;
3817
+ amount_open?: number | null;
3818
+ created_at?: string;
3819
+ currency?: string | null;
3820
+ customer_code?: string | null;
3821
+ customer_exact_id?: string | null;
3822
+ customer_name?: string | null;
3823
+ description?: string | null;
3824
+ division_code?: number | null;
3825
+ due_date?: string | null;
3826
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3827
+ exact_id?: string;
3828
+ exact_modified?: string | null;
3829
+ exact_timestamp?: number | null;
3830
+ id?: string;
3831
+ invoice_date?: string | null;
3832
+ invoice_number?: string | null;
3833
+ order_number?: string | null;
3834
+ paid_at?: string | null;
3835
+ payment_status?: string;
3836
+ raw?: import("../integrations/supabase/types").Json | null;
3837
+ receivable_synced_at?: string | null;
3838
+ status_code?: number | null;
3839
+ updated_at?: string;
3840
+ };
3841
+ Relationships: [];
3842
+ };
3843
+ exact_auth_items: {
3844
+ Row: {
3845
+ account_key: string;
3846
+ barcode: string | null;
3847
+ code: string | null;
3848
+ cost_price: number | null;
3849
+ created_at: string;
3850
+ description: string | null;
3851
+ division_code: number | null;
3852
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3853
+ exact_id: string;
3854
+ exact_modified: string | null;
3855
+ exact_timestamp: number | null;
3856
+ gl_account_code: string | null;
3857
+ id: string;
3858
+ is_active: boolean;
3859
+ is_sales_item: boolean | null;
3860
+ item_type: string | null;
3861
+ raw: import("../integrations/supabase/types").Json | null;
3862
+ sales_price: number | null;
3863
+ unit: string | null;
3864
+ updated_at: string;
3865
+ vat_code: string | null;
3866
+ };
3867
+ Insert: {
3868
+ account_key?: string;
3869
+ barcode?: string | null;
3870
+ code?: string | null;
3871
+ cost_price?: number | null;
3872
+ created_at?: string;
3873
+ description?: string | null;
3874
+ division_code?: number | null;
3875
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3876
+ exact_id: string;
3877
+ exact_modified?: string | null;
3878
+ exact_timestamp?: number | null;
3879
+ gl_account_code?: string | null;
3880
+ id?: string;
3881
+ is_active?: boolean;
3882
+ is_sales_item?: boolean | null;
3883
+ item_type?: string | null;
3884
+ raw?: import("../integrations/supabase/types").Json | null;
3885
+ sales_price?: number | null;
3886
+ unit?: string | null;
3887
+ updated_at?: string;
3888
+ vat_code?: string | null;
3889
+ };
3890
+ Update: {
3891
+ account_key?: string;
3892
+ barcode?: string | null;
3893
+ code?: string | null;
3894
+ cost_price?: number | null;
3895
+ created_at?: string;
3896
+ description?: string | null;
3897
+ division_code?: number | null;
3898
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3899
+ exact_id?: string;
3900
+ exact_modified?: string | null;
3901
+ exact_timestamp?: number | null;
3902
+ gl_account_code?: string | null;
3903
+ id?: string;
3904
+ is_active?: boolean;
3905
+ is_sales_item?: boolean | null;
3906
+ item_type?: string | null;
3907
+ raw?: import("../integrations/supabase/types").Json | null;
3908
+ sales_price?: number | null;
3909
+ unit?: string | null;
3910
+ updated_at?: string;
3911
+ vat_code?: string | null;
3912
+ };
3913
+ Relationships: [];
3914
+ };
3915
+ exact_auth_sync_log: {
3916
+ Row: {
3917
+ account_key: string;
3918
+ calls_used: number;
3919
+ created_at: string;
3920
+ domain: string;
3921
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3922
+ error: string | null;
3923
+ finished_at: string | null;
3924
+ id: string;
3925
+ ok: boolean;
3926
+ records: number;
3927
+ started_at: string;
3928
+ };
3929
+ Insert: {
3930
+ account_key?: string;
3931
+ calls_used?: number;
3932
+ created_at?: string;
3933
+ domain: string;
3934
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3935
+ error?: string | null;
3936
+ finished_at?: string | null;
3937
+ id?: string;
3938
+ ok?: boolean;
3939
+ records?: number;
3940
+ started_at?: string;
3941
+ };
3942
+ Update: {
3943
+ account_key?: string;
3944
+ calls_used?: number;
3945
+ created_at?: string;
3946
+ domain?: string;
3947
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3948
+ error?: string | null;
3949
+ finished_at?: string | null;
3950
+ id?: string;
3951
+ ok?: boolean;
3952
+ records?: number;
3953
+ started_at?: string;
3954
+ };
3955
+ Relationships: [];
3956
+ };
3957
+ exact_auth_sync_state: {
3958
+ Row: {
3959
+ account_key: string;
3960
+ created_at: string;
3961
+ cursor_timestamp: number;
3962
+ division_code: number | null;
3963
+ domain: string;
3964
+ duration_ms: number | null;
3965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3966
+ initial_sync_done: boolean;
3967
+ last_error: string | null;
3968
+ last_run_at: string | null;
3969
+ last_success_at: string | null;
3970
+ locked_at: string | null;
3971
+ needs_initial_sync: boolean;
3972
+ record_count: number;
3973
+ updated_at: string;
3974
+ };
3975
+ Insert: {
3976
+ account_key?: string;
3977
+ created_at?: string;
3978
+ cursor_timestamp?: number;
3979
+ division_code?: number | null;
3980
+ domain: string;
3981
+ duration_ms?: number | null;
3982
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3983
+ initial_sync_done?: boolean;
3984
+ last_error?: string | null;
3985
+ last_run_at?: string | null;
3986
+ last_success_at?: string | null;
3987
+ locked_at?: string | null;
3988
+ needs_initial_sync?: boolean;
3989
+ record_count?: number;
3990
+ updated_at?: string;
3991
+ };
3992
+ Update: {
3993
+ account_key?: string;
3994
+ created_at?: string;
3995
+ cursor_timestamp?: number;
3996
+ division_code?: number | null;
3997
+ domain?: string;
3998
+ duration_ms?: number | null;
3999
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4000
+ initial_sync_done?: boolean;
4001
+ last_error?: string | null;
4002
+ last_run_at?: string | null;
4003
+ last_success_at?: string | null;
4004
+ locked_at?: string | null;
4005
+ needs_initial_sync?: boolean;
4006
+ record_count?: number;
4007
+ updated_at?: string;
4008
+ };
4009
+ Relationships: [];
4010
+ };
3510
4011
  exact_bulk_operation_items: {
3511
4012
  Row: {
3512
4013
  attempts: number;
@@ -17899,6 +18400,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17899
18400
  Args: never;
17900
18401
  Returns: string;
17901
18402
  };
18403
+ exact_auth_consume_calls: {
18404
+ Args: {
18405
+ _account_key: string;
18406
+ _calls?: number;
18407
+ _day_limit?: number;
18408
+ _division_code: number;
18409
+ _environment: string;
18410
+ _minute_limit?: number;
18411
+ };
18412
+ Returns: import("../integrations/supabase/types").Json;
18413
+ };
18414
+ exact_auth_prune_sync_log: {
18415
+ Args: never;
18416
+ Returns: undefined;
18417
+ };
17902
18418
  exact_decrypt: {
17903
18419
  Args: {
17904
18420
  cipher: string;