automation-lib 5.11.17 → 5.11.19
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 -7
- package/dist/index.d.mts +39 -10
- package/dist/index.d.ts +39 -10
- package/docs.txt +2 -2
- package/package.json +1 -1
- package/read-file-path.bat +81 -81
package/commit.bat
CHANGED
|
@@ -7,12 +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
|
+
sleep 2
|
|
11
11
|
|
|
12
12
|
:: Push changes to the 'main' branch of the 'cp' remote
|
|
13
|
-
git pull
|
|
14
|
-
timeout /t 2 /nobreak >nul
|
|
15
|
-
git pull hs main
|
|
13
|
+
git pull origin toan
|
|
16
14
|
|
|
17
15
|
:: Read the current version from package.json
|
|
18
16
|
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
@@ -43,10 +41,10 @@ echo New version: %newVersion%
|
|
|
43
41
|
call npm run pub
|
|
44
42
|
|
|
45
43
|
git add .
|
|
46
|
-
|
|
44
|
+
sleep 1
|
|
47
45
|
git commit -m "%commit_message%"
|
|
48
|
-
|
|
46
|
+
sleep 2
|
|
49
47
|
|
|
50
|
-
git push
|
|
48
|
+
git push origin toan
|
|
51
49
|
|
|
52
50
|
|
package/dist/index.d.mts
CHANGED
|
@@ -7024,6 +7024,31 @@ interface FilterTaskInstagramChangeInfoDto extends IFilterBaseDto, IFilterBaseAc
|
|
|
7024
7024
|
}
|
|
7025
7025
|
|
|
7026
7026
|
interface FindTaskInstagramPostDto extends IFindBaseDto {
|
|
7027
|
+
rowSheet: number;
|
|
7028
|
+
sheetToolName: string;
|
|
7029
|
+
sheetToolUrl: string;
|
|
7030
|
+
postId: string;
|
|
7031
|
+
accountGroup: string;
|
|
7032
|
+
sttAcc: string;
|
|
7033
|
+
accountUsername: string;
|
|
7034
|
+
accountStatusRaw: EStatusAccountSocialRaw;
|
|
7035
|
+
nameAppClone: string;
|
|
7036
|
+
accountStatusLogin: EStatusAccountSocialLogin;
|
|
7037
|
+
postUrl: string;
|
|
7038
|
+
typePost: ETaskInstagramPostType;
|
|
7039
|
+
postStyle: ETaskInstagramPostStyle;
|
|
7040
|
+
taskIdAutoPost: string;
|
|
7041
|
+
status: EStatusTaskToolSocials;
|
|
7042
|
+
countRun: number;
|
|
7043
|
+
countRetry: number;
|
|
7044
|
+
totalSecondRun: number;
|
|
7045
|
+
noteFix: string;
|
|
7046
|
+
timeExecute: [string, string];
|
|
7047
|
+
isSchedule: boolean;
|
|
7048
|
+
isEdit: boolean;
|
|
7049
|
+
aiLabel: string;
|
|
7050
|
+
dateTimeStart: Date;
|
|
7051
|
+
dateTimeEnd: Date;
|
|
7027
7052
|
}
|
|
7028
7053
|
interface ViewDetailTaskInstagramPostDto {
|
|
7029
7054
|
taskRun: {
|
|
@@ -7047,26 +7072,30 @@ interface ViewDetailTaskInstagramPostDto {
|
|
|
7047
7072
|
};
|
|
7048
7073
|
setting: {
|
|
7049
7074
|
runTimeZoneSetting: ETimeZone;
|
|
7050
|
-
executeBetweenSetting: string;
|
|
7051
|
-
dateTimeStart:
|
|
7052
|
-
dateTimeEnd:
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7075
|
+
executeBetweenSetting: [string, string];
|
|
7076
|
+
dateTimeStart: Date;
|
|
7077
|
+
dateTimeEnd: Date;
|
|
7078
|
+
statusPostRunEdit: EStatusTaskToolSocials;
|
|
7079
|
+
isSchedule: boolean;
|
|
7080
|
+
isEdit: boolean;
|
|
7056
7081
|
dayOfWeeksSetting: string;
|
|
7057
7082
|
minuteWaitBetween: string;
|
|
7058
|
-
commentBetweenPostPerOperation: string;
|
|
7059
|
-
delayBetweenSecondsComment: string;
|
|
7083
|
+
commentBetweenPostPerOperation: [string, string];
|
|
7084
|
+
delayBetweenSecondsComment: [string, string];
|
|
7060
7085
|
};
|
|
7061
7086
|
sheetTool: {
|
|
7062
7087
|
sheetName: string;
|
|
7063
7088
|
sheetUrl: string;
|
|
7064
7089
|
typeSheetSheetTool: string;
|
|
7065
|
-
statusSheetTool:
|
|
7090
|
+
statusSheetTool: EStatusTaskToolSocials;
|
|
7066
7091
|
idea: string;
|
|
7067
7092
|
niche: string;
|
|
7068
7093
|
type: ETypeManagerWorkType;
|
|
7069
7094
|
};
|
|
7095
|
+
sourceImageVideoPost: {
|
|
7096
|
+
linkCanvaSource: string;
|
|
7097
|
+
linkDriveSource: string;
|
|
7098
|
+
};
|
|
7070
7099
|
contentPost: {
|
|
7071
7100
|
contentPostCaption: string;
|
|
7072
7101
|
editContentInstagram: string;
|
|
@@ -7078,7 +7107,7 @@ interface ViewDetailTaskInstagramPostDto {
|
|
|
7078
7107
|
tagUserName: string;
|
|
7079
7108
|
tagCollaborator: string;
|
|
7080
7109
|
addLocation: string;
|
|
7081
|
-
suggestFb:
|
|
7110
|
+
suggestFb: boolean;
|
|
7082
7111
|
historyName: string;
|
|
7083
7112
|
linkAddHistory: string;
|
|
7084
7113
|
commentPostMe: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7024,6 +7024,31 @@ interface FilterTaskInstagramChangeInfoDto extends IFilterBaseDto, IFilterBaseAc
|
|
|
7024
7024
|
}
|
|
7025
7025
|
|
|
7026
7026
|
interface FindTaskInstagramPostDto extends IFindBaseDto {
|
|
7027
|
+
rowSheet: number;
|
|
7028
|
+
sheetToolName: string;
|
|
7029
|
+
sheetToolUrl: string;
|
|
7030
|
+
postId: string;
|
|
7031
|
+
accountGroup: string;
|
|
7032
|
+
sttAcc: string;
|
|
7033
|
+
accountUsername: string;
|
|
7034
|
+
accountStatusRaw: EStatusAccountSocialRaw;
|
|
7035
|
+
nameAppClone: string;
|
|
7036
|
+
accountStatusLogin: EStatusAccountSocialLogin;
|
|
7037
|
+
postUrl: string;
|
|
7038
|
+
typePost: ETaskInstagramPostType;
|
|
7039
|
+
postStyle: ETaskInstagramPostStyle;
|
|
7040
|
+
taskIdAutoPost: string;
|
|
7041
|
+
status: EStatusTaskToolSocials;
|
|
7042
|
+
countRun: number;
|
|
7043
|
+
countRetry: number;
|
|
7044
|
+
totalSecondRun: number;
|
|
7045
|
+
noteFix: string;
|
|
7046
|
+
timeExecute: [string, string];
|
|
7047
|
+
isSchedule: boolean;
|
|
7048
|
+
isEdit: boolean;
|
|
7049
|
+
aiLabel: string;
|
|
7050
|
+
dateTimeStart: Date;
|
|
7051
|
+
dateTimeEnd: Date;
|
|
7027
7052
|
}
|
|
7028
7053
|
interface ViewDetailTaskInstagramPostDto {
|
|
7029
7054
|
taskRun: {
|
|
@@ -7047,26 +7072,30 @@ interface ViewDetailTaskInstagramPostDto {
|
|
|
7047
7072
|
};
|
|
7048
7073
|
setting: {
|
|
7049
7074
|
runTimeZoneSetting: ETimeZone;
|
|
7050
|
-
executeBetweenSetting: string;
|
|
7051
|
-
dateTimeStart:
|
|
7052
|
-
dateTimeEnd:
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7075
|
+
executeBetweenSetting: [string, string];
|
|
7076
|
+
dateTimeStart: Date;
|
|
7077
|
+
dateTimeEnd: Date;
|
|
7078
|
+
statusPostRunEdit: EStatusTaskToolSocials;
|
|
7079
|
+
isSchedule: boolean;
|
|
7080
|
+
isEdit: boolean;
|
|
7056
7081
|
dayOfWeeksSetting: string;
|
|
7057
7082
|
minuteWaitBetween: string;
|
|
7058
|
-
commentBetweenPostPerOperation: string;
|
|
7059
|
-
delayBetweenSecondsComment: string;
|
|
7083
|
+
commentBetweenPostPerOperation: [string, string];
|
|
7084
|
+
delayBetweenSecondsComment: [string, string];
|
|
7060
7085
|
};
|
|
7061
7086
|
sheetTool: {
|
|
7062
7087
|
sheetName: string;
|
|
7063
7088
|
sheetUrl: string;
|
|
7064
7089
|
typeSheetSheetTool: string;
|
|
7065
|
-
statusSheetTool:
|
|
7090
|
+
statusSheetTool: EStatusTaskToolSocials;
|
|
7066
7091
|
idea: string;
|
|
7067
7092
|
niche: string;
|
|
7068
7093
|
type: ETypeManagerWorkType;
|
|
7069
7094
|
};
|
|
7095
|
+
sourceImageVideoPost: {
|
|
7096
|
+
linkCanvaSource: string;
|
|
7097
|
+
linkDriveSource: string;
|
|
7098
|
+
};
|
|
7070
7099
|
contentPost: {
|
|
7071
7100
|
contentPostCaption: string;
|
|
7072
7101
|
editContentInstagram: string;
|
|
@@ -7078,7 +7107,7 @@ interface ViewDetailTaskInstagramPostDto {
|
|
|
7078
7107
|
tagUserName: string;
|
|
7079
7108
|
tagCollaborator: string;
|
|
7080
7109
|
addLocation: string;
|
|
7081
|
-
suggestFb:
|
|
7110
|
+
suggestFb: boolean;
|
|
7082
7111
|
historyName: string;
|
|
7083
7112
|
linkAddHistory: string;
|
|
7084
7113
|
commentPostMe: 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
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
|