automation-lib 6.2.1 → 6.2.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,8 +10,6 @@ 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
15
13
  git pull hs main
16
14
 
17
15
  :: Read the current version from package.json
package/dist/index.d.mts CHANGED
@@ -5123,9 +5123,12 @@ interface CreateAccountVPSDto {
5123
5123
  displayName: string;
5124
5124
  provider: string;
5125
5125
  price: string;
5126
+ status: EVPSStatus;
5126
5127
  core: EVPSCore;
5127
5128
  ram: EVPSRam;
5128
5129
  os: EVPSOs;
5130
+ listTypeSocial: ETypeSocial[];
5131
+ listJobsID: string[];
5129
5132
  numberDayUse: number;
5130
5133
  statusExtension: EVPSExtension;
5131
5134
  settingDescription: string;
@@ -5134,6 +5137,10 @@ interface CreateAccountVPSDto {
5134
5137
  interface UpdateAccountVPSDto extends CreateAccountVPSDto {
5135
5138
  }
5136
5139
  interface FindAccountVPSDto extends IFindBaseDto {
5140
+ status: {
5141
+ value: EVPSStatus;
5142
+ timeChange: Date;
5143
+ };
5137
5144
  ip: string;
5138
5145
  port: string;
5139
5146
  username: string;
@@ -5147,10 +5154,6 @@ interface FindAccountVPSDto extends IFindBaseDto {
5147
5154
  listTypeSocial: ETypeSocial[];
5148
5155
  timeRaw: Date;
5149
5156
  timeRun: Date;
5150
- status: {
5151
- value: EVPSStatus;
5152
- timeChange: Date;
5153
- };
5154
5157
  statusExtension: {
5155
5158
  value: EVPSExtension;
5156
5159
  time: Date;
@@ -5342,6 +5345,7 @@ interface IAccountVPS extends IBaseModel, IAssignTeam, ITrackingModel {
5342
5345
  timeChangeStatusReplace: Date;
5343
5346
  statusRestart: EVPSStatusRestart;
5344
5347
  timeChangeStatusRestart: Date;
5348
+ noteFixRestart: string;
5345
5349
  statusConnect: EVPSStatusConnection;
5346
5350
  timeChangeStatusConnect: Date;
5347
5351
  settingDescription: string;
package/dist/index.d.ts CHANGED
@@ -5123,9 +5123,12 @@ interface CreateAccountVPSDto {
5123
5123
  displayName: string;
5124
5124
  provider: string;
5125
5125
  price: string;
5126
+ status: EVPSStatus;
5126
5127
  core: EVPSCore;
5127
5128
  ram: EVPSRam;
5128
5129
  os: EVPSOs;
5130
+ listTypeSocial: ETypeSocial[];
5131
+ listJobsID: string[];
5129
5132
  numberDayUse: number;
5130
5133
  statusExtension: EVPSExtension;
5131
5134
  settingDescription: string;
@@ -5134,6 +5137,10 @@ interface CreateAccountVPSDto {
5134
5137
  interface UpdateAccountVPSDto extends CreateAccountVPSDto {
5135
5138
  }
5136
5139
  interface FindAccountVPSDto extends IFindBaseDto {
5140
+ status: {
5141
+ value: EVPSStatus;
5142
+ timeChange: Date;
5143
+ };
5137
5144
  ip: string;
5138
5145
  port: string;
5139
5146
  username: string;
@@ -5147,10 +5154,6 @@ interface FindAccountVPSDto extends IFindBaseDto {
5147
5154
  listTypeSocial: ETypeSocial[];
5148
5155
  timeRaw: Date;
5149
5156
  timeRun: Date;
5150
- status: {
5151
- value: EVPSStatus;
5152
- timeChange: Date;
5153
- };
5154
5157
  statusExtension: {
5155
5158
  value: EVPSExtension;
5156
5159
  time: Date;
@@ -5342,6 +5345,7 @@ interface IAccountVPS extends IBaseModel, IAssignTeam, ITrackingModel {
5342
5345
  timeChangeStatusReplace: Date;
5343
5346
  statusRestart: EVPSStatusRestart;
5344
5347
  timeChangeStatusRestart: Date;
5348
+ noteFixRestart: string;
5345
5349
  statusConnect: EVPSStatusConnection;
5346
5350
  timeChangeStatusConnect: Date;
5347
5351
  settingDescription: string;
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.2.1",
3
+ "version": "6.2.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
- 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