automation-lib 5.5.80 → 5.5.83
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 +5 -5
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/docs.txt +2 -2
- package/package.json +1 -1
- package/read-file-path.bat +81 -81
package/commit.bat
CHANGED
|
@@ -7,10 +7,10 @@ git add .
|
|
|
7
7
|
echo Committing changes...
|
|
8
8
|
set /p commit_message="Enter commit message: "
|
|
9
9
|
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
|
|
13
|
+
git pull hs main
|
|
14
14
|
|
|
15
15
|
:: Read the current version from package.json
|
|
16
16
|
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
@@ -41,10 +41,10 @@ echo New version: %newVersion%
|
|
|
41
41
|
call npm run pub
|
|
42
42
|
|
|
43
43
|
git add .
|
|
44
|
-
|
|
44
|
+
timeout /t 1 /nobreak >nul
|
|
45
45
|
git commit -m "%commit_message%"
|
|
46
|
-
|
|
46
|
+
timeout /t 2 /nobreak >nul
|
|
47
47
|
|
|
48
|
-
git push hs
|
|
48
|
+
git push hs main
|
|
49
49
|
|
|
50
50
|
|
package/dist/index.d.mts
CHANGED
|
@@ -686,8 +686,7 @@ declare enum EYesNo {
|
|
|
686
686
|
|
|
687
687
|
declare enum EStatusUse {
|
|
688
688
|
Draft = "Draft",
|
|
689
|
-
Use = "Use"
|
|
690
|
-
NotUse = "NotUse"
|
|
689
|
+
Use = "Use"
|
|
691
690
|
}
|
|
692
691
|
|
|
693
692
|
declare enum ETimeFilter {
|
|
@@ -3187,7 +3186,6 @@ interface FilterPCDto extends IFilterBaseDto {
|
|
|
3187
3186
|
statusDeviceConnectedPC: EStatusDeviceConnectPC[];
|
|
3188
3187
|
typeDevice: ETypeDevice[];
|
|
3189
3188
|
statusControl: EStatusPCControl[];
|
|
3190
|
-
hasDevice: boolean;
|
|
3191
3189
|
}
|
|
3192
3190
|
|
|
3193
3191
|
interface IPC extends IBaseModel, IAssignUser, ITrackingModel {
|
|
@@ -11349,6 +11347,7 @@ declare enum EManagerImageAIInstagramFolder {
|
|
|
11349
11347
|
interface IManagerImageAIInstagramItemStore extends IBaseModel, ITrackingModel {
|
|
11350
11348
|
typeFolderStore: EManagerImageAIInstagramFolder;
|
|
11351
11349
|
managerImage: IManagerImageAIInstagram | string;
|
|
11350
|
+
statusUse: EStatusUse;
|
|
11352
11351
|
file: IFile | string;
|
|
11353
11352
|
driveId?: string;
|
|
11354
11353
|
driverUrl?: string;
|
|
@@ -11422,7 +11421,6 @@ interface IManagerImageAIThreads extends IBaseModel, ITrackingModel, IAssignUser
|
|
|
11422
11421
|
interface IManagerImageAIThreadsUserAttached extends IBaseModel, ITrackingModel {
|
|
11423
11422
|
accountSocial: string | any;
|
|
11424
11423
|
managerImageAI: string | IManagerImageAIThreads;
|
|
11425
|
-
statusUse: EStatusUse;
|
|
11426
11424
|
}
|
|
11427
11425
|
|
|
11428
11426
|
declare enum EManagerImageAIThreadsModel {
|
|
@@ -11437,6 +11435,7 @@ declare enum EManagerImageAIThreadsFolder {
|
|
|
11437
11435
|
interface IManagerImageAIThreadsItemStore extends IBaseModel, ITrackingModel {
|
|
11438
11436
|
typeFolderStore: EManagerImageAIThreadsFolder;
|
|
11439
11437
|
managerImage: IManagerImageAIThreads | string;
|
|
11438
|
+
statusUse: EStatusUse;
|
|
11440
11439
|
file: IFile | string;
|
|
11441
11440
|
driveId?: string;
|
|
11442
11441
|
driverUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -686,8 +686,7 @@ declare enum EYesNo {
|
|
|
686
686
|
|
|
687
687
|
declare enum EStatusUse {
|
|
688
688
|
Draft = "Draft",
|
|
689
|
-
Use = "Use"
|
|
690
|
-
NotUse = "NotUse"
|
|
689
|
+
Use = "Use"
|
|
691
690
|
}
|
|
692
691
|
|
|
693
692
|
declare enum ETimeFilter {
|
|
@@ -3187,7 +3186,6 @@ interface FilterPCDto extends IFilterBaseDto {
|
|
|
3187
3186
|
statusDeviceConnectedPC: EStatusDeviceConnectPC[];
|
|
3188
3187
|
typeDevice: ETypeDevice[];
|
|
3189
3188
|
statusControl: EStatusPCControl[];
|
|
3190
|
-
hasDevice: boolean;
|
|
3191
3189
|
}
|
|
3192
3190
|
|
|
3193
3191
|
interface IPC extends IBaseModel, IAssignUser, ITrackingModel {
|
|
@@ -11349,6 +11347,7 @@ declare enum EManagerImageAIInstagramFolder {
|
|
|
11349
11347
|
interface IManagerImageAIInstagramItemStore extends IBaseModel, ITrackingModel {
|
|
11350
11348
|
typeFolderStore: EManagerImageAIInstagramFolder;
|
|
11351
11349
|
managerImage: IManagerImageAIInstagram | string;
|
|
11350
|
+
statusUse: EStatusUse;
|
|
11352
11351
|
file: IFile | string;
|
|
11353
11352
|
driveId?: string;
|
|
11354
11353
|
driverUrl?: string;
|
|
@@ -11422,7 +11421,6 @@ interface IManagerImageAIThreads extends IBaseModel, ITrackingModel, IAssignUser
|
|
|
11422
11421
|
interface IManagerImageAIThreadsUserAttached extends IBaseModel, ITrackingModel {
|
|
11423
11422
|
accountSocial: string | any;
|
|
11424
11423
|
managerImageAI: string | IManagerImageAIThreads;
|
|
11425
|
-
statusUse: EStatusUse;
|
|
11426
11424
|
}
|
|
11427
11425
|
|
|
11428
11426
|
declare enum EManagerImageAIThreadsModel {
|
|
@@ -11437,6 +11435,7 @@ declare enum EManagerImageAIThreadsFolder {
|
|
|
11437
11435
|
interface IManagerImageAIThreadsItemStore extends IBaseModel, ITrackingModel {
|
|
11438
11436
|
typeFolderStore: EManagerImageAIThreadsFolder;
|
|
11439
11437
|
managerImage: IManagerImageAIThreads | string;
|
|
11438
|
+
statusUse: EStatusUse;
|
|
11440
11439
|
file: IFile | string;
|
|
11441
11440
|
driveId?: string;
|
|
11442
11441
|
driverUrl?: string;
|
package/dist/index.js
CHANGED
|
@@ -1076,7 +1076,6 @@ var EYesNo = /* @__PURE__ */ ((EYesNo2) => {
|
|
|
1076
1076
|
var EStatusUse = /* @__PURE__ */ ((EStatusUse2) => {
|
|
1077
1077
|
EStatusUse2["Draft"] = "Draft";
|
|
1078
1078
|
EStatusUse2["Use"] = "Use";
|
|
1079
|
-
EStatusUse2["NotUse"] = "NotUse";
|
|
1080
1079
|
return EStatusUse2;
|
|
1081
1080
|
})(EStatusUse || {});
|
|
1082
1081
|
|
package/dist/index.mjs
CHANGED
|
@@ -884,7 +884,6 @@ var EYesNo = /* @__PURE__ */ ((EYesNo2) => {
|
|
|
884
884
|
var EStatusUse = /* @__PURE__ */ ((EStatusUse2) => {
|
|
885
885
|
EStatusUse2["Draft"] = "Draft";
|
|
886
886
|
EStatusUse2["Use"] = "Use";
|
|
887
|
-
EStatusUse2["NotUse"] = "NotUse";
|
|
888
887
|
return EStatusUse2;
|
|
889
888
|
})(EStatusUse || {});
|
|
890
889
|
|
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
package/read-file-path.bat
CHANGED
|
@@ -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
|
+
@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
|