automation-lib 6.3.27 → 6.4.1

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
@@ -4773,6 +4773,18 @@ declare enum ESyncStatusAccountDrive {
4773
4773
  }
4774
4774
 
4775
4775
  interface FindAccountDriveDto extends IFindBaseDto {
4776
+ sheetUrl: string;
4777
+ sheetName: string;
4778
+ driveType: EAccountDriveType;
4779
+ email: string;
4780
+ password: string;
4781
+ code2FA: string;
4782
+ googleRefreshToken?: string;
4783
+ idriveE2Credentials?: IIDriveE2Credentials;
4784
+ currentSpace: string;
4785
+ maxSpace: string;
4786
+ status: EStatusAccountDrive;
4787
+ note: string;
4776
4788
  isAuthenticated?: boolean;
4777
4789
  }
4778
4790
  interface FindOverviewAccountDriveDto {
@@ -5460,6 +5472,8 @@ declare enum EStatusImapApp {
5460
5472
 
5461
5473
  interface IEmailRawManager extends IBaseModel, ITrackingModel {
5462
5474
  accountSocialId: string;
5475
+ urlSheet: string;
5476
+ nameSheet: string;
5463
5477
  status: EStatusEmailManager;
5464
5478
  timeStatus: Date;
5465
5479
  vps: string | IAccountVPS;
@@ -5631,15 +5645,7 @@ interface FindEmailRawManagerDto extends IFindBaseDto {
5631
5645
  timeLoginCode2FABackup: Date;
5632
5646
  timeChangeCode2FABackup: Date;
5633
5647
  }
5634
- interface FindDetailEmailRawManagerDto extends IFindBaseDto {
5635
- newEmail: string;
5636
- typeEmail: ETypeEmailManager;
5637
- urlLoginEmail: string;
5638
- newPassword: string;
5639
- newEmailRecover: string;
5640
- newCode2FA: string;
5641
- newCode2FABackup: string;
5642
- status: EStatusEmailManager;
5648
+ interface FindDetailEmailRawManagerDto extends IEmailRawManager {
5643
5649
  typeSocial: ETypeSocial[];
5644
5650
  accountSocial: {
5645
5651
  newUsername: string;
@@ -5647,15 +5653,6 @@ interface FindDetailEmailRawManagerDto extends IFindBaseDto {
5647
5653
  accountGroup: string;
5648
5654
  statusAccountSocial: EStatusAccountSocialRaw;
5649
5655
  };
5650
- name_app: string;
5651
- app_password: string;
5652
- imap_server: string;
5653
- imap_port: string;
5654
- ssl: EYesNo;
5655
- imap_from_email: string;
5656
- title_opt: string;
5657
- title_inbox: string;
5658
- status_imap_app: EStatusImapApp;
5659
5656
  }
5660
5657
  interface FindListVPSForEmailRawManager {
5661
5658
  statusExtension: {
@@ -5746,9 +5743,9 @@ interface FindEmailRawAddToVPS extends IFindBaseDto {
5746
5743
  newUsername: string;
5747
5744
  statusAccountSocial: EStatusAccountSocialRaw;
5748
5745
  statusLoginAppClone: EStatusAccountSocialLogin;
5749
- urlFileImport: string;
5746
+ urlSheet: string;
5750
5747
  nameSheet: string;
5751
- dataImport: Date;
5748
+ dateImport: Date;
5752
5749
  }
5753
5750
  interface FindProxySelectionForEmail {
5754
5751
  typeProxy: ETypeProxy;
@@ -5834,7 +5831,7 @@ interface ResultImportEmailRawManagerDto {
5834
5831
  interface ImportEmailRawManagerDto {
5835
5832
  sheetUrl: string;
5836
5833
  sheetName: string;
5837
- listEmailID: string[];
5834
+ listEmail: string[];
5838
5835
  }
5839
5836
  interface DataImportEmailRawManagerDto {
5840
5837
  emailType: ETypeEmailManager;
package/dist/index.d.ts CHANGED
@@ -4773,6 +4773,18 @@ declare enum ESyncStatusAccountDrive {
4773
4773
  }
4774
4774
 
4775
4775
  interface FindAccountDriveDto extends IFindBaseDto {
4776
+ sheetUrl: string;
4777
+ sheetName: string;
4778
+ driveType: EAccountDriveType;
4779
+ email: string;
4780
+ password: string;
4781
+ code2FA: string;
4782
+ googleRefreshToken?: string;
4783
+ idriveE2Credentials?: IIDriveE2Credentials;
4784
+ currentSpace: string;
4785
+ maxSpace: string;
4786
+ status: EStatusAccountDrive;
4787
+ note: string;
4776
4788
  isAuthenticated?: boolean;
4777
4789
  }
4778
4790
  interface FindOverviewAccountDriveDto {
@@ -5460,6 +5472,8 @@ declare enum EStatusImapApp {
5460
5472
 
5461
5473
  interface IEmailRawManager extends IBaseModel, ITrackingModel {
5462
5474
  accountSocialId: string;
5475
+ urlSheet: string;
5476
+ nameSheet: string;
5463
5477
  status: EStatusEmailManager;
5464
5478
  timeStatus: Date;
5465
5479
  vps: string | IAccountVPS;
@@ -5631,15 +5645,7 @@ interface FindEmailRawManagerDto extends IFindBaseDto {
5631
5645
  timeLoginCode2FABackup: Date;
5632
5646
  timeChangeCode2FABackup: Date;
5633
5647
  }
5634
- interface FindDetailEmailRawManagerDto extends IFindBaseDto {
5635
- newEmail: string;
5636
- typeEmail: ETypeEmailManager;
5637
- urlLoginEmail: string;
5638
- newPassword: string;
5639
- newEmailRecover: string;
5640
- newCode2FA: string;
5641
- newCode2FABackup: string;
5642
- status: EStatusEmailManager;
5648
+ interface FindDetailEmailRawManagerDto extends IEmailRawManager {
5643
5649
  typeSocial: ETypeSocial[];
5644
5650
  accountSocial: {
5645
5651
  newUsername: string;
@@ -5647,15 +5653,6 @@ interface FindDetailEmailRawManagerDto extends IFindBaseDto {
5647
5653
  accountGroup: string;
5648
5654
  statusAccountSocial: EStatusAccountSocialRaw;
5649
5655
  };
5650
- name_app: string;
5651
- app_password: string;
5652
- imap_server: string;
5653
- imap_port: string;
5654
- ssl: EYesNo;
5655
- imap_from_email: string;
5656
- title_opt: string;
5657
- title_inbox: string;
5658
- status_imap_app: EStatusImapApp;
5659
5656
  }
5660
5657
  interface FindListVPSForEmailRawManager {
5661
5658
  statusExtension: {
@@ -5746,9 +5743,9 @@ interface FindEmailRawAddToVPS extends IFindBaseDto {
5746
5743
  newUsername: string;
5747
5744
  statusAccountSocial: EStatusAccountSocialRaw;
5748
5745
  statusLoginAppClone: EStatusAccountSocialLogin;
5749
- urlFileImport: string;
5746
+ urlSheet: string;
5750
5747
  nameSheet: string;
5751
- dataImport: Date;
5748
+ dateImport: Date;
5752
5749
  }
5753
5750
  interface FindProxySelectionForEmail {
5754
5751
  typeProxy: ETypeProxy;
@@ -5834,7 +5831,7 @@ interface ResultImportEmailRawManagerDto {
5834
5831
  interface ImportEmailRawManagerDto {
5835
5832
  sheetUrl: string;
5836
5833
  sheetName: string;
5837
- listEmailID: string[];
5834
+ listEmail: string[];
5838
5835
  }
5839
5836
  interface DataImportEmailRawManagerDto {
5840
5837
  emailType: ETypeEmailManager;
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": "6.3.27",
3
+ "version": "6.4.1",
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
- 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
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