@be-pttmj/app-api 0.0.6 → 0.0.8

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 +272 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -33160,6 +33160,7 @@ declare const appRouter: BuiltRouter<{
33160
33160
  signed_by: string | null;
33161
33161
  }[] | undefined;
33162
33162
  total: number | undefined;
33163
+ tenant_signature: string | undefined;
33163
33164
  };
33164
33165
  meta: object;
33165
33166
  }>;
@@ -33170,6 +33171,7 @@ declare const appRouter: BuiltRouter<{
33170
33171
  for_public?: string | boolean | null | undefined;
33171
33172
  };
33172
33173
  output: {
33174
+ tenant_signature?: string | undefined;
33173
33175
  data: {
33174
33176
  fleet: {
33175
33177
  is_active: boolean | null;
@@ -33283,6 +33285,7 @@ declare const appRouter: BuiltRouter<{
33283
33285
  for_public?: string | boolean | null | undefined;
33284
33286
  };
33285
33287
  output: {
33288
+ tenant_signature?: string | undefined;
33286
33289
  data: {
33287
33290
  fleet: {
33288
33291
  is_active: boolean | null;
@@ -33625,6 +33628,274 @@ declare const appRouter: BuiltRouter<{
33625
33628
  }>>;
33626
33629
  }>>;
33627
33630
  }>>;
33631
+ hr: BuiltRouter<{
33632
+ ctx: Context;
33633
+ meta: object;
33634
+ errorShape: DefaultErrorShape;
33635
+ transformer: false;
33636
+ }, DecorateCreateRouterOptions<{
33637
+ talents: BuiltRouter<{
33638
+ ctx: Context;
33639
+ meta: object;
33640
+ errorShape: DefaultErrorShape;
33641
+ transformer: false;
33642
+ }, DecorateCreateRouterOptions<{
33643
+ drivers: BuiltRouter<{
33644
+ ctx: Context;
33645
+ meta: object;
33646
+ errorShape: DefaultErrorShape;
33647
+ transformer: false;
33648
+ }, DecorateCreateRouterOptions<{
33649
+ get: MutationProcedure<{
33650
+ input: {
33651
+ search?: string | null | undefined;
33652
+ take?: string | number | null | undefined;
33653
+ skip?: string | number | null | undefined;
33654
+ is_active?: (string | boolean)[] | null | undefined;
33655
+ is_system?: (string | boolean)[] | null | undefined;
33656
+ ids_include?: (string | number | bigint)[] | null | undefined;
33657
+ ids_exclude?: (string | number | bigint)[] | null | undefined;
33658
+ logic_codes_include?: string[] | null | undefined;
33659
+ logic_codes_exclude?: string[] | null | undefined;
33660
+ order_by?: {
33661
+ field: string;
33662
+ direction: "asc" | "desc";
33663
+ } | null | undefined;
33664
+ order_bys?: {
33665
+ field: string;
33666
+ direction: "asc" | "desc";
33667
+ }[] | null | undefined;
33668
+ };
33669
+ output: {
33670
+ data: {
33671
+ is_active: boolean | null;
33672
+ id: string;
33673
+ logic_code: string | null;
33674
+ name: string | null;
33675
+ created_at: Date | null;
33676
+ created_by: string | null;
33677
+ updated_at: Date | null;
33678
+ updated_by: string | null;
33679
+ code: string | null;
33680
+ phone: string | null;
33681
+ address: string | null;
33682
+ }[] | undefined;
33683
+ total: number | undefined;
33684
+ };
33685
+ meta: object;
33686
+ }>;
33687
+ getDetail: MutationProcedure<{
33688
+ input: {
33689
+ id?: string | number | bigint | null | undefined;
33690
+ logic_code?: string | null | undefined;
33691
+ };
33692
+ output: {
33693
+ data: {
33694
+ _count: {
33695
+ driver_logs: number;
33696
+ billings: number;
33697
+ };
33698
+ is_active: boolean | null;
33699
+ id: string;
33700
+ logic_code: string | null;
33701
+ name: string | null;
33702
+ created_at: Date | null;
33703
+ created_by: string | null;
33704
+ updated_at: Date | null;
33705
+ updated_by: string | null;
33706
+ code: string | null;
33707
+ phone: string | null;
33708
+ address: string | null;
33709
+ };
33710
+ };
33711
+ meta: object;
33712
+ }>;
33713
+ histories: BuiltRouter<{
33714
+ ctx: Context;
33715
+ meta: object;
33716
+ errorShape: DefaultErrorShape;
33717
+ transformer: false;
33718
+ }, DecorateCreateRouterOptions<{
33719
+ get: MutationProcedure<{
33720
+ input: {
33721
+ search?: string | null | undefined;
33722
+ take?: string | number | null | undefined;
33723
+ skip?: string | number | null | undefined;
33724
+ is_active?: (string | boolean)[] | null | undefined;
33725
+ is_system?: (string | boolean)[] | null | undefined;
33726
+ ids_include?: (string | number | bigint)[] | null | undefined;
33727
+ ids_exclude?: (string | number | bigint)[] | null | undefined;
33728
+ logic_codes_include?: string[] | null | undefined;
33729
+ logic_codes_exclude?: string[] | null | undefined;
33730
+ order_by?: {
33731
+ field: string;
33732
+ direction: "asc" | "desc";
33733
+ } | null | undefined;
33734
+ order_bys?: {
33735
+ field: string;
33736
+ direction: "asc" | "desc";
33737
+ }[] | null | undefined;
33738
+ id_log_type?: string | number | bigint | null | undefined;
33739
+ ids_log_type?: (string | number | bigint)[] | null | undefined;
33740
+ id_driver?: string | number | bigint | null | undefined;
33741
+ ids_driver?: (string | number | bigint)[] | null | undefined;
33742
+ };
33743
+ output: {
33744
+ data: {
33745
+ log_type: {
33746
+ is_active: boolean | null;
33747
+ id: string;
33748
+ logic_code: string | null;
33749
+ name: string | null;
33750
+ created_at: Date | null;
33751
+ created_by: string | null;
33752
+ updated_at: Date | null;
33753
+ updated_by: string | null;
33754
+ } | null;
33755
+ id: string;
33756
+ id_log_type: string | null;
33757
+ id_main_data: string | null;
33758
+ url: string | null;
33759
+ params: SimpleJson;
33760
+ action: string | null;
33761
+ action_by: string | null;
33762
+ action_id: string | null;
33763
+ action_at: Date | null;
33764
+ }[] | undefined;
33765
+ total: number | undefined;
33766
+ };
33767
+ meta: object;
33768
+ }>;
33769
+ getDetail: MutationProcedure<{
33770
+ input: {
33771
+ id?: string | number | bigint | null | undefined;
33772
+ logic_code?: string | null | undefined;
33773
+ };
33774
+ output: {
33775
+ data: {
33776
+ log_type: {
33777
+ is_active: boolean | null;
33778
+ id: string;
33779
+ logic_code: string | null;
33780
+ name: string | null;
33781
+ created_at: Date | null;
33782
+ created_by: string | null;
33783
+ updated_at: Date | null;
33784
+ updated_by: string | null;
33785
+ } | null;
33786
+ id: string;
33787
+ id_log_type: string | null;
33788
+ id_main_data: string | null;
33789
+ url: string | null;
33790
+ params: SimpleJson;
33791
+ action: string | null;
33792
+ action_by: string | null;
33793
+ action_id: string | null;
33794
+ action_at: Date | null;
33795
+ } | undefined;
33796
+ };
33797
+ meta: object;
33798
+ }>;
33799
+ }>>;
33800
+ create: MutationProcedure<{
33801
+ input: {
33802
+ is_active?: string | boolean | null | undefined;
33803
+ code?: string | null | undefined;
33804
+ name?: string | null | undefined;
33805
+ phone?: string | null | undefined;
33806
+ address?: string | null | undefined;
33807
+ };
33808
+ output: {
33809
+ data: {
33810
+ is_active: boolean | null;
33811
+ id: string;
33812
+ logic_code: string | null;
33813
+ name: string | null;
33814
+ created_at: Date | null;
33815
+ created_by: string | null;
33816
+ updated_at: Date | null;
33817
+ updated_by: string | null;
33818
+ code: string | null;
33819
+ phone: string | null;
33820
+ address: string | null;
33821
+ } | undefined;
33822
+ log: {
33823
+ id: string;
33824
+ id_log_type: string | null;
33825
+ id_main_data: string | null;
33826
+ url: string | null;
33827
+ params: SimpleJson;
33828
+ action: string | null;
33829
+ action_by: string | null;
33830
+ action_id: string | null;
33831
+ action_at: Date | null;
33832
+ } | undefined;
33833
+ };
33834
+ meta: object;
33835
+ }>;
33836
+ update: MutationProcedure<{
33837
+ input: {
33838
+ id?: string | number | bigint | null | undefined;
33839
+ logic_code?: string | null | undefined;
33840
+ is_active?: string | boolean | null | undefined;
33841
+ code?: string | null | undefined;
33842
+ name?: string | null | undefined;
33843
+ phone?: string | null | undefined;
33844
+ address?: string | null | undefined;
33845
+ };
33846
+ output: {
33847
+ data: {
33848
+ is_active: boolean | null;
33849
+ id: string;
33850
+ logic_code: string | null;
33851
+ name: string | null;
33852
+ created_at: Date | null;
33853
+ created_by: string | null;
33854
+ updated_at: Date | null;
33855
+ updated_by: string | null;
33856
+ code: string | null;
33857
+ phone: string | null;
33858
+ address: string | null;
33859
+ } | undefined;
33860
+ log: {
33861
+ id: string;
33862
+ id_log_type: string | null;
33863
+ id_main_data: string | null;
33864
+ url: string | null;
33865
+ params: SimpleJson;
33866
+ action: string | null;
33867
+ action_by: string | null;
33868
+ action_id: string | null;
33869
+ action_at: Date | null;
33870
+ } | undefined;
33871
+ };
33872
+ meta: object;
33873
+ }>;
33874
+ delete: MutationProcedure<{
33875
+ input: {
33876
+ id?: string | number | bigint | null | undefined;
33877
+ ids?: (string | number | bigint)[] | null | undefined;
33878
+ };
33879
+ output: {
33880
+ data: ({
33881
+ is_active: boolean | null;
33882
+ id: string;
33883
+ logic_code: string | null;
33884
+ name: string | null;
33885
+ created_at: Date | null;
33886
+ created_by: string | null;
33887
+ updated_at: Date | null;
33888
+ updated_by: string | null;
33889
+ code: string | null;
33890
+ phone: string | null;
33891
+ address: string | null;
33892
+ } | undefined)[] | undefined;
33893
+ };
33894
+ meta: object;
33895
+ }>;
33896
+ }>>;
33897
+ }>>;
33898
+ }>>;
33628
33899
  }>>;
33629
33900
  type AppRouter = typeof appRouter;
33630
33901
  //#endregion
@@ -33734,6 +34005,7 @@ type Context = {
33734
34005
  is_admin_hr?: boolean;
33735
34006
  is_user?: boolean;
33736
34007
  };
34008
+ tenant_signature?: string;
33737
34009
  };
33738
34010
  //#endregion
33739
34011
  export { type AppRouter, type Context };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-pttmj/app-api",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {