automation-lib 5.13.27 → 6.0.2

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.
package/commit.bat CHANGED
@@ -10,6 +10,8 @@ git commit -m "%commit_message%"
10
10
  timeout /t 2 /nobreak >nul
11
11
 
12
12
  :: Push changes to the 'main' branch of the 'cp' remote
13
+ git pull hs toan
14
+ timeout /t 2 /nobreak >nul
13
15
  git pull hs main
14
16
 
15
17
  :: Read the current version from package.json
package/dist/index.d.mts CHANGED
@@ -3796,7 +3796,7 @@ interface FilterManagerWorkDto extends IFilterBaseDto {
3796
3796
  }
3797
3797
 
3798
3798
  interface DataImportManagerWorkDto {
3799
- level: "idea" | "niche" | "subniche";
3799
+ level: 'idea' | 'niche' | 'subniche';
3800
3800
  idea: string;
3801
3801
  niche?: string;
3802
3802
  subniche?: string;
@@ -5813,161 +5813,167 @@ interface FindOverViewInstagramAccountRawDto {
5813
5813
  tm: number;
5814
5814
  ntm: number;
5815
5815
  startStopOnDevice: {
5816
- started: number;
5817
- stopped: number;
5816
+ [EStartStop.Start]: number;
5817
+ [EStartStop.Stop]: number;
5818
5818
  total: number;
5819
5819
  };
5820
5820
  statusAccountSocial: {
5821
- availableNew: number;
5822
- networkError: number;
5823
- checkpoint: number;
5824
- unknown: number;
5825
- inUseDevice: number;
5826
- permanentlyDead: number;
5827
- spam: number;
5821
+ [EStatusAccountSocialRaw.Available]: number;
5822
+ [EStatusAccountSocialRaw.NetworkError]: number;
5823
+ [EStatusAccountSocialRaw.Checkpoint]: number;
5824
+ [EStatusAccountSocialRaw.NA]: number;
5825
+ [EStatusAccountSocialRaw.InUseDevice]: number;
5826
+ [EStatusAccountSocialRaw.Dead]: number;
5827
+ [EStatusAccountSocialRaw.Spam]: number;
5828
+ [EStatusAccountSocialRaw.LockedOnDevice]: number;
5828
5829
  total: number;
5829
5830
  };
5830
5831
  loginAppClone: {
5831
- na: number;
5832
- networkError: number;
5833
- locked: number;
5834
- spam: number;
5835
- active: number;
5836
- loginError: number;
5837
- die: number;
5838
- unknown: number;
5832
+ [EStatusAccountSocialLogin.NA]: number;
5833
+ [EStatusAccountSocialLogin.NetworkError]: number;
5834
+ [EStatusAccountSocialLogin.Locked]: number;
5835
+ [EStatusAccountSocialLogin.Spam]: number;
5836
+ [EStatusAccountSocialLogin.Active]: number;
5837
+ [EStatusAccountSocialLogin.ErrorAppClone]: number;
5838
+ [EStatusAccountSocialLogin.Dead]: number;
5839
5839
  total: number;
5840
5840
  };
5841
5841
  createFolderName: {
5842
- doneCreateNewFolder: number;
5843
- errorCreateNewFolder: number;
5844
- errorIdeaNicheCreateNew: number;
5842
+ [EStatusAccountSocialFolderName.Available]: number;
5843
+ [EStatusAccountSocialFolderName.Error]: number;
5844
+ [EStatusAccountSocialFolderName.New]: number;
5845
5845
  total: number;
5846
5846
  };
5847
- statusGenerateAllFolder: {
5848
- availableFolderNew: number;
5849
- availableFolderCreateNew: number;
5850
- inUseFolderGenerate: number;
5851
- errorImageOnFolder: number;
5847
+ folderStartStop: {
5848
+ [EStartStop.Start]: number;
5849
+ [EStartStop.Stop]: number;
5852
5850
  total: number;
5853
5851
  };
5854
5852
  autoSync: {
5855
- done: number;
5856
- error: number;
5857
- new: number;
5853
+ [EStatusAccountSocialSync.Done]: number;
5854
+ [EStatusAccountSocialSync.Error]: number;
5855
+ [EStatusAccountSocialSync.New]: number;
5858
5856
  total: number;
5859
5857
  };
5860
5858
  statusDeviceKey: {
5861
- active: number;
5862
- error: number;
5863
- unknown: number;
5859
+ [EStatusDeviceReplace.Done]: number;
5860
+ [EStatusDeviceReplace.Error]: number;
5861
+ [EStatusDeviceReplace.NA]: number;
5864
5862
  total: number;
5865
5863
  };
5866
5864
  statusReplaceDeviceNew: {
5867
- active: number;
5868
- error: number;
5869
- unknown: number;
5865
+ [EStatusDeviceReplace.Done]: number;
5866
+ [EStatusDeviceReplace.Error]: number;
5867
+ [EStatusDeviceReplace.NA]: number;
5870
5868
  total: number;
5871
5869
  };
5872
5870
  connectDeviceOnPC: {
5873
- active: number;
5874
- error: number;
5875
- unknown: number;
5871
+ [EStatusDeviceConnectPC.Connected]: number;
5872
+ [EStatusDeviceConnectPC.Disconnected]: number;
5873
+ [EStatusDeviceConnectPC.Unauthenticated]: number;
5876
5874
  total: number;
5877
5875
  };
5878
5876
  username: {
5879
5877
  statusLogin: {
5880
- active: number;
5881
- loginError: number;
5882
- unknown: number;
5878
+ [EStatusAccountSocialCheckAuth.Active]: number;
5879
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5880
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5883
5881
  total: number;
5884
5882
  };
5885
5883
  statusChange: {
5886
- done: number;
5887
- error: number;
5888
- unknown: number;
5884
+ [EStatusChangeInfo.Done]: number;
5885
+ [EStatusChangeInfo.Error]: number;
5886
+ [EStatusChangeInfo.Unknown]: number;
5887
+ [EStatusChangeInfo.Pending]: number;
5889
5888
  total: number;
5890
5889
  };
5891
5890
  total: number;
5892
5891
  };
5893
5892
  password: {
5894
5893
  statusLogin: {
5895
- active: number;
5896
- loginError: number;
5897
- unknown: number;
5894
+ [EStatusAccountSocialCheckAuth.Active]: number;
5895
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5896
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5898
5897
  total: number;
5899
5898
  };
5900
5899
  statusChange: {
5901
- done: number;
5902
- error: number;
5903
- unknown: number;
5900
+ [EStatusChangeInfo.Done]: number;
5901
+ [EStatusChangeInfo.Error]: number;
5902
+ [EStatusChangeInfo.Unknown]: number;
5903
+ [EStatusChangeInfo.Pending]: number;
5904
5904
  total: number;
5905
5905
  };
5906
5906
  total: number;
5907
5907
  };
5908
5908
  twoFA: {
5909
5909
  statusLogin: {
5910
- active: number;
5911
- loginError: number;
5912
- unknown: number;
5910
+ [EStatusAccountSocialCheckAuth.Active]: number;
5911
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5912
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5913
5913
  total: number;
5914
5914
  };
5915
5915
  statusChange: {
5916
- done: number;
5917
- error: number;
5918
- unknown: number;
5916
+ [EStatusChangeInfo.Done]: number;
5917
+ [EStatusChangeInfo.Error]: number;
5918
+ [EStatusChangeInfo.Unknown]: number;
5919
+ [EStatusChangeInfo.Pending]: number;
5919
5920
  total: number;
5920
5921
  };
5921
5922
  total: number;
5922
5923
  };
5923
5924
  fullName: {
5924
5925
  statusChange: {
5925
- done: number;
5926
- error: number;
5927
- unknown: number;
5926
+ [EStatusChangeInfo.Done]: number;
5927
+ [EStatusChangeInfo.Error]: number;
5928
+ [EStatusChangeInfo.Unknown]: number;
5929
+ [EStatusChangeInfo.Pending]: number;
5928
5930
  total: number;
5929
5931
  };
5930
5932
  total: number;
5931
5933
  };
5932
5934
  bioAndLinkBio: {
5933
5935
  bioStatusChange: {
5934
- done: number;
5935
- error: number;
5936
- unknown: number;
5936
+ [EStatusChangeInfo.Done]: number;
5937
+ [EStatusChangeInfo.Error]: number;
5938
+ [EStatusChangeInfo.Unknown]: number;
5939
+ [EStatusChangeInfo.Pending]: number;
5937
5940
  total: number;
5938
5941
  };
5939
5942
  linkBioStatusChange: {
5940
- done: number;
5941
- error: number;
5942
- unknown: number;
5943
+ [EStatusChangeInfo.Done]: number;
5944
+ [EStatusChangeInfo.Error]: number;
5945
+ [EStatusChangeInfo.Unknown]: number;
5946
+ [EStatusChangeInfo.Pending]: number;
5943
5947
  total: number;
5944
5948
  };
5945
5949
  };
5946
5950
  interestsAndAvatar: {
5947
5951
  interestsThreadsStatus: {
5948
- done: number;
5949
- error: number;
5950
- unknown: number;
5952
+ [EStatusAccountSocialSyncInstagramThreads.Done]: number;
5953
+ [EStatusAccountSocialSyncInstagramThreads.Error]: number;
5954
+ [EStatusAccountSocialSyncInstagramThreads.Unknown]: number;
5951
5955
  total: number;
5952
5956
  };
5953
5957
  avatarStatusChange: {
5954
- done: number;
5955
- error: number;
5956
- unknown: number;
5958
+ [EStatusChangeInfo.Done]: number;
5959
+ [EStatusChangeInfo.Error]: number;
5960
+ [EStatusChangeInfo.Unknown]: number;
5961
+ [EStatusChangeInfo.Pending]: number;
5957
5962
  total: number;
5958
5963
  };
5959
5964
  };
5960
5965
  emailInfoAndLoginEmail: {
5961
5966
  emailInfoStatusChange: {
5962
- done: number;
5963
- error: number;
5964
- unknown: number;
5967
+ [EStatusChangeInfo.Done]: number;
5968
+ [EStatusChangeInfo.Error]: number;
5969
+ [EStatusChangeInfo.Unknown]: number;
5970
+ [EStatusChangeInfo.Pending]: number;
5965
5971
  total: number;
5966
5972
  };
5967
5973
  loginEmailStatus: {
5968
- active: number;
5969
- loginError: number;
5970
- unknown: number;
5974
+ [EStatusAccountSocialLoginEmail.LoginSuccess]: number;
5975
+ [EStatusAccountSocialLoginEmail.LoginError]: number;
5976
+ [EStatusAccountSocialLoginEmail.Pending]: number;
5971
5977
  total: number;
5972
5978
  };
5973
5979
  total: number;
@@ -9660,7 +9666,7 @@ interface FindOverviewInstagramDashboardFollowerDto {
9660
9666
  }
9661
9667
  interface FilterCheckerAccountInstagramDashboardFollowerDto {
9662
9668
  selectAccount: string;
9663
- typeTime: "Daily" | "Weekly" | "Monthly";
9669
+ typeTime: 'Daily' | 'Weekly' | 'Monthly';
9664
9670
  }
9665
9671
  interface FindGrowthInstagramDashboardFollowerDto {
9666
9672
  data: Array<{
@@ -9709,8 +9715,8 @@ interface FindPerformanceBreakdownOverviewInstagramDashboardFollowerDto {
9709
9715
  }
9710
9716
  interface FilterPerformanceBreakdownInstagramDashboardFollowerDto {
9711
9717
  searchManagerWork: string;
9712
- sortBy: "order" | "name" | "totalAccounts" | "totalFollower" | "avgGrowth";
9713
- dir: "ASC" | "DESC";
9718
+ sortBy: 'order' | 'name' | 'totalAccounts' | 'totalFollower' | 'avgGrowth';
9719
+ dir: 'ASC' | 'DESC';
9714
9720
  pagination: {
9715
9721
  limit: string;
9716
9722
  page: string;
@@ -9909,100 +9915,20 @@ interface IThreadsDashboardFollower extends IBaseModel, ITrackingModel {
9909
9915
  }
9910
9916
 
9911
9917
  interface FindThreadsAccountRawDto extends IFindBaseDto {
9912
- statusAccountInfo: {
9913
- accountStatus: EStatusAccountSocialRaw;
9914
- timeChange: Date;
9915
- };
9916
- timeAddToDevice: Date;
9917
- statusAutoSyncAccount: {
9918
- statusSync: EStatusAccountSocialSync;
9919
- timeSync: Date;
9920
- };
9921
- sheetImportExportInfo: Array<{
9922
- id: string;
9923
- sheetUrl: string;
9924
- sheetName: string;
9925
- type: ETypeImportExport;
9926
- timeAction: Date;
9927
- status: string;
9928
- totalAccounts: number;
9929
- departmentCreator: string;
9930
- leaderCreator: string;
9931
- teamCreator: string;
9932
- createdBy: string;
9933
- }>;
9934
- listTypeChangeInfo: Array<{
9935
- sheetUrl: string;
9936
- sheetName: string;
9937
- listTypeChangeInfo: string[];
9938
- timeAction: Date;
9939
- status: string;
9940
- departmentCreator: string;
9941
- leaderCreator: string;
9942
- teamCreator: string;
9943
- createdBy: string;
9944
- }>;
9945
- sheetToolInfo: Array<{
9946
- id: string;
9947
- sheetUrl: string;
9948
- sheetName: string;
9949
- type: string;
9950
- status: string;
9951
- departmentCreator: string;
9952
- leaderCreator: string;
9953
- teamCreator: string;
9954
- createdBy: string;
9955
- }>;
9956
- listSettingsInfo: Array<{
9957
- id: string;
9958
- hasSetting: EHaveData;
9959
- type: string;
9960
- status: string;
9961
- departmentCreator: string;
9962
- leaderCreator: string;
9963
- teamCreator: string;
9964
- createdBy: string;
9965
- createAt: string;
9966
- }>;
9967
- accountGroup: string | IAccountSocialGroup;
9968
- accountID: string;
9969
- userNameAccountSocial: {
9970
- old: string;
9971
- new: string;
9972
- statusLogin: EStatusAccountSocialLogin;
9973
- timeLogin: Date;
9974
- statusChange: EStatusChangeInfo;
9975
- timeChange: Date;
9976
- statusSync: EStatusAccountSocialSync;
9977
- timeSync: Date;
9978
- };
9979
- statusLoginAccountSocial: {
9980
- status: EStatusAccountSocialLogin;
9981
- time: Date;
9982
- };
9983
- startStopDevicesInfo: {
9984
- status: EStartStop;
9985
- time: Date;
9918
+ pcInfo: {
9919
+ name: string;
9920
+ department: string;
9921
+ leader: string;
9922
+ member: string;
9986
9923
  };
9987
9924
  deviceInfo: {
9988
9925
  id: string;
9989
9926
  key: string;
9990
9927
  name: string;
9991
- model: string;
9992
- os: ETypeDeviceOS;
9928
+ type: ETypeDeviceOS;
9993
9929
  typeAppClone: string;
9994
9930
  nameAppClone: string;
9995
9931
  nameAppCloneSocial: string;
9996
- statusConnectPC: EStatusDeviceConnectPC;
9997
- timeConnectPC: Date;
9998
- statusReplace: EStatusDeviceReplace;
9999
- timeReplace: Date;
10000
- };
10001
- pcInfo: {
10002
- name: string;
10003
- department: string;
10004
- leader: string;
10005
- member: string;
10006
9932
  };
10007
9933
  isActiveOnDevice: boolean;
10008
9934
  assignInfo: {
@@ -10020,6 +9946,10 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
10020
9946
  };
10021
9947
  timeUpdate: Date;
10022
9948
  };
9949
+ statusAutoSyncAccount: {
9950
+ statusSync: EStatusAccountSocialSync;
9951
+ timeSync: Date;
9952
+ };
10023
9953
  idea: string | IManagerWork;
10024
9954
  niche: string | IManagerWork;
10025
9955
  type: ETypeManagerWorkClassify;
@@ -10028,74 +9958,110 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
10028
9958
  statusChange: string;
10029
9959
  timeChange: Date;
10030
9960
  };
9961
+ accountGroup: string | IAccountSocialGroup;
10031
9962
  typeSocial: ETypeSocial;
10032
- fullNameAccountSocial: {
9963
+ accountID: string;
9964
+ historyUserName: {
10033
9965
  old: string;
10034
9966
  new: string;
10035
9967
  statusChange: EStatusChangeInfo;
10036
9968
  timeChange: Date;
10037
- statusSync: EStatusAccountSocialSync;
10038
- timeSync: Date;
10039
9969
  };
10040
- passwordAccountSocial: {
9970
+ historyFullname: {
10041
9971
  old: string;
10042
9972
  new: string;
10043
- statusLoginPassword: EStatusAccountSocialLogin;
10044
- timeLoginPassword: Date;
10045
9973
  statusChange: EStatusChangeInfo;
10046
9974
  timeChange: Date;
10047
- statusSync: EStatusAccountSocialSync;
10048
- timeSync: Date;
10049
9975
  };
10050
- twoFAAccountSocial: {
9976
+ historyPassword: {
10051
9977
  old: string;
10052
9978
  new: string;
10053
- statusLogin: EStatusAccountSocialLogin;
10054
- timeLogin: Date;
10055
9979
  statusChange: EStatusChangeInfo;
10056
9980
  timeChange: Date;
10057
- statusSync: EStatusAccountSocialSync;
10058
- timeSync: Date;
10059
9981
  };
10060
- emailAccountSocial: {
9982
+ history2FA: {
9983
+ old: string;
9984
+ new: string;
9985
+ statusChange: EStatusChangeInfo;
9986
+ timeChange: Date;
9987
+ };
9988
+ historyEmail: {
10061
9989
  old: string;
10062
9990
  new: string;
10063
- statusLogin: EStatusAccountSocialLogin;
10064
- timeLogin: Date;
10065
9991
  statusChange: EStatusChangeInfo;
10066
9992
  timeChange: Date;
10067
- statusSync: EStatusAccountSocialSync;
10068
- timeSync: Date;
9993
+ };
9994
+ loginSocialStatus: {
9995
+ status: EStatusAccountSocialLogin;
9996
+ time: Date;
9997
+ };
9998
+ accountSetting: {
9999
+ typeAccount: ETypeAccountInstagramSetting;
10000
+ timeChangeTypeAccount: Date;
10001
+ status: EStatusAccountSocialSetting;
10002
+ timeChangeAccount: Date;
10069
10003
  };
10070
10004
  avatarInfo: {
10005
+ prompt: string;
10006
+ url: string;
10007
+ statusChange: EStatusChangeInfo;
10008
+ timeChange: Date;
10009
+ };
10010
+ coverInfo: {
10011
+ prompt: string;
10071
10012
  url: string;
10072
10013
  statusChange: EStatusChangeInfo;
10073
10014
  timeChange: Date;
10074
10015
  };
10075
- promptAvatar: string;
10076
10016
  bioContentInfo: {
10077
10017
  content: string;
10078
10018
  statusChange: EStatusChangeInfo;
10079
10019
  timeChange: Date;
10080
10020
  };
10081
- interestsThreadsList: {
10082
- listInterests: string[];
10021
+ bioLinkInfo: {
10022
+ listLink: string[];
10083
10023
  statusChange: EStatusChangeInfo;
10084
10024
  timeChange: Date;
10085
10025
  };
10086
- bioAndLinkBio: {
10087
- link1: string;
10088
- link2: string;
10089
- link3: string;
10026
+ interest: {
10027
+ content: string;
10090
10028
  statusChange: EStatusChangeInfo;
10091
10029
  timeChange: Date;
10092
10030
  };
10093
- emailInfoAccountSocial: {
10031
+ loginEmailInfo: {
10094
10032
  email: string;
10095
10033
  emailPassword: string;
10096
10034
  email2FA: string;
10097
10035
  emailRecover: string;
10098
10036
  };
10037
+ loginEmailStatus: {
10038
+ status: EStatusAccountSocialLoginEmail;
10039
+ time: Date;
10040
+ };
10041
+ timeAddToDevice: Date;
10042
+ sheetInfo: Array<{
10043
+ sheetUrl: string;
10044
+ sheetName: string;
10045
+ type: ETypeImportExport;
10046
+ timeAction: Date;
10047
+ status: string;
10048
+ totalAccounts: number;
10049
+ departmentCreator: string;
10050
+ leaderCreator: string;
10051
+ teamCreator: string;
10052
+ createdBy: string;
10053
+ }>;
10054
+ listTypeChangeInfo: Array<{
10055
+ sheetUrl: string;
10056
+ sheetName: string;
10057
+ listTypeChangeInfo: string[];
10058
+ timeAction: Date;
10059
+ status: string;
10060
+ departmentCreator: string;
10061
+ leaderCreator: string;
10062
+ teamCreator: string;
10063
+ createdBy: string;
10064
+ }>;
10099
10065
  }
10100
10066
  interface AutoFillOverviewThreadsAccountRawDto {
10101
10067
  idea: {
package/dist/index.d.ts CHANGED
@@ -3796,7 +3796,7 @@ interface FilterManagerWorkDto extends IFilterBaseDto {
3796
3796
  }
3797
3797
 
3798
3798
  interface DataImportManagerWorkDto {
3799
- level: "idea" | "niche" | "subniche";
3799
+ level: 'idea' | 'niche' | 'subniche';
3800
3800
  idea: string;
3801
3801
  niche?: string;
3802
3802
  subniche?: string;
@@ -5813,161 +5813,167 @@ interface FindOverViewInstagramAccountRawDto {
5813
5813
  tm: number;
5814
5814
  ntm: number;
5815
5815
  startStopOnDevice: {
5816
- started: number;
5817
- stopped: number;
5816
+ [EStartStop.Start]: number;
5817
+ [EStartStop.Stop]: number;
5818
5818
  total: number;
5819
5819
  };
5820
5820
  statusAccountSocial: {
5821
- availableNew: number;
5822
- networkError: number;
5823
- checkpoint: number;
5824
- unknown: number;
5825
- inUseDevice: number;
5826
- permanentlyDead: number;
5827
- spam: number;
5821
+ [EStatusAccountSocialRaw.Available]: number;
5822
+ [EStatusAccountSocialRaw.NetworkError]: number;
5823
+ [EStatusAccountSocialRaw.Checkpoint]: number;
5824
+ [EStatusAccountSocialRaw.NA]: number;
5825
+ [EStatusAccountSocialRaw.InUseDevice]: number;
5826
+ [EStatusAccountSocialRaw.Dead]: number;
5827
+ [EStatusAccountSocialRaw.Spam]: number;
5828
+ [EStatusAccountSocialRaw.LockedOnDevice]: number;
5828
5829
  total: number;
5829
5830
  };
5830
5831
  loginAppClone: {
5831
- na: number;
5832
- networkError: number;
5833
- locked: number;
5834
- spam: number;
5835
- active: number;
5836
- loginError: number;
5837
- die: number;
5838
- unknown: number;
5832
+ [EStatusAccountSocialLogin.NA]: number;
5833
+ [EStatusAccountSocialLogin.NetworkError]: number;
5834
+ [EStatusAccountSocialLogin.Locked]: number;
5835
+ [EStatusAccountSocialLogin.Spam]: number;
5836
+ [EStatusAccountSocialLogin.Active]: number;
5837
+ [EStatusAccountSocialLogin.ErrorAppClone]: number;
5838
+ [EStatusAccountSocialLogin.Dead]: number;
5839
5839
  total: number;
5840
5840
  };
5841
5841
  createFolderName: {
5842
- doneCreateNewFolder: number;
5843
- errorCreateNewFolder: number;
5844
- errorIdeaNicheCreateNew: number;
5842
+ [EStatusAccountSocialFolderName.Available]: number;
5843
+ [EStatusAccountSocialFolderName.Error]: number;
5844
+ [EStatusAccountSocialFolderName.New]: number;
5845
5845
  total: number;
5846
5846
  };
5847
- statusGenerateAllFolder: {
5848
- availableFolderNew: number;
5849
- availableFolderCreateNew: number;
5850
- inUseFolderGenerate: number;
5851
- errorImageOnFolder: number;
5847
+ folderStartStop: {
5848
+ [EStartStop.Start]: number;
5849
+ [EStartStop.Stop]: number;
5852
5850
  total: number;
5853
5851
  };
5854
5852
  autoSync: {
5855
- done: number;
5856
- error: number;
5857
- new: number;
5853
+ [EStatusAccountSocialSync.Done]: number;
5854
+ [EStatusAccountSocialSync.Error]: number;
5855
+ [EStatusAccountSocialSync.New]: number;
5858
5856
  total: number;
5859
5857
  };
5860
5858
  statusDeviceKey: {
5861
- active: number;
5862
- error: number;
5863
- unknown: number;
5859
+ [EStatusDeviceReplace.Done]: number;
5860
+ [EStatusDeviceReplace.Error]: number;
5861
+ [EStatusDeviceReplace.NA]: number;
5864
5862
  total: number;
5865
5863
  };
5866
5864
  statusReplaceDeviceNew: {
5867
- active: number;
5868
- error: number;
5869
- unknown: number;
5865
+ [EStatusDeviceReplace.Done]: number;
5866
+ [EStatusDeviceReplace.Error]: number;
5867
+ [EStatusDeviceReplace.NA]: number;
5870
5868
  total: number;
5871
5869
  };
5872
5870
  connectDeviceOnPC: {
5873
- active: number;
5874
- error: number;
5875
- unknown: number;
5871
+ [EStatusDeviceConnectPC.Connected]: number;
5872
+ [EStatusDeviceConnectPC.Disconnected]: number;
5873
+ [EStatusDeviceConnectPC.Unauthenticated]: number;
5876
5874
  total: number;
5877
5875
  };
5878
5876
  username: {
5879
5877
  statusLogin: {
5880
- active: number;
5881
- loginError: number;
5882
- unknown: number;
5878
+ [EStatusAccountSocialCheckAuth.Active]: number;
5879
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5880
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5883
5881
  total: number;
5884
5882
  };
5885
5883
  statusChange: {
5886
- done: number;
5887
- error: number;
5888
- unknown: number;
5884
+ [EStatusChangeInfo.Done]: number;
5885
+ [EStatusChangeInfo.Error]: number;
5886
+ [EStatusChangeInfo.Unknown]: number;
5887
+ [EStatusChangeInfo.Pending]: number;
5889
5888
  total: number;
5890
5889
  };
5891
5890
  total: number;
5892
5891
  };
5893
5892
  password: {
5894
5893
  statusLogin: {
5895
- active: number;
5896
- loginError: number;
5897
- unknown: number;
5894
+ [EStatusAccountSocialCheckAuth.Active]: number;
5895
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5896
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5898
5897
  total: number;
5899
5898
  };
5900
5899
  statusChange: {
5901
- done: number;
5902
- error: number;
5903
- unknown: number;
5900
+ [EStatusChangeInfo.Done]: number;
5901
+ [EStatusChangeInfo.Error]: number;
5902
+ [EStatusChangeInfo.Unknown]: number;
5903
+ [EStatusChangeInfo.Pending]: number;
5904
5904
  total: number;
5905
5905
  };
5906
5906
  total: number;
5907
5907
  };
5908
5908
  twoFA: {
5909
5909
  statusLogin: {
5910
- active: number;
5911
- loginError: number;
5912
- unknown: number;
5910
+ [EStatusAccountSocialCheckAuth.Active]: number;
5911
+ [EStatusAccountSocialCheckAuth.LoginError]: number;
5912
+ [EStatusAccountSocialCheckAuth.Unknown]: number;
5913
5913
  total: number;
5914
5914
  };
5915
5915
  statusChange: {
5916
- done: number;
5917
- error: number;
5918
- unknown: number;
5916
+ [EStatusChangeInfo.Done]: number;
5917
+ [EStatusChangeInfo.Error]: number;
5918
+ [EStatusChangeInfo.Unknown]: number;
5919
+ [EStatusChangeInfo.Pending]: number;
5919
5920
  total: number;
5920
5921
  };
5921
5922
  total: number;
5922
5923
  };
5923
5924
  fullName: {
5924
5925
  statusChange: {
5925
- done: number;
5926
- error: number;
5927
- unknown: number;
5926
+ [EStatusChangeInfo.Done]: number;
5927
+ [EStatusChangeInfo.Error]: number;
5928
+ [EStatusChangeInfo.Unknown]: number;
5929
+ [EStatusChangeInfo.Pending]: number;
5928
5930
  total: number;
5929
5931
  };
5930
5932
  total: number;
5931
5933
  };
5932
5934
  bioAndLinkBio: {
5933
5935
  bioStatusChange: {
5934
- done: number;
5935
- error: number;
5936
- unknown: number;
5936
+ [EStatusChangeInfo.Done]: number;
5937
+ [EStatusChangeInfo.Error]: number;
5938
+ [EStatusChangeInfo.Unknown]: number;
5939
+ [EStatusChangeInfo.Pending]: number;
5937
5940
  total: number;
5938
5941
  };
5939
5942
  linkBioStatusChange: {
5940
- done: number;
5941
- error: number;
5942
- unknown: number;
5943
+ [EStatusChangeInfo.Done]: number;
5944
+ [EStatusChangeInfo.Error]: number;
5945
+ [EStatusChangeInfo.Unknown]: number;
5946
+ [EStatusChangeInfo.Pending]: number;
5943
5947
  total: number;
5944
5948
  };
5945
5949
  };
5946
5950
  interestsAndAvatar: {
5947
5951
  interestsThreadsStatus: {
5948
- done: number;
5949
- error: number;
5950
- unknown: number;
5952
+ [EStatusAccountSocialSyncInstagramThreads.Done]: number;
5953
+ [EStatusAccountSocialSyncInstagramThreads.Error]: number;
5954
+ [EStatusAccountSocialSyncInstagramThreads.Unknown]: number;
5951
5955
  total: number;
5952
5956
  };
5953
5957
  avatarStatusChange: {
5954
- done: number;
5955
- error: number;
5956
- unknown: number;
5958
+ [EStatusChangeInfo.Done]: number;
5959
+ [EStatusChangeInfo.Error]: number;
5960
+ [EStatusChangeInfo.Unknown]: number;
5961
+ [EStatusChangeInfo.Pending]: number;
5957
5962
  total: number;
5958
5963
  };
5959
5964
  };
5960
5965
  emailInfoAndLoginEmail: {
5961
5966
  emailInfoStatusChange: {
5962
- done: number;
5963
- error: number;
5964
- unknown: number;
5967
+ [EStatusChangeInfo.Done]: number;
5968
+ [EStatusChangeInfo.Error]: number;
5969
+ [EStatusChangeInfo.Unknown]: number;
5970
+ [EStatusChangeInfo.Pending]: number;
5965
5971
  total: number;
5966
5972
  };
5967
5973
  loginEmailStatus: {
5968
- active: number;
5969
- loginError: number;
5970
- unknown: number;
5974
+ [EStatusAccountSocialLoginEmail.LoginSuccess]: number;
5975
+ [EStatusAccountSocialLoginEmail.LoginError]: number;
5976
+ [EStatusAccountSocialLoginEmail.Pending]: number;
5971
5977
  total: number;
5972
5978
  };
5973
5979
  total: number;
@@ -9660,7 +9666,7 @@ interface FindOverviewInstagramDashboardFollowerDto {
9660
9666
  }
9661
9667
  interface FilterCheckerAccountInstagramDashboardFollowerDto {
9662
9668
  selectAccount: string;
9663
- typeTime: "Daily" | "Weekly" | "Monthly";
9669
+ typeTime: 'Daily' | 'Weekly' | 'Monthly';
9664
9670
  }
9665
9671
  interface FindGrowthInstagramDashboardFollowerDto {
9666
9672
  data: Array<{
@@ -9709,8 +9715,8 @@ interface FindPerformanceBreakdownOverviewInstagramDashboardFollowerDto {
9709
9715
  }
9710
9716
  interface FilterPerformanceBreakdownInstagramDashboardFollowerDto {
9711
9717
  searchManagerWork: string;
9712
- sortBy: "order" | "name" | "totalAccounts" | "totalFollower" | "avgGrowth";
9713
- dir: "ASC" | "DESC";
9718
+ sortBy: 'order' | 'name' | 'totalAccounts' | 'totalFollower' | 'avgGrowth';
9719
+ dir: 'ASC' | 'DESC';
9714
9720
  pagination: {
9715
9721
  limit: string;
9716
9722
  page: string;
@@ -9909,100 +9915,20 @@ interface IThreadsDashboardFollower extends IBaseModel, ITrackingModel {
9909
9915
  }
9910
9916
 
9911
9917
  interface FindThreadsAccountRawDto extends IFindBaseDto {
9912
- statusAccountInfo: {
9913
- accountStatus: EStatusAccountSocialRaw;
9914
- timeChange: Date;
9915
- };
9916
- timeAddToDevice: Date;
9917
- statusAutoSyncAccount: {
9918
- statusSync: EStatusAccountSocialSync;
9919
- timeSync: Date;
9920
- };
9921
- sheetImportExportInfo: Array<{
9922
- id: string;
9923
- sheetUrl: string;
9924
- sheetName: string;
9925
- type: ETypeImportExport;
9926
- timeAction: Date;
9927
- status: string;
9928
- totalAccounts: number;
9929
- departmentCreator: string;
9930
- leaderCreator: string;
9931
- teamCreator: string;
9932
- createdBy: string;
9933
- }>;
9934
- listTypeChangeInfo: Array<{
9935
- sheetUrl: string;
9936
- sheetName: string;
9937
- listTypeChangeInfo: string[];
9938
- timeAction: Date;
9939
- status: string;
9940
- departmentCreator: string;
9941
- leaderCreator: string;
9942
- teamCreator: string;
9943
- createdBy: string;
9944
- }>;
9945
- sheetToolInfo: Array<{
9946
- id: string;
9947
- sheetUrl: string;
9948
- sheetName: string;
9949
- type: string;
9950
- status: string;
9951
- departmentCreator: string;
9952
- leaderCreator: string;
9953
- teamCreator: string;
9954
- createdBy: string;
9955
- }>;
9956
- listSettingsInfo: Array<{
9957
- id: string;
9958
- hasSetting: EHaveData;
9959
- type: string;
9960
- status: string;
9961
- departmentCreator: string;
9962
- leaderCreator: string;
9963
- teamCreator: string;
9964
- createdBy: string;
9965
- createAt: string;
9966
- }>;
9967
- accountGroup: string | IAccountSocialGroup;
9968
- accountID: string;
9969
- userNameAccountSocial: {
9970
- old: string;
9971
- new: string;
9972
- statusLogin: EStatusAccountSocialLogin;
9973
- timeLogin: Date;
9974
- statusChange: EStatusChangeInfo;
9975
- timeChange: Date;
9976
- statusSync: EStatusAccountSocialSync;
9977
- timeSync: Date;
9978
- };
9979
- statusLoginAccountSocial: {
9980
- status: EStatusAccountSocialLogin;
9981
- time: Date;
9982
- };
9983
- startStopDevicesInfo: {
9984
- status: EStartStop;
9985
- time: Date;
9918
+ pcInfo: {
9919
+ name: string;
9920
+ department: string;
9921
+ leader: string;
9922
+ member: string;
9986
9923
  };
9987
9924
  deviceInfo: {
9988
9925
  id: string;
9989
9926
  key: string;
9990
9927
  name: string;
9991
- model: string;
9992
- os: ETypeDeviceOS;
9928
+ type: ETypeDeviceOS;
9993
9929
  typeAppClone: string;
9994
9930
  nameAppClone: string;
9995
9931
  nameAppCloneSocial: string;
9996
- statusConnectPC: EStatusDeviceConnectPC;
9997
- timeConnectPC: Date;
9998
- statusReplace: EStatusDeviceReplace;
9999
- timeReplace: Date;
10000
- };
10001
- pcInfo: {
10002
- name: string;
10003
- department: string;
10004
- leader: string;
10005
- member: string;
10006
9932
  };
10007
9933
  isActiveOnDevice: boolean;
10008
9934
  assignInfo: {
@@ -10020,6 +9946,10 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
10020
9946
  };
10021
9947
  timeUpdate: Date;
10022
9948
  };
9949
+ statusAutoSyncAccount: {
9950
+ statusSync: EStatusAccountSocialSync;
9951
+ timeSync: Date;
9952
+ };
10023
9953
  idea: string | IManagerWork;
10024
9954
  niche: string | IManagerWork;
10025
9955
  type: ETypeManagerWorkClassify;
@@ -10028,74 +9958,110 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
10028
9958
  statusChange: string;
10029
9959
  timeChange: Date;
10030
9960
  };
9961
+ accountGroup: string | IAccountSocialGroup;
10031
9962
  typeSocial: ETypeSocial;
10032
- fullNameAccountSocial: {
9963
+ accountID: string;
9964
+ historyUserName: {
10033
9965
  old: string;
10034
9966
  new: string;
10035
9967
  statusChange: EStatusChangeInfo;
10036
9968
  timeChange: Date;
10037
- statusSync: EStatusAccountSocialSync;
10038
- timeSync: Date;
10039
9969
  };
10040
- passwordAccountSocial: {
9970
+ historyFullname: {
10041
9971
  old: string;
10042
9972
  new: string;
10043
- statusLoginPassword: EStatusAccountSocialLogin;
10044
- timeLoginPassword: Date;
10045
9973
  statusChange: EStatusChangeInfo;
10046
9974
  timeChange: Date;
10047
- statusSync: EStatusAccountSocialSync;
10048
- timeSync: Date;
10049
9975
  };
10050
- twoFAAccountSocial: {
9976
+ historyPassword: {
10051
9977
  old: string;
10052
9978
  new: string;
10053
- statusLogin: EStatusAccountSocialLogin;
10054
- timeLogin: Date;
10055
9979
  statusChange: EStatusChangeInfo;
10056
9980
  timeChange: Date;
10057
- statusSync: EStatusAccountSocialSync;
10058
- timeSync: Date;
10059
9981
  };
10060
- emailAccountSocial: {
9982
+ history2FA: {
9983
+ old: string;
9984
+ new: string;
9985
+ statusChange: EStatusChangeInfo;
9986
+ timeChange: Date;
9987
+ };
9988
+ historyEmail: {
10061
9989
  old: string;
10062
9990
  new: string;
10063
- statusLogin: EStatusAccountSocialLogin;
10064
- timeLogin: Date;
10065
9991
  statusChange: EStatusChangeInfo;
10066
9992
  timeChange: Date;
10067
- statusSync: EStatusAccountSocialSync;
10068
- timeSync: Date;
9993
+ };
9994
+ loginSocialStatus: {
9995
+ status: EStatusAccountSocialLogin;
9996
+ time: Date;
9997
+ };
9998
+ accountSetting: {
9999
+ typeAccount: ETypeAccountInstagramSetting;
10000
+ timeChangeTypeAccount: Date;
10001
+ status: EStatusAccountSocialSetting;
10002
+ timeChangeAccount: Date;
10069
10003
  };
10070
10004
  avatarInfo: {
10005
+ prompt: string;
10006
+ url: string;
10007
+ statusChange: EStatusChangeInfo;
10008
+ timeChange: Date;
10009
+ };
10010
+ coverInfo: {
10011
+ prompt: string;
10071
10012
  url: string;
10072
10013
  statusChange: EStatusChangeInfo;
10073
10014
  timeChange: Date;
10074
10015
  };
10075
- promptAvatar: string;
10076
10016
  bioContentInfo: {
10077
10017
  content: string;
10078
10018
  statusChange: EStatusChangeInfo;
10079
10019
  timeChange: Date;
10080
10020
  };
10081
- interestsThreadsList: {
10082
- listInterests: string[];
10021
+ bioLinkInfo: {
10022
+ listLink: string[];
10083
10023
  statusChange: EStatusChangeInfo;
10084
10024
  timeChange: Date;
10085
10025
  };
10086
- bioAndLinkBio: {
10087
- link1: string;
10088
- link2: string;
10089
- link3: string;
10026
+ interest: {
10027
+ content: string;
10090
10028
  statusChange: EStatusChangeInfo;
10091
10029
  timeChange: Date;
10092
10030
  };
10093
- emailInfoAccountSocial: {
10031
+ loginEmailInfo: {
10094
10032
  email: string;
10095
10033
  emailPassword: string;
10096
10034
  email2FA: string;
10097
10035
  emailRecover: string;
10098
10036
  };
10037
+ loginEmailStatus: {
10038
+ status: EStatusAccountSocialLoginEmail;
10039
+ time: Date;
10040
+ };
10041
+ timeAddToDevice: Date;
10042
+ sheetInfo: Array<{
10043
+ sheetUrl: string;
10044
+ sheetName: string;
10045
+ type: ETypeImportExport;
10046
+ timeAction: Date;
10047
+ status: string;
10048
+ totalAccounts: number;
10049
+ departmentCreator: string;
10050
+ leaderCreator: string;
10051
+ teamCreator: string;
10052
+ createdBy: string;
10053
+ }>;
10054
+ listTypeChangeInfo: Array<{
10055
+ sheetUrl: string;
10056
+ sheetName: string;
10057
+ listTypeChangeInfo: string[];
10058
+ timeAction: Date;
10059
+ status: string;
10060
+ departmentCreator: string;
10061
+ leaderCreator: string;
10062
+ teamCreator: string;
10063
+ createdBy: string;
10064
+ }>;
10099
10065
  }
10100
10066
  interface AutoFillOverviewThreadsAccountRawDto {
10101
10067
  idea: {
package/docs.txt CHANGED
@@ -1,3 +1,3 @@
1
-
2
- ############ Cấu hình npm ############
1
+
2
+ ############ Cấu hình npm ############
3
3
  npm config set //registry.npmjs.org/:_authToken {token}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "5.13.27",
3
+ "version": "6.0.2",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -1,81 +1,81 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
- chcp 65001 >nul
4
- echo ====================================
5
- echo FILE SEARCH AND LIST UTILITY
6
- echo ====================================
7
- echo.
8
-
9
- set /p folder_path="Enter folder path: "
10
-
11
- if not exist "%folder_path%" (
12
- echo.
13
- echo [ERROR] Folder does not exist!
14
- pause
15
- exit /b
16
- )
17
-
18
- echo.
19
- set /p file_pattern="Enter file name pattern (press Enter to list all files): "
20
-
21
- if "%file_pattern%"=="" (
22
- set search_mode=ALL_FILES
23
- set output_file=all_files_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
24
- ) else (
25
- set search_mode=PATTERN_SEARCH
26
- set output_file=search_%file_pattern:_=_%_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
27
- )
28
-
29
- set output_file=%output_file: =0%
30
-
31
- echo.
32
- echo Searching files...
33
- if "%search_mode%"=="PATTERN_SEARCH" (
34
- echo Pattern: *%file_pattern%*
35
- ) else (
36
- echo Listing all files...
37
- )
38
- echo.
39
-
40
- echo ============ SEARCH RESULTS ============ > "%output_file%"
41
- echo Folder: %folder_path% >> "%output_file%"
42
- echo Time: %date% %time% >> "%output_file%"
43
- if "%search_mode%"=="PATTERN_SEARCH" (
44
- echo Search Pattern: *%file_pattern%* >> "%output_file%"
45
- ) else (
46
- echo Search Mode: All Files >> "%output_file%"
47
- )
48
- echo ====================================== >> "%output_file%"
49
- echo. >> "%output_file%"
50
-
51
- set count=0
52
-
53
- if "%search_mode%"=="ALL_FILES" (
54
- for /r "%folder_path%" %%f in (*) do (
55
- echo %%f
56
- echo %%f >> "%output_file%"
57
- set /a count+=1
58
- )
59
- ) else (
60
- for /r "%folder_path%" %%f in (*) do (
61
- echo %%~nxf | findstr /i "%file_pattern%" >nul
62
- if !errorlevel! equ 0 (
63
- echo %%f
64
- echo %%f >> "%output_file%"
65
- set /a count+=1
66
- )
67
- )
68
- )
69
-
70
- echo.
71
- echo ====================================
72
- if "%search_mode%"=="PATTERN_SEARCH" (
73
- echo Total matching files: %count%
74
- ) else (
75
- echo Total files: %count%
76
- )
77
- echo Result saved to: %output_file%
78
- echo ====================================
79
- echo.
80
-
81
- pause
1
+ n@echo off
2
+ setlocal enabledelayedexpansion
3
+ chcp 65001 >nul
4
+ echo ====================================
5
+ echo FILE SEARCH AND LIST UTILITY
6
+ echo ====================================
7
+ echo.
8
+
9
+ set /p folder_path="Enter folder path: "
10
+
11
+ if not exist "%folder_path%" (
12
+ echo.
13
+ echo [ERROR] Folder does not exist!
14
+ pause
15
+ exit /b
16
+ )
17
+
18
+ echo.
19
+ set /p file_pattern="Enter file name pattern (press Enter to list all files): "
20
+
21
+ if "%file_pattern%"=="" (
22
+ set search_mode=ALL_FILES
23
+ set output_file=all_files_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
24
+ ) else (
25
+ set search_mode=PATTERN_SEARCH
26
+ set output_file=search_%file_pattern:_=_%_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
27
+ )
28
+
29
+ set output_file=%output_file: =0%
30
+
31
+ echo.
32
+ echo Searching files...
33
+ if "%search_mode%"=="PATTERN_SEARCH" (
34
+ echo Pattern: *%file_pattern%*
35
+ ) else (
36
+ echo Listing all files...
37
+ )
38
+ echo.
39
+
40
+ echo ============ SEARCH RESULTS ============ > "%output_file%"
41
+ echo Folder: %folder_path% >> "%output_file%"
42
+ echo Time: %date% %time% >> "%output_file%"
43
+ if "%search_mode%"=="PATTERN_SEARCH" (
44
+ echo Search Pattern: *%file_pattern%* >> "%output_file%"
45
+ ) else (
46
+ echo Search Mode: All Files >> "%output_file%"
47
+ )
48
+ echo ====================================== >> "%output_file%"
49
+ echo. >> "%output_file%"
50
+
51
+ set count=0
52
+
53
+ if "%search_mode%"=="ALL_FILES" (
54
+ for /r "%folder_path%" %%f in (*) do (
55
+ echo %%f
56
+ echo %%f >> "%output_file%"
57
+ set /a count+=1
58
+ )
59
+ ) else (
60
+ for /r "%folder_path%" %%f in (*) do (
61
+ echo %%~nxf | findstr /i "%file_pattern%" >nul
62
+ if !errorlevel! equ 0 (
63
+ echo %%f
64
+ echo %%f >> "%output_file%"
65
+ set /a count+=1
66
+ )
67
+ )
68
+ )
69
+
70
+ echo.
71
+ echo ====================================
72
+ if "%search_mode%"=="PATTERN_SEARCH" (
73
+ echo Total matching files: %count%
74
+ ) else (
75
+ echo Total files: %count%
76
+ )
77
+ echo Result saved to: %output_file%
78
+ echo ====================================
79
+ echo.
80
+
81
+ pause