@be-logixpair/api 0.0.11 → 0.0.13

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 +1661 -1282
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6489,7 +6489,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6489
6489
  }>>;
6490
6490
  }>>;
6491
6491
  }>>;
6492
- serviceLevels: import("@trpc/server").TRPCBuiltRouter<{
6492
+ packageTypes: import("@trpc/server").TRPCBuiltRouter<{
6493
6493
  ctx: Context$1;
6494
6494
  meta: object;
6495
6495
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -6515,12 +6515,38 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6515
6515
  field: string;
6516
6516
  direction: "asc" | "desc";
6517
6517
  }[] | null | undefined;
6518
- id_agreement?: number | null | undefined;
6519
- ids_agreement?: number[] | null | undefined;
6518
+ id_dimension_unit?: number | null | undefined;
6519
+ ids_dimension_unit?: number[] | null | undefined;
6520
+ id_weight_unit?: number | null | undefined;
6521
+ ids_weight_unit?: number[] | null | undefined;
6522
+ id_uom_type?: number | null | undefined;
6523
+ ids_uom_type?: number[] | null | undefined;
6520
6524
  };
6521
6525
  output: {
6522
6526
  data: ({
6523
- service_level_agreement: {
6527
+ uom_type: {
6528
+ id: number;
6529
+ name: string | null;
6530
+ is_active: boolean | null;
6531
+ code: string | null;
6532
+ created_at: Date | null;
6533
+ created_by: string | null;
6534
+ updated_at: Date | null;
6535
+ updated_by: string | null;
6536
+ logic_code: string | null;
6537
+ } | null;
6538
+ dimension_unit: {
6539
+ id: number;
6540
+ name: string | null;
6541
+ is_active: boolean | null;
6542
+ code: string | null;
6543
+ created_at: Date | null;
6544
+ created_by: string | null;
6545
+ updated_at: Date | null;
6546
+ updated_by: string | null;
6547
+ logic_code: string | null;
6548
+ } | null;
6549
+ weight_unit: {
6524
6550
  id: number;
6525
6551
  name: string | null;
6526
6552
  is_active: boolean | null;
@@ -6534,6 +6560,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6534
6560
  } & {
6535
6561
  id: number;
6536
6562
  name: string | null;
6563
+ length: Decimal | null;
6537
6564
  is_active: boolean | null;
6538
6565
  code: string | null;
6539
6566
  created_at: Date | null;
@@ -6541,8 +6568,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6541
6568
  updated_at: Date | null;
6542
6569
  updated_by: string | null;
6543
6570
  logic_code: string | null;
6544
- id_agreement: number | null;
6545
- percentage: Decimal | null;
6571
+ id_uom_type: number | null;
6572
+ width: Decimal | null;
6573
+ height: Decimal | null;
6574
+ id_dimension_unit: number | null;
6575
+ id_weight_unit: number | null;
6576
+ weight: Decimal | null;
6577
+ is_keep_upright: boolean | null;
6546
6578
  })[] | undefined;
6547
6579
  total: number | undefined;
6548
6580
  };
@@ -6556,14 +6588,37 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6556
6588
  output: {
6557
6589
  data: {
6558
6590
  _count: {
6559
- service_level_agreement: number;
6560
- service_level_logs: number;
6561
- forwarding_bookings: number;
6562
- forwarding_bookings_carrier: number;
6563
- forwarding_consoles: number;
6564
- shipments: number;
6591
+ dimension_unit: number;
6592
+ weight_unit: number;
6593
+ uom_type: number;
6594
+ package_type_logs: number;
6595
+ forwarding_shipments_package_count_types: number;
6596
+ forwarding_shipments_package_inner_count_types: number;
6597
+ forwarding_shipment_packings: number;
6565
6598
  };
6566
- service_level_agreement: {
6599
+ uom_type: {
6600
+ id: number;
6601
+ name: string | null;
6602
+ is_active: boolean | null;
6603
+ code: string | null;
6604
+ created_at: Date | null;
6605
+ created_by: string | null;
6606
+ updated_at: Date | null;
6607
+ updated_by: string | null;
6608
+ logic_code: string | null;
6609
+ } | null;
6610
+ dimension_unit: {
6611
+ id: number;
6612
+ name: string | null;
6613
+ is_active: boolean | null;
6614
+ code: string | null;
6615
+ created_at: Date | null;
6616
+ created_by: string | null;
6617
+ updated_at: Date | null;
6618
+ updated_by: string | null;
6619
+ logic_code: string | null;
6620
+ } | null;
6621
+ weight_unit: {
6567
6622
  id: number;
6568
6623
  name: string | null;
6569
6624
  is_active: boolean | null;
@@ -6577,6 +6632,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6577
6632
  } & {
6578
6633
  id: number;
6579
6634
  name: string | null;
6635
+ length: Decimal | null;
6580
6636
  is_active: boolean | null;
6581
6637
  code: string | null;
6582
6638
  created_at: Date | null;
@@ -6584,8 +6640,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6584
6640
  updated_at: Date | null;
6585
6641
  updated_by: string | null;
6586
6642
  logic_code: string | null;
6587
- id_agreement: number | null;
6588
- percentage: Decimal | null;
6643
+ id_uom_type: number | null;
6644
+ width: Decimal | null;
6645
+ height: Decimal | null;
6646
+ id_dimension_unit: number | null;
6647
+ id_weight_unit: number | null;
6648
+ weight: Decimal | null;
6649
+ is_keep_upright: boolean | null;
6589
6650
  };
6590
6651
  };
6591
6652
  meta: object;
@@ -6618,8 +6679,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6618
6679
  }[] | null | undefined;
6619
6680
  id_log_type?: number | null | undefined;
6620
6681
  ids_log_type?: number[] | null | undefined;
6621
- id_service_level?: number | null | undefined;
6622
- ids_service_level?: number[] | null | undefined;
6682
+ id_package_type?: number | null | undefined;
6683
+ ids_package_type?: number[] | null | undefined;
6623
6684
  };
6624
6685
  output: {
6625
6686
  data: {
@@ -6641,7 +6702,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6641
6702
  action_by: string | null;
6642
6703
  action_id: string | null;
6643
6704
  action_at: Date | null;
6644
- id_service_level: number | null;
6705
+ id_package_type: number | null;
6645
6706
  }[] | undefined;
6646
6707
  total: number | undefined;
6647
6708
  };
@@ -6672,7 +6733,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6672
6733
  action_by: string | null;
6673
6734
  action_id: string | null;
6674
6735
  action_at: Date | null;
6675
- id_service_level: number | null;
6736
+ id_package_type: number | null;
6676
6737
  } | undefined;
6677
6738
  };
6678
6739
  meta: object;
@@ -6681,15 +6742,22 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6681
6742
  create: import("@trpc/server").TRPCMutationProcedure<{
6682
6743
  input: {
6683
6744
  is_active?: boolean | undefined;
6684
- id_agreement?: number | null | undefined;
6745
+ id_dimension_unit?: number | null | undefined;
6746
+ id_weight_unit?: number | null | undefined;
6747
+ id_uom_type?: number | null | undefined;
6685
6748
  code?: string | null | undefined;
6686
6749
  name?: string | null | undefined;
6687
- percentage?: number | null | undefined;
6750
+ height?: string | null | undefined;
6751
+ width?: string | null | undefined;
6752
+ length?: string | null | undefined;
6753
+ weight?: string | null | undefined;
6754
+ is_keep_upright?: boolean | null | undefined;
6688
6755
  };
6689
6756
  output: {
6690
6757
  data: {
6691
6758
  id: number;
6692
6759
  name: string | null;
6760
+ length: Decimal | null;
6693
6761
  is_active: boolean | null;
6694
6762
  code: string | null;
6695
6763
  created_at: Date | null;
@@ -6697,8 +6765,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6697
6765
  updated_at: Date | null;
6698
6766
  updated_by: string | null;
6699
6767
  logic_code: string | null;
6700
- id_agreement: number | null;
6701
- percentage: Decimal | null;
6768
+ id_uom_type: number | null;
6769
+ width: Decimal | null;
6770
+ height: Decimal | null;
6771
+ id_dimension_unit: number | null;
6772
+ id_weight_unit: number | null;
6773
+ weight: Decimal | null;
6774
+ is_keep_upright: boolean | null;
6702
6775
  } | undefined;
6703
6776
  log: {
6704
6777
  id: number;
@@ -6709,7 +6782,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6709
6782
  action_by: string | null;
6710
6783
  action_id: string | null;
6711
6784
  action_at: Date | null;
6712
- id_service_level: number | null;
6785
+ id_package_type: number | null;
6713
6786
  } | undefined;
6714
6787
  };
6715
6788
  meta: object;
@@ -6719,15 +6792,22 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6719
6792
  id?: number | null | undefined;
6720
6793
  id_string?: string | null | undefined;
6721
6794
  is_active?: boolean | undefined;
6722
- id_agreement?: number | null | undefined;
6795
+ id_dimension_unit?: number | null | undefined;
6796
+ id_weight_unit?: number | null | undefined;
6797
+ id_uom_type?: number | null | undefined;
6723
6798
  code?: string | null | undefined;
6724
6799
  name?: string | null | undefined;
6725
- percentage?: number | null | undefined;
6800
+ height?: string | null | undefined;
6801
+ width?: string | null | undefined;
6802
+ length?: string | null | undefined;
6803
+ weight?: string | null | undefined;
6804
+ is_keep_upright?: boolean | null | undefined;
6726
6805
  };
6727
6806
  output: {
6728
6807
  data: {
6729
6808
  id: number;
6730
6809
  name: string | null;
6810
+ length: Decimal | null;
6731
6811
  is_active: boolean | null;
6732
6812
  code: string | null;
6733
6813
  created_at: Date | null;
@@ -6735,8 +6815,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6735
6815
  updated_at: Date | null;
6736
6816
  updated_by: string | null;
6737
6817
  logic_code: string | null;
6738
- id_agreement: number | null;
6739
- percentage: Decimal | null;
6818
+ id_uom_type: number | null;
6819
+ width: Decimal | null;
6820
+ height: Decimal | null;
6821
+ id_dimension_unit: number | null;
6822
+ id_weight_unit: number | null;
6823
+ weight: Decimal | null;
6824
+ is_keep_upright: boolean | null;
6740
6825
  } | undefined;
6741
6826
  log: {
6742
6827
  id: number;
@@ -6747,7 +6832,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6747
6832
  action_by: string | null;
6748
6833
  action_id: string | null;
6749
6834
  action_at: Date | null;
6750
- id_service_level: number | null;
6835
+ id_package_type: number | null;
6751
6836
  } | undefined;
6752
6837
  };
6753
6838
  meta: object;
@@ -6763,6 +6848,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6763
6848
  data: ({
6764
6849
  id: number;
6765
6850
  name: string | null;
6851
+ length: Decimal | null;
6766
6852
  is_active: boolean | null;
6767
6853
  code: string | null;
6768
6854
  created_at: Date | null;
@@ -6770,13 +6856,25 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6770
6856
  updated_at: Date | null;
6771
6857
  updated_by: string | null;
6772
6858
  logic_code: string | null;
6773
- id_agreement: number | null;
6774
- percentage: Decimal | null;
6859
+ id_uom_type: number | null;
6860
+ width: Decimal | null;
6861
+ height: Decimal | null;
6862
+ id_dimension_unit: number | null;
6863
+ id_weight_unit: number | null;
6864
+ weight: Decimal | null;
6865
+ is_keep_upright: boolean | null;
6775
6866
  } | undefined)[] | undefined;
6776
6867
  };
6777
6868
  meta: object;
6778
6869
  }>;
6779
- agreements: import("@trpc/server").TRPCBuiltRouter<{
6870
+ }>>;
6871
+ units: import("@trpc/server").TRPCBuiltRouter<{
6872
+ ctx: Context$1;
6873
+ meta: object;
6874
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6875
+ transformer: false;
6876
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6877
+ massUnits: import("@trpc/server").TRPCBuiltRouter<{
6780
6878
  ctx: Context$1;
6781
6879
  meta: object;
6782
6880
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -6827,8 +6925,15 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6827
6925
  output: {
6828
6926
  data: {
6829
6927
  _count: {
6830
- service_level_agreement_logs: number;
6831
- service_levels: number;
6928
+ mass_units_logs: number;
6929
+ package_type_weights: number;
6930
+ containers_max_gross_weight: number;
6931
+ containers_max_tare_weight: number;
6932
+ containers_max_net_weight: number;
6933
+ containers_inside_max_net_weight: number;
6934
+ forwarding_bookings_weight_unit: number;
6935
+ forwarding_shipments_weight_unit: number;
6936
+ forwarding_shipment_packings_weight_unit: number;
6832
6937
  };
6833
6938
  } & {
6834
6939
  id: number;
@@ -6872,8 +6977,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6872
6977
  }[] | null | undefined;
6873
6978
  id_log_type?: number | null | undefined;
6874
6979
  ids_log_type?: number[] | null | undefined;
6875
- id_service_level_agreement?: number | null | undefined;
6876
- ids_service_level_agreement?: number[] | null | undefined;
6980
+ id_mass_unit?: number | null | undefined;
6981
+ ids_mass_unit?: number[] | null | undefined;
6877
6982
  };
6878
6983
  output: {
6879
6984
  data: {
@@ -6895,7 +7000,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6895
7000
  action_by: string | null;
6896
7001
  action_id: string | null;
6897
7002
  action_at: Date | null;
6898
- id_service_level_agreement: number | null;
7003
+ id_mass_unit: number | null;
6899
7004
  }[] | undefined;
6900
7005
  total: number | undefined;
6901
7006
  };
@@ -6926,7 +7031,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6926
7031
  action_by: string | null;
6927
7032
  action_id: string | null;
6928
7033
  action_at: Date | null;
6929
- id_service_level_agreement: number | null;
7034
+ id_mass_unit: number | null;
6930
7035
  } | undefined;
6931
7036
  };
6932
7037
  meta: object;
@@ -6959,7 +7064,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6959
7064
  action_by: string | null;
6960
7065
  action_id: string | null;
6961
7066
  action_at: Date | null;
6962
- id_service_level_agreement: number | null;
7067
+ id_mass_unit: number | null;
6963
7068
  } | undefined;
6964
7069
  };
6965
7070
  meta: object;
@@ -6993,7 +7098,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6993
7098
  action_by: string | null;
6994
7099
  action_id: string | null;
6995
7100
  action_at: Date | null;
6996
- id_service_level_agreement: number | null;
7101
+ id_mass_unit: number | null;
6997
7102
  } | undefined;
6998
7103
  };
6999
7104
  meta: object;
@@ -7021,56 +7126,35 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7021
7126
  meta: object;
7022
7127
  }>;
7023
7128
  }>>;
7024
- }>>;
7025
- commodities: import("@trpc/server").TRPCBuiltRouter<{
7026
- ctx: Context$1;
7027
- meta: object;
7028
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7029
- transformer: false;
7030
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7031
- get: import("@trpc/server").TRPCMutationProcedure<{
7032
- input: {
7033
- search?: string | null | undefined;
7034
- take?: number | null | undefined;
7035
- skip?: number | null | undefined;
7036
- is_active?: boolean[] | null | undefined;
7037
- ids_include?: number[] | null | undefined;
7038
- ids_exclude?: number[] | null | undefined;
7039
- ids_string_include?: string[] | null | undefined;
7040
- ids_string_exclude?: string[] | null | undefined;
7041
- logic_codes_include?: string[] | null | undefined;
7042
- logic_codes_exclude?: string[] | null | undefined;
7043
- order_by?: {
7044
- field: string;
7045
- direction: "asc" | "desc";
7046
- } | null | undefined;
7047
- order_bys?: {
7048
- field: string;
7049
- direction: "asc" | "desc";
7050
- }[] | null | undefined;
7051
- id_commodity?: number | null | undefined;
7052
- ids_commodity?: number[] | null | undefined;
7053
- id_iata_commodity?: number | null | undefined;
7054
- ids_iata_commodity?: number[] | null | undefined;
7055
- id_commodity_types?: number | null | undefined;
7056
- ids_commodity_types?: number[] | null | undefined;
7057
- id_universal_group?: number | null | undefined;
7058
- ids_universal_group?: number[] | null | undefined;
7059
- };
7060
- output: {
7061
- data: ({
7062
- iata_commodity: {
7063
- id: number;
7064
- name: string | null;
7065
- is_active: boolean | null;
7066
- code: string | null;
7067
- created_at: Date | null;
7068
- created_by: string | null;
7069
- updated_at: Date | null;
7070
- updated_by: string | null;
7071
- logic_code: string | null;
7072
- } | null;
7073
- commodity_type: {
7129
+ measurementUnits: import("@trpc/server").TRPCBuiltRouter<{
7130
+ ctx: Context$1;
7131
+ meta: object;
7132
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7133
+ transformer: false;
7134
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7135
+ get: import("@trpc/server").TRPCMutationProcedure<{
7136
+ input: {
7137
+ search?: string | null | undefined;
7138
+ take?: number | null | undefined;
7139
+ skip?: number | null | undefined;
7140
+ is_active?: boolean[] | null | undefined;
7141
+ ids_include?: number[] | null | undefined;
7142
+ ids_exclude?: number[] | null | undefined;
7143
+ ids_string_include?: string[] | null | undefined;
7144
+ ids_string_exclude?: string[] | null | undefined;
7145
+ logic_codes_include?: string[] | null | undefined;
7146
+ logic_codes_exclude?: string[] | null | undefined;
7147
+ order_by?: {
7148
+ field: string;
7149
+ direction: "asc" | "desc";
7150
+ } | null | undefined;
7151
+ order_bys?: {
7152
+ field: string;
7153
+ direction: "asc" | "desc";
7154
+ }[] | null | undefined;
7155
+ };
7156
+ output: {
7157
+ data: {
7074
7158
  id: number;
7075
7159
  name: string | null;
7076
7160
  is_active: boolean | null;
@@ -7080,8 +7164,42 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7080
7164
  updated_at: Date | null;
7081
7165
  updated_by: string | null;
7082
7166
  logic_code: string | null;
7083
- } | null;
7084
- universal_group: {
7167
+ }[] | undefined;
7168
+ total: number | undefined;
7169
+ };
7170
+ meta: object;
7171
+ }>;
7172
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
7173
+ input: {
7174
+ id?: number | null | undefined;
7175
+ id_string?: string | null | undefined;
7176
+ };
7177
+ output: {
7178
+ data: {
7179
+ _count: {
7180
+ measurement_units_logs: number;
7181
+ package_type_dimensions: number;
7182
+ containers_length: number;
7183
+ containers_width: number;
7184
+ containers_height: number;
7185
+ containers_capacity: number;
7186
+ containers_inside_length: number;
7187
+ containers_inside_width: number;
7188
+ containers_inside_height: number;
7189
+ containers_inside_teu_count: number;
7190
+ containers_inside_capacity: number;
7191
+ forwarding_bookings_outer_unit: number;
7192
+ forwarding_bookings_volume_unit: number;
7193
+ forwarding_bookings_chargeable_unit: number;
7194
+ forwarding_shipments_volume_unit: number;
7195
+ forwarding_shipments_chargeable_unit: number;
7196
+ forwarding_shipments_weight_volume_unit: number;
7197
+ forwarding_shipment_packings_volume_unit: number;
7198
+ forwarding_shipment_packings_length_unit: number;
7199
+ forwarding_shipment_packings_width_unit: number;
7200
+ forwarding_shipment_packings_height_unit: number;
7201
+ };
7202
+ } & {
7085
7203
  id: number;
7086
7204
  name: string | null;
7087
7205
  is_active: boolean | null;
@@ -7091,41 +7209,106 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7091
7209
  updated_at: Date | null;
7092
7210
  updated_by: string | null;
7093
7211
  logic_code: string | null;
7094
- } | null;
7095
- } & {
7096
- id: number;
7097
- name: string | null;
7098
- is_active: boolean | null;
7099
- code: string | null;
7100
- created_at: Date | null;
7101
- created_by: string | null;
7102
- updated_at: Date | null;
7103
- updated_by: string | null;
7104
- logic_code: string | null;
7105
- id_iata_commodity: number | null;
7106
- id_universal_group: number | null;
7107
- id_commodity_types: number | null;
7108
- reefer_min_temp: Decimal | null;
7109
- reefer_max_temp: Decimal | null;
7110
- is_hazardous: boolean;
7111
- is_perishable: boolean;
7112
- is_flammable: boolean;
7113
- is_timber: boolean;
7114
- is_vent_required: boolean;
7115
- expiration_date: Date | null;
7116
- })[] | undefined;
7117
- total: number | undefined;
7118
- };
7119
- meta: object;
7120
- }>;
7121
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
7122
- input: {
7123
- id?: number | null | undefined;
7124
- id_string?: string | null | undefined;
7125
- };
7126
- output: {
7127
- data: {
7128
- iata_commodity: {
7212
+ };
7213
+ };
7214
+ meta: object;
7215
+ }>;
7216
+ histories: import("@trpc/server").TRPCBuiltRouter<{
7217
+ ctx: Context$1;
7218
+ meta: object;
7219
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7220
+ transformer: false;
7221
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7222
+ get: import("@trpc/server").TRPCMutationProcedure<{
7223
+ input: {
7224
+ search?: string | null | undefined;
7225
+ take?: number | null | undefined;
7226
+ skip?: number | null | undefined;
7227
+ is_active?: boolean[] | null | undefined;
7228
+ ids_include?: number[] | null | undefined;
7229
+ ids_exclude?: number[] | null | undefined;
7230
+ ids_string_include?: string[] | null | undefined;
7231
+ ids_string_exclude?: string[] | null | undefined;
7232
+ logic_codes_include?: string[] | null | undefined;
7233
+ logic_codes_exclude?: string[] | null | undefined;
7234
+ order_by?: {
7235
+ field: string;
7236
+ direction: "asc" | "desc";
7237
+ } | null | undefined;
7238
+ order_bys?: {
7239
+ field: string;
7240
+ direction: "asc" | "desc";
7241
+ }[] | null | undefined;
7242
+ id_log_type?: number | null | undefined;
7243
+ ids_log_type?: number[] | null | undefined;
7244
+ id_measurement_unit?: number | null | undefined;
7245
+ ids_measurement_unit?: number[] | null | undefined;
7246
+ };
7247
+ output: {
7248
+ data: {
7249
+ params: Record<string, unknown>;
7250
+ log_type: {
7251
+ id: number;
7252
+ name: string | null;
7253
+ is_active: boolean | null;
7254
+ created_at: Date | null;
7255
+ created_by: string | null;
7256
+ updated_at: Date | null;
7257
+ updated_by: string | null;
7258
+ logic_code: string | null;
7259
+ } | null;
7260
+ id: number;
7261
+ url: string | null;
7262
+ id_log_type: number | null;
7263
+ action: string | null;
7264
+ action_by: string | null;
7265
+ action_id: string | null;
7266
+ action_at: Date | null;
7267
+ id_measurement_unit: number | null;
7268
+ }[] | undefined;
7269
+ total: number | undefined;
7270
+ };
7271
+ meta: object;
7272
+ }>;
7273
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
7274
+ input: {
7275
+ id?: number | null | undefined;
7276
+ id_string?: string | null | undefined;
7277
+ };
7278
+ output: {
7279
+ data: {
7280
+ params: Record<string, unknown>;
7281
+ log_type: {
7282
+ id: number;
7283
+ name: string | null;
7284
+ is_active: boolean | null;
7285
+ created_at: Date | null;
7286
+ created_by: string | null;
7287
+ updated_at: Date | null;
7288
+ updated_by: string | null;
7289
+ logic_code: string | null;
7290
+ } | null;
7291
+ id: number;
7292
+ url: string | null;
7293
+ id_log_type: number | null;
7294
+ action: string | null;
7295
+ action_by: string | null;
7296
+ action_id: string | null;
7297
+ action_at: Date | null;
7298
+ id_measurement_unit: number | null;
7299
+ } | undefined;
7300
+ };
7301
+ meta: object;
7302
+ }>;
7303
+ }>>;
7304
+ create: import("@trpc/server").TRPCMutationProcedure<{
7305
+ input: {
7306
+ is_active?: boolean | undefined;
7307
+ code?: string | null | undefined;
7308
+ name?: string | null | undefined;
7309
+ };
7310
+ output: {
7311
+ data: {
7129
7312
  id: number;
7130
7313
  name: string | null;
7131
7314
  is_active: boolean | null;
@@ -7135,8 +7318,31 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7135
7318
  updated_at: Date | null;
7136
7319
  updated_by: string | null;
7137
7320
  logic_code: string | null;
7138
- } | null;
7139
- commodity_type: {
7321
+ } | undefined;
7322
+ log: {
7323
+ id: number;
7324
+ url: string | null;
7325
+ id_log_type: number | null;
7326
+ action: string | null;
7327
+ params: JsonValue | null;
7328
+ action_by: string | null;
7329
+ action_id: string | null;
7330
+ action_at: Date | null;
7331
+ id_measurement_unit: number | null;
7332
+ } | undefined;
7333
+ };
7334
+ meta: object;
7335
+ }>;
7336
+ update: import("@trpc/server").TRPCMutationProcedure<{
7337
+ input: {
7338
+ id?: number | null | undefined;
7339
+ id_string?: string | null | undefined;
7340
+ is_active?: boolean | undefined;
7341
+ code?: string | null | undefined;
7342
+ name?: string | null | undefined;
7343
+ };
7344
+ output: {
7345
+ data: {
7140
7346
  id: number;
7141
7347
  name: string | null;
7142
7348
  is_active: boolean | null;
@@ -7146,8 +7352,30 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7146
7352
  updated_at: Date | null;
7147
7353
  updated_by: string | null;
7148
7354
  logic_code: string | null;
7149
- } | null;
7150
- universal_group: {
7355
+ } | undefined;
7356
+ log: {
7357
+ id: number;
7358
+ url: string | null;
7359
+ id_log_type: number | null;
7360
+ action: string | null;
7361
+ params: JsonValue | null;
7362
+ action_by: string | null;
7363
+ action_id: string | null;
7364
+ action_at: Date | null;
7365
+ id_measurement_unit: number | null;
7366
+ } | undefined;
7367
+ };
7368
+ meta: object;
7369
+ }>;
7370
+ delete: import("@trpc/server").TRPCMutationProcedure<{
7371
+ input: {
7372
+ id?: number | null | undefined;
7373
+ ids?: number[] | null | undefined;
7374
+ id_string?: string | null | undefined;
7375
+ ids_string?: string[] | null | undefined;
7376
+ };
7377
+ output: {
7378
+ data: ({
7151
7379
  id: number;
7152
7380
  name: string | null;
7153
7381
  is_active: boolean | null;
@@ -7157,33 +7385,12 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7157
7385
  updated_at: Date | null;
7158
7386
  updated_by: string | null;
7159
7387
  logic_code: string | null;
7160
- } | null;
7161
- } & {
7162
- id: number;
7163
- name: string | null;
7164
- is_active: boolean | null;
7165
- code: string | null;
7166
- created_at: Date | null;
7167
- created_by: string | null;
7168
- updated_at: Date | null;
7169
- updated_by: string | null;
7170
- logic_code: string | null;
7171
- id_iata_commodity: number | null;
7172
- id_universal_group: number | null;
7173
- id_commodity_types: number | null;
7174
- reefer_min_temp: Decimal | null;
7175
- reefer_max_temp: Decimal | null;
7176
- is_hazardous: boolean;
7177
- is_perishable: boolean;
7178
- is_flammable: boolean;
7179
- is_timber: boolean;
7180
- is_vent_required: boolean;
7181
- expiration_date: Date | null;
7388
+ } | undefined)[] | undefined;
7182
7389
  };
7183
- };
7184
- meta: object;
7185
- }>;
7186
- histories: import("@trpc/server").TRPCBuiltRouter<{
7390
+ meta: object;
7391
+ }>;
7392
+ }>>;
7393
+ uomTypes: import("@trpc/server").TRPCBuiltRouter<{
7187
7394
  ctx: Context$1;
7188
7395
  meta: object;
7189
7396
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -7209,32 +7416,18 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7209
7416
  field: string;
7210
7417
  direction: "asc" | "desc";
7211
7418
  }[] | null | undefined;
7212
- id_log_type?: number | null | undefined;
7213
- ids_log_type?: number[] | null | undefined;
7214
- id_commodity?: number | null | undefined;
7215
- ids_commodity?: number[] | null | undefined;
7216
7419
  };
7217
7420
  output: {
7218
7421
  data: {
7219
- params: Record<string, unknown>;
7220
- log_type: {
7221
- id: number;
7222
- name: string | null;
7223
- is_active: boolean | null;
7224
- created_at: Date | null;
7225
- created_by: string | null;
7226
- updated_at: Date | null;
7227
- updated_by: string | null;
7228
- logic_code: string | null;
7229
- } | null;
7230
7422
  id: number;
7231
- url: string | null;
7232
- id_log_type: number | null;
7233
- action: string | null;
7234
- action_by: string | null;
7235
- action_id: string | null;
7236
- action_at: Date | null;
7237
- id_commodity: number | null;
7423
+ name: string | null;
7424
+ is_active: boolean | null;
7425
+ code: string | null;
7426
+ created_at: Date | null;
7427
+ created_by: string | null;
7428
+ updated_at: Date | null;
7429
+ updated_by: string | null;
7430
+ logic_code: string | null;
7238
7431
  }[] | undefined;
7239
7432
  total: number | undefined;
7240
7433
  };
@@ -7247,221 +7440,11 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7247
7440
  };
7248
7441
  output: {
7249
7442
  data: {
7250
- params: Record<string, unknown>;
7251
- log_type: {
7252
- id: number;
7253
- name: string | null;
7254
- is_active: boolean | null;
7255
- created_at: Date | null;
7256
- created_by: string | null;
7257
- updated_at: Date | null;
7258
- updated_by: string | null;
7259
- logic_code: string | null;
7260
- } | null;
7261
- id: number;
7262
- url: string | null;
7263
- id_log_type: number | null;
7264
- action: string | null;
7265
- action_by: string | null;
7266
- action_id: string | null;
7267
- action_at: Date | null;
7268
- id_commodity: number | null;
7269
- } | undefined;
7270
- };
7271
- meta: object;
7272
- }>;
7273
- }>>;
7274
- create: import("@trpc/server").TRPCMutationProcedure<{
7275
- input: {
7276
- is_active?: boolean | undefined;
7277
- code?: string | null | undefined;
7278
- name?: string | null | undefined;
7279
- logic_code?: string | null | undefined;
7280
- id_commodity_types?: number | null | undefined;
7281
- id_universal_group?: number | null | undefined;
7282
- id_iata_commodity?: number | null | undefined;
7283
- reefer_min_temp?: number | null | undefined;
7284
- reefer_max_temp?: number | null | undefined;
7285
- is_hazardous?: boolean | undefined;
7286
- is_perishable?: boolean | undefined;
7287
- is_flammable?: boolean | undefined;
7288
- is_timber?: boolean | undefined;
7289
- is_vent_required?: boolean | undefined;
7290
- expiration_date?: Date | null | undefined;
7291
- };
7292
- output: {
7293
- data: {
7294
- id: number;
7295
- name: string | null;
7296
- is_active: boolean | null;
7297
- code: string | null;
7298
- created_at: Date | null;
7299
- created_by: string | null;
7300
- updated_at: Date | null;
7301
- updated_by: string | null;
7302
- logic_code: string | null;
7303
- id_iata_commodity: number | null;
7304
- id_universal_group: number | null;
7305
- id_commodity_types: number | null;
7306
- reefer_min_temp: Decimal | null;
7307
- reefer_max_temp: Decimal | null;
7308
- is_hazardous: boolean;
7309
- is_perishable: boolean;
7310
- is_flammable: boolean;
7311
- is_timber: boolean;
7312
- is_vent_required: boolean;
7313
- expiration_date: Date | null;
7314
- } | undefined;
7315
- log: {
7316
- id: number;
7317
- url: string | null;
7318
- id_log_type: number | null;
7319
- action: string | null;
7320
- params: JsonValue | null;
7321
- action_by: string | null;
7322
- action_id: string | null;
7323
- action_at: Date | null;
7324
- id_commodity: number | null;
7325
- } | undefined;
7326
- };
7327
- meta: object;
7328
- }>;
7329
- update: import("@trpc/server").TRPCMutationProcedure<{
7330
- input: {
7331
- id?: number | null | undefined;
7332
- id_string?: string | null | undefined;
7333
- is_active?: boolean | undefined;
7334
- code?: string | null | undefined;
7335
- name?: string | null | undefined;
7336
- logic_code?: string | null | undefined;
7337
- id_commodity_types?: number | null | undefined;
7338
- id_universal_group?: number | null | undefined;
7339
- id_iata_commodity?: number | null | undefined;
7340
- reefer_min_temp?: number | null | undefined;
7341
- reefer_max_temp?: number | null | undefined;
7342
- is_hazardous?: boolean | undefined;
7343
- is_perishable?: boolean | undefined;
7344
- is_flammable?: boolean | undefined;
7345
- is_timber?: boolean | undefined;
7346
- is_vent_required?: boolean | undefined;
7347
- expiration_date?: Date | null | undefined;
7348
- };
7349
- output: {
7350
- data: {
7351
- id: number;
7352
- name: string | null;
7353
- is_active: boolean | null;
7354
- code: string | null;
7355
- created_at: Date | null;
7356
- created_by: string | null;
7357
- updated_at: Date | null;
7358
- updated_by: string | null;
7359
- logic_code: string | null;
7360
- id_iata_commodity: number | null;
7361
- id_universal_group: number | null;
7362
- id_commodity_types: number | null;
7363
- reefer_min_temp: Decimal | null;
7364
- reefer_max_temp: Decimal | null;
7365
- is_hazardous: boolean;
7366
- is_perishable: boolean;
7367
- is_flammable: boolean;
7368
- is_timber: boolean;
7369
- is_vent_required: boolean;
7370
- expiration_date: Date | null;
7371
- } | undefined;
7372
- log: {
7373
- id: number;
7374
- url: string | null;
7375
- id_log_type: number | null;
7376
- action: string | null;
7377
- params: JsonValue | null;
7378
- action_by: string | null;
7379
- action_id: string | null;
7380
- action_at: Date | null;
7381
- id_commodity: number | null;
7382
- } | undefined;
7383
- };
7384
- meta: object;
7385
- }>;
7386
- delete: import("@trpc/server").TRPCMutationProcedure<{
7387
- input: {
7388
- id?: number | null | undefined;
7389
- ids?: number[] | null | undefined;
7390
- id_string?: string | null | undefined;
7391
- ids_string?: string[] | null | undefined;
7392
- };
7393
- output: {
7394
- data: ({
7395
- id: number;
7396
- name: string | null;
7397
- is_active: boolean | null;
7398
- code: string | null;
7399
- created_at: Date | null;
7400
- created_by: string | null;
7401
- updated_at: Date | null;
7402
- updated_by: string | null;
7403
- logic_code: string | null;
7404
- id_agreement: number | null;
7405
- percentage: Decimal | null;
7406
- } | undefined)[] | undefined;
7407
- };
7408
- meta: object;
7409
- }>;
7410
- iata: import("@trpc/server").TRPCBuiltRouter<{
7411
- ctx: Context$1;
7412
- meta: object;
7413
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7414
- transformer: false;
7415
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7416
- get: import("@trpc/server").TRPCMutationProcedure<{
7417
- input: {
7418
- search?: string | null | undefined;
7419
- take?: number | null | undefined;
7420
- skip?: number | null | undefined;
7421
- is_active?: boolean[] | null | undefined;
7422
- ids_include?: number[] | null | undefined;
7423
- ids_exclude?: number[] | null | undefined;
7424
- ids_string_include?: string[] | null | undefined;
7425
- ids_string_exclude?: string[] | null | undefined;
7426
- logic_codes_include?: string[] | null | undefined;
7427
- logic_codes_exclude?: string[] | null | undefined;
7428
- order_by?: {
7429
- field: string;
7430
- direction: "asc" | "desc";
7431
- } | null | undefined;
7432
- order_bys?: {
7433
- field: string;
7434
- direction: "asc" | "desc";
7435
- }[] | null | undefined;
7436
- };
7437
- output: {
7438
- data: {
7439
- id: number;
7440
- name: string | null;
7441
- is_active: boolean | null;
7442
- code: string | null;
7443
- created_at: Date | null;
7444
- created_by: string | null;
7445
- updated_at: Date | null;
7446
- updated_by: string | null;
7447
- logic_code: string | null;
7448
- }[] | undefined;
7449
- total: number | undefined;
7450
- };
7451
- meta: object;
7452
- }>;
7453
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
7454
- input: {
7455
- id?: number | null | undefined;
7456
- id_string?: string | null | undefined;
7457
- };
7458
- output: {
7459
- data: {
7460
- _count: {
7461
- iata_commodity_logs: number;
7462
- commodities: number;
7463
- };
7464
- } & {
7443
+ _count: {
7444
+ uom_type_logs: number;
7445
+ package_types: number;
7446
+ };
7447
+ } & {
7465
7448
  id: number;
7466
7449
  name: string | null;
7467
7450
  is_active: boolean | null;
@@ -7503,8 +7486,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7503
7486
  }[] | null | undefined;
7504
7487
  id_log_type?: number | null | undefined;
7505
7488
  ids_log_type?: number[] | null | undefined;
7506
- id_iata_commodity?: number | null | undefined;
7507
- ids_iata_commodity?: number[] | null | undefined;
7489
+ id_uom_type?: number | null | undefined;
7490
+ ids_uom_type?: number[] | null | undefined;
7508
7491
  };
7509
7492
  output: {
7510
7493
  data: {
@@ -7526,7 +7509,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7526
7509
  action_by: string | null;
7527
7510
  action_id: string | null;
7528
7511
  action_at: Date | null;
7529
- id_iata_commodity: number | null;
7512
+ id_uom_type: number | null;
7530
7513
  }[] | undefined;
7531
7514
  total: number | undefined;
7532
7515
  };
@@ -7557,7 +7540,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7557
7540
  action_by: string | null;
7558
7541
  action_id: string | null;
7559
7542
  action_at: Date | null;
7560
- id_iata_commodity: number | null;
7543
+ id_uom_type: number | null;
7561
7544
  } | undefined;
7562
7545
  };
7563
7546
  meta: object;
@@ -7590,7 +7573,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7590
7573
  action_by: string | null;
7591
7574
  action_id: string | null;
7592
7575
  action_at: Date | null;
7593
- id_iata_commodity: number | null;
7576
+ id_uom_type: number | null;
7594
7577
  } | undefined;
7595
7578
  };
7596
7579
  meta: object;
@@ -7624,7 +7607,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7624
7607
  action_by: string | null;
7625
7608
  action_id: string | null;
7626
7609
  action_at: Date | null;
7627
- id_iata_commodity: number | null;
7610
+ id_uom_type: number | null;
7628
7611
  } | undefined;
7629
7612
  };
7630
7613
  meta: object;
@@ -7652,61 +7635,39 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7652
7635
  meta: object;
7653
7636
  }>;
7654
7637
  }>>;
7655
- types: import("@trpc/server").TRPCBuiltRouter<{
7656
- ctx: Context$1;
7657
- meta: object;
7658
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7659
- transformer: false;
7660
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7661
- get: import("@trpc/server").TRPCMutationProcedure<{
7662
- input: {
7663
- search?: string | null | undefined;
7664
- take?: number | null | undefined;
7665
- skip?: number | null | undefined;
7666
- is_active?: boolean[] | null | undefined;
7667
- ids_include?: number[] | null | undefined;
7668
- ids_exclude?: number[] | null | undefined;
7669
- ids_string_include?: string[] | null | undefined;
7670
- ids_string_exclude?: string[] | null | undefined;
7671
- logic_codes_include?: string[] | null | undefined;
7672
- logic_codes_exclude?: string[] | null | undefined;
7673
- order_by?: {
7674
- field: string;
7675
- direction: "asc" | "desc";
7676
- } | null | undefined;
7677
- order_bys?: {
7678
- field: string;
7679
- direction: "asc" | "desc";
7680
- }[] | null | undefined;
7681
- };
7682
- output: {
7683
- data: {
7684
- id: number;
7685
- name: string | null;
7686
- is_active: boolean | null;
7687
- code: string | null;
7688
- created_at: Date | null;
7689
- created_by: string | null;
7690
- updated_at: Date | null;
7691
- updated_by: string | null;
7692
- logic_code: string | null;
7693
- }[] | undefined;
7694
- total: number | undefined;
7695
- };
7696
- meta: object;
7697
- }>;
7698
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
7699
- input: {
7700
- id?: number | null | undefined;
7701
- id_string?: string | null | undefined;
7702
- };
7703
- output: {
7704
- data: {
7705
- _count: {
7706
- commodities: number;
7707
- commodity_type_logs: number;
7708
- };
7709
- } & {
7638
+ }>>;
7639
+ serviceLevels: import("@trpc/server").TRPCBuiltRouter<{
7640
+ ctx: Context$1;
7641
+ meta: object;
7642
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7643
+ transformer: false;
7644
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7645
+ get: import("@trpc/server").TRPCMutationProcedure<{
7646
+ input: {
7647
+ search?: string | null | undefined;
7648
+ take?: number | null | undefined;
7649
+ skip?: number | null | undefined;
7650
+ is_active?: boolean[] | null | undefined;
7651
+ ids_include?: number[] | null | undefined;
7652
+ ids_exclude?: number[] | null | undefined;
7653
+ ids_string_include?: string[] | null | undefined;
7654
+ ids_string_exclude?: string[] | null | undefined;
7655
+ logic_codes_include?: string[] | null | undefined;
7656
+ logic_codes_exclude?: string[] | null | undefined;
7657
+ order_by?: {
7658
+ field: string;
7659
+ direction: "asc" | "desc";
7660
+ } | null | undefined;
7661
+ order_bys?: {
7662
+ field: string;
7663
+ direction: "asc" | "desc";
7664
+ }[] | null | undefined;
7665
+ id_agreement?: number | null | undefined;
7666
+ ids_agreement?: number[] | null | undefined;
7667
+ };
7668
+ output: {
7669
+ data: ({
7670
+ service_level_agreement: {
7710
7671
  id: number;
7711
7672
  name: string | null;
7712
7673
  is_active: boolean | null;
@@ -7716,106 +7677,40 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7716
7677
  updated_at: Date | null;
7717
7678
  updated_by: string | null;
7718
7679
  logic_code: string | null;
7680
+ } | null;
7681
+ } & {
7682
+ id: number;
7683
+ name: string | null;
7684
+ is_active: boolean | null;
7685
+ code: string | null;
7686
+ created_at: Date | null;
7687
+ created_by: string | null;
7688
+ updated_at: Date | null;
7689
+ updated_by: string | null;
7690
+ logic_code: string | null;
7691
+ id_agreement: number | null;
7692
+ percentage: Decimal | null;
7693
+ })[] | undefined;
7694
+ total: number | undefined;
7695
+ };
7696
+ meta: object;
7697
+ }>;
7698
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
7699
+ input: {
7700
+ id?: number | null | undefined;
7701
+ id_string?: string | null | undefined;
7702
+ };
7703
+ output: {
7704
+ data: {
7705
+ _count: {
7706
+ service_level_agreement: number;
7707
+ service_level_logs: number;
7708
+ forwarding_bookings: number;
7709
+ forwarding_bookings_carrier: number;
7710
+ forwarding_consoles: number;
7711
+ shipments: number;
7719
7712
  };
7720
- };
7721
- meta: object;
7722
- }>;
7723
- histories: import("@trpc/server").TRPCBuiltRouter<{
7724
- ctx: Context$1;
7725
- meta: object;
7726
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7727
- transformer: false;
7728
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7729
- get: import("@trpc/server").TRPCMutationProcedure<{
7730
- input: {
7731
- search?: string | null | undefined;
7732
- take?: number | null | undefined;
7733
- skip?: number | null | undefined;
7734
- is_active?: boolean[] | null | undefined;
7735
- ids_include?: number[] | null | undefined;
7736
- ids_exclude?: number[] | null | undefined;
7737
- ids_string_include?: string[] | null | undefined;
7738
- ids_string_exclude?: string[] | null | undefined;
7739
- logic_codes_include?: string[] | null | undefined;
7740
- logic_codes_exclude?: string[] | null | undefined;
7741
- order_by?: {
7742
- field: string;
7743
- direction: "asc" | "desc";
7744
- } | null | undefined;
7745
- order_bys?: {
7746
- field: string;
7747
- direction: "asc" | "desc";
7748
- }[] | null | undefined;
7749
- id_log_type?: number | null | undefined;
7750
- ids_log_type?: number[] | null | undefined;
7751
- id_commodity_type?: number | null | undefined;
7752
- ids_commodity_type?: number[] | null | undefined;
7753
- };
7754
- output: {
7755
- data: {
7756
- params: Record<string, unknown>;
7757
- log_type: {
7758
- id: number;
7759
- name: string | null;
7760
- is_active: boolean | null;
7761
- created_at: Date | null;
7762
- created_by: string | null;
7763
- updated_at: Date | null;
7764
- updated_by: string | null;
7765
- logic_code: string | null;
7766
- } | null;
7767
- id: number;
7768
- url: string | null;
7769
- id_log_type: number | null;
7770
- action: string | null;
7771
- action_by: string | null;
7772
- action_id: string | null;
7773
- action_at: Date | null;
7774
- id_commodity_type: number | null;
7775
- }[] | undefined;
7776
- total: number | undefined;
7777
- };
7778
- meta: object;
7779
- }>;
7780
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
7781
- input: {
7782
- id?: number | null | undefined;
7783
- id_string?: string | null | undefined;
7784
- };
7785
- output: {
7786
- data: {
7787
- params: Record<string, unknown>;
7788
- log_type: {
7789
- id: number;
7790
- name: string | null;
7791
- is_active: boolean | null;
7792
- created_at: Date | null;
7793
- created_by: string | null;
7794
- updated_at: Date | null;
7795
- updated_by: string | null;
7796
- logic_code: string | null;
7797
- } | null;
7798
- id: number;
7799
- url: string | null;
7800
- id_log_type: number | null;
7801
- action: string | null;
7802
- action_by: string | null;
7803
- action_id: string | null;
7804
- action_at: Date | null;
7805
- id_commodity_type: number | null;
7806
- } | undefined;
7807
- };
7808
- meta: object;
7809
- }>;
7810
- }>>;
7811
- create: import("@trpc/server").TRPCMutationProcedure<{
7812
- input: {
7813
- is_active?: boolean | undefined;
7814
- code?: string | null | undefined;
7815
- name?: string | null | undefined;
7816
- };
7817
- output: {
7818
- data: {
7713
+ service_level_agreement: {
7819
7714
  id: number;
7820
7715
  name: string | null;
7821
7716
  is_active: boolean | null;
@@ -7825,79 +7720,210 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7825
7720
  updated_at: Date | null;
7826
7721
  updated_by: string | null;
7827
7722
  logic_code: string | null;
7828
- } | undefined;
7829
- log: {
7723
+ } | null;
7724
+ } & {
7725
+ id: number;
7726
+ name: string | null;
7727
+ is_active: boolean | null;
7728
+ code: string | null;
7729
+ created_at: Date | null;
7730
+ created_by: string | null;
7731
+ updated_at: Date | null;
7732
+ updated_by: string | null;
7733
+ logic_code: string | null;
7734
+ id_agreement: number | null;
7735
+ percentage: Decimal | null;
7736
+ };
7737
+ };
7738
+ meta: object;
7739
+ }>;
7740
+ histories: import("@trpc/server").TRPCBuiltRouter<{
7741
+ ctx: Context$1;
7742
+ meta: object;
7743
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7744
+ transformer: false;
7745
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7746
+ get: import("@trpc/server").TRPCMutationProcedure<{
7747
+ input: {
7748
+ search?: string | null | undefined;
7749
+ take?: number | null | undefined;
7750
+ skip?: number | null | undefined;
7751
+ is_active?: boolean[] | null | undefined;
7752
+ ids_include?: number[] | null | undefined;
7753
+ ids_exclude?: number[] | null | undefined;
7754
+ ids_string_include?: string[] | null | undefined;
7755
+ ids_string_exclude?: string[] | null | undefined;
7756
+ logic_codes_include?: string[] | null | undefined;
7757
+ logic_codes_exclude?: string[] | null | undefined;
7758
+ order_by?: {
7759
+ field: string;
7760
+ direction: "asc" | "desc";
7761
+ } | null | undefined;
7762
+ order_bys?: {
7763
+ field: string;
7764
+ direction: "asc" | "desc";
7765
+ }[] | null | undefined;
7766
+ id_log_type?: number | null | undefined;
7767
+ ids_log_type?: number[] | null | undefined;
7768
+ id_service_level?: number | null | undefined;
7769
+ ids_service_level?: number[] | null | undefined;
7770
+ };
7771
+ output: {
7772
+ data: {
7773
+ params: Record<string, unknown>;
7774
+ log_type: {
7775
+ id: number;
7776
+ name: string | null;
7777
+ is_active: boolean | null;
7778
+ created_at: Date | null;
7779
+ created_by: string | null;
7780
+ updated_at: Date | null;
7781
+ updated_by: string | null;
7782
+ logic_code: string | null;
7783
+ } | null;
7830
7784
  id: number;
7831
7785
  url: string | null;
7832
7786
  id_log_type: number | null;
7833
7787
  action: string | null;
7834
- params: JsonValue | null;
7835
7788
  action_by: string | null;
7836
7789
  action_id: string | null;
7837
7790
  action_at: Date | null;
7838
- id_commodity_type: number | null;
7839
- } | undefined;
7791
+ id_service_level: number | null;
7792
+ }[] | undefined;
7793
+ total: number | undefined;
7840
7794
  };
7841
7795
  meta: object;
7842
7796
  }>;
7843
- update: import("@trpc/server").TRPCMutationProcedure<{
7797
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
7844
7798
  input: {
7845
7799
  id?: number | null | undefined;
7846
7800
  id_string?: string | null | undefined;
7847
- is_active?: boolean | undefined;
7848
- code?: string | null | undefined;
7849
- name?: string | null | undefined;
7850
7801
  };
7851
7802
  output: {
7852
7803
  data: {
7853
- id: number;
7854
- name: string | null;
7855
- is_active: boolean | null;
7856
- code: string | null;
7857
- created_at: Date | null;
7858
- created_by: string | null;
7859
- updated_at: Date | null;
7860
- updated_by: string | null;
7861
- logic_code: string | null;
7862
- } | undefined;
7863
- log: {
7804
+ params: Record<string, unknown>;
7805
+ log_type: {
7806
+ id: number;
7807
+ name: string | null;
7808
+ is_active: boolean | null;
7809
+ created_at: Date | null;
7810
+ created_by: string | null;
7811
+ updated_at: Date | null;
7812
+ updated_by: string | null;
7813
+ logic_code: string | null;
7814
+ } | null;
7864
7815
  id: number;
7865
7816
  url: string | null;
7866
7817
  id_log_type: number | null;
7867
7818
  action: string | null;
7868
- params: JsonValue | null;
7869
7819
  action_by: string | null;
7870
7820
  action_id: string | null;
7871
7821
  action_at: Date | null;
7872
- id_commodity_type: number | null;
7822
+ id_service_level: number | null;
7873
7823
  } | undefined;
7874
7824
  };
7875
7825
  meta: object;
7876
7826
  }>;
7877
- delete: import("@trpc/server").TRPCMutationProcedure<{
7878
- input: {
7879
- id?: number | null | undefined;
7880
- ids?: number[] | null | undefined;
7881
- id_string?: string | null | undefined;
7882
- ids_string?: string[] | null | undefined;
7883
- };
7884
- output: {
7885
- data: ({
7886
- id: number;
7887
- name: string | null;
7888
- is_active: boolean | null;
7889
- code: string | null;
7890
- created_at: Date | null;
7891
- created_by: string | null;
7892
- updated_at: Date | null;
7893
- updated_by: string | null;
7894
- logic_code: string | null;
7895
- } | undefined)[] | undefined;
7896
- };
7897
- meta: object;
7898
- }>;
7899
7827
  }>>;
7900
- universalGroups: import("@trpc/server").TRPCBuiltRouter<{
7828
+ create: import("@trpc/server").TRPCMutationProcedure<{
7829
+ input: {
7830
+ is_active?: boolean | undefined;
7831
+ id_agreement?: number | null | undefined;
7832
+ code?: string | null | undefined;
7833
+ name?: string | null | undefined;
7834
+ percentage?: number | null | undefined;
7835
+ };
7836
+ output: {
7837
+ data: {
7838
+ id: number;
7839
+ name: string | null;
7840
+ is_active: boolean | null;
7841
+ code: string | null;
7842
+ created_at: Date | null;
7843
+ created_by: string | null;
7844
+ updated_at: Date | null;
7845
+ updated_by: string | null;
7846
+ logic_code: string | null;
7847
+ id_agreement: number | null;
7848
+ percentage: Decimal | null;
7849
+ } | undefined;
7850
+ log: {
7851
+ id: number;
7852
+ url: string | null;
7853
+ id_log_type: number | null;
7854
+ action: string | null;
7855
+ params: JsonValue | null;
7856
+ action_by: string | null;
7857
+ action_id: string | null;
7858
+ action_at: Date | null;
7859
+ id_service_level: number | null;
7860
+ } | undefined;
7861
+ };
7862
+ meta: object;
7863
+ }>;
7864
+ update: import("@trpc/server").TRPCMutationProcedure<{
7865
+ input: {
7866
+ id?: number | null | undefined;
7867
+ id_string?: string | null | undefined;
7868
+ is_active?: boolean | undefined;
7869
+ id_agreement?: number | null | undefined;
7870
+ code?: string | null | undefined;
7871
+ name?: string | null | undefined;
7872
+ percentage?: number | null | undefined;
7873
+ };
7874
+ output: {
7875
+ data: {
7876
+ id: number;
7877
+ name: string | null;
7878
+ is_active: boolean | null;
7879
+ code: string | null;
7880
+ created_at: Date | null;
7881
+ created_by: string | null;
7882
+ updated_at: Date | null;
7883
+ updated_by: string | null;
7884
+ logic_code: string | null;
7885
+ id_agreement: number | null;
7886
+ percentage: Decimal | null;
7887
+ } | undefined;
7888
+ log: {
7889
+ id: number;
7890
+ url: string | null;
7891
+ id_log_type: number | null;
7892
+ action: string | null;
7893
+ params: JsonValue | null;
7894
+ action_by: string | null;
7895
+ action_id: string | null;
7896
+ action_at: Date | null;
7897
+ id_service_level: number | null;
7898
+ } | undefined;
7899
+ };
7900
+ meta: object;
7901
+ }>;
7902
+ delete: import("@trpc/server").TRPCMutationProcedure<{
7903
+ input: {
7904
+ id?: number | null | undefined;
7905
+ ids?: number[] | null | undefined;
7906
+ id_string?: string | null | undefined;
7907
+ ids_string?: string[] | null | undefined;
7908
+ };
7909
+ output: {
7910
+ data: ({
7911
+ id: number;
7912
+ name: string | null;
7913
+ is_active: boolean | null;
7914
+ code: string | null;
7915
+ created_at: Date | null;
7916
+ created_by: string | null;
7917
+ updated_at: Date | null;
7918
+ updated_by: string | null;
7919
+ logic_code: string | null;
7920
+ id_agreement: number | null;
7921
+ percentage: Decimal | null;
7922
+ } | undefined)[] | undefined;
7923
+ };
7924
+ meta: object;
7925
+ }>;
7926
+ agreements: import("@trpc/server").TRPCBuiltRouter<{
7901
7927
  ctx: Context$1;
7902
7928
  meta: object;
7903
7929
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -7948,8 +7974,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7948
7974
  output: {
7949
7975
  data: {
7950
7976
  _count: {
7951
- universal_group_logs: number;
7952
- commodities: number;
7977
+ service_level_agreement_logs: number;
7978
+ service_levels: number;
7953
7979
  };
7954
7980
  } & {
7955
7981
  id: number;
@@ -7993,8 +8019,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7993
8019
  }[] | null | undefined;
7994
8020
  id_log_type?: number | null | undefined;
7995
8021
  ids_log_type?: number[] | null | undefined;
7996
- id_universal_group?: number | null | undefined;
7997
- ids_universal_group?: number[] | null | undefined;
8022
+ id_service_level_agreement?: number | null | undefined;
8023
+ ids_service_level_agreement?: number[] | null | undefined;
7998
8024
  };
7999
8025
  output: {
8000
8026
  data: {
@@ -8016,7 +8042,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8016
8042
  action_by: string | null;
8017
8043
  action_id: string | null;
8018
8044
  action_at: Date | null;
8019
- id_universal_group: number | null;
8045
+ id_service_level_agreement: number | null;
8020
8046
  }[] | undefined;
8021
8047
  total: number | undefined;
8022
8048
  };
@@ -8047,7 +8073,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8047
8073
  action_by: string | null;
8048
8074
  action_id: string | null;
8049
8075
  action_at: Date | null;
8050
- id_universal_group: number | null;
8076
+ id_service_level_agreement: number | null;
8051
8077
  } | undefined;
8052
8078
  };
8053
8079
  meta: object;
@@ -8080,7 +8106,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8080
8106
  action_by: string | null;
8081
8107
  action_id: string | null;
8082
8108
  action_at: Date | null;
8083
- id_universal_group: number | null;
8109
+ id_service_level_agreement: number | null;
8084
8110
  } | undefined;
8085
8111
  };
8086
8112
  meta: object;
@@ -8114,7 +8140,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8114
8140
  action_by: string | null;
8115
8141
  action_id: string | null;
8116
8142
  action_at: Date | null;
8117
- id_universal_group: number | null;
8143
+ id_service_level_agreement: number | null;
8118
8144
  } | undefined;
8119
8145
  };
8120
8146
  meta: object;
@@ -8143,7 +8169,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8143
8169
  }>;
8144
8170
  }>>;
8145
8171
  }>>;
8146
- currencies: import("@trpc/server").TRPCBuiltRouter<{
8172
+ commodities: import("@trpc/server").TRPCBuiltRouter<{
8147
8173
  ctx: Context$1;
8148
8174
  meta: object;
8149
8175
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -8169,25 +8195,72 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8169
8195
  field: string;
8170
8196
  direction: "asc" | "desc";
8171
8197
  }[] | null | undefined;
8198
+ id_commodity?: number | null | undefined;
8199
+ ids_commodity?: number[] | null | undefined;
8200
+ id_iata_commodity?: number | null | undefined;
8201
+ ids_iata_commodity?: number[] | null | undefined;
8202
+ id_commodity_types?: number | null | undefined;
8203
+ ids_commodity_types?: number[] | null | undefined;
8204
+ id_universal_group?: number | null | undefined;
8205
+ ids_universal_group?: number[] | null | undefined;
8172
8206
  };
8173
8207
  output: {
8174
- data: {
8175
- symbol: string | null;
8208
+ data: ({
8209
+ iata_commodity: {
8210
+ id: number;
8211
+ name: string | null;
8212
+ is_active: boolean | null;
8213
+ code: string | null;
8214
+ created_at: Date | null;
8215
+ created_by: string | null;
8216
+ updated_at: Date | null;
8217
+ updated_by: string | null;
8218
+ logic_code: string | null;
8219
+ } | null;
8220
+ commodity_type: {
8221
+ id: number;
8222
+ name: string | null;
8223
+ is_active: boolean | null;
8224
+ code: string | null;
8225
+ created_at: Date | null;
8226
+ created_by: string | null;
8227
+ updated_at: Date | null;
8228
+ updated_by: string | null;
8229
+ logic_code: string | null;
8230
+ } | null;
8231
+ universal_group: {
8232
+ id: number;
8233
+ name: string | null;
8234
+ is_active: boolean | null;
8235
+ code: string | null;
8236
+ created_at: Date | null;
8237
+ created_by: string | null;
8238
+ updated_at: Date | null;
8239
+ updated_by: string | null;
8240
+ logic_code: string | null;
8241
+ } | null;
8242
+ } & {
8176
8243
  id: number;
8177
8244
  name: string | null;
8178
8245
  is_active: boolean | null;
8246
+ code: string | null;
8179
8247
  created_at: Date | null;
8180
8248
  created_by: string | null;
8181
8249
  updated_at: Date | null;
8182
8250
  updated_by: string | null;
8183
8251
  logic_code: string | null;
8184
- currency_code: string | null;
8185
- currency_name: string | null;
8186
- major_unit: string | null;
8187
- minor_unit: string | null;
8188
- decimal_unit: number | null;
8189
- iso_decimal: number | null;
8190
- }[] | undefined;
8252
+ id_iata_commodity: number | null;
8253
+ id_universal_group: number | null;
8254
+ id_commodity_types: number | null;
8255
+ reefer_min_temp: Decimal | null;
8256
+ reefer_max_temp: Decimal | null;
8257
+ is_hazardous: boolean;
8258
+ is_perishable: boolean;
8259
+ is_flammable: boolean;
8260
+ is_timber: boolean;
8261
+ is_vent_required: boolean;
8262
+ expiration_date: Date | null;
8263
+ })[] | undefined;
8191
8264
  total: number | undefined;
8192
8265
  };
8193
8266
  meta: object;
@@ -8199,21 +8272,60 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8199
8272
  };
8200
8273
  output: {
8201
8274
  data: {
8202
- symbol: string | null;
8275
+ iata_commodity: {
8276
+ id: number;
8277
+ name: string | null;
8278
+ is_active: boolean | null;
8279
+ code: string | null;
8280
+ created_at: Date | null;
8281
+ created_by: string | null;
8282
+ updated_at: Date | null;
8283
+ updated_by: string | null;
8284
+ logic_code: string | null;
8285
+ } | null;
8286
+ commodity_type: {
8287
+ id: number;
8288
+ name: string | null;
8289
+ is_active: boolean | null;
8290
+ code: string | null;
8291
+ created_at: Date | null;
8292
+ created_by: string | null;
8293
+ updated_at: Date | null;
8294
+ updated_by: string | null;
8295
+ logic_code: string | null;
8296
+ } | null;
8297
+ universal_group: {
8298
+ id: number;
8299
+ name: string | null;
8300
+ is_active: boolean | null;
8301
+ code: string | null;
8302
+ created_at: Date | null;
8303
+ created_by: string | null;
8304
+ updated_at: Date | null;
8305
+ updated_by: string | null;
8306
+ logic_code: string | null;
8307
+ } | null;
8308
+ } & {
8203
8309
  id: number;
8204
8310
  name: string | null;
8205
8311
  is_active: boolean | null;
8312
+ code: string | null;
8206
8313
  created_at: Date | null;
8207
8314
  created_by: string | null;
8208
8315
  updated_at: Date | null;
8209
8316
  updated_by: string | null;
8210
8317
  logic_code: string | null;
8211
- currency_code: string | null;
8212
- currency_name: string | null;
8213
- major_unit: string | null;
8214
- minor_unit: string | null;
8215
- decimal_unit: number | null;
8216
- iso_decimal: number | null;
8318
+ id_iata_commodity: number | null;
8319
+ id_universal_group: number | null;
8320
+ id_commodity_types: number | null;
8321
+ reefer_min_temp: Decimal | null;
8322
+ reefer_max_temp: Decimal | null;
8323
+ is_hazardous: boolean;
8324
+ is_perishable: boolean;
8325
+ is_flammable: boolean;
8326
+ is_timber: boolean;
8327
+ is_vent_required: boolean;
8328
+ expiration_date: Date | null;
8217
8329
  };
8218
8330
  };
8219
8331
  meta: object;
@@ -8246,8 +8358,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8246
8358
  }[] | null | undefined;
8247
8359
  id_log_type?: number | null | undefined;
8248
8360
  ids_log_type?: number[] | null | undefined;
8249
- id_currency?: number | null | undefined;
8250
- ids_currency?: number[] | null | undefined;
8361
+ id_commodity?: number | null | undefined;
8362
+ ids_commodity?: number[] | null | undefined;
8251
8363
  };
8252
8364
  output: {
8253
8365
  data: {
@@ -8269,7 +8381,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8269
8381
  action_by: string | null;
8270
8382
  action_id: string | null;
8271
8383
  action_at: Date | null;
8272
- id_currency: number | null;
8384
+ id_commodity: number | null;
8273
8385
  }[] | undefined;
8274
8386
  total: number | undefined;
8275
8387
  };
@@ -8300,7 +8412,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8300
8412
  action_by: string | null;
8301
8413
  action_id: string | null;
8302
8414
  action_at: Date | null;
8303
- id_currency: number | null;
8415
+ id_commodity: number | null;
8304
8416
  } | undefined;
8305
8417
  };
8306
8418
  meta: object;
@@ -8309,32 +8421,43 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8309
8421
  create: import("@trpc/server").TRPCMutationProcedure<{
8310
8422
  input: {
8311
8423
  is_active?: boolean | undefined;
8424
+ code?: string | null | undefined;
8312
8425
  name?: string | null | undefined;
8313
- currency_code?: string | null | undefined;
8314
- currency_name?: string | null | undefined;
8315
- major_unit?: string | null | undefined;
8316
- minor_unit?: string | null | undefined;
8317
- decimal_unit?: number | null | undefined;
8318
- iso_decimal?: number | null | undefined;
8319
- symbol?: string | null | undefined;
8426
+ logic_code?: string | null | undefined;
8427
+ id_commodity_types?: number | null | undefined;
8428
+ id_universal_group?: number | null | undefined;
8429
+ id_iata_commodity?: number | null | undefined;
8430
+ reefer_min_temp?: number | null | undefined;
8431
+ reefer_max_temp?: number | null | undefined;
8432
+ is_hazardous?: boolean | undefined;
8433
+ is_perishable?: boolean | undefined;
8434
+ is_flammable?: boolean | undefined;
8435
+ is_timber?: boolean | undefined;
8436
+ is_vent_required?: boolean | undefined;
8437
+ expiration_date?: string | null | undefined;
8320
8438
  };
8321
8439
  output: {
8322
8440
  data: {
8323
- symbol: string | null;
8324
8441
  id: number;
8325
8442
  name: string | null;
8326
8443
  is_active: boolean | null;
8444
+ code: string | null;
8327
8445
  created_at: Date | null;
8328
8446
  created_by: string | null;
8329
8447
  updated_at: Date | null;
8330
8448
  updated_by: string | null;
8331
8449
  logic_code: string | null;
8332
- currency_code: string | null;
8333
- currency_name: string | null;
8334
- major_unit: string | null;
8335
- minor_unit: string | null;
8336
- decimal_unit: number | null;
8337
- iso_decimal: number | null;
8450
+ id_iata_commodity: number | null;
8451
+ id_universal_group: number | null;
8452
+ id_commodity_types: number | null;
8453
+ reefer_min_temp: Decimal | null;
8454
+ reefer_max_temp: Decimal | null;
8455
+ is_hazardous: boolean;
8456
+ is_perishable: boolean;
8457
+ is_flammable: boolean;
8458
+ is_timber: boolean;
8459
+ is_vent_required: boolean;
8460
+ expiration_date: Date | null;
8338
8461
  } | undefined;
8339
8462
  log: {
8340
8463
  id: number;
@@ -8345,7 +8468,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8345
8468
  action_by: string | null;
8346
8469
  action_id: string | null;
8347
8470
  action_at: Date | null;
8348
- id_currency: number | null;
8471
+ id_commodity: number | null;
8349
8472
  } | undefined;
8350
8473
  };
8351
8474
  meta: object;
@@ -8355,32 +8478,43 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8355
8478
  id?: number | null | undefined;
8356
8479
  id_string?: string | null | undefined;
8357
8480
  is_active?: boolean | undefined;
8481
+ code?: string | null | undefined;
8358
8482
  name?: string | null | undefined;
8359
- currency_code?: string | null | undefined;
8360
- currency_name?: string | null | undefined;
8361
- major_unit?: string | null | undefined;
8362
- minor_unit?: string | null | undefined;
8363
- decimal_unit?: number | null | undefined;
8364
- iso_decimal?: number | null | undefined;
8365
- symbol?: string | null | undefined;
8483
+ logic_code?: string | null | undefined;
8484
+ id_commodity_types?: number | null | undefined;
8485
+ id_universal_group?: number | null | undefined;
8486
+ id_iata_commodity?: number | null | undefined;
8487
+ reefer_min_temp?: number | null | undefined;
8488
+ reefer_max_temp?: number | null | undefined;
8489
+ is_hazardous?: boolean | undefined;
8490
+ is_perishable?: boolean | undefined;
8491
+ is_flammable?: boolean | undefined;
8492
+ is_timber?: boolean | undefined;
8493
+ is_vent_required?: boolean | undefined;
8494
+ expiration_date?: string | null | undefined;
8366
8495
  };
8367
8496
  output: {
8368
8497
  data: {
8369
- symbol: string | null;
8370
8498
  id: number;
8371
8499
  name: string | null;
8372
8500
  is_active: boolean | null;
8501
+ code: string | null;
8373
8502
  created_at: Date | null;
8374
8503
  created_by: string | null;
8375
8504
  updated_at: Date | null;
8376
8505
  updated_by: string | null;
8377
8506
  logic_code: string | null;
8378
- currency_code: string | null;
8379
- currency_name: string | null;
8380
- major_unit: string | null;
8381
- minor_unit: string | null;
8382
- decimal_unit: number | null;
8383
- iso_decimal: number | null;
8507
+ id_iata_commodity: number | null;
8508
+ id_universal_group: number | null;
8509
+ id_commodity_types: number | null;
8510
+ reefer_min_temp: Decimal | null;
8511
+ reefer_max_temp: Decimal | null;
8512
+ is_hazardous: boolean;
8513
+ is_perishable: boolean;
8514
+ is_flammable: boolean;
8515
+ is_timber: boolean;
8516
+ is_vent_required: boolean;
8517
+ expiration_date: Date | null;
8384
8518
  } | undefined;
8385
8519
  log: {
8386
8520
  id: number;
@@ -8391,7 +8525,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8391
8525
  action_by: string | null;
8392
8526
  action_id: string | null;
8393
8527
  action_at: Date | null;
8394
- id_currency: number | null;
8528
+ id_commodity: number | null;
8395
8529
  } | undefined;
8396
8530
  };
8397
8531
  meta: object;
@@ -8405,62 +8539,50 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8405
8539
  };
8406
8540
  output: {
8407
8541
  data: ({
8408
- symbol: string | null;
8409
8542
  id: number;
8410
8543
  name: string | null;
8411
8544
  is_active: boolean | null;
8545
+ code: string | null;
8412
8546
  created_at: Date | null;
8413
8547
  created_by: string | null;
8414
8548
  updated_at: Date | null;
8415
8549
  updated_by: string | null;
8416
8550
  logic_code: string | null;
8417
- currency_code: string | null;
8418
- currency_name: string | null;
8419
- major_unit: string | null;
8420
- minor_unit: string | null;
8421
- decimal_unit: number | null;
8422
- iso_decimal: number | null;
8551
+ id_agreement: number | null;
8552
+ percentage: Decimal | null;
8423
8553
  } | undefined)[] | undefined;
8424
8554
  };
8425
8555
  meta: object;
8426
8556
  }>;
8427
- }>>;
8428
- exchangeRates: import("@trpc/server").TRPCBuiltRouter<{
8429
- ctx: Context$1;
8430
- meta: object;
8431
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8432
- transformer: false;
8433
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8434
- get: import("@trpc/server").TRPCMutationProcedure<{
8435
- input: {
8436
- search?: string | null | undefined;
8437
- take?: number | null | undefined;
8438
- skip?: number | null | undefined;
8439
- is_active?: boolean[] | null | undefined;
8440
- ids_include?: number[] | null | undefined;
8441
- ids_exclude?: number[] | null | undefined;
8442
- ids_string_include?: string[] | null | undefined;
8443
- ids_string_exclude?: string[] | null | undefined;
8444
- logic_codes_include?: string[] | null | undefined;
8445
- logic_codes_exclude?: string[] | null | undefined;
8446
- order_by?: {
8447
- field: string;
8448
- direction: "asc" | "desc";
8449
- } | null | undefined;
8450
- order_bys?: {
8451
- field: string;
8452
- direction: "asc" | "desc";
8453
- }[] | null | undefined;
8454
- id_currency_from?: number | null | undefined;
8455
- ids_currency_from?: number[] | null | undefined;
8456
- id_currency_to?: number | null | undefined;
8457
- ids_currency_to?: number[] | null | undefined;
8458
- id_exchange_rate_type?: number | null | undefined;
8459
- ids_exchange_rate_type?: number[] | null | undefined;
8460
- };
8461
- output: {
8462
- data: ({
8463
- exchange_rate_types: {
8557
+ iata: import("@trpc/server").TRPCBuiltRouter<{
8558
+ ctx: Context$1;
8559
+ meta: object;
8560
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8561
+ transformer: false;
8562
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8563
+ get: import("@trpc/server").TRPCMutationProcedure<{
8564
+ input: {
8565
+ search?: string | null | undefined;
8566
+ take?: number | null | undefined;
8567
+ skip?: number | null | undefined;
8568
+ is_active?: boolean[] | null | undefined;
8569
+ ids_include?: number[] | null | undefined;
8570
+ ids_exclude?: number[] | null | undefined;
8571
+ ids_string_include?: string[] | null | undefined;
8572
+ ids_string_exclude?: string[] | null | undefined;
8573
+ logic_codes_include?: string[] | null | undefined;
8574
+ logic_codes_exclude?: string[] | null | undefined;
8575
+ order_by?: {
8576
+ field: string;
8577
+ direction: "asc" | "desc";
8578
+ } | null | undefined;
8579
+ order_bys?: {
8580
+ field: string;
8581
+ direction: "asc" | "desc";
8582
+ }[] | null | undefined;
8583
+ };
8584
+ output: {
8585
+ data: {
8464
8586
  id: number;
8465
8587
  name: string | null;
8466
8588
  is_active: boolean | null;
@@ -8470,78 +8592,132 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8470
8592
  updated_at: Date | null;
8471
8593
  updated_by: string | null;
8472
8594
  logic_code: string | null;
8473
- } | null;
8474
- currency_from: {
8475
- symbol: string | null;
8476
- id: number;
8477
- name: string | null;
8478
- is_active: boolean | null;
8479
- created_at: Date | null;
8480
- created_by: string | null;
8481
- updated_at: Date | null;
8482
- updated_by: string | null;
8483
- logic_code: string | null;
8484
- currency_code: string | null;
8485
- currency_name: string | null;
8486
- major_unit: string | null;
8487
- minor_unit: string | null;
8488
- decimal_unit: number | null;
8489
- iso_decimal: number | null;
8490
- } | null;
8491
- currency_to: {
8492
- symbol: string | null;
8595
+ }[] | undefined;
8596
+ total: number | undefined;
8597
+ };
8598
+ meta: object;
8599
+ }>;
8600
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
8601
+ input: {
8602
+ id?: number | null | undefined;
8603
+ id_string?: string | null | undefined;
8604
+ };
8605
+ output: {
8606
+ data: {
8607
+ _count: {
8608
+ iata_commodity_logs: number;
8609
+ commodities: number;
8610
+ };
8611
+ } & {
8493
8612
  id: number;
8494
8613
  name: string | null;
8495
8614
  is_active: boolean | null;
8615
+ code: string | null;
8496
8616
  created_at: Date | null;
8497
8617
  created_by: string | null;
8498
8618
  updated_at: Date | null;
8499
8619
  updated_by: string | null;
8500
8620
  logic_code: string | null;
8501
- currency_code: string | null;
8502
- currency_name: string | null;
8503
- major_unit: string | null;
8504
- minor_unit: string | null;
8505
- decimal_unit: number | null;
8506
- iso_decimal: number | null;
8507
- } | null;
8508
- } & {
8509
- id: number;
8510
- is_active: boolean | null;
8511
- created_at: Date | null;
8512
- created_by: string | null;
8513
- updated_at: Date | null;
8514
- updated_by: string | null;
8515
- logic_code: string | null;
8516
- id_currency_from: number | null;
8517
- id_currency_to: number | null;
8518
- id_exchange_rate_type: number | null;
8519
- rate: Decimal | null;
8520
- start_date: Date | null;
8521
- end_date: Date | null;
8522
- })[] | undefined;
8523
- total: number | undefined;
8524
- };
8525
- meta: object;
8526
- }>;
8527
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
8528
- input: {
8529
- id?: number | null | undefined;
8530
- id_string?: string | null | undefined;
8531
- };
8532
- output: {
8533
- data: {
8534
- _count: {
8535
- currency_from: number;
8536
- currency_to: number;
8537
- exchange_rate_types: number;
8538
- exchange_rates_logs: number;
8539
- forwarding_shipment_billing_details_cost: number;
8540
- forwarding_shipment_billing_details_sell: number;
8541
- forwarding_console_billing_details_cost: number;
8542
- forwarding_console_billing_details_sell: number;
8543
8621
  };
8544
- exchange_rate_types: {
8622
+ };
8623
+ meta: object;
8624
+ }>;
8625
+ histories: import("@trpc/server").TRPCBuiltRouter<{
8626
+ ctx: Context$1;
8627
+ meta: object;
8628
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8629
+ transformer: false;
8630
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8631
+ get: import("@trpc/server").TRPCMutationProcedure<{
8632
+ input: {
8633
+ search?: string | null | undefined;
8634
+ take?: number | null | undefined;
8635
+ skip?: number | null | undefined;
8636
+ is_active?: boolean[] | null | undefined;
8637
+ ids_include?: number[] | null | undefined;
8638
+ ids_exclude?: number[] | null | undefined;
8639
+ ids_string_include?: string[] | null | undefined;
8640
+ ids_string_exclude?: string[] | null | undefined;
8641
+ logic_codes_include?: string[] | null | undefined;
8642
+ logic_codes_exclude?: string[] | null | undefined;
8643
+ order_by?: {
8644
+ field: string;
8645
+ direction: "asc" | "desc";
8646
+ } | null | undefined;
8647
+ order_bys?: {
8648
+ field: string;
8649
+ direction: "asc" | "desc";
8650
+ }[] | null | undefined;
8651
+ id_log_type?: number | null | undefined;
8652
+ ids_log_type?: number[] | null | undefined;
8653
+ id_iata_commodity?: number | null | undefined;
8654
+ ids_iata_commodity?: number[] | null | undefined;
8655
+ };
8656
+ output: {
8657
+ data: {
8658
+ params: Record<string, unknown>;
8659
+ log_type: {
8660
+ id: number;
8661
+ name: string | null;
8662
+ is_active: boolean | null;
8663
+ created_at: Date | null;
8664
+ created_by: string | null;
8665
+ updated_at: Date | null;
8666
+ updated_by: string | null;
8667
+ logic_code: string | null;
8668
+ } | null;
8669
+ id: number;
8670
+ url: string | null;
8671
+ id_log_type: number | null;
8672
+ action: string | null;
8673
+ action_by: string | null;
8674
+ action_id: string | null;
8675
+ action_at: Date | null;
8676
+ id_iata_commodity: number | null;
8677
+ }[] | undefined;
8678
+ total: number | undefined;
8679
+ };
8680
+ meta: object;
8681
+ }>;
8682
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
8683
+ input: {
8684
+ id?: number | null | undefined;
8685
+ id_string?: string | null | undefined;
8686
+ };
8687
+ output: {
8688
+ data: {
8689
+ params: Record<string, unknown>;
8690
+ log_type: {
8691
+ id: number;
8692
+ name: string | null;
8693
+ is_active: boolean | null;
8694
+ created_at: Date | null;
8695
+ created_by: string | null;
8696
+ updated_at: Date | null;
8697
+ updated_by: string | null;
8698
+ logic_code: string | null;
8699
+ } | null;
8700
+ id: number;
8701
+ url: string | null;
8702
+ id_log_type: number | null;
8703
+ action: string | null;
8704
+ action_by: string | null;
8705
+ action_id: string | null;
8706
+ action_at: Date | null;
8707
+ id_iata_commodity: number | null;
8708
+ } | undefined;
8709
+ };
8710
+ meta: object;
8711
+ }>;
8712
+ }>>;
8713
+ create: import("@trpc/server").TRPCMutationProcedure<{
8714
+ input: {
8715
+ is_active?: boolean | undefined;
8716
+ code?: string | null | undefined;
8717
+ name?: string | null | undefined;
8718
+ };
8719
+ output: {
8720
+ data: {
8545
8721
  id: number;
8546
8722
  name: string | null;
8547
8723
  is_active: boolean | null;
@@ -8551,60 +8727,79 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8551
8727
  updated_at: Date | null;
8552
8728
  updated_by: string | null;
8553
8729
  logic_code: string | null;
8554
- } | null;
8555
- currency_from: {
8556
- symbol: string | null;
8730
+ } | undefined;
8731
+ log: {
8732
+ id: number;
8733
+ url: string | null;
8734
+ id_log_type: number | null;
8735
+ action: string | null;
8736
+ params: JsonValue | null;
8737
+ action_by: string | null;
8738
+ action_id: string | null;
8739
+ action_at: Date | null;
8740
+ id_iata_commodity: number | null;
8741
+ } | undefined;
8742
+ };
8743
+ meta: object;
8744
+ }>;
8745
+ update: import("@trpc/server").TRPCMutationProcedure<{
8746
+ input: {
8747
+ id?: number | null | undefined;
8748
+ id_string?: string | null | undefined;
8749
+ is_active?: boolean | undefined;
8750
+ code?: string | null | undefined;
8751
+ name?: string | null | undefined;
8752
+ };
8753
+ output: {
8754
+ data: {
8557
8755
  id: number;
8558
8756
  name: string | null;
8559
8757
  is_active: boolean | null;
8758
+ code: string | null;
8560
8759
  created_at: Date | null;
8561
8760
  created_by: string | null;
8562
8761
  updated_at: Date | null;
8563
8762
  updated_by: string | null;
8564
8763
  logic_code: string | null;
8565
- currency_code: string | null;
8566
- currency_name: string | null;
8567
- major_unit: string | null;
8568
- minor_unit: string | null;
8569
- decimal_unit: number | null;
8570
- iso_decimal: number | null;
8571
- } | null;
8572
- currency_to: {
8573
- symbol: string | null;
8764
+ } | undefined;
8765
+ log: {
8766
+ id: number;
8767
+ url: string | null;
8768
+ id_log_type: number | null;
8769
+ action: string | null;
8770
+ params: JsonValue | null;
8771
+ action_by: string | null;
8772
+ action_id: string | null;
8773
+ action_at: Date | null;
8774
+ id_iata_commodity: number | null;
8775
+ } | undefined;
8776
+ };
8777
+ meta: object;
8778
+ }>;
8779
+ delete: import("@trpc/server").TRPCMutationProcedure<{
8780
+ input: {
8781
+ id?: number | null | undefined;
8782
+ ids?: number[] | null | undefined;
8783
+ id_string?: string | null | undefined;
8784
+ ids_string?: string[] | null | undefined;
8785
+ };
8786
+ output: {
8787
+ data: ({
8574
8788
  id: number;
8575
8789
  name: string | null;
8576
8790
  is_active: boolean | null;
8791
+ code: string | null;
8577
8792
  created_at: Date | null;
8578
8793
  created_by: string | null;
8579
8794
  updated_at: Date | null;
8580
8795
  updated_by: string | null;
8581
8796
  logic_code: string | null;
8582
- currency_code: string | null;
8583
- currency_name: string | null;
8584
- major_unit: string | null;
8585
- minor_unit: string | null;
8586
- decimal_unit: number | null;
8587
- iso_decimal: number | null;
8588
- } | null;
8589
- } & {
8590
- id: number;
8591
- is_active: boolean | null;
8592
- created_at: Date | null;
8593
- created_by: string | null;
8594
- updated_at: Date | null;
8595
- updated_by: string | null;
8596
- logic_code: string | null;
8597
- id_currency_from: number | null;
8598
- id_currency_to: number | null;
8599
- id_exchange_rate_type: number | null;
8600
- rate: Decimal | null;
8601
- start_date: Date | null;
8602
- end_date: Date | null;
8797
+ } | undefined)[] | undefined;
8603
8798
  };
8604
- };
8605
- meta: object;
8606
- }>;
8607
- histories: import("@trpc/server").TRPCBuiltRouter<{
8799
+ meta: object;
8800
+ }>;
8801
+ }>>;
8802
+ types: import("@trpc/server").TRPCBuiltRouter<{
8608
8803
  ctx: Context$1;
8609
8804
  meta: object;
8610
8805
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -8630,32 +8825,18 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8630
8825
  field: string;
8631
8826
  direction: "asc" | "desc";
8632
8827
  }[] | null | undefined;
8633
- id_log_type?: number | null | undefined;
8634
- ids_log_type?: number[] | null | undefined;
8635
- id_exchange_rate?: number | null | undefined;
8636
- ids_exchange_rate?: number[] | null | undefined;
8637
8828
  };
8638
8829
  output: {
8639
8830
  data: {
8640
- params: Record<string, unknown>;
8641
- log_type: {
8642
- id: number;
8643
- name: string | null;
8644
- is_active: boolean | null;
8645
- created_at: Date | null;
8646
- created_by: string | null;
8647
- updated_at: Date | null;
8648
- updated_by: string | null;
8649
- logic_code: string | null;
8650
- } | null;
8651
8831
  id: number;
8652
- url: string | null;
8653
- id_log_type: number | null;
8654
- action: string | null;
8655
- action_by: string | null;
8656
- action_id: string | null;
8657
- action_at: Date | null;
8658
- id_exchange_rate: number | null;
8832
+ name: string | null;
8833
+ is_active: boolean | null;
8834
+ code: string | null;
8835
+ created_at: Date | null;
8836
+ created_by: string | null;
8837
+ updated_at: Date | null;
8838
+ updated_by: string | null;
8839
+ logic_code: string | null;
8659
8840
  }[] | undefined;
8660
8841
  total: number | undefined;
8661
8842
  };
@@ -8668,209 +8849,11 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8668
8849
  };
8669
8850
  output: {
8670
8851
  data: {
8671
- params: Record<string, unknown>;
8672
- log_type: {
8673
- id: number;
8674
- name: string | null;
8675
- is_active: boolean | null;
8676
- created_at: Date | null;
8677
- created_by: string | null;
8678
- updated_at: Date | null;
8679
- updated_by: string | null;
8680
- logic_code: string | null;
8681
- } | null;
8682
- id: number;
8683
- url: string | null;
8684
- id_log_type: number | null;
8685
- action: string | null;
8686
- action_by: string | null;
8687
- action_id: string | null;
8688
- action_at: Date | null;
8689
- id_exchange_rate: number | null;
8690
- } | undefined;
8691
- };
8692
- meta: object;
8693
- }>;
8694
- }>>;
8695
- create: import("@trpc/server").TRPCMutationProcedure<{
8696
- input: {
8697
- is_active?: boolean | undefined;
8698
- id_currency_from?: number | null | undefined;
8699
- id_currency_to?: number | null | undefined;
8700
- id_exchange_rate_type?: number | null | undefined;
8701
- rate?: string | null | undefined;
8702
- start_date?: Date | null | undefined;
8703
- end_date?: Date | null | undefined;
8704
- };
8705
- output: {
8706
- data: {
8707
- id: number;
8708
- is_active: boolean | null;
8709
- created_at: Date | null;
8710
- created_by: string | null;
8711
- updated_at: Date | null;
8712
- updated_by: string | null;
8713
- logic_code: string | null;
8714
- id_currency_from: number | null;
8715
- id_currency_to: number | null;
8716
- id_exchange_rate_type: number | null;
8717
- rate: Decimal | null;
8718
- start_date: Date | null;
8719
- end_date: Date | null;
8720
- } | undefined;
8721
- log: {
8722
- id: number;
8723
- url: string | null;
8724
- id_log_type: number | null;
8725
- action: string | null;
8726
- params: JsonValue | null;
8727
- action_by: string | null;
8728
- action_id: string | null;
8729
- action_at: Date | null;
8730
- id_exchange_rate: number | null;
8731
- } | undefined;
8732
- };
8733
- meta: object;
8734
- }>;
8735
- update: import("@trpc/server").TRPCMutationProcedure<{
8736
- input: {
8737
- id?: number | null | undefined;
8738
- id_string?: string | null | undefined;
8739
- is_active?: boolean | undefined;
8740
- id_currency_from?: number | null | undefined;
8741
- id_currency_to?: number | null | undefined;
8742
- id_exchange_rate_type?: number | null | undefined;
8743
- rate?: string | null | undefined;
8744
- start_date?: Date | null | undefined;
8745
- end_date?: Date | null | undefined;
8746
- };
8747
- output: {
8748
- data: {
8749
- id: number;
8750
- is_active: boolean | null;
8751
- created_at: Date | null;
8752
- created_by: string | null;
8753
- updated_at: Date | null;
8754
- updated_by: string | null;
8755
- logic_code: string | null;
8756
- id_currency_from: number | null;
8757
- id_currency_to: number | null;
8758
- id_exchange_rate_type: number | null;
8759
- rate: Decimal | null;
8760
- start_date: Date | null;
8761
- end_date: Date | null;
8762
- } | undefined;
8763
- log: {
8764
- id: number;
8765
- url: string | null;
8766
- id_log_type: number | null;
8767
- action: string | null;
8768
- params: JsonValue | null;
8769
- action_by: string | null;
8770
- action_id: string | null;
8771
- action_at: Date | null;
8772
- id_exchange_rate: number | null;
8773
- } | undefined;
8774
- };
8775
- meta: object;
8776
- }>;
8777
- delete: import("@trpc/server").TRPCMutationProcedure<{
8778
- input: {
8779
- id?: number | null | undefined;
8780
- ids?: number[] | null | undefined;
8781
- id_string?: string | null | undefined;
8782
- ids_string?: string[] | null | undefined;
8783
- };
8784
- output: {
8785
- data: ({
8786
- id: number;
8787
- is_active: boolean | null;
8788
- created_at: Date | null;
8789
- created_by: string | null;
8790
- updated_at: Date | null;
8791
- updated_by: string | null;
8792
- logic_code: string | null;
8793
- id_currency_from: number | null;
8794
- id_currency_to: number | null;
8795
- id_exchange_rate_type: number | null;
8796
- rate: Decimal | null;
8797
- start_date: Date | null;
8798
- end_date: Date | null;
8799
- } | undefined)[] | undefined;
8800
- };
8801
- meta: object;
8802
- }>;
8803
- types: import("@trpc/server").TRPCBuiltRouter<{
8804
- ctx: Context$1;
8805
- meta: object;
8806
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8807
- transformer: false;
8808
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8809
- get: import("@trpc/server").TRPCMutationProcedure<{
8810
- input: {
8811
- search?: string | null | undefined;
8812
- take?: number | null | undefined;
8813
- skip?: number | null | undefined;
8814
- is_active?: boolean[] | null | undefined;
8815
- ids_include?: number[] | null | undefined;
8816
- ids_exclude?: number[] | null | undefined;
8817
- ids_string_include?: string[] | null | undefined;
8818
- ids_string_exclude?: string[] | null | undefined;
8819
- logic_codes_include?: string[] | null | undefined;
8820
- logic_codes_exclude?: string[] | null | undefined;
8821
- order_by?: {
8822
- field: string;
8823
- direction: "asc" | "desc";
8824
- } | null | undefined;
8825
- order_bys?: {
8826
- field: string;
8827
- direction: "asc" | "desc";
8828
- }[] | null | undefined;
8829
- };
8830
- output: {
8831
- data: ({
8832
- exchange_rates: {
8833
- id: number;
8834
- is_active: boolean | null;
8835
- created_at: Date | null;
8836
- created_by: string | null;
8837
- updated_at: Date | null;
8838
- updated_by: string | null;
8839
- logic_code: string | null;
8840
- id_currency_from: number | null;
8841
- id_currency_to: number | null;
8842
- id_exchange_rate_type: number | null;
8843
- rate: Decimal | null;
8844
- start_date: Date | null;
8845
- end_date: Date | null;
8846
- }[];
8847
- } & {
8848
- id: number;
8849
- name: string | null;
8850
- is_active: boolean | null;
8851
- code: string | null;
8852
- created_at: Date | null;
8853
- created_by: string | null;
8854
- updated_at: Date | null;
8855
- updated_by: string | null;
8856
- logic_code: string | null;
8857
- })[] | undefined;
8858
- total: number | undefined;
8859
- };
8860
- meta: object;
8861
- }>;
8862
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
8863
- input: {
8864
- id?: number | null | undefined;
8865
- id_string?: string | null | undefined;
8866
- };
8867
- output: {
8868
- data: {
8869
- _count: {
8870
- exchange_rates: number;
8871
- exchange_rate_types_logs: number;
8872
- };
8873
- } & {
8852
+ _count: {
8853
+ commodities: number;
8854
+ commodity_type_logs: number;
8855
+ };
8856
+ } & {
8874
8857
  id: number;
8875
8858
  name: string | null;
8876
8859
  is_active: boolean | null;
@@ -8912,8 +8895,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8912
8895
  }[] | null | undefined;
8913
8896
  id_log_type?: number | null | undefined;
8914
8897
  ids_log_type?: number[] | null | undefined;
8915
- id_exchange_rate_type?: number | null | undefined;
8916
- ids_exchange_rate_type?: number[] | null | undefined;
8898
+ id_commodity_type?: number | null | undefined;
8899
+ ids_commodity_type?: number[] | null | undefined;
8917
8900
  };
8918
8901
  output: {
8919
8902
  data: {
@@ -8935,7 +8918,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8935
8918
  action_by: string | null;
8936
8919
  action_id: string | null;
8937
8920
  action_at: Date | null;
8938
- id_exchange_rate_type: number | null;
8921
+ id_commodity_type: number | null;
8939
8922
  }[] | undefined;
8940
8923
  total: number | undefined;
8941
8924
  };
@@ -8966,7 +8949,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8966
8949
  action_by: string | null;
8967
8950
  action_id: string | null;
8968
8951
  action_at: Date | null;
8969
- id_exchange_rate_type: number | null;
8952
+ id_commodity_type: number | null;
8970
8953
  } | undefined;
8971
8954
  };
8972
8955
  meta: object;
@@ -8999,7 +8982,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8999
8982
  action_by: string | null;
9000
8983
  action_id: string | null;
9001
8984
  action_at: Date | null;
9002
- id_exchange_rate_type: number | null;
8985
+ id_commodity_type: number | null;
9003
8986
  } | undefined;
9004
8987
  };
9005
8988
  meta: object;
@@ -9033,7 +9016,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9033
9016
  action_by: string | null;
9034
9017
  action_id: string | null;
9035
9018
  action_at: Date | null;
9036
- id_exchange_rate_type: number | null;
9019
+ id_commodity_type: number | null;
9037
9020
  } | undefined;
9038
9021
  };
9039
9022
  meta: object;
@@ -9061,14 +9044,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9061
9044
  meta: object;
9062
9045
  }>;
9063
9046
  }>>;
9064
- }>>;
9065
- units: import("@trpc/server").TRPCBuiltRouter<{
9066
- ctx: Context$1;
9067
- meta: object;
9068
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9069
- transformer: false;
9070
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9071
- massUnits: import("@trpc/server").TRPCBuiltRouter<{
9047
+ universalGroups: import("@trpc/server").TRPCBuiltRouter<{
9072
9048
  ctx: Context$1;
9073
9049
  meta: object;
9074
9050
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -9119,15 +9095,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9119
9095
  output: {
9120
9096
  data: {
9121
9097
  _count: {
9122
- mass_units_logs: number;
9123
- package_type_weights: number;
9124
- containers_max_gross_weight: number;
9125
- containers_max_tare_weight: number;
9126
- containers_max_net_weight: number;
9127
- containers_inside_max_net_weight: number;
9128
- forwarding_bookings_weight_unit: number;
9129
- forwarding_shipments_weight_unit: number;
9130
- forwarding_shipment_packings_weight_unit: number;
9098
+ universal_group_logs: number;
9099
+ commodities: number;
9131
9100
  };
9132
9101
  } & {
9133
9102
  id: number;
@@ -9171,8 +9140,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9171
9140
  }[] | null | undefined;
9172
9141
  id_log_type?: number | null | undefined;
9173
9142
  ids_log_type?: number[] | null | undefined;
9174
- id_mass_unit?: number | null | undefined;
9175
- ids_mass_unit?: number[] | null | undefined;
9143
+ id_universal_group?: number | null | undefined;
9144
+ ids_universal_group?: number[] | null | undefined;
9176
9145
  };
9177
9146
  output: {
9178
9147
  data: {
@@ -9194,7 +9163,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9194
9163
  action_by: string | null;
9195
9164
  action_id: string | null;
9196
9165
  action_at: Date | null;
9197
- id_mass_unit: number | null;
9166
+ id_universal_group: number | null;
9198
9167
  }[] | undefined;
9199
9168
  total: number | undefined;
9200
9169
  };
@@ -9225,7 +9194,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9225
9194
  action_by: string | null;
9226
9195
  action_id: string | null;
9227
9196
  action_at: Date | null;
9228
- id_mass_unit: number | null;
9197
+ id_universal_group: number | null;
9229
9198
  } | undefined;
9230
9199
  };
9231
9200
  meta: object;
@@ -9258,7 +9227,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9258
9227
  action_by: string | null;
9259
9228
  action_id: string | null;
9260
9229
  action_at: Date | null;
9261
- id_mass_unit: number | null;
9230
+ id_universal_group: number | null;
9262
9231
  } | undefined;
9263
9232
  };
9264
9233
  meta: object;
@@ -9292,7 +9261,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9292
9261
  action_by: string | null;
9293
9262
  action_id: string | null;
9294
9263
  action_at: Date | null;
9295
- id_mass_unit: number | null;
9264
+ id_universal_group: number | null;
9296
9265
  } | undefined;
9297
9266
  };
9298
9267
  meta: object;
@@ -9320,44 +9289,134 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9320
9289
  meta: object;
9321
9290
  }>;
9322
9291
  }>>;
9323
- measurementUnits: import("@trpc/server").TRPCBuiltRouter<{
9324
- ctx: Context$1;
9325
- meta: object;
9326
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9327
- transformer: false;
9328
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9329
- get: import("@trpc/server").TRPCMutationProcedure<{
9330
- input: {
9331
- search?: string | null | undefined;
9332
- take?: number | null | undefined;
9333
- skip?: number | null | undefined;
9334
- is_active?: boolean[] | null | undefined;
9335
- ids_include?: number[] | null | undefined;
9336
- ids_exclude?: number[] | null | undefined;
9337
- ids_string_include?: string[] | null | undefined;
9338
- ids_string_exclude?: string[] | null | undefined;
9339
- logic_codes_include?: string[] | null | undefined;
9340
- logic_codes_exclude?: string[] | null | undefined;
9341
- order_by?: {
9342
- field: string;
9343
- direction: "asc" | "desc";
9344
- } | null | undefined;
9345
- order_bys?: {
9346
- field: string;
9347
- direction: "asc" | "desc";
9348
- }[] | null | undefined;
9349
- };
9350
- output: {
9351
- data: {
9352
- id: number;
9353
- name: string | null;
9354
- is_active: boolean | null;
9355
- code: string | null;
9356
- created_at: Date | null;
9357
- created_by: string | null;
9358
- updated_at: Date | null;
9359
- updated_by: string | null;
9360
- logic_code: string | null;
9292
+ }>>;
9293
+ currencies: import("@trpc/server").TRPCBuiltRouter<{
9294
+ ctx: Context$1;
9295
+ meta: object;
9296
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9297
+ transformer: false;
9298
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9299
+ get: import("@trpc/server").TRPCMutationProcedure<{
9300
+ input: {
9301
+ search?: string | null | undefined;
9302
+ take?: number | null | undefined;
9303
+ skip?: number | null | undefined;
9304
+ is_active?: boolean[] | null | undefined;
9305
+ ids_include?: number[] | null | undefined;
9306
+ ids_exclude?: number[] | null | undefined;
9307
+ ids_string_include?: string[] | null | undefined;
9308
+ ids_string_exclude?: string[] | null | undefined;
9309
+ logic_codes_include?: string[] | null | undefined;
9310
+ logic_codes_exclude?: string[] | null | undefined;
9311
+ order_by?: {
9312
+ field: string;
9313
+ direction: "asc" | "desc";
9314
+ } | null | undefined;
9315
+ order_bys?: {
9316
+ field: string;
9317
+ direction: "asc" | "desc";
9318
+ }[] | null | undefined;
9319
+ };
9320
+ output: {
9321
+ data: {
9322
+ symbol: string | null;
9323
+ id: number;
9324
+ name: string | null;
9325
+ is_active: boolean | null;
9326
+ created_at: Date | null;
9327
+ created_by: string | null;
9328
+ updated_at: Date | null;
9329
+ updated_by: string | null;
9330
+ logic_code: string | null;
9331
+ currency_code: string | null;
9332
+ currency_name: string | null;
9333
+ major_unit: string | null;
9334
+ minor_unit: string | null;
9335
+ decimal_unit: number | null;
9336
+ iso_decimal: number | null;
9337
+ }[] | undefined;
9338
+ total: number | undefined;
9339
+ };
9340
+ meta: object;
9341
+ }>;
9342
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
9343
+ input: {
9344
+ id?: number | null | undefined;
9345
+ id_string?: string | null | undefined;
9346
+ };
9347
+ output: {
9348
+ data: {
9349
+ symbol: string | null;
9350
+ id: number;
9351
+ name: string | null;
9352
+ is_active: boolean | null;
9353
+ created_at: Date | null;
9354
+ created_by: string | null;
9355
+ updated_at: Date | null;
9356
+ updated_by: string | null;
9357
+ logic_code: string | null;
9358
+ currency_code: string | null;
9359
+ currency_name: string | null;
9360
+ major_unit: string | null;
9361
+ minor_unit: string | null;
9362
+ decimal_unit: number | null;
9363
+ iso_decimal: number | null;
9364
+ };
9365
+ };
9366
+ meta: object;
9367
+ }>;
9368
+ histories: import("@trpc/server").TRPCBuiltRouter<{
9369
+ ctx: Context$1;
9370
+ meta: object;
9371
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9372
+ transformer: false;
9373
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9374
+ get: import("@trpc/server").TRPCMutationProcedure<{
9375
+ input: {
9376
+ search?: string | null | undefined;
9377
+ take?: number | null | undefined;
9378
+ skip?: number | null | undefined;
9379
+ is_active?: boolean[] | null | undefined;
9380
+ ids_include?: number[] | null | undefined;
9381
+ ids_exclude?: number[] | null | undefined;
9382
+ ids_string_include?: string[] | null | undefined;
9383
+ ids_string_exclude?: string[] | null | undefined;
9384
+ logic_codes_include?: string[] | null | undefined;
9385
+ logic_codes_exclude?: string[] | null | undefined;
9386
+ order_by?: {
9387
+ field: string;
9388
+ direction: "asc" | "desc";
9389
+ } | null | undefined;
9390
+ order_bys?: {
9391
+ field: string;
9392
+ direction: "asc" | "desc";
9393
+ }[] | null | undefined;
9394
+ id_log_type?: number | null | undefined;
9395
+ ids_log_type?: number[] | null | undefined;
9396
+ id_currency?: number | null | undefined;
9397
+ ids_currency?: number[] | null | undefined;
9398
+ };
9399
+ output: {
9400
+ data: {
9401
+ params: Record<string, unknown>;
9402
+ log_type: {
9403
+ id: number;
9404
+ name: string | null;
9405
+ is_active: boolean | null;
9406
+ created_at: Date | null;
9407
+ created_by: string | null;
9408
+ updated_at: Date | null;
9409
+ updated_by: string | null;
9410
+ logic_code: string | null;
9411
+ } | null;
9412
+ id: number;
9413
+ url: string | null;
9414
+ id_log_type: number | null;
9415
+ action: string | null;
9416
+ action_by: string | null;
9417
+ action_id: string | null;
9418
+ action_at: Date | null;
9419
+ id_currency: number | null;
9361
9420
  }[] | undefined;
9362
9421
  total: number | undefined;
9363
9422
  };
@@ -9370,221 +9429,525 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9370
9429
  };
9371
9430
  output: {
9372
9431
  data: {
9373
- _count: {
9374
- measurement_units_logs: number;
9375
- package_type_dimensions: number;
9376
- containers_length: number;
9377
- containers_width: number;
9378
- containers_height: number;
9379
- containers_capacity: number;
9380
- containers_inside_length: number;
9381
- containers_inside_width: number;
9382
- containers_inside_height: number;
9383
- containers_inside_teu_count: number;
9384
- containers_inside_capacity: number;
9385
- forwarding_bookings_outer_unit: number;
9386
- forwarding_bookings_volume_unit: number;
9387
- forwarding_bookings_chargeable_unit: number;
9388
- forwarding_shipments_volume_unit: number;
9389
- forwarding_shipments_chargeable_unit: number;
9390
- forwarding_shipments_weight_volume_unit: number;
9391
- forwarding_shipment_packings_volume_unit: number;
9392
- forwarding_shipment_packings_length_unit: number;
9393
- forwarding_shipment_packings_width_unit: number;
9394
- forwarding_shipment_packings_height_unit: number;
9395
- };
9396
- } & {
9432
+ params: Record<string, unknown>;
9433
+ log_type: {
9434
+ id: number;
9435
+ name: string | null;
9436
+ is_active: boolean | null;
9437
+ created_at: Date | null;
9438
+ created_by: string | null;
9439
+ updated_at: Date | null;
9440
+ updated_by: string | null;
9441
+ logic_code: string | null;
9442
+ } | null;
9397
9443
  id: number;
9398
- name: string | null;
9399
- is_active: boolean | null;
9400
- code: string | null;
9401
- created_at: Date | null;
9402
- created_by: string | null;
9403
- updated_at: Date | null;
9404
- updated_by: string | null;
9405
- logic_code: string | null;
9406
- };
9444
+ url: string | null;
9445
+ id_log_type: number | null;
9446
+ action: string | null;
9447
+ action_by: string | null;
9448
+ action_id: string | null;
9449
+ action_at: Date | null;
9450
+ id_currency: number | null;
9451
+ } | undefined;
9407
9452
  };
9408
9453
  meta: object;
9409
9454
  }>;
9410
- histories: import("@trpc/server").TRPCBuiltRouter<{
9411
- ctx: Context$1;
9412
- meta: object;
9413
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9414
- transformer: false;
9415
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9416
- get: import("@trpc/server").TRPCMutationProcedure<{
9417
- input: {
9418
- search?: string | null | undefined;
9419
- take?: number | null | undefined;
9420
- skip?: number | null | undefined;
9421
- is_active?: boolean[] | null | undefined;
9422
- ids_include?: number[] | null | undefined;
9423
- ids_exclude?: number[] | null | undefined;
9424
- ids_string_include?: string[] | null | undefined;
9425
- ids_string_exclude?: string[] | null | undefined;
9426
- logic_codes_include?: string[] | null | undefined;
9427
- logic_codes_exclude?: string[] | null | undefined;
9428
- order_by?: {
9429
- field: string;
9430
- direction: "asc" | "desc";
9431
- } | null | undefined;
9432
- order_bys?: {
9433
- field: string;
9434
- direction: "asc" | "desc";
9435
- }[] | null | undefined;
9436
- id_log_type?: number | null | undefined;
9437
- ids_log_type?: number[] | null | undefined;
9438
- id_measurement_unit?: number | null | undefined;
9439
- ids_measurement_unit?: number[] | null | undefined;
9440
- };
9441
- output: {
9442
- data: {
9443
- params: Record<string, unknown>;
9444
- log_type: {
9445
- id: number;
9446
- name: string | null;
9447
- is_active: boolean | null;
9448
- created_at: Date | null;
9449
- created_by: string | null;
9450
- updated_at: Date | null;
9451
- updated_by: string | null;
9452
- logic_code: string | null;
9453
- } | null;
9454
- id: number;
9455
- url: string | null;
9456
- id_log_type: number | null;
9457
- action: string | null;
9458
- action_by: string | null;
9459
- action_id: string | null;
9460
- action_at: Date | null;
9461
- id_measurement_unit: number | null;
9462
- }[] | undefined;
9463
- total: number | undefined;
9464
- };
9465
- meta: object;
9466
- }>;
9467
- getDetail: import("@trpc/server").TRPCMutationProcedure<{
9468
- input: {
9469
- id?: number | null | undefined;
9470
- id_string?: string | null | undefined;
9471
- };
9472
- output: {
9473
- data: {
9474
- params: Record<string, unknown>;
9475
- log_type: {
9476
- id: number;
9477
- name: string | null;
9478
- is_active: boolean | null;
9479
- created_at: Date | null;
9480
- created_by: string | null;
9481
- updated_at: Date | null;
9482
- updated_by: string | null;
9483
- logic_code: string | null;
9484
- } | null;
9485
- id: number;
9486
- url: string | null;
9487
- id_log_type: number | null;
9488
- action: string | null;
9489
- action_by: string | null;
9490
- action_id: string | null;
9491
- action_at: Date | null;
9492
- id_measurement_unit: number | null;
9493
- } | undefined;
9455
+ }>>;
9456
+ create: import("@trpc/server").TRPCMutationProcedure<{
9457
+ input: {
9458
+ is_active?: boolean | undefined;
9459
+ name?: string | null | undefined;
9460
+ currency_code?: string | null | undefined;
9461
+ currency_name?: string | null | undefined;
9462
+ major_unit?: string | null | undefined;
9463
+ minor_unit?: string | null | undefined;
9464
+ decimal_unit?: number | null | undefined;
9465
+ iso_decimal?: number | null | undefined;
9466
+ symbol?: string | null | undefined;
9467
+ };
9468
+ output: {
9469
+ data: {
9470
+ symbol: string | null;
9471
+ id: number;
9472
+ name: string | null;
9473
+ is_active: boolean | null;
9474
+ created_at: Date | null;
9475
+ created_by: string | null;
9476
+ updated_at: Date | null;
9477
+ updated_by: string | null;
9478
+ logic_code: string | null;
9479
+ currency_code: string | null;
9480
+ currency_name: string | null;
9481
+ major_unit: string | null;
9482
+ minor_unit: string | null;
9483
+ decimal_unit: number | null;
9484
+ iso_decimal: number | null;
9485
+ } | undefined;
9486
+ log: {
9487
+ id: number;
9488
+ url: string | null;
9489
+ id_log_type: number | null;
9490
+ action: string | null;
9491
+ params: JsonValue | null;
9492
+ action_by: string | null;
9493
+ action_id: string | null;
9494
+ action_at: Date | null;
9495
+ id_currency: number | null;
9496
+ } | undefined;
9497
+ };
9498
+ meta: object;
9499
+ }>;
9500
+ update: import("@trpc/server").TRPCMutationProcedure<{
9501
+ input: {
9502
+ id?: number | null | undefined;
9503
+ id_string?: string | null | undefined;
9504
+ is_active?: boolean | undefined;
9505
+ name?: string | null | undefined;
9506
+ currency_code?: string | null | undefined;
9507
+ currency_name?: string | null | undefined;
9508
+ major_unit?: string | null | undefined;
9509
+ minor_unit?: string | null | undefined;
9510
+ decimal_unit?: number | null | undefined;
9511
+ iso_decimal?: number | null | undefined;
9512
+ symbol?: string | null | undefined;
9513
+ };
9514
+ output: {
9515
+ data: {
9516
+ symbol: string | null;
9517
+ id: number;
9518
+ name: string | null;
9519
+ is_active: boolean | null;
9520
+ created_at: Date | null;
9521
+ created_by: string | null;
9522
+ updated_at: Date | null;
9523
+ updated_by: string | null;
9524
+ logic_code: string | null;
9525
+ currency_code: string | null;
9526
+ currency_name: string | null;
9527
+ major_unit: string | null;
9528
+ minor_unit: string | null;
9529
+ decimal_unit: number | null;
9530
+ iso_decimal: number | null;
9531
+ } | undefined;
9532
+ log: {
9533
+ id: number;
9534
+ url: string | null;
9535
+ id_log_type: number | null;
9536
+ action: string | null;
9537
+ params: JsonValue | null;
9538
+ action_by: string | null;
9539
+ action_id: string | null;
9540
+ action_at: Date | null;
9541
+ id_currency: number | null;
9542
+ } | undefined;
9543
+ };
9544
+ meta: object;
9545
+ }>;
9546
+ delete: import("@trpc/server").TRPCMutationProcedure<{
9547
+ input: {
9548
+ id?: number | null | undefined;
9549
+ ids?: number[] | null | undefined;
9550
+ id_string?: string | null | undefined;
9551
+ ids_string?: string[] | null | undefined;
9552
+ };
9553
+ output: {
9554
+ data: ({
9555
+ symbol: string | null;
9556
+ id: number;
9557
+ name: string | null;
9558
+ is_active: boolean | null;
9559
+ created_at: Date | null;
9560
+ created_by: string | null;
9561
+ updated_at: Date | null;
9562
+ updated_by: string | null;
9563
+ logic_code: string | null;
9564
+ currency_code: string | null;
9565
+ currency_name: string | null;
9566
+ major_unit: string | null;
9567
+ minor_unit: string | null;
9568
+ decimal_unit: number | null;
9569
+ iso_decimal: number | null;
9570
+ } | undefined)[] | undefined;
9571
+ };
9572
+ meta: object;
9573
+ }>;
9574
+ }>>;
9575
+ exchangeRates: import("@trpc/server").TRPCBuiltRouter<{
9576
+ ctx: Context$1;
9577
+ meta: object;
9578
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9579
+ transformer: false;
9580
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9581
+ get: import("@trpc/server").TRPCMutationProcedure<{
9582
+ input: {
9583
+ search?: string | null | undefined;
9584
+ take?: number | null | undefined;
9585
+ skip?: number | null | undefined;
9586
+ is_active?: boolean[] | null | undefined;
9587
+ ids_include?: number[] | null | undefined;
9588
+ ids_exclude?: number[] | null | undefined;
9589
+ ids_string_include?: string[] | null | undefined;
9590
+ ids_string_exclude?: string[] | null | undefined;
9591
+ logic_codes_include?: string[] | null | undefined;
9592
+ logic_codes_exclude?: string[] | null | undefined;
9593
+ order_by?: {
9594
+ field: string;
9595
+ direction: "asc" | "desc";
9596
+ } | null | undefined;
9597
+ order_bys?: {
9598
+ field: string;
9599
+ direction: "asc" | "desc";
9600
+ }[] | null | undefined;
9601
+ id_currency_from?: number | null | undefined;
9602
+ ids_currency_from?: number[] | null | undefined;
9603
+ id_currency_to?: number | null | undefined;
9604
+ ids_currency_to?: number[] | null | undefined;
9605
+ id_exchange_rate_type?: number | null | undefined;
9606
+ ids_exchange_rate_type?: number[] | null | undefined;
9607
+ };
9608
+ output: {
9609
+ data: ({
9610
+ exchange_rate_types: {
9611
+ id: number;
9612
+ name: string | null;
9613
+ is_active: boolean | null;
9614
+ code: string | null;
9615
+ created_at: Date | null;
9616
+ created_by: string | null;
9617
+ updated_at: Date | null;
9618
+ updated_by: string | null;
9619
+ logic_code: string | null;
9620
+ } | null;
9621
+ currency_from: {
9622
+ symbol: string | null;
9623
+ id: number;
9624
+ name: string | null;
9625
+ is_active: boolean | null;
9626
+ created_at: Date | null;
9627
+ created_by: string | null;
9628
+ updated_at: Date | null;
9629
+ updated_by: string | null;
9630
+ logic_code: string | null;
9631
+ currency_code: string | null;
9632
+ currency_name: string | null;
9633
+ major_unit: string | null;
9634
+ minor_unit: string | null;
9635
+ decimal_unit: number | null;
9636
+ iso_decimal: number | null;
9637
+ } | null;
9638
+ currency_to: {
9639
+ symbol: string | null;
9640
+ id: number;
9641
+ name: string | null;
9642
+ is_active: boolean | null;
9643
+ created_at: Date | null;
9644
+ created_by: string | null;
9645
+ updated_at: Date | null;
9646
+ updated_by: string | null;
9647
+ logic_code: string | null;
9648
+ currency_code: string | null;
9649
+ currency_name: string | null;
9650
+ major_unit: string | null;
9651
+ minor_unit: string | null;
9652
+ decimal_unit: number | null;
9653
+ iso_decimal: number | null;
9654
+ } | null;
9655
+ } & {
9656
+ id: number;
9657
+ is_active: boolean | null;
9658
+ created_at: Date | null;
9659
+ created_by: string | null;
9660
+ updated_at: Date | null;
9661
+ updated_by: string | null;
9662
+ logic_code: string | null;
9663
+ id_currency_from: number | null;
9664
+ id_currency_to: number | null;
9665
+ id_exchange_rate_type: number | null;
9666
+ rate: Decimal | null;
9667
+ start_date: Date | null;
9668
+ end_date: Date | null;
9669
+ })[] | undefined;
9670
+ total: number | undefined;
9671
+ };
9672
+ meta: object;
9673
+ }>;
9674
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
9675
+ input: {
9676
+ id?: number | null | undefined;
9677
+ id_string?: string | null | undefined;
9678
+ };
9679
+ output: {
9680
+ data: {
9681
+ _count: {
9682
+ currency_from: number;
9683
+ currency_to: number;
9684
+ exchange_rate_types: number;
9685
+ exchange_rates_logs: number;
9686
+ forwarding_shipment_billing_details_cost: number;
9687
+ forwarding_shipment_billing_details_sell: number;
9688
+ forwarding_console_billing_details_cost: number;
9689
+ forwarding_console_billing_details_sell: number;
9494
9690
  };
9495
- meta: object;
9496
- }>;
9497
- }>>;
9498
- create: import("@trpc/server").TRPCMutationProcedure<{
9691
+ exchange_rate_types: {
9692
+ id: number;
9693
+ name: string | null;
9694
+ is_active: boolean | null;
9695
+ code: string | null;
9696
+ created_at: Date | null;
9697
+ created_by: string | null;
9698
+ updated_at: Date | null;
9699
+ updated_by: string | null;
9700
+ logic_code: string | null;
9701
+ } | null;
9702
+ currency_from: {
9703
+ symbol: string | null;
9704
+ id: number;
9705
+ name: string | null;
9706
+ is_active: boolean | null;
9707
+ created_at: Date | null;
9708
+ created_by: string | null;
9709
+ updated_at: Date | null;
9710
+ updated_by: string | null;
9711
+ logic_code: string | null;
9712
+ currency_code: string | null;
9713
+ currency_name: string | null;
9714
+ major_unit: string | null;
9715
+ minor_unit: string | null;
9716
+ decimal_unit: number | null;
9717
+ iso_decimal: number | null;
9718
+ } | null;
9719
+ currency_to: {
9720
+ symbol: string | null;
9721
+ id: number;
9722
+ name: string | null;
9723
+ is_active: boolean | null;
9724
+ created_at: Date | null;
9725
+ created_by: string | null;
9726
+ updated_at: Date | null;
9727
+ updated_by: string | null;
9728
+ logic_code: string | null;
9729
+ currency_code: string | null;
9730
+ currency_name: string | null;
9731
+ major_unit: string | null;
9732
+ minor_unit: string | null;
9733
+ decimal_unit: number | null;
9734
+ iso_decimal: number | null;
9735
+ } | null;
9736
+ } & {
9737
+ id: number;
9738
+ is_active: boolean | null;
9739
+ created_at: Date | null;
9740
+ created_by: string | null;
9741
+ updated_at: Date | null;
9742
+ updated_by: string | null;
9743
+ logic_code: string | null;
9744
+ id_currency_from: number | null;
9745
+ id_currency_to: number | null;
9746
+ id_exchange_rate_type: number | null;
9747
+ rate: Decimal | null;
9748
+ start_date: Date | null;
9749
+ end_date: Date | null;
9750
+ };
9751
+ };
9752
+ meta: object;
9753
+ }>;
9754
+ histories: import("@trpc/server").TRPCBuiltRouter<{
9755
+ ctx: Context$1;
9756
+ meta: object;
9757
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
9758
+ transformer: false;
9759
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9760
+ get: import("@trpc/server").TRPCMutationProcedure<{
9499
9761
  input: {
9500
- is_active?: boolean | undefined;
9501
- code?: string | null | undefined;
9502
- name?: string | null | undefined;
9762
+ search?: string | null | undefined;
9763
+ take?: number | null | undefined;
9764
+ skip?: number | null | undefined;
9765
+ is_active?: boolean[] | null | undefined;
9766
+ ids_include?: number[] | null | undefined;
9767
+ ids_exclude?: number[] | null | undefined;
9768
+ ids_string_include?: string[] | null | undefined;
9769
+ ids_string_exclude?: string[] | null | undefined;
9770
+ logic_codes_include?: string[] | null | undefined;
9771
+ logic_codes_exclude?: string[] | null | undefined;
9772
+ order_by?: {
9773
+ field: string;
9774
+ direction: "asc" | "desc";
9775
+ } | null | undefined;
9776
+ order_bys?: {
9777
+ field: string;
9778
+ direction: "asc" | "desc";
9779
+ }[] | null | undefined;
9780
+ id_log_type?: number | null | undefined;
9781
+ ids_log_type?: number[] | null | undefined;
9782
+ id_exchange_rate?: number | null | undefined;
9783
+ ids_exchange_rate?: number[] | null | undefined;
9503
9784
  };
9504
9785
  output: {
9505
9786
  data: {
9506
- id: number;
9507
- name: string | null;
9508
- is_active: boolean | null;
9509
- code: string | null;
9510
- created_at: Date | null;
9511
- created_by: string | null;
9512
- updated_at: Date | null;
9513
- updated_by: string | null;
9514
- logic_code: string | null;
9515
- } | undefined;
9516
- log: {
9787
+ params: Record<string, unknown>;
9788
+ log_type: {
9789
+ id: number;
9790
+ name: string | null;
9791
+ is_active: boolean | null;
9792
+ created_at: Date | null;
9793
+ created_by: string | null;
9794
+ updated_at: Date | null;
9795
+ updated_by: string | null;
9796
+ logic_code: string | null;
9797
+ } | null;
9517
9798
  id: number;
9518
9799
  url: string | null;
9519
9800
  id_log_type: number | null;
9520
9801
  action: string | null;
9521
- params: JsonValue | null;
9522
9802
  action_by: string | null;
9523
9803
  action_id: string | null;
9524
9804
  action_at: Date | null;
9525
- id_measurement_unit: number | null;
9526
- } | undefined;
9805
+ id_exchange_rate: number | null;
9806
+ }[] | undefined;
9807
+ total: number | undefined;
9527
9808
  };
9528
9809
  meta: object;
9529
9810
  }>;
9530
- update: import("@trpc/server").TRPCMutationProcedure<{
9811
+ getDetail: import("@trpc/server").TRPCMutationProcedure<{
9531
9812
  input: {
9532
9813
  id?: number | null | undefined;
9533
9814
  id_string?: string | null | undefined;
9534
- is_active?: boolean | undefined;
9535
- code?: string | null | undefined;
9536
- name?: string | null | undefined;
9537
9815
  };
9538
9816
  output: {
9539
9817
  data: {
9540
- id: number;
9541
- name: string | null;
9542
- is_active: boolean | null;
9543
- code: string | null;
9544
- created_at: Date | null;
9545
- created_by: string | null;
9546
- updated_at: Date | null;
9547
- updated_by: string | null;
9548
- logic_code: string | null;
9549
- } | undefined;
9550
- log: {
9818
+ params: Record<string, unknown>;
9819
+ log_type: {
9820
+ id: number;
9821
+ name: string | null;
9822
+ is_active: boolean | null;
9823
+ created_at: Date | null;
9824
+ created_by: string | null;
9825
+ updated_at: Date | null;
9826
+ updated_by: string | null;
9827
+ logic_code: string | null;
9828
+ } | null;
9551
9829
  id: number;
9552
9830
  url: string | null;
9553
9831
  id_log_type: number | null;
9554
9832
  action: string | null;
9555
- params: JsonValue | null;
9556
9833
  action_by: string | null;
9557
9834
  action_id: string | null;
9558
9835
  action_at: Date | null;
9559
- id_measurement_unit: number | null;
9836
+ id_exchange_rate: number | null;
9560
9837
  } | undefined;
9561
9838
  };
9562
9839
  meta: object;
9563
9840
  }>;
9564
- delete: import("@trpc/server").TRPCMutationProcedure<{
9565
- input: {
9566
- id?: number | null | undefined;
9567
- ids?: number[] | null | undefined;
9568
- id_string?: string | null | undefined;
9569
- ids_string?: string[] | null | undefined;
9570
- };
9571
- output: {
9572
- data: ({
9573
- id: number;
9574
- name: string | null;
9575
- is_active: boolean | null;
9576
- code: string | null;
9577
- created_at: Date | null;
9578
- created_by: string | null;
9579
- updated_at: Date | null;
9580
- updated_by: string | null;
9581
- logic_code: string | null;
9582
- } | undefined)[] | undefined;
9583
- };
9584
- meta: object;
9585
- }>;
9586
9841
  }>>;
9587
- uomTypes: import("@trpc/server").TRPCBuiltRouter<{
9842
+ create: import("@trpc/server").TRPCMutationProcedure<{
9843
+ input: {
9844
+ is_active?: boolean | undefined;
9845
+ id_currency_from?: number | null | undefined;
9846
+ id_currency_to?: number | null | undefined;
9847
+ id_exchange_rate_type?: number | null | undefined;
9848
+ rate?: string | null | undefined;
9849
+ start_date?: string | null | undefined;
9850
+ end_date?: string | null | undefined;
9851
+ };
9852
+ output: {
9853
+ data: {
9854
+ id: number;
9855
+ is_active: boolean | null;
9856
+ created_at: Date | null;
9857
+ created_by: string | null;
9858
+ updated_at: Date | null;
9859
+ updated_by: string | null;
9860
+ logic_code: string | null;
9861
+ id_currency_from: number | null;
9862
+ id_currency_to: number | null;
9863
+ id_exchange_rate_type: number | null;
9864
+ rate: Decimal | null;
9865
+ start_date: Date | null;
9866
+ end_date: Date | null;
9867
+ } | undefined;
9868
+ log: {
9869
+ id: number;
9870
+ url: string | null;
9871
+ id_log_type: number | null;
9872
+ action: string | null;
9873
+ params: JsonValue | null;
9874
+ action_by: string | null;
9875
+ action_id: string | null;
9876
+ action_at: Date | null;
9877
+ id_exchange_rate: number | null;
9878
+ } | undefined;
9879
+ };
9880
+ meta: object;
9881
+ }>;
9882
+ update: import("@trpc/server").TRPCMutationProcedure<{
9883
+ input: {
9884
+ id?: number | null | undefined;
9885
+ id_string?: string | null | undefined;
9886
+ is_active?: boolean | undefined;
9887
+ id_currency_from?: number | null | undefined;
9888
+ id_currency_to?: number | null | undefined;
9889
+ id_exchange_rate_type?: number | null | undefined;
9890
+ rate?: string | null | undefined;
9891
+ start_date?: string | null | undefined;
9892
+ end_date?: string | null | undefined;
9893
+ };
9894
+ output: {
9895
+ data: {
9896
+ id: number;
9897
+ is_active: boolean | null;
9898
+ created_at: Date | null;
9899
+ created_by: string | null;
9900
+ updated_at: Date | null;
9901
+ updated_by: string | null;
9902
+ logic_code: string | null;
9903
+ id_currency_from: number | null;
9904
+ id_currency_to: number | null;
9905
+ id_exchange_rate_type: number | null;
9906
+ rate: Decimal | null;
9907
+ start_date: Date | null;
9908
+ end_date: Date | null;
9909
+ } | undefined;
9910
+ log: {
9911
+ id: number;
9912
+ url: string | null;
9913
+ id_log_type: number | null;
9914
+ action: string | null;
9915
+ params: JsonValue | null;
9916
+ action_by: string | null;
9917
+ action_id: string | null;
9918
+ action_at: Date | null;
9919
+ id_exchange_rate: number | null;
9920
+ } | undefined;
9921
+ };
9922
+ meta: object;
9923
+ }>;
9924
+ delete: import("@trpc/server").TRPCMutationProcedure<{
9925
+ input: {
9926
+ id?: number | null | undefined;
9927
+ ids?: number[] | null | undefined;
9928
+ id_string?: string | null | undefined;
9929
+ ids_string?: string[] | null | undefined;
9930
+ };
9931
+ output: {
9932
+ data: ({
9933
+ id: number;
9934
+ is_active: boolean | null;
9935
+ created_at: Date | null;
9936
+ created_by: string | null;
9937
+ updated_at: Date | null;
9938
+ updated_by: string | null;
9939
+ logic_code: string | null;
9940
+ id_currency_from: number | null;
9941
+ id_currency_to: number | null;
9942
+ id_exchange_rate_type: number | null;
9943
+ rate: Decimal | null;
9944
+ start_date: Date | null;
9945
+ end_date: Date | null;
9946
+ } | undefined)[] | undefined;
9947
+ };
9948
+ meta: object;
9949
+ }>;
9950
+ types: import("@trpc/server").TRPCBuiltRouter<{
9588
9951
  ctx: Context$1;
9589
9952
  meta: object;
9590
9953
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -9612,7 +9975,23 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9612
9975
  }[] | null | undefined;
9613
9976
  };
9614
9977
  output: {
9615
- data: {
9978
+ data: ({
9979
+ exchange_rates: {
9980
+ id: number;
9981
+ is_active: boolean | null;
9982
+ created_at: Date | null;
9983
+ created_by: string | null;
9984
+ updated_at: Date | null;
9985
+ updated_by: string | null;
9986
+ logic_code: string | null;
9987
+ id_currency_from: number | null;
9988
+ id_currency_to: number | null;
9989
+ id_exchange_rate_type: number | null;
9990
+ rate: Decimal | null;
9991
+ start_date: Date | null;
9992
+ end_date: Date | null;
9993
+ }[];
9994
+ } & {
9616
9995
  id: number;
9617
9996
  name: string | null;
9618
9997
  is_active: boolean | null;
@@ -9622,7 +10001,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9622
10001
  updated_at: Date | null;
9623
10002
  updated_by: string | null;
9624
10003
  logic_code: string | null;
9625
- }[] | undefined;
10004
+ })[] | undefined;
9626
10005
  total: number | undefined;
9627
10006
  };
9628
10007
  meta: object;
@@ -9635,8 +10014,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9635
10014
  output: {
9636
10015
  data: {
9637
10016
  _count: {
9638
- uom_type_logs: number;
9639
- package_types: number;
10017
+ exchange_rates: number;
10018
+ exchange_rate_types_logs: number;
9640
10019
  };
9641
10020
  } & {
9642
10021
  id: number;
@@ -9680,8 +10059,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9680
10059
  }[] | null | undefined;
9681
10060
  id_log_type?: number | null | undefined;
9682
10061
  ids_log_type?: number[] | null | undefined;
9683
- id_uom_type?: number | null | undefined;
9684
- ids_uom_type?: number[] | null | undefined;
10062
+ id_exchange_rate_type?: number | null | undefined;
10063
+ ids_exchange_rate_type?: number[] | null | undefined;
9685
10064
  };
9686
10065
  output: {
9687
10066
  data: {
@@ -9703,7 +10082,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9703
10082
  action_by: string | null;
9704
10083
  action_id: string | null;
9705
10084
  action_at: Date | null;
9706
- id_uom_type: number | null;
10085
+ id_exchange_rate_type: number | null;
9707
10086
  }[] | undefined;
9708
10087
  total: number | undefined;
9709
10088
  };
@@ -9734,7 +10113,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9734
10113
  action_by: string | null;
9735
10114
  action_id: string | null;
9736
10115
  action_at: Date | null;
9737
- id_uom_type: number | null;
10116
+ id_exchange_rate_type: number | null;
9738
10117
  } | undefined;
9739
10118
  };
9740
10119
  meta: object;
@@ -9767,7 +10146,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9767
10146
  action_by: string | null;
9768
10147
  action_id: string | null;
9769
10148
  action_at: Date | null;
9770
- id_uom_type: number | null;
10149
+ id_exchange_rate_type: number | null;
9771
10150
  } | undefined;
9772
10151
  };
9773
10152
  meta: object;
@@ -9801,7 +10180,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9801
10180
  action_by: string | null;
9802
10181
  action_id: string | null;
9803
10182
  action_at: Date | null;
9804
- id_uom_type: number | null;
10183
+ id_exchange_rate_type: number | null;
9805
10184
  } | undefined;
9806
10185
  };
9807
10186
  meta: object;