@be-logixpair/api 0.0.27 → 0.0.29

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 (2) hide show
  1. package/dist/index.d.ts +3106 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -651484,6 +651484,3112 @@ declare const appRouter: BuiltRouter<{
651484
651484
  }>;
651485
651485
  }>>;
651486
651486
  }>>;
651487
+ accounts: BuiltRouter<{
651488
+ ctx: Context;
651489
+ meta: object;
651490
+ errorShape: DefaultErrorShape;
651491
+ transformer: false;
651492
+ }, DecorateCreateRouterOptions<{
651493
+ bankAccounts: BuiltRouter<{
651494
+ ctx: Context;
651495
+ meta: object;
651496
+ errorShape: DefaultErrorShape;
651497
+ transformer: false;
651498
+ }, DecorateCreateRouterOptions<{
651499
+ get: MutationProcedure<{
651500
+ input: {
651501
+ search?: string | null | undefined;
651502
+ take?: number | null | undefined;
651503
+ skip?: number | null | undefined;
651504
+ is_active?: boolean[] | null | undefined;
651505
+ ids_include?: number[] | null | undefined;
651506
+ ids_exclude?: number[] | null | undefined;
651507
+ ids_string_include?: string[] | null | undefined;
651508
+ ids_string_exclude?: string[] | null | undefined;
651509
+ logic_codes_include?: string[] | null | undefined;
651510
+ logic_codes_exclude?: string[] | null | undefined;
651511
+ order_by?: {
651512
+ field: string;
651513
+ direction: "asc" | "desc";
651514
+ } | null | undefined;
651515
+ order_bys?: {
651516
+ field: string;
651517
+ direction: "asc" | "desc";
651518
+ }[] | null | undefined;
651519
+ id_type?: number | null | undefined;
651520
+ ids_type?: number[] | null | undefined;
651521
+ id_company?: number | null | undefined;
651522
+ ids_company?: number[] | null | undefined;
651523
+ id_branch?: number | null | undefined;
651524
+ ids_branch?: number[] | null | undefined;
651525
+ id_gl_account?: number | null | undefined;
651526
+ ids_gl_account?: number[] | null | undefined;
651527
+ id_country?: number | null | undefined;
651528
+ ids_country?: number[] | null | undefined;
651529
+ id_currency?: number | null | undefined;
651530
+ ids_currency?: number[] | null | undefined;
651531
+ id_os_balance_currency?: number | null | undefined;
651532
+ ids_os_balance_currency?: number[] | null | undefined;
651533
+ id_local_balance_currency?: number | null | undefined;
651534
+ ids_local_balance_currency?: number[] | null | undefined;
651535
+ };
651536
+ output: {
651537
+ data: ({
651538
+ country: {
651539
+ is_active: boolean | null;
651540
+ id: number;
651541
+ name: string | null;
651542
+ logic_code: string | null;
651543
+ created_at: Date | null;
651544
+ created_by: string | null;
651545
+ updated_at: Date | null;
651546
+ updated_by: string | null;
651547
+ id_currency: number | null;
651548
+ iso2_code: string | null;
651549
+ iso3_code: string | null;
651550
+ iso3_numeric: string | null;
651551
+ is_sanctioned: boolean | null;
651552
+ } | null;
651553
+ currency: {
651554
+ symbol: string | null;
651555
+ is_active: boolean | null;
651556
+ id: number;
651557
+ name: string | null;
651558
+ logic_code: string | null;
651559
+ created_at: Date | null;
651560
+ created_by: string | null;
651561
+ updated_at: Date | null;
651562
+ updated_by: string | null;
651563
+ currency_code: string | null;
651564
+ currency_name: string | null;
651565
+ major_unit: string | null;
651566
+ minor_unit: string | null;
651567
+ decimal_unit: number | null;
651568
+ iso_decimal: number | null;
651569
+ } | null;
651570
+ bank_account_type: {
651571
+ is_active: boolean | null;
651572
+ id: number;
651573
+ name: string | null;
651574
+ logic_code: string | null;
651575
+ created_at: Date | null;
651576
+ created_by: string | null;
651577
+ updated_at: Date | null;
651578
+ updated_by: string | null;
651579
+ code: string | null;
651580
+ } | null;
651581
+ company: {
651582
+ is_active: boolean | null;
651583
+ id_un_locode: number | null;
651584
+ id_country: number | null;
651585
+ id_state: number | null;
651586
+ id_city: number | null;
651587
+ id_postal_code: number | null;
651588
+ id: number;
651589
+ name: string | null;
651590
+ logic_code: string | null;
651591
+ created_at: Date | null;
651592
+ created_by: string | null;
651593
+ updated_at: Date | null;
651594
+ updated_by: string | null;
651595
+ code: string | null;
651596
+ address: string | null;
651597
+ } | null;
651598
+ branch: {
651599
+ is_active: boolean | null;
651600
+ id_un_locode: number | null;
651601
+ id_country: number | null;
651602
+ id_state: number | null;
651603
+ id_city: number | null;
651604
+ id_postal_code: number | null;
651605
+ id: number;
651606
+ name: string | null;
651607
+ logic_code: string | null;
651608
+ created_at: Date | null;
651609
+ created_by: string | null;
651610
+ updated_at: Date | null;
651611
+ updated_by: string | null;
651612
+ code: string | null;
651613
+ address: string | null;
651614
+ id_company: number | null;
651615
+ } | null;
651616
+ os_balance_currency: {
651617
+ symbol: string | null;
651618
+ is_active: boolean | null;
651619
+ id: number;
651620
+ name: string | null;
651621
+ logic_code: string | null;
651622
+ created_at: Date | null;
651623
+ created_by: string | null;
651624
+ updated_at: Date | null;
651625
+ updated_by: string | null;
651626
+ currency_code: string | null;
651627
+ currency_name: string | null;
651628
+ major_unit: string | null;
651629
+ minor_unit: string | null;
651630
+ decimal_unit: number | null;
651631
+ iso_decimal: number | null;
651632
+ } | null;
651633
+ local_balance_currency: {
651634
+ symbol: string | null;
651635
+ is_active: boolean | null;
651636
+ id: number;
651637
+ name: string | null;
651638
+ logic_code: string | null;
651639
+ created_at: Date | null;
651640
+ created_by: string | null;
651641
+ updated_at: Date | null;
651642
+ updated_by: string | null;
651643
+ currency_code: string | null;
651644
+ currency_name: string | null;
651645
+ major_unit: string | null;
651646
+ minor_unit: string | null;
651647
+ decimal_unit: number | null;
651648
+ iso_decimal: number | null;
651649
+ } | null;
651650
+ gl_account: {
651651
+ is_active: boolean | null;
651652
+ id: number;
651653
+ name: string | null;
651654
+ logic_code: string | null;
651655
+ created_at: Date | null;
651656
+ created_by: string | null;
651657
+ updated_at: Date | null;
651658
+ updated_by: string | null;
651659
+ code: string | null;
651660
+ id_type: number | null;
651661
+ id_percent_of_account: number | null;
651662
+ id_consolidate_account: number | null;
651663
+ id_alternate_account: number | null;
651664
+ id_section: number | null;
651665
+ id_cash_flow_type: number | null;
651666
+ id_sub_account_type: number | null;
651667
+ credit_debit: ("CREDIT" | "DEBIT") | null;
651668
+ code_account_for_total: string | null;
651669
+ code_local_account: string | null;
651670
+ local_account_description: string | null;
651671
+ is_controllable: boolean | null;
651672
+ } | null;
651673
+ } & {
651674
+ is_active: boolean | null;
651675
+ id_country: number | null;
651676
+ id: number;
651677
+ name: string | null;
651678
+ logic_code: string | null;
651679
+ created_at: Date | null;
651680
+ created_by: string | null;
651681
+ updated_at: Date | null;
651682
+ updated_by: string | null;
651683
+ code: string | null;
651684
+ id_currency: number | null;
651685
+ id_type: number | null;
651686
+ id_company: number | null;
651687
+ id_branch: number | null;
651688
+ id_gl_account: number | null;
651689
+ id_os_balance_currency: number | null;
651690
+ id_local_balance_currency: number | null;
651691
+ bank_name: string | null;
651692
+ bank_address: string | null;
651693
+ bank_account_name: string | null;
651694
+ bank_account_number: string | null;
651695
+ bank_bsb_number: string | null;
651696
+ bank_swift_code: string | null;
651697
+ bank_iban_code: string | null;
651698
+ bank_unique_account_number: string | null;
651699
+ opening_os_balance: Decimal | null;
651700
+ opening_local_balance: Decimal | null;
651701
+ credit_card_name: string | null;
651702
+ credit_card_number: string | null;
651703
+ credit_card_expiry_date: Date | null;
651704
+ credit_card_cvv: string | null;
651705
+ is_detailed_deposit_slip: boolean | null;
651706
+ is_default_receipt_account: boolean | null;
651707
+ })[] | undefined;
651708
+ total: number | undefined;
651709
+ };
651710
+ meta: object;
651711
+ }>;
651712
+ getDetail: MutationProcedure<{
651713
+ input: {
651714
+ id?: number | null | undefined;
651715
+ id_string?: string | null | undefined;
651716
+ };
651717
+ output: {
651718
+ data: {
651719
+ country: {
651720
+ is_active: boolean | null;
651721
+ id: number;
651722
+ name: string | null;
651723
+ logic_code: string | null;
651724
+ created_at: Date | null;
651725
+ created_by: string | null;
651726
+ updated_at: Date | null;
651727
+ updated_by: string | null;
651728
+ id_currency: number | null;
651729
+ iso2_code: string | null;
651730
+ iso3_code: string | null;
651731
+ iso3_numeric: string | null;
651732
+ is_sanctioned: boolean | null;
651733
+ } | null;
651734
+ _count: {
651735
+ bank_account_type: number;
651736
+ company: number;
651737
+ branch: number;
651738
+ country: number;
651739
+ currency: number;
651740
+ os_balance_currency: number;
651741
+ local_balance_currency: number;
651742
+ gl_account: number;
651743
+ bank_account_logs: number;
651744
+ bank_account_attachments: number;
651745
+ organization_account_bank_details: number;
651746
+ };
651747
+ currency: {
651748
+ symbol: string | null;
651749
+ is_active: boolean | null;
651750
+ id: number;
651751
+ name: string | null;
651752
+ logic_code: string | null;
651753
+ created_at: Date | null;
651754
+ created_by: string | null;
651755
+ updated_at: Date | null;
651756
+ updated_by: string | null;
651757
+ currency_code: string | null;
651758
+ currency_name: string | null;
651759
+ major_unit: string | null;
651760
+ minor_unit: string | null;
651761
+ decimal_unit: number | null;
651762
+ iso_decimal: number | null;
651763
+ } | null;
651764
+ bank_account_type: {
651765
+ is_active: boolean | null;
651766
+ id: number;
651767
+ name: string | null;
651768
+ logic_code: string | null;
651769
+ created_at: Date | null;
651770
+ created_by: string | null;
651771
+ updated_at: Date | null;
651772
+ updated_by: string | null;
651773
+ code: string | null;
651774
+ } | null;
651775
+ company: {
651776
+ is_active: boolean | null;
651777
+ id_un_locode: number | null;
651778
+ id_country: number | null;
651779
+ id_state: number | null;
651780
+ id_city: number | null;
651781
+ id_postal_code: number | null;
651782
+ id: number;
651783
+ name: string | null;
651784
+ logic_code: string | null;
651785
+ created_at: Date | null;
651786
+ created_by: string | null;
651787
+ updated_at: Date | null;
651788
+ updated_by: string | null;
651789
+ code: string | null;
651790
+ address: string | null;
651791
+ } | null;
651792
+ branch: {
651793
+ is_active: boolean | null;
651794
+ id_un_locode: number | null;
651795
+ id_country: number | null;
651796
+ id_state: number | null;
651797
+ id_city: number | null;
651798
+ id_postal_code: number | null;
651799
+ id: number;
651800
+ name: string | null;
651801
+ logic_code: string | null;
651802
+ created_at: Date | null;
651803
+ created_by: string | null;
651804
+ updated_at: Date | null;
651805
+ updated_by: string | null;
651806
+ code: string | null;
651807
+ address: string | null;
651808
+ id_company: number | null;
651809
+ } | null;
651810
+ os_balance_currency: {
651811
+ symbol: string | null;
651812
+ is_active: boolean | null;
651813
+ id: number;
651814
+ name: string | null;
651815
+ logic_code: string | null;
651816
+ created_at: Date | null;
651817
+ created_by: string | null;
651818
+ updated_at: Date | null;
651819
+ updated_by: string | null;
651820
+ currency_code: string | null;
651821
+ currency_name: string | null;
651822
+ major_unit: string | null;
651823
+ minor_unit: string | null;
651824
+ decimal_unit: number | null;
651825
+ iso_decimal: number | null;
651826
+ } | null;
651827
+ local_balance_currency: {
651828
+ symbol: string | null;
651829
+ is_active: boolean | null;
651830
+ id: number;
651831
+ name: string | null;
651832
+ logic_code: string | null;
651833
+ created_at: Date | null;
651834
+ created_by: string | null;
651835
+ updated_at: Date | null;
651836
+ updated_by: string | null;
651837
+ currency_code: string | null;
651838
+ currency_name: string | null;
651839
+ major_unit: string | null;
651840
+ minor_unit: string | null;
651841
+ decimal_unit: number | null;
651842
+ iso_decimal: number | null;
651843
+ } | null;
651844
+ gl_account: {
651845
+ is_active: boolean | null;
651846
+ id: number;
651847
+ name: string | null;
651848
+ logic_code: string | null;
651849
+ created_at: Date | null;
651850
+ created_by: string | null;
651851
+ updated_at: Date | null;
651852
+ updated_by: string | null;
651853
+ code: string | null;
651854
+ id_type: number | null;
651855
+ id_percent_of_account: number | null;
651856
+ id_consolidate_account: number | null;
651857
+ id_alternate_account: number | null;
651858
+ id_section: number | null;
651859
+ id_cash_flow_type: number | null;
651860
+ id_sub_account_type: number | null;
651861
+ credit_debit: ("CREDIT" | "DEBIT") | null;
651862
+ code_account_for_total: string | null;
651863
+ code_local_account: string | null;
651864
+ local_account_description: string | null;
651865
+ is_controllable: boolean | null;
651866
+ } | null;
651867
+ } & {
651868
+ is_active: boolean | null;
651869
+ id_country: number | null;
651870
+ id: number;
651871
+ name: string | null;
651872
+ logic_code: string | null;
651873
+ created_at: Date | null;
651874
+ created_by: string | null;
651875
+ updated_at: Date | null;
651876
+ updated_by: string | null;
651877
+ code: string | null;
651878
+ id_currency: number | null;
651879
+ id_type: number | null;
651880
+ id_company: number | null;
651881
+ id_branch: number | null;
651882
+ id_gl_account: number | null;
651883
+ id_os_balance_currency: number | null;
651884
+ id_local_balance_currency: number | null;
651885
+ bank_name: string | null;
651886
+ bank_address: string | null;
651887
+ bank_account_name: string | null;
651888
+ bank_account_number: string | null;
651889
+ bank_bsb_number: string | null;
651890
+ bank_swift_code: string | null;
651891
+ bank_iban_code: string | null;
651892
+ bank_unique_account_number: string | null;
651893
+ opening_os_balance: Decimal | null;
651894
+ opening_local_balance: Decimal | null;
651895
+ credit_card_name: string | null;
651896
+ credit_card_number: string | null;
651897
+ credit_card_expiry_date: Date | null;
651898
+ credit_card_cvv: string | null;
651899
+ is_detailed_deposit_slip: boolean | null;
651900
+ is_default_receipt_account: boolean | null;
651901
+ };
651902
+ };
651903
+ meta: object;
651904
+ }>;
651905
+ histories: BuiltRouter<{
651906
+ ctx: Context;
651907
+ meta: object;
651908
+ errorShape: DefaultErrorShape;
651909
+ transformer: false;
651910
+ }, DecorateCreateRouterOptions<{
651911
+ get: MutationProcedure<{
651912
+ input: {
651913
+ search?: string | null | undefined;
651914
+ take?: number | null | undefined;
651915
+ skip?: number | null | undefined;
651916
+ is_active?: boolean[] | null | undefined;
651917
+ ids_include?: number[] | null | undefined;
651918
+ ids_exclude?: number[] | null | undefined;
651919
+ ids_string_include?: string[] | null | undefined;
651920
+ ids_string_exclude?: string[] | null | undefined;
651921
+ logic_codes_include?: string[] | null | undefined;
651922
+ logic_codes_exclude?: string[] | null | undefined;
651923
+ order_by?: {
651924
+ field: string;
651925
+ direction: "asc" | "desc";
651926
+ } | null | undefined;
651927
+ order_bys?: {
651928
+ field: string;
651929
+ direction: "asc" | "desc";
651930
+ }[] | null | undefined;
651931
+ id_log_type?: number | null | undefined;
651932
+ ids_log_type?: number[] | null | undefined;
651933
+ id_bank_account?: number | null | undefined;
651934
+ ids_bank_account?: number[] | null | undefined;
651935
+ };
651936
+ output: {
651937
+ data: {
651938
+ log_type: {
651939
+ is_active: boolean | null;
651940
+ id: number;
651941
+ name: string | null;
651942
+ logic_code: string | null;
651943
+ created_at: Date | null;
651944
+ created_by: string | null;
651945
+ updated_at: Date | null;
651946
+ updated_by: string | null;
651947
+ } | null;
651948
+ id: number;
651949
+ id_log_type: number | null;
651950
+ url: string | null;
651951
+ params: SimpleJson;
651952
+ action: string | null;
651953
+ action_by: string | null;
651954
+ action_id: string | null;
651955
+ action_at: Date | null;
651956
+ id_bank_account: number | null;
651957
+ }[] | undefined;
651958
+ total: number | undefined;
651959
+ };
651960
+ meta: object;
651961
+ }>;
651962
+ getDetail: MutationProcedure<{
651963
+ input: {
651964
+ id?: number | null | undefined;
651965
+ id_string?: string | null | undefined;
651966
+ };
651967
+ output: {
651968
+ data: {
651969
+ log_type: {
651970
+ is_active: boolean | null;
651971
+ id: number;
651972
+ name: string | null;
651973
+ logic_code: string | null;
651974
+ created_at: Date | null;
651975
+ created_by: string | null;
651976
+ updated_at: Date | null;
651977
+ updated_by: string | null;
651978
+ } | null;
651979
+ id: number;
651980
+ id_log_type: number | null;
651981
+ url: string | null;
651982
+ params: SimpleJson;
651983
+ action: string | null;
651984
+ action_by: string | null;
651985
+ action_id: string | null;
651986
+ action_at: Date | null;
651987
+ id_bank_account: number | null;
651988
+ } | undefined;
651989
+ };
651990
+ meta: object;
651991
+ }>;
651992
+ }>>;
651993
+ create: MutationProcedure<{
651994
+ input: {
651995
+ is_active?: boolean | undefined;
651996
+ id_type?: number | null | undefined;
651997
+ id_company?: number | null | undefined;
651998
+ id_branch?: number | null | undefined;
651999
+ id_gl_account?: number | null | undefined;
652000
+ id_country?: number | null | undefined;
652001
+ id_currency?: number | null | undefined;
652002
+ id_os_balance_currency?: number | null | undefined;
652003
+ id_local_balance_currency?: number | null | undefined;
652004
+ code?: string | null | undefined;
652005
+ name?: string | null | undefined;
652006
+ bank_name?: string | null | undefined;
652007
+ bank_address?: string | null | undefined;
652008
+ bank_account_name?: string | null | undefined;
652009
+ bank_account_number?: string | null | undefined;
652010
+ bank_bsb_number?: string | null | undefined;
652011
+ bank_swift_code?: string | null | undefined;
652012
+ bank_iban_code?: string | null | undefined;
652013
+ bank_unique_account_number?: string | null | undefined;
652014
+ opening_os_balance?: string | null | undefined;
652015
+ opening_local_balance?: string | null | undefined;
652016
+ credit_card_name?: string | null | undefined;
652017
+ credit_card_number?: string | null | undefined;
652018
+ credit_card_expiry_date?: string | null | undefined;
652019
+ credit_card_cvv?: string | null | undefined;
652020
+ is_detailed_deposit_slip?: boolean | null | undefined;
652021
+ is_default_receipt_account?: boolean | null | undefined;
652022
+ };
652023
+ output: {
652024
+ data: {
652025
+ is_active: boolean | null;
652026
+ id_country: number | null;
652027
+ id: number;
652028
+ name: string | null;
652029
+ logic_code: string | null;
652030
+ created_at: Date | null;
652031
+ created_by: string | null;
652032
+ updated_at: Date | null;
652033
+ updated_by: string | null;
652034
+ code: string | null;
652035
+ id_currency: number | null;
652036
+ id_type: number | null;
652037
+ id_company: number | null;
652038
+ id_branch: number | null;
652039
+ id_gl_account: number | null;
652040
+ id_os_balance_currency: number | null;
652041
+ id_local_balance_currency: number | null;
652042
+ bank_name: string | null;
652043
+ bank_address: string | null;
652044
+ bank_account_name: string | null;
652045
+ bank_account_number: string | null;
652046
+ bank_bsb_number: string | null;
652047
+ bank_swift_code: string | null;
652048
+ bank_iban_code: string | null;
652049
+ bank_unique_account_number: string | null;
652050
+ opening_os_balance: Decimal | null;
652051
+ opening_local_balance: Decimal | null;
652052
+ credit_card_name: string | null;
652053
+ credit_card_number: string | null;
652054
+ credit_card_expiry_date: Date | null;
652055
+ credit_card_cvv: string | null;
652056
+ is_detailed_deposit_slip: boolean | null;
652057
+ is_default_receipt_account: boolean | null;
652058
+ } | undefined;
652059
+ log: {
652060
+ id: number;
652061
+ id_log_type: number | null;
652062
+ url: string | null;
652063
+ params: SimpleJson;
652064
+ action: string | null;
652065
+ action_by: string | null;
652066
+ action_id: string | null;
652067
+ action_at: Date | null;
652068
+ id_bank_account: number | null;
652069
+ } | undefined;
652070
+ };
652071
+ meta: object;
652072
+ }>;
652073
+ update: MutationProcedure<{
652074
+ input: {
652075
+ id?: number | null | undefined;
652076
+ id_string?: string | null | undefined;
652077
+ is_active?: boolean | undefined;
652078
+ id_type?: number | null | undefined;
652079
+ id_company?: number | null | undefined;
652080
+ id_branch?: number | null | undefined;
652081
+ id_gl_account?: number | null | undefined;
652082
+ id_country?: number | null | undefined;
652083
+ id_currency?: number | null | undefined;
652084
+ id_os_balance_currency?: number | null | undefined;
652085
+ id_local_balance_currency?: number | null | undefined;
652086
+ code?: string | null | undefined;
652087
+ name?: string | null | undefined;
652088
+ bank_name?: string | null | undefined;
652089
+ bank_address?: string | null | undefined;
652090
+ bank_account_name?: string | null | undefined;
652091
+ bank_account_number?: string | null | undefined;
652092
+ bank_bsb_number?: string | null | undefined;
652093
+ bank_swift_code?: string | null | undefined;
652094
+ bank_iban_code?: string | null | undefined;
652095
+ bank_unique_account_number?: string | null | undefined;
652096
+ opening_os_balance?: string | null | undefined;
652097
+ opening_local_balance?: string | null | undefined;
652098
+ credit_card_name?: string | null | undefined;
652099
+ credit_card_number?: string | null | undefined;
652100
+ credit_card_expiry_date?: string | null | undefined;
652101
+ credit_card_cvv?: string | null | undefined;
652102
+ is_detailed_deposit_slip?: boolean | null | undefined;
652103
+ is_default_receipt_account?: boolean | null | undefined;
652104
+ };
652105
+ output: {
652106
+ data: {
652107
+ is_active: boolean | null;
652108
+ id_country: number | null;
652109
+ id: number;
652110
+ name: string | null;
652111
+ logic_code: string | null;
652112
+ created_at: Date | null;
652113
+ created_by: string | null;
652114
+ updated_at: Date | null;
652115
+ updated_by: string | null;
652116
+ code: string | null;
652117
+ id_currency: number | null;
652118
+ id_type: number | null;
652119
+ id_company: number | null;
652120
+ id_branch: number | null;
652121
+ id_gl_account: number | null;
652122
+ id_os_balance_currency: number | null;
652123
+ id_local_balance_currency: number | null;
652124
+ bank_name: string | null;
652125
+ bank_address: string | null;
652126
+ bank_account_name: string | null;
652127
+ bank_account_number: string | null;
652128
+ bank_bsb_number: string | null;
652129
+ bank_swift_code: string | null;
652130
+ bank_iban_code: string | null;
652131
+ bank_unique_account_number: string | null;
652132
+ opening_os_balance: Decimal | null;
652133
+ opening_local_balance: Decimal | null;
652134
+ credit_card_name: string | null;
652135
+ credit_card_number: string | null;
652136
+ credit_card_expiry_date: Date | null;
652137
+ credit_card_cvv: string | null;
652138
+ is_detailed_deposit_slip: boolean | null;
652139
+ is_default_receipt_account: boolean | null;
652140
+ } | undefined;
652141
+ log: {
652142
+ id: number;
652143
+ id_log_type: number | null;
652144
+ url: string | null;
652145
+ params: SimpleJson;
652146
+ action: string | null;
652147
+ action_by: string | null;
652148
+ action_id: string | null;
652149
+ action_at: Date | null;
652150
+ id_bank_account: number | null;
652151
+ } | undefined;
652152
+ };
652153
+ meta: object;
652154
+ }>;
652155
+ delete: MutationProcedure<{
652156
+ input: {
652157
+ id?: number | null | undefined;
652158
+ ids?: number[] | null | undefined;
652159
+ id_string?: string | null | undefined;
652160
+ ids_string?: string[] | null | undefined;
652161
+ };
652162
+ output: {
652163
+ data: ({
652164
+ is_active: boolean | null;
652165
+ id_country: number | null;
652166
+ id: number;
652167
+ name: string | null;
652168
+ logic_code: string | null;
652169
+ created_at: Date | null;
652170
+ created_by: string | null;
652171
+ updated_at: Date | null;
652172
+ updated_by: string | null;
652173
+ code: string | null;
652174
+ id_currency: number | null;
652175
+ id_type: number | null;
652176
+ id_company: number | null;
652177
+ id_branch: number | null;
652178
+ id_gl_account: number | null;
652179
+ id_os_balance_currency: number | null;
652180
+ id_local_balance_currency: number | null;
652181
+ bank_name: string | null;
652182
+ bank_address: string | null;
652183
+ bank_account_name: string | null;
652184
+ bank_account_number: string | null;
652185
+ bank_bsb_number: string | null;
652186
+ bank_swift_code: string | null;
652187
+ bank_iban_code: string | null;
652188
+ bank_unique_account_number: string | null;
652189
+ opening_os_balance: Decimal | null;
652190
+ opening_local_balance: Decimal | null;
652191
+ credit_card_name: string | null;
652192
+ credit_card_number: string | null;
652193
+ credit_card_expiry_date: Date | null;
652194
+ credit_card_cvv: string | null;
652195
+ is_detailed_deposit_slip: boolean | null;
652196
+ is_default_receipt_account: boolean | null;
652197
+ } | undefined)[] | undefined;
652198
+ };
652199
+ meta: object;
652200
+ }>;
652201
+ types: BuiltRouter<{
652202
+ ctx: Context;
652203
+ meta: object;
652204
+ errorShape: DefaultErrorShape;
652205
+ transformer: false;
652206
+ }, DecorateCreateRouterOptions<{
652207
+ get: MutationProcedure<{
652208
+ input: {
652209
+ search?: string | null | undefined;
652210
+ take?: number | null | undefined;
652211
+ skip?: number | null | undefined;
652212
+ is_active?: boolean[] | null | undefined;
652213
+ ids_include?: number[] | null | undefined;
652214
+ ids_exclude?: number[] | null | undefined;
652215
+ ids_string_include?: string[] | null | undefined;
652216
+ ids_string_exclude?: string[] | null | undefined;
652217
+ logic_codes_include?: string[] | null | undefined;
652218
+ logic_codes_exclude?: string[] | null | undefined;
652219
+ order_by?: {
652220
+ field: string;
652221
+ direction: "asc" | "desc";
652222
+ } | null | undefined;
652223
+ order_bys?: {
652224
+ field: string;
652225
+ direction: "asc" | "desc";
652226
+ }[] | null | undefined;
652227
+ };
652228
+ output: {
652229
+ data: {
652230
+ is_active: boolean | null;
652231
+ id: number;
652232
+ name: string | null;
652233
+ logic_code: string | null;
652234
+ created_at: Date | null;
652235
+ created_by: string | null;
652236
+ updated_at: Date | null;
652237
+ updated_by: string | null;
652238
+ code: string | null;
652239
+ }[] | undefined;
652240
+ total: number | undefined;
652241
+ };
652242
+ meta: object;
652243
+ }>;
652244
+ getDetail: MutationProcedure<{
652245
+ input: {
652246
+ id?: number | null | undefined;
652247
+ id_string?: string | null | undefined;
652248
+ };
652249
+ output: {
652250
+ data: {
652251
+ _count: {
652252
+ bank_account_type_logs: number;
652253
+ bank_accounts: number;
652254
+ };
652255
+ } & {
652256
+ is_active: boolean | null;
652257
+ id: number;
652258
+ name: string | null;
652259
+ logic_code: string | null;
652260
+ created_at: Date | null;
652261
+ created_by: string | null;
652262
+ updated_at: Date | null;
652263
+ updated_by: string | null;
652264
+ code: string | null;
652265
+ };
652266
+ };
652267
+ meta: object;
652268
+ }>;
652269
+ histories: BuiltRouter<{
652270
+ ctx: Context;
652271
+ meta: object;
652272
+ errorShape: DefaultErrorShape;
652273
+ transformer: false;
652274
+ }, DecorateCreateRouterOptions<{
652275
+ get: MutationProcedure<{
652276
+ input: {
652277
+ search?: string | null | undefined;
652278
+ take?: number | null | undefined;
652279
+ skip?: number | null | undefined;
652280
+ is_active?: boolean[] | null | undefined;
652281
+ ids_include?: number[] | null | undefined;
652282
+ ids_exclude?: number[] | null | undefined;
652283
+ ids_string_include?: string[] | null | undefined;
652284
+ ids_string_exclude?: string[] | null | undefined;
652285
+ logic_codes_include?: string[] | null | undefined;
652286
+ logic_codes_exclude?: string[] | null | undefined;
652287
+ order_by?: {
652288
+ field: string;
652289
+ direction: "asc" | "desc";
652290
+ } | null | undefined;
652291
+ order_bys?: {
652292
+ field: string;
652293
+ direction: "asc" | "desc";
652294
+ }[] | null | undefined;
652295
+ id_log_type?: number | null | undefined;
652296
+ ids_log_type?: number[] | null | undefined;
652297
+ id_bank_account_type?: number | null | undefined;
652298
+ ids_bank_account_type?: number[] | null | undefined;
652299
+ };
652300
+ output: {
652301
+ data: {
652302
+ log_type: {
652303
+ is_active: boolean | null;
652304
+ id: number;
652305
+ name: string | null;
652306
+ logic_code: string | null;
652307
+ created_at: Date | null;
652308
+ created_by: string | null;
652309
+ updated_at: Date | null;
652310
+ updated_by: string | null;
652311
+ } | null;
652312
+ id: number;
652313
+ id_log_type: number | null;
652314
+ url: string | null;
652315
+ params: SimpleJson;
652316
+ action: string | null;
652317
+ action_by: string | null;
652318
+ action_id: string | null;
652319
+ action_at: Date | null;
652320
+ id_bank_account_type: number | null;
652321
+ }[] | undefined;
652322
+ total: number | undefined;
652323
+ };
652324
+ meta: object;
652325
+ }>;
652326
+ getDetail: MutationProcedure<{
652327
+ input: {
652328
+ id?: number | null | undefined;
652329
+ id_string?: string | null | undefined;
652330
+ };
652331
+ output: {
652332
+ data: {
652333
+ log_type: {
652334
+ is_active: boolean | null;
652335
+ id: number;
652336
+ name: string | null;
652337
+ logic_code: string | null;
652338
+ created_at: Date | null;
652339
+ created_by: string | null;
652340
+ updated_at: Date | null;
652341
+ updated_by: string | null;
652342
+ } | null;
652343
+ id: number;
652344
+ id_log_type: number | null;
652345
+ url: string | null;
652346
+ params: SimpleJson;
652347
+ action: string | null;
652348
+ action_by: string | null;
652349
+ action_id: string | null;
652350
+ action_at: Date | null;
652351
+ id_bank_account_type: number | null;
652352
+ } | undefined;
652353
+ };
652354
+ meta: object;
652355
+ }>;
652356
+ }>>;
652357
+ create: MutationProcedure<{
652358
+ input: {
652359
+ is_active?: boolean | undefined;
652360
+ code?: string | null | undefined;
652361
+ name?: string | null | undefined;
652362
+ };
652363
+ output: {
652364
+ data: {
652365
+ is_active: boolean | null;
652366
+ id: number;
652367
+ name: string | null;
652368
+ logic_code: string | null;
652369
+ created_at: Date | null;
652370
+ created_by: string | null;
652371
+ updated_at: Date | null;
652372
+ updated_by: string | null;
652373
+ code: string | null;
652374
+ } | undefined;
652375
+ log: {
652376
+ id: number;
652377
+ id_log_type: number | null;
652378
+ url: string | null;
652379
+ params: SimpleJson;
652380
+ action: string | null;
652381
+ action_by: string | null;
652382
+ action_id: string | null;
652383
+ action_at: Date | null;
652384
+ id_bank_account_type: number | null;
652385
+ } | undefined;
652386
+ };
652387
+ meta: object;
652388
+ }>;
652389
+ update: MutationProcedure<{
652390
+ input: {
652391
+ id?: number | null | undefined;
652392
+ id_string?: string | null | undefined;
652393
+ is_active?: boolean | undefined;
652394
+ code?: string | null | undefined;
652395
+ name?: string | null | undefined;
652396
+ };
652397
+ output: {
652398
+ data: {
652399
+ is_active: boolean | null;
652400
+ id: number;
652401
+ name: string | null;
652402
+ logic_code: string | null;
652403
+ created_at: Date | null;
652404
+ created_by: string | null;
652405
+ updated_at: Date | null;
652406
+ updated_by: string | null;
652407
+ code: string | null;
652408
+ } | undefined;
652409
+ log: {
652410
+ id: number;
652411
+ id_log_type: number | null;
652412
+ url: string | null;
652413
+ params: SimpleJson;
652414
+ action: string | null;
652415
+ action_by: string | null;
652416
+ action_id: string | null;
652417
+ action_at: Date | null;
652418
+ id_bank_account_type: number | null;
652419
+ } | undefined;
652420
+ };
652421
+ meta: object;
652422
+ }>;
652423
+ delete: MutationProcedure<{
652424
+ input: {
652425
+ id?: number | null | undefined;
652426
+ ids?: number[] | null | undefined;
652427
+ id_string?: string | null | undefined;
652428
+ ids_string?: string[] | null | undefined;
652429
+ };
652430
+ output: {
652431
+ data: ({
652432
+ is_active: boolean | null;
652433
+ id: number;
652434
+ name: string | null;
652435
+ logic_code: string | null;
652436
+ created_at: Date | null;
652437
+ created_by: string | null;
652438
+ updated_at: Date | null;
652439
+ updated_by: string | null;
652440
+ code: string | null;
652441
+ } | undefined)[] | undefined;
652442
+ };
652443
+ meta: object;
652444
+ }>;
652445
+ }>>;
652446
+ }>>;
652447
+ taxRates: BuiltRouter<{
652448
+ ctx: Context;
652449
+ meta: object;
652450
+ errorShape: DefaultErrorShape;
652451
+ transformer: false;
652452
+ }, DecorateCreateRouterOptions<{
652453
+ get: MutationProcedure<{
652454
+ input: {
652455
+ search?: string | null | undefined;
652456
+ take?: number | null | undefined;
652457
+ skip?: number | null | undefined;
652458
+ is_active?: boolean[] | null | undefined;
652459
+ ids_include?: number[] | null | undefined;
652460
+ ids_exclude?: number[] | null | undefined;
652461
+ ids_string_include?: string[] | null | undefined;
652462
+ ids_string_exclude?: string[] | null | undefined;
652463
+ logic_codes_include?: string[] | null | undefined;
652464
+ logic_codes_exclude?: string[] | null | undefined;
652465
+ order_by?: {
652466
+ field: string;
652467
+ direction: "asc" | "desc";
652468
+ } | null | undefined;
652469
+ order_bys?: {
652470
+ field: string;
652471
+ direction: "asc" | "desc";
652472
+ }[] | null | undefined;
652473
+ id_type?: number | null | undefined;
652474
+ ids_type?: number[] | null | undefined;
652475
+ id_system?: number | null | undefined;
652476
+ ids_system?: number[] | null | undefined;
652477
+ id_country?: number | null | undefined;
652478
+ ids_country?: number[] | null | undefined;
652479
+ };
652480
+ output: {
652481
+ data: ({
652482
+ country: {
652483
+ is_active: boolean | null;
652484
+ id: number;
652485
+ name: string | null;
652486
+ logic_code: string | null;
652487
+ created_at: Date | null;
652488
+ created_by: string | null;
652489
+ updated_at: Date | null;
652490
+ updated_by: string | null;
652491
+ id_currency: number | null;
652492
+ iso2_code: string | null;
652493
+ iso3_code: string | null;
652494
+ iso3_numeric: string | null;
652495
+ is_sanctioned: boolean | null;
652496
+ } | null;
652497
+ tax_rate_type: {
652498
+ is_active: boolean | null;
652499
+ id: number;
652500
+ name: string | null;
652501
+ logic_code: string | null;
652502
+ created_at: Date | null;
652503
+ created_by: string | null;
652504
+ updated_at: Date | null;
652505
+ updated_by: string | null;
652506
+ code: string | null;
652507
+ } | null;
652508
+ tax_rate_system: {
652509
+ is_active: boolean | null;
652510
+ id: number;
652511
+ name: string | null;
652512
+ logic_code: string | null;
652513
+ created_at: Date | null;
652514
+ created_by: string | null;
652515
+ updated_at: Date | null;
652516
+ updated_by: string | null;
652517
+ code: string | null;
652518
+ } | null;
652519
+ } & {
652520
+ is_active: boolean | null;
652521
+ id_country: number | null;
652522
+ id: number;
652523
+ name: string | null;
652524
+ logic_code: string | null;
652525
+ created_at: Date | null;
652526
+ created_by: string | null;
652527
+ updated_at: Date | null;
652528
+ updated_by: string | null;
652529
+ code: string | null;
652530
+ id_type: number | null;
652531
+ rate: Decimal | null;
652532
+ id_system: number | null;
652533
+ tax_message: string | null;
652534
+ })[] | undefined;
652535
+ total: number | undefined;
652536
+ };
652537
+ meta: object;
652538
+ }>;
652539
+ getDetail: MutationProcedure<{
652540
+ input: {
652541
+ id?: number | null | undefined;
652542
+ id_string?: string | null | undefined;
652543
+ };
652544
+ output: {
652545
+ data: {
652546
+ country: {
652547
+ is_active: boolean | null;
652548
+ id: number;
652549
+ name: string | null;
652550
+ logic_code: string | null;
652551
+ created_at: Date | null;
652552
+ created_by: string | null;
652553
+ updated_at: Date | null;
652554
+ updated_by: string | null;
652555
+ id_currency: number | null;
652556
+ iso2_code: string | null;
652557
+ iso3_code: string | null;
652558
+ iso3_numeric: string | null;
652559
+ is_sanctioned: boolean | null;
652560
+ } | null;
652561
+ _count: {
652562
+ tax_rate_type: number;
652563
+ tax_rate_system: number;
652564
+ country: number;
652565
+ tax_rate_logs: number;
652566
+ charge_codes: number;
652567
+ forwarding_shipment_billing_details_cost: number;
652568
+ forwarding_shipment_billing_details_sell: number;
652569
+ forwarding_console_billing_details_cost: number;
652570
+ forwarding_console_billing_details_sell: number;
652571
+ };
652572
+ tax_rate_type: {
652573
+ is_active: boolean | null;
652574
+ id: number;
652575
+ name: string | null;
652576
+ logic_code: string | null;
652577
+ created_at: Date | null;
652578
+ created_by: string | null;
652579
+ updated_at: Date | null;
652580
+ updated_by: string | null;
652581
+ code: string | null;
652582
+ } | null;
652583
+ tax_rate_system: {
652584
+ is_active: boolean | null;
652585
+ id: number;
652586
+ name: string | null;
652587
+ logic_code: string | null;
652588
+ created_at: Date | null;
652589
+ created_by: string | null;
652590
+ updated_at: Date | null;
652591
+ updated_by: string | null;
652592
+ code: string | null;
652593
+ } | null;
652594
+ } & {
652595
+ is_active: boolean | null;
652596
+ id_country: number | null;
652597
+ id: number;
652598
+ name: string | null;
652599
+ logic_code: string | null;
652600
+ created_at: Date | null;
652601
+ created_by: string | null;
652602
+ updated_at: Date | null;
652603
+ updated_by: string | null;
652604
+ code: string | null;
652605
+ id_type: number | null;
652606
+ rate: Decimal | null;
652607
+ id_system: number | null;
652608
+ tax_message: string | null;
652609
+ };
652610
+ };
652611
+ meta: object;
652612
+ }>;
652613
+ histories: BuiltRouter<{
652614
+ ctx: Context;
652615
+ meta: object;
652616
+ errorShape: DefaultErrorShape;
652617
+ transformer: false;
652618
+ }, DecorateCreateRouterOptions<{
652619
+ get: MutationProcedure<{
652620
+ input: {
652621
+ search?: string | null | undefined;
652622
+ take?: number | null | undefined;
652623
+ skip?: number | null | undefined;
652624
+ is_active?: boolean[] | null | undefined;
652625
+ ids_include?: number[] | null | undefined;
652626
+ ids_exclude?: number[] | null | undefined;
652627
+ ids_string_include?: string[] | null | undefined;
652628
+ ids_string_exclude?: string[] | null | undefined;
652629
+ logic_codes_include?: string[] | null | undefined;
652630
+ logic_codes_exclude?: string[] | null | undefined;
652631
+ order_by?: {
652632
+ field: string;
652633
+ direction: "asc" | "desc";
652634
+ } | null | undefined;
652635
+ order_bys?: {
652636
+ field: string;
652637
+ direction: "asc" | "desc";
652638
+ }[] | null | undefined;
652639
+ id_log_type?: number | null | undefined;
652640
+ ids_log_type?: number[] | null | undefined;
652641
+ id_tax_rate?: number | null | undefined;
652642
+ ids_tax_rate?: number[] | null | undefined;
652643
+ };
652644
+ output: {
652645
+ data: {
652646
+ log_type: {
652647
+ is_active: boolean | null;
652648
+ id: number;
652649
+ name: string | null;
652650
+ logic_code: string | null;
652651
+ created_at: Date | null;
652652
+ created_by: string | null;
652653
+ updated_at: Date | null;
652654
+ updated_by: string | null;
652655
+ } | null;
652656
+ id: number;
652657
+ id_log_type: number | null;
652658
+ url: string | null;
652659
+ params: SimpleJson;
652660
+ action: string | null;
652661
+ action_by: string | null;
652662
+ action_id: string | null;
652663
+ action_at: Date | null;
652664
+ id_tax_rate: number | null;
652665
+ }[] | undefined;
652666
+ total: number | undefined;
652667
+ };
652668
+ meta: object;
652669
+ }>;
652670
+ getDetail: MutationProcedure<{
652671
+ input: {
652672
+ id?: number | null | undefined;
652673
+ id_string?: string | null | undefined;
652674
+ };
652675
+ output: {
652676
+ data: {
652677
+ log_type: {
652678
+ is_active: boolean | null;
652679
+ id: number;
652680
+ name: string | null;
652681
+ logic_code: string | null;
652682
+ created_at: Date | null;
652683
+ created_by: string | null;
652684
+ updated_at: Date | null;
652685
+ updated_by: string | null;
652686
+ } | null;
652687
+ id: number;
652688
+ id_log_type: number | null;
652689
+ url: string | null;
652690
+ params: SimpleJson;
652691
+ action: string | null;
652692
+ action_by: string | null;
652693
+ action_id: string | null;
652694
+ action_at: Date | null;
652695
+ id_tax_rate: number | null;
652696
+ } | undefined;
652697
+ };
652698
+ meta: object;
652699
+ }>;
652700
+ }>>;
652701
+ create: MutationProcedure<{
652702
+ input: {
652703
+ is_active?: boolean | undefined;
652704
+ id_type?: number | null | undefined;
652705
+ id_system?: number | null | undefined;
652706
+ id_country?: number | null | undefined;
652707
+ code?: string | null | undefined;
652708
+ name?: string | null | undefined;
652709
+ tax_message?: string | null | undefined;
652710
+ rate?: string | null | undefined;
652711
+ };
652712
+ output: {
652713
+ data: {
652714
+ is_active: boolean | null;
652715
+ id_country: number | null;
652716
+ id: number;
652717
+ name: string | null;
652718
+ logic_code: string | null;
652719
+ created_at: Date | null;
652720
+ created_by: string | null;
652721
+ updated_at: Date | null;
652722
+ updated_by: string | null;
652723
+ code: string | null;
652724
+ id_type: number | null;
652725
+ rate: Decimal | null;
652726
+ id_system: number | null;
652727
+ tax_message: string | null;
652728
+ } | undefined;
652729
+ log: {
652730
+ id: number;
652731
+ id_log_type: number | null;
652732
+ url: string | null;
652733
+ params: SimpleJson;
652734
+ action: string | null;
652735
+ action_by: string | null;
652736
+ action_id: string | null;
652737
+ action_at: Date | null;
652738
+ id_tax_rate: number | null;
652739
+ } | undefined;
652740
+ };
652741
+ meta: object;
652742
+ }>;
652743
+ update: MutationProcedure<{
652744
+ input: {
652745
+ id?: number | null | undefined;
652746
+ id_string?: string | null | undefined;
652747
+ is_active?: boolean | undefined;
652748
+ id_type?: number | null | undefined;
652749
+ id_system?: number | null | undefined;
652750
+ id_country?: number | null | undefined;
652751
+ code?: string | null | undefined;
652752
+ name?: string | null | undefined;
652753
+ tax_message?: string | null | undefined;
652754
+ rate?: string | null | undefined;
652755
+ };
652756
+ output: {
652757
+ data: {
652758
+ is_active: boolean | null;
652759
+ id_country: number | null;
652760
+ id: number;
652761
+ name: string | null;
652762
+ logic_code: string | null;
652763
+ created_at: Date | null;
652764
+ created_by: string | null;
652765
+ updated_at: Date | null;
652766
+ updated_by: string | null;
652767
+ code: string | null;
652768
+ id_type: number | null;
652769
+ rate: Decimal | null;
652770
+ id_system: number | null;
652771
+ tax_message: string | null;
652772
+ } | undefined;
652773
+ log: {
652774
+ id: number;
652775
+ id_log_type: number | null;
652776
+ url: string | null;
652777
+ params: SimpleJson;
652778
+ action: string | null;
652779
+ action_by: string | null;
652780
+ action_id: string | null;
652781
+ action_at: Date | null;
652782
+ id_tax_rate: number | null;
652783
+ } | undefined;
652784
+ };
652785
+ meta: object;
652786
+ }>;
652787
+ delete: MutationProcedure<{
652788
+ input: {
652789
+ id?: number | null | undefined;
652790
+ ids?: number[] | null | undefined;
652791
+ id_string?: string | null | undefined;
652792
+ ids_string?: string[] | null | undefined;
652793
+ };
652794
+ output: {
652795
+ data: ({
652796
+ is_active: boolean | null;
652797
+ id_country: number | null;
652798
+ id: number;
652799
+ name: string | null;
652800
+ logic_code: string | null;
652801
+ created_at: Date | null;
652802
+ created_by: string | null;
652803
+ updated_at: Date | null;
652804
+ updated_by: string | null;
652805
+ code: string | null;
652806
+ id_type: number | null;
652807
+ rate: Decimal | null;
652808
+ id_system: number | null;
652809
+ tax_message: string | null;
652810
+ } | undefined)[] | undefined;
652811
+ };
652812
+ meta: object;
652813
+ }>;
652814
+ types: BuiltRouter<{
652815
+ ctx: Context;
652816
+ meta: object;
652817
+ errorShape: DefaultErrorShape;
652818
+ transformer: false;
652819
+ }, DecorateCreateRouterOptions<{
652820
+ get: MutationProcedure<{
652821
+ input: {
652822
+ search?: string | null | undefined;
652823
+ take?: number | null | undefined;
652824
+ skip?: number | null | undefined;
652825
+ is_active?: boolean[] | null | undefined;
652826
+ ids_include?: number[] | null | undefined;
652827
+ ids_exclude?: number[] | null | undefined;
652828
+ ids_string_include?: string[] | null | undefined;
652829
+ ids_string_exclude?: string[] | null | undefined;
652830
+ logic_codes_include?: string[] | null | undefined;
652831
+ logic_codes_exclude?: string[] | null | undefined;
652832
+ order_by?: {
652833
+ field: string;
652834
+ direction: "asc" | "desc";
652835
+ } | null | undefined;
652836
+ order_bys?: {
652837
+ field: string;
652838
+ direction: "asc" | "desc";
652839
+ }[] | null | undefined;
652840
+ };
652841
+ output: {
652842
+ data: {
652843
+ is_active: boolean | null;
652844
+ id: number;
652845
+ name: string | null;
652846
+ logic_code: string | null;
652847
+ created_at: Date | null;
652848
+ created_by: string | null;
652849
+ updated_at: Date | null;
652850
+ updated_by: string | null;
652851
+ code: string | null;
652852
+ }[] | undefined;
652853
+ total: number | undefined;
652854
+ };
652855
+ meta: object;
652856
+ }>;
652857
+ getDetail: MutationProcedure<{
652858
+ input: {
652859
+ id?: number | null | undefined;
652860
+ id_string?: string | null | undefined;
652861
+ };
652862
+ output: {
652863
+ data: {
652864
+ _count: {
652865
+ tax_rate_type_logs: number;
652866
+ tax_rates: number;
652867
+ };
652868
+ } & {
652869
+ is_active: boolean | null;
652870
+ id: number;
652871
+ name: string | null;
652872
+ logic_code: string | null;
652873
+ created_at: Date | null;
652874
+ created_by: string | null;
652875
+ updated_at: Date | null;
652876
+ updated_by: string | null;
652877
+ code: string | null;
652878
+ };
652879
+ };
652880
+ meta: object;
652881
+ }>;
652882
+ histories: BuiltRouter<{
652883
+ ctx: Context;
652884
+ meta: object;
652885
+ errorShape: DefaultErrorShape;
652886
+ transformer: false;
652887
+ }, DecorateCreateRouterOptions<{
652888
+ get: MutationProcedure<{
652889
+ input: {
652890
+ search?: string | null | undefined;
652891
+ take?: number | null | undefined;
652892
+ skip?: number | null | undefined;
652893
+ is_active?: boolean[] | null | undefined;
652894
+ ids_include?: number[] | null | undefined;
652895
+ ids_exclude?: number[] | null | undefined;
652896
+ ids_string_include?: string[] | null | undefined;
652897
+ ids_string_exclude?: string[] | null | undefined;
652898
+ logic_codes_include?: string[] | null | undefined;
652899
+ logic_codes_exclude?: string[] | null | undefined;
652900
+ order_by?: {
652901
+ field: string;
652902
+ direction: "asc" | "desc";
652903
+ } | null | undefined;
652904
+ order_bys?: {
652905
+ field: string;
652906
+ direction: "asc" | "desc";
652907
+ }[] | null | undefined;
652908
+ id_log_type?: number | null | undefined;
652909
+ ids_log_type?: number[] | null | undefined;
652910
+ id_tax_rate_type?: number | null | undefined;
652911
+ ids_tax_rate_type?: number[] | null | undefined;
652912
+ };
652913
+ output: {
652914
+ data: {
652915
+ log_type: {
652916
+ is_active: boolean | null;
652917
+ id: number;
652918
+ name: string | null;
652919
+ logic_code: string | null;
652920
+ created_at: Date | null;
652921
+ created_by: string | null;
652922
+ updated_at: Date | null;
652923
+ updated_by: string | null;
652924
+ } | null;
652925
+ id: number;
652926
+ id_log_type: number | null;
652927
+ url: string | null;
652928
+ params: SimpleJson;
652929
+ action: string | null;
652930
+ action_by: string | null;
652931
+ action_id: string | null;
652932
+ action_at: Date | null;
652933
+ id_tax_rate_type: number | null;
652934
+ }[] | undefined;
652935
+ total: number | undefined;
652936
+ };
652937
+ meta: object;
652938
+ }>;
652939
+ getDetail: MutationProcedure<{
652940
+ input: {
652941
+ id?: number | null | undefined;
652942
+ id_string?: string | null | undefined;
652943
+ };
652944
+ output: {
652945
+ data: {
652946
+ log_type: {
652947
+ is_active: boolean | null;
652948
+ id: number;
652949
+ name: string | null;
652950
+ logic_code: string | null;
652951
+ created_at: Date | null;
652952
+ created_by: string | null;
652953
+ updated_at: Date | null;
652954
+ updated_by: string | null;
652955
+ } | null;
652956
+ id: number;
652957
+ id_log_type: number | null;
652958
+ url: string | null;
652959
+ params: SimpleJson;
652960
+ action: string | null;
652961
+ action_by: string | null;
652962
+ action_id: string | null;
652963
+ action_at: Date | null;
652964
+ id_tax_rate_type: number | null;
652965
+ } | undefined;
652966
+ };
652967
+ meta: object;
652968
+ }>;
652969
+ }>>;
652970
+ create: MutationProcedure<{
652971
+ input: {
652972
+ is_active?: boolean | undefined;
652973
+ code?: string | null | undefined;
652974
+ name?: string | null | undefined;
652975
+ };
652976
+ output: {
652977
+ data: {
652978
+ is_active: boolean | null;
652979
+ id: number;
652980
+ name: string | null;
652981
+ logic_code: string | null;
652982
+ created_at: Date | null;
652983
+ created_by: string | null;
652984
+ updated_at: Date | null;
652985
+ updated_by: string | null;
652986
+ code: string | null;
652987
+ } | undefined;
652988
+ log: {
652989
+ id: number;
652990
+ id_log_type: number | null;
652991
+ url: string | null;
652992
+ params: SimpleJson;
652993
+ action: string | null;
652994
+ action_by: string | null;
652995
+ action_id: string | null;
652996
+ action_at: Date | null;
652997
+ id_tax_rate_type: number | null;
652998
+ } | undefined;
652999
+ };
653000
+ meta: object;
653001
+ }>;
653002
+ update: MutationProcedure<{
653003
+ input: {
653004
+ id?: number | null | undefined;
653005
+ id_string?: string | null | undefined;
653006
+ is_active?: boolean | undefined;
653007
+ code?: string | null | undefined;
653008
+ name?: string | null | undefined;
653009
+ };
653010
+ output: {
653011
+ data: {
653012
+ is_active: boolean | null;
653013
+ id: number;
653014
+ name: string | null;
653015
+ logic_code: string | null;
653016
+ created_at: Date | null;
653017
+ created_by: string | null;
653018
+ updated_at: Date | null;
653019
+ updated_by: string | null;
653020
+ code: string | null;
653021
+ } | undefined;
653022
+ log: {
653023
+ id: number;
653024
+ id_log_type: number | null;
653025
+ url: string | null;
653026
+ params: SimpleJson;
653027
+ action: string | null;
653028
+ action_by: string | null;
653029
+ action_id: string | null;
653030
+ action_at: Date | null;
653031
+ id_tax_rate_type: number | null;
653032
+ } | undefined;
653033
+ };
653034
+ meta: object;
653035
+ }>;
653036
+ delete: MutationProcedure<{
653037
+ input: {
653038
+ id?: number | null | undefined;
653039
+ ids?: number[] | null | undefined;
653040
+ id_string?: string | null | undefined;
653041
+ ids_string?: string[] | null | undefined;
653042
+ };
653043
+ output: {
653044
+ data: ({
653045
+ is_active: boolean | null;
653046
+ id: number;
653047
+ name: string | null;
653048
+ logic_code: string | null;
653049
+ created_at: Date | null;
653050
+ created_by: string | null;
653051
+ updated_at: Date | null;
653052
+ updated_by: string | null;
653053
+ code: string | null;
653054
+ } | undefined)[] | undefined;
653055
+ };
653056
+ meta: object;
653057
+ }>;
653058
+ }>>;
653059
+ systems: BuiltRouter<{
653060
+ ctx: Context;
653061
+ meta: object;
653062
+ errorShape: DefaultErrorShape;
653063
+ transformer: false;
653064
+ }, DecorateCreateRouterOptions<{
653065
+ get: MutationProcedure<{
653066
+ input: {
653067
+ search?: string | null | undefined;
653068
+ take?: number | null | undefined;
653069
+ skip?: number | null | undefined;
653070
+ is_active?: boolean[] | null | undefined;
653071
+ ids_include?: number[] | null | undefined;
653072
+ ids_exclude?: number[] | null | undefined;
653073
+ ids_string_include?: string[] | null | undefined;
653074
+ ids_string_exclude?: string[] | null | undefined;
653075
+ logic_codes_include?: string[] | null | undefined;
653076
+ logic_codes_exclude?: string[] | null | undefined;
653077
+ order_by?: {
653078
+ field: string;
653079
+ direction: "asc" | "desc";
653080
+ } | null | undefined;
653081
+ order_bys?: {
653082
+ field: string;
653083
+ direction: "asc" | "desc";
653084
+ }[] | null | undefined;
653085
+ };
653086
+ output: {
653087
+ data: {
653088
+ is_active: boolean | null;
653089
+ id: number;
653090
+ name: string | null;
653091
+ logic_code: string | null;
653092
+ created_at: Date | null;
653093
+ created_by: string | null;
653094
+ updated_at: Date | null;
653095
+ updated_by: string | null;
653096
+ code: string | null;
653097
+ }[] | undefined;
653098
+ total: number | undefined;
653099
+ };
653100
+ meta: object;
653101
+ }>;
653102
+ getDetail: MutationProcedure<{
653103
+ input: {
653104
+ id?: number | null | undefined;
653105
+ id_string?: string | null | undefined;
653106
+ };
653107
+ output: {
653108
+ data: {
653109
+ _count: {
653110
+ tax_rate_system_logs: number;
653111
+ tax_rates: number;
653112
+ };
653113
+ } & {
653114
+ is_active: boolean | null;
653115
+ id: number;
653116
+ name: string | null;
653117
+ logic_code: string | null;
653118
+ created_at: Date | null;
653119
+ created_by: string | null;
653120
+ updated_at: Date | null;
653121
+ updated_by: string | null;
653122
+ code: string | null;
653123
+ };
653124
+ };
653125
+ meta: object;
653126
+ }>;
653127
+ histories: BuiltRouter<{
653128
+ ctx: Context;
653129
+ meta: object;
653130
+ errorShape: DefaultErrorShape;
653131
+ transformer: false;
653132
+ }, DecorateCreateRouterOptions<{
653133
+ get: MutationProcedure<{
653134
+ input: {
653135
+ search?: string | null | undefined;
653136
+ take?: number | null | undefined;
653137
+ skip?: number | null | undefined;
653138
+ is_active?: boolean[] | null | undefined;
653139
+ ids_include?: number[] | null | undefined;
653140
+ ids_exclude?: number[] | null | undefined;
653141
+ ids_string_include?: string[] | null | undefined;
653142
+ ids_string_exclude?: string[] | null | undefined;
653143
+ logic_codes_include?: string[] | null | undefined;
653144
+ logic_codes_exclude?: string[] | null | undefined;
653145
+ order_by?: {
653146
+ field: string;
653147
+ direction: "asc" | "desc";
653148
+ } | null | undefined;
653149
+ order_bys?: {
653150
+ field: string;
653151
+ direction: "asc" | "desc";
653152
+ }[] | null | undefined;
653153
+ id_log_type?: number | null | undefined;
653154
+ ids_log_type?: number[] | null | undefined;
653155
+ id_tax_rate_system?: number | null | undefined;
653156
+ ids_tax_rate_system?: number[] | null | undefined;
653157
+ };
653158
+ output: {
653159
+ data: {
653160
+ log_type: {
653161
+ is_active: boolean | null;
653162
+ id: number;
653163
+ name: string | null;
653164
+ logic_code: string | null;
653165
+ created_at: Date | null;
653166
+ created_by: string | null;
653167
+ updated_at: Date | null;
653168
+ updated_by: string | null;
653169
+ } | null;
653170
+ id: number;
653171
+ id_log_type: number | null;
653172
+ url: string | null;
653173
+ params: SimpleJson;
653174
+ action: string | null;
653175
+ action_by: string | null;
653176
+ action_id: string | null;
653177
+ action_at: Date | null;
653178
+ id_tax_rate_system: number | null;
653179
+ }[] | undefined;
653180
+ total: number | undefined;
653181
+ };
653182
+ meta: object;
653183
+ }>;
653184
+ getDetail: MutationProcedure<{
653185
+ input: {
653186
+ id?: number | null | undefined;
653187
+ id_string?: string | null | undefined;
653188
+ };
653189
+ output: {
653190
+ data: {
653191
+ log_type: {
653192
+ is_active: boolean | null;
653193
+ id: number;
653194
+ name: string | null;
653195
+ logic_code: string | null;
653196
+ created_at: Date | null;
653197
+ created_by: string | null;
653198
+ updated_at: Date | null;
653199
+ updated_by: string | null;
653200
+ } | null;
653201
+ id: number;
653202
+ id_log_type: number | null;
653203
+ url: string | null;
653204
+ params: SimpleJson;
653205
+ action: string | null;
653206
+ action_by: string | null;
653207
+ action_id: string | null;
653208
+ action_at: Date | null;
653209
+ id_tax_rate_system: number | null;
653210
+ } | undefined;
653211
+ };
653212
+ meta: object;
653213
+ }>;
653214
+ }>>;
653215
+ create: MutationProcedure<{
653216
+ input: {
653217
+ is_active?: boolean | undefined;
653218
+ code?: string | null | undefined;
653219
+ name?: string | null | undefined;
653220
+ };
653221
+ output: {
653222
+ data: {
653223
+ is_active: boolean | null;
653224
+ id: number;
653225
+ name: string | null;
653226
+ logic_code: string | null;
653227
+ created_at: Date | null;
653228
+ created_by: string | null;
653229
+ updated_at: Date | null;
653230
+ updated_by: string | null;
653231
+ code: string | null;
653232
+ } | undefined;
653233
+ log: {
653234
+ id: number;
653235
+ id_log_type: number | null;
653236
+ url: string | null;
653237
+ params: SimpleJson;
653238
+ action: string | null;
653239
+ action_by: string | null;
653240
+ action_id: string | null;
653241
+ action_at: Date | null;
653242
+ id_tax_rate_system: number | null;
653243
+ } | undefined;
653244
+ };
653245
+ meta: object;
653246
+ }>;
653247
+ update: MutationProcedure<{
653248
+ input: {
653249
+ id?: number | null | undefined;
653250
+ id_string?: string | null | undefined;
653251
+ is_active?: boolean | undefined;
653252
+ code?: string | null | undefined;
653253
+ name?: string | null | undefined;
653254
+ };
653255
+ output: {
653256
+ data: {
653257
+ is_active: boolean | null;
653258
+ id: number;
653259
+ name: string | null;
653260
+ logic_code: string | null;
653261
+ created_at: Date | null;
653262
+ created_by: string | null;
653263
+ updated_at: Date | null;
653264
+ updated_by: string | null;
653265
+ code: string | null;
653266
+ } | undefined;
653267
+ log: {
653268
+ id: number;
653269
+ id_log_type: number | null;
653270
+ url: string | null;
653271
+ params: SimpleJson;
653272
+ action: string | null;
653273
+ action_by: string | null;
653274
+ action_id: string | null;
653275
+ action_at: Date | null;
653276
+ id_tax_rate_system: number | null;
653277
+ } | undefined;
653278
+ };
653279
+ meta: object;
653280
+ }>;
653281
+ delete: MutationProcedure<{
653282
+ input: {
653283
+ id?: number | null | undefined;
653284
+ ids?: number[] | null | undefined;
653285
+ id_string?: string | null | undefined;
653286
+ ids_string?: string[] | null | undefined;
653287
+ };
653288
+ output: {
653289
+ data: ({
653290
+ is_active: boolean | null;
653291
+ id: number;
653292
+ name: string | null;
653293
+ logic_code: string | null;
653294
+ created_at: Date | null;
653295
+ created_by: string | null;
653296
+ updated_at: Date | null;
653297
+ updated_by: string | null;
653298
+ code: string | null;
653299
+ } | undefined)[] | undefined;
653300
+ };
653301
+ meta: object;
653302
+ }>;
653303
+ }>>;
653304
+ }>>;
653305
+ }>>;
653306
+ userAdmin: BuiltRouter<{
653307
+ ctx: Context;
653308
+ meta: object;
653309
+ errorShape: DefaultErrorShape;
653310
+ transformer: false;
653311
+ }, DecorateCreateRouterOptions<{
653312
+ branches: BuiltRouter<{
653313
+ ctx: Context;
653314
+ meta: object;
653315
+ errorShape: DefaultErrorShape;
653316
+ transformer: false;
653317
+ }, DecorateCreateRouterOptions<{
653318
+ get: MutationProcedure<{
653319
+ input: {
653320
+ search?: string | null | undefined;
653321
+ take?: number | null | undefined;
653322
+ skip?: number | null | undefined;
653323
+ is_active?: boolean[] | null | undefined;
653324
+ ids_include?: number[] | null | undefined;
653325
+ ids_exclude?: number[] | null | undefined;
653326
+ ids_string_include?: string[] | null | undefined;
653327
+ ids_string_exclude?: string[] | null | undefined;
653328
+ logic_codes_include?: string[] | null | undefined;
653329
+ logic_codes_exclude?: string[] | null | undefined;
653330
+ order_by?: {
653331
+ field: string;
653332
+ direction: "asc" | "desc";
653333
+ } | null | undefined;
653334
+ order_bys?: {
653335
+ field: string;
653336
+ direction: "asc" | "desc";
653337
+ }[] | null | undefined;
653338
+ id_company?: number | null | undefined;
653339
+ ids_company?: number[] | null | undefined;
653340
+ id_country?: number | null | undefined;
653341
+ ids_country?: number[] | null | undefined;
653342
+ id_state?: number | null | undefined;
653343
+ ids_state?: number[] | null | undefined;
653344
+ id_city?: number | null | undefined;
653345
+ ids_city?: number[] | null | undefined;
653346
+ id_postal_code?: number | null | undefined;
653347
+ ids_postal_code?: number[] | null | undefined;
653348
+ id_un_locode?: number | null | undefined;
653349
+ ids_un_locode?: number[] | null | undefined;
653350
+ };
653351
+ output: {
653352
+ data: ({
653353
+ un_locode: {
653354
+ is_active: boolean | null;
653355
+ id_country: number | null;
653356
+ id_state: number | null;
653357
+ id_city: number | null;
653358
+ id: number;
653359
+ logic_code: string | null;
653360
+ created_at: Date | null;
653361
+ created_by: string | null;
653362
+ updated_at: Date | null;
653363
+ updated_by: string | null;
653364
+ id_time_zone: number | null;
653365
+ un_code: string | null;
653366
+ iata_code: string | null;
653367
+ iata_region_code: string | null;
653368
+ latitude: Decimal | null;
653369
+ longitude: Decimal | null;
653370
+ port_name: string | null;
653371
+ proper_name: string | null;
653372
+ has_post: boolean | null;
653373
+ has_customs: boolean | null;
653374
+ has_unload: boolean | null;
653375
+ has_airport: boolean | null;
653376
+ has_railway: boolean | null;
653377
+ has_road: boolean | null;
653378
+ has_store: boolean | null;
653379
+ has_terminal: boolean | null;
653380
+ has_discharge: boolean | null;
653381
+ has_seaport: boolean | null;
653382
+ has_outport: boolean | null;
653383
+ } | null;
653384
+ country: {
653385
+ is_active: boolean | null;
653386
+ id: number;
653387
+ name: string | null;
653388
+ logic_code: string | null;
653389
+ created_at: Date | null;
653390
+ created_by: string | null;
653391
+ updated_at: Date | null;
653392
+ updated_by: string | null;
653393
+ id_currency: number | null;
653394
+ iso2_code: string | null;
653395
+ iso3_code: string | null;
653396
+ iso3_numeric: string | null;
653397
+ is_sanctioned: boolean | null;
653398
+ } | null;
653399
+ state: {
653400
+ is_active: boolean | null;
653401
+ id_country: number | null;
653402
+ id: number;
653403
+ name: string | null;
653404
+ logic_code: string | null;
653405
+ created_at: Date | null;
653406
+ created_by: string | null;
653407
+ updated_at: Date | null;
653408
+ updated_by: string | null;
653409
+ code: string | null;
653410
+ } | null;
653411
+ city: {
653412
+ is_active: boolean | null;
653413
+ id_country: number | null;
653414
+ id_state: number | null;
653415
+ id: number;
653416
+ name: string | null;
653417
+ logic_code: string | null;
653418
+ created_at: Date | null;
653419
+ created_by: string | null;
653420
+ updated_at: Date | null;
653421
+ updated_by: string | null;
653422
+ code: string | null;
653423
+ } | null;
653424
+ postal_code: {
653425
+ is_active: boolean | null;
653426
+ id_country: number | null;
653427
+ id: number;
653428
+ logic_code: string | null;
653429
+ created_at: Date | null;
653430
+ created_by: string | null;
653431
+ updated_at: Date | null;
653432
+ updated_by: string | null;
653433
+ code: string | null;
653434
+ } | null;
653435
+ company: {
653436
+ is_active: boolean | null;
653437
+ id_un_locode: number | null;
653438
+ id_country: number | null;
653439
+ id_state: number | null;
653440
+ id_city: number | null;
653441
+ id_postal_code: number | null;
653442
+ id: number;
653443
+ name: string | null;
653444
+ logic_code: string | null;
653445
+ created_at: Date | null;
653446
+ created_by: string | null;
653447
+ updated_at: Date | null;
653448
+ updated_by: string | null;
653449
+ code: string | null;
653450
+ address: string | null;
653451
+ } | null;
653452
+ } & {
653453
+ is_active: boolean | null;
653454
+ id_un_locode: number | null;
653455
+ id_country: number | null;
653456
+ id_state: number | null;
653457
+ id_city: number | null;
653458
+ id_postal_code: number | null;
653459
+ id: number;
653460
+ name: string | null;
653461
+ logic_code: string | null;
653462
+ created_at: Date | null;
653463
+ created_by: string | null;
653464
+ updated_at: Date | null;
653465
+ updated_by: string | null;
653466
+ code: string | null;
653467
+ address: string | null;
653468
+ id_company: number | null;
653469
+ })[] | undefined;
653470
+ total: number | undefined;
653471
+ };
653472
+ meta: object;
653473
+ }>;
653474
+ getDetail: MutationProcedure<{
653475
+ input: {
653476
+ id?: number | null | undefined;
653477
+ id_string?: string | null | undefined;
653478
+ };
653479
+ output: {
653480
+ data: {
653481
+ un_locode: {
653482
+ is_active: boolean | null;
653483
+ id_country: number | null;
653484
+ id_state: number | null;
653485
+ id_city: number | null;
653486
+ id: number;
653487
+ logic_code: string | null;
653488
+ created_at: Date | null;
653489
+ created_by: string | null;
653490
+ updated_at: Date | null;
653491
+ updated_by: string | null;
653492
+ id_time_zone: number | null;
653493
+ un_code: string | null;
653494
+ iata_code: string | null;
653495
+ iata_region_code: string | null;
653496
+ latitude: Decimal | null;
653497
+ longitude: Decimal | null;
653498
+ port_name: string | null;
653499
+ proper_name: string | null;
653500
+ has_post: boolean | null;
653501
+ has_customs: boolean | null;
653502
+ has_unload: boolean | null;
653503
+ has_airport: boolean | null;
653504
+ has_railway: boolean | null;
653505
+ has_road: boolean | null;
653506
+ has_store: boolean | null;
653507
+ has_terminal: boolean | null;
653508
+ has_discharge: boolean | null;
653509
+ has_seaport: boolean | null;
653510
+ has_outport: boolean | null;
653511
+ } | null;
653512
+ country: {
653513
+ is_active: boolean | null;
653514
+ id: number;
653515
+ name: string | null;
653516
+ logic_code: string | null;
653517
+ created_at: Date | null;
653518
+ created_by: string | null;
653519
+ updated_at: Date | null;
653520
+ updated_by: string | null;
653521
+ id_currency: number | null;
653522
+ iso2_code: string | null;
653523
+ iso3_code: string | null;
653524
+ iso3_numeric: string | null;
653525
+ is_sanctioned: boolean | null;
653526
+ } | null;
653527
+ state: {
653528
+ is_active: boolean | null;
653529
+ id_country: number | null;
653530
+ id: number;
653531
+ name: string | null;
653532
+ logic_code: string | null;
653533
+ created_at: Date | null;
653534
+ created_by: string | null;
653535
+ updated_at: Date | null;
653536
+ updated_by: string | null;
653537
+ code: string | null;
653538
+ } | null;
653539
+ city: {
653540
+ is_active: boolean | null;
653541
+ id_country: number | null;
653542
+ id_state: number | null;
653543
+ id: number;
653544
+ name: string | null;
653545
+ logic_code: string | null;
653546
+ created_at: Date | null;
653547
+ created_by: string | null;
653548
+ updated_at: Date | null;
653549
+ updated_by: string | null;
653550
+ code: string | null;
653551
+ } | null;
653552
+ postal_code: {
653553
+ is_active: boolean | null;
653554
+ id_country: number | null;
653555
+ id: number;
653556
+ logic_code: string | null;
653557
+ created_at: Date | null;
653558
+ created_by: string | null;
653559
+ updated_at: Date | null;
653560
+ updated_by: string | null;
653561
+ code: string | null;
653562
+ } | null;
653563
+ _count: {
653564
+ company: number;
653565
+ country: number;
653566
+ state: number;
653567
+ city: number;
653568
+ postal_code: number;
653569
+ un_locode: number;
653570
+ branch_logs: number;
653571
+ users: number;
653572
+ bank_accounts: number;
653573
+ forwarding_shipment_billings: number;
653574
+ organization_account_credit_control_settlements: number;
653575
+ };
653576
+ company: {
653577
+ is_active: boolean | null;
653578
+ id_un_locode: number | null;
653579
+ id_country: number | null;
653580
+ id_state: number | null;
653581
+ id_city: number | null;
653582
+ id_postal_code: number | null;
653583
+ id: number;
653584
+ name: string | null;
653585
+ logic_code: string | null;
653586
+ created_at: Date | null;
653587
+ created_by: string | null;
653588
+ updated_at: Date | null;
653589
+ updated_by: string | null;
653590
+ code: string | null;
653591
+ address: string | null;
653592
+ } | null;
653593
+ } & {
653594
+ is_active: boolean | null;
653595
+ id_un_locode: number | null;
653596
+ id_country: number | null;
653597
+ id_state: number | null;
653598
+ id_city: number | null;
653599
+ id_postal_code: number | null;
653600
+ id: number;
653601
+ name: string | null;
653602
+ logic_code: string | null;
653603
+ created_at: Date | null;
653604
+ created_by: string | null;
653605
+ updated_at: Date | null;
653606
+ updated_by: string | null;
653607
+ code: string | null;
653608
+ address: string | null;
653609
+ id_company: number | null;
653610
+ };
653611
+ };
653612
+ meta: object;
653613
+ }>;
653614
+ histories: BuiltRouter<{
653615
+ ctx: Context;
653616
+ meta: object;
653617
+ errorShape: DefaultErrorShape;
653618
+ transformer: false;
653619
+ }, DecorateCreateRouterOptions<{
653620
+ get: MutationProcedure<{
653621
+ input: {
653622
+ search?: string | null | undefined;
653623
+ take?: number | null | undefined;
653624
+ skip?: number | null | undefined;
653625
+ is_active?: boolean[] | null | undefined;
653626
+ ids_include?: number[] | null | undefined;
653627
+ ids_exclude?: number[] | null | undefined;
653628
+ ids_string_include?: string[] | null | undefined;
653629
+ ids_string_exclude?: string[] | null | undefined;
653630
+ logic_codes_include?: string[] | null | undefined;
653631
+ logic_codes_exclude?: string[] | null | undefined;
653632
+ order_by?: {
653633
+ field: string;
653634
+ direction: "asc" | "desc";
653635
+ } | null | undefined;
653636
+ order_bys?: {
653637
+ field: string;
653638
+ direction: "asc" | "desc";
653639
+ }[] | null | undefined;
653640
+ id_log_type?: number | null | undefined;
653641
+ ids_log_type?: number[] | null | undefined;
653642
+ id_branch?: number | null | undefined;
653643
+ ids_branch?: number[] | null | undefined;
653644
+ };
653645
+ output: {
653646
+ data: {
653647
+ log_type: {
653648
+ is_active: boolean | null;
653649
+ id: number;
653650
+ name: string | null;
653651
+ logic_code: string | null;
653652
+ created_at: Date | null;
653653
+ created_by: string | null;
653654
+ updated_at: Date | null;
653655
+ updated_by: string | null;
653656
+ } | null;
653657
+ id: number;
653658
+ id_log_type: number | null;
653659
+ url: string | null;
653660
+ params: SimpleJson;
653661
+ action: string | null;
653662
+ action_by: string | null;
653663
+ action_id: string | null;
653664
+ action_at: Date | null;
653665
+ id_branch: number | null;
653666
+ }[] | undefined;
653667
+ total: number | undefined;
653668
+ };
653669
+ meta: object;
653670
+ }>;
653671
+ getDetail: MutationProcedure<{
653672
+ input: {
653673
+ id?: number | null | undefined;
653674
+ id_string?: string | null | undefined;
653675
+ };
653676
+ output: {
653677
+ data: {
653678
+ log_type: {
653679
+ is_active: boolean | null;
653680
+ id: number;
653681
+ name: string | null;
653682
+ logic_code: string | null;
653683
+ created_at: Date | null;
653684
+ created_by: string | null;
653685
+ updated_at: Date | null;
653686
+ updated_by: string | null;
653687
+ } | null;
653688
+ id: number;
653689
+ id_log_type: number | null;
653690
+ url: string | null;
653691
+ params: SimpleJson;
653692
+ action: string | null;
653693
+ action_by: string | null;
653694
+ action_id: string | null;
653695
+ action_at: Date | null;
653696
+ id_branch: number | null;
653697
+ } | undefined;
653698
+ };
653699
+ meta: object;
653700
+ }>;
653701
+ }>>;
653702
+ create: MutationProcedure<{
653703
+ input: {
653704
+ is_active?: boolean | undefined;
653705
+ id_company?: number | null | undefined;
653706
+ id_country?: number | null | undefined;
653707
+ id_state?: number | null | undefined;
653708
+ id_city?: number | null | undefined;
653709
+ id_postal_code?: number | null | undefined;
653710
+ id_un_locode?: number | null | undefined;
653711
+ code?: string | null | undefined;
653712
+ name?: string | null | undefined;
653713
+ address?: string | null | undefined;
653714
+ };
653715
+ output: {
653716
+ data: {
653717
+ is_active: boolean | null;
653718
+ id_un_locode: number | null;
653719
+ id_country: number | null;
653720
+ id_state: number | null;
653721
+ id_city: number | null;
653722
+ id_postal_code: number | null;
653723
+ id: number;
653724
+ name: string | null;
653725
+ logic_code: string | null;
653726
+ created_at: Date | null;
653727
+ created_by: string | null;
653728
+ updated_at: Date | null;
653729
+ updated_by: string | null;
653730
+ code: string | null;
653731
+ address: string | null;
653732
+ id_company: number | null;
653733
+ } | undefined;
653734
+ log: {
653735
+ id: number;
653736
+ id_log_type: number | null;
653737
+ url: string | null;
653738
+ params: SimpleJson;
653739
+ action: string | null;
653740
+ action_by: string | null;
653741
+ action_id: string | null;
653742
+ action_at: Date | null;
653743
+ id_branch: number | null;
653744
+ } | undefined;
653745
+ };
653746
+ meta: object;
653747
+ }>;
653748
+ update: MutationProcedure<{
653749
+ input: {
653750
+ id?: number | null | undefined;
653751
+ id_string?: string | null | undefined;
653752
+ is_active?: boolean | undefined;
653753
+ id_company?: number | null | undefined;
653754
+ id_country?: number | null | undefined;
653755
+ id_state?: number | null | undefined;
653756
+ id_city?: number | null | undefined;
653757
+ id_postal_code?: number | null | undefined;
653758
+ id_un_locode?: number | null | undefined;
653759
+ code?: string | null | undefined;
653760
+ name?: string | null | undefined;
653761
+ address?: string | null | undefined;
653762
+ };
653763
+ output: {
653764
+ data: {
653765
+ is_active: boolean | null;
653766
+ id_un_locode: number | null;
653767
+ id_country: number | null;
653768
+ id_state: number | null;
653769
+ id_city: number | null;
653770
+ id_postal_code: number | null;
653771
+ id: number;
653772
+ name: string | null;
653773
+ logic_code: string | null;
653774
+ created_at: Date | null;
653775
+ created_by: string | null;
653776
+ updated_at: Date | null;
653777
+ updated_by: string | null;
653778
+ code: string | null;
653779
+ address: string | null;
653780
+ id_company: number | null;
653781
+ } | undefined;
653782
+ log: {
653783
+ id: number;
653784
+ id_log_type: number | null;
653785
+ url: string | null;
653786
+ params: SimpleJson;
653787
+ action: string | null;
653788
+ action_by: string | null;
653789
+ action_id: string | null;
653790
+ action_at: Date | null;
653791
+ id_branch: number | null;
653792
+ } | undefined;
653793
+ };
653794
+ meta: object;
653795
+ }>;
653796
+ delete: MutationProcedure<{
653797
+ input: {
653798
+ id?: number | null | undefined;
653799
+ ids?: number[] | null | undefined;
653800
+ id_string?: string | null | undefined;
653801
+ ids_string?: string[] | null | undefined;
653802
+ };
653803
+ output: {
653804
+ data: ({
653805
+ is_active: boolean | null;
653806
+ id_un_locode: number | null;
653807
+ id_country: number | null;
653808
+ id_state: number | null;
653809
+ id_city: number | null;
653810
+ id_postal_code: number | null;
653811
+ id: number;
653812
+ name: string | null;
653813
+ logic_code: string | null;
653814
+ created_at: Date | null;
653815
+ created_by: string | null;
653816
+ updated_at: Date | null;
653817
+ updated_by: string | null;
653818
+ code: string | null;
653819
+ address: string | null;
653820
+ id_company: number | null;
653821
+ } | undefined)[] | undefined;
653822
+ };
653823
+ meta: object;
653824
+ }>;
653825
+ }>>;
653826
+ companies: BuiltRouter<{
653827
+ ctx: Context;
653828
+ meta: object;
653829
+ errorShape: DefaultErrorShape;
653830
+ transformer: false;
653831
+ }, DecorateCreateRouterOptions<{
653832
+ get: MutationProcedure<{
653833
+ input: {
653834
+ search?: string | null | undefined;
653835
+ take?: number | null | undefined;
653836
+ skip?: number | null | undefined;
653837
+ is_active?: boolean[] | null | undefined;
653838
+ ids_include?: number[] | null | undefined;
653839
+ ids_exclude?: number[] | null | undefined;
653840
+ ids_string_include?: string[] | null | undefined;
653841
+ ids_string_exclude?: string[] | null | undefined;
653842
+ logic_codes_include?: string[] | null | undefined;
653843
+ logic_codes_exclude?: string[] | null | undefined;
653844
+ order_by?: {
653845
+ field: string;
653846
+ direction: "asc" | "desc";
653847
+ } | null | undefined;
653848
+ order_bys?: {
653849
+ field: string;
653850
+ direction: "asc" | "desc";
653851
+ }[] | null | undefined;
653852
+ id_country?: number | null | undefined;
653853
+ ids_country?: number[] | null | undefined;
653854
+ id_state?: number | null | undefined;
653855
+ ids_state?: number[] | null | undefined;
653856
+ id_city?: number | null | undefined;
653857
+ ids_city?: number[] | null | undefined;
653858
+ id_postal_code?: number | null | undefined;
653859
+ ids_postal_code?: number[] | null | undefined;
653860
+ id_un_locode?: number | null | undefined;
653861
+ ids_un_locode?: number[] | null | undefined;
653862
+ };
653863
+ output: {
653864
+ data: ({
653865
+ un_locode: {
653866
+ is_active: boolean | null;
653867
+ id_country: number | null;
653868
+ id_state: number | null;
653869
+ id_city: number | null;
653870
+ id: number;
653871
+ logic_code: string | null;
653872
+ created_at: Date | null;
653873
+ created_by: string | null;
653874
+ updated_at: Date | null;
653875
+ updated_by: string | null;
653876
+ id_time_zone: number | null;
653877
+ un_code: string | null;
653878
+ iata_code: string | null;
653879
+ iata_region_code: string | null;
653880
+ latitude: Decimal | null;
653881
+ longitude: Decimal | null;
653882
+ port_name: string | null;
653883
+ proper_name: string | null;
653884
+ has_post: boolean | null;
653885
+ has_customs: boolean | null;
653886
+ has_unload: boolean | null;
653887
+ has_airport: boolean | null;
653888
+ has_railway: boolean | null;
653889
+ has_road: boolean | null;
653890
+ has_store: boolean | null;
653891
+ has_terminal: boolean | null;
653892
+ has_discharge: boolean | null;
653893
+ has_seaport: boolean | null;
653894
+ has_outport: boolean | null;
653895
+ } | null;
653896
+ country: {
653897
+ is_active: boolean | null;
653898
+ id: number;
653899
+ name: string | null;
653900
+ logic_code: string | null;
653901
+ created_at: Date | null;
653902
+ created_by: string | null;
653903
+ updated_at: Date | null;
653904
+ updated_by: string | null;
653905
+ id_currency: number | null;
653906
+ iso2_code: string | null;
653907
+ iso3_code: string | null;
653908
+ iso3_numeric: string | null;
653909
+ is_sanctioned: boolean | null;
653910
+ } | null;
653911
+ state: {
653912
+ is_active: boolean | null;
653913
+ id_country: number | null;
653914
+ id: number;
653915
+ name: string | null;
653916
+ logic_code: string | null;
653917
+ created_at: Date | null;
653918
+ created_by: string | null;
653919
+ updated_at: Date | null;
653920
+ updated_by: string | null;
653921
+ code: string | null;
653922
+ } | null;
653923
+ city: {
653924
+ is_active: boolean | null;
653925
+ id_country: number | null;
653926
+ id_state: number | null;
653927
+ id: number;
653928
+ name: string | null;
653929
+ logic_code: string | null;
653930
+ created_at: Date | null;
653931
+ created_by: string | null;
653932
+ updated_at: Date | null;
653933
+ updated_by: string | null;
653934
+ code: string | null;
653935
+ } | null;
653936
+ postal_code: {
653937
+ is_active: boolean | null;
653938
+ id_country: number | null;
653939
+ id: number;
653940
+ logic_code: string | null;
653941
+ created_at: Date | null;
653942
+ created_by: string | null;
653943
+ updated_at: Date | null;
653944
+ updated_by: string | null;
653945
+ code: string | null;
653946
+ } | null;
653947
+ } & {
653948
+ is_active: boolean | null;
653949
+ id_un_locode: number | null;
653950
+ id_country: number | null;
653951
+ id_state: number | null;
653952
+ id_city: number | null;
653953
+ id_postal_code: number | null;
653954
+ id: number;
653955
+ name: string | null;
653956
+ logic_code: string | null;
653957
+ created_at: Date | null;
653958
+ created_by: string | null;
653959
+ updated_at: Date | null;
653960
+ updated_by: string | null;
653961
+ code: string | null;
653962
+ address: string | null;
653963
+ })[] | undefined;
653964
+ total: number | undefined;
653965
+ };
653966
+ meta: object;
653967
+ }>;
653968
+ getDetail: MutationProcedure<{
653969
+ input: {
653970
+ id?: number | null | undefined;
653971
+ id_string?: string | null | undefined;
653972
+ };
653973
+ output: {
653974
+ data: {
653975
+ un_locode: {
653976
+ is_active: boolean | null;
653977
+ id_country: number | null;
653978
+ id_state: number | null;
653979
+ id_city: number | null;
653980
+ id: number;
653981
+ logic_code: string | null;
653982
+ created_at: Date | null;
653983
+ created_by: string | null;
653984
+ updated_at: Date | null;
653985
+ updated_by: string | null;
653986
+ id_time_zone: number | null;
653987
+ un_code: string | null;
653988
+ iata_code: string | null;
653989
+ iata_region_code: string | null;
653990
+ latitude: Decimal | null;
653991
+ longitude: Decimal | null;
653992
+ port_name: string | null;
653993
+ proper_name: string | null;
653994
+ has_post: boolean | null;
653995
+ has_customs: boolean | null;
653996
+ has_unload: boolean | null;
653997
+ has_airport: boolean | null;
653998
+ has_railway: boolean | null;
653999
+ has_road: boolean | null;
654000
+ has_store: boolean | null;
654001
+ has_terminal: boolean | null;
654002
+ has_discharge: boolean | null;
654003
+ has_seaport: boolean | null;
654004
+ has_outport: boolean | null;
654005
+ } | null;
654006
+ country: {
654007
+ is_active: boolean | null;
654008
+ id: number;
654009
+ name: string | null;
654010
+ logic_code: string | null;
654011
+ created_at: Date | null;
654012
+ created_by: string | null;
654013
+ updated_at: Date | null;
654014
+ updated_by: string | null;
654015
+ id_currency: number | null;
654016
+ iso2_code: string | null;
654017
+ iso3_code: string | null;
654018
+ iso3_numeric: string | null;
654019
+ is_sanctioned: boolean | null;
654020
+ } | null;
654021
+ state: {
654022
+ is_active: boolean | null;
654023
+ id_country: number | null;
654024
+ id: number;
654025
+ name: string | null;
654026
+ logic_code: string | null;
654027
+ created_at: Date | null;
654028
+ created_by: string | null;
654029
+ updated_at: Date | null;
654030
+ updated_by: string | null;
654031
+ code: string | null;
654032
+ } | null;
654033
+ city: {
654034
+ is_active: boolean | null;
654035
+ id_country: number | null;
654036
+ id_state: number | null;
654037
+ id: number;
654038
+ name: string | null;
654039
+ logic_code: string | null;
654040
+ created_at: Date | null;
654041
+ created_by: string | null;
654042
+ updated_at: Date | null;
654043
+ updated_by: string | null;
654044
+ code: string | null;
654045
+ } | null;
654046
+ postal_code: {
654047
+ is_active: boolean | null;
654048
+ id_country: number | null;
654049
+ id: number;
654050
+ logic_code: string | null;
654051
+ created_at: Date | null;
654052
+ created_by: string | null;
654053
+ updated_at: Date | null;
654054
+ updated_by: string | null;
654055
+ code: string | null;
654056
+ } | null;
654057
+ _count: {
654058
+ country: number;
654059
+ state: number;
654060
+ city: number;
654061
+ postal_code: number;
654062
+ un_locode: number;
654063
+ company_logs: number;
654064
+ users: number;
654065
+ bank_accounts: number;
654066
+ branches: number;
654067
+ department: number;
654068
+ gl_account_company_pivots: number;
654069
+ organization_account_payable_details: number;
654070
+ organization_account_receivable_details: number;
654071
+ };
654072
+ } & {
654073
+ is_active: boolean | null;
654074
+ id_un_locode: number | null;
654075
+ id_country: number | null;
654076
+ id_state: number | null;
654077
+ id_city: number | null;
654078
+ id_postal_code: number | null;
654079
+ id: number;
654080
+ name: string | null;
654081
+ logic_code: string | null;
654082
+ created_at: Date | null;
654083
+ created_by: string | null;
654084
+ updated_at: Date | null;
654085
+ updated_by: string | null;
654086
+ code: string | null;
654087
+ address: string | null;
654088
+ };
654089
+ };
654090
+ meta: object;
654091
+ }>;
654092
+ histories: BuiltRouter<{
654093
+ ctx: Context;
654094
+ meta: object;
654095
+ errorShape: DefaultErrorShape;
654096
+ transformer: false;
654097
+ }, DecorateCreateRouterOptions<{
654098
+ get: MutationProcedure<{
654099
+ input: {
654100
+ search?: string | null | undefined;
654101
+ take?: number | null | undefined;
654102
+ skip?: number | null | undefined;
654103
+ is_active?: boolean[] | null | undefined;
654104
+ ids_include?: number[] | null | undefined;
654105
+ ids_exclude?: number[] | null | undefined;
654106
+ ids_string_include?: string[] | null | undefined;
654107
+ ids_string_exclude?: string[] | null | undefined;
654108
+ logic_codes_include?: string[] | null | undefined;
654109
+ logic_codes_exclude?: string[] | null | undefined;
654110
+ order_by?: {
654111
+ field: string;
654112
+ direction: "asc" | "desc";
654113
+ } | null | undefined;
654114
+ order_bys?: {
654115
+ field: string;
654116
+ direction: "asc" | "desc";
654117
+ }[] | null | undefined;
654118
+ id_log_type?: number | null | undefined;
654119
+ ids_log_type?: number[] | null | undefined;
654120
+ id_company?: number | null | undefined;
654121
+ ids_company?: number[] | null | undefined;
654122
+ };
654123
+ output: {
654124
+ data: {
654125
+ log_type: {
654126
+ is_active: boolean | null;
654127
+ id: number;
654128
+ name: string | null;
654129
+ logic_code: string | null;
654130
+ created_at: Date | null;
654131
+ created_by: string | null;
654132
+ updated_at: Date | null;
654133
+ updated_by: string | null;
654134
+ } | null;
654135
+ id: number;
654136
+ id_log_type: number | null;
654137
+ url: string | null;
654138
+ params: SimpleJson;
654139
+ action: string | null;
654140
+ action_by: string | null;
654141
+ action_id: string | null;
654142
+ action_at: Date | null;
654143
+ id_company: number | null;
654144
+ }[] | undefined;
654145
+ total: number | undefined;
654146
+ };
654147
+ meta: object;
654148
+ }>;
654149
+ getDetail: MutationProcedure<{
654150
+ input: {
654151
+ id?: number | null | undefined;
654152
+ id_string?: string | null | undefined;
654153
+ };
654154
+ output: {
654155
+ data: {
654156
+ log_type: {
654157
+ is_active: boolean | null;
654158
+ id: number;
654159
+ name: string | null;
654160
+ logic_code: string | null;
654161
+ created_at: Date | null;
654162
+ created_by: string | null;
654163
+ updated_at: Date | null;
654164
+ updated_by: string | null;
654165
+ } | null;
654166
+ id: number;
654167
+ id_log_type: number | null;
654168
+ url: string | null;
654169
+ params: SimpleJson;
654170
+ action: string | null;
654171
+ action_by: string | null;
654172
+ action_id: string | null;
654173
+ action_at: Date | null;
654174
+ id_company: number | null;
654175
+ } | undefined;
654176
+ };
654177
+ meta: object;
654178
+ }>;
654179
+ }>>;
654180
+ create: MutationProcedure<{
654181
+ input: {
654182
+ is_active?: boolean | undefined;
654183
+ id_country?: number | null | undefined;
654184
+ id_state?: number | null | undefined;
654185
+ id_city?: number | null | undefined;
654186
+ id_postal_code?: number | null | undefined;
654187
+ id_un_locode?: number | null | undefined;
654188
+ code?: string | null | undefined;
654189
+ name?: string | null | undefined;
654190
+ address?: string | null | undefined;
654191
+ };
654192
+ output: {
654193
+ data: {
654194
+ is_active: boolean | null;
654195
+ id_un_locode: number | null;
654196
+ id_country: number | null;
654197
+ id_state: number | null;
654198
+ id_city: number | null;
654199
+ id_postal_code: number | null;
654200
+ id: number;
654201
+ name: string | null;
654202
+ logic_code: string | null;
654203
+ created_at: Date | null;
654204
+ created_by: string | null;
654205
+ updated_at: Date | null;
654206
+ updated_by: string | null;
654207
+ code: string | null;
654208
+ address: string | null;
654209
+ } | undefined;
654210
+ log: {
654211
+ id: number;
654212
+ id_log_type: number | null;
654213
+ url: string | null;
654214
+ params: SimpleJson;
654215
+ action: string | null;
654216
+ action_by: string | null;
654217
+ action_id: string | null;
654218
+ action_at: Date | null;
654219
+ id_company: number | null;
654220
+ } | undefined;
654221
+ };
654222
+ meta: object;
654223
+ }>;
654224
+ update: MutationProcedure<{
654225
+ input: {
654226
+ id?: number | null | undefined;
654227
+ id_string?: string | null | undefined;
654228
+ is_active?: boolean | undefined;
654229
+ id_country?: number | null | undefined;
654230
+ id_state?: number | null | undefined;
654231
+ id_city?: number | null | undefined;
654232
+ id_postal_code?: number | null | undefined;
654233
+ id_un_locode?: number | null | undefined;
654234
+ code?: string | null | undefined;
654235
+ name?: string | null | undefined;
654236
+ address?: string | null | undefined;
654237
+ };
654238
+ output: {
654239
+ data: {
654240
+ is_active: boolean | null;
654241
+ id_un_locode: number | null;
654242
+ id_country: number | null;
654243
+ id_state: number | null;
654244
+ id_city: number | null;
654245
+ id_postal_code: number | null;
654246
+ id: number;
654247
+ name: string | null;
654248
+ logic_code: string | null;
654249
+ created_at: Date | null;
654250
+ created_by: string | null;
654251
+ updated_at: Date | null;
654252
+ updated_by: string | null;
654253
+ code: string | null;
654254
+ address: string | null;
654255
+ } | undefined;
654256
+ log: {
654257
+ id: number;
654258
+ id_log_type: number | null;
654259
+ url: string | null;
654260
+ params: SimpleJson;
654261
+ action: string | null;
654262
+ action_by: string | null;
654263
+ action_id: string | null;
654264
+ action_at: Date | null;
654265
+ id_company: number | null;
654266
+ } | undefined;
654267
+ };
654268
+ meta: object;
654269
+ }>;
654270
+ delete: MutationProcedure<{
654271
+ input: {
654272
+ id?: number | null | undefined;
654273
+ ids?: number[] | null | undefined;
654274
+ id_string?: string | null | undefined;
654275
+ ids_string?: string[] | null | undefined;
654276
+ };
654277
+ output: {
654278
+ data: ({
654279
+ is_active: boolean | null;
654280
+ id_un_locode: number | null;
654281
+ id_country: number | null;
654282
+ id_state: number | null;
654283
+ id_city: number | null;
654284
+ id_postal_code: number | null;
654285
+ id: number;
654286
+ name: string | null;
654287
+ logic_code: string | null;
654288
+ created_at: Date | null;
654289
+ created_by: string | null;
654290
+ updated_at: Date | null;
654291
+ updated_by: string | null;
654292
+ code: string | null;
654293
+ address: string | null;
654294
+ } | undefined)[] | undefined;
654295
+ };
654296
+ meta: object;
654297
+ }>;
654298
+ }>>;
654299
+ departments: BuiltRouter<{
654300
+ ctx: Context;
654301
+ meta: object;
654302
+ errorShape: DefaultErrorShape;
654303
+ transformer: false;
654304
+ }, DecorateCreateRouterOptions<{
654305
+ get: MutationProcedure<{
654306
+ input: {
654307
+ search?: string | null | undefined;
654308
+ take?: number | null | undefined;
654309
+ skip?: number | null | undefined;
654310
+ is_active?: boolean[] | null | undefined;
654311
+ ids_include?: number[] | null | undefined;
654312
+ ids_exclude?: number[] | null | undefined;
654313
+ ids_string_include?: string[] | null | undefined;
654314
+ ids_string_exclude?: string[] | null | undefined;
654315
+ logic_codes_include?: string[] | null | undefined;
654316
+ logic_codes_exclude?: string[] | null | undefined;
654317
+ order_by?: {
654318
+ field: string;
654319
+ direction: "asc" | "desc";
654320
+ } | null | undefined;
654321
+ order_bys?: {
654322
+ field: string;
654323
+ direction: "asc" | "desc";
654324
+ }[] | null | undefined;
654325
+ id_company?: number | null | undefined;
654326
+ ids_company?: number[] | null | undefined;
654327
+ };
654328
+ output: {
654329
+ data: ({
654330
+ company: {
654331
+ is_active: boolean | null;
654332
+ id_un_locode: number | null;
654333
+ id_country: number | null;
654334
+ id_state: number | null;
654335
+ id_city: number | null;
654336
+ id_postal_code: number | null;
654337
+ id: number;
654338
+ name: string | null;
654339
+ logic_code: string | null;
654340
+ created_at: Date | null;
654341
+ created_by: string | null;
654342
+ updated_at: Date | null;
654343
+ updated_by: string | null;
654344
+ code: string | null;
654345
+ address: string | null;
654346
+ } | null;
654347
+ } & {
654348
+ is_active: boolean | null;
654349
+ id: number;
654350
+ name: string | null;
654351
+ logic_code: string | null;
654352
+ created_at: Date | null;
654353
+ created_by: string | null;
654354
+ updated_at: Date | null;
654355
+ updated_by: string | null;
654356
+ code: string | null;
654357
+ id_company: number | null;
654358
+ })[] | undefined;
654359
+ total: number | undefined;
654360
+ };
654361
+ meta: object;
654362
+ }>;
654363
+ getDetail: MutationProcedure<{
654364
+ input: {
654365
+ id?: number | null | undefined;
654366
+ id_string?: string | null | undefined;
654367
+ };
654368
+ output: {
654369
+ data: {
654370
+ _count: {
654371
+ company: number;
654372
+ department_logs: number;
654373
+ users: number;
654374
+ charge_codes: number;
654375
+ forwarding_shipment_billings: number;
654376
+ organization_account_credit_control_settlements: number;
654377
+ };
654378
+ company: {
654379
+ is_active: boolean | null;
654380
+ id_un_locode: number | null;
654381
+ id_country: number | null;
654382
+ id_state: number | null;
654383
+ id_city: number | null;
654384
+ id_postal_code: number | null;
654385
+ id: number;
654386
+ name: string | null;
654387
+ logic_code: string | null;
654388
+ created_at: Date | null;
654389
+ created_by: string | null;
654390
+ updated_at: Date | null;
654391
+ updated_by: string | null;
654392
+ code: string | null;
654393
+ address: string | null;
654394
+ } | null;
654395
+ } & {
654396
+ is_active: boolean | null;
654397
+ id: number;
654398
+ name: string | null;
654399
+ logic_code: string | null;
654400
+ created_at: Date | null;
654401
+ created_by: string | null;
654402
+ updated_at: Date | null;
654403
+ updated_by: string | null;
654404
+ code: string | null;
654405
+ id_company: number | null;
654406
+ };
654407
+ };
654408
+ meta: object;
654409
+ }>;
654410
+ histories: BuiltRouter<{
654411
+ ctx: Context;
654412
+ meta: object;
654413
+ errorShape: DefaultErrorShape;
654414
+ transformer: false;
654415
+ }, DecorateCreateRouterOptions<{
654416
+ get: MutationProcedure<{
654417
+ input: {
654418
+ search?: string | null | undefined;
654419
+ take?: number | null | undefined;
654420
+ skip?: number | null | undefined;
654421
+ is_active?: boolean[] | null | undefined;
654422
+ ids_include?: number[] | null | undefined;
654423
+ ids_exclude?: number[] | null | undefined;
654424
+ ids_string_include?: string[] | null | undefined;
654425
+ ids_string_exclude?: string[] | null | undefined;
654426
+ logic_codes_include?: string[] | null | undefined;
654427
+ logic_codes_exclude?: string[] | null | undefined;
654428
+ order_by?: {
654429
+ field: string;
654430
+ direction: "asc" | "desc";
654431
+ } | null | undefined;
654432
+ order_bys?: {
654433
+ field: string;
654434
+ direction: "asc" | "desc";
654435
+ }[] | null | undefined;
654436
+ id_log_type?: number | null | undefined;
654437
+ ids_log_type?: number[] | null | undefined;
654438
+ id_department?: number | null | undefined;
654439
+ ids_department?: number[] | null | undefined;
654440
+ };
654441
+ output: {
654442
+ data: {
654443
+ log_type: {
654444
+ is_active: boolean | null;
654445
+ id: number;
654446
+ name: string | null;
654447
+ logic_code: string | null;
654448
+ created_at: Date | null;
654449
+ created_by: string | null;
654450
+ updated_at: Date | null;
654451
+ updated_by: string | null;
654452
+ } | null;
654453
+ id: number;
654454
+ id_log_type: number | null;
654455
+ url: string | null;
654456
+ params: SimpleJson;
654457
+ action: string | null;
654458
+ action_by: string | null;
654459
+ action_id: string | null;
654460
+ action_at: Date | null;
654461
+ id_department: number | null;
654462
+ }[] | undefined;
654463
+ total: number | undefined;
654464
+ };
654465
+ meta: object;
654466
+ }>;
654467
+ getDetail: MutationProcedure<{
654468
+ input: {
654469
+ id?: number | null | undefined;
654470
+ id_string?: string | null | undefined;
654471
+ };
654472
+ output: {
654473
+ data: {
654474
+ log_type: {
654475
+ is_active: boolean | null;
654476
+ id: number;
654477
+ name: string | null;
654478
+ logic_code: string | null;
654479
+ created_at: Date | null;
654480
+ created_by: string | null;
654481
+ updated_at: Date | null;
654482
+ updated_by: string | null;
654483
+ } | null;
654484
+ id: number;
654485
+ id_log_type: number | null;
654486
+ url: string | null;
654487
+ params: SimpleJson;
654488
+ action: string | null;
654489
+ action_by: string | null;
654490
+ action_id: string | null;
654491
+ action_at: Date | null;
654492
+ id_department: number | null;
654493
+ } | undefined;
654494
+ };
654495
+ meta: object;
654496
+ }>;
654497
+ }>>;
654498
+ create: MutationProcedure<{
654499
+ input: {
654500
+ is_active?: boolean | undefined;
654501
+ id_company?: number | null | undefined;
654502
+ code?: string | null | undefined;
654503
+ name?: string | null | undefined;
654504
+ };
654505
+ output: {
654506
+ data: {
654507
+ is_active: boolean | null;
654508
+ id: number;
654509
+ name: string | null;
654510
+ logic_code: string | null;
654511
+ created_at: Date | null;
654512
+ created_by: string | null;
654513
+ updated_at: Date | null;
654514
+ updated_by: string | null;
654515
+ code: string | null;
654516
+ id_company: number | null;
654517
+ } | undefined;
654518
+ log: {
654519
+ id: number;
654520
+ id_log_type: number | null;
654521
+ url: string | null;
654522
+ params: SimpleJson;
654523
+ action: string | null;
654524
+ action_by: string | null;
654525
+ action_id: string | null;
654526
+ action_at: Date | null;
654527
+ id_department: number | null;
654528
+ } | undefined;
654529
+ };
654530
+ meta: object;
654531
+ }>;
654532
+ update: MutationProcedure<{
654533
+ input: {
654534
+ id?: number | null | undefined;
654535
+ id_string?: string | null | undefined;
654536
+ is_active?: boolean | undefined;
654537
+ id_company?: number | null | undefined;
654538
+ code?: string | null | undefined;
654539
+ name?: string | null | undefined;
654540
+ };
654541
+ output: {
654542
+ data: {
654543
+ is_active: boolean | null;
654544
+ id: number;
654545
+ name: string | null;
654546
+ logic_code: string | null;
654547
+ created_at: Date | null;
654548
+ created_by: string | null;
654549
+ updated_at: Date | null;
654550
+ updated_by: string | null;
654551
+ code: string | null;
654552
+ id_company: number | null;
654553
+ } | undefined;
654554
+ log: {
654555
+ id: number;
654556
+ id_log_type: number | null;
654557
+ url: string | null;
654558
+ params: SimpleJson;
654559
+ action: string | null;
654560
+ action_by: string | null;
654561
+ action_id: string | null;
654562
+ action_at: Date | null;
654563
+ id_department: number | null;
654564
+ } | undefined;
654565
+ };
654566
+ meta: object;
654567
+ }>;
654568
+ delete: MutationProcedure<{
654569
+ input: {
654570
+ id?: number | null | undefined;
654571
+ ids?: number[] | null | undefined;
654572
+ id_string?: string | null | undefined;
654573
+ ids_string?: string[] | null | undefined;
654574
+ };
654575
+ output: {
654576
+ data: ({
654577
+ is_active: boolean | null;
654578
+ id: number;
654579
+ name: string | null;
654580
+ logic_code: string | null;
654581
+ created_at: Date | null;
654582
+ created_by: string | null;
654583
+ updated_at: Date | null;
654584
+ updated_by: string | null;
654585
+ code: string | null;
654586
+ id_company: number | null;
654587
+ } | undefined)[] | undefined;
654588
+ };
654589
+ meta: object;
654590
+ }>;
654591
+ }>>;
654592
+ }>>;
651487
654593
  }>>;
651488
654594
  }>>;
651489
654595
  type AppRouter = typeof appRouter;